@ckeditor/ckeditor5-track-changes 47.6.0-alpha.0 → 47.6.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.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/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +26 -26
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/ai.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/aiquickactions.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/footnotes.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x3889c4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c110c,_0x57d890){super(),this['id']=_0x57d890['id'],this['type']=_0x57d890['type'],this['subType']=_0x57d890['subType']||null,this['author']=_0x57d890['author'],this['creator']=_0x57d890['creator']||_0x57d890['author'],this['isExternal']=Boolean(_0x57d890['attributes']&&_0x57d890['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x57d890['originalSuggestionId']||null,this['_model']=_0x4c110c,this['_onAccept']=_0x57d890['onAccept'],this['_onDiscard']=_0x57d890['onDiscard'],this['_onAttributesChange']=_0x57d890['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x57d890['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 _0x14b0b5=this;for(;_0x14b0b5['previous'];)_0x14b0b5=_0x14b0b5['previous'];return _0x14b0b5;}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'](_0x2f215f){this['_markerNames']['add'](_0x2f215f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x23e58d=>this['_model']['markers']['get'](_0x23e58d))['filter'](_0x1d803b=>_0x1d803b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x166c2a=>{for(const _0x107dea of this['getMarkers']())_0x166c2a['removeMarker'](_0x107dea);}),this['_markerNames']['clear']();}['removeMarker'](_0x10b600){this['_model']['change'](_0xd4241b=>{_0xd4241b['removeMarker'](_0x10b600);}),this['_markerNames']['delete'](_0x10b600);}['addRange'](_0x2353c2){const _0x50a8b1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x50a8b1),this['_model']['change'](_0x26c4d0=>{_0x26c4d0['addMarker'](_0x50a8b1,{'range':_0x2353c2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x463300){for(const _0x4f0cfc of this['getRanges']())if(_0x4f0cfc['isIntersecting'](_0x463300))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x25706c=>_0x25706c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3359c6,_0x14742b)=>[..._0x3359c6,..._0x14742b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x13acfb=this['getRanges']();if(0x1!=_0x13acfb['length'])return null;const _0x43ab45=_0x13acfb[0x0],_0x1063f4=_0x43ab45['start']['nodeAfter'],_0x49c87e=_0x43ab45['end']['nodeBefore'];return _0x1063f4 instanceof _0x177ed1?_0x1063f4!=_0x49c87e?null:_0x1063f4: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 _0x36d304=[];let _0x2ce11c=this['head'];for(;_0x2ce11c;)_0x36d304['push'](_0x2ce11c),_0x2ce11c=_0x2ce11c['next'];return _0x36d304;}['setAttribute'](_0x81bfec,_0x472a44){const _0x599220=_0x2781f8(this['attributes']);_0x425406(_0x599220,_0x81bfec,_0x472a44),_0x20d232(_0x599220,this['attributes'])||(this['attributes']=_0x599220,this['_onAttributesChange'](_0x599220));}['removeAttribute'](_0x8d2cca){const _0x173164=_0x2781f8(this['attributes']);_0x55e2d1(_0x173164,_0x8d2cca),_0x20d232(_0x173164,this['attributes'])||(this['attributes']=_0x173164,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 _0xcdc81a()['substr'](0x1,0x5);}}function o(_0x4c20cb,_0x448000,_0x387068){const _0x3ac30c=_0x4c20cb['t'],t=_0x4c20cb['t'];switch(_0x448000){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',_0x387068);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x387068);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x387068);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x387068);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x387068);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',_0x387068);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x387068);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',_0x387068);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x387068);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x387068);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x387068);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x387068);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x387068);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x387068);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x387068);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x387068);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x387068);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x387068);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x387068);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x387068);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x387068);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x387068);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x387068);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x387068);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x387068);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'},_0x387068);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x387068);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x387068);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x387068);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x387068);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x387068);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x387068);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x387068);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'},_0x387068);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x387068);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x387068);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x387068);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x387068);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x387068);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x387068);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'},_0x387068);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x387068);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x387068);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'},_0x387068);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x387068);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'},_0x387068);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x387068);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x387068);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x387068);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x387068);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x387068);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'},_0x387068);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x387068);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 _0x3ac30c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x387068);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3ac30c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x387068);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x387068);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'},_0x387068);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'},_0x387068);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'},_0x387068);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x448000;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x211a1e,_0x187c88){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x211a1e,this['_locale']=_0x187c88;}['getDescriptions'](_0x4a1b75){const _0x6c2e84=[],_0xba634b=new Set(),_0xb994d7=new Set();for(let _0x3fd9bb=0x0;_0x3fd9bb<_0x4a1b75['length'];_0x3fd9bb++){const _0x46560c=_0x4a1b75[_0x3fd9bb];if(!_0x46560c['isInContent'])continue;const _0x459b99=this['_handleCustomCallbackDescription'](_0x46560c);if(_0x459b99){if(null!=_0x46560c['subType']){if(_0xba634b['has'](_0x46560c['subType']))continue;_0xba634b['add'](_0x46560c['subType']);}_0x6c2e84['push'](_0x459b99);}else{if('attribute'==_0x46560c['type']){const _0x5be901=_0x46560c['data']['key'];if(_0xb994d7['has'](_0x5be901))continue;_0xb994d7['add'](_0x46560c['data']['key']),_0x5be901==m?this['_handleRenameSuggestionDescription'](_0x6c2e84,_0x46560c):this['_handleAttributeSuggestionDescription'](_0x6c2e84,_0x46560c);continue;}'insertion'!=_0x46560c['type']&&'deletion'!=_0x46560c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x6c2e84,_0x46560c,_0x4a1b75[_0x3fd9bb+0x1]);}}return this['_resolveDescriptionItems'](_0x6c2e84);}['registerDescriptionCallback'](_0x4d0a24){this['_customCallbacks']['push'](_0x4d0a24);}['registerElementLabel'](_0x505825,_0x28a975,_0x581018=_0x525aa5['normal']){'function'==typeof _0x505825?_0x3b470e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x505825,'label':_0x28a975,'priority':_0x581018}):this['_itemLabels']['set'](_0x505825,_0x28a975);}['registerAttributeLabel'](_0x53a288,_0x12a28e){this['_attributeLabels']['set'](_0x53a288,_0x12a28e);}['getItemLabel'](_0x4db7a4,_0xdcf601=0x1){let _0x40db22;for(const _0x3de01f of this['_itemLabelsCallbacks'])if(_0x3de01f['matchingCallback'](_0x4db7a4)){_0x40db22=_0x3de01f['label'];break;}return _0x40db22||(_0x40db22=this['_itemLabels']['get'](_0x4db7a4['name'])),_0x40db22?_0x40db22(_0xdcf601):0x1!==_0xdcf601?_0xdcf601+'\x20'+_0x4db7a4['name']+'s':''+_0x4db7a4['name'];}['_addDescriptionItems'](_0x4c7b4c,_0x494cd4){const _0x405cc8=_0x494cd4['getFirstRange']()['getWalker'](),_0x1f94e8='insertion'==_0x494cd4['type']?'add':'remove';for(const _0x3da31d of _0x405cc8){const _0x59cd86=_0x3da31d['item'],_0x420c9c=_0x4c7b4c[_0x4c7b4c['length']-0x1];if(_0x59cd86['is']('$textProxy'))_0x420c9c&&_0x420c9c['type']['indexOf']('Container')>-0x1&&_0x4c7b4c['pop'](),_0x420c9c&&'text'==_0x420c9c['type']?_0x420c9c[_0x1f94e8]+=_0x59cd86['data']:_0x4c7b4c['push']({'type':'text','add':'add'==_0x1f94e8?_0x59cd86['data']:'','remove':'remove'==_0x1f94e8?_0x59cd86['data']:''});else{if(this['_schema']['isObject'](_0x59cd86)){const _0x2c3ac7=_0x59cd86;if(_0x420c9c&&_0x420c9c['type']['indexOf']('Container')>-0x1&&_0x4c7b4c['pop'](),'elementEnd'==_0x3da31d['type'])continue;_0x420c9c&&_0x420c9c['type']==_0x1f94e8+'Object'&&_0x420c9c['element']['name']==_0x2c3ac7['name']?_0x420c9c['quantity']++:_0x4c7b4c['push']({'type':_0x1f94e8+'Object','element':_0x2c3ac7,'quantity':0x1}),_0x405cc8['skip'](_0x2fc02c=>!('elementEnd'==_0x2fc02c['type']&&_0x2fc02c['item']==_0x59cd86));}else{if(this['_schema']['checkChild'](_0x59cd86,'$text')||_0x59cd86['is']('element','softBreak')){const _0x303c10=_0x59cd86;if('add'==_0x1f94e8&&'elementStart'==_0x3da31d['type']||'remove'==_0x1f94e8&&'elementEnd'==_0x3da31d['type'])continue;if(_0x420c9c&&-0x1==_0x420c9c['type']['indexOf']('Container')){'text'==_0x420c9c['type']&&(_0x420c9c[_0x1f94e8]+='\x0a');continue;}let _0x21b223;if(_0x21b223='add'==_0x1f94e8?_0x303c10['nextSibling']&&!this['_schema']['isObject'](_0x303c10['nextSibling'])?_0x303c10['nextSibling']:null:_0x303c10['previousSibling']&&!this['_schema']['isObject'](_0x303c10['previousSibling'])?_0x303c10['previousSibling']:null,_0x303c10['isEmpty']||_0x21b223&&_0x21b223['isEmpty']){const _0x2cc702=_0x21b223&&_0x21b223['isEmpty']?_0x21b223:_0x303c10;_0x420c9c&&_0x420c9c['type']==_0x1f94e8+'EmptyContainer'&&_0x420c9c['element']['name']==_0x2cc702['name']?_0x420c9c['quantity']++:_0x4c7b4c['push']({'type':_0x1f94e8+'EmptyContainer','element':_0x2cc702,'quantity':0x1});}else _0x4c7b4c['push']({'type':_0x1f94e8+'Container','element':_0x303c10});}}}}}['_resolveDescriptionItems'](_0x52fbdb){const _0x39b851=this['_locale'],_0x1939c0=[],_0x521b5a=[],_0x1ecd6d=[];for(const _0x3ad024 of _0x52fbdb)switch(_0x3ad024['type']){case'text':if(_0x3ad024['add']=_0x3ad024['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ad024['remove']=_0x3ad024['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ad024['add']&&''!=_0x3ad024['remove']){_0x1939c0['push']({'type':'replace','content':o(_0x39b851,'REPLACE_TEXT',['\x22'+_0x3ad024['remove']+'\x22','\x22'+_0x3ad024['add']+'\x22'])});continue;}if(null!=_0x3ad024['add']['match'](/^ +$/)){_0x1939c0['push']({'type':'insertion','content':o(_0x39b851,'*Insert:*\x20%0',o(_0x39b851,'ELEMENT_SPACE',_0x3ad024['add']['length']))});continue;}if(null!=_0x3ad024['remove']['match'](/^ +$/)){_0x1939c0['push']({'type':'deletion','content':o(_0x39b851,'*Remove:*\x20%0',o(_0x39b851,'ELEMENT_SPACE',_0x3ad024['remove']['length']))});continue;}if(''!=_0x3ad024['add']){_0x1939c0['push']({'type':'insertion','content':o(_0x39b851,'*Insert:*\x20%0','\x22'+_0x3ad024['add']+'\x22')});continue;}_0x1939c0['push']({'type':'deletion','content':o(_0x39b851,'*Remove:*\x20%0','\x22'+_0x3ad024['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1939c0['push']({'type':'insertion','content':o(_0x39b851,'*Insert:*\x20%0',this['getItemLabel'](_0x3ad024['element'],_0x3ad024['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1939c0['push']({'type':'deletion','content':o(_0x39b851,'*Remove:*\x20%0',this['getItemLabel'](_0x3ad024['element'],_0x3ad024['quantity']))});continue;case'addContainer':_0x1939c0['push']({'type':'insertion','content':o(_0x39b851,'*Split:*\x20%0',this['getItemLabel'](_0x3ad024['element'],_0x3ad024['quantity']))});continue;case'removeContainer':_0x1939c0['push']({'type':'deletion','content':o(_0x39b851,'*Merge:*\x20%0',this['getItemLabel'](_0x3ad024['element'],_0x3ad024['quantity']))});continue;case'addFormat':_0x521b5a['push'](_0x3ad024['key']);continue;case'removeFormat':_0x1ecd6d['push'](_0x3ad024['key']);continue;default:_0x1939c0['push'](_0x3ad024);}if(_0x521b5a['length']){const _0x5a7266=_0x521b5a['map'](_0x158c4e=>this['_attributeLabels']['has'](_0x158c4e)?this['_attributeLabels']['get'](_0x158c4e):_0x158c4e)['join'](',\x20');_0x1939c0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5a7266)});}if(_0x1ecd6d['length']){const _0x577ba7=_0x1ecd6d['map'](_0x1f12c0=>this['_attributeLabels']['has'](_0x1f12c0)?this['_attributeLabels']['get'](_0x1f12c0):_0x1f12c0)['join'](',\x20');_0x1939c0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x577ba7)});}return _0x1939c0;}['_handleCustomCallbackDescription'](_0x11b07b){for(const _0x1d7bc9 of this['_customCallbacks']){const _0x5ecb0d=_0x1d7bc9(_0x11b07b);if(_0x5ecb0d&&'type'in _0x5ecb0d)return _0x5ecb0d;}}['_handleAttributeSuggestionDescription'](_0x2cc213,_0x2c6906){const _0x32714d=_0x2c6906['data'],_0x274fbc=void 0x0===_0x32714d['newValue']?'removeFormat':'addFormat';_0x2cc213['push']({'type':_0x274fbc,'key':_0x32714d['key']});}['_handleRenameSuggestionDescription'](_0x5e71a9,_0xad04f9){_0x5e71a9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xad04f9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2079e6,_0x3b7708,_0x59e31d){if(this['_addDescriptionItems'](_0x2079e6,_0x3b7708),_0x59e31d&&_0x59e31d['getFirstRange']()&&!_0x3b7708['getFirstRange']()['end']['isEqual'](_0x59e31d['getFirstRange']()['start'])){const _0x2c0f6a=_0x2079e6[_0x2079e6['length']-0x1],_0xb37046='insertion'==_0x3b7708['type']?'add':'remove';_0x2c0f6a&&'text'==_0x2c0f6a['type']&&(_0x2c0f6a[_0xb37046]+='\x0a');}}}class U extends _0x2aad9b{['afterInit'](){const _0x14d27f=this['editor'],_0x1549be=_0x14d27f['plugins']['get']('TrackChangesEditing');_0x14d27f['commands']['get']('showAIAssistant')&&_0x1549be['enableCommand']('showAIAssistant');}}class V extends _0x2aad9b{['afterInit'](){const _0x3084f4=this['editor'],_0x17ebb4=_0x3084f4['plugins']['get']('TrackChangesEditing');_0x3084f4['commands']['get']('toggleAi')&&_0x17ebb4['enableCommand']('toggleAi');}}class F extends _0x2aad9b{['afterInit'](){const _0x573c61=this['editor'],_0x19c6ce=_0x573c61['plugins']['get']('TrackChangesEditing');_0x573c61['commands']['get']('aiQuickAction')&&_0x19c6ce['enableCommand']('aiQuickAction');}}class G extends _0x2aad9b{['afterInit'](){const _0x213791=this['editor'],_0x11eccb=_0x213791['locale'];if(!_0x213791['plugins']['has']('AlignmentEditing'))return;const _0x49538c=_0x213791['plugins']['get']('TrackChangesEditing');_0x49538c['enableDefaultAttributesIntegration']('alignment'),_0x49538c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x11eccb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33b9d9=this['editor'],_0x3d9545=_0x33b9d9['locale'];_0x33b9d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22ae9d=>{if('formatBlock'!=_0x22ae9d['type'])return;const {data:_0x1f8a99}=_0x22ae9d;if(_0x1f8a99&&'alignment'==_0x1f8a99['commandName']){const _0x4b3140=_0x1f8a99['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3d9545,'*Format:*\x20%0',function(_0x11e5b0){switch(_0x11e5b0){case'left':return o(_0x3d9545,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3d9545,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3d9545,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3d9545,'FORMAT_JUSTIFY_TEXT');}}(_0x4b3140))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x2aad9b{['afterInit'](){const _0x2f2833=this['editor'],_0x1ff79d=_0x2f2833['plugins']['get']('TrackChangesEditing'),_0x127d57=_0x2f2833['locale'];for(const _0x5837e5 of ti){if(!_0x2f2833['plugins']['has'](_0x5837e5))continue;const _0x41cdc4=_0x5837e5['slice'](0x0,-0x7)['toLowerCase'](),_0x4d5596='FORMAT_'+_0x41cdc4['toUpperCase']();_0x1ff79d['enableDefaultAttributesIntegration'](_0x41cdc4),_0x1ff79d['descriptionFactory']['registerAttributeLabel'](_0x41cdc4,o(_0x127d57,_0x4d5596));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcedbda=this['editor'],_0x32805d=_0xcedbda['locale'],_0x2a6256=_0xcedbda['plugins']['get']('TrackChangesEditing');function _0x905f74(_0x14ab9f,_0x49e1b6){_0x2a6256['descriptionFactory']['registerDescriptionCallback'](_0x1525f0=>{if('formatInline'!=_0x1525f0['type'])return;const {data:_0x2372b0}=_0x1525f0;return _0x2372b0&&_0x2372b0['commandName']===_0x14ab9f?_0x2372b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32805d,'*Format:*\x20%0',_0x49e1b6)}:{'type':'format','content':o(_0x32805d,'*Remove\x20format:*\x20%0',_0x49e1b6)}:void 0x0;});}_0x905f74('bold',o(_0x32805d,'FORMAT_BOLD')),_0x905f74('italic',o(_0x32805d,'FORMAT_ITALIC')),_0x905f74('underline',o(_0x32805d,'FORMAT_UNDERLINE')),_0x905f74('code',o(_0x32805d,'FORMAT_CODE')),_0x905f74('strikethrough',o(_0x32805d,'FORMAT_STRIKETHROUGH')),_0x905f74('subscript',o(_0x32805d,'FORMAT_SUBSCRIPT')),_0x905f74('superscript',o(_0x32805d,'FORMAT_SUPERSCRIPT'));}}class J extends _0x2aad9b{['afterInit'](){const _0x510ff1=this['editor'],_0x1d56d8=_0x510ff1['locale'];if(!_0x510ff1['plugins']['has']('BlockQuoteEditing'))return;const _0x2194f5=_0x510ff1['plugins']['get']('TrackChangesEditing'),_0x2d2efc=this['editor']['commands']['get']('blockQuote');_0x2194f5['enableCommand']('blockQuote',(_0x417d59,_0x59e7be={})=>{const _0xb80f40=this['editor']['model']['document']['selection'],_0x4ff2be=_0x59e7be&&void 0x0!==_0x59e7be['forceValue']?_0x59e7be['forceValue']:!_0x2d2efc['value'];let _0x32ed6b=[];if(_0x4ff2be){const _0x216b9a=Array['from'](_0xb80f40['getSelectedBlocks']())['filter'](_0x1a6199=>oo(_0x1a6199)||function(_0x3d54e0,_0x318487){const _0x1e0b25=_0x318487['checkChild'](_0x3d54e0['parent'],'blockQuote'),_0x387fb8=_0x318487['checkChild'](['$root','blockQuote'],_0x3d54e0);return _0x1e0b25&&_0x387fb8;}(_0x1a6199,this['editor']['model']['schema']));_0x32ed6b=to(_0x216b9a,_0x510ff1['model']);}else{const _0x560e08=Array['from'](_0xb80f40['getSelectedBlocks']())['filter'](_0x166427=>oo(_0x166427));_0x32ed6b=to(_0x560e08,_0x510ff1['model']);}_0x510ff1['model']['change'](()=>{for(const _0x51e76b of _0x32ed6b)_0x2194f5['markBlockFormat'](_0x51e76b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4ff2be}]});});}),_0x2194f5['descriptionFactory']['registerDescriptionCallback'](_0x527330=>{const {data:_0x1e290e}=_0x527330;if(_0x1e290e&&'blockQuote'==_0x1e290e['commandName']){const _0x48b13c=o(_0x1d56d8,'ELEMENT_BLOCK_QUOTE');return _0x1e290e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d56d8,'*Set\x20format:*\x20%0',_0x48b13c)}:{'type':'format','content':o(_0x1d56d8,'*Remove\x20format:*\x20%0',_0x48b13c)};}});}}function oo(_0x1aed47){return'blockQuote'==_0x1aed47['parent']['name'];}class q extends _0x2aad9b{['afterInit'](){const _0x349756=this['editor'],_0x572134=_0x349756['locale'],_0x2b8ce5=_0x349756['plugins']['get']('TrackChangesEditing');_0x349756['plugins']['has']('BookmarkEditing')&&(_0x2b8ce5['enableCommand']('insertBookmark'),_0x2b8ce5['enableDefaultAttributesIntegration']('updateBookmark'),_0x2b8ce5['descriptionFactory']['registerDescriptionCallback'](_0x2c14c8=>{if('insertion'!=_0x2c14c8['type']&&'deletion'!=_0x2c14c8['type']&&'attribute'!=_0x2c14c8['type'])return;const _0x4d5924=_0x2c14c8['getContainedElement']();if(null==_0x4d5924)return;if(!_0x4d5924['is']('element','bookmark'))return;const _0x4aa9e7=_0x4d5924['getAttribute']('bookmarkId');if('insertion'==_0x2c14c8['type'])return{'type':'insertion','content':o(_0x572134,'*Insert:*\x20%0','\x22'+_0x4aa9e7+'\x22\x20'+o(_0x572134,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2c14c8['type'])return{'type':'deletion','content':o(_0x572134,'*Remove:*\x20%0','\x22'+_0x4aa9e7+'\x22\x20'+o(_0x572134,'ELEMENT_BOOKMARK'))};const {data:_0x2a5742}=_0x2c14c8;if(!_0x2a5742||'bookmarkId'!=_0x2a5742['key'])return;return{'type':'format','content':o(_0x572134,'*Set\x20bookmark:*\x20%0','\x22'+_0x2a5742['newValue']+'\x22')};}));}}class z extends _0x2aad9b{['afterInit'](){const _0x3dd978=this['editor'];_0x3dd978['plugins']['has']('CaseChange')&&(_0x3dd978['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3dd978['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3dd978['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2aad9b{['afterInit'](){const _0x5ecb3e=this['editor'];_0x5ecb3e['commands']['get']('ckbox')&&_0x5ecb3e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x2aad9b{['afterInit'](){const _0x445d89=this['editor'];if(!_0x445d89['plugins']['has']('CodeBlock'))return;const _0x2df7db=_0x445d89['plugins']['get']('TrackChangesEditing'),_0x3f14c1=_0x445d89['locale'],_0x3f72db=_0x445d89['config']['get']('codeBlock')['languages'],_0x2d4b18=_0x445d89['commands']['get']('codeBlock');_0x2df7db['enableCommand']('indentCodeBlock'),_0x2df7db['enableCommand']('outdentCodeBlock'),_0x2df7db['enableCommand']('codeBlock',(_0x34b277,_0x571bd7={})=>{const _0x34e75d=_0x445d89['model'],_0x4bb002=_0x445d89['model']['document']['selection'],_0x5d0ebe=_0x571bd7&&void 0x0!==_0x571bd7['forceValue']?_0x571bd7['forceValue']:!_0x2d4b18['value'];let _0x3b50b5;_0x571bd7['language']||(_0x571bd7['language']=_0x3f72db[0x0]['language']),_0x3b50b5=_0x5d0ebe?Array['from'](_0x4bb002['getSelectedBlocks']())['filter'](_0x28c7c7=>co(_0x28c7c7)||function(_0x1a2d9e,_0x235f50){if(_0x1a2d9e['is']('rootElement')||_0x235f50['isLimit'](_0x1a2d9e))return!0x1;return _0x235f50['checkChild'](_0x1a2d9e['parent'],'codeBlock');}(_0x28c7c7,_0x34e75d['schema'])):Array['from'](_0x4bb002['getSelectedBlocks']())['filter'](_0x463a00=>co(_0x463a00));const _0x2dd87a=to(_0x3b50b5,_0x34e75d);_0x34e75d['change'](()=>{for(const _0x11f27d of _0x2dd87a)_0x2df7db['markBlockFormat'](_0x11f27d,{'commandName':'codeBlock','commandParams':[{..._0x571bd7,'forceValue':_0x5d0ebe}],'formatGroupId':'blockName'});});}),(_0x2df7db['descriptionFactory']['registerElementLabel']('codeBlock',_0x17c739=>o(_0x3f14c1,'ELEMENT_CODE_BLOCK',_0x17c739)),_0x2df7db['descriptionFactory']['registerDescriptionCallback'](_0x1bf786=>{if('formatBlock'!=_0x1bf786['type'])return;const _0x4b5d3c=_0x3f14c1['t'],{data:_0x25ada6}=_0x1bf786;if(!_0x25ada6||'codeBlock'!=_0x25ada6['commandName'])return;const _0x3951b2=_0x25ada6['commandParams'][0x0]['language'],_0x247d52=_0x4b5d3c(_0x3f72db['find'](_0x1e3121=>_0x1e3121['language']===_0x3951b2)['label'])['toLowerCase']();return _0x25ada6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f14c1,'*Set\x20format:*\x20%0',o(_0x3f14c1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x247d52+')')}:{'type':'format','content':o(_0x3f14c1,'*Remove\x20format:*\x20%0',o(_0x3f14c1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x591869){return'codeBlock'==_0x591869['name'];}class H extends _0x2aad9b{['afterInit'](){const _0xc35f8c=this['editor'];if(!_0xc35f8c['plugins']['has']('CommentsEditing'))return;_0xc35f8c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x2aad9b{static get['requires'](){return[_0x11609b];}['init'](){const _0x1c5107=this['editor'],_0x584658=_0x1c5107['plugins']['get']('TrackChangesEditing');_0x584658['enableCommand']('delete');const _0x299e68=_0x1c5107['commands']['get']('deleteForward');_0x584658['enableCommand']('deleteForward',(_0x266c7,_0x51cc3f={})=>{const _0x273961=_0x1c5107['model']['createSelection'](_0x1c5107['model']['document']['selection']);_0x273961['isCollapsed']&&_0x1c5107['model']['modifySelection'](_0x273961,{'direction':'forward','unit':_0x51cc3f['unit']});const _0x558af5=_0x273961['getFirstRange'](),_0x5d82cf=_0x4c3029['fromRange'](_0x558af5);let _0x4e6685;_0x266c7(_0x51cc3f),_0x4e6685='$graveyard'==_0x5d82cf['root']['rootName']?_0x1c5107['model']['createRange'](_0x558af5['start']):_0x1c5107['model']['createRange'](_0x5d82cf['start'],_0x5d82cf['end']),_0x5d82cf['detach'](),_0x1c5107['model']['enqueueChange'](_0x299e68['buffer']['batch'],_0x249d82=>{_0x299e68['buffer']['lock'](),_0x249d82['setSelection'](_0x249d82['createRange'](_0x4e6685['end'])),_0x299e68['buffer']['unlock']();});});}}class X extends _0x2aad9b{['afterInit'](){const _0xffdc36=this['editor'];if(!_0xffdc36['plugins']['has']('ListEditing'))return;const _0x967ec3=_0xffdc36['locale'],_0x531196=_0xffdc36['plugins']['get']('TrackChangesEditing'),_0x2ae421=_0xffdc36['plugins']['has']('TodoListEditing'),_0x2afec6=!!_0xffdc36['config']['get']('list.multiBlock');function _0x581817(_0x1bcaba){return{'type':'format','content':''+o(_0x967ec3,'*Set\x20format:*\x20%0',_0x1bcaba)};}function _0x554c06(_0x22ab99){return{'type':'format','content':''+o(_0x967ec3,'*Remove\x20format:*\x20%0',_0x22ab99)};}_0x531196['enableDefaultAttributesIntegration']('numberedList'),_0x531196['enableDefaultAttributesIntegration']('bulletedList'),_0x531196['enableDefaultAttributesIntegration']('customNumberedList'),_0x531196['enableDefaultAttributesIntegration']('customBulletedList'),_0x531196['enableDefaultAttributesIntegration']('indentList'),_0x531196['enableDefaultAttributesIntegration']('outdentList'),_0x531196['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x531196['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2afec6&&(_0x531196['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x531196['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2ae421&&(_0x531196['enableDefaultAttributesIntegration']('todoList'),_0x531196['enableDefaultAttributesIntegration']('checkTodoList'),_0x531196['descriptionFactory']['registerDescriptionCallback'](_0x12cbb1=>{const {data:_0x512bbe}=_0x12cbb1;if(_0x512bbe&&'todoListChecked'==_0x512bbe['key'])return{'type':'format','content':_0x512bbe['newValue']?o(_0x967ec3,'*Check\x20item*'):o(_0x967ec3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4fd243=>{if(_0x4fd243['batch']['isUndo'])return!0x1;let _0x4c79f6=!0x1;const _0x2d5b41=_0x531196['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19aaa3=>'todoListChecked'===_0x531196['_getAttributeKey'](_0x19aaa3));for(const _0x5c7845 of _0x2d5b41){'todo'!=_0x5c7845['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x531196['_findSuggestions'](_0x5c7845['getFirstRange'](),'attribute')['find'](_0x2226fb=>'listType'===_0x531196['_getAttributeKey'](_0x2226fb['suggestion']))||(_0x4fd243['removeMarker'](_0x5c7845['getFirstMarker']()),_0x4c79f6=!0x0));}return _0x4c79f6;})),_0x531196['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x967ec3,'FORMAT_INDENT'));const _0x18ed35={'type':'format','content':''};_0x531196['descriptionFactory']['registerDescriptionCallback'](_0x1de440=>{const {data:_0x452ae0}=_0x1de440;if(!_0x452ae0||'listType'!=_0x452ae0['key'])return;let _0x2df18b=_0x1de440['head'];for(;_0x2df18b;){if(_0x2df18b['data']&&(('listStyle'==_0x2df18b['data']['key']||'listMarkerStyle'==_0x2df18b['data']['key'])&&(_0x2df18b['data']['newValue']&&'default'!=_0x2df18b['data']['newValue']||'default'!=_0x2df18b['data']['oldValue']&&!_0x452ae0['newValue'])||!_0x2afec6&&_0x2df18b['data']['key']==m))return _0x18ed35;_0x2df18b=_0x2df18b['next'];}if(null==_0x452ae0['newValue'])switch(_0x452ae0['oldValue']){case'bulleted':return _0x554c06(o(_0x967ec3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x554c06(o(_0x967ec3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x554c06(o(_0x967ec3,'ELEMENT_TODO_LIST'));}switch(_0x452ae0['newValue']){case'bulleted':return _0x581817(o(_0x967ec3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x581817(o(_0x967ec3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x581817(o(_0x967ec3,'ELEMENT_TODO_LIST'));}}),_0x531196['descriptionFactory']['registerDescriptionCallback'](_0x4686bf=>{const {data:_0x3089ed}=_0x4686bf;if(_0x3089ed&&'listIndent'==_0x3089ed['key'])return null==_0x3089ed['newValue']||null==_0x3089ed['oldValue']&&0x0==_0x3089ed['newValue']?_0x18ed35:void 0x0;}),_0x531196['descriptionFactory']['registerDescriptionCallback'](_0x25389a=>{if('attribute'!=_0x25389a['type'])return;const {data:_0x3d4afc}=_0x25389a;if(!_0x3d4afc||'listItemId'!=_0x3d4afc['key'])return;const _0x441a59=Te(_0x25389a);return'newValue'==_0x441a59?{'type':'format','content':o(_0x967ec3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x441a59?{'type':'format','content':o(_0x967ec3,'*Split:*\x20list\x20item')}:_0x18ed35;}),_0xffdc36['model']['document']['registerPostFixer'](_0xd963e9=>this['listItemIdFixer'](_0xd963e9)),_0xffdc36['model']['document']['registerPostFixer'](_0x10488a=>this['noTrackChangesFixer'](_0x10488a)),_0xffdc36['model']['document']['on']('change:data',(_0x387e1d,_0x21fed4)=>{if(_0x21fed4['isUndo']||!_0x21fed4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x27cc73){if(_0x27cc73['batch']['isUndo']||!_0x27cc73['batch']['isLocal'])return!0x1;let _0x1184f1=!0x1;const _0x5e07e4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x196280=>_0x196280['data']&&'listItemId'==_0x196280['data']['key'])['filter'](_0x1a9bb7=>_0x1a9bb7['data']['newValue']&&_0x1a9bb7['data']['oldValue']);for(const _0x35ca10 of _0x5e07e4)Te(_0x35ca10)||(_0x27cc73['removeMarker'](_0x35ca10['getFirstMarker']()),_0x1184f1=!0x0);return _0x1184f1;}['noTrackChangesFixer'](_0x298c43){if(_0x298c43['batch']['isUndo']||!_0x298c43['batch']['isLocal'])return!0x1;const _0x465e91=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x465e91['trackChangesCommand']['value'])return!0x1;let _0x13e14c=!0x1;const _0x1ecd30=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2222ef=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x9917f7=>'attribute'==_0x9917f7['type'])['filter'](_0x590cdf=>_0x1ecd30['includes'](_0x590cdf['attributeKey']));if(0x0==_0x2222ef['length'])return _0x13e14c;for(const _0x1903d0 of _0x2222ef){const _0x2eac48=_0x465e91['_findSuggestions'](_0x1903d0['range'],'attribute')['filter'](_0x292308=>!_0x292308['meta']['isNextTo'])['map'](_0x10b29f=>_0x10b29f['suggestion'])['filter'](_0xc9f29d=>{const _0x5f1767=_0x465e91['_getAttributeKey'](_0xc9f29d);return _0x1ecd30['includes'](_0x5f1767);});if(_0x2eac48['length']){for(const _0x20aecf of _0x2eac48)_0x298c43['removeMarker'](_0x20aecf['getFirstMarker']());_0x13e14c=!0x0;}}return _0x13e14c;}['assureChains'](){const _0x2ea2bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7f4241=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x31f2e7;const _0x11c2de=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b7bad=>{if(_0x5b7bad['data']['oldRange']||!_0x5b7bad['data']['newRange'])return null;if(!_0x5b7bad['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x54cf44}=_0x2ea2bc['_splitMarkerName'](_0x5b7bad['name']);if(!_0x2ea2bc['hasSuggestion'](_0x54cf44))return null;const _0x16c0f1=_0x2ea2bc['getSuggestion'](_0x54cf44);return _0x7f4241['includes'](_0x16c0f1['data']['key']);})['map'](_0x5ba9de=>{const {id:_0x585201}=_0x2ea2bc['_splitMarkerName'](_0x5ba9de['name']),_0x1bfea0=_0x2ea2bc['getSuggestion'](_0x585201);return _0x31f2e7=_0x1bfea0['attributes']['groupId'],_0x1bfea0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x11c2de['size'])return;const _0x46fb26=_0x2ea2bc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1822f7=>'attribute'==_0x1822f7['type']&&_0x1822f7['data']&&_0x7f4241['includes'](_0x1822f7['data']['key'])&&_0x1822f7['attributes']['groupId']!=_0x31f2e7)['map'](_0x263eb5=>({'listItem':_0x263eb5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x263eb5['attributes']['groupId']})),_0x5e8297=new Set();for(const {groupId:_0x32a42d,listItem:_0x56c474}of _0x46fb26)_0x11c2de['has'](_0x56c474)&&_0x5e8297['add'](_0x32a42d);for(const _0x535b21 of _0x2ea2bc['getSuggestions']())_0x5e8297['has'](_0x535b21['attributes']['groupId'])&&_0x535b21['setAttribute']('groupId',_0x31f2e7);}['_supportLegacySuggestions'](){const _0x2d33e2=this['editor'],_0x4f1778=_0x2d33e2['locale'],_0x346c21=_0x2d33e2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x346c21['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x49507a,_0x48dc43){const _0x52c30e=[];for(let _0x244b8f of _0x49507a)_0x244b8f['start']['nodeAfter']===_0x244b8f['end']['parent']&&(_0x244b8f=_0x2d33e2['model']['createRange'](_0x2d33e2['model']['createPositionAt'](_0x244b8f['start']['nodeAfter'],0x0))),_0x52c30e['push'](_0x244b8f);_0x2d33e2['model']['change'](_0x2195a1=>{const _0x509666=_0x2d33e2['model']['document']['selection'],_0x494791=Array['from'](_0x509666['getRanges']())['map'](_0x5bc93b=>_0x4c3029['fromRange'](_0x5bc93b));_0x2195a1['setSelection'](_0x52c30e),_0x2d33e2['commands']['get'](_0x48dc43['commandName'])['refresh'](),_0x48dc43['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2d33e2['execute'](_0x48dc43['commandName'],..._0x48dc43['commandParams']),_0x2195a1['setSelection'](_0x494791);for(const _0x45481c of _0x494791)_0x45481c['detach']();});}),_0x346c21['descriptionFactory']['registerElementLabel'](function(_0x3b9893){const _0x78d1d1=!_0x2d33e2['model']['schema']['isObject'](_0x3b9893),_0x195945=_0x3b9893['previousSibling'],_0x464e02=_0x3b9893['nextSibling'],_0x383733=_0x3b9893['getAttribute']('listItemId'),_0x25aad9=!_0x195945||_0x195945['getAttribute']('listItemId')!==_0x383733,_0x261b57=!_0x464e02||_0x464e02['getAttribute']('listItemId')!==_0x383733;return _0x78d1d1&&Boolean(_0x383733)&&_0x25aad9&&_0x261b57;},_0x2d1b73=>o(_0x4f1778,'ELEMENT_LIST_ITEM',_0x2d1b73));}['_registerLegacyDescription'](){const _0x5d93af=this['editor'],_0x2b9469=_0x5d93af['locale'];function _0x537747(_0x188159){const _0x307148=_0x5d93af['commands']['get']('bulletedList')['value'],_0x41a710=_0x5d93af['commands']['get']('numberedList')['value'];return'numberedList'===_0x188159?_0x307148:_0x41a710;}_0x5d93af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x11d9dd){if('formatBlock'!=_0x11d9dd['type'])return;const {data:_0x5525a7}=_0x11d9dd;if(!_0x5525a7)return;let _0x2d3939,_0x19c3a1,_0x4c60f3,_0x27c116;switch(_0x5525a7['commandName']){case'bulletedList':_0x4c60f3=_0x5525a7['commandParams'][0x0]['forceValue'],_0x27c116=_0x537747(_0x5525a7['commandName']),_0x2d3939=_0x4c60f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x27c116&&_0x5d93af['config']['get']('list.multiBlock')||(_0x2d3939='*Change\x20to:*\x20%0'),_0x19c3a1={'type':'format','content':o(_0x2b9469,_0x2d3939,o(_0x2b9469,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c60f3=_0x5525a7['commandParams'][0x0]['forceValue'],_0x27c116=_0x537747(_0x5525a7['commandName']),_0x2d3939=_0x4c60f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x27c116&&_0x5d93af['config']['get']('list.multiBlock')||(_0x2d3939='*Change\x20to:*\x20%0'),_0x19c3a1={'type':'format','content':o(_0x2b9469,_0x2d3939,o(_0x2b9469,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2d3939='*Indent:*\x20%0',_0x19c3a1={'type':'format','content':o(_0x2b9469,_0x2d3939,o(_0x2b9469,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2d3939=function(_0x33c241){const _0x49290c=_0x33c241['getFirstRange']();let _0x4fd154=_0x49290c['start']['nodeAfter'];for(;_0x4fd154&&_0x49290c['containsItem'](_0x4fd154);){if(_0x4fd154['getAttribute']('listIndent')>0x0)return!0x1;_0x4fd154=_0x4fd154['nextSibling'];}return!0x0;}(_0x11d9dd)?o(_0x2b9469,'*Format:*\x20remove\x20from\x20%0',o(_0x2b9469,function(_0x122aea){return'ELEMENT_'+_0x122aea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x11d9dd))):o(_0x2b9469,'*Outdent:*\x20%0',o(_0x2b9469,'ELEMENT_LIST_ITEM')),_0x19c3a1={'type':'format','content':_0x2d3939};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5525a7['multipleBlocks']&&(_0x2d3939='*Merge:*\x20%0',_0x19c3a1={'type':'deletion','content':o(_0x2b9469,_0x2d3939,o(_0x2b9469,'ELEMENT_LIST_ITEM'))});}return _0x19c3a1;});}}function Te(_0x40392d){let _0x255ef3=_0x40392d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x255ef3;){const _0x3ac198=_0x255ef3['getAttribute']('listItemId');if(!_0x3ac198)return!0x1;if(_0x3ac198==_0x40392d['data']['newValue'])return'newValue';if(_0x3ac198==_0x40392d['data']['oldValue'])return'oldValue';_0x255ef3=_0x255ef3['previousSibling'];}return!0x1;}class Y extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x191f1c=this['editor']['config']['get']('list.properties'),_0x521fb4=this['editor']['plugins']['get']('TrackChangesEditing');_0x191f1c['styles']&&_0x521fb4['enableDefaultAttributesIntegration']('listStyle'),_0x191f1c['reversed']&&_0x521fb4['enableDefaultAttributesIntegration']('listReversed'),_0x191f1c['startIndex']&&_0x521fb4['enableDefaultAttributesIntegration']('listStart');const _0x190e26={'type':'format','content':''};_0x521fb4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ee641=this['editor']['locale'];_0x521fb4['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2ee641,'FORMAT_LIST_REVERSED')),_0x521fb4['descriptionFactory']['registerDescriptionCallback'](_0x27b60d=>{const {data:_0x29009a}=_0x27b60d;if(_0x29009a&&'listReversed'==_0x29009a['key'])return null==_0x29009a['newValue']||0x0==_0x29009a['newValue']&&null==_0x29009a['oldValue']?_0x190e26:void 0x0;}),_0x521fb4['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2ee641,'FORMAT_LIST_START')),_0x521fb4['descriptionFactory']['registerDescriptionCallback'](_0x537441=>{const {data:_0x4599bf}=_0x537441;if(_0x4599bf&&'listStart'==_0x4599bf['key'])return null==_0x4599bf['newValue']||0x1==_0x4599bf['newValue']&&null==_0x4599bf['oldValue']?_0x190e26:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x21581b=>{if(_0x21581b['batch']['isUndo'])return!0x1;let _0x38b04a=!0x1;const _0x41049f=_0x521fb4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c11e2=>{const _0x553bd1=_0x521fb4['_getAttributeKey'](_0x2c11e2);return'listStart'==_0x553bd1||'listReversed'==_0x553bd1;});for(const _0x133a51 of _0x41049f){const _0x2e538d=_0x133a51['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2e538d||'customNumbered'==_0x2e538d)continue;_0x521fb4['_findSuggestions'](_0x133a51['getFirstRange'](),'attribute')['find'](_0x2a7dda=>'listType'==_0x521fb4['_getAttributeKey'](_0x2a7dda['suggestion']))||(_0x21581b['removeMarker'](_0x133a51['getFirstMarker']()),_0x38b04a=!0x0);}return _0x38b04a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2c1196){const _0x1d52eb=this['editor']['locale'],{data:_0x4e8cfc}=_0x2c1196,_0x7a1b2={'type':'format','content':''};if(!_0x4e8cfc||'listStyle'!=_0x4e8cfc['key'])return;if(!_0x4e8cfc['oldValue'])return'default'==_0x4e8cfc['newValue']?_0x7a1b2:{'type':'format','content':''+o(_0x1d52eb,'*Set\x20format:*\x20%0',o(_0x1d52eb,this['_getTranslationKeyForListStyle'](_0x4e8cfc['newValue'])))};if(!_0x4e8cfc['newValue']){if('default'==_0x4e8cfc['oldValue'])return _0x7a1b2;let _0x5c0372=_0x2c1196['head'];for(;_0x5c0372;){if(_0x5c0372['data']&&'listType'==_0x5c0372['data']['key']&&_0x5c0372['data']['newValue'])return _0x7a1b2;_0x5c0372=_0x5c0372['next'];}return{'type':'format','content':''+o(_0x1d52eb,'*Remove\x20format:*\x20%0',o(_0x1d52eb,this['_getTranslationKeyForListStyle'](_0x4e8cfc['oldValue'])))};}if('default'!=_0x4e8cfc['newValue'])return{'type':'format','content':''+o(_0x1d52eb,'*Set\x20format:*\x20%0',o(_0x1d52eb,this['_getTranslationKeyForListStyle'](_0x4e8cfc['newValue'])))};let _0x26db93=_0x2c1196['head'];for(;_0x26db93;){if(_0x26db93['data']&&'listType'==_0x26db93['data']['key']&&_0x26db93['data']['newValue']&&_0x26db93['data']['oldValue'])return _0x7a1b2;_0x26db93=_0x26db93['next'];}return{'type':'format','content':o(_0x1d52eb,'*Set\x20format:*\x20%0',o(_0x1d52eb,'ELEMENT_'+_0x2c1196['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x450f94=this['editor'],_0x295c33=_0x450f94['locale'];_0x450f94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd8e7=>{if('formatBlock'!=_0x3bd8e7['type'])return;const {data:_0x499383}=_0x3bd8e7;if(!_0x499383)return;let _0x4cc2aa,_0x973e98;switch(_0x499383['commandName']){case'listStyle':_0x4cc2aa='*Change\x20to:*\x20%0',_0x973e98={'type':'format','content':o(_0x295c33,_0x4cc2aa,o(_0x295c33,this['_getTranslationKeyForListStyle'](_0x499383['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4cc2aa=_0x499383['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x973e98={'type':'format','content':o(_0x295c33,_0x4cc2aa)};break;case'listStart':_0x4cc2aa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x973e98={'type':'format','content':o(_0x295c33,_0x4cc2aa,_0x499383['commandParams'][0x0]['startIndex'])};}return _0x973e98;});}['_getTranslationKeyForListStyle'](_0x5e8fef){return'ELEMENT_'+function(_0x2c4658){if(ye['includes'](_0x2c4658))return'bulleted';if(Se['includes'](_0x2c4658))return'numbered';return null;}(_0x5e8fef)['toUpperCase']()+'_LIST_'+_0x5e8fef['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x2aad9b{['afterInit'](){const _0x237f6d=this['editor'];_0x237f6d['commands']['get']('emoji')&&_0x237f6d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x2aad9b{static get['requires'](){return[_0x2d2874];}['init'](){const _0x29e5f0=this['editor'],_0x146e04=_0x29e5f0['plugins']['get']('TrackChangesEditing'),_0x2705c5=_0x29e5f0['commands']['get']('enter');_0x146e04['enableCommand']('enter',()=>{_0x29e5f0['model']['change'](_0x27ec9b=>{const _0xd7208f=_0x29e5f0['model']['document']['selection'],_0x329e39=_0xd7208f['getFirstPosition'](),_0xda32ae=_0x4c3029['fromRange'](_0xd7208f['getFirstRange']());if(_0x2705c5['enterBlock'](_0x27ec9b)){const _0x3491bb=_0x29e5f0['model']['createPositionAt'](_0x329e39['parent']['nextSibling'],0x0),_0x1ee507=_0x27ec9b['createRange'](_0x329e39,_0x3491bb);_0x146e04['markInsertion'](_0x1ee507);}else _0x27ec9b['setSelection'](_0x27ec9b['createRange'](_0xda32ae['end']));_0xda32ae['detach'](),_0x2705c5['fire']('afterExecute',{'writer':_0x27ec9b});});});}}class nt extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x321d13=this['editor']['plugins']['get']('TrackChangesEditing');_0x321d13['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x321d13['enableCommand']('findNext'),_0x321d13['enableCommand']('findPrevious'),_0x321d13['enableCommand']('replace'),_0x321d13['enableCommand']('replaceAll');}['handleFindCommand'](_0x26890e,_0x108274,_0x404f3b={}){const _0x163941=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26890e(_0x19f0c0=>{let _0x4be791=('string'==typeof _0x108274?_0x163941['findByTextCallback'](_0x108274,_0x404f3b):_0x108274)(_0x19f0c0);Array['isArray'](_0x4be791)&&(_0x4be791={'results':_0x4be791,'searchText':'string'==typeof _0x108274?_0x108274:''});const _0x45b128=_0x4be791['results']['filter'](_0x144dcf=>!0x1===this['_isInDeletionRange'](_0x144dcf,_0x19f0c0['item']));return{..._0x4be791,'results':_0x45b128};},_0x404f3b);}['_isInDeletionRange'](_0x1ab406,_0x26605c){const _0x4819bf=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26605c,_0x1ab406['start']),this['editor']['model']['createPositionAt'](_0x26605c,_0x1ab406['end']));for(const _0x4027a8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4819bf['getIntersection'](_0x4027a8['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x2aad9b{['afterInit'](){const _0x2c363d=this['editor']['locale'],_0x36ce27=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xa21732,commandName:_0x38294f}of eo)this['editor']['plugins']['has'](_0xa21732)&&_0x36ce27['enableDefaultAttributesIntegration'](_0x38294f);_0x36ce27['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2c363d,'FORMAT_FONT_SIZE')),_0x36ce27['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2c363d,'FORMAT_FONT_FAMILY')),_0x36ce27['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2c363d,'FORMAT_FONT_COLOR')),_0x36ce27['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2c363d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40606f=this['editor'],_0xa0e8d=_0x40606f['locale'];_0x40606f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x424af3=>{const _0x3a9082=_0xa0e8d['t'];if('formatInline'!=_0x424af3['type'])return;const {data:_0x545b11}=_0x424af3;if(null!=_0x545b11){if('fontSize'==_0x545b11['commandName']){const _0x370fc5=_0x545b11['commandParams'][0x0]['value'];if(_0x370fc5){const _0x28377f=_0x3a9082(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xcc9ef2=>_0xcc9ef2['model']==_0x370fc5)['title'])['toLowerCase']();return{'type':'format','content':o(_0xa0e8d,'*Set\x20font\x20size:*\x20%0',_0x28377f)};}return{'type':'format','content':o(_0xa0e8d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x545b11['commandName']){const _0x86b704=_0x545b11['commandParams'][0x0]['value'];return _0x86b704?{'type':'format','content':o(_0xa0e8d,'*Set\x20font\x20family:*\x20%0',_0x86b704)}:{'type':'format','content':o(_0xa0e8d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x545b11['commandName']){const _0x297946=_0x545b11['commandParams'][0x0]['value'];if(_0x297946){const _0x170df4=_0x239a39(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1591ae=>_0x1591ae['model']==_0x297946);let _0x4af341=_0x297946,_0x28bc96='';return _0x170df4&&(_0x4af341=_0x170df4['label'],_0x28bc96=_0x3a9082(_0x4af341)['toLowerCase']()),{'type':'format','content':o(_0xa0e8d,'*Set\x20font\x20color:*\x20%0',_0x28bc96)['trim'](),'color':{'value':_0x297946,'title':_0x28bc96||_0x4af341}};}return{'type':'format','content':o(_0xa0e8d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x545b11['commandName']){const _0x42aee5=_0x545b11['commandParams'][0x0]['value'];if(_0x42aee5){const _0x5cf5d4=_0x239a39(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x16432f=>_0x16432f['model']==_0x42aee5);let _0x5baa70=_0x42aee5,_0x257c8a='';return _0x5cf5d4&&(_0x5baa70=_0x5cf5d4['label'],_0x257c8a=_0x3a9082(_0x5baa70)['toLowerCase']()),{'type':'format','content':o(_0xa0e8d,'*Set\x20font\x20background\x20color:*\x20%0',_0x257c8a)['trim'](),'color':{'value':_0x42aee5,'title':_0x257c8a||_0x5baa70}};}return{'type':'format','content':o(_0xa0e8d,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2aad9b{['afterInit'](){const {plugins:_0x2f66a5}=this['editor'];_0x2f66a5['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2f66a5['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x215e80,plugins:_0x5eff3f,commands:_0x1cfafc}=this['editor'],_0x25ab12=_0x5eff3f['get']('TrackChangesEditing');_0x1cfafc['get']('footnotesStyle')&&_0x25ab12['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1cfafc['get']('footnotesStart')&&_0x25ab12['enableDefaultAttributesIntegration']('footnotesStart'),_0x25ab12['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x215e80,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x25ab12['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x215e80,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x3bf887=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x40d512,commands:_0x311a1b}=this['editor'];_0x311a1b['get']('insertFootnote')&&_0x3bf887['enableCommand']('insertFootnote'),_0x3bf887['descriptionFactory']['registerElementLabel']('footnoteRef',_0x26ab7b=>o(_0x40d512,'ELEMENT_FOOTNOTE_REF',_0x26ab7b)),_0x3bf887['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5f0c5a=>o(_0x40d512,'ELEMENT_FOOTNOTE_DEFINITION',_0x5f0c5a)),_0x3bf887['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x50e55a=>o(_0x40d512,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x50e55a));}}class st extends _0x2aad9b{['afterInit'](){const _0x2169f8=this['editor'],_0x247698=_0x2169f8['plugins']['get']('TrackChangesEditing'),_0x5b1ea2=_0x2169f8['commands']['get']('copyFormat'),_0x2c1456=_0x2169f8['commands']['get']('pasteFormat');_0x5b1ea2&&_0x2c1456&&(_0x247698['enableDefaultAttributesIntegration']('pasteFormat'),_0x247698['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xfc0a0e=this['editor'],_0x20f548=_0xfc0a0e['locale'];_0xfc0a0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x710ede=>{if('formatBlock'!=_0x710ede['type']&&'formatInline'!=_0x710ede['type'])return;const {data:_0x1678f8}=_0x710ede;if(_0x1678f8&&'pasteFormat'===_0x1678f8['commandName']){const _0xc2ea30=[],_0x5292ad=_0x1678f8['commandParams'][0x0];for(const [_0x23e64f,_0x584c68]of Object['entries'](_0x5292ad))_0xc2ea30['push'](ro(_0xfc0a0e,_0x23e64f,_0x584c68));return _0xc2ea30['length']?{'type':'format','content':o(_0x20f548,'*Set\x20format\x20to:*\x20%0',_0xc2ea30['join'](',\x20'))}:{'type':'format','content':o(_0x20f548,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x35ea54,_0x421945,_0x4d5336){const _0x52199f=_0x35ea54['locale']['t'],_0x187dd7=_0x421945['split'](/(?=[A-Z])/)['join']('\x20'),_0x415267=_0x52199f(_0x187dd7['charAt'](0x0)['toUpperCase']()+_0x187dd7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4d5336)return _0x415267;if('fontColor'===_0x421945||'fontBackgroundColor'===_0x421945){const _0x12ae29=_0x239a39(_0x35ea54['config']['get']('fontColor.colors'))['find'](_0x20a371=>_0x20a371['model']==_0x4d5336);return _0x415267+'\x20('+(_0x12ae29?_0x52199f(_0x12ae29['label'])['toLowerCase']():_0x4d5336)+')';}if('fontSize'===_0x421945&&isNaN(parseFloat(_0x4d5336))){const _0x531e4f=_0x35ea54['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x35ea54['config']['get']('fontSize.options'))['find'](_0x495ff6=>_0x495ff6['model']==_0x4d5336);return _0x415267+'\x20('+(_0x531e4f?_0x52199f(_0x531e4f['title'])['toLowerCase']():_0x4d5336)+')';}return _0x415267+'\x20('+_0x4d5336+')';}class ot extends _0x2aad9b{['_headingOptions'];['afterInit'](){const _0x154857=this['editor'];if(!_0x154857['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x154857['config']['get']('heading.options');const _0x476907=_0x154857['locale'],_0x3958c9=_0x154857['plugins']['get']('TrackChangesEditing');_0x3958c9['enableDefaultAttributesIntegration']('heading');for(const _0x80259e of this['_headingOptions'])'paragraph'!=_0x80259e['model']&&_0x3958c9['descriptionFactory']['registerElementLabel'](_0x80259e['model'],_0x30c102=>{const _0xef1f51=this['_getHeadingLevel'](_0x80259e['model']);return null!==_0xef1f51?_0x215346(_0x30c102,_0xef1f51):_0x51cfe7(_0x30c102,_0x80259e['title']);});function _0x215346(_0x24ebb5,_0x1d7450){return o(_0x476907,'ELEMENT_HEADING',[_0x24ebb5,_0x1d7450]);}function _0x51cfe7(_0x535973,_0x46ae74){return o(_0x476907,'ELEMENT_HEADING_CUSTOM',[_0x535973,_0x46ae74]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x203511=this['editor'],_0x505fb6=_0x203511['locale'];function _0x3769c0(_0x1df993,_0x5d5ded){return o(_0x505fb6,'ELEMENT_HEADING_CUSTOM',[_0x1df993,_0x5d5ded]);}_0x203511['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cd244=>{if('formatBlock'!=_0x2cd244['type'])return;const {data:_0x16b346}=_0x2cd244;if(_0x16b346&&'heading'==_0x16b346['commandName']){const _0x59d19b=_0x16b346['commandParams'][0x0]['value'],_0x3b5702=this['_getHeadingLevel'](_0x59d19b);if(null!==_0x3b5702)return{'type':'format','content':o(_0x505fb6,'*Change\x20to:*\x20%0',(_0x15d5b7=0x1,_0x2769c1=_0x3b5702,o(_0x505fb6,'ELEMENT_HEADING',[_0x15d5b7,_0x2769c1])))};const _0x2da4cb=this['_headingOptions']['find'](_0x59705a=>_0x59705a['model']===_0x59d19b)['title'];return{'type':'format','content':o(_0x505fb6,'*Change\x20to:*\x20%0',_0x3769c0(0x1,_0x2da4cb))};}var _0x15d5b7,_0x2769c1;});}['_getHeadingLevel'](_0x518685){const _0x2c4ba8=_0x518685['match'](/^heading(\d+)/);if(_0x2c4ba8)return _0x2c4ba8[0x1];const _0x2b32b2=this['_headingOptions']?.['find'](_0x49d586=>_0x49d586['model']==_0x518685);if(_0x2b32b2&&_0x2b32b2['view']){const _0x3df066=_0x2b32b2['view'],_0x5bfe21=(_0x3df066['name']??_0x3df066)['match'](/^h(\d+)/);if(_0x5bfe21)return _0x5bfe21[0x1];}return null;}}class rt extends _0x2aad9b{['afterInit'](){const _0x400d2b=this['editor'];if(!_0x400d2b['plugins']['has']('HighlightEditing'))return;const _0x5c99f0=_0x400d2b['plugins']['get']('TrackChangesEditing'),_0x3f2414=_0x400d2b['locale'];_0x5c99f0['enableDefaultAttributesIntegration']('highlight'),_0x5c99f0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3f2414,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x708089=this['editor'],_0x59431e=_0x708089['locale'];_0x708089['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30a131=>{if('formatInline'!=_0x30a131['type'])return;const {data:_0x480f3f}=_0x30a131;if(_0x480f3f&&'highlight'==_0x480f3f['commandName']){const _0x491821=_0x59431e['t'],_0x4be7d3=_0x480f3f['commandParams'][0x0]['value'];if(_0x4be7d3){const _0x51c7e3=_0x708089['config']['get']('highlight.options')['find'](_0x4437a0=>_0x4437a0['model']==_0x4be7d3),_0x5e2f99=_0x491821(_0x51c7e3['title'])['toLowerCase']();return{'type':'format','content':o(_0x59431e,'*Set\x20highlight:*\x20%0',_0x5e2f99),'color':{'value':_0x51c7e3['color'],'title':_0x51c7e3['title']}};}return{'type':'format','content':o(_0x59431e,'*Remove\x20highlight*',o(_0x59431e,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x2aad9b{['afterInit'](){const _0x5c7de3=this['editor'];if(!_0x5c7de3['plugins']['has']('HorizontalLineEditing'))return;_0x5c7de3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x370e5b=_0x5c7de3['plugins']['get']('TrackChangesEditing'),_0xfb284b=_0x5c7de3['locale'];_0x370e5b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2e7d77=>o(_0xfb284b,'ELEMENT_HORIZONTAL_LINE',_0x2e7d77));}}class ct extends _0x2aad9b{['afterInit'](){const _0xc935f6=this['editor'];if(!_0xc935f6['plugins']['has']('HtmlEmbed'))return;const _0x541390=_0xc935f6['plugins']['get']('TrackChangesEditing'),_0x25ccfd=_0xc935f6['locale'];_0x541390['descriptionFactory']['registerElementLabel']('rawHtml',_0x170913=>o(_0x25ccfd,'ELEMENT_HTML_EMBED',_0x170913)),_0x541390['enableDefaultAttributesIntegration']('htmlEmbed'),_0x541390['descriptionFactory']['registerDescriptionCallback'](_0x5aaa78=>{if('attribute'!=_0x5aaa78['type'])return;const {data:_0x4c458a}=_0x5aaa78;if(_0x4c458a&&'value'==_0x4c458a['key']&&_0x5aaa78['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x75e454=o(_0x25ccfd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25ccfd,'*Change\x20%0\x20content*',_0x75e454)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32427a=this['editor'],_0x3f4af7=_0x32427a['locale'];_0x32427a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57b17b=>{if('formatBlock'!=_0x57b17b['type'])return;const {data:_0x33b96d}=_0x57b17b;if(_0x33b96d&&'htmlEmbed'==_0x33b96d['commandName']){const _0x163653=o(_0x3f4af7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f4af7,'*Change\x20%0\x20content*',_0x163653)};}});}}class ut extends _0x2aad9b{['afterInit'](){const _0x187a2d=this['editor'];if(!_0x187a2d['plugins']['has']('ImageEditing'))return;const _0x958c85=_0x187a2d['plugins']['get']('TrackChangesEditing'),_0xcd3e9f=_0x187a2d['plugins']['get']('ImageUtils'),_0x4e88f8=_0x187a2d['locale'];_0x958c85['enableCommand']('insertImage'),_0x958c85['descriptionFactory']['registerElementLabel']('imageBlock',_0x288681=>o(_0x4e88f8,'ELEMENT_IMAGE',_0x288681)),_0x958c85['descriptionFactory']['registerElementLabel']('imageInline',_0x81b473=>o(_0x4e88f8,'ELEMENT_INLINE_IMAGE',_0x81b473)),_0x958c85['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4e88f8,'ELEMENT_CAPTION')),_0x187a2d['plugins']['has']('ImageUploadEditing')&&_0x958c85['enableCommand']('uploadImage'),_0x187a2d['plugins']['has']('ImageBlockEditing')&&_0x187a2d['plugins']['has']('ImageInlineEditing')&&(_0x958c85['enableCommand']('imageTypeInline',(_0xcf349a,_0x1669c5)=>{const _0x229fbc=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']);_0x187a2d['model']['change'](()=>{_0x958c85['markBlockFormat'](_0x229fbc,{'commandName':'imageTypeInline','commandParams':[_0x1669c5]},[],'convertBlockImageToInline');});}),_0x958c85['enableCommand']('imageTypeBlock',(_0x4150e7,_0x4bc17e)=>{_0x187a2d['model']['change'](_0x523223=>{let _0x44f220=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']),_0x55df55=_0x523223['createRangeOn'](_0x44f220);const _0x387efc=_0x224583['fromPosition'](_0x55df55['start'],'toPrevious'),_0xbe06f1=_0x224583['fromPosition'](_0x55df55['end'],'toNext');_0x958c85['forceDefaultExecution'](()=>_0x4150e7(_0x4bc17e)),_0x44f220=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']),_0x55df55=_0x523223['createRangeOn'](_0x44f220);const _0x5151f6=_0x523223['createRange'](_0x387efc,_0xbe06f1);_0x387efc['detach'](),_0xbe06f1['detach'](),_0x958c85['markBlockFormat'](_0x44f220,{'commandName':'imageTypeInline','commandParams':[_0x4bc17e]},[],'convertInlineImageToBlock'),_0x5151f6['start']['isBefore'](_0x55df55['start'])&&_0x958c85['markInsertion'](_0x523223['createRange'](_0x5151f6['start'],_0x55df55['start']),'convertInlineImageToBlock'),_0x55df55['end']['isBefore'](_0x5151f6['end'])&&_0x958c85['markInsertion'](_0x523223['createRange'](_0x55df55['end'],_0x5151f6['end']),'convertInlineImageToBlock');});}),_0x958c85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x958c85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x958c85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x958c85['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x958c85['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x958c85['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x45ca5b])=>{const _0x58f84c=_0x958c85['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3c0e08=_0x45ca5b['start'],_0x1cba91=_0x45ca5b['end'];const _0x43979a=_0x187a2d['model']['schema']['getNearestSelectionRange'](_0x3c0e08,'backward'),_0x18ddda=_0x187a2d['model']['schema']['getNearestSelectionRange'](_0x1cba91,'forward');_0x43979a['isCollapsed']&&(_0x3c0e08=_0x43979a['start']),_0x18ddda['isCollapsed']&&(_0x1cba91=_0x18ddda['end']),_0x58f84c([_0x187a2d['model']['createRange'](_0x3c0e08,_0x1cba91)]);}),_0x958c85['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf9093e),_0x958c85['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf9093e)),_0x187a2d['plugins']['has']('ImageCaptionEditing')&&(_0x958c85['enableCommand']('toggleImageCaption',(_0x54dfe4,_0x159e2c)=>{const _0x252ad9=_0x187a2d['plugins']['get']('ImageCaptionUtils');let _0x564806=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']),_0x89c956=_0x252ad9['getCaptionFromImageModelElement'](_0x564806);_0x187a2d['model']['change'](()=>{if(_0x89c956)return void _0x958c85['markDeletion'](_0x187a2d['model']['createRangeOn'](_0x89c956));const _0x56f854=_0xcd3e9f['isBlockImage'](_0x564806);_0x54dfe4(_0x159e2c),_0x564806=_0xcd3e9f['getClosestSelectedImageElement'](_0x187a2d['model']['document']['selection']),_0x89c956=_0x252ad9['getCaptionFromImageModelElement'](_0x564806),_0x958c85['markInsertion'](_0x187a2d['model']['createRangeOn'](_0x89c956),_0x56f854?null:'imageCaption');});}),_0x958c85['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf9093e));const _0x5610a4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3dd818(_0x3c07cd,_0x4c547b){const _0x5e6341=_0x5610a4['findIndex'](({type:_0x2a01bb,subType:_0x4f5006})=>_0x3c07cd['type']==_0x2a01bb&&_0x3c07cd['subType']==_0x4f5006),_0x16d787=_0x5610a4['findIndex'](({type:_0x3e80a1,subType:_0x3d2605})=>_0x4c547b['type']==_0x3e80a1&&_0x4c547b['subType']==_0x3d2605);if(_0x5e6341<0x0||_0x16d787<0x0)return!0x1;const _0x311677=_0x3c07cd['getFirstRange'](),_0x166572=_0x4c547b['getFirstRange']();if((0x0==_0x5e6341||0x1==_0x5e6341)&&0x2==_0x16d787&&_0x311677['isIntersecting'](_0x166572))return!0x0;if(0x2==_0x5e6341&&0x3==_0x16d787){const _0x71866b=_0x958c85['_findSuggestions'](_0x311677,'insertion')['filter'](({suggestion:_0x1a250b,meta:_0x79c5a9})=>_0x79c5a9['isOwn']&&'convertInlineImageToBlock'==_0x1a250b['subType']);if(_0x71866b['length']>0x1&&_0x166572['end']['isEqual'](_0x311677['start']))return!0x0;if(0x1==_0x71866b['length']&&(_0x311677['start']['isEqual'](_0x166572['end'])||_0x311677['end']['isEqual'](_0x166572['start'])))return!0x0;}if(0x3==_0x5e6341&&0x3==_0x16d787&&_0x311677['start']['isBefore'](_0x166572['start'])){const _0x7a0ec=_0x311677['end']['nodeAfter'],_0x5b7382=_0x166572['start']['nodeBefore'];return _0xcd3e9f['isBlockImage'](_0x7a0ec)&&_0x7a0ec===_0x5b7382;}return!0x1;}function _0xf9093e(_0x32b4bd,_0xf78e74){return _0x3dd818(_0x32b4bd,_0xf78e74)?[_0x32b4bd,_0xf78e74]:_0x3dd818(_0xf78e74,_0x32b4bd)?[_0xf78e74,_0x32b4bd]:null;}_0x187a2d['plugins']['has']('ImageResize')&&(_0x958c85['enableDefaultAttributesIntegration']('resizeImage'),_0x958c85['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4e88f8,'FORMAT_IMAGE_SIZE'))),_0x187a2d['plugins']['has']('ImageTextAlternativeEditing')&&_0x958c85['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x187a2d['plugins']['has']('PictureEditing')&&_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x44ea8e=>{if('attribute'!=_0x44ea8e['type'])return;const {data:_0x43a35e}=_0x44ea8e;return _0x43a35e&&'sources'==_0x43a35e['key']?{'type':'format','content':''}:void 0x0;}),_0x187a2d['plugins']['has']('ImageSizeAttributes')&&_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x16be3b=>{if('attribute'!=_0x16be3b['type'])return;const {data:_0x5e4157}=_0x16be3b;return!_0x5e4157||'width'!=_0x5e4157['key']&&'height'!=_0x5e4157['key']?void 0x0:{'type':'format','content':''};}),_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x119c0f=>{if(!!_0x5610a4['find'](({type:_0x3a51ae,subType:_0x463684})=>_0x119c0f['type']==_0x3a51ae&&_0x119c0f['subType']==_0x463684))return _0x119c0f['previous']?{}:void 0x0;}),_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x4f989f=>{if('insertion'==_0x4f989f['type']||'deletion'==_0x4f989f['type']){const _0x52490b=_0x4f989f['getContainedElement']();if(_0x52490b&&_0x52490b['is']('element','caption'))return{'type':'insertion'==_0x4f989f['type']?'addObject':'removeObject','element':_0x52490b,'quantity':0x1};}}),_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x3468b0=>'formatBlock'==_0x3468b0['type']&&'convertInlineImageToBlock'==_0x3468b0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3468b0['type']&&'convertBlockImageToInline'==_0x3468b0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x958c85['descriptionFactory']['registerDescriptionCallback'](_0x54791f=>{if('attribute'!=_0x54791f['type'])return;const {data:_0x15029d}=_0x54791f;if(!_0x15029d||'alt'!=_0x15029d['key'])return;const _0x54c1dc=_0x15029d['newValue'];return _0x54c1dc?{'type':'format','content':o(_0x4e88f8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54c1dc+'\x22')}:{'type':'format','content':o(_0x4e88f8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30727f=this['editor'],_0x188263=_0x30727f['locale'];_0x30727f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e4804=>{if('formatBlock'!=_0x4e4804['type']&&'formatInline'!=_0x4e4804['type'])return;const {data:_0x41eec2}=_0x4e4804;if(_0x41eec2){if('imageTextAlternative'==_0x41eec2['commandName']){const _0x43c63e=_0x41eec2['commandParams'][0x0]['newValue'];return _0x43c63e?{'type':'format','content':o(_0x188263,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43c63e+'\x22')}:{'type':'format','content':o(_0x188263,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41eec2['commandName']){const _0x18a2d6=_0x41eec2['commandParams'][0x0]['width'];return _0x18a2d6?{'type':'format','content':o(_0x188263,'*Set\x20image\x20width:*\x20%0',_0x18a2d6)}:{'type':'format','content':o(_0x188263,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd0adda=this['editor']['locale'],_0x148c38=this['editor']['plugins']['get']('TrackChangesEditing');_0x148c38['enableDefaultAttributesIntegration']('replaceImageSource'),_0x148c38['descriptionFactory']['registerDescriptionCallback'](_0x2d8d96=>{if('attribute'!=_0x2d8d96['type'])return;const {data:_0x2ca789}=_0x2d8d96;return _0x2ca789&&'src'==_0x2ca789['key']?_0x2ca789['newValue']&&_0x2ca789['oldValue']?{'type':'format','content':o(_0xd0adda,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x205378=this['editor']['plugins']['get']('TrackChangesEditing');_0x205378['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x205378['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x205378['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x205378['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aebc5=this['editor'],_0x2b0c5b=_0x3aebc5['locale'];_0x3aebc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45c1ed=>{if('formatBlock'!=_0x45c1ed['type']&&'formatInline'!=_0x45c1ed['type'])return;const {data:_0x1c2785}=_0x45c1ed;if(!_0x1c2785||'replaceImageSource'!=_0x1c2785['commandName'])return;return{'type':'format','content':o(_0x2b0c5b,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x2aad9b{['afterInit'](){const _0x367dae=this['editor'];if(!_0x367dae['plugins']['has']('ImageStyleEditing'))return;const _0x26ec0b=_0x367dae['plugins']['get']('TrackChangesEditing'),_0x1ff5ef=_0x367dae['plugins']['get']('ImageUtils'),_0x49b754={};_0x26ec0b['enableCommand']('imageStyle',(_0x2f887e,_0x4e5bf4)=>{const _0x52074f=_0x367dae['plugins']['get']('Users')['me'],_0x10cfd3=_0x367dae['commands']['get']('imageStyle');let _0x1bd481=_0x1ff5ef['getClosestSelectedImageElement'](_0x367dae['model']['document']['selection']),_0x3ad3b1=_0x367dae['model']['createRangeOn'](_0x1bd481),_0x33b72d=_0x10cfd3['value'];if(_0x33b72d==_0x4e5bf4['value'])return;const _0x22e439={'commandName':'imageStyle','commandParams':[_0x4e5bf4],'formatGroupId':_0xcdc81a()};_0x367dae['model']['change'](()=>{if(_0x26ec0b['getSuggestions']()['filter'](_0x5d6a04=>_0x5d6a04['isInContent']&&_0x52074f==_0x5d6a04['author']&&('formatBlock'==_0x5d6a04['type']||'formatInline'==_0x5d6a04['type'])&&('imageStylePreApply'==_0x5d6a04['subType']||'imageStylePostApply'==_0x5d6a04['subType'])&&_0x5d6a04['getFirstRange']()['isEqual'](_0x3ad3b1))['forEach'](_0x3529a5=>_0x26ec0b['discardSuggestion'](_0x3529a5['head'])),_0x1bd481=_0x1ff5ef['getClosestSelectedImageElement'](_0x367dae['model']['document']['selection']),_0x3ad3b1=_0x367dae['model']['createRangeOn'](_0x1bd481),_0x10cfd3['refresh'](),_0x367dae['commands']['get']('imageTypeInline')['refresh'](),_0x367dae['commands']['get']('imageTypeBlock')['refresh'](),_0x33b72d=_0x10cfd3['value'],_0x33b72d!=_0x4e5bf4['value'])return _0x1ff5ef['isInlineImage'](_0x1bd481)&&_0x10cfd3['shouldConvertImageType'](_0x4e5bf4['value'],_0x1bd481)?(_0x2f887e({..._0x4e5bf4,'setImageSizes':!0x1}),_0x1bd481=_0x1ff5ef['getClosestSelectedImageElement'](_0x367dae['model']['document']['selection']),void _0x26ec0b['markBlockFormat'](_0x1bd481,{..._0x22e439,'commandReversedParams':[{'value':_0x33b72d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ff5ef['isBlockImage'](_0x1bd481)?_0x26ec0b['markBlockFormat'](_0x1bd481,_0x22e439,[],'imageStylePostApply'):_0x26ec0b['markInlineFormat'](_0x3ad3b1,_0x22e439,'imageStylePostApply'));});});for(const _0x3a57f7 of _0x367dae['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x49b754[_0x3a57f7['name']]=_0x3a57f7['title']['toLowerCase']();_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x59fdfa])=>{_0x1ff5ef['setImageNaturalSizeAttributes'](_0x59fdfa['getContainedElement']());}),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x56b629,_0x59d71d)=>{_0x26ec0b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x56b629,{'commandName':_0x59d71d['commandName'],'commandParams':_0x59d71d['commandReversedParams']});}),_0x26ec0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4d7bde,_0x25c723){if(_0x439a87(_0x4d7bde,_0x25c723))return[_0x4d7bde,_0x25c723];if(_0x439a87(_0x25c723,_0x4d7bde))return[_0x25c723,_0x4d7bde];return null;});const _0x5d3b63=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x439a87(_0x270db5,_0x4f199e){const _0x5805e0=_0x5d3b63['findIndex'](({type:_0x5f5814,subType:_0x506278})=>_0x270db5['type']==_0x5f5814&&_0x270db5['subType']==_0x506278),_0x444351=_0x5d3b63['findIndex'](({type:_0x3495ff,subType:_0xa6300f})=>_0x4f199e['type']==_0x3495ff&&_0x4f199e['subType']==_0xa6300f);if(_0x5805e0<0x0||_0x444351<0x0)return!0x1;const _0x5f158e=_0x270db5['getFirstRange'](),_0x4cf8ba=_0x4f199e['getFirstRange']();if((0x0==_0x5805e0||0x1==_0x5805e0)&&0x2==_0x444351&&_0x5f158e['isIntersecting'](_0x4cf8ba))return!0x0;if(0x2==_0x5805e0&&0x3==_0x444351){const _0x5af466=_0x26ec0b['_findSuggestions'](_0x5f158e,'insertion')['filter'](({suggestion:_0x332cb7,meta:_0x2fe3da})=>_0x2fe3da['isOwn']&&'convertInlineImageToBlock'==_0x332cb7['subType']);if(_0x5af466['length']>0x1&&_0x4cf8ba['end']['isEqual'](_0x5f158e['start']))return!0x0;if(0x1==_0x5af466['length']&&(_0x5f158e['start']['isEqual'](_0x4cf8ba['end'])||_0x5f158e['end']['isEqual'](_0x4cf8ba['start'])))return!0x0;}if(0x3==_0x5805e0&&0x3==_0x444351&&_0x5f158e['start']['isBefore'](_0x4cf8ba['start'])){const _0x41fa49=_0x5f158e['end']['nodeAfter'],_0x318483=_0x4cf8ba['start']['nodeBefore'];return _0x1ff5ef['isBlockImage'](_0x41fa49)&&_0x41fa49===_0x318483;}return!0x1;}_0x367dae['model']['document']['registerPostFixer'](()=>{let _0x447889=!0x1;const _0x198f30=Array['from'](_0x367dae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2456f4,data:_0x13797a}of _0x198f30){const {group:_0x1928ef,type:_0x5a6177,subType:_0x1b576a,id:_0x5091a5}=_0x26ec0b['_splitMarkerName'](_0x2456f4);if('suggestion'==_0x1928ef&&_0x26ec0b['hasSuggestion'](_0x5091a5)){if('formatBlock'==_0x5a6177&&('imageStylePreApply'==_0x1b576a||'imageStylePostApply'==_0x1b576a)){const _0x6bfc2e=_0x26ec0b['getSuggestion'](_0x5091a5);if(_0x13797a['newRange']){const _0x36ae09=_0x6bfc2e['getFirstRange']()['getContainedElement']();if(_0x1ff5ef['isBlockImage'](_0x36ae09))continue;_0x26ec0b['discardSuggestion'](_0x6bfc2e),_0x447889=!0x0;}}if('insertion'==_0x5a6177&&'imageCaption'==_0x1b576a&&!_0x13797a['newRange']){const _0x2691af=_0x26ec0b['getSuggestion'](_0x5091a5);_0x2691af['next']&&_0x2691af['next']['isInContent']&&(_0x26ec0b['discardSuggestion'](_0x2691af['next']),_0x447889=!0x0);}}}return _0x447889;}),this['_registerLegacyDescription'](_0x49b754);}['_registerLegacyDescription'](_0x5ec931){const _0x169596=this['editor'],_0x270386=_0x169596['locale'];_0x169596['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e100=>{if('formatBlock'!=_0x47e100['type']&&'formatInline'!=_0x47e100['type'])return;const {data:_0x30ac22}=_0x47e100;if(!_0x30ac22||'imageStyle'!=_0x30ac22['commandName'])return;const _0x3630fd=_0x30ac22['commandParams'][0x0]['value'];return _0x5b82ff('side'===_0x3630fd?o(_0x270386,'FORMAT_SIDE_IMAGE'):_0x5ec931[_0x3630fd]||_0x3630fd);function _0x5b82ff(_0x52eeb1){return{'type':'format','content':o(_0x270386,'*Format:*\x20%0',_0x52eeb1)};}});}}class lt extends _0x2aad9b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x762285){super(_0x762285),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x44d287=this['editor'],_0x49bc41=_0x44d287['commands']['get']('importWord'),_0x30d8ac=_0x44d287['commands']['get']('trackChanges');_0x49bc41&&(_0x49bc41['on']('execute',(_0x52c409,[,_0x26dd29])=>{this['_trackChangesValueDuringImport']=_0x30d8ac['value'],_0x26dd29['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49bc41,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49bc41,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x30d8ac['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x44d287['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xff4c3c,_0x1da314){const {suggestions:_0x4d4b03}=_0x1da314,_0x4e5f5b=this['editor']['commands']['get']('trackChanges'),_0xee58f6=_0x4e5f5b['value'];this['_trackChangesValueDuringImport']!==_0xee58f6&&(_0x4e5f5b['execute'](),this['_trackChangesExecuted']=!0x0),_0x4d4b03&&_0x4d4b03['forEach'](({id:_0x50840c,type:_0x364cfe,author:_0x43ff70,created_at:_0x44ac34})=>{const _0x25b5e8={'id':_0x50840c,'type':_0x364cfe,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x43ff70,'createdAt':_0x44ac34?new Date(_0x44ac34):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x25b5e8);});}}class gt extends _0x2aad9b{['afterInit'](){const _0x23699b=this['editor'],_0x3db330=_0x23699b['plugins']['get']('TrackChangesEditing');if(_0x23699b['plugins']['has']('IndentEditing')&&(_0x3db330['enableCommand']('indent'),_0x3db330['enableCommand']('outdent')),_0x23699b['plugins']['has']('IndentBlock')){for(const _0x3ebc8d of['indentBlock','outdentBlock'])_0x3db330['enableDefaultAttributesIntegration'](_0x3ebc8d);if(_0x23699b['plugins']['has']('ListEditing')){for(const _0x1bdc66 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3db330['enableDefaultAttributesIntegration'](_0x1bdc66);}}const _0x95ccc6=_0x23699b['locale'];_0x3db330['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x95ccc6,'FORMAT_INDENT')),_0x3db330['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x95ccc6,'FORMAT_INDENT')),_0x3db330['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x95ccc6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x82150a=this['editor'],_0x4a63e3=_0x82150a['locale'],_0x2b5e5e=_0x82150a['plugins']['get']('TrackChangesEditing');_0x2b5e5e['descriptionFactory']['registerDescriptionCallback'](_0xe8a7d5=>{if('formatBlock'!=_0xe8a7d5['type'])return;const {data:_0x4b1227}=_0xe8a7d5;if(!_0x4b1227)return;if('indentBlock'!=_0x4b1227['commandName']&&'outdentBlock'!=_0x4b1227['commandName'])return;const _0x43fdcd=_0xe8a7d5['getItems']()[0x0],_0x545f2b=_0x2b5e5e['descriptionFactory']['getItemLabel'](_0x43fdcd);return'indentBlock'==_0x4b1227['commandName']?{'type':'format','content':o(_0x4a63e3,'*Indent:*\x20%0',_0x545f2b)}:'outdentBlock'==_0x4b1227['commandName']?{'type':'format','content':o(_0x4a63e3,'*Outdent:*\x20%0',_0x545f2b)}:void 0x0;});}}class mt extends _0x2aad9b{static get['requires'](){return[_0x5ad772];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x2aad9b{['afterInit'](){const _0x22bb76=this['editor'];if(!_0x22bb76['plugins']['has']('LinkEditing'))return;const _0x55b4c4=_0x22bb76['plugins']['get']('TrackChangesEditing'),_0x3b6f69=_0x22bb76['commands']['get']('link');_0x55b4c4['enableDefaultAttributesIntegration']('link'),_0x55b4c4['enableDefaultAttributesIntegration']('unlink');for(const _0xf66406 of _0x3b6f69['manualDecorators'])_0x55b4c4['descriptionFactory']['registerAttributeLabel'](_0xf66406['id'],'link\x20('+_0xf66406['label']['toLowerCase']()+')');_0x55b4c4['descriptionFactory']['registerDescriptionCallback'](_0x11b49a=>{if('attribute'!=_0x11b49a['type'])return;const {data:_0x18e825}=_0x11b49a;if(!_0x18e825||'linkHref'!=_0x18e825['key'])return;const _0x326669=_0x18e825['newValue'],_0x2e9a01=_0x22bb76['locale'];return{'type':'format','content':null==_0x326669?o(_0x2e9a01,'*Remove\x20link*'):o(_0x2e9a01,'*Set\x20link:*\x20%0','\x22'+_0x326669+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ffdd3=this['editor'],_0x3c70b2=_0x4ffdd3['locale'];_0x4ffdd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508f65=>{if('formatInline'!=_0x508f65['type'])return;const {data:_0x284b94}=_0x508f65;if(_0x284b94){if('link'==_0x284b94['commandName']){const _0x1c9f87=_0x284b94['commandParams'][0x0];return{'type':'format','content':o(_0x3c70b2,'*Set\x20link:*\x20%0','\x22'+_0x1c9f87+'\x22')};}return'unlink'==_0x284b94['commandName']?{'type':'format','content':o(_0x3c70b2,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x2aad9b{['afterInit'](){const _0x2cffea=this['editor'],_0x2ec675=_0x2cffea['locale'];if(!_0x2cffea['plugins']['has']('LegacyListEditing'))return;const _0x57078b=_0x2cffea['plugins']['get']('TrackChangesEditing'),_0x306d27=_0x2cffea['plugins']['has']('LegacyTodoListEditing');function _0x27fcce(_0x2c182d){return()=>{const _0x5548fa=_0x2cffea['model']['document']['selection'],_0x31b19a=_0x2cffea['commands']['get'](_0x2c182d);if(_0x31b19a['value'])return void _0x2cffea['execute']('paragraph',{});const _0x500db3=_0x2c182d['slice'](0x0,-0x4),_0x13d461=function(_0x4104d7,_0x21142c,_0x39b131){let _0x2000aa=Array['from'](_0x4104d7)['filter'](_0x1b31d3=>function(_0x2fa0cb,_0x2671eb){return _0x2671eb['checkChild'](_0x2fa0cb['parent'],'listItem')&&!_0x2671eb['isObject'](_0x2fa0cb);}(_0x1b31d3,_0x39b131));_0x2000aa=_0x2000aa['filter'](_0x357908=>!_0x357908['is']('element','listItem')||_0x357908['getAttribute']('listType')!=_0x21142c);const _0x43aceb=new Set();for(const _0x2efdbf of _0x2000aa)_0x2efdbf['is']('element','listItem')?_0x43aceb['add'](Le(_0x2efdbf)):_0x43aceb['add'](_0x2efdbf);return Array['from'](_0x43aceb);}(_0x5548fa['getSelectedBlocks'](),_0x500db3,_0x2cffea['model']['schema']);_0x2cffea['model']['change'](()=>{for(const _0x26ca7a of _0x13d461)_0x57078b['markBlockFormat'](_0x26ca7a,{'commandName':_0x2c182d,'commandParams':[{'forceValue':!_0x31b19a['value']}],'formatGroupId':'blockName'},Ee(_0x26ca7a));});};}function _0x126772(_0xc6ac8){return()=>{const _0x301465=function(_0x3684dd){let _0x1679d6=Array['from'](_0x3684dd);const _0x4d4718=_0x1679d6['findIndex'](_0x292d14=>'listItem'!=_0x292d14['name']);return _0x4d4718>-0x1&&(_0x1679d6=_0x1679d6['slice'](0x0,_0x4d4718)),_0x1679d6;}(_0x2cffea['model']['document']['selection']['getSelectedBlocks']()),_0x9cb24a=_0x2cffea['model']['createRange'](_0x2cffea['model']['createPositionAt'](_0x301465[0x0],'before'),_0x2cffea['model']['createPositionAt'](_0x301465[_0x301465['length']-0x1],'end'));_0x2cffea['model']['change'](()=>{_0x57078b['markBlockFormat'](_0x9cb24a,{'commandName':_0xc6ac8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x512edd){const _0xfa2eee=new Set();for(const _0x17e9e4 of _0x512edd){let _0x331beb=_0x17e9e4['nextSibling'];for(;_0x331beb&&_0x331beb['getAttribute']('listIndent')>_0x17e9e4['getAttribute']('listIndent');)_0xfa2eee['add'](_0x331beb),_0x331beb=_0x331beb['nextSibling'];}return Array['from'](_0xfa2eee);}(_0x301465));});};}_0x57078b['enableCommand']('numberedList',_0x27fcce('numberedList')),_0x57078b['enableCommand']('bulletedList',_0x27fcce('bulletedList')),_0x306d27&&_0x57078b['enableCommand']('todoList',_0x27fcce('todoList')),_0x57078b['enableCommand']('indentList',_0x126772('indentList')),_0x57078b['enableCommand']('outdentList',_0x126772('outdentList')),_0x306d27&&_0x57078b['enableCommand']('checkTodoList',()=>{const _0x2b825f=_0x2cffea['commands']['get']('checkTodoList'),_0x3ff206=Array['from'](_0x2b825f['_selectedElements']);_0x3ff206['filter'](_0x3874e6=>_0x3874e6['getAttribute']('todoListChecked')!=_0x2b825f['value']),_0x2cffea['model']['change'](()=>{for(const _0x5acd92 of _0x3ff206)_0x57078b['markBlockFormat'](_0x5acd92,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b825f['value']}]});});}),_0x57078b['descriptionFactory']['registerElementLabel']('listItem',_0x3af64e=>o(_0x2ec675,'ELEMENT_LIST_ITEM',_0x3af64e)),_0x57078b['descriptionFactory']['registerDescriptionCallback'](_0x143785=>{if('formatBlock'!=_0x143785['type']&&'formatInline'!=_0x143785['type'])return;const {data:_0x327f70}=_0x143785;if(_0x327f70){if('numberedList'==_0x327f70['commandName']||'bulletedList'==_0x327f70['commandName']||'todoList'==_0x327f70['commandName'])switch(_0x327f70['commandName']['replace']('List','')){case'bulleted':return _0x28e42e(o(_0x2ec675,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28e42e(o(_0x2ec675,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28e42e(o(_0x2ec675,'ELEMENT_TODO_LIST'));}if('indentList'==_0x327f70['commandName'])return{'type':'format','content':o(_0x2ec675,'*Indent:*\x20%0',o(_0x2ec675,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x327f70['commandName'])return{'type':'format','content':o(_0x2ec675,'*Outdent:*\x20%0',o(_0x2ec675,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x327f70['commandName'])return _0x327f70['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ec675,'*Check\x20item*')}:{'type':'format','content':o(_0x2ec675,'*Uncheck\x20item*')};}function _0x28e42e(_0x260728){return{'type':'format','content':o(_0x2ec675,'*Change\x20to:*\x20%0',_0x260728)};}});}}function Le(_0x2b48c3){const _0x1b1fb9=_0x2b48c3['getAttribute']('listIndent');if(0x0==_0x1b1fb9)return _0x2b48c3;let _0x11f4af=_0x2b48c3;for(;_0x2b48c3['previousSibling']&&_0x2b48c3['previousSibling']['is']('element','listItem');){const _0x1aae3b=_0x2b48c3['previousSibling']['getAttribute']('listIndent');if(_0x1aae3b==_0x1b1fb9)_0x11f4af=_0x2b48c3['previousSibling'];else{if(_0x1aae3b<_0x1b1fb9)break;}_0x2b48c3=_0x2b48c3['previousSibling'];}return _0x11f4af;}function Ee(_0x3fb001){const _0x4aa141=[];if(_0x3fb001['is']('element','listItem')&&_0x3fb001['getAttribute']('listIndent')>0x0){let _0x475c45=_0x3fb001['nextSibling'];for(;_0x475c45&&'listItem'==_0x475c45['name']&&_0x475c45['getAttribute']('listIndent')==_0x3fb001['getAttribute']('listIndent');)_0x4aa141['push'](_0x475c45),_0x475c45=_0x475c45['nextSibling'];}return _0x4aa141;}class wt extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x174b25=this['editor']['config']['get']('list.properties'),_0x28ec1f=this['editor']['plugins']['get']('TrackChangesEditing');_0x174b25['styles']&&_0x28ec1f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x174b25['reversed']&&_0x28ec1f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x174b25['startIndex']&&_0x28ec1f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x28ec1f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1fcf94,_0x23626d={}){const _0x5206af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x586c8d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5206af['markMultiRangeBlockFormat'](_0x586c8d,{'commandName':'listStyle','commandParams':[{'type':_0x23626d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x472468,_0x3fb60b={}){const _0x8be7fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x520662=this['_getSuggestionBlocks'](_0x52372b=>_0x52372b['is']('element','listItem')&&'numbered'===_0x52372b['getAttribute']('listType'));if(_0x520662['length']<0x1)return;const _0x34dffd=_0x520662['map'](_0x41349b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41349b,'before'),this['editor']['model']['createPositionAt'](_0x41349b,0x0)));this['editor']['model']['change'](()=>{_0x8be7fd['markMultiRangeBlockFormat'](_0x34dffd,{'commandName':'listReversed','commandParams':[{'reversed':_0x3fb60b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37d2b0,_0x174688={}){const _0x3389e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x336287=this['_getSuggestionBlocks'](_0x18f741=>_0x18f741['is']('element','listItem')&&'numbered'===_0x18f741['getAttribute']('listType'));if(_0x336287['length']<0x1)return;const _0x102396=_0x336287['map'](_0x15f3a7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f3a7,'before'),this['editor']['model']['createPositionAt'](_0x15f3a7,0x0)));this['editor']['model']['change'](()=>{_0x3389e4['markMultiRangeBlockFormat'](_0x102396,{'commandName':'listStart','commandParams':[{'startIndex':_0x174688['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3a66f1){if('formatBlock'!=_0x3a66f1['type']&&'formatInline'!=_0x3a66f1['type'])return;const _0x2eba6e=this['editor']['locale'],{data:_0x5622da}=_0x3a66f1;if(!_0x5622da)return;let _0x2c8e6a,_0x2028dc;switch(_0x5622da['commandName']){case'listStyle':_0x2c8e6a='*Change\x20to:*\x20%0',_0x2028dc={'type':'format','content':o(_0x2eba6e,_0x2c8e6a,o(_0x2eba6e,this['_getTranslationKeyForListStyle'](_0x5622da['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c8e6a=_0x5622da['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2028dc={'type':'format','content':o(_0x2eba6e,_0x2c8e6a)};break;case'listStart':_0x2c8e6a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2028dc={'type':'format','content':o(_0x2eba6e,_0x2c8e6a,_0x5622da['commandParams'][0x0]['startIndex'])};}return _0x2028dc;}['_getSuggestionBlocksForListStyle'](){const _0x36013a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2506d7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2506d7[0x0]?.['is']('element','listItem')&&_0x2506d7['unshift'](..._0x36013a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2506d7[_0x2506d7['length']-0x1]?.['is']('element','listItem')&&_0x2506d7['push'](..._0x36013a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2506d7=[...new Set(_0x2506d7)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2506d7=_0x2506d7['filter'](_0x319b69=>_0x319b69['is']('element','listItem'))),_0x2506d7;}['_getSuggestionBlocks'](_0x5c4051){const _0x2055b0=this['editor']['plugins']['get']('LegacyListUtils');let _0x2831af=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5c4051)['map'](_0x538d38=>{const _0x14f3f9=this['editor']['model']['createPositionAt'](_0x538d38,0x0);return[..._0x2055b0['getSiblingNodes'](_0x14f3f9,'backward'),..._0x2055b0['getSiblingNodes'](_0x14f3f9,'forward')];})['flat']();return _0x2831af=[...new Set(_0x2831af)],_0x2831af;}['_getTranslationKeyForListStyle'](_0x800a69){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x800a69)||'default')['toUpperCase']()+'_LIST_'+_0x800a69['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x2aad9b{['afterInit'](){const _0x405857=this['editor'];if(!_0x405857['plugins']['has']('MediaEmbedEditing'))return;const _0x48ae33=_0x405857['plugins']['get']('TrackChangesEditing'),_0x52e4ef=_0x405857['locale'];_0x48ae33['enableCommand']('mediaEmbed'),_0x48ae33['descriptionFactory']['registerElementLabel']('media',_0xba3a38=>o(_0x52e4ef,'ELEMENT_MEDIA',_0xba3a38));}}class bt extends _0x2aad9b{['afterInit'](){const _0x2118a2=this['editor'];_0x2118a2['plugins']['has']('MentionEditing')&&_0x2118a2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x2aad9b{['afterInit'](){const _0x304bea=this['editor'];if(!_0x304bea['plugins']['has']('MergeFieldsEditing'))return;const _0xc0ed17=_0x304bea['plugins']['get']('TrackChangesEditing'),_0x24e5c5=_0x304bea['locale'];_0xc0ed17['enableCommand']('insertMergeField'),_0xc0ed17['enableCommand']('insertMergeFieldBlock'),_0xc0ed17['enableCommand']('insertMergeFieldImage'),_0xc0ed17['descriptionFactory']['registerElementLabel']('mergeField',_0xa6a0f7=>o(_0x24e5c5,'ELEMENT_MERGE_FIELD',_0xa6a0f7)),_0xc0ed17['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1c1368=>o(_0x24e5c5,'ELEMENT_MERGE_FIELD',_0x1c1368)),_0xc0ed17['descriptionFactory']['registerDescriptionCallback'](_0xe17bf3=>{if('insertion'!=_0xe17bf3['type']&&'deletion'!=_0xe17bf3['type'])return;const _0x2920b0=_0xe17bf3['getContainedElement']();if(null==_0x2920b0)return;const _0x301953=_0x304bea['plugins']['get']('MergeFieldsEditing');let _0x2163ba;switch(_0x301953['getMergeFieldType'](_0x2920b0)){case null:return;case'image':{const _0x3a15ca=_0x301953['unwrapAffixes'](_0x2920b0['getAttribute']('src'));_0x2163ba=_0x301953['getLabel'](_0x3a15ca)||_0x3a15ca;break;}default:{const _0x47f5bd=_0x2920b0['getAttribute']('id');_0x2163ba=_0x301953['getLabel'](_0x47f5bd)||_0x47f5bd;break;}}return'insertion'==_0xe17bf3['type']?{'type':'insertion','content':o(_0x24e5c5,'*Insert:*\x20%0','\x22'+_0x2163ba+'\x22\x20'+o(_0x24e5c5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x24e5c5,'*Remove:*\x20%0','\x22'+_0x2163ba+'\x22\x20'+o(_0x24e5c5,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x2aad9b{['afterInit'](){const _0x1137c7=this['editor'],_0x3a57e7=_0x1137c7['plugins']['get']('TrackChangesEditing');_0x1137c7['plugins']['has']('MultiLevelList')&&(_0x3a57e7['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a57e7['descriptionFactory']['registerDescriptionCallback'](_0x21b67a=>this['handleDescriptions'](_0x21b67a)));}['handleDescriptions'](_0x4d6f32){const _0x1802ed=this['editor']['locale'],{data:_0x368791}=_0x4d6f32,_0x3445a5={'type':'format','content':''};if(_0x368791&&'listMarkerStyle'==_0x368791['key']){if(!_0x368791['oldValue'])return{'type':'format','content':o(_0x1802ed,'*Set\x20format:*\x20%0',o(_0x1802ed,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x368791['newValue']+')'};if(!_0x368791['newValue']){let _0x3be6f4=_0x4d6f32['head'];for(;_0x3be6f4;){if(_0x3be6f4['data']&&'listType'==_0x3be6f4['data']['key']&&_0x3be6f4['data']['newValue'])return _0x3445a5;_0x3be6f4=_0x3be6f4['next'];}return{'type':'format','content':o(_0x1802ed,'*Remove\x20format:*\x20%0',o(_0x1802ed,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x368791['oldValue']+')'};}}}}class St extends _0x2aad9b{['afterInit'](){const _0x2f8fc5=this['editor'];if(!_0x2f8fc5['plugins']['has']('PageBreakEditing'))return;_0x2f8fc5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x99c2cc=_0x2f8fc5['plugins']['get']('TrackChangesEditing'),_0x294802=_0x2f8fc5['locale'];_0x99c2cc['descriptionFactory']['registerElementLabel']('pageBreak',_0x4ff904=>o(_0x294802,'ELEMENT_PAGE_BREAK',_0x4ff904));}}class It extends _0x2aad9b{['afterInit'](){const _0x17ca83=this['editor'];if(!_0x17ca83['plugins']['has']('Paragraph'))return;const _0x3bf32c=_0x17ca83['locale'],_0x656965=_0x17ca83['plugins']['get']('TrackChangesEditing');_0x656965['descriptionFactory']['registerElementLabel']('paragraph',_0x50012d=>o(_0x3bf32c,'ELEMENT_PARAGRAPH',_0x50012d)),_0x656965['enableDefaultAttributesIntegration']('paragraph'),_0x656965['enableCommand']('insertParagraph');const _0x5950a4=_0x656965['descriptionFactory'];_0x5950a4['registerDescriptionCallback'](_0x65f3fd=>{if('insertion'!==_0x65f3fd['type'])return;const {start:_0x514bb9,end:_0x2a2658}=_0x65f3fd['getFirstRange']();if(!_0x514bb9['isTouching'](_0x2a2658)||!_0x514bb9['nodeAfter'])return;const _0x155dcd=_0x17ca83['model']['schema'],_0x43f75f=_0x514bb9['nodeAfter'];return _0x155dcd['isBlock'](_0x43f75f)&&!_0x155dcd['isLimit'](_0x43f75f)&&_0x155dcd['checkChild'](_0x43f75f,'$text')?{'type':'insertion','content':o(_0x3bf32c,'*Insert:*\x20%0',_0x5950a4['getItemLabel'](_0x43f75f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47f159=this['editor'],_0x34e58d=_0x47f159['locale'];_0x47f159['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ceba6=>{if('formatBlock'!=_0x3ceba6['type'])return;const {data:_0x555a8a}=_0x3ceba6;return _0x555a8a&&'paragraph'==_0x555a8a['commandName']?{'type':'format','content':o(_0x34e58d,'*Change\x20to:*\x20%0',o(_0x34e58d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x2aad9b{['afterInit'](){const _0x1375e8=this['editor'];_0x1375e8['commands']['get']('replaceSource')&&_0x1375e8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x2aad9b{['afterInit'](){const _0x29857e=this['editor'];if(!_0x29857e['plugins']['has']('RemoveFormatEditing'))return;_0x29857e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12bde2=this['editor'];_0x12bde2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17bf12=>{if('formatBlock'!=_0x17bf12['type']&&'formatInline'!=_0x17bf12['type'])return;const {data:_0x2dd1f1}=_0x17bf12;return _0x2dd1f1&&'removeFormat'==_0x2dd1f1['commandName']?{'type':'format','content':o(_0x12bde2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x2aad9b{['afterInit'](){const _0x5ff478=this['editor'];if(!_0x5ff478['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x13b5ce=_0x5ff478['plugins']['get']('TrackChangesEditing');_0x13b5ce['enableCommand']('goToPreviousRestrictedEditingException'),_0x13b5ce['enableCommand']('goToNextRestrictedEditingException');const _0x32389d=_0x5ff478['plugins']['get']('RestrictedEditingModeEditing');_0x32389d['enableCommand']('trackChanges'),_0x32389d['enableCommand']('acceptSuggestion'),_0x32389d['enableCommand']('discardSuggestion'),_0x32389d['enableCommand']('acceptAllSuggestions'),_0x32389d['enableCommand']('discardAllSuggestions'),_0x32389d['enableCommand']('acceptSelectedSuggestions'),_0x32389d['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x2aad9b{['afterInit'](){const _0x4017b9=this['editor'];if(!_0x4017b9['plugins']['has']('ShiftEnter'))return;const _0x2b60c7=_0x4017b9['plugins']['get']('TrackChangesEditing');_0x2b60c7['enableCommand']('shiftEnter'),_0x2b60c7['descriptionFactory']['registerElementLabel']('softBreak',_0x4fbe2b=>o(_0x4017b9['locale'],'ELEMENT_LINE_BREAK',_0x4fbe2b));}}function an(_0x30c7d7,_0x3d850a,_0x2abb33){const _0x41854=[];for(const _0x2cb84d of _0x3d850a['getItems']())_0x2cb84d['hasAttribute'](_0x30c7d7)&&_0x41854['push'](_0x2abb33['createRangeOn'](_0x2cb84d));return _0x41854;}class $t extends _0x2aad9b{['afterInit'](){const _0x2d88dd=this['editor'],_0x14b80d=_0x2d88dd['plugins']['get']('TrackChangesEditing');_0x2d88dd['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x14b80d['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x379e91=this['editor'],_0x55d9a8=_0x379e91['model'],_0x2030a7=_0x379e91['locale'],_0x21ca35=_0x379e91['plugins']['get']('TrackChangesEditing'),_0x1abdb5='restrictedEditingException',_0x35f89e=_0x379e91['commands']['get'](_0x1abdb5);_0x21ca35['enableCommand'](_0x1abdb5,(_0x4aff2d,_0x4c7268={})=>{const _0x388cab=_0x55d9a8['document']['selection'];if(_0x388cab['isCollapsed'])return void _0x4aff2d(_0x4c7268);const _0x35ffb3=void 0x0!==_0x4c7268['forceValue']?_0x4c7268['forceValue']:!_0x35f89e['value'];_0x55d9a8['change'](()=>{const _0x33d947=Array['from'](_0x388cab['getRanges']());for(const _0x1ef16d of _0x33d947){const _0x261eed=_0x35ffb3?[_0x1ef16d]:an(_0x1abdb5,_0x1ef16d,_0x55d9a8);for(const _0x1bfdb5 of _0x261eed)_0x21ca35['markInlineFormat'](_0x1bfdb5,{'commandName':_0x1abdb5,'commandParams':[{'forceValue':_0x35ffb3}]});}});}),_0x21ca35['descriptionFactory']['registerDescriptionCallback'](_0x115ea6=>{if('formatBlock'!=_0x115ea6['type']&&'formatInline'!=_0x115ea6['type'])return;const {data:_0x1b3f24}=_0x115ea6;return _0x1b3f24&&_0x1b3f24['commandName']==_0x1abdb5?_0x1b3f24['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2030a7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2030a7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x169ebc=this['editor'],_0x9f539f=_0x169ebc['locale'],_0x25004a=_0x169ebc['plugins']['get']('TrackChangesEditing'),_0x36dbf0='restrictedEditingExceptionBlock',_0x3e1337=this['editor']['commands']['get'](_0x36dbf0);_0x25004a['enableCommand'](_0x36dbf0,(_0x31a867,_0x2779c1={})=>{const _0x2fa25c=this['editor']['model']['document']['selection'],_0x37786a=_0x2779c1&&void 0x0!==_0x2779c1['forceValue']?_0x2779c1['forceValue']:!_0x3e1337['value'];let _0x1588e2=[];if(_0x37786a){const _0x6c7b05=Array['from'](_0x2fa25c['getSelectedBlocks']())['filter'](_0x516558=>function(_0x4356cc){return!!_0x4356cc['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x516558)||function(_0x1ace08,_0x26a4d5){const _0x306647=_0x26a4d5['createContext'](_0x1ace08['parent']);if(!_0x26a4d5['checkChild'](_0x306647,'restrictedEditingException'))return!0x1;if(!_0x26a4d5['checkChild'](_0x306647['push']('restrictedEditingException'),_0x1ace08))return!0x1;return!0x0;}(_0x516558,this['editor']['model']['schema']));_0x1588e2=to(_0x6c7b05,_0x169ebc['model']);}else{const _0x1b15d8=Array['from'](_0x2fa25c['getSelectedBlocks']())['map'](_0x409f73=>function(_0x3a1fde){let _0x424d24=_0x3a1fde;for(;_0x424d24['parent'];){if('restrictedEditingException'==_0x424d24['parent']['name'])return _0x424d24;_0x424d24=_0x424d24['parent'];}return null;}(_0x409f73))['filter'](_0x342170=>!!_0x342170);_0x1588e2=to(_0x1b15d8,_0x169ebc['model']);}_0x169ebc['model']['change'](()=>{for(const _0x483f5c of _0x1588e2)_0x25004a['markBlockFormat'](_0x483f5c,{'commandName':_0x36dbf0,'commandParams':[{'forceValue':_0x37786a}]});});}),_0x25004a['descriptionFactory']['registerDescriptionCallback'](_0x1a2002=>{const {data:_0x236905}=_0x1a2002;if(_0x236905&&_0x236905['commandName']==_0x36dbf0)return _0x236905['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9f539f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x9f539f,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x2aad9b{['afterInit'](){const _0x3fbae4=this['editor'];if(!_0x3fbae4['plugins']['has']('Style')||!_0x3fbae4['plugins']['has']('DataSchema'))return;const _0x1e60bd=_0x3fbae4['plugins']['get']('TrackChangesEditing'),_0x59a18a=_0x3fbae4['locale'],_0x413970=_0x3fbae4['config']['get']('style')||{},_0xd3ef1=_0x3fbae4['plugins']['get']('GeneralHtmlSupport'),_0x4d2dea=_0x3fbae4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3fbae4['plugins']['get']('DataSchema'),_0x413970['definitions']);_0x1e60bd['enableDefaultAttributesIntegration']('style');const _0x14ea5c=new Set();for(const _0x32a09c of _0x4d2dea['block']){const _0xb16710=_0xd3ef1['getGhsAttributeNameForElement'](_0x32a09c['element']);_0x14ea5c['add'](_0xb16710);}const _0x4e63b5=new Set();for(const _0x5878e8 of _0x4d2dea['inline']){const _0x3186a2=_0xd3ef1['getGhsAttributeNameForElement'](_0x5878e8['element']);_0x4e63b5['add'](_0x3186a2);for(const _0x1361d3 of _0x5878e8['ghsAttributes'])_0x4e63b5['add'](_0x1361d3);}for(const _0x488d4f of _0x14ea5c)_0x1e60bd['descriptionFactory']['registerAttributeLabel'](_0x488d4f,o(_0x59a18a,'FORMAT_STYLE'));for(const _0x204e9c of _0x4e63b5)_0x1e60bd['descriptionFactory']['registerAttributeLabel'](_0x204e9c,o(_0x59a18a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b1d1=this['editor'],_0x449acd=_0x44b1d1['locale'];_0x44b1d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x471d34=>{if('formatBlock'!=_0x471d34['type']&&'formatInline'!=_0x471d34['type'])return;const {data:_0x3bafb5}=_0x471d34;return _0x3bafb5&&'style'===_0x3bafb5['commandName']?_0x3bafb5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x449acd,'*Set\x20format:*\x20%0',_0x3bafb5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x449acd,'*Remove\x20format:*\x20%0',_0x3bafb5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x2aad9b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x8203d3){super(_0x8203d3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x431729=this['editor'],_0x5f08b2=_0x431729['model']['document']['selection'];if(!_0x431729['plugins']['has']('TableEditing'))return;const _0x58b84b=_0x431729['locale'],_0x37182=_0x431729['plugins']['get']('TrackChangesEditing'),_0x4e0d1f=_0x431729['plugins']['get']('TableUtils');_0x37182['descriptionFactory']['registerElementLabel']('table',_0x19957e=>o(_0x58b84b,'ELEMENT_TABLE',_0x19957e)),this['_setupColumnsRowsFixing'](),_0x37182['enableCommand']('insertTable'),_0x37182['enableCommand']('selectTableRow'),_0x37182['enableCommand']('selectTableColumn');for(const _0x38307a of['insertTableRowAbove','insertTableRowBelow']){const _0x28c21b=_0x431729['commands']['get'](_0x38307a);_0x37182['enableCommand'](_0x38307a,_0x15c8b4=>{_0x431729['model']['change'](_0x374e79=>{_0x15c8b4();const _0x4dac7d='above'===_0x28c21b['order'],_0x9f1bc4=_0x4e0d1f['getSelectionAffectedTableCells'](_0x5f08b2),_0x26803b=_0x4e0d1f['getRowIndexes'](_0x9f1bc4),_0x137538=_0x4dac7d?_0x26803b['first']-0x1:_0x26803b['last']+0x1,_0xdae0cb=_0x9f1bc4[0x0]['findAncestor']('table'),_0x2605a1=_0x4e0d1f['createTableWalker'](_0xdae0cb,{'startRow':_0x137538,'endRow':_0x137538}),_0x5d7b62=Array['from'](_0x2605a1)['map'](_0x34e551=>_0x374e79['createRangeOn'](_0x34e551['cell']));_0x37182['markMultiRangeInsertion'](_0x5d7b62,'tableRow');});});}for(const _0x110817 of['insertTableColumnLeft','insertTableColumnRight']){const _0x32419e=_0x431729['commands']['get'](_0x110817);_0x37182['enableCommand'](_0x110817,_0x4aae85=>{_0x431729['model']['change'](_0x37104c=>{_0x4aae85();const _0x14a467='left'===_0x32419e['order'],_0x143f5d=_0x4e0d1f['getSelectionAffectedTableCells'](_0x5f08b2),_0x17c74d=_0x4e0d1f['getColumnIndexes'](_0x143f5d),_0x386736=_0x14a467?_0x17c74d['first']-0x1:_0x17c74d['last']+0x1,_0x4dcafc=_0x143f5d[0x0]['findAncestor']('table'),_0x29bb87=_0x4e0d1f['createTableWalker'](_0x4dcafc,{'startRow':0x0,'column':_0x386736,'includeAllSlots':!0x1}),_0x95b2eb=Array['from'](_0x29bb87)['map'](_0x2904be=>_0x37104c['createRangeOn'](_0x2904be['cell']));_0x37182['markMultiRangeInsertion'](_0x95b2eb,'tableColumn');});});}for(const _0x9a7fa8 of['removeTableRow','removeTableColumn']){const _0x197312=_0x9a7fa8['substr'](0xb),_0x25cac4=_0x197312['toLowerCase'](),_0x194f84=_0x25cac4['substr'](0x0,0x3)+'span',_0x50cc52='table'+_0x197312,_0x11e597='min'+_0x197312,_0x45b57f='max'+_0x197312;_0x37182['enableCommand'](_0x9a7fa8,()=>{_0x431729['model']['change'](_0x9f37d0=>{const _0xd91df3=_0x4e0d1f['getSelectionAffectedTableCells'](_0x5f08b2),_0x1b79e3=_0xd91df3[0x0]['findAncestor']('table');let _0xb1fa4;if('removeTableRow'==_0x9a7fa8){const _0x3a960d=_0x4e0d1f['getRowIndexes'](_0xd91df3);_0xb1fa4={'startRow':_0x3a960d['first'],'endRow':_0x3a960d['last'],'includeAllSlots':!0x0};}else{const _0x1a6180=_0x4e0d1f['getColumnIndexes'](_0xd91df3);_0xb1fa4={'startColumn':_0x1a6180['first'],'endColumn':_0x1a6180['last'],'includeAllSlots':!0x0};}const _0x59872=_0x4e0d1f['createTableWalker'](_0x1b79e3,_0xb1fa4),_0x45a260=Array['from'](_0x59872)['map'](({cell:_0x3d5f48})=>_0x3d5f48),_0x4cc5fe=_e(_0x45a260['filter'](_0x57b067=>_0x57b067['hasAttribute'](_0x194f84))),_0x50e8a8=_e(_0x45a260['filter'](_0xdfdb5d=>!_0xdfdb5d['hasAttribute'](_0x194f84)))['map'](_0x49007c=>_0x9f37d0['createRangeOn'](_0x49007c)),_0x1a3160=_0x37182['markMultiRangeDeletion'](_0x50e8a8,_0x50cc52);if(_0x1a3160&&('tableRow'==_0x1a3160['subType']||'tableColumn'==_0x1a3160['subType'])){const _0x4cf63a=this['_getSuggestionCoords'](_0x1a3160);for(const _0x4f6a4d of _0x4cc5fe){const _0x1b8393=_0x9f37d0['createRangeOn'](_0x4f6a4d),_0x52d1ae=_0x4e0d1f['getCellLocation'](_0x4f6a4d),_0x2b454c=_0x4f6a4d['getAttribute'](_0x194f84)-0x1,_0x36060b=_0x4cf63a[_0x11e597],_0x1f367a=_0x4cf63a[_0x45b57f];_0x36060b<=_0x52d1ae[_0x25cac4]&&_0x52d1ae[_0x25cac4]+_0x2b454c<=_0x1f367a&&_0x1a3160['addRange'](_0x1b8393);}}});});}function _0x14cb22(_0x27768e){const _0x2b53c4=Array['from'](_0x5f08b2['getRanges']())['map'](_0x187d9e=>_0x4c3029['fromRange'](_0x187d9e));_0x431729['model']['change'](_0x885dd5=>{const _0x2d5816=_0x885dd5['batch'];_0x27768e=_0x27768e['filter'](_0x40a63d=>'$graveyard'!=_0x40a63d['root']['rootName']),_0x885dd5['setSelection'](_0x27768e),_0x431729['commands']['get']('removeTableRow')['refresh'](),_0x431729['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x431729['model']['enqueueChange'](()=>{_0x431729['model']['enqueueChange'](_0x2d5816,_0x44c80a=>{const _0x4f3433=_0x2b53c4['filter'](_0x4a302d=>'$graveyard'!=_0x4a302d['root']['rootName']);_0x4f3433['length']>0x0&&_0x44c80a['setSelection'](_0x4f3433);for(const _0x2d415f of _0x2b53c4)_0x2d415f['detach']();});});});}function _0x103d8e(_0x4cb2d6){_0x431729['model']['change'](_0x402eef=>{const _0x59599b=Array['from'](_0x5f08b2['getRanges']())['map'](_0x2ab571=>_0x4c3029['fromRange'](_0x2ab571)),_0x2092b2=[];for(const _0x14ec1b of _0x4cb2d6)for(const _0x370a92 of _0x14ec1b['getItems']({'shallow':!0x0}))_0x2092b2['push'](_0x370a92);for(const _0x889658 of _0x2092b2)'$graveyard'!=_0x889658['root']['rootName']&&(_0x402eef['setSelection'](_0x402eef['createPositionAt'](_0x889658,0x0)),_0x431729['commands']['get']('removeTableColumn')['refresh'](),_0x431729['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x356c4b=_0x59599b['filter'](_0x3985e6=>'$graveyard'!=_0x3985e6['root']['rootName']);_0x356c4b['length']>0x0&&_0x402eef['setSelection'](_0x356c4b);for(const _0x245c7d of _0x59599b)_0x245c7d['detach']();});}function _0x4ae694(_0x27b238,_0x458cbb){return _0x458cbb['every'](_0x1707eb=>_0x27b238['some'](_0x596077=>_0x596077['end']['isEqual'](_0x1707eb['start'])||_0x1707eb['end']['isEqual'](_0x596077['start'])));}function _0x12ce21(_0x3be459,_0x416010){return!_0x3be459['some'](_0x5350e6=>_0x416010['some'](_0x3eacfe=>_0x5350e6['isIntersecting'](_0x3eacfe)))&&_0x3be459['some'](_0x4ddf32=>_0x416010['some'](_0x4a2360=>_0x4ddf32['end']['isTouching'](_0x4a2360['start'])));}_0x37182['descriptionFactory']['registerDescriptionCallback'](_0x31d6b4=>{if('insertion'!=_0x31d6b4['type']&&'deletion'!=_0x31d6b4['type'])return;const _0xf3abfa=_0x31d6b4['getContainedElement']();if(null!=_0xf3abfa&&_0xf3abfa['is']('element','table')){if('insertion'==_0x31d6b4['type']){const _0x538f4b=_0x31d6b4['getItems']()['filter'](_0x46beec=>_0x46beec['is']('$textProxy'))['map'](_0x12e933=>_0x12e933['data']);if(_0x538f4b['length'])return{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x538f4b['join']('\x20')+'\x22'))};}if('deletion'==_0x31d6b4['type']){const _0x27ebe7=_0x31d6b4['getItems']()['filter'](_0x19d3a2=>_0x19d3a2['is']('$textProxy'))['map'](_0x46f9bd=>_0x46f9bd['data']);if(_0x27ebe7['length'])return{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27ebe7['join']('\x20')+'\x22'))};}}}),_0x37182['descriptionFactory']['registerDescriptionCallback'](_0x19d3b6=>{if('tableRow'==_0x19d3b6['subType']){const _0x4208ba=_0x19d3b6['getItems']()['filter'](_0x56cd9c=>_0x56cd9c['is']('$textProxy'))['map'](_0x1afb58=>_0x1afb58['data']),_0x3b2707=this['_getSuggestionCoords'](_0x19d3b6),_0x2629e0=_0x3b2707['maxRow']-_0x3b2707['minRow']+0x1;if('insertion'==_0x19d3b6['type'])return _0x4208ba['length']?{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2629e0,'\x22'+_0x4208ba['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_ROW',_0x2629e0))};if('deletion'==_0x19d3b6['type'])return _0x4208ba['length']?{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2629e0,'\x22'+_0x4208ba['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_ROW',_0x2629e0))};}if('tableColumn'==_0x19d3b6['subType']){const _0x539cdc=_0x19d3b6['getItems']()['filter'](_0x5f3b57=>_0x5f3b57['is']('$textProxy'))['map'](_0x27476f=>_0x27476f['data']),_0x54ae41=this['_getSuggestionCoords'](_0x19d3b6),_0x1b16c0=_0x54ae41['maxColumn']-_0x54ae41['minColumn']+0x1;if('insertion'==_0x19d3b6['type'])return _0x539cdc['length']?{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b16c0,'\x22'+_0x539cdc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x58b84b,'*Insert:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_COLUMN',_0x1b16c0))};if('deletion'==_0x19d3b6['type'])return _0x539cdc['length']?{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b16c0,'\x22'+_0x539cdc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x58b84b,'*Remove:*\x20%0',o(_0x58b84b,'ELEMENT_TABLE_COLUMN',_0x1b16c0))};}}),_0x37182['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x14cb22),_0x37182['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x14cb22),_0x37182['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x103d8e),_0x37182['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x103d8e),_0x37182['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ae694),_0x37182['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ae694),_0x37182['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12ce21),_0x37182['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12ce21);}['_acceptFormatSuggestionCallbackFactory'](){const _0x33cb42=this['editor'],_0x1e0399=_0x33cb42['model']['document']['selection'];return(_0x422b60,_0xb4a4ed)=>{_0x33cb42['model']['change'](_0x47ddac=>{const {commandName:_0x57b955,commandParams:_0x508cbb}=_0xb4a4ed;let _0x1ddd47=_0x422b60[0x0]['end']['nodeBefore'];_0x508cbb&&_0x508cbb[0x0]&&!0x1===_0x508cbb[0x0]['forceValue']&&(_0x1ddd47=_0x422b60[0x0]['start']['nodeAfter']);const _0x857355=_0x47ddac['createRangeIn'](_0x1ddd47);if('$graveyard'==_0x857355['root']['rootName'])return;const _0x473b17=Array['from'](_0x1e0399['getRanges']())['map'](_0x379781=>_0x4c3029['fromRange'](_0x379781));_0x47ddac['setSelection'](_0x857355),_0x33cb42['commands']['get'](_0x57b955)['refresh'](),_0x508cbb['push']({'forceDefaultExecution':!0x0}),_0x33cb42['execute'](_0x57b955,..._0x508cbb);const _0x262c73=_0x473b17['filter'](_0xda4ab6=>'$graveyard'!=_0xda4ab6['root']['rootName']);_0x262c73['length']>0x0&&_0x47ddac['setSelection'](_0x262c73);for(const _0xe28b80 of _0x473b17)_0xe28b80['detach']();});};}['_getCoordsForCells'](_0x2625c9){const _0x252e64=this['editor']['plugins']['get']('TableUtils');let _0x2be9f0=Number['MAX_SAFE_INTEGER'],_0x3135c2=Number['MIN_SAFE_INTEGER'],_0x433eb9=Number['MAX_SAFE_INTEGER'],_0x5e3165=Number['MIN_SAFE_INTEGER'];for(const _0x1db748 of _0x2625c9){if('$graveyard'==_0x1db748['root']['rootName'])continue;const {row:_0x4b5e51,column:_0x16403a}=_0x252e64['getCellLocation'](_0x1db748),_0x3c3f98=_0x1db748['hasAttribute']('rowspan')?_0x1db748['getAttribute']('rowspan')-0x1:0x0,_0x2c2345=_0x1db748['hasAttribute']('colspan')?_0x1db748['getAttribute']('colspan')-0x1:0x0;_0x2be9f0=_0x4b5e51<_0x2be9f0?_0x4b5e51:_0x2be9f0,_0x3135c2=_0x4b5e51+_0x3c3f98>_0x3135c2?_0x4b5e51+_0x3c3f98:_0x3135c2,_0x433eb9=_0x16403a<_0x433eb9?_0x16403a:_0x433eb9,_0x5e3165=_0x16403a+_0x2c2345>_0x5e3165?_0x16403a+_0x2c2345:_0x5e3165;}return{'minRow':_0x2be9f0,'maxRow':_0x3135c2,'minColumn':_0x433eb9,'maxColumn':_0x5e3165};}['_setupColumnsRowsFixing'](){const _0x3753f6=this['editor'],_0x3aec27=_0x3753f6['plugins']['get']('TrackChangesEditing'),_0x331075=_0x3753f6['plugins']['get']('TableUtils');_0x3753f6['model']['document']['on']('change:data',()=>{const _0x244fa2=Array['from'](_0x3753f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x112f9c,data:_0x361613}of _0x244fa2){const {group:_0x1e72f5,id:_0x5e15cb,subType:_0x40ac34}=_0x3aec27['_splitMarkerName'](_0x112f9c);if('suggestion'!=_0x1e72f5)continue;if(null!=_0x361613['oldRange'])continue;const _0x2424e1=_0x3aec27['getSuggestion'](_0x5e15cb);this['_tablePostFixingSubtypes']['includes'](_0x40ac34)&&this['_tableSuggestions']['add'](_0x2424e1);}},{'priority':'low'});const _0x20b405=(_0xcbc5c6,_0x412b6f)=>{let _0x377dfc=!0x1;const _0x40dad3=_0x412b6f['createRangeOn'](_0xcbc5c6),_0x209176=_0xcbc5c6['findAncestor']('table'),_0x1245f7=_0x331075['getCellLocation'](_0xcbc5c6);for(const _0x4d6afb of this['_tableSuggestions']){const _0x1decd9=_0x4d6afb['subType'],_0x4dfeaa=_0x1decd9['startsWith']('tablePaste'),_0x357bf9=_0x1decd9['substr'](_0x4dfeaa?0xa:0x5),_0xcccb93=_0x357bf9['toLowerCase'](),_0x5e7f20=_0xcccb93['substr'](0x0,0x3)+'span',_0x45b7dc='min'+_0x357bf9,_0xfd731e='max'+_0x357bf9;if(!_0x4d6afb['isInContent'])continue;if(_0x209176!=_0x4d6afb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4d6afb['isIntersectingWithRange'](_0x40dad3))continue;const _0x3354f7=_0xcbc5c6['hasAttribute'](_0x5e7f20)?_0xcbc5c6['getAttribute'](_0x5e7f20)-0x1:0x0,_0x345866=this['_getSuggestionCoords'](_0x4d6afb),_0x41dad2=_0x345866[_0x45b7dc],_0x1f41a0=_0x345866[_0xfd731e];_0x41dad2<=_0x1245f7[_0xcccb93]&&_0x1245f7[_0xcccb93]+_0x3354f7<=_0x1f41a0&&(_0x4d6afb['addRange'](_0x40dad3),_0x377dfc=!0x0);}return _0x377dfc;};_0x3753f6['model']['document']['registerPostFixer'](_0x367168=>{let _0x16d92f=!0x1;for(const _0x35ff9f of _0x3753f6['model']['document']['differ']['getChanges']())if('insert'==_0x35ff9f['type']){if('tableRow'==_0x35ff9f['name']){for(const _0x53434b of _0x35ff9f['position']['nodeAfter']['getChildren']())_0x16d92f=_0x16d92f||_0x20b405(_0x53434b,_0x367168);}else'tableCell'==_0x35ff9f['name']&&(_0x16d92f=_0x16d92f||_0x20b405(_0x35ff9f['position']['nodeAfter'],_0x367168));}return _0x16d92f;});}['_getSuggestionCoords'](_0x4fcc51){return this['_getCoordsForCells'](_0x4fcc51['getRanges']()['map'](_0x3a0c3a=>_0x3a0c3a['start']['nodeAfter']));}}function _e(_0x53249e){return Array['from'](new Set(_0x53249e)['values']());}class Bt extends _0x2aad9b{static get['requires'](){return[Dt];}['afterInit'](){const _0x4ecf1c=this['editor'],_0xed16a=_0x4ecf1c['model']['document']['selection'],_0x5efb2b=_0x4ecf1c['locale'];if(!_0x4ecf1c['plugins']['has']('TableEditing'))return;const _0x17639=_0x4ecf1c['plugins']['get']('TrackChangesEditing'),_0x15267b=_0x4ecf1c['plugins']['get']('TableUtils'),_0x5e252f=_0x4ecf1c['plugins']['get'](Dt);_0x5e252f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x17639['enableCommand']('mergeTableCells',()=>{const _0x173f25=_0x15267b['getSelectionAffectedTableCells'](_0x4ecf1c['model']['document']['selection']);_0x4ecf1c['model']['change'](()=>{_0x17639['markMultiRangeBlockFormat'](_0x173f25,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4ecf1c['commands']['get']('mergeTableCells')['on']('execute',(_0x41af50,_0x5673fe)=>{_0x4ecf1c['commands']['get']('trackChanges')['value']&&(_0x5673fe['length']>0x0&&_0x5673fe[_0x5673fe['length']-0x1]&&_0x5673fe[_0x5673fe['length']-0x1]['forceDefaultExecution']||_0x17639['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x41af50['stop']());},{'priority':'highest'});for(const _0x34f403 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x399a7a=_0x4ecf1c['commands']['get'](_0x34f403);_0x17639['enableCommand'](_0x34f403,()=>{const _0x46ee4e=_0x4ecf1c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x357f5c=>_0x357f5c['is']('element','tableCell')),_0x231f10=_0x399a7a['value'];_0x4ecf1c['model']['change'](()=>{_0x17639['markMultiRangeBlockFormat']([_0x46ee4e,_0x231f10],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x38ddc5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4e5070=_0x4ecf1c['commands']['get'](_0x38ddc5);_0x17639['enableCommand'](_0x38ddc5,()=>{const _0xb6b4a=_0x15267b['getSelectionAffectedTableCells'](_0x4ecf1c['model']['document']['selection'])[0x0],_0x58bb08=_0xb6b4a['findAncestor']('table'),{column:_0x268666,row:_0x22b39f}=_0x15267b['getCellLocation'](_0xb6b4a);let _0xdacc77=[];if('horizontally'==_0x4e5070['direction']){const _0x3813ef=_0x15267b['createTableWalker'](_0x58bb08,{'startRow':_0x22b39f,'endRow':_0x22b39f,'includeAllSlots':!0x0});_0xdacc77=Array['from'](_0x3813ef)['map'](_0x1e7e49=>_0x1e7e49['cell']);}else{const _0x3a648d=_0x15267b['createTableWalker'](_0x58bb08,{'column':_0x268666,'includeAllSlots':!0x0});_0xdacc77=Array['from'](_0x3a648d)['map'](_0xed7a39=>_0xed7a39['cell']);}_0x4ecf1c['model']['change'](_0x17f29f=>{_0x17639['markBlockFormat'](_0x17f29f['createRangeOn'](_0xb6b4a),{'commandName':_0x38ddc5,'commandParams':[]},_0xdacc77,_0x38ddc5);});});}_0x17639['descriptionFactory']['registerDescriptionCallback'](_0x3b216d=>{if('formatBlock'!=_0x3b216d['type']&&'formatInline'!=_0x3b216d['type'])return;const {data:_0x19b9c8}=_0x3b216d;return _0x19b9c8&&'mergeTableCells'==_0x19b9c8['commandName']?{'type':'format','content':o(_0x5efb2b,'*Merge\x20cells*')}:void 0x0;}),_0x17639['descriptionFactory']['registerDescriptionCallback'](_0xa0b8a7=>{if('formatBlock'!=_0xa0b8a7['type']&&'formatInline'!=_0xa0b8a7['type'])return;const {data:_0x3b9d8a}=_0xa0b8a7;return _0x3b9d8a?'splitTableCellVertically'==_0x3b9d8a['commandName']?{'type':'format','content':o(_0x5efb2b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b9d8a['commandName']?{'type':'format','content':o(_0x5efb2b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x976f1b=_0x5e252f['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ef8d3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x17639['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ef8d3,'accept',_0x976f1b);for(const _0x36d1bd of['splitTableCellVertically','splitTableCellHorizontally'])_0x17639['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36d1bd,'accept',_0x976f1b);_0x17639['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1fca0e=>{_0x4ecf1c['model']['change'](_0x33603c=>{const _0x55e0d3=Array['from'](_0xed16a['getRanges']())['map'](_0x4692d4=>_0x4c3029['fromRange'](_0x4692d4));_0x33603c['setSelection'](_0x1fca0e),_0x4ecf1c['commands']['get']('mergeTableCells')['refresh'](),_0x4ecf1c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3d8544=_0x55e0d3['filter'](_0x235513=>'$graveyard'!=_0x235513['root']['rootName']);_0x3d8544['length']>0x0&&_0x33603c['setSelection'](_0x3d8544);for(const _0x51ba66 of _0x55e0d3)_0x51ba66['detach']();});});for(const _0x19f64a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x344a3f=_0x4ecf1c['commands']['get'](_0x19f64a);_0x344a3f['on']('set:isEnabled',(_0x2f71f0,_0x27706e,_0x323838)=>{if(_0x323838){const _0x3a1761=_0x4ecf1c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ee5af=>_0x3ee5af['is']('element','tableCell'));this['_areMergableCells'](_0x344a3f['value'],_0x3a1761)||(_0x2f71f0['return']=!0x1,_0x2f71f0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x59cea5=this['editor']['commands']['get']('mergeTableCells'),_0x1028da=this['editor']['plugins']['get']('TableUtils');if(!_0x59cea5['isEnabled'])return!0x1;const _0x3a7c77=_0x1028da['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f0bb8 of _0x3a7c77)for(const _0x478219 of _0x3a7c77)if(_0x2f0bb8!=_0x478219&&!this['_areMergableCells'](_0x2f0bb8,_0x478219))return!0x1;return!0x0;}['_areMergableCells'](_0x2babf7,_0x41c8d6){const _0x40e2ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48abe7=this['editor']['model']['createRangeOn'](_0x2babf7),_0x3d557e=this['editor']['model']['createRangeOn'](_0x41c8d6),_0x3ea8f6=new Set(),_0x3b14b5=new Set();for(const _0x4c038b of _0x40e2ac['getSuggestions']())if(('insertion'==_0x4c038b['type']||'deletion'==_0x4c038b['type']||'mergeTableCells'==_0x4c038b['subType'])&&_0x4c038b['isInContent']){for(const _0x355128 of _0x4c038b['getRanges']())_0x355128['containsRange'](_0x48abe7,!0x0)&&_0x3ea8f6['add'](_0x4c038b['type']+':'+_0x4c038b['author']['id']),_0x355128['containsRange'](_0x3d557e,!0x0)&&_0x3b14b5['add'](_0x4c038b['type']+':'+_0x4c038b['author']['id']);}if(_0x3ea8f6['size']!=_0x3b14b5['size'])return!0x1;for(const _0x27f6de of _0x3ea8f6)if(!_0x3b14b5['has'](_0x27f6de))return!0x1;return!0x0;}}class Ot extends _0x2aad9b{static get['requires'](){return[Dt];}['afterInit'](){const _0x28c62f=this['editor'];if(!_0x28c62f['plugins']['has']('TableEditing'))return;const _0x1e1ea3=_0x28c62f['locale'],_0x5e66b7=_0x28c62f['plugins']['get']('TrackChangesEditing');_0x5e66b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e66b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e66b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1e1ea3,'FORMAT_HEADER_ROW')),_0x5e66b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1e1ea3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4322d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xda8e4f=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x4322d3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xda8e4f),_0x4322d3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xda8e4f),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x3397ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49be90=this['editor']['plugins']['get']('TableUtils');function _0x43a865({showActiveMarker:_0x383ef1=!0x0,setDataAttribute:_0x4ef214=!0x0}={}){return(_0x3b031d,_0x5a35cd,_0x584b5c)=>{const {type:_0x3a69d7,id:_0x349a49}=_0x3397ef['_splitMarkerName'](_0x5a35cd['markerName']);if(!_0x3397ef['hasSuggestion'](_0x349a49))return;const _0x2cba09=_0x3397ef['getSuggestion'](_0x349a49),_0x495fc6=_0x2cba09['data'];if('formatBlock'!=_0x2cba09['type']||!_0x495fc6||'setTableColumnHeader'!=_0x495fc6['commandName'])return;if(_0x5a35cd['item'])return void _0x3b031d['stop']();if(!_0x584b5c['consumable']['consume'](_0x5a35cd['markerRange'],_0x3b031d['name']))return;const _0xa07d74=_0x5a35cd['markerRange']['start']['nodeAfter'],_0x533c52=_0x5a35cd['markerRange']['end']['nodeBefore'],_0x47c628=_0xa07d74['parent']['parent'],{column:_0x48d8be}=_0x49be90['getCellLocation'](_0xa07d74),{column:_0x348c4e}=_0x49be90['getCellLocation'](_0x533c52);for(let _0x26a5c0=_0x48d8be;_0x26a5c0<=_0x348c4e;_0x26a5c0++){const _0x161b75=_0x49be90['createTableWalker'](_0x47c628,{'column':_0x26a5c0,'includeAllSlots':!0x1});for(const _0x5e77a6 of _0x161b75){const _0x4a1be8=_0x5e77a6['cell'],_0xd5bf61=_0x584b5c['mapper']['toViewElement'](_0x4a1be8);_0x584b5c['writer']['addClass']('ck-suggestion-marker-'+_0x3a69d7,_0xd5bf61),_0x4ef214&&_0x584b5c['writer']['setAttribute']('data-suggestion',_0x349a49,_0xd5bf61),_0x584b5c['mapper']['bindElementToMarker'](_0xd5bf61,_0x5a35cd['markerName']),_0x383ef1&&(_0x3397ef['activeMarkers']['includes'](_0x5a35cd['markerName'])?_0x584b5c['writer']['addClass']('ck-suggestion-marker--active',_0xd5bf61):_0x584b5c['writer']['removeClass']('ck-suggestion-marker--active',_0xd5bf61));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x43a865(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x160554,_0x217b06,_0x139f40)=>{_0x139f40['options']['showSuggestionHighlights']&&_0x43a865({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x160554,_0x217b06,_0x139f40);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2d5cfb,_0x38bcbc,_0xf52894)=>{const {type:_0x3781ec,id:_0x3b7b70}=_0x3397ef['_splitMarkerName'](_0x38bcbc['markerName']);if(!_0x3397ef['hasSuggestion'](_0x3b7b70))return;const _0x403971=_0x3397ef['getSuggestion'](_0x3b7b70),_0x5cb762=_0x403971['data'];if('formatBlock'!=_0x403971['type']||!_0x5cb762||'setTableColumnHeader'!=_0x5cb762['commandName'])return;const _0x50027f=_0xf52894['mapper']['markerNameToElements'](_0x38bcbc['markerName']);if(_0x50027f){for(const _0x131343 of _0x50027f)_0xf52894['writer']['removeClass']('ck-suggestion-marker-'+_0x3781ec,_0x131343),_0xf52894['writer']['removeClass']('ck-suggestion-marker--active',_0x131343),_0xf52894['writer']['removeAttribute']('data-suggestion',_0x131343),_0xf52894['mapper']['unbindElementFromMarkerName'](_0x131343,_0x38bcbc['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x278020=this['editor'],_0x406c93=_0x278020['locale'];function _0x2db4da(_0x7255a0){return{'type':'format','content':o(_0x406c93,'*Format:*\x20%0',_0x7255a0)};}_0x278020['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b68a=>{if('formatBlock'!=_0x54b68a['type'])return;const {data:_0xa6d26a}=_0x54b68a;if(_0xa6d26a){if('setTableRowHeader'==_0xa6d26a['commandName']){const _0x527c5d=_0xa6d26a['commandParams'][0x0]['forceValue'];return _0x2db4da(o(_0x406c93,_0x527c5d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa6d26a['commandName']){const _0x34ce84=_0xa6d26a['commandParams'][0x0]['forceValue'];return _0x2db4da(o(_0x406c93,_0x34ce84?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x2aad9b{['afterInit'](){const _0x206bbc=this['editor'],_0x1bd84e=_0x206bbc['locale'],_0x4b95b4=_0x206bbc['plugins']['get']('TrackChangesEditing');function _0x31c744(_0x49d37f){return{'type':'format','content':''+o(_0x1bd84e,'*Set\x20table\x20type:*\x20%0',_0x49d37f)};}_0x206bbc['plugins']['has']('TableLayout')&&(_0x4b95b4['enableCommand']('insertTableLayout'),_0x4b95b4['enableDefaultAttributesIntegration']('tableType'),_0x4b95b4['descriptionFactory']['registerElementLabel'](_0x3b6c16=>_0x3b6c16['is']('element','table')&&'layout'===_0x3b6c16['getAttribute']('tableType'),_0x53a7e7=>o(_0x1bd84e,'ELEMENT_LAYOUT_TABLE',_0x53a7e7)),_0x4b95b4['descriptionFactory']['registerDescriptionCallback'](_0x5dac54=>{const {data:_0x37b292}=_0x5dac54;if(_0x37b292&&'tableType'==_0x37b292['key'])switch(_0x37b292['newValue']){case'layout':return _0x31c744(o(_0x1bd84e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x31c744(o(_0x1bd84e,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x22e52b=>[_0x22e52b,null]));class Mt extends _0x2aad9b{static get['requires'](){return[Dt];}['afterInit'](){const _0x13bf56=this['editor'];if(!_0x13bf56['plugins']['has']('TableClipboard'))return;const _0x3785b5=_0x13bf56['plugins']['get']('TrackChangesEditing'),_0x5d56e6=_0x13bf56['plugins']['get']('TableUtils'),_0x3a6eaa=_0x13bf56['plugins']['get'](Dt),_0x49ee8c=_0x13bf56['plugins']['get']('TableClipboard'),_0x487c04=_0x13bf56['plugins']['get']('TableSelection'),_0x31fb11=_0x13bf56['plugins']['get'](_0x708d7f);_0x3a6eaa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x13bf56['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x13bf56['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4482c0=null,_0xc2ccf6=!0x1;_0x31fb11['on']('contentInsertion',(_0x33220,_0x3b84ec)=>{_0xc2ccf6='paste'===_0x3b84ec['method'];}),_0x13bf56['model']['on']('insertContent',(_0x5d41d5,_0xd75eff)=>{if(!_0xc2ccf6&&null===_0x487c04['getSelectedTableCells']())return;const [_0x433685,_0x4aec35]=_0xd75eff,_0x3c1a8a=_0xd75eff[_0xd75eff['length']-0x1];_0x3c1a8a&&_0x3c1a8a['forceDefaultExecution']||_0x3785b5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xb31a19,_0x4ec406,_0x346410,_0x5ed7f2,_0x5c4984){if(_0x4ec406&&!_0x4ec406['is']('documentSelection'))return!0x1;const _0xac51b8=_0x5c4984['getTableIfOnlyTableInContent'](_0xb31a19,_0x346410);if(!_0xac51b8||!Oe(_0xac51b8,void 0x0,_0x5ed7f2))return!0x1;const _0x339b1f=_0x5ed7f2['getSelectionAffectedTableCells'](_0x346410['document']['selection']);if(!_0x339b1f['length'])return!0x1;const _0x373e73=_0x339b1f[0x0]['findAncestor']('table'),_0x327afe=_0x5ed7f2['getRowIndexes'](_0x339b1f),_0x598867=_0x5ed7f2['getColumnIndexes'](_0x339b1f),_0x2ae27f={'startRow':_0x327afe['first'],'endRow':_0x327afe['last'],'startColumn':_0x598867['first'],'endColumn':_0x598867['last']};return 0x1==_0x339b1f['length']&&(_0x2ae27f['endRow']+=_0x5ed7f2['getRows'](_0xac51b8)-0x1,_0x2ae27f['endColumn']+=_0x5ed7f2['getColumns'](_0xac51b8)-0x1),Oe(_0x373e73,_0x2ae27f,_0x5ed7f2);}(_0x433685,_0x4aec35,_0x13bf56['model'],_0x5d56e6,_0x49ee8c)&&(_0x5d41d5['stop'](),_0x4482c0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x13bf56['model']['change'](()=>{_0x13bf56['model']['insertContent'](_0xd75eff[0x0],_0xd75eff[0x1],_0xd75eff[0x2],{'forceDefaultExecution':!0x0});const _0x167464=_0xcdc81a(),{rowInsertionRanges:_0x54deeb,columnInsertionRanges:_0x586d5d,insertionRanges:_0xff0dbc,deletionRanges:_0x1ce683,cells:_0x2ff6bb}=_0x4482c0;_0x54deeb['length']&&_0x3785b5['markMultiRangeInsertion'](_0x54deeb,'tablePasteRow',{'tablePasteChainId':_0x167464}),_0x586d5d['length']&&_0x3785b5['markMultiRangeInsertion'](_0x586d5d,'tablePasteColumn',{'tablePasteChainId':_0x167464}),_0xff0dbc['length']&&(_0x3785b5['markMultiRangeInsertion'](_0xff0dbc,'tablePaste',{'tablePasteChainId':_0x167464,'skipNestingCheck':!0x0}),_0xff0dbc['forEach'](_0x18bdd5=>_0x18bdd5['detach']?.())),_0x1ce683['length']&&(_0x3785b5['markMultiRangeDeletion'](_0x1ce683,'tablePaste',{'tablePasteChainId':_0x167464,'skipNestingCheck':!0x0}),_0x1ce683['forEach'](_0x29eba8=>_0x29eba8['detach']?.()));const _0x4e3c36=_0x3785b5['markMultiRangeBlockFormat'](_0x2ff6bb['map'](({element:_0x1da981})=>_0x1da981),{'formatGroupId':_0xcdc81a()},[],'tablePasteCell',{'tablePasteChainId':_0x167464});if(_0x4e3c36){const _0x2e8bba=_0x4e3c36['getMarkers'](),_0x14d6e6=[];for(const {element:_0x1eb875,attributes:_0x5a5cdb}of _0x2ff6bb){if(!_0x5a5cdb)continue;const _0x3a4bc9=_0x13bf56['model']['createRangeOn'](_0x1eb875),_0x19669e=_0x2e8bba['find'](_0x4ae751=>_0x4ae751['getRange']()['isEqual'](_0x3a4bc9));_0x19669e&&_0x14d6e6['push']([_0x19669e['name'],_0x5a5cdb]);}_0x14d6e6['length']&&_0x4e3c36['setAttribute']('markerAttributes',Object['fromEntries'](_0x14d6e6));}_0x4482c0=null;}));},{'priority':_0x525aa5['high']+0xa}),_0x31fb11['on']('contentInsertion',()=>{_0xc2ccf6=!0x1;},{'priority':'lowest'}),_0x13bf56['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1246f8,_0x12fe15)=>{const [_0x1cd42f,_0x1ca317,,_0x55dbf2]=_0x12fe15;if(!_0x4482c0)return;_0x1246f8['stop']();const _0x5f3200=_0x1cd42f['cell'],_0x2867bd=_0x1ca317,_0x448b3e=Be(_0x5f3200),_0x4b1ab0=Be(_0x2867bd);_0x1246f8['return']=_0x5f3200;let _0x1eaf5d=null,_0x2d1040=null;if(_0x4b1ab0||_0x448b3e){if(_0x448b3e&&!_0x4b1ab0){_0x55dbf2['remove'](_0x5f3200['getChild'](0x0));for(const _0x52e646 of Array['from'](_0x2867bd['getChildren']()))_0x55dbf2['insert'](_0x52e646,_0x5f3200,'end');const _0x48f540=_0x4482c0['rowInsertionIndexes']['includes'](_0x1cd42f['row']),_0x453435=_0x4482c0['columnInsertionIndexes']['includes'](_0x1cd42f['column']);_0x48f540||_0x453435||(_0x1eaf5d=_0x4c3029['fromRange'](_0x55dbf2['createRangeIn'](_0x5f3200)));}else _0x4b1ab0&&!_0x448b3e&&(_0x2d1040=_0x55dbf2['createRangeIn'](_0x5f3200));}else{const _0x29f1de=_0x55dbf2['createElement']('tableCellSuggestion'),_0xa9361a=_0x55dbf2['createElement']('tableCellSuggestion');_0x55dbf2['wrap'](_0x55dbf2['createRangeIn'](_0x5f3200),_0xa9361a),_0x55dbf2['insert'](_0x29f1de,_0x5f3200,0x0);for(const _0x3cd4f4 of Array['from'](_0x2867bd['getChildren']()))_0x55dbf2['insert'](_0x3cd4f4,_0x29f1de,'end');_0x1eaf5d=_0x4c3029['fromRange'](_0x55dbf2['createRangeOn'](_0x29f1de)),_0x2d1040=_0x4c3029['fromRange'](_0x55dbf2['createRangeOn'](_0xa9361a));}const _0x186550=Array['from'](_0x2867bd['getAttributes']())['filter'](([_0x803e1c])=>Re['includes'](_0x803e1c));_0x4482c0['cells']['push']({'element':_0x5f3200,'attributes':_0x186550['length']?Object['fromEntries'](_0x186550):null}),_0x1eaf5d&&_0x4482c0['insertionRanges']['push'](_0x1eaf5d),_0x2d1040&&_0x4482c0['deletionRanges']['push'](_0x2d1040);},{'priority':'high'}),_0x5d56e6['on']('insertColumns',(_0x566cac,_0x4af103)=>{const [_0x4635e5,_0x513309={}]=_0x4af103;if(!_0x4482c0)return;const _0x49f559=_0x513309['at']||0x0,_0x13fc08=_0x513309['columns']||0x1;_0x4482c0['columnInsertionIndexes']=new Array(_0x13fc08)['fill'](_0x49f559)['map']((_0x23eb73,_0x34f6be)=>_0x23eb73+_0x34f6be);for(const {cell:_0x5586ae}of _0x5d56e6['createTableWalker'](_0x4635e5,{'startColumn':_0x49f559,'endColumn':_0x49f559+_0x13fc08-0x1}))_0x4482c0['columnInsertionRanges']['push'](_0x13bf56['model']['createRangeOn'](_0x5586ae));},{'priority':'low'}),_0x5d56e6['on']('insertRows',(_0x3ae257,_0x20f8b2)=>{const [_0x4948d3,_0x475a9c={}]=_0x20f8b2;if(!_0x4482c0)return;const _0x4e998c=_0x475a9c['at']||0x0,_0x2c3145=_0x475a9c['rows']||0x1;_0x4482c0['rowInsertionIndexes']=new Array(_0x2c3145)['fill'](_0x4e998c)['map']((_0x9c7bf5,_0x49341c)=>_0x9c7bf5+_0x49341c);for(const {cell:_0x99e51}of _0x5d56e6['createTableWalker'](_0x4948d3,{'startRow':_0x4e998c,'endRow':_0x4e998c+_0x2c3145-0x1}))_0x4482c0['rowInsertionRanges']['push'](_0x13bf56['model']['createRangeOn'](_0x99e51));},{'priority':'low'}),_0x3785b5['descriptionFactory']['registerDescriptionCallback'](_0x7cad68=>{if(_0x7cad68['subType']&&_0x7cad68['subType']['startsWith']('tablePaste'))return _0x7cad68['previous']?{}:{'type':'insertion','content':o(_0x13bf56['locale'],'*Replace\x20table\x20cells*')};});const _0x590e10=()=>!0x1;for(const _0x39adac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3785b5['_suggestionFactory']['registerCustomCallback']('insertion',_0x39adac,'join',_0x590e10),_0x3785b5['_suggestionFactory']['registerCustomCallback']('deletion',_0x39adac,'join',_0x590e10),_0x3785b5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39adac,'join',_0x590e10);_0x3785b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x590e10),_0x3785b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a2dbf,_0x3ce312,_0xfb0369)=>{const _0x4199be=_0x1a2dbf['map'](_0x55dfca=>_0x55dfca['getContainedElement']())['filter'](_0x4b0ec4=>_0x4b0ec4),_0x4a7bbb=new Map(_0x4199be['map'](_0x3c4a9f=>[_0x3c4a9f,null]));if(_0x4482c0){for(const {element:_0x4ddbde,attributes:_0x1fb20e}of _0x4482c0['cells'])_0x1fb20e&&_0x4a7bbb['set'](_0x4ddbde,_0x1fb20e);}else{if(_0xfb0369&&_0xfb0369['markerAttributes'])for(const [_0x872e4,_0x10c3c4]of Object['entries'](_0xfb0369['markerAttributes'])){const _0x56806f=_0x13bf56['model']['markers']['get'](_0x872e4),_0x358c82=_0x56806f?_0x56806f['getRange']()['getContainedElement']():null;_0x358c82&&_0x4a7bbb['set'](_0x358c82,_0x10c3c4);}}_0x13bf56['model']['change'](_0x517db8=>{for(const [_0x3fb807,_0x2ec164]of _0x4a7bbb)_0x517db8['setAttributes']({...Ae,..._0x2ec164},_0x3fb807);});});const _0x217486=(_0x76aa4e,_0x2d20e2)=>{_0x3785b5['_suggestionFactory']['registerCustomCallback'](_0x76aa4e,'tablePaste',_0x2d20e2,(_0x5b65f5,_0x46c43b,_0x56e37a)=>{_0x13bf56['model']['change'](_0x24dcdd=>{const _0x3dfc2a=[];for(const _0x20308d of _0x5b65f5){const _0x4a4765=_0x20308d['start']['nodeAfter'];_0x4a4765['is']('element','tableCellSuggestion')&&_0x3dfc2a['push'](_0x4a4765);}_0x3785b5['_suggestionFactory']['getSuggestionCallback'](_0x76aa4e,null,_0x2d20e2)(_0x5b65f5,_0x46c43b,_0x56e37a);for(const _0x4d2c4f of _0x3dfc2a)'$graveyard'!=_0x4d2c4f['root']['rootName']&&_0x24dcdd['unwrap'](_0x4d2c4f);});});};_0x217486('insertion','accept'),_0x217486('insertion','discard'),_0x217486('deletion','accept'),_0x217486('deletion','discard'),_0x3785b5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4064f2=>{const _0x5bdf38=_0x4064f2['map'](_0x1d58e3=>_0x1d58e3['getContainedElement']()),_0x421922=_0x5bdf38[0x0]['findAncestor']('table'),{minRow:_0x3f2a58,maxRow:_0x2ef4c9}=_0x3a6eaa['_getCoordsForCells'](_0x5bdf38);_0x5d56e6['removeRows'](_0x421922,{'at':_0x3f2a58,'rows':_0x2ef4c9-_0x3f2a58+0x1});}),_0x3785b5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5154cc=>{const _0x3c763f=_0x5154cc['map'](_0x14829b=>_0x14829b['getContainedElement']()),_0x446a99=_0x3c763f[0x0]['findAncestor']('table'),{minColumn:_0x13f272,maxColumn:_0x3c9c11}=_0x3a6eaa['_getCoordsForCells'](_0x3c763f);_0x5d56e6['removeColumns'](_0x446a99,{'at':_0x13f272,'columns':_0x3c9c11-_0x13f272+0x1});});const _0x27d0ad=(_0x1e0338,_0x4cb10d)=>{if(!_0x4cb10d['subType']||!_0x4cb10d['subType']['startsWith']('tablePaste'))return;const _0x386036=_0x4cb10d['attributes']['tablePasteChainId'],_0x5c7395=_0x3785b5['getSuggestions']()['filter'](_0x54ef95=>_0x54ef95['isInContent']&&_0x54ef95['attributes']&&_0x54ef95['attributes']['tablePasteChainId']==_0x386036);_0x5c7395['length']&&_0x4cb10d['getAllAdjacentSuggestions']()['length']!=_0x5c7395['length']&&_0x5c7395['reduce']((_0x3dae62,_0x12b203)=>(_0x3dae62['next']=_0x12b203,_0x12b203['previous']=_0x3dae62,_0x12b203));};function _0x5cecb2(_0x4b7cfd,_0xd3ee9d=!0x0){const {id:_0x19af83,authorId:_0x266618}=_0x3785b5['_splitMarkerName'](_0x4b7cfd['markerName']),_0x1cc539=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x58ba4e=_0x3785b5['activeMarkers']['includes'](_0x4b7cfd['markerName']);return _0x58ba4e&&_0x1cc539['push']('ck-suggestion-marker--active'),{'classes':_0x1cc539,'attributes':{'data-suggestion':_0x19af83,'data-author-id':_0x266618},'priority':_0x58ba4e&&_0xd3ee9d?0xbc2:0xbb8};}_0x3785b5['on']('suggestionLoaded',_0x27d0ad,{'priority':'high'}),_0x3785b5['on']('suggestionUnloaded',_0x27d0ad,{'priority':'high'}),_0x13bf56['model']['document']['registerPostFixer'](()=>{let _0xcbd9a5=!0x1;const _0x3c175d=Array['from'](_0x13bf56['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19a9b6,data:_0x5e8491}of _0x3c175d){const {group:_0x78ea44,type:_0x57cf14,id:_0x3806fb}=_0x3785b5['_splitMarkerName'](_0x19a9b6);if('suggestion'!=_0x78ea44||'deletion'!=_0x57cf14||_0x5e8491['oldRange'])continue;if(!_0x3785b5['hasSuggestion'](_0x3806fb))continue;const _0x4c26f1=_0x3785b5['getSuggestion'](_0x3806fb)['getRanges'](),_0x49968e=_0x13bf56['plugins']['get']('Users')['me'];for(const _0xb38c15 of _0x3785b5['getSuggestions']()){if(!_0xb38c15['isInContent']||_0xb38c15['author']!=_0x49968e)continue;if('formatBlock'!=_0xb38c15['type']||'tablePasteCell'!=_0xb38c15['subType'])continue;if(_0xb38c15['getRanges']()['every'](_0x3838cc=>_0x4c26f1['some'](_0x28788a=>_0x28788a['containsRange'](_0x3838cc,!0x0)))){for(const _0x5eaae2 of _0xb38c15['getAllAdjacentSuggestions']())_0x5eaae2['isInContent']&&(_0x5eaae2['discard'](),_0xcbd9a5=!0x0);}}}return _0xcbd9a5;}),_0x13bf56['model']['document']['registerPostFixer'](_0x3967b5=>{const _0x21c8d8=_0x13bf56['commands']['get']('redo');if(!_0x21c8d8||!_0x21c8d8['_createdBatches']['has'](_0x3967b5['batch']))return!0x1;let _0x915226=!0x1;const _0x43042e=_0x13bf56['plugins']['get']('Users')['me'],_0x45172a=_0x13bf56['model']['document']['differ']['getChanges'](),_0x452184=Array['from'](_0x13bf56['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x413d70,data:_0x3b9ecb})=>{const {group:_0x3c7949,subType:_0xf542ca,authorId:_0x6ae8df}=_0x3785b5['_splitMarkerName'](_0x413d70);return'suggestion'==_0x3c7949&&'tablePaste'==_0xf542ca&&_0x6ae8df==_0x43042e['id']&&!_0x3b9ecb['oldRange'];});for(const _0x1288cc of _0x45172a){if('insert'!=_0x1288cc['type']||'tableCellSuggestion'!=_0x1288cc['name']||0x1!=_0x1288cc['length'])continue;const _0x5856f0=_0x3967b5['createRange'](_0x1288cc['position'],_0x1288cc['position']['getShiftedBy'](0x1));if(!_0x452184['find'](({data:_0x18fa36})=>_0x18fa36['newRange']['isEqual'](_0x5856f0))){for(const {name:_0x153bdb,data:_0x13f763}of _0x452184)if(_0x5856f0['containsRange'](_0x13f763['newRange'])){_0x3967b5['updateMarker'](_0x153bdb,{'range':_0x5856f0}),_0x915226=!0x0;break;}}}return _0x915226;}),_0x13bf56['model']['document']['registerPostFixer'](_0x2cf98f=>{let _0x4ef4de=!0x1;const _0x49d588=_0x13bf56['plugins']['get']('Users')['me'],_0x2b5316=_0x3785b5['getSuggestions']()['filter'](_0xed1924=>_0xed1924['isInContent']&&_0xed1924['author']==_0x49d588),_0x4b76d1=new Set(),_0x1c0584=new Set();for(const _0x20f7e8 of _0x2b5316)if('tablePaste'==_0x20f7e8['subType'])for(const _0x8800bc of _0x20f7e8['getMarkers']()){const _0x5acd83=_0x8800bc['getRange']()['getContainedElement']();if(_0x5acd83){if(_0x5acd83['is']('element','tableCellSuggestion')&&Be(_0x5acd83)){_0x20f7e8['removeMarker'](_0x8800bc['name']),_0x4b76d1['add'](_0x5acd83),_0x4ef4de=!0x0;const _0x1a133c=_0x5acd83['nextSibling'],_0x472f04=_0x5acd83['previousSibling'],_0x139bd5=_0x1a133c&&_0x1a133c['is']('element','tableCellSuggestion'),_0x59f8b6=_0x472f04&&_0x472f04['is']('element','tableCellSuggestion');_0x139bd5&&!_0x4b76d1['has'](_0x1a133c)&&_0x1c0584['add'](_0x1a133c),_0x59f8b6&&!_0x4b76d1['has'](_0x472f04)&&_0x1c0584['add'](_0x472f04);}else _0x5acd83['is']('element','paragraph')&&_0x5acd83['isEmpty']&&(_0x20f7e8['removeMarker'](_0x8800bc['name']),_0x4ef4de=!0x0);}}else{if('tablePasteCell'==_0x20f7e8['subType']){if(!_0x20f7e8['attributes']||!_0x20f7e8['attributes']['tablePasteChainId'])continue;const _0x81279a=_0x20f7e8['attributes']['markerAttributes'];if(_0x81279a&&Object['keys'](_0x81279a)['length'])continue;const _0x40aca6=_0x20f7e8['attributes']['tablePasteChainId'];let _0x920683=!0x0,_0x112317=!0x0;for(const _0x5a2cab of _0x2b5316)if(_0x5a2cab['subType']&&_0x5a2cab['subType']['startsWith']('tablePaste')){if(!_0x5a2cab['attributes']['tablePasteChainId']){_0x112317=!0x1;break;}if(_0x5a2cab['id']!=_0x20f7e8['id']&&_0x5a2cab['attributes']['tablePasteChainId']==_0x40aca6){_0x920683=!0x1;break;}}_0x112317&&_0x920683&&(_0x20f7e8['removeMarkers'](),_0x4ef4de=!0x0);}}for(const _0x34b62b of _0x4b76d1)_0x2cf98f['remove'](_0x34b62b);for(const _0x20414d of _0x1c0584)_0x2cf98f['unwrap'](_0x20414d);return _0x4ef4de;}),_0x13bf56['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4fa93b=>_0x5cecb2(_0x4fa93b),'converterPriority':'high'}),_0x13bf56['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3bc929,_0x4c5859)=>_0x4c5859['options']['showSuggestionHighlights']?_0x5cecb2(_0x3bc929,!0x1):null,'converterPriority':'high'});const _0x276ee8=_0x13bf56['editing']['view'];this['listenTo'](_0x276ee8['document'],'clipboardOutput',(_0x220663,_0x42e734)=>{const _0x558130=[];for(const _0x5d0c4b of _0x276ee8['createRangeIn'](_0x42e734['content'])['getItems']())_0x5d0c4b['is']('element','suggestion-td')&&_0x558130['push'](_0x5d0c4b);_0x276ee8['change'](_0x4bc8b6=>{for(const _0x50b81b of _0x558130)_0x4bc8b6['move'](_0x4bc8b6['createRangeIn'](_0x50b81b),_0x4bc8b6['createPositionBefore'](_0x50b81b)),_0x4bc8b6['remove'](_0x50b81b);});});}}function Be(_0x26d5e4){if(_0x26d5e4['isEmpty'])return!0x0;const _0x149817=_0x26d5e4['getChild'](0x0);return _0x149817['is']('element','paragraph')&&_0x149817['isEmpty'];}function Oe(_0x12e102,_0x153dc5={},_0x3eef77){for(const {isAnchor:_0xa2b661,cellHeight:_0x2b0530,cellWidth:_0x29b3f8}of _0x3eef77['createTableWalker'](_0x12e102,{'includeAllSlots':!0x0,..._0x153dc5}))if(!_0xa2b661||0x1!=_0x2b0530||0x1!=_0x29b3f8)return!0x1;return!0x0;}class Rt extends _0x2aad9b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x791d57=this['editor']['plugins']['get']('TrackChangesEditing');_0x791d57['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x791d57['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x791d57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x791d57['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x791d57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x791d57['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x541340,_0x401557){const _0x593102=this['editor']['plugins']['get']('TrackChangesEditing'),_0x342d59=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x12eecf=_0x401557['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x169fa3=_0x342d59['getColumnGroupElement'](_0x12eecf);let _0x30e5c9=_0x169fa3?_0x342d59['getTableColumnsWidths'](_0x169fa3):null,_0x3608f0=_0x12eecf['getAttribute']('tableWidth')||null;const _0x247a25=_0x401557['tableWidth']||_0x3608f0,_0x235453=_0x401557['columnWidths']||_0x30e5c9,_0x3df41c=this['editor']['plugins']['get']('Users')['me'];for(const _0x2192be of _0x593102['getSuggestions']()){const _0x35b2da=_0x2192be['getContainedElement']();if('resizeTable'===_0x2192be['subType']&&_0x35b2da===_0x12eecf){_0x2192be['author']!==_0x3df41c&&_0x2192be['discard']();const _0xc79baf=_0x2192be['data']['commandParams'];_0x3608f0=_0xc79baf[0x0]['tableWidth'],_0x30e5c9=_0xc79baf[0x0]['columnWidths'];break;}}_0x541340({'table':_0x12eecf,'tableWidth':_0x247a25,'columnWidths':_0x235453}),_0x593102['markBlockFormat'](_0x12eecf,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3608f0,'columnWidths':_0x30e5c9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3bdad4){if('formatBlock'!=_0x3bdad4['type']&&'formatInline'!=_0x3bdad4['type'])return;const {data:_0x45108a}=_0x3bdad4;if(_0x45108a&&'resizeTable'===_0x45108a['formatGroupId']){const _0x4f9a3f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4f9a3f)};}}}class Tt extends _0x2aad9b{['afterInit'](){const _0x49fb23=this['editor'];_0x49fb23['plugins']['has']('Template')&&_0x49fb23['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x2aad9b{['afterInit'](){const _0x42dd25=this['editor'];if(!_0x42dd25['commands']['get']('insertTableOfContents'))return;_0x42dd25['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2c648f=_0x42dd25['plugins']['get']('TrackChangesEditing'),_0x3606e7=_0x42dd25['locale'];_0x2c648f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x41ead2=>o(_0x3606e7,'ELEMENT_TABLE_OF_CONTENTS',_0x41ead2));}}class Ut extends _0x2aad9b{['afterInit'](){const _0x2e4fbc=this['editor'];if(!_0x2e4fbc['plugins']['has']('Title'))return;const _0x3168d8=_0x2e4fbc['plugins']['get']('TrackChangesEditing');_0x3168d8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e4fbc['locale'],'ELEMENT_TITLE')),_0x2e4fbc['model']['document']['registerPostFixer'](_0x5306ee=>{let _0x5a7b00=!0x1;const _0x4b7584=Array['from'](_0x2e4fbc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24ca92,data:_0x3c5c29}of _0x4b7584){const {group:_0x5c3cf4}=_0x3168d8['_splitMarkerName'](_0x24ca92);if('suggestion'!==_0x5c3cf4||!_0x3c5c29['newRange'])continue;const _0x18a494=_0x3c5c29['newRange'],_0x1974ce=_0x18a494['end']['nodeBefore'];if(!_0x1974ce||!_0x1974ce['is']('element','title-content'))continue;if(!_0x18a494['start']['isTouching'](_0x18a494['end']))continue;const _0x34cbf9=_0x2e4fbc['model']['schema']['getNearestSelectionRange'](_0x18a494['end'],'forward');if(_0x34cbf9&&_0x34cbf9['isCollapsed']){const _0x432101=_0x5306ee['createRange'](_0x18a494['start'],_0x34cbf9['start']);_0x432101['isEqual'](_0x18a494)||(_0x5306ee['updateMarker'](_0x24ca92,{'range':_0x432101}),_0x5a7b00=!0x0);}_0x5a7b00||(_0x5306ee['removeMarker'](_0x24ca92),_0x5a7b00=!0x0);}return _0x5a7b00;});}}class Vt extends _0x2aad9b{['afterInit'](){const _0x165b7c=this['editor'],_0x2cf2d2=_0x165b7c['plugins']['get']('TrackChangesEditing');_0x165b7c['plugins']['has']('Uploadcare')&&(_0x2cf2d2['enableCommand']('uploadcare'),_0x165b7c['plugins']['has']('UploadcareImageEdit')&&(_0x2cf2d2['enableCommand']('uploadcareImageEdit'),_0x2cf2d2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2cf2d2['descriptionFactory']['registerDescriptionCallback'](_0x4d35a7=>{if('attribute'!=_0x4d35a7['type'])return;const {data:_0x2b59ed}=_0x4d35a7;return _0x2b59ed&&'uploadcareImageId'==_0x2b59ed['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x2aad9b{['afterInit'](){const _0x18581c=this['editor'],_0x2a1855=_0x18581c['plugins']['get']('TrackChangesEditing');_0x18581c['plugins']['has']('UndoEditing')&&(_0x2a1855['enableCommand']('undo'),_0x2a1855['enableCommand']('redo'));}}class Pt extends _0x2aad9b{static get['requires'](){return[Dt];}['afterInit'](){const _0x514668=this['editor'];if(!_0x514668['plugins']['has']('TableCaptionEditing'))return;_0x514668['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x2aad9b{['tableProperties'];['tableCellProperties'];constructor(_0x1fe8bc){super(_0x1fe8bc),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x1fe8bc['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1ef85e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x36e9b4 of this['tableProperties'])_0x1ef85e['enableCommand'](_0x36e9b4,(_0x58d705,_0x51e8f0)=>{const _0x4518d5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x36e9b4,[_0x4518d5],this['tableProperties'],'tableProperties',_0x58d705,_0x51e8f0);});_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ef85e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4ca17e,_0x19081a)=>this['handleDiscardAction'](this['tableProperties'],_0x4ca17e,_0x19081a)),_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b1a38 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1b1a38)&&_0x1ef85e['enableCommand'](_0x1b1a38,(_0x294024,_0x437d6b)=>{const _0x250774=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b1a38,_0x250774,this['tableCellProperties'],'tableCellProperties',_0x294024,_0x437d6b);});_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ef85e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x41dbf3,_0x3a7d7b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x41dbf3,_0x3a7d7b)),_0x1ef85e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1ef85e['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1ef85e['descriptionFactory']['registerDescriptionCallback'](_0x2caf73=>this['handleSuggestionDescription'](_0x2caf73)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x23a6cb,_0x3bdae6,_0x4eb255,_0x55eb18,_0x307229,_0x637e25){const _0x623726=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x637e25['batch'],()=>{for(const _0x478a49 of _0x3bdae6){if(this['_getSuggestion'](_0x478a49,_0x55eb18))_0x307229(_0x637e25);else{const _0x50d4a1={};for(const _0x216a4c of _0x4eb255){const _0x364014=_0x478a49['getAttribute'](_0x216a4c);void 0x0!==_0x364014&&(_0x50d4a1[_0x216a4c]=_0x364014);}_0x307229(_0x637e25),_0x623726['markBlockFormat'](_0x478a49,{'commandParams':[_0x50d4a1]},[],_0x55eb18);}}});}['handleDiscardAction'](_0x226a74,_0x53229d,_0x4d6cbe){const _0x4ce48a=_0x53229d[0x0]['start']['nodeAfter'],_0x4f3b69=_0x4d6cbe['commandParams'][0x0];this['editor']['model']['change'](_0xd9db4e=>{for(const _0x3d4cb1 of _0x226a74)void 0x0!==_0x4f3b69[_0x3d4cb1]?_0xd9db4e['setAttribute'](_0x3d4cb1,_0x4f3b69[_0x3d4cb1],_0x4ce48a):_0xd9db4e['removeAttribute'](_0x3d4cb1,_0x4ce48a);});}['handleSuggestionDescription'](_0x5ddfc6){if(_0x5ddfc6['data'])switch(_0x5ddfc6['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'](_0x469bc8,_0x3ca469){const _0x308309=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d1c9d of _0x308309['getSuggestions']({'skipNotAttached':!0x0})){const _0xe61bd4=_0x3d1c9d['getContainedElement']();if(_0x3d1c9d['subType']===_0x3ca469&&_0xe61bd4===_0x469bc8)return _0x3d1c9d;}return null;}['_registerTablePropertiesAttributes'](){const _0x1d999b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x266f6=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x58bd99 of _0x266f6){const _0xa02340=_0x58bd99['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1d999b['descriptionFactory']['registerAttributeLabel'](_0x58bd99,o(this['editor']['locale'],'FORMAT_'+_0xa02340));}}}class Lt extends _0x2aad9b{['afterInit'](){const _0x468b86=this['editor'];if(!_0x468b86['plugins']['has']('LineHeight'))return;const _0x5cf5af=_0x468b86['plugins']['get']('TrackChangesEditing'),_0x39162d=_0x468b86['locale'];_0x5cf5af['enableDefaultAttributesIntegration']('lineHeight'),_0x5cf5af['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x39162d,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2aad9b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5d38f7,_0x298dab,_0x95103c,_0x4857f0,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x512f9c){super(_0x512f9c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x543ec4,_0x4179c1,_0x3dce3f,_0x10665e)=>{this['_model']['change'](()=>{for(const _0x3f59d4 of[..._0x10665e,..._0x3dce3f])this['_model']['markers']['has'](_0x3f59d4)&&_0x512f9c['editing']['reconvertMarker'](_0x3f59d4);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x512f9c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x512f9c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x512f9c['config']['get']('trackChanges.trackFormatChanges'),_0x512f9c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x512f9c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x512f9c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d6bb8=this['editor'];_0x3d6bb8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x40a637,{writer:_0x353519})=>{let _0x537f3b='suggestion:'+_0x40a637['getAttribute']('suggestion-type')+':'+_0x40a637['getAttribute']('id');return _0x40a637['getAttribute']('marker-count')&&(_0x537f3b+=':'+_0x40a637['getAttribute']('marker-count')),_0x353519['createElement']('$marker',{'data-name':_0x537f3b});}}),_0x3d6bb8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d6bb8['model']['document']['registerPostFixer'](_0x391b00=>{let _0x642b1f=!0x1;const _0x241a8e=Array['from'](_0x3d6bb8['model']['document']['differ']['getChangedMarkers']()),_0x1737b2=new Set();for(const {name:_0x309533,data:_0x3ddb82}of _0x241a8e){const {group:_0x4800d9,type:_0x27f454,subType:_0x1eedd6,id:_0x33e52d}=this['_splitMarkerName'](_0x309533);if('suggestion'!==_0x4800d9)continue;const _0x4b2fbd=_0x1eedd6?'suggestion:'+_0x27f454+':'+_0x1eedd6+':'+_0x33e52d:'suggestion:'+_0x27f454+':'+_0x33e52d,_0x5b38e3=_0x3d6bb8['model']['markers']['getMarkersGroup'](_0x4b2fbd),_0x116d76=_0x3d6bb8['model']['markers']['get'](_0x309533),_0x4756d7=this['_suggestions']['get'](_0x33e52d);if(null!=_0x3ddb82['newRange']){'formatInline'==_0x27f454&&(_0x642b1f=_0x642b1f||Wt(_0x3ddb82['newRange'],_0x309533,_0x391b00,_0x3d6bb8['model']['schema']));const _0x41cd67='attribute'==_0x27f454&&this['_isBlockAttribute'](_0x1eedd6['split']('|')[0x0]),_0x880a3e='attribute'==_0x27f454&&this['_isInlineAttribute'](_0x1eedd6['split']('|')[0x0]);if(_0x3ddb82['newRange']['isCollapsed']||'$graveyard'==_0x3ddb82['newRange']['root']['rootName']||'formatBlock'==_0x27f454&&!Qt(_0x3ddb82['newRange'])||_0x41cd67&&!Qt(_0x3ddb82['newRange'])||_0x880a3e&&Xt(_0x3ddb82['newRange'])||'deletion'==_0x27f454&&Xt(_0x3ddb82['newRange'])||_0x116d76&&Yt(_0x116d76,_0x5b38e3))_0x391b00['removeMarker'](_0x309533),_0x642b1f=!0x0;else{if(!_0x4756d7||!_0x4756d7['isInContent'])continue;if(_0x3ddb82['newRange']&&_0x3ddb82['oldRange']&&_0x3ddb82['newRange']['isEqual'](_0x3ddb82['oldRange']))continue;_0x1737b2['add'](_0x4756d7);}}}return _0x1737b2['size']>0x0&&(_0x642b1f=!!this['_joinWithAdjacentSuggestions'](_0x1737b2)||_0x642b1f),_0x642b1f;}),_0x3d6bb8['model']['document']['registerPostFixer'](_0x3f0f36=>{let _0x2ed10c=!0x1;for(const _0x5aadfe of _0x3d6bb8['model']['document']['differ']['getChanges']())if('insert'==_0x5aadfe['type'])for(const _0x50c3e8 of this['_suggestions']['values']()){if(_0x50c3e8['isMultiRange']||!_0x50c3e8['isInContent'])continue;const _0x769677='formatBlock'==_0x50c3e8['type'],_0x20be06=this['_getAttributeKey'](_0x50c3e8),_0x386413=_0x20be06&&this['_isBlockAttribute'](_0x20be06);if(!_0x769677&&!_0x386413)continue;const _0xc01f5b=_0x50c3e8['getFirstRange']();if(_0xc01f5b['start']['parent']!=_0xc01f5b['end']['parent']&&!_0xc01f5b['end']['isAtEnd']){const _0x4c09ae=_0x3d6bb8['model']['createPositionAt'](_0xc01f5b['start']['nodeAfter'],'end'),_0x260fdd=_0x3d6bb8['model']['createRange'](_0xc01f5b['start'],_0x4c09ae);_0x3f0f36['updateMarker'](_0x50c3e8['getFirstMarker'](),{'range':_0x260fdd}),_0x2ed10c=!0x0;}}return _0x2ed10c;}),_0x3d6bb8['model']['document']['registerPostFixer'](_0x1fa471=>this['_processAttributeChanges'](_0x1fa471)),_0x3d6bb8['model']['document']['registerPostFixer'](_0x54da1c=>!_0x54da1c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54da1c)),_0x3d6bb8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d6bb8['model']['document']['on']('change:data',(_0x2c6847,_0x5706ea)=>{if(!_0x5706ea['isLocal']||_0x5706ea['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b564b=_0x3d6bb8['model']['document']['differ']['getChanges']();if(0x0==_0x4b564b['length'])return;const _0x1b46b4=[],_0x1d410b=_0x4b564b['filter'](_0x106ade=>'attribute'==_0x106ade['type']),_0x2c1997=_0x4b564b['filter'](_0x33cd5a=>'insert'==_0x33cd5a['type']&&'$text'!=_0x33cd5a['name']);for(const _0x15ff4f of _0x1d410b)this['_isRegisteredAttribute'](_0x15ff4f['attributeKey'])&&_0x1b46b4['push']({'key':_0x15ff4f['attributeKey'],'newValue':_0x15ff4f['attributeNewValue'],'oldValue':_0x15ff4f['attributeOldValue'],'range':Zt(_0x15ff4f['range'],_0x3d6bb8['model'])});for(const _0x260845 of _0x2c1997){if('rename'!=_0x260845['action']&&'refresh'!=_0x260845['action'])continue;const _0x414cc6=tn(_0x260845['position']['nodeAfter'],_0x3d6bb8['model']),_0x200db0=_0x260845['before'];'rename'==_0x260845['action']&&_0x1b46b4['push']({'key':m,'newValue':_0x260845['name'],'oldValue':_0x200db0['name'],'range':_0x414cc6});for(const [_0x5ce24a,_0x49bf59]of _0x200db0['attributes']){if(!this['_isRegisteredAttribute'](_0x5ce24a))continue;const _0x2162ea=_0x260845['attributes']['get'](_0x5ce24a);_0x49bf59!==_0x2162ea&&_0x1b46b4['push']({'key':_0x5ce24a,'newValue':_0x2162ea,'oldValue':_0x49bf59,'range':_0x414cc6});}for(const [_0x3f56a5,_0x5b2117]of _0x260845['attributes'])this['_isRegisteredAttribute'](_0x3f56a5)&&(_0x200db0['attributes']['has'](_0x3f56a5)||_0x1b46b4['push']({'key':_0x3f56a5,'newValue':_0x5b2117,'oldValue':null,'range':_0x414cc6}));}0x0!=_0x1b46b4['length']&&_0x3d6bb8['model']['enqueueChange'](_0x5706ea,_0x18d166=>{const _0x2ae5c5=_0xcdc81a();for(const {range:_0x3ce023,key:_0x20e398,oldValue:_0x25569d,newValue:_0x48fdcf}of _0x1b46b4)this['markAttributeChange'](_0x3ce023,_0x20e398,_0x25569d,_0x48fdcf,{'groupId':_0x2ae5c5});this['_reduceExistingSuggestions'](_0x18d166,_0x1b46b4);});},{'priority':'lowest'}),_0x3d6bb8['model']['markers']['on']('update:suggestion',(_0x55417b,_0x8986da,_0xc7ba95)=>{if(null==_0xc7ba95){const {id:_0x4e715a}=this['_splitMarkerName'](_0x8986da['name']),_0xb5c166=this['_suggestions']['get'](_0x4e715a);_0xb5c166&&_0xb5c166['addMarkerName'](_0x8986da['name']);}}),_0x3d6bb8['model']['document']['on']('change:data',()=>{const _0x1aff49=Array['from'](_0x3d6bb8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x527166=>'suggestion'===this['_splitMarkerName'](_0x527166['name'])['group']);if(0x0===_0x1aff49['length'])return;_0x1aff49['sort']((_0x426f41,_0x492acd)=>{const _0x1b5de5=_0x426f41['data']['oldRange'],_0x56d4c3=_0x492acd['data']['oldRange'];return null===_0x1b5de5&&null===_0x56d4c3?0x0:null===_0x1b5de5&&null!==_0x56d4c3?-0x1:null!==_0x1b5de5&&null===_0x56d4c3?0x1:_0x1b5de5['start']['isBefore'](_0x56d4c3['start'])?-0x1:0x1;});const _0x314b97=new Set(),_0x8293ec=new Set();for(const {name:_0x2283ed,data:_0x5c92d2}of _0x1aff49){const {id:_0x4025d1}=this['_splitMarkerName'](_0x2283ed);if(null===_0x5c92d2['oldRange']){const _0xf943a0=this['_handleNewSuggestionMarker'](_0x2283ed);_0x8293ec['add'](_0xf943a0);}else{const _0x3fd50c=this['_suggestions']['get'](_0x4025d1);null!==_0x5c92d2['newRange']||_0x3fd50c['isInContent']?(_0x314b97['add'](_0x3fd50c['head']),_0x8293ec['add'](_0x3fd50c)):this['_removeSuggestion'](_0x3fd50c);}}_0x8293ec['size']>0x0&&this['_refreshSuggestionsChain'](_0x8293ec);for(const _0x2c59a8 of _0x314b97)this['fire']('suggestionChanged',_0x2c59a8);}),_0x3d6bb8['model']['on']('applyOperation',(_0x517d3d,_0x91c027)=>{const _0x22a5fd=_0x91c027[0x0];if(!this['_suggestions']['size'])return;if(!_0x22a5fd['isDocumentOperation'])return;if(_0x22a5fd['batch']['isUndo']||!_0x22a5fd['batch']['isLocal'])return;let _0x6b965c,_0x27ef91;switch(_0x22a5fd['type']){case'insert':_0x6b965c=_0x3d6bb8['model']['createPositionAt'](_0x22a5fd['position']),_0x27ef91=_0x6b965c['getShiftedBy'](_0x22a5fd['howMany']);break;case'split':_0x6b965c=_0x3d6bb8['model']['createPositionAt'](_0x22a5fd['splitPosition']),_0x27ef91=_0x3d6bb8['model']['createPositionAt'](_0x22a5fd['moveTargetPosition']);break;case'move':_0x6b965c=_0x3d6bb8['model']['createPositionAt'](_0x22a5fd['targetPosition']),_0x27ef91=_0x6b965c['getShiftedBy'](_0x22a5fd['howMany']);break;default:return;}const _0x54cf68=_0x3d6bb8['model']['createRange'](_0x6b965c,_0x27ef91);_0x3d6bb8['model']['change'](()=>{for(const {suggestion:_0x5e4d06,meta:_0x481218}of this['_findSuggestions'](_0x54cf68)){if(_0x5e4d06['isMultiRange'])continue;if('formatInline'==_0x5e4d06['type'])continue;const _0x74d446=this['_getAttributeKey'](_0x5e4d06);if(_0x74d446&&this['_isBlockAttribute'](_0x74d446)&&'split'!=_0x22a5fd['type'])continue;const _0x2ce445=_0x5e4d06['data']&&_0x5e4d06['data']['multipleBlocks'];('formatBlock'!=_0x5e4d06['type']||'split'==_0x22a5fd['type']&&!_0x2ce445)&&(_0x481218['containsRangeInObject']||'insertion'==_0x5e4d06['type']&&_0x481218['isOwn']||_0x5e4d06['getFirstRange']()['containsRange'](_0x54cf68)&&this['_breakSuggestionMarker'](_0x5e4d06,_0x6b965c,_0x27ef91));}});},{'priority':'lowest'}),_0x3d6bb8['model']['on']('deleteContent',(_0x314805,_0x99b3ba)=>{const _0x56a6d1=_0x99b3ba[0x0],_0x33cec4=_0x99b3ba[0x1];if(_0x33cec4&&_0x33cec4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x56a6d1['isCollapsed'])return;const _0x1168b6=_0x3d6bb8['model']['schema'],{start:_0x5817e3,end:_0xd1044f}=_0x56a6d1['getFirstRange'](),_0xfb49b9=_0x5817e3['nodeAfter']&&_0x1168b6['isLimit'](_0x5817e3['nodeAfter'])?null:_0x1168b6['getNearestSelectionRange'](_0x5817e3,'forward'),_0x42814e=_0xd1044f['nodeBefore']&&_0x1168b6['isLimit'](_0xd1044f['nodeBefore'])?null:_0x1168b6['getNearestSelectionRange'](_0xd1044f,'backward'),_0x4fc38d=_0x3d6bb8['model']['createRange'](_0xfb49b9?_0xfb49b9['start']:_0x5817e3,_0x42814e?_0x42814e['end']:_0xd1044f);_0x3d6bb8['model']['change'](_0xe84211=>{this['markDeletion'](_0x4fc38d);const _0x169f1f=_0x3d6bb8['model']['schema']['getNearestSelectionRange'](_0x4fc38d['start']);_0x56a6d1['is']('documentSelection')?_0xe84211['setSelection'](_0x169f1f):_0x56a6d1['setTo'](_0x169f1f);}),_0x314805['stop']();},{'priority':_0x525aa5['normal']+0xa}),_0x3d6bb8['model']['on']('insertContent',(_0x21299f,_0xc14a6d)=>{const _0x4be27b=_0xc14a6d[_0xc14a6d['length']-0x1];_0x4be27b&&_0x4be27b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d6bb8['model']['change'](()=>{let _0xcbbb3=_0x3d6bb8['model']['insertContent'](_0xc14a6d[0x0],_0xc14a6d[0x1],_0xc14a6d[0x2],{'forceDefaultExecution':!0x0});if(!_0xcbbb3)return;_0x21299f['return']=_0xcbbb3['clone']();const _0x69fe56=_0xcbbb3['end']['nodeBefore'],_0x29c710=_0x3d6bb8['model']['schema'];_0x69fe56&&_0x29c710['isBlock'](_0x69fe56)&&!_0x29c710['isObject'](_0x69fe56)&&(_0xcbbb3=_0x3d6bb8['model']['createRange'](_0xcbbb3['start'],_0x3d6bb8['model']['createPositionAt'](_0x69fe56,'end'))),this['markInsertion'](_0xcbbb3);}),_0x21299f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x51f7a6=new O(_0x3d6bb8,this['_suggestions']);_0x3d6bb8['commands']['add']('acceptSuggestion',_0x51f7a6),this['enableCommand']('acceptSuggestion');const _0x255880=new x(_0x3d6bb8,this['_suggestions']);_0x3d6bb8['commands']['add']('discardSuggestion',_0x255880),this['enableCommand']('discardSuggestion'),_0x3d6bb8['commands']['add']('acceptAllSuggestions',new M(_0x3d6bb8,_0x51f7a6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d6bb8['commands']['add']('discardAllSuggestions',new M(_0x3d6bb8,_0x255880,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d6bb8['commands']['add']('acceptSelectedSuggestions',new R(_0x3d6bb8,_0x51f7a6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d6bb8['commands']['add']('discardSelectedSuggestions',new R(_0x3d6bb8,_0x255880,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x144faa=_0x3d6bb8['plugins']['get']('CommentsRepository');this['listenTo'](_0x144faa,'addComment',(_0x7d21ba,{threadId:_0x68d6ef})=>{const _0x6eb13d=this['_suggestions']['get'](_0x68d6ef);_0x6eb13d&&_0x6eb13d['commentThread']&&0x1===_0x6eb13d['commentThread']['length']&&this['_updateSuggestionData'](_0x68d6ef,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x144faa,'removeComment',(_0x3466a1,{threadId:_0x50b364})=>{const _0x5a1a61=this['_suggestions']['get'](_0x50b364);_0x5a1a61&&_0x5a1a61['commentThread']&&!_0x5a1a61['commentThread']['length']&&this['_updateSuggestionData'](_0x50b364,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x15e212){const _0x40e759=_0x38bdcb([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2b8dff=0x3d8d0df,_0x7ce248=0x3df5267^_0x2b8dff,_0x958961=window[_0x38bdcb([0x44,0x61,0x74,0x65])][_0x38bdcb([0x6e,0x6f,0x77])](),_0x467227=_0x15e212[_0x38bdcb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5936d9=new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b9a5a=>{_0x467227[_0x38bdcb([0x6f,0x6e,0x63,0x65])](_0x38bdcb([0x72,0x65,0x61,0x64,0x79]),_0x1b9a5a);}),_0x64199e={[_0x38bdcb([0x6b,0x74,0x79])]:_0x38bdcb([0x45,0x43]),[_0x38bdcb([0x75,0x73,0x65])]:_0x38bdcb([0x73,0x69,0x67]),[_0x38bdcb([0x63,0x72,0x76])]:_0x38bdcb([0x50,0x2d,0x32,0x35,0x36]),[_0x38bdcb([0x78])]:_0x38bdcb([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]),[_0x38bdcb([0x79])]:_0x38bdcb([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]),[_0x38bdcb([0x61,0x6c,0x67])]:_0x38bdcb([0x45,0x53,0x32,0x35,0x36])},_0x532fc8=_0x467227[_0x38bdcb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38bdcb([0x67,0x65,0x74])](_0x38bdcb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd422b3(){let _0x3dc25c,_0x529d18=null,_0x59659e=null;try{if(_0x532fc8==_0x38bdcb([0x47,0x50,0x4c]))return _0x38bdcb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3dc25c=_0x20f7f7(),!_0x3dc25c)return _0x38bdcb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3dc25c[_0x38bdcb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59659e=_0x292cfd(_0x3dc25c[_0x38bdcb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3dc25c[_0x38bdcb([0x6a,0x74,0x69])])),await _0x179820()?_0x13a457()?_0x37a480()?_0x38bdcb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54a501()?(_0x3dc25c[_0x38bdcb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38bdcb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x529d18=_0x5514b0(_0x38bdcb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f9bc0()):_0x38bdcb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38bdcb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38bdcb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38bdcb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37a480(){const _0x541d99=[_0x38bdcb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38bdcb([0x74,0x72,0x69,0x61,0x6c])][_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dc25c[_0x38bdcb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x958961/0x3e8:0xe10*_0x7ce248;return _0x3dc25c[_0x38bdcb([0x65,0x78,0x70])]<_0x541d99;}function _0x13a457(){const _0x550369=_0x3dc25c[_0x38bdcb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x550369)return!0x1;if(_0x550369[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38bdcb([0x2a])))return!0x0;if(_0x550369[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38bdcb([0x54,0x43])))return!0x0;if(_0x550369[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38bdcb([0x52,0x54,0x43]))){if(_0x10a8b9())return!0x0;if(_0x22b9c6()||_0x2367dc())return!0x0;}return!0x1;}function _0x54a501(){const _0x58fd5f=_0x3dc25c[_0x38bdcb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58fd5f||0x0==_0x58fd5f[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a80a0}=new URL(window[_0x38bdcb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58fd5f[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a80a0))return!0x0;const _0x231fc0=_0x1a80a0[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])](_0x38bdcb([0x2e]));return _0x58fd5f[_0x38bdcb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x448500=>_0x448500[_0x38bdcb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38bdcb([0x2a])))[_0x38bdcb([0x6d,0x61,0x70])](_0x148de2=>_0x148de2[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])](_0x38bdcb([0x2e])))[_0x38bdcb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24418c=>_0x24418c[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x231fc0[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38bdcb([0x6d,0x61,0x70])](_0x5d39c5=>Array(_0x231fc0[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d39c5[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38bdcb([0x66,0x69,0x6c,0x6c])](_0x5d39c5[0x0]===_0x38bdcb([0x2a])?_0x38bdcb([0x2a]):'')[_0x38bdcb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d39c5))[_0x38bdcb([0x73,0x6f,0x6d,0x65])](_0x52e1a5=>_0x231fc0[_0x38bdcb([0x65,0x76,0x65,0x72,0x79])]((_0x17ab5b,_0x1ede82)=>_0x52e1a5[_0x1ede82]===_0x17ab5b||_0x52e1a5[_0x1ede82]===_0x38bdcb([0x2a])));}function _0x1f9bc0(){return _0x529d18&&_0x59659e?new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x141a22,_0x5bf9bb)=>{_0x529d18[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x141a22,_0x5bf9bb),_0x59659e[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x559f0f=>{_0x559f0f!=_0x38bdcb([0x56,0x61,0x6c,0x69,0x64])&&_0x141a22(_0x559f0f);},_0x5bf9bb);}):_0x529d18||_0x59659e||_0x38bdcb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x292cfd(_0x46220f,_0x1a7e80){return new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b3c3b=>{if(_0xb2ce35())return _0x4b3c3b(_0x38bdcb([0x56,0x61,0x6c,0x69,0x64]));_0x14871c(),_0x467227[_0x38bdcb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38bdcb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d8be4=!0x1;const _0x3755c0=_0xcdc81a();function _0x2083be(_0x3eb5a8){return!!_0x3eb5a8&&(typeof _0x3eb5a8===_0x38bdcb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3eb5a8===_0x38bdcb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3eb5a8[_0x38bdcb([0x74,0x68,0x65,0x6e])]===_0x38bdcb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3eb5a8[_0x38bdcb([0x63,0x61,0x74,0x63,0x68])]===_0x38bdcb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x597e27(_0x2f4148){_0x35635b(_0x2f4148)[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x217a5c=>{if(!_0x217a5c||_0x217a5c[_0x38bdcb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38bdcb([0x6f,0x6b]))return _0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc97b32(_0x4f2f15(_0x3755c0+_0x1a7e80))!=_0x217a5c[_0x38bdcb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38bdcb([0x56,0x61,0x6c,0x69,0x64]);})[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x176da1=>(_0x5b9103(),_0x176da1),()=>{const _0xe3671c=_0x199c98();return null==_0xe3671c?(_0x5b9103(),_0x38bdcb([0x56,0x61,0x6c,0x69,0x64])):_0x38bdcb(_0x958961-_0xe3671c>(0x27d454df^_0x2b8dff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x4b3c3b)[_0x38bdcb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b3c3b(_0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x435b9d=0x3ee3e5f^_0x2b8dff;function _0x5b9103(){const _0x40faec=_0x38bdcb([0x6c,0x6c,0x63,0x74,0x2d])+_0xc97b32(_0x4f2f15(_0x46220f)),_0x4063b3=_0xefe505(_0xc97b32(window[_0x38bdcb([0x4d,0x61,0x74,0x68])][_0x38bdcb([0x63,0x65,0x69,0x6c])](_0x958961/_0x435b9d)));window[_0x38bdcb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38bdcb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40faec,_0x4063b3);}function _0x199c98(){const _0x2c43de=_0x38bdcb([0x6c,0x6c,0x63,0x74,0x2d])+_0xc97b32(_0x4f2f15(_0x46220f)),_0x49c264=window[_0x38bdcb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38bdcb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c43de);return _0x49c264?window[_0x38bdcb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xefe505(_0x49c264),0x10)*_0x435b9d:null;}function _0x35635b(_0xfdc364){return new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33bc92,_0xe0f69d)=>{_0xfdc364[_0x38bdcb([0x74,0x68,0x65,0x6e])](_0x33bc92,_0xe0f69d),window[_0x38bdcb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe0f69d,0x3d9041f^_0x2b8dff);});}}_0x467227[_0x38bdcb([0x6f,0x6e])](_0x38bdcb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1849c9,_0x5281d6)=>{if(_0x5281d6[0x0]!=_0x46220f)return _0x4b3c3b(_0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5281d6[0x1]={..._0x5281d6[0x1],[_0x38bdcb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3755c0};},{[_0x38bdcb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38bdcb([0x68,0x69,0x67,0x68])}),_0x467227[_0x38bdcb([0x6f,0x6e])](_0x38bdcb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43516b=>{_0x2083be(_0x43516b[_0x38bdcb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d8be4=!0x0,_0x597e27(_0x43516b[_0x38bdcb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38bdcb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38bdcb([0x6c,0x6f,0x77])}),_0x5936d9[_0x38bdcb([0x74,0x68,0x65,0x6e])](()=>{_0x4d8be4||_0x4b3c3b(_0x38bdcb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb2ce35(){return _0x467227[_0x38bdcb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38bdcb([0x76,0x69,0x65,0x77])][_0x38bdcb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38bdcb([0x61,0x75,0x74,0x6f]);}function _0x14871c(){_0x467227[_0x38bdcb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38bdcb([0x76,0x69,0x65,0x77])][_0x38bdcb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38bdcb([0x61,0x75,0x74,0x6f]);}}function _0x5514b0(_0x3f63d6){const _0x3e98f1=[new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10fbec=>setTimeout(_0x10fbec,0x3d1ee13^_0x2b8dff)),_0x5936d9[_0x38bdcb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bfd7c=>{let _0x12833b=0x0;_0x467227[_0x38bdcb([0x6d,0x6f,0x64,0x65,0x6c])][_0x38bdcb([0x6f,0x6e])](_0x38bdcb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf0e2c,_0xc19e76)=>{_0xc19e76[0x0][_0x38bdcb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12833b++,_0x12833b==(0x3d8d537^_0x2b8dff)&&(_0x5bfd7c(),_0xf0e2c[_0x38bdcb([0x6f,0x66,0x66])]());});}))];return window[_0x38bdcb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38bdcb([0x72,0x61,0x63,0x65])](_0x3e98f1)[_0x38bdcb([0x74,0x68,0x65,0x6e])](()=>_0x3f63d6);}async function _0x43a93c(){await _0x5936d9,_0x467227[_0x38bdcb([0x6d,0x6f,0x64,0x65,0x6c])][_0x38bdcb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47cd81,_0x467227[_0x38bdcb([0x6d,0x6f,0x64,0x65,0x6c])][_0x38bdcb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47cd81,_0x467227[_0x38bdcb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38bdcb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10a8b9(){return _0x2a10f6(_0x38bdcb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x387875(_0x38bdcb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38bdcb([0x73,0x74,0x61,0x74,0x65])]==_0x38bdcb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x22b9c6(){return _0x2a10f6(_0x38bdcb([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 _0x2367dc(){return _0x2a10f6(_0x38bdcb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x11d6ee(_0x187582){const _0x29e30b=_0x5169d6();_0x467227[_0x29e30b]=_0x38bdcb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x187582,_0x187582!=_0x38bdcb([0x56,0x61,0x6c,0x69,0x64])&&_0x43a93c();}function _0x5169d6(){const _0x57ffe0=window[_0x38bdcb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38bdcb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38bdcb([0x6e,0x6f,0x77])]())[_0x38bdcb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38bdcb([0x2e]),'');let _0x5e772e=_0x38bdcb([0x52]);for(let _0x4fc02e=0x0;_0x4fc02e<_0x57ffe0[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fc02e+=0x2){let _0x1042e3=window[_0x38bdcb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57ffe0[_0x38bdcb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fc02e,_0x4fc02e+0x2));_0x1042e3>=_0x40e759[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1042e3-=_0x40e759[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e772e+=_0x40e759[_0x1042e3];}return _0x5e772e;}function _0x20f7f7(){const _0x54e377=_0x532fc8[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])](_0x38bdcb([0x2e]));if(0x3!=_0x54e377[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47ca61(_0x54e377[0x1]);function _0x47ca61(_0x15dd73){const _0x539b50=_0x5ec09a(_0x15dd73);return _0x539b50&&_0x2ba488()?_0x539b50:null;function _0x2ba488(){const _0x2df839=_0x539b50[_0x38bdcb([0x6a,0x74,0x69])],_0x147877=window[_0x38bdcb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2df839[_0x38bdcb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2df839[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e6135={..._0x539b50,[_0x38bdcb([0x6a,0x74,0x69])]:_0x2df839[_0x38bdcb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2df839[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e6135[_0x38bdcb([0x76,0x63])],_0x4f2f15(_0x4e6135)==_0x147877;}}}async function _0x179820(){let _0x1917a9=!0x0;try{const _0x20758a=_0x532fc8[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])](_0x38bdcb([0x2e])),[_0x44b7c9,_0x490a8b,_0x5ac598]=_0x20758a;return _0x4f26f7(_0x44b7c9),await _0x5916a9(_0x44b7c9,_0x490a8b,_0x5ac598),_0x1917a9;}catch{return!0x1;}function _0x4f26f7(_0x3e22dc){const _0x5e64a4=_0x5ec09a(_0x3e22dc);_0x5e64a4&&_0x5e64a4[_0x38bdcb([0x61,0x6c,0x67])]==_0x38bdcb([0x45,0x53,0x32,0x35,0x36])||(_0x1917a9=!0x1);}async function _0x5916a9(_0x1232b7,_0x56213a,_0x441022){const _0x92ea1a=window[_0x38bdcb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38bdcb([0x66,0x72,0x6f,0x6d])](_0x2fdb88(_0x441022),_0x4b007c=>_0x4b007c[_0x38bdcb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c7f27=new window[(_0x38bdcb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38bdcb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1232b7+_0x38bdcb([0x2e])+_0x56213a),_0x5a8928=window[_0x38bdcb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38bdcb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a8928)return;const _0x1a7d75=await _0x5a8928[_0x38bdcb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38bdcb([0x6a,0x77,0x6b]),_0x64199e,{[_0x38bdcb([0x6e,0x61,0x6d,0x65])]:_0x38bdcb([0x45,0x43,0x44,0x53,0x41]),[_0x38bdcb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38bdcb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38bdcb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a8928[_0x38bdcb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38bdcb([0x6e,0x61,0x6d,0x65])]:_0x38bdcb([0x45,0x43,0x44,0x53,0x41]),[_0x38bdcb([0x68,0x61,0x73,0x68])]:{[_0x38bdcb([0x6e,0x61,0x6d,0x65])]:_0x38bdcb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a7d75,_0x92ea1a,_0x3c7f27)||(_0x1917a9=!0x1);}}function _0x5ec09a(_0xfacfac){return _0xfacfac[_0x38bdcb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38bdcb([0x65,0x79]))?JSON[_0x38bdcb([0x70,0x61,0x72,0x73,0x65])](_0x2fdb88(_0xfacfac)):null;}function _0x2fdb88(_0x583fcb){return window[_0x38bdcb([0x61,0x74,0x6f,0x62])](_0x583fcb[_0x38bdcb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38bdcb([0x2b]))[_0x38bdcb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38bdcb([0x2f])));}function _0x4f2f15(_0xd6477f){let _0x179d91=0x1505;function _0x2f0943(_0x1e4ba9){for(let _0x952a0f=0x0;_0x952a0f<_0x1e4ba9[_0x38bdcb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x952a0f++){const _0x2df3e5=_0x1e4ba9[_0x38bdcb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x952a0f);_0x179d91=(_0x179d91<<0x5)+_0x179d91+_0x2df3e5,_0x179d91&=_0x179d91;}}function _0x336798(_0x2229be){Array[_0x38bdcb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2229be)?_0x2229be[_0x38bdcb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x336798):_0x2229be&&typeof _0x2229be==_0x38bdcb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38bdcb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2229be)[_0x38bdcb([0x73,0x6f,0x72,0x74])]()[_0x38bdcb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d4cc5,_0x27d997])=>{_0x2f0943(_0x1d4cc5),_0x336798(_0x27d997);}):_0x2f0943(window[_0x38bdcb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2229be));}return _0x336798(_0xd6477f),_0x179d91>>>0x0;}function _0xc97b32(_0x32374f){return _0x32374f[_0x38bdcb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38bdcb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38bdcb([0x30]));}function _0xefe505(_0x373cf7){return _0x373cf7[_0x38bdcb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38bdcb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38bdcb([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a10f6(_0x349487){return _0x467227[_0x38bdcb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38bdcb([0x68,0x61,0x73])](_0x349487);}function _0x387875(_0x409a2a){return _0x467227[_0x38bdcb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38bdcb([0x67,0x65,0x74])](_0x409a2a);}function _0x47cd81(){}function _0x38bdcb(_0x4c47b5){return _0x4c47b5['map'](_0x4a14b4=>String['fromCharCode'](_0x4a14b4))['join']('');}_0x11d6ee(await _0xd422b3());}(this);}set['adapter'](_0x20987f){if(this['_adapter'])throw new _0x2d7a4f('track-changes-adapter-already-set',this);this['_adapter']=_0x20987f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1a268d=!0x1,toJSON:_0x4a778a=!0x1}={}){const _0x527ac3=[];for(const _0x551bf8 of this['_suggestions']['values']())_0x1a268d&&!_0x551bf8['isInContent']||_0x527ac3['push'](_0x551bf8);return _0x4a778a?_0x527ac3['map'](_0x5b0a58=>_0x5b0a58['toJSON']()):_0x527ac3;}['getSuggestion'](_0x191057){const _0x408695=this['_suggestions']['get'](_0x191057);if(!_0x408695)throw new _0x2d7a4f('track-changes-suggestion-not-found',this);return _0x408695;}['hasSuggestion'](_0x4b197c){return this['_suggestions']['has'](_0x4b197c);}['addSuggestionData'](_0x5aa840){const {authorId:_0x3fbb38,id:_0x37ebf2,originalSuggestionId:_0x167db1,attributes:_0x2b1b39}=_0x5aa840,[_0x3a2d33,_0x20093f]=_0x5aa840['type']['split'](':'),_0x14a150=this['_suggestions']['get'](_0x37ebf2)||this['_createSuggestion'](_0x3a2d33,_0x20093f,_0x37ebf2,_0x3fbb38,_0x2b1b39,_0x167db1);if(this['_addThreadToSuggestion'](_0x14a150),this['_checkSuggestionCorrectness'](_0x14a150,_0x3a2d33,_0x20093f||null,_0x3fbb38),_0x14a150['createdAt']=_0x5aa840['createdAt'],_0x14a150['_isDataLoaded']=!0x0,_0x2b1b39&&_0x2b1b39['@external']){const _0x25b577=_0x2b1b39['@external'],_0x1285c1=this['_getExternalAuthor'](_0x25b577['authorName']);_0x14a150['authoredAt']=_0x25b577['createdAt'],_0x14a150['author']=_0x1285c1,_0x14a150['isExternal']=!0x0;}else _0x14a150['authoredAt']=_0x5aa840['createdAt'];switch(_0x5aa840['data']&&(_0x14a150['data']=_0x5aa840['data']),_0x5aa840['attributes']&&(_0x14a150['attributes']=_0x5aa840['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14a150['_saved']=!0x0),this['_suggestionState']['get'](_0x14a150)){case'notReady':this['_suggestionState']['set'](_0x14a150,'dataReady');break;case'markerReady':_0x14a150['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x14a150])),this['_refreshSuggestionsChain'](new Set([_0x14a150])),this['_suggestionState']['set'](_0x14a150,'ready'),this['fire']('suggestionLoaded',_0x14a150)):this['_suggestionState']['set'](_0x14a150,'removed');}return _0x14a150;}['acceptSuggestion'](_0x5863f0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x248f85 of _0x5863f0['getAllAdjacentSuggestions']())_0x248f85['accept']();});});}['discardSuggestion'](_0x2e6ab1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x40cb0a of _0x2e6ab1['getAllAdjacentSuggestions']())_0x40cb0a['discard']();});});}['enableCommand'](_0x283886,_0x250c0c){const _0x6eb54d=this['editor']['commands']['get'](_0x283886);if(!_0x6eb54d)throw new _0x2d7a4f('track-changes-command-not-found',this,{'commandName':_0x283886});if(this['_enabledCommands']['has'](_0x6eb54d))throw new _0x2d7a4f('track-changes-enable-command-twice',this,{'commandName':_0x283886});this['_enabledCommands']['add'](_0x6eb54d),_0x250c0c&&_0x6eb54d['on']('execute',(_0x3e4ac2,_0x588918)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x588918['length']>0x0&&_0x588918[_0x588918['length']-0x1]&&_0x588918[_0x588918['length']-0x1]['forceDefaultExecution']?_0x588918['pop']():(_0x3e4ac2['return']=_0x250c0c((..._0x585217)=>_0x6eb54d['execute'](..._0x585217,{'forceDefaultExecution':!0x0}),..._0x588918),_0x3e4ac2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4fb971){let _0x4ae494,_0x16fadc;const _0x1b4244=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4ae494=_0x4fb971();}catch(_0x3d160c){_0x16fadc=_0x3d160c;}return _0x1b4244||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x16fadc&&_0x2d7a4f['rethrowUnexpectedError'](_0x16fadc,this),_0x4ae494;}['markInsertion'](_0x990fae,_0x428106=null,_0x3986df={}){if(_0x990fae['isCollapsed'])return null;const _0x473e1e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3986df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2a3663,meta:_0x31ba8d}of this['_findSuggestions'](_0x990fae,'insertion'))if(_0x31ba8d['isOwn']){if(!_0x31ba8d['isNextTo']){if(_0x31ba8d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2a3663,_0x3986df))continue;return _0x2a3663;}if(sn(_0x2a3663,_0x3986df))return _0x2a3663;this['_breakSuggestionMarker'](_0x2a3663,_0x990fae['start'],_0x990fae['end']);break;}if(_0x428106==_0x2a3663['subType']&&sn(_0x2a3663,_0x3986df)){const _0x3b591d=_0x2a3663['getFirstRange']();return _0x3b591d['start']['isEqual'](_0x990fae['end'])?this['_setSuggestionRange'](_0x2a3663,this['_model']['createRange'](_0x990fae['start'],_0x3b591d['end'])):this['_setSuggestionRange'](_0x2a3663,this['_model']['createRange'](_0x3b591d['start'],_0x990fae['end'])),_0x2a3663;}}const _0x336895=_0xcdc81a(),_0x33a555=_0x473e1e['id'],_0x498d2a=_0x428106?'insertion:'+_0x428106:'insertion',_0x53de95=this['_setSuggestionData']({'id':_0x336895,'type':_0x498d2a,'createdAt':new Date(),'authorId':_0x33a555,'attributes':_0x3986df});return this['_addSuggestionMarker'](_0x498d2a,_0x336895,_0x33a555,_0x990fae),_0x53de95;}['markMultiRangeInsertion'](_0xb30590,_0x2ea584='multi',_0x27f500={}){const _0x23c802=this['editor']['plugins']['get']('Users')['me'],_0x23dd5a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2ea584,'join');this['_trackingSessionId']&&(_0x27f500['trackingSessionId']=this['_trackingSessionId']);for(const _0x2b28d5 of this['getSuggestions']())if(_0x2b28d5['author']['id']==_0x23c802['id']&&'insertion'==_0x2b28d5['type']&&_0x2b28d5['subType']==_0x2ea584&&sn(_0x2b28d5,_0x27f500)&&(_0x23dd5a(_0x2b28d5['getRanges'](),_0xb30590)||_0x23dd5a(_0xb30590,_0x2b28d5['getRanges']()))){for(const _0x31e85d of _0xb30590)_0x2b28d5['addRange'](_0x31e85d);return _0x2b28d5;}for(const {suggestion:_0x26448f,meta:_0x4b719a}of this['_findSuggestions'](_0xb30590,'insertion')){if(!_0x4b719a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4b719a['containsRangeInObject'])continue;if(!sn(_0x26448f,_0x27f500))continue;let _0x109f9e=!0x0;for(const _0x4f2603 of _0x26448f['getRanges']())for(const _0x2808f4 of _0xb30590)if(!_0x4f2603['containsRange'](_0x2808f4)){_0x109f9e=!0x1;break;}if(_0x109f9e)return _0x26448f;}const _0x3f79b0=_0xcdc81a(),_0x22f8fd=_0x23c802['id'],_0x471bb0='insertion:'+_0x2ea584,_0x325eac=this['_setSuggestionData']({'id':_0x3f79b0,'type':_0x471bb0,'createdAt':new Date(),'authorId':_0x22f8fd,'attributes':_0x27f500});for(const _0x45e43f of _0xb30590)this['_addSuggestionMarker'](_0x471bb0,_0x3f79b0,_0x22f8fd,_0x45e43f,T['getMultiRangeId']());return _0x325eac;}['markInlineFormat'](_0xd0ac61,_0xaded0b,_0x31c083=null,_0x58d027={}){if(_0x31c083=_0x31c083||Ht(_0xaded0b),_0xd0ac61['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x58d027['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c5d1e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31c083,'accept');return this['forceDefaultExecution'](()=>_0x2c5d1e([_0xd0ac61],_0xaded0b,_0x58d027)),null;}const _0xc32b17=this['editor']['plugins']['get']('Users')['me'],_0x2be9b3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x535e34,meta:_0x2c59e8}of this['_findSuggestions'](_0xd0ac61,'insertion'))_0x2c59e8['isOwn']&&!_0x2c59e8['isInsideObject']&&_0x2be9b3['push'](..._0x535e34['getRanges']());}const _0x294197=function(_0x28800b,_0x56cc91){const _0x4e2826=[];for(const _0x44b0de of _0x56cc91){const _0x455e46=_0x28800b['getIntersection'](_0x44b0de);_0x455e46&&_0x4e2826['push'](_0x455e46);}return _0x4e2826;}(_0xd0ac61,_0x2be9b3),_0x2d8e96=function(_0x33266c,_0x2fc3d1){const _0x3b4c44=[_0x33266c];for(const _0x5614bd of _0x2fc3d1){let _0x104dd8=0x0;for(;_0x104dd8<_0x3b4c44['length'];){const _0x548370=_0x3b4c44[_0x104dd8]['getDifference'](_0x5614bd);_0x3b4c44['splice'](_0x104dd8,0x1,..._0x548370),_0x104dd8+=_0x548370['length'];}}return _0x3b4c44;}(_0xd0ac61,_0x2be9b3);_0x294197['length']&&this['_model']['change'](()=>{for(const _0x49fc11 of _0x294197){const _0x37721d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31c083,'accept');this['forceDefaultExecution'](()=>_0x37721d([_0x49fc11],_0xaded0b,_0x58d027));}});for(const _0xc96f2c of _0x2d8e96){let _0x9e7ee6=null,_0x242a22=_0xc96f2c['start'],_0x573b7f=_0xc96f2c['end'];for(const {suggestion:_0x2d1367,meta:_0x266fb9}of this['_findSuggestions'](_0xc96f2c,'formatInline')){if(!_0x266fb9['isOwn'])continue;if(_0x2d1367['subType']!=_0x31c083)continue;if(!sn(_0x2d1367,_0x58d027))continue;const _0x5e6777=_0x2d1367['getFirstRange']();if(_0x5e6777['containsRange'](_0xc96f2c,!0x0))return null;_0x242a22=_0x242a22['isBefore'](_0x5e6777['start'])?_0x242a22:_0x5e6777['start'],_0x573b7f=_0x573b7f['isAfter'](_0x5e6777['end'])?_0x573b7f:_0x5e6777['end'],_0x9e7ee6?_0x5e6777['start']['isBefore'](_0x9e7ee6['getFirstRange']()['start'])?(_0x9e7ee6['removeMarkers'](),_0x9e7ee6=_0x2d1367):_0x2d1367['removeMarkers']():_0x9e7ee6=_0x2d1367;}const _0x473bed=this['_model']['createRange'](_0x242a22,_0x573b7f);if(_0x9e7ee6)this['_setSuggestionRange'](_0x9e7ee6,_0x473bed);else{const _0x1ca5c5=_0xcdc81a(),_0x9dc0c1=_0xc32b17['id'];this['_setSuggestionData']({'id':_0x1ca5c5,'type':'formatInline:'+_0x31c083,'data':_0xaded0b,'createdAt':new Date(),'authorId':_0x9dc0c1,'attributes':_0x58d027}),this['_addSuggestionMarker']('formatInline:'+_0x31c083,_0x1ca5c5,_0x9dc0c1,_0x473bed);}}return null;}['markBlockFormat'](_0x5e9a88,_0x3d70fc,_0x4faf86=[],_0x5351d8=null,_0x1c45c0={}){_0x3d70fc['formatGroupId']||(_0x3d70fc['formatGroupId']=_0x3d70fc['commandName']),_0x3d70fc['multipleBlocks']=_0x5e9a88['is']('range'),_0x5351d8=_0x5351d8||Ht(_0x3d70fc);const _0x1b754c=_0x4faf86['map'](_0x4c21c0=>tn(_0x4c21c0,this['_model'])),_0x332849=_0x5e9a88['is']('range')?_0x5e9a88:tn(_0x5e9a88,this['_model']);if(this['_trackingSessionId']&&(_0x1c45c0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35d6cb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5351d8,'accept');return this['forceDefaultExecution'](()=>_0x35d6cb([_0x332849],_0x3d70fc,_0x1c45c0)),null;}_0x1b754c['push'](_0x332849);let _0x526068=!0x0;for(const _0x48c10f of _0x1b754c)if(!this['_rangeIsInLocalUserInsertion'](_0x48c10f)){_0x526068=!0x1;break;}if(_0x526068&&'always'!==this['_trackFormatChanges']){const _0x3271f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5351d8,'accept');return this['forceDefaultExecution'](()=>_0x3271f2([_0x332849],_0x3d70fc,_0x1c45c0)),null;}let _0x8299d=null,_0x2e8181=_0x332849['start'],_0x5bc2bd=_0x332849['end'];for(const {suggestion:_0x2480e9,meta:_0x12c3d8}of this['_findSuggestions'](_0x332849,'formatBlock')){if(!_0x12c3d8['isOwn'])continue;if(_0x12c3d8['isNextTo']||_0x12c3d8['containsRangeInObject']||_0x12c3d8['isInsideObject'])continue;if(_0x2480e9['data']['formatGroupId']!=_0x3d70fc['formatGroupId'])continue;if(!sn(_0x2480e9,_0x1c45c0))continue;const _0x234661=_0x2480e9['getFirstRange']();if(_0x2480e9['subType']==_0x5351d8){if(_0x234661['containsRange'](_0x332849,!0x0))return null;_0x2e8181=_0x2e8181['isBefore'](_0x234661['start'])?_0x2e8181:_0x234661['start'],_0x5bc2bd=_0x5bc2bd['isAfter'](_0x234661['end'])?_0x5bc2bd:_0x234661['end'],_0x8299d?_0x234661['start']['isBefore'](_0x8299d['getFirstRange']()['start'])?(_0x8299d['removeMarkers'](),_0x8299d=_0x2480e9):_0x2480e9['removeMarkers']():_0x8299d=_0x2480e9;}else{const _0x520df5=_0x332849['getIntersection'](_0x234661);this['_cutOutSuggestionMarker'](_0x2480e9,_0x520df5);}}const _0x44d31c=this['editor']['plugins']['get']('Users')['me'],_0x16a043=_0xcdc81a(),_0x4ff8de=_0x44d31c['id'];if(_0x8299d)return this['_setSuggestionRange'](_0x8299d,this['_model']['createRange'](_0x2e8181,_0x5bc2bd)),_0x8299d;{const _0x5a334f=this['_setSuggestionData']({'id':_0x16a043,'type':'formatBlock:'+_0x5351d8,'data':_0x3d70fc,'createdAt':new Date(),'authorId':_0x4ff8de,'attributes':_0x1c45c0});return this['_addSuggestionMarker']('formatBlock:'+_0x5351d8,_0x16a043,_0x4ff8de,this['_model']['createRange'](_0x2e8181,_0x5bc2bd)),_0x5a334f;}}['markMultiRangeBlockFormat'](_0x4d845a,_0x35df6c,_0x26fd5e=[],_0x31515f=null,_0x5ec659={}){_0x35df6c['formatGroupId']||(_0x35df6c['formatGroupId']=_0x35df6c['commandName']);const _0x27c719=_0x4d845a[0x0];_0x35df6c['multipleBlocks']=_0x27c719['is']('range'),_0x31515f=_0x31515f||Ht(_0x35df6c);const _0x5c4b68=_0x26fd5e['map'](_0x574bad=>tn(_0x574bad,this['_model'])),_0x205c6d=_0x27c719['is']('range')?_0x4d845a:_0x4d845a['map'](_0x5f28eb=>tn(_0x5f28eb,this['_model']));if(this['_trackingSessionId']&&(_0x5ec659['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x210a4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31515f,'accept');return this['forceDefaultExecution'](()=>_0x210a4b(_0x205c6d,_0x35df6c,_0x5ec659)),null;}_0x5c4b68['push'](..._0x205c6d);let _0x5c28b4=!0x0;for(const _0x400425 of _0x5c4b68)if(!this['_rangeIsInLocalUserInsertion'](_0x400425)){_0x5c28b4=!0x1;break;}if(_0x5c28b4&&'always'!==this['_trackFormatChanges']){const _0x1cb7c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31515f,'accept');return this['forceDefaultExecution'](()=>_0x1cb7c4(_0x205c6d,_0x35df6c,_0x5ec659)),null;}const _0xf2d1d6=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a06ab of this['getSuggestions']()){const _0x2789c7=_0x3a06ab['data'];if(_0x3a06ab['author']['id']!=_0xf2d1d6['id'])continue;if('formatBlock'!=_0x3a06ab['type']||_0x2789c7['formatGroupId']!=_0x35df6c['formatGroupId'])continue;if(!sn(_0x3a06ab,_0x5ec659))continue;const _0x55c1a6=_0x3a06ab['subType']==_0x31515f;for(let _0x19fda0=0x0;_0x19fda0<_0x205c6d['length'];_0x19fda0++){const _0xa0f82a=_0x205c6d[_0x19fda0];for(const _0x4efaa5 of _0x3a06ab['getMarkers']()){const _0x304bfa=_0x4efaa5['getRange']();if(_0xa0f82a['isEqual'](_0x304bfa)){_0x55c1a6?(_0x205c6d['splice'](_0x19fda0,0x1),_0x19fda0--):_0x3a06ab['removeMarker'](_0x4efaa5['name']);break;}}}}if(0x0==_0x205c6d['length'])return null;const _0x316953=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31515f,'join');for(const _0x2817d1 of this['getSuggestions']()){const _0x56b0a2=_0x2817d1['data'];if(_0x2817d1['author']['id']==_0xf2d1d6['id']&&('formatBlock'==_0x2817d1['type']&&_0x56b0a2['formatGroupId']==_0x35df6c['formatGroupId']&&_0x2817d1['subType']==_0x31515f&&sn(_0x2817d1,_0x5ec659)&&(_0x316953(_0x2817d1['getRanges'](),_0x205c6d)||_0x316953(_0x205c6d,_0x2817d1['getRanges']())))){for(const _0x52a516 of _0x205c6d)_0x2817d1['addRange'](_0x52a516);return _0x2817d1;}}const _0x5a308f=_0xcdc81a(),_0x1025aa=_0xf2d1d6['id'],_0x4b8087='formatBlock:'+_0x31515f,_0x30750f=this['_setSuggestionData']({'id':_0x5a308f,'type':_0x4b8087,'data':_0x35df6c,'createdAt':new Date(),'authorId':_0x1025aa,'attributes':_0x5ec659});for(const _0x16460e of _0x205c6d)this['_addSuggestionMarker'](_0x4b8087,_0x5a308f,_0x1025aa,_0x16460e,T['getMultiRangeId']());return _0x30750f;}['markDeletion'](_0x237196,_0x5d772f=null,_0x219fa4={}){if(_0x237196['isCollapsed'])return null;const _0x3ced6f=this['editor']['plugins']['get']('Users')['me'],_0x3ed196=new _0x4c3029(_0x237196['start'],_0x237196['end']);this['_trackingSessionId']&&(_0x219fa4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4a222d,meta:_0xaa78b3}of this['_findSuggestions'](_0x3ed196,'insertion'))if(_0xaa78b3['isOwn']&&!_0xaa78b3['isNextTo']){if(_0x4a222d['isMultiRange']){const _0xf5bb0d=_0x4a222d['getRanges']()['filter'](_0x39a730=>'$graveyard'!=_0x39a730['root']['rootName']);_0xf5bb0d['every'](_0x3e16b8=>_0x3ed196['containsRange'](_0x3e16b8,!0x0))&&_0x4a222d['discard']();if(_0xf5bb0d['some'](_0x3cc8c1=>_0x3cc8c1['containsRange'](_0x3ed196,!0x0))){const _0x4fa53b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d772f,'accept');return this['forceDefaultExecution'](()=>_0x4fa53b([_0x3ed196],null,_0x219fa4)),null;}}else{const _0x429e48=_0x3ed196['getIntersection'](_0x4a222d['getFirstRange']());null!==_0x429e48&&_0x4a222d['_onDiscard']([_0x429e48],null,_0x219fa4);}}if(_0x3ed196['detach'](),_0x3ed196['isCollapsed']||'$graveyard'==_0x3ed196['root']['rootName'])return null;let _0x2560d0=null,_0x248d90=_0x3ed196['start'],_0x703c61=_0x3ed196['end'];const _0x1239f9=this['_findSuggestions'](_0x3ed196,'deletion');for(const {suggestion:_0x34a112,meta:_0x30cab5}of _0x1239f9){const _0x1f33ee=this['_model']['createRange'](_0x248d90,_0x703c61);if(_0x30cab5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30cab5['containsRangeInObject']&&!_0x30cab5['isInsideObject'])){if(_0x34a112['isMultiRange']){if(!sn(_0x34a112,_0x219fa4))continue;let _0x369113=!0x0;for(const _0x5cad6a of _0x34a112['getRanges']()){if(_0x5cad6a['containsRange'](_0x1f33ee,!0x0))return _0x34a112;_0x1f33ee['containsRange'](_0x5cad6a)||(_0x369113=!0x1);}_0x369113&&_0x34a112['discard']();}else{const _0x2f15a2=_0x34a112['getFirstRange']();if(_0x2f15a2['containsRange'](_0x1f33ee,!0x0))return _0x34a112;if(!sn(_0x34a112,_0x219fa4)){_0x1f33ee['containsRange'](_0x2f15a2)?_0x34a112['removeMarkers']():_0x2f15a2['containsPosition'](_0x248d90)?_0x248d90=_0x2f15a2['end']:_0x2f15a2['containsPosition'](_0x703c61)&&(_0x703c61=_0x2f15a2['start']);continue;}_0x248d90=_0x248d90['isBefore'](_0x2f15a2['start'])?_0x248d90:_0x2f15a2['start'],_0x703c61=_0x703c61['isAfter'](_0x2f15a2['end'])?_0x703c61:_0x2f15a2['end'],_0x219fa4=Object['assign']({},_0x34a112['attributes']),_0x2560d0?_0x2f15a2['start']['isBefore'](_0x2560d0['getFirstRange']()['start'])?(_0x2560d0['removeMarkers'](),_0x2560d0=_0x34a112):_0x34a112['removeMarkers']():_0x2560d0=_0x34a112;}}}if(_0x2560d0)return this['_setSuggestionRange'](_0x2560d0,this['_model']['createRange'](_0x248d90,_0x703c61)),_0x2560d0;{const _0x474a6e=_0xcdc81a(),_0x5a9f1c=this['_model']['createRange'](_0x248d90,_0x703c61),_0x2db3ca=_0x3ced6f['id'],_0x8dc3bb=_0x5d772f?'deletion:'+_0x5d772f:'deletion',_0x1c8c53=this['_setSuggestionData']({'id':_0x474a6e,'type':_0x8dc3bb,'createdAt':new Date(),'authorId':_0x2db3ca,'attributes':_0x219fa4});return this['_addSuggestionMarker'](_0x8dc3bb,_0x474a6e,_0x2db3ca,_0x5a9f1c),_0x1c8c53;}}['markMultiRangeDeletion'](_0x544f7e,_0x2747f6='multi',_0x1b928b={}){const _0x15467a=this['editor']['plugins']['get']('Users')['me'],_0x551c8e=_0x544f7e['map'](_0x2dca66=>new _0x4c3029(_0x2dca66['start'],_0x2dca66['end'])),_0x53a2cd=new Set();this['_trackingSessionId']&&(_0x1b928b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4dee39,meta:_0x570031}of this['_findSuggestions'](_0x551c8e,'insertion'))_0x570031['isOwn']&&!_0x570031['isNextTo']&&_0x53a2cd['add'](_0x4dee39);for(const _0x5cc1b8 of _0x53a2cd)if(_0x5cc1b8['isMultiRange']){const _0x5d1840=_0x5cc1b8['getRanges']();(!_0x5cc1b8['attributes']||!_0x5cc1b8['attributes']['skipNestingCheck'])&&(_0x5d1840['every'](_0x3f811e=>_0x551c8e['some'](_0x448bcb=>_0x448bcb['containsRange'](_0x3f811e,!0x0)))&&_0x5cc1b8['discard']());if(_0x551c8e['every'](_0x1e22bb=>_0x5d1840['some'](_0x6a83a8=>_0x6a83a8['containsRange'](_0x1e22bb,!0x0)))){const _0x177198=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2747f6,'accept');return this['forceDefaultExecution'](()=>_0x177198(_0x544f7e,null,_0x1b928b)),null;}}else{const _0x123dba=_0x5cc1b8['getFirstRange']();_0x551c8e['some'](_0x39bf82=>_0x39bf82['containsRange'](_0x123dba,!0x0))&&_0x5cc1b8['discard']();if(_0x551c8e['every'](_0x279841=>_0x123dba['containsRange'](_0x279841,!0x0))){const _0x2139a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2747f6,'accept');return this['forceDefaultExecution'](()=>_0x2139a5(_0x551c8e,null,_0x1b928b)),null;}}const _0x44f321=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2747f6,'join');let _0x45b74b=null;for(const _0x312879 of this['getSuggestions']())if(_0x312879['author']['id']==_0x15467a['id']&&_0x312879['isInContent']&&'deletion'==_0x312879['type']&&_0x312879['subType']==_0x2747f6&&sn(_0x312879,_0x1b928b)&&(_0x44f321(_0x312879['getRanges'](),_0x551c8e)||_0x44f321(_0x551c8e,_0x312879['getRanges']()))){if(_0x45b74b){if(_0x312879['commentThread']&&_0x312879['commentThread']['length'])continue;for(const _0x569466 of _0x312879['getRanges']())_0x45b74b['isIntersectingWithRange'](_0x569466)||_0x45b74b['addRange'](_0x569466);_0x312879['removeMarkers']();}else{_0x45b74b=_0x312879;for(const _0xdc093c of _0x551c8e)_0x312879['isIntersectingWithRange'](_0xdc093c)||_0x312879['addRange'](_0xdc093c);}}if(_0x45b74b)return _0x45b74b;_0x53a2cd['clear']();for(const {suggestion:_0x3a85c4,meta:_0x4c0929}of this['_findSuggestions'](_0x551c8e,'deletion'))_0x4c0929['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c0929['containsRangeInObject']&&!_0x4c0929['isInsideObject'])&&sn(_0x3a85c4,_0x1b928b)&&_0x53a2cd['add'](_0x3a85c4);for(const _0x5a67df of _0x53a2cd){const _0x6075cb=_0x5a67df['getRanges']();if(!_0x1b928b||!_0x1b928b['skipNestingCheck']){if(_0x551c8e['every'](_0x4fb552=>_0x6075cb['some'](_0x3bd5aa=>_0x3bd5aa['containsRange'](_0x4fb552,!0x0))))return _0x5a67df;}(!_0x5a67df['attributes']||!_0x5a67df['attributes']['skipNestingCheck'])&&(_0x6075cb['every'](_0x4d2a6b=>_0x551c8e['some'](_0x13bf0f=>_0x13bf0f['containsRange'](_0x4d2a6b,!0x0)))&&_0x5a67df['discard']());}const _0x5ee30e=_0xcdc81a(),_0x1e2c82=_0x15467a['id'],_0x55b25='deletion:'+_0x2747f6,_0x39c1ad=this['_setSuggestionData']({'id':_0x5ee30e,'type':_0x55b25,'createdAt':new Date(),'authorId':_0x1e2c82,'attributes':_0x1b928b});for(const _0x1641f6 of _0x551c8e)_0x1641f6['detach'](),_0x1641f6['isCollapsed']||'$graveyard'==_0x1641f6['root']['rootName']||this['_addSuggestionMarker'](_0x55b25,_0x5ee30e,_0x1e2c82,_0x1641f6,T['getMultiRangeId']());return _0x39c1ad;}['markAttributeChange'](_0x2421f6,_0x313f8d,_0x35f030,_0xbcb4aa,_0x55ffd3){if(_0x2421f6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x238ffd=this['editor']['plugins']['get']('Users')['me']['id'],_0x23146a=Array['from'](this['_suggestions']['values']())['filter'](_0x3c7850=>'attribute'==_0x3c7850['type']&&_0x3c7850['data']['key']==_0x313f8d&&_0x3c7850['isIntersectingWithRange'](_0x2421f6));if(this['_trackingSessionId']&&(_0x55ffd3['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x361e4c=this['_findSuggestions'](_0x2421f6,'insertion')['filter'](({meta:_0x369775})=>_0x369775['isOwn']&&!_0x369775['isInsideObject']&&!_0x369775['isNextTo'])['map'](({suggestion:_0xddf531})=>_0xddf531);_0x23146a['unshift'](..._0x361e4c);}const _0x43136c=new Map([[_0x2421f6,_0x35f030]]);for(const _0x48f176 of _0x23146a){const _0x18d5a3='attribute'==_0x48f176['type']?_0x48f176['data']['oldValue']:void 0x0,_0x120259=_0x48f176['getFirstRange'](),_0x4ae67c=Array['from'](_0x43136c['keys']())['find'](_0x57bd2f=>_0x57bd2f['isIntersecting'](_0x120259));if(!_0x4ae67c)continue;const _0x3eedcb=_0x4ae67c['getDifference'](_0x120259);this['_isBlockAttribute'](_0x313f8d)&&'insertion'==_0x48f176['type']&&0x0!=_0x3eedcb['length']||(_0x43136c['delete'](_0x4ae67c),_0x3eedcb['forEach'](_0x54c467=>{_0x43136c['set'](_0x54c467,_0x35f030);}),'insertion'!=_0x48f176['type']&&_0x18d5a3!=_0xbcb4aa&&_0x43136c['set'](_0x4ae67c['getIntersection'](_0x120259),_0x18d5a3));}const _0xbefaeb=[];for(const [_0x337edd,_0x268b27]of _0x43136c){const _0x2bf4c1=_0xcdc81a(),_0x42c75a={'key':_0x313f8d,'oldValue':_0x268b27,'newValue':_0xbcb4aa};_0x313f8d['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':_0x313f8d});const _0xeed4ea=('attribute:'+(_0x313f8d+'|'+Ht({'newValue':_0xbcb4aa})))['substring'](0x0,0x3c),_0x19c744=this['_setSuggestionData']({'id':_0x2bf4c1,'type':_0xeed4ea,'data':_0x42c75a,'createdAt':new Date(),'authorId':_0x238ffd,'attributes':_0x55ffd3});_0xbefaeb['push'](_0x19c744),this['_addSuggestionMarker'](_0xeed4ea,_0x2bf4c1,_0x238ffd,_0x337edd);}return _0xbefaeb;}['enableDefaultAttributesIntegration'](_0x31f1ea){this['enableCommand'](_0x31f1ea,(_0x2474de,..._0x55650f)=>{this['recordAttributeChanges'](()=>{_0x2474de(..._0x55650f);});});}['registerBlockAttribute'](_0x2280a3){this['editor']['plugins']['get'](_0x5d38f7)['registerBlockAttribute'](_0x2280a3);}['registerInlineAttribute'](_0x44b89b){this['editor']['plugins']['get'](_0x5d38f7)['registerInlineAttribute'](_0x44b89b);}['startTrackingSession'](_0xc31355){return this['_trackingSessionId']=void 0x0!==_0xc31355?_0xc31355:_0xcdc81a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x46010b){return'attribute'==_0x46010b['type']?_0x46010b['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x32014a){if(0x0==_0x32014a['length'])return;const _0x3c1374=this['editor'],_0x48ccfd=_0x3c1374['plugins']['get'](_0x4857f0),_0x1c12db=[];_0x3c1374['model']['change'](_0xeca8e1=>{for(let _0x472743=0x0;_0x472743<_0x32014a['length'];_0x472743++){const _0x7acdac=_0x32014a[_0x472743];if(_0x7acdac['baseVersion']=_0x3c1374['model']['document']['version'],_0x7acdac['isDocumentOperation']=!0x0,_0x48ccfd['isMarkedRemoveOperation'](_0x7acdac)){const _0x4a7e09=_0x3aaf40(_0x7acdac['newRange'],_0x3c1374['model']);_0x1c12db['unshift'](_0x4c3029['fromRange'](_0x4a7e09));}else switch(_0x7acdac['type']){case'rename':{const _0x129ac2=_0x7acdac['oldName'],_0x3410ab=_0x7acdac['newName'];if(_0x129ac2==_0x3410ab)break;_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);const _0x5a2408='$elementName',_0x294a6c=_0x7acdac['position'],_0x57870f=_0x3c1374['model']['createRange'](_0x294a6c,_0x3c1374['model']['createPositionAt'](_0x294a6c['nodeAfter'],'end'));this['markAttributeChange'](_0x57870f,_0x5a2408,_0x129ac2,_0x3410ab,{'groupId':_0xcdc81a()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xc6c807=_0x7acdac['oldValue'],_0x14d875=_0x7acdac['newValue'];if(_0xc6c807==_0x14d875)break;_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);const _0x94633e=_0x7acdac['key'];if(!this['_isRegisteredAttribute'](_0x94633e))break;const _0x2b49a0=_0x3aaf40(_0x7acdac['range'],_0x3c1374['model']);this['markAttributeChange'](_0x2b49a0,_0x94633e,_0xc6c807,_0x14d875,{'groupId':_0xcdc81a()});break;}case'insert':{_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);if(_0x32014a[_0x472743+0x1]&&'move'==_0x32014a[_0x472743+0x1]['type'])break;const _0x51f29e=_0x7acdac['position'],_0x5c4af5=_0x7acdac['howMany'],_0xebd57e=_0x3aaf40(_0x3c1374['model']['createRange'](_0x51f29e,_0x51f29e['getShiftedBy'](_0x5c4af5)),_0x3c1374['model']);this['markInsertion'](_0xebd57e);break;}case'split':{_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);const _0x18b4a1=_0x7acdac['splitPosition'],_0x3632c7=_0x7acdac['moveTargetPosition'];this['markInsertion'](_0x3c1374['model']['createRange'](_0x18b4a1,_0x3632c7));break;}case'move':case'remove':_0xeca8e1['batch']['addOperation'](_0x7acdac),_0x3c1374['model']['applyOperation'](_0x7acdac);}}for(const _0x5645e7 of _0x1c12db)_0x5645e7['detach'](),this['markDeletion'](_0x5645e7);});}['_setSuggestionRange'](_0x502ac8,_0x10a659){const _0x30c35f=_0x502ac8['getFirstMarker']();this['_model']['change'](_0x4eb6ab=>{_0x4eb6ab['updateMarker'](_0x30c35f,{'range':_0x10a659});});}['_addThreadToSuggestion'](_0x126b96){const _0x575110=_0x126b96['id'],_0x1b036a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x575110)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b036a,'threadId':_0x575110,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x946fb4=this['_commentsRepository']['getCommentThread'](_0x575110);_0x946fb4['unbind']('isRemovable'),_0x946fb4['isRemovable']=!0x1,_0x126b96['commentThread']=_0x946fb4;}['_checkSuggestionCorrectness'](_0x4d6746,_0x464e97,_0x14fa4a,_0x32e8a0){if(_0x4d6746['type']!=_0x464e97||_0x4d6746['subType']!=_0x14fa4a||_0x4d6746['creator']['id']!=_0x32e8a0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2d7a4f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1453f8,_0xa0e4fa){const _0x2ec122=_0x1453f8['getFirstRange']();if(_0xa0e4fa['isEqual'](_0x2ec122))_0x1453f8['removeMarkers']();else{if(_0x2ec122['containsRange'](_0xa0e4fa)){const _0x15bdcd=this['_model']['createPositionAt'](_0xa0e4fa['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1453f8,this['_model']['createRange'](_0x2ec122['start'],_0x15bdcd));const _0x409724=_0xcdc81a(),_0x388c52=_0x1453f8['creator']['id'],_0x4eb1c2=_0x1453f8['type']+':'+_0x1453f8['subType'];this['_setSuggestionData']({'id':_0x409724,'type':_0x4eb1c2,'createdAt':new Date(),'authorId':_0x388c52,'data':_0x1453f8['data'],'attributes':_0x1453f8['attributes']});const _0x5d5aaf=this['_model']['createPositionAt'](_0xa0e4fa['end']['parent'],'after'),_0x4e9d3e=this['_model']['createRange'](_0x5d5aaf,_0x2ec122['end']);this['_addSuggestionMarker'](_0x4eb1c2,_0x409724,_0x388c52,_0x4e9d3e);}else{if(_0x2ec122['containsPosition'](_0xa0e4fa['start'])){const _0x5dae77=this['_model']['createPositionAt'](_0xa0e4fa['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1453f8,this['_model']['createRange'](_0x2ec122['start'],_0x5dae77));}else{const _0x27ace6=this['_model']['createPositionAt'](_0xa0e4fa['end']['parent'],'after');this['_setSuggestionRange'](_0x1453f8,this['_model']['createRange'](_0x27ace6,_0x2ec122['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x316b70){for(const {suggestion:_0x3dee7a,meta:_0x63a381}of this['_findSuggestions'](_0x316b70,'insertion')){if(!_0x63a381['isOwn'])continue;const _0x5b3985=_0x3dee7a['getRanges']();for(const _0x1bca07 of _0x5b3985)if(!_0x316b70['getDifference'](_0x1bca07)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x41ff2c){return this['editor']['plugins']['get']('Users')['getUser'](_0x41ff2c);}['_getExternalAuthor'](_0x1f9607){const _0x147f76=this['editor']['plugins']['get']('Users'),_0x20cfdd=_0x420935('external:'+_0x1f9607),_0x3b290a=_0x147f76['getUser'](_0x20cfdd);return _0x3b290a||_0x147f76['addUser']({'id':_0x20cfdd,'name':_0x1f9607});}['_createSuggestion'](_0x68c0f6,_0x5ed7d6,_0x3320e0,_0x3c642d,_0x313954,_0x18a87d){const _0x7116d2=this['_getAuthorFromId'](_0x3c642d);if(!_0x7116d2)throw new _0x2d7a4f('track-changes-user-not-found',this,{'authorId':_0x3c642d,'suggestionId':_0x3320e0});const _0x577626=this['_suggestionFactory']['buildSuggestion'](_0x68c0f6,_0x5ed7d6,_0x3320e0,_0x7116d2,_0x313954,_0x4daf2b=>{this['_updateSuggestionData'](_0x3320e0,{'attributes':_0x4daf2b});const _0x305fcd=this['getSuggestion'](_0x3320e0);this['_joinWithAdjacentSuggestions'](new Set([_0x305fcd])),this['_refreshSuggestionsChain'](new Set([_0x305fcd]));},_0x18a87d);return this['listenTo'](_0x577626,'accept',()=>{this['_updateSuggestionData'](_0x3320e0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x577626,'discard',()=>{this['_updateSuggestionData'](_0x3320e0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3320e0,_0x577626),this['_suggestionState']['set'](_0x577626,'notReady'),_0x577626;}['_splitMarkerName'](_0x48dbd9){return _0x6e25cf(_0x48dbd9);}['_breakSuggestionMarker'](_0xe1405c,_0x153e64,_0x4bd0c7){const _0x478c9b=_0xe1405c['getFirstRange'](),_0x515d7d=_0x478c9b['start'],_0x1bad9a=_0x478c9b['end'];this['_setSuggestionRange'](_0xe1405c,this['_model']['createRange'](_0x515d7d,_0x153e64));const _0xe0efee=_0xcdc81a(),_0x1a8d3b=_0xe1405c['creator']['id'],_0x1bc0a8=_0xe1405c['type']+(_0xe1405c['subType']?':'+_0xe1405c['subType']:'');this['_setSuggestionData']({'id':_0xe0efee,'type':_0x1bc0a8,'createdAt':new Date(),'authorId':_0x1a8d3b,'originalSuggestionId':_0xe1405c['_originalSuggestionId']||_0xe1405c['id'],'attributes':_0xe1405c['attributes'],'data':_0xe1405c['data']});const _0x57785b=this['_getAttributeKey'](_0xe1405c);('formatBlock'==_0xe1405c['type']||_0x57785b&&this['_isBlockAttribute'](_0x57785b))&&(_0x4bd0c7=this['_model']['createPositionBefore'](_0x4bd0c7['parent'])),this['_addSuggestionMarker'](_0x1bc0a8,_0xe0efee,_0x1a8d3b,this['_model']['createRange'](_0x4bd0c7,_0x1bad9a));}['_findSuggestions'](_0x5b56f6,_0x35e583=null){const _0x249edf=[],_0x2cf4ab=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5b56f6)||(_0x5b56f6=[_0x5b56f6]);for(const _0x3c2e14 of this['getSuggestions']()){if(!_0x3c2e14['isInContent'])continue;if(_0x35e583&&_0x3c2e14['type']!=_0x35e583)continue;let _0x3a8310=!0x1;for(const _0x94f8c6 of _0x3c2e14['getRanges']()){for(const _0x761523 of _0x5b56f6){const _0x1c084c=_0x761523['start']['isEqual'](_0x94f8c6['end'])||_0x761523['end']['isEqual'](_0x94f8c6['start']);if(_0x1c084c||_0x761523['getIntersection'](_0x94f8c6)){const _0x2ba78c=_0x761523['containsRange'](_0x94f8c6)&&zt(this['_model']['schema'],_0x94f8c6['start'],_0x761523),_0x26befe=_0x94f8c6['containsRange'](_0x761523)&&zt(this['_model']['schema'],_0x761523['start'],_0x94f8c6);_0x249edf['push']({'suggestion':_0x3c2e14,'meta':{'isOwn':_0x2cf4ab==_0x3c2e14['author'],'isNextTo':_0x1c084c,'isInsideObject':_0x2ba78c,'containsRangeInObject':_0x26befe}}),_0x3a8310=!0x0;break;}}if(_0x3a8310)break;}}return _0x249edf;}['_addSuggestionMarker'](_0x4041df,_0x458200,_0x19b7ce,_0x2cb863,_0x2784eb){this['_model']['change'](_0x323367=>{let _0x455c85='suggestion:'+_0x4041df+':'+_0x458200+':'+_0x19b7ce;_0x2784eb&&(_0x455c85=_0x455c85+':'+_0x2784eb),_0x323367['addMarker'](_0x455c85,{'range':_0x2cb863,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e00a0){const _0x215a78=_0x1e00a0['previous'],_0x506441=_0x1e00a0['next'];_0x1e00a0['previous']=null,_0x1e00a0['next']=null,null!=_0x215a78&&_0x215a78['next']==_0x1e00a0&&(_0x215a78['next']=_0x506441),null!=_0x506441&&_0x506441['previous']==_0x1e00a0&&(_0x506441['previous']=_0x215a78),'ready'==this['_suggestionState']['get'](_0x1e00a0)&&(this['_suggestionState']['set'](_0x1e00a0,'removed'),this['fire']('suggestionUnloaded',_0x1e00a0,_0x215a78,_0x506441));}['_setSuggestionData'](_0x28ed87){const _0x2f2065=_0x28ed87['id'],_0x2b04db=this['addSuggestionData'](_0x28ed87);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x10556c=this['editor']['plugins']['get']('PendingActions'),_0x35fda9=_0x2b04db['hasComments'],_0xa36d4e=_0x2b04db['subType']?_0x2b04db['type']+':'+_0x2b04db['subType']:_0x2b04db['type'],_0x5c4b0d=this['editor']['locale'],_0x49e83c=_0x10556c['add'](o(_0x5c4b0d,'PENDING_ACTION_SUGGESTION')),_0x27ac3b={'id':_0x2f2065,'type':_0xa36d4e,'hasComments':_0x35fda9,'data':_0x28ed87['data']||null,'originalSuggestionId':_0x28ed87['originalSuggestionId']||null,'attributes':_0x2b04db['attributes']};this['_adapter']['addSuggestion'](_0x27ac3b)['then'](_0x184f73=>{_0x2b04db['_saved']=!0x0,_0x10556c['remove'](_0x49e83c),_0x184f73&&_0x184f73['createdAt']&&(this['_suggestions']['get'](_0x2f2065)['createdAt']=_0x184f73['createdAt']);})['catch'](_0x6285d8=>{throw _0x48198a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2b04db['discard']();}),_0x2b04db['stopListening'](),this['_suggestions']['delete'](_0x2b04db['id']),this['_suggestionState']['delete'](_0x2b04db),_0x6285d8;});}return _0x2b04db;}['_isBlockAttribute'](_0x502a4d){return this['editor']['plugins']['get'](_0x5d38f7)['isBlockAttribute'](_0x502a4d);}['_isInlineAttribute'](_0x4e0d5c){return this['editor']['plugins']['get'](_0x5d38f7)['isInlineAttribute'](_0x4e0d5c);}['_updateSuggestionData'](_0xb95dc,_0x3e1e7c){const _0x2f3cb9=this['editor']['plugins']['get']('PendingActions'),_0x5e275e=this['getSuggestion'](_0xb95dc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5e275e['_saved']){const _0x38d9f6=_0x2f3cb9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xb95dc,_0x3e1e7c)['then'](()=>{_0x2f3cb9['remove'](_0x38d9f6);});}else _0x5e275e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xb95dc,_0x3e1e7c);});}}['_getSuggestionData'](_0x1552a4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2d7a4f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1552a4);}['_handleNewSuggestionMarker'](_0x368772){const {id:_0x3033e6,type:_0xe850f3,subType:_0x3ff20d,authorId:_0x3e4400}=this['_splitMarkerName'](_0x368772),_0x3326fb=this['_suggestions']['get'](_0x3033e6)||this['_createSuggestion'](_0xe850f3,_0x3ff20d,_0x3033e6,_0x3e4400,{});switch(this['_checkSuggestionCorrectness'](_0x3326fb,_0xe850f3,_0x3ff20d,_0x3e4400),this['_suggestionState']['get'](_0x3326fb)){case'notReady':this['_getSuggestionData'](_0x3033e6)['then'](_0x9e7bb5=>{let _0x2d8bbc=Promise['resolve']();_0x9e7bb5['hasComments']&&(_0x2d8bbc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3033e6})),_0x2d8bbc['then'](()=>{this['addSuggestionData'](_0x9e7bb5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3326fb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3033e6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3326fb,'ready'),this['fire']('suggestionLoaded',_0x3326fb);break;case'ready':this['fire']('suggestionChanged',_0x3326fb);}return _0x3326fb['addMarkerName'](_0x368772),_0x3326fb;}['_refreshSuggestionsChain'](_0x1013c8){const _0xff260a=Array['from'](_0x1013c8),_0x59ec9e=_0xff260a['filter'](_0x24e932=>'attribute'==_0x24e932['type']);this['_refreshAttributeSuggestionsChain'](_0x59ec9e);const _0x5ad380=_0xff260a['filter'](_0x4add22=>!_0x4add22['isMultiRange']&&'attribute'!=_0x4add22['type']),_0x491502=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d128a=>!_0x5d128a['isMultiRange']&&'attribute'!=_0x5d128a['type']),_0x41b989=_0x491502['filter'](_0x1abd8f=>!_0x1013c8['has'](_0x1abd8f)),_0x470c15=new Map(_0x491502['map'](_0xec64e4=>[_0xec64e4,this['_suggestionFactory']['getSuggestionCallback'](_0xec64e4['type'],_0xec64e4['subType'],'chain')])),_0x22a4f8=new Map(_0x491502['map'](_0x1ea300=>[_0x1ea300,_0x1ea300['getFirstRange']()])),_0x49215d=new Set(),_0x2fce8e=new Set();for(let _0x18a8fe=0x0;_0x18a8fe<_0x5ad380['length'];_0x18a8fe++)_0x5cb8f1(_0x5ad380[_0x18a8fe],_0x5ad380,_0x18a8fe+0x1);for(let _0x3a0aa2=0x0;_0x3a0aa2<_0x5ad380['length'];_0x3a0aa2++)_0x5cb8f1(_0x5ad380[_0x3a0aa2],_0x41b989,0x0);const _0x43392b=new Set();for(let _0x3114f6=0x0;_0x3114f6<_0x5ad380['length'];_0x3114f6++){const _0x2b7826=_0x5ad380[_0x3114f6];!_0x2fce8e['has'](_0x2b7826)&&_0x2b7826['previous']&&(_0x43392b['add'](_0x2b7826['previous']),_0x2b7826['previous']['next']===_0x2b7826&&(_0x2b7826['previous']['next']=null),_0x2b7826['previous']=null),!_0x49215d['has'](_0x2b7826)&&_0x2b7826['next']&&(_0x43392b['add'](_0x2b7826['next']),_0x2b7826['next']['previous']===_0x2b7826&&(_0x2b7826['next']['previous']=null),_0x2b7826['next']=null);}function _0x5cb8f1(_0x15e2f4,_0x2d4663,_0x2072e7){for(let _0x2fc356=_0x2072e7;_0x2fc356<_0x2d4663['length'];_0x2fc356++){const _0x399f2c=_0x344ab1(_0x15e2f4,_0x2d4663[_0x2fc356]);_0x399f2c&&(_0x399f2c[0x0]['next']=_0x399f2c[0x1],_0x399f2c[0x1]['previous']=_0x399f2c[0x0],_0x49215d['add'](_0x399f2c[0x0]),_0x2fce8e['add'](_0x399f2c[0x1]));}}function _0x344ab1(_0x3fb753,_0x991102){if(_0x3fb753['author']['id']!==_0x991102['author']['id'])return null;const _0x2d74be=_0x470c15['get'](_0x3fb753)(_0x3fb753,_0x991102,_0x22a4f8['get'](_0x3fb753),_0x22a4f8['get'](_0x991102));if(!_0x2d74be)return null;return _0x470c15['get'](_0x991102)(_0x3fb753,_0x991102,_0x22a4f8['get'](_0x3fb753),_0x22a4f8['get'](_0x991102))?_0x2d74be[0x1]['commentThread']&&_0x2d74be[0x1]['commentThread']['length']?null:_0x2d74be:null;}_0x43392b['size']&&this['_refreshSuggestionsChain'](_0x43392b);}['_refreshAttributeSuggestionsChain'](_0x1dba94){if(0x0==_0x1dba94['length'])return;const _0x39a7c0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xce0796=>'attribute'==_0xce0796['type']&&_0xce0796['_isDataLoaded']),_0x359a3f=[],_0x12d3d1=new Map();for(const _0x1d0787 of _0x39a7c0){const _0x26da9a=_0x420935(_0x1d0787['attributes']);_0x12d3d1['has'](_0x26da9a)||(_0x12d3d1['set'](_0x26da9a,_0x359a3f['length']),_0x359a3f['push']([]));const _0x2cfbe6=_0x12d3d1['get'](_0x26da9a);_0x359a3f[_0x2cfbe6]['push'](_0x1d0787);}!(function(){_0x359a3f['sort']((_0x4d61b4,_0x2931f8)=>{const _0x5c6c57=_0x4d61b4[0x0]['createdAt'],_0x388701=_0x2931f8[0x0]['createdAt'];return _0x5c6c57==_0x388701?_0x4d61b4[0x0]['attributes']['groupId']<_0x2931f8[0x0]['attributes']['groupId']?-0x1:0x1:_0x5c6c57<_0x388701?-0x1:0x1;});for(const _0x548645 of _0x359a3f)_0x548645['sort']((_0x52b954,_0x58aba0)=>_0x52b954['id']<_0x58aba0['id']?-0x1:0x1);}());for(let _0xf5b4af=0x0;_0xf5b4af<_0x359a3f['length'];_0xf5b4af++){if(0x0==_0x359a3f[_0xf5b4af]['length'])continue;const _0x4a55a1=[];for(let _0x28f52c=_0xf5b4af+0x1;_0x28f52c<_0x359a3f['length'];_0x28f52c++)0x0!=_0x359a3f[_0x28f52c]['length']&&_0x7f2f65(_0x359a3f[_0xf5b4af],_0x359a3f[_0x28f52c])&&_0x4a55a1['push'](_0x28f52c);for(const _0x3299e4 of _0x4a55a1)_0x359a3f[_0xf5b4af]=_0x359a3f[_0xf5b4af]['concat'](_0x359a3f[_0x3299e4]),_0x359a3f[_0x3299e4]=[];}for(const _0x4e5ead of _0x359a3f)for(let _0xe1ee16=0x0;_0xe1ee16<_0x4e5ead['length'];_0xe1ee16++){const _0x3fd453=_0x4e5ead[_0xe1ee16+0x1]||null;_0x4e5ead[_0xe1ee16]['next']!==_0x3fd453&&(_0x4e5ead[_0xe1ee16]['next']=_0x3fd453);}for(const _0x468527 of _0x359a3f)for(let _0x10819c=0x0;_0x10819c<_0x468527['length'];_0x10819c++){const _0x14c574=_0x468527[_0x10819c-0x1]||null;_0x468527[_0x10819c]['previous']!==_0x14c574&&(_0x468527[_0x10819c]['previous']=_0x14c574);}function _0x7f2f65(_0x5165aa,_0x11f8df){if(_0x5165aa[0x0]['attributes']['groupId']!==_0x11f8df[0x0]['attributes']['groupId']&&_0x5165aa[0x0]['author']!==_0x11f8df[0x0]['author'])return!0x1;if(!function(_0x553c7c,_0x4bc384){if(!_0x553c7c['hasComments']&&!_0x4bc384['hasComments'])return!0x0;if(_0x553c7c['hasComments']&&_0x4bc384['hasComments'])return!0x1;if(_0x553c7c['hasComments']&&_0x4bc384['createdAt']<_0x553c7c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4bc384['hasComments']&&_0x553c7c['createdAt']<_0x4bc384['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5165aa[0x0],_0x11f8df[0x0]))return!0x1;const _0x5c08c7=Jt(_0x5165aa[0x0]['attributes'],['groupId','trackingSessionId']),_0x20398a=Jt(_0x11f8df[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x20d232(_0x5c08c7,_0x20398a))return!0x1;if(_0x5165aa[0x0]['attributes']['groupId']==_0x11f8df[0x0]['attributes']['groupId'])return!0x0;if(_0x5165aa[0x0]['attributes']['trackingSessionId']!==_0x11f8df[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5165aa['every'](_0xb6cb35=>_0x11f8df['some'](_0x386e76=>_0xb6cb35['getFirstRange']()['isEqual'](_0x386e76['getFirstRange']())))&&_0x11f8df['every'](_0x1520ab=>_0x5165aa['some'](_0x178e03=>_0x1520ab['getFirstRange']()['isEqual'](_0x178e03['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3f1593){const _0x434f64=Array['from'](_0x3f1593),_0x23a383=this['getSuggestions']({'skipNotAttached':!0x0}),_0x33f0d2=_0x23a383['filter'](_0x4f21e0=>!_0x3f1593['has'](_0x4f21e0)),_0x316cb5=new Map(_0x434f64['map'](_0x277ce1=>[_0x277ce1,this['_suggestionFactory']['getSuggestionCallback'](_0x277ce1['type'],_0x277ce1['subType'],'join')])),_0x4207b4=new Map(_0x23a383['map'](_0x5b381b=>[_0x5b381b,_0x5b381b['getRanges']()]));for(let _0x4e3221=0x0;_0x4e3221<_0x434f64['length'];_0x4e3221++){if(_0x11c33a(this,_0x434f64[_0x4e3221],_0x434f64,_0x4e3221+0x1))return!0x0;}for(let _0x25b74b=0x0;_0x25b74b<_0x434f64['length'];_0x25b74b++){if(_0x11c33a(this,_0x434f64[_0x25b74b],_0x33f0d2,0x0))return!0x0;}return!0x1;function _0x11c33a(_0x3e6537,_0x9aaa27,_0x413a7a,_0x5934c2){for(let _0x47ab13=_0x5934c2;_0x47ab13<_0x413a7a['length'];_0x47ab13++){const _0x44181b=_0x413a7a[_0x47ab13];if(_0x44181b['type']!==_0x9aaa27['type']||_0x44181b['author']['id']!==_0x9aaa27['author']['id']||_0x44181b['subType']!==_0x9aaa27['subType'])continue;if(!en(_0x9aaa27,_0x44181b))continue;if('attribute'==_0x9aaa27['type']&&_0x9aaa27['data']['oldValue']!=_0x44181b['data']['oldValue'])continue;if('attribute'==_0x9aaa27['type']&&_0x3e6537['_isBlockAttribute'](_0x9aaa27['data']['key']))continue;if('formatBlock'==_0x9aaa27['type']){const _0x58a600=_0x3e6537['editor']['model'],_0x104a02=_0x9aaa27['getContainedElement']();if(_0x104a02&&(_0x58a600['schema']['isObject'](_0x104a02)||_0x58a600['schema']['isLimit'](_0x104a02)))continue;}const _0x532bf1=_0x316cb5['get'](_0x9aaa27),_0x5aa25a=_0x4207b4['get'](_0x9aaa27),_0x28bbd4=_0x4207b4['get'](_0x44181b),_0x4bfb68=_0x9aaa27['commentThread']&&_0x9aaa27['commentThread']['length'],_0x54712f=_0x44181b['commentThread']&&_0x44181b['commentThread']['length'];if(!_0x4bfb68&&_0x532bf1(_0x28bbd4,_0x5aa25a))return _0x3e6537['_joinSuggestions'](_0x44181b,_0x9aaa27),_0x4207b4['delete'](_0x9aaa27),!0x0;if(!_0x54712f&&_0x532bf1(_0x5aa25a,_0x28bbd4))return _0x3e6537['_joinSuggestions'](_0x9aaa27,_0x44181b),_0x4207b4['delete'](_0x44181b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x48ef9f,_0xc49f6b){if(_0x48ef9f['isMultiRange']){for(const _0x2fed71 of _0xc49f6b['getRanges']())_0x48ef9f['addRange'](_0x2fed71);}else{const _0x349384=_0xc49f6b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x48ef9f,this['_model']['createRange'](_0x48ef9f['getFirstRange']()['start'],_0x349384));}_0xc49f6b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x404fd8,_0x3ec8cc,_0x383686){const _0x3c4621=_0x404fd8['startsWith']('format')||_0x404fd8['startsWith']('attribute')?'FORMATTING':_0x404fd8['toUpperCase']();return o(this['editor']['locale'],_0x3ec8cc+'_'+_0x3c4621+'_SUGGESTION_ANNOUNCEMENT',_0x383686);}['_initAriaMarkerChangeAnnouncements'](){const _0x5558bd=this['editor'];if(!_0x5558bd['ui'])return;const {ariaLiveAnnouncer:_0x123ce6}=_0x5558bd['ui'];_0x776b21(this['_model'],({left:_0x380dca,entered:_0x46b0db})=>{for(const _0x27fd5f of _0x380dca){const {group:_0x44a498,type:_0x5eb316}=this['_splitMarkerName'](_0x27fd5f['name']);if('suggestion'===_0x44a498){_0x123ce6['announce'](this['_getMarkerAnnouncementText'](_0x5eb316,'LEAVE'));break;}}for(const _0x7e93fc of _0x46b0db){const {group:_0x17dd87,type:_0x2e7db3}=this['_splitMarkerName'](_0x7e93fc['name']);if('suggestion'===_0x17dd87){_0x123ce6['announce'](this['_getMarkerAnnouncementText'](_0x2e7db3,'ENTER',_0x2f6cfe(_0xc97117)));break;}}});}['_processAttributeChanges'](_0x48ca5e){if(this['_recordAttributeSuggestions'])return!0x1;const _0xa5188=this['editor'],_0x192e72=_0xa5188['model']['document']['differ']['getChanges']();if(0x0==_0x192e72['length'])return!0x1;const _0x36cfec=[],_0x143cf0=_0x192e72['filter'](_0x1a114c=>'attribute'==_0x1a114c['type']),_0x5f26ba=_0x192e72['filter'](_0x5989c5=>'insert'==_0x5989c5['type']&&'$text'!=_0x5989c5['name']),_0x4fea51=_0x192e72['filter'](_0x22916b=>'remove'==_0x22916b['type']&&'$text'!=_0x22916b['name']);for(const _0x3b59a8 of _0x143cf0)_0x36cfec['push']({'key':_0x3b59a8['attributeKey'],'newValue':_0x3b59a8['attributeNewValue'],'oldValue':_0x3b59a8['attributeOldValue'],'range':Zt(_0x3b59a8['range'],_0xa5188['model'])});for(const _0x49985c of _0x5f26ba){const _0x194920=_0x4fea51['find'](_0x2d6bc7=>_0x2d6bc7['position']['isEqual'](_0x49985c['position']));_0x194920&&_0x36cfec['push']({'key':m,'newValue':_0x49985c['name'],'oldValue':_0x194920['name'],'range':_0xa5188['model']['createRangeOn'](_0x49985c['position']['nodeAfter'])});}return 0x0!=_0x36cfec['length']&&this['_reduceExistingSuggestions'](_0x48ca5e,_0x36cfec);}['_processAttributeSuggestions'](_0x129501){let _0xa96a28=!0x1;const _0x2bdbbb=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ff461=>_0x4ff461['data']['newRange']&&_0x4ff461['name']['startsWith']('suggestion:attribute:'));for(const _0x53bb62 of _0x2bdbbb){const {subType:_0x560fba,id:_0x30daab}=this['_splitMarkerName'](_0x53bb62['name']),_0x44eb72=_0x560fba['split']('|')[0x0];for(const _0x583cd5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x583cd5['id']!=_0x30daab&&'attribute'==_0x583cd5['type']&&_0x583cd5['data']&&_0x583cd5['data']['key']==_0x44eb72&&_0x583cd5['getFirstRange']()['isIntersecting'](_0x53bb62['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x583cd5,_0x53bb62['data']['newRange'],_0x129501),_0xa96a28=!0x0);}return _0xa96a28;}['recordAttributeChanges'](_0x5b4185){this['_recordAttributeSuggestions']=!0x0,_0x5b4185();}['_isRegisteredAttribute'](_0x3b5bb3){return this['editor']['plugins']['get'](_0x5d38f7)['isRegisteredAttribute'](_0x3b5bb3);}['_reduceExistingSuggestions'](_0x1e7ca3,_0x190cd9){if(0x0==_0x190cd9['length'])return!0x1;let _0x36b85f=!0x1;for(const _0x2fa018 of _0x190cd9){const _0x4c3696=this['_findSuggestions'](_0x2fa018['range'],'attribute')['filter'](_0x1e3c13=>!_0x1e3c13['meta']['isNextTo'])['map'](_0x1473d1=>_0x1473d1['suggestion']),_0x2323d5=_0x420935({'newValue':_0x2fa018['newValue']});_0x4c3696['filter'](_0x236c66=>{const [_0x2c3f15,_0x26bd2b]=_0x236c66['subType']['split']('|');return _0x2c3f15==_0x2fa018['key']&&_0x26bd2b!=_0x2323d5;})['forEach'](_0x2ddeb1=>{this['_reduceSuggestionAttributeRange'](_0x2ddeb1,_0x2fa018['range'],_0x1e7ca3),_0x36b85f=!0x0;});}return _0x36b85f;}['_reduceSuggestionAttributeRange'](_0x49d5e7,_0x112f5f,_0x2adc64){const _0x3f8966=_0x49d5e7['getFirstRange']()['getDifference'](_0x112f5f);0x0!==_0x3f8966['length']?0x1!==_0x3f8966['length']?this['_breakSuggestionMarker'](_0x49d5e7,_0x112f5f['start'],_0x112f5f['end']):this['_setSuggestionRange'](_0x49d5e7,_0x3f8966[0x0]):_0x2adc64['removeMarker'](_0x49d5e7['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d4334){this['_editor']=_0x4d4334,this['_model']=_0x4d4334['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3df19b,_0x739c04,_0xe884b6,_0x46f250,_0x51fe88,_0x425c0c,_0x28b127){return new T(this['_model'],{'type':_0x3df19b,'subType':_0x739c04,'id':_0xe884b6,'originalSuggestionId':_0x28b127,'author':_0x46f250,'creator':_0x46f250,'attributes':_0x51fe88,'onAttributesChange':_0x425c0c,'onAccept':(..._0x3743ec)=>this['getSuggestionCallback'](_0x3df19b,_0x739c04,'accept')(..._0x3743ec),'onDiscard':(..._0x451895)=>this['getSuggestionCallback'](_0x3df19b,_0x739c04,'discard')(..._0x451895)});}['registerCustomCallback'](_0x17d09e,_0x200705,_0xac186d,_0x6622f6){const _0x2450ba=_0x17d09e+':'+_0x200705+':'+_0xac186d;this['_customCallbacks']['set'](_0x2450ba,_0x6622f6);}['getSuggestionCallback'](_0x5e4050,_0xd71f7c,_0x1d6a61){const _0x2bf5b9=_0x5e4050+':'+_0xd71f7c+':'+_0x1d6a61;return this['_customCallbacks']['get'](_0x2bf5b9)||this['_defaultCallbacks']['get'](_0x5e4050+':'+_0x1d6a61);}['_registerDefaultCallbacks'](){const _0x2f2a5d=()=>!0x1,_0x5893ff=_0x2f1f10=>{_0x2f1f10['sort']((_0x526b34,_0x33b4aa)=>_0x526b34['start']['isBefore'](_0x33b4aa['start'])?0x1:-0x1),this['_model']['change'](_0xcfd265=>{for(const _0x507bd1 of _0x2f1f10){let _0x173acc;_0x173acc=_0x507bd1['end']['isAtEnd']&&_0x507bd1['end']['parent']==_0x507bd1['start']['nodeAfter']?_0xcfd265['createSelection'](_0x507bd1['start']['nodeAfter'],'on'):_0xcfd265['createSelection'](_0x507bd1),this['_model']['deleteContent'](_0x173acc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x54626d=(_0x745e9c,_0x137a58)=>{_0x137a58&&this['_model']['change'](_0x2491bb=>{const {commandName:_0x326c4f,commandParams:_0x50b35d=[]}=_0x137a58,_0x2044d9=_0x745e9c['map'](_0x581821=>(Kt(_0x581821)&&(_0x581821=this['_model']['createRange'](_0x581821['end'])),_0x581821))['filter'](_0x27fa7d=>'$graveyard'!==_0x27fa7d['root']['rootName']);if(_0x2044d9['length']<0x1)return;const _0x31d4ba=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5ed4ce=>_0x4c3029['fromRange'](_0x5ed4ce));_0x2491bb['setSelection'](_0x2044d9);for(const _0xad6b97 of this['_editor']['commands']['commands']())_0xad6b97['refresh']();_0x50b35d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x326c4f,..._0x50b35d);const _0x5250ba=_0x31d4ba['filter'](_0x56b9a5=>'$graveyard'!=_0x56b9a5['root']['rootName']);_0x5250ba['length']>0x0&&_0x2491bb['setSelection'](_0x5250ba);for(const _0x443521 of _0x31d4ba)_0x443521['detach']();});},_0x20858c=(_0x3b4eb2,_0x1277e0)=>0x1==_0x3b4eb2['length']&&0x1==_0x1277e0['length']&&_0x3b4eb2[0x0]['end']['isEqual'](_0x1277e0[0x0]['start']),_0x42b2ce=(_0x16522e,_0x304fbb,_0x289884,_0x17eb7d)=>nn(_0x16522e,_0x304fbb,_0x289884,_0x17eb7d)?[_0x16522e,_0x304fbb]:nn(_0x304fbb,_0x16522e,_0x17eb7d,_0x289884)?[_0x304fbb,_0x16522e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f2a5d),this['_defaultCallbacks']['set']('insertion:discard',_0x5893ff),this['_defaultCallbacks']['set']('insertion:join',_0x20858c),this['_defaultCallbacks']['set']('insertion:chain',_0x42b2ce),this['_defaultCallbacks']['set']('deletion:accept',_0x5893ff),this['_defaultCallbacks']['set']('deletion:discard',_0x2f2a5d),this['_defaultCallbacks']['set']('deletion:join',_0x20858c),this['_defaultCallbacks']['set']('deletion:chain',_0x42b2ce),this['_defaultCallbacks']['set']('formatInline:accept',_0x54626d),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f2a5d),this['_defaultCallbacks']['set']('formatInline:join',_0x20858c),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f2a5d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x54626d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f2a5d),this['_defaultCallbacks']['set']('formatBlock:join',_0x20858c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f2a5d),this['_defaultCallbacks']['set']('attribute:accept',_0x2f2a5d),this['_defaultCallbacks']['set']('attribute:discard',(_0x395a63,_0x1a5785)=>{if(!_0x1a5785)return;const _0x1fb702=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x44c9d1=>{if(_0x1a5785['key']==m)for(const _0x5ce375 of _0x395a63){const _0x233752=_0x5ce375['start']['nodeAfter'],_0x11c698=_0x1a5785['oldValue'];_0x44c9d1['rename'](_0x233752,_0x11c698);}else{if(_0x1fb702['_isBlockAttribute'](_0x1a5785['key'])){for(const _0x2eee05 of _0x395a63)void 0x0!==_0x1a5785['oldValue']?_0x44c9d1['setAttribute'](_0x1a5785['key'],_0x1a5785['oldValue'],_0x2eee05['start']['nodeAfter']):_0x44c9d1['removeAttribute'](_0x1a5785['key'],_0x2eee05['start']['nodeAfter']);}else{for(const _0x48d119 of _0x395a63)_0x1a5785['oldValue']?_0x44c9d1['setAttribute'](_0x1a5785['key'],_0x1a5785['oldValue'],_0x48d119):_0x44c9d1['removeAttribute'](_0x1a5785['key'],_0x48d119);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20858c);}}function zt(_0x183cdc,_0x2bc7a5,_0x5914c1){for(const _0x12eb1f of _0x2bc7a5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x12eb1f['root']==_0x12eb1f)return!0x1;if(!_0x5914c1['containsItem'](_0x12eb1f))return!0x1;if(_0x183cdc['isObject'](_0x12eb1f)||_0x183cdc['isLimit'](_0x12eb1f))return!0x0;}return!0x1;}function Kt(_0x1e7050){return _0x1e7050['end']['parent']==_0x1e7050['start']['nodeAfter']&&_0x1e7050['end']['isAtStart'];}function Wt(_0x258e4b,_0x2e4440,_0x2bae5f,_0x15bd7a){const _0x379a03=_0xb1d363=>!_0xb1d363['item']['is']('$textProxy')&&!_0x15bd7a['isObject'](_0xb1d363['item']),_0x5c4e2a=_0x258e4b['start']['getLastMatchingPosition'](_0x379a03),_0x14358e=_0x258e4b['end']['getLastMatchingPosition'](_0x379a03,{'direction':'backward'});return(!_0x258e4b['start']['isEqual'](_0x5c4e2a)||!_0x258e4b['end']['isEqual'](_0x14358e))&&(_0x5c4e2a['isBefore'](_0x14358e)?_0x2bae5f['updateMarker'](_0x2e4440,{'range':_0x2bae5f['createRange'](_0x5c4e2a,_0x14358e)}):_0x2bae5f['removeMarker'](_0x2e4440),!0x0);}function Ht(_0x3b1b75){return _0x420935(_0x3b1b75);}function Qt(_0x56cf9e){const _0x128445=_0x56cf9e['start']['nodeAfter'];return _0x128445&&_0x128445['is']('element');}function Xt(_0x58e771){return Kt(_0x58e771)||function(_0x2c9710){return _0x2c9710['start']['parent']==_0x2c9710['end']['nodeBefore']&&_0x2c9710['start']['isAtEnd'];}(_0x58e771);}function Yt(_0x4df94f,_0x389251){try{const _0xb99914=_0x4df94f['getRange']();for(const _0x25b3bb of _0x389251)if(_0x4df94f!==_0x25b3bb&&_0xb99914&&_0xb99914['isIntersecting'](_0x25b3bb['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x37ac12,_0x5c6ad6){return null==_0x37ac12['end']['nodeBefore']&&_0x37ac12['end']['parent']==_0x37ac12['start']['nodeAfter']?tn(_0x37ac12['start']['nodeAfter'],_0x5c6ad6):_0x37ac12;}function tn(_0x45497c,_0x1f2910){const _0x5cb201=_0x1f2910['schema']['isObject'](_0x45497c)||_0x1f2910['schema']['isSelectable'](_0x45497c);return _0x1f2910['createRange'](_0x1f2910['createPositionAt'](_0x45497c,'before'),_0x5cb201?_0x1f2910['createPositionAfter'](_0x45497c):_0x1f2910['createPositionAt'](_0x45497c,'end'));}function nn(_0x65c8f8,_0x1dd1b8,_0x3743f5,_0x31c5a1){return!!en(_0x65c8f8,_0x1dd1b8)&&_0x3743f5['end']['isEqual'](_0x31c5a1['start']);}function en(_0x4c34e3,_0x41fdaf){if(!_0x4c34e3['_isDataLoaded']||!_0x41fdaf['_isDataLoaded'])return!0x1;const _0xdb7a6a=new Set(Object['keys'](_0x4c34e3['attributes'])),_0x2fe3ee=new Set(Object['keys'](_0x41fdaf['attributes']));if(_0xdb7a6a['delete']('groupId'),_0x2fe3ee['delete']('groupId'),0x0==_0xdb7a6a['size']&&0x0==_0x2fe3ee['size'])return!0x0;if(_0xdb7a6a['size']!=_0x2fe3ee['size'])return!0x1;const _0x5ccb68={..._0x4c34e3['attributes']},_0x58d329={..._0x41fdaf['attributes']};return delete _0x5ccb68['groupId'],delete _0x58d329['groupId'],JSON['stringify'](_0x5ccb68)==JSON['stringify'](_0x58d329);}function sn(_0x5bba76,_0x7482b3){const _0x17fb66=on(_0x5bba76['attributes']),_0x35184a=on(_0x7482b3);if(!_0x5bba76['_isDataLoaded'])return!0x1;for(const _0x2c6274 of Object['keys'](_0x35184a))if(!_0x20d232(_0x17fb66[_0x2c6274],_0x35184a[_0x2c6274]))return!0x1;return!0x0;}function on(_0x1dcc07){const _0x566b01=Object['assign']({},_0x1dcc07);return delete _0x566b01['skipNestingCheck'],delete _0x566b01['tablePasteChainId'],_0x566b01;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x3889c4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x478280,_0xd40ee5,_0x17c0ae,_0xf65c9a){super(),this['model']=_0xd40ee5,this['view']=_0x17c0ae,this['commentThreadController']=_0xf65c9a,this['_editor']=_0x478280,this['_acceptCommand']=_0x478280['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x478280['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x128dba,_0x1b80dc)=>_0x128dba||_0x1b80dc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd63fdf=>_0xd63fdf&&this['_editor']['model']['canEditAt'](_0xd40ee5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3dea4e=>_0x3dea4e&&this['_editor']['model']['canEditAt'](_0xd40ee5['getRanges']())),this['_pendingAction']=null,_0x17c0ae['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x17c0ae,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x17c0ae,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x17c0ae,'change:isDirty',()=>{_0x17c0ae['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 _0x392a20=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x392a20);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x29247f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x530e85,_0x3f01bc,_0x189399,_0x53f11c){super(_0x530e85),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x30bba4(_0x530e85,o(_0x530e85,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3f01bc['authoredAt']),this['bind']('authoredAt')['to'](_0x3f01bc),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',_0x3f01bc,'authoredAt',this,'descriptionParts',(_0x443ba0,_0x1e500a,_0x1b72e6)=>{const _0x123563=_0x1b72e6['map'](_0x312e30=>ls(_0x312e30['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x443ba0-0x1,_0x3f01bc['author']['name'],_0x1e500a?_0x53f11c['formatDateTime'](_0x1e500a):'',new DOMParser()['parseFromString'](_0x123563,'text/html')['body']['textContent']]);}),this['focusables']=new _0x24f11e(),this['focusTracker']=new _0x226a80(),this['keystrokes']=new _0x3d6b21(),this['focusCycler']=new _0x47c3bb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x157e3f=>_0x157e3f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3f01bc,this['_localUser']=_0x189399,this['_config']=_0x53f11c,_0x53f11c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x347dc5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3806a3}=this['_config'];this['commentsListView']=new _0x3806a3(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',_0x1b5e34=>_0x1b5e34+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3d3552,_0x408cfc)=>_0x3d3552||!!_0x408cfc);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x379f24}=this['_config'],_0x48171b=new _0x379f24(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x58a860=_0x48171b['commentInputView'];return _0x48171b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x58a860,'value',(_0x32575e,_0x52ed20,_0x118147)=>!!_0x118147||_0x32575e&&!_0x52ed20),_0x58a860['on']('submit',(_0x7514e8,_0x18673a)=>{this['fire']('addComment',_0x18673a),_0x58a860['editor']['setData']('');}),_0x58a860['on']('cancel',()=>this['focus']()),_0x58a860['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x48171b;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3a1437,_0x374c5b,_0x4011e6,_0x5e27ef){super(_0x3a1437,_0x374c5b,_0x4011e6,_0x5e27ef),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4a1631=>_0x4a1631&&_0x4a1631[0x0]?_0x4a1631[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4ab5d6,_0x222d46)=>{let _0x32d260='';for(const _0x4b1e8b of _0x4ab5d6)_0x32d260+='<p>'+ls(_0x4b1e8b['content'],_0x4b1e8b['color'])+'</p>';return _0x222d46?_0x32d260:_0x490248(_0x32d260,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5e27ef['SuggestionView'](_0x3a1437,_0x374c5b,{'formatDateTime':_0x5e27ef['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 _0x20ec1b=this['bindTemplate'],_0x503e8e=[this['suggestionView']];return this['commentsListView']&&_0x503e8e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x503e8e['push'](this['commentThreadInputView']),_0x503e8e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x20ec1b['if']('isActive','ck-suggestion-wrapper--active'),_0x20ec1b['to']('type',_0x2dc3e=>'ck-suggestion-'+_0x2dc3e),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':_0x20ec1b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x503e8e};}['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 _0x29247f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4a0cfb,_0x790ca3,_0x5e8ee0){super(_0x4a0cfb),this['_model']=_0x790ca3,this['_config']=_0x5e8ee0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x790ca3),this['acceptButton']=this['_createButton'](o(_0x4a0cfb,'Accept\x20suggestion'),_0xe4c893,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4a0cfb,'Discard\x20suggestion'),_0x2cea36,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2de657(_0x4a0cfb,_0x790ca3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x24f11e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x226a80(),this['keystrokes']=new _0x3d6b21(),this['focusCycler']=new _0x47c3bb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x143d9f=>_0x143d9f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x47f68c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x47f68c['innerHTML']=this['description'],this['on']('change:description',(_0x1531bf,_0x5bfedc,_0xb072bb)=>{_0x47f68c['innerHTML']=_0xb072bb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x32bf6f=this['bindTemplate'],_0x368b40=[{'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':_0x32bf6f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x32bf6f['to']('authoredAt',_0xb0ca57=>this['_config']['formatDateTime'](_0xb0ca57))}]}]},{'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']&&_0x368b40['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':_0x368b40}]};}['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'](_0xbaede6,_0x428f62,_0x3b9168,_0x218acc,_0x2d1682){const _0x2b1d00=new _0x3c9ba0(this['locale']);return _0x2b1d00['set']({'label':_0xbaede6,'icon':_0x428f62,'tooltip':!0x0,'tooltipPosition':_0x2d1682}),_0x2b1d00['extendTemplate']({'attributes':{'class':_0x3b9168}}),_0x2b1d00['on']('execute',()=>{this['fire'](_0x218acc,this['_model']['id']);}),_0x2b1d00;}['_setupKeyboardNavigation'](){const _0x50795d=this['element'];this['keystrokes']['listenTo'](_0x50795d);for(const _0x4c7e67 of this['focusables'])this['focusTracker']['add'](_0x4c7e67['element']),this['keystrokes']['listenTo'](_0x4c7e67['element']);this['keystrokes']['set']('enter',(_0x5e0090,_0xb0fa22)=>{_0x50795d===_0x5e0090['target']&&(this['focusCycler']['focusFirst'](),_0xb0fa22());}),this['keystrokes']['set']('esc',(_0x2953c2,_0x164a78)=>{_0x50795d!==_0x2953c2['target']&&(this['focus'](),_0x164a78());});}}class u extends _0x2aad9b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x298dab,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44abdc){super(_0x44abdc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a8094=this['editor']['config'];_0x4a8094['define']('trackChanges.SuggestionThreadView',fe),_0x4a8094['define']('trackChanges.SuggestionView',we),_0x4a8094['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a8094['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x69772d,_0x1f1e31){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x24afcc,_0xcd1c72]of this['_handleControllerBuffer']){const _0x3e9390=this['_suggestionToController']['has'](_0x24afcc);_0x3e9390||_0xcd1c72?_0x3e9390&&_0xcd1c72&&this['_destroyController'](_0x24afcc):this['_initializeController'](_0x24afcc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x69772d,_0x1f1e31);}['init'](){const _0x3d8145=this['editor'],_0x3b770e=_0x3d8145['plugins']['get']('TrackChangesEditing'),_0x3bb2cf=_0x3d8145['plugins']['get']('Annotations'),_0x2cf077=_0x3d8145['plugins']['get']('EditorAnnotations'),_0x5bb87f=_0x3d8145['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2cf077['addSourceCollector'](()=>{const _0x1ce663=[];for(const [_0x134de0,_0x1d7007]of Array['from'](this['_suggestionToController'])){const _0xa0e753=_0x134de0['getAllAdjacentSuggestions'](),_0x3add1d=[];for(const _0x13558f of _0xa0e753){if(!_0x13558f['isInContent'])continue;if(_0x13558f['isMultiRange']){_0x3add1d['push'](..._0x13558f['getRanges']());continue;}const _0x5e2876=_0x13558f['getFirstRange']();if(_0x3add1d['length']>0x0){const _0x20c889=_0x3add1d[0x0]['getJoined'](_0x5e2876);if(_0x20c889){_0x3add1d[0x0]=_0x20c889;continue;}}_0x3add1d['push'](_0x5e2876);}_0x1ce663['push']([_0x1d7007['view'],_0x3add1d]);}return _0x1ce663;}),this['listenTo'](_0x3b770e,'suggestionLoaded',(_0x1a0fd1,_0x1c5aa4)=>{this['listenTo'](_0x1c5aa4,'change:previous',(_0x310f7a,_0x30da9d,_0x5661cf,_0x1b99a1)=>{_0x1c5aa4['isInContent']&&(null==_0x5661cf?(this['_updateController'](_0x1b99a1['head']),this['_handleSuggestionControllerDelayed'](_0x1c5aa4,!0x1)):(this['_updateController'](_0x5661cf['head']),null==_0x1b99a1&&this['_handleSuggestionControllerDelayed'](_0x1c5aa4,!0x0)));}),null!==_0x1c5aa4['previous']?this['_updateController'](_0x1c5aa4['head']):this['_handleSuggestionControllerDelayed'](_0x1c5aa4,!0x1);}),this['listenTo'](_0x3b770e,'suggestionUnloaded',(_0x979165,_0x4d594c,_0xc0e733)=>{this['stopListening'](_0x4d594c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4d594c),this['_suggestionToController']['has'](_0x4d594c)&&this['_destroyController'](_0x4d594c),_0xc0e733&&this['_updateController'](_0xc0e733['head']);}),this['listenTo'](_0x3b770e,'suggestionChanged',(_0x463b73,_0x1ef876)=>{this['_updateController'](_0x1ef876);}),this['listenTo'](_0x3bb2cf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5bb87f,'addComment',(_0x5b1b9a,{threadId:_0x23978,isFromAdapter:_0xfff86a})=>{if(_0xfff86a||!_0x3b770e['hasSuggestion'](_0x23978))return;const _0x13e3b3=_0x3b770e['getSuggestion'](_0x23978);this['_suggestionToController']['get'](_0x13e3b3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25f1fc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x139c75;for(const _0x2f3ea3 in _0x25f1fc){const _0x372c49=_0x2f3ea3,_0x3ad78a=_0x25f1fc[_0x372c49];if('trackChangesLicenseKeyValid'==_0x3ad78a||'trackChangesLicenseKeyInvalid'==_0x3ad78a||'trackChangesLicenseKeyExpired'==_0x3ad78a||'trackChangesLicenseKeyDomainLimit'==_0x3ad78a||'trackChangesLicenseKeyNotAllowed'==_0x3ad78a||'trackChangesLicenseKeyEvaluationLimit'==_0x3ad78a||'trackChangesLicenseKeyUsageLimit'==_0x3ad78a){delete _0x25f1fc[_0x372c49],_0x139c75=_0x3ad78a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x139c75&&_0x25f1fc['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x139c75&&_0x25f1fc['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x139c75&&_0x25f1fc['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x139c75&&_0x25f1fc['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x139c75&&_0x25f1fc['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x139c75&&_0x25f1fc['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x17aaed){const _0x43af79=this['_suggestionToController']['get'](_0x17aaed);if(!_0x43af79)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x43af79['view'])||null;}['getSuggestionForAnnotation'](_0x30a890){const _0x47f876=this['_viewToController']['get'](_0x30a890['innerView']);return _0x47f876?_0x47f876['model']:null;}['_refreshActiveMarkers'](){const _0x1de43b=this['editor']['plugins']['get']('Annotations'),_0x222a43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17b888=Array['from'](_0x1de43b['activeAnnotations'],_0x2a4314=>_0x2a4314['innerView'])['filter'](_0x469992=>this['_viewToController']['has'](_0x469992)),_0x160e54=[];for(const _0x42f552 of _0x17b888){const _0x52af8a=this['_viewToController']['get'](_0x42f552)['model']['getAllAdjacentSuggestions']();_0x160e54['push'](..._0x52af8a['reduce']((_0x3204d1,_0x294637)=>[..._0x3204d1,..._0x294637['getMarkerNames']()],[]));}_0x222a43['activeMarkers']=_0x160e54;}['_addUIComponentsToFactory'](){const _0x208b6f=this['editor'],_0x76e3c0=_0x208b6f['locale'],_0x5d0b05=o(_0x76e3c0,'Track\x20changes'),_0x42984f=new _0x17d437([{'type':'switchbutton','model':new _0x49dbe1({'withText':!0x0,'isToggleable':!0x0,'label':_0x5d0b05,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x208b6f['plugins']['has']('TrackChangesPreview')&&_0x42984f['addMany']([{'type':'separator'},{'type':'button','model':new _0x49dbe1({'withText':!0x0,'label':o(_0x76e3c0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x38f786 of _0x42984f)if(ke(_0x38f786)){const _0x59f6d6=_0x208b6f['commands']['get'](_0x38f786['model']['commandName']);_0x38f786['model']['bind']('isOn','isEnabled')['to'](_0x59f6d6,'value','isEnabled');}_0x208b6f['ui']['componentFactory']['add']('trackChanges',_0x58acb8=>this['_createToolbarButton'](_0x58acb8,_0x42984f,_0x5d0b05)),_0x208b6f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4192e9=>this['_createMenuBarMenu'](_0x4192e9,_0x42984f,_0x5d0b05));}['_createToolbarButton'](_0x10fd04,_0xc12e36,_0x2ca6ef){const _0x569bd9=_0x556741(_0x10fd04,_0x3130d9),_0x3bf377=this['editor']['commands']['get']('trackChanges');_0x569bd9['buttonView']['set']({'tooltip':_0x2ca6ef,'label':_0x2ca6ef,'icon':_0xabbb9c}),_0x569bd9['buttonView']['bind']('isOn')['to'](_0x3bf377,'value'),_0x569bd9['buttonView']['on']('execute',()=>{_0x3bf377['execute'](),this['editor']['editing']['view']['focus']();}),_0x297eb3(_0x569bd9,_0xc12e36,{'role':'menu'});const _0x36123f=[];for(const _0xf54034 of _0xc12e36)ke(_0xf54034)&&_0x36123f['push'](this['editor']['commands']['get'](_0xf54034['model']['commandName']));const _0x2191dc=_0x569bd9['buttonView'];return _0x2191dc['actionView']['unbind']('isEnabled'),_0x2191dc['arrowView']['unbind']('isEnabled'),_0x2191dc['actionView']['bind']('isEnabled')['to'](_0x3bf377,'isEnabled'),_0x2191dc['arrowView']['bind']('isEnabled')['toMany'](_0x36123f,'isEnabled',(..._0x88fa85)=>_0x88fa85['some'](_0x2f3198=>_0x2f3198)),_0x569bd9['on']('execute',_0x5f97c9=>{this['editor']['execute'](_0x5f97c9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x569bd9;}['_createMenuBarMenu'](_0x1607aa,_0x3d197e,_0xb49e20){const _0x27f2d6=new _0xa8c3c7(_0x1607aa),_0x4adda9=this['editor']['commands']['get']('trackChanges');_0x27f2d6['buttonView']['set']({'label':_0xb49e20,'icon':_0xabbb9c});const _0x168eb8=new _0x23851b(_0x1607aa);for(const _0x3e5d2e of _0x3d197e){if('separator'==_0x3e5d2e['type']){_0x168eb8['items']['add'](new _0x105dcd(_0x1607aa));continue;}const _0x1730b2=new _0x1f9b8e(_0x1607aa,_0x27f2d6),_0x474d36=new _0x405ee6(_0x1607aa),_0x311206=_0x3e5d2e['model'];_0x474d36['bind'](...Object['keys'](_0x311206))['to'](_0x311206),_0x474d36['delegate']('execute')['to'](_0x27f2d6),_0x474d36['on']('execute',()=>{this['editor']['execute'](_0x311206['commandName']),this['editor']['editing']['view']['focus']();}),_0x1730b2['children']['add'](_0x474d36),_0x168eb8['items']['add'](_0x1730b2);}return _0x27f2d6['bind']('isEnabled')['to'](_0x4adda9,'isEnabled'),_0x27f2d6['panelView']['children']['add'](_0x168eb8),_0x27f2d6;}['_initializeController'](_0xa0ed84){const _0x14a98a=this['editor'],_0x1c0033=_0x14a98a['config'],_0x237d4a=_0x14a98a['plugins']['get']('Annotations'),_0x2cfccc=_0x14a98a['plugins']['get']('CommentsRepository'),_0x4d1b48=_0x14a98a['plugins']['get']('EditorAnnotations'),_0x3b01d4=_0x14a98a['plugins']['get'](_0x298dab)['me'],_0x3baf74=_0x1c0033['get']('trackChanges')['SuggestionThreadView'],_0x472159=_0x1c0033['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4d8d35,CommentThreadInputView:_0x4a7eb6}=_0x14a98a['plugins']['get']('CommentsUI');let _0x24aef1,_0x51804d,_0x238e03;this['_annotationViews']['has'](_0xa0ed84['id'])?(_0x51804d=this['_annotationViews']['get'](_0xa0ed84['id']),_0x24aef1=_0x51804d['mainView']):(_0x24aef1=new _0x3baf74(_0x14a98a['locale'],_0xa0ed84,_0x3b01d4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1c0033['get']('comments.editorConfig'),'licenseKey':_0x1c0033['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1c0033['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c0033['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c0033['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x33bba7(_0x1c0033['get']('locale'),_0x14a98a['locale']),'CommentView':_0x1c0033['get']('comments')['CommentView'],'CommentsListView':_0x4d8d35,'CommentThreadInputView':_0x4a7eb6,'SuggestionView':_0x472159}),_0x24aef1['suggestionView']['acceptButton']['on']('execute',()=>{_0x14a98a['editing']['view']['focus']();}),_0x24aef1['suggestionView']['discardButton']['on']('execute',()=>{_0x14a98a['editing']['view']['focus']();}),_0x51804d=_0x237d4a['createAnnotationView'](this['editor']['locale'],_0x24aef1),_0x51804d['bind']('isDirty')['to'](_0x24aef1,'isDirty'),_0x51804d['bind']('length')['to'](_0x24aef1),_0x51804d['bind']('type')['to'](_0x24aef1,'type',_0x144638=>'suggestion-'+_0x144638),_0x24aef1['on']('escape',()=>{_0x238e03['fire']('escape');}),this['_annotationViews']['set'](_0xa0ed84['id'],_0x51804d));const _0x330be2=_0x2cfccc['createCommentThreadController'](_0xa0ed84['commentThread'],_0x24aef1),_0x55b239=new pe(_0x14a98a,_0xa0ed84,_0x24aef1,_0x330be2),_0x36778e=_0xa0ed84['getAllAdjacentSuggestions']()['filter'](_0x5e5049=>_0x5e5049['isInContent']);_0x24aef1['descriptionParts']=_0x14a98a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x36778e),this['_suggestionToController']['set'](_0xa0ed84,_0x55b239),this['_viewToController']['set'](_0x24aef1,_0x55b239);const _0xc83a22=()=>{const _0x11c777=[],_0x355734=_0xa0ed84['getAllAdjacentSuggestions']()['filter'](_0x1292c3=>_0x1292c3['isInContent']);for(const _0x242638 of _0x355734)_0x11c777['push'](..._0x242638['getMarkers']());return _0x498b3a(_0x14a98a['editing'],_0x11c777);};_0x238e03=_0x237d4a['createAnnotation']({'view':_0x51804d,'target':_0xc83a22,'type':()=>'suggestion-'+_0x55b239['view']['type'],'isVisible':!!_0xc83a22()}),_0x2cfccc['_bindAnnotationToEditors'](_0x24aef1,_0x238e03),_0x237d4a['add'](_0x238e03),_0x4d1b48['registerAnnotation'](_0x238e03);}['_destroyController'](_0x2564da){const _0x33b397=this['editor']['plugins']['get']('CommentsRepository'),_0x2ff4eb=this['editor']['plugins']['get']('Annotations'),_0x26bbca=this['_suggestionToController']['get'](_0x2564da),_0x40f41c=_0x26bbca['view'],_0x48f8f3=_0x2ff4eb['getByInnerView'](_0x40f41c);_0x33b397['_unbindEditors'](_0x40f41c),_0x48f8f3&&_0x2ff4eb['remove'](_0x48f8f3),this['_suggestionToController']['delete'](_0x2564da),this['_viewToController']['delete'](_0x40f41c),_0x26bbca['destroy']();}['_updateController'](_0x2d086a){if(!_0x2d086a['isInContent']||!this['_suggestionToController']['has'](_0x2d086a))return;const _0x2c23eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22d7a5=this['_suggestionToController']['get'](_0x2d086a),_0xca9745=_0x2d086a['getAllAdjacentSuggestions']();_0x22d7a5['view']['descriptionParts']=_0x2c23eb['descriptionFactory']['getDescriptions'](_0xca9745);}['destroy'](){for(const _0xb7d4fd of this['_suggestionToController']['keys']())this['_destroyController'](_0xb7d4fd);for(const _0x35765f of this['_annotationViews']['values']())_0x35765f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5aa6ab){return'model'in _0x5aa6ab;}class Ne extends _0x2aad9b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5caded){this['editor']['plugins']['get'](d)['adapter']=_0x5caded;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2ef8a2){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2ef8a2);}['getSuggestions']({skipNotAttached:_0x1bcf36=!0x1,toJSON:_0x52b90e=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1bcf36,'toJSON':_0x52b90e});}['getSuggestion'](_0x5d93f8){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5d93f8);}}const p=['Pagination'];class re extends _0x2aad9b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b4a1b=this['editor'];if(_0x1b4a1b['config']['define']('trackChangesData.editorCreator',_0x410897=>{const _0x26db30=_0x1b4a1b['model']['document']['getRootNames']()['reduce']((_0x3662f4,_0x246f31)=>(_0x3662f4[_0x246f31]='',_0x3662f4),{});return _0x1b4a1b['constructor']['create'](_0x26db30,_0x410897);}),'function'!=typeof _0x1b4a1b['config']['get']('trackChangesData')['editorCreator'])throw new _0x2d7a4f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x538957){return P(this['editor'],!0x0,_0x538957);}['getDataWithDiscardedSuggestions'](_0xf0422e){return P(this['editor'],!0x1,_0xf0422e);}}class Fe extends _0x2aad9b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcbc04b){function _0x312672(_0x3d8cfc){return _0x3d8cfc['map'](_0x592ba7=>String['fromCharCode'](_0x592ba7))['join']('');}super(_0xcbc04b),this['result']='end',_0xcbc04b[_0x312672([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x312672([0x76,0x69,0x65,0x77])][_0x312672([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x312672([0x61,0x75,0x74,0x6f]),_0xcbc04b[_0x312672([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x312672([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x312672([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x312672([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x312672([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 De(_0x3225f1){return void 0x0!==_0x3225f1['getRootsAttributes'];}async function P(_0x375c5d,_0x2d59f6,_0x2482ee){const _0x2f543c=_0x32a30e(_0x375c5d,p);_0x2f543c['plugins']['push'](d,Fe),_0x2f543c['rootsAttributes']=De(_0x375c5d)?_0x375c5d['getRootsAttributes']():void 0x0;const _0x5651be=document['createDocumentFragment'](),_0x1e1c27=_0x375c5d['config']['get']('trackChangesData')['editorCreator'],_0x326955=await _0x1e1c27(_0x2f543c,()=>function(_0x3710cc){const _0x2b6059=document['createElement']('div');return _0x3710cc['appendChild'](_0x2b6059),_0x2b6059;}(_0x5651be));!function(_0x988ba9,_0x3ced00){const _0x410fad=_0x988ba9['model']['document']['getRootNames']()['reduce']((_0x2c1962,_0x38211f)=>(_0x2c1962[_0x38211f]=_0x988ba9['data']['get']({'rootName':_0x38211f}),_0x2c1962),{}),_0x1b83a2=_0x988ba9['plugins']['get']('Users')['users']['map'](_0x326e46=>({'id':_0x326e46['id'],'name':_0x326e46['name']})),_0x390bbc=_0x988ba9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5475a1=_0x988ba9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34911d=_0x3ced00['plugins']['get']('Users'),_0x330c1f=_0x3ced00['plugins']['get']('TrackChangesEditing'),_0x44c4ac=_0x3ced00['plugins']['get']('CommentsRepository');for(const _0x3e067c of _0x44c4ac['getCommentThreads']())_0x3e067c['remove']();for(const _0x4148fa of _0x1b83a2)_0x34911d['getUser'](_0x4148fa['id'])||_0x34911d['addUser'](_0x4148fa);_0x34911d['me']||_0x34911d['useAnonymousUser']();for(const _0xad6605 of _0x5475a1)_0x44c4ac['addCommentThread'](_0xad6605);for(const _0x2ffb09 of _0x390bbc)_0x330c1f['addSuggestionData'](_0x2ffb09);_0x3ced00['data']['set'](_0x410fad);}(_0x375c5d,_0x326955),_0x326955['execute'](_0x2d59f6?'acceptAllSuggestions':'discardAllSuggestions');const _0x1095c9=De(_0x326955)?_0x326955['getFullData'](_0x2482ee):_0x326955['data']['get'](_0x2482ee);return await _0x326955['destroy'](),_0x1095c9;}class Me extends _0x29247f{['options'];constructor(_0x4b9e89,_0x2e776f){super(_0x4b9e89),this['options']=_0x2e776f,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'](_0x4e34e4,_0x369599){if(!this['element'])return;const _0x3d4ef1=[];for(const [_0x5c2628,_0xd1cabd]of _0x4e34e4){const _0x12377e=document['createElement']('div');_0x12377e['setAttribute']('data-ck-root-name',_0x5c2628),_0x12377e['className']=_0xd1cabd['classes']+'\x20ck-track-changes-preview__root-container',_0x12377e['innerHTML']=_0xd1cabd['content'],_0x3d4ef1['push'](_0x12377e);}_0x369599(this['element'],_0x3d4ef1),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2e7cb8{constructor(_0x10efd2){super(_0x10efd2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2a71b2=this['editor'],_0x4dfd4b=_0x2a71b2['locale'],_0xbdc6ca=_0x2a71b2['plugins']['get']('Dialog');let _0x452e61;const _0x2ea320=function(_0x471bc2){const _0x134c20={};if('editables'in _0x471bc2['ui']['view']){for(const [_0x122990,_0x156b40]of Object['entries'](_0x471bc2['ui']['view']['editables']))_0x134c20[_0x122990]=_0x156b40['element'];}else _0x134c20[_0x471bc2['model']['document']['getRootNames']()[0x0]]=_0x471bc2['ui']['view']['editable']['element'];return _0x134c20;}(_0x2a71b2),_0x457069=function(_0x5839f4){let _0x13698d=0x0;for(const _0x2e0068 of Object['values'](_0x5839f4))_0x13698d=Math['max'](_0x13698d,_0x2e0068['getBoundingClientRect']()['width']);let _0x350a4a=0x0;for(const _0x3700c3 of Object['values'](_0x5839f4))_0x350a4a+=_0x3700c3['getBoundingClientRect']()['height'];const _0x2083cd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1ad2c8=Math['min'](_0x350a4a,_0x2083cd);return{'width':_0x13698d,'height':_0x1ad2c8};}(_0x2ea320);_0xbdc6ca['show']({'id':'finalContentPreview','title':o(_0x4dfd4b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4dfd4b,{'dialogRects':_0x457069}),'onHide':()=>{_0x452e61['detachFromDom']();},'onShow':()=>{_0x2a71b2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x297c1d=>{const _0x34b16a=this['_standarizeRootsData'](_0x297c1d,_0x2a71b2,_0x2ea320);_0xbdc6ca['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x34b16a,_0x2a71b2['config']['get']('trackChanges.preview.renderFunction'));}),_0x452e61=new _0x4788c2(_0x4dfd4b,[_0xbdc6ca['view']]),_0x452e61['attachToDom'](),_0x452e61['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2a71b2['once']('destroy',()=>{_0x452e61['detachFromDom']();});const _0x5f17c4=_0xbdc6ca['view']['headerView']['class'];_0xbdc6ca['view']['headerView']['class']=_0x5f17c4?_0x5f17c4+'\x20ck-reset_all':'ck-reset_all',_0xbdc6ca['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xbdc6ca['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2f98fd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x469547=_0x2f98fd['previewMode'],_0x4b0690={};if('$labels'===_0x469547){for(const _0x5a74f7 of _0x2f98fd['getMergeFieldsIds']())_0x4b0690[_0x5a74f7]=_0x2f98fd['getLabel'](_0x5a74f7)||_0x5a74f7;}else{const _0x57e9bd='$defaultValues'===_0x469547?_0x2f98fd['getDefaultValues']():_0x2f98fd['getDataSetValues'](_0x469547,!0x0);for(const _0x3f79ee of Object['entries'](_0x57e9bd)){const [_0x37b862,_0x5895bf]=_0x3f79ee;_0x4b0690[_0x37b862]=null!==_0x5895bf?_0x5895bf:_0x2f98fd['getLabel'](_0x37b862)||_0x37b862;}}return{'mergeFieldsData':_0x4b0690};}['_standarizeRootsData'](_0x136074,_0x56a861,_0x41920b){let _0x3b43b3;if('string'==typeof _0x136074){const _0xc446d6=_0x56a861['model']['document']['getRootNames']()[0x0];_0x3b43b3={[_0xc446d6]:_0x136074};}else _0x3b43b3=_0x136074;const _0x37f1d1=this['_fixMediaEmbeds'](_0x3b43b3,_0x56a861),_0x2674a3=function(_0x23f78b,_0x34934a){for(const [_0x5248f7,_0x362eb1]of _0x23f78b)_0x362eb1['classes']=_0x34934a[_0x5248f7]['classList']['value']['replace']('ck-focused','');return _0x23f78b;}(this['_sortRoots'](_0x56a861)['reduce']((_0x113c34,_0x88a921)=>(_0x113c34['push']([_0x88a921,{'content':_0x37f1d1[_0x88a921],'classes':''}]),_0x113c34),[]),_0x41920b);return _0x2674a3;}['_fixMediaEmbeds'](_0x5b07ab,_0x3638c2){if(!_0x3638c2['plugins']['has']('MediaEmbedEditing'))return _0x5b07ab;const _0x6dd71d=_0x3638c2['plugins']['get']('MediaEmbedEditing');for(const [_0x15ab0c,_0x54a7d2]of Object['entries'](_0x5b07ab)){const _0x29c973=document['createElement']('div');_0x29c973['innerHTML']=_0x54a7d2,(_0x29c973['querySelectorAll']('figure.media')['forEach'](_0x74084f=>{const _0x216931=_0x74084f['querySelector']('oembed');if(_0x216931){const _0x2a32a7=_0x216931['getAttribute']('url');if(_0x2a32a7){const _0x323da8=_0x6dd71d['registry']['getMediaViewElement'](new _0x3df5fb(_0x3638c2['editing']['view']['document']),_0x2a32a7,{'elementName':'','renderForEditingView':!0x0}),_0x1951a8=document['createElement']('div');_0x1951a8['classList']['add']('ck-media__wrapper'),_0x323da8['render'](_0x1951a8,_0x3638c2['editing']['view']['domConverter']),_0x216931['replaceWith'](_0x1951a8);}}}),_0x5b07ab[_0x15ab0c]=_0x29c973['innerHTML']);}return _0x5b07ab;}['_sortRoots'](_0x33bb4a){if(!function(_0x859cf9){return void 0x0!==_0x859cf9['getRootsAttributes'];}(_0x33bb4a))return _0x33bb4a['model']['document']['getRootNames']();const _0x5c3c3b=[],_0x5a858e=new Map();for(const _0x470d14 of _0x33bb4a['model']['document']['getRootNames']()){const _0xf77834=_0x33bb4a['editing']['view']['getDomRoot'](_0x470d14)['getClientRects']()['item'](0x0);_0x5c3c3b['push'](_0x470d14),_0x5a858e['set'](_0x470d14,_0xf77834);}return _0x5c3c3b['sort']((_0x3acbfb,_0x1641bb)=>{const _0x1853c5=_0x5a858e['get'](_0x3acbfb),_0x26a5e6=_0x5a858e['get'](_0x1641bb);return _0x1853c5['y']-_0x26a5e6['y']||_0x1853c5['x']-_0x26a5e6['x'];}),_0x5c3c3b;}}class Ue extends _0x2aad9b{static get['requires'](){return[re,_0x470eaf];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49f85b){super(_0x49f85b),_0x49f85b['commands']['add']('previewFinalContent',new te(this['editor'])),_0x49f85b['config']['define']('trackChanges.preview.renderFunction',(_0x59c92d,_0x4009fb)=>{for(const _0x20ee70 of _0x4009fb)_0x59c92d['appendChild'](_0x20ee70);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x2af6e6,Plugin as _0x1480f8,PendingActions as _0x4e96e3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x29a890,ObservableMixin as _0x26bd90,uid as _0x1bc03f,priorities as _0x5d885f,insertToPriorityArray as _0x26a5e2,logWarning as _0x1c1ad2,getEnvKeystrokeText as _0x239d7c,FocusTracker as _0x51f1e9,KeystrokeHandler as _0x3f7945,Collection as _0x434398}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x13ce00,IconCancel as _0x3b7f67,IconTrackChanges as _0x2d3dcf}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3a9b5a,View as _0x46cbf6,ViewCollection as _0x462d7b,FocusCycler as _0x385a37,UIModel as _0x1e3dcc,createDropdown as _0x26f2b8,SplitButtonView as _0x35df82,addListToDropdown as _0x202a7c,MenuBarMenuView as _0x533c63,MenuBarMenuListView as _0x318d9e,ListSeparatorView as _0x2f3bf3,MenuBarMenuListItemView as _0x5ed9fc,MenuBarMenuListItemButtonView as _0x285dd1,BodyCollection as _0x51072b,Dialog as _0xcb9519}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x299603,Users as _0x5aac27,DocumentCompare as _0x38c55e,fixElementSuggestionRange as _0x359a3c,hashObject as _0x276d54,splitSuggestionMarkerName as _0x406097,surroundingMarkersDetector as _0x1fecff,FOCUS_ANNOTATION_KEYSTROKE as _0x1b54d2,AriaDescriptionView as _0x5e4117,setupThreadKeyboardNavigation as _0x53d3bb,trimHtml as _0x3bcd7b,UserView as _0x41802b,LateFocusButtonView as _0x3f58f0,getDateTimeFormatter as _0x1fb111,getAllMarkersDomElementsSorted as _0x5b05e7,sanitizeEditorConfig as _0x59e451}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x35384f,ModelLiveRange as _0x43f9b1,ModelLivePosition as _0x451de7,ViewDowncastWriter as _0x495259}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0xd85041,set as _0x1e3804,isEqual as _0x493db7,unset as _0x56389d,omit as Jt}from'es-toolkit/compat';import{Delete as _0x5bb5fd,Input as _0x3aca2f}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3a1090}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x22fa6f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x2af6e6{['_enabledCommands'];constructor(_0x1c09d7,_0x1ee9b0){super(_0x1c09d7),this['_enabledCommands']=_0x1ee9b0,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 _0x4477f2 of this['editor']['commands']['commands']())_0x4477f2['affectsData']&&!this['_enabledCommands']['has'](_0x4477f2)&&_0x4477f2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x932ad0 of this['editor']['commands']['commands']())_0x932ad0['affectsData']&&!this['_enabledCommands']['has'](_0x932ad0)&&_0x932ad0['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x2af6e6{['_suggestions'];constructor(_0x5f2e92,_0x297152){super(_0x5f2e92),this['_suggestions']=_0x297152,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xee691b){const _0x3e3ec0=this['_suggestions']['get'](_0xee691b);if(!_0x3e3ec0)throw new _0x29a890('track-changes-accept-suggestion-not-found',this);const _0x57cdef=_0x3e3ec0['getRanges']();this['editor']['model']['canEditAt'](_0x57cdef)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3e3ec0);}}class x extends _0x2af6e6{['_suggestions'];constructor(_0x15ad11,_0x2566bb){super(_0x15ad11),this['_suggestions']=_0x2566bb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1f6364){const _0x5f2a97=this['_suggestions']['get'](_0x1f6364);if(!_0x5f2a97)throw new _0x29a890('track-changes-discard-suggestion-not-found',this);const _0x5da71a=_0x5f2a97['getRanges']();this['editor']['model']['canEditAt'](_0x5da71a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5f2a97);}}function ls(_0x4cc7b3,_0x9451f9){let _0x23b7b5='';return _0x23b7b5+=_0x4cc7b3['split']('*')['map']((_0x320857,_0x3802e5)=>_0x3802e5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x320857)+'</span>':rn(_0x320857))['join'](''),_0x9451f9&&(_0x23b7b5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x9451f9['value']+'\x22\x20title=\x22'+_0x9451f9['title']+'\x22></span>'),_0x23b7b5;}function rn(_0x1c0090){const _0x19413f=document['createElement']('span');return _0x19413f['innerText']=_0x1c0090,_0x19413f['innerHTML'];}function ts(_0x3f684b){return _0x3f684b['sort']((_0x49ebb2,_0x2f5568)=>'attribute'===_0x49ebb2['type']&&'attribute'!==_0x2f5568['type']?-0x1:'attribute'!==_0x49ebb2['type']&&'attribute'===_0x2f5568['type']?0x1:'deletion'==_0x49ebb2['type']&&'deletion'!=_0x2f5568['type']?-0x1:'deletion'!=_0x49ebb2['type']&&'deletion'==_0x2f5568['type']?0x1:0x0);}function to(_0x2ef1e2,_0x5c4716){let _0x5c14d5,_0x1b6dd1=0x0;const _0x1f5de3=[],_0x2e8c87=_0x5c4716['schema'];for(;_0x1b6dd1<_0x2ef1e2['length'];){const _0xc973=_0x2ef1e2[_0x1b6dd1],_0x4e7079=_0x2ef1e2[_0x1b6dd1+0x1];_0x5c14d5||(_0x5c14d5=_0x5c4716['createPositionBefore'](_0xc973)),cn(_0x5c4716,_0xc973,_0x4e7079)||(_0x1f5de3['push'](_0x5c4716['createRange'](_0x5c14d5,_0x2e8c87['isObject'](_0xc973)?_0x5c4716['createPositionAfter'](_0xc973):_0x5c4716['createPositionAt'](_0xc973,'end'))),_0x5c14d5=null),_0x1b6dd1++;}return _0x1f5de3;}function cn(_0x4d017a,_0x436671,_0x512380){if(!_0x512380)return!0x1;const _0x4e1d02=_0x4d017a['createPositionAfter'](_0x436671),_0x203fd8=_0x4d017a['createPositionBefore'](_0x512380);return _0x4e1d02['isTouching'](_0x203fd8);}function rs(_0x83944,_0x275158,_0x3e37ce){for(;_0x3e37ce['length'];){const _0x5d5d18=_0x3e37ce['splice'](0x0,0x64);_0x83944['change'](()=>{for(const _0x1c7774 of _0x5d5d18)_0x1c7774['isInContent']&&_0x275158['execute'](_0x1c7774['id']);});}}class M extends _0x2af6e6{['_command'];['_suggestions'];constructor(_0x512497,_0x1061b2,_0x27951a){super(_0x512497),this['_command']=_0x1061b2,this['_suggestions']=_0x27951a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16e678=Array['from'](this['_suggestions']['values']())['some'](_0x379a97=>_0x379a97['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x16e678;}['execute'](){const _0x194c52=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2e48d2 of _0x194c52){const _0x43f12c=_0x2e48d2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x43f12c))return;}rs(this['editor']['model'],this['_command'],_0x194c52);}}class R extends _0x2af6e6{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x421451,_0x528ac2,_0x5a544a){super(_0x421451),this['_command']=_0x528ac2,this['_suggestions']=_0x5a544a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5f1497=this['editor']['model']['document']['selection'],_0x471645=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x571ffc,_0x4db535){const _0x2539c1=Array['from'](_0x571ffc['getRanges']()),_0x530f23=new Set();for(const _0x57ab8e of _0x4db535)if(_0x57ab8e['isInContent']){for(const _0x5e1d68 of _0x2539c1)for(const _0x51507a of _0x57ab8e['getRanges']())(_0x5e1d68['isIntersecting'](_0x51507a)||_0x571ffc['isCollapsed']&&!_0x57ab8e['isMultiRange']&&_0x57ab8e['next']&&_0x51507a['end']['isTouching'](_0x5e1d68['start']))&&_0x530f23['add'](_0x57ab8e);}return _0x530f23;}(_0x5f1497,_0x471645),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2e4419=ts(Array['from'](this['_selectedSuggestions']));for(const _0x29a5e1 of _0x2e4419){const _0x2df106=_0x29a5e1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2df106))return;}rs(this['editor']['model'],this['_command'],_0x2e4419);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x26bd90(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x218526,_0x14b40b){super(),this['id']=_0x14b40b['id'],this['type']=_0x14b40b['type'],this['subType']=_0x14b40b['subType']||null,this['author']=_0x14b40b['author'],this['creator']=_0x14b40b['creator']||_0x14b40b['author'],this['isExternal']=Boolean(_0x14b40b['attributes']&&_0x14b40b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x14b40b['originalSuggestionId']||null,this['_model']=_0x218526,this['_onAccept']=_0x14b40b['onAccept'],this['_onDiscard']=_0x14b40b['onDiscard'],this['_onAttributesChange']=_0x14b40b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x14b40b['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 _0x1de9f9=this;for(;_0x1de9f9['previous'];)_0x1de9f9=_0x1de9f9['previous'];return _0x1de9f9;}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'](_0x21fbb2){this['_markerNames']['add'](_0x21fbb2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x56fd28=>this['_model']['markers']['get'](_0x56fd28))['filter'](_0x48c416=>_0x48c416);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2df71e=>{for(const _0x1344b6 of this['getMarkers']())_0x2df71e['removeMarker'](_0x1344b6);}),this['_markerNames']['clear']();}['removeMarker'](_0x57286e){this['_model']['change'](_0xd786d8=>{_0xd786d8['removeMarker'](_0x57286e);}),this['_markerNames']['delete'](_0x57286e);}['addRange'](_0x1e4598){const _0x541c09='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x541c09),this['_model']['change'](_0x1a6c0b=>{_0x1a6c0b['addMarker'](_0x541c09,{'range':_0x1e4598,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x409a59){for(const _0x431d2d of this['getRanges']())if(_0x431d2d['isIntersecting'](_0x409a59))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x6d6510=>_0x6d6510['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x235c67,_0x52e2bf)=>[..._0x235c67,..._0x52e2bf['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x52721c=this['getRanges']();if(0x1!=_0x52721c['length'])return null;const _0x252a26=_0x52721c[0x0],_0x50593d=_0x252a26['start']['nodeAfter'],_0x414d7a=_0x252a26['end']['nodeBefore'];return _0x50593d instanceof _0x35384f?_0x50593d!=_0x414d7a?null:_0x50593d: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 _0x3f686b=[];let _0x6e1142=this['head'];for(;_0x6e1142;)_0x3f686b['push'](_0x6e1142),_0x6e1142=_0x6e1142['next'];return _0x3f686b;}['setAttribute'](_0x3c8d66,_0x47c65c){const _0x444f06=_0xd85041(this['attributes']);_0x1e3804(_0x444f06,_0x3c8d66,_0x47c65c),_0x493db7(_0x444f06,this['attributes'])||(this['attributes']=_0x444f06,this['_onAttributesChange'](_0x444f06));}['removeAttribute'](_0x5e9564){const _0x4ffd2e=_0xd85041(this['attributes']);_0x56389d(_0x4ffd2e,_0x5e9564),_0x493db7(_0x4ffd2e,this['attributes'])||(this['attributes']=_0x4ffd2e,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 _0x1bc03f()['substr'](0x1,0x5);}}function o(_0x5db35d,_0x2570c4,_0x334693){const _0x2c9176=_0x5db35d['t'],t=_0x5db35d['t'];switch(_0x2570c4){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',_0x334693);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x334693);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x334693);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x334693);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x334693);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',_0x334693);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x334693);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',_0x334693);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x334693);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x334693);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x334693);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x334693);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x334693);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x334693);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x334693);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x334693);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x334693);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x334693);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x334693);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x334693);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x334693);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x334693);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x334693);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x334693);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x334693);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'},_0x334693);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x334693);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x334693);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x334693);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x334693);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x334693);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x334693);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x334693);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'},_0x334693);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x334693);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x334693);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x334693);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x334693);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x334693);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x334693);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'},_0x334693);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x334693);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x334693);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'},_0x334693);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x334693);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'},_0x334693);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x334693);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x334693);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x334693);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x334693);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x334693);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'},_0x334693);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x334693);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 _0x2c9176({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x334693);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2c9176({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x334693);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x334693);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'},_0x334693);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'},_0x334693);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'},_0x334693);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2570c4;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x30d73a,_0x13935e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x30d73a,this['_locale']=_0x13935e;}['getDescriptions'](_0x28f5b3){const _0x49364a=[],_0x2ab101=new Set(),_0x5f2e47=new Set();for(let _0x121215=0x0;_0x121215<_0x28f5b3['length'];_0x121215++){const _0x2b5a84=_0x28f5b3[_0x121215];if(!_0x2b5a84['isInContent'])continue;const _0x32c5eb=this['_handleCustomCallbackDescription'](_0x2b5a84);if(_0x32c5eb){if(null!=_0x2b5a84['subType']){if(_0x2ab101['has'](_0x2b5a84['subType']))continue;_0x2ab101['add'](_0x2b5a84['subType']);}_0x49364a['push'](_0x32c5eb);}else{if('attribute'==_0x2b5a84['type']){const _0x54fd4a=_0x2b5a84['data']['key'];if(_0x5f2e47['has'](_0x54fd4a))continue;_0x5f2e47['add'](_0x2b5a84['data']['key']),_0x54fd4a==m?this['_handleRenameSuggestionDescription'](_0x49364a,_0x2b5a84):this['_handleAttributeSuggestionDescription'](_0x49364a,_0x2b5a84);continue;}'insertion'!=_0x2b5a84['type']&&'deletion'!=_0x2b5a84['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49364a,_0x2b5a84,_0x28f5b3[_0x121215+0x1]);}}return this['_resolveDescriptionItems'](_0x49364a);}['registerDescriptionCallback'](_0x1192ce){this['_customCallbacks']['push'](_0x1192ce);}['registerElementLabel'](_0x4ba32a,_0x404fe4,_0x10dd0d=_0x5d885f['normal']){'function'==typeof _0x4ba32a?_0x26a5e2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4ba32a,'label':_0x404fe4,'priority':_0x10dd0d}):this['_itemLabels']['set'](_0x4ba32a,_0x404fe4);}['registerAttributeLabel'](_0x53d22c,_0x225dbd){this['_attributeLabels']['set'](_0x53d22c,_0x225dbd);}['getItemLabel'](_0x2631fc,_0x59ed52=0x1){let _0x3025e3;for(const _0x451dd1 of this['_itemLabelsCallbacks'])if(_0x451dd1['matchingCallback'](_0x2631fc)){_0x3025e3=_0x451dd1['label'];break;}return _0x3025e3||(_0x3025e3=this['_itemLabels']['get'](_0x2631fc['name'])),_0x3025e3?_0x3025e3(_0x59ed52):0x1!==_0x59ed52?_0x59ed52+'\x20'+_0x2631fc['name']+'s':''+_0x2631fc['name'];}['_addDescriptionItems'](_0x1c81bd,_0x375308){const _0x36e27a=_0x375308['getFirstRange']()['getWalker'](),_0x491270='insertion'==_0x375308['type']?'add':'remove';for(const _0xb0c636 of _0x36e27a){const _0x37cd52=_0xb0c636['item'],_0x1a000e=_0x1c81bd[_0x1c81bd['length']-0x1];if(_0x37cd52['is']('$textProxy'))_0x1a000e&&_0x1a000e['type']['indexOf']('Container')>-0x1&&_0x1c81bd['pop'](),_0x1a000e&&'text'==_0x1a000e['type']?_0x1a000e[_0x491270]+=_0x37cd52['data']:_0x1c81bd['push']({'type':'text','add':'add'==_0x491270?_0x37cd52['data']:'','remove':'remove'==_0x491270?_0x37cd52['data']:''});else{if(this['_schema']['isObject'](_0x37cd52)){const _0x57895f=_0x37cd52;if(_0x1a000e&&_0x1a000e['type']['indexOf']('Container')>-0x1&&_0x1c81bd['pop'](),'elementEnd'==_0xb0c636['type'])continue;_0x1a000e&&_0x1a000e['type']==_0x491270+'Object'&&_0x1a000e['element']['name']==_0x57895f['name']?_0x1a000e['quantity']++:_0x1c81bd['push']({'type':_0x491270+'Object','element':_0x57895f,'quantity':0x1}),_0x36e27a['skip'](_0x1edd6a=>!('elementEnd'==_0x1edd6a['type']&&_0x1edd6a['item']==_0x37cd52));}else{if(this['_schema']['checkChild'](_0x37cd52,'$text')||_0x37cd52['is']('element','softBreak')){const _0x352df7=_0x37cd52;if('add'==_0x491270&&'elementStart'==_0xb0c636['type']||'remove'==_0x491270&&'elementEnd'==_0xb0c636['type'])continue;if(_0x1a000e&&-0x1==_0x1a000e['type']['indexOf']('Container')){'text'==_0x1a000e['type']&&(_0x1a000e[_0x491270]+='\x0a');continue;}let _0x5c7391;if(_0x5c7391='add'==_0x491270?_0x352df7['nextSibling']&&!this['_schema']['isObject'](_0x352df7['nextSibling'])?_0x352df7['nextSibling']:null:_0x352df7['previousSibling']&&!this['_schema']['isObject'](_0x352df7['previousSibling'])?_0x352df7['previousSibling']:null,_0x352df7['isEmpty']||_0x5c7391&&_0x5c7391['isEmpty']){const _0x4159ed=_0x5c7391&&_0x5c7391['isEmpty']?_0x5c7391:_0x352df7;_0x1a000e&&_0x1a000e['type']==_0x491270+'EmptyContainer'&&_0x1a000e['element']['name']==_0x4159ed['name']?_0x1a000e['quantity']++:_0x1c81bd['push']({'type':_0x491270+'EmptyContainer','element':_0x4159ed,'quantity':0x1});}else _0x1c81bd['push']({'type':_0x491270+'Container','element':_0x352df7});}}}}}['_resolveDescriptionItems'](_0x374e46){const _0x12ad94=this['_locale'],_0x3014f9=[],_0x2e93c5=[],_0xbfa04d=[];for(const _0x116e3b of _0x374e46)switch(_0x116e3b['type']){case'text':if(_0x116e3b['add']=_0x116e3b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x116e3b['remove']=_0x116e3b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x116e3b['add']&&''!=_0x116e3b['remove']){_0x3014f9['push']({'type':'replace','content':o(_0x12ad94,'REPLACE_TEXT',['\x22'+_0x116e3b['remove']+'\x22','\x22'+_0x116e3b['add']+'\x22'])});continue;}if(null!=_0x116e3b['add']['match'](/^ +$/)){_0x3014f9['push']({'type':'insertion','content':o(_0x12ad94,'*Insert:*\x20%0',o(_0x12ad94,'ELEMENT_SPACE',_0x116e3b['add']['length']))});continue;}if(null!=_0x116e3b['remove']['match'](/^ +$/)){_0x3014f9['push']({'type':'deletion','content':o(_0x12ad94,'*Remove:*\x20%0',o(_0x12ad94,'ELEMENT_SPACE',_0x116e3b['remove']['length']))});continue;}if(''!=_0x116e3b['add']){_0x3014f9['push']({'type':'insertion','content':o(_0x12ad94,'*Insert:*\x20%0','\x22'+_0x116e3b['add']+'\x22')});continue;}_0x3014f9['push']({'type':'deletion','content':o(_0x12ad94,'*Remove:*\x20%0','\x22'+_0x116e3b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3014f9['push']({'type':'insertion','content':o(_0x12ad94,'*Insert:*\x20%0',this['getItemLabel'](_0x116e3b['element'],_0x116e3b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3014f9['push']({'type':'deletion','content':o(_0x12ad94,'*Remove:*\x20%0',this['getItemLabel'](_0x116e3b['element'],_0x116e3b['quantity']))});continue;case'addContainer':_0x3014f9['push']({'type':'insertion','content':o(_0x12ad94,'*Split:*\x20%0',this['getItemLabel'](_0x116e3b['element'],_0x116e3b['quantity']))});continue;case'removeContainer':_0x3014f9['push']({'type':'deletion','content':o(_0x12ad94,'*Merge:*\x20%0',this['getItemLabel'](_0x116e3b['element'],_0x116e3b['quantity']))});continue;case'addFormat':_0x2e93c5['push'](_0x116e3b['key']);continue;case'removeFormat':_0xbfa04d['push'](_0x116e3b['key']);continue;default:_0x3014f9['push'](_0x116e3b);}if(_0x2e93c5['length']){const _0x5319ba=_0x2e93c5['map'](_0x303c90=>this['_attributeLabels']['has'](_0x303c90)?this['_attributeLabels']['get'](_0x303c90):_0x303c90)['join'](',\x20');_0x3014f9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5319ba)});}if(_0xbfa04d['length']){const _0x166a0e=_0xbfa04d['map'](_0x3cad65=>this['_attributeLabels']['has'](_0x3cad65)?this['_attributeLabels']['get'](_0x3cad65):_0x3cad65)['join'](',\x20');_0x3014f9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x166a0e)});}return _0x3014f9;}['_handleCustomCallbackDescription'](_0x2e8c5c){for(const _0x4ecc23 of this['_customCallbacks']){const _0x1552d6=_0x4ecc23(_0x2e8c5c);if(_0x1552d6&&'type'in _0x1552d6)return _0x1552d6;}}['_handleAttributeSuggestionDescription'](_0x1ba3f2,_0x37d538){const _0x515d87=_0x37d538['data'],_0x11cc13=void 0x0===_0x515d87['newValue']?'removeFormat':'addFormat';_0x1ba3f2['push']({'type':_0x11cc13,'key':_0x515d87['key']});}['_handleRenameSuggestionDescription'](_0x519d9d,_0x3f76d4){_0x519d9d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3f76d4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2982f5,_0x3483be,_0x5592a6){if(this['_addDescriptionItems'](_0x2982f5,_0x3483be),_0x5592a6&&_0x5592a6['getFirstRange']()&&!_0x3483be['getFirstRange']()['end']['isEqual'](_0x5592a6['getFirstRange']()['start'])){const _0x17738b=_0x2982f5[_0x2982f5['length']-0x1],_0x1639cd='insertion'==_0x3483be['type']?'add':'remove';_0x17738b&&'text'==_0x17738b['type']&&(_0x17738b[_0x1639cd]+='\x0a');}}}class U extends _0x1480f8{['afterInit'](){const _0x34bebc=this['editor'],_0x3bb8f5=_0x34bebc['plugins']['get']('TrackChangesEditing');_0x34bebc['commands']['get']('showAIAssistant')&&_0x3bb8f5['enableCommand']('showAIAssistant');}}class V extends _0x1480f8{['afterInit'](){const _0x4d503d=this['editor'],_0x293cfa=_0x4d503d['plugins']['get']('TrackChangesEditing');_0x4d503d['commands']['get']('toggleAi')&&_0x293cfa['enableCommand']('toggleAi');}}class F extends _0x1480f8{['afterInit'](){const _0x5f2ab8=this['editor'],_0x44f770=_0x5f2ab8['plugins']['get']('TrackChangesEditing');_0x5f2ab8['commands']['get']('aiQuickAction')&&_0x44f770['enableCommand']('aiQuickAction');}}class G extends _0x1480f8{['afterInit'](){const _0x380239=this['editor'],_0xce1148=_0x380239['locale'];if(!_0x380239['plugins']['has']('AlignmentEditing'))return;const _0x28931f=_0x380239['plugins']['get']('TrackChangesEditing');_0x28931f['enableDefaultAttributesIntegration']('alignment'),_0x28931f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xce1148,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x524f57=this['editor'],_0xdefcae=_0x524f57['locale'];_0x524f57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21de88=>{if('formatBlock'!=_0x21de88['type'])return;const {data:_0x5dada2}=_0x21de88;if(_0x5dada2&&'alignment'==_0x5dada2['commandName']){const _0x505512=_0x5dada2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xdefcae,'*Format:*\x20%0',function(_0x5661ae){switch(_0x5661ae){case'left':return o(_0xdefcae,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xdefcae,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xdefcae,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xdefcae,'FORMAT_JUSTIFY_TEXT');}}(_0x505512))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x1480f8{['afterInit'](){const _0x1db29e=this['editor'],_0x3dfe01=_0x1db29e['plugins']['get']('TrackChangesEditing'),_0x494931=_0x1db29e['locale'];for(const _0x41aace of ti){if(!_0x1db29e['plugins']['has'](_0x41aace))continue;const _0x4e51ed=_0x41aace['slice'](0x0,-0x7)['toLowerCase'](),_0x336ef3='FORMAT_'+_0x4e51ed['toUpperCase']();_0x3dfe01['enableDefaultAttributesIntegration'](_0x4e51ed),_0x3dfe01['descriptionFactory']['registerAttributeLabel'](_0x4e51ed,o(_0x494931,_0x336ef3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2552e0=this['editor'],_0x2f47d2=_0x2552e0['locale'],_0x51a02d=_0x2552e0['plugins']['get']('TrackChangesEditing');function _0x50492e(_0x6abc53,_0x450d1f){_0x51a02d['descriptionFactory']['registerDescriptionCallback'](_0x205146=>{if('formatInline'!=_0x205146['type'])return;const {data:_0xa482b6}=_0x205146;return _0xa482b6&&_0xa482b6['commandName']===_0x6abc53?_0xa482b6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f47d2,'*Format:*\x20%0',_0x450d1f)}:{'type':'format','content':o(_0x2f47d2,'*Remove\x20format:*\x20%0',_0x450d1f)}:void 0x0;});}_0x50492e('bold',o(_0x2f47d2,'FORMAT_BOLD')),_0x50492e('italic',o(_0x2f47d2,'FORMAT_ITALIC')),_0x50492e('underline',o(_0x2f47d2,'FORMAT_UNDERLINE')),_0x50492e('code',o(_0x2f47d2,'FORMAT_CODE')),_0x50492e('strikethrough',o(_0x2f47d2,'FORMAT_STRIKETHROUGH')),_0x50492e('subscript',o(_0x2f47d2,'FORMAT_SUBSCRIPT')),_0x50492e('superscript',o(_0x2f47d2,'FORMAT_SUPERSCRIPT'));}}class J extends _0x1480f8{['afterInit'](){const _0x31a7ae=this['editor'],_0x446033=_0x31a7ae['locale'];if(!_0x31a7ae['plugins']['has']('BlockQuoteEditing'))return;const _0x4a8369=_0x31a7ae['plugins']['get']('TrackChangesEditing'),_0x3ce5f6=this['editor']['commands']['get']('blockQuote');_0x4a8369['enableCommand']('blockQuote',(_0x2b980c,_0x466d6e={})=>{const _0x4c6800=this['editor']['model']['document']['selection'],_0x48d2df=_0x466d6e&&void 0x0!==_0x466d6e['forceValue']?_0x466d6e['forceValue']:!_0x3ce5f6['value'];let _0x316ea0=[];if(_0x48d2df){const _0x28d0c3=Array['from'](_0x4c6800['getSelectedBlocks']())['filter'](_0x2214d2=>oo(_0x2214d2)||function(_0x57485,_0x29325e){const _0x336d84=_0x29325e['checkChild'](_0x57485['parent'],'blockQuote'),_0x5ed7e4=_0x29325e['checkChild'](['$root','blockQuote'],_0x57485);return _0x336d84&&_0x5ed7e4;}(_0x2214d2,this['editor']['model']['schema']));_0x316ea0=to(_0x28d0c3,_0x31a7ae['model']);}else{const _0x347f39=Array['from'](_0x4c6800['getSelectedBlocks']())['filter'](_0x47d7b6=>oo(_0x47d7b6));_0x316ea0=to(_0x347f39,_0x31a7ae['model']);}_0x31a7ae['model']['change'](()=>{for(const _0x9450f1 of _0x316ea0)_0x4a8369['markBlockFormat'](_0x9450f1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x48d2df}]});});}),_0x4a8369['descriptionFactory']['registerDescriptionCallback'](_0x40eae=>{const {data:_0xed804}=_0x40eae;if(_0xed804&&'blockQuote'==_0xed804['commandName']){const _0x3677bc=o(_0x446033,'ELEMENT_BLOCK_QUOTE');return _0xed804['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x446033,'*Set\x20format:*\x20%0',_0x3677bc)}:{'type':'format','content':o(_0x446033,'*Remove\x20format:*\x20%0',_0x3677bc)};}});}}function oo(_0x3a149b){return'blockQuote'==_0x3a149b['parent']['name'];}class q extends _0x1480f8{['afterInit'](){const _0x5ca494=this['editor'],_0x5cd647=_0x5ca494['locale'],_0x4e6268=_0x5ca494['plugins']['get']('TrackChangesEditing');_0x5ca494['plugins']['has']('BookmarkEditing')&&(_0x4e6268['enableCommand']('insertBookmark'),_0x4e6268['enableDefaultAttributesIntegration']('updateBookmark'),_0x4e6268['descriptionFactory']['registerDescriptionCallback'](_0x17532f=>{if('insertion'!=_0x17532f['type']&&'deletion'!=_0x17532f['type']&&'attribute'!=_0x17532f['type'])return;const _0x27be1b=_0x17532f['getContainedElement']();if(null==_0x27be1b)return;if(!_0x27be1b['is']('element','bookmark'))return;const _0x3ae011=_0x27be1b['getAttribute']('bookmarkId');if('insertion'==_0x17532f['type'])return{'type':'insertion','content':o(_0x5cd647,'*Insert:*\x20%0','\x22'+_0x3ae011+'\x22\x20'+o(_0x5cd647,'ELEMENT_BOOKMARK'))};if('deletion'==_0x17532f['type'])return{'type':'deletion','content':o(_0x5cd647,'*Remove:*\x20%0','\x22'+_0x3ae011+'\x22\x20'+o(_0x5cd647,'ELEMENT_BOOKMARK'))};const {data:_0x335bd7}=_0x17532f;if(!_0x335bd7||'bookmarkId'!=_0x335bd7['key'])return;return{'type':'format','content':o(_0x5cd647,'*Set\x20bookmark:*\x20%0','\x22'+_0x335bd7['newValue']+'\x22')};}));}}class z extends _0x1480f8{['afterInit'](){const _0x15adbc=this['editor'];_0x15adbc['plugins']['has']('CaseChange')&&(_0x15adbc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x15adbc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x15adbc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x1480f8{['afterInit'](){const _0x5a637c=this['editor'];_0x5a637c['commands']['get']('ckbox')&&_0x5a637c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x1480f8{['afterInit'](){const _0x546bc4=this['editor'];if(!_0x546bc4['plugins']['has']('CodeBlock'))return;const _0xc272ed=_0x546bc4['plugins']['get']('TrackChangesEditing'),_0x23c35b=_0x546bc4['locale'],_0x3fa681=_0x546bc4['config']['get']('codeBlock')['languages'],_0x45871c=_0x546bc4['commands']['get']('codeBlock');_0xc272ed['enableCommand']('indentCodeBlock'),_0xc272ed['enableCommand']('outdentCodeBlock'),_0xc272ed['enableCommand']('codeBlock',(_0x51f017,_0x369161={})=>{const _0x23aed8=_0x546bc4['model'],_0x1c5ec1=_0x546bc4['model']['document']['selection'],_0xe4d963=_0x369161&&void 0x0!==_0x369161['forceValue']?_0x369161['forceValue']:!_0x45871c['value'];let _0x216f34;_0x369161['language']||(_0x369161['language']=_0x3fa681[0x0]['language']),_0x216f34=_0xe4d963?Array['from'](_0x1c5ec1['getSelectedBlocks']())['filter'](_0x2cc76e=>co(_0x2cc76e)||function(_0x28dca3,_0x377760){if(_0x28dca3['is']('rootElement')||_0x377760['isLimit'](_0x28dca3))return!0x1;return _0x377760['checkChild'](_0x28dca3['parent'],'codeBlock');}(_0x2cc76e,_0x23aed8['schema'])):Array['from'](_0x1c5ec1['getSelectedBlocks']())['filter'](_0x29b617=>co(_0x29b617));const _0x20e087=to(_0x216f34,_0x23aed8);_0x23aed8['change'](()=>{for(const _0x4ab16f of _0x20e087)_0xc272ed['markBlockFormat'](_0x4ab16f,{'commandName':'codeBlock','commandParams':[{..._0x369161,'forceValue':_0xe4d963}],'formatGroupId':'blockName'});});}),(_0xc272ed['descriptionFactory']['registerElementLabel']('codeBlock',_0x54a76a=>o(_0x23c35b,'ELEMENT_CODE_BLOCK',_0x54a76a)),_0xc272ed['descriptionFactory']['registerDescriptionCallback'](_0x522a1e=>{if('formatBlock'!=_0x522a1e['type'])return;const _0x4de80d=_0x23c35b['t'],{data:_0x2dc7d1}=_0x522a1e;if(!_0x2dc7d1||'codeBlock'!=_0x2dc7d1['commandName'])return;const _0x16b30a=_0x2dc7d1['commandParams'][0x0]['language'],_0x24cb87=_0x4de80d(_0x3fa681['find'](_0x4301a9=>_0x4301a9['language']===_0x16b30a)['label'])['toLowerCase']();return _0x2dc7d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23c35b,'*Set\x20format:*\x20%0',o(_0x23c35b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x24cb87+')')}:{'type':'format','content':o(_0x23c35b,'*Remove\x20format:*\x20%0',o(_0x23c35b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x402c0c){return'codeBlock'==_0x402c0c['name'];}class H extends _0x1480f8{['afterInit'](){const _0xe54c22=this['editor'];if(!_0xe54c22['plugins']['has']('CommentsEditing'))return;_0xe54c22['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x1480f8{static get['requires'](){return[_0x5bb5fd];}['init'](){const _0x39654c=this['editor'],_0x478b49=_0x39654c['plugins']['get']('TrackChangesEditing');_0x478b49['enableCommand']('delete');const _0x2e1328=_0x39654c['commands']['get']('deleteForward');_0x478b49['enableCommand']('deleteForward',(_0x156b97,_0x5d34ff={})=>{const _0x1e4316=_0x39654c['model']['createSelection'](_0x39654c['model']['document']['selection']);_0x1e4316['isCollapsed']&&_0x39654c['model']['modifySelection'](_0x1e4316,{'direction':'forward','unit':_0x5d34ff['unit']});const _0x15e20f=_0x1e4316['getFirstRange'](),_0x155d31=_0x43f9b1['fromRange'](_0x15e20f);let _0x48cff2;_0x156b97(_0x5d34ff),_0x48cff2='$graveyard'==_0x155d31['root']['rootName']?_0x39654c['model']['createRange'](_0x15e20f['start']):_0x39654c['model']['createRange'](_0x155d31['start'],_0x155d31['end']),_0x155d31['detach'](),_0x39654c['model']['enqueueChange'](_0x2e1328['buffer']['batch'],_0x580c67=>{_0x2e1328['buffer']['lock'](),_0x580c67['setSelection'](_0x580c67['createRange'](_0x48cff2['end'])),_0x2e1328['buffer']['unlock']();});});}}class X extends _0x1480f8{['afterInit'](){const _0x2d4166=this['editor'];if(!_0x2d4166['plugins']['has']('ListEditing'))return;const _0x143b03=_0x2d4166['locale'],_0x470057=_0x2d4166['plugins']['get']('TrackChangesEditing'),_0x817a6c=_0x2d4166['plugins']['has']('TodoListEditing'),_0x27e27e=!!_0x2d4166['config']['get']('list.multiBlock');function _0x48d14e(_0x16381a){return{'type':'format','content':''+o(_0x143b03,'*Set\x20format:*\x20%0',_0x16381a)};}function _0x12349a(_0x59c105){return{'type':'format','content':''+o(_0x143b03,'*Remove\x20format:*\x20%0',_0x59c105)};}_0x470057['enableDefaultAttributesIntegration']('numberedList'),_0x470057['enableDefaultAttributesIntegration']('bulletedList'),_0x470057['enableDefaultAttributesIntegration']('customNumberedList'),_0x470057['enableDefaultAttributesIntegration']('customBulletedList'),_0x470057['enableDefaultAttributesIntegration']('indentList'),_0x470057['enableDefaultAttributesIntegration']('outdentList'),_0x470057['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x470057['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x27e27e&&(_0x470057['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x470057['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x817a6c&&(_0x470057['enableDefaultAttributesIntegration']('todoList'),_0x470057['enableDefaultAttributesIntegration']('checkTodoList'),_0x470057['descriptionFactory']['registerDescriptionCallback'](_0xeaf23a=>{const {data:_0x35301d}=_0xeaf23a;if(_0x35301d&&'todoListChecked'==_0x35301d['key'])return{'type':'format','content':_0x35301d['newValue']?o(_0x143b03,'*Check\x20item*'):o(_0x143b03,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x583cb4=>{if(_0x583cb4['batch']['isUndo'])return!0x1;let _0x4f1422=!0x1;const _0x32fb83=_0x470057['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xef1f7e=>'todoListChecked'===_0x470057['_getAttributeKey'](_0xef1f7e));for(const _0x16be4c of _0x32fb83){'todo'!=_0x16be4c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x470057['_findSuggestions'](_0x16be4c['getFirstRange'](),'attribute')['find'](_0x37d936=>'listType'===_0x470057['_getAttributeKey'](_0x37d936['suggestion']))||(_0x583cb4['removeMarker'](_0x16be4c['getFirstMarker']()),_0x4f1422=!0x0));}return _0x4f1422;})),_0x470057['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x143b03,'FORMAT_INDENT'));const _0x11fd6d={'type':'format','content':''};_0x470057['descriptionFactory']['registerDescriptionCallback'](_0x2c039c=>{const {data:_0x31fa7a}=_0x2c039c;if(!_0x31fa7a||'listType'!=_0x31fa7a['key'])return;let _0x2e7e84=_0x2c039c['head'];for(;_0x2e7e84;){if(_0x2e7e84['data']&&(('listStyle'==_0x2e7e84['data']['key']||'listMarkerStyle'==_0x2e7e84['data']['key'])&&(_0x2e7e84['data']['newValue']&&'default'!=_0x2e7e84['data']['newValue']||'default'!=_0x2e7e84['data']['oldValue']&&!_0x31fa7a['newValue'])||!_0x27e27e&&_0x2e7e84['data']['key']==m))return _0x11fd6d;_0x2e7e84=_0x2e7e84['next'];}if(null==_0x31fa7a['newValue'])switch(_0x31fa7a['oldValue']){case'bulleted':return _0x12349a(o(_0x143b03,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12349a(o(_0x143b03,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12349a(o(_0x143b03,'ELEMENT_TODO_LIST'));}switch(_0x31fa7a['newValue']){case'bulleted':return _0x48d14e(o(_0x143b03,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48d14e(o(_0x143b03,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48d14e(o(_0x143b03,'ELEMENT_TODO_LIST'));}}),_0x470057['descriptionFactory']['registerDescriptionCallback'](_0x23c628=>{const {data:_0x313819}=_0x23c628;if(_0x313819&&'listIndent'==_0x313819['key'])return null==_0x313819['newValue']||null==_0x313819['oldValue']&&0x0==_0x313819['newValue']?_0x11fd6d:void 0x0;}),_0x470057['descriptionFactory']['registerDescriptionCallback'](_0x12554d=>{if('attribute'!=_0x12554d['type'])return;const {data:_0x631b90}=_0x12554d;if(!_0x631b90||'listItemId'!=_0x631b90['key'])return;const _0x29fa1a=Te(_0x12554d);return'newValue'==_0x29fa1a?{'type':'format','content':o(_0x143b03,'*Merge:*\x20list\x20item')}:'oldValue'==_0x29fa1a?{'type':'format','content':o(_0x143b03,'*Split:*\x20list\x20item')}:_0x11fd6d;}),_0x2d4166['model']['document']['registerPostFixer'](_0x11a9b7=>this['listItemIdFixer'](_0x11a9b7)),_0x2d4166['model']['document']['registerPostFixer'](_0x37fd16=>this['noTrackChangesFixer'](_0x37fd16)),_0x2d4166['model']['document']['on']('change:data',(_0x4b59f2,_0x1dc7fa)=>{if(_0x1dc7fa['isUndo']||!_0x1dc7fa['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x111d4f){if(_0x111d4f['batch']['isUndo']||!_0x111d4f['batch']['isLocal'])return!0x1;let _0x38b4ba=!0x1;const _0xda8327=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x561209=>_0x561209['data']&&'listItemId'==_0x561209['data']['key'])['filter'](_0x545b8c=>_0x545b8c['data']['newValue']&&_0x545b8c['data']['oldValue']);for(const _0xc23934 of _0xda8327)Te(_0xc23934)||(_0x111d4f['removeMarker'](_0xc23934['getFirstMarker']()),_0x38b4ba=!0x0);return _0x38b4ba;}['noTrackChangesFixer'](_0x51e8e5){if(_0x51e8e5['batch']['isUndo']||!_0x51e8e5['batch']['isLocal'])return!0x1;const _0x27d776=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x27d776['trackChangesCommand']['value'])return!0x1;let _0x39a892=!0x1;const _0x23a39b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2da573=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x51d09f=>'attribute'==_0x51d09f['type'])['filter'](_0x413d13=>_0x23a39b['includes'](_0x413d13['attributeKey']));if(0x0==_0x2da573['length'])return _0x39a892;for(const _0x247f24 of _0x2da573){const _0x137998=_0x27d776['_findSuggestions'](_0x247f24['range'],'attribute')['filter'](_0x4b8eea=>!_0x4b8eea['meta']['isNextTo'])['map'](_0x2cffa0=>_0x2cffa0['suggestion'])['filter'](_0x2da490=>{const _0x5c67b7=_0x27d776['_getAttributeKey'](_0x2da490);return _0x23a39b['includes'](_0x5c67b7);});if(_0x137998['length']){for(const _0x351602 of _0x137998)_0x51e8e5['removeMarker'](_0x351602['getFirstMarker']());_0x39a892=!0x0;}}return _0x39a892;}['assureChains'](){const _0x196be1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51db5c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5de3cc;const _0x469857=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x46bbd0=>{if(_0x46bbd0['data']['oldRange']||!_0x46bbd0['data']['newRange'])return null;if(!_0x46bbd0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x151b3e}=_0x196be1['_splitMarkerName'](_0x46bbd0['name']);if(!_0x196be1['hasSuggestion'](_0x151b3e))return null;const _0x5b3f4f=_0x196be1['getSuggestion'](_0x151b3e);return _0x51db5c['includes'](_0x5b3f4f['data']['key']);})['map'](_0x49cdfc=>{const {id:_0xb2c611}=_0x196be1['_splitMarkerName'](_0x49cdfc['name']),_0x180e9e=_0x196be1['getSuggestion'](_0xb2c611);return _0x5de3cc=_0x180e9e['attributes']['groupId'],_0x180e9e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x469857['size'])return;const _0x11fcd2=_0x196be1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58a5ce=>'attribute'==_0x58a5ce['type']&&_0x58a5ce['data']&&_0x51db5c['includes'](_0x58a5ce['data']['key'])&&_0x58a5ce['attributes']['groupId']!=_0x5de3cc)['map'](_0xfab133=>({'listItem':_0xfab133['getFirstRange']()['start']['nodeAfter'],'groupId':_0xfab133['attributes']['groupId']})),_0xe3330d=new Set();for(const {groupId:_0x50d87e,listItem:_0x116126}of _0x11fcd2)_0x469857['has'](_0x116126)&&_0xe3330d['add'](_0x50d87e);for(const _0x4252bb of _0x196be1['getSuggestions']())_0xe3330d['has'](_0x4252bb['attributes']['groupId'])&&_0x4252bb['setAttribute']('groupId',_0x5de3cc);}['_supportLegacySuggestions'](){const _0x4b7c90=this['editor'],_0x6d9579=_0x4b7c90['locale'],_0x38ac98=_0x4b7c90['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x38ac98['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5dd4fd,_0x3c7187){const _0x4dd57e=[];for(let _0x19eddd of _0x5dd4fd)_0x19eddd['start']['nodeAfter']===_0x19eddd['end']['parent']&&(_0x19eddd=_0x4b7c90['model']['createRange'](_0x4b7c90['model']['createPositionAt'](_0x19eddd['start']['nodeAfter'],0x0))),_0x4dd57e['push'](_0x19eddd);_0x4b7c90['model']['change'](_0x42ffa3=>{const _0x13798f=_0x4b7c90['model']['document']['selection'],_0x102236=Array['from'](_0x13798f['getRanges']())['map'](_0x5d0fa9=>_0x43f9b1['fromRange'](_0x5d0fa9));_0x42ffa3['setSelection'](_0x4dd57e),_0x4b7c90['commands']['get'](_0x3c7187['commandName'])['refresh'](),_0x3c7187['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4b7c90['execute'](_0x3c7187['commandName'],..._0x3c7187['commandParams']),_0x42ffa3['setSelection'](_0x102236);for(const _0x3067a6 of _0x102236)_0x3067a6['detach']();});}),_0x38ac98['descriptionFactory']['registerElementLabel'](function(_0x322500){const _0x3f4be8=!_0x4b7c90['model']['schema']['isObject'](_0x322500),_0x2feaf5=_0x322500['previousSibling'],_0x1cf528=_0x322500['nextSibling'],_0x207094=_0x322500['getAttribute']('listItemId'),_0x2c62a1=!_0x2feaf5||_0x2feaf5['getAttribute']('listItemId')!==_0x207094,_0x447b88=!_0x1cf528||_0x1cf528['getAttribute']('listItemId')!==_0x207094;return _0x3f4be8&&Boolean(_0x207094)&&_0x2c62a1&&_0x447b88;},_0x50909b=>o(_0x6d9579,'ELEMENT_LIST_ITEM',_0x50909b));}['_registerLegacyDescription'](){const _0x56a460=this['editor'],_0x4fba2f=_0x56a460['locale'];function _0x109ecd(_0x236db2){const _0x550d64=_0x56a460['commands']['get']('bulletedList')['value'],_0x452403=_0x56a460['commands']['get']('numberedList')['value'];return'numberedList'===_0x236db2?_0x550d64:_0x452403;}_0x56a460['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5ebbb1){if('formatBlock'!=_0x5ebbb1['type'])return;const {data:_0x4d2849}=_0x5ebbb1;if(!_0x4d2849)return;let _0x92b731,_0x584f9b,_0x2be0b2,_0x1af138;switch(_0x4d2849['commandName']){case'bulletedList':_0x2be0b2=_0x4d2849['commandParams'][0x0]['forceValue'],_0x1af138=_0x109ecd(_0x4d2849['commandName']),_0x92b731=_0x2be0b2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1af138&&_0x56a460['config']['get']('list.multiBlock')||(_0x92b731='*Change\x20to:*\x20%0'),_0x584f9b={'type':'format','content':o(_0x4fba2f,_0x92b731,o(_0x4fba2f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2be0b2=_0x4d2849['commandParams'][0x0]['forceValue'],_0x1af138=_0x109ecd(_0x4d2849['commandName']),_0x92b731=_0x2be0b2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1af138&&_0x56a460['config']['get']('list.multiBlock')||(_0x92b731='*Change\x20to:*\x20%0'),_0x584f9b={'type':'format','content':o(_0x4fba2f,_0x92b731,o(_0x4fba2f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x92b731='*Indent:*\x20%0',_0x584f9b={'type':'format','content':o(_0x4fba2f,_0x92b731,o(_0x4fba2f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x92b731=function(_0x4063f7){const _0x300502=_0x4063f7['getFirstRange']();let _0x250330=_0x300502['start']['nodeAfter'];for(;_0x250330&&_0x300502['containsItem'](_0x250330);){if(_0x250330['getAttribute']('listIndent')>0x0)return!0x1;_0x250330=_0x250330['nextSibling'];}return!0x0;}(_0x5ebbb1)?o(_0x4fba2f,'*Format:*\x20remove\x20from\x20%0',o(_0x4fba2f,function(_0x545398){return'ELEMENT_'+_0x545398['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5ebbb1))):o(_0x4fba2f,'*Outdent:*\x20%0',o(_0x4fba2f,'ELEMENT_LIST_ITEM')),_0x584f9b={'type':'format','content':_0x92b731};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4d2849['multipleBlocks']&&(_0x92b731='*Merge:*\x20%0',_0x584f9b={'type':'deletion','content':o(_0x4fba2f,_0x92b731,o(_0x4fba2f,'ELEMENT_LIST_ITEM'))});}return _0x584f9b;});}}function Te(_0x812d25){let _0x5d2c62=_0x812d25['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5d2c62;){const _0x4ad50b=_0x5d2c62['getAttribute']('listItemId');if(!_0x4ad50b)return!0x1;if(_0x4ad50b==_0x812d25['data']['newValue'])return'newValue';if(_0x4ad50b==_0x812d25['data']['oldValue'])return'oldValue';_0x5d2c62=_0x5d2c62['previousSibling'];}return!0x1;}class Y extends _0x1480f8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4ce5b5=this['editor']['config']['get']('list.properties'),_0x434917=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ce5b5['styles']&&_0x434917['enableDefaultAttributesIntegration']('listStyle'),_0x4ce5b5['reversed']&&_0x434917['enableDefaultAttributesIntegration']('listReversed'),_0x4ce5b5['startIndex']&&_0x434917['enableDefaultAttributesIntegration']('listStart');const _0x1fd51f={'type':'format','content':''};_0x434917['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2bfeef=this['editor']['locale'];_0x434917['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2bfeef,'FORMAT_LIST_REVERSED')),_0x434917['descriptionFactory']['registerDescriptionCallback'](_0x14fc43=>{const {data:_0x520411}=_0x14fc43;if(_0x520411&&'listReversed'==_0x520411['key'])return null==_0x520411['newValue']||0x0==_0x520411['newValue']&&null==_0x520411['oldValue']?_0x1fd51f:void 0x0;}),_0x434917['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2bfeef,'FORMAT_LIST_START')),_0x434917['descriptionFactory']['registerDescriptionCallback'](_0x347b21=>{const {data:_0x1e07a4}=_0x347b21;if(_0x1e07a4&&'listStart'==_0x1e07a4['key'])return null==_0x1e07a4['newValue']||0x1==_0x1e07a4['newValue']&&null==_0x1e07a4['oldValue']?_0x1fd51f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3f89d1=>{if(_0x3f89d1['batch']['isUndo'])return!0x1;let _0x4213c0=!0x1;const _0x33fd36=_0x434917['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x141a50=>{const _0x250e28=_0x434917['_getAttributeKey'](_0x141a50);return'listStart'==_0x250e28||'listReversed'==_0x250e28;});for(const _0x403449 of _0x33fd36){const _0x4f6153=_0x403449['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f6153||'customNumbered'==_0x4f6153)continue;_0x434917['_findSuggestions'](_0x403449['getFirstRange'](),'attribute')['find'](_0x1e35c3=>'listType'==_0x434917['_getAttributeKey'](_0x1e35c3['suggestion']))||(_0x3f89d1['removeMarker'](_0x403449['getFirstMarker']()),_0x4213c0=!0x0);}return _0x4213c0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2d10e){const _0x1a7506=this['editor']['locale'],{data:_0x41e5dd}=_0x2d10e,_0x445c6b={'type':'format','content':''};if(!_0x41e5dd||'listStyle'!=_0x41e5dd['key'])return;if(!_0x41e5dd['oldValue'])return'default'==_0x41e5dd['newValue']?_0x445c6b:{'type':'format','content':''+o(_0x1a7506,'*Set\x20format:*\x20%0',o(_0x1a7506,this['_getTranslationKeyForListStyle'](_0x41e5dd['newValue'])))};if(!_0x41e5dd['newValue']){if('default'==_0x41e5dd['oldValue'])return _0x445c6b;let _0x10522b=_0x2d10e['head'];for(;_0x10522b;){if(_0x10522b['data']&&'listType'==_0x10522b['data']['key']&&_0x10522b['data']['newValue'])return _0x445c6b;_0x10522b=_0x10522b['next'];}return{'type':'format','content':''+o(_0x1a7506,'*Remove\x20format:*\x20%0',o(_0x1a7506,this['_getTranslationKeyForListStyle'](_0x41e5dd['oldValue'])))};}if('default'!=_0x41e5dd['newValue'])return{'type':'format','content':''+o(_0x1a7506,'*Set\x20format:*\x20%0',o(_0x1a7506,this['_getTranslationKeyForListStyle'](_0x41e5dd['newValue'])))};let _0x2e5b2d=_0x2d10e['head'];for(;_0x2e5b2d;){if(_0x2e5b2d['data']&&'listType'==_0x2e5b2d['data']['key']&&_0x2e5b2d['data']['newValue']&&_0x2e5b2d['data']['oldValue'])return _0x445c6b;_0x2e5b2d=_0x2e5b2d['next'];}return{'type':'format','content':o(_0x1a7506,'*Set\x20format:*\x20%0',o(_0x1a7506,'ELEMENT_'+_0x2d10e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x50aded=this['editor'],_0x1b4709=_0x50aded['locale'];_0x50aded['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32935f=>{if('formatBlock'!=_0x32935f['type'])return;const {data:_0xa3e4b3}=_0x32935f;if(!_0xa3e4b3)return;let _0x10a31f,_0x174ffd;switch(_0xa3e4b3['commandName']){case'listStyle':_0x10a31f='*Change\x20to:*\x20%0',_0x174ffd={'type':'format','content':o(_0x1b4709,_0x10a31f,o(_0x1b4709,this['_getTranslationKeyForListStyle'](_0xa3e4b3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10a31f=_0xa3e4b3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x174ffd={'type':'format','content':o(_0x1b4709,_0x10a31f)};break;case'listStart':_0x10a31f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x174ffd={'type':'format','content':o(_0x1b4709,_0x10a31f,_0xa3e4b3['commandParams'][0x0]['startIndex'])};}return _0x174ffd;});}['_getTranslationKeyForListStyle'](_0x1c6427){return'ELEMENT_'+function(_0x4f95a9){if(ye['includes'](_0x4f95a9))return'bulleted';if(Se['includes'](_0x4f95a9))return'numbered';return null;}(_0x1c6427)['toUpperCase']()+'_LIST_'+_0x1c6427['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x1480f8{['afterInit'](){const _0x124000=this['editor'];_0x124000['commands']['get']('emoji')&&_0x124000['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x1480f8{static get['requires'](){return[_0x3a1090];}['init'](){const _0x46c254=this['editor'],_0x5cb974=_0x46c254['plugins']['get']('TrackChangesEditing'),_0x4b1310=_0x46c254['commands']['get']('enter');_0x5cb974['enableCommand']('enter',()=>{_0x46c254['model']['change'](_0x159298=>{const _0x52e3ed=_0x46c254['model']['document']['selection'],_0x54a2c4=_0x52e3ed['getFirstPosition'](),_0x26b4eb=_0x43f9b1['fromRange'](_0x52e3ed['getFirstRange']());if(_0x4b1310['enterBlock'](_0x159298)){const _0x1f930c=_0x46c254['model']['createPositionAt'](_0x54a2c4['parent']['nextSibling'],0x0),_0x1643d5=_0x159298['createRange'](_0x54a2c4,_0x1f930c);_0x5cb974['markInsertion'](_0x1643d5);}else _0x159298['setSelection'](_0x159298['createRange'](_0x26b4eb['end']));_0x26b4eb['detach'](),_0x4b1310['fire']('afterExecute',{'writer':_0x159298});});});}}class nt extends _0x1480f8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x129138=this['editor']['plugins']['get']('TrackChangesEditing');_0x129138['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x129138['enableCommand']('findNext'),_0x129138['enableCommand']('findPrevious'),_0x129138['enableCommand']('replace'),_0x129138['enableCommand']('replaceAll');}['handleFindCommand'](_0x6fa8ba,_0x495c97,_0x8300f2={}){const _0x5d8603=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x6fa8ba(_0x2b9ddb=>{let _0x2f2f59=('string'==typeof _0x495c97?_0x5d8603['findByTextCallback'](_0x495c97,_0x8300f2):_0x495c97)(_0x2b9ddb);Array['isArray'](_0x2f2f59)&&(_0x2f2f59={'results':_0x2f2f59,'searchText':'string'==typeof _0x495c97?_0x495c97:''});const _0x5bdfd7=_0x2f2f59['results']['filter'](_0x3b6443=>!0x1===this['_isInDeletionRange'](_0x3b6443,_0x2b9ddb['item']));return{..._0x2f2f59,'results':_0x5bdfd7};},_0x8300f2);}['_isInDeletionRange'](_0x70a389,_0x436ba9){const _0xd8eea1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x436ba9,_0x70a389['start']),this['editor']['model']['createPositionAt'](_0x436ba9,_0x70a389['end']));for(const _0xe63e02 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd8eea1['getIntersection'](_0xe63e02['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x1480f8{['afterInit'](){const _0x39a6c1=this['editor']['locale'],_0xa2eca0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3d52c1,commandName:_0x22839e}of eo)this['editor']['plugins']['has'](_0x3d52c1)&&_0xa2eca0['enableDefaultAttributesIntegration'](_0x22839e);_0xa2eca0['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39a6c1,'FORMAT_FONT_SIZE')),_0xa2eca0['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39a6c1,'FORMAT_FONT_FAMILY')),_0xa2eca0['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39a6c1,'FORMAT_FONT_COLOR')),_0xa2eca0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39a6c1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x231237=this['editor'],_0xffe544=_0x231237['locale'];_0x231237['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22b2fe=>{const _0x20939a=_0xffe544['t'];if('formatInline'!=_0x22b2fe['type'])return;const {data:_0x342a0d}=_0x22b2fe;if(null!=_0x342a0d){if('fontSize'==_0x342a0d['commandName']){const _0x1b53e3=_0x342a0d['commandParams'][0x0]['value'];if(_0x1b53e3){const _0x859581=_0x20939a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x37b17c=>_0x37b17c['model']==_0x1b53e3)['title'])['toLowerCase']();return{'type':'format','content':o(_0xffe544,'*Set\x20font\x20size:*\x20%0',_0x859581)};}return{'type':'format','content':o(_0xffe544,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x342a0d['commandName']){const _0x5c176f=_0x342a0d['commandParams'][0x0]['value'];return _0x5c176f?{'type':'format','content':o(_0xffe544,'*Set\x20font\x20family:*\x20%0',_0x5c176f)}:{'type':'format','content':o(_0xffe544,'*Reset\x20font\x20family*')};}if('fontColor'==_0x342a0d['commandName']){const _0xc7295=_0x342a0d['commandParams'][0x0]['value'];if(_0xc7295){const _0x289ee3=_0x3a9b5a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x577179=>_0x577179['model']==_0xc7295);let _0x98d882=_0xc7295,_0x1ffb62='';return _0x289ee3&&(_0x98d882=_0x289ee3['label'],_0x1ffb62=_0x20939a(_0x98d882)['toLowerCase']()),{'type':'format','content':o(_0xffe544,'*Set\x20font\x20color:*\x20%0',_0x1ffb62)['trim'](),'color':{'value':_0xc7295,'title':_0x1ffb62||_0x98d882}};}return{'type':'format','content':o(_0xffe544,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x342a0d['commandName']){const _0x318b07=_0x342a0d['commandParams'][0x0]['value'];if(_0x318b07){const _0x4d86d1=_0x3a9b5a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5988af=>_0x5988af['model']==_0x318b07);let _0xd4fb9f=_0x318b07,_0x45970c='';return _0x4d86d1&&(_0xd4fb9f=_0x4d86d1['label'],_0x45970c=_0x20939a(_0xd4fb9f)['toLowerCase']()),{'type':'format','content':o(_0xffe544,'*Set\x20font\x20background\x20color:*\x20%0',_0x45970c)['trim'](),'color':{'value':_0x318b07,'title':_0x45970c||_0xd4fb9f}};}return{'type':'format','content':o(_0xffe544,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x1480f8{['afterInit'](){const {plugins:_0x1524cb}=this['editor'];_0x1524cb['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1524cb['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x56b639,plugins:_0x1f5081,commands:_0x37141f}=this['editor'],_0x4d337b=_0x1f5081['get']('TrackChangesEditing');_0x37141f['get']('footnotesStyle')&&_0x4d337b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x37141f['get']('footnotesStart')&&_0x4d337b['enableDefaultAttributesIntegration']('footnotesStart'),_0x4d337b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x56b639,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4d337b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x56b639,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x34805d=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x11ed5a,commands:_0x145697}=this['editor'];_0x145697['get']('insertFootnote')&&_0x34805d['enableCommand']('insertFootnote'),_0x34805d['descriptionFactory']['registerElementLabel']('footnoteRef',_0x266698=>o(_0x11ed5a,'ELEMENT_FOOTNOTE_REF',_0x266698)),_0x34805d['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3f01f3=>o(_0x11ed5a,'ELEMENT_FOOTNOTE_DEFINITION',_0x3f01f3)),_0x34805d['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xdb80df=>o(_0x11ed5a,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xdb80df));}}class st extends _0x1480f8{['afterInit'](){const _0x3ac5e7=this['editor'],_0x3536=_0x3ac5e7['plugins']['get']('TrackChangesEditing'),_0x564ed5=_0x3ac5e7['commands']['get']('copyFormat'),_0xf83e53=_0x3ac5e7['commands']['get']('pasteFormat');_0x564ed5&&_0xf83e53&&(_0x3536['enableDefaultAttributesIntegration']('pasteFormat'),_0x3536['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x44dd1c=this['editor'],_0x5f2b4d=_0x44dd1c['locale'];_0x44dd1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d3193=>{if('formatBlock'!=_0x5d3193['type']&&'formatInline'!=_0x5d3193['type'])return;const {data:_0x59410c}=_0x5d3193;if(_0x59410c&&'pasteFormat'===_0x59410c['commandName']){const _0x5bb507=[],_0x27f9eb=_0x59410c['commandParams'][0x0];for(const [_0x814196,_0x4dc4ad]of Object['entries'](_0x27f9eb))_0x5bb507['push'](ro(_0x44dd1c,_0x814196,_0x4dc4ad));return _0x5bb507['length']?{'type':'format','content':o(_0x5f2b4d,'*Set\x20format\x20to:*\x20%0',_0x5bb507['join'](',\x20'))}:{'type':'format','content':o(_0x5f2b4d,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x154e88,_0x923d4c,_0x4bc8d7){const _0x510a8a=_0x154e88['locale']['t'],_0x4f8f46=_0x923d4c['split'](/(?=[A-Z])/)['join']('\x20'),_0x4c63bd=_0x510a8a(_0x4f8f46['charAt'](0x0)['toUpperCase']()+_0x4f8f46['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4bc8d7)return _0x4c63bd;if('fontColor'===_0x923d4c||'fontBackgroundColor'===_0x923d4c){const _0x34560b=_0x3a9b5a(_0x154e88['config']['get']('fontColor.colors'))['find'](_0x5194f8=>_0x5194f8['model']==_0x4bc8d7);return _0x4c63bd+'\x20('+(_0x34560b?_0x510a8a(_0x34560b['label'])['toLowerCase']():_0x4bc8d7)+')';}if('fontSize'===_0x923d4c&&isNaN(parseFloat(_0x4bc8d7))){const _0x51f00d=_0x154e88['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x154e88['config']['get']('fontSize.options'))['find'](_0x4f5467=>_0x4f5467['model']==_0x4bc8d7);return _0x4c63bd+'\x20('+(_0x51f00d?_0x510a8a(_0x51f00d['title'])['toLowerCase']():_0x4bc8d7)+')';}return _0x4c63bd+'\x20('+_0x4bc8d7+')';}class ot extends _0x1480f8{['_headingOptions'];['afterInit'](){const _0x41cd92=this['editor'];if(!_0x41cd92['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x41cd92['config']['get']('heading.options');const _0x49e2d6=_0x41cd92['locale'],_0xd5e10f=_0x41cd92['plugins']['get']('TrackChangesEditing');_0xd5e10f['enableDefaultAttributesIntegration']('heading');for(const _0x469286 of this['_headingOptions'])'paragraph'!=_0x469286['model']&&_0xd5e10f['descriptionFactory']['registerElementLabel'](_0x469286['model'],_0x4e34a4=>{const _0x488cdf=this['_getHeadingLevel'](_0x469286['model']);return null!==_0x488cdf?_0x32f69a(_0x4e34a4,_0x488cdf):_0x1b50cb(_0x4e34a4,_0x469286['title']);});function _0x32f69a(_0x3c3a19,_0x14428a){return o(_0x49e2d6,'ELEMENT_HEADING',[_0x3c3a19,_0x14428a]);}function _0x1b50cb(_0x4daaa6,_0x4443b7){return o(_0x49e2d6,'ELEMENT_HEADING_CUSTOM',[_0x4daaa6,_0x4443b7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29b1ab=this['editor'],_0x7959b7=_0x29b1ab['locale'];function _0x3640e0(_0x4a0457,_0x8360f6){return o(_0x7959b7,'ELEMENT_HEADING_CUSTOM',[_0x4a0457,_0x8360f6]);}_0x29b1ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xca26ae=>{if('formatBlock'!=_0xca26ae['type'])return;const {data:_0x91a9d4}=_0xca26ae;if(_0x91a9d4&&'heading'==_0x91a9d4['commandName']){const _0x58e0a6=_0x91a9d4['commandParams'][0x0]['value'],_0x557149=this['_getHeadingLevel'](_0x58e0a6);if(null!==_0x557149)return{'type':'format','content':o(_0x7959b7,'*Change\x20to:*\x20%0',(_0x7a1a44=0x1,_0x16ab33=_0x557149,o(_0x7959b7,'ELEMENT_HEADING',[_0x7a1a44,_0x16ab33])))};const _0x591f7a=this['_headingOptions']['find'](_0x4fde84=>_0x4fde84['model']===_0x58e0a6)['title'];return{'type':'format','content':o(_0x7959b7,'*Change\x20to:*\x20%0',_0x3640e0(0x1,_0x591f7a))};}var _0x7a1a44,_0x16ab33;});}['_getHeadingLevel'](_0x1e010b){const _0x5efc0e=_0x1e010b['match'](/^heading(\d+)/);if(_0x5efc0e)return _0x5efc0e[0x1];const _0x48ce73=this['_headingOptions']?.['find'](_0x2c90c6=>_0x2c90c6['model']==_0x1e010b);if(_0x48ce73&&_0x48ce73['view']){const _0x1f1ae9=_0x48ce73['view'],_0x120986=(_0x1f1ae9['name']??_0x1f1ae9)['match'](/^h(\d+)/);if(_0x120986)return _0x120986[0x1];}return null;}}class rt extends _0x1480f8{['afterInit'](){const _0x2aa341=this['editor'];if(!_0x2aa341['plugins']['has']('HighlightEditing'))return;const _0x1387ed=_0x2aa341['plugins']['get']('TrackChangesEditing'),_0x56eea0=_0x2aa341['locale'];_0x1387ed['enableDefaultAttributesIntegration']('highlight'),_0x1387ed['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x56eea0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x459b67=this['editor'],_0x49a853=_0x459b67['locale'];_0x459b67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a43ac=>{if('formatInline'!=_0x3a43ac['type'])return;const {data:_0x42983a}=_0x3a43ac;if(_0x42983a&&'highlight'==_0x42983a['commandName']){const _0x561b2f=_0x49a853['t'],_0x1d03fe=_0x42983a['commandParams'][0x0]['value'];if(_0x1d03fe){const _0x1804ed=_0x459b67['config']['get']('highlight.options')['find'](_0x3d7479=>_0x3d7479['model']==_0x1d03fe),_0x247b0c=_0x561b2f(_0x1804ed['title'])['toLowerCase']();return{'type':'format','content':o(_0x49a853,'*Set\x20highlight:*\x20%0',_0x247b0c),'color':{'value':_0x1804ed['color'],'title':_0x1804ed['title']}};}return{'type':'format','content':o(_0x49a853,'*Remove\x20highlight*',o(_0x49a853,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x1480f8{['afterInit'](){const _0x2159b0=this['editor'];if(!_0x2159b0['plugins']['has']('HorizontalLineEditing'))return;_0x2159b0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x93dd49=_0x2159b0['plugins']['get']('TrackChangesEditing'),_0x3f6d23=_0x2159b0['locale'];_0x93dd49['descriptionFactory']['registerElementLabel']('horizontalLine',_0x573d78=>o(_0x3f6d23,'ELEMENT_HORIZONTAL_LINE',_0x573d78));}}class ct extends _0x1480f8{['afterInit'](){const _0x434a82=this['editor'];if(!_0x434a82['plugins']['has']('HtmlEmbed'))return;const _0x39a0a8=_0x434a82['plugins']['get']('TrackChangesEditing'),_0x595ed4=_0x434a82['locale'];_0x39a0a8['descriptionFactory']['registerElementLabel']('rawHtml',_0x5546cd=>o(_0x595ed4,'ELEMENT_HTML_EMBED',_0x5546cd)),_0x39a0a8['enableDefaultAttributesIntegration']('htmlEmbed'),_0x39a0a8['descriptionFactory']['registerDescriptionCallback'](_0x497f77=>{if('attribute'!=_0x497f77['type'])return;const {data:_0xf80b17}=_0x497f77;if(_0xf80b17&&'value'==_0xf80b17['key']&&_0x497f77['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1b7d94=o(_0x595ed4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x595ed4,'*Change\x20%0\x20content*',_0x1b7d94)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a3dfe=this['editor'],_0x3f8f40=_0x3a3dfe['locale'];_0x3a3dfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10a823=>{if('formatBlock'!=_0x10a823['type'])return;const {data:_0x550199}=_0x10a823;if(_0x550199&&'htmlEmbed'==_0x550199['commandName']){const _0xc27d47=o(_0x3f8f40,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f8f40,'*Change\x20%0\x20content*',_0xc27d47)};}});}}class ut extends _0x1480f8{['afterInit'](){const _0x298b8b=this['editor'];if(!_0x298b8b['plugins']['has']('ImageEditing'))return;const _0x1badaa=_0x298b8b['plugins']['get']('TrackChangesEditing'),_0x3a0fca=_0x298b8b['plugins']['get']('ImageUtils'),_0x62fa38=_0x298b8b['locale'];_0x1badaa['enableCommand']('insertImage'),_0x1badaa['descriptionFactory']['registerElementLabel']('imageBlock',_0x63c9a7=>o(_0x62fa38,'ELEMENT_IMAGE',_0x63c9a7)),_0x1badaa['descriptionFactory']['registerElementLabel']('imageInline',_0x577785=>o(_0x62fa38,'ELEMENT_INLINE_IMAGE',_0x577785)),_0x1badaa['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x62fa38,'ELEMENT_CAPTION')),_0x298b8b['plugins']['has']('ImageUploadEditing')&&_0x1badaa['enableCommand']('uploadImage'),_0x298b8b['plugins']['has']('ImageBlockEditing')&&_0x298b8b['plugins']['has']('ImageInlineEditing')&&(_0x1badaa['enableCommand']('imageTypeInline',(_0x3c3a94,_0x471b4a)=>{const _0x1f0002=_0x3a0fca['getClosestSelectedImageElement'](_0x298b8b['model']['document']['selection']);_0x298b8b['model']['change'](()=>{_0x1badaa['markBlockFormat'](_0x1f0002,{'commandName':'imageTypeInline','commandParams':[_0x471b4a]},[],'convertBlockImageToInline');});}),_0x1badaa['enableCommand']('imageTypeBlock',(_0x18cad5,_0x4e0f46)=>{_0x298b8b['model']['change'](_0x125bca=>{let _0xa92eea=_0x3a0fca['getClosestSelectedImageElement'](_0x298b8b['model']['document']['selection']),_0x289a5d=_0x125bca['createRangeOn'](_0xa92eea);const _0x2cce29=_0x451de7['fromPosition'](_0x289a5d['start'],'toPrevious'),_0x4c5cbd=_0x451de7['fromPosition'](_0x289a5d['end'],'toNext');_0x1badaa['forceDefaultExecution'](()=>_0x18cad5(_0x4e0f46)),_0xa92eea=_0x3a0fca['getClosestSelectedImageElement'](_0x298b8b['model']['document']['selection']),_0x289a5d=_0x125bca['createRangeOn'](_0xa92eea);const _0x4ad5a0=_0x125bca['createRange'](_0x2cce29,_0x4c5cbd);_0x2cce29['detach'](),_0x4c5cbd['detach'](),_0x1badaa['markBlockFormat'](_0xa92eea,{'commandName':'imageTypeInline','commandParams':[_0x4e0f46]},[],'convertInlineImageToBlock'),_0x4ad5a0['start']['isBefore'](_0x289a5d['start'])&&_0x1badaa['markInsertion'](_0x125bca['createRange'](_0x4ad5a0['start'],_0x289a5d['start']),'convertInlineImageToBlock'),_0x289a5d['end']['isBefore'](_0x4ad5a0['end'])&&_0x1badaa['markInsertion'](_0x125bca['createRange'](_0x289a5d['end'],_0x4ad5a0['end']),'convertInlineImageToBlock');});}),_0x1badaa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1badaa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1badaa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1badaa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1badaa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1badaa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3fd1e2])=>{const _0x47c1c6=_0x1badaa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e3467=_0x3fd1e2['start'],_0x418ba0=_0x3fd1e2['end'];const _0x66f304=_0x298b8b['model']['schema']['getNearestSelectionRange'](_0x2e3467,'backward'),_0x393db0=_0x298b8b['model']['schema']['getNearestSelectionRange'](_0x418ba0,'forward');_0x66f304['isCollapsed']&&(_0x2e3467=_0x66f304['start']),_0x393db0['isCollapsed']&&(_0x418ba0=_0x393db0['end']),_0x47c1c6([_0x298b8b['model']['createRange'](_0x2e3467,_0x418ba0)]);}),_0x1badaa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x259be5),_0x1badaa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x259be5)),_0x298b8b['plugins']['has']('ImageCaptionEditing')&&(_0x1badaa['enableCommand']('toggleImageCaption',(_0x497dab,_0x5e40b6)=>{const _0x290826=_0x298b8b['plugins']['get']('ImageCaptionUtils');let _0x3f2d28=_0x3a0fca['getClosestSelectedImageElement'](_0x298b8b['model']['document']['selection']),_0x262405=_0x290826['getCaptionFromImageModelElement'](_0x3f2d28);_0x298b8b['model']['change'](()=>{if(_0x262405)return void _0x1badaa['markDeletion'](_0x298b8b['model']['createRangeOn'](_0x262405));const _0x215ca1=_0x3a0fca['isBlockImage'](_0x3f2d28);_0x497dab(_0x5e40b6),_0x3f2d28=_0x3a0fca['getClosestSelectedImageElement'](_0x298b8b['model']['document']['selection']),_0x262405=_0x290826['getCaptionFromImageModelElement'](_0x3f2d28),_0x1badaa['markInsertion'](_0x298b8b['model']['createRangeOn'](_0x262405),_0x215ca1?null:'imageCaption');});}),_0x1badaa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x259be5));const _0x560f6d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39cc2f(_0x2f0a50,_0x380c23){const _0x425a39=_0x560f6d['findIndex'](({type:_0x318075,subType:_0x4a98be})=>_0x2f0a50['type']==_0x318075&&_0x2f0a50['subType']==_0x4a98be),_0x1ce8ec=_0x560f6d['findIndex'](({type:_0x120fce,subType:_0xd41506})=>_0x380c23['type']==_0x120fce&&_0x380c23['subType']==_0xd41506);if(_0x425a39<0x0||_0x1ce8ec<0x0)return!0x1;const _0x551c3c=_0x2f0a50['getFirstRange'](),_0x272775=_0x380c23['getFirstRange']();if((0x0==_0x425a39||0x1==_0x425a39)&&0x2==_0x1ce8ec&&_0x551c3c['isIntersecting'](_0x272775))return!0x0;if(0x2==_0x425a39&&0x3==_0x1ce8ec){const _0x157c62=_0x1badaa['_findSuggestions'](_0x551c3c,'insertion')['filter'](({suggestion:_0x12f106,meta:_0x11f85f})=>_0x11f85f['isOwn']&&'convertInlineImageToBlock'==_0x12f106['subType']);if(_0x157c62['length']>0x1&&_0x272775['end']['isEqual'](_0x551c3c['start']))return!0x0;if(0x1==_0x157c62['length']&&(_0x551c3c['start']['isEqual'](_0x272775['end'])||_0x551c3c['end']['isEqual'](_0x272775['start'])))return!0x0;}if(0x3==_0x425a39&&0x3==_0x1ce8ec&&_0x551c3c['start']['isBefore'](_0x272775['start'])){const _0x353253=_0x551c3c['end']['nodeAfter'],_0x5d70ff=_0x272775['start']['nodeBefore'];return _0x3a0fca['isBlockImage'](_0x353253)&&_0x353253===_0x5d70ff;}return!0x1;}function _0x259be5(_0x20125f,_0x1e3370){return _0x39cc2f(_0x20125f,_0x1e3370)?[_0x20125f,_0x1e3370]:_0x39cc2f(_0x1e3370,_0x20125f)?[_0x1e3370,_0x20125f]:null;}_0x298b8b['plugins']['has']('ImageResize')&&(_0x1badaa['enableDefaultAttributesIntegration']('resizeImage'),_0x1badaa['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x62fa38,'FORMAT_IMAGE_SIZE'))),_0x298b8b['plugins']['has']('ImageTextAlternativeEditing')&&_0x1badaa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x298b8b['plugins']['has']('PictureEditing')&&_0x1badaa['descriptionFactory']['registerDescriptionCallback'](_0x3cf449=>{if('attribute'!=_0x3cf449['type'])return;const {data:_0x5c1818}=_0x3cf449;return _0x5c1818&&'sources'==_0x5c1818['key']?{'type':'format','content':''}:void 0x0;}),_0x298b8b['plugins']['has']('ImageSizeAttributes')&&_0x1badaa['descriptionFactory']['registerDescriptionCallback'](_0x595d46=>{if('attribute'!=_0x595d46['type'])return;const {data:_0xc37cbd}=_0x595d46;return!_0xc37cbd||'width'!=_0xc37cbd['key']&&'height'!=_0xc37cbd['key']?void 0x0:{'type':'format','content':''};}),_0x1badaa['descriptionFactory']['registerDescriptionCallback'](_0x5d7992=>{if(!!_0x560f6d['find'](({type:_0x4505d9,subType:_0x57fdac})=>_0x5d7992['type']==_0x4505d9&&_0x5d7992['subType']==_0x57fdac))return _0x5d7992['previous']?{}:void 0x0;}),_0x1badaa['descriptionFactory']['registerDescriptionCallback'](_0x15bce6=>{if('insertion'==_0x15bce6['type']||'deletion'==_0x15bce6['type']){const _0x587569=_0x15bce6['getContainedElement']();if(_0x587569&&_0x587569['is']('element','caption'))return{'type':'insertion'==_0x15bce6['type']?'addObject':'removeObject','element':_0x587569,'quantity':0x1};}}),_0x1badaa['descriptionFactory']['registerDescriptionCallback'](_0x2ef184=>'formatBlock'==_0x2ef184['type']&&'convertInlineImageToBlock'==_0x2ef184['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2ef184['type']&&'convertBlockImageToInline'==_0x2ef184['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1badaa['descriptionFactory']['registerDescriptionCallback'](_0x391c17=>{if('attribute'!=_0x391c17['type'])return;const {data:_0x429ebe}=_0x391c17;if(!_0x429ebe||'alt'!=_0x429ebe['key'])return;const _0x497ffb=_0x429ebe['newValue'];return _0x497ffb?{'type':'format','content':o(_0x62fa38,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x497ffb+'\x22')}:{'type':'format','content':o(_0x62fa38,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x553cda=this['editor'],_0x112eef=_0x553cda['locale'];_0x553cda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29d555=>{if('formatBlock'!=_0x29d555['type']&&'formatInline'!=_0x29d555['type'])return;const {data:_0x4d7f41}=_0x29d555;if(_0x4d7f41){if('imageTextAlternative'==_0x4d7f41['commandName']){const _0x179e8f=_0x4d7f41['commandParams'][0x0]['newValue'];return _0x179e8f?{'type':'format','content':o(_0x112eef,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x179e8f+'\x22')}:{'type':'format','content':o(_0x112eef,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4d7f41['commandName']){const _0x2b9743=_0x4d7f41['commandParams'][0x0]['width'];return _0x2b9743?{'type':'format','content':o(_0x112eef,'*Set\x20image\x20width:*\x20%0',_0x2b9743)}:{'type':'format','content':o(_0x112eef,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x1480f8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x31e024=this['editor']['locale'],_0x5bd134=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bd134['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5bd134['descriptionFactory']['registerDescriptionCallback'](_0x5dfba2=>{if('attribute'!=_0x5dfba2['type'])return;const {data:_0xb27a96}=_0x5dfba2;return _0xb27a96&&'src'==_0xb27a96['key']?_0xb27a96['newValue']&&_0xb27a96['oldValue']?{'type':'format','content':o(_0x31e024,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f548b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f548b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1f548b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f548b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1f548b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d3d64=this['editor'],_0x295268=_0x5d3d64['locale'];_0x5d3d64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8668=>{if('formatBlock'!=_0x2a8668['type']&&'formatInline'!=_0x2a8668['type'])return;const {data:_0x1107a7}=_0x2a8668;if(!_0x1107a7||'replaceImageSource'!=_0x1107a7['commandName'])return;return{'type':'format','content':o(_0x295268,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x1480f8{['afterInit'](){const _0x2d683d=this['editor'];if(!_0x2d683d['plugins']['has']('ImageStyleEditing'))return;const _0x90853e=_0x2d683d['plugins']['get']('TrackChangesEditing'),_0x27afe3=_0x2d683d['plugins']['get']('ImageUtils'),_0x20b613={};_0x90853e['enableCommand']('imageStyle',(_0x38d03b,_0x20d3ca)=>{const _0x2bf2ab=_0x2d683d['plugins']['get']('Users')['me'],_0x785ff5=_0x2d683d['commands']['get']('imageStyle');let _0x152a55=_0x27afe3['getClosestSelectedImageElement'](_0x2d683d['model']['document']['selection']),_0x116724=_0x2d683d['model']['createRangeOn'](_0x152a55),_0x3e390d=_0x785ff5['value'];if(_0x3e390d==_0x20d3ca['value'])return;const _0x4fd168={'commandName':'imageStyle','commandParams':[_0x20d3ca],'formatGroupId':_0x1bc03f()};_0x2d683d['model']['change'](()=>{if(_0x90853e['getSuggestions']()['filter'](_0x17cd57=>_0x17cd57['isInContent']&&_0x2bf2ab==_0x17cd57['author']&&('formatBlock'==_0x17cd57['type']||'formatInline'==_0x17cd57['type'])&&('imageStylePreApply'==_0x17cd57['subType']||'imageStylePostApply'==_0x17cd57['subType'])&&_0x17cd57['getFirstRange']()['isEqual'](_0x116724))['forEach'](_0x357cc8=>_0x90853e['discardSuggestion'](_0x357cc8['head'])),_0x152a55=_0x27afe3['getClosestSelectedImageElement'](_0x2d683d['model']['document']['selection']),_0x116724=_0x2d683d['model']['createRangeOn'](_0x152a55),_0x785ff5['refresh'](),_0x2d683d['commands']['get']('imageTypeInline')['refresh'](),_0x2d683d['commands']['get']('imageTypeBlock')['refresh'](),_0x3e390d=_0x785ff5['value'],_0x3e390d!=_0x20d3ca['value'])return _0x27afe3['isInlineImage'](_0x152a55)&&_0x785ff5['shouldConvertImageType'](_0x20d3ca['value'],_0x152a55)?(_0x38d03b({..._0x20d3ca,'setImageSizes':!0x1}),_0x152a55=_0x27afe3['getClosestSelectedImageElement'](_0x2d683d['model']['document']['selection']),void _0x90853e['markBlockFormat'](_0x152a55,{..._0x4fd168,'commandReversedParams':[{'value':_0x3e390d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x27afe3['isBlockImage'](_0x152a55)?_0x90853e['markBlockFormat'](_0x152a55,_0x4fd168,[],'imageStylePostApply'):_0x90853e['markInlineFormat'](_0x116724,_0x4fd168,'imageStylePostApply'));});});for(const _0x2dfb4f of _0x2d683d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x20b613[_0x2dfb4f['name']]=_0x2dfb4f['title']['toLowerCase']();_0x90853e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x90853e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x90853e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x90853e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x125bb1])=>{_0x27afe3['setImageNaturalSizeAttributes'](_0x125bb1['getContainedElement']());}),_0x90853e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3d0a63,_0x1bd724)=>{_0x90853e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3d0a63,{'commandName':_0x1bd724['commandName'],'commandParams':_0x1bd724['commandReversedParams']});}),_0x90853e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x541e3a,_0x97a922){if(_0x357ab2(_0x541e3a,_0x97a922))return[_0x541e3a,_0x97a922];if(_0x357ab2(_0x97a922,_0x541e3a))return[_0x97a922,_0x541e3a];return null;});const _0xd01e84=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x357ab2(_0x4d0405,_0x8eea39){const _0x40e5d0=_0xd01e84['findIndex'](({type:_0x161303,subType:_0x21d891})=>_0x4d0405['type']==_0x161303&&_0x4d0405['subType']==_0x21d891),_0x4dee1a=_0xd01e84['findIndex'](({type:_0x464cf7,subType:_0x56db30})=>_0x8eea39['type']==_0x464cf7&&_0x8eea39['subType']==_0x56db30);if(_0x40e5d0<0x0||_0x4dee1a<0x0)return!0x1;const _0x1e414f=_0x4d0405['getFirstRange'](),_0x22b137=_0x8eea39['getFirstRange']();if((0x0==_0x40e5d0||0x1==_0x40e5d0)&&0x2==_0x4dee1a&&_0x1e414f['isIntersecting'](_0x22b137))return!0x0;if(0x2==_0x40e5d0&&0x3==_0x4dee1a){const _0x34e99e=_0x90853e['_findSuggestions'](_0x1e414f,'insertion')['filter'](({suggestion:_0x2c149e,meta:_0x89c838})=>_0x89c838['isOwn']&&'convertInlineImageToBlock'==_0x2c149e['subType']);if(_0x34e99e['length']>0x1&&_0x22b137['end']['isEqual'](_0x1e414f['start']))return!0x0;if(0x1==_0x34e99e['length']&&(_0x1e414f['start']['isEqual'](_0x22b137['end'])||_0x1e414f['end']['isEqual'](_0x22b137['start'])))return!0x0;}if(0x3==_0x40e5d0&&0x3==_0x4dee1a&&_0x1e414f['start']['isBefore'](_0x22b137['start'])){const _0x549873=_0x1e414f['end']['nodeAfter'],_0x1df703=_0x22b137['start']['nodeBefore'];return _0x27afe3['isBlockImage'](_0x549873)&&_0x549873===_0x1df703;}return!0x1;}_0x2d683d['model']['document']['registerPostFixer'](()=>{let _0x5d4fbe=!0x1;const _0x3306ca=Array['from'](_0x2d683d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x154833,data:_0x4b9075}of _0x3306ca){const {group:_0x581b0d,type:_0x5bf2e4,subType:_0x74c261,id:_0xeb72c6}=_0x90853e['_splitMarkerName'](_0x154833);if('suggestion'==_0x581b0d&&_0x90853e['hasSuggestion'](_0xeb72c6)){if('formatBlock'==_0x5bf2e4&&('imageStylePreApply'==_0x74c261||'imageStylePostApply'==_0x74c261)){const _0x28ffda=_0x90853e['getSuggestion'](_0xeb72c6);if(_0x4b9075['newRange']){const _0x3ced74=_0x28ffda['getFirstRange']()['getContainedElement']();if(_0x27afe3['isBlockImage'](_0x3ced74))continue;_0x90853e['discardSuggestion'](_0x28ffda),_0x5d4fbe=!0x0;}}if('insertion'==_0x5bf2e4&&'imageCaption'==_0x74c261&&!_0x4b9075['newRange']){const _0x55dad7=_0x90853e['getSuggestion'](_0xeb72c6);_0x55dad7['next']&&_0x55dad7['next']['isInContent']&&(_0x90853e['discardSuggestion'](_0x55dad7['next']),_0x5d4fbe=!0x0);}}}return _0x5d4fbe;}),this['_registerLegacyDescription'](_0x20b613);}['_registerLegacyDescription'](_0x258b2c){const _0xb698e4=this['editor'],_0x19fb2c=_0xb698e4['locale'];_0xb698e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f038d=>{if('formatBlock'!=_0x4f038d['type']&&'formatInline'!=_0x4f038d['type'])return;const {data:_0x151f5e}=_0x4f038d;if(!_0x151f5e||'imageStyle'!=_0x151f5e['commandName'])return;const _0x35f205=_0x151f5e['commandParams'][0x0]['value'];return _0xc066d6('side'===_0x35f205?o(_0x19fb2c,'FORMAT_SIDE_IMAGE'):_0x258b2c[_0x35f205]||_0x35f205);function _0xc066d6(_0x5ee799){return{'type':'format','content':o(_0x19fb2c,'*Format:*\x20%0',_0x5ee799)};}});}}class lt extends _0x1480f8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x270811){super(_0x270811),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d7bd9=this['editor'],_0x16e41a=_0x4d7bd9['commands']['get']('importWord'),_0x47363a=_0x4d7bd9['commands']['get']('trackChanges');_0x16e41a&&(_0x16e41a['on']('execute',(_0x5888b8,[,_0x103168])=>{this['_trackChangesValueDuringImport']=_0x47363a['value'],_0x103168['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x16e41a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x16e41a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x47363a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d7bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x309d45,_0xd3baff){const {suggestions:_0x37cb7c}=_0xd3baff,_0x1cdb87=this['editor']['commands']['get']('trackChanges'),_0x20e9ba=_0x1cdb87['value'];this['_trackChangesValueDuringImport']!==_0x20e9ba&&(_0x1cdb87['execute'](),this['_trackChangesExecuted']=!0x0),_0x37cb7c&&_0x37cb7c['forEach'](({id:_0xe6c5b8,type:_0x555568,author:_0x59f0c5,created_at:_0x20184b})=>{const _0x2e8fd3={'id':_0xe6c5b8,'type':_0x555568,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x59f0c5,'createdAt':_0x20184b?new Date(_0x20184b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2e8fd3);});}}class gt extends _0x1480f8{['afterInit'](){const _0x227d97=this['editor'],_0x504f59=_0x227d97['plugins']['get']('TrackChangesEditing');if(_0x227d97['plugins']['has']('IndentEditing')&&(_0x504f59['enableCommand']('indent'),_0x504f59['enableCommand']('outdent')),_0x227d97['plugins']['has']('IndentBlock')){for(const _0x32f9ab of['indentBlock','outdentBlock'])_0x504f59['enableDefaultAttributesIntegration'](_0x32f9ab);if(_0x227d97['plugins']['has']('ListEditing')){for(const _0x196a38 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x504f59['enableDefaultAttributesIntegration'](_0x196a38);}}const _0x150cd6=_0x227d97['locale'];_0x504f59['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x150cd6,'FORMAT_INDENT')),_0x504f59['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x150cd6,'FORMAT_INDENT')),_0x504f59['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x150cd6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x103308=this['editor'],_0x224a2f=_0x103308['locale'],_0x2e9ee6=_0x103308['plugins']['get']('TrackChangesEditing');_0x2e9ee6['descriptionFactory']['registerDescriptionCallback'](_0x1630ae=>{if('formatBlock'!=_0x1630ae['type'])return;const {data:_0xf50fc6}=_0x1630ae;if(!_0xf50fc6)return;if('indentBlock'!=_0xf50fc6['commandName']&&'outdentBlock'!=_0xf50fc6['commandName'])return;const _0x5b5cdf=_0x1630ae['getItems']()[0x0],_0x3dca28=_0x2e9ee6['descriptionFactory']['getItemLabel'](_0x5b5cdf);return'indentBlock'==_0xf50fc6['commandName']?{'type':'format','content':o(_0x224a2f,'*Indent:*\x20%0',_0x3dca28)}:'outdentBlock'==_0xf50fc6['commandName']?{'type':'format','content':o(_0x224a2f,'*Outdent:*\x20%0',_0x3dca28)}:void 0x0;});}}class mt extends _0x1480f8{static get['requires'](){return[_0x3aca2f];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x1480f8{['afterInit'](){const _0x40ab22=this['editor'];if(!_0x40ab22['plugins']['has']('LinkEditing'))return;const _0x513b49=_0x40ab22['plugins']['get']('TrackChangesEditing'),_0x3a2e45=_0x40ab22['commands']['get']('link');_0x513b49['enableDefaultAttributesIntegration']('link'),_0x513b49['enableDefaultAttributesIntegration']('unlink');for(const _0x2454e8 of _0x3a2e45['manualDecorators'])_0x513b49['descriptionFactory']['registerAttributeLabel'](_0x2454e8['id'],'link\x20('+_0x2454e8['label']['toLowerCase']()+')');_0x513b49['descriptionFactory']['registerDescriptionCallback'](_0x41a319=>{if('attribute'!=_0x41a319['type'])return;const {data:_0x50b9d3}=_0x41a319;if(!_0x50b9d3||'linkHref'!=_0x50b9d3['key'])return;const _0x377d2c=_0x50b9d3['newValue'],_0xbb5d72=_0x40ab22['locale'];return{'type':'format','content':null==_0x377d2c?o(_0xbb5d72,'*Remove\x20link*'):o(_0xbb5d72,'*Set\x20link:*\x20%0','\x22'+_0x377d2c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b494f=this['editor'],_0x329921=_0x3b494f['locale'];_0x3b494f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2fee=>{if('formatInline'!=_0x5d2fee['type'])return;const {data:_0x309198}=_0x5d2fee;if(_0x309198){if('link'==_0x309198['commandName']){const _0x3f0083=_0x309198['commandParams'][0x0];return{'type':'format','content':o(_0x329921,'*Set\x20link:*\x20%0','\x22'+_0x3f0083+'\x22')};}return'unlink'==_0x309198['commandName']?{'type':'format','content':o(_0x329921,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x1480f8{['afterInit'](){const _0x479c44=this['editor'],_0x5c05d2=_0x479c44['locale'];if(!_0x479c44['plugins']['has']('LegacyListEditing'))return;const _0x3c8302=_0x479c44['plugins']['get']('TrackChangesEditing'),_0x4c5ad5=_0x479c44['plugins']['has']('LegacyTodoListEditing');function _0x4042f1(_0x3bde49){return()=>{const _0x1ff1db=_0x479c44['model']['document']['selection'],_0x40ea89=_0x479c44['commands']['get'](_0x3bde49);if(_0x40ea89['value'])return void _0x479c44['execute']('paragraph',{});const _0x533ce4=_0x3bde49['slice'](0x0,-0x4),_0x38f57e=function(_0x5380e5,_0x37c4ae,_0x1f427a){let _0x452c52=Array['from'](_0x5380e5)['filter'](_0x3bbc8e=>function(_0x21b816,_0x329617){return _0x329617['checkChild'](_0x21b816['parent'],'listItem')&&!_0x329617['isObject'](_0x21b816);}(_0x3bbc8e,_0x1f427a));_0x452c52=_0x452c52['filter'](_0x1b8d14=>!_0x1b8d14['is']('element','listItem')||_0x1b8d14['getAttribute']('listType')!=_0x37c4ae);const _0x4aa0ed=new Set();for(const _0x2719c2 of _0x452c52)_0x2719c2['is']('element','listItem')?_0x4aa0ed['add'](Le(_0x2719c2)):_0x4aa0ed['add'](_0x2719c2);return Array['from'](_0x4aa0ed);}(_0x1ff1db['getSelectedBlocks'](),_0x533ce4,_0x479c44['model']['schema']);_0x479c44['model']['change'](()=>{for(const _0x6be393 of _0x38f57e)_0x3c8302['markBlockFormat'](_0x6be393,{'commandName':_0x3bde49,'commandParams':[{'forceValue':!_0x40ea89['value']}],'formatGroupId':'blockName'},Ee(_0x6be393));});};}function _0x4880a4(_0x39ec55){return()=>{const _0xf28db1=function(_0x824269){let _0x39d897=Array['from'](_0x824269);const _0x552dc4=_0x39d897['findIndex'](_0x29cc08=>'listItem'!=_0x29cc08['name']);return _0x552dc4>-0x1&&(_0x39d897=_0x39d897['slice'](0x0,_0x552dc4)),_0x39d897;}(_0x479c44['model']['document']['selection']['getSelectedBlocks']()),_0x1a5a75=_0x479c44['model']['createRange'](_0x479c44['model']['createPositionAt'](_0xf28db1[0x0],'before'),_0x479c44['model']['createPositionAt'](_0xf28db1[_0xf28db1['length']-0x1],'end'));_0x479c44['model']['change'](()=>{_0x3c8302['markBlockFormat'](_0x1a5a75,{'commandName':_0x39ec55,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4778e2){const _0x83827c=new Set();for(const _0x3a737a of _0x4778e2){let _0x5c2a3b=_0x3a737a['nextSibling'];for(;_0x5c2a3b&&_0x5c2a3b['getAttribute']('listIndent')>_0x3a737a['getAttribute']('listIndent');)_0x83827c['add'](_0x5c2a3b),_0x5c2a3b=_0x5c2a3b['nextSibling'];}return Array['from'](_0x83827c);}(_0xf28db1));});};}_0x3c8302['enableCommand']('numberedList',_0x4042f1('numberedList')),_0x3c8302['enableCommand']('bulletedList',_0x4042f1('bulletedList')),_0x4c5ad5&&_0x3c8302['enableCommand']('todoList',_0x4042f1('todoList')),_0x3c8302['enableCommand']('indentList',_0x4880a4('indentList')),_0x3c8302['enableCommand']('outdentList',_0x4880a4('outdentList')),_0x4c5ad5&&_0x3c8302['enableCommand']('checkTodoList',()=>{const _0xbef4a5=_0x479c44['commands']['get']('checkTodoList'),_0x154ced=Array['from'](_0xbef4a5['_selectedElements']);_0x154ced['filter'](_0xe5ea55=>_0xe5ea55['getAttribute']('todoListChecked')!=_0xbef4a5['value']),_0x479c44['model']['change'](()=>{for(const _0x587e4d of _0x154ced)_0x3c8302['markBlockFormat'](_0x587e4d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xbef4a5['value']}]});});}),_0x3c8302['descriptionFactory']['registerElementLabel']('listItem',_0x2b39b9=>o(_0x5c05d2,'ELEMENT_LIST_ITEM',_0x2b39b9)),_0x3c8302['descriptionFactory']['registerDescriptionCallback'](_0x5c3677=>{if('formatBlock'!=_0x5c3677['type']&&'formatInline'!=_0x5c3677['type'])return;const {data:_0x1a88bc}=_0x5c3677;if(_0x1a88bc){if('numberedList'==_0x1a88bc['commandName']||'bulletedList'==_0x1a88bc['commandName']||'todoList'==_0x1a88bc['commandName'])switch(_0x1a88bc['commandName']['replace']('List','')){case'bulleted':return _0x23700e(o(_0x5c05d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23700e(o(_0x5c05d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23700e(o(_0x5c05d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1a88bc['commandName'])return{'type':'format','content':o(_0x5c05d2,'*Indent:*\x20%0',o(_0x5c05d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1a88bc['commandName'])return{'type':'format','content':o(_0x5c05d2,'*Outdent:*\x20%0',o(_0x5c05d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1a88bc['commandName'])return _0x1a88bc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c05d2,'*Check\x20item*')}:{'type':'format','content':o(_0x5c05d2,'*Uncheck\x20item*')};}function _0x23700e(_0x3cc4bb){return{'type':'format','content':o(_0x5c05d2,'*Change\x20to:*\x20%0',_0x3cc4bb)};}});}}function Le(_0x2ce402){const _0x559185=_0x2ce402['getAttribute']('listIndent');if(0x0==_0x559185)return _0x2ce402;let _0x511723=_0x2ce402;for(;_0x2ce402['previousSibling']&&_0x2ce402['previousSibling']['is']('element','listItem');){const _0x47875f=_0x2ce402['previousSibling']['getAttribute']('listIndent');if(_0x47875f==_0x559185)_0x511723=_0x2ce402['previousSibling'];else{if(_0x47875f<_0x559185)break;}_0x2ce402=_0x2ce402['previousSibling'];}return _0x511723;}function Ee(_0x20ae7c){const _0x367179=[];if(_0x20ae7c['is']('element','listItem')&&_0x20ae7c['getAttribute']('listIndent')>0x0){let _0x38d26c=_0x20ae7c['nextSibling'];for(;_0x38d26c&&'listItem'==_0x38d26c['name']&&_0x38d26c['getAttribute']('listIndent')==_0x20ae7c['getAttribute']('listIndent');)_0x367179['push'](_0x38d26c),_0x38d26c=_0x38d26c['nextSibling'];}return _0x367179;}class wt extends _0x1480f8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x8e165a=this['editor']['config']['get']('list.properties'),_0x542fcd=this['editor']['plugins']['get']('TrackChangesEditing');_0x8e165a['styles']&&_0x542fcd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x8e165a['reversed']&&_0x542fcd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x8e165a['startIndex']&&_0x542fcd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x542fcd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x21c6a0,_0x493c1d={}){const _0x46acd3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cca6f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x46acd3['markMultiRangeBlockFormat'](_0x5cca6f,{'commandName':'listStyle','commandParams':[{'type':_0x493c1d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2bb745,_0x35f81c={}){const _0x274dcc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fdd4b=this['_getSuggestionBlocks'](_0x37adc9=>_0x37adc9['is']('element','listItem')&&'numbered'===_0x37adc9['getAttribute']('listType'));if(_0x3fdd4b['length']<0x1)return;const _0x293b16=_0x3fdd4b['map'](_0x6f8d38=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6f8d38,'before'),this['editor']['model']['createPositionAt'](_0x6f8d38,0x0)));this['editor']['model']['change'](()=>{_0x274dcc['markMultiRangeBlockFormat'](_0x293b16,{'commandName':'listReversed','commandParams':[{'reversed':_0x35f81c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x927a07,_0x113900={}){const _0x42fc7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e14ca=this['_getSuggestionBlocks'](_0x11bd4f=>_0x11bd4f['is']('element','listItem')&&'numbered'===_0x11bd4f['getAttribute']('listType'));if(_0x2e14ca['length']<0x1)return;const _0x3db26e=_0x2e14ca['map'](_0x60836b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x60836b,'before'),this['editor']['model']['createPositionAt'](_0x60836b,0x0)));this['editor']['model']['change'](()=>{_0x42fc7e['markMultiRangeBlockFormat'](_0x3db26e,{'commandName':'listStart','commandParams':[{'startIndex':_0x113900['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x126ca2){if('formatBlock'!=_0x126ca2['type']&&'formatInline'!=_0x126ca2['type'])return;const _0x41d660=this['editor']['locale'],{data:_0x9f315b}=_0x126ca2;if(!_0x9f315b)return;let _0x2c4b1d,_0x4bc280;switch(_0x9f315b['commandName']){case'listStyle':_0x2c4b1d='*Change\x20to:*\x20%0',_0x4bc280={'type':'format','content':o(_0x41d660,_0x2c4b1d,o(_0x41d660,this['_getTranslationKeyForListStyle'](_0x9f315b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c4b1d=_0x9f315b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4bc280={'type':'format','content':o(_0x41d660,_0x2c4b1d)};break;case'listStart':_0x2c4b1d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4bc280={'type':'format','content':o(_0x41d660,_0x2c4b1d,_0x9f315b['commandParams'][0x0]['startIndex'])};}return _0x4bc280;}['_getSuggestionBlocksForListStyle'](){const _0x5e7968=this['editor']['plugins']['get']('LegacyListUtils');let _0x5de764=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5de764[0x0]?.['is']('element','listItem')&&_0x5de764['unshift'](..._0x5e7968['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5de764[_0x5de764['length']-0x1]?.['is']('element','listItem')&&_0x5de764['push'](..._0x5e7968['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5de764=[...new Set(_0x5de764)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5de764=_0x5de764['filter'](_0x41972f=>_0x41972f['is']('element','listItem'))),_0x5de764;}['_getSuggestionBlocks'](_0x275420){const _0x1fdd45=this['editor']['plugins']['get']('LegacyListUtils');let _0x134e8c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x275420)['map'](_0x399994=>{const _0x1e3bb0=this['editor']['model']['createPositionAt'](_0x399994,0x0);return[..._0x1fdd45['getSiblingNodes'](_0x1e3bb0,'backward'),..._0x1fdd45['getSiblingNodes'](_0x1e3bb0,'forward')];})['flat']();return _0x134e8c=[...new Set(_0x134e8c)],_0x134e8c;}['_getTranslationKeyForListStyle'](_0x4d4627){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4d4627)||'default')['toUpperCase']()+'_LIST_'+_0x4d4627['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x1480f8{['afterInit'](){const _0x507619=this['editor'];if(!_0x507619['plugins']['has']('MediaEmbedEditing'))return;const _0x4360e8=_0x507619['plugins']['get']('TrackChangesEditing'),_0x2aa1e6=_0x507619['locale'];_0x4360e8['enableCommand']('mediaEmbed'),_0x4360e8['descriptionFactory']['registerElementLabel']('media',_0x226084=>o(_0x2aa1e6,'ELEMENT_MEDIA',_0x226084));}}class bt extends _0x1480f8{['afterInit'](){const _0x58852a=this['editor'];_0x58852a['plugins']['has']('MentionEditing')&&_0x58852a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x1480f8{['afterInit'](){const _0x1cb5a7=this['editor'];if(!_0x1cb5a7['plugins']['has']('MergeFieldsEditing'))return;const _0x2ddbd1=_0x1cb5a7['plugins']['get']('TrackChangesEditing'),_0x15ce3f=_0x1cb5a7['locale'];_0x2ddbd1['enableCommand']('insertMergeField'),_0x2ddbd1['enableCommand']('insertMergeFieldBlock'),_0x2ddbd1['enableCommand']('insertMergeFieldImage'),_0x2ddbd1['descriptionFactory']['registerElementLabel']('mergeField',_0x3bbfd1=>o(_0x15ce3f,'ELEMENT_MERGE_FIELD',_0x3bbfd1)),_0x2ddbd1['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x31269d=>o(_0x15ce3f,'ELEMENT_MERGE_FIELD',_0x31269d)),_0x2ddbd1['descriptionFactory']['registerDescriptionCallback'](_0x267139=>{if('insertion'!=_0x267139['type']&&'deletion'!=_0x267139['type'])return;const _0x3e52ce=_0x267139['getContainedElement']();if(null==_0x3e52ce)return;const _0x1d7211=_0x1cb5a7['plugins']['get']('MergeFieldsEditing');let _0x3fa137;switch(_0x1d7211['getMergeFieldType'](_0x3e52ce)){case null:return;case'image':{const _0x3919e5=_0x1d7211['unwrapAffixes'](_0x3e52ce['getAttribute']('src'));_0x3fa137=_0x1d7211['getLabel'](_0x3919e5)||_0x3919e5;break;}default:{const _0x35b6c9=_0x3e52ce['getAttribute']('id');_0x3fa137=_0x1d7211['getLabel'](_0x35b6c9)||_0x35b6c9;break;}}return'insertion'==_0x267139['type']?{'type':'insertion','content':o(_0x15ce3f,'*Insert:*\x20%0','\x22'+_0x3fa137+'\x22\x20'+o(_0x15ce3f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x15ce3f,'*Remove:*\x20%0','\x22'+_0x3fa137+'\x22\x20'+o(_0x15ce3f,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x1480f8{['afterInit'](){const _0x416203=this['editor'],_0x2745ea=_0x416203['plugins']['get']('TrackChangesEditing');_0x416203['plugins']['has']('MultiLevelList')&&(_0x2745ea['enableDefaultAttributesIntegration']('multiLevelList'),_0x2745ea['descriptionFactory']['registerDescriptionCallback'](_0x434695=>this['handleDescriptions'](_0x434695)));}['handleDescriptions'](_0x22c90f){const _0xa85632=this['editor']['locale'],{data:_0x326f6b}=_0x22c90f,_0x28a9c4={'type':'format','content':''};if(_0x326f6b&&'listMarkerStyle'==_0x326f6b['key']){if(!_0x326f6b['oldValue'])return{'type':'format','content':o(_0xa85632,'*Set\x20format:*\x20%0',o(_0xa85632,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x326f6b['newValue']+')'};if(!_0x326f6b['newValue']){let _0x2471b6=_0x22c90f['head'];for(;_0x2471b6;){if(_0x2471b6['data']&&'listType'==_0x2471b6['data']['key']&&_0x2471b6['data']['newValue'])return _0x28a9c4;_0x2471b6=_0x2471b6['next'];}return{'type':'format','content':o(_0xa85632,'*Remove\x20format:*\x20%0',o(_0xa85632,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x326f6b['oldValue']+')'};}}}}class St extends _0x1480f8{['afterInit'](){const _0xb26e4=this['editor'];if(!_0xb26e4['plugins']['has']('PageBreakEditing'))return;_0xb26e4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2f2671=_0xb26e4['plugins']['get']('TrackChangesEditing'),_0x5e1b79=_0xb26e4['locale'];_0x2f2671['descriptionFactory']['registerElementLabel']('pageBreak',_0x290ab2=>o(_0x5e1b79,'ELEMENT_PAGE_BREAK',_0x290ab2));}}class It extends _0x1480f8{['afterInit'](){const _0x461072=this['editor'];if(!_0x461072['plugins']['has']('Paragraph'))return;const _0x997d9d=_0x461072['locale'],_0x54eb7e=_0x461072['plugins']['get']('TrackChangesEditing');_0x54eb7e['descriptionFactory']['registerElementLabel']('paragraph',_0x15c7ee=>o(_0x997d9d,'ELEMENT_PARAGRAPH',_0x15c7ee)),_0x54eb7e['enableDefaultAttributesIntegration']('paragraph'),_0x54eb7e['enableCommand']('insertParagraph');const _0x684342=_0x54eb7e['descriptionFactory'];_0x684342['registerDescriptionCallback'](_0x1ac949=>{if('insertion'!==_0x1ac949['type'])return;const {start:_0x44c166,end:_0x2d9187}=_0x1ac949['getFirstRange']();if(!_0x44c166['isTouching'](_0x2d9187)||!_0x44c166['nodeAfter'])return;const _0x4b572c=_0x461072['model']['schema'],_0x5eae12=_0x44c166['nodeAfter'];return _0x4b572c['isBlock'](_0x5eae12)&&!_0x4b572c['isLimit'](_0x5eae12)&&_0x4b572c['checkChild'](_0x5eae12,'$text')?{'type':'insertion','content':o(_0x997d9d,'*Insert:*\x20%0',_0x684342['getItemLabel'](_0x5eae12,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32e028=this['editor'],_0x1df477=_0x32e028['locale'];_0x32e028['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b7d39=>{if('formatBlock'!=_0x2b7d39['type'])return;const {data:_0x3122c1}=_0x2b7d39;return _0x3122c1&&'paragraph'==_0x3122c1['commandName']?{'type':'format','content':o(_0x1df477,'*Change\x20to:*\x20%0',o(_0x1df477,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x1480f8{['afterInit'](){const _0x3b5520=this['editor'];_0x3b5520['commands']['get']('replaceSource')&&_0x3b5520['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x1480f8{['afterInit'](){const _0x49f38a=this['editor'];if(!_0x49f38a['plugins']['has']('RemoveFormatEditing'))return;_0x49f38a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x410abb=this['editor'];_0x410abb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a46a3=>{if('formatBlock'!=_0x1a46a3['type']&&'formatInline'!=_0x1a46a3['type'])return;const {data:_0xd87367}=_0x1a46a3;return _0xd87367&&'removeFormat'==_0xd87367['commandName']?{'type':'format','content':o(_0x410abb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x1480f8{['afterInit'](){const _0x223aa0=this['editor'];if(!_0x223aa0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x564d33=_0x223aa0['plugins']['get']('TrackChangesEditing');_0x564d33['enableCommand']('goToPreviousRestrictedEditingException'),_0x564d33['enableCommand']('goToNextRestrictedEditingException');const _0x3da548=_0x223aa0['plugins']['get']('RestrictedEditingModeEditing');_0x3da548['enableCommand']('trackChanges'),_0x3da548['enableCommand']('acceptSuggestion'),_0x3da548['enableCommand']('discardSuggestion'),_0x3da548['enableCommand']('acceptAllSuggestions'),_0x3da548['enableCommand']('discardAllSuggestions'),_0x3da548['enableCommand']('acceptSelectedSuggestions'),_0x3da548['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x1480f8{['afterInit'](){const _0x39a8ef=this['editor'];if(!_0x39a8ef['plugins']['has']('ShiftEnter'))return;const _0x5e18c5=_0x39a8ef['plugins']['get']('TrackChangesEditing');_0x5e18c5['enableCommand']('shiftEnter'),_0x5e18c5['descriptionFactory']['registerElementLabel']('softBreak',_0x575cee=>o(_0x39a8ef['locale'],'ELEMENT_LINE_BREAK',_0x575cee));}}function an(_0x5d093f,_0x5bf585,_0x19878d){const _0x21dc81=[];for(const _0x4168fc of _0x5bf585['getItems']())_0x4168fc['hasAttribute'](_0x5d093f)&&_0x21dc81['push'](_0x19878d['createRangeOn'](_0x4168fc));return _0x21dc81;}class $t extends _0x1480f8{['afterInit'](){const _0x1dd0d7=this['editor'],_0x423e93=_0x1dd0d7['plugins']['get']('TrackChangesEditing');_0x1dd0d7['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x423e93['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x559b12=this['editor'],_0x38e5b3=_0x559b12['model'],_0x1a16d4=_0x559b12['locale'],_0x51f13a=_0x559b12['plugins']['get']('TrackChangesEditing'),_0x3015b5='restrictedEditingException',_0x1fe4f1=_0x559b12['commands']['get'](_0x3015b5);_0x51f13a['enableCommand'](_0x3015b5,(_0x14e733,_0x164e57={})=>{const _0x402dab=_0x38e5b3['document']['selection'];if(_0x402dab['isCollapsed'])return void _0x14e733(_0x164e57);const _0x5ca3b3=void 0x0!==_0x164e57['forceValue']?_0x164e57['forceValue']:!_0x1fe4f1['value'];_0x38e5b3['change'](()=>{const _0x1b3b71=Array['from'](_0x402dab['getRanges']());for(const _0x532c9b of _0x1b3b71){const _0x4dc590=_0x5ca3b3?[_0x532c9b]:an(_0x3015b5,_0x532c9b,_0x38e5b3);for(const _0xa5f6e3 of _0x4dc590)_0x51f13a['markInlineFormat'](_0xa5f6e3,{'commandName':_0x3015b5,'commandParams':[{'forceValue':_0x5ca3b3}]});}});}),_0x51f13a['descriptionFactory']['registerDescriptionCallback'](_0x1db28f=>{if('formatBlock'!=_0x1db28f['type']&&'formatInline'!=_0x1db28f['type'])return;const {data:_0x3a9e50}=_0x1db28f;return _0x3a9e50&&_0x3a9e50['commandName']==_0x3015b5?_0x3a9e50['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a16d4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1a16d4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1ea00c=this['editor'],_0x34ed70=_0x1ea00c['locale'],_0x53fd5c=_0x1ea00c['plugins']['get']('TrackChangesEditing'),_0x43eccd='restrictedEditingExceptionBlock',_0x25dbe5=this['editor']['commands']['get'](_0x43eccd);_0x53fd5c['enableCommand'](_0x43eccd,(_0xf67d2f,_0x6cd150={})=>{const _0x3c4860=this['editor']['model']['document']['selection'],_0x52d6d0=_0x6cd150&&void 0x0!==_0x6cd150['forceValue']?_0x6cd150['forceValue']:!_0x25dbe5['value'];let _0x3eacbf=[];if(_0x52d6d0){const _0xa52684=Array['from'](_0x3c4860['getSelectedBlocks']())['filter'](_0x2f05bb=>function(_0x40ee7b){return!!_0x40ee7b['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2f05bb)||function(_0x1a174a,_0x4f736f){const _0x49e323=_0x4f736f['createContext'](_0x1a174a['parent']);if(!_0x4f736f['checkChild'](_0x49e323,'restrictedEditingException'))return!0x1;if(!_0x4f736f['checkChild'](_0x49e323['push']('restrictedEditingException'),_0x1a174a))return!0x1;return!0x0;}(_0x2f05bb,this['editor']['model']['schema']));_0x3eacbf=to(_0xa52684,_0x1ea00c['model']);}else{const _0x4ca98f=Array['from'](_0x3c4860['getSelectedBlocks']())['map'](_0xd116df=>function(_0x3f6b27){let _0x70f3e9=_0x3f6b27;for(;_0x70f3e9['parent'];){if('restrictedEditingException'==_0x70f3e9['parent']['name'])return _0x70f3e9;_0x70f3e9=_0x70f3e9['parent'];}return null;}(_0xd116df))['filter'](_0x60ec03=>!!_0x60ec03);_0x3eacbf=to(_0x4ca98f,_0x1ea00c['model']);}_0x1ea00c['model']['change'](()=>{for(const _0x16d379 of _0x3eacbf)_0x53fd5c['markBlockFormat'](_0x16d379,{'commandName':_0x43eccd,'commandParams':[{'forceValue':_0x52d6d0}]});});}),_0x53fd5c['descriptionFactory']['registerDescriptionCallback'](_0x758d41=>{const {data:_0x4fb606}=_0x758d41;if(_0x4fb606&&_0x4fb606['commandName']==_0x43eccd)return _0x4fb606['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34ed70,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x34ed70,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x1480f8{['afterInit'](){const _0x22dd13=this['editor'];if(!_0x22dd13['plugins']['has']('Style')||!_0x22dd13['plugins']['has']('DataSchema'))return;const _0x48eb9c=_0x22dd13['plugins']['get']('TrackChangesEditing'),_0x317ab1=_0x22dd13['locale'],_0x19d54=_0x22dd13['config']['get']('style')||{},_0x19fe67=_0x22dd13['plugins']['get']('GeneralHtmlSupport'),_0x31b678=_0x22dd13['plugins']['get']('StyleUtils')['normalizeConfig'](_0x22dd13['plugins']['get']('DataSchema'),_0x19d54['definitions']);_0x48eb9c['enableDefaultAttributesIntegration']('style');const _0x41f233=new Set();for(const _0x1204bf of _0x31b678['block']){const _0x1a7d5f=_0x19fe67['getGhsAttributeNameForElement'](_0x1204bf['element']);_0x41f233['add'](_0x1a7d5f);}const _0x392758=new Set();for(const _0x50c641 of _0x31b678['inline']){const _0x3f3a55=_0x19fe67['getGhsAttributeNameForElement'](_0x50c641['element']);_0x392758['add'](_0x3f3a55);for(const _0x123d49 of _0x50c641['ghsAttributes'])_0x392758['add'](_0x123d49);}for(const _0x5c00ba of _0x41f233)_0x48eb9c['descriptionFactory']['registerAttributeLabel'](_0x5c00ba,o(_0x317ab1,'FORMAT_STYLE'));for(const _0x2e93a2 of _0x392758)_0x48eb9c['descriptionFactory']['registerAttributeLabel'](_0x2e93a2,o(_0x317ab1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a6fd6=this['editor'],_0x11251e=_0x2a6fd6['locale'];_0x2a6fd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18d050=>{if('formatBlock'!=_0x18d050['type']&&'formatInline'!=_0x18d050['type'])return;const {data:_0x5f376f}=_0x18d050;return _0x5f376f&&'style'===_0x5f376f['commandName']?_0x5f376f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11251e,'*Set\x20format:*\x20%0',_0x5f376f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x11251e,'*Remove\x20format:*\x20%0',_0x5f376f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x1480f8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x485886){super(_0x485886),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x375a6d=this['editor'],_0x38bdc9=_0x375a6d['model']['document']['selection'];if(!_0x375a6d['plugins']['has']('TableEditing'))return;const _0xa8ff17=_0x375a6d['locale'],_0x5cb2ad=_0x375a6d['plugins']['get']('TrackChangesEditing'),_0x242d56=_0x375a6d['plugins']['get']('TableUtils');_0x5cb2ad['descriptionFactory']['registerElementLabel']('table',_0x765a4f=>o(_0xa8ff17,'ELEMENT_TABLE',_0x765a4f)),this['_setupColumnsRowsFixing'](),_0x5cb2ad['enableCommand']('insertTable'),_0x5cb2ad['enableCommand']('selectTableRow'),_0x5cb2ad['enableCommand']('selectTableColumn');for(const _0x35fe5f of['insertTableRowAbove','insertTableRowBelow']){const _0x505f72=_0x375a6d['commands']['get'](_0x35fe5f);_0x5cb2ad['enableCommand'](_0x35fe5f,_0x23037a=>{_0x375a6d['model']['change'](_0x4371cc=>{_0x23037a();const _0x1141a5='above'===_0x505f72['order'],_0x149a27=_0x242d56['getSelectionAffectedTableCells'](_0x38bdc9),_0x4b45a9=_0x242d56['getRowIndexes'](_0x149a27),_0x40b46d=_0x1141a5?_0x4b45a9['first']-0x1:_0x4b45a9['last']+0x1,_0x51af71=_0x149a27[0x0]['findAncestor']('table'),_0x5962a1=_0x242d56['createTableWalker'](_0x51af71,{'startRow':_0x40b46d,'endRow':_0x40b46d}),_0x168a84=Array['from'](_0x5962a1)['map'](_0x46a50b=>_0x4371cc['createRangeOn'](_0x46a50b['cell']));_0x5cb2ad['markMultiRangeInsertion'](_0x168a84,'tableRow');});});}for(const _0x3593d6 of['insertTableColumnLeft','insertTableColumnRight']){const _0xff07ac=_0x375a6d['commands']['get'](_0x3593d6);_0x5cb2ad['enableCommand'](_0x3593d6,_0x5c5c4e=>{_0x375a6d['model']['change'](_0x430270=>{_0x5c5c4e();const _0x1f854e='left'===_0xff07ac['order'],_0x1f1481=_0x242d56['getSelectionAffectedTableCells'](_0x38bdc9),_0x24868a=_0x242d56['getColumnIndexes'](_0x1f1481),_0x5b49fe=_0x1f854e?_0x24868a['first']-0x1:_0x24868a['last']+0x1,_0x277a41=_0x1f1481[0x0]['findAncestor']('table'),_0x11f475=_0x242d56['createTableWalker'](_0x277a41,{'startRow':0x0,'column':_0x5b49fe,'includeAllSlots':!0x1}),_0x12024b=Array['from'](_0x11f475)['map'](_0x35fc69=>_0x430270['createRangeOn'](_0x35fc69['cell']));_0x5cb2ad['markMultiRangeInsertion'](_0x12024b,'tableColumn');});});}for(const _0x4ce660 of['removeTableRow','removeTableColumn']){const _0x214534=_0x4ce660['substr'](0xb),_0xedda15=_0x214534['toLowerCase'](),_0x124d15=_0xedda15['substr'](0x0,0x3)+'span',_0x7b4f6e='table'+_0x214534,_0x4b196b='min'+_0x214534,_0x101585='max'+_0x214534;_0x5cb2ad['enableCommand'](_0x4ce660,()=>{_0x375a6d['model']['change'](_0xe67173=>{const _0x185653=_0x242d56['getSelectionAffectedTableCells'](_0x38bdc9),_0xca446c=_0x185653[0x0]['findAncestor']('table');let _0x301042;if('removeTableRow'==_0x4ce660){const _0x17aaf1=_0x242d56['getRowIndexes'](_0x185653);_0x301042={'startRow':_0x17aaf1['first'],'endRow':_0x17aaf1['last'],'includeAllSlots':!0x0};}else{const _0x280cd2=_0x242d56['getColumnIndexes'](_0x185653);_0x301042={'startColumn':_0x280cd2['first'],'endColumn':_0x280cd2['last'],'includeAllSlots':!0x0};}const _0x4eb5f9=_0x242d56['createTableWalker'](_0xca446c,_0x301042),_0x5e3e53=Array['from'](_0x4eb5f9)['map'](({cell:_0x450632})=>_0x450632),_0x4b144f=_e(_0x5e3e53['filter'](_0x524815=>_0x524815['hasAttribute'](_0x124d15))),_0xcc0fb7=_e(_0x5e3e53['filter'](_0x65fd33=>!_0x65fd33['hasAttribute'](_0x124d15)))['map'](_0xc9057f=>_0xe67173['createRangeOn'](_0xc9057f)),_0x58815c=_0x5cb2ad['markMultiRangeDeletion'](_0xcc0fb7,_0x7b4f6e);if(_0x58815c&&('tableRow'==_0x58815c['subType']||'tableColumn'==_0x58815c['subType'])){const _0x191a88=this['_getSuggestionCoords'](_0x58815c);for(const _0x1e2866 of _0x4b144f){const _0x5ce88a=_0xe67173['createRangeOn'](_0x1e2866),_0x3192db=_0x242d56['getCellLocation'](_0x1e2866),_0x4ff189=_0x1e2866['getAttribute'](_0x124d15)-0x1,_0x3f8c35=_0x191a88[_0x4b196b],_0x288122=_0x191a88[_0x101585];_0x3f8c35<=_0x3192db[_0xedda15]&&_0x3192db[_0xedda15]+_0x4ff189<=_0x288122&&_0x58815c['addRange'](_0x5ce88a);}}});});}function _0x5d7f35(_0xdf49cb){const _0x1c1b8d=Array['from'](_0x38bdc9['getRanges']())['map'](_0x364326=>_0x43f9b1['fromRange'](_0x364326));_0x375a6d['model']['change'](_0x3d0047=>{const _0x23e063=_0x3d0047['batch'];_0xdf49cb=_0xdf49cb['filter'](_0x4cf8d7=>'$graveyard'!=_0x4cf8d7['root']['rootName']),_0x3d0047['setSelection'](_0xdf49cb),_0x375a6d['commands']['get']('removeTableRow')['refresh'](),_0x375a6d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x375a6d['model']['enqueueChange'](()=>{_0x375a6d['model']['enqueueChange'](_0x23e063,_0x72337d=>{const _0x166726=_0x1c1b8d['filter'](_0x44f605=>'$graveyard'!=_0x44f605['root']['rootName']);_0x166726['length']>0x0&&_0x72337d['setSelection'](_0x166726);for(const _0x56b0f1 of _0x1c1b8d)_0x56b0f1['detach']();});});});}function _0x31924e(_0x1591f9){_0x375a6d['model']['change'](_0x424b36=>{const _0x3cd183=Array['from'](_0x38bdc9['getRanges']())['map'](_0x44ffce=>_0x43f9b1['fromRange'](_0x44ffce)),_0x287b1d=[];for(const _0x4a9482 of _0x1591f9)for(const _0x3dce3c of _0x4a9482['getItems']({'shallow':!0x0}))_0x287b1d['push'](_0x3dce3c);for(const _0x341b05 of _0x287b1d)'$graveyard'!=_0x341b05['root']['rootName']&&(_0x424b36['setSelection'](_0x424b36['createPositionAt'](_0x341b05,0x0)),_0x375a6d['commands']['get']('removeTableColumn')['refresh'](),_0x375a6d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x44b8ef=_0x3cd183['filter'](_0x14620a=>'$graveyard'!=_0x14620a['root']['rootName']);_0x44b8ef['length']>0x0&&_0x424b36['setSelection'](_0x44b8ef);for(const _0x3062ef of _0x3cd183)_0x3062ef['detach']();});}function _0x5b9f9d(_0x5895af,_0xb46170){return _0xb46170['every'](_0x477cac=>_0x5895af['some'](_0x58831e=>_0x58831e['end']['isEqual'](_0x477cac['start'])||_0x477cac['end']['isEqual'](_0x58831e['start'])));}function _0x1c70af(_0x3b3b3e,_0x1f1b37){return!_0x3b3b3e['some'](_0x298c72=>_0x1f1b37['some'](_0x31c93e=>_0x298c72['isIntersecting'](_0x31c93e)))&&_0x3b3b3e['some'](_0x35b8d5=>_0x1f1b37['some'](_0xdce874=>_0x35b8d5['end']['isTouching'](_0xdce874['start'])));}_0x5cb2ad['descriptionFactory']['registerDescriptionCallback'](_0x597098=>{if('insertion'!=_0x597098['type']&&'deletion'!=_0x597098['type'])return;const _0x4b173b=_0x597098['getContainedElement']();if(null!=_0x4b173b&&_0x4b173b['is']('element','table')){if('insertion'==_0x597098['type']){const _0x2665cf=_0x597098['getItems']()['filter'](_0x1bf6b9=>_0x1bf6b9['is']('$textProxy'))['map'](_0xa3a516=>_0xa3a516['data']);if(_0x2665cf['length'])return{'type':'insertion','content':o(_0xa8ff17,'*Insert:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2665cf['join']('\x20')+'\x22'))};}if('deletion'==_0x597098['type']){const _0x2742d4=_0x597098['getItems']()['filter'](_0x2da0ae=>_0x2da0ae['is']('$textProxy'))['map'](_0x3958eb=>_0x3958eb['data']);if(_0x2742d4['length'])return{'type':'deletion','content':o(_0xa8ff17,'*Remove:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2742d4['join']('\x20')+'\x22'))};}}}),_0x5cb2ad['descriptionFactory']['registerDescriptionCallback'](_0x34e849=>{if('tableRow'==_0x34e849['subType']){const _0x30b561=_0x34e849['getItems']()['filter'](_0xa85911=>_0xa85911['is']('$textProxy'))['map'](_0x6ca5fd=>_0x6ca5fd['data']),_0x154742=this['_getSuggestionCoords'](_0x34e849),_0x2888d8=_0x154742['maxRow']-_0x154742['minRow']+0x1;if('insertion'==_0x34e849['type'])return _0x30b561['length']?{'type':'insertion','content':o(_0xa8ff17,'*Insert:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2888d8,'\x22'+_0x30b561['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xa8ff17,'*Insert:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_ROW',_0x2888d8))};if('deletion'==_0x34e849['type'])return _0x30b561['length']?{'type':'deletion','content':o(_0xa8ff17,'*Remove:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2888d8,'\x22'+_0x30b561['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xa8ff17,'*Remove:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_ROW',_0x2888d8))};}if('tableColumn'==_0x34e849['subType']){const _0x3221b1=_0x34e849['getItems']()['filter'](_0x3a3653=>_0x3a3653['is']('$textProxy'))['map'](_0x3ac5ed=>_0x3ac5ed['data']),_0x4b4b5a=this['_getSuggestionCoords'](_0x34e849),_0xf8d831=_0x4b4b5a['maxColumn']-_0x4b4b5a['minColumn']+0x1;if('insertion'==_0x34e849['type'])return _0x3221b1['length']?{'type':'insertion','content':o(_0xa8ff17,'*Insert:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xf8d831,'\x22'+_0x3221b1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xa8ff17,'*Insert:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_COLUMN',_0xf8d831))};if('deletion'==_0x34e849['type'])return _0x3221b1['length']?{'type':'deletion','content':o(_0xa8ff17,'*Remove:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xf8d831,'\x22'+_0x3221b1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xa8ff17,'*Remove:*\x20%0',o(_0xa8ff17,'ELEMENT_TABLE_COLUMN',_0xf8d831))};}}),_0x5cb2ad['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d7f35),_0x5cb2ad['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d7f35),_0x5cb2ad['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x31924e),_0x5cb2ad['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x31924e),_0x5cb2ad['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b9f9d),_0x5cb2ad['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b9f9d),_0x5cb2ad['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1c70af),_0x5cb2ad['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1c70af);}['_acceptFormatSuggestionCallbackFactory'](){const _0x23d60e=this['editor'],_0x470d0c=_0x23d60e['model']['document']['selection'];return(_0x15cf50,_0x561a0e)=>{_0x23d60e['model']['change'](_0x463c40=>{const {commandName:_0x5ee29a,commandParams:_0x1e75ab}=_0x561a0e;let _0x488109=_0x15cf50[0x0]['end']['nodeBefore'];_0x1e75ab&&_0x1e75ab[0x0]&&!0x1===_0x1e75ab[0x0]['forceValue']&&(_0x488109=_0x15cf50[0x0]['start']['nodeAfter']);const _0x420aab=_0x463c40['createRangeIn'](_0x488109);if('$graveyard'==_0x420aab['root']['rootName'])return;const _0x82da4f=Array['from'](_0x470d0c['getRanges']())['map'](_0x3bf7e3=>_0x43f9b1['fromRange'](_0x3bf7e3));_0x463c40['setSelection'](_0x420aab),_0x23d60e['commands']['get'](_0x5ee29a)['refresh'](),_0x1e75ab['push']({'forceDefaultExecution':!0x0}),_0x23d60e['execute'](_0x5ee29a,..._0x1e75ab);const _0x5c2eb2=_0x82da4f['filter'](_0x1c9ae4=>'$graveyard'!=_0x1c9ae4['root']['rootName']);_0x5c2eb2['length']>0x0&&_0x463c40['setSelection'](_0x5c2eb2);for(const _0x1e30e7 of _0x82da4f)_0x1e30e7['detach']();});};}['_getCoordsForCells'](_0x44a3d8){const _0x549e46=this['editor']['plugins']['get']('TableUtils');let _0x80f763=Number['MAX_SAFE_INTEGER'],_0x4502f7=Number['MIN_SAFE_INTEGER'],_0x2a868b=Number['MAX_SAFE_INTEGER'],_0x2731c8=Number['MIN_SAFE_INTEGER'];for(const _0x365ad0 of _0x44a3d8){if('$graveyard'==_0x365ad0['root']['rootName'])continue;const {row:_0x5c9567,column:_0x1c0b62}=_0x549e46['getCellLocation'](_0x365ad0),_0x21b403=_0x365ad0['hasAttribute']('rowspan')?_0x365ad0['getAttribute']('rowspan')-0x1:0x0,_0x37e5ad=_0x365ad0['hasAttribute']('colspan')?_0x365ad0['getAttribute']('colspan')-0x1:0x0;_0x80f763=_0x5c9567<_0x80f763?_0x5c9567:_0x80f763,_0x4502f7=_0x5c9567+_0x21b403>_0x4502f7?_0x5c9567+_0x21b403:_0x4502f7,_0x2a868b=_0x1c0b62<_0x2a868b?_0x1c0b62:_0x2a868b,_0x2731c8=_0x1c0b62+_0x37e5ad>_0x2731c8?_0x1c0b62+_0x37e5ad:_0x2731c8;}return{'minRow':_0x80f763,'maxRow':_0x4502f7,'minColumn':_0x2a868b,'maxColumn':_0x2731c8};}['_setupColumnsRowsFixing'](){const _0x1df900=this['editor'],_0x166a4c=_0x1df900['plugins']['get']('TrackChangesEditing'),_0x50fbae=_0x1df900['plugins']['get']('TableUtils');_0x1df900['model']['document']['on']('change:data',()=>{const _0x1d4249=Array['from'](_0x1df900['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d8bff,data:_0x15516e}of _0x1d4249){const {group:_0x236ad4,id:_0x9e0b84,subType:_0x4ec9eb}=_0x166a4c['_splitMarkerName'](_0x4d8bff);if('suggestion'!=_0x236ad4)continue;if(null!=_0x15516e['oldRange'])continue;const _0x474da5=_0x166a4c['getSuggestion'](_0x9e0b84);this['_tablePostFixingSubtypes']['includes'](_0x4ec9eb)&&this['_tableSuggestions']['add'](_0x474da5);}},{'priority':'low'});const _0xe0c248=(_0x20733d,_0x5b05cf)=>{let _0x15bfb6=!0x1;const _0x2e7aac=_0x5b05cf['createRangeOn'](_0x20733d),_0x26c268=_0x20733d['findAncestor']('table'),_0x12de42=_0x50fbae['getCellLocation'](_0x20733d);for(const _0x1d2175 of this['_tableSuggestions']){const _0xc7e1b1=_0x1d2175['subType'],_0x5e643d=_0xc7e1b1['startsWith']('tablePaste'),_0xbc6c0b=_0xc7e1b1['substr'](_0x5e643d?0xa:0x5),_0x162a6c=_0xbc6c0b['toLowerCase'](),_0x27034a=_0x162a6c['substr'](0x0,0x3)+'span',_0x573d06='min'+_0xbc6c0b,_0x28c54d='max'+_0xbc6c0b;if(!_0x1d2175['isInContent'])continue;if(_0x26c268!=_0x1d2175['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1d2175['isIntersectingWithRange'](_0x2e7aac))continue;const _0x522275=_0x20733d['hasAttribute'](_0x27034a)?_0x20733d['getAttribute'](_0x27034a)-0x1:0x0,_0x484f0e=this['_getSuggestionCoords'](_0x1d2175),_0xe61eef=_0x484f0e[_0x573d06],_0x520cdc=_0x484f0e[_0x28c54d];_0xe61eef<=_0x12de42[_0x162a6c]&&_0x12de42[_0x162a6c]+_0x522275<=_0x520cdc&&(_0x1d2175['addRange'](_0x2e7aac),_0x15bfb6=!0x0);}return _0x15bfb6;};_0x1df900['model']['document']['registerPostFixer'](_0x4c3832=>{let _0x17b1ef=!0x1;for(const _0xddd32a of _0x1df900['model']['document']['differ']['getChanges']())if('insert'==_0xddd32a['type']){if('tableRow'==_0xddd32a['name']){for(const _0x1ba7e9 of _0xddd32a['position']['nodeAfter']['getChildren']())_0x17b1ef=_0x17b1ef||_0xe0c248(_0x1ba7e9,_0x4c3832);}else'tableCell'==_0xddd32a['name']&&(_0x17b1ef=_0x17b1ef||_0xe0c248(_0xddd32a['position']['nodeAfter'],_0x4c3832));}return _0x17b1ef;});}['_getSuggestionCoords'](_0x31c8a7){return this['_getCoordsForCells'](_0x31c8a7['getRanges']()['map'](_0x29e43b=>_0x29e43b['start']['nodeAfter']));}}function _e(_0x5b03a5){return Array['from'](new Set(_0x5b03a5)['values']());}class Bt extends _0x1480f8{static get['requires'](){return[Dt];}['afterInit'](){const _0x46fabd=this['editor'],_0x3327d9=_0x46fabd['model']['document']['selection'],_0x55c8a6=_0x46fabd['locale'];if(!_0x46fabd['plugins']['has']('TableEditing'))return;const _0x51209b=_0x46fabd['plugins']['get']('TrackChangesEditing'),_0x2cdb7b=_0x46fabd['plugins']['get']('TableUtils'),_0x308164=_0x46fabd['plugins']['get'](Dt);_0x308164['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x51209b['enableCommand']('mergeTableCells',()=>{const _0x2c7df7=_0x2cdb7b['getSelectionAffectedTableCells'](_0x46fabd['model']['document']['selection']);_0x46fabd['model']['change'](()=>{_0x51209b['markMultiRangeBlockFormat'](_0x2c7df7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x46fabd['commands']['get']('mergeTableCells')['on']('execute',(_0x544de5,_0x5f5d14)=>{_0x46fabd['commands']['get']('trackChanges')['value']&&(_0x5f5d14['length']>0x0&&_0x5f5d14[_0x5f5d14['length']-0x1]&&_0x5f5d14[_0x5f5d14['length']-0x1]['forceDefaultExecution']||_0x51209b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x544de5['stop']());},{'priority':'highest'});for(const _0xf976d4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x382bff=_0x46fabd['commands']['get'](_0xf976d4);_0x51209b['enableCommand'](_0xf976d4,()=>{const _0x40062a=_0x46fabd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e8dc9=>_0x3e8dc9['is']('element','tableCell')),_0x2fbe52=_0x382bff['value'];_0x46fabd['model']['change'](()=>{_0x51209b['markMultiRangeBlockFormat']([_0x40062a,_0x2fbe52],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x45a0fb of['splitTableCellVertically','splitTableCellHorizontally']){const _0xdfcb69=_0x46fabd['commands']['get'](_0x45a0fb);_0x51209b['enableCommand'](_0x45a0fb,()=>{const _0x151787=_0x2cdb7b['getSelectionAffectedTableCells'](_0x46fabd['model']['document']['selection'])[0x0],_0x26f8e3=_0x151787['findAncestor']('table'),{column:_0x5da14e,row:_0x4cb91e}=_0x2cdb7b['getCellLocation'](_0x151787);let _0xe92efb=[];if('horizontally'==_0xdfcb69['direction']){const _0x522a01=_0x2cdb7b['createTableWalker'](_0x26f8e3,{'startRow':_0x4cb91e,'endRow':_0x4cb91e,'includeAllSlots':!0x0});_0xe92efb=Array['from'](_0x522a01)['map'](_0x36135d=>_0x36135d['cell']);}else{const _0x35dc81=_0x2cdb7b['createTableWalker'](_0x26f8e3,{'column':_0x5da14e,'includeAllSlots':!0x0});_0xe92efb=Array['from'](_0x35dc81)['map'](_0x4bacad=>_0x4bacad['cell']);}_0x46fabd['model']['change'](_0x5f2e2d=>{_0x51209b['markBlockFormat'](_0x5f2e2d['createRangeOn'](_0x151787),{'commandName':_0x45a0fb,'commandParams':[]},_0xe92efb,_0x45a0fb);});});}_0x51209b['descriptionFactory']['registerDescriptionCallback'](_0x16416c=>{if('formatBlock'!=_0x16416c['type']&&'formatInline'!=_0x16416c['type'])return;const {data:_0x14f7ec}=_0x16416c;return _0x14f7ec&&'mergeTableCells'==_0x14f7ec['commandName']?{'type':'format','content':o(_0x55c8a6,'*Merge\x20cells*')}:void 0x0;}),_0x51209b['descriptionFactory']['registerDescriptionCallback'](_0x33330b=>{if('formatBlock'!=_0x33330b['type']&&'formatInline'!=_0x33330b['type'])return;const {data:_0xccfa56}=_0x33330b;return _0xccfa56?'splitTableCellVertically'==_0xccfa56['commandName']?{'type':'format','content':o(_0x55c8a6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xccfa56['commandName']?{'type':'format','content':o(_0x55c8a6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1f82ec=_0x308164['_acceptFormatSuggestionCallbackFactory']();for(const _0x218b33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x51209b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x218b33,'accept',_0x1f82ec);for(const _0x4c3b87 of['splitTableCellVertically','splitTableCellHorizontally'])_0x51209b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c3b87,'accept',_0x1f82ec);_0x51209b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x199d74=>{_0x46fabd['model']['change'](_0x40a9a1=>{const _0x4fa22f=Array['from'](_0x3327d9['getRanges']())['map'](_0x24e56b=>_0x43f9b1['fromRange'](_0x24e56b));_0x40a9a1['setSelection'](_0x199d74),_0x46fabd['commands']['get']('mergeTableCells')['refresh'](),_0x46fabd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x41b72f=_0x4fa22f['filter'](_0x15629d=>'$graveyard'!=_0x15629d['root']['rootName']);_0x41b72f['length']>0x0&&_0x40a9a1['setSelection'](_0x41b72f);for(const _0x3c3906 of _0x4fa22f)_0x3c3906['detach']();});});for(const _0x27578f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x544eab=_0x46fabd['commands']['get'](_0x27578f);_0x544eab['on']('set:isEnabled',(_0x4399ab,_0x442841,_0x5a89ca)=>{if(_0x5a89ca){const _0x5514fd=_0x46fabd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x228474=>_0x228474['is']('element','tableCell'));this['_areMergableCells'](_0x544eab['value'],_0x5514fd)||(_0x4399ab['return']=!0x1,_0x4399ab['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x11c3dd=this['editor']['commands']['get']('mergeTableCells'),_0x1b0588=this['editor']['plugins']['get']('TableUtils');if(!_0x11c3dd['isEnabled'])return!0x1;const _0x1da707=_0x1b0588['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1c7f9a of _0x1da707)for(const _0x2a9a76 of _0x1da707)if(_0x1c7f9a!=_0x2a9a76&&!this['_areMergableCells'](_0x1c7f9a,_0x2a9a76))return!0x1;return!0x0;}['_areMergableCells'](_0xee4c4,_0x227e63){const _0xaa1703=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12193f=this['editor']['model']['createRangeOn'](_0xee4c4),_0x49569d=this['editor']['model']['createRangeOn'](_0x227e63),_0x5a35ef=new Set(),_0x406ba4=new Set();for(const _0xb737b3 of _0xaa1703['getSuggestions']())if(('insertion'==_0xb737b3['type']||'deletion'==_0xb737b3['type']||'mergeTableCells'==_0xb737b3['subType'])&&_0xb737b3['isInContent']){for(const _0x137bb7 of _0xb737b3['getRanges']())_0x137bb7['containsRange'](_0x12193f,!0x0)&&_0x5a35ef['add'](_0xb737b3['type']+':'+_0xb737b3['author']['id']),_0x137bb7['containsRange'](_0x49569d,!0x0)&&_0x406ba4['add'](_0xb737b3['type']+':'+_0xb737b3['author']['id']);}if(_0x5a35ef['size']!=_0x406ba4['size'])return!0x1;for(const _0x2d2034 of _0x5a35ef)if(!_0x406ba4['has'](_0x2d2034))return!0x1;return!0x0;}}class Ot extends _0x1480f8{static get['requires'](){return[Dt];}['afterInit'](){const _0x14ed9c=this['editor'];if(!_0x14ed9c['plugins']['has']('TableEditing'))return;const _0x215769=_0x14ed9c['locale'],_0x4ca530=_0x14ed9c['plugins']['get']('TrackChangesEditing');_0x4ca530['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4ca530['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4ca530['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x215769,'FORMAT_HEADER_ROW')),_0x4ca530['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x215769,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x254a81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4aa14b=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x254a81['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4aa14b),_0x254a81['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4aa14b),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xcd02f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48e147=this['editor']['plugins']['get']('TableUtils');function _0x46a0aa({showActiveMarker:_0x1dc7d6=!0x0,setDataAttribute:_0x35b2e4=!0x0}={}){return(_0x2a643a,_0x2691bd,_0x461b61)=>{const {type:_0x153335,id:_0x365eca}=_0xcd02f3['_splitMarkerName'](_0x2691bd['markerName']);if(!_0xcd02f3['hasSuggestion'](_0x365eca))return;const _0x394a3e=_0xcd02f3['getSuggestion'](_0x365eca),_0x18a2fb=_0x394a3e['data'];if('formatBlock'!=_0x394a3e['type']||!_0x18a2fb||'setTableColumnHeader'!=_0x18a2fb['commandName'])return;if(_0x2691bd['item'])return void _0x2a643a['stop']();if(!_0x461b61['consumable']['consume'](_0x2691bd['markerRange'],_0x2a643a['name']))return;const _0x4a21ee=_0x2691bd['markerRange']['start']['nodeAfter'],_0x48e721=_0x2691bd['markerRange']['end']['nodeBefore'],_0x44b3e6=_0x4a21ee['parent']['parent'],{column:_0x374521}=_0x48e147['getCellLocation'](_0x4a21ee),{column:_0x3fd94d}=_0x48e147['getCellLocation'](_0x48e721);for(let _0x137ea7=_0x374521;_0x137ea7<=_0x3fd94d;_0x137ea7++){const _0x8600a2=_0x48e147['createTableWalker'](_0x44b3e6,{'column':_0x137ea7,'includeAllSlots':!0x1});for(const _0x1bca8e of _0x8600a2){const _0x4b4335=_0x1bca8e['cell'],_0x2d498d=_0x461b61['mapper']['toViewElement'](_0x4b4335);_0x461b61['writer']['addClass']('ck-suggestion-marker-'+_0x153335,_0x2d498d),_0x35b2e4&&_0x461b61['writer']['setAttribute']('data-suggestion',_0x365eca,_0x2d498d),_0x461b61['mapper']['bindElementToMarker'](_0x2d498d,_0x2691bd['markerName']),_0x1dc7d6&&(_0xcd02f3['activeMarkers']['includes'](_0x2691bd['markerName'])?_0x461b61['writer']['addClass']('ck-suggestion-marker--active',_0x2d498d):_0x461b61['writer']['removeClass']('ck-suggestion-marker--active',_0x2d498d));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46a0aa(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c4ced,_0x168f20,_0x5e53f5)=>{_0x5e53f5['options']['showSuggestionHighlights']&&_0x46a0aa({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c4ced,_0x168f20,_0x5e53f5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xc9e947,_0x4b1efc,_0x1326f8)=>{const {type:_0x21f169,id:_0x329137}=_0xcd02f3['_splitMarkerName'](_0x4b1efc['markerName']);if(!_0xcd02f3['hasSuggestion'](_0x329137))return;const _0xd80847=_0xcd02f3['getSuggestion'](_0x329137),_0x291914=_0xd80847['data'];if('formatBlock'!=_0xd80847['type']||!_0x291914||'setTableColumnHeader'!=_0x291914['commandName'])return;const _0x2eb368=_0x1326f8['mapper']['markerNameToElements'](_0x4b1efc['markerName']);if(_0x2eb368){for(const _0x215cdd of _0x2eb368)_0x1326f8['writer']['removeClass']('ck-suggestion-marker-'+_0x21f169,_0x215cdd),_0x1326f8['writer']['removeClass']('ck-suggestion-marker--active',_0x215cdd),_0x1326f8['writer']['removeAttribute']('data-suggestion',_0x215cdd),_0x1326f8['mapper']['unbindElementFromMarkerName'](_0x215cdd,_0x4b1efc['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0xf27880=this['editor'],_0x251531=_0xf27880['locale'];function _0x33f8c4(_0x5cf854){return{'type':'format','content':o(_0x251531,'*Format:*\x20%0',_0x5cf854)};}_0xf27880['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x549e8a=>{if('formatBlock'!=_0x549e8a['type'])return;const {data:_0x2aeb66}=_0x549e8a;if(_0x2aeb66){if('setTableRowHeader'==_0x2aeb66['commandName']){const _0x6bfd68=_0x2aeb66['commandParams'][0x0]['forceValue'];return _0x33f8c4(o(_0x251531,_0x6bfd68?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2aeb66['commandName']){const _0x185cf0=_0x2aeb66['commandParams'][0x0]['forceValue'];return _0x33f8c4(o(_0x251531,_0x185cf0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x1480f8{['afterInit'](){const _0x597c22=this['editor'],_0x41a153=_0x597c22['locale'],_0x2778b0=_0x597c22['plugins']['get']('TrackChangesEditing');function _0x519885(_0x135a7f){return{'type':'format','content':''+o(_0x41a153,'*Set\x20table\x20type:*\x20%0',_0x135a7f)};}_0x597c22['plugins']['has']('TableLayout')&&(_0x2778b0['enableCommand']('insertTableLayout'),_0x2778b0['enableDefaultAttributesIntegration']('tableType'),_0x2778b0['descriptionFactory']['registerElementLabel'](_0x271250=>_0x271250['is']('element','table')&&'layout'===_0x271250['getAttribute']('tableType'),_0x4b7358=>o(_0x41a153,'ELEMENT_LAYOUT_TABLE',_0x4b7358)),_0x2778b0['descriptionFactory']['registerDescriptionCallback'](_0x417424=>{const {data:_0x34ca17}=_0x417424;if(_0x34ca17&&'tableType'==_0x34ca17['key'])switch(_0x34ca17['newValue']){case'layout':return _0x519885(o(_0x41a153,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x519885(o(_0x41a153,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x49b0f2=>[_0x49b0f2,null]));class Mt extends _0x1480f8{static get['requires'](){return[Dt];}['afterInit'](){const _0x395c5b=this['editor'];if(!_0x395c5b['plugins']['has']('TableClipboard'))return;const _0x2fd1dd=_0x395c5b['plugins']['get']('TrackChangesEditing'),_0x71d0da=_0x395c5b['plugins']['get']('TableUtils'),_0x2a88df=_0x395c5b['plugins']['get'](Dt),_0x6cf8ef=_0x395c5b['plugins']['get']('TableClipboard'),_0xf2a429=_0x395c5b['plugins']['get']('TableSelection'),_0x1d9dcf=_0x395c5b['plugins']['get'](_0x22fa6f);_0x2a88df['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x395c5b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x395c5b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4e7d5b=null,_0xe8e8c2=!0x1;_0x1d9dcf['on']('contentInsertion',(_0x38def3,_0x15bc56)=>{_0xe8e8c2='paste'===_0x15bc56['method'];}),_0x395c5b['model']['on']('insertContent',(_0x476728,_0x3780bc)=>{if(!_0xe8e8c2&&null===_0xf2a429['getSelectedTableCells']())return;const [_0x1b1c6d,_0x581547]=_0x3780bc,_0x343d68=_0x3780bc[_0x3780bc['length']-0x1];_0x343d68&&_0x343d68['forceDefaultExecution']||_0x2fd1dd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4de3da,_0xea5ead,_0x162925,_0x5743b6,_0x157bd8){if(_0xea5ead&&!_0xea5ead['is']('documentSelection'))return!0x1;const _0x5ba804=_0x157bd8['getTableIfOnlyTableInContent'](_0x4de3da,_0x162925);if(!_0x5ba804||!Oe(_0x5ba804,void 0x0,_0x5743b6))return!0x1;const _0x174873=_0x5743b6['getSelectionAffectedTableCells'](_0x162925['document']['selection']);if(!_0x174873['length'])return!0x1;const _0x2e6e64=_0x174873[0x0]['findAncestor']('table'),_0xfca382=_0x5743b6['getRowIndexes'](_0x174873),_0x56289e=_0x5743b6['getColumnIndexes'](_0x174873),_0xc472e3={'startRow':_0xfca382['first'],'endRow':_0xfca382['last'],'startColumn':_0x56289e['first'],'endColumn':_0x56289e['last']};return 0x1==_0x174873['length']&&(_0xc472e3['endRow']+=_0x5743b6['getRows'](_0x5ba804)-0x1,_0xc472e3['endColumn']+=_0x5743b6['getColumns'](_0x5ba804)-0x1),Oe(_0x2e6e64,_0xc472e3,_0x5743b6);}(_0x1b1c6d,_0x581547,_0x395c5b['model'],_0x71d0da,_0x6cf8ef)&&(_0x476728['stop'](),_0x4e7d5b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x395c5b['model']['change'](()=>{_0x395c5b['model']['insertContent'](_0x3780bc[0x0],_0x3780bc[0x1],_0x3780bc[0x2],{'forceDefaultExecution':!0x0});const _0x147bf5=_0x1bc03f(),{rowInsertionRanges:_0xf04c19,columnInsertionRanges:_0x4fffd1,insertionRanges:_0x4448e6,deletionRanges:_0x544555,cells:_0x5ad355}=_0x4e7d5b;_0xf04c19['length']&&_0x2fd1dd['markMultiRangeInsertion'](_0xf04c19,'tablePasteRow',{'tablePasteChainId':_0x147bf5}),_0x4fffd1['length']&&_0x2fd1dd['markMultiRangeInsertion'](_0x4fffd1,'tablePasteColumn',{'tablePasteChainId':_0x147bf5}),_0x4448e6['length']&&(_0x2fd1dd['markMultiRangeInsertion'](_0x4448e6,'tablePaste',{'tablePasteChainId':_0x147bf5,'skipNestingCheck':!0x0}),_0x4448e6['forEach'](_0x3084c3=>_0x3084c3['detach']?.())),_0x544555['length']&&(_0x2fd1dd['markMultiRangeDeletion'](_0x544555,'tablePaste',{'tablePasteChainId':_0x147bf5,'skipNestingCheck':!0x0}),_0x544555['forEach'](_0x4390bd=>_0x4390bd['detach']?.()));const _0x494851=_0x2fd1dd['markMultiRangeBlockFormat'](_0x5ad355['map'](({element:_0x18e47c})=>_0x18e47c),{'formatGroupId':_0x1bc03f()},[],'tablePasteCell',{'tablePasteChainId':_0x147bf5});if(_0x494851){const _0x6954b3=_0x494851['getMarkers'](),_0x4d0e3e=[];for(const {element:_0x31d895,attributes:_0x450d7b}of _0x5ad355){if(!_0x450d7b)continue;const _0x424c8b=_0x395c5b['model']['createRangeOn'](_0x31d895),_0x58f171=_0x6954b3['find'](_0x3bd0=>_0x3bd0['getRange']()['isEqual'](_0x424c8b));_0x58f171&&_0x4d0e3e['push']([_0x58f171['name'],_0x450d7b]);}_0x4d0e3e['length']&&_0x494851['setAttribute']('markerAttributes',Object['fromEntries'](_0x4d0e3e));}_0x4e7d5b=null;}));},{'priority':_0x5d885f['high']+0xa}),_0x1d9dcf['on']('contentInsertion',()=>{_0xe8e8c2=!0x1;},{'priority':'lowest'}),_0x395c5b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33ffc5,_0x3da84c)=>{const [_0x13267b,_0x21e261,,_0x43c19b]=_0x3da84c;if(!_0x4e7d5b)return;_0x33ffc5['stop']();const _0xff6238=_0x13267b['cell'],_0x284a75=_0x21e261,_0x376ccb=Be(_0xff6238),_0x87286d=Be(_0x284a75);_0x33ffc5['return']=_0xff6238;let _0x2d3431=null,_0x19c6c3=null;if(_0x87286d||_0x376ccb){if(_0x376ccb&&!_0x87286d){_0x43c19b['remove'](_0xff6238['getChild'](0x0));for(const _0x4b9568 of Array['from'](_0x284a75['getChildren']()))_0x43c19b['insert'](_0x4b9568,_0xff6238,'end');const _0x56e812=_0x4e7d5b['rowInsertionIndexes']['includes'](_0x13267b['row']),_0x222bdd=_0x4e7d5b['columnInsertionIndexes']['includes'](_0x13267b['column']);_0x56e812||_0x222bdd||(_0x2d3431=_0x43f9b1['fromRange'](_0x43c19b['createRangeIn'](_0xff6238)));}else _0x87286d&&!_0x376ccb&&(_0x19c6c3=_0x43c19b['createRangeIn'](_0xff6238));}else{const _0x1849d8=_0x43c19b['createElement']('tableCellSuggestion'),_0x1c4bf9=_0x43c19b['createElement']('tableCellSuggestion');_0x43c19b['wrap'](_0x43c19b['createRangeIn'](_0xff6238),_0x1c4bf9),_0x43c19b['insert'](_0x1849d8,_0xff6238,0x0);for(const _0x4ba3ee of Array['from'](_0x284a75['getChildren']()))_0x43c19b['insert'](_0x4ba3ee,_0x1849d8,'end');_0x2d3431=_0x43f9b1['fromRange'](_0x43c19b['createRangeOn'](_0x1849d8)),_0x19c6c3=_0x43f9b1['fromRange'](_0x43c19b['createRangeOn'](_0x1c4bf9));}const _0xb8740f=Array['from'](_0x284a75['getAttributes']())['filter'](([_0x1417ad])=>Re['includes'](_0x1417ad));_0x4e7d5b['cells']['push']({'element':_0xff6238,'attributes':_0xb8740f['length']?Object['fromEntries'](_0xb8740f):null}),_0x2d3431&&_0x4e7d5b['insertionRanges']['push'](_0x2d3431),_0x19c6c3&&_0x4e7d5b['deletionRanges']['push'](_0x19c6c3);},{'priority':'high'}),_0x71d0da['on']('insertColumns',(_0x5c4a6b,_0x4b913a)=>{const [_0x5b9b58,_0x28c101={}]=_0x4b913a;if(!_0x4e7d5b)return;const _0x43d707=_0x28c101['at']||0x0,_0x2b266d=_0x28c101['columns']||0x1;_0x4e7d5b['columnInsertionIndexes']=new Array(_0x2b266d)['fill'](_0x43d707)['map']((_0xc14b6e,_0x2f2bba)=>_0xc14b6e+_0x2f2bba);for(const {cell:_0x1988d1}of _0x71d0da['createTableWalker'](_0x5b9b58,{'startColumn':_0x43d707,'endColumn':_0x43d707+_0x2b266d-0x1}))_0x4e7d5b['columnInsertionRanges']['push'](_0x395c5b['model']['createRangeOn'](_0x1988d1));},{'priority':'low'}),_0x71d0da['on']('insertRows',(_0x12ace8,_0x3d19bd)=>{const [_0x2b032f,_0x591378={}]=_0x3d19bd;if(!_0x4e7d5b)return;const _0x8caa5d=_0x591378['at']||0x0,_0x2a666f=_0x591378['rows']||0x1;_0x4e7d5b['rowInsertionIndexes']=new Array(_0x2a666f)['fill'](_0x8caa5d)['map']((_0x2faa20,_0x17a7c2)=>_0x2faa20+_0x17a7c2);for(const {cell:_0x4f93c3}of _0x71d0da['createTableWalker'](_0x2b032f,{'startRow':_0x8caa5d,'endRow':_0x8caa5d+_0x2a666f-0x1}))_0x4e7d5b['rowInsertionRanges']['push'](_0x395c5b['model']['createRangeOn'](_0x4f93c3));},{'priority':'low'}),_0x2fd1dd['descriptionFactory']['registerDescriptionCallback'](_0x1665cf=>{if(_0x1665cf['subType']&&_0x1665cf['subType']['startsWith']('tablePaste'))return _0x1665cf['previous']?{}:{'type':'insertion','content':o(_0x395c5b['locale'],'*Replace\x20table\x20cells*')};});const _0x32e94e=()=>!0x1;for(const _0x282f30 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2fd1dd['_suggestionFactory']['registerCustomCallback']('insertion',_0x282f30,'join',_0x32e94e),_0x2fd1dd['_suggestionFactory']['registerCustomCallback']('deletion',_0x282f30,'join',_0x32e94e),_0x2fd1dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x282f30,'join',_0x32e94e);_0x2fd1dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x32e94e),_0x2fd1dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x541132,_0xa5428d,_0x581747)=>{const _0x485374=_0x541132['map'](_0x132d21=>_0x132d21['getContainedElement']())['filter'](_0x564234=>_0x564234),_0x1425d1=new Map(_0x485374['map'](_0x16dd48=>[_0x16dd48,null]));if(_0x4e7d5b){for(const {element:_0x324720,attributes:_0x317f99}of _0x4e7d5b['cells'])_0x317f99&&_0x1425d1['set'](_0x324720,_0x317f99);}else{if(_0x581747&&_0x581747['markerAttributes'])for(const [_0x42023e,_0x4007d2]of Object['entries'](_0x581747['markerAttributes'])){const _0x236df7=_0x395c5b['model']['markers']['get'](_0x42023e),_0x3c8662=_0x236df7?_0x236df7['getRange']()['getContainedElement']():null;_0x3c8662&&_0x1425d1['set'](_0x3c8662,_0x4007d2);}}_0x395c5b['model']['change'](_0x5b891b=>{for(const [_0x1e5e77,_0x29feec]of _0x1425d1)_0x5b891b['setAttributes']({...Ae,..._0x29feec},_0x1e5e77);});});const _0x273452=(_0x565b7c,_0x447faf)=>{_0x2fd1dd['_suggestionFactory']['registerCustomCallback'](_0x565b7c,'tablePaste',_0x447faf,(_0x19e3aa,_0x4e8705,_0x326374)=>{_0x395c5b['model']['change'](_0x2ecfd0=>{const _0x2f5341=[];for(const _0x46b948 of _0x19e3aa){const _0x191baf=_0x46b948['start']['nodeAfter'];_0x191baf['is']('element','tableCellSuggestion')&&_0x2f5341['push'](_0x191baf);}_0x2fd1dd['_suggestionFactory']['getSuggestionCallback'](_0x565b7c,null,_0x447faf)(_0x19e3aa,_0x4e8705,_0x326374);for(const _0x136796 of _0x2f5341)'$graveyard'!=_0x136796['root']['rootName']&&_0x2ecfd0['unwrap'](_0x136796);});});};_0x273452('insertion','accept'),_0x273452('insertion','discard'),_0x273452('deletion','accept'),_0x273452('deletion','discard'),_0x2fd1dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x8aa261=>{const _0x51aede=_0x8aa261['map'](_0x4630b8=>_0x4630b8['getContainedElement']()),_0x320c53=_0x51aede[0x0]['findAncestor']('table'),{minRow:_0x7061b3,maxRow:_0x15d178}=_0x2a88df['_getCoordsForCells'](_0x51aede);_0x71d0da['removeRows'](_0x320c53,{'at':_0x7061b3,'rows':_0x15d178-_0x7061b3+0x1});}),_0x2fd1dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x20883e=>{const _0x4175ea=_0x20883e['map'](_0x2edb41=>_0x2edb41['getContainedElement']()),_0x8c4434=_0x4175ea[0x0]['findAncestor']('table'),{minColumn:_0x4b64f2,maxColumn:_0x557d1f}=_0x2a88df['_getCoordsForCells'](_0x4175ea);_0x71d0da['removeColumns'](_0x8c4434,{'at':_0x4b64f2,'columns':_0x557d1f-_0x4b64f2+0x1});});const _0x20e941=(_0x5ac0ae,_0x4fc2f9)=>{if(!_0x4fc2f9['subType']||!_0x4fc2f9['subType']['startsWith']('tablePaste'))return;const _0x4f62d1=_0x4fc2f9['attributes']['tablePasteChainId'],_0x501509=_0x2fd1dd['getSuggestions']()['filter'](_0xee6711=>_0xee6711['isInContent']&&_0xee6711['attributes']&&_0xee6711['attributes']['tablePasteChainId']==_0x4f62d1);_0x501509['length']&&_0x4fc2f9['getAllAdjacentSuggestions']()['length']!=_0x501509['length']&&_0x501509['reduce']((_0x168659,_0x2c6da0)=>(_0x168659['next']=_0x2c6da0,_0x2c6da0['previous']=_0x168659,_0x2c6da0));};function _0x5304fb(_0x26061d,_0x47d13d=!0x0){const {id:_0x16d7f1,authorId:_0x54a860}=_0x2fd1dd['_splitMarkerName'](_0x26061d['markerName']),_0x1d8584=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x25a512=_0x2fd1dd['activeMarkers']['includes'](_0x26061d['markerName']);return _0x25a512&&_0x1d8584['push']('ck-suggestion-marker--active'),{'classes':_0x1d8584,'attributes':{'data-suggestion':_0x16d7f1,'data-author-id':_0x54a860},'priority':_0x25a512&&_0x47d13d?0xbc2:0xbb8};}_0x2fd1dd['on']('suggestionLoaded',_0x20e941,{'priority':'high'}),_0x2fd1dd['on']('suggestionUnloaded',_0x20e941,{'priority':'high'}),_0x395c5b['model']['document']['registerPostFixer'](()=>{let _0x22ac86=!0x1;const _0x1ece84=Array['from'](_0x395c5b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fab5d,data:_0x4894f9}of _0x1ece84){const {group:_0x5d94b8,type:_0x263263,id:_0x4c3fc6}=_0x2fd1dd['_splitMarkerName'](_0x3fab5d);if('suggestion'!=_0x5d94b8||'deletion'!=_0x263263||_0x4894f9['oldRange'])continue;if(!_0x2fd1dd['hasSuggestion'](_0x4c3fc6))continue;const _0x454267=_0x2fd1dd['getSuggestion'](_0x4c3fc6)['getRanges'](),_0x501497=_0x395c5b['plugins']['get']('Users')['me'];for(const _0x3da898 of _0x2fd1dd['getSuggestions']()){if(!_0x3da898['isInContent']||_0x3da898['author']!=_0x501497)continue;if('formatBlock'!=_0x3da898['type']||'tablePasteCell'!=_0x3da898['subType'])continue;if(_0x3da898['getRanges']()['every'](_0x41f753=>_0x454267['some'](_0x3f796d=>_0x3f796d['containsRange'](_0x41f753,!0x0)))){for(const _0x524d1e of _0x3da898['getAllAdjacentSuggestions']())_0x524d1e['isInContent']&&(_0x524d1e['discard'](),_0x22ac86=!0x0);}}}return _0x22ac86;}),_0x395c5b['model']['document']['registerPostFixer'](_0x30cc1f=>{const _0x5a86f8=_0x395c5b['commands']['get']('redo');if(!_0x5a86f8||!_0x5a86f8['_createdBatches']['has'](_0x30cc1f['batch']))return!0x1;let _0x34e3e2=!0x1;const _0x57123b=_0x395c5b['plugins']['get']('Users')['me'],_0x1d82de=_0x395c5b['model']['document']['differ']['getChanges'](),_0x2975c8=Array['from'](_0x395c5b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xbc251d,data:_0x582e83})=>{const {group:_0x5a48ed,subType:_0x1ee493,authorId:_0x252786}=_0x2fd1dd['_splitMarkerName'](_0xbc251d);return'suggestion'==_0x5a48ed&&'tablePaste'==_0x1ee493&&_0x252786==_0x57123b['id']&&!_0x582e83['oldRange'];});for(const _0x253191 of _0x1d82de){if('insert'!=_0x253191['type']||'tableCellSuggestion'!=_0x253191['name']||0x1!=_0x253191['length'])continue;const _0x5b28c8=_0x30cc1f['createRange'](_0x253191['position'],_0x253191['position']['getShiftedBy'](0x1));if(!_0x2975c8['find'](({data:_0x3464ff})=>_0x3464ff['newRange']['isEqual'](_0x5b28c8))){for(const {name:_0x2451b6,data:_0x482a0c}of _0x2975c8)if(_0x5b28c8['containsRange'](_0x482a0c['newRange'])){_0x30cc1f['updateMarker'](_0x2451b6,{'range':_0x5b28c8}),_0x34e3e2=!0x0;break;}}}return _0x34e3e2;}),_0x395c5b['model']['document']['registerPostFixer'](_0x5e954e=>{let _0x5eff52=!0x1;const _0x136d01=_0x395c5b['plugins']['get']('Users')['me'],_0xd434e8=_0x2fd1dd['getSuggestions']()['filter'](_0x5eac6c=>_0x5eac6c['isInContent']&&_0x5eac6c['author']==_0x136d01),_0x23f99d=new Set(),_0xd5ff86=new Set();for(const _0x5a4ef7 of _0xd434e8)if('tablePaste'==_0x5a4ef7['subType'])for(const _0x48a6c6 of _0x5a4ef7['getMarkers']()){const _0x50fdc3=_0x48a6c6['getRange']()['getContainedElement']();if(_0x50fdc3){if(_0x50fdc3['is']('element','tableCellSuggestion')&&Be(_0x50fdc3)){_0x5a4ef7['removeMarker'](_0x48a6c6['name']),_0x23f99d['add'](_0x50fdc3),_0x5eff52=!0x0;const _0x5e0473=_0x50fdc3['nextSibling'],_0x3b6498=_0x50fdc3['previousSibling'],_0x55c59f=_0x5e0473&&_0x5e0473['is']('element','tableCellSuggestion'),_0x3586f6=_0x3b6498&&_0x3b6498['is']('element','tableCellSuggestion');_0x55c59f&&!_0x23f99d['has'](_0x5e0473)&&_0xd5ff86['add'](_0x5e0473),_0x3586f6&&!_0x23f99d['has'](_0x3b6498)&&_0xd5ff86['add'](_0x3b6498);}else _0x50fdc3['is']('element','paragraph')&&_0x50fdc3['isEmpty']&&(_0x5a4ef7['removeMarker'](_0x48a6c6['name']),_0x5eff52=!0x0);}}else{if('tablePasteCell'==_0x5a4ef7['subType']){if(!_0x5a4ef7['attributes']||!_0x5a4ef7['attributes']['tablePasteChainId'])continue;const _0x574ec4=_0x5a4ef7['attributes']['markerAttributes'];if(_0x574ec4&&Object['keys'](_0x574ec4)['length'])continue;const _0x92683f=_0x5a4ef7['attributes']['tablePasteChainId'];let _0x329108=!0x0,_0x2d23fa=!0x0;for(const _0x44d133 of _0xd434e8)if(_0x44d133['subType']&&_0x44d133['subType']['startsWith']('tablePaste')){if(!_0x44d133['attributes']['tablePasteChainId']){_0x2d23fa=!0x1;break;}if(_0x44d133['id']!=_0x5a4ef7['id']&&_0x44d133['attributes']['tablePasteChainId']==_0x92683f){_0x329108=!0x1;break;}}_0x2d23fa&&_0x329108&&(_0x5a4ef7['removeMarkers'](),_0x5eff52=!0x0);}}for(const _0x21d8e3 of _0x23f99d)_0x5e954e['remove'](_0x21d8e3);for(const _0x1f5ba8 of _0xd5ff86)_0x5e954e['unwrap'](_0x1f5ba8);return _0x5eff52;}),_0x395c5b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5e1386=>_0x5304fb(_0x5e1386),'converterPriority':'high'}),_0x395c5b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5871cb,_0x59871a)=>_0x59871a['options']['showSuggestionHighlights']?_0x5304fb(_0x5871cb,!0x1):null,'converterPriority':'high'});const _0x25f166=_0x395c5b['editing']['view'];this['listenTo'](_0x25f166['document'],'clipboardOutput',(_0x2ff418,_0xc72677)=>{const _0x49d5c2=[];for(const _0x408881 of _0x25f166['createRangeIn'](_0xc72677['content'])['getItems']())_0x408881['is']('element','suggestion-td')&&_0x49d5c2['push'](_0x408881);_0x25f166['change'](_0x53769d=>{for(const _0x1dcbc1 of _0x49d5c2)_0x53769d['move'](_0x53769d['createRangeIn'](_0x1dcbc1),_0x53769d['createPositionBefore'](_0x1dcbc1)),_0x53769d['remove'](_0x1dcbc1);});});}}function Be(_0x36bb07){if(_0x36bb07['isEmpty'])return!0x0;const _0x5ede91=_0x36bb07['getChild'](0x0);return _0x5ede91['is']('element','paragraph')&&_0x5ede91['isEmpty'];}function Oe(_0x402812,_0x3374e4={},_0x1e7e0a){for(const {isAnchor:_0x5dbdcb,cellHeight:_0x48ba87,cellWidth:_0x91f56f}of _0x1e7e0a['createTableWalker'](_0x402812,{'includeAllSlots':!0x0,..._0x3374e4}))if(!_0x5dbdcb||0x1!=_0x48ba87||0x1!=_0x91f56f)return!0x1;return!0x0;}class Rt extends _0x1480f8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x170319=this['editor']['plugins']['get']('TrackChangesEditing');_0x170319['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x170319['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x170319['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x170319['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x170319['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x170319['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x224091,_0x55f81b){const _0x3efa72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x481999=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x13ff3c=_0x55f81b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4b56e4=_0x481999['getColumnGroupElement'](_0x13ff3c);let _0x3960da=_0x4b56e4?_0x481999['getTableColumnsWidths'](_0x4b56e4):null,_0x3bd460=_0x13ff3c['getAttribute']('tableWidth')||null;const _0x4a1041=_0x55f81b['tableWidth']||_0x3bd460,_0x1e966f=_0x55f81b['columnWidths']||_0x3960da,_0x270e0a=this['editor']['plugins']['get']('Users')['me'];for(const _0x32028f of _0x3efa72['getSuggestions']()){const _0x4a82c8=_0x32028f['getContainedElement']();if('resizeTable'===_0x32028f['subType']&&_0x4a82c8===_0x13ff3c){_0x32028f['author']!==_0x270e0a&&_0x32028f['discard']();const _0x5769bf=_0x32028f['data']['commandParams'];_0x3bd460=_0x5769bf[0x0]['tableWidth'],_0x3960da=_0x5769bf[0x0]['columnWidths'];break;}}_0x224091({'table':_0x13ff3c,'tableWidth':_0x4a1041,'columnWidths':_0x1e966f}),_0x3efa72['markBlockFormat'](_0x13ff3c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bd460,'columnWidths':_0x3960da}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x39315c){if('formatBlock'!=_0x39315c['type']&&'formatInline'!=_0x39315c['type'])return;const {data:_0x1245c4}=_0x39315c;if(_0x1245c4&&'resizeTable'===_0x1245c4['formatGroupId']){const _0x5b470c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5b470c)};}}}class Tt extends _0x1480f8{['afterInit'](){const _0x2eb828=this['editor'];_0x2eb828['plugins']['has']('Template')&&_0x2eb828['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x1480f8{['afterInit'](){const _0x100eed=this['editor'];if(!_0x100eed['commands']['get']('insertTableOfContents'))return;_0x100eed['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x362a49=_0x100eed['plugins']['get']('TrackChangesEditing'),_0x10dec6=_0x100eed['locale'];_0x362a49['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3b1848=>o(_0x10dec6,'ELEMENT_TABLE_OF_CONTENTS',_0x3b1848));}}class Ut extends _0x1480f8{['afterInit'](){const _0x2a636b=this['editor'];if(!_0x2a636b['plugins']['has']('Title'))return;const _0x555236=_0x2a636b['plugins']['get']('TrackChangesEditing');_0x555236['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2a636b['locale'],'ELEMENT_TITLE')),_0x2a636b['model']['document']['registerPostFixer'](_0xe0d192=>{let _0x1b0347=!0x1;const _0x4316fd=Array['from'](_0x2a636b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x413696,data:_0x395a11}of _0x4316fd){const {group:_0x5621b6}=_0x555236['_splitMarkerName'](_0x413696);if('suggestion'!==_0x5621b6||!_0x395a11['newRange'])continue;const _0x4309ce=_0x395a11['newRange'],_0xa0b014=_0x4309ce['end']['nodeBefore'];if(!_0xa0b014||!_0xa0b014['is']('element','title-content'))continue;if(!_0x4309ce['start']['isTouching'](_0x4309ce['end']))continue;const _0x315922=_0x2a636b['model']['schema']['getNearestSelectionRange'](_0x4309ce['end'],'forward');if(_0x315922&&_0x315922['isCollapsed']){const _0x218fb9=_0xe0d192['createRange'](_0x4309ce['start'],_0x315922['start']);_0x218fb9['isEqual'](_0x4309ce)||(_0xe0d192['updateMarker'](_0x413696,{'range':_0x218fb9}),_0x1b0347=!0x0);}_0x1b0347||(_0xe0d192['removeMarker'](_0x413696),_0x1b0347=!0x0);}return _0x1b0347;});}}class Vt extends _0x1480f8{['afterInit'](){const _0x149071=this['editor'],_0x44889=_0x149071['plugins']['get']('TrackChangesEditing');_0x149071['plugins']['has']('Uploadcare')&&(_0x44889['enableCommand']('uploadcare'),_0x149071['plugins']['has']('UploadcareImageEdit')&&(_0x44889['enableCommand']('uploadcareImageEdit'),_0x44889['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x44889['descriptionFactory']['registerDescriptionCallback'](_0x7daf0=>{if('attribute'!=_0x7daf0['type'])return;const {data:_0x1b0582}=_0x7daf0;return _0x1b0582&&'uploadcareImageId'==_0x1b0582['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x1480f8{['afterInit'](){const _0x10fefb=this['editor'],_0x5607b8=_0x10fefb['plugins']['get']('TrackChangesEditing');_0x10fefb['plugins']['has']('UndoEditing')&&(_0x5607b8['enableCommand']('undo'),_0x5607b8['enableCommand']('redo'));}}class Pt extends _0x1480f8{static get['requires'](){return[Dt];}['afterInit'](){const _0x1f59bb=this['editor'];if(!_0x1f59bb['plugins']['has']('TableCaptionEditing'))return;_0x1f59bb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x1480f8{['tableProperties'];['tableCellProperties'];constructor(_0x18087d){super(_0x18087d),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x18087d['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1c9291=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x152706 of this['tableProperties'])_0x1c9291['enableCommand'](_0x152706,(_0x102540,_0x106a25)=>{const _0xb71953=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x152706,[_0xb71953],this['tableProperties'],'tableProperties',_0x102540,_0x106a25);});_0x1c9291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1c9291['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c9291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x345f76,_0x965578)=>this['handleDiscardAction'](this['tableProperties'],_0x345f76,_0x965578)),_0x1c9291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x41d8c7 of this['tableCellProperties'])this['editor']['commands']['get'](_0x41d8c7)&&_0x1c9291['enableCommand'](_0x41d8c7,(_0x1fc7d1,_0x329b53)=>{const _0x392e17=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x41d8c7,_0x392e17,this['tableCellProperties'],'tableCellProperties',_0x1fc7d1,_0x329b53);});_0x1c9291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1c9291['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c9291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x54b0d1,_0x1ac508)=>this['handleDiscardAction'](this['tableCellProperties'],_0x54b0d1,_0x1ac508)),_0x1c9291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1c9291['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1c9291['descriptionFactory']['registerDescriptionCallback'](_0xba8f3f=>this['handleSuggestionDescription'](_0xba8f3f)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2dd20d,_0x286289,_0xf59530,_0x3b7c68,_0xc88369,_0x255891){const _0x597ba0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x255891['batch'],()=>{for(const _0x2d7fc7 of _0x286289){if(this['_getSuggestion'](_0x2d7fc7,_0x3b7c68))_0xc88369(_0x255891);else{const _0x3c88f3={};for(const _0x51afd0 of _0xf59530){const _0x563e4f=_0x2d7fc7['getAttribute'](_0x51afd0);void 0x0!==_0x563e4f&&(_0x3c88f3[_0x51afd0]=_0x563e4f);}_0xc88369(_0x255891),_0x597ba0['markBlockFormat'](_0x2d7fc7,{'commandParams':[_0x3c88f3]},[],_0x3b7c68);}}});}['handleDiscardAction'](_0x377d0d,_0x302e2a,_0x31a552){const _0x25ca4f=_0x302e2a[0x0]['start']['nodeAfter'],_0x5f4893=_0x31a552['commandParams'][0x0];this['editor']['model']['change'](_0x26bd4e=>{for(const _0x459806 of _0x377d0d)void 0x0!==_0x5f4893[_0x459806]?_0x26bd4e['setAttribute'](_0x459806,_0x5f4893[_0x459806],_0x25ca4f):_0x26bd4e['removeAttribute'](_0x459806,_0x25ca4f);});}['handleSuggestionDescription'](_0xea40f9){if(_0xea40f9['data'])switch(_0xea40f9['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'](_0x57f7eb,_0x33bde7){const _0x4a429a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1b6f12 of _0x4a429a['getSuggestions']({'skipNotAttached':!0x0})){const _0x46d5d9=_0x1b6f12['getContainedElement']();if(_0x1b6f12['subType']===_0x33bde7&&_0x46d5d9===_0x57f7eb)return _0x1b6f12;}return null;}['_registerTablePropertiesAttributes'](){const _0x552819=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23a3d2=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5c0441 of _0x23a3d2){const _0x1bc80b=_0x5c0441['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x552819['descriptionFactory']['registerAttributeLabel'](_0x5c0441,o(this['editor']['locale'],'FORMAT_'+_0x1bc80b));}}}class Lt extends _0x1480f8{['afterInit'](){const _0x20f775=this['editor'];if(!_0x20f775['plugins']['has']('LineHeight'))return;const _0x296464=_0x20f775['plugins']['get']('TrackChangesEditing'),_0x275f07=_0x20f775['locale'];_0x296464['enableDefaultAttributesIntegration']('lineHeight'),_0x296464['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x275f07,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1480f8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x299603,_0x5aac27,_0x4e96e3,_0x38c55e,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e9e7d){super(_0x1e9e7d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4574dc,_0x115e80,_0x32aacb,_0x1ef143)=>{this['_model']['change'](()=>{for(const _0x5c0cce of[..._0x1ef143,..._0x32aacb])this['_model']['markers']['has'](_0x5c0cce)&&_0x1e9e7d['editing']['reconvertMarker'](_0x5c0cce);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1e9e7d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1e9e7d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1e9e7d['config']['get']('trackChanges.trackFormatChanges'),_0x1e9e7d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1e9e7d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1e9e7d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xfb1f78=this['editor'];_0xfb1f78['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5acfa8,{writer:_0x256ad6})=>{let _0x3fb0af='suggestion:'+_0x5acfa8['getAttribute']('suggestion-type')+':'+_0x5acfa8['getAttribute']('id');return _0x5acfa8['getAttribute']('marker-count')&&(_0x3fb0af+=':'+_0x5acfa8['getAttribute']('marker-count')),_0x256ad6['createElement']('$marker',{'data-name':_0x3fb0af});}}),_0xfb1f78['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xfb1f78['model']['document']['registerPostFixer'](_0x1bedc5=>{let _0x328a70=!0x1;const _0x40c2a6=Array['from'](_0xfb1f78['model']['document']['differ']['getChangedMarkers']()),_0x4b57dc=new Set();for(const {name:_0x5a74a8,data:_0x117cc3}of _0x40c2a6){const {group:_0x82ad6a,type:_0x39395d,subType:_0x39e694,id:_0x11c368}=this['_splitMarkerName'](_0x5a74a8);if('suggestion'!==_0x82ad6a)continue;const _0x414757=_0x39e694?'suggestion:'+_0x39395d+':'+_0x39e694+':'+_0x11c368:'suggestion:'+_0x39395d+':'+_0x11c368,_0x4eeeb2=_0xfb1f78['model']['markers']['getMarkersGroup'](_0x414757),_0x360490=_0xfb1f78['model']['markers']['get'](_0x5a74a8),_0x49f566=this['_suggestions']['get'](_0x11c368);if(null!=_0x117cc3['newRange']){'formatInline'==_0x39395d&&(_0x328a70=_0x328a70||Wt(_0x117cc3['newRange'],_0x5a74a8,_0x1bedc5,_0xfb1f78['model']['schema']));const _0x3b23be='attribute'==_0x39395d&&this['_isBlockAttribute'](_0x39e694['split']('|')[0x0]),_0xf56ce5='attribute'==_0x39395d&&this['_isInlineAttribute'](_0x39e694['split']('|')[0x0]);if(_0x117cc3['newRange']['isCollapsed']||'$graveyard'==_0x117cc3['newRange']['root']['rootName']||'formatBlock'==_0x39395d&&!Qt(_0x117cc3['newRange'])||_0x3b23be&&!Qt(_0x117cc3['newRange'])||_0xf56ce5&&Xt(_0x117cc3['newRange'])||'deletion'==_0x39395d&&Xt(_0x117cc3['newRange'])||_0x360490&&Yt(_0x360490,_0x4eeeb2))_0x1bedc5['removeMarker'](_0x5a74a8),_0x328a70=!0x0;else{if(!_0x49f566||!_0x49f566['isInContent'])continue;if(_0x117cc3['newRange']&&_0x117cc3['oldRange']&&_0x117cc3['newRange']['isEqual'](_0x117cc3['oldRange']))continue;_0x4b57dc['add'](_0x49f566);}}}return _0x4b57dc['size']>0x0&&(_0x328a70=!!this['_joinWithAdjacentSuggestions'](_0x4b57dc)||_0x328a70),_0x328a70;}),_0xfb1f78['model']['document']['registerPostFixer'](_0x45bb00=>{let _0x320bb6=!0x1;for(const _0xfb9379 of _0xfb1f78['model']['document']['differ']['getChanges']())if('insert'==_0xfb9379['type'])for(const _0x35bdb1 of this['_suggestions']['values']()){if(_0x35bdb1['isMultiRange']||!_0x35bdb1['isInContent'])continue;const _0x215b40='formatBlock'==_0x35bdb1['type'],_0x2bb442=this['_getAttributeKey'](_0x35bdb1),_0x57cb3b=_0x2bb442&&this['_isBlockAttribute'](_0x2bb442);if(!_0x215b40&&!_0x57cb3b)continue;const _0x1452fb=_0x35bdb1['getFirstRange']();if(_0x1452fb['start']['parent']!=_0x1452fb['end']['parent']&&!_0x1452fb['end']['isAtEnd']){const _0x1eba1d=_0xfb1f78['model']['createPositionAt'](_0x1452fb['start']['nodeAfter'],'end'),_0x5c7a6d=_0xfb1f78['model']['createRange'](_0x1452fb['start'],_0x1eba1d);_0x45bb00['updateMarker'](_0x35bdb1['getFirstMarker'](),{'range':_0x5c7a6d}),_0x320bb6=!0x0;}}return _0x320bb6;}),_0xfb1f78['model']['document']['registerPostFixer'](_0x7bd827=>this['_processAttributeChanges'](_0x7bd827)),_0xfb1f78['model']['document']['registerPostFixer'](_0x327fcf=>!_0x327fcf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x327fcf)),_0xfb1f78['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xfb1f78['model']['document']['on']('change:data',(_0x141daa,_0x429dba)=>{if(!_0x429dba['isLocal']||_0x429dba['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2d16af=_0xfb1f78['model']['document']['differ']['getChanges']();if(0x0==_0x2d16af['length'])return;const _0x53700e=[],_0x30d19f=_0x2d16af['filter'](_0x376827=>'attribute'==_0x376827['type']),_0x2b4460=_0x2d16af['filter'](_0x267a14=>'insert'==_0x267a14['type']&&'$text'!=_0x267a14['name']);for(const _0x1d59f5 of _0x30d19f)this['_isRegisteredAttribute'](_0x1d59f5['attributeKey'])&&_0x53700e['push']({'key':_0x1d59f5['attributeKey'],'newValue':_0x1d59f5['attributeNewValue'],'oldValue':_0x1d59f5['attributeOldValue'],'range':Zt(_0x1d59f5['range'],_0xfb1f78['model'])});for(const _0x577775 of _0x2b4460){if('rename'!=_0x577775['action']&&'refresh'!=_0x577775['action'])continue;const _0x45fb0c=tn(_0x577775['position']['nodeAfter'],_0xfb1f78['model']),_0x291aa3=_0x577775['before'];'rename'==_0x577775['action']&&_0x53700e['push']({'key':m,'newValue':_0x577775['name'],'oldValue':_0x291aa3['name'],'range':_0x45fb0c});for(const [_0x30ef1e,_0x4dfc64]of _0x291aa3['attributes']){if(!this['_isRegisteredAttribute'](_0x30ef1e))continue;const _0x3e5f12=_0x577775['attributes']['get'](_0x30ef1e);_0x4dfc64!==_0x3e5f12&&_0x53700e['push']({'key':_0x30ef1e,'newValue':_0x3e5f12,'oldValue':_0x4dfc64,'range':_0x45fb0c});}for(const [_0x5a7c06,_0x42a808]of _0x577775['attributes'])this['_isRegisteredAttribute'](_0x5a7c06)&&(_0x291aa3['attributes']['has'](_0x5a7c06)||_0x53700e['push']({'key':_0x5a7c06,'newValue':_0x42a808,'oldValue':null,'range':_0x45fb0c}));}0x0!=_0x53700e['length']&&_0xfb1f78['model']['enqueueChange'](_0x429dba,_0x1e0400=>{const _0x581f72=_0x1bc03f();for(const {range:_0xbeb0ee,key:_0x112f39,oldValue:_0x3c307a,newValue:_0x2594c7}of _0x53700e)this['markAttributeChange'](_0xbeb0ee,_0x112f39,_0x3c307a,_0x2594c7,{'groupId':_0x581f72});this['_reduceExistingSuggestions'](_0x1e0400,_0x53700e);});},{'priority':'lowest'}),_0xfb1f78['model']['markers']['on']('update:suggestion',(_0xec8004,_0x1fbd45,_0x5516e3)=>{if(null==_0x5516e3){const {id:_0x44021b}=this['_splitMarkerName'](_0x1fbd45['name']),_0x5a6d3e=this['_suggestions']['get'](_0x44021b);_0x5a6d3e&&_0x5a6d3e['addMarkerName'](_0x1fbd45['name']);}}),_0xfb1f78['model']['document']['on']('change:data',()=>{const _0x1ebec2=Array['from'](_0xfb1f78['model']['document']['differ']['getChangedMarkers']())['filter'](_0x169597=>'suggestion'===this['_splitMarkerName'](_0x169597['name'])['group']);if(0x0===_0x1ebec2['length'])return;_0x1ebec2['sort']((_0x4fa2da,_0x11d1df)=>{const _0x44f5fe=_0x4fa2da['data']['oldRange'],_0x22d93c=_0x11d1df['data']['oldRange'];return null===_0x44f5fe&&null===_0x22d93c?0x0:null===_0x44f5fe&&null!==_0x22d93c?-0x1:null!==_0x44f5fe&&null===_0x22d93c?0x1:_0x44f5fe['start']['isBefore'](_0x22d93c['start'])?-0x1:0x1;});const _0x4e56ff=new Set(),_0x2b91b4=new Set();for(const {name:_0x19d925,data:_0xf22059}of _0x1ebec2){const {id:_0x470c19}=this['_splitMarkerName'](_0x19d925);if(null===_0xf22059['oldRange']){const _0xefea10=this['_handleNewSuggestionMarker'](_0x19d925);_0x2b91b4['add'](_0xefea10);}else{const _0x14eb06=this['_suggestions']['get'](_0x470c19);null!==_0xf22059['newRange']||_0x14eb06['isInContent']?(_0x4e56ff['add'](_0x14eb06['head']),_0x2b91b4['add'](_0x14eb06)):this['_removeSuggestion'](_0x14eb06);}}_0x2b91b4['size']>0x0&&this['_refreshSuggestionsChain'](_0x2b91b4);for(const _0x1476a5 of _0x4e56ff)this['fire']('suggestionChanged',_0x1476a5);}),_0xfb1f78['model']['on']('applyOperation',(_0x5b0a8e,_0x31d3b5)=>{const _0x49c3b8=_0x31d3b5[0x0];if(!this['_suggestions']['size'])return;if(!_0x49c3b8['isDocumentOperation'])return;if(_0x49c3b8['batch']['isUndo']||!_0x49c3b8['batch']['isLocal'])return;let _0x10ee0e,_0x4e6f22;switch(_0x49c3b8['type']){case'insert':_0x10ee0e=_0xfb1f78['model']['createPositionAt'](_0x49c3b8['position']),_0x4e6f22=_0x10ee0e['getShiftedBy'](_0x49c3b8['howMany']);break;case'split':_0x10ee0e=_0xfb1f78['model']['createPositionAt'](_0x49c3b8['splitPosition']),_0x4e6f22=_0xfb1f78['model']['createPositionAt'](_0x49c3b8['moveTargetPosition']);break;case'move':_0x10ee0e=_0xfb1f78['model']['createPositionAt'](_0x49c3b8['targetPosition']),_0x4e6f22=_0x10ee0e['getShiftedBy'](_0x49c3b8['howMany']);break;default:return;}const _0x56e6ac=_0xfb1f78['model']['createRange'](_0x10ee0e,_0x4e6f22);_0xfb1f78['model']['change'](()=>{for(const {suggestion:_0xea324f,meta:_0x1c3867}of this['_findSuggestions'](_0x56e6ac)){if(_0xea324f['isMultiRange'])continue;if('formatInline'==_0xea324f['type'])continue;const _0x82cfdf=this['_getAttributeKey'](_0xea324f);if(_0x82cfdf&&this['_isBlockAttribute'](_0x82cfdf)&&'split'!=_0x49c3b8['type'])continue;const _0x1f4f44=_0xea324f['data']&&_0xea324f['data']['multipleBlocks'];('formatBlock'!=_0xea324f['type']||'split'==_0x49c3b8['type']&&!_0x1f4f44)&&(_0x1c3867['containsRangeInObject']||'insertion'==_0xea324f['type']&&_0x1c3867['isOwn']||_0xea324f['getFirstRange']()['containsRange'](_0x56e6ac)&&this['_breakSuggestionMarker'](_0xea324f,_0x10ee0e,_0x4e6f22));}});},{'priority':'lowest'}),_0xfb1f78['model']['on']('deleteContent',(_0x38b6ea,_0x545466)=>{const _0x4d0319=_0x545466[0x0],_0x9e890f=_0x545466[0x1];if(_0x9e890f&&_0x9e890f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d0319['isCollapsed'])return;const _0x19b7d1=_0xfb1f78['model']['schema'],{start:_0x511ca6,end:_0x37800b}=_0x4d0319['getFirstRange'](),_0x853707=_0x511ca6['nodeAfter']&&_0x19b7d1['isLimit'](_0x511ca6['nodeAfter'])?null:_0x19b7d1['getNearestSelectionRange'](_0x511ca6,'forward'),_0x1085c0=_0x37800b['nodeBefore']&&_0x19b7d1['isLimit'](_0x37800b['nodeBefore'])?null:_0x19b7d1['getNearestSelectionRange'](_0x37800b,'backward'),_0x21de87=_0xfb1f78['model']['createRange'](_0x853707?_0x853707['start']:_0x511ca6,_0x1085c0?_0x1085c0['end']:_0x37800b);_0xfb1f78['model']['change'](_0x230b9c=>{this['markDeletion'](_0x21de87);const _0x857b84=_0xfb1f78['model']['schema']['getNearestSelectionRange'](_0x21de87['start']);_0x4d0319['is']('documentSelection')?_0x230b9c['setSelection'](_0x857b84):_0x4d0319['setTo'](_0x857b84);}),_0x38b6ea['stop']();},{'priority':_0x5d885f['normal']+0xa}),_0xfb1f78['model']['on']('insertContent',(_0x4af324,_0x45ada2)=>{const _0x46609c=_0x45ada2[_0x45ada2['length']-0x1];_0x46609c&&_0x46609c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xfb1f78['model']['change'](()=>{let _0x36dac7=_0xfb1f78['model']['insertContent'](_0x45ada2[0x0],_0x45ada2[0x1],_0x45ada2[0x2],{'forceDefaultExecution':!0x0});if(!_0x36dac7)return;_0x4af324['return']=_0x36dac7['clone']();const _0x15ab10=_0x36dac7['end']['nodeBefore'],_0x15c1d3=_0xfb1f78['model']['schema'];_0x15ab10&&_0x15c1d3['isBlock'](_0x15ab10)&&!_0x15c1d3['isObject'](_0x15ab10)&&(_0x36dac7=_0xfb1f78['model']['createRange'](_0x36dac7['start'],_0xfb1f78['model']['createPositionAt'](_0x15ab10,'end'))),this['markInsertion'](_0x36dac7);}),_0x4af324['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x140ff9=new O(_0xfb1f78,this['_suggestions']);_0xfb1f78['commands']['add']('acceptSuggestion',_0x140ff9),this['enableCommand']('acceptSuggestion');const _0x42efb8=new x(_0xfb1f78,this['_suggestions']);_0xfb1f78['commands']['add']('discardSuggestion',_0x42efb8),this['enableCommand']('discardSuggestion'),_0xfb1f78['commands']['add']('acceptAllSuggestions',new M(_0xfb1f78,_0x140ff9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xfb1f78['commands']['add']('discardAllSuggestions',new M(_0xfb1f78,_0x42efb8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xfb1f78['commands']['add']('acceptSelectedSuggestions',new R(_0xfb1f78,_0x140ff9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xfb1f78['commands']['add']('discardSelectedSuggestions',new R(_0xfb1f78,_0x42efb8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x36ee6e=_0xfb1f78['plugins']['get']('CommentsRepository');this['listenTo'](_0x36ee6e,'addComment',(_0xd9e687,{threadId:_0x211880})=>{const _0x26581b=this['_suggestions']['get'](_0x211880);_0x26581b&&_0x26581b['commentThread']&&0x1===_0x26581b['commentThread']['length']&&this['_updateSuggestionData'](_0x211880,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x36ee6e,'removeComment',(_0x3b80f5,{threadId:_0x5447a1})=>{const _0x52b084=this['_suggestions']['get'](_0x5447a1);_0x52b084&&_0x52b084['commentThread']&&!_0x52b084['commentThread']['length']&&this['_updateSuggestionData'](_0x5447a1,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3fdfd7){const _0x4f0c9c=_0x1aa44d([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x54679c=0x3d8d0df,_0x3ec981=0x3df5237^_0x54679c,_0xb519d3=window[_0x1aa44d([0x44,0x61,0x74,0x65])][_0x1aa44d([0x6e,0x6f,0x77])](),_0x23c9ab=_0x3fdfd7[_0x1aa44d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe79789=new window[(_0x1aa44d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dfb73=>{_0x23c9ab[_0x1aa44d([0x6f,0x6e,0x63,0x65])](_0x1aa44d([0x72,0x65,0x61,0x64,0x79]),_0x1dfb73);}),_0x45574e={[_0x1aa44d([0x6b,0x74,0x79])]:_0x1aa44d([0x45,0x43]),[_0x1aa44d([0x75,0x73,0x65])]:_0x1aa44d([0x73,0x69,0x67]),[_0x1aa44d([0x63,0x72,0x76])]:_0x1aa44d([0x50,0x2d,0x32,0x35,0x36]),[_0x1aa44d([0x78])]:_0x1aa44d([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]),[_0x1aa44d([0x79])]:_0x1aa44d([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]),[_0x1aa44d([0x61,0x6c,0x67])]:_0x1aa44d([0x45,0x53,0x32,0x35,0x36])},_0x149b81=_0x23c9ab[_0x1aa44d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1aa44d([0x67,0x65,0x74])](_0x1aa44d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56dea8(){let _0xe12a9b,_0x2e6083=null,_0x23c8ab=null;try{if(_0x149b81==_0x1aa44d([0x47,0x50,0x4c]))return _0x1aa44d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe12a9b=_0x998aa7(),!_0xe12a9b)return _0x1aa44d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe12a9b[_0x1aa44d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23c8ab=_0x441379(_0xe12a9b[_0x1aa44d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe12a9b[_0x1aa44d([0x6a,0x74,0x69])])),await _0x2f38c8()?_0xbfbaab()?_0x114199()?_0x1aa44d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48f547()?(_0xe12a9b[_0x1aa44d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1aa44d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e6083=_0x4cceed(_0x1aa44d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4349d6()):_0x1aa44d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1aa44d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1aa44d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1aa44d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x114199(){const _0xbf12e5=[_0x1aa44d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1aa44d([0x74,0x72,0x69,0x61,0x6c])][_0x1aa44d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe12a9b[_0x1aa44d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb519d3/0x3e8:0xe10*_0x3ec981;return _0xe12a9b[_0x1aa44d([0x65,0x78,0x70])]<_0xbf12e5;}function _0xbfbaab(){const _0x363007=_0xe12a9b[_0x1aa44d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x363007)return!0x1;if(_0x363007[_0x1aa44d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aa44d([0x2a])))return!0x0;if(_0x363007[_0x1aa44d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aa44d([0x54,0x43])))return!0x0;if(_0x363007[_0x1aa44d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aa44d([0x52,0x54,0x43]))){if(_0x47cbe2())return!0x0;if(_0x375ade()||_0x64c7b5())return!0x0;}return!0x1;}function _0x48f547(){const _0x240455=_0xe12a9b[_0x1aa44d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x240455||0x0==_0x240455[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb624a0}=new URL(window[_0x1aa44d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x240455[_0x1aa44d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb624a0))return!0x0;const _0x554366=_0xb624a0[_0x1aa44d([0x73,0x70,0x6c,0x69,0x74])](_0x1aa44d([0x2e]));return _0x240455[_0x1aa44d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4379e5=>_0x4379e5[_0x1aa44d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aa44d([0x2a])))[_0x1aa44d([0x6d,0x61,0x70])](_0xb36f1a=>_0xb36f1a[_0x1aa44d([0x73,0x70,0x6c,0x69,0x74])](_0x1aa44d([0x2e])))[_0x1aa44d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e3618=>_0x4e3618[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x554366[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1aa44d([0x6d,0x61,0x70])](_0x38f1c2=>Array(_0x554366[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38f1c2[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1aa44d([0x66,0x69,0x6c,0x6c])](_0x38f1c2[0x0]===_0x1aa44d([0x2a])?_0x1aa44d([0x2a]):'')[_0x1aa44d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38f1c2))[_0x1aa44d([0x73,0x6f,0x6d,0x65])](_0x4cccbc=>_0x554366[_0x1aa44d([0x65,0x76,0x65,0x72,0x79])]((_0x5e86e4,_0x309ccc)=>_0x4cccbc[_0x309ccc]===_0x5e86e4||_0x4cccbc[_0x309ccc]===_0x1aa44d([0x2a])));}function _0x4349d6(){return _0x2e6083&&_0x23c8ab?new window[(_0x1aa44d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x244727,_0xe23ac1)=>{_0x2e6083[_0x1aa44d([0x74,0x68,0x65,0x6e])](_0x244727,_0xe23ac1),_0x23c8ab[_0x1aa44d([0x74,0x68,0x65,0x6e])](_0x1525b3=>{_0x1525b3!=_0x1aa44d([0x56,0x61,0x6c,0x69,0x64])&&_0x244727(_0x1525b3);},_0xe23ac1);}):_0x2e6083||_0x23c8ab||_0x1aa44d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x441379(_0x1d9da9,_0x29cf76){return new window[(_0x1aa44d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a9c73=>{if(_0x113d21())return _0x2a9c73(_0x1aa44d([0x56,0x61,0x6c,0x69,0x64]));_0xf7510(),_0x23c9ab[_0x1aa44d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1aa44d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x462a68=!0x1;const _0x389262=_0x1bc03f();function _0x2c8fba(_0x58aeb8){return!!_0x58aeb8&&(typeof _0x58aeb8===_0x1aa44d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58aeb8===_0x1aa44d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58aeb8[_0x1aa44d([0x74,0x68,0x65,0x6e])]===_0x1aa44d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58aeb8[_0x1aa44d([0x63,0x61,0x74,0x63,0x68])]===_0x1aa44d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54f79b(_0x1fa1f3){_0x5cbafc(_0x1fa1f3)[_0x1aa44d([0x74,0x68,0x65,0x6e])](_0x38bdfc=>{if(!_0x38bdfc||_0x38bdfc[_0x1aa44d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1aa44d([0x6f,0x6b]))return _0x1aa44d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c3c8a(_0x2b95bd(_0x389262+_0x29cf76))!=_0x38bdfc[_0x1aa44d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1aa44d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1aa44d([0x56,0x61,0x6c,0x69,0x64]);})[_0x1aa44d([0x74,0x68,0x65,0x6e])](_0xcc4a00=>(_0x35b247(),_0xcc4a00),()=>{const _0x1a2801=_0x2a03ae();return null==_0x1a2801?(_0x35b247(),_0x1aa44d([0x56,0x61,0x6c,0x69,0x64])):_0x1aa44d(_0xb519d3-_0x1a2801>(0x27d454df^_0x54679c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1aa44d([0x74,0x68,0x65,0x6e])](_0x2a9c73)[_0x1aa44d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a9c73(_0x1aa44d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ad9e2=0x3ee3e5f^_0x54679c;function _0x35b247(){const _0x43a6f5=_0x1aa44d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c3c8a(_0x2b95bd(_0x1d9da9)),_0x5ac930=_0x4108dd(_0x3c3c8a(window[_0x1aa44d([0x4d,0x61,0x74,0x68])][_0x1aa44d([0x63,0x65,0x69,0x6c])](_0xb519d3/_0x5ad9e2)));window[_0x1aa44d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1aa44d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43a6f5,_0x5ac930);}function _0x2a03ae(){const _0x68369=_0x1aa44d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c3c8a(_0x2b95bd(_0x1d9da9)),_0x5a248e=window[_0x1aa44d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1aa44d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x68369);return _0x5a248e?window[_0x1aa44d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4108dd(_0x5a248e),0x10)*_0x5ad9e2:null;}function _0x5cbafc(_0x44bcdb){return new window[(_0x1aa44d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6798f6,_0x187c71)=>{_0x44bcdb[_0x1aa44d([0x74,0x68,0x65,0x6e])](_0x6798f6,_0x187c71),window[_0x1aa44d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x187c71,0x3d9041f^_0x54679c);});}}_0x23c9ab[_0x1aa44d([0x6f,0x6e])](_0x1aa44d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59f7a4,_0x2456a3)=>{if(_0x2456a3[0x0]!=_0x1d9da9)return _0x2a9c73(_0x1aa44d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2456a3[0x1]={..._0x2456a3[0x1],[_0x1aa44d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x389262};},{[_0x1aa44d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1aa44d([0x68,0x69,0x67,0x68])}),_0x23c9ab[_0x1aa44d([0x6f,0x6e])](_0x1aa44d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e6615=>{_0x2c8fba(_0x4e6615[_0x1aa44d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x462a68=!0x0,_0x54f79b(_0x4e6615[_0x1aa44d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1aa44d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1aa44d([0x6c,0x6f,0x77])}),_0xe79789[_0x1aa44d([0x74,0x68,0x65,0x6e])](()=>{_0x462a68||_0x2a9c73(_0x1aa44d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x113d21(){return _0x23c9ab[_0x1aa44d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aa44d([0x76,0x69,0x65,0x77])][_0x1aa44d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1aa44d([0x61,0x75,0x74,0x6f]);}function _0xf7510(){_0x23c9ab[_0x1aa44d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aa44d([0x76,0x69,0x65,0x77])][_0x1aa44d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1aa44d([0x61,0x75,0x74,0x6f]);}}function _0x4cceed(_0x11f2b5){const _0x43c478=[new window[(_0x1aa44d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x446612=>setTimeout(_0x446612,0x3d1ee13^_0x54679c)),_0xe79789[_0x1aa44d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1aa44d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57c297=>{let _0x2a96f6=0x0;_0x23c9ab[_0x1aa44d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1aa44d([0x6f,0x6e])](_0x1aa44d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xff3e3f,_0x302fb0)=>{_0x302fb0[0x0][_0x1aa44d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a96f6++,_0x2a96f6==(0x3d8d537^_0x54679c)&&(_0x57c297(),_0xff3e3f[_0x1aa44d([0x6f,0x66,0x66])]());});}))];return window[_0x1aa44d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1aa44d([0x72,0x61,0x63,0x65])](_0x43c478)[_0x1aa44d([0x74,0x68,0x65,0x6e])](()=>_0x11f2b5);}async function _0x4a617e(){await _0xe79789,_0x23c9ab[_0x1aa44d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1aa44d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22b798,_0x23c9ab[_0x1aa44d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1aa44d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22b798,_0x23c9ab[_0x1aa44d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1aa44d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x47cbe2(){return _0x42efd3(_0x1aa44d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x396df5(_0x1aa44d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1aa44d([0x73,0x74,0x61,0x74,0x65])]==_0x1aa44d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x375ade(){return _0x42efd3(_0x1aa44d([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 _0x64c7b5(){return _0x42efd3(_0x1aa44d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4d02dc(_0x539109){const _0x4f810c=_0x3993b3();_0x23c9ab[_0x4f810c]=_0x1aa44d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x539109,_0x539109!=_0x1aa44d([0x56,0x61,0x6c,0x69,0x64])&&_0x4a617e();}function _0x3993b3(){const _0x2c7ab1=window[_0x1aa44d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1aa44d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1aa44d([0x6e,0x6f,0x77])]())[_0x1aa44d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1aa44d([0x2e]),'');let _0x1ee883=_0x1aa44d([0x52]);for(let _0xcd845c=0x0;_0xcd845c<_0x2c7ab1[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcd845c+=0x2){let _0x54382d=window[_0x1aa44d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c7ab1[_0x1aa44d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcd845c,_0xcd845c+0x2));_0x54382d>=_0x4f0c9c[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54382d-=_0x4f0c9c[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ee883+=_0x4f0c9c[_0x54382d];}return _0x1ee883;}function _0x998aa7(){const _0x27356b=_0x149b81[_0x1aa44d([0x73,0x70,0x6c,0x69,0x74])](_0x1aa44d([0x2e]));if(0x3!=_0x27356b[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1208ff(_0x27356b[0x1]);function _0x1208ff(_0x14e90c){const _0x3778d0=_0x4ae6f2(_0x14e90c);return _0x3778d0&&_0x1373aa()?_0x3778d0:null;function _0x1373aa(){const _0x5cfa41=_0x3778d0[_0x1aa44d([0x6a,0x74,0x69])],_0xa0b36d=window[_0x1aa44d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cfa41[_0x1aa44d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cfa41[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x534044={..._0x3778d0,[_0x1aa44d([0x6a,0x74,0x69])]:_0x5cfa41[_0x1aa44d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cfa41[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x534044[_0x1aa44d([0x76,0x63])],_0x2b95bd(_0x534044)==_0xa0b36d;}}}async function _0x2f38c8(){let _0x35d9f9=!0x0;try{const _0x2fccd6=_0x149b81[_0x1aa44d([0x73,0x70,0x6c,0x69,0x74])](_0x1aa44d([0x2e])),[_0x3d4a6b,_0x97e051,_0x5da784]=_0x2fccd6;return _0x583e94(_0x3d4a6b),await _0x3f34ab(_0x3d4a6b,_0x97e051,_0x5da784),_0x35d9f9;}catch{return!0x1;}function _0x583e94(_0x4d14a2){const _0x3f0a67=_0x4ae6f2(_0x4d14a2);_0x3f0a67&&_0x3f0a67[_0x1aa44d([0x61,0x6c,0x67])]==_0x1aa44d([0x45,0x53,0x32,0x35,0x36])||(_0x35d9f9=!0x1);}async function _0x3f34ab(_0x5365e8,_0x5cfc9a,_0x8207a7){const _0x21e58c=window[_0x1aa44d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1aa44d([0x66,0x72,0x6f,0x6d])](_0x26823c(_0x8207a7),_0x4c32ce=>_0x4c32ce[_0x1aa44d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x403e67=new window[(_0x1aa44d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1aa44d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5365e8+_0x1aa44d([0x2e])+_0x5cfc9a),_0x436901=window[_0x1aa44d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1aa44d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x436901)return;const _0x1e8866=await _0x436901[_0x1aa44d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1aa44d([0x6a,0x77,0x6b]),_0x45574e,{[_0x1aa44d([0x6e,0x61,0x6d,0x65])]:_0x1aa44d([0x45,0x43,0x44,0x53,0x41]),[_0x1aa44d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1aa44d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1aa44d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x436901[_0x1aa44d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1aa44d([0x6e,0x61,0x6d,0x65])]:_0x1aa44d([0x45,0x43,0x44,0x53,0x41]),[_0x1aa44d([0x68,0x61,0x73,0x68])]:{[_0x1aa44d([0x6e,0x61,0x6d,0x65])]:_0x1aa44d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e8866,_0x21e58c,_0x403e67)||(_0x35d9f9=!0x1);}}function _0x4ae6f2(_0x38953c){return _0x38953c[_0x1aa44d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1aa44d([0x65,0x79]))?JSON[_0x1aa44d([0x70,0x61,0x72,0x73,0x65])](_0x26823c(_0x38953c)):null;}function _0x26823c(_0x3777fc){return window[_0x1aa44d([0x61,0x74,0x6f,0x62])](_0x3777fc[_0x1aa44d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1aa44d([0x2b]))[_0x1aa44d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1aa44d([0x2f])));}function _0x2b95bd(_0x433421){let _0x4b95b0=0x1505;function _0x21ad3b(_0x468889){for(let _0x3311c2=0x0;_0x3311c2<_0x468889[_0x1aa44d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3311c2++){const _0xeac454=_0x468889[_0x1aa44d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3311c2);_0x4b95b0=(_0x4b95b0<<0x5)+_0x4b95b0+_0xeac454,_0x4b95b0&=_0x4b95b0;}}function _0x156a76(_0x524fb9){Array[_0x1aa44d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x524fb9)?_0x524fb9[_0x1aa44d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x156a76):_0x524fb9&&typeof _0x524fb9==_0x1aa44d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1aa44d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x524fb9)[_0x1aa44d([0x73,0x6f,0x72,0x74])]()[_0x1aa44d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x409a16,_0x761b0b])=>{_0x21ad3b(_0x409a16),_0x156a76(_0x761b0b);}):_0x21ad3b(window[_0x1aa44d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x524fb9));}return _0x156a76(_0x433421),_0x4b95b0>>>0x0;}function _0x3c3c8a(_0xfc6b0e){return _0xfc6b0e[_0x1aa44d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1aa44d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1aa44d([0x30]));}function _0x4108dd(_0x2e587f){return _0x2e587f[_0x1aa44d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1aa44d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1aa44d([0x6a,0x6f,0x69,0x6e])]('');}function _0x42efd3(_0x152138){return _0x23c9ab[_0x1aa44d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1aa44d([0x68,0x61,0x73])](_0x152138);}function _0x396df5(_0x2e26eb){return _0x23c9ab[_0x1aa44d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1aa44d([0x67,0x65,0x74])](_0x2e26eb);}function _0x22b798(){}function _0x1aa44d(_0x1ffbfb){return _0x1ffbfb['map'](_0x2f6696=>String['fromCharCode'](_0x2f6696))['join']('');}_0x4d02dc(await _0x56dea8());}(this);}set['adapter'](_0x87827a){if(this['_adapter'])throw new _0x29a890('track-changes-adapter-already-set',this);this['_adapter']=_0x87827a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x519b79=!0x1,toJSON:_0x4620f8=!0x1}={}){const _0x536840=[];for(const _0x57de84 of this['_suggestions']['values']())_0x519b79&&!_0x57de84['isInContent']||_0x536840['push'](_0x57de84);return _0x4620f8?_0x536840['map'](_0x448469=>_0x448469['toJSON']()):_0x536840;}['getSuggestion'](_0x227cbc){const _0x19dc4e=this['_suggestions']['get'](_0x227cbc);if(!_0x19dc4e)throw new _0x29a890('track-changes-suggestion-not-found',this);return _0x19dc4e;}['hasSuggestion'](_0x3291ae){return this['_suggestions']['has'](_0x3291ae);}['addSuggestionData'](_0x125495){const {authorId:_0x8804f4,id:_0x24c7e9,originalSuggestionId:_0x394a9f,attributes:_0x561643}=_0x125495,[_0x248d4f,_0x258a4a]=_0x125495['type']['split'](':'),_0x181037=this['_suggestions']['get'](_0x24c7e9)||this['_createSuggestion'](_0x248d4f,_0x258a4a,_0x24c7e9,_0x8804f4,_0x561643,_0x394a9f);if(this['_addThreadToSuggestion'](_0x181037),this['_checkSuggestionCorrectness'](_0x181037,_0x248d4f,_0x258a4a||null,_0x8804f4),_0x181037['createdAt']=_0x125495['createdAt'],_0x181037['_isDataLoaded']=!0x0,_0x561643&&_0x561643['@external']){const _0x5b0d5c=_0x561643['@external'],_0x102d0f=this['_getExternalAuthor'](_0x5b0d5c['authorName']);_0x181037['authoredAt']=_0x5b0d5c['createdAt'],_0x181037['author']=_0x102d0f,_0x181037['isExternal']=!0x0;}else _0x181037['authoredAt']=_0x125495['createdAt'];switch(_0x125495['data']&&(_0x181037['data']=_0x125495['data']),_0x125495['attributes']&&(_0x181037['attributes']=_0x125495['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x181037['_saved']=!0x0),this['_suggestionState']['get'](_0x181037)){case'notReady':this['_suggestionState']['set'](_0x181037,'dataReady');break;case'markerReady':_0x181037['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x181037])),this['_refreshSuggestionsChain'](new Set([_0x181037])),this['_suggestionState']['set'](_0x181037,'ready'),this['fire']('suggestionLoaded',_0x181037)):this['_suggestionState']['set'](_0x181037,'removed');}return _0x181037;}['acceptSuggestion'](_0x4ad5bd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x260ab3 of _0x4ad5bd['getAllAdjacentSuggestions']())_0x260ab3['accept']();});});}['discardSuggestion'](_0x47b814){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5f3ddb of _0x47b814['getAllAdjacentSuggestions']())_0x5f3ddb['discard']();});});}['enableCommand'](_0x2eb778,_0x299eba){const _0x1c59c1=this['editor']['commands']['get'](_0x2eb778);if(!_0x1c59c1)throw new _0x29a890('track-changes-command-not-found',this,{'commandName':_0x2eb778});if(this['_enabledCommands']['has'](_0x1c59c1))throw new _0x29a890('track-changes-enable-command-twice',this,{'commandName':_0x2eb778});this['_enabledCommands']['add'](_0x1c59c1),_0x299eba&&_0x1c59c1['on']('execute',(_0x55b019,_0x2ca441)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2ca441['length']>0x0&&_0x2ca441[_0x2ca441['length']-0x1]&&_0x2ca441[_0x2ca441['length']-0x1]['forceDefaultExecution']?_0x2ca441['pop']():(_0x55b019['return']=_0x299eba((..._0x360f4f)=>_0x1c59c1['execute'](..._0x360f4f,{'forceDefaultExecution':!0x0}),..._0x2ca441),_0x55b019['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5f5057){let _0x495ee5,_0x48bd7b;const _0x12375d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x495ee5=_0x5f5057();}catch(_0x65edee){_0x48bd7b=_0x65edee;}return _0x12375d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x48bd7b&&_0x29a890['rethrowUnexpectedError'](_0x48bd7b,this),_0x495ee5;}['markInsertion'](_0x362a9c,_0x224a5e=null,_0x571269={}){if(_0x362a9c['isCollapsed'])return null;const _0x3f5e0a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x571269['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5d7007,meta:_0x4adb02}of this['_findSuggestions'](_0x362a9c,'insertion'))if(_0x4adb02['isOwn']){if(!_0x4adb02['isNextTo']){if(_0x4adb02['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x5d7007,_0x571269))continue;return _0x5d7007;}if(sn(_0x5d7007,_0x571269))return _0x5d7007;this['_breakSuggestionMarker'](_0x5d7007,_0x362a9c['start'],_0x362a9c['end']);break;}if(_0x224a5e==_0x5d7007['subType']&&sn(_0x5d7007,_0x571269)){const _0x226085=_0x5d7007['getFirstRange']();return _0x226085['start']['isEqual'](_0x362a9c['end'])?this['_setSuggestionRange'](_0x5d7007,this['_model']['createRange'](_0x362a9c['start'],_0x226085['end'])):this['_setSuggestionRange'](_0x5d7007,this['_model']['createRange'](_0x226085['start'],_0x362a9c['end'])),_0x5d7007;}}const _0x9a3c8f=_0x1bc03f(),_0x308f32=_0x3f5e0a['id'],_0x45e060=_0x224a5e?'insertion:'+_0x224a5e:'insertion',_0x44aa86=this['_setSuggestionData']({'id':_0x9a3c8f,'type':_0x45e060,'createdAt':new Date(),'authorId':_0x308f32,'attributes':_0x571269});return this['_addSuggestionMarker'](_0x45e060,_0x9a3c8f,_0x308f32,_0x362a9c),_0x44aa86;}['markMultiRangeInsertion'](_0x11e2ef,_0x2ec443='multi',_0x161e45={}){const _0x14236b=this['editor']['plugins']['get']('Users')['me'],_0x4978b8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2ec443,'join');this['_trackingSessionId']&&(_0x161e45['trackingSessionId']=this['_trackingSessionId']);for(const _0x440781 of this['getSuggestions']())if(_0x440781['author']['id']==_0x14236b['id']&&'insertion'==_0x440781['type']&&_0x440781['subType']==_0x2ec443&&sn(_0x440781,_0x161e45)&&(_0x4978b8(_0x440781['getRanges'](),_0x11e2ef)||_0x4978b8(_0x11e2ef,_0x440781['getRanges']()))){for(const _0x5eec2e of _0x11e2ef)_0x440781['addRange'](_0x5eec2e);return _0x440781;}for(const {suggestion:_0x3b168f,meta:_0x3873e7}of this['_findSuggestions'](_0x11e2ef,'insertion')){if(!_0x3873e7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3873e7['containsRangeInObject'])continue;if(!sn(_0x3b168f,_0x161e45))continue;let _0x252eed=!0x0;for(const _0x4dbf59 of _0x3b168f['getRanges']())for(const _0x729583 of _0x11e2ef)if(!_0x4dbf59['containsRange'](_0x729583)){_0x252eed=!0x1;break;}if(_0x252eed)return _0x3b168f;}const _0x53f3dd=_0x1bc03f(),_0x3e0078=_0x14236b['id'],_0x381080='insertion:'+_0x2ec443,_0x2176a1=this['_setSuggestionData']({'id':_0x53f3dd,'type':_0x381080,'createdAt':new Date(),'authorId':_0x3e0078,'attributes':_0x161e45});for(const _0x47dd9a of _0x11e2ef)this['_addSuggestionMarker'](_0x381080,_0x53f3dd,_0x3e0078,_0x47dd9a,T['getMultiRangeId']());return _0x2176a1;}['markInlineFormat'](_0x21f891,_0x5dad3d,_0x5abb5b=null,_0x2b0d1a={}){if(_0x5abb5b=_0x5abb5b||Ht(_0x5dad3d),_0x21f891['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2b0d1a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1758c2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5abb5b,'accept');return this['forceDefaultExecution'](()=>_0x1758c2([_0x21f891],_0x5dad3d,_0x2b0d1a)),null;}const _0x5f369d=this['editor']['plugins']['get']('Users')['me'],_0x245b3b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x55fb43,meta:_0x4598d4}of this['_findSuggestions'](_0x21f891,'insertion'))_0x4598d4['isOwn']&&!_0x4598d4['isInsideObject']&&_0x245b3b['push'](..._0x55fb43['getRanges']());}const _0x4ce512=function(_0x3b1c98,_0x1fd45a){const _0x300047=[];for(const _0x45721d of _0x1fd45a){const _0x4ee534=_0x3b1c98['getIntersection'](_0x45721d);_0x4ee534&&_0x300047['push'](_0x4ee534);}return _0x300047;}(_0x21f891,_0x245b3b),_0x2483cb=function(_0x31f003,_0x4d11e2){const _0x1b1cf8=[_0x31f003];for(const _0x4018f3 of _0x4d11e2){let _0x4fdc78=0x0;for(;_0x4fdc78<_0x1b1cf8['length'];){const _0x5e697d=_0x1b1cf8[_0x4fdc78]['getDifference'](_0x4018f3);_0x1b1cf8['splice'](_0x4fdc78,0x1,..._0x5e697d),_0x4fdc78+=_0x5e697d['length'];}}return _0x1b1cf8;}(_0x21f891,_0x245b3b);_0x4ce512['length']&&this['_model']['change'](()=>{for(const _0x37be77 of _0x4ce512){const _0x5b8e58=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5abb5b,'accept');this['forceDefaultExecution'](()=>_0x5b8e58([_0x37be77],_0x5dad3d,_0x2b0d1a));}});for(const _0x4de883 of _0x2483cb){let _0x11ee0c=null,_0x2c1157=_0x4de883['start'],_0x5ee6b3=_0x4de883['end'];for(const {suggestion:_0x16ea2a,meta:_0x338202}of this['_findSuggestions'](_0x4de883,'formatInline')){if(!_0x338202['isOwn'])continue;if(_0x16ea2a['subType']!=_0x5abb5b)continue;if(!sn(_0x16ea2a,_0x2b0d1a))continue;const _0x16b6d8=_0x16ea2a['getFirstRange']();if(_0x16b6d8['containsRange'](_0x4de883,!0x0))return null;_0x2c1157=_0x2c1157['isBefore'](_0x16b6d8['start'])?_0x2c1157:_0x16b6d8['start'],_0x5ee6b3=_0x5ee6b3['isAfter'](_0x16b6d8['end'])?_0x5ee6b3:_0x16b6d8['end'],_0x11ee0c?_0x16b6d8['start']['isBefore'](_0x11ee0c['getFirstRange']()['start'])?(_0x11ee0c['removeMarkers'](),_0x11ee0c=_0x16ea2a):_0x16ea2a['removeMarkers']():_0x11ee0c=_0x16ea2a;}const _0x1d5765=this['_model']['createRange'](_0x2c1157,_0x5ee6b3);if(_0x11ee0c)this['_setSuggestionRange'](_0x11ee0c,_0x1d5765);else{const _0x2d80bf=_0x1bc03f(),_0x229bd8=_0x5f369d['id'];this['_setSuggestionData']({'id':_0x2d80bf,'type':'formatInline:'+_0x5abb5b,'data':_0x5dad3d,'createdAt':new Date(),'authorId':_0x229bd8,'attributes':_0x2b0d1a}),this['_addSuggestionMarker']('formatInline:'+_0x5abb5b,_0x2d80bf,_0x229bd8,_0x1d5765);}}return null;}['markBlockFormat'](_0x39f1a3,_0x437e08,_0x3fd73c=[],_0x5ea2fe=null,_0x4d5397={}){_0x437e08['formatGroupId']||(_0x437e08['formatGroupId']=_0x437e08['commandName']),_0x437e08['multipleBlocks']=_0x39f1a3['is']('range'),_0x5ea2fe=_0x5ea2fe||Ht(_0x437e08);const _0x1f058b=_0x3fd73c['map'](_0x1f7a5e=>tn(_0x1f7a5e,this['_model'])),_0x2e3ae0=_0x39f1a3['is']('range')?_0x39f1a3:tn(_0x39f1a3,this['_model']);if(this['_trackingSessionId']&&(_0x4d5397['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4185c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ea2fe,'accept');return this['forceDefaultExecution'](()=>_0x4185c1([_0x2e3ae0],_0x437e08,_0x4d5397)),null;}_0x1f058b['push'](_0x2e3ae0);let _0x4e8957=!0x0;for(const _0x1c378b of _0x1f058b)if(!this['_rangeIsInLocalUserInsertion'](_0x1c378b)){_0x4e8957=!0x1;break;}if(_0x4e8957&&'always'!==this['_trackFormatChanges']){const _0x531a9b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ea2fe,'accept');return this['forceDefaultExecution'](()=>_0x531a9b([_0x2e3ae0],_0x437e08,_0x4d5397)),null;}let _0x2edea8=null,_0x51308d=_0x2e3ae0['start'],_0x5bb7d2=_0x2e3ae0['end'];for(const {suggestion:_0x3878c3,meta:_0x501806}of this['_findSuggestions'](_0x2e3ae0,'formatBlock')){if(!_0x501806['isOwn'])continue;if(_0x501806['isNextTo']||_0x501806['containsRangeInObject']||_0x501806['isInsideObject'])continue;if(_0x3878c3['data']['formatGroupId']!=_0x437e08['formatGroupId'])continue;if(!sn(_0x3878c3,_0x4d5397))continue;const _0x137cf5=_0x3878c3['getFirstRange']();if(_0x3878c3['subType']==_0x5ea2fe){if(_0x137cf5['containsRange'](_0x2e3ae0,!0x0))return null;_0x51308d=_0x51308d['isBefore'](_0x137cf5['start'])?_0x51308d:_0x137cf5['start'],_0x5bb7d2=_0x5bb7d2['isAfter'](_0x137cf5['end'])?_0x5bb7d2:_0x137cf5['end'],_0x2edea8?_0x137cf5['start']['isBefore'](_0x2edea8['getFirstRange']()['start'])?(_0x2edea8['removeMarkers'](),_0x2edea8=_0x3878c3):_0x3878c3['removeMarkers']():_0x2edea8=_0x3878c3;}else{const _0x10adc7=_0x2e3ae0['getIntersection'](_0x137cf5);this['_cutOutSuggestionMarker'](_0x3878c3,_0x10adc7);}}const _0x1170f2=this['editor']['plugins']['get']('Users')['me'],_0x34ee79=_0x1bc03f(),_0x559cc0=_0x1170f2['id'];if(_0x2edea8)return this['_setSuggestionRange'](_0x2edea8,this['_model']['createRange'](_0x51308d,_0x5bb7d2)),_0x2edea8;{const _0x39a31e=this['_setSuggestionData']({'id':_0x34ee79,'type':'formatBlock:'+_0x5ea2fe,'data':_0x437e08,'createdAt':new Date(),'authorId':_0x559cc0,'attributes':_0x4d5397});return this['_addSuggestionMarker']('formatBlock:'+_0x5ea2fe,_0x34ee79,_0x559cc0,this['_model']['createRange'](_0x51308d,_0x5bb7d2)),_0x39a31e;}}['markMultiRangeBlockFormat'](_0x4c4851,_0x43f429,_0x41ad33=[],_0x34bb71=null,_0x1fe041={}){_0x43f429['formatGroupId']||(_0x43f429['formatGroupId']=_0x43f429['commandName']);const _0x4c980f=_0x4c4851[0x0];_0x43f429['multipleBlocks']=_0x4c980f['is']('range'),_0x34bb71=_0x34bb71||Ht(_0x43f429);const _0x5b46a2=_0x41ad33['map'](_0x335377=>tn(_0x335377,this['_model'])),_0x137427=_0x4c980f['is']('range')?_0x4c4851:_0x4c4851['map'](_0x2d2282=>tn(_0x2d2282,this['_model']));if(this['_trackingSessionId']&&(_0x1fe041['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4f0dac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34bb71,'accept');return this['forceDefaultExecution'](()=>_0x4f0dac(_0x137427,_0x43f429,_0x1fe041)),null;}_0x5b46a2['push'](..._0x137427);let _0x526231=!0x0;for(const _0x1ecb3e of _0x5b46a2)if(!this['_rangeIsInLocalUserInsertion'](_0x1ecb3e)){_0x526231=!0x1;break;}if(_0x526231&&'always'!==this['_trackFormatChanges']){const _0x2d1b4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34bb71,'accept');return this['forceDefaultExecution'](()=>_0x2d1b4b(_0x137427,_0x43f429,_0x1fe041)),null;}const _0x90d3de=this['editor']['plugins']['get']('Users')['me'];for(const _0x190858 of this['getSuggestions']()){const _0x4b1549=_0x190858['data'];if(_0x190858['author']['id']!=_0x90d3de['id'])continue;if('formatBlock'!=_0x190858['type']||_0x4b1549['formatGroupId']!=_0x43f429['formatGroupId'])continue;if(!sn(_0x190858,_0x1fe041))continue;const _0x2cf13e=_0x190858['subType']==_0x34bb71;for(let _0x1c22e1=0x0;_0x1c22e1<_0x137427['length'];_0x1c22e1++){const _0x1292a9=_0x137427[_0x1c22e1];for(const _0x12ef68 of _0x190858['getMarkers']()){const _0x254940=_0x12ef68['getRange']();if(_0x1292a9['isEqual'](_0x254940)){_0x2cf13e?(_0x137427['splice'](_0x1c22e1,0x1),_0x1c22e1--):_0x190858['removeMarker'](_0x12ef68['name']);break;}}}}if(0x0==_0x137427['length'])return null;const _0x4bfce0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34bb71,'join');for(const _0x689df0 of this['getSuggestions']()){const _0x4d7331=_0x689df0['data'];if(_0x689df0['author']['id']==_0x90d3de['id']&&('formatBlock'==_0x689df0['type']&&_0x4d7331['formatGroupId']==_0x43f429['formatGroupId']&&_0x689df0['subType']==_0x34bb71&&sn(_0x689df0,_0x1fe041)&&(_0x4bfce0(_0x689df0['getRanges'](),_0x137427)||_0x4bfce0(_0x137427,_0x689df0['getRanges']())))){for(const _0x11752e of _0x137427)_0x689df0['addRange'](_0x11752e);return _0x689df0;}}const _0x477b18=_0x1bc03f(),_0x5a199e=_0x90d3de['id'],_0x5509dd='formatBlock:'+_0x34bb71,_0x1f7aa0=this['_setSuggestionData']({'id':_0x477b18,'type':_0x5509dd,'data':_0x43f429,'createdAt':new Date(),'authorId':_0x5a199e,'attributes':_0x1fe041});for(const _0xe75cb9 of _0x137427)this['_addSuggestionMarker'](_0x5509dd,_0x477b18,_0x5a199e,_0xe75cb9,T['getMultiRangeId']());return _0x1f7aa0;}['markDeletion'](_0x81b524,_0x1f143a=null,_0x445f3a={}){if(_0x81b524['isCollapsed'])return null;const _0x23fed3=this['editor']['plugins']['get']('Users')['me'],_0xc5c80d=new _0x43f9b1(_0x81b524['start'],_0x81b524['end']);this['_trackingSessionId']&&(_0x445f3a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4e1886,meta:_0x5cb98f}of this['_findSuggestions'](_0xc5c80d,'insertion'))if(_0x5cb98f['isOwn']&&!_0x5cb98f['isNextTo']){if(_0x4e1886['isMultiRange']){const _0x5a430f=_0x4e1886['getRanges']()['filter'](_0x43d2be=>'$graveyard'!=_0x43d2be['root']['rootName']);_0x5a430f['every'](_0x5ba73d=>_0xc5c80d['containsRange'](_0x5ba73d,!0x0))&&_0x4e1886['discard']();if(_0x5a430f['some'](_0xf04dfb=>_0xf04dfb['containsRange'](_0xc5c80d,!0x0))){const _0x2d27f8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f143a,'accept');return this['forceDefaultExecution'](()=>_0x2d27f8([_0xc5c80d],null,_0x445f3a)),null;}}else{const _0x5a4964=_0xc5c80d['getIntersection'](_0x4e1886['getFirstRange']());null!==_0x5a4964&&_0x4e1886['_onDiscard']([_0x5a4964],null,_0x445f3a);}}if(_0xc5c80d['detach'](),_0xc5c80d['isCollapsed']||'$graveyard'==_0xc5c80d['root']['rootName'])return null;let _0x5142b6=null,_0x1c3c01=_0xc5c80d['start'],_0x1267e4=_0xc5c80d['end'];const _0x143972=this['_findSuggestions'](_0xc5c80d,'deletion');for(const {suggestion:_0x4991e0,meta:_0x13b915}of _0x143972){const _0xc929cc=this['_model']['createRange'](_0x1c3c01,_0x1267e4);if(_0x13b915['isOwn']&&(this['_mergeNestedSuggestions']||!_0x13b915['containsRangeInObject']&&!_0x13b915['isInsideObject'])){if(_0x4991e0['isMultiRange']){if(!sn(_0x4991e0,_0x445f3a))continue;let _0x32b20c=!0x0;for(const _0x56e5c3 of _0x4991e0['getRanges']()){if(_0x56e5c3['containsRange'](_0xc929cc,!0x0))return _0x4991e0;_0xc929cc['containsRange'](_0x56e5c3)||(_0x32b20c=!0x1);}_0x32b20c&&_0x4991e0['discard']();}else{const _0x151836=_0x4991e0['getFirstRange']();if(_0x151836['containsRange'](_0xc929cc,!0x0))return _0x4991e0;if(!sn(_0x4991e0,_0x445f3a)){_0xc929cc['containsRange'](_0x151836)?_0x4991e0['removeMarkers']():_0x151836['containsPosition'](_0x1c3c01)?_0x1c3c01=_0x151836['end']:_0x151836['containsPosition'](_0x1267e4)&&(_0x1267e4=_0x151836['start']);continue;}_0x1c3c01=_0x1c3c01['isBefore'](_0x151836['start'])?_0x1c3c01:_0x151836['start'],_0x1267e4=_0x1267e4['isAfter'](_0x151836['end'])?_0x1267e4:_0x151836['end'],_0x445f3a=Object['assign']({},_0x4991e0['attributes']),_0x5142b6?_0x151836['start']['isBefore'](_0x5142b6['getFirstRange']()['start'])?(_0x5142b6['removeMarkers'](),_0x5142b6=_0x4991e0):_0x4991e0['removeMarkers']():_0x5142b6=_0x4991e0;}}}if(_0x5142b6)return this['_setSuggestionRange'](_0x5142b6,this['_model']['createRange'](_0x1c3c01,_0x1267e4)),_0x5142b6;{const _0x44ff8e=_0x1bc03f(),_0x34404a=this['_model']['createRange'](_0x1c3c01,_0x1267e4),_0x1a9f33=_0x23fed3['id'],_0x3ac1c2=_0x1f143a?'deletion:'+_0x1f143a:'deletion',_0x25dd85=this['_setSuggestionData']({'id':_0x44ff8e,'type':_0x3ac1c2,'createdAt':new Date(),'authorId':_0x1a9f33,'attributes':_0x445f3a});return this['_addSuggestionMarker'](_0x3ac1c2,_0x44ff8e,_0x1a9f33,_0x34404a),_0x25dd85;}}['markMultiRangeDeletion'](_0x477ecc,_0x331cea='multi',_0x24a0ea={}){const _0x5a004e=this['editor']['plugins']['get']('Users')['me'],_0x8cfe00=_0x477ecc['map'](_0x55d967=>new _0x43f9b1(_0x55d967['start'],_0x55d967['end'])),_0xe06b6f=new Set();this['_trackingSessionId']&&(_0x24a0ea['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a5a41,meta:_0x303c3e}of this['_findSuggestions'](_0x8cfe00,'insertion'))_0x303c3e['isOwn']&&!_0x303c3e['isNextTo']&&_0xe06b6f['add'](_0x1a5a41);for(const _0x5c41a2 of _0xe06b6f)if(_0x5c41a2['isMultiRange']){const _0xaa0291=_0x5c41a2['getRanges']();(!_0x5c41a2['attributes']||!_0x5c41a2['attributes']['skipNestingCheck'])&&(_0xaa0291['every'](_0x5a569d=>_0x8cfe00['some'](_0x35a45e=>_0x35a45e['containsRange'](_0x5a569d,!0x0)))&&_0x5c41a2['discard']());if(_0x8cfe00['every'](_0x2a9a1d=>_0xaa0291['some'](_0x570707=>_0x570707['containsRange'](_0x2a9a1d,!0x0)))){const _0x58fd42=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x331cea,'accept');return this['forceDefaultExecution'](()=>_0x58fd42(_0x477ecc,null,_0x24a0ea)),null;}}else{const _0x566e3c=_0x5c41a2['getFirstRange']();_0x8cfe00['some'](_0x1d4d7b=>_0x1d4d7b['containsRange'](_0x566e3c,!0x0))&&_0x5c41a2['discard']();if(_0x8cfe00['every'](_0x7d5a01=>_0x566e3c['containsRange'](_0x7d5a01,!0x0))){const _0x27f827=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x331cea,'accept');return this['forceDefaultExecution'](()=>_0x27f827(_0x8cfe00,null,_0x24a0ea)),null;}}const _0x48674a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x331cea,'join');let _0x1cc1db=null;for(const _0x55e022 of this['getSuggestions']())if(_0x55e022['author']['id']==_0x5a004e['id']&&_0x55e022['isInContent']&&'deletion'==_0x55e022['type']&&_0x55e022['subType']==_0x331cea&&sn(_0x55e022,_0x24a0ea)&&(_0x48674a(_0x55e022['getRanges'](),_0x8cfe00)||_0x48674a(_0x8cfe00,_0x55e022['getRanges']()))){if(_0x1cc1db){if(_0x55e022['commentThread']&&_0x55e022['commentThread']['length'])continue;for(const _0x4d027f of _0x55e022['getRanges']())_0x1cc1db['isIntersectingWithRange'](_0x4d027f)||_0x1cc1db['addRange'](_0x4d027f);_0x55e022['removeMarkers']();}else{_0x1cc1db=_0x55e022;for(const _0x139f89 of _0x8cfe00)_0x55e022['isIntersectingWithRange'](_0x139f89)||_0x55e022['addRange'](_0x139f89);}}if(_0x1cc1db)return _0x1cc1db;_0xe06b6f['clear']();for(const {suggestion:_0x251873,meta:_0x143aec}of this['_findSuggestions'](_0x8cfe00,'deletion'))_0x143aec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x143aec['containsRangeInObject']&&!_0x143aec['isInsideObject'])&&sn(_0x251873,_0x24a0ea)&&_0xe06b6f['add'](_0x251873);for(const _0x33ea3f of _0xe06b6f){const _0x5b3d73=_0x33ea3f['getRanges']();if(!_0x24a0ea||!_0x24a0ea['skipNestingCheck']){if(_0x8cfe00['every'](_0x348ece=>_0x5b3d73['some'](_0x567577=>_0x567577['containsRange'](_0x348ece,!0x0))))return _0x33ea3f;}(!_0x33ea3f['attributes']||!_0x33ea3f['attributes']['skipNestingCheck'])&&(_0x5b3d73['every'](_0x1c1673=>_0x8cfe00['some'](_0x182f6a=>_0x182f6a['containsRange'](_0x1c1673,!0x0)))&&_0x33ea3f['discard']());}const _0x1c7d5b=_0x1bc03f(),_0x11fe7a=_0x5a004e['id'],_0x649809='deletion:'+_0x331cea,_0x3ab348=this['_setSuggestionData']({'id':_0x1c7d5b,'type':_0x649809,'createdAt':new Date(),'authorId':_0x11fe7a,'attributes':_0x24a0ea});for(const _0x23569d of _0x8cfe00)_0x23569d['detach'](),_0x23569d['isCollapsed']||'$graveyard'==_0x23569d['root']['rootName']||this['_addSuggestionMarker'](_0x649809,_0x1c7d5b,_0x11fe7a,_0x23569d,T['getMultiRangeId']());return _0x3ab348;}['markAttributeChange'](_0x537bb6,_0x3064b7,_0x25458a,_0x38bbd2,_0x426160){if(_0x537bb6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2e90cf=this['editor']['plugins']['get']('Users')['me']['id'],_0x17f1cc=Array['from'](this['_suggestions']['values']())['filter'](_0x9a99d=>'attribute'==_0x9a99d['type']&&_0x9a99d['data']['key']==_0x3064b7&&_0x9a99d['isIntersectingWithRange'](_0x537bb6));if(this['_trackingSessionId']&&(_0x426160['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x8550a6=this['_findSuggestions'](_0x537bb6,'insertion')['filter'](({meta:_0xfe029d})=>_0xfe029d['isOwn']&&!_0xfe029d['isInsideObject']&&!_0xfe029d['isNextTo'])['map'](({suggestion:_0x29ef99})=>_0x29ef99);_0x17f1cc['unshift'](..._0x8550a6);}const _0x54a770=new Map([[_0x537bb6,_0x25458a]]);for(const _0x13f32 of _0x17f1cc){const _0x18a97e='attribute'==_0x13f32['type']?_0x13f32['data']['oldValue']:void 0x0,_0x423135=_0x13f32['getFirstRange'](),_0x17b94b=Array['from'](_0x54a770['keys']())['find'](_0x1e25f9=>_0x1e25f9['isIntersecting'](_0x423135));if(!_0x17b94b)continue;const _0x322ee7=_0x17b94b['getDifference'](_0x423135);this['_isBlockAttribute'](_0x3064b7)&&'insertion'==_0x13f32['type']&&0x0!=_0x322ee7['length']||(_0x54a770['delete'](_0x17b94b),_0x322ee7['forEach'](_0x262084=>{_0x54a770['set'](_0x262084,_0x25458a);}),'insertion'!=_0x13f32['type']&&_0x18a97e!=_0x38bbd2&&_0x54a770['set'](_0x17b94b['getIntersection'](_0x423135),_0x18a97e));}const _0x1b6c49=[];for(const [_0x290331,_0xabda34]of _0x54a770){const _0x450a83=_0x1bc03f(),_0x4a1fbf={'key':_0x3064b7,'oldValue':_0xabda34,'newValue':_0x38bbd2};_0x3064b7['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':_0x3064b7});const _0xc2ffcc=('attribute:'+(_0x3064b7+'|'+Ht({'newValue':_0x38bbd2})))['substring'](0x0,0x3c),_0x316e35=this['_setSuggestionData']({'id':_0x450a83,'type':_0xc2ffcc,'data':_0x4a1fbf,'createdAt':new Date(),'authorId':_0x2e90cf,'attributes':_0x426160});_0x1b6c49['push'](_0x316e35),this['_addSuggestionMarker'](_0xc2ffcc,_0x450a83,_0x2e90cf,_0x290331);}return _0x1b6c49;}['enableDefaultAttributesIntegration'](_0xc188d0){this['enableCommand'](_0xc188d0,(_0x918ff,..._0xaa2927)=>{this['recordAttributeChanges'](()=>{_0x918ff(..._0xaa2927);});});}['registerBlockAttribute'](_0x234ffc){this['editor']['plugins']['get'](_0x299603)['registerBlockAttribute'](_0x234ffc);}['registerInlineAttribute'](_0x55e3e3){this['editor']['plugins']['get'](_0x299603)['registerInlineAttribute'](_0x55e3e3);}['startTrackingSession'](_0x22e793){return this['_trackingSessionId']=void 0x0!==_0x22e793?_0x22e793:_0x1bc03f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1f016d){return'attribute'==_0x1f016d['type']?_0x1f016d['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0xa3c056){if(0x0==_0xa3c056['length'])return;const _0x2be57c=this['editor'],_0x354c91=_0x2be57c['plugins']['get'](_0x38c55e),_0x389d5d=[];_0x2be57c['model']['change'](_0x210177=>{for(let _0x3d6bf0=0x0;_0x3d6bf0<_0xa3c056['length'];_0x3d6bf0++){const _0x4fe04a=_0xa3c056[_0x3d6bf0];if(_0x4fe04a['baseVersion']=_0x2be57c['model']['document']['version'],_0x4fe04a['isDocumentOperation']=!0x0,_0x354c91['isMarkedRemoveOperation'](_0x4fe04a)){const _0xaf8837=_0x359a3c(_0x4fe04a['newRange'],_0x2be57c['model']);_0x389d5d['unshift'](_0x43f9b1['fromRange'](_0xaf8837));}else switch(_0x4fe04a['type']){case'rename':{const _0x43bc6f=_0x4fe04a['oldName'],_0x225050=_0x4fe04a['newName'];if(_0x43bc6f==_0x225050)break;_0x210177['batch']['addOperation'](_0x4fe04a),_0x2be57c['model']['applyOperation'](_0x4fe04a);const _0x1706af='$elementName',_0xdab774=_0x4fe04a['position'],_0x4077cb=_0x2be57c['model']['createRange'](_0xdab774,_0x2be57c['model']['createPositionAt'](_0xdab774['nodeAfter'],'end'));this['markAttributeChange'](_0x4077cb,_0x1706af,_0x43bc6f,_0x225050,{'groupId':_0x1bc03f()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xdda44=_0x4fe04a['oldValue'],_0x5302da=_0x4fe04a['newValue'];if(_0xdda44==_0x5302da)break;_0x210177['batch']['addOperation'](_0x4fe04a),_0x2be57c['model']['applyOperation'](_0x4fe04a);const _0x4a501a=_0x4fe04a['key'];if(!this['_isRegisteredAttribute'](_0x4a501a))break;const _0x1c8f58=_0x359a3c(_0x4fe04a['range'],_0x2be57c['model']);this['markAttributeChange'](_0x1c8f58,_0x4a501a,_0xdda44,_0x5302da,{'groupId':_0x1bc03f()});break;}case'insert':{_0x210177['batch']['addOperation'](_0x4fe04a),_0x2be57c['model']['applyOperation'](_0x4fe04a);if(_0xa3c056[_0x3d6bf0+0x1]&&'move'==_0xa3c056[_0x3d6bf0+0x1]['type'])break;const _0x5775ff=_0x4fe04a['position'],_0x46e26d=_0x4fe04a['howMany'],_0x46fc43=_0x359a3c(_0x2be57c['model']['createRange'](_0x5775ff,_0x5775ff['getShiftedBy'](_0x46e26d)),_0x2be57c['model']);this['markInsertion'](_0x46fc43);break;}case'split':{_0x210177['batch']['addOperation'](_0x4fe04a),_0x2be57c['model']['applyOperation'](_0x4fe04a);const _0x28bd2c=_0x4fe04a['splitPosition'],_0x1e2789=_0x4fe04a['moveTargetPosition'];this['markInsertion'](_0x2be57c['model']['createRange'](_0x28bd2c,_0x1e2789));break;}case'move':case'remove':_0x210177['batch']['addOperation'](_0x4fe04a),_0x2be57c['model']['applyOperation'](_0x4fe04a);}}for(const _0x28a163 of _0x389d5d)_0x28a163['detach'](),this['markDeletion'](_0x28a163);});}['_setSuggestionRange'](_0x1aead5,_0x4886a7){const _0x2f16be=_0x1aead5['getFirstMarker']();this['_model']['change'](_0x345252=>{_0x345252['updateMarker'](_0x2f16be,{'range':_0x4886a7});});}['_addThreadToSuggestion'](_0xbb495b){const _0x521679=_0xbb495b['id'],_0x4eee6f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x521679)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4eee6f,'threadId':_0x521679,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x373a1f=this['_commentsRepository']['getCommentThread'](_0x521679);_0x373a1f['unbind']('isRemovable'),_0x373a1f['isRemovable']=!0x1,_0xbb495b['commentThread']=_0x373a1f;}['_checkSuggestionCorrectness'](_0x13051f,_0x1b5976,_0x1e59c0,_0x500d7c){if(_0x13051f['type']!=_0x1b5976||_0x13051f['subType']!=_0x1e59c0||_0x13051f['creator']['id']!=_0x500d7c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x29a890('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x37c359,_0x25dcaf){const _0xc936e0=_0x37c359['getFirstRange']();if(_0x25dcaf['isEqual'](_0xc936e0))_0x37c359['removeMarkers']();else{if(_0xc936e0['containsRange'](_0x25dcaf)){const _0x88b82c=this['_model']['createPositionAt'](_0x25dcaf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x37c359,this['_model']['createRange'](_0xc936e0['start'],_0x88b82c));const _0x1c9646=_0x1bc03f(),_0x36eb52=_0x37c359['creator']['id'],_0x41f2b3=_0x37c359['type']+':'+_0x37c359['subType'];this['_setSuggestionData']({'id':_0x1c9646,'type':_0x41f2b3,'createdAt':new Date(),'authorId':_0x36eb52,'data':_0x37c359['data'],'attributes':_0x37c359['attributes']});const _0x490f20=this['_model']['createPositionAt'](_0x25dcaf['end']['parent'],'after'),_0x51ae87=this['_model']['createRange'](_0x490f20,_0xc936e0['end']);this['_addSuggestionMarker'](_0x41f2b3,_0x1c9646,_0x36eb52,_0x51ae87);}else{if(_0xc936e0['containsPosition'](_0x25dcaf['start'])){const _0x44879b=this['_model']['createPositionAt'](_0x25dcaf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x37c359,this['_model']['createRange'](_0xc936e0['start'],_0x44879b));}else{const _0x5bef54=this['_model']['createPositionAt'](_0x25dcaf['end']['parent'],'after');this['_setSuggestionRange'](_0x37c359,this['_model']['createRange'](_0x5bef54,_0xc936e0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1f2516){for(const {suggestion:_0x55f320,meta:_0x20242c}of this['_findSuggestions'](_0x1f2516,'insertion')){if(!_0x20242c['isOwn'])continue;const _0x2abd62=_0x55f320['getRanges']();for(const _0x1d6e8d of _0x2abd62)if(!_0x1f2516['getDifference'](_0x1d6e8d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4ce2d4){return this['editor']['plugins']['get']('Users')['getUser'](_0x4ce2d4);}['_getExternalAuthor'](_0x3c464f){const _0xcc332e=this['editor']['plugins']['get']('Users'),_0x3632ac=_0x276d54('external:'+_0x3c464f),_0x53e7cf=_0xcc332e['getUser'](_0x3632ac);return _0x53e7cf||_0xcc332e['addUser']({'id':_0x3632ac,'name':_0x3c464f});}['_createSuggestion'](_0x11ce69,_0x14eabb,_0x7168b7,_0x40d139,_0x4a65d9,_0x4f20e9){const _0x45b3df=this['_getAuthorFromId'](_0x40d139);if(!_0x45b3df)throw new _0x29a890('track-changes-user-not-found',this,{'authorId':_0x40d139,'suggestionId':_0x7168b7});const _0x141b4f=this['_suggestionFactory']['buildSuggestion'](_0x11ce69,_0x14eabb,_0x7168b7,_0x45b3df,_0x4a65d9,_0xc304a6=>{this['_updateSuggestionData'](_0x7168b7,{'attributes':_0xc304a6});const _0x34849=this['getSuggestion'](_0x7168b7);this['_joinWithAdjacentSuggestions'](new Set([_0x34849])),this['_refreshSuggestionsChain'](new Set([_0x34849]));},_0x4f20e9);return this['listenTo'](_0x141b4f,'accept',()=>{this['_updateSuggestionData'](_0x7168b7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x141b4f,'discard',()=>{this['_updateSuggestionData'](_0x7168b7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x7168b7,_0x141b4f),this['_suggestionState']['set'](_0x141b4f,'notReady'),_0x141b4f;}['_splitMarkerName'](_0x252da5){return _0x406097(_0x252da5);}['_breakSuggestionMarker'](_0xded385,_0x1de226,_0x426939){const _0x2f8827=_0xded385['getFirstRange'](),_0x2330ca=_0x2f8827['start'],_0x83346d=_0x2f8827['end'];this['_setSuggestionRange'](_0xded385,this['_model']['createRange'](_0x2330ca,_0x1de226));const _0x5cbb88=_0x1bc03f(),_0x28fb3a=_0xded385['creator']['id'],_0x3d379e=_0xded385['type']+(_0xded385['subType']?':'+_0xded385['subType']:'');this['_setSuggestionData']({'id':_0x5cbb88,'type':_0x3d379e,'createdAt':new Date(),'authorId':_0x28fb3a,'originalSuggestionId':_0xded385['_originalSuggestionId']||_0xded385['id'],'attributes':_0xded385['attributes'],'data':_0xded385['data']});const _0x4d59c7=this['_getAttributeKey'](_0xded385);('formatBlock'==_0xded385['type']||_0x4d59c7&&this['_isBlockAttribute'](_0x4d59c7))&&(_0x426939=this['_model']['createPositionBefore'](_0x426939['parent'])),this['_addSuggestionMarker'](_0x3d379e,_0x5cbb88,_0x28fb3a,this['_model']['createRange'](_0x426939,_0x83346d));}['_findSuggestions'](_0x294aa1,_0x3ff46e=null){const _0x5e89a0=[],_0x2d7157=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x294aa1)||(_0x294aa1=[_0x294aa1]);for(const _0x1aa5dc of this['getSuggestions']()){if(!_0x1aa5dc['isInContent'])continue;if(_0x3ff46e&&_0x1aa5dc['type']!=_0x3ff46e)continue;let _0x3cd2f7=!0x1;for(const _0x342191 of _0x1aa5dc['getRanges']()){for(const _0x13d548 of _0x294aa1){const _0x28857e=_0x13d548['start']['isEqual'](_0x342191['end'])||_0x13d548['end']['isEqual'](_0x342191['start']);if(_0x28857e||_0x13d548['getIntersection'](_0x342191)){const _0x3817e6=_0x13d548['containsRange'](_0x342191)&&zt(this['_model']['schema'],_0x342191['start'],_0x13d548),_0x5b0890=_0x342191['containsRange'](_0x13d548)&&zt(this['_model']['schema'],_0x13d548['start'],_0x342191);_0x5e89a0['push']({'suggestion':_0x1aa5dc,'meta':{'isOwn':_0x2d7157==_0x1aa5dc['author'],'isNextTo':_0x28857e,'isInsideObject':_0x3817e6,'containsRangeInObject':_0x5b0890}}),_0x3cd2f7=!0x0;break;}}if(_0x3cd2f7)break;}}return _0x5e89a0;}['_addSuggestionMarker'](_0x4ea192,_0x2f2962,_0x5a6e2e,_0xf7cca2,_0x3a9c8b){this['_model']['change'](_0x3d6138=>{let _0x460680='suggestion:'+_0x4ea192+':'+_0x2f2962+':'+_0x5a6e2e;_0x3a9c8b&&(_0x460680=_0x460680+':'+_0x3a9c8b),_0x3d6138['addMarker'](_0x460680,{'range':_0xf7cca2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xf73393){const _0x402a98=_0xf73393['previous'],_0x281ce5=_0xf73393['next'];_0xf73393['previous']=null,_0xf73393['next']=null,null!=_0x402a98&&_0x402a98['next']==_0xf73393&&(_0x402a98['next']=_0x281ce5),null!=_0x281ce5&&_0x281ce5['previous']==_0xf73393&&(_0x281ce5['previous']=_0x402a98),'ready'==this['_suggestionState']['get'](_0xf73393)&&(this['_suggestionState']['set'](_0xf73393,'removed'),this['fire']('suggestionUnloaded',_0xf73393,_0x402a98,_0x281ce5));}['_setSuggestionData'](_0x433c74){const _0x5acfcd=_0x433c74['id'],_0x1f73e0=this['addSuggestionData'](_0x433c74);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3ba8c3=this['editor']['plugins']['get']('PendingActions'),_0x2667b5=_0x1f73e0['hasComments'],_0x5da6f9=_0x1f73e0['subType']?_0x1f73e0['type']+':'+_0x1f73e0['subType']:_0x1f73e0['type'],_0x3260c3=this['editor']['locale'],_0x3e9fb3=_0x3ba8c3['add'](o(_0x3260c3,'PENDING_ACTION_SUGGESTION')),_0x3aad4a={'id':_0x5acfcd,'type':_0x5da6f9,'hasComments':_0x2667b5,'data':_0x433c74['data']||null,'originalSuggestionId':_0x433c74['originalSuggestionId']||null,'attributes':_0x1f73e0['attributes']};this['_adapter']['addSuggestion'](_0x3aad4a)['then'](_0x46b1ef=>{_0x1f73e0['_saved']=!0x0,_0x3ba8c3['remove'](_0x3e9fb3),_0x46b1ef&&_0x46b1ef['createdAt']&&(this['_suggestions']['get'](_0x5acfcd)['createdAt']=_0x46b1ef['createdAt']);})['catch'](_0x348e23=>{throw _0x1c1ad2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1f73e0['discard']();}),_0x1f73e0['stopListening'](),this['_suggestions']['delete'](_0x1f73e0['id']),this['_suggestionState']['delete'](_0x1f73e0),_0x348e23;});}return _0x1f73e0;}['_isBlockAttribute'](_0x2159cd){return this['editor']['plugins']['get'](_0x299603)['isBlockAttribute'](_0x2159cd);}['_isInlineAttribute'](_0x1c01b7){return this['editor']['plugins']['get'](_0x299603)['isInlineAttribute'](_0x1c01b7);}['_updateSuggestionData'](_0x278cdb,_0x3b00ba){const _0x1b3801=this['editor']['plugins']['get']('PendingActions'),_0x274876=this['getSuggestion'](_0x278cdb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x274876['_saved']){const _0x5aced0=_0x1b3801['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x278cdb,_0x3b00ba)['then'](()=>{_0x1b3801['remove'](_0x5aced0);});}else _0x274876['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x278cdb,_0x3b00ba);});}}['_getSuggestionData'](_0x3d0945){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x29a890('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3d0945);}['_handleNewSuggestionMarker'](_0x508216){const {id:_0xc48cf4,type:_0x1d437c,subType:_0x9e12a4,authorId:_0x5af99e}=this['_splitMarkerName'](_0x508216),_0x12936f=this['_suggestions']['get'](_0xc48cf4)||this['_createSuggestion'](_0x1d437c,_0x9e12a4,_0xc48cf4,_0x5af99e,{});switch(this['_checkSuggestionCorrectness'](_0x12936f,_0x1d437c,_0x9e12a4,_0x5af99e),this['_suggestionState']['get'](_0x12936f)){case'notReady':this['_getSuggestionData'](_0xc48cf4)['then'](_0x19656d=>{let _0xb86c6=Promise['resolve']();_0x19656d['hasComments']&&(_0xb86c6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc48cf4})),_0xb86c6['then'](()=>{this['addSuggestionData'](_0x19656d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x12936f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc48cf4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x12936f,'ready'),this['fire']('suggestionLoaded',_0x12936f);break;case'ready':this['fire']('suggestionChanged',_0x12936f);}return _0x12936f['addMarkerName'](_0x508216),_0x12936f;}['_refreshSuggestionsChain'](_0x59a352){const _0x564035=Array['from'](_0x59a352),_0x3fabdb=_0x564035['filter'](_0x57535a=>'attribute'==_0x57535a['type']);this['_refreshAttributeSuggestionsChain'](_0x3fabdb);const _0x4ae234=_0x564035['filter'](_0xcff976=>!_0xcff976['isMultiRange']&&'attribute'!=_0xcff976['type']),_0x40a25e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xde8b75=>!_0xde8b75['isMultiRange']&&'attribute'!=_0xde8b75['type']),_0x1b00cb=_0x40a25e['filter'](_0x1559f2=>!_0x59a352['has'](_0x1559f2)),_0x352ab6=new Map(_0x40a25e['map'](_0x4d7feb=>[_0x4d7feb,this['_suggestionFactory']['getSuggestionCallback'](_0x4d7feb['type'],_0x4d7feb['subType'],'chain')])),_0x4ca358=new Map(_0x40a25e['map'](_0x2fdc77=>[_0x2fdc77,_0x2fdc77['getFirstRange']()])),_0x281bc4=new Set(),_0x3edc7d=new Set();for(let _0x3d8a0b=0x0;_0x3d8a0b<_0x4ae234['length'];_0x3d8a0b++)_0x5f5794(_0x4ae234[_0x3d8a0b],_0x4ae234,_0x3d8a0b+0x1);for(let _0x4fe54d=0x0;_0x4fe54d<_0x4ae234['length'];_0x4fe54d++)_0x5f5794(_0x4ae234[_0x4fe54d],_0x1b00cb,0x0);const _0x117985=new Set();for(let _0x135858=0x0;_0x135858<_0x4ae234['length'];_0x135858++){const _0x35bd1b=_0x4ae234[_0x135858];!_0x3edc7d['has'](_0x35bd1b)&&_0x35bd1b['previous']&&(_0x117985['add'](_0x35bd1b['previous']),_0x35bd1b['previous']['next']===_0x35bd1b&&(_0x35bd1b['previous']['next']=null),_0x35bd1b['previous']=null),!_0x281bc4['has'](_0x35bd1b)&&_0x35bd1b['next']&&(_0x117985['add'](_0x35bd1b['next']),_0x35bd1b['next']['previous']===_0x35bd1b&&(_0x35bd1b['next']['previous']=null),_0x35bd1b['next']=null);}function _0x5f5794(_0x510578,_0x488aa2,_0x4d67d2){for(let _0x5554b5=_0x4d67d2;_0x5554b5<_0x488aa2['length'];_0x5554b5++){const _0x3d2252=_0x32f19a(_0x510578,_0x488aa2[_0x5554b5]);_0x3d2252&&(_0x3d2252[0x0]['next']=_0x3d2252[0x1],_0x3d2252[0x1]['previous']=_0x3d2252[0x0],_0x281bc4['add'](_0x3d2252[0x0]),_0x3edc7d['add'](_0x3d2252[0x1]));}}function _0x32f19a(_0x22890f,_0x35e400){if(_0x22890f['author']['id']!==_0x35e400['author']['id'])return null;const _0x14274d=_0x352ab6['get'](_0x22890f)(_0x22890f,_0x35e400,_0x4ca358['get'](_0x22890f),_0x4ca358['get'](_0x35e400));if(!_0x14274d)return null;return _0x352ab6['get'](_0x35e400)(_0x22890f,_0x35e400,_0x4ca358['get'](_0x22890f),_0x4ca358['get'](_0x35e400))?_0x14274d[0x1]['commentThread']&&_0x14274d[0x1]['commentThread']['length']?null:_0x14274d:null;}_0x117985['size']&&this['_refreshSuggestionsChain'](_0x117985);}['_refreshAttributeSuggestionsChain'](_0x978e7c){if(0x0==_0x978e7c['length'])return;const _0x2e6d3a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ea98d=>'attribute'==_0x5ea98d['type']&&_0x5ea98d['_isDataLoaded']),_0x24cb0f=[],_0x1b258c=new Map();for(const _0x428230 of _0x2e6d3a){const _0x198164=_0x276d54(_0x428230['attributes']);_0x1b258c['has'](_0x198164)||(_0x1b258c['set'](_0x198164,_0x24cb0f['length']),_0x24cb0f['push']([]));const _0x385d1c=_0x1b258c['get'](_0x198164);_0x24cb0f[_0x385d1c]['push'](_0x428230);}!(function(){_0x24cb0f['sort']((_0x43a2a9,_0x5c5e47)=>{const _0x57ea10=_0x43a2a9[0x0]['createdAt'],_0x5a2488=_0x5c5e47[0x0]['createdAt'];return _0x57ea10==_0x5a2488?_0x43a2a9[0x0]['attributes']['groupId']<_0x5c5e47[0x0]['attributes']['groupId']?-0x1:0x1:_0x57ea10<_0x5a2488?-0x1:0x1;});for(const _0x35bafd of _0x24cb0f)_0x35bafd['sort']((_0x373627,_0x192a99)=>_0x373627['id']<_0x192a99['id']?-0x1:0x1);}());for(let _0x4233b2=0x0;_0x4233b2<_0x24cb0f['length'];_0x4233b2++){if(0x0==_0x24cb0f[_0x4233b2]['length'])continue;const _0x33a5c1=[];for(let _0x4d3127=_0x4233b2+0x1;_0x4d3127<_0x24cb0f['length'];_0x4d3127++)0x0!=_0x24cb0f[_0x4d3127]['length']&&_0x1ac080(_0x24cb0f[_0x4233b2],_0x24cb0f[_0x4d3127])&&_0x33a5c1['push'](_0x4d3127);for(const _0x399232 of _0x33a5c1)_0x24cb0f[_0x4233b2]=_0x24cb0f[_0x4233b2]['concat'](_0x24cb0f[_0x399232]),_0x24cb0f[_0x399232]=[];}for(const _0x1879d1 of _0x24cb0f)for(let _0x3c81a9=0x0;_0x3c81a9<_0x1879d1['length'];_0x3c81a9++){const _0x388ac1=_0x1879d1[_0x3c81a9+0x1]||null;_0x1879d1[_0x3c81a9]['next']!==_0x388ac1&&(_0x1879d1[_0x3c81a9]['next']=_0x388ac1);}for(const _0x171078 of _0x24cb0f)for(let _0x358747=0x0;_0x358747<_0x171078['length'];_0x358747++){const _0x11f71f=_0x171078[_0x358747-0x1]||null;_0x171078[_0x358747]['previous']!==_0x11f71f&&(_0x171078[_0x358747]['previous']=_0x11f71f);}function _0x1ac080(_0x227d47,_0x3ab8d5){if(_0x227d47[0x0]['attributes']['groupId']!==_0x3ab8d5[0x0]['attributes']['groupId']&&_0x227d47[0x0]['author']!==_0x3ab8d5[0x0]['author'])return!0x1;if(!function(_0x201933,_0x1cb1a2){if(!_0x201933['hasComments']&&!_0x1cb1a2['hasComments'])return!0x0;if(_0x201933['hasComments']&&_0x1cb1a2['hasComments'])return!0x1;if(_0x201933['hasComments']&&_0x1cb1a2['createdAt']<_0x201933['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1cb1a2['hasComments']&&_0x201933['createdAt']<_0x1cb1a2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x227d47[0x0],_0x3ab8d5[0x0]))return!0x1;const _0x35395b=Jt(_0x227d47[0x0]['attributes'],['groupId','trackingSessionId']),_0x1ceb8a=Jt(_0x3ab8d5[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x493db7(_0x35395b,_0x1ceb8a))return!0x1;if(_0x227d47[0x0]['attributes']['groupId']==_0x3ab8d5[0x0]['attributes']['groupId'])return!0x0;if(_0x227d47[0x0]['attributes']['trackingSessionId']!==_0x3ab8d5[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x227d47['every'](_0x391523=>_0x3ab8d5['some'](_0x2d6309=>_0x391523['getFirstRange']()['isEqual'](_0x2d6309['getFirstRange']())))&&_0x3ab8d5['every'](_0x408c06=>_0x227d47['some'](_0x3f10ba=>_0x408c06['getFirstRange']()['isEqual'](_0x3f10ba['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1a255b){const _0x135256=Array['from'](_0x1a255b),_0x5f2a1b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x15b50d=_0x5f2a1b['filter'](_0xcd8a7b=>!_0x1a255b['has'](_0xcd8a7b)),_0x4bb1b6=new Map(_0x135256['map'](_0x119f1e=>[_0x119f1e,this['_suggestionFactory']['getSuggestionCallback'](_0x119f1e['type'],_0x119f1e['subType'],'join')])),_0x34f0e5=new Map(_0x5f2a1b['map'](_0x1bda17=>[_0x1bda17,_0x1bda17['getRanges']()]));for(let _0x2af4ad=0x0;_0x2af4ad<_0x135256['length'];_0x2af4ad++){if(_0x27acb9(this,_0x135256[_0x2af4ad],_0x135256,_0x2af4ad+0x1))return!0x0;}for(let _0x147aec=0x0;_0x147aec<_0x135256['length'];_0x147aec++){if(_0x27acb9(this,_0x135256[_0x147aec],_0x15b50d,0x0))return!0x0;}return!0x1;function _0x27acb9(_0x3ce924,_0x28d5f4,_0x38dbb1,_0xa75a0e){for(let _0xf286b=_0xa75a0e;_0xf286b<_0x38dbb1['length'];_0xf286b++){const _0x3372e2=_0x38dbb1[_0xf286b];if(_0x3372e2['type']!==_0x28d5f4['type']||_0x3372e2['author']['id']!==_0x28d5f4['author']['id']||_0x3372e2['subType']!==_0x28d5f4['subType'])continue;if(!en(_0x28d5f4,_0x3372e2))continue;if('attribute'==_0x28d5f4['type']&&_0x28d5f4['data']['oldValue']!=_0x3372e2['data']['oldValue'])continue;if('attribute'==_0x28d5f4['type']&&_0x3ce924['_isBlockAttribute'](_0x28d5f4['data']['key']))continue;if('formatBlock'==_0x28d5f4['type']){const _0x5727c1=_0x3ce924['editor']['model'],_0x14de5a=_0x28d5f4['getContainedElement']();if(_0x14de5a&&(_0x5727c1['schema']['isObject'](_0x14de5a)||_0x5727c1['schema']['isLimit'](_0x14de5a)))continue;}const _0x5bd784=_0x4bb1b6['get'](_0x28d5f4),_0x17236c=_0x34f0e5['get'](_0x28d5f4),_0x11d260=_0x34f0e5['get'](_0x3372e2),_0x12b593=_0x28d5f4['commentThread']&&_0x28d5f4['commentThread']['length'],_0x58abb6=_0x3372e2['commentThread']&&_0x3372e2['commentThread']['length'];if(!_0x12b593&&_0x5bd784(_0x11d260,_0x17236c))return _0x3ce924['_joinSuggestions'](_0x3372e2,_0x28d5f4),_0x34f0e5['delete'](_0x28d5f4),!0x0;if(!_0x58abb6&&_0x5bd784(_0x17236c,_0x11d260))return _0x3ce924['_joinSuggestions'](_0x28d5f4,_0x3372e2),_0x34f0e5['delete'](_0x3372e2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x557733,_0x533db7){if(_0x557733['isMultiRange']){for(const _0x179943 of _0x533db7['getRanges']())_0x557733['addRange'](_0x179943);}else{const _0x45e1a6=_0x533db7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x557733,this['_model']['createRange'](_0x557733['getFirstRange']()['start'],_0x45e1a6));}_0x533db7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2f6a16,_0x211abf,_0x21fb31){const _0xd661da=_0x2f6a16['startsWith']('format')||_0x2f6a16['startsWith']('attribute')?'FORMATTING':_0x2f6a16['toUpperCase']();return o(this['editor']['locale'],_0x211abf+'_'+_0xd661da+'_SUGGESTION_ANNOUNCEMENT',_0x21fb31);}['_initAriaMarkerChangeAnnouncements'](){const _0x5d46c4=this['editor'];if(!_0x5d46c4['ui'])return;const {ariaLiveAnnouncer:_0x4354e4}=_0x5d46c4['ui'];_0x1fecff(this['_model'],({left:_0x4a8ded,entered:_0x297ac3})=>{for(const _0x2a9805 of _0x4a8ded){const {group:_0xeebb60,type:_0x426f2b}=this['_splitMarkerName'](_0x2a9805['name']);if('suggestion'===_0xeebb60){_0x4354e4['announce'](this['_getMarkerAnnouncementText'](_0x426f2b,'LEAVE'));break;}}for(const _0x189c40 of _0x297ac3){const {group:_0xefb3a7,type:_0x49f9c3}=this['_splitMarkerName'](_0x189c40['name']);if('suggestion'===_0xefb3a7){_0x4354e4['announce'](this['_getMarkerAnnouncementText'](_0x49f9c3,'ENTER',_0x239d7c(_0x1b54d2)));break;}}});}['_processAttributeChanges'](_0x9a6a9e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4c870f=this['editor'],_0x605dae=_0x4c870f['model']['document']['differ']['getChanges']();if(0x0==_0x605dae['length'])return!0x1;const _0x4c16a1=[],_0xee23d2=_0x605dae['filter'](_0xc1123d=>'attribute'==_0xc1123d['type']),_0x433fbb=_0x605dae['filter'](_0x28d572=>'insert'==_0x28d572['type']&&'$text'!=_0x28d572['name']),_0x21e3c1=_0x605dae['filter'](_0x43a70b=>'remove'==_0x43a70b['type']&&'$text'!=_0x43a70b['name']);for(const _0x1ebf3c of _0xee23d2)_0x4c16a1['push']({'key':_0x1ebf3c['attributeKey'],'newValue':_0x1ebf3c['attributeNewValue'],'oldValue':_0x1ebf3c['attributeOldValue'],'range':Zt(_0x1ebf3c['range'],_0x4c870f['model'])});for(const _0x49a819 of _0x433fbb){const _0x38aba9=_0x21e3c1['find'](_0x50c2a7=>_0x50c2a7['position']['isEqual'](_0x49a819['position']));_0x38aba9&&_0x4c16a1['push']({'key':m,'newValue':_0x49a819['name'],'oldValue':_0x38aba9['name'],'range':_0x4c870f['model']['createRangeOn'](_0x49a819['position']['nodeAfter'])});}return 0x0!=_0x4c16a1['length']&&this['_reduceExistingSuggestions'](_0x9a6a9e,_0x4c16a1);}['_processAttributeSuggestions'](_0x34466f){let _0x3512de=!0x1;const _0x3865f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e933e=>_0x3e933e['data']['newRange']&&_0x3e933e['name']['startsWith']('suggestion:attribute:'));for(const _0x2d5ba8 of _0x3865f){const {subType:_0x540d11,id:_0x3f9ae4}=this['_splitMarkerName'](_0x2d5ba8['name']),_0x18a713=_0x540d11['split']('|')[0x0];for(const _0x2d9003 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2d9003['id']!=_0x3f9ae4&&'attribute'==_0x2d9003['type']&&_0x2d9003['data']&&_0x2d9003['data']['key']==_0x18a713&&_0x2d9003['getFirstRange']()['isIntersecting'](_0x2d5ba8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2d9003,_0x2d5ba8['data']['newRange'],_0x34466f),_0x3512de=!0x0);}return _0x3512de;}['recordAttributeChanges'](_0x4820ed){this['_recordAttributeSuggestions']=!0x0,_0x4820ed();}['_isRegisteredAttribute'](_0x18f583){return this['editor']['plugins']['get'](_0x299603)['isRegisteredAttribute'](_0x18f583);}['_reduceExistingSuggestions'](_0x478da3,_0x3b0e46){if(0x0==_0x3b0e46['length'])return!0x1;let _0x4056a5=!0x1;for(const _0xd2483b of _0x3b0e46){const _0x445a14=this['_findSuggestions'](_0xd2483b['range'],'attribute')['filter'](_0x1660f0=>!_0x1660f0['meta']['isNextTo'])['map'](_0x1b4400=>_0x1b4400['suggestion']),_0x366054=_0x276d54({'newValue':_0xd2483b['newValue']});_0x445a14['filter'](_0x34b84c=>{const [_0x48dc8a,_0xb789e9]=_0x34b84c['subType']['split']('|');return _0x48dc8a==_0xd2483b['key']&&_0xb789e9!=_0x366054;})['forEach'](_0x392646=>{this['_reduceSuggestionAttributeRange'](_0x392646,_0xd2483b['range'],_0x478da3),_0x4056a5=!0x0;});}return _0x4056a5;}['_reduceSuggestionAttributeRange'](_0x4311ec,_0x3483cf,_0x4f7cff){const _0x1cf053=_0x4311ec['getFirstRange']()['getDifference'](_0x3483cf);0x0!==_0x1cf053['length']?0x1!==_0x1cf053['length']?this['_breakSuggestionMarker'](_0x4311ec,_0x3483cf['start'],_0x3483cf['end']):this['_setSuggestionRange'](_0x4311ec,_0x1cf053[0x0]):_0x4f7cff['removeMarker'](_0x4311ec['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x552c34){this['_editor']=_0x552c34,this['_model']=_0x552c34['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x25cf43,_0x52a87a,_0x3cd240,_0xf73616,_0x8dc3,_0x18d52f,_0x339bb7){return new T(this['_model'],{'type':_0x25cf43,'subType':_0x52a87a,'id':_0x3cd240,'originalSuggestionId':_0x339bb7,'author':_0xf73616,'creator':_0xf73616,'attributes':_0x8dc3,'onAttributesChange':_0x18d52f,'onAccept':(..._0x2b7393)=>this['getSuggestionCallback'](_0x25cf43,_0x52a87a,'accept')(..._0x2b7393),'onDiscard':(..._0x3fe776)=>this['getSuggestionCallback'](_0x25cf43,_0x52a87a,'discard')(..._0x3fe776)});}['registerCustomCallback'](_0x175ab7,_0x5becca,_0x2c5bd5,_0x9d108a){const _0x2a8e99=_0x175ab7+':'+_0x5becca+':'+_0x2c5bd5;this['_customCallbacks']['set'](_0x2a8e99,_0x9d108a);}['getSuggestionCallback'](_0x2eeea9,_0x3cc2bb,_0x19ad5c){const _0x556c9c=_0x2eeea9+':'+_0x3cc2bb+':'+_0x19ad5c;return this['_customCallbacks']['get'](_0x556c9c)||this['_defaultCallbacks']['get'](_0x2eeea9+':'+_0x19ad5c);}['_registerDefaultCallbacks'](){const _0x2fa4eb=()=>!0x1,_0x3313d2=_0x580ab2=>{_0x580ab2['sort']((_0x18ffba,_0x238129)=>_0x18ffba['start']['isBefore'](_0x238129['start'])?0x1:-0x1),this['_model']['change'](_0x3c7418=>{for(const _0x1c3421 of _0x580ab2){let _0xd1ba7d;_0xd1ba7d=_0x1c3421['end']['isAtEnd']&&_0x1c3421['end']['parent']==_0x1c3421['start']['nodeAfter']?_0x3c7418['createSelection'](_0x1c3421['start']['nodeAfter'],'on'):_0x3c7418['createSelection'](_0x1c3421),this['_model']['deleteContent'](_0xd1ba7d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x113bfc=(_0x56c12e,_0x2d6121)=>{_0x2d6121&&this['_model']['change'](_0x49a526=>{const {commandName:_0x526978,commandParams:_0x5b4404=[]}=_0x2d6121,_0x2d7684=_0x56c12e['map'](_0x538d2a=>(Kt(_0x538d2a)&&(_0x538d2a=this['_model']['createRange'](_0x538d2a['end'])),_0x538d2a))['filter'](_0x4adeb2=>'$graveyard'!==_0x4adeb2['root']['rootName']);if(_0x2d7684['length']<0x1)return;const _0x2f43bc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x21b9d2=>_0x43f9b1['fromRange'](_0x21b9d2));_0x49a526['setSelection'](_0x2d7684);for(const _0x2e086d of this['_editor']['commands']['commands']())_0x2e086d['refresh']();_0x5b4404['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x526978,..._0x5b4404);const _0x46856b=_0x2f43bc['filter'](_0x167403=>'$graveyard'!=_0x167403['root']['rootName']);_0x46856b['length']>0x0&&_0x49a526['setSelection'](_0x46856b);for(const _0x3d52dc of _0x2f43bc)_0x3d52dc['detach']();});},_0x3d938f=(_0x1ee04a,_0x3be262)=>0x1==_0x1ee04a['length']&&0x1==_0x3be262['length']&&_0x1ee04a[0x0]['end']['isEqual'](_0x3be262[0x0]['start']),_0x1c9dda=(_0x386064,_0x110b71,_0x5f0807,_0x45fbb3)=>nn(_0x386064,_0x110b71,_0x5f0807,_0x45fbb3)?[_0x386064,_0x110b71]:nn(_0x110b71,_0x386064,_0x45fbb3,_0x5f0807)?[_0x110b71,_0x386064]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2fa4eb),this['_defaultCallbacks']['set']('insertion:discard',_0x3313d2),this['_defaultCallbacks']['set']('insertion:join',_0x3d938f),this['_defaultCallbacks']['set']('insertion:chain',_0x1c9dda),this['_defaultCallbacks']['set']('deletion:accept',_0x3313d2),this['_defaultCallbacks']['set']('deletion:discard',_0x2fa4eb),this['_defaultCallbacks']['set']('deletion:join',_0x3d938f),this['_defaultCallbacks']['set']('deletion:chain',_0x1c9dda),this['_defaultCallbacks']['set']('formatInline:accept',_0x113bfc),this['_defaultCallbacks']['set']('formatInline:discard',_0x2fa4eb),this['_defaultCallbacks']['set']('formatInline:join',_0x3d938f),this['_defaultCallbacks']['set']('formatInline:chain',_0x2fa4eb),this['_defaultCallbacks']['set']('formatBlock:accept',_0x113bfc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2fa4eb),this['_defaultCallbacks']['set']('formatBlock:join',_0x3d938f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2fa4eb),this['_defaultCallbacks']['set']('attribute:accept',_0x2fa4eb),this['_defaultCallbacks']['set']('attribute:discard',(_0x118774,_0x29ce24)=>{if(!_0x29ce24)return;const _0x794a47=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xc6c7e7=>{if(_0x29ce24['key']==m)for(const _0x55f4f0 of _0x118774){const _0x4e20d0=_0x55f4f0['start']['nodeAfter'],_0x41168a=_0x29ce24['oldValue'];_0xc6c7e7['rename'](_0x4e20d0,_0x41168a);}else{if(_0x794a47['_isBlockAttribute'](_0x29ce24['key'])){for(const _0x2174ab of _0x118774)void 0x0!==_0x29ce24['oldValue']?_0xc6c7e7['setAttribute'](_0x29ce24['key'],_0x29ce24['oldValue'],_0x2174ab['start']['nodeAfter']):_0xc6c7e7['removeAttribute'](_0x29ce24['key'],_0x2174ab['start']['nodeAfter']);}else{for(const _0x4471df of _0x118774)_0x29ce24['oldValue']?_0xc6c7e7['setAttribute'](_0x29ce24['key'],_0x29ce24['oldValue'],_0x4471df):_0xc6c7e7['removeAttribute'](_0x29ce24['key'],_0x4471df);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3d938f);}}function zt(_0x6721b4,_0x4de80c,_0x5aa9cf){for(const _0x484914 of _0x4de80c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x484914['root']==_0x484914)return!0x1;if(!_0x5aa9cf['containsItem'](_0x484914))return!0x1;if(_0x6721b4['isObject'](_0x484914)||_0x6721b4['isLimit'](_0x484914))return!0x0;}return!0x1;}function Kt(_0x5ee6ac){return _0x5ee6ac['end']['parent']==_0x5ee6ac['start']['nodeAfter']&&_0x5ee6ac['end']['isAtStart'];}function Wt(_0x51109c,_0xc00df,_0x357793,_0x2a0f3f){const _0x5d5113=_0x392279=>!_0x392279['item']['is']('$textProxy')&&!_0x2a0f3f['isObject'](_0x392279['item']),_0x13f6da=_0x51109c['start']['getLastMatchingPosition'](_0x5d5113),_0x4ef1c8=_0x51109c['end']['getLastMatchingPosition'](_0x5d5113,{'direction':'backward'});return(!_0x51109c['start']['isEqual'](_0x13f6da)||!_0x51109c['end']['isEqual'](_0x4ef1c8))&&(_0x13f6da['isBefore'](_0x4ef1c8)?_0x357793['updateMarker'](_0xc00df,{'range':_0x357793['createRange'](_0x13f6da,_0x4ef1c8)}):_0x357793['removeMarker'](_0xc00df),!0x0);}function Ht(_0xefe20a){return _0x276d54(_0xefe20a);}function Qt(_0x1f6ba5){const _0x39e731=_0x1f6ba5['start']['nodeAfter'];return _0x39e731&&_0x39e731['is']('element');}function Xt(_0x36be42){return Kt(_0x36be42)||function(_0x4a5215){return _0x4a5215['start']['parent']==_0x4a5215['end']['nodeBefore']&&_0x4a5215['start']['isAtEnd'];}(_0x36be42);}function Yt(_0x5164c9,_0x1c2dd1){try{const _0x338248=_0x5164c9['getRange']();for(const _0x4f32f2 of _0x1c2dd1)if(_0x5164c9!==_0x4f32f2&&_0x338248&&_0x338248['isIntersecting'](_0x4f32f2['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x35bbaa,_0x1c8811){return null==_0x35bbaa['end']['nodeBefore']&&_0x35bbaa['end']['parent']==_0x35bbaa['start']['nodeAfter']?tn(_0x35bbaa['start']['nodeAfter'],_0x1c8811):_0x35bbaa;}function tn(_0x34f102,_0x4bda6){const _0x28f194=_0x4bda6['schema']['isObject'](_0x34f102)||_0x4bda6['schema']['isSelectable'](_0x34f102);return _0x4bda6['createRange'](_0x4bda6['createPositionAt'](_0x34f102,'before'),_0x28f194?_0x4bda6['createPositionAfter'](_0x34f102):_0x4bda6['createPositionAt'](_0x34f102,'end'));}function nn(_0x1c1e55,_0x48a57b,_0x2a71d4,_0x4afd67){return!!en(_0x1c1e55,_0x48a57b)&&_0x2a71d4['end']['isEqual'](_0x4afd67['start']);}function en(_0x4f8ce0,_0x2a783b){if(!_0x4f8ce0['_isDataLoaded']||!_0x2a783b['_isDataLoaded'])return!0x1;const _0x39b888=new Set(Object['keys'](_0x4f8ce0['attributes'])),_0x2fa403=new Set(Object['keys'](_0x2a783b['attributes']));if(_0x39b888['delete']('groupId'),_0x2fa403['delete']('groupId'),0x0==_0x39b888['size']&&0x0==_0x2fa403['size'])return!0x0;if(_0x39b888['size']!=_0x2fa403['size'])return!0x1;const _0x2d2e6a={..._0x4f8ce0['attributes']},_0xe9a7f1={..._0x2a783b['attributes']};return delete _0x2d2e6a['groupId'],delete _0xe9a7f1['groupId'],JSON['stringify'](_0x2d2e6a)==JSON['stringify'](_0xe9a7f1);}function sn(_0x1fd001,_0x23cef3){const _0x58d877=on(_0x1fd001['attributes']),_0x4c60e1=on(_0x23cef3);if(!_0x1fd001['_isDataLoaded'])return!0x1;for(const _0x6fb7f3 of Object['keys'](_0x4c60e1))if(!_0x493db7(_0x58d877[_0x6fb7f3],_0x4c60e1[_0x6fb7f3]))return!0x1;return!0x0;}function on(_0x2c2bde){const _0x27e8ac=Object['assign']({},_0x2c2bde);return delete _0x27e8ac['skipNestingCheck'],delete _0x27e8ac['tablePasteChainId'],_0x27e8ac;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x26bd90(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x464d4d,_0x57b3b0,_0x352572,_0x5f4dca){super(),this['model']=_0x57b3b0,this['view']=_0x352572,this['commentThreadController']=_0x5f4dca,this['_editor']=_0x464d4d,this['_acceptCommand']=_0x464d4d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x464d4d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x36fbb6,_0x22081d)=>_0x36fbb6||_0x22081d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x14a9c9=>_0x14a9c9&&this['_editor']['model']['canEditAt'](_0x57b3b0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4410b7=>_0x4410b7&&this['_editor']['model']['canEditAt'](_0x57b3b0['getRanges']())),this['_pendingAction']=null,_0x352572['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x352572,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x352572,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x352572,'change:isDirty',()=>{_0x352572['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 _0xf1a185=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xf1a185);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x46cbf6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1c0fad,_0x1e64bc,_0x5e3a54,_0x36c293){super(_0x1c0fad),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5e4117(_0x1c0fad,o(_0x1c0fad,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1e64bc['authoredAt']),this['bind']('authoredAt')['to'](_0x1e64bc),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',_0x1e64bc,'authoredAt',this,'descriptionParts',(_0x4a070b,_0x11b861,_0x3889bb)=>{const _0x5b787f=_0x3889bb['map'](_0x28ab0e=>ls(_0x28ab0e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4a070b-0x1,_0x1e64bc['author']['name'],_0x11b861?_0x36c293['formatDateTime'](_0x11b861):'',new DOMParser()['parseFromString'](_0x5b787f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x462d7b(),this['focusTracker']=new _0x51f1e9(),this['keystrokes']=new _0x3f7945(),this['focusCycler']=new _0x385a37({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1bd4dd=>_0x1bd4dd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1e64bc,this['_localUser']=_0x5e3a54,this['_config']=_0x36c293,_0x36c293['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x53d3bb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x23c932}=this['_config'];this['commentsListView']=new _0x23c932(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',_0x10d743=>_0x10d743+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x487f5b,_0x3950cc)=>_0x487f5b||!!_0x3950cc);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3f3d5b}=this['_config'],_0x5541bd=new _0x3f3d5b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x244cff=_0x5541bd['commentInputView'];return _0x5541bd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x244cff,'value',(_0x29f7d9,_0x418995,_0x2d9583)=>!!_0x2d9583||_0x29f7d9&&!_0x418995),_0x244cff['on']('submit',(_0x194a92,_0x2b5bce)=>{this['fire']('addComment',_0x2b5bce),_0x244cff['editor']['setData']('');}),_0x244cff['on']('cancel',()=>this['focus']()),_0x244cff['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5541bd;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x5d06ef,_0x5d8dde,_0x59d905,_0x59a1e5){super(_0x5d06ef,_0x5d8dde,_0x59d905,_0x59a1e5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1fdafb=>_0x1fdafb&&_0x1fdafb[0x0]?_0x1fdafb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4a0c00,_0x5907b6)=>{let _0x33f5d2='';for(const _0x92deec of _0x4a0c00)_0x33f5d2+='<p>'+ls(_0x92deec['content'],_0x92deec['color'])+'</p>';return _0x5907b6?_0x33f5d2:_0x3bcd7b(_0x33f5d2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x59a1e5['SuggestionView'](_0x5d06ef,_0x5d8dde,{'formatDateTime':_0x59a1e5['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 _0x482afd=this['bindTemplate'],_0x302e90=[this['suggestionView']];return this['commentsListView']&&_0x302e90['push'](this['commentsListView']),this['commentThreadInputView']&&_0x302e90['push'](this['commentThreadInputView']),_0x302e90['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x482afd['if']('isActive','ck-suggestion-wrapper--active'),_0x482afd['to']('type',_0x17474a=>'ck-suggestion-'+_0x17474a),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':_0x482afd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x302e90};}['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 _0x46cbf6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x13afc3,_0x559aae,_0x5f5be2){super(_0x13afc3),this['_model']=_0x559aae,this['_config']=_0x5f5be2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x559aae),this['acceptButton']=this['_createButton'](o(_0x13afc3,'Accept\x20suggestion'),_0x13ce00,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x13afc3,'Discard\x20suggestion'),_0x3b7f67,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x41802b(_0x13afc3,_0x559aae['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x462d7b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x51f1e9(),this['keystrokes']=new _0x3f7945(),this['focusCycler']=new _0x385a37({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3734a9=>_0x3734a9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4b28b7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4b28b7['innerHTML']=this['description'],this['on']('change:description',(_0xfcceb1,_0x26abec,_0x5bdfc9)=>{_0x4b28b7['innerHTML']=_0x5bdfc9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3f9fe8=this['bindTemplate'],_0x92aad3=[{'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':_0x3f9fe8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3f9fe8['to']('authoredAt',_0x410536=>this['_config']['formatDateTime'](_0x410536))}]}]},{'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']&&_0x92aad3['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':_0x92aad3}]};}['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'](_0x1db26e,_0x190017,_0x5696e3,_0x3292f4,_0x57f8f7){const _0x1142ad=new _0x3f58f0(this['locale']);return _0x1142ad['set']({'label':_0x1db26e,'icon':_0x190017,'tooltip':!0x0,'tooltipPosition':_0x57f8f7}),_0x1142ad['extendTemplate']({'attributes':{'class':_0x5696e3}}),_0x1142ad['on']('execute',()=>{this['fire'](_0x3292f4,this['_model']['id']);}),_0x1142ad;}['_setupKeyboardNavigation'](){const _0x112ded=this['element'];this['keystrokes']['listenTo'](_0x112ded);for(const _0x31489d of this['focusables'])this['focusTracker']['add'](_0x31489d['element']),this['keystrokes']['listenTo'](_0x31489d['element']);this['keystrokes']['set']('enter',(_0x2afb7c,_0x589248)=>{_0x112ded===_0x2afb7c['target']&&(this['focusCycler']['focusFirst'](),_0x589248());}),this['keystrokes']['set']('esc',(_0x38333e,_0x3baa46)=>{_0x112ded!==_0x38333e['target']&&(this['focus'](),_0x3baa46());});}}class u extends _0x1480f8{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5aac27,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f169a){super(_0x2f169a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x423fd4=this['editor']['config'];_0x423fd4['define']('trackChanges.SuggestionThreadView',fe),_0x423fd4['define']('trackChanges.SuggestionView',we),_0x423fd4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x423fd4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ccbad,_0x1b3388){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5c0101,_0x32d2a1]of this['_handleControllerBuffer']){const _0x1d4aaf=this['_suggestionToController']['has'](_0x5c0101);_0x1d4aaf||_0x32d2a1?_0x1d4aaf&&_0x32d2a1&&this['_destroyController'](_0x5c0101):this['_initializeController'](_0x5c0101);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ccbad,_0x1b3388);}['init'](){const _0x5058c5=this['editor'],_0x1ca65b=_0x5058c5['plugins']['get']('TrackChangesEditing'),_0x1459a4=_0x5058c5['plugins']['get']('Annotations'),_0x4a81f1=_0x5058c5['plugins']['get']('EditorAnnotations'),_0x10c703=_0x5058c5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4a81f1['addSourceCollector'](()=>{const _0x5c69d9=[];for(const [_0x357be8,_0x57f20e]of Array['from'](this['_suggestionToController'])){const _0x1cfa7f=_0x357be8['getAllAdjacentSuggestions'](),_0x22d522=[];for(const _0x57144a of _0x1cfa7f){if(!_0x57144a['isInContent'])continue;if(_0x57144a['isMultiRange']){_0x22d522['push'](..._0x57144a['getRanges']());continue;}const _0x392ecf=_0x57144a['getFirstRange']();if(_0x22d522['length']>0x0){const _0xe1d9fc=_0x22d522[0x0]['getJoined'](_0x392ecf);if(_0xe1d9fc){_0x22d522[0x0]=_0xe1d9fc;continue;}}_0x22d522['push'](_0x392ecf);}_0x5c69d9['push']([_0x57f20e['view'],_0x22d522]);}return _0x5c69d9;}),this['listenTo'](_0x1ca65b,'suggestionLoaded',(_0xbd4ce,_0xc5a1fb)=>{this['listenTo'](_0xc5a1fb,'change:previous',(_0x584f65,_0x23f421,_0x2f60a1,_0x134bb5)=>{_0xc5a1fb['isInContent']&&(null==_0x2f60a1?(this['_updateController'](_0x134bb5['head']),this['_handleSuggestionControllerDelayed'](_0xc5a1fb,!0x1)):(this['_updateController'](_0x2f60a1['head']),null==_0x134bb5&&this['_handleSuggestionControllerDelayed'](_0xc5a1fb,!0x0)));}),null!==_0xc5a1fb['previous']?this['_updateController'](_0xc5a1fb['head']):this['_handleSuggestionControllerDelayed'](_0xc5a1fb,!0x1);}),this['listenTo'](_0x1ca65b,'suggestionUnloaded',(_0x4a799d,_0x3f42aa,_0x2fba7d)=>{this['stopListening'](_0x3f42aa,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3f42aa),this['_suggestionToController']['has'](_0x3f42aa)&&this['_destroyController'](_0x3f42aa),_0x2fba7d&&this['_updateController'](_0x2fba7d['head']);}),this['listenTo'](_0x1ca65b,'suggestionChanged',(_0x647eef,_0x134e8f)=>{this['_updateController'](_0x134e8f);}),this['listenTo'](_0x1459a4,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x10c703,'addComment',(_0x278058,{threadId:_0x330111,isFromAdapter:_0x2349c2})=>{if(_0x2349c2||!_0x1ca65b['hasSuggestion'](_0x330111))return;const _0x3e71d0=_0x1ca65b['getSuggestion'](_0x330111);this['_suggestionToController']['get'](_0x3e71d0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x27250b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x409428;for(const _0x14aad4 in _0x27250b){const _0x2dd1ff=_0x14aad4,_0xeddfc0=_0x27250b[_0x2dd1ff];if('trackChangesLicenseKeyValid'==_0xeddfc0||'trackChangesLicenseKeyInvalid'==_0xeddfc0||'trackChangesLicenseKeyExpired'==_0xeddfc0||'trackChangesLicenseKeyDomainLimit'==_0xeddfc0||'trackChangesLicenseKeyNotAllowed'==_0xeddfc0||'trackChangesLicenseKeyEvaluationLimit'==_0xeddfc0||'trackChangesLicenseKeyUsageLimit'==_0xeddfc0){delete _0x27250b[_0x2dd1ff],_0x409428=_0xeddfc0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x409428&&_0x27250b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x409428&&_0x27250b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x409428&&_0x27250b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x409428&&_0x27250b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x409428&&_0x27250b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x409428&&_0x27250b['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x12b784){const _0x5d2d2b=this['_suggestionToController']['get'](_0x12b784);if(!_0x5d2d2b)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x5d2d2b['view'])||null;}['getSuggestionForAnnotation'](_0x2863b7){const _0x554f67=this['_viewToController']['get'](_0x2863b7['innerView']);return _0x554f67?_0x554f67['model']:null;}['_refreshActiveMarkers'](){const _0x876e87=this['editor']['plugins']['get']('Annotations'),_0x34c42c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1df0b5=Array['from'](_0x876e87['activeAnnotations'],_0x32990e=>_0x32990e['innerView'])['filter'](_0xeb5b92=>this['_viewToController']['has'](_0xeb5b92)),_0x5428f6=[];for(const _0x2de488 of _0x1df0b5){const _0x358978=this['_viewToController']['get'](_0x2de488)['model']['getAllAdjacentSuggestions']();_0x5428f6['push'](..._0x358978['reduce']((_0x3d80be,_0x396b80)=>[..._0x3d80be,..._0x396b80['getMarkerNames']()],[]));}_0x34c42c['activeMarkers']=_0x5428f6;}['_addUIComponentsToFactory'](){const _0x3dfbe5=this['editor'],_0x550625=_0x3dfbe5['locale'],_0xf9585=o(_0x550625,'Track\x20changes'),_0xa68e8=new _0x434398([{'type':'switchbutton','model':new _0x1e3dcc({'withText':!0x0,'isToggleable':!0x0,'label':_0xf9585,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1e3dcc({'withText':!0x0,'label':o(_0x550625,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e3dcc({'withText':!0x0,'label':o(_0x550625,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e3dcc({'withText':!0x0,'label':o(_0x550625,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e3dcc({'withText':!0x0,'label':o(_0x550625,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3dfbe5['plugins']['has']('TrackChangesPreview')&&_0xa68e8['addMany']([{'type':'separator'},{'type':'button','model':new _0x1e3dcc({'withText':!0x0,'label':o(_0x550625,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1e24fc of _0xa68e8)if(ke(_0x1e24fc)){const _0x2f2e93=_0x3dfbe5['commands']['get'](_0x1e24fc['model']['commandName']);_0x1e24fc['model']['bind']('isOn','isEnabled')['to'](_0x2f2e93,'value','isEnabled');}_0x3dfbe5['ui']['componentFactory']['add']('trackChanges',_0x33e54b=>this['_createToolbarButton'](_0x33e54b,_0xa68e8,_0xf9585)),_0x3dfbe5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4b90a6=>this['_createMenuBarMenu'](_0x4b90a6,_0xa68e8,_0xf9585));}['_createToolbarButton'](_0x312687,_0x58eddd,_0x368ffd){const _0x1adfde=_0x26f2b8(_0x312687,_0x35df82),_0x254e94=this['editor']['commands']['get']('trackChanges');_0x1adfde['buttonView']['set']({'tooltip':_0x368ffd,'label':_0x368ffd,'icon':_0x2d3dcf}),_0x1adfde['buttonView']['bind']('isOn')['to'](_0x254e94,'value'),_0x1adfde['buttonView']['on']('execute',()=>{_0x254e94['execute'](),this['editor']['editing']['view']['focus']();}),_0x202a7c(_0x1adfde,_0x58eddd,{'role':'menu'});const _0x330670=[];for(const _0x46fb74 of _0x58eddd)ke(_0x46fb74)&&_0x330670['push'](this['editor']['commands']['get'](_0x46fb74['model']['commandName']));const _0x4e9be9=_0x1adfde['buttonView'];return _0x4e9be9['actionView']['unbind']('isEnabled'),_0x4e9be9['arrowView']['unbind']('isEnabled'),_0x4e9be9['actionView']['bind']('isEnabled')['to'](_0x254e94,'isEnabled'),_0x4e9be9['arrowView']['bind']('isEnabled')['toMany'](_0x330670,'isEnabled',(..._0x345fc5)=>_0x345fc5['some'](_0x52e397=>_0x52e397)),_0x1adfde['on']('execute',_0x4c4517=>{this['editor']['execute'](_0x4c4517['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1adfde;}['_createMenuBarMenu'](_0x343490,_0x44fa04,_0xf0c314){const _0x448468=new _0x533c63(_0x343490),_0x1446a4=this['editor']['commands']['get']('trackChanges');_0x448468['buttonView']['set']({'label':_0xf0c314,'icon':_0x2d3dcf});const _0x5a24c3=new _0x318d9e(_0x343490);for(const _0x2ff468 of _0x44fa04){if('separator'==_0x2ff468['type']){_0x5a24c3['items']['add'](new _0x2f3bf3(_0x343490));continue;}const _0x1a5e19=new _0x5ed9fc(_0x343490,_0x448468),_0x5785b1=new _0x285dd1(_0x343490),_0x4333dd=_0x2ff468['model'];_0x5785b1['bind'](...Object['keys'](_0x4333dd))['to'](_0x4333dd),_0x5785b1['delegate']('execute')['to'](_0x448468),_0x5785b1['on']('execute',()=>{this['editor']['execute'](_0x4333dd['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a5e19['children']['add'](_0x5785b1),_0x5a24c3['items']['add'](_0x1a5e19);}return _0x448468['bind']('isEnabled')['to'](_0x1446a4,'isEnabled'),_0x448468['panelView']['children']['add'](_0x5a24c3),_0x448468;}['_initializeController'](_0x348938){const _0x265875=this['editor'],_0x339d78=_0x265875['config'],_0x8188cf=_0x265875['plugins']['get']('Annotations'),_0xafa5c3=_0x265875['plugins']['get']('CommentsRepository'),_0x3da0bb=_0x265875['plugins']['get']('EditorAnnotations'),_0x12b05f=_0x265875['plugins']['get'](_0x5aac27)['me'],_0x3f1157=_0x339d78['get']('trackChanges')['SuggestionThreadView'],_0xb9122b=_0x339d78['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1db6e0,CommentThreadInputView:_0x28b768}=_0x265875['plugins']['get']('CommentsUI');let _0x4e3992,_0x4900ad,_0x41ac84;this['_annotationViews']['has'](_0x348938['id'])?(_0x4900ad=this['_annotationViews']['get'](_0x348938['id']),_0x4e3992=_0x4900ad['mainView']):(_0x4e3992=new _0x3f1157(_0x265875['locale'],_0x348938,_0x12b05f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x339d78['get']('comments.editorConfig'),'licenseKey':_0x339d78['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x339d78['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x339d78['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x339d78['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1fb111(_0x339d78['get']('locale'),_0x265875['locale']),'CommentView':_0x339d78['get']('comments')['CommentView'],'CommentsListView':_0x1db6e0,'CommentThreadInputView':_0x28b768,'SuggestionView':_0xb9122b}),_0x4e3992['suggestionView']['acceptButton']['on']('execute',()=>{_0x265875['editing']['view']['focus']();}),_0x4e3992['suggestionView']['discardButton']['on']('execute',()=>{_0x265875['editing']['view']['focus']();}),_0x4900ad=_0x8188cf['createAnnotationView'](this['editor']['locale'],_0x4e3992),_0x4900ad['bind']('isDirty')['to'](_0x4e3992,'isDirty'),_0x4900ad['bind']('length')['to'](_0x4e3992),_0x4900ad['bind']('type')['to'](_0x4e3992,'type',_0x5aea17=>'suggestion-'+_0x5aea17),_0x4e3992['on']('escape',()=>{_0x41ac84['fire']('escape');}),this['_annotationViews']['set'](_0x348938['id'],_0x4900ad));const _0x44db81=_0xafa5c3['createCommentThreadController'](_0x348938['commentThread'],_0x4e3992),_0xf5930c=new pe(_0x265875,_0x348938,_0x4e3992,_0x44db81),_0xf0a027=_0x348938['getAllAdjacentSuggestions']()['filter'](_0x23d97b=>_0x23d97b['isInContent']);_0x4e3992['descriptionParts']=_0x265875['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xf0a027),this['_suggestionToController']['set'](_0x348938,_0xf5930c),this['_viewToController']['set'](_0x4e3992,_0xf5930c);const _0x3b0d93=()=>{const _0x1e6709=[],_0x4c7469=_0x348938['getAllAdjacentSuggestions']()['filter'](_0x435cae=>_0x435cae['isInContent']);for(const _0x25d572 of _0x4c7469)_0x1e6709['push'](..._0x25d572['getMarkers']());return _0x5b05e7(_0x265875['editing'],_0x1e6709);};_0x41ac84=_0x8188cf['createAnnotation']({'view':_0x4900ad,'target':_0x3b0d93,'type':()=>'suggestion-'+_0xf5930c['view']['type'],'isVisible':!!_0x3b0d93()}),_0xafa5c3['_bindAnnotationToEditors'](_0x4e3992,_0x41ac84),_0x8188cf['add'](_0x41ac84),_0x3da0bb['registerAnnotation'](_0x41ac84);}['_destroyController'](_0x4dbeea){const _0x1a128e=this['editor']['plugins']['get']('CommentsRepository'),_0x266648=this['editor']['plugins']['get']('Annotations'),_0x214d63=this['_suggestionToController']['get'](_0x4dbeea),_0x2f6531=_0x214d63['view'],_0x2499ca=_0x266648['getByInnerView'](_0x2f6531);_0x1a128e['_unbindEditors'](_0x2f6531),_0x2499ca&&_0x266648['remove'](_0x2499ca),this['_suggestionToController']['delete'](_0x4dbeea),this['_viewToController']['delete'](_0x2f6531),_0x214d63['destroy']();}['_updateController'](_0xb3dca1){if(!_0xb3dca1['isInContent']||!this['_suggestionToController']['has'](_0xb3dca1))return;const _0x4ed161=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40f81f=this['_suggestionToController']['get'](_0xb3dca1),_0x73b770=_0xb3dca1['getAllAdjacentSuggestions']();_0x40f81f['view']['descriptionParts']=_0x4ed161['descriptionFactory']['getDescriptions'](_0x73b770);}['destroy'](){for(const _0x296dfc of this['_suggestionToController']['keys']())this['_destroyController'](_0x296dfc);for(const _0x18532a of this['_annotationViews']['values']())_0x18532a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x22ef13){return'model'in _0x22ef13;}class Ne extends _0x1480f8{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x12064e){this['editor']['plugins']['get'](d)['adapter']=_0x12064e;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x263a5b){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x263a5b);}['getSuggestions']({skipNotAttached:_0x1504ad=!0x1,toJSON:_0x41b887=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1504ad,'toJSON':_0x41b887});}['getSuggestion'](_0x54d5a0){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x54d5a0);}}const p=['Pagination'];class re extends _0x1480f8{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x24dd8c=this['editor'];if(_0x24dd8c['config']['define']('trackChangesData.editorCreator',_0x150f75=>{const _0x20a190=_0x24dd8c['model']['document']['getRootNames']()['reduce']((_0x38e0fd,_0x3fa79c)=>(_0x38e0fd[_0x3fa79c]='',_0x38e0fd),{});return _0x24dd8c['constructor']['create'](_0x20a190,_0x150f75);}),'function'!=typeof _0x24dd8c['config']['get']('trackChangesData')['editorCreator'])throw new _0x29a890('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x273275){return P(this['editor'],!0x0,_0x273275);}['getDataWithDiscardedSuggestions'](_0x2d8b78){return P(this['editor'],!0x1,_0x2d8b78);}}class Fe extends _0x1480f8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43aa83){function _0x345708(_0x142b76){return _0x142b76['map'](_0x407e99=>String['fromCharCode'](_0x407e99))['join']('');}super(_0x43aa83),this['result']='end',_0x43aa83[_0x345708([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x345708([0x76,0x69,0x65,0x77])][_0x345708([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x345708([0x61,0x75,0x74,0x6f]),_0x43aa83[_0x345708([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x345708([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x345708([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x345708([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x345708([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 De(_0x17319a){return void 0x0!==_0x17319a['getRootsAttributes'];}async function P(_0xb13605,_0x186410,_0x51ff01){const _0x823ac5=_0x59e451(_0xb13605,p);_0x823ac5['plugins']['push'](d,Fe),_0x823ac5['rootsAttributes']=De(_0xb13605)?_0xb13605['getRootsAttributes']():void 0x0;const _0x5bda7f=document['createDocumentFragment'](),_0x20a1dd=_0xb13605['config']['get']('trackChangesData')['editorCreator'],_0x563afd=await _0x20a1dd(_0x823ac5,()=>function(_0x1a5c5c){const _0x1d58e7=document['createElement']('div');return _0x1a5c5c['appendChild'](_0x1d58e7),_0x1d58e7;}(_0x5bda7f));!function(_0x27eb46,_0x97079d){const _0x42d7e0=_0x27eb46['model']['document']['getRootNames']()['reduce']((_0x45da2d,_0x3b211d)=>(_0x45da2d[_0x3b211d]=_0x27eb46['data']['get']({'rootName':_0x3b211d}),_0x45da2d),{}),_0x4107f2=_0x27eb46['plugins']['get']('Users')['users']['map'](_0x12d69a=>({'id':_0x12d69a['id'],'name':_0x12d69a['name']})),_0x397c60=_0x27eb46['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52cd24=_0x27eb46['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1dedcb=_0x97079d['plugins']['get']('Users'),_0x5a14f0=_0x97079d['plugins']['get']('TrackChangesEditing'),_0x2f32f9=_0x97079d['plugins']['get']('CommentsRepository');for(const _0x12e5e5 of _0x2f32f9['getCommentThreads']())_0x12e5e5['remove']();for(const _0x5749d2 of _0x4107f2)_0x1dedcb['getUser'](_0x5749d2['id'])||_0x1dedcb['addUser'](_0x5749d2);_0x1dedcb['me']||_0x1dedcb['useAnonymousUser']();for(const _0x652e79 of _0x52cd24)_0x2f32f9['addCommentThread'](_0x652e79);for(const _0x9ee073 of _0x397c60)_0x5a14f0['addSuggestionData'](_0x9ee073);_0x97079d['data']['set'](_0x42d7e0);}(_0xb13605,_0x563afd),_0x563afd['execute'](_0x186410?'acceptAllSuggestions':'discardAllSuggestions');const _0x103b45=De(_0x563afd)?_0x563afd['getFullData'](_0x51ff01):_0x563afd['data']['get'](_0x51ff01);return await _0x563afd['destroy'](),_0x103b45;}class Me extends _0x46cbf6{['options'];constructor(_0x2c9225,_0x47cf1b){super(_0x2c9225),this['options']=_0x47cf1b,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'](_0x10e926,_0xfaf0be){if(!this['element'])return;const _0x41b4cb=[];for(const [_0x25d0ee,_0x56f172]of _0x10e926){const _0x53d4a6=document['createElement']('div');_0x53d4a6['setAttribute']('data-ck-root-name',_0x25d0ee),_0x53d4a6['className']=_0x56f172['classes']+'\x20ck-track-changes-preview__root-container',_0x53d4a6['innerHTML']=_0x56f172['content'],_0x41b4cb['push'](_0x53d4a6);}_0xfaf0be(this['element'],_0x41b4cb),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2af6e6{constructor(_0x17ba32){super(_0x17ba32),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x152685=this['editor'],_0x3887dc=_0x152685['locale'],_0x19b389=_0x152685['plugins']['get']('Dialog');let _0x46ba05;const _0x530012=function(_0x495116){const _0x35bf9e={};if('editables'in _0x495116['ui']['view']){for(const [_0x5bb661,_0x325439]of Object['entries'](_0x495116['ui']['view']['editables']))_0x35bf9e[_0x5bb661]=_0x325439['element'];}else _0x35bf9e[_0x495116['model']['document']['getRootNames']()[0x0]]=_0x495116['ui']['view']['editable']['element'];return _0x35bf9e;}(_0x152685),_0xf6ee5f=function(_0x53e815){let _0x215877=0x0;for(const _0x5ca26f of Object['values'](_0x53e815))_0x215877=Math['max'](_0x215877,_0x5ca26f['getBoundingClientRect']()['width']);let _0xb32d84=0x0;for(const _0x383149 of Object['values'](_0x53e815))_0xb32d84+=_0x383149['getBoundingClientRect']()['height'];const _0x5c9669=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xd93186=Math['min'](_0xb32d84,_0x5c9669);return{'width':_0x215877,'height':_0xd93186};}(_0x530012);_0x19b389['show']({'id':'finalContentPreview','title':o(_0x3887dc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3887dc,{'dialogRects':_0xf6ee5f}),'onHide':()=>{_0x46ba05['detachFromDom']();},'onShow':()=>{_0x152685['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4c9b7d=>{const _0x2495cb=this['_standarizeRootsData'](_0x4c9b7d,_0x152685,_0x530012);_0x19b389['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2495cb,_0x152685['config']['get']('trackChanges.preview.renderFunction'));}),_0x46ba05=new _0x51072b(_0x3887dc,[_0x19b389['view']]),_0x46ba05['attachToDom'](),_0x46ba05['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x152685['once']('destroy',()=>{_0x46ba05['detachFromDom']();});const _0x55b7f3=_0x19b389['view']['headerView']['class'];_0x19b389['view']['headerView']['class']=_0x55b7f3?_0x55b7f3+'\x20ck-reset_all':'ck-reset_all',_0x19b389['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x19b389['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x497f51=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x13db94=_0x497f51['previewMode'],_0x1142c0={};if('$labels'===_0x13db94){for(const _0x11df01 of _0x497f51['getMergeFieldsIds']())_0x1142c0[_0x11df01]=_0x497f51['getLabel'](_0x11df01)||_0x11df01;}else{const _0x3d4157='$defaultValues'===_0x13db94?_0x497f51['getDefaultValues']():_0x497f51['getDataSetValues'](_0x13db94,!0x0);for(const _0x451c9f of Object['entries'](_0x3d4157)){const [_0x22878d,_0x38185c]=_0x451c9f;_0x1142c0[_0x22878d]=null!==_0x38185c?_0x38185c:_0x497f51['getLabel'](_0x22878d)||_0x22878d;}}return{'mergeFieldsData':_0x1142c0};}['_standarizeRootsData'](_0x1e87ee,_0x3802ff,_0x5d6b16){let _0x11c94a;if('string'==typeof _0x1e87ee){const _0x453d2f=_0x3802ff['model']['document']['getRootNames']()[0x0];_0x11c94a={[_0x453d2f]:_0x1e87ee};}else _0x11c94a=_0x1e87ee;const _0x233c85=this['_fixMediaEmbeds'](_0x11c94a,_0x3802ff),_0x2589c0=function(_0x46d276,_0x547257){for(const [_0x24f4fa,_0x4bd757]of _0x46d276)_0x4bd757['classes']=_0x547257[_0x24f4fa]['classList']['value']['replace']('ck-focused','');return _0x46d276;}(this['_sortRoots'](_0x3802ff)['reduce']((_0x6f1970,_0x3c358a)=>(_0x6f1970['push']([_0x3c358a,{'content':_0x233c85[_0x3c358a],'classes':''}]),_0x6f1970),[]),_0x5d6b16);return _0x2589c0;}['_fixMediaEmbeds'](_0x61ca19,_0x2c1967){if(!_0x2c1967['plugins']['has']('MediaEmbedEditing'))return _0x61ca19;const _0x6d0fd4=_0x2c1967['plugins']['get']('MediaEmbedEditing');for(const [_0x152558,_0x133624]of Object['entries'](_0x61ca19)){const _0x392a1d=document['createElement']('div');_0x392a1d['innerHTML']=_0x133624,(_0x392a1d['querySelectorAll']('figure.media')['forEach'](_0x2450d1=>{const _0xd00e0=_0x2450d1['querySelector']('oembed');if(_0xd00e0){const _0x1685ff=_0xd00e0['getAttribute']('url');if(_0x1685ff){const _0x128b12=_0x6d0fd4['registry']['getMediaViewElement'](new _0x495259(_0x2c1967['editing']['view']['document']),_0x1685ff,{'elementName':'','renderForEditingView':!0x0}),_0x320c59=document['createElement']('div');_0x320c59['classList']['add']('ck-media__wrapper'),_0x128b12['render'](_0x320c59,_0x2c1967['editing']['view']['domConverter']),_0xd00e0['replaceWith'](_0x320c59);}}}),_0x61ca19[_0x152558]=_0x392a1d['innerHTML']);}return _0x61ca19;}['_sortRoots'](_0x38c132){if(!function(_0xded676){return void 0x0!==_0xded676['getRootsAttributes'];}(_0x38c132))return _0x38c132['model']['document']['getRootNames']();const _0x29bd34=[],_0x5c9a62=new Map();for(const _0xa1d59e of _0x38c132['model']['document']['getRootNames']()){const _0x426e9b=_0x38c132['editing']['view']['getDomRoot'](_0xa1d59e)['getClientRects']()['item'](0x0);_0x29bd34['push'](_0xa1d59e),_0x5c9a62['set'](_0xa1d59e,_0x426e9b);}return _0x29bd34['sort']((_0x1ebe80,_0x3f8aef)=>{const _0x1e1490=_0x5c9a62['get'](_0x1ebe80),_0x5ffa78=_0x5c9a62['get'](_0x3f8aef);return _0x1e1490['y']-_0x5ffa78['y']||_0x1e1490['x']-_0x5ffa78['x'];}),_0x29bd34;}}class Ue extends _0x1480f8{static get['requires'](){return[re,_0xcb9519];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ea9d9){super(_0x4ea9d9),_0x4ea9d9['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4ea9d9['config']['define']('trackChanges.preview.renderFunction',(_0x2388ae,_0x393f26)=>{for(const _0x4fa1b4 of _0x393f26)_0x2388ae['appendChild'](_0x4fa1b4);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|