@ckeditor/ckeditor5-track-changes 47.3.0-alpha.0 → 47.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/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
|
-
_0x100ed4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x56801b,_0x3df638){super(),this['id']=_0x3df638['id'],this['type']=_0x3df638['type'],this['subType']=_0x3df638['subType']||null,this['author']=_0x3df638['author'],this['creator']=_0x3df638['creator']||_0x3df638['author'],this['isExternal']=Boolean(_0x3df638['attributes']&&_0x3df638['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x3df638['originalSuggestionId']||null,this['_model']=_0x56801b,this['_onAccept']=_0x3df638['onAccept'],this['_onDiscard']=_0x3df638['onDiscard'],this['_onAttributesChange']=_0x3df638['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3df638['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 _0x20a643=this;for(;_0x20a643['previous'];)_0x20a643=_0x20a643['previous'];return _0x20a643;}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'](_0x42f545){this['_markerNames']['add'](_0x42f545);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3344fb=>this['_model']['markers']['get'](_0x3344fb))['filter'](_0x136899=>_0x136899);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x515e98=>{for(const _0x191f7c of this['getMarkers']())_0x515e98['removeMarker'](_0x191f7c);}),this['_markerNames']['clear']();}['removeMarker'](_0x40f06a){this['_model']['change'](_0x23d17c=>{_0x23d17c['removeMarker'](_0x40f06a);}),this['_markerNames']['delete'](_0x40f06a);}['addRange'](_0x48b591){const _0x2bc73c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x2bc73c),this['_model']['change'](_0xba3ae7=>{_0xba3ae7['addMarker'](_0x2bc73c,{'range':_0x48b591,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x45db23){for(const _0x23d3e8 of this['getRanges']())if(_0x23d3e8['isIntersecting'](_0x45db23))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x24482f=>_0x24482f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5d4ee5,_0x12934e)=>[..._0x5d4ee5,..._0x12934e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x360da1=this['getRanges']();if(0x1!=_0x360da1['length'])return null;const _0x5bcb83=_0x360da1[0x0],_0x214cde=_0x5bcb83['start']['nodeAfter'],_0x3dfc5d=_0x5bcb83['end']['nodeBefore'];return _0x214cde instanceof _0xec8597?_0x214cde!=_0x3dfc5d?null:_0x214cde: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 _0x5bdfd6=[];let _0x1d6157=this['head'];for(;_0x1d6157;)_0x5bdfd6['push'](_0x1d6157),_0x1d6157=_0x1d6157['next'];return _0x5bdfd6;}['setAttribute'](_0x65156b,_0xbe730f){const _0x36001f=_0x232445(this['attributes']);_0x1497d4(_0x36001f,_0x65156b,_0xbe730f),_0x17bc28(_0x36001f,this['attributes'])||(this['attributes']=_0x36001f,this['_onAttributesChange'](_0x36001f));}['removeAttribute'](_0x3aeb8b){const _0x2ed611=_0x232445(this['attributes']);_0x2cf6e1(_0x2ed611,_0x3aeb8b),_0x17bc28(_0x2ed611,this['attributes'])||(this['attributes']=_0x2ed611,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 _0x1b40cb()['substr'](0x1,0x5);}}function o(_0x2deaf9,_0x4486bc,_0x3858b0){const _0x3b4ce8=_0x2deaf9['t'],t=_0x2deaf9['t'];switch(_0x4486bc){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',_0x3858b0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3858b0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3858b0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3858b0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3858b0);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',_0x3858b0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3858b0);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',_0x3858b0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3858b0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3858b0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3858b0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3858b0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3858b0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3858b0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3858b0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3858b0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3858b0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3858b0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3858b0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3858b0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3858b0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3858b0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3858b0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3858b0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3858b0);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'},_0x3858b0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3858b0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3858b0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3858b0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3858b0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3858b0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3858b0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3858b0);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'},_0x3858b0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3858b0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3858b0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3858b0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3858b0);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3858b0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3858b0);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'},_0x3858b0);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_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'},_0x3858b0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3858b0);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'},_0x3858b0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3858b0);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'},_0x3858b0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3858b0);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3858b0);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3858b0);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3858b0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3858b0);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'},_0x3858b0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3858b0);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 _0x3b4ce8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3858b0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3b4ce8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3858b0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3858b0);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'},_0x3858b0);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'},_0x3858b0);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'},_0x3858b0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4486bc;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4c9ecd,_0x25df9a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4c9ecd,this['_locale']=_0x25df9a;}['getDescriptions'](_0x34fe3e){const _0x166592=[],_0x4c2201=new Set(),_0x3a3948=new Set();for(let _0x4cb4b7=0x0;_0x4cb4b7<_0x34fe3e['length'];_0x4cb4b7++){const _0x796658=_0x34fe3e[_0x4cb4b7];if(!_0x796658['isInContent'])continue;const _0x1dd775=this['_handleCustomCallbackDescription'](_0x796658);if(_0x1dd775){if(null!=_0x796658['subType']){if(_0x4c2201['has'](_0x796658['subType']))continue;_0x4c2201['add'](_0x796658['subType']);}_0x166592['push'](_0x1dd775);}else{if('attribute'==_0x796658['type']){const _0x39530c=_0x796658['data']['key'];if(_0x3a3948['has'](_0x39530c))continue;_0x3a3948['add'](_0x796658['data']['key']),_0x39530c==m?this['_handleRenameSuggestionDescription'](_0x166592,_0x796658):this['_handleAttributeSuggestionDescription'](_0x166592,_0x796658);continue;}'insertion'!=_0x796658['type']&&'deletion'!=_0x796658['type']||this['_handleInsertRemoveSuggestionDescription'](_0x166592,_0x796658,_0x34fe3e[_0x4cb4b7+0x1]);}}return this['_resolveDescriptionItems'](_0x166592);}['registerDescriptionCallback'](_0x422808){this['_customCallbacks']['push'](_0x422808);}['registerElementLabel'](_0x44004e,_0x1babf1,_0x147c7b=_0x1fed10['normal']){'function'==typeof _0x44004e?_0x569608(this['_itemLabelsCallbacks'],{'matchingCallback':_0x44004e,'label':_0x1babf1,'priority':_0x147c7b}):this['_itemLabels']['set'](_0x44004e,_0x1babf1);}['registerAttributeLabel'](_0x1ef2eb,_0x46c286){this['_attributeLabels']['set'](_0x1ef2eb,_0x46c286);}['getItemLabel'](_0x5ac756,_0x49418f=0x1){let _0x1a9c1a;for(const _0x3a573b of this['_itemLabelsCallbacks'])if(_0x3a573b['matchingCallback'](_0x5ac756)){_0x1a9c1a=_0x3a573b['label'];break;}return _0x1a9c1a||(_0x1a9c1a=this['_itemLabels']['get'](_0x5ac756['name'])),_0x1a9c1a?_0x1a9c1a(_0x49418f):0x1!==_0x49418f?_0x49418f+'\x20'+_0x5ac756['name']+'s':''+_0x5ac756['name'];}['_addDescriptionItems'](_0x1bacee,_0x50abd5){const _0x18a99e=_0x50abd5['getFirstRange']()['getWalker'](),_0x3928d2='insertion'==_0x50abd5['type']?'add':'remove';for(const _0x473303 of _0x18a99e){const _0x4ca1a1=_0x473303['item'],_0xe80e56=_0x1bacee[_0x1bacee['length']-0x1];if(_0x4ca1a1['is']('$textProxy'))_0xe80e56&&_0xe80e56['type']['indexOf']('Container')>-0x1&&_0x1bacee['pop'](),_0xe80e56&&'text'==_0xe80e56['type']?_0xe80e56[_0x3928d2]+=_0x4ca1a1['data']:_0x1bacee['push']({'type':'text','add':'add'==_0x3928d2?_0x4ca1a1['data']:'','remove':'remove'==_0x3928d2?_0x4ca1a1['data']:''});else{if(this['_schema']['isObject'](_0x4ca1a1)){const _0x4eaa40=_0x4ca1a1;if(_0xe80e56&&_0xe80e56['type']['indexOf']('Container')>-0x1&&_0x1bacee['pop'](),'elementEnd'==_0x473303['type'])continue;_0xe80e56&&_0xe80e56['type']==_0x3928d2+'Object'&&_0xe80e56['element']['name']==_0x4eaa40['name']?_0xe80e56['quantity']++:_0x1bacee['push']({'type':_0x3928d2+'Object','element':_0x4eaa40,'quantity':0x1}),_0x18a99e['skip'](_0x44059f=>!('elementEnd'==_0x44059f['type']&&_0x44059f['item']==_0x4ca1a1));}else{if(this['_schema']['checkChild'](_0x4ca1a1,'$text')||_0x4ca1a1['is']('element','softBreak')){const _0x34a4aa=_0x4ca1a1;if('add'==_0x3928d2&&'elementStart'==_0x473303['type']||'remove'==_0x3928d2&&'elementEnd'==_0x473303['type'])continue;if(_0xe80e56&&-0x1==_0xe80e56['type']['indexOf']('Container')){'text'==_0xe80e56['type']&&(_0xe80e56[_0x3928d2]+='\x0a');continue;}let _0xca2a9d;if(_0xca2a9d='add'==_0x3928d2?_0x34a4aa['nextSibling']&&!this['_schema']['isObject'](_0x34a4aa['nextSibling'])?_0x34a4aa['nextSibling']:null:_0x34a4aa['previousSibling']&&!this['_schema']['isObject'](_0x34a4aa['previousSibling'])?_0x34a4aa['previousSibling']:null,_0x34a4aa['isEmpty']||_0xca2a9d&&_0xca2a9d['isEmpty']){const _0x5c48da=_0xca2a9d&&_0xca2a9d['isEmpty']?_0xca2a9d:_0x34a4aa;_0xe80e56&&_0xe80e56['type']==_0x3928d2+'EmptyContainer'&&_0xe80e56['element']['name']==_0x5c48da['name']?_0xe80e56['quantity']++:_0x1bacee['push']({'type':_0x3928d2+'EmptyContainer','element':_0x5c48da,'quantity':0x1});}else _0x1bacee['push']({'type':_0x3928d2+'Container','element':_0x34a4aa});}}}}}['_resolveDescriptionItems'](_0x36e351){const _0x2e7e81=this['_locale'],_0x40fba1=[],_0x55a0f8=[],_0x58f67b=[];for(const _0x56f883 of _0x36e351)switch(_0x56f883['type']){case'text':if(_0x56f883['add']=_0x56f883['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x56f883['remove']=_0x56f883['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x56f883['add']&&''!=_0x56f883['remove']){_0x40fba1['push']({'type':'replace','content':o(_0x2e7e81,'REPLACE_TEXT',['\x22'+_0x56f883['remove']+'\x22','\x22'+_0x56f883['add']+'\x22'])});continue;}if(null!=_0x56f883['add']['match'](/^ +$/)){_0x40fba1['push']({'type':'insertion','content':o(_0x2e7e81,'*Insert:*\x20%0',o(_0x2e7e81,'ELEMENT_SPACE',_0x56f883['add']['length']))});continue;}if(null!=_0x56f883['remove']['match'](/^ +$/)){_0x40fba1['push']({'type':'deletion','content':o(_0x2e7e81,'*Remove:*\x20%0',o(_0x2e7e81,'ELEMENT_SPACE',_0x56f883['remove']['length']))});continue;}if(''!=_0x56f883['add']){_0x40fba1['push']({'type':'insertion','content':o(_0x2e7e81,'*Insert:*\x20%0','\x22'+_0x56f883['add']+'\x22')});continue;}_0x40fba1['push']({'type':'deletion','content':o(_0x2e7e81,'*Remove:*\x20%0','\x22'+_0x56f883['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x40fba1['push']({'type':'insertion','content':o(_0x2e7e81,'*Insert:*\x20%0',this['getItemLabel'](_0x56f883['element'],_0x56f883['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x40fba1['push']({'type':'deletion','content':o(_0x2e7e81,'*Remove:*\x20%0',this['getItemLabel'](_0x56f883['element'],_0x56f883['quantity']))});continue;case'addContainer':_0x40fba1['push']({'type':'insertion','content':o(_0x2e7e81,'*Split:*\x20%0',this['getItemLabel'](_0x56f883['element'],_0x56f883['quantity']))});continue;case'removeContainer':_0x40fba1['push']({'type':'deletion','content':o(_0x2e7e81,'*Merge:*\x20%0',this['getItemLabel'](_0x56f883['element'],_0x56f883['quantity']))});continue;case'addFormat':_0x55a0f8['push'](_0x56f883['key']);continue;case'removeFormat':_0x58f67b['push'](_0x56f883['key']);continue;default:_0x40fba1['push'](_0x56f883);}if(_0x55a0f8['length']){const _0x28fe74=_0x55a0f8['map'](_0x4a6541=>this['_attributeLabels']['has'](_0x4a6541)?this['_attributeLabels']['get'](_0x4a6541):_0x4a6541)['join'](',\x20');_0x40fba1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x28fe74)});}if(_0x58f67b['length']){const _0x31c40a=_0x58f67b['map'](_0x46ddcc=>this['_attributeLabels']['has'](_0x46ddcc)?this['_attributeLabels']['get'](_0x46ddcc):_0x46ddcc)['join'](',\x20');_0x40fba1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x31c40a)});}return _0x40fba1;}['_handleCustomCallbackDescription'](_0x1fd624){for(const _0x2c2b60 of this['_customCallbacks']){const _0x1515cb=_0x2c2b60(_0x1fd624);if(_0x1515cb&&'type'in _0x1515cb)return _0x1515cb;}}['_handleAttributeSuggestionDescription'](_0x17de45,_0x2f077f){const _0x5cf64d=_0x2f077f['data'],_0x114f4a=void 0x0===_0x5cf64d['newValue']?'removeFormat':'addFormat';_0x17de45['push']({'type':_0x114f4a,'key':_0x5cf64d['key']});}['_handleRenameSuggestionDescription'](_0x27c90d,_0x315d08){_0x27c90d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x315d08['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xd1d55f,_0x457c0e,_0x36bfcb){if(this['_addDescriptionItems'](_0xd1d55f,_0x457c0e),_0x36bfcb&&_0x36bfcb['getFirstRange']()&&!_0x457c0e['getFirstRange']()['end']['isEqual'](_0x36bfcb['getFirstRange']()['start'])){const _0x15c152=_0xd1d55f[_0xd1d55f['length']-0x1],_0x2c5b7a='insertion'==_0x457c0e['type']?'add':'remove';_0x15c152&&'text'==_0x15c152['type']&&(_0x15c152[_0x2c5b7a]+='\x0a');}}}class R extends _0x1f77b7{['afterInit'](){const _0x237633=this['editor'],_0xd35e34=_0x237633['plugins']['get']('TrackChangesEditing');_0x237633['commands']['get']('showAIAssistant')&&_0xd35e34['enableCommand']('showAIAssistant');}}class T extends _0x1f77b7{['afterInit'](){const _0x321841=this['editor'],_0x3cc04b=_0x321841['plugins']['get']('TrackChangesEditing');_0x321841['commands']['get']('toggleAi')&&_0x3cc04b['enableCommand']('toggleAi');}}class E extends _0x1f77b7{['afterInit'](){const _0x59d802=this['editor'],_0xc1beb4=_0x59d802['plugins']['get']('TrackChangesEditing');_0x59d802['commands']['get']('aiQuickAction')&&_0xc1beb4['enableCommand']('aiQuickAction');}}class U extends _0x1f77b7{['afterInit'](){const _0x1c4d35=this['editor'],_0x3b5629=_0x1c4d35['locale'];if(!_0x1c4d35['plugins']['has']('AlignmentEditing'))return;const _0x29404c=_0x1c4d35['plugins']['get']('TrackChangesEditing');_0x29404c['enableDefaultAttributesIntegration']('alignment'),_0x29404c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b5629,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43e89e=this['editor'],_0x502e5d=_0x43e89e['locale'];_0x43e89e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4afaa7=>{if('formatBlock'!=_0x4afaa7['type'])return;const {data:_0x5c8157}=_0x4afaa7;if(_0x5c8157&&'alignment'==_0x5c8157['commandName']){const _0x203160=_0x5c8157['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x502e5d,'*Format:*\x20%0',function(_0x2a6ac0){switch(_0x2a6ac0){case'left':return o(_0x502e5d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x502e5d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x502e5d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x502e5d,'FORMAT_JUSTIFY_TEXT');}}(_0x203160))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x1f77b7{['afterInit'](){const _0x35c814=this['editor'],_0x4ccfa9=_0x35c814['plugins']['get']('TrackChangesEditing'),_0x520fd1=_0x35c814['locale'];for(const _0xb84ebc of ti){if(!_0x35c814['plugins']['has'](_0xb84ebc))continue;const _0xe26896=_0xb84ebc['slice'](0x0,-0x7)['toLowerCase'](),_0x4c7a8a='FORMAT_'+_0xe26896['toUpperCase']();_0x4ccfa9['enableDefaultAttributesIntegration'](_0xe26896),_0x4ccfa9['descriptionFactory']['registerAttributeLabel'](_0xe26896,o(_0x520fd1,_0x4c7a8a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9943c6=this['editor'],_0x32ef64=_0x9943c6['locale'],_0x3c57e9=_0x9943c6['plugins']['get']('TrackChangesEditing');function _0x5d011b(_0xece25f,_0x428ce4){_0x3c57e9['descriptionFactory']['registerDescriptionCallback'](_0x22450b=>{if('formatInline'!=_0x22450b['type'])return;const {data:_0x255b15}=_0x22450b;return _0x255b15&&_0x255b15['commandName']===_0xece25f?_0x255b15['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32ef64,'*Format:*\x20%0',_0x428ce4)}:{'type':'format','content':o(_0x32ef64,'*Remove\x20format:*\x20%0',_0x428ce4)}:void 0x0;});}_0x5d011b('bold',o(_0x32ef64,'FORMAT_BOLD')),_0x5d011b('italic',o(_0x32ef64,'FORMAT_ITALIC')),_0x5d011b('underline',o(_0x32ef64,'FORMAT_UNDERLINE')),_0x5d011b('code',o(_0x32ef64,'FORMAT_CODE')),_0x5d011b('strikethrough',o(_0x32ef64,'FORMAT_STRIKETHROUGH')),_0x5d011b('subscript',o(_0x32ef64,'FORMAT_SUBSCRIPT')),_0x5d011b('superscript',o(_0x32ef64,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1f77b7{['afterInit'](){const _0x50229e=this['editor'],_0x4a9cec=_0x50229e['locale'];if(!_0x50229e['plugins']['has']('BlockQuoteEditing'))return;const _0x3c0b4a=_0x50229e['plugins']['get']('TrackChangesEditing'),_0x343586=this['editor']['commands']['get']('blockQuote');_0x3c0b4a['enableCommand']('blockQuote',(_0x3809bf,_0x3d4d19={})=>{const _0x2ce3b9=this['editor']['model']['document']['selection'],_0x1757aa=_0x3d4d19&&void 0x0!==_0x3d4d19['forceValue']?_0x3d4d19['forceValue']:!_0x343586['value'];let _0x223cd1=[];if(_0x1757aa){const _0x45a031=Array['from'](_0x2ce3b9['getSelectedBlocks']())['filter'](_0x51acea=>oo(_0x51acea)||function(_0x576b78,_0x4aa0ed){const _0x1975ed=_0x4aa0ed['checkChild'](_0x576b78['parent'],'blockQuote'),_0x25bc9f=_0x4aa0ed['checkChild'](['$root','blockQuote'],_0x576b78);return _0x1975ed&&_0x25bc9f;}(_0x51acea,this['editor']['model']['schema']));_0x223cd1=to(_0x45a031,_0x50229e['model']);}else{const _0xc7f716=Array['from'](_0x2ce3b9['getSelectedBlocks']())['filter'](_0x1baca8=>oo(_0x1baca8));_0x223cd1=to(_0xc7f716,_0x50229e['model']);}_0x50229e['model']['change'](()=>{for(const _0x18a625 of _0x223cd1)_0x3c0b4a['markBlockFormat'](_0x18a625,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1757aa}]});});}),_0x3c0b4a['descriptionFactory']['registerDescriptionCallback'](_0x2d6b98=>{const {data:_0x33e0b1}=_0x2d6b98;if(_0x33e0b1&&'blockQuote'==_0x33e0b1['commandName']){const _0x1330ff=o(_0x4a9cec,'ELEMENT_BLOCK_QUOTE');return _0x33e0b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a9cec,'*Set\x20format:*\x20%0',_0x1330ff)}:{'type':'format','content':o(_0x4a9cec,'*Remove\x20format:*\x20%0',_0x1330ff)};}});}}function oo(_0x2c14d0){return'blockQuote'==_0x2c14d0['parent']['name'];}class G extends _0x1f77b7{['afterInit'](){const _0x222969=this['editor'],_0x4bb8bf=_0x222969['locale'],_0x31a0c8=_0x222969['plugins']['get']('TrackChangesEditing');_0x222969['plugins']['has']('BookmarkEditing')&&(_0x31a0c8['enableCommand']('insertBookmark'),_0x31a0c8['enableDefaultAttributesIntegration']('updateBookmark'),_0x31a0c8['descriptionFactory']['registerDescriptionCallback'](_0x1e4ad1=>{if('insertion'!=_0x1e4ad1['type']&&'deletion'!=_0x1e4ad1['type']&&'attribute'!=_0x1e4ad1['type'])return;const _0x571e74=_0x1e4ad1['getContainedElement']();if(null==_0x571e74)return;if(!_0x571e74['is']('element','bookmark'))return;const _0x5aa0fe=_0x571e74['getAttribute']('bookmarkId');if('insertion'==_0x1e4ad1['type'])return{'type':'insertion','content':o(_0x4bb8bf,'*Insert:*\x20%0','\x22'+_0x5aa0fe+'\x22\x20'+o(_0x4bb8bf,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1e4ad1['type'])return{'type':'deletion','content':o(_0x4bb8bf,'*Remove:*\x20%0','\x22'+_0x5aa0fe+'\x22\x20'+o(_0x4bb8bf,'ELEMENT_BOOKMARK'))};const {data:_0x2e53ae}=_0x1e4ad1;if(!_0x2e53ae||'bookmarkId'!=_0x2e53ae['key'])return;return{'type':'format','content':o(_0x4bb8bf,'*Set\x20bookmark:*\x20%0','\x22'+_0x2e53ae['newValue']+'\x22')};}));}}class L extends _0x1f77b7{['afterInit'](){const _0x5d9a63=this['editor'];_0x5d9a63['plugins']['has']('CaseChange')&&(_0x5d9a63['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5d9a63['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5d9a63['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x1f77b7{['afterInit'](){const _0x1ad765=this['editor'];_0x1ad765['commands']['get']('ckbox')&&_0x1ad765['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x1f77b7{['afterInit'](){const _0x450449=this['editor'];if(!_0x450449['plugins']['has']('CodeBlock'))return;const _0x4dea8d=_0x450449['plugins']['get']('TrackChangesEditing'),_0x997a64=_0x450449['locale'],_0x147054=_0x450449['config']['get']('codeBlock')['languages'],_0x99fb6a=_0x450449['commands']['get']('codeBlock');_0x4dea8d['enableCommand']('indentCodeBlock'),_0x4dea8d['enableCommand']('outdentCodeBlock'),_0x4dea8d['enableCommand']('codeBlock',(_0x4d47cb,_0x9bf984={})=>{const _0x12fd3e=_0x450449['model'],_0x324739=_0x450449['model']['document']['selection'],_0x4a4ef8=_0x9bf984&&void 0x0!==_0x9bf984['forceValue']?_0x9bf984['forceValue']:!_0x99fb6a['value'];let _0x54ab63;_0x9bf984['language']||(_0x9bf984['language']=_0x147054[0x0]['language']),_0x54ab63=_0x4a4ef8?Array['from'](_0x324739['getSelectedBlocks']())['filter'](_0x51a626=>co(_0x51a626)||function(_0x23b62c,_0xedfac){if(_0x23b62c['is']('rootElement')||_0xedfac['isLimit'](_0x23b62c))return!0x1;return _0xedfac['checkChild'](_0x23b62c['parent'],'codeBlock');}(_0x51a626,_0x12fd3e['schema'])):Array['from'](_0x324739['getSelectedBlocks']())['filter'](_0x13f47c=>co(_0x13f47c));const _0x19ee66=to(_0x54ab63,_0x12fd3e);_0x12fd3e['change'](()=>{for(const _0x37a845 of _0x19ee66)_0x4dea8d['markBlockFormat'](_0x37a845,{'commandName':'codeBlock','commandParams':[{..._0x9bf984,'forceValue':_0x4a4ef8}],'formatGroupId':'blockName'});});}),(_0x4dea8d['descriptionFactory']['registerElementLabel']('codeBlock',_0xde0753=>o(_0x997a64,'ELEMENT_CODE_BLOCK',_0xde0753)),_0x4dea8d['descriptionFactory']['registerDescriptionCallback'](_0x548548=>{if('formatBlock'!=_0x548548['type'])return;const _0x130620=_0x997a64['t'],{data:_0x4f137e}=_0x548548;if(!_0x4f137e||'codeBlock'!=_0x4f137e['commandName'])return;const _0x293783=_0x4f137e['commandParams'][0x0]['language'],_0x4c134d=_0x130620(_0x147054['find'](_0xdcb77e=>_0xdcb77e['language']===_0x293783)['label'])['toLowerCase']();return _0x4f137e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x997a64,'*Set\x20format:*\x20%0',o(_0x997a64,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4c134d+')')}:{'type':'format','content':o(_0x997a64,'*Remove\x20format:*\x20%0',o(_0x997a64,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4d6fce){return'codeBlock'==_0x4d6fce['name'];}class z extends _0x1f77b7{['afterInit'](){const _0x38515e=this['editor'];if(!_0x38515e['plugins']['has']('CommentsEditing'))return;_0x38515e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x1f77b7{static get['requires'](){return[_0x56c5b5];}['init'](){const _0x4f841e=this['editor'],_0x1526b0=_0x4f841e['plugins']['get']('TrackChangesEditing');_0x1526b0['enableCommand']('delete');const _0x1cd20c=_0x4f841e['commands']['get']('deleteForward');_0x1526b0['enableCommand']('deleteForward',(_0x1ae3a3,_0x5429be={})=>{const _0x384ecd=_0x4f841e['model']['createSelection'](_0x4f841e['model']['document']['selection']);_0x384ecd['isCollapsed']&&_0x4f841e['model']['modifySelection'](_0x384ecd,{'direction':'forward','unit':_0x5429be['unit']});const _0x3f97ba=_0x384ecd['getFirstRange'](),_0x49366c=_0x4e8d2f['fromRange'](_0x3f97ba);let _0x17119e;_0x1ae3a3(_0x5429be),_0x17119e='$graveyard'==_0x49366c['root']['rootName']?_0x4f841e['model']['createRange'](_0x3f97ba['start']):_0x4f841e['model']['createRange'](_0x49366c['start'],_0x49366c['end']),_0x49366c['detach'](),_0x4f841e['model']['enqueueChange'](_0x1cd20c['buffer']['batch'],_0x1970c6=>{_0x1cd20c['buffer']['lock'](),_0x1970c6['setSelection'](_0x1970c6['createRange'](_0x17119e['end'])),_0x1cd20c['buffer']['unlock']();});});}}class W extends _0x1f77b7{['afterInit'](){const _0x437b6b=this['editor'];if(!_0x437b6b['plugins']['has']('ListEditing'))return;const _0x3b7f60=_0x437b6b['locale'],_0x4d8f17=_0x437b6b['plugins']['get']('TrackChangesEditing'),_0x37de36=_0x437b6b['plugins']['has']('TodoListEditing'),_0x3ae72e=!!_0x437b6b['config']['get']('list.multiBlock');function _0x5baa0e(_0x4c094a){return{'type':'format','content':''+o(_0x3b7f60,'*Set\x20format:*\x20%0',_0x4c094a)};}function _0x232a85(_0x1afc93){return{'type':'format','content':''+o(_0x3b7f60,'*Remove\x20format:*\x20%0',_0x1afc93)};}_0x4d8f17['enableDefaultAttributesIntegration']('numberedList'),_0x4d8f17['enableDefaultAttributesIntegration']('bulletedList'),_0x4d8f17['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d8f17['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d8f17['enableDefaultAttributesIntegration']('indentList'),_0x4d8f17['enableDefaultAttributesIntegration']('outdentList'),_0x4d8f17['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d8f17['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3ae72e&&(_0x4d8f17['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d8f17['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x37de36&&(_0x4d8f17['enableDefaultAttributesIntegration']('todoList'),_0x4d8f17['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d8f17['descriptionFactory']['registerDescriptionCallback'](_0xa1820=>{const {data:_0x5ba264}=_0xa1820;if(_0x5ba264&&'todoListChecked'==_0x5ba264['key'])return{'type':'format','content':_0x5ba264['newValue']?o(_0x3b7f60,'*Check\x20item*'):o(_0x3b7f60,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xfafcfd=>{if(_0xfafcfd['batch']['isUndo'])return!0x1;let _0x445e0f=!0x1;const _0x40ebc1=_0x4d8f17['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d8552=>'todoListChecked'===_0x4d8f17['_getAttributeKey'](_0x4d8552));for(const _0x41fe7b of _0x40ebc1){'todo'!=_0x41fe7b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d8f17['_findSuggestions'](_0x41fe7b['getFirstRange'](),'attribute')['find'](_0x14bb96=>'listType'===_0x4d8f17['_getAttributeKey'](_0x14bb96['suggestion']))||(_0xfafcfd['removeMarker'](_0x41fe7b['getFirstMarker']()),_0x445e0f=!0x0));}return _0x445e0f;})),_0x4d8f17['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3b7f60,'FORMAT_INDENT'));const _0x11042d={'type':'format','content':''};_0x4d8f17['descriptionFactory']['registerDescriptionCallback'](_0x4fb291=>{const {data:_0x138425}=_0x4fb291;if(!_0x138425||'listType'!=_0x138425['key'])return;let _0x5be2a0=_0x4fb291['head'];for(;_0x5be2a0;){if(_0x5be2a0['data']&&(('listStyle'==_0x5be2a0['data']['key']||'listMarkerStyle'==_0x5be2a0['data']['key'])&&(_0x5be2a0['data']['newValue']&&'default'!=_0x5be2a0['data']['newValue']||'default'!=_0x5be2a0['data']['oldValue']&&!_0x138425['newValue'])||!_0x3ae72e&&_0x5be2a0['data']['key']==m))return _0x11042d;_0x5be2a0=_0x5be2a0['next'];}if(null==_0x138425['newValue'])switch(_0x138425['oldValue']){case'bulleted':return _0x232a85(o(_0x3b7f60,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x232a85(o(_0x3b7f60,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x232a85(o(_0x3b7f60,'ELEMENT_TODO_LIST'));}switch(_0x138425['newValue']){case'bulleted':return _0x5baa0e(o(_0x3b7f60,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5baa0e(o(_0x3b7f60,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5baa0e(o(_0x3b7f60,'ELEMENT_TODO_LIST'));}}),_0x4d8f17['descriptionFactory']['registerDescriptionCallback'](_0x58df46=>{const {data:_0x536a6f}=_0x58df46;if(_0x536a6f&&'listIndent'==_0x536a6f['key'])return null==_0x536a6f['newValue']||null==_0x536a6f['oldValue']&&0x0==_0x536a6f['newValue']?_0x11042d:void 0x0;}),_0x4d8f17['descriptionFactory']['registerDescriptionCallback'](_0x5e1c66=>{if('attribute'!=_0x5e1c66['type'])return;const {data:_0x2e856}=_0x5e1c66;if(!_0x2e856||'listItemId'!=_0x2e856['key'])return;const _0x31bf44=Te(_0x5e1c66);return'newValue'==_0x31bf44?{'type':'format','content':o(_0x3b7f60,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31bf44?{'type':'format','content':o(_0x3b7f60,'*Split:*\x20list\x20item')}:_0x11042d;}),_0x437b6b['model']['document']['registerPostFixer'](_0x6221e1=>this['listItemIdFixer'](_0x6221e1)),_0x437b6b['model']['document']['registerPostFixer'](_0x541a5e=>this['noTrackChangesFixer'](_0x541a5e)),_0x437b6b['model']['document']['on']('change:data',(_0x83b968,_0x5bde14)=>{if(_0x5bde14['isUndo']||!_0x5bde14['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xc092ee){if(_0xc092ee['batch']['isUndo']||!_0xc092ee['batch']['isLocal'])return!0x1;let _0x352ffa=!0x1;const _0x5285c4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xbef460=>_0xbef460['data']&&'listItemId'==_0xbef460['data']['key'])['filter'](_0x5d3931=>_0x5d3931['data']['newValue']&&_0x5d3931['data']['oldValue']);for(const _0x40e0b4 of _0x5285c4)Te(_0x40e0b4)||(_0xc092ee['removeMarker'](_0x40e0b4['getFirstMarker']()),_0x352ffa=!0x0);return _0x352ffa;}['noTrackChangesFixer'](_0x2116a5){if(_0x2116a5['batch']['isUndo']||!_0x2116a5['batch']['isLocal'])return!0x1;const _0x4dcf59=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4dcf59['trackChangesCommand']['value'])return!0x1;let _0xaadd7a=!0x1;const _0x538c12=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46a856=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x22a3f9=>'attribute'==_0x22a3f9['type'])['filter'](_0x40e533=>_0x538c12['includes'](_0x40e533['attributeKey']));if(0x0==_0x46a856['length'])return _0xaadd7a;for(const _0x470c62 of _0x46a856){const _0x3bef51=_0x4dcf59['_findSuggestions'](_0x470c62['range'],'attribute')['filter'](_0x9bdde4=>!_0x9bdde4['meta']['isNextTo'])['map'](_0x294d1b=>_0x294d1b['suggestion'])['filter'](_0x18a0bf=>{const _0x1c842d=_0x4dcf59['_getAttributeKey'](_0x18a0bf);return _0x538c12['includes'](_0x1c842d);});if(_0x3bef51['length']){for(const _0x567b2c of _0x3bef51)_0x2116a5['removeMarker'](_0x567b2c['getFirstMarker']());_0xaadd7a=!0x0;}}return _0xaadd7a;}['assureChains'](){const _0x374e6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bbc69=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xf4030e;const _0x4d324c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x18b0d8=>{if(_0x18b0d8['data']['oldRange']||!_0x18b0d8['data']['newRange'])return null;if(!_0x18b0d8['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x59e8ca}=_0x374e6b['_splitMarkerName'](_0x18b0d8['name']);if(!_0x374e6b['hasSuggestion'](_0x59e8ca))return null;const _0x5b6920=_0x374e6b['getSuggestion'](_0x59e8ca);return _0x5bbc69['includes'](_0x5b6920['data']['key']);})['map'](_0x27a01f=>{const {id:_0x354136}=_0x374e6b['_splitMarkerName'](_0x27a01f['name']),_0x49e5ae=_0x374e6b['getSuggestion'](_0x354136);return _0xf4030e=_0x49e5ae['attributes']['groupId'],_0x49e5ae['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4d324c['size'])return;const _0x50ad91=_0x374e6b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x438473=>'attribute'==_0x438473['type']&&_0x438473['data']&&_0x5bbc69['includes'](_0x438473['data']['key'])&&_0x438473['attributes']['groupId']!=_0xf4030e)['map'](_0x84c8dd=>({'listItem':_0x84c8dd['getFirstRange']()['start']['nodeAfter'],'groupId':_0x84c8dd['attributes']['groupId']})),_0x5d1793=new Set();for(const {groupId:_0x31d021,listItem:_0x2319e3}of _0x50ad91)_0x4d324c['has'](_0x2319e3)&&_0x5d1793['add'](_0x31d021);for(const _0x18e398 of _0x374e6b['getSuggestions']())_0x5d1793['has'](_0x18e398['attributes']['groupId'])&&_0x18e398['setAttribute']('groupId',_0xf4030e);}['_supportLegacySuggestions'](){const _0xa66b8d=this['editor'],_0x1b0911=_0xa66b8d['locale'],_0x59038a=_0xa66b8d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x59038a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4dd4f4,_0x1e4f85){const _0x59fa67=[];for(let _0x1d76b5 of _0x4dd4f4)_0x1d76b5['start']['nodeAfter']===_0x1d76b5['end']['parent']&&(_0x1d76b5=_0xa66b8d['model']['createRange'](_0xa66b8d['model']['createPositionAt'](_0x1d76b5['start']['nodeAfter'],0x0))),_0x59fa67['push'](_0x1d76b5);_0xa66b8d['model']['change'](_0x5cd661=>{const _0x19f456=_0xa66b8d['model']['document']['selection'],_0x363fe0=Array['from'](_0x19f456['getRanges']())['map'](_0x4b6ae1=>_0x4e8d2f['fromRange'](_0x4b6ae1));_0x5cd661['setSelection'](_0x59fa67),_0xa66b8d['commands']['get'](_0x1e4f85['commandName'])['refresh'](),_0x1e4f85['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa66b8d['execute'](_0x1e4f85['commandName'],..._0x1e4f85['commandParams']),_0x5cd661['setSelection'](_0x363fe0);for(const _0x358561 of _0x363fe0)_0x358561['detach']();});}),_0x59038a['descriptionFactory']['registerElementLabel'](function(_0x28b198){const _0x8b3c41=!_0xa66b8d['model']['schema']['isObject'](_0x28b198),_0x48af09=_0x28b198['previousSibling'],_0x402261=_0x28b198['nextSibling'],_0x8658e=_0x28b198['getAttribute']('listItemId'),_0x111442=!_0x48af09||_0x48af09['getAttribute']('listItemId')!==_0x8658e,_0x12b951=!_0x402261||_0x402261['getAttribute']('listItemId')!==_0x8658e;return _0x8b3c41&&Boolean(_0x8658e)&&_0x111442&&_0x12b951;},_0x5c2f7a=>o(_0x1b0911,'ELEMENT_LIST_ITEM',_0x5c2f7a));}['_registerLegacyDescription'](){const _0x215aa5=this['editor'],_0x580238=_0x215aa5['locale'];function _0x2d2702(_0x3b043b){const _0x12536d=_0x215aa5['commands']['get']('bulletedList')['value'],_0x28f3e4=_0x215aa5['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b043b?_0x12536d:_0x28f3e4;}_0x215aa5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xd67f1f){if('formatBlock'!=_0xd67f1f['type'])return;const {data:_0xfbcefb}=_0xd67f1f;if(!_0xfbcefb)return;let _0x178b3a,_0x34bdec,_0x213f6d,_0x2095bc;switch(_0xfbcefb['commandName']){case'bulletedList':_0x213f6d=_0xfbcefb['commandParams'][0x0]['forceValue'],_0x2095bc=_0x2d2702(_0xfbcefb['commandName']),_0x178b3a=_0x213f6d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2095bc&&_0x215aa5['config']['get']('list.multiBlock')||(_0x178b3a='*Change\x20to:*\x20%0'),_0x34bdec={'type':'format','content':o(_0x580238,_0x178b3a,o(_0x580238,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x213f6d=_0xfbcefb['commandParams'][0x0]['forceValue'],_0x2095bc=_0x2d2702(_0xfbcefb['commandName']),_0x178b3a=_0x213f6d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2095bc&&_0x215aa5['config']['get']('list.multiBlock')||(_0x178b3a='*Change\x20to:*\x20%0'),_0x34bdec={'type':'format','content':o(_0x580238,_0x178b3a,o(_0x580238,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x178b3a='*Indent:*\x20%0',_0x34bdec={'type':'format','content':o(_0x580238,_0x178b3a,o(_0x580238,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x178b3a=function(_0x4371b5){const _0x44d4d7=_0x4371b5['getFirstRange']();let _0x2cf13d=_0x44d4d7['start']['nodeAfter'];for(;_0x2cf13d&&_0x44d4d7['containsItem'](_0x2cf13d);){if(_0x2cf13d['getAttribute']('listIndent')>0x0)return!0x1;_0x2cf13d=_0x2cf13d['nextSibling'];}return!0x0;}(_0xd67f1f)?o(_0x580238,'*Format:*\x20remove\x20from\x20%0',o(_0x580238,function(_0x545b7a){return'ELEMENT_'+_0x545b7a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xd67f1f))):o(_0x580238,'*Outdent:*\x20%0',o(_0x580238,'ELEMENT_LIST_ITEM')),_0x34bdec={'type':'format','content':_0x178b3a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xfbcefb['multipleBlocks']&&(_0x178b3a='*Merge:*\x20%0',_0x34bdec={'type':'deletion','content':o(_0x580238,_0x178b3a,o(_0x580238,'ELEMENT_LIST_ITEM'))});}return _0x34bdec;});}}function Te(_0x477325){let _0x5c9a6d=_0x477325['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5c9a6d;){const _0x5cc1ae=_0x5c9a6d['getAttribute']('listItemId');if(!_0x5cc1ae)return!0x1;if(_0x5cc1ae==_0x477325['data']['newValue'])return'newValue';if(_0x5cc1ae==_0x477325['data']['oldValue'])return'oldValue';_0x5c9a6d=_0x5c9a6d['previousSibling'];}return!0x1;}class H extends _0x1f77b7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x23f431=this['editor']['config']['get']('list.properties'),_0x5760a1=this['editor']['plugins']['get']('TrackChangesEditing');_0x23f431['styles']&&_0x5760a1['enableDefaultAttributesIntegration']('listStyle'),_0x23f431['reversed']&&_0x5760a1['enableDefaultAttributesIntegration']('listReversed'),_0x23f431['startIndex']&&_0x5760a1['enableDefaultAttributesIntegration']('listStart');const _0x157faf={'type':'format','content':''};_0x5760a1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11b2d2=this['editor']['locale'];_0x5760a1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x11b2d2,'FORMAT_LIST_REVERSED')),_0x5760a1['descriptionFactory']['registerDescriptionCallback'](_0x2b1475=>{const {data:_0x14f524}=_0x2b1475;if(_0x14f524&&'listReversed'==_0x14f524['key'])return null==_0x14f524['newValue']||0x0==_0x14f524['newValue']&&null==_0x14f524['oldValue']?_0x157faf:void 0x0;}),_0x5760a1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x11b2d2,'FORMAT_LIST_START')),_0x5760a1['descriptionFactory']['registerDescriptionCallback'](_0x4c0e83=>{const {data:_0x23afe4}=_0x4c0e83;if(_0x23afe4&&'listStart'==_0x23afe4['key'])return null==_0x23afe4['newValue']||0x1==_0x23afe4['newValue']&&null==_0x23afe4['oldValue']?_0x157faf:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x565206=>{if(_0x565206['batch']['isUndo'])return!0x1;let _0x282bc4=!0x1;const _0x43e26d=_0x5760a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38053f=>{const _0xb99899=_0x5760a1['_getAttributeKey'](_0x38053f);return'listStart'==_0xb99899||'listReversed'==_0xb99899;});for(const _0x4089a6 of _0x43e26d){const _0x503134=_0x4089a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x503134||'customNumbered'==_0x503134)continue;_0x5760a1['_findSuggestions'](_0x4089a6['getFirstRange'](),'attribute')['find'](_0x1856ef=>'listType'==_0x5760a1['_getAttributeKey'](_0x1856ef['suggestion']))||(_0x565206['removeMarker'](_0x4089a6['getFirstMarker']()),_0x282bc4=!0x0);}return _0x282bc4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3223de){const _0x1841c1=this['editor']['locale'],{data:_0x49efca}=_0x3223de,_0x376d52={'type':'format','content':''};if(!_0x49efca||'listStyle'!=_0x49efca['key'])return;if(!_0x49efca['oldValue'])return'default'==_0x49efca['newValue']?_0x376d52:{'type':'format','content':''+o(_0x1841c1,'*Set\x20format:*\x20%0',o(_0x1841c1,this['_getTranslationKeyForListStyle'](_0x49efca['newValue'])))};if(!_0x49efca['newValue']){if('default'==_0x49efca['oldValue'])return _0x376d52;let _0x3aea93=_0x3223de['head'];for(;_0x3aea93;){if(_0x3aea93['data']&&'listType'==_0x3aea93['data']['key']&&_0x3aea93['data']['newValue'])return _0x376d52;_0x3aea93=_0x3aea93['next'];}return{'type':'format','content':''+o(_0x1841c1,'*Remove\x20format:*\x20%0',o(_0x1841c1,this['_getTranslationKeyForListStyle'](_0x49efca['oldValue'])))};}if('default'!=_0x49efca['newValue'])return{'type':'format','content':''+o(_0x1841c1,'*Set\x20format:*\x20%0',o(_0x1841c1,this['_getTranslationKeyForListStyle'](_0x49efca['newValue'])))};let _0x5981ab=_0x3223de['head'];for(;_0x5981ab;){if(_0x5981ab['data']&&'listType'==_0x5981ab['data']['key']&&_0x5981ab['data']['newValue']&&_0x5981ab['data']['oldValue'])return _0x376d52;_0x5981ab=_0x5981ab['next'];}return{'type':'format','content':o(_0x1841c1,'*Set\x20format:*\x20%0',o(_0x1841c1,'ELEMENT_'+_0x3223de['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x225634=this['editor'],_0x1c849a=_0x225634['locale'];_0x225634['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a3058=>{if('formatBlock'!=_0x5a3058['type'])return;const {data:_0x33d950}=_0x5a3058;if(!_0x33d950)return;let _0x3b0a27,_0x1a67a0;switch(_0x33d950['commandName']){case'listStyle':_0x3b0a27='*Change\x20to:*\x20%0',_0x1a67a0={'type':'format','content':o(_0x1c849a,_0x3b0a27,o(_0x1c849a,this['_getTranslationKeyForListStyle'](_0x33d950['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b0a27=_0x33d950['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a67a0={'type':'format','content':o(_0x1c849a,_0x3b0a27)};break;case'listStart':_0x3b0a27='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a67a0={'type':'format','content':o(_0x1c849a,_0x3b0a27,_0x33d950['commandParams'][0x0]['startIndex'])};}return _0x1a67a0;});}['_getTranslationKeyForListStyle'](_0x51d710){return'ELEMENT_'+function(_0x2452a9){if(ye['includes'](_0x2452a9))return'bulleted';if(Se['includes'](_0x2452a9))return'numbered';return null;}(_0x51d710)['toUpperCase']()+'_LIST_'+_0x51d710['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1f77b7{['afterInit'](){const _0x5c9b9c=this['editor'];_0x5c9b9c['commands']['get']('emoji')&&_0x5c9b9c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x1f77b7{static get['requires'](){return[_0x39180b];}['init'](){const _0x33e91f=this['editor'],_0x26084c=_0x33e91f['plugins']['get']('TrackChangesEditing'),_0x54a9e7=_0x33e91f['commands']['get']('enter');_0x26084c['enableCommand']('enter',()=>{_0x33e91f['model']['change'](_0x748d77=>{const _0x85831e=_0x33e91f['model']['document']['selection'],_0x11c2e9=_0x85831e['getFirstPosition'](),_0x490a48=_0x4e8d2f['fromRange'](_0x85831e['getFirstRange']());if(_0x54a9e7['enterBlock'](_0x748d77)){const _0x3ad1cf=_0x33e91f['model']['createPositionAt'](_0x11c2e9['parent']['nextSibling'],0x0),_0x5f508d=_0x748d77['createRange'](_0x11c2e9,_0x3ad1cf);_0x26084c['markInsertion'](_0x5f508d);}else _0x748d77['setSelection'](_0x748d77['createRange'](_0x490a48['end']));_0x490a48['detach'](),_0x54a9e7['fire']('afterExecute',{'writer':_0x748d77});});});}}class Y extends _0x1f77b7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3c100b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c100b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3c100b['enableCommand']('findNext'),_0x3c100b['enableCommand']('findPrevious'),_0x3c100b['enableCommand']('replace'),_0x3c100b['enableCommand']('replaceAll');}['handleFindCommand'](_0xd71863,_0xd4f518,_0xa52e4d={}){const _0x46d191=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xd71863(_0x1735c5=>{let _0x1f9cad=('string'==typeof _0xd4f518?_0x46d191['findByTextCallback'](_0xd4f518,_0xa52e4d):_0xd4f518)(_0x1735c5);Array['isArray'](_0x1f9cad)&&(_0x1f9cad={'results':_0x1f9cad,'searchText':'string'==typeof _0xd4f518?_0xd4f518:''});const _0x248a16=_0x1f9cad['results']['filter'](_0x152906=>!0x1===this['_isInDeletionRange'](_0x152906,_0x1735c5['item']));return{..._0x1f9cad,'results':_0x248a16};},_0xa52e4d);}['_isInDeletionRange'](_0x4450be,_0x246781){const _0xd2b59a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x246781,_0x4450be['start']),this['editor']['model']['createPositionAt'](_0x246781,_0x4450be['end']));for(const _0x4fabad of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd2b59a['getIntersection'](_0x4fabad['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x1f77b7{['afterInit'](){const _0x4b90ed=this['editor']['locale'],_0x37fda1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x128d6e,commandName:_0x3bc75b}of eo)this['editor']['plugins']['has'](_0x128d6e)&&_0x37fda1['enableDefaultAttributesIntegration'](_0x3bc75b);_0x37fda1['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4b90ed,'FORMAT_FONT_SIZE')),_0x37fda1['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4b90ed,'FORMAT_FONT_FAMILY')),_0x37fda1['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4b90ed,'FORMAT_FONT_COLOR')),_0x37fda1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4b90ed,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1818b1=this['editor'],_0xb59fca=_0x1818b1['locale'];_0x1818b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x613540=>{const _0x23ebd2=_0xb59fca['t'];if('formatInline'!=_0x613540['type'])return;const {data:_0x32918b}=_0x613540;if(null!=_0x32918b){if('fontSize'==_0x32918b['commandName']){const _0x389448=_0x32918b['commandParams'][0x0]['value'];if(_0x389448){const _0x42a472=_0x23ebd2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x33a3ff=>_0x33a3ff['model']==_0x389448)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb59fca,'*Set\x20font\x20size:*\x20%0',_0x42a472)};}return{'type':'format','content':o(_0xb59fca,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x32918b['commandName']){const _0x24a6ea=_0x32918b['commandParams'][0x0]['value'];return _0x24a6ea?{'type':'format','content':o(_0xb59fca,'*Set\x20font\x20family:*\x20%0',_0x24a6ea)}:{'type':'format','content':o(_0xb59fca,'*Reset\x20font\x20family*')};}if('fontColor'==_0x32918b['commandName']){const _0x701ed7=_0x32918b['commandParams'][0x0]['value'];if(_0x701ed7){const _0x3e8c77=_0x8e87b6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x44cfc6=>_0x44cfc6['model']==_0x701ed7);let _0x223c21=_0x701ed7,_0x25667e='';return _0x3e8c77&&(_0x223c21=_0x3e8c77['label'],_0x25667e=_0x23ebd2(_0x223c21)['toLowerCase']()),{'type':'format','content':o(_0xb59fca,'*Set\x20font\x20color:*\x20%0',_0x25667e)['trim'](),'color':{'value':_0x701ed7,'title':_0x25667e||_0x223c21}};}return{'type':'format','content':o(_0xb59fca,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x32918b['commandName']){const _0x1f9262=_0x32918b['commandParams'][0x0]['value'];if(_0x1f9262){const _0x21e4b9=_0x8e87b6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x752be3=>_0x752be3['model']==_0x1f9262);let _0xf75470=_0x1f9262,_0x1a1400='';return _0x21e4b9&&(_0xf75470=_0x21e4b9['label'],_0x1a1400=_0x23ebd2(_0xf75470)['toLowerCase']()),{'type':'format','content':o(_0xb59fca,'*Set\x20font\x20background\x20color:*\x20%0',_0x1a1400)['trim'](),'color':{'value':_0x1f9262,'title':_0x1a1400||_0xf75470}};}return{'type':'format','content':o(_0xb59fca,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x1f77b7{['afterInit'](){const {plugins:_0x34f9d6}=this['editor'];_0x34f9d6['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x34f9d6['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x475de2,plugins:_0x10c40a,commands:_0x27e19e}=this['editor'],_0x2a93d1=_0x10c40a['get']('TrackChangesEditing');_0x27e19e['get']('footnotesStyle')&&_0x2a93d1['enableDefaultAttributesIntegration']('footnotesStyle'),_0x27e19e['get']('footnotesStart')&&_0x2a93d1['enableDefaultAttributesIntegration']('footnotesStart'),_0x2a93d1['registerBlockAttribute']('footnotesListStyle'),_0x2a93d1['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x475de2,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2a93d1['registerBlockAttribute']('footnotesListStart'),_0x2a93d1['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x475de2,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x3a8741=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xbe482b,commands:_0x48f72d}=this['editor'];_0x48f72d['get']('insertFootnote')&&_0x3a8741['enableCommand']('insertFootnote'),_0x3a8741['descriptionFactory']['registerElementLabel']('footnoteRef',_0x337ff3=>o(_0xbe482b,'ELEMENT_FOOTNOTE_REF',_0x337ff3)),_0x3a8741['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3528a0=>o(_0xbe482b,'ELEMENT_FOOTNOTE_DEFINITION',_0x3528a0)),_0x3a8741['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x9af5cb=>o(_0xbe482b,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x9af5cb));}}class nt extends _0x1f77b7{['afterInit'](){const _0x4618a7=this['editor'],_0x215200=_0x4618a7['plugins']['get']('TrackChangesEditing'),_0x2a0e4e=_0x4618a7['commands']['get']('copyFormat'),_0x159fba=_0x4618a7['commands']['get']('pasteFormat');_0x2a0e4e&&_0x159fba&&(_0x215200['enableDefaultAttributesIntegration']('pasteFormat'),_0x215200['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x858ade=this['editor'],_0x4410a0=_0x858ade['locale'];_0x858ade['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a95b1=>{if('formatBlock'!=_0x2a95b1['type']&&'formatInline'!=_0x2a95b1['type'])return;const {data:_0x21847e}=_0x2a95b1;if(_0x21847e&&'pasteFormat'===_0x21847e['commandName']){const _0x2c2ad4=[],_0x385dc4=_0x21847e['commandParams'][0x0];for(const [_0x5b4277,_0x3613c0]of Object['entries'](_0x385dc4))_0x2c2ad4['push'](ro(_0x858ade,_0x5b4277,_0x3613c0));return _0x2c2ad4['length']?{'type':'format','content':o(_0x4410a0,'*Set\x20format\x20to:*\x20%0',_0x2c2ad4['join'](',\x20'))}:{'type':'format','content':o(_0x4410a0,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x41585f,_0x1e5a4d,_0x1e85e4){const _0x5e6585=_0x41585f['locale']['t'],_0xb2ca72=_0x1e5a4d['split'](/(?=[A-Z])/)['join']('\x20'),_0x5cf34a=_0x5e6585(_0xb2ca72['charAt'](0x0)['toUpperCase']()+_0xb2ca72['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1e85e4)return _0x5cf34a;if('fontColor'===_0x1e5a4d||'fontBackgroundColor'===_0x1e5a4d){const _0x243967=_0x8e87b6(_0x41585f['config']['get']('fontColor.colors'))['find'](_0x20257c=>_0x20257c['model']==_0x1e85e4);return _0x5cf34a+'\x20('+(_0x243967?_0x5e6585(_0x243967['label'])['toLowerCase']():_0x1e85e4)+')';}if('fontSize'===_0x1e5a4d&&isNaN(parseFloat(_0x1e85e4))){const _0x4c579c=_0x41585f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x41585f['config']['get']('fontSize.options'))['find'](_0x578810=>_0x578810['model']==_0x1e85e4);return _0x5cf34a+'\x20('+(_0x4c579c?_0x5e6585(_0x4c579c['title'])['toLowerCase']():_0x1e85e4)+')';}return _0x5cf34a+'\x20('+_0x1e85e4+')';}class it extends _0x1f77b7{['_headingOptions'];['afterInit'](){const _0x171c46=this['editor'];if(!_0x171c46['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x171c46['config']['get']('heading.options');const _0x58fdc0=_0x171c46['locale'],_0x44e55d=_0x171c46['plugins']['get']('TrackChangesEditing');_0x44e55d['enableDefaultAttributesIntegration']('heading');for(const _0x4a936c of this['_headingOptions'])'paragraph'!=_0x4a936c['model']&&_0x44e55d['descriptionFactory']['registerElementLabel'](_0x4a936c['model'],_0x216765=>{const _0x477e1f=this['_getHeadingLevel'](_0x4a936c['model']);return null!==_0x477e1f?_0x3b1fd9(_0x216765,_0x477e1f):_0x57f6d3(_0x216765,_0x4a936c['title']);});function _0x3b1fd9(_0x287232,_0x4608e4){return o(_0x58fdc0,'ELEMENT_HEADING',[_0x287232,_0x4608e4]);}function _0x57f6d3(_0x177dfa,_0x3a45bc){return o(_0x58fdc0,'ELEMENT_HEADING_CUSTOM',[_0x177dfa,_0x3a45bc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fbee2=this['editor'],_0x3c3c87=_0x2fbee2['locale'];function _0x3a2dac(_0x2e854e,_0x286f0){return o(_0x3c3c87,'ELEMENT_HEADING_CUSTOM',[_0x2e854e,_0x286f0]);}_0x2fbee2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x86606c=>{if('formatBlock'!=_0x86606c['type'])return;const {data:_0x1547bc}=_0x86606c;if(_0x1547bc&&'heading'==_0x1547bc['commandName']){const _0x2f1d39=_0x1547bc['commandParams'][0x0]['value'],_0x1f154b=this['_getHeadingLevel'](_0x2f1d39);if(null!==_0x1f154b)return{'type':'format','content':o(_0x3c3c87,'*Change\x20to:*\x20%0',(_0xc9f0c9=0x1,_0x3dc94a=_0x1f154b,o(_0x3c3c87,'ELEMENT_HEADING',[_0xc9f0c9,_0x3dc94a])))};const _0xe5ce49=this['_headingOptions']['find'](_0x37c283=>_0x37c283['model']===_0x2f1d39)['title'];return{'type':'format','content':o(_0x3c3c87,'*Change\x20to:*\x20%0',_0x3a2dac(0x1,_0xe5ce49))};}var _0xc9f0c9,_0x3dc94a;});}['_getHeadingLevel'](_0x205829){const _0x2700a5=_0x205829['match'](/^heading(\d+)/);if(_0x2700a5)return _0x2700a5[0x1];const _0x127596=this['_headingOptions']?.['find'](_0xd34334=>_0xd34334['model']==_0x205829);if(_0x127596&&_0x127596['view']){const _0x143023=_0x127596['view'],_0x288531=(_0x143023['name']??_0x143023)['match'](/^h(\d+)/);if(_0x288531)return _0x288531[0x1];}return null;}}class et extends _0x1f77b7{['afterInit'](){const _0x1c7cdf=this['editor'];if(!_0x1c7cdf['plugins']['has']('HighlightEditing'))return;const _0x4edd1e=_0x1c7cdf['plugins']['get']('TrackChangesEditing'),_0x8189f7=_0x1c7cdf['locale'];_0x4edd1e['enableDefaultAttributesIntegration']('highlight'),_0x4edd1e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x8189f7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc2d1c1=this['editor'],_0x4eed6f=_0xc2d1c1['locale'];_0xc2d1c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d015a=>{if('formatInline'!=_0x5d015a['type'])return;const {data:_0x35a063}=_0x5d015a;if(_0x35a063&&'highlight'==_0x35a063['commandName']){const _0x4afb23=_0x4eed6f['t'],_0x49e3c4=_0x35a063['commandParams'][0x0]['value'];if(_0x49e3c4){const _0x40005e=_0xc2d1c1['config']['get']('highlight.options')['find'](_0x54e8ca=>_0x54e8ca['model']==_0x49e3c4),_0x4a6fed=_0x4afb23(_0x40005e['title'])['toLowerCase']();return{'type':'format','content':o(_0x4eed6f,'*Set\x20highlight:*\x20%0',_0x4a6fed),'color':{'value':_0x40005e['color'],'title':_0x40005e['title']}};}return{'type':'format','content':o(_0x4eed6f,'*Remove\x20highlight*',o(_0x4eed6f,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x1f77b7{['afterInit'](){const _0x5b6d61=this['editor'];if(!_0x5b6d61['plugins']['has']('HorizontalLineEditing'))return;_0x5b6d61['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x55e7b6=_0x5b6d61['plugins']['get']('TrackChangesEditing'),_0x40869a=_0x5b6d61['locale'];_0x55e7b6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x32529a=>o(_0x40869a,'ELEMENT_HORIZONTAL_LINE',_0x32529a));}}class ot extends _0x1f77b7{['afterInit'](){const _0x482428=this['editor'];if(!_0x482428['plugins']['has']('HtmlEmbed'))return;const _0x560be8=_0x482428['plugins']['get']('TrackChangesEditing'),_0x48ccf0=_0x482428['locale'];_0x560be8['descriptionFactory']['registerElementLabel']('rawHtml',_0x39d03b=>o(_0x48ccf0,'ELEMENT_HTML_EMBED',_0x39d03b)),_0x560be8['enableDefaultAttributesIntegration']('htmlEmbed'),_0x560be8['descriptionFactory']['registerDescriptionCallback'](_0x514f18=>{if('attribute'!=_0x514f18['type'])return;const {data:_0xe1c870}=_0x514f18;if(_0xe1c870&&'value'==_0xe1c870['key']&&_0x514f18['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b517d=o(_0x48ccf0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x48ccf0,'*Change\x20%0\x20content*',_0x2b517d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14c373=this['editor'],_0x48aa93=_0x14c373['locale'];_0x14c373['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfb5488=>{if('formatBlock'!=_0xfb5488['type'])return;const {data:_0x4e9b44}=_0xfb5488;if(_0x4e9b44&&'htmlEmbed'==_0x4e9b44['commandName']){const _0x4c29fb=o(_0x48aa93,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x48aa93,'*Change\x20%0\x20content*',_0x4c29fb)};}});}}class rt extends _0x1f77b7{['afterInit'](){const _0x3ac60a=this['editor'];if(!_0x3ac60a['plugins']['has']('ImageEditing'))return;const _0x3ccaed=_0x3ac60a['plugins']['get']('TrackChangesEditing'),_0x1a3913=_0x3ac60a['plugins']['get']('ImageUtils'),_0x46449f=_0x3ac60a['locale'];_0x3ccaed['enableCommand']('insertImage'),_0x3ccaed['descriptionFactory']['registerElementLabel']('imageBlock',_0x20e682=>o(_0x46449f,'ELEMENT_IMAGE',_0x20e682)),_0x3ccaed['descriptionFactory']['registerElementLabel']('imageInline',_0x3a926a=>o(_0x46449f,'ELEMENT_INLINE_IMAGE',_0x3a926a)),_0x3ccaed['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x46449f,'ELEMENT_CAPTION')),_0x3ac60a['plugins']['has']('ImageUploadEditing')&&_0x3ccaed['enableCommand']('uploadImage'),_0x3ac60a['plugins']['has']('ImageBlockEditing')&&_0x3ac60a['plugins']['has']('ImageInlineEditing')&&(_0x3ccaed['enableCommand']('imageTypeInline',(_0x84ea92,_0x279c8f)=>{const _0xa8f455=_0x1a3913['getClosestSelectedImageElement'](_0x3ac60a['model']['document']['selection']);_0x3ac60a['model']['change'](()=>{_0x3ccaed['markBlockFormat'](_0xa8f455,{'commandName':'imageTypeInline','commandParams':[_0x279c8f]},[],'convertBlockImageToInline');});}),_0x3ccaed['enableCommand']('imageTypeBlock',(_0x3abf7d,_0x6b3c7f)=>{_0x3ac60a['model']['change'](_0x4a7c48=>{let _0x4f5fad=_0x1a3913['getClosestSelectedImageElement'](_0x3ac60a['model']['document']['selection']),_0x46e449=_0x4a7c48['createRangeOn'](_0x4f5fad);const _0x4e4056=_0x4ab43c['fromPosition'](_0x46e449['start'],'toPrevious'),_0x11c713=_0x4ab43c['fromPosition'](_0x46e449['end'],'toNext');_0x3ccaed['forceDefaultExecution'](()=>_0x3abf7d(_0x6b3c7f)),_0x4f5fad=_0x1a3913['getClosestSelectedImageElement'](_0x3ac60a['model']['document']['selection']),_0x46e449=_0x4a7c48['createRangeOn'](_0x4f5fad);const _0x2b002d=_0x4a7c48['createRange'](_0x4e4056,_0x11c713);_0x4e4056['detach'](),_0x11c713['detach'](),_0x3ccaed['markBlockFormat'](_0x4f5fad,{'commandName':'imageTypeInline','commandParams':[_0x6b3c7f]},[],'convertInlineImageToBlock'),_0x2b002d['start']['isBefore'](_0x46e449['start'])&&_0x3ccaed['markInsertion'](_0x4a7c48['createRange'](_0x2b002d['start'],_0x46e449['start']),'convertInlineImageToBlock'),_0x46e449['end']['isBefore'](_0x2b002d['end'])&&_0x3ccaed['markInsertion'](_0x4a7c48['createRange'](_0x46e449['end'],_0x2b002d['end']),'convertInlineImageToBlock');});}),_0x3ccaed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ccaed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ccaed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ccaed['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ccaed['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ccaed['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3162b8])=>{const _0x487e45=_0x3ccaed['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19201e=_0x3162b8['start'],_0x5afd55=_0x3162b8['end'];const _0x5d6eda=_0x3ac60a['model']['schema']['getNearestSelectionRange'](_0x19201e,'backward'),_0x26503b=_0x3ac60a['model']['schema']['getNearestSelectionRange'](_0x5afd55,'forward');_0x5d6eda['isCollapsed']&&(_0x19201e=_0x5d6eda['start']),_0x26503b['isCollapsed']&&(_0x5afd55=_0x26503b['end']),_0x487e45([_0x3ac60a['model']['createRange'](_0x19201e,_0x5afd55)]);}),_0x3ccaed['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2e5595),_0x3ccaed['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2e5595)),_0x3ac60a['plugins']['has']('ImageCaptionEditing')&&(_0x3ccaed['enableCommand']('toggleImageCaption',(_0x3deb54,_0x5616b7)=>{const _0x5785b5=_0x3ac60a['plugins']['get']('ImageCaptionUtils');let _0xecd994=_0x1a3913['getClosestSelectedImageElement'](_0x3ac60a['model']['document']['selection']),_0x554dc5=_0x5785b5['getCaptionFromImageModelElement'](_0xecd994);_0x3ac60a['model']['change'](()=>{if(_0x554dc5)return void _0x3ccaed['markDeletion'](_0x3ac60a['model']['createRangeOn'](_0x554dc5));const _0x5f2d72=_0x1a3913['isBlockImage'](_0xecd994);_0x3deb54(_0x5616b7),_0xecd994=_0x1a3913['getClosestSelectedImageElement'](_0x3ac60a['model']['document']['selection']),_0x554dc5=_0x5785b5['getCaptionFromImageModelElement'](_0xecd994),_0x3ccaed['markInsertion'](_0x3ac60a['model']['createRangeOn'](_0x554dc5),_0x5f2d72?null:'imageCaption');});}),_0x3ccaed['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2e5595));const _0xec354a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e1852(_0x1e7190,_0x17c9df){const _0xa3c5cc=_0xec354a['findIndex'](({type:_0x42ec1e,subType:_0x2cbd28})=>_0x1e7190['type']==_0x42ec1e&&_0x1e7190['subType']==_0x2cbd28),_0x21db7c=_0xec354a['findIndex'](({type:_0x40094c,subType:_0x30bbeb})=>_0x17c9df['type']==_0x40094c&&_0x17c9df['subType']==_0x30bbeb);if(_0xa3c5cc<0x0||_0x21db7c<0x0)return!0x1;const _0x313433=_0x1e7190['getFirstRange'](),_0x140cfa=_0x17c9df['getFirstRange']();if((0x0==_0xa3c5cc||0x1==_0xa3c5cc)&&0x2==_0x21db7c&&_0x313433['isIntersecting'](_0x140cfa))return!0x0;if(0x2==_0xa3c5cc&&0x3==_0x21db7c){const _0x6129ea=_0x3ccaed['_findSuggestions'](_0x313433,'insertion')['filter'](({suggestion:_0x377195,meta:_0x591fb5})=>_0x591fb5['isOwn']&&'convertInlineImageToBlock'==_0x377195['subType']);if(_0x6129ea['length']>0x1&&_0x140cfa['end']['isEqual'](_0x313433['start']))return!0x0;if(0x1==_0x6129ea['length']&&(_0x313433['start']['isEqual'](_0x140cfa['end'])||_0x313433['end']['isEqual'](_0x140cfa['start'])))return!0x0;}if(0x3==_0xa3c5cc&&0x3==_0x21db7c&&_0x313433['start']['isBefore'](_0x140cfa['start'])){const _0x47503d=_0x313433['end']['nodeAfter'],_0x5ddf73=_0x140cfa['start']['nodeBefore'];return _0x1a3913['isBlockImage'](_0x47503d)&&_0x47503d===_0x5ddf73;}return!0x1;}function _0x2e5595(_0x374c58,_0x442a75){return _0x5e1852(_0x374c58,_0x442a75)?[_0x374c58,_0x442a75]:_0x5e1852(_0x442a75,_0x374c58)?[_0x442a75,_0x374c58]:null;}_0x3ac60a['plugins']['has']('ImageResize')&&(_0x3ccaed['enableDefaultAttributesIntegration']('resizeImage'),_0x3ccaed['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x46449f,'FORMAT_IMAGE_SIZE'))),_0x3ac60a['plugins']['has']('ImageTextAlternativeEditing')&&_0x3ccaed['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ac60a['plugins']['has']('PictureEditing')&&_0x3ccaed['descriptionFactory']['registerDescriptionCallback'](_0x5b2795=>{if('attribute'!=_0x5b2795['type'])return;const {data:_0x30a6c3}=_0x5b2795;return _0x30a6c3&&'sources'==_0x30a6c3['key']?{'type':'format','content':''}:void 0x0;}),_0x3ac60a['plugins']['has']('ImageSizeAttributes')&&_0x3ccaed['descriptionFactory']['registerDescriptionCallback'](_0x1f29ff=>{if('attribute'!=_0x1f29ff['type'])return;const {data:_0x443977}=_0x1f29ff;return!_0x443977||'width'!=_0x443977['key']&&'height'!=_0x443977['key']?void 0x0:{'type':'format','content':''};}),_0x3ccaed['descriptionFactory']['registerDescriptionCallback'](_0x3e22bb=>{if(!!_0xec354a['find'](({type:_0x3176da,subType:_0x3dd703})=>_0x3e22bb['type']==_0x3176da&&_0x3e22bb['subType']==_0x3dd703))return _0x3e22bb['previous']?{}:void 0x0;}),_0x3ccaed['descriptionFactory']['registerDescriptionCallback'](_0x82e3c9=>{if('insertion'==_0x82e3c9['type']||'deletion'==_0x82e3c9['type']){const _0x54dad6=_0x82e3c9['getContainedElement']();if(_0x54dad6&&_0x54dad6['is']('element','caption'))return{'type':'insertion'==_0x82e3c9['type']?'addObject':'removeObject','element':_0x54dad6,'quantity':0x1};}}),_0x3ccaed['descriptionFactory']['registerDescriptionCallback'](_0x58c9b2=>'formatBlock'==_0x58c9b2['type']&&'convertInlineImageToBlock'==_0x58c9b2['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58c9b2['type']&&'convertBlockImageToInline'==_0x58c9b2['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ccaed['descriptionFactory']['registerDescriptionCallback'](_0x315636=>{if('attribute'!=_0x315636['type'])return;const {data:_0x13eea3}=_0x315636;if(!_0x13eea3||'alt'!=_0x13eea3['key'])return;const _0x250a43=_0x13eea3['newValue'];return _0x250a43?{'type':'format','content':o(_0x46449f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x250a43+'\x22')}:{'type':'format','content':o(_0x46449f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33dd0c=this['editor'],_0x1cc10b=_0x33dd0c['locale'];_0x33dd0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ad8bc=>{if('formatBlock'!=_0x1ad8bc['type']&&'formatInline'!=_0x1ad8bc['type'])return;const {data:_0x2e133b}=_0x1ad8bc;if(_0x2e133b){if('imageTextAlternative'==_0x2e133b['commandName']){const _0x3799a5=_0x2e133b['commandParams'][0x0]['newValue'];return _0x3799a5?{'type':'format','content':o(_0x1cc10b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3799a5+'\x22')}:{'type':'format','content':o(_0x1cc10b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2e133b['commandName']){const _0x52464e=_0x2e133b['commandParams'][0x0]['width'];return _0x52464e?{'type':'format','content':o(_0x1cc10b,'*Set\x20image\x20width:*\x20%0',_0x52464e)}:{'type':'format','content':o(_0x1cc10b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x1f77b7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3277c9=this['editor']['locale'],_0x3d3fdc=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d3fdc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3d3fdc['descriptionFactory']['registerDescriptionCallback'](_0x4a7f36=>{if('attribute'!=_0x4a7f36['type'])return;const {data:_0x1c6e70}=_0x4a7f36;return _0x1c6e70&&'src'==_0x1c6e70['key']?_0x1c6e70['newValue']&&_0x1c6e70['oldValue']?{'type':'format','content':o(_0x3277c9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x379f41=this['editor']['plugins']['get']('TrackChangesEditing');_0x379f41['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x379f41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x379f41['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x379f41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58be5c=this['editor'],_0x4b2635=_0x58be5c['locale'];_0x58be5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3606e1=>{if('formatBlock'!=_0x3606e1['type']&&'formatInline'!=_0x3606e1['type'])return;const {data:_0x145811}=_0x3606e1;if(!_0x145811||'replaceImageSource'!=_0x145811['commandName'])return;return{'type':'format','content':o(_0x4b2635,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x1f77b7{['afterInit'](){const _0x4c6297=this['editor'];if(!_0x4c6297['plugins']['has']('ImageStyleEditing'))return;const _0x179017=_0x4c6297['plugins']['get']('TrackChangesEditing'),_0x4893f8=_0x4c6297['plugins']['get']('ImageUtils'),_0x14f5b0={};_0x179017['enableCommand']('imageStyle',(_0x821c54,_0x50221d)=>{const _0x32bca5=_0x4c6297['plugins']['get']('Users')['me'],_0x2756d0=_0x4c6297['commands']['get']('imageStyle');let _0x2dcc33=_0x4893f8['getClosestSelectedImageElement'](_0x4c6297['model']['document']['selection']),_0x1df43f=_0x4c6297['model']['createRangeOn'](_0x2dcc33),_0x32b8ea=_0x2756d0['value'];if(_0x32b8ea==_0x50221d['value'])return;const _0x86d8a8={'commandName':'imageStyle','commandParams':[_0x50221d],'formatGroupId':_0x1b40cb()};_0x4c6297['model']['change'](()=>{if(_0x179017['getSuggestions']()['filter'](_0xfa5e72=>_0xfa5e72['isInContent']&&_0x32bca5==_0xfa5e72['author']&&('formatBlock'==_0xfa5e72['type']||'formatInline'==_0xfa5e72['type'])&&('imageStylePreApply'==_0xfa5e72['subType']||'imageStylePostApply'==_0xfa5e72['subType'])&&_0xfa5e72['getFirstRange']()['isEqual'](_0x1df43f))['forEach'](_0x4e8bd7=>_0x179017['discardSuggestion'](_0x4e8bd7['head'])),_0x2dcc33=_0x4893f8['getClosestSelectedImageElement'](_0x4c6297['model']['document']['selection']),_0x1df43f=_0x4c6297['model']['createRangeOn'](_0x2dcc33),_0x2756d0['refresh'](),_0x4c6297['commands']['get']('imageTypeInline')['refresh'](),_0x4c6297['commands']['get']('imageTypeBlock')['refresh'](),_0x32b8ea=_0x2756d0['value'],_0x32b8ea!=_0x50221d['value'])return _0x4893f8['isInlineImage'](_0x2dcc33)&&_0x2756d0['shouldConvertImageType'](_0x50221d['value'],_0x2dcc33)?(_0x821c54({..._0x50221d,'setImageSizes':!0x1}),_0x2dcc33=_0x4893f8['getClosestSelectedImageElement'](_0x4c6297['model']['document']['selection']),void _0x179017['markBlockFormat'](_0x2dcc33,{..._0x86d8a8,'commandReversedParams':[{'value':_0x32b8ea||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4893f8['isBlockImage'](_0x2dcc33)?_0x179017['markBlockFormat'](_0x2dcc33,_0x86d8a8,[],'imageStylePostApply'):_0x179017['markInlineFormat'](_0x1df43f,_0x86d8a8,'imageStylePostApply'));});});for(const _0x3c67ee of _0x4c6297['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x14f5b0[_0x3c67ee['name']]=_0x3c67ee['title']['toLowerCase']();_0x179017['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x179017['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x179017['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x179017['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5f3a79])=>{_0x4893f8['setImageNaturalSizeAttributes'](_0x5f3a79['getContainedElement']());}),_0x179017['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x154350,_0x10a0c8)=>{_0x179017['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x154350,{'commandName':_0x10a0c8['commandName'],'commandParams':_0x10a0c8['commandReversedParams']});}),_0x179017['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x296341,_0x260974){if(_0x59110c(_0x296341,_0x260974))return[_0x296341,_0x260974];if(_0x59110c(_0x260974,_0x296341))return[_0x260974,_0x296341];return null;});const _0x59f05b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x59110c(_0x193b5b,_0x2e56bb){const _0x34b5d9=_0x59f05b['findIndex'](({type:_0x154afa,subType:_0x2e7161})=>_0x193b5b['type']==_0x154afa&&_0x193b5b['subType']==_0x2e7161),_0x262fe9=_0x59f05b['findIndex'](({type:_0x598d79,subType:_0x23c9a9})=>_0x2e56bb['type']==_0x598d79&&_0x2e56bb['subType']==_0x23c9a9);if(_0x34b5d9<0x0||_0x262fe9<0x0)return!0x1;const _0xe4ae73=_0x193b5b['getFirstRange'](),_0x1d0f76=_0x2e56bb['getFirstRange']();if((0x0==_0x34b5d9||0x1==_0x34b5d9)&&0x2==_0x262fe9&&_0xe4ae73['isIntersecting'](_0x1d0f76))return!0x0;if(0x2==_0x34b5d9&&0x3==_0x262fe9){const _0xdf0ce7=_0x179017['_findSuggestions'](_0xe4ae73,'insertion')['filter'](({suggestion:_0x29aaa8,meta:_0x4fb937})=>_0x4fb937['isOwn']&&'convertInlineImageToBlock'==_0x29aaa8['subType']);if(_0xdf0ce7['length']>0x1&&_0x1d0f76['end']['isEqual'](_0xe4ae73['start']))return!0x0;if(0x1==_0xdf0ce7['length']&&(_0xe4ae73['start']['isEqual'](_0x1d0f76['end'])||_0xe4ae73['end']['isEqual'](_0x1d0f76['start'])))return!0x0;}if(0x3==_0x34b5d9&&0x3==_0x262fe9&&_0xe4ae73['start']['isBefore'](_0x1d0f76['start'])){const _0x2c4736=_0xe4ae73['end']['nodeAfter'],_0x23a744=_0x1d0f76['start']['nodeBefore'];return _0x4893f8['isBlockImage'](_0x2c4736)&&_0x2c4736===_0x23a744;}return!0x1;}_0x4c6297['model']['document']['registerPostFixer'](()=>{let _0xf71275=!0x1;const _0x44db4d=Array['from'](_0x4c6297['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42713d,data:_0x668f16}of _0x44db4d){const {group:_0x493a0d,type:_0x27e7f3,subType:_0x10a9fa,id:_0x23ff6a}=_0x179017['_splitMarkerName'](_0x42713d);if('suggestion'==_0x493a0d&&_0x179017['hasSuggestion'](_0x23ff6a)){if('formatBlock'==_0x27e7f3&&('imageStylePreApply'==_0x10a9fa||'imageStylePostApply'==_0x10a9fa)){const _0x243eaa=_0x179017['getSuggestion'](_0x23ff6a);if(_0x668f16['newRange']){const _0x3f3d2b=_0x243eaa['getFirstRange']()['getContainedElement']();if(_0x4893f8['isBlockImage'](_0x3f3d2b))continue;_0x179017['discardSuggestion'](_0x243eaa),_0xf71275=!0x0;}}if('insertion'==_0x27e7f3&&'imageCaption'==_0x10a9fa&&!_0x668f16['newRange']){const _0x121537=_0x179017['getSuggestion'](_0x23ff6a);_0x121537['next']&&_0x121537['next']['isInContent']&&(_0x179017['discardSuggestion'](_0x121537['next']),_0xf71275=!0x0);}}}return _0xf71275;}),this['_registerLegacyDescription'](_0x14f5b0);}['_registerLegacyDescription'](_0x131e74){const _0x24e669=this['editor'],_0x3e1386=_0x24e669['locale'];_0x24e669['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x102f62=>{if('formatBlock'!=_0x102f62['type']&&'formatInline'!=_0x102f62['type'])return;const {data:_0x479dad}=_0x102f62;if(!_0x479dad||'imageStyle'!=_0x479dad['commandName'])return;const _0x274898=_0x479dad['commandParams'][0x0]['value'];return _0x17c49f('side'===_0x274898?o(_0x3e1386,'FORMAT_SIDE_IMAGE'):_0x131e74[_0x274898]||_0x274898);function _0x17c49f(_0x4b2402){return{'type':'format','content':o(_0x3e1386,'*Format:*\x20%0',_0x4b2402)};}});}}class ut extends _0x1f77b7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x458bf0){super(_0x458bf0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x348e95=this['editor'],_0x5055e7=_0x348e95['commands']['get']('importWord'),_0x4680ea=_0x348e95['commands']['get']('trackChanges');_0x5055e7&&(_0x5055e7['on']('execute',(_0x29eb09,[,_0x38bcae])=>{this['_trackChangesValueDuringImport']=_0x4680ea['value'],_0x38bcae['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5055e7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5055e7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4680ea['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x348e95['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x32d070,_0x4483bf){const {suggestions:_0x1e7e53}=_0x4483bf,_0x81042e=this['editor']['commands']['get']('trackChanges'),_0x4cbe24=_0x81042e['value'];this['_trackChangesValueDuringImport']!==_0x4cbe24&&(_0x81042e['execute'](),this['_trackChangesExecuted']=!0x0),_0x1e7e53&&_0x1e7e53['forEach'](({id:_0xc449e9,type:_0x2f764d,author:_0x55b516,created_at:_0x287df8})=>{const _0x997644={'id':_0xc449e9,'type':_0x2f764d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x55b516,'createdAt':_0x287df8?new Date(_0x287df8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x997644);});}}class ft extends _0x1f77b7{['afterInit'](){const _0x406758=this['editor'],_0x284ddb=_0x406758['plugins']['get']('TrackChangesEditing');if(_0x406758['plugins']['has']('IndentEditing')&&(_0x284ddb['enableCommand']('indent'),_0x284ddb['enableCommand']('outdent')),_0x406758['plugins']['has']('IndentBlock')){for(const _0x30c5c4 of['indentBlock','outdentBlock'])_0x284ddb['enableDefaultAttributesIntegration'](_0x30c5c4);}const _0x347997=_0x406758['locale'];_0x284ddb['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x347997,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a6800=this['editor'],_0x48759e=_0x4a6800['locale'],_0x524e09=_0x4a6800['plugins']['get']('TrackChangesEditing');_0x524e09['descriptionFactory']['registerDescriptionCallback'](_0x5cf6e7=>{if('formatBlock'!=_0x5cf6e7['type'])return;const {data:_0x535a2b}=_0x5cf6e7;if(!_0x535a2b)return;if('indentBlock'!=_0x535a2b['commandName']&&'outdentBlock'!=_0x535a2b['commandName'])return;const _0x816813=_0x5cf6e7['getItems']()[0x0],_0x542243=_0x524e09['descriptionFactory']['getItemLabel'](_0x816813);return'indentBlock'==_0x535a2b['commandName']?{'type':'format','content':o(_0x48759e,'*Indent:*\x20%0',_0x542243)}:'outdentBlock'==_0x535a2b['commandName']?{'type':'format','content':o(_0x48759e,'*Outdent:*\x20%0',_0x542243)}:void 0x0;});}}class ht extends _0x1f77b7{static get['requires'](){return[_0x55edca];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x1f77b7{['afterInit'](){const _0x1957d4=this['editor'];if(!_0x1957d4['plugins']['has']('LinkEditing'))return;const _0x57d1ee=_0x1957d4['plugins']['get']('TrackChangesEditing'),_0x14bc7c=_0x1957d4['commands']['get']('link');_0x57d1ee['enableDefaultAttributesIntegration']('link'),_0x57d1ee['enableDefaultAttributesIntegration']('unlink');for(const _0x2af368 of _0x14bc7c['manualDecorators'])_0x57d1ee['descriptionFactory']['registerAttributeLabel'](_0x2af368['id'],'link\x20('+_0x2af368['label']['toLowerCase']()+')');_0x57d1ee['descriptionFactory']['registerDescriptionCallback'](_0x1a66c3=>{if('attribute'!=_0x1a66c3['type'])return;const {data:_0xcda83c}=_0x1a66c3;if(!_0xcda83c||'linkHref'!=_0xcda83c['key'])return;const _0x2947d2=_0xcda83c['newValue'],_0x2a6504=_0x1957d4['locale'];return{'type':'format','content':null==_0x2947d2?o(_0x2a6504,'*Remove\x20link*'):o(_0x2a6504,'*Set\x20link:*\x20%0','\x22'+_0x2947d2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b5d41=this['editor'],_0x4c560f=_0x2b5d41['locale'];_0x2b5d41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x347867=>{if('formatInline'!=_0x347867['type'])return;const {data:_0x273eaf}=_0x347867;if(_0x273eaf){if('link'==_0x273eaf['commandName']){const _0x1d57b1=_0x273eaf['commandParams'][0x0];return{'type':'format','content':o(_0x4c560f,'*Set\x20link:*\x20%0','\x22'+_0x1d57b1+'\x22')};}return'unlink'==_0x273eaf['commandName']?{'type':'format','content':o(_0x4c560f,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x1f77b7{['afterInit'](){const _0x379c38=this['editor'],_0x54dfc4=_0x379c38['locale'];if(!_0x379c38['plugins']['has']('LegacyListEditing'))return;const _0x4d1a5b=_0x379c38['plugins']['get']('TrackChangesEditing'),_0x5d51c2=_0x379c38['plugins']['has']('LegacyTodoListEditing');function _0x13cd7f(_0x5d0555){return()=>{const _0x2b0abf=_0x379c38['model']['document']['selection'],_0x1f1f34=_0x379c38['commands']['get'](_0x5d0555);if(_0x1f1f34['value'])return void _0x379c38['execute']('paragraph',{});const _0x23a1e7=_0x5d0555['slice'](0x0,-0x4),_0x2110b6=function(_0x25daea,_0x259f2c,_0x30ec04){let _0x5602ac=Array['from'](_0x25daea)['filter'](_0x1c9545=>function(_0x2860db,_0x47f05b){return _0x47f05b['checkChild'](_0x2860db['parent'],'listItem')&&!_0x47f05b['isObject'](_0x2860db);}(_0x1c9545,_0x30ec04));_0x5602ac=_0x5602ac['filter'](_0x2e9059=>!_0x2e9059['is']('element','listItem')||_0x2e9059['getAttribute']('listType')!=_0x259f2c);const _0x229cf1=new Set();for(const _0x23a75d of _0x5602ac)_0x23a75d['is']('element','listItem')?_0x229cf1['add'](Le(_0x23a75d)):_0x229cf1['add'](_0x23a75d);return Array['from'](_0x229cf1);}(_0x2b0abf['getSelectedBlocks'](),_0x23a1e7,_0x379c38['model']['schema']);_0x379c38['model']['change'](()=>{for(const _0x4228d2 of _0x2110b6)_0x4d1a5b['markBlockFormat'](_0x4228d2,{'commandName':_0x5d0555,'commandParams':[{'forceValue':!_0x1f1f34['value']}],'formatGroupId':'blockName'},Ee(_0x4228d2));});};}function _0x67b42b(_0x3a0358){return()=>{const _0x3c47d4=function(_0x3f41d9){let _0x2429f7=Array['from'](_0x3f41d9);const _0x45d0ed=_0x2429f7['findIndex'](_0x52f9bc=>'listItem'!=_0x52f9bc['name']);return _0x45d0ed>-0x1&&(_0x2429f7=_0x2429f7['slice'](0x0,_0x45d0ed)),_0x2429f7;}(_0x379c38['model']['document']['selection']['getSelectedBlocks']()),_0x1cd3b6=_0x379c38['model']['createRange'](_0x379c38['model']['createPositionAt'](_0x3c47d4[0x0],'before'),_0x379c38['model']['createPositionAt'](_0x3c47d4[_0x3c47d4['length']-0x1],'end'));_0x379c38['model']['change'](()=>{_0x4d1a5b['markBlockFormat'](_0x1cd3b6,{'commandName':_0x3a0358,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4f1943){const _0x367d98=new Set();for(const _0x42ca61 of _0x4f1943){let _0x39fdd3=_0x42ca61['nextSibling'];for(;_0x39fdd3&&_0x39fdd3['getAttribute']('listIndent')>_0x42ca61['getAttribute']('listIndent');)_0x367d98['add'](_0x39fdd3),_0x39fdd3=_0x39fdd3['nextSibling'];}return Array['from'](_0x367d98);}(_0x3c47d4));});};}_0x4d1a5b['enableCommand']('numberedList',_0x13cd7f('numberedList')),_0x4d1a5b['enableCommand']('bulletedList',_0x13cd7f('bulletedList')),_0x5d51c2&&_0x4d1a5b['enableCommand']('todoList',_0x13cd7f('todoList')),_0x4d1a5b['enableCommand']('indentList',_0x67b42b('indentList')),_0x4d1a5b['enableCommand']('outdentList',_0x67b42b('outdentList')),_0x5d51c2&&_0x4d1a5b['enableCommand']('checkTodoList',()=>{const _0x28b35b=_0x379c38['commands']['get']('checkTodoList'),_0xefa33b=Array['from'](_0x28b35b['_selectedElements']);_0xefa33b['filter'](_0x2ac258=>_0x2ac258['getAttribute']('todoListChecked')!=_0x28b35b['value']),_0x379c38['model']['change'](()=>{for(const _0x1d51a1 of _0xefa33b)_0x4d1a5b['markBlockFormat'](_0x1d51a1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x28b35b['value']}]});});}),_0x4d1a5b['descriptionFactory']['registerElementLabel']('listItem',_0x5e03cc=>o(_0x54dfc4,'ELEMENT_LIST_ITEM',_0x5e03cc)),_0x4d1a5b['descriptionFactory']['registerDescriptionCallback'](_0x36a17f=>{if('formatBlock'!=_0x36a17f['type']&&'formatInline'!=_0x36a17f['type'])return;const {data:_0x210f9a}=_0x36a17f;if(_0x210f9a){if('numberedList'==_0x210f9a['commandName']||'bulletedList'==_0x210f9a['commandName']||'todoList'==_0x210f9a['commandName'])switch(_0x210f9a['commandName']['replace']('List','')){case'bulleted':return _0x2177d3(o(_0x54dfc4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2177d3(o(_0x54dfc4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2177d3(o(_0x54dfc4,'ELEMENT_TODO_LIST'));}if('indentList'==_0x210f9a['commandName'])return{'type':'format','content':o(_0x54dfc4,'*Indent:*\x20%0',o(_0x54dfc4,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x210f9a['commandName'])return{'type':'format','content':o(_0x54dfc4,'*Outdent:*\x20%0',o(_0x54dfc4,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x210f9a['commandName'])return _0x210f9a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54dfc4,'*Check\x20item*')}:{'type':'format','content':o(_0x54dfc4,'*Uncheck\x20item*')};}function _0x2177d3(_0x4cfc56){return{'type':'format','content':o(_0x54dfc4,'*Change\x20to:*\x20%0',_0x4cfc56)};}});}}function Le(_0x3d355b){const _0x31e9d6=_0x3d355b['getAttribute']('listIndent');if(0x0==_0x31e9d6)return _0x3d355b;let _0x4d070c=_0x3d355b;for(;_0x3d355b['previousSibling']&&_0x3d355b['previousSibling']['is']('element','listItem');){const _0x335a79=_0x3d355b['previousSibling']['getAttribute']('listIndent');if(_0x335a79==_0x31e9d6)_0x4d070c=_0x3d355b['previousSibling'];else{if(_0x335a79<_0x31e9d6)break;}_0x3d355b=_0x3d355b['previousSibling'];}return _0x4d070c;}function Ee(_0x2f8836){const _0x16f002=[];if(_0x2f8836['is']('element','listItem')&&_0x2f8836['getAttribute']('listIndent')>0x0){let _0x194c83=_0x2f8836['nextSibling'];for(;_0x194c83&&'listItem'==_0x194c83['name']&&_0x194c83['getAttribute']('listIndent')==_0x2f8836['getAttribute']('listIndent');)_0x16f002['push'](_0x194c83),_0x194c83=_0x194c83['nextSibling'];}return _0x16f002;}class mt extends _0x1f77b7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x14d087=this['editor']['config']['get']('list.properties'),_0x32387e=this['editor']['plugins']['get']('TrackChangesEditing');_0x14d087['styles']&&_0x32387e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x14d087['reversed']&&_0x32387e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x14d087['startIndex']&&_0x32387e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x32387e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x55a739,_0x5d53af={}){const _0x5cfb62=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17794f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5cfb62['markMultiRangeBlockFormat'](_0x17794f,{'commandName':'listStyle','commandParams':[{'type':_0x5d53af['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x528270,_0x1bb36f={}){const _0x500505=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a0254=this['_getSuggestionBlocks'](_0x3c0021=>_0x3c0021['is']('element','listItem')&&'numbered'===_0x3c0021['getAttribute']('listType'));if(_0x4a0254['length']<0x1)return;const _0x551a95=_0x4a0254['map'](_0x18b159=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x18b159,'before'),this['editor']['model']['createPositionAt'](_0x18b159,0x0)));this['editor']['model']['change'](()=>{_0x500505['markMultiRangeBlockFormat'](_0x551a95,{'commandName':'listReversed','commandParams':[{'reversed':_0x1bb36f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1cd024,_0x163b49={}){const _0x5798a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x373cc3=this['_getSuggestionBlocks'](_0x30f67f=>_0x30f67f['is']('element','listItem')&&'numbered'===_0x30f67f['getAttribute']('listType'));if(_0x373cc3['length']<0x1)return;const _0xb35464=_0x373cc3['map'](_0x3866c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3866c2,'before'),this['editor']['model']['createPositionAt'](_0x3866c2,0x0)));this['editor']['model']['change'](()=>{_0x5798a3['markMultiRangeBlockFormat'](_0xb35464,{'commandName':'listStart','commandParams':[{'startIndex':_0x163b49['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x42af42){if('formatBlock'!=_0x42af42['type']&&'formatInline'!=_0x42af42['type'])return;const _0x2ed2a0=this['editor']['locale'],{data:_0x787bfe}=_0x42af42;if(!_0x787bfe)return;let _0x32d3d9,_0x4da189;switch(_0x787bfe['commandName']){case'listStyle':_0x32d3d9='*Change\x20to:*\x20%0',_0x4da189={'type':'format','content':o(_0x2ed2a0,_0x32d3d9,o(_0x2ed2a0,this['_getTranslationKeyForListStyle'](_0x787bfe['commandParams'][0x0]['type'])))};break;case'listReversed':_0x32d3d9=_0x787bfe['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4da189={'type':'format','content':o(_0x2ed2a0,_0x32d3d9)};break;case'listStart':_0x32d3d9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4da189={'type':'format','content':o(_0x2ed2a0,_0x32d3d9,_0x787bfe['commandParams'][0x0]['startIndex'])};}return _0x4da189;}['_getSuggestionBlocksForListStyle'](){const _0x129084=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ea716=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5ea716[0x0]?.['is']('element','listItem')&&_0x5ea716['unshift'](..._0x129084['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5ea716[_0x5ea716['length']-0x1]?.['is']('element','listItem')&&_0x5ea716['push'](..._0x129084['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5ea716=[...new Set(_0x5ea716)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5ea716=_0x5ea716['filter'](_0x2892ad=>_0x2892ad['is']('element','listItem'))),_0x5ea716;}['_getSuggestionBlocks'](_0x3feb9c){const _0x1ba9ac=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a0a54=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3feb9c)['map'](_0x54969a=>{const _0x2e193b=this['editor']['model']['createPositionAt'](_0x54969a,0x0);return[..._0x1ba9ac['getSiblingNodes'](_0x2e193b,'backward'),..._0x1ba9ac['getSiblingNodes'](_0x2e193b,'forward')];})['flat']();return _0x5a0a54=[...new Set(_0x5a0a54)],_0x5a0a54;}['_getTranslationKeyForListStyle'](_0x27ef44){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27ef44)||'default')['toUpperCase']()+'_LIST_'+_0x27ef44['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x1f77b7{['afterInit'](){const _0x37c186=this['editor'];if(!_0x37c186['plugins']['has']('MediaEmbedEditing'))return;const _0x3db23d=_0x37c186['plugins']['get']('TrackChangesEditing'),_0x1e8b83=_0x37c186['locale'];_0x3db23d['enableCommand']('mediaEmbed'),_0x3db23d['descriptionFactory']['registerElementLabel']('media',_0x376efb=>o(_0x1e8b83,'ELEMENT_MEDIA',_0x376efb));}}class pt extends _0x1f77b7{['afterInit'](){const _0x295c96=this['editor'];_0x295c96['plugins']['has']('MentionEditing')&&_0x295c96['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x1f77b7{['afterInit'](){const _0x98a743=this['editor'];if(!_0x98a743['plugins']['has']('MergeFieldsEditing'))return;const _0x306116=_0x98a743['plugins']['get']('TrackChangesEditing'),_0x3ef9bc=_0x98a743['locale'];_0x306116['enableCommand']('insertMergeField'),_0x306116['enableCommand']('insertMergeFieldBlock'),_0x306116['enableCommand']('insertMergeFieldImage'),_0x306116['descriptionFactory']['registerElementLabel']('mergeField',_0x361c03=>o(_0x3ef9bc,'ELEMENT_MERGE_FIELD',_0x361c03)),_0x306116['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3b4bbd=>o(_0x3ef9bc,'ELEMENT_MERGE_FIELD',_0x3b4bbd)),_0x306116['descriptionFactory']['registerDescriptionCallback'](_0xed35cb=>{if('insertion'!=_0xed35cb['type']&&'deletion'!=_0xed35cb['type'])return;const _0x3bab23=_0xed35cb['getContainedElement']();if(null==_0x3bab23)return;const _0x5234d6=_0x98a743['plugins']['get']('MergeFieldsEditing');let _0x2172be;switch(_0x5234d6['getMergeFieldType'](_0x3bab23)){case null:return;case'image':{const _0x362d58=_0x5234d6['unwrapAffixes'](_0x3bab23['getAttribute']('src'));_0x2172be=_0x5234d6['getLabel'](_0x362d58)||_0x362d58;break;}default:{const _0x3f44b3=_0x3bab23['getAttribute']('id');_0x2172be=_0x5234d6['getLabel'](_0x3f44b3)||_0x3f44b3;break;}}return'insertion'==_0xed35cb['type']?{'type':'insertion','content':o(_0x3ef9bc,'*Insert:*\x20%0','\x22'+_0x2172be+'\x22\x20'+o(_0x3ef9bc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3ef9bc,'*Remove:*\x20%0','\x22'+_0x2172be+'\x22\x20'+o(_0x3ef9bc,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x1f77b7{['afterInit'](){const _0x2e4980=this['editor'],_0x34a818=_0x2e4980['plugins']['get']('TrackChangesEditing');_0x2e4980['plugins']['has']('MultiLevelList')&&(_0x34a818['enableDefaultAttributesIntegration']('multiLevelList'),_0x34a818['descriptionFactory']['registerDescriptionCallback'](_0x4b1322=>this['handleDescriptions'](_0x4b1322)));}['handleDescriptions'](_0x53bdff){const _0x4df1f9=this['editor']['locale'],{data:_0x5d5a3d}=_0x53bdff,_0x26dc21={'type':'format','content':''};if(_0x5d5a3d&&'listMarkerStyle'==_0x5d5a3d['key']){if(!_0x5d5a3d['oldValue'])return{'type':'format','content':o(_0x4df1f9,'*Set\x20format:*\x20%0',o(_0x4df1f9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d5a3d['newValue']+')'};if(!_0x5d5a3d['newValue']){let _0xf1baff=_0x53bdff['head'];for(;_0xf1baff;){if(_0xf1baff['data']&&'listType'==_0xf1baff['data']['key']&&_0xf1baff['data']['newValue'])return _0x26dc21;_0xf1baff=_0xf1baff['next'];}return{'type':'format','content':o(_0x4df1f9,'*Remove\x20format:*\x20%0',o(_0x4df1f9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d5a3d['oldValue']+')'};}}}}class bt extends _0x1f77b7{['afterInit'](){const _0x590558=this['editor'];if(!_0x590558['plugins']['has']('PageBreakEditing'))return;_0x590558['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x33c26d=_0x590558['plugins']['get']('TrackChangesEditing'),_0x1c605e=_0x590558['locale'];_0x33c26d['descriptionFactory']['registerElementLabel']('pageBreak',_0x53ba5b=>o(_0x1c605e,'ELEMENT_PAGE_BREAK',_0x53ba5b));}}class yt extends _0x1f77b7{['afterInit'](){const _0x4ce48e=this['editor'];if(!_0x4ce48e['plugins']['has']('Paragraph'))return;const _0x5dfc8b=_0x4ce48e['locale'],_0x4b94ea=_0x4ce48e['plugins']['get']('TrackChangesEditing');_0x4b94ea['descriptionFactory']['registerElementLabel']('paragraph',_0x413e35=>o(_0x5dfc8b,'ELEMENT_PARAGRAPH',_0x413e35)),_0x4b94ea['enableDefaultAttributesIntegration']('paragraph'),_0x4b94ea['enableCommand']('insertParagraph');const _0x207044=_0x4b94ea['descriptionFactory'];_0x207044['registerDescriptionCallback'](_0x4bf2af=>{if('insertion'!==_0x4bf2af['type'])return;const {start:_0x21562f,end:_0x4b41a5}=_0x4bf2af['getFirstRange']();if(!_0x21562f['isTouching'](_0x4b41a5)||!_0x21562f['nodeAfter'])return;const _0x464ce4=_0x4ce48e['model']['schema'],_0xa07363=_0x21562f['nodeAfter'];return _0x464ce4['isBlock'](_0xa07363)&&!_0x464ce4['isLimit'](_0xa07363)&&_0x464ce4['checkChild'](_0xa07363,'$text')?{'type':'insertion','content':o(_0x5dfc8b,'*Insert:*\x20%0',_0x207044['getItemLabel'](_0xa07363,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2003f1=this['editor'],_0x14e36f=_0x2003f1['locale'];_0x2003f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x107300=>{if('formatBlock'!=_0x107300['type'])return;const {data:_0xe9428d}=_0x107300;return _0xe9428d&&'paragraph'==_0xe9428d['commandName']?{'type':'format','content':o(_0x14e36f,'*Change\x20to:*\x20%0',o(_0x14e36f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x1f77b7{['afterInit'](){const _0xa6372e=this['editor'];_0xa6372e['commands']['get']('replaceSource')&&_0xa6372e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x1f77b7{['afterInit'](){const _0x5a24d4=this['editor'];if(!_0x5a24d4['plugins']['has']('RemoveFormatEditing'))return;_0x5a24d4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1078bd=this['editor'];_0x1078bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34dd3d=>{if('formatBlock'!=_0x34dd3d['type']&&'formatInline'!=_0x34dd3d['type'])return;const {data:_0x1b9cba}=_0x34dd3d;return _0x1b9cba&&'removeFormat'==_0x1b9cba['commandName']?{'type':'format','content':o(_0x1078bd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x1f77b7{['afterInit'](){const _0x159b65=this['editor'];if(!_0x159b65['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x175d74=_0x159b65['plugins']['get']('TrackChangesEditing');_0x175d74['enableCommand']('goToPreviousRestrictedEditingException'),_0x175d74['enableCommand']('goToNextRestrictedEditingException');const _0x199b4f=_0x159b65['plugins']['get']('RestrictedEditingModeEditing');_0x199b4f['enableCommand']('trackChanges'),_0x199b4f['enableCommand']('acceptSuggestion'),_0x199b4f['enableCommand']('discardSuggestion'),_0x199b4f['enableCommand']('acceptAllSuggestions'),_0x199b4f['enableCommand']('discardAllSuggestions'),_0x199b4f['enableCommand']('acceptSelectedSuggestions'),_0x199b4f['enableCommand']('discardSelectedSuggestions');}}class At extends _0x1f77b7{['afterInit'](){const _0x2d3dda=this['editor'];if(!_0x2d3dda['plugins']['has']('ShiftEnter'))return;const _0x11b700=_0x2d3dda['plugins']['get']('TrackChangesEditing');_0x11b700['enableCommand']('shiftEnter'),_0x11b700['descriptionFactory']['registerElementLabel']('softBreak',_0x51fb06=>o(_0x2d3dda['locale'],'ELEMENT_LINE_BREAK',_0x51fb06));}}function an(_0x5c5494,_0x279260,_0x4b3740){const _0x52542d=[];for(const _0x537c04 of _0x279260['getItems']())_0x537c04['hasAttribute'](_0x5c5494)&&_0x52542d['push'](_0x4b3740['createRangeOn'](_0x537c04));return _0x52542d;}class _t extends _0x1f77b7{['afterInit'](){const _0xde9c4e=this['editor'],_0x18e362=_0xde9c4e['plugins']['get']('TrackChangesEditing');_0xde9c4e['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x18e362['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x438b03=this['editor'],_0x4c8f69=_0x438b03['model'],_0x3d20ff=_0x438b03['locale'],_0x588fbd=_0x438b03['plugins']['get']('TrackChangesEditing'),_0x40785='restrictedEditingException',_0x406e25=_0x438b03['commands']['get'](_0x40785);_0x588fbd['enableCommand'](_0x40785,(_0x3f2e52,_0xb160ba={})=>{const _0x4847c9=_0x4c8f69['document']['selection'];if(_0x4847c9['isCollapsed'])return void _0x3f2e52(_0xb160ba);const _0x268095=void 0x0!==_0xb160ba['forceValue']?_0xb160ba['forceValue']:!_0x406e25['value'];_0x4c8f69['change'](()=>{const _0x39b29e=Array['from'](_0x4847c9['getRanges']());for(const _0x131fa4 of _0x39b29e){const _0x1992a5=_0x268095?[_0x131fa4]:an(_0x40785,_0x131fa4,_0x4c8f69);for(const _0xd054f of _0x1992a5)_0x588fbd['markInlineFormat'](_0xd054f,{'commandName':_0x40785,'commandParams':[{'forceValue':_0x268095}]});}});}),_0x588fbd['descriptionFactory']['registerDescriptionCallback'](_0x547024=>{if('formatBlock'!=_0x547024['type']&&'formatInline'!=_0x547024['type'])return;const {data:_0x25a81e}=_0x547024;return _0x25a81e&&_0x25a81e['commandName']==_0x40785?_0x25a81e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d20ff,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3d20ff,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x2bed13=this['editor'],_0x1148d8=_0x2bed13['locale'],_0x42c0f1=_0x2bed13['plugins']['get']('TrackChangesEditing'),_0x48265b='restrictedEditingExceptionBlock',_0x12b0a0=this['editor']['commands']['get'](_0x48265b);_0x42c0f1['enableCommand'](_0x48265b,(_0x4aeb11,_0x39f8d7={})=>{const _0x44c8b2=this['editor']['model']['document']['selection'],_0x3a8a3d=_0x39f8d7&&void 0x0!==_0x39f8d7['forceValue']?_0x39f8d7['forceValue']:!_0x12b0a0['value'];let _0x18e138=[];if(_0x3a8a3d){const _0xa9e179=Array['from'](_0x44c8b2['getSelectedBlocks']())['filter'](_0x1deab1=>function(_0x4713a6){return!!_0x4713a6['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1deab1)||function(_0x27da80,_0x42e845){const _0x71600=_0x42e845['createContext'](_0x27da80['parent']);if(!_0x42e845['checkChild'](_0x71600,'restrictedEditingException'))return!0x1;if(!_0x42e845['checkChild'](_0x71600['push']('restrictedEditingException'),_0x27da80))return!0x1;return!0x0;}(_0x1deab1,this['editor']['model']['schema']));_0x18e138=to(_0xa9e179,_0x2bed13['model']);}else{const _0x188f63=Array['from'](_0x44c8b2['getSelectedBlocks']())['map'](_0x2097a5=>function(_0x43801a){let _0x54acd1=_0x43801a;for(;_0x54acd1['parent'];){if('restrictedEditingException'==_0x54acd1['parent']['name'])return _0x54acd1;_0x54acd1=_0x54acd1['parent'];}return null;}(_0x2097a5))['filter'](_0x41acba=>!!_0x41acba);_0x18e138=to(_0x188f63,_0x2bed13['model']);}_0x2bed13['model']['change'](()=>{for(const _0x3bc708 of _0x18e138)_0x42c0f1['markBlockFormat'](_0x3bc708,{'commandName':_0x48265b,'commandParams':[{'forceValue':_0x3a8a3d}]});});}),_0x42c0f1['descriptionFactory']['registerDescriptionCallback'](_0x3833bb=>{const {data:_0x436cac}=_0x3833bb;if(_0x436cac&&_0x436cac['commandName']==_0x48265b)return _0x436cac['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1148d8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1148d8,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x1f77b7{['afterInit'](){const _0x5358a5=this['editor'];if(!_0x5358a5['plugins']['has']('Style')||!_0x5358a5['plugins']['has']('DataSchema'))return;const _0x55d4dd=_0x5358a5['plugins']['get']('TrackChangesEditing'),_0x5b2460=_0x5358a5['locale'],_0x407a54=_0x5358a5['config']['get']('style')||{},_0x43d962=_0x5358a5['plugins']['get']('GeneralHtmlSupport'),_0x335cc2=_0x5358a5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5358a5['plugins']['get']('DataSchema'),_0x407a54['definitions']);_0x55d4dd['enableDefaultAttributesIntegration']('style');const _0x459071=new Set();for(const _0xee8d2e of _0x335cc2['block']){const _0x124277=_0x43d962['getGhsAttributeNameForElement'](_0xee8d2e['element']);_0x459071['add'](_0x124277);}const _0x360bb0=new Set();for(const _0x569b19 of _0x335cc2['inline']){const _0xfc7891=_0x43d962['getGhsAttributeNameForElement'](_0x569b19['element']);_0x360bb0['add'](_0xfc7891);for(const _0x118c81 of _0x569b19['ghsAttributes'])_0x360bb0['add'](_0x118c81);}for(const _0x42fab5 of _0x459071)_0x55d4dd['descriptionFactory']['registerAttributeLabel'](_0x42fab5,o(_0x5b2460,'FORMAT_STYLE'));for(const _0x155f29 of _0x360bb0)_0x55d4dd['descriptionFactory']['registerAttributeLabel'](_0x155f29,o(_0x5b2460,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x556eb8=this['editor'],_0x248a48=_0x556eb8['locale'];_0x556eb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28930f=>{if('formatBlock'!=_0x28930f['type']&&'formatInline'!=_0x28930f['type'])return;const {data:_0x1166f5}=_0x28930f;return _0x1166f5&&'style'===_0x1166f5['commandName']?_0x1166f5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x248a48,'*Set\x20format:*\x20%0',_0x1166f5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x248a48,'*Remove\x20format:*\x20%0',_0x1166f5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x1f77b7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x20b4dc){super(_0x20b4dc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5d2164=this['editor'],_0xb6df17=_0x5d2164['model']['document']['selection'];if(!_0x5d2164['plugins']['has']('TableEditing'))return;const _0x5a5587=_0x5d2164['locale'],_0x5bd1b0=_0x5d2164['plugins']['get']('TrackChangesEditing'),_0x3a99a2=_0x5d2164['plugins']['get']('TableUtils');_0x5bd1b0['descriptionFactory']['registerElementLabel']('table',_0x28d634=>o(_0x5a5587,'ELEMENT_TABLE',_0x28d634)),this['_setupColumnsRowsFixing'](),_0x5bd1b0['enableCommand']('insertTable'),_0x5bd1b0['enableCommand']('selectTableRow'),_0x5bd1b0['enableCommand']('selectTableColumn');for(const _0x1b26fd of['insertTableRowAbove','insertTableRowBelow']){const _0x4d6397=_0x5d2164['commands']['get'](_0x1b26fd);_0x5bd1b0['enableCommand'](_0x1b26fd,_0x254093=>{_0x5d2164['model']['change'](_0x2c38ee=>{_0x254093();const _0x1d304b='above'===_0x4d6397['order'],_0x530da6=_0x3a99a2['getSelectionAffectedTableCells'](_0xb6df17),_0x573aca=_0x3a99a2['getRowIndexes'](_0x530da6),_0xf774b8=_0x1d304b?_0x573aca['first']-0x1:_0x573aca['last']+0x1,_0x2d6e17=_0x530da6[0x0]['findAncestor']('table'),_0x470ac2=_0x3a99a2['createTableWalker'](_0x2d6e17,{'startRow':_0xf774b8,'endRow':_0xf774b8}),_0x197571=Array['from'](_0x470ac2)['map'](_0x4c4722=>_0x2c38ee['createRangeOn'](_0x4c4722['cell']));_0x5bd1b0['markMultiRangeInsertion'](_0x197571,'tableRow');});});}for(const _0x18c60f of['insertTableColumnLeft','insertTableColumnRight']){const _0x1e5eba=_0x5d2164['commands']['get'](_0x18c60f);_0x5bd1b0['enableCommand'](_0x18c60f,_0x5b7f2e=>{_0x5d2164['model']['change'](_0x4eec74=>{_0x5b7f2e();const _0x156b4d='left'===_0x1e5eba['order'],_0x2cf399=_0x3a99a2['getSelectionAffectedTableCells'](_0xb6df17),_0x1d50d7=_0x3a99a2['getColumnIndexes'](_0x2cf399),_0x311b62=_0x156b4d?_0x1d50d7['first']-0x1:_0x1d50d7['last']+0x1,_0x335b2f=_0x2cf399[0x0]['findAncestor']('table'),_0x2c5258=_0x3a99a2['createTableWalker'](_0x335b2f,{'startRow':0x0,'column':_0x311b62,'includeAllSlots':!0x1}),_0x349746=Array['from'](_0x2c5258)['map'](_0x31217b=>_0x4eec74['createRangeOn'](_0x31217b['cell']));_0x5bd1b0['markMultiRangeInsertion'](_0x349746,'tableColumn');});});}for(const _0x1646c4 of['removeTableRow','removeTableColumn']){const _0x3ad42c=_0x1646c4['substr'](0xb),_0x529f23=_0x3ad42c['toLowerCase'](),_0x13c381=_0x529f23['substr'](0x0,0x3)+'span',_0x3b0616='table'+_0x3ad42c,_0x235513='min'+_0x3ad42c,_0x3e491a='max'+_0x3ad42c;_0x5bd1b0['enableCommand'](_0x1646c4,()=>{_0x5d2164['model']['change'](_0x30e2bc=>{const _0x5d4bf1=_0x3a99a2['getSelectionAffectedTableCells'](_0xb6df17),_0x42a2ef=_0x5d4bf1[0x0]['findAncestor']('table');let _0x4f3439;if('removeTableRow'==_0x1646c4){const _0x808313=_0x3a99a2['getRowIndexes'](_0x5d4bf1);_0x4f3439={'startRow':_0x808313['first'],'endRow':_0x808313['last'],'includeAllSlots':!0x0};}else{const _0xeccb77=_0x3a99a2['getColumnIndexes'](_0x5d4bf1);_0x4f3439={'startColumn':_0xeccb77['first'],'endColumn':_0xeccb77['last'],'includeAllSlots':!0x0};}const _0x42990d=_0x3a99a2['createTableWalker'](_0x42a2ef,_0x4f3439),_0x1365a2=Array['from'](_0x42990d)['map'](({cell:_0x596c01})=>_0x596c01),_0x4ef2e5=_e(_0x1365a2['filter'](_0x132365=>_0x132365['hasAttribute'](_0x13c381))),_0x457da3=_e(_0x1365a2['filter'](_0x45bd53=>!_0x45bd53['hasAttribute'](_0x13c381)))['map'](_0x3c0047=>_0x30e2bc['createRangeOn'](_0x3c0047)),_0x340f6b=_0x5bd1b0['markMultiRangeDeletion'](_0x457da3,_0x3b0616);if(_0x340f6b&&('tableRow'==_0x340f6b['subType']||'tableColumn'==_0x340f6b['subType'])){const _0xf63823=this['_getSuggestionCoords'](_0x340f6b);for(const _0x1bc489 of _0x4ef2e5){const _0x1f0a57=_0x30e2bc['createRangeOn'](_0x1bc489),_0x240790=_0x3a99a2['getCellLocation'](_0x1bc489),_0x45d1e5=_0x1bc489['getAttribute'](_0x13c381)-0x1,_0x439481=_0xf63823[_0x235513],_0x2c4c63=_0xf63823[_0x3e491a];_0x439481<=_0x240790[_0x529f23]&&_0x240790[_0x529f23]+_0x45d1e5<=_0x2c4c63&&_0x340f6b['addRange'](_0x1f0a57);}}});});}function _0x46f707(_0x267f52){const _0xc1be41=Array['from'](_0xb6df17['getRanges']())['map'](_0x33969b=>_0x4e8d2f['fromRange'](_0x33969b));_0x5d2164['model']['change'](_0x136a3b=>{const _0x22ee9d=_0x136a3b['batch'];_0x267f52=_0x267f52['filter'](_0x1799ca=>'$graveyard'!=_0x1799ca['root']['rootName']),_0x136a3b['setSelection'](_0x267f52),_0x5d2164['commands']['get']('removeTableRow')['refresh'](),_0x5d2164['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5d2164['model']['enqueueChange'](()=>{_0x5d2164['model']['enqueueChange'](_0x22ee9d,_0x17e1b4=>{const _0x53e2a8=_0xc1be41['filter'](_0x3a0c22=>'$graveyard'!=_0x3a0c22['root']['rootName']);_0x53e2a8['length']>0x0&&_0x17e1b4['setSelection'](_0x53e2a8);for(const _0x44adb0 of _0xc1be41)_0x44adb0['detach']();});});});}function _0x2e236c(_0x474ed6){_0x5d2164['model']['change'](_0x559ce4=>{const _0x53a316=Array['from'](_0xb6df17['getRanges']())['map'](_0x2907bc=>_0x4e8d2f['fromRange'](_0x2907bc)),_0x58af99=[];for(const _0x3632f6 of _0x474ed6)for(const _0x52aaee of _0x3632f6['getItems']({'shallow':!0x0}))_0x58af99['push'](_0x52aaee);for(const _0x250479 of _0x58af99)'$graveyard'!=_0x250479['root']['rootName']&&(_0x559ce4['setSelection'](_0x559ce4['createPositionAt'](_0x250479,0x0)),_0x5d2164['commands']['get']('removeTableColumn')['refresh'](),_0x5d2164['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2c45fd=_0x53a316['filter'](_0x4cb8de=>'$graveyard'!=_0x4cb8de['root']['rootName']);_0x2c45fd['length']>0x0&&_0x559ce4['setSelection'](_0x2c45fd);for(const _0x4a21a9 of _0x53a316)_0x4a21a9['detach']();});}function _0x434f71(_0x1781cb,_0x4ab0d0){return _0x4ab0d0['every'](_0x469af9=>_0x1781cb['some'](_0x419500=>_0x419500['end']['isEqual'](_0x469af9['start'])||_0x469af9['end']['isEqual'](_0x419500['start'])));}function _0x5d2fa6(_0x27be5c,_0x48a2ca){return!_0x27be5c['some'](_0x230b9e=>_0x48a2ca['some'](_0xf99751=>_0x230b9e['isIntersecting'](_0xf99751)))&&_0x27be5c['some'](_0x32f678=>_0x48a2ca['some'](_0x412983=>_0x32f678['end']['isTouching'](_0x412983['start'])));}_0x5bd1b0['descriptionFactory']['registerDescriptionCallback'](_0x20ee2c=>{if('insertion'!=_0x20ee2c['type']&&'deletion'!=_0x20ee2c['type'])return;const _0x51257f=_0x20ee2c['getContainedElement']();if(null!=_0x51257f&&_0x51257f['is']('element','table')){if('insertion'==_0x20ee2c['type']){const _0x50b893=_0x20ee2c['getItems']()['filter'](_0x3b4730=>_0x3b4730['is']('$textProxy'))['map'](_0x320648=>_0x320648['data']);if(_0x50b893['length'])return{'type':'insertion','content':o(_0x5a5587,'*Insert:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x50b893['join']('\x20')+'\x22'))};}if('deletion'==_0x20ee2c['type']){const _0x4ec803=_0x20ee2c['getItems']()['filter'](_0x29de11=>_0x29de11['is']('$textProxy'))['map'](_0x176919=>_0x176919['data']);if(_0x4ec803['length'])return{'type':'deletion','content':o(_0x5a5587,'*Remove:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ec803['join']('\x20')+'\x22'))};}}}),_0x5bd1b0['descriptionFactory']['registerDescriptionCallback'](_0x3e67fe=>{if('tableRow'==_0x3e67fe['subType']){const _0x285da8=_0x3e67fe['getItems']()['filter'](_0x5bdbf4=>_0x5bdbf4['is']('$textProxy'))['map'](_0x14ec37=>_0x14ec37['data']),_0x26fb40=this['_getSuggestionCoords'](_0x3e67fe),_0x3808e6=_0x26fb40['maxRow']-_0x26fb40['minRow']+0x1;if('insertion'==_0x3e67fe['type'])return _0x285da8['length']?{'type':'insertion','content':o(_0x5a5587,'*Insert:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3808e6,'\x22'+_0x285da8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5a5587,'*Insert:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_ROW',_0x3808e6))};if('deletion'==_0x3e67fe['type'])return _0x285da8['length']?{'type':'deletion','content':o(_0x5a5587,'*Remove:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3808e6,'\x22'+_0x285da8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5a5587,'*Remove:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_ROW',_0x3808e6))};}if('tableColumn'==_0x3e67fe['subType']){const _0x4506e0=_0x3e67fe['getItems']()['filter'](_0x2af2a0=>_0x2af2a0['is']('$textProxy'))['map'](_0x188545=>_0x188545['data']),_0x3bfb05=this['_getSuggestionCoords'](_0x3e67fe),_0x33928f=_0x3bfb05['maxColumn']-_0x3bfb05['minColumn']+0x1;if('insertion'==_0x3e67fe['type'])return _0x4506e0['length']?{'type':'insertion','content':o(_0x5a5587,'*Insert:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33928f,'\x22'+_0x4506e0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5a5587,'*Insert:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_COLUMN',_0x33928f))};if('deletion'==_0x3e67fe['type'])return _0x4506e0['length']?{'type':'deletion','content':o(_0x5a5587,'*Remove:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33928f,'\x22'+_0x4506e0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5a5587,'*Remove:*\x20%0',o(_0x5a5587,'ELEMENT_TABLE_COLUMN',_0x33928f))};}}),_0x5bd1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x46f707),_0x5bd1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x46f707),_0x5bd1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2e236c),_0x5bd1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2e236c),_0x5bd1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x434f71),_0x5bd1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x434f71),_0x5bd1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d2fa6),_0x5bd1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d2fa6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x31ca18=this['editor'],_0x5acb25=_0x31ca18['model']['document']['selection'];return(_0x1a7deb,_0x34085f)=>{_0x31ca18['model']['change'](_0x30068e=>{const {commandName:_0x59d2cf,commandParams:_0x222188}=_0x34085f;let _0x3bfac1=_0x1a7deb[0x0]['end']['nodeBefore'];_0x222188&&_0x222188[0x0]&&!0x1===_0x222188[0x0]['forceValue']&&(_0x3bfac1=_0x1a7deb[0x0]['start']['nodeAfter']);const _0x45f3e1=_0x30068e['createRangeIn'](_0x3bfac1);if('$graveyard'==_0x45f3e1['root']['rootName'])return;const _0xfd19f1=Array['from'](_0x5acb25['getRanges']())['map'](_0x299184=>_0x4e8d2f['fromRange'](_0x299184));_0x30068e['setSelection'](_0x45f3e1),_0x31ca18['commands']['get'](_0x59d2cf)['refresh'](),_0x222188['push']({'forceDefaultExecution':!0x0}),_0x31ca18['execute'](_0x59d2cf,..._0x222188);const _0x489d0a=_0xfd19f1['filter'](_0x4d5c11=>'$graveyard'!=_0x4d5c11['root']['rootName']);_0x489d0a['length']>0x0&&_0x30068e['setSelection'](_0x489d0a);for(const _0x262d5e of _0xfd19f1)_0x262d5e['detach']();});};}['_getCoordsForCells'](_0x2e796b){const _0x253a4b=this['editor']['plugins']['get']('TableUtils');let _0x264242=Number['MAX_SAFE_INTEGER'],_0xbdecb3=Number['MIN_SAFE_INTEGER'],_0x4ff723=Number['MAX_SAFE_INTEGER'],_0x147309=Number['MIN_SAFE_INTEGER'];for(const _0x4568d3 of _0x2e796b){if('$graveyard'==_0x4568d3['root']['rootName'])continue;const {row:_0x156d1b,column:_0x3b61b2}=_0x253a4b['getCellLocation'](_0x4568d3),_0x16e2c2=_0x4568d3['hasAttribute']('rowspan')?_0x4568d3['getAttribute']('rowspan')-0x1:0x0,_0x55bd38=_0x4568d3['hasAttribute']('colspan')?_0x4568d3['getAttribute']('colspan')-0x1:0x0;_0x264242=_0x156d1b<_0x264242?_0x156d1b:_0x264242,_0xbdecb3=_0x156d1b+_0x16e2c2>_0xbdecb3?_0x156d1b+_0x16e2c2:_0xbdecb3,_0x4ff723=_0x3b61b2<_0x4ff723?_0x3b61b2:_0x4ff723,_0x147309=_0x3b61b2+_0x55bd38>_0x147309?_0x3b61b2+_0x55bd38:_0x147309;}return{'minRow':_0x264242,'maxRow':_0xbdecb3,'minColumn':_0x4ff723,'maxColumn':_0x147309};}['_setupColumnsRowsFixing'](){const _0xca03a3=this['editor'],_0x174ac3=_0xca03a3['plugins']['get']('TrackChangesEditing'),_0x4c453e=_0xca03a3['plugins']['get']('TableUtils');_0xca03a3['model']['document']['on']('change:data',()=>{const _0x19a34e=Array['from'](_0xca03a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3eeb73,data:_0x5de988}of _0x19a34e){const {group:_0x263ea6,id:_0x32161b,subType:_0x3b776e}=_0x174ac3['_splitMarkerName'](_0x3eeb73);if('suggestion'!=_0x263ea6)continue;if(null!=_0x5de988['oldRange'])continue;const _0x5e04c6=_0x174ac3['getSuggestion'](_0x32161b);this['_tablePostFixingSubtypes']['includes'](_0x3b776e)&&this['_tableSuggestions']['add'](_0x5e04c6);}},{'priority':'low'});const _0x2a9466=(_0x2c5aa7,_0x43eefa)=>{let _0x4140cf=!0x1;const _0x480319=_0x43eefa['createRangeOn'](_0x2c5aa7),_0x4a8b44=_0x2c5aa7['findAncestor']('table'),_0x3aed60=_0x4c453e['getCellLocation'](_0x2c5aa7);for(const _0x4c9343 of this['_tableSuggestions']){const _0x297781=_0x4c9343['subType'],_0x1562bc=_0x297781['startsWith']('tablePaste'),_0x25d0e2=_0x297781['substr'](_0x1562bc?0xa:0x5),_0x3cd46b=_0x25d0e2['toLowerCase'](),_0x2b9191=_0x3cd46b['substr'](0x0,0x3)+'span',_0x1784b5='min'+_0x25d0e2,_0x5b4d3f='max'+_0x25d0e2;if(!_0x4c9343['isInContent'])continue;if(_0x4a8b44!=_0x4c9343['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4c9343['isIntersectingWithRange'](_0x480319))continue;const _0x50d5a1=_0x2c5aa7['hasAttribute'](_0x2b9191)?_0x2c5aa7['getAttribute'](_0x2b9191)-0x1:0x0,_0x4f2d2b=this['_getSuggestionCoords'](_0x4c9343),_0x99a450=_0x4f2d2b[_0x1784b5],_0xbf25c2=_0x4f2d2b[_0x5b4d3f];_0x99a450<=_0x3aed60[_0x3cd46b]&&_0x3aed60[_0x3cd46b]+_0x50d5a1<=_0xbf25c2&&(_0x4c9343['addRange'](_0x480319),_0x4140cf=!0x0);}return _0x4140cf;};_0xca03a3['model']['document']['registerPostFixer'](_0x14d624=>{let _0x4cc8e6=!0x1;for(const _0x558c48 of _0xca03a3['model']['document']['differ']['getChanges']())if('insert'==_0x558c48['type']){if('tableRow'==_0x558c48['name']){for(const _0x2d5087 of _0x558c48['position']['nodeAfter']['getChildren']())_0x4cc8e6=_0x4cc8e6||_0x2a9466(_0x2d5087,_0x14d624);}else'tableCell'==_0x558c48['name']&&(_0x4cc8e6=_0x4cc8e6||_0x2a9466(_0x558c48['position']['nodeAfter'],_0x14d624));}return _0x4cc8e6;});}['_getSuggestionCoords'](_0x1274ba){return this['_getCoordsForCells'](_0x1274ba['getRanges']()['map'](_0x2db756=>_0x2db756['start']['nodeAfter']));}}function _e(_0xca68de){return Array['from'](new Set(_0xca68de)['values']());}class $t extends _0x1f77b7{static get['requires'](){return[Nt];}['afterInit'](){const _0xfab9a6=this['editor'],_0x46a1c6=_0xfab9a6['model']['document']['selection'],_0x226347=_0xfab9a6['locale'];if(!_0xfab9a6['plugins']['has']('TableEditing'))return;const _0x4e78f1=_0xfab9a6['plugins']['get']('TrackChangesEditing'),_0x13d2a9=_0xfab9a6['plugins']['get']('TableUtils'),_0x4fc19c=_0xfab9a6['plugins']['get'](Nt);_0x4fc19c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4e78f1['enableCommand']('mergeTableCells',()=>{const _0x4ba3bc=_0x13d2a9['getSelectionAffectedTableCells'](_0xfab9a6['model']['document']['selection']);_0xfab9a6['model']['change'](()=>{_0x4e78f1['markMultiRangeBlockFormat'](_0x4ba3bc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xfab9a6['commands']['get']('mergeTableCells')['on']('execute',(_0xfcb809,_0x359a87)=>{_0xfab9a6['commands']['get']('trackChanges')['value']&&(_0x359a87['length']>0x0&&_0x359a87[_0x359a87['length']-0x1]&&_0x359a87[_0x359a87['length']-0x1]['forceDefaultExecution']||_0x4e78f1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xfcb809['stop']());},{'priority':'highest'});for(const _0x1199e6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x170d85=_0xfab9a6['commands']['get'](_0x1199e6);_0x4e78f1['enableCommand'](_0x1199e6,()=>{const _0x3bb0c6=_0xfab9a6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35ce48=>_0x35ce48['is']('element','tableCell')),_0x5d85b1=_0x170d85['value'];_0xfab9a6['model']['change'](()=>{_0x4e78f1['markMultiRangeBlockFormat']([_0x3bb0c6,_0x5d85b1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41568a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x515312=_0xfab9a6['commands']['get'](_0x41568a);_0x4e78f1['enableCommand'](_0x41568a,()=>{const _0x4a1f09=_0x13d2a9['getSelectionAffectedTableCells'](_0xfab9a6['model']['document']['selection'])[0x0],_0x58da49=_0x4a1f09['findAncestor']('table'),{column:_0x631a4a,row:_0x25006e}=_0x13d2a9['getCellLocation'](_0x4a1f09);let _0x51be64=[];if('horizontally'==_0x515312['direction']){const _0x25db4a=_0x13d2a9['createTableWalker'](_0x58da49,{'startRow':_0x25006e,'endRow':_0x25006e,'includeAllSlots':!0x0});_0x51be64=Array['from'](_0x25db4a)['map'](_0x40712f=>_0x40712f['cell']);}else{const _0x3e6551=_0x13d2a9['createTableWalker'](_0x58da49,{'column':_0x631a4a,'includeAllSlots':!0x0});_0x51be64=Array['from'](_0x3e6551)['map'](_0x5cb0b5=>_0x5cb0b5['cell']);}_0xfab9a6['model']['change'](_0x1a7e87=>{_0x4e78f1['markBlockFormat'](_0x1a7e87['createRangeOn'](_0x4a1f09),{'commandName':_0x41568a,'commandParams':[]},_0x51be64,_0x41568a);});});}_0x4e78f1['descriptionFactory']['registerDescriptionCallback'](_0x1424f1=>{if('formatBlock'!=_0x1424f1['type']&&'formatInline'!=_0x1424f1['type'])return;const {data:_0x16a69e}=_0x1424f1;return _0x16a69e&&'mergeTableCells'==_0x16a69e['commandName']?{'type':'format','content':o(_0x226347,'*Merge\x20cells*')}:void 0x0;}),_0x4e78f1['descriptionFactory']['registerDescriptionCallback'](_0x2a6119=>{if('formatBlock'!=_0x2a6119['type']&&'formatInline'!=_0x2a6119['type'])return;const {data:_0x4bd877}=_0x2a6119;return _0x4bd877?'splitTableCellVertically'==_0x4bd877['commandName']?{'type':'format','content':o(_0x226347,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4bd877['commandName']?{'type':'format','content':o(_0x226347,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xddc198=_0x4fc19c['_acceptFormatSuggestionCallbackFactory']();for(const _0x56b554 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4e78f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56b554,'accept',_0xddc198);for(const _0x1c80e7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4e78f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c80e7,'accept',_0xddc198);_0x4e78f1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x272b78=>{_0xfab9a6['model']['change'](_0x2109cf=>{const _0x1c803e=Array['from'](_0x46a1c6['getRanges']())['map'](_0x9b1ff7=>_0x4e8d2f['fromRange'](_0x9b1ff7));_0x2109cf['setSelection'](_0x272b78),_0xfab9a6['commands']['get']('mergeTableCells')['refresh'](),_0xfab9a6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4619cd=_0x1c803e['filter'](_0x11cd4e=>'$graveyard'!=_0x11cd4e['root']['rootName']);_0x4619cd['length']>0x0&&_0x2109cf['setSelection'](_0x4619cd);for(const _0xf72b32 of _0x1c803e)_0xf72b32['detach']();});});for(const _0x2d01d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3cd196=_0xfab9a6['commands']['get'](_0x2d01d0);_0x3cd196['on']('set:isEnabled',(_0x3e489b,_0x53f97c,_0x48e3fe)=>{if(_0x48e3fe){const _0x287c5c=_0xfab9a6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x121578=>_0x121578['is']('element','tableCell'));this['_areMergableCells'](_0x3cd196['value'],_0x287c5c)||(_0x3e489b['return']=!0x1,_0x3e489b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x6565b8=this['editor']['commands']['get']('mergeTableCells'),_0x464453=this['editor']['plugins']['get']('TableUtils');if(!_0x6565b8['isEnabled'])return!0x1;const _0x342a71=_0x464453['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x330ba5 of _0x342a71)for(const _0x738491 of _0x342a71)if(_0x330ba5!=_0x738491&&!this['_areMergableCells'](_0x330ba5,_0x738491))return!0x1;return!0x0;}['_areMergableCells'](_0x95a089,_0x1066a9){const _0x165ff9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc9a9e5=this['editor']['model']['createRangeOn'](_0x95a089),_0x274970=this['editor']['model']['createRangeOn'](_0x1066a9),_0x13c6fe=new Set(),_0x4232f9=new Set();for(const _0x48829d of _0x165ff9['getSuggestions']())if(('insertion'==_0x48829d['type']||'deletion'==_0x48829d['type']||'mergeTableCells'==_0x48829d['subType'])&&_0x48829d['isInContent']){for(const _0x45e4a2 of _0x48829d['getRanges']())_0x45e4a2['containsRange'](_0xc9a9e5,!0x0)&&_0x13c6fe['add'](_0x48829d['type']+':'+_0x48829d['author']['id']),_0x45e4a2['containsRange'](_0x274970,!0x0)&&_0x4232f9['add'](_0x48829d['type']+':'+_0x48829d['author']['id']);}if(_0x13c6fe['size']!=_0x4232f9['size'])return!0x1;for(const _0x1a112f of _0x13c6fe)if(!_0x4232f9['has'](_0x1a112f))return!0x1;return!0x0;}}class vt extends _0x1f77b7{static get['requires'](){return[Nt];}['afterInit'](){const _0x1abdbf=this['editor'];if(!_0x1abdbf['plugins']['has']('TableEditing'))return;const _0x2998cf=_0x1abdbf['locale'],_0x180d90=_0x1abdbf['plugins']['get']('TrackChangesEditing');_0x180d90['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x180d90['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x180d90['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2998cf,'FORMAT_HEADER_ROW')),_0x180d90['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2998cf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x459e9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd9068e=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x459e9f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xd9068e),_0x459e9f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xd9068e),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2170dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ab024=this['editor']['plugins']['get']('TableUtils');function _0x2ec590({showActiveMarker:_0x3196e7=!0x0,setDataAttribute:_0x57e875=!0x0}={}){return(_0x3f2a97,_0x20ebf7,_0xd08473)=>{const {type:_0x537f4d,id:_0x22cbd8}=_0x2170dd['_splitMarkerName'](_0x20ebf7['markerName']);if(!_0x2170dd['hasSuggestion'](_0x22cbd8))return;const _0x24a0d3=_0x2170dd['getSuggestion'](_0x22cbd8),_0x4945f2=_0x24a0d3['data'];if('formatBlock'!=_0x24a0d3['type']||!_0x4945f2||'setTableColumnHeader'!=_0x4945f2['commandName'])return;if(_0x20ebf7['item'])return void _0x3f2a97['stop']();if(!_0xd08473['consumable']['consume'](_0x20ebf7['markerRange'],_0x3f2a97['name']))return;const _0x846113=_0x20ebf7['markerRange']['start']['nodeAfter'],_0x193df6=_0x20ebf7['markerRange']['end']['nodeBefore'],_0x447aa6=_0x846113['parent']['parent'],{column:_0x377b58}=_0x5ab024['getCellLocation'](_0x846113),{column:_0x392bb0}=_0x5ab024['getCellLocation'](_0x193df6);for(let _0x26e8d1=_0x377b58;_0x26e8d1<=_0x392bb0;_0x26e8d1++){const _0x41bed4=_0x5ab024['createTableWalker'](_0x447aa6,{'column':_0x26e8d1,'includeAllSlots':!0x1});for(const _0x533b98 of _0x41bed4){const _0x2a8b34=_0x533b98['cell'],_0x1352e4=_0xd08473['mapper']['toViewElement'](_0x2a8b34);_0xd08473['writer']['addClass']('ck-suggestion-marker-'+_0x537f4d,_0x1352e4),_0x57e875&&_0xd08473['writer']['setAttribute']('data-suggestion',_0x22cbd8,_0x1352e4),_0xd08473['mapper']['bindElementToMarker'](_0x1352e4,_0x20ebf7['markerName']),_0x3196e7&&(_0x2170dd['activeMarkers']['includes'](_0x20ebf7['markerName'])?_0xd08473['writer']['addClass']('ck-suggestion-marker--active',_0x1352e4):_0xd08473['writer']['removeClass']('ck-suggestion-marker--active',_0x1352e4));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ec590(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x259f4f,_0x260084,_0x3814e1)=>{_0x3814e1['options']['showSuggestionHighlights']&&_0x2ec590({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x259f4f,_0x260084,_0x3814e1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x42bde8,_0x2fa6f6,_0x3227a5)=>{const {type:_0x40149f,id:_0x22e451}=_0x2170dd['_splitMarkerName'](_0x2fa6f6['markerName']);if(!_0x2170dd['hasSuggestion'](_0x22e451))return;const _0x2eaa7a=_0x2170dd['getSuggestion'](_0x22e451),_0x27ec59=_0x2eaa7a['data'];if('formatBlock'!=_0x2eaa7a['type']||!_0x27ec59||'setTableColumnHeader'!=_0x27ec59['commandName'])return;const _0xcf4c9e=_0x3227a5['mapper']['markerNameToElements'](_0x2fa6f6['markerName']);if(_0xcf4c9e){for(const _0x4f0d13 of _0xcf4c9e)_0x3227a5['writer']['removeClass']('ck-suggestion-marker-'+_0x40149f,_0x4f0d13),_0x3227a5['writer']['removeClass']('ck-suggestion-marker--active',_0x4f0d13),_0x3227a5['writer']['removeAttribute']('data-suggestion',_0x4f0d13),_0x3227a5['mapper']['unbindElementFromMarkerName'](_0x4f0d13,_0x2fa6f6['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x2dbc41=this['editor'],_0x16b8c7=_0x2dbc41['locale'];function _0x4a5033(_0x50573b){return{'type':'format','content':o(_0x16b8c7,'*Format:*\x20%0',_0x50573b)};}_0x2dbc41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300705=>{if('formatBlock'!=_0x300705['type'])return;const {data:_0x4589e6}=_0x300705;if(_0x4589e6){if('setTableRowHeader'==_0x4589e6['commandName']){const _0x1aab22=_0x4589e6['commandParams'][0x0]['forceValue'];return _0x4a5033(o(_0x16b8c7,_0x1aab22?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4589e6['commandName']){const _0xc6802c=_0x4589e6['commandParams'][0x0]['forceValue'];return _0x4a5033(o(_0x16b8c7,_0xc6802c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x1f77b7{['afterInit'](){const _0x5258cf=this['editor'],_0x4df0b5=_0x5258cf['locale'],_0x4a5bec=_0x5258cf['plugins']['get']('TrackChangesEditing');function _0xd567f9(_0x5b7593){return{'type':'format','content':''+o(_0x4df0b5,'*Set\x20table\x20type:*\x20%0',_0x5b7593)};}_0x5258cf['plugins']['has']('TableLayout')&&(_0x4a5bec['enableCommand']('insertTableLayout'),_0x4a5bec['enableDefaultAttributesIntegration']('tableType'),_0x4a5bec['descriptionFactory']['registerElementLabel'](_0x10ccb5=>_0x10ccb5['is']('element','table')&&'layout'===_0x10ccb5['getAttribute']('tableType'),_0x2f4028=>o(_0x4df0b5,'ELEMENT_LAYOUT_TABLE',_0x2f4028)),_0x4a5bec['descriptionFactory']['registerDescriptionCallback'](_0x5b1abe=>{const {data:_0x211312}=_0x5b1abe;if(_0x211312&&'tableType'==_0x211312['key'])switch(_0x211312['newValue']){case'layout':return _0xd567f9(o(_0x4df0b5,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xd567f9(o(_0x4df0b5,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x57ca34=>[_0x57ca34,null]));class Bt extends _0x1f77b7{static get['requires'](){return[Nt];}['afterInit'](){const _0x527691=this['editor'];if(!_0x527691['plugins']['has']('TableClipboard'))return;const _0x3eddd5=_0x527691['plugins']['get']('TrackChangesEditing'),_0x474173=_0x527691['plugins']['get']('TableUtils'),_0x5f4d20=_0x527691['plugins']['get'](Nt),_0x33d88f=_0x527691['plugins']['get']('TableClipboard'),_0xc18d33=_0x527691['plugins']['get']('TableSelection'),_0x526b82=_0x527691['plugins']['get'](_0x2064ea);_0x5f4d20['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x527691['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x527691['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x13d98d=null,_0x28fe4e=!0x1;_0x526b82['on']('contentInsertion',(_0x200383,_0x20bbb9)=>{_0x28fe4e='paste'===_0x20bbb9['method'];}),_0x527691['model']['on']('insertContent',(_0x29653c,_0x44799e)=>{if(!_0x28fe4e&&null===_0xc18d33['getSelectedTableCells']())return;const [_0x5779bb,_0x4fd0aa]=_0x44799e,_0x3d603b=_0x44799e[_0x44799e['length']-0x1];_0x3d603b&&_0x3d603b['forceDefaultExecution']||_0x3eddd5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xab260f,_0x20ee74,_0x598464,_0x3e6e53,_0x47e82c){if(_0x20ee74&&!_0x20ee74['is']('documentSelection'))return!0x1;const _0x234c71=_0x47e82c['getTableIfOnlyTableInContent'](_0xab260f,_0x598464);if(!_0x234c71||!Oe(_0x234c71,void 0x0,_0x3e6e53))return!0x1;const _0x33bacf=_0x3e6e53['getSelectionAffectedTableCells'](_0x598464['document']['selection']);if(!_0x33bacf['length'])return!0x1;const _0x272eda=_0x33bacf[0x0]['findAncestor']('table'),_0x1176bd=_0x3e6e53['getRowIndexes'](_0x33bacf),_0x196e11=_0x3e6e53['getColumnIndexes'](_0x33bacf),_0x552e2a={'startRow':_0x1176bd['first'],'endRow':_0x1176bd['last'],'startColumn':_0x196e11['first'],'endColumn':_0x196e11['last']};return 0x1==_0x33bacf['length']&&(_0x552e2a['endRow']+=_0x3e6e53['getRows'](_0x234c71)-0x1,_0x552e2a['endColumn']+=_0x3e6e53['getColumns'](_0x234c71)-0x1),Oe(_0x272eda,_0x552e2a,_0x3e6e53);}(_0x5779bb,_0x4fd0aa,_0x527691['model'],_0x474173,_0x33d88f)&&(_0x29653c['stop'](),_0x13d98d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x527691['model']['change'](()=>{_0x527691['model']['insertContent'](_0x44799e[0x0],_0x44799e[0x1],_0x44799e[0x2],{'forceDefaultExecution':!0x0});const _0x12f1bc=_0x1b40cb(),{rowInsertionRanges:_0x82eb1a,columnInsertionRanges:_0x37bb73,insertionRanges:_0x1d19ac,deletionRanges:_0x11f420,cells:_0x5b17f8}=_0x13d98d;_0x82eb1a['length']&&_0x3eddd5['markMultiRangeInsertion'](_0x82eb1a,'tablePasteRow',{'tablePasteChainId':_0x12f1bc}),_0x37bb73['length']&&_0x3eddd5['markMultiRangeInsertion'](_0x37bb73,'tablePasteColumn',{'tablePasteChainId':_0x12f1bc}),_0x1d19ac['length']&&(_0x3eddd5['markMultiRangeInsertion'](_0x1d19ac,'tablePaste',{'tablePasteChainId':_0x12f1bc,'skipNestingCheck':!0x0}),_0x1d19ac['forEach'](_0x13002f=>_0x13002f['detach']?.())),_0x11f420['length']&&(_0x3eddd5['markMultiRangeDeletion'](_0x11f420,'tablePaste',{'tablePasteChainId':_0x12f1bc,'skipNestingCheck':!0x0}),_0x11f420['forEach'](_0xa39064=>_0xa39064['detach']?.()));const _0x3f63d8=_0x3eddd5['markMultiRangeBlockFormat'](_0x5b17f8['map'](({element:_0x1191d0})=>_0x1191d0),{'formatGroupId':_0x1b40cb()},[],'tablePasteCell',{'tablePasteChainId':_0x12f1bc});if(_0x3f63d8){const _0x586281=_0x3f63d8['getMarkers'](),_0xd2a6b5=[];for(const {element:_0x4dba71,attributes:_0x5a5dae}of _0x5b17f8){if(!_0x5a5dae)continue;const _0x11dcf3=_0x527691['model']['createRangeOn'](_0x4dba71),_0x43807a=_0x586281['find'](_0x58c759=>_0x58c759['getRange']()['isEqual'](_0x11dcf3));_0x43807a&&_0xd2a6b5['push']([_0x43807a['name'],_0x5a5dae]);}_0xd2a6b5['length']&&_0x3f63d8['setAttribute']('markerAttributes',Object['fromEntries'](_0xd2a6b5));}_0x13d98d=null;}));},{'priority':_0x1fed10['high']+0xa}),_0x526b82['on']('contentInsertion',()=>{_0x28fe4e=!0x1;},{'priority':'lowest'}),_0x527691['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4f6719,_0x3a92b8)=>{const [_0x211030,_0x2a1c1d,,_0x38603c]=_0x3a92b8;if(!_0x13d98d)return;_0x4f6719['stop']();const _0x25f7bc=_0x211030['cell'],_0x76a9e8=_0x2a1c1d,_0x326d66=Be(_0x25f7bc),_0x1e379b=Be(_0x76a9e8);_0x4f6719['return']=_0x25f7bc;let _0x2f0ce0=null,_0x2d6719=null;if(_0x1e379b||_0x326d66){if(_0x326d66&&!_0x1e379b){_0x38603c['remove'](_0x25f7bc['getChild'](0x0));for(const _0x2c0b86 of Array['from'](_0x76a9e8['getChildren']()))_0x38603c['insert'](_0x2c0b86,_0x25f7bc,'end');const _0xc68d8e=_0x13d98d['rowInsertionIndexes']['includes'](_0x211030['row']),_0x214270=_0x13d98d['columnInsertionIndexes']['includes'](_0x211030['column']);_0xc68d8e||_0x214270||(_0x2f0ce0=_0x4e8d2f['fromRange'](_0x38603c['createRangeIn'](_0x25f7bc)));}else _0x1e379b&&!_0x326d66&&(_0x2d6719=_0x38603c['createRangeIn'](_0x25f7bc));}else{const _0x339988=_0x38603c['createElement']('tableCellSuggestion'),_0x59b4ee=_0x38603c['createElement']('tableCellSuggestion');_0x38603c['wrap'](_0x38603c['createRangeIn'](_0x25f7bc),_0x59b4ee),_0x38603c['insert'](_0x339988,_0x25f7bc,0x0);for(const _0x119b80 of Array['from'](_0x76a9e8['getChildren']()))_0x38603c['insert'](_0x119b80,_0x339988,'end');_0x2f0ce0=_0x4e8d2f['fromRange'](_0x38603c['createRangeOn'](_0x339988)),_0x2d6719=_0x4e8d2f['fromRange'](_0x38603c['createRangeOn'](_0x59b4ee));}const _0x5b61ed=Array['from'](_0x76a9e8['getAttributes']())['filter'](([_0x4b1483])=>Re['includes'](_0x4b1483));_0x13d98d['cells']['push']({'element':_0x25f7bc,'attributes':_0x5b61ed['length']?Object['fromEntries'](_0x5b61ed):null}),_0x2f0ce0&&_0x13d98d['insertionRanges']['push'](_0x2f0ce0),_0x2d6719&&_0x13d98d['deletionRanges']['push'](_0x2d6719);},{'priority':'high'}),_0x474173['on']('insertColumns',(_0x4cb18a,_0x2f1921)=>{const [_0x57c3c0,_0x1a0008={}]=_0x2f1921;if(!_0x13d98d)return;const _0x660db5=_0x1a0008['at']||0x0,_0x2dad60=_0x1a0008['columns']||0x1;_0x13d98d['columnInsertionIndexes']=new Array(_0x2dad60)['fill'](_0x660db5)['map']((_0x36108e,_0x2d9785)=>_0x36108e+_0x2d9785);for(const {cell:_0x38da79}of _0x474173['createTableWalker'](_0x57c3c0,{'startColumn':_0x660db5,'endColumn':_0x660db5+_0x2dad60-0x1}))_0x13d98d['columnInsertionRanges']['push'](_0x527691['model']['createRangeOn'](_0x38da79));},{'priority':'low'}),_0x474173['on']('insertRows',(_0x171972,_0x117d1c)=>{const [_0x526564,_0x51aa49={}]=_0x117d1c;if(!_0x13d98d)return;const _0x45ee26=_0x51aa49['at']||0x0,_0x1856b7=_0x51aa49['rows']||0x1;_0x13d98d['rowInsertionIndexes']=new Array(_0x1856b7)['fill'](_0x45ee26)['map']((_0x5db2ab,_0x4f5888)=>_0x5db2ab+_0x4f5888);for(const {cell:_0x44c81d}of _0x474173['createTableWalker'](_0x526564,{'startRow':_0x45ee26,'endRow':_0x45ee26+_0x1856b7-0x1}))_0x13d98d['rowInsertionRanges']['push'](_0x527691['model']['createRangeOn'](_0x44c81d));},{'priority':'low'}),_0x3eddd5['descriptionFactory']['registerDescriptionCallback'](_0x584f05=>{if(_0x584f05['subType']&&_0x584f05['subType']['startsWith']('tablePaste'))return _0x584f05['previous']?{}:{'type':'insertion','content':o(_0x527691['locale'],'*Replace\x20table\x20cells*')};});const _0x3b6d35=()=>!0x1;for(const _0x1f6d72 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3eddd5['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f6d72,'join',_0x3b6d35),_0x3eddd5['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f6d72,'join',_0x3b6d35),_0x3eddd5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f6d72,'join',_0x3b6d35);_0x3eddd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3b6d35),_0x3eddd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x385d3c,_0x41197b,_0x5a88f7)=>{const _0x5590c1=_0x385d3c['map'](_0x427724=>_0x427724['getContainedElement']())['filter'](_0x257846=>_0x257846),_0x1d231b=new Map(_0x5590c1['map'](_0x255d4f=>[_0x255d4f,null]));if(_0x13d98d){for(const {element:_0x376594,attributes:_0x5f40fa}of _0x13d98d['cells'])_0x5f40fa&&_0x1d231b['set'](_0x376594,_0x5f40fa);}else{if(_0x5a88f7&&_0x5a88f7['markerAttributes'])for(const [_0x110e62,_0x51d775]of Object['entries'](_0x5a88f7['markerAttributes'])){const _0x14dd89=_0x527691['model']['markers']['get'](_0x110e62),_0x499b18=_0x14dd89?_0x14dd89['getRange']()['getContainedElement']():null;_0x499b18&&_0x1d231b['set'](_0x499b18,_0x51d775);}}_0x527691['model']['change'](_0x3d0b10=>{for(const [_0xf6868a,_0x5a4d6c]of _0x1d231b)_0x3d0b10['setAttributes']({...Ae,..._0x5a4d6c},_0xf6868a);});});const _0x319aad=(_0xb98c8e,_0x4a12e3)=>{_0x3eddd5['_suggestionFactory']['registerCustomCallback'](_0xb98c8e,'tablePaste',_0x4a12e3,(_0x5329ae,_0x107044,_0x40c7bf)=>{_0x527691['model']['change'](_0x4c7a8e=>{const _0x6261ac=[];for(const _0x49e039 of _0x5329ae){const _0x41e897=_0x49e039['start']['nodeAfter'];_0x41e897['is']('element','tableCellSuggestion')&&_0x6261ac['push'](_0x41e897);}_0x3eddd5['_suggestionFactory']['getSuggestionCallback'](_0xb98c8e,null,_0x4a12e3)(_0x5329ae,_0x107044,_0x40c7bf);for(const _0x268138 of _0x6261ac)'$graveyard'!=_0x268138['root']['rootName']&&_0x4c7a8e['unwrap'](_0x268138);});});};_0x319aad('insertion','accept'),_0x319aad('insertion','discard'),_0x319aad('deletion','accept'),_0x319aad('deletion','discard'),_0x3eddd5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x144d98=>{const _0x2e8464=_0x144d98['map'](_0x50c66c=>_0x50c66c['getContainedElement']()),_0xf3441c=_0x2e8464[0x0]['findAncestor']('table'),{minRow:_0x46dbc0,maxRow:_0x17f5b9}=_0x5f4d20['_getCoordsForCells'](_0x2e8464);_0x474173['removeRows'](_0xf3441c,{'at':_0x46dbc0,'rows':_0x17f5b9-_0x46dbc0+0x1});}),_0x3eddd5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3fcf71=>{const _0xd34f0f=_0x3fcf71['map'](_0x25ab32=>_0x25ab32['getContainedElement']()),_0x2f15aa=_0xd34f0f[0x0]['findAncestor']('table'),{minColumn:_0x4d6a8a,maxColumn:_0x14ce9a}=_0x5f4d20['_getCoordsForCells'](_0xd34f0f);_0x474173['removeColumns'](_0x2f15aa,{'at':_0x4d6a8a,'columns':_0x14ce9a-_0x4d6a8a+0x1});});const _0x19a760=(_0x455ed0,_0x1fe975)=>{if(!_0x1fe975['subType']||!_0x1fe975['subType']['startsWith']('tablePaste'))return;const _0x48269f=_0x1fe975['attributes']['tablePasteChainId'],_0x2ed3fb=_0x3eddd5['getSuggestions']()['filter'](_0xb894d9=>_0xb894d9['isInContent']&&_0xb894d9['attributes']&&_0xb894d9['attributes']['tablePasteChainId']==_0x48269f);_0x2ed3fb['length']&&_0x1fe975['getAllAdjacentSuggestions']()['length']!=_0x2ed3fb['length']&&_0x2ed3fb['reduce']((_0x2e2a28,_0x73edce)=>(_0x2e2a28['next']=_0x73edce,_0x73edce['previous']=_0x2e2a28,_0x73edce));};function _0x2c5dca(_0x4d8aa3,_0x33d334=!0x0){const {id:_0x53a773,authorId:_0x2ce61a}=_0x3eddd5['_splitMarkerName'](_0x4d8aa3['markerName']),_0x3047a7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3ec514=_0x3eddd5['activeMarkers']['includes'](_0x4d8aa3['markerName']);return _0x3ec514&&_0x3047a7['push']('ck-suggestion-marker--active'),{'classes':_0x3047a7,'attributes':{'data-suggestion':_0x53a773,'data-author-id':_0x2ce61a},'priority':_0x3ec514&&_0x33d334?0xbc2:0xbb8};}_0x3eddd5['on']('suggestionLoaded',_0x19a760,{'priority':'high'}),_0x3eddd5['on']('suggestionUnloaded',_0x19a760,{'priority':'high'}),_0x527691['model']['document']['registerPostFixer'](()=>{let _0x104b29=!0x1;const _0x50df36=Array['from'](_0x527691['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b1825,data:_0x3e2e66}of _0x50df36){const {group:_0xa2ee98,type:_0x475c02,id:_0x3d2dfc}=_0x3eddd5['_splitMarkerName'](_0x3b1825);if('suggestion'!=_0xa2ee98||'deletion'!=_0x475c02||_0x3e2e66['oldRange'])continue;if(!_0x3eddd5['hasSuggestion'](_0x3d2dfc))continue;const _0x1fd09a=_0x3eddd5['getSuggestion'](_0x3d2dfc)['getRanges'](),_0x31bd1c=_0x527691['plugins']['get']('Users')['me'];for(const _0x3eec6e of _0x3eddd5['getSuggestions']()){if(!_0x3eec6e['isInContent']||_0x3eec6e['author']!=_0x31bd1c)continue;if('formatBlock'!=_0x3eec6e['type']||'tablePasteCell'!=_0x3eec6e['subType'])continue;if(_0x3eec6e['getRanges']()['every'](_0x46d5b9=>_0x1fd09a['some'](_0x2f6409=>_0x2f6409['containsRange'](_0x46d5b9,!0x0)))){for(const _0x4437e5 of _0x3eec6e['getAllAdjacentSuggestions']())_0x4437e5['isInContent']&&(_0x4437e5['discard'](),_0x104b29=!0x0);}}}return _0x104b29;}),_0x527691['model']['document']['registerPostFixer'](_0x129036=>{const _0xcce5e9=_0x527691['commands']['get']('redo');if(!_0xcce5e9||!_0xcce5e9['_createdBatches']['has'](_0x129036['batch']))return!0x1;let _0x23ea18=!0x1;const _0xf6c10a=_0x527691['plugins']['get']('Users')['me'],_0x3e0eb3=_0x527691['model']['document']['differ']['getChanges'](),_0x56945b=Array['from'](_0x527691['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x558454,data:_0x17546c})=>{const {group:_0x2bc4fe,subType:_0x4a38ff,authorId:_0x584201}=_0x3eddd5['_splitMarkerName'](_0x558454);return'suggestion'==_0x2bc4fe&&'tablePaste'==_0x4a38ff&&_0x584201==_0xf6c10a['id']&&!_0x17546c['oldRange'];});for(const _0xf098f1 of _0x3e0eb3){if('insert'!=_0xf098f1['type']||'tableCellSuggestion'!=_0xf098f1['name']||0x1!=_0xf098f1['length'])continue;const _0x5668b0=_0x129036['createRange'](_0xf098f1['position'],_0xf098f1['position']['getShiftedBy'](0x1));if(!_0x56945b['find'](({data:_0x1fdb3a})=>_0x1fdb3a['newRange']['isEqual'](_0x5668b0))){for(const {name:_0x4dee84,data:_0x572a3e}of _0x56945b)if(_0x5668b0['containsRange'](_0x572a3e['newRange'])){_0x129036['updateMarker'](_0x4dee84,{'range':_0x5668b0}),_0x23ea18=!0x0;break;}}}return _0x23ea18;}),_0x527691['model']['document']['registerPostFixer'](_0x3ac9fe=>{let _0x4d402d=!0x1;const _0x1f80a7=_0x527691['plugins']['get']('Users')['me'],_0x2bf745=_0x3eddd5['getSuggestions']()['filter'](_0x1f6426=>_0x1f6426['isInContent']&&_0x1f6426['author']==_0x1f80a7),_0x2ca4e9=new Set(),_0x19793c=new Set();for(const _0x24cbe4 of _0x2bf745)if('tablePaste'==_0x24cbe4['subType'])for(const _0x49d244 of _0x24cbe4['getMarkers']()){const _0x28b311=_0x49d244['getRange']()['getContainedElement']();if(_0x28b311){if(_0x28b311['is']('element','tableCellSuggestion')&&Be(_0x28b311)){_0x24cbe4['removeMarker'](_0x49d244['name']),_0x2ca4e9['add'](_0x28b311),_0x4d402d=!0x0;const _0x5713f7=_0x28b311['nextSibling'],_0x548631=_0x28b311['previousSibling'],_0x591c37=_0x5713f7&&_0x5713f7['is']('element','tableCellSuggestion'),_0x4ee2bc=_0x548631&&_0x548631['is']('element','tableCellSuggestion');_0x591c37&&!_0x2ca4e9['has'](_0x5713f7)&&_0x19793c['add'](_0x5713f7),_0x4ee2bc&&!_0x2ca4e9['has'](_0x548631)&&_0x19793c['add'](_0x548631);}else _0x28b311['is']('element','paragraph')&&_0x28b311['isEmpty']&&(_0x24cbe4['removeMarker'](_0x49d244['name']),_0x4d402d=!0x0);}}else{if('tablePasteCell'==_0x24cbe4['subType']){if(!_0x24cbe4['attributes']||!_0x24cbe4['attributes']['tablePasteChainId'])continue;const _0x448d36=_0x24cbe4['attributes']['markerAttributes'];if(_0x448d36&&Object['keys'](_0x448d36)['length'])continue;const _0x13f73d=_0x24cbe4['attributes']['tablePasteChainId'];let _0x17b34a=!0x0,_0x31e7c7=!0x0;for(const _0x4a0fcc of _0x2bf745)if(_0x4a0fcc['subType']&&_0x4a0fcc['subType']['startsWith']('tablePaste')){if(!_0x4a0fcc['attributes']['tablePasteChainId']){_0x31e7c7=!0x1;break;}if(_0x4a0fcc['id']!=_0x24cbe4['id']&&_0x4a0fcc['attributes']['tablePasteChainId']==_0x13f73d){_0x17b34a=!0x1;break;}}_0x31e7c7&&_0x17b34a&&(_0x24cbe4['removeMarkers'](),_0x4d402d=!0x0);}}for(const _0x476a86 of _0x2ca4e9)_0x3ac9fe['remove'](_0x476a86);for(const _0x44d08b of _0x19793c)_0x3ac9fe['unwrap'](_0x44d08b);return _0x4d402d;}),_0x527691['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x178fc6=>_0x2c5dca(_0x178fc6),'converterPriority':'high'}),_0x527691['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1031c8,_0xa2f506)=>_0xa2f506['options']['showSuggestionHighlights']?_0x2c5dca(_0x1031c8,!0x1):null,'converterPriority':'high'});const _0x5a9f7a=_0x527691['editing']['view'];this['listenTo'](_0x5a9f7a['document'],'clipboardOutput',(_0x256d5c,_0x41b0bf)=>{const _0x32d879=[];for(const _0x7b8460 of _0x5a9f7a['createRangeIn'](_0x41b0bf['content'])['getItems']())_0x7b8460['is']('element','suggestion-td')&&_0x32d879['push'](_0x7b8460);_0x5a9f7a['change'](_0x229737=>{for(const _0x1a08cd of _0x32d879)_0x229737['move'](_0x229737['createRangeIn'](_0x1a08cd),_0x229737['createPositionBefore'](_0x1a08cd)),_0x229737['remove'](_0x1a08cd);});});}}function Be(_0x59bc08){if(_0x59bc08['isEmpty'])return!0x0;const _0x41e301=_0x59bc08['getChild'](0x0);return _0x41e301['is']('element','paragraph')&&_0x41e301['isEmpty'];}function Oe(_0x18384,_0x1f4309={},_0x1c9a38){for(const {isAnchor:_0xc78f47,cellHeight:_0x575bd1,cellWidth:_0x3797ba}of _0x1c9a38['createTableWalker'](_0x18384,{'includeAllSlots':!0x0,..._0x1f4309}))if(!_0xc78f47||0x1!=_0x575bd1||0x1!=_0x3797ba)return!0x1;return!0x0;}class Ot extends _0x1f77b7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4fc7c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fc7c6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4fc7c6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4fc7c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fc7c6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4fc7c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4fc7c6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1ea394,_0x40fadc){const _0x2db06b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1af0c1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x21fd45=_0x40fadc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3e816e=_0x1af0c1['getColumnGroupElement'](_0x21fd45);let _0x28338d=_0x3e816e?_0x1af0c1['getTableColumnsWidths'](_0x3e816e):null,_0x428a1a=_0x21fd45['getAttribute']('tableWidth')||null;const _0x4772ba=_0x40fadc['tableWidth']||_0x428a1a,_0x5e8c34=_0x40fadc['columnWidths']||_0x28338d,_0x54447b=this['editor']['plugins']['get']('Users')['me'];for(const _0x54c941 of _0x2db06b['getSuggestions']()){const _0x3daf5f=_0x54c941['getContainedElement']();if('resizeTable'===_0x54c941['subType']&&_0x3daf5f===_0x21fd45){_0x54c941['author']!==_0x54447b&&_0x54c941['discard']();const _0x5a5fe5=_0x54c941['data']['commandParams'];_0x428a1a=_0x5a5fe5[0x0]['tableWidth'],_0x28338d=_0x5a5fe5[0x0]['columnWidths'];break;}}_0x1ea394({'table':_0x21fd45,'tableWidth':_0x4772ba,'columnWidths':_0x5e8c34}),_0x2db06b['markBlockFormat'](_0x21fd45,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x428a1a,'columnWidths':_0x28338d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x34d945){if('formatBlock'!=_0x34d945['type']&&'formatInline'!=_0x34d945['type'])return;const {data:_0x3ee42d}=_0x34d945;if(_0x3ee42d&&'resizeTable'===_0x3ee42d['formatGroupId']){const _0x5b0513='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5b0513)};}}}class xt extends _0x1f77b7{['afterInit'](){const _0x9d664d=this['editor'];_0x9d664d['plugins']['has']('Template')&&_0x9d664d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1f77b7{['afterInit'](){const _0x36ce04=this['editor'];if(!_0x36ce04['commands']['get']('insertTableOfContents'))return;_0x36ce04['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x471501=_0x36ce04['plugins']['get']('TrackChangesEditing'),_0x1939c4=_0x36ce04['locale'];_0x471501['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4e5139=>o(_0x1939c4,'ELEMENT_TABLE_OF_CONTENTS',_0x4e5139));}}class Rt extends _0x1f77b7{['afterInit'](){const _0x200108=this['editor'];if(!_0x200108['plugins']['has']('Title'))return;const _0x50720d=_0x200108['plugins']['get']('TrackChangesEditing');_0x50720d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x200108['locale'],'ELEMENT_TITLE')),_0x200108['model']['document']['registerPostFixer'](_0xb4e9a0=>{let _0x49a590=!0x1;const _0x4be949=Array['from'](_0x200108['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x425ff7,data:_0x30c5d6}of _0x4be949){const {group:_0x58c324}=_0x50720d['_splitMarkerName'](_0x425ff7);if('suggestion'!==_0x58c324||!_0x30c5d6['newRange'])continue;const _0x37b81d=_0x30c5d6['newRange'],_0x517307=_0x37b81d['end']['nodeBefore'];if(!_0x517307||!_0x517307['is']('element','title-content'))continue;if(!_0x37b81d['start']['isTouching'](_0x37b81d['end']))continue;const _0x512ead=_0x200108['model']['schema']['getNearestSelectionRange'](_0x37b81d['end'],'forward');if(_0x512ead&&_0x512ead['isCollapsed']){const _0x4e0d43=_0xb4e9a0['createRange'](_0x37b81d['start'],_0x512ead['start']);_0x4e0d43['isEqual'](_0x37b81d)||(_0xb4e9a0['updateMarker'](_0x425ff7,{'range':_0x4e0d43}),_0x49a590=!0x0);}_0x49a590||(_0xb4e9a0['removeMarker'](_0x425ff7),_0x49a590=!0x0);}return _0x49a590;});}}class Tt extends _0x1f77b7{['afterInit'](){const _0x1d2632=this['editor'],_0x18f6fa=_0x1d2632['plugins']['get']('TrackChangesEditing');_0x1d2632['plugins']['has']('Uploadcare')&&(_0x18f6fa['enableCommand']('uploadcare'),_0x1d2632['plugins']['has']('UploadcareImageEdit')&&(_0x18f6fa['enableCommand']('uploadcareImageEdit'),_0x18f6fa['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x18f6fa['descriptionFactory']['registerDescriptionCallback'](_0x402c34=>{if('attribute'!=_0x402c34['type'])return;const {data:_0x44cc56}=_0x402c34;return _0x44cc56&&'uploadcareImageId'==_0x44cc56['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x1f77b7{['afterInit'](){const _0x5bec33=this['editor'],_0x1e0f96=_0x5bec33['plugins']['get']('TrackChangesEditing');_0x5bec33['plugins']['has']('UndoEditing')&&(_0x1e0f96['enableCommand']('undo'),_0x1e0f96['enableCommand']('redo'));}}class Ut extends _0x1f77b7{static get['requires'](){return[Nt];}['afterInit'](){const _0x37d826=this['editor'];if(!_0x37d826['plugins']['has']('TableCaptionEditing'))return;_0x37d826['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x1f77b7{['tableProperties'];['tableCellProperties'];constructor(_0x2bd83b){super(_0x2bd83b),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x54ebb5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4b2efe of this['tableProperties'])_0x54ebb5['enableCommand'](_0x4b2efe,(_0x2f7095,_0xd6a87d)=>{const _0xb686aa=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4b2efe,[_0xb686aa],this['tableProperties'],'tableProperties',_0x2f7095,_0xd6a87d);});_0x54ebb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x54ebb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54ebb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5bb6f2,_0x28108a)=>this['handleDiscardAction'](this['tableProperties'],_0x5bb6f2,_0x28108a)),_0x54ebb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xaab2a0 of this['tableCellProperties'])_0x54ebb5['enableCommand'](_0xaab2a0,(_0x65475c,_0x481b92)=>{const _0x274640=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xaab2a0,_0x274640,this['tableCellProperties'],'tableCellProperties',_0x65475c,_0x481b92);});_0x54ebb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x54ebb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54ebb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x323242,_0x183eb8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x323242,_0x183eb8)),_0x54ebb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x54ebb5['descriptionFactory']['registerDescriptionCallback'](_0x3ba3df=>this['handleSuggestionDescription'](_0x3ba3df)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4407d2,_0x70631b,_0x2b6104,_0x8dc702,_0x259336,_0x18e886){const _0x50d4f4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x18e886['batch'],()=>{for(const _0x95e817 of _0x70631b){if(this['_getSuggestion'](_0x95e817,_0x8dc702))_0x259336(_0x18e886);else{const _0x2dddc7={};for(const _0x535ddd of _0x2b6104){const _0x4335ed=_0x95e817['getAttribute'](_0x535ddd);void 0x0!==_0x4335ed&&(_0x2dddc7[_0x535ddd]=_0x4335ed);}_0x259336(_0x18e886),_0x50d4f4['markBlockFormat'](_0x95e817,{'commandParams':[_0x2dddc7]},[],_0x8dc702);}}});}['handleDiscardAction'](_0x6c982b,_0x2a9335,_0xe89ce1){const _0x22e987=_0x2a9335[0x0]['start']['nodeAfter'],_0x25b489=_0xe89ce1['commandParams'][0x0];this['editor']['model']['change'](_0x140d5a=>{for(const _0x12a064 of _0x6c982b)void 0x0!==_0x25b489[_0x12a064]?_0x140d5a['setAttribute'](_0x12a064,_0x25b489[_0x12a064],_0x22e987):_0x140d5a['removeAttribute'](_0x12a064,_0x22e987);});}['handleSuggestionDescription'](_0x355fab){if(_0x355fab['data'])switch(_0x355fab['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'](_0x5a5789,_0x63d273){const _0x15cf17=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2817a1 of _0x15cf17['getSuggestions']({'skipNotAttached':!0x0})){const _0xd81d54=_0x2817a1['getContainedElement']();if(_0x2817a1['subType']===_0x63d273&&_0xd81d54===_0x5a5789)return _0x2817a1;}return null;}['_registerTablePropertiesAttributes'](){const _0x5cb937=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d0cf=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4fb52e of _0x1d0cf){const _0x1a3a4f=_0x4fb52e['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5cb937['descriptionFactory']['registerAttributeLabel'](_0x4fb52e,o(this['editor']['locale'],'FORMAT_'+_0x1a3a4f));}}}class Ft extends _0x1f77b7{['afterInit'](){const _0x25523f=this['editor'];if(!_0x25523f['plugins']['has']('LineHeight'))return;const _0x2ba15a=_0x25523f['plugins']['get']('TrackChangesEditing'),_0x4ff333=_0x25523f['locale'];_0x2ba15a['enableDefaultAttributesIntegration']('lineHeight'),_0x2ba15a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4ff333,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1f77b7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x3966e5,_0x1ad682,_0x275b01,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d27f8){super(_0x2d27f8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x207a6e,_0x143188,_0x4ac84b,_0x33eb42)=>{this['_model']['change'](()=>{for(const _0xeb7280 of[..._0x33eb42,..._0x4ac84b])this['_model']['markers']['has'](_0xeb7280)&&_0x2d27f8['editing']['reconvertMarker'](_0xeb7280);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2d27f8['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2d27f8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2d27f8['config']['get']('trackChanges.trackFormatChanges'),_0x2d27f8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2d27f8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x2d27f8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4dce6c=this['editor'];_0x4dce6c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x384f7a,{writer:_0x4a1921})=>{let _0x2e5ded='suggestion:'+_0x384f7a['getAttribute']('suggestion-type')+':'+_0x384f7a['getAttribute']('id');return _0x384f7a['getAttribute']('marker-count')&&(_0x2e5ded+=':'+_0x384f7a['getAttribute']('marker-count')),_0x4a1921['createElement']('$marker',{'data-name':_0x2e5ded});}}),_0x4dce6c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4dce6c['model']['document']['registerPostFixer'](_0x3c3abf=>{let _0x12b8e5=!0x1;const _0x1eecad=Array['from'](_0x4dce6c['model']['document']['differ']['getChangedMarkers']()),_0x38b23e=new Set();for(const {name:_0x45f6b9,data:_0x3e1441}of _0x1eecad){const {group:_0xce8882,type:_0x1f14c2,subType:_0x3a59e0,id:_0x506a62}=this['_splitMarkerName'](_0x45f6b9);if('suggestion'!==_0xce8882)continue;const _0x468439=_0x3a59e0?'suggestion:'+_0x1f14c2+':'+_0x3a59e0+':'+_0x506a62:'suggestion:'+_0x1f14c2+':'+_0x506a62,_0x1c588c=_0x4dce6c['model']['markers']['getMarkersGroup'](_0x468439),_0x59d1de=_0x4dce6c['model']['markers']['get'](_0x45f6b9),_0x540beb=this['_suggestions']['get'](_0x506a62);if(null!=_0x3e1441['newRange']){'formatInline'==_0x1f14c2&&(_0x12b8e5=_0x12b8e5||Wt(_0x3e1441['newRange'],_0x45f6b9,_0x3c3abf,_0x4dce6c['model']['schema']));const _0x31a23b='attribute'==_0x1f14c2&&this['_isBlockAttribute'](_0x3a59e0['split']('|')[0x0]),_0x1feb19='attribute'==_0x1f14c2&&this['_isInlineAttribute'](_0x3a59e0['split']('|')[0x0]);if(_0x3e1441['newRange']['isCollapsed']||'$graveyard'==_0x3e1441['newRange']['root']['rootName']||'formatBlock'==_0x1f14c2&&!Qt(_0x3e1441['newRange'])||_0x31a23b&&!Qt(_0x3e1441['newRange'])||_0x1feb19&&Xt(_0x3e1441['newRange'])||'deletion'==_0x1f14c2&&Xt(_0x3e1441['newRange'])||_0x59d1de&&Yt(_0x59d1de,_0x1c588c))_0x3c3abf['removeMarker'](_0x45f6b9),_0x12b8e5=!0x0;else{if(!_0x540beb||!_0x540beb['isInContent'])continue;if(_0x3e1441['newRange']&&_0x3e1441['oldRange']&&_0x3e1441['newRange']['isEqual'](_0x3e1441['oldRange']))continue;_0x38b23e['add'](_0x540beb);}}}return _0x38b23e['size']>0x0&&(_0x12b8e5=!!this['_joinWithAdjacentSuggestions'](_0x38b23e)||_0x12b8e5),_0x12b8e5;}),_0x4dce6c['model']['document']['registerPostFixer'](_0xf017e1=>{let _0x1a022d=!0x1;for(const _0x57da5c of _0x4dce6c['model']['document']['differ']['getChanges']())if('insert'==_0x57da5c['type'])for(const _0x4f5a6c of this['_suggestions']['values']()){if(_0x4f5a6c['isMultiRange']||!_0x4f5a6c['isInContent'])continue;const _0x3dc40c='formatBlock'==_0x4f5a6c['type'],_0x3e37bb=this['_getAttributeKey'](_0x4f5a6c),_0x4d5b27=_0x3e37bb&&this['_isBlockAttribute'](_0x3e37bb);if(!_0x3dc40c&&!_0x4d5b27)continue;const _0x44888a=_0x4f5a6c['getFirstRange']();if(_0x44888a['start']['parent']!=_0x44888a['end']['parent']&&!_0x44888a['end']['isAtEnd']){const _0x374fee=_0x4dce6c['model']['createPositionAt'](_0x44888a['start']['nodeAfter'],'end'),_0x4e7211=_0x4dce6c['model']['createRange'](_0x44888a['start'],_0x374fee);_0xf017e1['updateMarker'](_0x4f5a6c['getFirstMarker'](),{'range':_0x4e7211}),_0x1a022d=!0x0;}}return _0x1a022d;}),_0x4dce6c['model']['document']['registerPostFixer'](_0xbc799f=>this['_processAttributeChanges'](_0xbc799f)),_0x4dce6c['model']['document']['registerPostFixer'](_0x458bf7=>!_0x458bf7['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x458bf7)),_0x4dce6c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4dce6c['model']['document']['on']('change:data',(_0x301ae4,_0x36d4b9)=>{if(!_0x36d4b9['isLocal']||_0x36d4b9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x48123a=_0x4dce6c['model']['document']['differ']['getChanges']();if(0x0==_0x48123a['length'])return;const _0x16fc55=[],_0x4d73b1=_0x48123a['filter'](_0x463468=>'attribute'==_0x463468['type']),_0xf8132f=_0x48123a['filter'](_0x5135c4=>'insert'==_0x5135c4['type']&&'$text'!=_0x5135c4['name']);for(const _0x33230b of _0x4d73b1)this['_isRegisteredAttribute'](_0x33230b['attributeKey'])&&_0x16fc55['push']({'key':_0x33230b['attributeKey'],'newValue':_0x33230b['attributeNewValue'],'oldValue':_0x33230b['attributeOldValue'],'range':Zt(_0x33230b['range'],_0x4dce6c['model'])});for(const _0x567007 of _0xf8132f){if('rename'!=_0x567007['action']&&'refresh'!=_0x567007['action'])continue;const _0x46ffd0=tn(_0x567007['position']['nodeAfter'],_0x4dce6c['model']),_0x458583=_0x567007['before'];'rename'==_0x567007['action']&&_0x16fc55['push']({'key':m,'newValue':_0x567007['name'],'oldValue':_0x458583['name'],'range':_0x46ffd0});for(const [_0x4fc264,_0x35c90a]of _0x458583['attributes']){if(!this['_isRegisteredAttribute'](_0x4fc264))continue;const _0x5da63a=_0x567007['attributes']['get'](_0x4fc264);_0x35c90a!==_0x5da63a&&_0x16fc55['push']({'key':_0x4fc264,'newValue':_0x5da63a,'oldValue':_0x35c90a,'range':_0x46ffd0});}for(const [_0x457369,_0x1120ce]of _0x567007['attributes'])this['_isRegisteredAttribute'](_0x457369)&&(_0x458583['attributes']['has'](_0x457369)||_0x16fc55['push']({'key':_0x457369,'newValue':_0x1120ce,'oldValue':null,'range':_0x46ffd0}));}0x0!=_0x16fc55['length']&&_0x4dce6c['model']['enqueueChange'](_0x36d4b9,_0x58c526=>{const _0x2649a0=_0x1b40cb();for(const {range:_0x3060f0,key:_0x46866a,oldValue:_0x111817,newValue:_0x158053}of _0x16fc55)this['markAttributeChange'](_0x3060f0,_0x46866a,_0x111817,_0x158053,{'groupId':_0x2649a0});this['_reduceExistingSuggestions'](_0x58c526,_0x16fc55);});},{'priority':'lowest'}),_0x4dce6c['model']['markers']['on']('update:suggestion',(_0x53164e,_0x2eda71,_0x29e2e4)=>{if(null==_0x29e2e4){const {id:_0x2b63ba}=this['_splitMarkerName'](_0x2eda71['name']),_0x2db155=this['_suggestions']['get'](_0x2b63ba);_0x2db155&&_0x2db155['addMarkerName'](_0x2eda71['name']);}}),_0x4dce6c['model']['document']['on']('change:data',()=>{const _0x1e8ae0=Array['from'](_0x4dce6c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x406764=>'suggestion'===this['_splitMarkerName'](_0x406764['name'])['group']);if(0x0===_0x1e8ae0['length'])return;_0x1e8ae0['sort']((_0x1cf9fc,_0x51a271)=>{const _0x37eff8=_0x1cf9fc['data']['oldRange'],_0x2e72c6=_0x51a271['data']['oldRange'];return null===_0x37eff8&&null===_0x2e72c6?0x0:null===_0x37eff8&&null!==_0x2e72c6?-0x1:null!==_0x37eff8&&null===_0x2e72c6?0x1:_0x37eff8['start']['isBefore'](_0x2e72c6['start'])?-0x1:0x1;});const _0x5d868e=new Set(),_0x437502=new Set();for(const {name:_0x499957,data:_0x407860}of _0x1e8ae0){const {id:_0x1d2e7b}=this['_splitMarkerName'](_0x499957);if(null===_0x407860['oldRange']){const _0x29d3d7=this['_handleNewSuggestionMarker'](_0x499957);_0x437502['add'](_0x29d3d7);}else{const _0x43e1b2=this['_suggestions']['get'](_0x1d2e7b);null!==_0x407860['newRange']||_0x43e1b2['isInContent']?(_0x5d868e['add'](_0x43e1b2['head']),_0x437502['add'](_0x43e1b2)):this['_removeSuggestion'](_0x43e1b2);}}_0x437502['size']>0x0&&this['_refreshSuggestionsChain'](_0x437502);for(const _0x4508e2 of _0x5d868e)this['fire']('suggestionChanged',_0x4508e2);}),_0x4dce6c['model']['on']('applyOperation',(_0x203e8c,_0x2d1c06)=>{const _0x20a590=_0x2d1c06[0x0];if(!this['_suggestions']['size'])return;if(!_0x20a590['isDocumentOperation'])return;if(_0x20a590['batch']['isUndo']||!_0x20a590['batch']['isLocal'])return;let _0x3de627,_0x38b303;switch(_0x20a590['type']){case'insert':_0x3de627=_0x4dce6c['model']['createPositionAt'](_0x20a590['position']),_0x38b303=_0x3de627['getShiftedBy'](_0x20a590['howMany']);break;case'split':_0x3de627=_0x4dce6c['model']['createPositionAt'](_0x20a590['splitPosition']),_0x38b303=_0x4dce6c['model']['createPositionAt'](_0x20a590['moveTargetPosition']);break;case'move':_0x3de627=_0x4dce6c['model']['createPositionAt'](_0x20a590['targetPosition']),_0x38b303=_0x3de627['getShiftedBy'](_0x20a590['howMany']);break;default:return;}const _0x1283db=_0x4dce6c['model']['createRange'](_0x3de627,_0x38b303);_0x4dce6c['model']['change'](()=>{for(const {suggestion:_0x4c7797,meta:_0x4a075e}of this['_findSuggestions'](_0x1283db)){if(_0x4c7797['isMultiRange'])continue;if('formatInline'==_0x4c7797['type'])continue;const _0x1d9b44=this['_getAttributeKey'](_0x4c7797);if(_0x1d9b44&&this['_isBlockAttribute'](_0x1d9b44)&&'split'!=_0x20a590['type'])continue;const _0x427e21=_0x4c7797['data']&&_0x4c7797['data']['multipleBlocks'];('formatBlock'!=_0x4c7797['type']||'split'==_0x20a590['type']&&!_0x427e21)&&(_0x4a075e['containsRangeInObject']||'insertion'==_0x4c7797['type']&&_0x4a075e['isOwn']||_0x4c7797['getFirstRange']()['containsRange'](_0x1283db)&&this['_breakSuggestionMarker'](_0x4c7797,_0x3de627,_0x38b303));}});},{'priority':'lowest'}),_0x4dce6c['model']['on']('deleteContent',(_0xad7873,_0x136342)=>{const _0x3dfc77=_0x136342[0x0],_0x49b5cb=_0x136342[0x1];if(_0x49b5cb&&_0x49b5cb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3dfc77['isCollapsed'])return;const _0x461bb9=_0x4dce6c['model']['schema'],{start:_0x531f85,end:_0x1b1dd7}=_0x3dfc77['getFirstRange'](),_0x234cc0=_0x531f85['nodeAfter']&&_0x461bb9['isLimit'](_0x531f85['nodeAfter'])?null:_0x461bb9['getNearestSelectionRange'](_0x531f85,'forward'),_0x158c1b=_0x1b1dd7['nodeBefore']&&_0x461bb9['isLimit'](_0x1b1dd7['nodeBefore'])?null:_0x461bb9['getNearestSelectionRange'](_0x1b1dd7,'backward'),_0xb6e81d=_0x4dce6c['model']['createRange'](_0x234cc0?_0x234cc0['start']:_0x531f85,_0x158c1b?_0x158c1b['end']:_0x1b1dd7);_0x4dce6c['model']['change'](_0x3afe5c=>{this['markDeletion'](_0xb6e81d);const _0x361e4f=_0x4dce6c['model']['schema']['getNearestSelectionRange'](_0xb6e81d['start']);_0x3dfc77['is']('documentSelection')?_0x3afe5c['setSelection'](_0x361e4f):_0x3dfc77['setTo'](_0x361e4f);}),_0xad7873['stop']();},{'priority':_0x1fed10['normal']+0xa}),_0x4dce6c['model']['on']('insertContent',(_0x31158b,_0x1244ff)=>{const _0x31d378=_0x1244ff[_0x1244ff['length']-0x1];_0x31d378&&_0x31d378['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4dce6c['model']['change'](()=>{let _0x3dae55=_0x4dce6c['model']['insertContent'](_0x1244ff[0x0],_0x1244ff[0x1],_0x1244ff[0x2],{'forceDefaultExecution':!0x0});if(!_0x3dae55)return;_0x31158b['return']=_0x3dae55['clone']();const _0x58bc83=_0x3dae55['end']['nodeBefore'],_0x5656b6=_0x4dce6c['model']['schema'];_0x58bc83&&_0x5656b6['isBlock'](_0x58bc83)&&!_0x5656b6['isObject'](_0x58bc83)&&(_0x3dae55=_0x4dce6c['model']['createRange'](_0x3dae55['start'],_0x4dce6c['model']['createPositionAt'](_0x58bc83,'end'))),this['markInsertion'](_0x3dae55);}),_0x31158b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x21703c=new v(_0x4dce6c,this['_suggestions']);_0x4dce6c['commands']['add']('acceptSuggestion',_0x21703c),this['enableCommand']('acceptSuggestion');const _0x4f1ba8=new D(_0x4dce6c,this['_suggestions']);_0x4dce6c['commands']['add']('discardSuggestion',_0x4f1ba8),this['enableCommand']('discardSuggestion'),_0x4dce6c['commands']['add']('acceptAllSuggestions',new B(_0x4dce6c,_0x21703c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4dce6c['commands']['add']('discardAllSuggestions',new B(_0x4dce6c,_0x4f1ba8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4dce6c['commands']['add']('acceptSelectedSuggestions',new O(_0x4dce6c,_0x21703c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4dce6c['commands']['add']('discardSelectedSuggestions',new O(_0x4dce6c,_0x4f1ba8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5bab7b=_0x4dce6c['plugins']['get']('CommentsRepository');this['listenTo'](_0x5bab7b,'addComment',(_0xc3fb2f,{threadId:_0x5ae82a})=>{const _0x368efa=this['_suggestions']['get'](_0x5ae82a);_0x368efa&&_0x368efa['commentThread']&&0x1===_0x368efa['commentThread']['length']&&this['_updateSuggestionData'](_0x5ae82a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5bab7b,'removeComment',(_0x561a32,{threadId:_0x163b9a})=>{const _0x343ce5=this['_suggestions']['get'](_0x163b9a);_0x343ce5&&_0x343ce5['commentThread']&&!_0x343ce5['commentThread']['length']&&this['_updateSuggestionData'](_0x163b9a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x8f3125){const _0x59d0d7=_0x458349([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]),_0x17113a=0x3d8d0df,_0x1ad4c0=0x3dfaaef^_0x17113a,_0x1aac66=window[_0x458349([0x44,0x61,0x74,0x65])][_0x458349([0x6e,0x6f,0x77])](),_0x1b8c64=_0x8f3125[_0x458349([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x177fb9=new window[(_0x458349([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20dcca=>{_0x1b8c64[_0x458349([0x6f,0x6e,0x63,0x65])](_0x458349([0x72,0x65,0x61,0x64,0x79]),_0x20dcca);}),_0x2100b6={[_0x458349([0x6b,0x74,0x79])]:_0x458349([0x45,0x43]),[_0x458349([0x75,0x73,0x65])]:_0x458349([0x73,0x69,0x67]),[_0x458349([0x63,0x72,0x76])]:_0x458349([0x50,0x2d,0x32,0x35,0x36]),[_0x458349([0x78])]:_0x458349([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]),[_0x458349([0x79])]:_0x458349([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]),[_0x458349([0x61,0x6c,0x67])]:_0x458349([0x45,0x53,0x32,0x35,0x36])},_0x1ad116=_0x1b8c64[_0x458349([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x458349([0x67,0x65,0x74])](_0x458349([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xca77ea(){let _0x52a7ac,_0x34f096=null,_0x1bb323=null;try{if(_0x1ad116==_0x458349([0x47,0x50,0x4c]))return _0x458349([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52a7ac=_0x330a90(),!_0x52a7ac)return _0x458349([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52a7ac[_0x458349([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bb323=_0xadba4(_0x52a7ac[_0x458349([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52a7ac[_0x458349([0x6a,0x74,0x69])])),await _0x330029()?_0x3e6e3e()?_0x288afd()?_0x458349([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39ba2b()?(_0x52a7ac[_0x458349([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x458349([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34f096=_0x28fe46(_0x458349([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52a7ac[_0x458349([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x458349([0x74,0x72,0x69,0x61,0x6c])&&(_0x34f096=_0x28fe46(_0x458349([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18f758()):_0x458349([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x458349([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x458349([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x458349([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x288afd(){const _0x197a0c=[_0x458349([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x458349([0x74,0x72,0x69,0x61,0x6c])][_0x458349([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a7ac[_0x458349([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1aac66/0x3e8:0xe10*_0x1ad4c0;return _0x52a7ac[_0x458349([0x65,0x78,0x70])]<_0x197a0c;}function _0x3e6e3e(){const _0x83161d=_0x52a7ac[_0x458349([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x83161d)return!0x1;if(_0x83161d[_0x458349([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x458349([0x2a])))return!0x0;if(_0x83161d[_0x458349([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x458349([0x54,0x43])))return!0x0;if(_0x83161d[_0x458349([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x458349([0x52,0x54,0x43]))){if(_0x2c47dc())return!0x0;if(_0x3612f7()||_0x2a10f6())return!0x0;}return!0x1;}function _0x39ba2b(){const _0x4240b6=_0x52a7ac[_0x458349([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4240b6||0x0==_0x4240b6[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c6fe0}=new URL(window[_0x458349([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4240b6[_0x458349([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c6fe0))return!0x0;const _0x38dc53=_0x3c6fe0[_0x458349([0x73,0x70,0x6c,0x69,0x74])](_0x458349([0x2e]));return _0x4240b6[_0x458349([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41a4e4=>_0x41a4e4[_0x458349([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x458349([0x2a])))[_0x458349([0x6d,0x61,0x70])](_0x4521f7=>_0x4521f7[_0x458349([0x73,0x70,0x6c,0x69,0x74])](_0x458349([0x2e])))[_0x458349([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x576585=>_0x576585[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38dc53[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x458349([0x6d,0x61,0x70])](_0x27d018=>Array(_0x38dc53[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27d018[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x458349([0x66,0x69,0x6c,0x6c])](_0x27d018[0x0]===_0x458349([0x2a])?_0x458349([0x2a]):'')[_0x458349([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27d018))[_0x458349([0x73,0x6f,0x6d,0x65])](_0x497342=>_0x38dc53[_0x458349([0x65,0x76,0x65,0x72,0x79])]((_0x1df528,_0x43d75a)=>_0x497342[_0x43d75a]===_0x1df528||_0x497342[_0x43d75a]===_0x458349([0x2a])));}function _0x18f758(){return _0x34f096&&_0x1bb323?new window[(_0x458349([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a83ee,_0x699cb3)=>{_0x34f096[_0x458349([0x74,0x68,0x65,0x6e])](_0x1a83ee,_0x699cb3),_0x1bb323[_0x458349([0x74,0x68,0x65,0x6e])](_0x55427d=>{_0x55427d!=_0x458349([0x56,0x61,0x6c,0x69,0x64])&&_0x1a83ee(_0x55427d);},_0x699cb3);}):_0x34f096||_0x1bb323||_0x458349([0x56,0x61,0x6c,0x69,0x64]);}}function _0xadba4(_0x24de10,_0x51dcd1){return new window[(_0x458349([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e3fd4=>{if(_0x54f8c8())return _0x4e3fd4(_0x458349([0x56,0x61,0x6c,0x69,0x64]));_0x23a73b(),_0x1b8c64[_0x458349([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x458349([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d58c7=!0x1;const _0x258249=_0x1b40cb();function _0x54c430(_0x2ff7bf){return!!_0x2ff7bf&&(typeof _0x2ff7bf===_0x458349([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ff7bf===_0x458349([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ff7bf[_0x458349([0x74,0x68,0x65,0x6e])]===_0x458349([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ff7bf[_0x458349([0x63,0x61,0x74,0x63,0x68])]===_0x458349([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cf12e(_0x148456){_0x453e55(_0x148456)[_0x458349([0x74,0x68,0x65,0x6e])](_0xaf8a64=>{if(!_0xaf8a64||_0xaf8a64[_0x458349([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x458349([0x6f,0x6b]))return _0x458349([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x58db95(_0x3588a3(_0x258249+_0x51dcd1))!=_0xaf8a64[_0x458349([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x458349([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x458349([0x56,0x61,0x6c,0x69,0x64]);})[_0x458349([0x74,0x68,0x65,0x6e])](_0x3c763d=>(_0x1e6de4(),_0x3c763d),()=>{const _0x13c263=_0x3cee60();return null==_0x13c263?(_0x1e6de4(),_0x458349([0x56,0x61,0x6c,0x69,0x64])):_0x458349(_0x1aac66-_0x13c263>(0x27d454df^_0x17113a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x458349([0x74,0x68,0x65,0x6e])](_0x4e3fd4)[_0x458349([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e3fd4(_0x458349([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d01f9=0x3ee3e5f^_0x17113a;function _0x1e6de4(){const _0x401acb=_0x458349([0x6c,0x6c,0x63,0x74,0x2d])+_0x58db95(_0x3588a3(_0x24de10)),_0x234922=_0x4db648(_0x58db95(window[_0x458349([0x4d,0x61,0x74,0x68])][_0x458349([0x63,0x65,0x69,0x6c])](_0x1aac66/_0x3d01f9)));window[_0x458349([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x458349([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x401acb,_0x234922);}function _0x3cee60(){const _0x3e21cf=_0x458349([0x6c,0x6c,0x63,0x74,0x2d])+_0x58db95(_0x3588a3(_0x24de10)),_0x34e794=window[_0x458349([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x458349([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e21cf);return _0x34e794?window[_0x458349([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4db648(_0x34e794),0x10)*_0x3d01f9:null;}function _0x453e55(_0x2cabb3){return new window[(_0x458349([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x181915,_0x26866b)=>{_0x2cabb3[_0x458349([0x74,0x68,0x65,0x6e])](_0x181915,_0x26866b),window[_0x458349([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26866b,0x3d9041f^_0x17113a);});}}_0x1b8c64[_0x458349([0x6f,0x6e])](_0x458349([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x281056,_0x4f4357)=>{if(_0x4f4357[0x0]!=_0x24de10)return _0x4e3fd4(_0x458349([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f4357[0x1]={..._0x4f4357[0x1],[_0x458349([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x258249};},{[_0x458349([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x458349([0x68,0x69,0x67,0x68])}),_0x1b8c64[_0x458349([0x6f,0x6e])](_0x458349([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f38de=>{_0x54c430(_0x3f38de[_0x458349([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d58c7=!0x0,_0x1cf12e(_0x3f38de[_0x458349([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x458349([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x458349([0x6c,0x6f,0x77])}),_0x177fb9[_0x458349([0x74,0x68,0x65,0x6e])](()=>{_0x3d58c7||_0x4e3fd4(_0x458349([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54f8c8(){return _0x1b8c64[_0x458349([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x458349([0x76,0x69,0x65,0x77])][_0x458349([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x458349([0x61,0x75,0x74,0x6f]);}function _0x23a73b(){_0x1b8c64[_0x458349([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x458349([0x76,0x69,0x65,0x77])][_0x458349([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x458349([0x61,0x75,0x74,0x6f]);}}function _0x28fe46(_0x4631a6){const _0x48ac50=[new window[(_0x458349([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a80ef=>setTimeout(_0x3a80ef,0x3d1ee13^_0x17113a)),_0x177fb9[_0x458349([0x74,0x68,0x65,0x6e])](()=>new window[(_0x458349([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x342e4f=>{let _0x3e47cf=0x0;_0x1b8c64[_0x458349([0x6d,0x6f,0x64,0x65,0x6c])][_0x458349([0x6f,0x6e])](_0x458349([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4462a1,_0x17892f)=>{_0x17892f[0x0][_0x458349([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e47cf++,_0x3e47cf==(0x3d8d127^_0x17113a)&&(_0x342e4f(),_0x4462a1[_0x458349([0x6f,0x66,0x66])]());});}))];return window[_0x458349([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x458349([0x72,0x61,0x63,0x65])](_0x48ac50)[_0x458349([0x74,0x68,0x65,0x6e])](()=>_0x4631a6);}async function _0x129d17(){await _0x177fb9,_0x1b8c64[_0x458349([0x6d,0x6f,0x64,0x65,0x6c])][_0x458349([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x78bb48,_0x1b8c64[_0x458349([0x6d,0x6f,0x64,0x65,0x6c])][_0x458349([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x78bb48,_0x1b8c64[_0x458349([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x458349([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c47dc(){return _0x52ef2e(_0x458349([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x62ba7a(_0x458349([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x458349([0x73,0x74,0x61,0x74,0x65])]==_0x458349([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3612f7(){return _0x52ef2e(_0x458349([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 _0x2a10f6(){return _0x52ef2e(_0x458349([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x16096e(_0x5c074f){const _0x5834f7=_0xf47261();_0x1b8c64[_0x5834f7]=_0x458349([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c074f,_0x5c074f!=_0x458349([0x56,0x61,0x6c,0x69,0x64])&&_0x129d17();}function _0xf47261(){const _0x21aa7c=window[_0x458349([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x458349([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x458349([0x6e,0x6f,0x77])]())[_0x458349([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x458349([0x2e]),'');let _0x43a4dc=_0x458349([0x52]);for(let _0x55c60c=0x0;_0x55c60c<_0x21aa7c[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55c60c+=0x2){let _0x5a76f8=window[_0x458349([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21aa7c[_0x458349([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55c60c,_0x55c60c+0x2));_0x5a76f8>=_0x59d0d7[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a76f8-=_0x59d0d7[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43a4dc+=_0x59d0d7[_0x5a76f8];}return _0x43a4dc;}function _0x330a90(){const _0x47f46c=_0x1ad116[_0x458349([0x73,0x70,0x6c,0x69,0x74])](_0x458349([0x2e]));if(0x3!=_0x47f46c[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5084dd(_0x47f46c[0x1]);function _0x5084dd(_0x2e9707){const _0x198565=_0x219a7a(_0x2e9707);return _0x198565&&_0x45a8b5()?_0x198565:null;function _0x45a8b5(){const _0x372994=_0x198565[_0x458349([0x6a,0x74,0x69])],_0x490654=window[_0x458349([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x372994[_0x458349([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x372994[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26d84b={..._0x198565,[_0x458349([0x6a,0x74,0x69])]:_0x372994[_0x458349([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x372994[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26d84b[_0x458349([0x76,0x63])],_0x3588a3(_0x26d84b)==_0x490654;}}}async function _0x330029(){let _0x58d047=!0x0;try{const _0x4c9fd4=_0x1ad116[_0x458349([0x73,0x70,0x6c,0x69,0x74])](_0x458349([0x2e])),[_0x1b876e,_0x4fbb2f,_0x532dfe]=_0x4c9fd4;return _0x1d1245(_0x1b876e),await _0x1e2547(_0x1b876e,_0x4fbb2f,_0x532dfe),_0x58d047;}catch{return!0x1;}function _0x1d1245(_0x57011b){const _0x17036a=_0x219a7a(_0x57011b);_0x17036a&&_0x17036a[_0x458349([0x61,0x6c,0x67])]==_0x458349([0x45,0x53,0x32,0x35,0x36])||(_0x58d047=!0x1);}async function _0x1e2547(_0x141cb1,_0x28b530,_0x35b6c5){const _0x4fb85a=window[_0x458349([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x458349([0x66,0x72,0x6f,0x6d])](_0x3b5f12(_0x35b6c5),_0x2e8071=>_0x2e8071[_0x458349([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29d333=new window[(_0x458349([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x458349([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x141cb1+_0x458349([0x2e])+_0x28b530),_0xedc73a=window[_0x458349([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x458349([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xedc73a)return;const _0x5c588d=await _0xedc73a[_0x458349([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x458349([0x6a,0x77,0x6b]),_0x2100b6,{[_0x458349([0x6e,0x61,0x6d,0x65])]:_0x458349([0x45,0x43,0x44,0x53,0x41]),[_0x458349([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x458349([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x458349([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xedc73a[_0x458349([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x458349([0x6e,0x61,0x6d,0x65])]:_0x458349([0x45,0x43,0x44,0x53,0x41]),[_0x458349([0x68,0x61,0x73,0x68])]:{[_0x458349([0x6e,0x61,0x6d,0x65])]:_0x458349([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c588d,_0x4fb85a,_0x29d333)||(_0x58d047=!0x1);}}function _0x219a7a(_0x398b04){return _0x398b04[_0x458349([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x458349([0x65,0x79]))?JSON[_0x458349([0x70,0x61,0x72,0x73,0x65])](_0x3b5f12(_0x398b04)):null;}function _0x3b5f12(_0x37b0ad){return window[_0x458349([0x61,0x74,0x6f,0x62])](_0x37b0ad[_0x458349([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x458349([0x2b]))[_0x458349([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x458349([0x2f])));}function _0x3588a3(_0xde8ad2){let _0x2252f7=0x1505;function _0x829c54(_0x425ecf){for(let _0x14f181=0x0;_0x14f181<_0x425ecf[_0x458349([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14f181++){const _0x469420=_0x425ecf[_0x458349([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14f181);_0x2252f7=(_0x2252f7<<0x5)+_0x2252f7+_0x469420,_0x2252f7&=_0x2252f7;}}function _0x18252b(_0x980329){Array[_0x458349([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x980329)?_0x980329[_0x458349([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18252b):_0x980329&&typeof _0x980329==_0x458349([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x458349([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x980329)[_0x458349([0x73,0x6f,0x72,0x74])]()[_0x458349([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c64be,_0x519ee8])=>{_0x829c54(_0x3c64be),_0x18252b(_0x519ee8);}):_0x829c54(window[_0x458349([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x980329));}return _0x18252b(_0xde8ad2),_0x2252f7>>>0x0;}function _0x58db95(_0x28de71){return _0x28de71[_0x458349([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x458349([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x458349([0x30]));}function _0x4db648(_0xcbdbd4){return _0xcbdbd4[_0x458349([0x73,0x70,0x6c,0x69,0x74])]('')[_0x458349([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x458349([0x6a,0x6f,0x69,0x6e])]('');}function _0x52ef2e(_0x529605){return _0x1b8c64[_0x458349([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x458349([0x68,0x61,0x73])](_0x529605);}function _0x62ba7a(_0x33dbc3){return _0x1b8c64[_0x458349([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x458349([0x67,0x65,0x74])](_0x33dbc3);}function _0x78bb48(){}function _0x458349(_0x566c12){return _0x566c12['map'](_0x4c18e0=>String['fromCharCode'](_0x4c18e0))['join']('');}_0x16096e(await _0xca77ea());}(this);}set['adapter'](_0x2b3cca){if(this['_adapter'])throw new _0x3af67d('track-changes-adapter-already-set',this);this['_adapter']=_0x2b3cca;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5c7990=!0x1,toJSON:_0x57a5ea=!0x1}={}){const _0x445eac=[];for(const _0x3220bc of this['_suggestions']['values']())_0x5c7990&&!_0x3220bc['isInContent']||_0x445eac['push'](_0x3220bc);return _0x57a5ea?_0x445eac['map'](_0x56e432=>_0x56e432['toJSON']()):_0x445eac;}['getSuggestion'](_0x2d4efb){const _0x58c3a8=this['_suggestions']['get'](_0x2d4efb);if(!_0x58c3a8)throw new _0x3af67d('track-changes-suggestion-not-found',this);return _0x58c3a8;}['hasSuggestion'](_0x3b899a){return this['_suggestions']['has'](_0x3b899a);}['addSuggestionData'](_0x54922e){const {authorId:_0x55856a,id:_0x4ca116,originalSuggestionId:_0x894c04,attributes:_0x77559a}=_0x54922e,[_0x45d79d,_0x3c1f5a]=_0x54922e['type']['split'](':'),_0x2901dd=this['_suggestions']['get'](_0x4ca116)||this['_createSuggestion'](_0x45d79d,_0x3c1f5a,_0x4ca116,_0x55856a,_0x77559a,_0x894c04);if(this['_addThreadToSuggestion'](_0x2901dd),this['_checkSuggestionCorrectness'](_0x2901dd,_0x45d79d,_0x3c1f5a||null,_0x55856a),_0x2901dd['createdAt']=_0x54922e['createdAt'],_0x2901dd['_isDataLoaded']=!0x0,_0x77559a&&_0x77559a['@external']){const _0x35e913=_0x77559a['@external'],_0x324834=this['_getExternalAuthor'](_0x35e913['authorName']);_0x2901dd['authoredAt']=_0x35e913['createdAt'],_0x2901dd['author']=_0x324834,_0x2901dd['isExternal']=!0x0;}else _0x2901dd['authoredAt']=_0x54922e['createdAt'];switch(_0x54922e['data']&&(_0x2901dd['data']=_0x54922e['data']),_0x54922e['attributes']&&(_0x2901dd['attributes']=_0x54922e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2901dd['_saved']=!0x0),this['_suggestionState']['get'](_0x2901dd)){case'notReady':this['_suggestionState']['set'](_0x2901dd,'dataReady');break;case'markerReady':_0x2901dd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2901dd])),this['_refreshSuggestionsChain'](new Set([_0x2901dd])),this['_suggestionState']['set'](_0x2901dd,'ready'),this['fire']('suggestionLoaded',_0x2901dd)):this['_suggestionState']['set'](_0x2901dd,'removed');}return _0x2901dd;}['acceptSuggestion'](_0x6af274){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1427e1 of _0x6af274['getAllAdjacentSuggestions']())_0x1427e1['accept']();});});}['discardSuggestion'](_0x174f27){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e04d6 of _0x174f27['getAllAdjacentSuggestions']())_0x1e04d6['discard']();});});}['enableCommand'](_0xefb7f5,_0x2a7502){const _0x1e7894=this['editor']['commands']['get'](_0xefb7f5);if(!_0x1e7894)throw new _0x3af67d('track-changes-command-not-found',this,{'commandName':_0xefb7f5});if(this['_enabledCommands']['has'](_0x1e7894))throw new _0x3af67d('track-changes-enable-command-twice',this,{'commandName':_0xefb7f5});this['_enabledCommands']['add'](_0x1e7894),_0x2a7502&&_0x1e7894['on']('execute',(_0x59e79b,_0x2e3f90)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e3f90['length']>0x0&&_0x2e3f90[_0x2e3f90['length']-0x1]&&_0x2e3f90[_0x2e3f90['length']-0x1]['forceDefaultExecution']?_0x2e3f90['pop']():(_0x59e79b['return']=_0x2a7502((..._0x534bbe)=>_0x1e7894['execute'](..._0x534bbe,{'forceDefaultExecution':!0x0}),..._0x2e3f90),_0x59e79b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5067f0){let _0xe072cd,_0x42c241;const _0x422ddb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xe072cd=_0x5067f0();}catch(_0x1b6f82){_0x42c241=_0x1b6f82;}return _0x422ddb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x42c241&&_0x3af67d['rethrowUnexpectedError'](_0x42c241,this),_0xe072cd;}['markInsertion'](_0x329d5b,_0x16775f=null,_0x310c8b={}){if(_0x329d5b['isCollapsed'])return null;const _0x52e301=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x310c8b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5ba904,meta:_0x2da3da}of this['_findSuggestions'](_0x329d5b,'insertion'))if(_0x2da3da['isOwn']){if(!_0x2da3da['isNextTo']){if(_0x2da3da['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x5ba904,_0x310c8b))continue;return _0x5ba904;}if(sn(_0x5ba904,_0x310c8b))return _0x5ba904;this['_breakSuggestionMarker'](_0x5ba904,_0x329d5b['start'],_0x329d5b['end']);break;}if(_0x16775f==_0x5ba904['subType']&&sn(_0x5ba904,_0x310c8b)){const _0x1bc56d=_0x5ba904['getFirstRange']();return _0x1bc56d['start']['isEqual'](_0x329d5b['end'])?this['_setSuggestionRange'](_0x5ba904,this['_model']['createRange'](_0x329d5b['start'],_0x1bc56d['end'])):this['_setSuggestionRange'](_0x5ba904,this['_model']['createRange'](_0x1bc56d['start'],_0x329d5b['end'])),_0x5ba904;}}const _0x5d7a89=_0x1b40cb(),_0x1a3f97=_0x52e301['id'],_0x4f0cd2=_0x16775f?'insertion:'+_0x16775f:'insertion',_0x5dffa9=this['_setSuggestionData']({'id':_0x5d7a89,'type':_0x4f0cd2,'createdAt':new Date(),'authorId':_0x1a3f97,'attributes':_0x310c8b});return this['_addSuggestionMarker'](_0x4f0cd2,_0x5d7a89,_0x1a3f97,_0x329d5b),_0x5dffa9;}['markMultiRangeInsertion'](_0x86b312,_0x13f4e0='multi',_0x48c4a6={}){const _0x8cddf9=this['editor']['plugins']['get']('Users')['me'],_0x1ce8a5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x13f4e0,'join');this['_trackingSessionId']&&(_0x48c4a6['trackingSessionId']=this['_trackingSessionId']);for(const _0x12f0c4 of this['getSuggestions']())if(_0x12f0c4['author']['id']==_0x8cddf9['id']&&'insertion'==_0x12f0c4['type']&&_0x12f0c4['subType']==_0x13f4e0&&sn(_0x12f0c4,_0x48c4a6)&&(_0x1ce8a5(_0x12f0c4['getRanges'](),_0x86b312)||_0x1ce8a5(_0x86b312,_0x12f0c4['getRanges']()))){for(const _0x428e14 of _0x86b312)_0x12f0c4['addRange'](_0x428e14);return _0x12f0c4;}for(const {suggestion:_0xa10172,meta:_0x2cc1ed}of this['_findSuggestions'](_0x86b312,'insertion')){if(!_0x2cc1ed['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2cc1ed['containsRangeInObject'])continue;if(!sn(_0xa10172,_0x48c4a6))continue;let _0x3cc686=!0x0;for(const _0x51a30e of _0xa10172['getRanges']())for(const _0x1197f9 of _0x86b312)if(!_0x51a30e['containsRange'](_0x1197f9)){_0x3cc686=!0x1;break;}if(_0x3cc686)return _0xa10172;}const _0x178e7f=_0x1b40cb(),_0x14def9=_0x8cddf9['id'],_0x5e2e62='insertion:'+_0x13f4e0,_0x2e7f4d=this['_setSuggestionData']({'id':_0x178e7f,'type':_0x5e2e62,'createdAt':new Date(),'authorId':_0x14def9,'attributes':_0x48c4a6});for(const _0x122c61 of _0x86b312)this['_addSuggestionMarker'](_0x5e2e62,_0x178e7f,_0x14def9,_0x122c61,x['getMultiRangeId']());return _0x2e7f4d;}['markInlineFormat'](_0xef01f3,_0x5533a1,_0xf573ae=null,_0x4c3683={}){if(_0xf573ae=_0xf573ae||Ht(_0x5533a1),_0xef01f3['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4c3683['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x9052d2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf573ae,'accept');return this['forceDefaultExecution'](()=>_0x9052d2([_0xef01f3],_0x5533a1,_0x4c3683)),null;}const _0x4e753d=this['editor']['plugins']['get']('Users')['me'],_0x2ff891=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xbf73e2,meta:_0x4bdd0e}of this['_findSuggestions'](_0xef01f3,'insertion'))_0x4bdd0e['isOwn']&&!_0x4bdd0e['isInsideObject']&&_0x2ff891['push'](..._0xbf73e2['getRanges']());}const _0xc97b81=function(_0x402be6,_0x38401f){const _0x3c7f79=[];for(const _0x1d1a42 of _0x38401f){const _0x4d9ad6=_0x402be6['getIntersection'](_0x1d1a42);_0x4d9ad6&&_0x3c7f79['push'](_0x4d9ad6);}return _0x3c7f79;}(_0xef01f3,_0x2ff891),_0x4b83bc=function(_0x59af05,_0x4267ed){const _0x2d45d5=[_0x59af05];for(const _0x34867e of _0x4267ed){let _0x1e99a1=0x0;for(;_0x1e99a1<_0x2d45d5['length'];){const _0x26056f=_0x2d45d5[_0x1e99a1]['getDifference'](_0x34867e);_0x2d45d5['splice'](_0x1e99a1,0x1,..._0x26056f),_0x1e99a1+=_0x26056f['length'];}}return _0x2d45d5;}(_0xef01f3,_0x2ff891);_0xc97b81['length']&&this['_model']['change'](()=>{for(const _0x437a1c of _0xc97b81){const _0xa929d4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf573ae,'accept');this['forceDefaultExecution'](()=>_0xa929d4([_0x437a1c],_0x5533a1,_0x4c3683));}});for(const _0x4d5aec of _0x4b83bc){let _0x1e7d55=null,_0x1e6dee=_0x4d5aec['start'],_0x2b93d6=_0x4d5aec['end'];for(const {suggestion:_0x5e8de8,meta:_0x57fd85}of this['_findSuggestions'](_0x4d5aec,'formatInline')){if(!_0x57fd85['isOwn'])continue;if(_0x5e8de8['subType']!=_0xf573ae)continue;if(!sn(_0x5e8de8,_0x4c3683))continue;const _0x596e9b=_0x5e8de8['getFirstRange']();if(_0x596e9b['containsRange'](_0x4d5aec,!0x0))return null;_0x1e6dee=_0x1e6dee['isBefore'](_0x596e9b['start'])?_0x1e6dee:_0x596e9b['start'],_0x2b93d6=_0x2b93d6['isAfter'](_0x596e9b['end'])?_0x2b93d6:_0x596e9b['end'],_0x1e7d55?_0x596e9b['start']['isBefore'](_0x1e7d55['getFirstRange']()['start'])?(_0x1e7d55['removeMarkers'](),_0x1e7d55=_0x5e8de8):_0x5e8de8['removeMarkers']():_0x1e7d55=_0x5e8de8;}const _0x35b463=this['_model']['createRange'](_0x1e6dee,_0x2b93d6);if(_0x1e7d55)this['_setSuggestionRange'](_0x1e7d55,_0x35b463);else{const _0x176397=_0x1b40cb(),_0x8fcd3d=_0x4e753d['id'];this['_setSuggestionData']({'id':_0x176397,'type':'formatInline:'+_0xf573ae,'data':_0x5533a1,'createdAt':new Date(),'authorId':_0x8fcd3d,'attributes':_0x4c3683}),this['_addSuggestionMarker']('formatInline:'+_0xf573ae,_0x176397,_0x8fcd3d,_0x35b463);}}return null;}['markBlockFormat'](_0x1a0a59,_0x3447d4,_0x44a632=[],_0x25323f=null,_0x50645b={}){_0x3447d4['formatGroupId']||(_0x3447d4['formatGroupId']=_0x3447d4['commandName']),_0x3447d4['multipleBlocks']=_0x1a0a59['is']('range'),_0x25323f=_0x25323f||Ht(_0x3447d4);const _0x1e6a66=_0x44a632['map'](_0xcc8448=>tn(_0xcc8448,this['_model'])),_0x384443=_0x1a0a59['is']('range')?_0x1a0a59:tn(_0x1a0a59,this['_model']);if(this['_trackingSessionId']&&(_0x50645b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a3d4e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25323f,'accept');return this['forceDefaultExecution'](()=>_0x5a3d4e([_0x384443],_0x3447d4,_0x50645b)),null;}_0x1e6a66['push'](_0x384443);let _0x4458e1=!0x0;for(const _0x5b4f7a of _0x1e6a66)if(!this['_rangeIsInLocalUserInsertion'](_0x5b4f7a)){_0x4458e1=!0x1;break;}if(_0x4458e1&&'always'!==this['_trackFormatChanges']){const _0x5bf09a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25323f,'accept');return this['forceDefaultExecution'](()=>_0x5bf09a([_0x384443],_0x3447d4,_0x50645b)),null;}let _0x557bc4=null,_0x2a46b1=_0x384443['start'],_0x28366b=_0x384443['end'];for(const {suggestion:_0xbb5f10,meta:_0x50416e}of this['_findSuggestions'](_0x384443,'formatBlock')){if(!_0x50416e['isOwn'])continue;if(_0x50416e['isNextTo']||_0x50416e['containsRangeInObject']||_0x50416e['isInsideObject'])continue;if(_0xbb5f10['data']['formatGroupId']!=_0x3447d4['formatGroupId'])continue;if(!sn(_0xbb5f10,_0x50645b))continue;const _0x130765=_0xbb5f10['getFirstRange']();if(_0xbb5f10['subType']==_0x25323f){if(_0x130765['containsRange'](_0x384443,!0x0))return null;_0x2a46b1=_0x2a46b1['isBefore'](_0x130765['start'])?_0x2a46b1:_0x130765['start'],_0x28366b=_0x28366b['isAfter'](_0x130765['end'])?_0x28366b:_0x130765['end'],_0x557bc4?_0x130765['start']['isBefore'](_0x557bc4['getFirstRange']()['start'])?(_0x557bc4['removeMarkers'](),_0x557bc4=_0xbb5f10):_0xbb5f10['removeMarkers']():_0x557bc4=_0xbb5f10;}else{const _0x459354=_0x384443['getIntersection'](_0x130765);this['_cutOutSuggestionMarker'](_0xbb5f10,_0x459354);}}const _0x26ec69=this['editor']['plugins']['get']('Users')['me'],_0x111644=_0x1b40cb(),_0xfb9a35=_0x26ec69['id'];if(_0x557bc4)return this['_setSuggestionRange'](_0x557bc4,this['_model']['createRange'](_0x2a46b1,_0x28366b)),_0x557bc4;{const _0x3ba179=this['_setSuggestionData']({'id':_0x111644,'type':'formatBlock:'+_0x25323f,'data':_0x3447d4,'createdAt':new Date(),'authorId':_0xfb9a35,'attributes':_0x50645b});return this['_addSuggestionMarker']('formatBlock:'+_0x25323f,_0x111644,_0xfb9a35,this['_model']['createRange'](_0x2a46b1,_0x28366b)),_0x3ba179;}}['markMultiRangeBlockFormat'](_0xf2328a,_0xa6e725,_0x5c655e=[],_0x4cbab2=null,_0x595bb1={}){_0xa6e725['formatGroupId']||(_0xa6e725['formatGroupId']=_0xa6e725['commandName']);const _0x5c8d64=_0xf2328a[0x0];_0xa6e725['multipleBlocks']=_0x5c8d64['is']('range'),_0x4cbab2=_0x4cbab2||Ht(_0xa6e725);const _0x46b1df=_0x5c655e['map'](_0x342883=>tn(_0x342883,this['_model'])),_0x517179=_0x5c8d64['is']('range')?_0xf2328a:_0xf2328a['map'](_0x4ac038=>tn(_0x4ac038,this['_model']));if(this['_trackingSessionId']&&(_0x595bb1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x12b6be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4cbab2,'accept');return this['forceDefaultExecution'](()=>_0x12b6be(_0x517179,_0xa6e725,_0x595bb1)),null;}_0x46b1df['push'](..._0x517179);let _0x2d81f0=!0x0;for(const _0x4a8840 of _0x46b1df)if(!this['_rangeIsInLocalUserInsertion'](_0x4a8840)){_0x2d81f0=!0x1;break;}if(_0x2d81f0&&'always'!==this['_trackFormatChanges']){const _0xb012e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4cbab2,'accept');return this['forceDefaultExecution'](()=>_0xb012e7(_0x517179,_0xa6e725,_0x595bb1)),null;}const _0x59426a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d4706 of this['getSuggestions']()){const _0x4048f0=_0x3d4706['data'];if(_0x3d4706['author']['id']!=_0x59426a['id'])continue;if('formatBlock'!=_0x3d4706['type']||_0x4048f0['formatGroupId']!=_0xa6e725['formatGroupId'])continue;if(!sn(_0x3d4706,_0x595bb1))continue;const _0x350eea=_0x3d4706['subType']==_0x4cbab2;for(let _0x541d3d=0x0;_0x541d3d<_0x517179['length'];_0x541d3d++){const _0x502a7b=_0x517179[_0x541d3d];for(const _0x253657 of _0x3d4706['getMarkers']()){const _0x2795f3=_0x253657['getRange']();if(_0x502a7b['isEqual'](_0x2795f3)){_0x350eea?(_0x517179['splice'](_0x541d3d,0x1),_0x541d3d--):_0x3d4706['removeMarker'](_0x253657['name']);break;}}}}if(0x0==_0x517179['length'])return null;const _0x268cb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4cbab2,'join');for(const _0x2c303d of this['getSuggestions']()){const _0x4b62c4=_0x2c303d['data'];if(_0x2c303d['author']['id']==_0x59426a['id']&&('formatBlock'==_0x2c303d['type']&&_0x4b62c4['formatGroupId']==_0xa6e725['formatGroupId']&&_0x2c303d['subType']==_0x4cbab2&&sn(_0x2c303d,_0x595bb1)&&(_0x268cb6(_0x2c303d['getRanges'](),_0x517179)||_0x268cb6(_0x517179,_0x2c303d['getRanges']())))){for(const _0x3ad594 of _0x517179)_0x2c303d['addRange'](_0x3ad594);return _0x2c303d;}}const _0x5c2695=_0x1b40cb(),_0x4d4c4f=_0x59426a['id'],_0x475d8b='formatBlock:'+_0x4cbab2,_0x405321=this['_setSuggestionData']({'id':_0x5c2695,'type':_0x475d8b,'data':_0xa6e725,'createdAt':new Date(),'authorId':_0x4d4c4f,'attributes':_0x595bb1});for(const _0x3aeede of _0x517179)this['_addSuggestionMarker'](_0x475d8b,_0x5c2695,_0x4d4c4f,_0x3aeede,x['getMultiRangeId']());return _0x405321;}['markDeletion'](_0x36a4e8,_0x3ffb04=null,_0x1ea40a={}){if(_0x36a4e8['isCollapsed'])return null;const _0x35d537=this['editor']['plugins']['get']('Users')['me'],_0x26cfaf=new _0x4e8d2f(_0x36a4e8['start'],_0x36a4e8['end']);this['_trackingSessionId']&&(_0x1ea40a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x170e04,meta:_0x24f6de}of this['_findSuggestions'](_0x26cfaf,'insertion'))if(_0x24f6de['isOwn']&&!_0x24f6de['isNextTo']){if(_0x170e04['isMultiRange']){const _0x1f9adc=_0x170e04['getRanges']()['filter'](_0x172f5c=>'$graveyard'!=_0x172f5c['root']['rootName']);_0x1f9adc['every'](_0x44fec5=>_0x26cfaf['containsRange'](_0x44fec5,!0x0))&&_0x170e04['discard']();if(_0x1f9adc['some'](_0x381362=>_0x381362['containsRange'](_0x26cfaf,!0x0))){const _0x126fdb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ffb04,'accept');return this['forceDefaultExecution'](()=>_0x126fdb([_0x26cfaf],null,_0x1ea40a)),null;}}else{const _0x1183bf=_0x26cfaf['getIntersection'](_0x170e04['getFirstRange']());null!==_0x1183bf&&_0x170e04['_onDiscard']([_0x1183bf],null,_0x1ea40a);}}if(_0x26cfaf['detach'](),_0x26cfaf['isCollapsed']||'$graveyard'==_0x26cfaf['root']['rootName'])return null;let _0x4a0cda=null,_0x55bc1c=_0x26cfaf['start'],_0x1ca8d0=_0x26cfaf['end'];const _0x5bfae0=this['_findSuggestions'](_0x26cfaf,'deletion');for(const {suggestion:_0x448fea,meta:_0x41dfc2}of _0x5bfae0){const _0xd458ec=this['_model']['createRange'](_0x55bc1c,_0x1ca8d0);if(_0x41dfc2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x41dfc2['containsRangeInObject']&&!_0x41dfc2['isInsideObject'])){if(_0x448fea['isMultiRange']){if(!sn(_0x448fea,_0x1ea40a))continue;let _0x53f265=!0x0;for(const _0x5c4762 of _0x448fea['getRanges']()){if(_0x5c4762['containsRange'](_0xd458ec,!0x0))return _0x448fea;_0xd458ec['containsRange'](_0x5c4762)||(_0x53f265=!0x1);}_0x53f265&&_0x448fea['discard']();}else{const _0x4b3f1c=_0x448fea['getFirstRange']();if(_0x4b3f1c['containsRange'](_0xd458ec,!0x0))return _0x448fea;if(!sn(_0x448fea,_0x1ea40a)){_0xd458ec['containsRange'](_0x4b3f1c)?_0x448fea['removeMarkers']():_0x4b3f1c['containsPosition'](_0x55bc1c)?_0x55bc1c=_0x4b3f1c['end']:_0x4b3f1c['containsPosition'](_0x1ca8d0)&&(_0x1ca8d0=_0x4b3f1c['start']);continue;}_0x55bc1c=_0x55bc1c['isBefore'](_0x4b3f1c['start'])?_0x55bc1c:_0x4b3f1c['start'],_0x1ca8d0=_0x1ca8d0['isAfter'](_0x4b3f1c['end'])?_0x1ca8d0:_0x4b3f1c['end'],_0x1ea40a=Object['assign']({},_0x448fea['attributes']),_0x4a0cda?_0x4b3f1c['start']['isBefore'](_0x4a0cda['getFirstRange']()['start'])?(_0x4a0cda['removeMarkers'](),_0x4a0cda=_0x448fea):_0x448fea['removeMarkers']():_0x4a0cda=_0x448fea;}}}if(_0x4a0cda)return this['_setSuggestionRange'](_0x4a0cda,this['_model']['createRange'](_0x55bc1c,_0x1ca8d0)),_0x4a0cda;{const _0x55e86c=_0x1b40cb(),_0x5c4168=this['_model']['createRange'](_0x55bc1c,_0x1ca8d0),_0x2a9e00=_0x35d537['id'],_0x57c124=_0x3ffb04?'deletion:'+_0x3ffb04:'deletion',_0x311e1f=this['_setSuggestionData']({'id':_0x55e86c,'type':_0x57c124,'createdAt':new Date(),'authorId':_0x2a9e00,'attributes':_0x1ea40a});return this['_addSuggestionMarker'](_0x57c124,_0x55e86c,_0x2a9e00,_0x5c4168),_0x311e1f;}}['markMultiRangeDeletion'](_0x1b213f,_0x2d7cbd='multi',_0x5e8f9e={}){const _0xa2a5ac=this['editor']['plugins']['get']('Users')['me'],_0x3fc28c=_0x1b213f['map'](_0x13e24a=>new _0x4e8d2f(_0x13e24a['start'],_0x13e24a['end'])),_0x51ac9f=new Set();this['_trackingSessionId']&&(_0x5e8f9e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x20901d,meta:_0x22b7f8}of this['_findSuggestions'](_0x3fc28c,'insertion'))_0x22b7f8['isOwn']&&!_0x22b7f8['isNextTo']&&_0x51ac9f['add'](_0x20901d);for(const _0x548f05 of _0x51ac9f)if(_0x548f05['isMultiRange']){const _0x39ea5d=_0x548f05['getRanges']();(!_0x548f05['attributes']||!_0x548f05['attributes']['skipNestingCheck'])&&(_0x39ea5d['every'](_0x146670=>_0x3fc28c['some'](_0x236fa9=>_0x236fa9['containsRange'](_0x146670,!0x0)))&&_0x548f05['discard']());if(_0x3fc28c['every'](_0xaf0cc6=>_0x39ea5d['some'](_0x295896=>_0x295896['containsRange'](_0xaf0cc6,!0x0)))){const _0x15dcab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d7cbd,'accept');return this['forceDefaultExecution'](()=>_0x15dcab(_0x1b213f,null,_0x5e8f9e)),null;}}else{const _0x8732e8=_0x548f05['getFirstRange']();_0x3fc28c['some'](_0x4304a8=>_0x4304a8['containsRange'](_0x8732e8,!0x0))&&_0x548f05['discard']();if(_0x3fc28c['every'](_0x5d3ac3=>_0x8732e8['containsRange'](_0x5d3ac3,!0x0))){const _0x648f53=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d7cbd,'accept');return this['forceDefaultExecution'](()=>_0x648f53(_0x3fc28c,null,_0x5e8f9e)),null;}}const _0x2bd466=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d7cbd,'join');let _0x286a41=null;for(const _0x2d4c77 of this['getSuggestions']())if(_0x2d4c77['author']['id']==_0xa2a5ac['id']&&_0x2d4c77['isInContent']&&'deletion'==_0x2d4c77['type']&&_0x2d4c77['subType']==_0x2d7cbd&&sn(_0x2d4c77,_0x5e8f9e)&&(_0x2bd466(_0x2d4c77['getRanges'](),_0x3fc28c)||_0x2bd466(_0x3fc28c,_0x2d4c77['getRanges']()))){if(_0x286a41){if(_0x2d4c77['commentThread']&&_0x2d4c77['commentThread']['length'])continue;for(const _0x25043a of _0x2d4c77['getRanges']())_0x286a41['isIntersectingWithRange'](_0x25043a)||_0x286a41['addRange'](_0x25043a);_0x2d4c77['removeMarkers']();}else{_0x286a41=_0x2d4c77;for(const _0x2fd4b6 of _0x3fc28c)_0x2d4c77['isIntersectingWithRange'](_0x2fd4b6)||_0x2d4c77['addRange'](_0x2fd4b6);}}if(_0x286a41)return _0x286a41;_0x51ac9f['clear']();for(const {suggestion:_0xa39099,meta:_0x4c100e}of this['_findSuggestions'](_0x3fc28c,'deletion'))_0x4c100e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c100e['containsRangeInObject']&&!_0x4c100e['isInsideObject'])&&sn(_0xa39099,_0x5e8f9e)&&_0x51ac9f['add'](_0xa39099);for(const _0x3e50e0 of _0x51ac9f){const _0x570a94=_0x3e50e0['getRanges']();if(!_0x5e8f9e||!_0x5e8f9e['skipNestingCheck']){if(_0x3fc28c['every'](_0x47f7c6=>_0x570a94['some'](_0x3f6b3c=>_0x3f6b3c['containsRange'](_0x47f7c6,!0x0))))return _0x3e50e0;}(!_0x3e50e0['attributes']||!_0x3e50e0['attributes']['skipNestingCheck'])&&(_0x570a94['every'](_0x41e2a0=>_0x3fc28c['some'](_0xdc95=>_0xdc95['containsRange'](_0x41e2a0,!0x0)))&&_0x3e50e0['discard']());}const _0x9758e9=_0x1b40cb(),_0x2335d8=_0xa2a5ac['id'],_0x4af9d7='deletion:'+_0x2d7cbd,_0x4055bf=this['_setSuggestionData']({'id':_0x9758e9,'type':_0x4af9d7,'createdAt':new Date(),'authorId':_0x2335d8,'attributes':_0x5e8f9e});for(const _0x4fe3b2 of _0x3fc28c)_0x4fe3b2['detach'](),_0x4fe3b2['isCollapsed']||'$graveyard'==_0x4fe3b2['root']['rootName']||this['_addSuggestionMarker'](_0x4af9d7,_0x9758e9,_0x2335d8,_0x4fe3b2,x['getMultiRangeId']());return _0x4055bf;}['markAttributeChange'](_0x205f5b,_0x2d8cd7,_0x4075cf,_0x592e49,_0x2f4c14){if(_0x205f5b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1901b1=this['editor']['plugins']['get']('Users')['me']['id'],_0x4bbb85=Array['from'](this['_suggestions']['values']())['filter'](_0x3378f7=>'attribute'==_0x3378f7['type']&&_0x3378f7['data']['key']==_0x2d8cd7&&_0x3378f7['isIntersectingWithRange'](_0x205f5b));if(this['_trackingSessionId']&&(_0x2f4c14['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xdd637c=this['_findSuggestions'](_0x205f5b,'insertion')['filter'](({meta:_0x57ce06})=>_0x57ce06['isOwn']&&!_0x57ce06['isInsideObject']&&!_0x57ce06['isNextTo'])['map'](({suggestion:_0x3e8b6e})=>_0x3e8b6e);_0x4bbb85['unshift'](..._0xdd637c);}const _0x404bac=new Map([[_0x205f5b,_0x4075cf]]);for(const _0x1b0439 of _0x4bbb85){const _0x3f9dea='attribute'==_0x1b0439['type']?_0x1b0439['data']['oldValue']:void 0x0,_0x118e94=_0x1b0439['getFirstRange'](),_0x16b671=Array['from'](_0x404bac['keys']())['find'](_0x182109=>_0x182109['isIntersecting'](_0x118e94));if(!_0x16b671)continue;const _0x183402=_0x16b671['getDifference'](_0x118e94);this['_isBlockAttribute'](_0x2d8cd7)&&'insertion'==_0x1b0439['type']&&0x0!=_0x183402['length']||(_0x404bac['delete'](_0x16b671),_0x183402['forEach'](_0x1c71d5=>{_0x404bac['set'](_0x1c71d5,_0x4075cf);}),'insertion'!=_0x1b0439['type']&&_0x3f9dea!=_0x592e49&&_0x404bac['set'](_0x16b671['getIntersection'](_0x118e94),_0x3f9dea));}const _0x31e02c=[];for(const [_0x2da19b,_0x1b6c7d]of _0x404bac){const _0x25f341=_0x1b40cb(),_0x3acfb4={'key':_0x2d8cd7,'oldValue':_0x1b6c7d,'newValue':_0x592e49};_0x2d8cd7['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':_0x2d8cd7});const _0x4a2664=('attribute:'+(_0x2d8cd7+'|'+Ht({'newValue':_0x592e49})))['substring'](0x0,0x3c),_0xb3bdcf=this['_setSuggestionData']({'id':_0x25f341,'type':_0x4a2664,'data':_0x3acfb4,'createdAt':new Date(),'authorId':_0x1901b1,'attributes':_0x2f4c14});_0x31e02c['push'](_0xb3bdcf),this['_addSuggestionMarker'](_0x4a2664,_0x25f341,_0x1901b1,_0x2da19b);}return _0x31e02c;}['enableDefaultAttributesIntegration'](_0x3c7d79){this['enableCommand'](_0x3c7d79,(_0x3acf46,..._0x446022)=>{this['recordAttributeChanges'](()=>{_0x3acf46(..._0x446022);});});}['registerBlockAttribute'](_0x4ce69f){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x4ce69f);}['registerInlineAttribute'](_0x10748e){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x10748e);}['startTrackingSession'](_0x230c72){return this['_trackingSessionId']=void 0x0!==_0x230c72?_0x230c72:_0x1b40cb(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3da5a1){return'attribute'==_0x3da5a1['type']?_0x3da5a1['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x10ae87){if(0x0==_0x10ae87['length'])return;const _0x4d0842=this['editor'],_0x152e4b=_0x4d0842['plugins']['get'](_0x275b01),_0x50c932=[];_0x4d0842['model']['change'](_0x2504c7=>{for(let _0x82c7b3=0x0;_0x82c7b3<_0x10ae87['length'];_0x82c7b3++){const _0xef35d5=_0x10ae87[_0x82c7b3];if(_0xef35d5['baseVersion']=_0x4d0842['model']['document']['version'],_0xef35d5['isDocumentOperation']=!0x0,_0x152e4b['isMarkedRemoveOperation'](_0xef35d5)){const _0x11e003=Lt(_0xef35d5['newRange'],_0x4d0842['model']);_0x50c932['unshift'](_0x4e8d2f['fromRange'](_0x11e003));}else switch(_0xef35d5['type']){case'rename':{const _0x549c5f=_0xef35d5['oldName'],_0x4bcc48=_0xef35d5['newName'];if(_0x549c5f==_0x4bcc48)break;_0x2504c7['batch']['addOperation'](_0xef35d5),_0x4d0842['model']['applyOperation'](_0xef35d5);const _0x12cd76='$elementName',_0x48e115=_0xef35d5['position'],_0x5634f8=_0x4d0842['model']['createRange'](_0x48e115,_0x4d0842['model']['createPositionAt'](_0x48e115['nodeAfter'],'end'));this['markAttributeChange'](_0x5634f8,_0x12cd76,_0x549c5f,_0x4bcc48,{'groupId':_0x1b40cb()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5eb639=_0xef35d5['oldValue'],_0x1893b7=_0xef35d5['newValue'];if(_0x5eb639==_0x1893b7)break;_0x2504c7['batch']['addOperation'](_0xef35d5),_0x4d0842['model']['applyOperation'](_0xef35d5);const _0x4ae710=_0xef35d5['key'];if(!this['_isRegisteredAttribute'](_0x4ae710))break;const _0x4f7251=Lt(_0xef35d5['range'],_0x4d0842['model']);this['markAttributeChange'](_0x4f7251,_0x4ae710,_0x5eb639,_0x1893b7,{'groupId':_0x1b40cb()});break;}case'insert':{_0x2504c7['batch']['addOperation'](_0xef35d5),_0x4d0842['model']['applyOperation'](_0xef35d5);if(_0x10ae87[_0x82c7b3+0x1]&&'move'==_0x10ae87[_0x82c7b3+0x1]['type'])break;const _0x2676a4=_0xef35d5['position'],_0x32b4c6=_0xef35d5['howMany'],_0x356c55=Lt(_0x4d0842['model']['createRange'](_0x2676a4,_0x2676a4['getShiftedBy'](_0x32b4c6)),_0x4d0842['model']);this['markInsertion'](_0x356c55);break;}case'split':{_0x2504c7['batch']['addOperation'](_0xef35d5),_0x4d0842['model']['applyOperation'](_0xef35d5);const _0x14b855=_0xef35d5['splitPosition'],_0x4f4aff=_0xef35d5['moveTargetPosition'];this['markInsertion'](_0x4d0842['model']['createRange'](_0x14b855,_0x4f4aff));break;}case'move':case'remove':_0x2504c7['batch']['addOperation'](_0xef35d5),_0x4d0842['model']['applyOperation'](_0xef35d5);}}for(const _0x369fa9 of _0x50c932)_0x369fa9['detach'](),this['markDeletion'](_0x369fa9);});}['_setSuggestionRange'](_0x1b37b6,_0x101db6){const _0x496741=_0x1b37b6['getFirstMarker']();this['_model']['change'](_0x2c3044=>{_0x2c3044['updateMarker'](_0x496741,{'range':_0x101db6});});}['_addThreadToSuggestion'](_0x4897c2){const _0x2fc595=_0x4897c2['id'],_0x320bee=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2fc595)||this['_commentsRepository']['addCommentThread']({'channelId':_0x320bee,'threadId':_0x2fc595,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cdb42=this['_commentsRepository']['getCommentThread'](_0x2fc595);_0x1cdb42['unbind']('isRemovable'),_0x1cdb42['isRemovable']=!0x1,_0x4897c2['commentThread']=_0x1cdb42;}['_checkSuggestionCorrectness'](_0x2e80d8,_0x32a8b1,_0x5892b9,_0x23d41c){if(_0x2e80d8['type']!=_0x32a8b1||_0x2e80d8['subType']!=_0x5892b9||_0x2e80d8['creator']['id']!=_0x23d41c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3af67d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3a0740,_0x56637e){const _0x21a821=_0x3a0740['getFirstRange']();if(_0x56637e['isEqual'](_0x21a821))_0x3a0740['removeMarkers']();else{if(_0x21a821['containsRange'](_0x56637e)){const _0x42e40a=this['_model']['createPositionAt'](_0x56637e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a0740,this['_model']['createRange'](_0x21a821['start'],_0x42e40a));const _0x2ebc07=_0x1b40cb(),_0x1ace58=_0x3a0740['creator']['id'],_0x4161ce=_0x3a0740['type']+':'+_0x3a0740['subType'];this['_setSuggestionData']({'id':_0x2ebc07,'type':_0x4161ce,'createdAt':new Date(),'authorId':_0x1ace58,'data':_0x3a0740['data'],'attributes':_0x3a0740['attributes']});const _0x5efeec=this['_model']['createPositionAt'](_0x56637e['end']['parent'],'after'),_0x64270a=this['_model']['createRange'](_0x5efeec,_0x21a821['end']);this['_addSuggestionMarker'](_0x4161ce,_0x2ebc07,_0x1ace58,_0x64270a);}else{if(_0x21a821['containsPosition'](_0x56637e['start'])){const _0x5bc789=this['_model']['createPositionAt'](_0x56637e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a0740,this['_model']['createRange'](_0x21a821['start'],_0x5bc789));}else{const _0x3d3176=this['_model']['createPositionAt'](_0x56637e['end']['parent'],'after');this['_setSuggestionRange'](_0x3a0740,this['_model']['createRange'](_0x3d3176,_0x21a821['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x591ad5){for(const {suggestion:_0x1e7ffe,meta:_0x163a2e}of this['_findSuggestions'](_0x591ad5,'insertion')){if(!_0x163a2e['isOwn'])continue;const _0x2f288f=_0x1e7ffe['getRanges']();for(const _0x29d913 of _0x2f288f)if(!_0x591ad5['getDifference'](_0x29d913)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3491e5){return this['editor']['plugins']['get']('Users')['getUser'](_0x3491e5);}['_getExternalAuthor'](_0x2e71de){const _0x5e86d0=this['editor']['plugins']['get']('Users'),_0x7e8ae7=_0x4e7077('external:'+_0x2e71de),_0x3ccdee=_0x5e86d0['getUser'](_0x7e8ae7);return _0x3ccdee||_0x5e86d0['addUser']({'id':_0x7e8ae7,'name':_0x2e71de});}['_createSuggestion'](_0x593f18,_0x5364b3,_0x4a7176,_0x44f8f5,_0x4306fb,_0x145e66){const _0x39817b=this['_getAuthorFromId'](_0x44f8f5);if(!_0x39817b)throw new _0x3af67d('track-changes-user-not-found',this,{'authorId':_0x44f8f5,'suggestionId':_0x4a7176});const _0xe444ac=this['_suggestionFactory']['buildSuggestion'](_0x593f18,_0x5364b3,_0x4a7176,_0x39817b,_0x4306fb,_0x1a2e04=>{this['_updateSuggestionData'](_0x4a7176,{'attributes':_0x1a2e04});const _0x5104c9=this['getSuggestion'](_0x4a7176);this['_joinWithAdjacentSuggestions'](new Set([_0x5104c9])),this['_refreshSuggestionsChain'](new Set([_0x5104c9]));},_0x145e66);return this['listenTo'](_0xe444ac,'accept',()=>{this['_updateSuggestionData'](_0x4a7176,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xe444ac,'discard',()=>{this['_updateSuggestionData'](_0x4a7176,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a7176,_0xe444ac),this['_suggestionState']['set'](_0xe444ac,'notReady'),_0xe444ac;}['_splitMarkerName'](_0xa57c2c){return Gt(_0xa57c2c);}['_breakSuggestionMarker'](_0x2e9e1c,_0x1492a3,_0x569ed4){const _0x2aec28=_0x2e9e1c['getFirstRange'](),_0x156ef6=_0x2aec28['start'],_0x52439e=_0x2aec28['end'];this['_setSuggestionRange'](_0x2e9e1c,this['_model']['createRange'](_0x156ef6,_0x1492a3));const _0xbe4ac7=_0x1b40cb(),_0x322cb4=_0x2e9e1c['creator']['id'],_0x2ea5b1=_0x2e9e1c['type']+(_0x2e9e1c['subType']?':'+_0x2e9e1c['subType']:'');this['_setSuggestionData']({'id':_0xbe4ac7,'type':_0x2ea5b1,'createdAt':new Date(),'authorId':_0x322cb4,'originalSuggestionId':_0x2e9e1c['_originalSuggestionId']||_0x2e9e1c['id'],'attributes':_0x2e9e1c['attributes'],'data':_0x2e9e1c['data']});const _0x47a9db=this['_getAttributeKey'](_0x2e9e1c);('formatBlock'==_0x2e9e1c['type']||_0x47a9db&&this['_isBlockAttribute'](_0x47a9db))&&(_0x569ed4=this['_model']['createPositionBefore'](_0x569ed4['parent'])),this['_addSuggestionMarker'](_0x2ea5b1,_0xbe4ac7,_0x322cb4,this['_model']['createRange'](_0x569ed4,_0x52439e));}['_findSuggestions'](_0x420b55,_0x4cdbac=null){const _0x4dd9e7=[],_0x237a89=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x420b55)||(_0x420b55=[_0x420b55]);for(const _0x2c5393 of this['getSuggestions']()){if(!_0x2c5393['isInContent'])continue;if(_0x4cdbac&&_0x2c5393['type']!=_0x4cdbac)continue;let _0x25249c=!0x1;for(const _0x3766ee of _0x2c5393['getRanges']()){for(const _0x497973 of _0x420b55){const _0x33c0d6=_0x497973['start']['isEqual'](_0x3766ee['end'])||_0x497973['end']['isEqual'](_0x3766ee['start']);if(_0x33c0d6||_0x497973['getIntersection'](_0x3766ee)){const _0x17d231=_0x497973['containsRange'](_0x3766ee)&&zt(this['_model']['schema'],_0x3766ee['start'],_0x497973),_0x43264c=_0x3766ee['containsRange'](_0x497973)&&zt(this['_model']['schema'],_0x497973['start'],_0x3766ee);_0x4dd9e7['push']({'suggestion':_0x2c5393,'meta':{'isOwn':_0x237a89==_0x2c5393['author'],'isNextTo':_0x33c0d6,'isInsideObject':_0x17d231,'containsRangeInObject':_0x43264c}}),_0x25249c=!0x0;break;}}if(_0x25249c)break;}}return _0x4dd9e7;}['_addSuggestionMarker'](_0x2288a9,_0x254eb0,_0x595454,_0x3b6887,_0xa41cba){this['_model']['change'](_0x44f663=>{let _0x284a51='suggestion:'+_0x2288a9+':'+_0x254eb0+':'+_0x595454;_0xa41cba&&(_0x284a51=_0x284a51+':'+_0xa41cba),_0x44f663['addMarker'](_0x284a51,{'range':_0x3b6887,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4d798e){const _0x15e226=_0x4d798e['previous'],_0xe5a886=_0x4d798e['next'];_0x4d798e['previous']=null,_0x4d798e['next']=null,null!=_0x15e226&&_0x15e226['next']==_0x4d798e&&(_0x15e226['next']=_0xe5a886),null!=_0xe5a886&&_0xe5a886['previous']==_0x4d798e&&(_0xe5a886['previous']=_0x15e226),'ready'==this['_suggestionState']['get'](_0x4d798e)&&(this['_suggestionState']['set'](_0x4d798e,'removed'),this['fire']('suggestionUnloaded',_0x4d798e,_0x15e226,_0xe5a886));}['_setSuggestionData'](_0x46855a){const _0xd809ab=_0x46855a['id'],_0xf1339a=this['addSuggestionData'](_0x46855a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4359a3=this['editor']['plugins']['get']('PendingActions'),_0x2f4247=_0xf1339a['hasComments'],_0x5cc338=_0xf1339a['subType']?_0xf1339a['type']+':'+_0xf1339a['subType']:_0xf1339a['type'],_0xbd5ec4=this['editor']['locale'],_0x547ea7=_0x4359a3['add'](o(_0xbd5ec4,'PENDING_ACTION_SUGGESTION')),_0xe7b5a3={'id':_0xd809ab,'type':_0x5cc338,'hasComments':_0x2f4247,'data':_0x46855a['data']||null,'originalSuggestionId':_0x46855a['originalSuggestionId']||null,'attributes':_0xf1339a['attributes']};this['_adapter']['addSuggestion'](_0xe7b5a3)['then'](_0x41bae9=>{_0xf1339a['_saved']=!0x0,_0x4359a3['remove'](_0x547ea7),_0x41bae9&&_0x41bae9['createdAt']&&(this['_suggestions']['get'](_0xd809ab)['createdAt']=_0x41bae9['createdAt']);})['catch'](_0x2fe655=>{throw _0x3060eb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xf1339a['discard']();}),_0xf1339a['stopListening'](),this['_suggestions']['delete'](_0xf1339a['id']),this['_suggestionState']['delete'](_0xf1339a),_0x2fe655;});}return _0xf1339a;}['_isBlockAttribute'](_0x42721a){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x42721a);}['_isInlineAttribute'](_0x51e261){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x51e261);}['_updateSuggestionData'](_0x1a3e9d,_0x2f9c52){const _0x34a106=this['editor']['plugins']['get']('PendingActions'),_0x168dbd=this['getSuggestion'](_0x1a3e9d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x168dbd['_saved']){const _0x128da4=_0x34a106['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1a3e9d,_0x2f9c52)['then'](()=>{_0x34a106['remove'](_0x128da4);});}else _0x168dbd['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1a3e9d,_0x2f9c52);});}}['_getSuggestionData'](_0x708b64){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3af67d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x708b64);}['_handleNewSuggestionMarker'](_0x34225c){const {id:_0x2b15e0,type:_0x1ebe8f,subType:_0x436c2a,authorId:_0x5db6e6}=this['_splitMarkerName'](_0x34225c),_0x186ca3=this['_suggestions']['get'](_0x2b15e0)||this['_createSuggestion'](_0x1ebe8f,_0x436c2a,_0x2b15e0,_0x5db6e6,{});switch(this['_checkSuggestionCorrectness'](_0x186ca3,_0x1ebe8f,_0x436c2a,_0x5db6e6),this['_suggestionState']['get'](_0x186ca3)){case'notReady':this['_getSuggestionData'](_0x2b15e0)['then'](_0x14ac3b=>{let _0x1e7114=Promise['resolve']();_0x14ac3b['hasComments']&&(_0x1e7114=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2b15e0})),_0x1e7114['then'](()=>{this['addSuggestionData'](_0x14ac3b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x186ca3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2b15e0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x186ca3,'ready'),this['fire']('suggestionLoaded',_0x186ca3);break;case'ready':this['fire']('suggestionChanged',_0x186ca3);}return _0x186ca3['addMarkerName'](_0x34225c),_0x186ca3;}['_refreshSuggestionsChain'](_0xd7e384){const _0x272122=Array['from'](_0xd7e384),_0x5213f9=_0x272122['filter'](_0xcdae89=>'attribute'==_0xcdae89['type']);this['_refreshAttributeSuggestionsChain'](_0x5213f9);const _0x142ddd=_0x272122['filter'](_0x2dbc3a=>!_0x2dbc3a['isMultiRange']&&'attribute'!=_0x2dbc3a['type']),_0x1b64c8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7bc142=>!_0x7bc142['isMultiRange']&&'attribute'!=_0x7bc142['type']),_0x3cb071=_0x1b64c8['filter'](_0x15ff38=>!_0xd7e384['has'](_0x15ff38)),_0x166c40=new Map(_0x1b64c8['map'](_0x270de1=>[_0x270de1,this['_suggestionFactory']['getSuggestionCallback'](_0x270de1['type'],_0x270de1['subType'],'chain')])),_0x3b1cb9=new Map(_0x1b64c8['map'](_0x301f2c=>[_0x301f2c,_0x301f2c['getFirstRange']()])),_0x279b52=new Set(),_0x471b35=new Set();for(let _0x14ae5e=0x0;_0x14ae5e<_0x142ddd['length'];_0x14ae5e++)_0x1e38b3(_0x142ddd[_0x14ae5e],_0x142ddd,_0x14ae5e+0x1);for(let _0x18e6a2=0x0;_0x18e6a2<_0x142ddd['length'];_0x18e6a2++)_0x1e38b3(_0x142ddd[_0x18e6a2],_0x3cb071,0x0);const _0xf41752=new Set();for(let _0x4c7de5=0x0;_0x4c7de5<_0x142ddd['length'];_0x4c7de5++){const _0x3ee2f2=_0x142ddd[_0x4c7de5];!_0x471b35['has'](_0x3ee2f2)&&_0x3ee2f2['previous']&&(_0xf41752['add'](_0x3ee2f2['previous']),_0x3ee2f2['previous']['next']===_0x3ee2f2&&(_0x3ee2f2['previous']['next']=null),_0x3ee2f2['previous']=null),!_0x279b52['has'](_0x3ee2f2)&&_0x3ee2f2['next']&&(_0xf41752['add'](_0x3ee2f2['next']),_0x3ee2f2['next']['previous']===_0x3ee2f2&&(_0x3ee2f2['next']['previous']=null),_0x3ee2f2['next']=null);}function _0x1e38b3(_0x323da7,_0x3a37ee,_0x55bdf7){for(let _0x2b0df1=_0x55bdf7;_0x2b0df1<_0x3a37ee['length'];_0x2b0df1++){const _0x1de86c=_0x59f3d0(_0x323da7,_0x3a37ee[_0x2b0df1]);_0x1de86c&&(_0x1de86c[0x0]['next']=_0x1de86c[0x1],_0x1de86c[0x1]['previous']=_0x1de86c[0x0],_0x279b52['add'](_0x1de86c[0x0]),_0x471b35['add'](_0x1de86c[0x1]));}}function _0x59f3d0(_0x45364a,_0x178ffd){if(_0x45364a['author']['id']!==_0x178ffd['author']['id'])return null;const _0xbf70=_0x166c40['get'](_0x45364a)(_0x45364a,_0x178ffd,_0x3b1cb9['get'](_0x45364a),_0x3b1cb9['get'](_0x178ffd));if(!_0xbf70)return null;return _0x166c40['get'](_0x178ffd)(_0x45364a,_0x178ffd,_0x3b1cb9['get'](_0x45364a),_0x3b1cb9['get'](_0x178ffd))?_0xbf70[0x1]['commentThread']&&_0xbf70[0x1]['commentThread']['length']?null:_0xbf70:null;}_0xf41752['size']&&this['_refreshSuggestionsChain'](_0xf41752);}['_refreshAttributeSuggestionsChain'](_0x517789){if(0x0==_0x517789['length'])return;const _0x1afa3b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12458c=>'attribute'==_0x12458c['type']&&_0x12458c['_isDataLoaded']),_0x1dc9eb=[],_0x14ff8d=new Map();for(const _0x26d7fb of _0x1afa3b){const _0x51ccb3=_0x4e7077(_0x26d7fb['attributes']);_0x14ff8d['has'](_0x51ccb3)||(_0x14ff8d['set'](_0x51ccb3,_0x1dc9eb['length']),_0x1dc9eb['push']([]));const _0x4cd1ef=_0x14ff8d['get'](_0x51ccb3);_0x1dc9eb[_0x4cd1ef]['push'](_0x26d7fb);}!(function(){_0x1dc9eb['sort']((_0x4b9f77,_0x577bbb)=>{const _0x313426=_0x4b9f77[0x0]['createdAt'],_0x2b41a5=_0x577bbb[0x0]['createdAt'];return _0x313426==_0x2b41a5?_0x4b9f77[0x0]['attributes']['groupId']<_0x577bbb[0x0]['attributes']['groupId']?-0x1:0x1:_0x313426<_0x2b41a5?-0x1:0x1;});for(const _0x50039e of _0x1dc9eb)_0x50039e['sort']((_0x28cd8c,_0x4cd65b)=>_0x28cd8c['id']<_0x4cd65b['id']?-0x1:0x1);}());for(let _0x34458a=0x0;_0x34458a<_0x1dc9eb['length'];_0x34458a++){if(0x0==_0x1dc9eb[_0x34458a]['length'])continue;const _0x10e68d=[];for(let _0x5f436b=_0x34458a+0x1;_0x5f436b<_0x1dc9eb['length'];_0x5f436b++)0x0!=_0x1dc9eb[_0x5f436b]['length']&&_0x13e687(_0x1dc9eb[_0x34458a],_0x1dc9eb[_0x5f436b])&&_0x10e68d['push'](_0x5f436b);for(const _0x2d60b3 of _0x10e68d)_0x1dc9eb[_0x34458a]=_0x1dc9eb[_0x34458a]['concat'](_0x1dc9eb[_0x2d60b3]),_0x1dc9eb[_0x2d60b3]=[];}for(const _0x4a914d of _0x1dc9eb)for(let _0x26cdc7=0x0;_0x26cdc7<_0x4a914d['length'];_0x26cdc7++){const _0x4a13b1=_0x4a914d[_0x26cdc7+0x1]||null;_0x4a914d[_0x26cdc7]['next']!==_0x4a13b1&&(_0x4a914d[_0x26cdc7]['next']=_0x4a13b1);}for(const _0x387b04 of _0x1dc9eb)for(let _0x36a3d1=0x0;_0x36a3d1<_0x387b04['length'];_0x36a3d1++){const _0x26d426=_0x387b04[_0x36a3d1-0x1]||null;_0x387b04[_0x36a3d1]['previous']!==_0x26d426&&(_0x387b04[_0x36a3d1]['previous']=_0x26d426);}function _0x13e687(_0x596b20,_0x16ec38){if(_0x596b20[0x0]['attributes']['groupId']!==_0x16ec38[0x0]['attributes']['groupId']&&_0x596b20[0x0]['author']!==_0x16ec38[0x0]['author'])return!0x1;if(!function(_0x382d26,_0x3d9bc7){if(!_0x382d26['hasComments']&&!_0x3d9bc7['hasComments'])return!0x0;if(_0x382d26['hasComments']&&_0x3d9bc7['hasComments'])return!0x1;if(_0x382d26['hasComments']&&_0x3d9bc7['createdAt']<_0x382d26['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3d9bc7['hasComments']&&_0x382d26['createdAt']<_0x3d9bc7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x596b20[0x0],_0x16ec38[0x0]))return!0x1;const _0x5c8b9e=Pt(_0x596b20[0x0]['attributes'],['groupId','trackingSessionId']),_0x204816=Pt(_0x16ec38[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x17bc28(_0x5c8b9e,_0x204816))return!0x1;if(_0x596b20[0x0]['attributes']['groupId']==_0x16ec38[0x0]['attributes']['groupId'])return!0x0;if(_0x596b20[0x0]['attributes']['trackingSessionId']!==_0x16ec38[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x596b20['every'](_0x53d095=>_0x16ec38['some'](_0x5540d5=>_0x53d095['getFirstRange']()['isEqual'](_0x5540d5['getFirstRange']())))&&_0x16ec38['every'](_0x232f97=>_0x596b20['some'](_0x56e330=>_0x232f97['getFirstRange']()['isEqual'](_0x56e330['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1c2b90){const _0x3a4550=Array['from'](_0x1c2b90),_0xc5a849=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f80cb=_0xc5a849['filter'](_0x4cef56=>!_0x1c2b90['has'](_0x4cef56)),_0x1c2782=new Map(_0x3a4550['map'](_0x43fe1b=>[_0x43fe1b,this['_suggestionFactory']['getSuggestionCallback'](_0x43fe1b['type'],_0x43fe1b['subType'],'join')])),_0x33a854=new Map(_0xc5a849['map'](_0x251426=>[_0x251426,_0x251426['getRanges']()]));for(let _0x1137b1=0x0;_0x1137b1<_0x3a4550['length'];_0x1137b1++){if(_0x30306e(this,_0x3a4550[_0x1137b1],_0x3a4550,_0x1137b1+0x1))return!0x0;}for(let _0x57b3c0=0x0;_0x57b3c0<_0x3a4550['length'];_0x57b3c0++){if(_0x30306e(this,_0x3a4550[_0x57b3c0],_0x4f80cb,0x0))return!0x0;}return!0x1;function _0x30306e(_0x1b3363,_0x1b2e8b,_0x4d7f03,_0x4d6057){for(let _0x5acb92=_0x4d6057;_0x5acb92<_0x4d7f03['length'];_0x5acb92++){const _0x4624bf=_0x4d7f03[_0x5acb92];if(_0x4624bf['type']!==_0x1b2e8b['type']||_0x4624bf['author']['id']!==_0x1b2e8b['author']['id']||_0x4624bf['subType']!==_0x1b2e8b['subType'])continue;if(!en(_0x1b2e8b,_0x4624bf))continue;if('attribute'==_0x1b2e8b['type']&&_0x1b2e8b['data']['oldValue']!=_0x4624bf['data']['oldValue'])continue;if('attribute'==_0x1b2e8b['type']&&_0x1b3363['_isBlockAttribute'](_0x1b2e8b['data']['key']))continue;if('formatBlock'==_0x1b2e8b['type']){const _0x5a5c70=_0x1b3363['editor']['model'],_0x4b6a85=_0x1b2e8b['getContainedElement']();if(_0x4b6a85&&(_0x5a5c70['schema']['isObject'](_0x4b6a85)||_0x5a5c70['schema']['isLimit'](_0x4b6a85)))continue;}const _0x325741=_0x1c2782['get'](_0x1b2e8b),_0x36305b=_0x33a854['get'](_0x1b2e8b),_0x58b020=_0x33a854['get'](_0x4624bf),_0x5ba131=_0x1b2e8b['commentThread']&&_0x1b2e8b['commentThread']['length'],_0x17cafa=_0x4624bf['commentThread']&&_0x4624bf['commentThread']['length'];if(!_0x5ba131&&_0x325741(_0x58b020,_0x36305b))return _0x1b3363['_joinSuggestions'](_0x4624bf,_0x1b2e8b),_0x33a854['delete'](_0x1b2e8b),!0x0;if(!_0x17cafa&&_0x325741(_0x36305b,_0x58b020))return _0x1b3363['_joinSuggestions'](_0x1b2e8b,_0x4624bf),_0x33a854['delete'](_0x4624bf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x30827b,_0x3f9ccb){if(_0x30827b['isMultiRange']){for(const _0x4764a7 of _0x3f9ccb['getRanges']())_0x30827b['addRange'](_0x4764a7);}else{const _0x2ee889=_0x3f9ccb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x30827b,this['_model']['createRange'](_0x30827b['getFirstRange']()['start'],_0x2ee889));}_0x3f9ccb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x29d9ef,_0x34d748,_0x19b251){const _0x2d61d9=_0x29d9ef['startsWith']('format')||_0x29d9ef['startsWith']('attribute')?'FORMATTING':_0x29d9ef['toUpperCase']();return o(this['editor']['locale'],_0x34d748+'_'+_0x2d61d9+'_SUGGESTION_ANNOUNCEMENT',_0x19b251);}['_initAriaMarkerChangeAnnouncements'](){const _0x600ee8=this['editor'];if(!_0x600ee8['ui'])return;const {ariaLiveAnnouncer:_0x55f947}=_0x600ee8['ui'];_0x5e6c03(this['_model'],({left:_0x2c6c93,entered:_0x578c37})=>{for(const _0x10db28 of _0x2c6c93){const {group:_0x2b9e7,type:_0x1cd49b}=this['_splitMarkerName'](_0x10db28['name']);if('suggestion'===_0x2b9e7){_0x55f947['announce'](this['_getMarkerAnnouncementText'](_0x1cd49b,'LEAVE'));break;}}for(const _0x38efff of _0x578c37){const {group:_0x2deb8f,type:_0x34db7c}=this['_splitMarkerName'](_0x38efff['name']);if('suggestion'===_0x2deb8f){_0x55f947['announce'](this['_getMarkerAnnouncementText'](_0x34db7c,'ENTER',_0xa1761a(_0x1b6a62)));break;}}});}['_processAttributeChanges'](_0x3fa85d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2337a8=this['editor'],_0x1cf03e=_0x2337a8['model']['document']['differ']['getChanges']();if(0x0==_0x1cf03e['length'])return!0x1;const _0x29ccea=[],_0x53d89c=_0x1cf03e['filter'](_0x280f9f=>'attribute'==_0x280f9f['type']),_0xa70639=_0x1cf03e['filter'](_0x117f4c=>'insert'==_0x117f4c['type']&&'$text'!=_0x117f4c['name']),_0x2cfbda=_0x1cf03e['filter'](_0x264991=>'remove'==_0x264991['type']&&'$text'!=_0x264991['name']);for(const _0x3044e1 of _0x53d89c)_0x29ccea['push']({'key':_0x3044e1['attributeKey'],'newValue':_0x3044e1['attributeNewValue'],'oldValue':_0x3044e1['attributeOldValue'],'range':Zt(_0x3044e1['range'],_0x2337a8['model'])});for(const _0x274019 of _0xa70639){const _0x17e263=_0x2cfbda['find'](_0x49a601=>_0x49a601['position']['isEqual'](_0x274019['position']));_0x17e263&&_0x29ccea['push']({'key':m,'newValue':_0x274019['name'],'oldValue':_0x17e263['name'],'range':_0x2337a8['model']['createRangeOn'](_0x274019['position']['nodeAfter'])});}return 0x0!=_0x29ccea['length']&&this['_reduceExistingSuggestions'](_0x3fa85d,_0x29ccea);}['_processAttributeSuggestions'](_0x22ecaa){let _0x2b0432=!0x1;const _0x41bb1e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x543058=>_0x543058['data']['newRange']&&_0x543058['name']['startsWith']('suggestion:attribute:'));for(const _0x12030c of _0x41bb1e){const {subType:_0x3c8b2a,id:_0xb75024}=this['_splitMarkerName'](_0x12030c['name']),_0x206f14=_0x3c8b2a['split']('|')[0x0];for(const _0x348a3e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x348a3e['id']!=_0xb75024&&'attribute'==_0x348a3e['type']&&_0x348a3e['data']&&_0x348a3e['data']['key']==_0x206f14&&_0x348a3e['getFirstRange']()['isIntersecting'](_0x12030c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x348a3e,_0x12030c['data']['newRange'],_0x22ecaa),_0x2b0432=!0x0);}return _0x2b0432;}['recordAttributeChanges'](_0x13055f){this['_recordAttributeSuggestions']=!0x0,_0x13055f();}['_isRegisteredAttribute'](_0x14e62a){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x14e62a);}['_reduceExistingSuggestions'](_0x1ec788,_0x100208){if(0x0==_0x100208['length'])return!0x1;let _0x52b98d=!0x1;for(const _0x276d5f of _0x100208){const _0x140c64=this['_findSuggestions'](_0x276d5f['range'],'attribute')['filter'](_0xdbf79a=>!_0xdbf79a['meta']['isNextTo'])['map'](_0x209535=>_0x209535['suggestion']),_0x24c9ec=_0x4e7077({'newValue':_0x276d5f['newValue']});_0x140c64['filter'](_0xda2094=>{const [_0x15b873,_0x13d2de]=_0xda2094['subType']['split']('|');return _0x15b873==_0x276d5f['key']&&_0x13d2de!=_0x24c9ec;})['forEach'](_0x3a436c=>{this['_reduceSuggestionAttributeRange'](_0x3a436c,_0x276d5f['range'],_0x1ec788),_0x52b98d=!0x0;});}return _0x52b98d;}['_reduceSuggestionAttributeRange'](_0x478c4d,_0xa6b444,_0x4f05ab){const _0x22a45a=_0x478c4d['getFirstRange']()['getDifference'](_0xa6b444);0x0!==_0x22a45a['length']?0x1!==_0x22a45a['length']?this['_breakSuggestionMarker'](_0x478c4d,_0xa6b444['start'],_0xa6b444['end']):this['_setSuggestionRange'](_0x478c4d,_0x22a45a[0x0]):_0x4f05ab['removeMarker'](_0x478c4d['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x37296d){this['_editor']=_0x37296d,this['_model']=_0x37296d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x43c795,_0x4db1ae,_0x3a5bd4,_0x5921c7,_0x16f3b4,_0x433877,_0x1f13d5){return new x(this['_model'],{'type':_0x43c795,'subType':_0x4db1ae,'id':_0x3a5bd4,'originalSuggestionId':_0x1f13d5,'author':_0x5921c7,'creator':_0x5921c7,'attributes':_0x16f3b4,'onAttributesChange':_0x433877,'onAccept':(..._0x3942dc)=>this['getSuggestionCallback'](_0x43c795,_0x4db1ae,'accept')(..._0x3942dc),'onDiscard':(..._0x252000)=>this['getSuggestionCallback'](_0x43c795,_0x4db1ae,'discard')(..._0x252000)});}['registerCustomCallback'](_0x381466,_0x5baaa2,_0x5902c8,_0x5d67a0){const _0x5b10ab=_0x381466+':'+_0x5baaa2+':'+_0x5902c8;this['_customCallbacks']['set'](_0x5b10ab,_0x5d67a0);}['getSuggestionCallback'](_0x5cc5c0,_0x31f964,_0x1df24f){const _0x5ec51b=_0x5cc5c0+':'+_0x31f964+':'+_0x1df24f;return this['_customCallbacks']['get'](_0x5ec51b)||this['_defaultCallbacks']['get'](_0x5cc5c0+':'+_0x1df24f);}['_registerDefaultCallbacks'](){const _0x1fe380=()=>!0x1,_0x28746c=_0x43b563=>{_0x43b563['sort']((_0x327a43,_0x46c7e2)=>_0x327a43['start']['isBefore'](_0x46c7e2['start'])?0x1:-0x1),this['_model']['change'](_0x2cda04=>{for(const _0x3947af of _0x43b563){let _0x5c3dda;_0x5c3dda=_0x3947af['end']['isAtEnd']&&_0x3947af['end']['parent']==_0x3947af['start']['nodeAfter']?_0x2cda04['createSelection'](_0x3947af['start']['nodeAfter'],'on'):_0x2cda04['createSelection'](_0x3947af),this['_model']['deleteContent'](_0x5c3dda,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x505164=(_0x518239,_0xb95d1c)=>{_0xb95d1c&&this['_model']['change'](_0x58c55a=>{const {commandName:_0x51bd4d,commandParams:_0x5cc4d0=[]}=_0xb95d1c,_0x2ad792=_0x518239['map'](_0x5620a6=>(Kt(_0x5620a6)&&(_0x5620a6=this['_model']['createRange'](_0x5620a6['end'])),_0x5620a6))['filter'](_0x7b83eb=>'$graveyard'!==_0x7b83eb['root']['rootName']);if(_0x2ad792['length']<0x1)return;const _0x1f7a5f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4df8a9=>_0x4e8d2f['fromRange'](_0x4df8a9));_0x58c55a['setSelection'](_0x2ad792);for(const _0x3c8c32 of this['_editor']['commands']['commands']())_0x3c8c32['refresh']();_0x5cc4d0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x51bd4d,..._0x5cc4d0);const _0x269933=_0x1f7a5f['filter'](_0xe860ec=>'$graveyard'!=_0xe860ec['root']['rootName']);_0x269933['length']>0x0&&_0x58c55a['setSelection'](_0x269933);for(const _0xf4a356 of _0x1f7a5f)_0xf4a356['detach']();});},_0x41740a=(_0x11cba6,_0x367cd5)=>0x1==_0x11cba6['length']&&0x1==_0x367cd5['length']&&_0x11cba6[0x0]['end']['isEqual'](_0x367cd5[0x0]['start']),_0x4f006b=(_0x4ad14a,_0x108c3b,_0x23f6ad,_0x3c621e)=>nn(_0x4ad14a,_0x108c3b,_0x23f6ad,_0x3c621e)?[_0x4ad14a,_0x108c3b]:nn(_0x108c3b,_0x4ad14a,_0x3c621e,_0x23f6ad)?[_0x108c3b,_0x4ad14a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1fe380),this['_defaultCallbacks']['set']('insertion:discard',_0x28746c),this['_defaultCallbacks']['set']('insertion:join',_0x41740a),this['_defaultCallbacks']['set']('insertion:chain',_0x4f006b),this['_defaultCallbacks']['set']('deletion:accept',_0x28746c),this['_defaultCallbacks']['set']('deletion:discard',_0x1fe380),this['_defaultCallbacks']['set']('deletion:join',_0x41740a),this['_defaultCallbacks']['set']('deletion:chain',_0x4f006b),this['_defaultCallbacks']['set']('formatInline:accept',_0x505164),this['_defaultCallbacks']['set']('formatInline:discard',_0x1fe380),this['_defaultCallbacks']['set']('formatInline:join',_0x41740a),this['_defaultCallbacks']['set']('formatInline:chain',_0x1fe380),this['_defaultCallbacks']['set']('formatBlock:accept',_0x505164),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1fe380),this['_defaultCallbacks']['set']('formatBlock:join',_0x41740a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1fe380),this['_defaultCallbacks']['set']('attribute:accept',_0x1fe380),this['_defaultCallbacks']['set']('attribute:discard',(_0x48cd69,_0xdd5baf)=>{if(!_0xdd5baf)return;const _0x1a1501=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xee3ed6=>{if(_0xdd5baf['key']==m)for(const _0x54161b of _0x48cd69){const _0x268d02=_0x54161b['start']['nodeAfter'],_0x52d7bd=_0xdd5baf['oldValue'];_0xee3ed6['rename'](_0x268d02,_0x52d7bd);}else{if(_0x1a1501['_isBlockAttribute'](_0xdd5baf['key'])){for(const _0x2087f6 of _0x48cd69)void 0x0!==_0xdd5baf['oldValue']?_0xee3ed6['setAttribute'](_0xdd5baf['key'],_0xdd5baf['oldValue'],_0x2087f6['start']['nodeAfter']):_0xee3ed6['removeAttribute'](_0xdd5baf['key'],_0x2087f6['start']['nodeAfter']);}else{for(const _0x175404 of _0x48cd69)_0xdd5baf['oldValue']?_0xee3ed6['setAttribute'](_0xdd5baf['key'],_0xdd5baf['oldValue'],_0x175404):_0xee3ed6['removeAttribute'](_0xdd5baf['key'],_0x175404);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x41740a);}}function zt(_0x427e8a,_0xc5477a,_0x110055){for(const _0x141406 of _0xc5477a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x141406['root']==_0x141406)return!0x1;if(!_0x110055['containsItem'](_0x141406))return!0x1;if(_0x427e8a['isObject'](_0x141406)||_0x427e8a['isLimit'](_0x141406))return!0x0;}return!0x1;}function Kt(_0x417901){return _0x417901['end']['parent']==_0x417901['start']['nodeAfter']&&_0x417901['end']['isAtStart'];}function Wt(_0x55b211,_0x2c0309,_0x16d60e,_0x4bf137){const _0x4abf14=_0x1eff04=>!_0x1eff04['item']['is']('$textProxy')&&!_0x4bf137['isObject'](_0x1eff04['item']),_0xf1e7be=_0x55b211['start']['getLastMatchingPosition'](_0x4abf14),_0x1827a0=_0x55b211['end']['getLastMatchingPosition'](_0x4abf14,{'direction':'backward'});return(!_0x55b211['start']['isEqual'](_0xf1e7be)||!_0x55b211['end']['isEqual'](_0x1827a0))&&(_0xf1e7be['isBefore'](_0x1827a0)?_0x16d60e['updateMarker'](_0x2c0309,{'range':_0x16d60e['createRange'](_0xf1e7be,_0x1827a0)}):_0x16d60e['removeMarker'](_0x2c0309),!0x0);}function Ht(_0x2396c2){return _0x4e7077(_0x2396c2);}function Qt(_0x3c8008){const _0x1b4e4e=_0x3c8008['start']['nodeAfter'];return _0x1b4e4e&&_0x1b4e4e['is']('element');}function Xt(_0x5d18e2){return Kt(_0x5d18e2)||function(_0x2d09df){return _0x2d09df['start']['parent']==_0x2d09df['end']['nodeBefore']&&_0x2d09df['start']['isAtEnd'];}(_0x5d18e2);}function Yt(_0x4063d4,_0x1134ed){try{const _0x750d5a=_0x4063d4['getRange']();for(const _0x5830fa of _0x1134ed)if(_0x4063d4!==_0x5830fa&&_0x750d5a&&_0x750d5a['isIntersecting'](_0x5830fa['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x530ff2,_0x42317b){return null==_0x530ff2['end']['nodeBefore']&&_0x530ff2['end']['parent']==_0x530ff2['start']['nodeAfter']?tn(_0x530ff2['start']['nodeAfter'],_0x42317b):_0x530ff2;}function tn(_0x2bc81c,_0x14245a){const _0x3df940=_0x14245a['schema']['isObject'](_0x2bc81c)||_0x14245a['schema']['isSelectable'](_0x2bc81c);return _0x14245a['createRange'](_0x14245a['createPositionAt'](_0x2bc81c,'before'),_0x3df940?_0x14245a['createPositionAfter'](_0x2bc81c):_0x14245a['createPositionAt'](_0x2bc81c,'end'));}function nn(_0x222957,_0x2c77d7,_0x4d260b,_0x29c325){return!!en(_0x222957,_0x2c77d7)&&_0x4d260b['end']['isEqual'](_0x29c325['start']);}function en(_0x311d49,_0x4e3da3){if(!_0x311d49['_isDataLoaded']||!_0x4e3da3['_isDataLoaded'])return!0x1;const _0x44132a=new Set(Object['keys'](_0x311d49['attributes'])),_0x471b32=new Set(Object['keys'](_0x4e3da3['attributes']));if(_0x44132a['delete']('groupId'),_0x471b32['delete']('groupId'),0x0==_0x44132a['size']&&0x0==_0x471b32['size'])return!0x0;if(_0x44132a['size']!=_0x471b32['size'])return!0x1;const _0x5c6b0c={..._0x311d49['attributes']},_0x1bd031={..._0x4e3da3['attributes']};return delete _0x5c6b0c['groupId'],delete _0x1bd031['groupId'],JSON['stringify'](_0x5c6b0c)==JSON['stringify'](_0x1bd031);}function sn(_0x3a1c72,_0x32f9ea){const _0x5abe5f=on(_0x3a1c72['attributes']),_0x2ac53c=on(_0x32f9ea);if(!_0x3a1c72['_isDataLoaded'])return!0x1;for(const _0x397fd4 of Object['keys'](_0x2ac53c))if(!_0x17bc28(_0x5abe5f[_0x397fd4],_0x2ac53c[_0x397fd4]))return!0x1;return!0x0;}function on(_0x4e41dd){const _0x257216=Object['assign']({},_0x4e41dd);return delete _0x257216['skipNestingCheck'],delete _0x257216['tablePasteChainId'],_0x257216;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x100ed4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3aa603,_0x436637,_0x393ef6,_0x376885){super(),this['model']=_0x436637,this['view']=_0x393ef6,this['commentThreadController']=_0x376885,this['_editor']=_0x3aa603,this['_acceptCommand']=_0x3aa603['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3aa603['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4547a3,_0x4377ff)=>_0x4547a3||_0x4377ff),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x50ee9b=>_0x50ee9b&&this['_editor']['model']['canEditAt'](_0x436637['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5a86a0=>_0x5a86a0&&this['_editor']['model']['canEditAt'](_0x436637['getRanges']())),this['_pendingAction']=null,_0x393ef6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x393ef6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x393ef6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x393ef6,'change:isDirty',()=>{_0x393ef6['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 _0x161e05=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x161e05);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4f0c5a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x20cf07,_0x5815d8,_0xa727de,_0x35be90){super(_0x20cf07),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x27f902(_0x20cf07,o(_0x20cf07,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5815d8['authoredAt']),this['bind']('authoredAt')['to'](_0x5815d8),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',_0x5815d8,'authoredAt',this,'descriptionParts',(_0x170423,_0x561da0,_0x36a3a9)=>{const _0x5eaf3e=_0x36a3a9['map'](_0x25f0fc=>ls(_0x25f0fc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x170423-0x1,_0x5815d8['author']['name'],_0x561da0?_0x35be90['formatDateTime'](_0x561da0):'',new DOMParser()['parseFromString'](_0x5eaf3e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x564b81(),this['focusTracker']=new _0x475bef(),this['keystrokes']=new _0xd3b6aa(),this['focusCycler']=new _0x1bf675({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x469acb=>_0x469acb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5815d8,this['_localUser']=_0xa727de,this['_config']=_0x35be90,_0x35be90['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5117fc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x14c43d}=this['_config'];this['commentsListView']=new _0x14c43d(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',_0x331891=>_0x331891+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2dcb56,_0x431891)=>_0x2dcb56||!!_0x431891);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xcfb556}=this['_config'],_0x4cc24e=new _0xcfb556(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5f078f=_0x4cc24e['commentInputView'];return _0x4cc24e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5f078f,'value',(_0x5d99f0,_0x1223fd,_0x882841)=>!!_0x882841||_0x5d99f0&&!_0x1223fd),_0x5f078f['on']('submit',(_0x278fc0,_0x2b8daf)=>{this['fire']('addComment',_0x2b8daf),_0x5f078f['editor']['setData']('');}),_0x5f078f['on']('cancel',()=>this['focus']()),_0x5f078f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4cc24e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xe58e88,_0x1d88be,_0x18dbd7,_0x4a862e){super(_0xe58e88,_0x1d88be,_0x18dbd7,_0x4a862e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4fdafe=>_0x4fdafe&&_0x4fdafe[0x0]?_0x4fdafe[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4c96d6,_0x1c109c)=>{let _0x92ed4a='';for(const _0x3adc8f of _0x4c96d6)_0x92ed4a+='<p>'+ls(_0x3adc8f['content'],_0x3adc8f['color'])+'</p>';return _0x1c109c?_0x92ed4a:_0x1bba9f(_0x92ed4a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4a862e['SuggestionView'](_0xe58e88,_0x1d88be,{'formatDateTime':_0x4a862e['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 _0x4a0be5=this['bindTemplate'],_0x593d30=[this['suggestionView']];return this['commentsListView']&&_0x593d30['push'](this['commentsListView']),this['commentThreadInputView']&&_0x593d30['push'](this['commentThreadInputView']),_0x593d30['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4a0be5['if']('isActive','ck-suggestion-wrapper--active'),_0x4a0be5['to']('type',_0x2755c4=>'ck-suggestion-'+_0x2755c4),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':_0x4a0be5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x593d30};}['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 _0x4f0c5a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x52979a,_0x2cf9e5,_0x24b18c){super(_0x52979a),this['_model']=_0x2cf9e5,this['_config']=_0x24b18c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2cf9e5),this['acceptButton']=this['_createButton'](o(_0x52979a,'Accept\x20suggestion'),_0x162664,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x52979a,'Discard\x20suggestion'),_0x293ee5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3702a2(_0x52979a,_0x2cf9e5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x564b81([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x475bef(),this['keystrokes']=new _0xd3b6aa(),this['focusCycler']=new _0x1bf675({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x6e1978=>_0x6e1978['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4e2253=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4e2253['innerHTML']=this['description'],this['on']('change:description',(_0x1dcea7,_0x1ec7d7,_0x1e78a0)=>{_0x4e2253['innerHTML']=_0x1e78a0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x80211e=this['bindTemplate'],_0x4e1015=[{'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':_0x80211e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x80211e['to']('authoredAt',_0x51ea40=>this['_config']['formatDateTime'](_0x51ea40))}]}]},{'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']&&_0x4e1015['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':_0x4e1015}]};}['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'](_0x3c767b,_0x64874c,_0x35495c,_0x593070,_0x59916a){const _0x5ad210=new _0x2efbd0(this['locale']);return _0x5ad210['set']({'label':_0x3c767b,'icon':_0x64874c,'tooltip':!0x0,'tooltipPosition':_0x59916a}),_0x5ad210['extendTemplate']({'attributes':{'class':_0x35495c}}),_0x5ad210['on']('execute',()=>{this['fire'](_0x593070,this['_model']['id']);}),_0x5ad210;}['_setupKeyboardNavigation'](){const _0x4f2da8=this['element'];this['keystrokes']['listenTo'](_0x4f2da8);for(const _0x10728f of this['focusables'])this['focusTracker']['add'](_0x10728f['element']),this['keystrokes']['listenTo'](_0x10728f['element']);this['keystrokes']['set']('enter',(_0x3782dc,_0x350f48)=>{_0x4f2da8===_0x3782dc['target']&&(this['focusCycler']['focusFirst'](),_0x350f48());}),this['keystrokes']['set']('esc',(_0x16ba0d,_0x40687a)=>{_0x4f2da8!==_0x16ba0d['target']&&(this['focus'](),_0x40687a());});}}class u extends _0x1f77b7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3966e5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x262b04){super(_0x262b04),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32448d=this['editor']['config'];_0x32448d['define']('trackChanges.SuggestionThreadView',fe),_0x32448d['define']('trackChanges.SuggestionView',we),_0x32448d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32448d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x45b9b8,_0x36b688){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5b7736,_0x3b6942]of this['_handleControllerBuffer']){const _0x591d1a=this['_suggestionToController']['has'](_0x5b7736);_0x591d1a||_0x3b6942?_0x591d1a&&_0x3b6942&&this['_destroyController'](_0x5b7736):this['_initializeController'](_0x5b7736);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x45b9b8,_0x36b688);}['init'](){const _0x584381=this['editor'],_0x3ea807=_0x584381['plugins']['get']('TrackChangesEditing'),_0x513427=_0x584381['plugins']['get']('Annotations'),_0x39aa17=_0x584381['plugins']['get']('EditorAnnotations'),_0x2a08f5=_0x584381['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x39aa17['addSourceCollector'](()=>{const _0x53f141=[];for(const [_0x5e1980,_0x142ec0]of Array['from'](this['_suggestionToController'])){const _0x39c3aa=_0x5e1980['getAllAdjacentSuggestions'](),_0x59ee0b=[];for(const _0x7243f7 of _0x39c3aa){if(!_0x7243f7['isInContent'])continue;if(_0x7243f7['isMultiRange']){_0x59ee0b['push'](..._0x7243f7['getRanges']());continue;}const _0x26c4dd=_0x7243f7['getFirstRange']();if(_0x59ee0b['length']>0x0){const _0x295f4d=_0x59ee0b[0x0]['getJoined'](_0x26c4dd);if(_0x295f4d){_0x59ee0b[0x0]=_0x295f4d;continue;}}_0x59ee0b['push'](_0x26c4dd);}_0x53f141['push']([_0x142ec0['view'],_0x59ee0b]);}return _0x53f141;}),this['listenTo'](_0x3ea807,'suggestionLoaded',(_0x208f54,_0x36fc60)=>{this['listenTo'](_0x36fc60,'change:previous',(_0x3a8307,_0x1e2463,_0x2ebf10,_0x2f7aa1)=>{_0x36fc60['isInContent']&&(null==_0x2ebf10?(this['_updateController'](_0x2f7aa1['head']),this['_handleSuggestionControllerDelayed'](_0x36fc60,!0x1)):(this['_updateController'](_0x2ebf10['head']),null==_0x2f7aa1&&this['_handleSuggestionControllerDelayed'](_0x36fc60,!0x0)));}),null!==_0x36fc60['previous']?this['_updateController'](_0x36fc60['head']):this['_handleSuggestionControllerDelayed'](_0x36fc60,!0x1);}),this['listenTo'](_0x3ea807,'suggestionUnloaded',(_0x2b7b94,_0x375570,_0x3c061d)=>{this['stopListening'](_0x375570,'change:previous'),this['_handleControllerBuffer']['delete'](_0x375570),this['_suggestionToController']['has'](_0x375570)&&this['_destroyController'](_0x375570),_0x3c061d&&this['_updateController'](_0x3c061d['head']);}),this['listenTo'](_0x3ea807,'suggestionChanged',(_0x56c662,_0x40ca28)=>{this['_updateController'](_0x40ca28);}),this['listenTo'](_0x513427,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a08f5,'addComment',(_0x3d6385,{threadId:_0x3a5c78,isFromAdapter:_0x1b7da0})=>{if(_0x1b7da0||!_0x3ea807['hasSuggestion'](_0x3a5c78))return;const _0x4cbeb6=_0x3ea807['getSuggestion'](_0x3a5c78);this['_suggestionToController']['get'](_0x4cbeb6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ca659=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d067b;for(const _0x5a5e2b in _0x1ca659){const _0x30792e=_0x5a5e2b,_0x2f1351=_0x1ca659[_0x30792e];if('trackChangesLicenseKeyValid'==_0x2f1351||'trackChangesLicenseKeyInvalid'==_0x2f1351||'trackChangesLicenseKeyExpired'==_0x2f1351||'trackChangesLicenseKeyDomainLimit'==_0x2f1351||'trackChangesLicenseKeyNotAllowed'==_0x2f1351||'trackChangesLicenseKeyEvaluationLimit'==_0x2f1351||'trackChangesLicenseKeyTrialLimit'==_0x2f1351||'trackChangesLicenseKeyUsageLimit'==_0x2f1351){delete _0x1ca659[_0x30792e],_0x2d067b=_0x2f1351,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2d067b&&_0x1ca659['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2d067b&&_0x1ca659['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2d067b&&_0x1ca659['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2d067b&&_0x1ca659['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2d067b&&_0x1ca659['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2d067b&&_0x1ca659['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2d067b&&_0x1ca659['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3d7309){const _0x3e520e=this['_suggestionToController']['get'](_0x3d7309);if(!_0x3e520e)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3e520e['view'])||null;}['getSuggestionForAnnotation'](_0x5abda1){const _0x268db6=this['_viewToController']['get'](_0x5abda1['innerView']);return _0x268db6?_0x268db6['model']:null;}['_refreshActiveMarkers'](){const _0x53544e=this['editor']['plugins']['get']('Annotations'),_0x165d29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1044cb=Array['from'](_0x53544e['activeAnnotations'],_0x4b1998=>_0x4b1998['innerView'])['filter'](_0x17d41a=>this['_viewToController']['has'](_0x17d41a)),_0x5832df=[];for(const _0x57acb1 of _0x1044cb){const _0x50e97b=this['_viewToController']['get'](_0x57acb1)['model']['getAllAdjacentSuggestions']();_0x5832df['push'](..._0x50e97b['reduce']((_0x93085e,_0xa21a72)=>[..._0x93085e,..._0xa21a72['getMarkerNames']()],[]));}_0x165d29['activeMarkers']=_0x5832df;}['_addUIComponentsToFactory'](){const _0x5e6f2d=this['editor'],_0x366201=_0x5e6f2d['locale'],_0x358b98=o(_0x366201,'Track\x20changes'),_0x5f4912=new _0x57b94d([{'type':'switchbutton','model':new _0x135ece({'withText':!0x0,'isToggleable':!0x0,'label':_0x358b98,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x135ece({'withText':!0x0,'label':o(_0x366201,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x135ece({'withText':!0x0,'label':o(_0x366201,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x135ece({'withText':!0x0,'label':o(_0x366201,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x135ece({'withText':!0x0,'label':o(_0x366201,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5e6f2d['plugins']['has']('TrackChangesPreview')&&_0x5f4912['addMany']([{'type':'separator'},{'type':'button','model':new _0x135ece({'withText':!0x0,'label':o(_0x366201,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x463a1a of _0x5f4912)if(ke(_0x463a1a)){const _0x144c2d=_0x5e6f2d['commands']['get'](_0x463a1a['model']['commandName']);_0x463a1a['model']['bind']('isOn','isEnabled')['to'](_0x144c2d,'value','isEnabled');}_0x5e6f2d['ui']['componentFactory']['add']('trackChanges',_0x4e373e=>this['_createToolbarButton'](_0x4e373e,_0x5f4912,_0x358b98)),_0x5e6f2d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x547436=>this['_createMenuBarMenu'](_0x547436,_0x5f4912,_0x358b98));}['_createToolbarButton'](_0x3a434f,_0xa3f7a7,_0x5080ce){const _0x51ca31=_0x1d99b0(_0x3a434f,_0x2e55b3),_0x370d59=this['editor']['commands']['get']('trackChanges');_0x51ca31['buttonView']['set']({'tooltip':_0x5080ce,'label':_0x5080ce,'icon':_0x2d14a5}),_0x51ca31['buttonView']['bind']('isOn')['to'](_0x370d59,'value'),_0x51ca31['buttonView']['on']('execute',()=>{_0x370d59['execute'](),this['editor']['editing']['view']['focus']();}),_0x2b99c3(_0x51ca31,_0xa3f7a7,{'role':'menu'});const _0xdcbf6=[];for(const _0x3b9499 of _0xa3f7a7)ke(_0x3b9499)&&_0xdcbf6['push'](this['editor']['commands']['get'](_0x3b9499['model']['commandName']));const _0x562bf6=_0x51ca31['buttonView'];return _0x562bf6['actionView']['unbind']('isEnabled'),_0x562bf6['arrowView']['unbind']('isEnabled'),_0x562bf6['actionView']['bind']('isEnabled')['to'](_0x370d59,'isEnabled'),_0x562bf6['arrowView']['bind']('isEnabled')['toMany'](_0xdcbf6,'isEnabled',(..._0x597e09)=>_0x597e09['some'](_0x44b774=>_0x44b774)),_0x51ca31['on']('execute',_0x85b62e=>{this['editor']['execute'](_0x85b62e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x51ca31;}['_createMenuBarMenu'](_0x5aa5d8,_0x13d47d,_0x26e27b){const _0x7c5a2e=new _0x5f329a(_0x5aa5d8),_0x4a3334=this['editor']['commands']['get']('trackChanges');_0x7c5a2e['buttonView']['set']({'label':_0x26e27b,'icon':_0x2d14a5});const _0x3fc1b0=new _0x31efc8(_0x5aa5d8);for(const _0x4c99b6 of _0x13d47d){if('separator'==_0x4c99b6['type']){_0x3fc1b0['items']['add'](new _0x32fb40(_0x5aa5d8));continue;}const _0x1e07f5=new _0xcd72c7(_0x5aa5d8,_0x7c5a2e),_0x24f6a6=new _0xbbe0ae(_0x5aa5d8),_0x19f78c=_0x4c99b6['model'];_0x24f6a6['bind'](...Object['keys'](_0x19f78c))['to'](_0x19f78c),_0x24f6a6['delegate']('execute')['to'](_0x7c5a2e),_0x24f6a6['on']('execute',()=>{this['editor']['execute'](_0x19f78c['commandName']),this['editor']['editing']['view']['focus']();}),_0x1e07f5['children']['add'](_0x24f6a6),_0x3fc1b0['items']['add'](_0x1e07f5);}return _0x7c5a2e['bind']('isEnabled')['to'](_0x4a3334,'isEnabled'),_0x7c5a2e['panelView']['children']['add'](_0x3fc1b0),_0x7c5a2e;}['_initializeController'](_0x3085e9){const _0x30730e=this['editor'],_0x42e1bb=_0x30730e['config'],_0x3a6d4b=_0x30730e['plugins']['get']('Annotations'),_0x55eb4a=_0x30730e['plugins']['get']('CommentsRepository'),_0x1d95b2=_0x30730e['plugins']['get']('EditorAnnotations'),_0x48f8ba=_0x30730e['plugins']['get'](_0x3966e5)['me'],_0x1e0ee8=_0x42e1bb['get']('trackChanges')['SuggestionThreadView'],_0x5366b1=_0x42e1bb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x564906,CommentThreadInputView:_0x133e17}=_0x30730e['plugins']['get']('CommentsUI');let _0x7eff88,_0x1182f5,_0x529008;this['_annotationViews']['has'](_0x3085e9['id'])?(_0x1182f5=this['_annotationViews']['get'](_0x3085e9['id']),_0x7eff88=_0x1182f5['mainView']):(_0x7eff88=new _0x1e0ee8(_0x30730e['locale'],_0x3085e9,_0x48f8ba,{'disableComments':this['_disableComments'],'editorConfig':{..._0x42e1bb['get']('comments.editorConfig'),'licenseKey':_0x42e1bb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x42e1bb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x42e1bb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x42e1bb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4249a1(_0x42e1bb['get']('locale'),_0x30730e['locale']),'CommentView':_0x42e1bb['get']('comments')['CommentView'],'CommentsListView':_0x564906,'CommentThreadInputView':_0x133e17,'SuggestionView':_0x5366b1}),_0x7eff88['suggestionView']['acceptButton']['on']('execute',()=>{_0x30730e['editing']['view']['focus']();}),_0x7eff88['suggestionView']['discardButton']['on']('execute',()=>{_0x30730e['editing']['view']['focus']();}),_0x1182f5=_0x3a6d4b['createAnnotationView'](this['editor']['locale'],_0x7eff88),_0x1182f5['bind']('isDirty')['to'](_0x7eff88,'isDirty'),_0x1182f5['bind']('length')['to'](_0x7eff88),_0x1182f5['bind']('type')['to'](_0x7eff88,'type',_0x1ee2a6=>'suggestion-'+_0x1ee2a6),_0x7eff88['on']('escape',()=>{_0x529008['fire']('escape');}),this['_annotationViews']['set'](_0x3085e9['id'],_0x1182f5));const _0x1bfe31=_0x55eb4a['createCommentThreadController'](_0x3085e9['commentThread'],_0x7eff88),_0x2907e5=new pe(_0x30730e,_0x3085e9,_0x7eff88,_0x1bfe31),_0x489cbc=_0x3085e9['getAllAdjacentSuggestions']()['filter'](_0x496239=>_0x496239['isInContent']);_0x7eff88['descriptionParts']=_0x30730e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x489cbc),this['_suggestionToController']['set'](_0x3085e9,_0x2907e5),this['_viewToController']['set'](_0x7eff88,_0x2907e5);const _0x2b2c8d=()=>{const _0x51804c=[],_0x15ad7e=_0x3085e9['getAllAdjacentSuggestions']()['filter'](_0x263e6c=>_0x263e6c['isInContent']);for(const _0x411ddf of _0x15ad7e)_0x51804c['push'](..._0x411ddf['getMarkers']());return _0x423eea(_0x30730e['editing'],_0x51804c);};_0x529008=_0x3a6d4b['createAnnotation']({'view':_0x1182f5,'target':_0x2b2c8d,'type':()=>'suggestion-'+_0x2907e5['view']['type'],'isVisible':!!_0x2b2c8d()}),_0x55eb4a['_bindAnnotationToEditors'](_0x7eff88,_0x529008),_0x3a6d4b['add'](_0x529008),_0x1d95b2['registerAnnotation'](_0x529008);}['_destroyController'](_0x1091d8){const _0x2c4f1d=this['editor']['plugins']['get']('CommentsRepository'),_0x2bbc71=this['editor']['plugins']['get']('Annotations'),_0x49655c=this['_suggestionToController']['get'](_0x1091d8),_0x142410=_0x49655c['view'],_0x4ce3f2=_0x2bbc71['getByInnerView'](_0x142410);_0x2c4f1d['_unbindEditors'](_0x142410),_0x4ce3f2&&_0x2bbc71['remove'](_0x4ce3f2),this['_suggestionToController']['delete'](_0x1091d8),this['_viewToController']['delete'](_0x142410),_0x49655c['destroy']();}['_updateController'](_0x5668b8){if(!_0x5668b8['isInContent']||!this['_suggestionToController']['has'](_0x5668b8))return;const _0x4310f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x242cf0=this['_suggestionToController']['get'](_0x5668b8),_0x4be334=_0x5668b8['getAllAdjacentSuggestions']();_0x242cf0['view']['descriptionParts']=_0x4310f4['descriptionFactory']['getDescriptions'](_0x4be334);}['destroy'](){for(const _0x4b25a8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4b25a8);for(const _0x9e8ca8 of this['_annotationViews']['values']())_0x9e8ca8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x51aa97){return'model'in _0x51aa97;}class Ne extends _0x1f77b7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1ffb6b){this['editor']['plugins']['get'](d)['adapter']=_0x1ffb6b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xcdd6b5){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xcdd6b5);}['getSuggestions']({skipNotAttached:_0x246bd3=!0x1,toJSON:_0x44fb38=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x246bd3,'toJSON':_0x44fb38});}['getSuggestion'](_0x2f574a){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x2f574a);}}const p=['Pagination'];class re extends _0x1f77b7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x225b51=this['editor'];if(_0x225b51['config']['define']('trackChangesData.editorCreator',_0x1ff786=>{const _0x11029e=_0x225b51['model']['document']['getRootNames']()['reduce']((_0x3650d1,_0x48c16b)=>(_0x3650d1[_0x48c16b]='',_0x3650d1),{});return _0x225b51['constructor']['create'](_0x11029e,_0x1ff786);}),'function'!=typeof _0x225b51['config']['get']('trackChangesData')['editorCreator'])throw new _0x3af67d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x310014){return P(this['editor'],!0x0,_0x310014);}['getDataWithDiscardedSuggestions'](_0xf1d6fc){return P(this['editor'],!0x1,_0xf1d6fc);}}class Fe extends _0x1f77b7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b4f26){function _0x2ab230(_0x1db353){return _0x1db353['map'](_0x4c82b7=>String['fromCharCode'](_0x4c82b7))['join']('');}super(_0x5b4f26),this['result']='end',_0x5b4f26[_0x2ab230([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ab230([0x76,0x69,0x65,0x77])][_0x2ab230([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ab230([0x61,0x75,0x74,0x6f]),_0x5b4f26[_0x2ab230([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2ab230([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ab230([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2ab230([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2ab230([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(_0x3fc364){return void 0x0!==_0x3fc364['getRootsAttributes'];}async function P(_0x4f5205,_0x289ff1,_0x257277){const _0x1993c4=_0x2e532(_0x4f5205,p);_0x1993c4['plugins']['push'](d,Fe),_0x1993c4['rootsAttributes']=De(_0x4f5205)?_0x4f5205['getRootsAttributes']():void 0x0;const _0x5a1405=document['createDocumentFragment'](),_0x2da4fb=_0x4f5205['config']['get']('trackChangesData')['editorCreator'],_0x21bb49=await _0x2da4fb(_0x1993c4,()=>function(_0x512e19){const _0xc84561=document['createElement']('div');return _0x512e19['appendChild'](_0xc84561),_0xc84561;}(_0x5a1405));!function(_0x48cea5,_0x2eb927){const _0x1ae62b=_0x48cea5['model']['document']['getRootNames']()['reduce']((_0x4dec1a,_0x1f5263)=>(_0x4dec1a[_0x1f5263]=_0x48cea5['data']['get']({'rootName':_0x1f5263}),_0x4dec1a),{}),_0x1d1984=_0x48cea5['plugins']['get']('Users')['users']['map'](_0x280f09=>({'id':_0x280f09['id'],'name':_0x280f09['name']})),_0x4400ae=_0x48cea5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x222dc8=_0x48cea5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x14af70=_0x2eb927['plugins']['get']('Users'),_0x2fc86c=_0x2eb927['plugins']['get']('TrackChangesEditing'),_0x2b4eaf=_0x2eb927['plugins']['get']('CommentsRepository');for(const _0x1e7ce8 of _0x2b4eaf['getCommentThreads']())_0x1e7ce8['remove']();for(const _0x35e8a0 of _0x1d1984)_0x14af70['getUser'](_0x35e8a0['id'])||_0x14af70['addUser'](_0x35e8a0);_0x14af70['me']||_0x14af70['useAnonymousUser']();for(const _0x2b3e69 of _0x222dc8)_0x2b4eaf['addCommentThread'](_0x2b3e69);for(const _0x57c361 of _0x4400ae)_0x2fc86c['addSuggestionData'](_0x57c361);_0x2eb927['data']['set'](_0x1ae62b);}(_0x4f5205,_0x21bb49),_0x21bb49['execute'](_0x289ff1?'acceptAllSuggestions':'discardAllSuggestions');const _0x238664=De(_0x21bb49)?_0x21bb49['getFullData'](_0x257277):_0x21bb49['data']['get'](_0x257277);return await _0x21bb49['destroy'](),_0x238664;}class Me extends _0x4f0c5a{['options'];constructor(_0x3a5164,_0x396832){super(_0x3a5164),this['options']=_0x396832,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'](_0x3dc524,_0x52408a){if(!this['element'])return;const _0x15c7f5=[];for(const [_0x52cee1,_0x131fb2]of _0x3dc524){const _0xe8b104=document['createElement']('div');_0xe8b104['setAttribute']('data-ck-root-name',_0x52cee1),_0xe8b104['className']=_0x131fb2['classes']+'\x20ck-track-changes-preview__root-container',_0xe8b104['innerHTML']=_0x131fb2['content'],_0x15c7f5['push'](_0xe8b104);}_0x52408a(this['element'],_0x15c7f5),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3a7046{constructor(_0x3f3da0){super(_0x3f3da0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xc75607=this['editor'],_0x806c3e=_0xc75607['locale'],_0x3f6792=_0xc75607['plugins']['get']('Dialog');let _0x246015;const _0x491464=function(_0x14fd13){const _0x205297={};if('editables'in _0x14fd13['ui']['view']){for(const [_0x35ee6d,_0x513015]of Object['entries'](_0x14fd13['ui']['view']['editables']))_0x205297[_0x35ee6d]=_0x513015['element'];}else _0x205297[_0x14fd13['model']['document']['getRootNames']()[0x0]]=_0x14fd13['ui']['view']['editable']['element'];return _0x205297;}(_0xc75607),_0x4a3fb2=function(_0x582a2e){let _0x5541e5=0x0;for(const _0x445119 of Object['values'](_0x582a2e))_0x5541e5=Math['max'](_0x5541e5,_0x445119['getBoundingClientRect']()['width']);let _0x3846f5=0x0;for(const _0xe72282 of Object['values'](_0x582a2e))_0x3846f5+=_0xe72282['getBoundingClientRect']()['height'];const _0x2f58d8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2b1c3c=Math['min'](_0x3846f5,_0x2f58d8);return{'width':_0x5541e5,'height':_0x2b1c3c};}(_0x491464);_0x3f6792['show']({'id':'finalContentPreview','title':o(_0x806c3e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x806c3e,{'dialogRects':_0x4a3fb2}),'onHide':()=>{_0x246015['detachFromDom']();},'onShow':()=>{_0xc75607['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x45d91d=>{const _0x505919=this['_standarizeRootsData'](_0x45d91d,_0xc75607,_0x491464);_0x3f6792['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x505919,_0xc75607['config']['get']('trackChanges.preview.renderFunction'));}),_0x246015=new _0x1eb270(_0x806c3e,[_0x3f6792['view']]),_0x246015['attachToDom'](),_0x246015['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xc75607['once']('destroy',()=>{_0x246015['detachFromDom']();});const _0x18f37b=_0x3f6792['view']['headerView']['class'];_0x3f6792['view']['headerView']['class']=_0x18f37b?_0x18f37b+'\x20ck-reset_all':'ck-reset_all',_0x3f6792['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3f6792['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x120005=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2110e2=_0x120005['previewMode'],_0x2b10ce={};if('$labels'===_0x2110e2){for(const _0xde2571 of _0x120005['getMergeFieldsIds']())_0x2b10ce[_0xde2571]=_0x120005['getLabel'](_0xde2571)||_0xde2571;}else{const _0x321976='$defaultValues'===_0x2110e2?_0x120005['getDefaultValues']():_0x120005['getDataSetValues'](_0x2110e2,!0x0);for(const _0x17f59a of Object['entries'](_0x321976)){const [_0x351cc7,_0x40c7e8]=_0x17f59a;_0x2b10ce[_0x351cc7]=null!==_0x40c7e8?_0x40c7e8:_0x120005['getLabel'](_0x351cc7)||_0x351cc7;}}return{'mergeFieldsData':_0x2b10ce};}['_standarizeRootsData'](_0x1ca0bf,_0x198797,_0x317f7e){let _0x517631;if('string'==typeof _0x1ca0bf){const _0x5ad487=_0x198797['model']['document']['getRootNames']()[0x0];_0x517631={[_0x5ad487]:_0x1ca0bf};}else _0x517631=_0x1ca0bf;const _0x5ab3a3=this['_fixMediaEmbeds'](_0x517631,_0x198797),_0x266a8b=function(_0x579c90,_0xe5c09d){for(const [_0x369e20,_0x4ca2ef]of _0x579c90)_0x4ca2ef['classes']=_0xe5c09d[_0x369e20]['classList']['value']['replace']('ck-focused','');return _0x579c90;}(this['_sortRoots'](_0x198797)['reduce']((_0x21ef76,_0x23bd25)=>(_0x21ef76['push']([_0x23bd25,{'content':_0x5ab3a3[_0x23bd25],'classes':''}]),_0x21ef76),[]),_0x317f7e);return _0x266a8b;}['_fixMediaEmbeds'](_0x3e1c1e,_0x19f0f9){if(!_0x19f0f9['plugins']['has']('MediaEmbedEditing'))return _0x3e1c1e;const _0x3a7bfb=_0x19f0f9['plugins']['get']('MediaEmbedEditing');for(const [_0x225ca0,_0x1ae9a8]of Object['entries'](_0x3e1c1e)){const _0x56768f=document['createElement']('div');_0x56768f['innerHTML']=_0x1ae9a8,(_0x56768f['querySelectorAll']('figure.media')['forEach'](_0x9a0433=>{const _0x2aea3e=_0x9a0433['querySelector']('oembed');if(_0x2aea3e){const _0x5cf2e3=_0x2aea3e['getAttribute']('url');if(_0x5cf2e3){const _0x33b999=_0x3a7bfb['registry']['getMediaViewElement'](new _0x4bb0c0(_0x19f0f9['editing']['view']['document']),_0x5cf2e3,{'elementName':'','renderForEditingView':!0x0}),_0x5e5d06=document['createElement']('div');_0x5e5d06['classList']['add']('ck-media__wrapper'),_0x33b999['render'](_0x5e5d06,_0x19f0f9['editing']['view']['domConverter']),_0x2aea3e['replaceWith'](_0x5e5d06);}}}),_0x3e1c1e[_0x225ca0]=_0x56768f['innerHTML']);}return _0x3e1c1e;}['_sortRoots'](_0x4d360a){if(!function(_0xaa2c25){return void 0x0!==_0xaa2c25['getRootsAttributes'];}(_0x4d360a))return _0x4d360a['model']['document']['getRootNames']();const _0x5e9e75=[],_0x4edcca=new Map();for(const _0x56052f of _0x4d360a['model']['document']['getRootNames']()){const _0x543059=_0x4d360a['editing']['view']['getDomRoot'](_0x56052f)['getClientRects']()['item'](0x0);_0x5e9e75['push'](_0x56052f),_0x4edcca['set'](_0x56052f,_0x543059);}return _0x5e9e75['sort']((_0x232fc1,_0x5ea119)=>{const _0x25b502=_0x4edcca['get'](_0x232fc1),_0x3f58ad=_0x4edcca['get'](_0x5ea119);return _0x25b502['y']-_0x3f58ad['y']||_0x25b502['x']-_0x3f58ad['x'];}),_0x5e9e75;}}class Ue extends _0x1f77b7{static get['requires'](){return[re,_0x23d364];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x259113){super(_0x259113),_0x259113['commands']['add']('previewFinalContent',new te(this['editor'])),_0x259113['config']['define']('trackChanges.preview.renderFunction',(_0x3fb3b1,_0x484f8d)=>{for(const _0x42da69 of _0x484f8d)_0x3fb3b1['appendChild'](_0x42da69);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x2677d9,Plugin as _0x5c469f,PendingActions as _0x52061b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4bd1ef,ObservableMixin as _0x396c0e,uid as _0xe7a85c,priorities as _0x5382c2,insertToPriorityArray as _0x53f5fa,logWarning as _0x5dad29,getEnvKeystrokeText as _0xc43d41,FocusTracker as _0x117c38,KeystrokeHandler as _0x15ddba,Collection as _0x2a31a7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x66c94d,IconCancel as _0x11ac0f,IconTrackChanges as _0x5563d1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1cd192,View as _0x3725c9,ViewCollection as _0x4958e7,FocusCycler as _0x5d44a1,UIModel as _0x4d4814,createDropdown as _0x57847e,SplitButtonView as _0x2e353d,addListToDropdown as _0x1cd2d,MenuBarMenuView as _0x502fd3,MenuBarMenuListView as _0x5b0b21,ListSeparatorView as _0xc8adaa,MenuBarMenuListItemView as _0x1f14d7,MenuBarMenuListItemButtonView as _0x59084b,BodyCollection as _0xfa1121,Dialog as _0xc55595}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xe3d5a4,DocumentCompare as _0x4a392e,hashObject as _0x4f3ece,surroundingMarkersDetector as _0xdbf774,FOCUS_ANNOTATION_KEYSTROKE as _0x18497a,AriaDescriptionView as _0x536ecb,setupThreadKeyboardNavigation as _0x19f182,trimHtml as _0x1cbe9a,UserView as _0x35b91d,LateFocusButtonView as _0x1f2254,getDateTimeFormatter as _0x703e2b,getAllMarkersDomElementsSorted as _0x319fa6,sanitizeEditorConfig as _0x4f6792}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1169aa,ModelLiveRange as _0x167977,ModelLivePosition as _0x461c02,ViewDowncastWriter as _0x2db659}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x32a943,set as _0x523787,isEqual as _0x33d31c,unset as _0x54fb6d,omit as Pt}from'es-toolkit/compat';import{Delete as _0x208762,Input as _0x5e85b6}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x560292}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1fe9af}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x2677d9{['_enabledCommands'];constructor(_0x3c5b7c,_0x28e1aa){super(_0x3c5b7c),this['_enabledCommands']=_0x28e1aa,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 _0x3f317c of this['editor']['commands']['commands']())_0x3f317c['affectsData']&&!this['_enabledCommands']['has'](_0x3f317c)&&_0x3f317c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3603cb of this['editor']['commands']['commands']())_0x3603cb['affectsData']&&!this['_enabledCommands']['has'](_0x3603cb)&&_0x3603cb['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x2677d9{['_suggestions'];constructor(_0x454df9,_0x4f5eed){super(_0x454df9),this['_suggestions']=_0x4f5eed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x133a16){const _0x49f1db=this['_suggestions']['get'](_0x133a16);if(!_0x49f1db)throw new _0x4bd1ef('track-changes-accept-suggestion-not-found',this);const _0x2fba11=_0x49f1db['getRanges']();this['editor']['model']['canEditAt'](_0x2fba11)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x49f1db);}}class D extends _0x2677d9{['_suggestions'];constructor(_0x513b63,_0x1f877c){super(_0x513b63),this['_suggestions']=_0x1f877c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa6b260){const _0x3b8ed5=this['_suggestions']['get'](_0xa6b260);if(!_0x3b8ed5)throw new _0x4bd1ef('track-changes-discard-suggestion-not-found',this);const _0x48e63c=_0x3b8ed5['getRanges']();this['editor']['model']['canEditAt'](_0x48e63c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3b8ed5);}}function ls(_0x5a4ce9,_0x22270c){let _0x1f6b0d='';return _0x1f6b0d+=_0x5a4ce9['split']('*')['map']((_0x53ae77,_0x110ddf)=>_0x110ddf%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x53ae77)+'</span>':rn(_0x53ae77))['join'](''),_0x22270c&&(_0x1f6b0d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x22270c['value']+'\x22\x20title=\x22'+_0x22270c['title']+'\x22></span>'),_0x1f6b0d;}function rn(_0x382bda){const _0x56ecb3=document['createElement']('span');return _0x56ecb3['innerText']=_0x382bda,_0x56ecb3['innerHTML'];}function ts(_0x4e08e9){return _0x4e08e9['sort']((_0x2f71fd,_0x291ff6)=>'attribute'===_0x2f71fd['type']&&'attribute'!==_0x291ff6['type']?-0x1:'attribute'!==_0x2f71fd['type']&&'attribute'===_0x291ff6['type']?0x1:'deletion'==_0x2f71fd['type']&&'deletion'!=_0x291ff6['type']?-0x1:'deletion'!=_0x2f71fd['type']&&'deletion'==_0x291ff6['type']?0x1:0x0);}function to(_0x287e12,_0x28ea5a){let _0xf5a098,_0x517e9d=0x0;const _0x17c8cd=[],_0x59b480=_0x28ea5a['schema'];for(;_0x517e9d<_0x287e12['length'];){const _0x55f9cc=_0x287e12[_0x517e9d],_0x546e0f=_0x287e12[_0x517e9d+0x1];_0xf5a098||(_0xf5a098=_0x28ea5a['createPositionBefore'](_0x55f9cc)),cn(_0x28ea5a,_0x55f9cc,_0x546e0f)||(_0x17c8cd['push'](_0x28ea5a['createRange'](_0xf5a098,_0x59b480['isObject'](_0x55f9cc)?_0x28ea5a['createPositionAfter'](_0x55f9cc):_0x28ea5a['createPositionAt'](_0x55f9cc,'end'))),_0xf5a098=null),_0x517e9d++;}return _0x17c8cd;}function cn(_0x30f901,_0x34cfbe,_0x9d5208){if(!_0x9d5208)return!0x1;const _0x22c89a=_0x30f901['createPositionAfter'](_0x34cfbe),_0x4dc7d5=_0x30f901['createPositionBefore'](_0x9d5208);return _0x22c89a['isTouching'](_0x4dc7d5);}function rs(_0x321303,_0x283482,_0x5c6e04){for(;_0x5c6e04['length'];){const _0x49eb88=_0x5c6e04['splice'](0x0,0x64);_0x321303['change'](()=>{for(const _0x52f9bb of _0x49eb88)_0x52f9bb['isInContent']&&_0x283482['execute'](_0x52f9bb['id']);});}}class B extends _0x2677d9{['_command'];['_suggestions'];constructor(_0x391ea4,_0x488910,_0x3edac6){super(_0x391ea4),this['_command']=_0x488910,this['_suggestions']=_0x3edac6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x59fb0e=Array['from'](this['_suggestions']['values']())['some'](_0x3e1fea=>_0x3e1fea['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x59fb0e;}['execute'](){const _0x5dd3e3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x19fd15 of _0x5dd3e3){const _0x5e2414=_0x19fd15['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e2414))return;}rs(this['editor']['model'],this['_command'],_0x5dd3e3);}}class O extends _0x2677d9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1fbea5,_0x5d88bb,_0x42c4f4){super(_0x1fbea5),this['_command']=_0x5d88bb,this['_suggestions']=_0x42c4f4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5bf853=this['editor']['model']['document']['selection'],_0x10dd60=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x16f787,_0x5a7afb){const _0xdf9fa3=Array['from'](_0x16f787['getRanges']()),_0x507db2=new Set();for(const _0x4670fb of _0x5a7afb)if(_0x4670fb['isInContent']){for(const _0x33507f of _0xdf9fa3)for(const _0x1523c9 of _0x4670fb['getRanges']())(_0x33507f['isIntersecting'](_0x1523c9)||_0x16f787['isCollapsed']&&!_0x4670fb['isMultiRange']&&_0x4670fb['next']&&_0x1523c9['end']['isTouching'](_0x33507f['start']))&&_0x507db2['add'](_0x4670fb);}return _0x507db2;}(_0x5bf853,_0x10dd60),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x172d6b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4b3180 of _0x172d6b){const _0x433080=_0x4b3180['getRanges']();if(!this['editor']['model']['canEditAt'](_0x433080))return;}rs(this['editor']['model'],this['_command'],_0x172d6b);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x396c0e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x15322a,_0x5bd7bc){super(),this['id']=_0x5bd7bc['id'],this['type']=_0x5bd7bc['type'],this['subType']=_0x5bd7bc['subType']||null,this['author']=_0x5bd7bc['author'],this['creator']=_0x5bd7bc['creator']||_0x5bd7bc['author'],this['isExternal']=Boolean(_0x5bd7bc['attributes']&&_0x5bd7bc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5bd7bc['originalSuggestionId']||null,this['_model']=_0x15322a,this['_onAccept']=_0x5bd7bc['onAccept'],this['_onDiscard']=_0x5bd7bc['onDiscard'],this['_onAttributesChange']=_0x5bd7bc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5bd7bc['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 _0x26fae3=this;for(;_0x26fae3['previous'];)_0x26fae3=_0x26fae3['previous'];return _0x26fae3;}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'](_0x69e854){this['_markerNames']['add'](_0x69e854);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x170b33=>this['_model']['markers']['get'](_0x170b33))['filter'](_0x251b4c=>_0x251b4c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xc8b60e=>{for(const _0x2f2e65 of this['getMarkers']())_0xc8b60e['removeMarker'](_0x2f2e65);}),this['_markerNames']['clear']();}['removeMarker'](_0xce7a1f){this['_model']['change'](_0x4b7869=>{_0x4b7869['removeMarker'](_0xce7a1f);}),this['_markerNames']['delete'](_0xce7a1f);}['addRange'](_0x1197b6){const _0x272bf8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x272bf8),this['_model']['change'](_0x55e0d9=>{_0x55e0d9['addMarker'](_0x272bf8,{'range':_0x1197b6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x14a45b){for(const _0xb3c75f of this['getRanges']())if(_0xb3c75f['isIntersecting'](_0x14a45b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x42d185=>_0x42d185['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4ce5c9,_0x4bf98d)=>[..._0x4ce5c9,..._0x4bf98d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xa5d6a2=this['getRanges']();if(0x1!=_0xa5d6a2['length'])return null;const _0x3eef14=_0xa5d6a2[0x0],_0x449c4a=_0x3eef14['start']['nodeAfter'],_0x38db1c=_0x3eef14['end']['nodeBefore'];return _0x449c4a instanceof _0x1169aa?_0x449c4a!=_0x38db1c?null:_0x449c4a: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 _0x29fa86=[];let _0x280947=this['head'];for(;_0x280947;)_0x29fa86['push'](_0x280947),_0x280947=_0x280947['next'];return _0x29fa86;}['setAttribute'](_0x44c1f9,_0x4180f6){const _0x16717c=_0x32a943(this['attributes']);_0x523787(_0x16717c,_0x44c1f9,_0x4180f6),_0x33d31c(_0x16717c,this['attributes'])||(this['attributes']=_0x16717c,this['_onAttributesChange'](_0x16717c));}['removeAttribute'](_0x1bf7f9){const _0xbcf5b4=_0x32a943(this['attributes']);_0x54fb6d(_0xbcf5b4,_0x1bf7f9),_0x33d31c(_0xbcf5b4,this['attributes'])||(this['attributes']=_0xbcf5b4,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 _0xe7a85c()['substr'](0x1,0x5);}}function o(_0x3be212,_0x32da98,_0x1a6e6e){const _0x34a093=_0x3be212['t'],t=_0x3be212['t'];switch(_0x32da98){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',_0x1a6e6e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1a6e6e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1a6e6e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1a6e6e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1a6e6e);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',_0x1a6e6e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1a6e6e);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',_0x1a6e6e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1a6e6e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1a6e6e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1a6e6e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1a6e6e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1a6e6e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1a6e6e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1a6e6e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1a6e6e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1a6e6e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1a6e6e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1a6e6e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1a6e6e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1a6e6e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1a6e6e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1a6e6e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1a6e6e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1a6e6e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1a6e6e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1a6e6e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1a6e6e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1a6e6e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1a6e6e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1a6e6e);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1a6e6e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1a6e6e);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'},_0x1a6e6e);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_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'},_0x1a6e6e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1a6e6e);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1a6e6e);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1a6e6e);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1a6e6e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1a6e6e);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'},_0x1a6e6e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1a6e6e);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 _0x34a093({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1a6e6e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x34a093({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1a6e6e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1a6e6e);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'},_0x1a6e6e);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'},_0x1a6e6e);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'},_0x1a6e6e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x32da98;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x7bf33,_0x1689d4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x7bf33,this['_locale']=_0x1689d4;}['getDescriptions'](_0x19a0dd){const _0x478b16=[],_0xd71649=new Set(),_0x53a83b=new Set();for(let _0x14805e=0x0;_0x14805e<_0x19a0dd['length'];_0x14805e++){const _0x3a7fbc=_0x19a0dd[_0x14805e];if(!_0x3a7fbc['isInContent'])continue;const _0xa89223=this['_handleCustomCallbackDescription'](_0x3a7fbc);if(_0xa89223){if(null!=_0x3a7fbc['subType']){if(_0xd71649['has'](_0x3a7fbc['subType']))continue;_0xd71649['add'](_0x3a7fbc['subType']);}_0x478b16['push'](_0xa89223);}else{if('attribute'==_0x3a7fbc['type']){const _0x1aab27=_0x3a7fbc['data']['key'];if(_0x53a83b['has'](_0x1aab27))continue;_0x53a83b['add'](_0x3a7fbc['data']['key']),_0x1aab27==m?this['_handleRenameSuggestionDescription'](_0x478b16,_0x3a7fbc):this['_handleAttributeSuggestionDescription'](_0x478b16,_0x3a7fbc);continue;}'insertion'!=_0x3a7fbc['type']&&'deletion'!=_0x3a7fbc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x478b16,_0x3a7fbc,_0x19a0dd[_0x14805e+0x1]);}}return this['_resolveDescriptionItems'](_0x478b16);}['registerDescriptionCallback'](_0x2742ba){this['_customCallbacks']['push'](_0x2742ba);}['registerElementLabel'](_0x3dd2d2,_0x3aee17,_0x3f297e=_0x5382c2['normal']){'function'==typeof _0x3dd2d2?_0x53f5fa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3dd2d2,'label':_0x3aee17,'priority':_0x3f297e}):this['_itemLabels']['set'](_0x3dd2d2,_0x3aee17);}['registerAttributeLabel'](_0x1f798e,_0x33bd4c){this['_attributeLabels']['set'](_0x1f798e,_0x33bd4c);}['getItemLabel'](_0x2cff93,_0x519b9a=0x1){let _0x264f47;for(const _0x489bc1 of this['_itemLabelsCallbacks'])if(_0x489bc1['matchingCallback'](_0x2cff93)){_0x264f47=_0x489bc1['label'];break;}return _0x264f47||(_0x264f47=this['_itemLabels']['get'](_0x2cff93['name'])),_0x264f47?_0x264f47(_0x519b9a):0x1!==_0x519b9a?_0x519b9a+'\x20'+_0x2cff93['name']+'s':''+_0x2cff93['name'];}['_addDescriptionItems'](_0x1005c4,_0x284716){const _0x52c54d=_0x284716['getFirstRange']()['getWalker'](),_0x2c1ee8='insertion'==_0x284716['type']?'add':'remove';for(const _0x5b5a4f of _0x52c54d){const _0x13a965=_0x5b5a4f['item'],_0x2b5753=_0x1005c4[_0x1005c4['length']-0x1];if(_0x13a965['is']('$textProxy'))_0x2b5753&&_0x2b5753['type']['indexOf']('Container')>-0x1&&_0x1005c4['pop'](),_0x2b5753&&'text'==_0x2b5753['type']?_0x2b5753[_0x2c1ee8]+=_0x13a965['data']:_0x1005c4['push']({'type':'text','add':'add'==_0x2c1ee8?_0x13a965['data']:'','remove':'remove'==_0x2c1ee8?_0x13a965['data']:''});else{if(this['_schema']['isObject'](_0x13a965)){const _0x13763=_0x13a965;if(_0x2b5753&&_0x2b5753['type']['indexOf']('Container')>-0x1&&_0x1005c4['pop'](),'elementEnd'==_0x5b5a4f['type'])continue;_0x2b5753&&_0x2b5753['type']==_0x2c1ee8+'Object'&&_0x2b5753['element']['name']==_0x13763['name']?_0x2b5753['quantity']++:_0x1005c4['push']({'type':_0x2c1ee8+'Object','element':_0x13763,'quantity':0x1}),_0x52c54d['skip'](_0x5192e5=>!('elementEnd'==_0x5192e5['type']&&_0x5192e5['item']==_0x13a965));}else{if(this['_schema']['checkChild'](_0x13a965,'$text')||_0x13a965['is']('element','softBreak')){const _0x4fd9a3=_0x13a965;if('add'==_0x2c1ee8&&'elementStart'==_0x5b5a4f['type']||'remove'==_0x2c1ee8&&'elementEnd'==_0x5b5a4f['type'])continue;if(_0x2b5753&&-0x1==_0x2b5753['type']['indexOf']('Container')){'text'==_0x2b5753['type']&&(_0x2b5753[_0x2c1ee8]+='\x0a');continue;}let _0x50baa9;if(_0x50baa9='add'==_0x2c1ee8?_0x4fd9a3['nextSibling']&&!this['_schema']['isObject'](_0x4fd9a3['nextSibling'])?_0x4fd9a3['nextSibling']:null:_0x4fd9a3['previousSibling']&&!this['_schema']['isObject'](_0x4fd9a3['previousSibling'])?_0x4fd9a3['previousSibling']:null,_0x4fd9a3['isEmpty']||_0x50baa9&&_0x50baa9['isEmpty']){const _0x270262=_0x50baa9&&_0x50baa9['isEmpty']?_0x50baa9:_0x4fd9a3;_0x2b5753&&_0x2b5753['type']==_0x2c1ee8+'EmptyContainer'&&_0x2b5753['element']['name']==_0x270262['name']?_0x2b5753['quantity']++:_0x1005c4['push']({'type':_0x2c1ee8+'EmptyContainer','element':_0x270262,'quantity':0x1});}else _0x1005c4['push']({'type':_0x2c1ee8+'Container','element':_0x4fd9a3});}}}}}['_resolveDescriptionItems'](_0x4d7fae){const _0x4ccf79=this['_locale'],_0x5dc05f=[],_0x48ca53=[],_0x4a8b32=[];for(const _0x3ff51b of _0x4d7fae)switch(_0x3ff51b['type']){case'text':if(_0x3ff51b['add']=_0x3ff51b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ff51b['remove']=_0x3ff51b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ff51b['add']&&''!=_0x3ff51b['remove']){_0x5dc05f['push']({'type':'replace','content':o(_0x4ccf79,'REPLACE_TEXT',['\x22'+_0x3ff51b['remove']+'\x22','\x22'+_0x3ff51b['add']+'\x22'])});continue;}if(null!=_0x3ff51b['add']['match'](/^ +$/)){_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Insert:*\x20%0',o(_0x4ccf79,'ELEMENT_SPACE',_0x3ff51b['add']['length']))});continue;}if(null!=_0x3ff51b['remove']['match'](/^ +$/)){_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Remove:*\x20%0',o(_0x4ccf79,'ELEMENT_SPACE',_0x3ff51b['remove']['length']))});continue;}if(''!=_0x3ff51b['add']){_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Insert:*\x20%0','\x22'+_0x3ff51b['add']+'\x22')});continue;}_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Remove:*\x20%0','\x22'+_0x3ff51b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Insert:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Remove:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'addContainer':_0x5dc05f['push']({'type':'insertion','content':o(_0x4ccf79,'*Split:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'removeContainer':_0x5dc05f['push']({'type':'deletion','content':o(_0x4ccf79,'*Merge:*\x20%0',this['getItemLabel'](_0x3ff51b['element'],_0x3ff51b['quantity']))});continue;case'addFormat':_0x48ca53['push'](_0x3ff51b['key']);continue;case'removeFormat':_0x4a8b32['push'](_0x3ff51b['key']);continue;default:_0x5dc05f['push'](_0x3ff51b);}if(_0x48ca53['length']){const _0x55f5ec=_0x48ca53['map'](_0x2f76cf=>this['_attributeLabels']['has'](_0x2f76cf)?this['_attributeLabels']['get'](_0x2f76cf):_0x2f76cf)['join'](',\x20');_0x5dc05f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x55f5ec)});}if(_0x4a8b32['length']){const _0x1d65c8=_0x4a8b32['map'](_0x18a4ef=>this['_attributeLabels']['has'](_0x18a4ef)?this['_attributeLabels']['get'](_0x18a4ef):_0x18a4ef)['join'](',\x20');_0x5dc05f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d65c8)});}return _0x5dc05f;}['_handleCustomCallbackDescription'](_0x127c1a){for(const _0x215154 of this['_customCallbacks']){const _0x5485bb=_0x215154(_0x127c1a);if(_0x5485bb&&'type'in _0x5485bb)return _0x5485bb;}}['_handleAttributeSuggestionDescription'](_0x5aea23,_0x1a3048){const _0x2e2bfc=_0x1a3048['data'],_0x97994d=void 0x0===_0x2e2bfc['newValue']?'removeFormat':'addFormat';_0x5aea23['push']({'type':_0x97994d,'key':_0x2e2bfc['key']});}['_handleRenameSuggestionDescription'](_0x22f17e,_0x44128a){_0x22f17e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44128a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa595a,_0x2b7ee9,_0x24397b){if(this['_addDescriptionItems'](_0xa595a,_0x2b7ee9),_0x24397b&&_0x24397b['getFirstRange']()&&!_0x2b7ee9['getFirstRange']()['end']['isEqual'](_0x24397b['getFirstRange']()['start'])){const _0x2f3e27=_0xa595a[_0xa595a['length']-0x1],_0x81d8bd='insertion'==_0x2b7ee9['type']?'add':'remove';_0x2f3e27&&'text'==_0x2f3e27['type']&&(_0x2f3e27[_0x81d8bd]+='\x0a');}}}class R extends _0x5c469f{['afterInit'](){const _0x5e4495=this['editor'],_0x29ef5d=_0x5e4495['plugins']['get']('TrackChangesEditing');_0x5e4495['commands']['get']('showAIAssistant')&&_0x29ef5d['enableCommand']('showAIAssistant');}}class T extends _0x5c469f{['afterInit'](){const _0x551b11=this['editor'],_0x37f946=_0x551b11['plugins']['get']('TrackChangesEditing');_0x551b11['commands']['get']('toggleAi')&&_0x37f946['enableCommand']('toggleAi');}}class E extends _0x5c469f{['afterInit'](){const _0x5abdb9=this['editor'],_0x1bada3=_0x5abdb9['plugins']['get']('TrackChangesEditing');_0x5abdb9['commands']['get']('aiQuickAction')&&_0x1bada3['enableCommand']('aiQuickAction');}}class U extends _0x5c469f{['afterInit'](){const _0x1f84b4=this['editor'],_0x5d98a7=_0x1f84b4['locale'];if(!_0x1f84b4['plugins']['has']('AlignmentEditing'))return;const _0x3679dc=_0x1f84b4['plugins']['get']('TrackChangesEditing');_0x3679dc['enableDefaultAttributesIntegration']('alignment'),_0x3679dc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5d98a7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x586cdd=this['editor'],_0x4632c3=_0x586cdd['locale'];_0x586cdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x849abb=>{if('formatBlock'!=_0x849abb['type'])return;const {data:_0x21a775}=_0x849abb;if(_0x21a775&&'alignment'==_0x21a775['commandName']){const _0x1e3efd=_0x21a775['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4632c3,'*Format:*\x20%0',function(_0x59a76a){switch(_0x59a76a){case'left':return o(_0x4632c3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4632c3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4632c3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4632c3,'FORMAT_JUSTIFY_TEXT');}}(_0x1e3efd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x5c469f{['afterInit'](){const _0x9da0b0=this['editor'],_0x4ecb4a=_0x9da0b0['plugins']['get']('TrackChangesEditing'),_0x3a435f=_0x9da0b0['locale'];for(const _0x3c4825 of ti){if(!_0x9da0b0['plugins']['has'](_0x3c4825))continue;const _0xd9a2b8=_0x3c4825['slice'](0x0,-0x7)['toLowerCase'](),_0x50cb78='FORMAT_'+_0xd9a2b8['toUpperCase']();_0x4ecb4a['enableDefaultAttributesIntegration'](_0xd9a2b8),_0x4ecb4a['descriptionFactory']['registerAttributeLabel'](_0xd9a2b8,o(_0x3a435f,_0x50cb78));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35bdf0=this['editor'],_0x138280=_0x35bdf0['locale'],_0x2e64ba=_0x35bdf0['plugins']['get']('TrackChangesEditing');function _0x17a7e3(_0x3f8349,_0x5efb96){_0x2e64ba['descriptionFactory']['registerDescriptionCallback'](_0x5315e2=>{if('formatInline'!=_0x5315e2['type'])return;const {data:_0x1afc85}=_0x5315e2;return _0x1afc85&&_0x1afc85['commandName']===_0x3f8349?_0x1afc85['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x138280,'*Format:*\x20%0',_0x5efb96)}:{'type':'format','content':o(_0x138280,'*Remove\x20format:*\x20%0',_0x5efb96)}:void 0x0;});}_0x17a7e3('bold',o(_0x138280,'FORMAT_BOLD')),_0x17a7e3('italic',o(_0x138280,'FORMAT_ITALIC')),_0x17a7e3('underline',o(_0x138280,'FORMAT_UNDERLINE')),_0x17a7e3('code',o(_0x138280,'FORMAT_CODE')),_0x17a7e3('strikethrough',o(_0x138280,'FORMAT_STRIKETHROUGH')),_0x17a7e3('subscript',o(_0x138280,'FORMAT_SUBSCRIPT')),_0x17a7e3('superscript',o(_0x138280,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5c469f{['afterInit'](){const _0xa6be94=this['editor'],_0x309504=_0xa6be94['locale'];if(!_0xa6be94['plugins']['has']('BlockQuoteEditing'))return;const _0x4f4973=_0xa6be94['plugins']['get']('TrackChangesEditing'),_0xe8ce5c=this['editor']['commands']['get']('blockQuote');_0x4f4973['enableCommand']('blockQuote',(_0x4b11f2,_0x5b6f44={})=>{const _0x13b76e=this['editor']['model']['document']['selection'],_0x1d4b4e=_0x5b6f44&&void 0x0!==_0x5b6f44['forceValue']?_0x5b6f44['forceValue']:!_0xe8ce5c['value'];let _0x5b01c0=[];if(_0x1d4b4e){const _0x690eb=Array['from'](_0x13b76e['getSelectedBlocks']())['filter'](_0x1b5605=>oo(_0x1b5605)||function(_0x238d8a,_0x4e4de7){const _0x20ef5e=_0x4e4de7['checkChild'](_0x238d8a['parent'],'blockQuote'),_0x458cbd=_0x4e4de7['checkChild'](['$root','blockQuote'],_0x238d8a);return _0x20ef5e&&_0x458cbd;}(_0x1b5605,this['editor']['model']['schema']));_0x5b01c0=to(_0x690eb,_0xa6be94['model']);}else{const _0x2f73c4=Array['from'](_0x13b76e['getSelectedBlocks']())['filter'](_0x1acc77=>oo(_0x1acc77));_0x5b01c0=to(_0x2f73c4,_0xa6be94['model']);}_0xa6be94['model']['change'](()=>{for(const _0x54f0c9 of _0x5b01c0)_0x4f4973['markBlockFormat'](_0x54f0c9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d4b4e}]});});}),_0x4f4973['descriptionFactory']['registerDescriptionCallback'](_0x494721=>{const {data:_0x5aa07b}=_0x494721;if(_0x5aa07b&&'blockQuote'==_0x5aa07b['commandName']){const _0x37e85f=o(_0x309504,'ELEMENT_BLOCK_QUOTE');return _0x5aa07b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x309504,'*Set\x20format:*\x20%0',_0x37e85f)}:{'type':'format','content':o(_0x309504,'*Remove\x20format:*\x20%0',_0x37e85f)};}});}}function oo(_0x4f64f4){return'blockQuote'==_0x4f64f4['parent']['name'];}class G extends _0x5c469f{['afterInit'](){const _0x225e97=this['editor'],_0x1312f7=_0x225e97['locale'],_0x5af389=_0x225e97['plugins']['get']('TrackChangesEditing');_0x225e97['plugins']['has']('BookmarkEditing')&&(_0x5af389['enableCommand']('insertBookmark'),_0x5af389['enableDefaultAttributesIntegration']('updateBookmark'),_0x5af389['descriptionFactory']['registerDescriptionCallback'](_0x396151=>{if('insertion'!=_0x396151['type']&&'deletion'!=_0x396151['type']&&'attribute'!=_0x396151['type'])return;const _0x2d1466=_0x396151['getContainedElement']();if(null==_0x2d1466)return;if(!_0x2d1466['is']('element','bookmark'))return;const _0x462f44=_0x2d1466['getAttribute']('bookmarkId');if('insertion'==_0x396151['type'])return{'type':'insertion','content':o(_0x1312f7,'*Insert:*\x20%0','\x22'+_0x462f44+'\x22\x20'+o(_0x1312f7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x396151['type'])return{'type':'deletion','content':o(_0x1312f7,'*Remove:*\x20%0','\x22'+_0x462f44+'\x22\x20'+o(_0x1312f7,'ELEMENT_BOOKMARK'))};const {data:_0x24b54c}=_0x396151;if(!_0x24b54c||'bookmarkId'!=_0x24b54c['key'])return;return{'type':'format','content':o(_0x1312f7,'*Set\x20bookmark:*\x20%0','\x22'+_0x24b54c['newValue']+'\x22')};}));}}class L extends _0x5c469f{['afterInit'](){const _0x42ec43=this['editor'];_0x42ec43['plugins']['has']('CaseChange')&&(_0x42ec43['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42ec43['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42ec43['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x5c469f{['afterInit'](){const _0x21fa79=this['editor'];_0x21fa79['commands']['get']('ckbox')&&_0x21fa79['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5c469f{['afterInit'](){const _0x4a6a04=this['editor'];if(!_0x4a6a04['plugins']['has']('CodeBlock'))return;const _0x5d8884=_0x4a6a04['plugins']['get']('TrackChangesEditing'),_0x357b98=_0x4a6a04['locale'],_0x3d60d4=_0x4a6a04['config']['get']('codeBlock')['languages'],_0x156305=_0x4a6a04['commands']['get']('codeBlock');_0x5d8884['enableCommand']('indentCodeBlock'),_0x5d8884['enableCommand']('outdentCodeBlock'),_0x5d8884['enableCommand']('codeBlock',(_0xfec5fe,_0x1cef87={})=>{const _0x1b8398=_0x4a6a04['model'],_0x33c6d4=_0x4a6a04['model']['document']['selection'],_0x4bac5d=_0x1cef87&&void 0x0!==_0x1cef87['forceValue']?_0x1cef87['forceValue']:!_0x156305['value'];let _0x3b9fc7;_0x1cef87['language']||(_0x1cef87['language']=_0x3d60d4[0x0]['language']),_0x3b9fc7=_0x4bac5d?Array['from'](_0x33c6d4['getSelectedBlocks']())['filter'](_0x1d16fe=>co(_0x1d16fe)||function(_0x3e6aee,_0x81790e){if(_0x3e6aee['is']('rootElement')||_0x81790e['isLimit'](_0x3e6aee))return!0x1;return _0x81790e['checkChild'](_0x3e6aee['parent'],'codeBlock');}(_0x1d16fe,_0x1b8398['schema'])):Array['from'](_0x33c6d4['getSelectedBlocks']())['filter'](_0x1ab198=>co(_0x1ab198));const _0x32fe65=to(_0x3b9fc7,_0x1b8398);_0x1b8398['change'](()=>{for(const _0x3e4d05 of _0x32fe65)_0x5d8884['markBlockFormat'](_0x3e4d05,{'commandName':'codeBlock','commandParams':[{..._0x1cef87,'forceValue':_0x4bac5d}],'formatGroupId':'blockName'});});}),(_0x5d8884['descriptionFactory']['registerElementLabel']('codeBlock',_0x235c96=>o(_0x357b98,'ELEMENT_CODE_BLOCK',_0x235c96)),_0x5d8884['descriptionFactory']['registerDescriptionCallback'](_0xabd429=>{if('formatBlock'!=_0xabd429['type'])return;const _0xe5292a=_0x357b98['t'],{data:_0x406513}=_0xabd429;if(!_0x406513||'codeBlock'!=_0x406513['commandName'])return;const _0x38180c=_0x406513['commandParams'][0x0]['language'],_0x13ef81=_0xe5292a(_0x3d60d4['find'](_0x13de3b=>_0x13de3b['language']===_0x38180c)['label'])['toLowerCase']();return _0x406513['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x357b98,'*Set\x20format:*\x20%0',o(_0x357b98,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x13ef81+')')}:{'type':'format','content':o(_0x357b98,'*Remove\x20format:*\x20%0',o(_0x357b98,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1637dd){return'codeBlock'==_0x1637dd['name'];}class z extends _0x5c469f{['afterInit'](){const _0x229b43=this['editor'];if(!_0x229b43['plugins']['has']('CommentsEditing'))return;_0x229b43['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x5c469f{static get['requires'](){return[_0x208762];}['init'](){const _0x56b838=this['editor'],_0x3a846e=_0x56b838['plugins']['get']('TrackChangesEditing');_0x3a846e['enableCommand']('delete');const _0x25d6df=_0x56b838['commands']['get']('deleteForward');_0x3a846e['enableCommand']('deleteForward',(_0x4c64af,_0x10d66c={})=>{const _0x2de65f=_0x56b838['model']['createSelection'](_0x56b838['model']['document']['selection']);_0x2de65f['isCollapsed']&&_0x56b838['model']['modifySelection'](_0x2de65f,{'direction':'forward','unit':_0x10d66c['unit']});const _0x1dc8ae=_0x2de65f['getFirstRange'](),_0x405d60=_0x167977['fromRange'](_0x1dc8ae);let _0x593e58;_0x4c64af(_0x10d66c),_0x593e58='$graveyard'==_0x405d60['root']['rootName']?_0x56b838['model']['createRange'](_0x1dc8ae['start']):_0x56b838['model']['createRange'](_0x405d60['start'],_0x405d60['end']),_0x405d60['detach'](),_0x56b838['model']['enqueueChange'](_0x25d6df['buffer']['batch'],_0x4344f2=>{_0x25d6df['buffer']['lock'](),_0x4344f2['setSelection'](_0x4344f2['createRange'](_0x593e58['end'])),_0x25d6df['buffer']['unlock']();});});}}class W extends _0x5c469f{['afterInit'](){const _0x4ef17d=this['editor'];if(!_0x4ef17d['plugins']['has']('ListEditing'))return;const _0x3304e6=_0x4ef17d['locale'],_0x1b0bd8=_0x4ef17d['plugins']['get']('TrackChangesEditing'),_0x4d6846=_0x4ef17d['plugins']['has']('TodoListEditing'),_0x426872=!!_0x4ef17d['config']['get']('list.multiBlock');function _0x3432c4(_0x2ff59d){return{'type':'format','content':''+o(_0x3304e6,'*Set\x20format:*\x20%0',_0x2ff59d)};}function _0x57fbc6(_0x29bff5){return{'type':'format','content':''+o(_0x3304e6,'*Remove\x20format:*\x20%0',_0x29bff5)};}_0x1b0bd8['enableDefaultAttributesIntegration']('numberedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('bulletedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('customNumberedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('customBulletedList'),_0x1b0bd8['enableDefaultAttributesIntegration']('indentList'),_0x1b0bd8['enableDefaultAttributesIntegration']('outdentList'),_0x1b0bd8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1b0bd8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x426872&&(_0x1b0bd8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1b0bd8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4d6846&&(_0x1b0bd8['enableDefaultAttributesIntegration']('todoList'),_0x1b0bd8['enableDefaultAttributesIntegration']('checkTodoList'),_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x192f3f=>{const {data:_0x5e5d27}=_0x192f3f;if(_0x5e5d27&&'todoListChecked'==_0x5e5d27['key'])return{'type':'format','content':_0x5e5d27['newValue']?o(_0x3304e6,'*Check\x20item*'):o(_0x3304e6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4c9c46=>{if(_0x4c9c46['batch']['isUndo'])return!0x1;let _0x450791=!0x1;const _0x2ebbc2=_0x1b0bd8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x351081=>'todoListChecked'===_0x1b0bd8['_getAttributeKey'](_0x351081));for(const _0x54a0b2 of _0x2ebbc2){'todo'!=_0x54a0b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1b0bd8['_findSuggestions'](_0x54a0b2['getFirstRange'](),'attribute')['find'](_0x17c823=>'listType'===_0x1b0bd8['_getAttributeKey'](_0x17c823['suggestion']))||(_0x4c9c46['removeMarker'](_0x54a0b2['getFirstMarker']()),_0x450791=!0x0));}return _0x450791;})),_0x1b0bd8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3304e6,'FORMAT_INDENT'));const _0x5b9271={'type':'format','content':''};_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x246acb=>{const {data:_0x2ee74a}=_0x246acb;if(!_0x2ee74a||'listType'!=_0x2ee74a['key'])return;let _0x5a06d1=_0x246acb['head'];for(;_0x5a06d1;){if(_0x5a06d1['data']&&(('listStyle'==_0x5a06d1['data']['key']||'listMarkerStyle'==_0x5a06d1['data']['key'])&&(_0x5a06d1['data']['newValue']&&'default'!=_0x5a06d1['data']['newValue']||'default'!=_0x5a06d1['data']['oldValue']&&!_0x2ee74a['newValue'])||!_0x426872&&_0x5a06d1['data']['key']==m))return _0x5b9271;_0x5a06d1=_0x5a06d1['next'];}if(null==_0x2ee74a['newValue'])switch(_0x2ee74a['oldValue']){case'bulleted':return _0x57fbc6(o(_0x3304e6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x57fbc6(o(_0x3304e6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x57fbc6(o(_0x3304e6,'ELEMENT_TODO_LIST'));}switch(_0x2ee74a['newValue']){case'bulleted':return _0x3432c4(o(_0x3304e6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3432c4(o(_0x3304e6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3432c4(o(_0x3304e6,'ELEMENT_TODO_LIST'));}}),_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x41a0a3=>{const {data:_0x53d89a}=_0x41a0a3;if(_0x53d89a&&'listIndent'==_0x53d89a['key'])return null==_0x53d89a['newValue']||null==_0x53d89a['oldValue']&&0x0==_0x53d89a['newValue']?_0x5b9271:void 0x0;}),_0x1b0bd8['descriptionFactory']['registerDescriptionCallback'](_0x57081b=>{if('attribute'!=_0x57081b['type'])return;const {data:_0x4b1dcb}=_0x57081b;if(!_0x4b1dcb||'listItemId'!=_0x4b1dcb['key'])return;const _0xb0eb1c=Te(_0x57081b);return'newValue'==_0xb0eb1c?{'type':'format','content':o(_0x3304e6,'*Merge:*\x20list\x20item')}:'oldValue'==_0xb0eb1c?{'type':'format','content':o(_0x3304e6,'*Split:*\x20list\x20item')}:_0x5b9271;}),_0x4ef17d['model']['document']['registerPostFixer'](_0x80684e=>this['listItemIdFixer'](_0x80684e)),_0x4ef17d['model']['document']['registerPostFixer'](_0xe87224=>this['noTrackChangesFixer'](_0xe87224)),_0x4ef17d['model']['document']['on']('change:data',(_0x678999,_0x263c94)=>{if(_0x263c94['isUndo']||!_0x263c94['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x26999a){if(_0x26999a['batch']['isUndo']||!_0x26999a['batch']['isLocal'])return!0x1;let _0x954d88=!0x1;const _0x1900c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bdfda=>_0x5bdfda['data']&&'listItemId'==_0x5bdfda['data']['key'])['filter'](_0x9380b6=>_0x9380b6['data']['newValue']&&_0x9380b6['data']['oldValue']);for(const _0x26152f of _0x1900c9)Te(_0x26152f)||(_0x26999a['removeMarker'](_0x26152f['getFirstMarker']()),_0x954d88=!0x0);return _0x954d88;}['noTrackChangesFixer'](_0x565fc3){if(_0x565fc3['batch']['isUndo']||!_0x565fc3['batch']['isLocal'])return!0x1;const _0x29bc4f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x29bc4f['trackChangesCommand']['value'])return!0x1;let _0x426a69=!0x1;const _0x1a57b6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2020d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2fba5a=>'attribute'==_0x2fba5a['type'])['filter'](_0x40a2dd=>_0x1a57b6['includes'](_0x40a2dd['attributeKey']));if(0x0==_0x2020d1['length'])return _0x426a69;for(const _0x42b63c of _0x2020d1){const _0x3edbeb=_0x29bc4f['_findSuggestions'](_0x42b63c['range'],'attribute')['filter'](_0x55b8ca=>!_0x55b8ca['meta']['isNextTo'])['map'](_0xddad5e=>_0xddad5e['suggestion'])['filter'](_0x157e0e=>{const _0x15b2b0=_0x29bc4f['_getAttributeKey'](_0x157e0e);return _0x1a57b6['includes'](_0x15b2b0);});if(_0x3edbeb['length']){for(const _0x5727c4 of _0x3edbeb)_0x565fc3['removeMarker'](_0x5727c4['getFirstMarker']());_0x426a69=!0x0;}}return _0x426a69;}['assureChains'](){const _0x9959bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19f50a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3160cc;const _0x468b22=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c3a48=>{if(_0x1c3a48['data']['oldRange']||!_0x1c3a48['data']['newRange'])return null;if(!_0x1c3a48['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x289153}=_0x9959bd['_splitMarkerName'](_0x1c3a48['name']);if(!_0x9959bd['hasSuggestion'](_0x289153))return null;const _0x4da57b=_0x9959bd['getSuggestion'](_0x289153);return _0x19f50a['includes'](_0x4da57b['data']['key']);})['map'](_0x4de746=>{const {id:_0x9c836e}=_0x9959bd['_splitMarkerName'](_0x4de746['name']),_0xbcbef4=_0x9959bd['getSuggestion'](_0x9c836e);return _0x3160cc=_0xbcbef4['attributes']['groupId'],_0xbcbef4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x468b22['size'])return;const _0xbfff50=_0x9959bd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x96139b=>'attribute'==_0x96139b['type']&&_0x96139b['data']&&_0x19f50a['includes'](_0x96139b['data']['key'])&&_0x96139b['attributes']['groupId']!=_0x3160cc)['map'](_0x2eaad7=>({'listItem':_0x2eaad7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2eaad7['attributes']['groupId']})),_0x8be956=new Set();for(const {groupId:_0xc2aa70,listItem:_0x8ad481}of _0xbfff50)_0x468b22['has'](_0x8ad481)&&_0x8be956['add'](_0xc2aa70);for(const _0x1b6e65 of _0x9959bd['getSuggestions']())_0x8be956['has'](_0x1b6e65['attributes']['groupId'])&&_0x1b6e65['setAttribute']('groupId',_0x3160cc);}['_supportLegacySuggestions'](){const _0x368770=this['editor'],_0x3e7b70=_0x368770['locale'],_0x705230=_0x368770['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x705230['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2bd44a,_0x40e1be){const _0x396ebe=[];for(let _0x36b417 of _0x2bd44a)_0x36b417['start']['nodeAfter']===_0x36b417['end']['parent']&&(_0x36b417=_0x368770['model']['createRange'](_0x368770['model']['createPositionAt'](_0x36b417['start']['nodeAfter'],0x0))),_0x396ebe['push'](_0x36b417);_0x368770['model']['change'](_0x2280f6=>{const _0x46a25c=_0x368770['model']['document']['selection'],_0x47ac75=Array['from'](_0x46a25c['getRanges']())['map'](_0x55edda=>_0x167977['fromRange'](_0x55edda));_0x2280f6['setSelection'](_0x396ebe),_0x368770['commands']['get'](_0x40e1be['commandName'])['refresh'](),_0x40e1be['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x368770['execute'](_0x40e1be['commandName'],..._0x40e1be['commandParams']),_0x2280f6['setSelection'](_0x47ac75);for(const _0x1512c8 of _0x47ac75)_0x1512c8['detach']();});}),_0x705230['descriptionFactory']['registerElementLabel'](function(_0x3fc313){const _0x105022=!_0x368770['model']['schema']['isObject'](_0x3fc313),_0x31864a=_0x3fc313['previousSibling'],_0x5ca841=_0x3fc313['nextSibling'],_0x5e43fd=_0x3fc313['getAttribute']('listItemId'),_0xbbf2eb=!_0x31864a||_0x31864a['getAttribute']('listItemId')!==_0x5e43fd,_0x2ab7f3=!_0x5ca841||_0x5ca841['getAttribute']('listItemId')!==_0x5e43fd;return _0x105022&&Boolean(_0x5e43fd)&&_0xbbf2eb&&_0x2ab7f3;},_0x3969a4=>o(_0x3e7b70,'ELEMENT_LIST_ITEM',_0x3969a4));}['_registerLegacyDescription'](){const _0x2c465a=this['editor'],_0x5521b3=_0x2c465a['locale'];function _0x5bbfcf(_0x22ff86){const _0x43b677=_0x2c465a['commands']['get']('bulletedList')['value'],_0x5cc927=_0x2c465a['commands']['get']('numberedList')['value'];return'numberedList'===_0x22ff86?_0x43b677:_0x5cc927;}_0x2c465a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d4afe){if('formatBlock'!=_0x2d4afe['type'])return;const {data:_0x7d45c8}=_0x2d4afe;if(!_0x7d45c8)return;let _0x46ca12,_0x2d254c,_0x41c6fd,_0x417439;switch(_0x7d45c8['commandName']){case'bulletedList':_0x41c6fd=_0x7d45c8['commandParams'][0x0]['forceValue'],_0x417439=_0x5bbfcf(_0x7d45c8['commandName']),_0x46ca12=_0x41c6fd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x417439&&_0x2c465a['config']['get']('list.multiBlock')||(_0x46ca12='*Change\x20to:*\x20%0'),_0x2d254c={'type':'format','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41c6fd=_0x7d45c8['commandParams'][0x0]['forceValue'],_0x417439=_0x5bbfcf(_0x7d45c8['commandName']),_0x46ca12=_0x41c6fd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x417439&&_0x2c465a['config']['get']('list.multiBlock')||(_0x46ca12='*Change\x20to:*\x20%0'),_0x2d254c={'type':'format','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x46ca12='*Indent:*\x20%0',_0x2d254c={'type':'format','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x46ca12=function(_0x5a8f70){const _0x194e88=_0x5a8f70['getFirstRange']();let _0x3822c8=_0x194e88['start']['nodeAfter'];for(;_0x3822c8&&_0x194e88['containsItem'](_0x3822c8);){if(_0x3822c8['getAttribute']('listIndent')>0x0)return!0x1;_0x3822c8=_0x3822c8['nextSibling'];}return!0x0;}(_0x2d4afe)?o(_0x5521b3,'*Format:*\x20remove\x20from\x20%0',o(_0x5521b3,function(_0x340016){return'ELEMENT_'+_0x340016['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d4afe))):o(_0x5521b3,'*Outdent:*\x20%0',o(_0x5521b3,'ELEMENT_LIST_ITEM')),_0x2d254c={'type':'format','content':_0x46ca12};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7d45c8['multipleBlocks']&&(_0x46ca12='*Merge:*\x20%0',_0x2d254c={'type':'deletion','content':o(_0x5521b3,_0x46ca12,o(_0x5521b3,'ELEMENT_LIST_ITEM'))});}return _0x2d254c;});}}function Te(_0x5a38e3){let _0x38a5a2=_0x5a38e3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38a5a2;){const _0x2f4ac8=_0x38a5a2['getAttribute']('listItemId');if(!_0x2f4ac8)return!0x1;if(_0x2f4ac8==_0x5a38e3['data']['newValue'])return'newValue';if(_0x2f4ac8==_0x5a38e3['data']['oldValue'])return'oldValue';_0x38a5a2=_0x38a5a2['previousSibling'];}return!0x1;}class H extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xcad536=this['editor']['config']['get']('list.properties'),_0x99ba9a=this['editor']['plugins']['get']('TrackChangesEditing');_0xcad536['styles']&&_0x99ba9a['enableDefaultAttributesIntegration']('listStyle'),_0xcad536['reversed']&&_0x99ba9a['enableDefaultAttributesIntegration']('listReversed'),_0xcad536['startIndex']&&_0x99ba9a['enableDefaultAttributesIntegration']('listStart');const _0x48ea1b={'type':'format','content':''};_0x99ba9a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d8ee9=this['editor']['locale'];_0x99ba9a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d8ee9,'FORMAT_LIST_REVERSED')),_0x99ba9a['descriptionFactory']['registerDescriptionCallback'](_0x51175f=>{const {data:_0x4cb4ce}=_0x51175f;if(_0x4cb4ce&&'listReversed'==_0x4cb4ce['key'])return null==_0x4cb4ce['newValue']||0x0==_0x4cb4ce['newValue']&&null==_0x4cb4ce['oldValue']?_0x48ea1b:void 0x0;}),_0x99ba9a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d8ee9,'FORMAT_LIST_START')),_0x99ba9a['descriptionFactory']['registerDescriptionCallback'](_0x4059f6=>{const {data:_0xd943dd}=_0x4059f6;if(_0xd943dd&&'listStart'==_0xd943dd['key'])return null==_0xd943dd['newValue']||0x1==_0xd943dd['newValue']&&null==_0xd943dd['oldValue']?_0x48ea1b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b26a5=>{if(_0x1b26a5['batch']['isUndo'])return!0x1;let _0xe843b8=!0x1;const _0x3fc102=_0x99ba9a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245272=>{const _0x5977f2=_0x99ba9a['_getAttributeKey'](_0x245272);return'listStart'==_0x5977f2||'listReversed'==_0x5977f2;});for(const _0x4d3542 of _0x3fc102){const _0x27e6c6=_0x4d3542['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x27e6c6||'customNumbered'==_0x27e6c6)continue;_0x99ba9a['_findSuggestions'](_0x4d3542['getFirstRange'](),'attribute')['find'](_0x1ef78e=>'listType'==_0x99ba9a['_getAttributeKey'](_0x1ef78e['suggestion']))||(_0x1b26a5['removeMarker'](_0x4d3542['getFirstMarker']()),_0xe843b8=!0x0);}return _0xe843b8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5315a7){const _0x7b75a4=this['editor']['locale'],{data:_0x317c1f}=_0x5315a7,_0x17f6f9={'type':'format','content':''};if(!_0x317c1f||'listStyle'!=_0x317c1f['key'])return;if(!_0x317c1f['oldValue'])return'default'==_0x317c1f['newValue']?_0x17f6f9:{'type':'format','content':''+o(_0x7b75a4,'*Set\x20format:*\x20%0',o(_0x7b75a4,this['_getTranslationKeyForListStyle'](_0x317c1f['newValue'])))};if(!_0x317c1f['newValue']){if('default'==_0x317c1f['oldValue'])return _0x17f6f9;let _0x51dd15=_0x5315a7['head'];for(;_0x51dd15;){if(_0x51dd15['data']&&'listType'==_0x51dd15['data']['key']&&_0x51dd15['data']['newValue'])return _0x17f6f9;_0x51dd15=_0x51dd15['next'];}return{'type':'format','content':''+o(_0x7b75a4,'*Remove\x20format:*\x20%0',o(_0x7b75a4,this['_getTranslationKeyForListStyle'](_0x317c1f['oldValue'])))};}if('default'!=_0x317c1f['newValue'])return{'type':'format','content':''+o(_0x7b75a4,'*Set\x20format:*\x20%0',o(_0x7b75a4,this['_getTranslationKeyForListStyle'](_0x317c1f['newValue'])))};let _0x41fc77=_0x5315a7['head'];for(;_0x41fc77;){if(_0x41fc77['data']&&'listType'==_0x41fc77['data']['key']&&_0x41fc77['data']['newValue']&&_0x41fc77['data']['oldValue'])return _0x17f6f9;_0x41fc77=_0x41fc77['next'];}return{'type':'format','content':o(_0x7b75a4,'*Set\x20format:*\x20%0',o(_0x7b75a4,'ELEMENT_'+_0x5315a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x401a0d=this['editor'],_0x50a90d=_0x401a0d['locale'];_0x401a0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x115abe=>{if('formatBlock'!=_0x115abe['type'])return;const {data:_0x73ec02}=_0x115abe;if(!_0x73ec02)return;let _0x57a9d8,_0x1090b0;switch(_0x73ec02['commandName']){case'listStyle':_0x57a9d8='*Change\x20to:*\x20%0',_0x1090b0={'type':'format','content':o(_0x50a90d,_0x57a9d8,o(_0x50a90d,this['_getTranslationKeyForListStyle'](_0x73ec02['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57a9d8=_0x73ec02['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1090b0={'type':'format','content':o(_0x50a90d,_0x57a9d8)};break;case'listStart':_0x57a9d8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1090b0={'type':'format','content':o(_0x50a90d,_0x57a9d8,_0x73ec02['commandParams'][0x0]['startIndex'])};}return _0x1090b0;});}['_getTranslationKeyForListStyle'](_0x469f51){return'ELEMENT_'+function(_0x5b7c7e){if(ye['includes'](_0x5b7c7e))return'bulleted';if(Se['includes'](_0x5b7c7e))return'numbered';return null;}(_0x469f51)['toUpperCase']()+'_LIST_'+_0x469f51['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x5c469f{['afterInit'](){const _0x5b7109=this['editor'];_0x5b7109['commands']['get']('emoji')&&_0x5b7109['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x5c469f{static get['requires'](){return[_0x560292];}['init'](){const _0x194c90=this['editor'],_0x3a04f5=_0x194c90['plugins']['get']('TrackChangesEditing'),_0x8986d=_0x194c90['commands']['get']('enter');_0x3a04f5['enableCommand']('enter',()=>{_0x194c90['model']['change'](_0x5d1b79=>{const _0xdc7d18=_0x194c90['model']['document']['selection'],_0x2718e5=_0xdc7d18['getFirstPosition'](),_0x31d71e=_0x167977['fromRange'](_0xdc7d18['getFirstRange']());if(_0x8986d['enterBlock'](_0x5d1b79)){const _0x3238ea=_0x194c90['model']['createPositionAt'](_0x2718e5['parent']['nextSibling'],0x0),_0x2280e4=_0x5d1b79['createRange'](_0x2718e5,_0x3238ea);_0x3a04f5['markInsertion'](_0x2280e4);}else _0x5d1b79['setSelection'](_0x5d1b79['createRange'](_0x31d71e['end']));_0x31d71e['detach'](),_0x8986d['fire']('afterExecute',{'writer':_0x5d1b79});});});}}class Y extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x472731=this['editor']['plugins']['get']('TrackChangesEditing');_0x472731['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x472731['enableCommand']('findNext'),_0x472731['enableCommand']('findPrevious'),_0x472731['enableCommand']('replace'),_0x472731['enableCommand']('replaceAll');}['handleFindCommand'](_0x521dba,_0x34f9eb,_0x1ac741={}){const _0x4a3d78=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x521dba(_0x49d7f1=>{let _0x37bbaf=('string'==typeof _0x34f9eb?_0x4a3d78['findByTextCallback'](_0x34f9eb,_0x1ac741):_0x34f9eb)(_0x49d7f1);Array['isArray'](_0x37bbaf)&&(_0x37bbaf={'results':_0x37bbaf,'searchText':'string'==typeof _0x34f9eb?_0x34f9eb:''});const _0x3de599=_0x37bbaf['results']['filter'](_0x5379ba=>!0x1===this['_isInDeletionRange'](_0x5379ba,_0x49d7f1['item']));return{..._0x37bbaf,'results':_0x3de599};},_0x1ac741);}['_isInDeletionRange'](_0x24d46e,_0x51379c){const _0x10aafc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51379c,_0x24d46e['start']),this['editor']['model']['createPositionAt'](_0x51379c,_0x24d46e['end']));for(const _0x249e64 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x10aafc['getIntersection'](_0x249e64['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x5c469f{['afterInit'](){const _0x34644e=this['editor']['locale'],_0x234fb5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xba34b0,commandName:_0x205fed}of eo)this['editor']['plugins']['has'](_0xba34b0)&&_0x234fb5['enableDefaultAttributesIntegration'](_0x205fed);_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x34644e,'FORMAT_FONT_SIZE')),_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x34644e,'FORMAT_FONT_FAMILY')),_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x34644e,'FORMAT_FONT_COLOR')),_0x234fb5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x34644e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166df2=this['editor'],_0x1b2a4e=_0x166df2['locale'];_0x166df2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd660=>{const _0x1551aa=_0x1b2a4e['t'];if('formatInline'!=_0x2fd660['type'])return;const {data:_0x5580f0}=_0x2fd660;if(null!=_0x5580f0){if('fontSize'==_0x5580f0['commandName']){const _0xb642c5=_0x5580f0['commandParams'][0x0]['value'];if(_0xb642c5){const _0x35d82e=_0x1551aa(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xfe0e80=>_0xfe0e80['model']==_0xb642c5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20size:*\x20%0',_0x35d82e)};}return{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5580f0['commandName']){const _0x7abe51=_0x5580f0['commandParams'][0x0]['value'];return _0x7abe51?{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20family:*\x20%0',_0x7abe51)}:{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5580f0['commandName']){const _0x5cf030=_0x5580f0['commandParams'][0x0]['value'];if(_0x5cf030){const _0x16961f=_0x1cd192(this['editor']['config']['get']('fontColor.colors'))['find'](_0x43dde4=>_0x43dde4['model']==_0x5cf030);let _0xee8ab9=_0x5cf030,_0x12fb0a='';return _0x16961f&&(_0xee8ab9=_0x16961f['label'],_0x12fb0a=_0x1551aa(_0xee8ab9)['toLowerCase']()),{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20color:*\x20%0',_0x12fb0a)['trim'](),'color':{'value':_0x5cf030,'title':_0x12fb0a||_0xee8ab9}};}return{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5580f0['commandName']){const _0x5f0b1a=_0x5580f0['commandParams'][0x0]['value'];if(_0x5f0b1a){const _0x1ed53a=_0x1cd192(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4dced2=>_0x4dced2['model']==_0x5f0b1a);let _0x295d16=_0x5f0b1a,_0x5e4f8c='';return _0x1ed53a&&(_0x295d16=_0x1ed53a['label'],_0x5e4f8c=_0x1551aa(_0x295d16)['toLowerCase']()),{'type':'format','content':o(_0x1b2a4e,'*Set\x20font\x20background\x20color:*\x20%0',_0x5e4f8c)['trim'](),'color':{'value':_0x5f0b1a,'title':_0x5e4f8c||_0x295d16}};}return{'type':'format','content':o(_0x1b2a4e,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x5c469f{['afterInit'](){const {plugins:_0x3d5b30}=this['editor'];_0x3d5b30['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3d5b30['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x386b00,plugins:_0x3b6b7b,commands:_0x5d803c}=this['editor'],_0x228394=_0x3b6b7b['get']('TrackChangesEditing');_0x5d803c['get']('footnotesStyle')&&_0x228394['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5d803c['get']('footnotesStart')&&_0x228394['enableDefaultAttributesIntegration']('footnotesStart'),_0x228394['registerBlockAttribute']('footnotesListStyle'),_0x228394['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x386b00,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x228394['registerBlockAttribute']('footnotesListStart'),_0x228394['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x386b00,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x125efe=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x704237,commands:_0x26936f}=this['editor'];_0x26936f['get']('insertFootnote')&&_0x125efe['enableCommand']('insertFootnote'),_0x125efe['descriptionFactory']['registerElementLabel']('footnoteRef',_0x5390bd=>o(_0x704237,'ELEMENT_FOOTNOTE_REF',_0x5390bd)),_0x125efe['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0xce9e80=>o(_0x704237,'ELEMENT_FOOTNOTE_DEFINITION',_0xce9e80)),_0x125efe['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x37ce40=>o(_0x704237,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x37ce40));}}class nt extends _0x5c469f{['afterInit'](){const _0x30deff=this['editor'],_0x46e1eb=_0x30deff['plugins']['get']('TrackChangesEditing'),_0x4e6276=_0x30deff['commands']['get']('copyFormat'),_0x3c8442=_0x30deff['commands']['get']('pasteFormat');_0x4e6276&&_0x3c8442&&(_0x46e1eb['enableDefaultAttributesIntegration']('pasteFormat'),_0x46e1eb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x219b6d=this['editor'],_0x429327=_0x219b6d['locale'];_0x219b6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f4bbe=>{if('formatBlock'!=_0x4f4bbe['type']&&'formatInline'!=_0x4f4bbe['type'])return;const {data:_0x4eb2bd}=_0x4f4bbe;if(_0x4eb2bd&&'pasteFormat'===_0x4eb2bd['commandName']){const _0x3e8cb7=[],_0x1171bb=_0x4eb2bd['commandParams'][0x0];for(const [_0x5863f8,_0x599adf]of Object['entries'](_0x1171bb))_0x3e8cb7['push'](ro(_0x219b6d,_0x5863f8,_0x599adf));return _0x3e8cb7['length']?{'type':'format','content':o(_0x429327,'*Set\x20format\x20to:*\x20%0',_0x3e8cb7['join'](',\x20'))}:{'type':'format','content':o(_0x429327,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2185f9,_0x7754ab,_0x5e6b0a){const _0x4351f1=_0x2185f9['locale']['t'],_0x11dc26=_0x7754ab['split'](/(?=[A-Z])/)['join']('\x20'),_0x902ea5=_0x4351f1(_0x11dc26['charAt'](0x0)['toUpperCase']()+_0x11dc26['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5e6b0a)return _0x902ea5;if('fontColor'===_0x7754ab||'fontBackgroundColor'===_0x7754ab){const _0x58e779=_0x1cd192(_0x2185f9['config']['get']('fontColor.colors'))['find'](_0x1ae79b=>_0x1ae79b['model']==_0x5e6b0a);return _0x902ea5+'\x20('+(_0x58e779?_0x4351f1(_0x58e779['label'])['toLowerCase']():_0x5e6b0a)+')';}if('fontSize'===_0x7754ab&&isNaN(parseFloat(_0x5e6b0a))){const _0x1fe9bf=_0x2185f9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2185f9['config']['get']('fontSize.options'))['find'](_0x17403d=>_0x17403d['model']==_0x5e6b0a);return _0x902ea5+'\x20('+(_0x1fe9bf?_0x4351f1(_0x1fe9bf['title'])['toLowerCase']():_0x5e6b0a)+')';}return _0x902ea5+'\x20('+_0x5e6b0a+')';}class it extends _0x5c469f{['_headingOptions'];['afterInit'](){const _0x1eb8b6=this['editor'];if(!_0x1eb8b6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1eb8b6['config']['get']('heading.options');const _0x30b82c=_0x1eb8b6['locale'],_0x474cfe=_0x1eb8b6['plugins']['get']('TrackChangesEditing');_0x474cfe['enableDefaultAttributesIntegration']('heading');for(const _0x2671a1 of this['_headingOptions'])'paragraph'!=_0x2671a1['model']&&_0x474cfe['descriptionFactory']['registerElementLabel'](_0x2671a1['model'],_0x2d283e=>{const _0x18ee1f=this['_getHeadingLevel'](_0x2671a1['model']);return null!==_0x18ee1f?_0x414ec7(_0x2d283e,_0x18ee1f):_0x3599ee(_0x2d283e,_0x2671a1['title']);});function _0x414ec7(_0x9f9b24,_0x28535e){return o(_0x30b82c,'ELEMENT_HEADING',[_0x9f9b24,_0x28535e]);}function _0x3599ee(_0x19c846,_0x2446a4){return o(_0x30b82c,'ELEMENT_HEADING_CUSTOM',[_0x19c846,_0x2446a4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bd9f9=this['editor'],_0x5f4895=_0x3bd9f9['locale'];function _0x1ceed2(_0x29459d,_0x23e521){return o(_0x5f4895,'ELEMENT_HEADING_CUSTOM',[_0x29459d,_0x23e521]);}_0x3bd9f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x485456=>{if('formatBlock'!=_0x485456['type'])return;const {data:_0x4dfb29}=_0x485456;if(_0x4dfb29&&'heading'==_0x4dfb29['commandName']){const _0x6f7ea=_0x4dfb29['commandParams'][0x0]['value'],_0x1adab3=this['_getHeadingLevel'](_0x6f7ea);if(null!==_0x1adab3)return{'type':'format','content':o(_0x5f4895,'*Change\x20to:*\x20%0',(_0x2336ee=0x1,_0x2fbc6d=_0x1adab3,o(_0x5f4895,'ELEMENT_HEADING',[_0x2336ee,_0x2fbc6d])))};const _0x376918=this['_headingOptions']['find'](_0x5a5357=>_0x5a5357['model']===_0x6f7ea)['title'];return{'type':'format','content':o(_0x5f4895,'*Change\x20to:*\x20%0',_0x1ceed2(0x1,_0x376918))};}var _0x2336ee,_0x2fbc6d;});}['_getHeadingLevel'](_0x57b046){const _0x487e6e=_0x57b046['match'](/^heading(\d+)/);if(_0x487e6e)return _0x487e6e[0x1];const _0x104668=this['_headingOptions']?.['find'](_0xdf7507=>_0xdf7507['model']==_0x57b046);if(_0x104668&&_0x104668['view']){const _0x4383e4=_0x104668['view'],_0x197421=(_0x4383e4['name']??_0x4383e4)['match'](/^h(\d+)/);if(_0x197421)return _0x197421[0x1];}return null;}}class et extends _0x5c469f{['afterInit'](){const _0x1fe387=this['editor'];if(!_0x1fe387['plugins']['has']('HighlightEditing'))return;const _0xdfb6b5=_0x1fe387['plugins']['get']('TrackChangesEditing'),_0x2bd158=_0x1fe387['locale'];_0xdfb6b5['enableDefaultAttributesIntegration']('highlight'),_0xdfb6b5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2bd158,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5734cc=this['editor'],_0x26382d=_0x5734cc['locale'];_0x5734cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dff1a=>{if('formatInline'!=_0x4dff1a['type'])return;const {data:_0x4cc959}=_0x4dff1a;if(_0x4cc959&&'highlight'==_0x4cc959['commandName']){const _0x8bdbe8=_0x26382d['t'],_0x101d75=_0x4cc959['commandParams'][0x0]['value'];if(_0x101d75){const _0x2de34e=_0x5734cc['config']['get']('highlight.options')['find'](_0x3f7c4f=>_0x3f7c4f['model']==_0x101d75),_0x36c754=_0x8bdbe8(_0x2de34e['title'])['toLowerCase']();return{'type':'format','content':o(_0x26382d,'*Set\x20highlight:*\x20%0',_0x36c754),'color':{'value':_0x2de34e['color'],'title':_0x2de34e['title']}};}return{'type':'format','content':o(_0x26382d,'*Remove\x20highlight*',o(_0x26382d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5c469f{['afterInit'](){const _0x265b7c=this['editor'];if(!_0x265b7c['plugins']['has']('HorizontalLineEditing'))return;_0x265b7c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3df594=_0x265b7c['plugins']['get']('TrackChangesEditing'),_0x83bbf5=_0x265b7c['locale'];_0x3df594['descriptionFactory']['registerElementLabel']('horizontalLine',_0x194706=>o(_0x83bbf5,'ELEMENT_HORIZONTAL_LINE',_0x194706));}}class ot extends _0x5c469f{['afterInit'](){const _0x5c8629=this['editor'];if(!_0x5c8629['plugins']['has']('HtmlEmbed'))return;const _0x48477a=_0x5c8629['plugins']['get']('TrackChangesEditing'),_0x3422b1=_0x5c8629['locale'];_0x48477a['descriptionFactory']['registerElementLabel']('rawHtml',_0x21a86b=>o(_0x3422b1,'ELEMENT_HTML_EMBED',_0x21a86b)),_0x48477a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x48477a['descriptionFactory']['registerDescriptionCallback'](_0x377add=>{if('attribute'!=_0x377add['type'])return;const {data:_0xab36b6}=_0x377add;if(_0xab36b6&&'value'==_0xab36b6['key']&&_0x377add['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4024db=o(_0x3422b1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3422b1,'*Change\x20%0\x20content*',_0x4024db)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0f69=this['editor'],_0x2e9097=_0x4c0f69['locale'];_0x4c0f69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bfe0a=>{if('formatBlock'!=_0x5bfe0a['type'])return;const {data:_0x11d131}=_0x5bfe0a;if(_0x11d131&&'htmlEmbed'==_0x11d131['commandName']){const _0x1360cd=o(_0x2e9097,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2e9097,'*Change\x20%0\x20content*',_0x1360cd)};}});}}class rt extends _0x5c469f{['afterInit'](){const _0x1196dc=this['editor'];if(!_0x1196dc['plugins']['has']('ImageEditing'))return;const _0x1fe4fb=_0x1196dc['plugins']['get']('TrackChangesEditing'),_0x277734=_0x1196dc['plugins']['get']('ImageUtils'),_0x5793ca=_0x1196dc['locale'];_0x1fe4fb['enableCommand']('insertImage'),_0x1fe4fb['descriptionFactory']['registerElementLabel']('imageBlock',_0x503fbc=>o(_0x5793ca,'ELEMENT_IMAGE',_0x503fbc)),_0x1fe4fb['descriptionFactory']['registerElementLabel']('imageInline',_0x518ad3=>o(_0x5793ca,'ELEMENT_INLINE_IMAGE',_0x518ad3)),_0x1fe4fb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5793ca,'ELEMENT_CAPTION')),_0x1196dc['plugins']['has']('ImageUploadEditing')&&_0x1fe4fb['enableCommand']('uploadImage'),_0x1196dc['plugins']['has']('ImageBlockEditing')&&_0x1196dc['plugins']['has']('ImageInlineEditing')&&(_0x1fe4fb['enableCommand']('imageTypeInline',(_0x5b7f40,_0x45b4aa)=>{const _0x5633dc=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']);_0x1196dc['model']['change'](()=>{_0x1fe4fb['markBlockFormat'](_0x5633dc,{'commandName':'imageTypeInline','commandParams':[_0x45b4aa]},[],'convertBlockImageToInline');});}),_0x1fe4fb['enableCommand']('imageTypeBlock',(_0x516f6c,_0x31a1cd)=>{_0x1196dc['model']['change'](_0x1d9795=>{let _0x18aa80=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x4e6ae3=_0x1d9795['createRangeOn'](_0x18aa80);const _0x4adb7d=_0x461c02['fromPosition'](_0x4e6ae3['start'],'toPrevious'),_0x482167=_0x461c02['fromPosition'](_0x4e6ae3['end'],'toNext');_0x1fe4fb['forceDefaultExecution'](()=>_0x516f6c(_0x31a1cd)),_0x18aa80=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x4e6ae3=_0x1d9795['createRangeOn'](_0x18aa80);const _0x410302=_0x1d9795['createRange'](_0x4adb7d,_0x482167);_0x4adb7d['detach'](),_0x482167['detach'](),_0x1fe4fb['markBlockFormat'](_0x18aa80,{'commandName':'imageTypeInline','commandParams':[_0x31a1cd]},[],'convertInlineImageToBlock'),_0x410302['start']['isBefore'](_0x4e6ae3['start'])&&_0x1fe4fb['markInsertion'](_0x1d9795['createRange'](_0x410302['start'],_0x4e6ae3['start']),'convertInlineImageToBlock'),_0x4e6ae3['end']['isBefore'](_0x410302['end'])&&_0x1fe4fb['markInsertion'](_0x1d9795['createRange'](_0x4e6ae3['end'],_0x410302['end']),'convertInlineImageToBlock');});}),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1fe4fb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4a16e0])=>{const _0x19c4dc=_0x1fe4fb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x447f3d=_0x4a16e0['start'],_0x2a62c2=_0x4a16e0['end'];const _0x277c68=_0x1196dc['model']['schema']['getNearestSelectionRange'](_0x447f3d,'backward'),_0x8eb210=_0x1196dc['model']['schema']['getNearestSelectionRange'](_0x2a62c2,'forward');_0x277c68['isCollapsed']&&(_0x447f3d=_0x277c68['start']),_0x8eb210['isCollapsed']&&(_0x2a62c2=_0x8eb210['end']),_0x19c4dc([_0x1196dc['model']['createRange'](_0x447f3d,_0x2a62c2)]);}),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf0529f),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf0529f)),_0x1196dc['plugins']['has']('ImageCaptionEditing')&&(_0x1fe4fb['enableCommand']('toggleImageCaption',(_0x1a5c35,_0x35469a)=>{const _0x1ab8af=_0x1196dc['plugins']['get']('ImageCaptionUtils');let _0x347fcc=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x50125c=_0x1ab8af['getCaptionFromImageModelElement'](_0x347fcc);_0x1196dc['model']['change'](()=>{if(_0x50125c)return void _0x1fe4fb['markDeletion'](_0x1196dc['model']['createRangeOn'](_0x50125c));const _0x15685d=_0x277734['isBlockImage'](_0x347fcc);_0x1a5c35(_0x35469a),_0x347fcc=_0x277734['getClosestSelectedImageElement'](_0x1196dc['model']['document']['selection']),_0x50125c=_0x1ab8af['getCaptionFromImageModelElement'](_0x347fcc),_0x1fe4fb['markInsertion'](_0x1196dc['model']['createRangeOn'](_0x50125c),_0x15685d?null:'imageCaption');});}),_0x1fe4fb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf0529f));const _0x542eb2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1176d6(_0x1f038f,_0x23ac96){const _0x447518=_0x542eb2['findIndex'](({type:_0x192a3f,subType:_0x8d25f0})=>_0x1f038f['type']==_0x192a3f&&_0x1f038f['subType']==_0x8d25f0),_0x44f234=_0x542eb2['findIndex'](({type:_0x2e30ca,subType:_0x5d4ec7})=>_0x23ac96['type']==_0x2e30ca&&_0x23ac96['subType']==_0x5d4ec7);if(_0x447518<0x0||_0x44f234<0x0)return!0x1;const _0x330c0f=_0x1f038f['getFirstRange'](),_0x31e77f=_0x23ac96['getFirstRange']();if((0x0==_0x447518||0x1==_0x447518)&&0x2==_0x44f234&&_0x330c0f['isIntersecting'](_0x31e77f))return!0x0;if(0x2==_0x447518&&0x3==_0x44f234){const _0x3b61aa=_0x1fe4fb['_findSuggestions'](_0x330c0f,'insertion')['filter'](({suggestion:_0x17890e,meta:_0x1c71fe})=>_0x1c71fe['isOwn']&&'convertInlineImageToBlock'==_0x17890e['subType']);if(_0x3b61aa['length']>0x1&&_0x31e77f['end']['isEqual'](_0x330c0f['start']))return!0x0;if(0x1==_0x3b61aa['length']&&(_0x330c0f['start']['isEqual'](_0x31e77f['end'])||_0x330c0f['end']['isEqual'](_0x31e77f['start'])))return!0x0;}if(0x3==_0x447518&&0x3==_0x44f234&&_0x330c0f['start']['isBefore'](_0x31e77f['start'])){const _0x97d4c2=_0x330c0f['end']['nodeAfter'],_0x103578=_0x31e77f['start']['nodeBefore'];return _0x277734['isBlockImage'](_0x97d4c2)&&_0x97d4c2===_0x103578;}return!0x1;}function _0xf0529f(_0x3750e5,_0x33addc){return _0x1176d6(_0x3750e5,_0x33addc)?[_0x3750e5,_0x33addc]:_0x1176d6(_0x33addc,_0x3750e5)?[_0x33addc,_0x3750e5]:null;}_0x1196dc['plugins']['has']('ImageResize')&&(_0x1fe4fb['enableDefaultAttributesIntegration']('resizeImage'),_0x1fe4fb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5793ca,'FORMAT_IMAGE_SIZE'))),_0x1196dc['plugins']['has']('ImageTextAlternativeEditing')&&_0x1fe4fb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1196dc['plugins']['has']('PictureEditing')&&_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x5c2149=>{if('attribute'!=_0x5c2149['type'])return;const {data:_0x4042a2}=_0x5c2149;return _0x4042a2&&'sources'==_0x4042a2['key']?{'type':'format','content':''}:void 0x0;}),_0x1196dc['plugins']['has']('ImageSizeAttributes')&&_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x7af52c=>{if('attribute'!=_0x7af52c['type'])return;const {data:_0x472330}=_0x7af52c;return!_0x472330||'width'!=_0x472330['key']&&'height'!=_0x472330['key']?void 0x0:{'type':'format','content':''};}),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x292736=>{if(!!_0x542eb2['find'](({type:_0x542f38,subType:_0x5451ce})=>_0x292736['type']==_0x542f38&&_0x292736['subType']==_0x5451ce))return _0x292736['previous']?{}:void 0x0;}),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x57cff2=>{if('insertion'==_0x57cff2['type']||'deletion'==_0x57cff2['type']){const _0x4ff457=_0x57cff2['getContainedElement']();if(_0x4ff457&&_0x4ff457['is']('element','caption'))return{'type':'insertion'==_0x57cff2['type']?'addObject':'removeObject','element':_0x4ff457,'quantity':0x1};}}),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x59e99c=>'formatBlock'==_0x59e99c['type']&&'convertInlineImageToBlock'==_0x59e99c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x59e99c['type']&&'convertBlockImageToInline'==_0x59e99c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1fe4fb['descriptionFactory']['registerDescriptionCallback'](_0x405ec6=>{if('attribute'!=_0x405ec6['type'])return;const {data:_0x2f0953}=_0x405ec6;if(!_0x2f0953||'alt'!=_0x2f0953['key'])return;const _0x50e9f4=_0x2f0953['newValue'];return _0x50e9f4?{'type':'format','content':o(_0x5793ca,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50e9f4+'\x22')}:{'type':'format','content':o(_0x5793ca,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3515b7=this['editor'],_0x30827d=_0x3515b7['locale'];_0x3515b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x468db0=>{if('formatBlock'!=_0x468db0['type']&&'formatInline'!=_0x468db0['type'])return;const {data:_0x4caa8c}=_0x468db0;if(_0x4caa8c){if('imageTextAlternative'==_0x4caa8c['commandName']){const _0x4c3da7=_0x4caa8c['commandParams'][0x0]['newValue'];return _0x4c3da7?{'type':'format','content':o(_0x30827d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c3da7+'\x22')}:{'type':'format','content':o(_0x30827d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4caa8c['commandName']){const _0x379ea7=_0x4caa8c['commandParams'][0x0]['width'];return _0x379ea7?{'type':'format','content':o(_0x30827d,'*Set\x20image\x20width:*\x20%0',_0x379ea7)}:{'type':'format','content':o(_0x30827d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd27d91=this['editor']['locale'],_0x446330=this['editor']['plugins']['get']('TrackChangesEditing');_0x446330['enableDefaultAttributesIntegration']('replaceImageSource'),_0x446330['descriptionFactory']['registerDescriptionCallback'](_0x21530f=>{if('attribute'!=_0x21530f['type'])return;const {data:_0x572f41}=_0x21530f;return _0x572f41&&'src'==_0x572f41['key']?_0x572f41['newValue']&&_0x572f41['oldValue']?{'type':'format','content':o(_0xd27d91,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2915bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2915bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2915bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2915bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2915bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b46e6=this['editor'],_0x3d291e=_0x3b46e6['locale'];_0x3b46e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x307f0f=>{if('formatBlock'!=_0x307f0f['type']&&'formatInline'!=_0x307f0f['type'])return;const {data:_0x37a9f6}=_0x307f0f;if(!_0x37a9f6||'replaceImageSource'!=_0x37a9f6['commandName'])return;return{'type':'format','content':o(_0x3d291e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5c469f{['afterInit'](){const _0x57d1a5=this['editor'];if(!_0x57d1a5['plugins']['has']('ImageStyleEditing'))return;const _0x4aaa9c=_0x57d1a5['plugins']['get']('TrackChangesEditing'),_0x40ebd6=_0x57d1a5['plugins']['get']('ImageUtils'),_0x233954={};_0x4aaa9c['enableCommand']('imageStyle',(_0xe6b1e9,_0x1beb0d)=>{const _0xab42bd=_0x57d1a5['plugins']['get']('Users')['me'],_0x2eb433=_0x57d1a5['commands']['get']('imageStyle');let _0x917f37=_0x40ebd6['getClosestSelectedImageElement'](_0x57d1a5['model']['document']['selection']),_0x14f9c0=_0x57d1a5['model']['createRangeOn'](_0x917f37),_0x2a8497=_0x2eb433['value'];if(_0x2a8497==_0x1beb0d['value'])return;const _0x5b0851={'commandName':'imageStyle','commandParams':[_0x1beb0d],'formatGroupId':_0xe7a85c()};_0x57d1a5['model']['change'](()=>{if(_0x4aaa9c['getSuggestions']()['filter'](_0x1a05ad=>_0x1a05ad['isInContent']&&_0xab42bd==_0x1a05ad['author']&&('formatBlock'==_0x1a05ad['type']||'formatInline'==_0x1a05ad['type'])&&('imageStylePreApply'==_0x1a05ad['subType']||'imageStylePostApply'==_0x1a05ad['subType'])&&_0x1a05ad['getFirstRange']()['isEqual'](_0x14f9c0))['forEach'](_0x356428=>_0x4aaa9c['discardSuggestion'](_0x356428['head'])),_0x917f37=_0x40ebd6['getClosestSelectedImageElement'](_0x57d1a5['model']['document']['selection']),_0x14f9c0=_0x57d1a5['model']['createRangeOn'](_0x917f37),_0x2eb433['refresh'](),_0x57d1a5['commands']['get']('imageTypeInline')['refresh'](),_0x57d1a5['commands']['get']('imageTypeBlock')['refresh'](),_0x2a8497=_0x2eb433['value'],_0x2a8497!=_0x1beb0d['value'])return _0x40ebd6['isInlineImage'](_0x917f37)&&_0x2eb433['shouldConvertImageType'](_0x1beb0d['value'],_0x917f37)?(_0xe6b1e9({..._0x1beb0d,'setImageSizes':!0x1}),_0x917f37=_0x40ebd6['getClosestSelectedImageElement'](_0x57d1a5['model']['document']['selection']),void _0x4aaa9c['markBlockFormat'](_0x917f37,{..._0x5b0851,'commandReversedParams':[{'value':_0x2a8497||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x40ebd6['isBlockImage'](_0x917f37)?_0x4aaa9c['markBlockFormat'](_0x917f37,_0x5b0851,[],'imageStylePostApply'):_0x4aaa9c['markInlineFormat'](_0x14f9c0,_0x5b0851,'imageStylePostApply'));});});for(const _0x236da9 of _0x57d1a5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x233954[_0x236da9['name']]=_0x236da9['title']['toLowerCase']();_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x374019])=>{_0x40ebd6['setImageNaturalSizeAttributes'](_0x374019['getContainedElement']());}),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6c2d69,_0xbdd33e)=>{_0x4aaa9c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6c2d69,{'commandName':_0xbdd33e['commandName'],'commandParams':_0xbdd33e['commandReversedParams']});}),_0x4aaa9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x229aa1,_0x55d7ee){if(_0x1c536c(_0x229aa1,_0x55d7ee))return[_0x229aa1,_0x55d7ee];if(_0x1c536c(_0x55d7ee,_0x229aa1))return[_0x55d7ee,_0x229aa1];return null;});const _0x3a8a2a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c536c(_0x3846d8,_0x5608eb){const _0x22f44f=_0x3a8a2a['findIndex'](({type:_0x3893f1,subType:_0x5ea2fc})=>_0x3846d8['type']==_0x3893f1&&_0x3846d8['subType']==_0x5ea2fc),_0x24c6fb=_0x3a8a2a['findIndex'](({type:_0x5e0eb3,subType:_0x5d83a0})=>_0x5608eb['type']==_0x5e0eb3&&_0x5608eb['subType']==_0x5d83a0);if(_0x22f44f<0x0||_0x24c6fb<0x0)return!0x1;const _0x3a43b6=_0x3846d8['getFirstRange'](),_0xb4b327=_0x5608eb['getFirstRange']();if((0x0==_0x22f44f||0x1==_0x22f44f)&&0x2==_0x24c6fb&&_0x3a43b6['isIntersecting'](_0xb4b327))return!0x0;if(0x2==_0x22f44f&&0x3==_0x24c6fb){const _0x213847=_0x4aaa9c['_findSuggestions'](_0x3a43b6,'insertion')['filter'](({suggestion:_0x3d59f0,meta:_0x452124})=>_0x452124['isOwn']&&'convertInlineImageToBlock'==_0x3d59f0['subType']);if(_0x213847['length']>0x1&&_0xb4b327['end']['isEqual'](_0x3a43b6['start']))return!0x0;if(0x1==_0x213847['length']&&(_0x3a43b6['start']['isEqual'](_0xb4b327['end'])||_0x3a43b6['end']['isEqual'](_0xb4b327['start'])))return!0x0;}if(0x3==_0x22f44f&&0x3==_0x24c6fb&&_0x3a43b6['start']['isBefore'](_0xb4b327['start'])){const _0x1ec1a0=_0x3a43b6['end']['nodeAfter'],_0x5e3139=_0xb4b327['start']['nodeBefore'];return _0x40ebd6['isBlockImage'](_0x1ec1a0)&&_0x1ec1a0===_0x5e3139;}return!0x1;}_0x57d1a5['model']['document']['registerPostFixer'](()=>{let _0x425a0f=!0x1;const _0x13b05e=Array['from'](_0x57d1a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6328c7,data:_0x3da283}of _0x13b05e){const {group:_0xe54ccc,type:_0x519947,subType:_0x45ffc4,id:_0x19149c}=_0x4aaa9c['_splitMarkerName'](_0x6328c7);if('suggestion'==_0xe54ccc&&_0x4aaa9c['hasSuggestion'](_0x19149c)){if('formatBlock'==_0x519947&&('imageStylePreApply'==_0x45ffc4||'imageStylePostApply'==_0x45ffc4)){const _0x36e08e=_0x4aaa9c['getSuggestion'](_0x19149c);if(_0x3da283['newRange']){const _0x267c04=_0x36e08e['getFirstRange']()['getContainedElement']();if(_0x40ebd6['isBlockImage'](_0x267c04))continue;_0x4aaa9c['discardSuggestion'](_0x36e08e),_0x425a0f=!0x0;}}if('insertion'==_0x519947&&'imageCaption'==_0x45ffc4&&!_0x3da283['newRange']){const _0x272aae=_0x4aaa9c['getSuggestion'](_0x19149c);_0x272aae['next']&&_0x272aae['next']['isInContent']&&(_0x4aaa9c['discardSuggestion'](_0x272aae['next']),_0x425a0f=!0x0);}}}return _0x425a0f;}),this['_registerLegacyDescription'](_0x233954);}['_registerLegacyDescription'](_0x2e9e1a){const _0x5b40b8=this['editor'],_0x42432f=_0x5b40b8['locale'];_0x5b40b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5858c7=>{if('formatBlock'!=_0x5858c7['type']&&'formatInline'!=_0x5858c7['type'])return;const {data:_0x1b195c}=_0x5858c7;if(!_0x1b195c||'imageStyle'!=_0x1b195c['commandName'])return;const _0x74db7d=_0x1b195c['commandParams'][0x0]['value'];return _0x4863b9('side'===_0x74db7d?o(_0x42432f,'FORMAT_SIDE_IMAGE'):_0x2e9e1a[_0x74db7d]||_0x74db7d);function _0x4863b9(_0x570538){return{'type':'format','content':o(_0x42432f,'*Format:*\x20%0',_0x570538)};}});}}class ut extends _0x5c469f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x268c4f){super(_0x268c4f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x505219=this['editor'],_0x3cbc64=_0x505219['commands']['get']('importWord'),_0x37384f=_0x505219['commands']['get']('trackChanges');_0x3cbc64&&(_0x3cbc64['on']('execute',(_0x44da1a,[,_0x45e597])=>{this['_trackChangesValueDuringImport']=_0x37384f['value'],_0x45e597['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3cbc64,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3cbc64,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x37384f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x505219['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e6334,_0x83c83f){const {suggestions:_0xdc419d}=_0x83c83f,_0x4c0327=this['editor']['commands']['get']('trackChanges'),_0x6a4489=_0x4c0327['value'];this['_trackChangesValueDuringImport']!==_0x6a4489&&(_0x4c0327['execute'](),this['_trackChangesExecuted']=!0x0),_0xdc419d&&_0xdc419d['forEach'](({id:_0x2c42e9,type:_0x462131,author:_0x26f386,created_at:_0x29f482})=>{const _0x1e2efe={'id':_0x2c42e9,'type':_0x462131,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26f386,'createdAt':_0x29f482?new Date(_0x29f482):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1e2efe);});}}class ft extends _0x5c469f{['afterInit'](){const _0x59b980=this['editor'],_0x2be488=_0x59b980['plugins']['get']('TrackChangesEditing');if(_0x59b980['plugins']['has']('IndentEditing')&&(_0x2be488['enableCommand']('indent'),_0x2be488['enableCommand']('outdent')),_0x59b980['plugins']['has']('IndentBlock')){for(const _0x339381 of['indentBlock','outdentBlock'])_0x2be488['enableDefaultAttributesIntegration'](_0x339381);}const _0x4da12b=_0x59b980['locale'];_0x2be488['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4da12b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5195a5=this['editor'],_0x25c0a6=_0x5195a5['locale'],_0x2e7323=_0x5195a5['plugins']['get']('TrackChangesEditing');_0x2e7323['descriptionFactory']['registerDescriptionCallback'](_0x1424b6=>{if('formatBlock'!=_0x1424b6['type'])return;const {data:_0x9cc536}=_0x1424b6;if(!_0x9cc536)return;if('indentBlock'!=_0x9cc536['commandName']&&'outdentBlock'!=_0x9cc536['commandName'])return;const _0x325b20=_0x1424b6['getItems']()[0x0],_0x26e9a8=_0x2e7323['descriptionFactory']['getItemLabel'](_0x325b20);return'indentBlock'==_0x9cc536['commandName']?{'type':'format','content':o(_0x25c0a6,'*Indent:*\x20%0',_0x26e9a8)}:'outdentBlock'==_0x9cc536['commandName']?{'type':'format','content':o(_0x25c0a6,'*Outdent:*\x20%0',_0x26e9a8)}:void 0x0;});}}class ht extends _0x5c469f{static get['requires'](){return[_0x5e85b6];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5c469f{['afterInit'](){const _0x30abf9=this['editor'];if(!_0x30abf9['plugins']['has']('LinkEditing'))return;const _0x25aabb=_0x30abf9['plugins']['get']('TrackChangesEditing'),_0x3e4055=_0x30abf9['commands']['get']('link');_0x25aabb['enableDefaultAttributesIntegration']('link'),_0x25aabb['enableDefaultAttributesIntegration']('unlink');for(const _0x3836df of _0x3e4055['manualDecorators'])_0x25aabb['descriptionFactory']['registerAttributeLabel'](_0x3836df['id'],'link\x20('+_0x3836df['label']['toLowerCase']()+')');_0x25aabb['descriptionFactory']['registerDescriptionCallback'](_0xf282fc=>{if('attribute'!=_0xf282fc['type'])return;const {data:_0x2732ad}=_0xf282fc;if(!_0x2732ad||'linkHref'!=_0x2732ad['key'])return;const _0x4975e4=_0x2732ad['newValue'],_0x43e72c=_0x30abf9['locale'];return{'type':'format','content':null==_0x4975e4?o(_0x43e72c,'*Remove\x20link*'):o(_0x43e72c,'*Set\x20link:*\x20%0','\x22'+_0x4975e4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a7408=this['editor'],_0xce4816=_0x1a7408['locale'];_0x1a7408['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdb3a4b=>{if('formatInline'!=_0xdb3a4b['type'])return;const {data:_0x26959c}=_0xdb3a4b;if(_0x26959c){if('link'==_0x26959c['commandName']){const _0x3e7dba=_0x26959c['commandParams'][0x0];return{'type':'format','content':o(_0xce4816,'*Set\x20link:*\x20%0','\x22'+_0x3e7dba+'\x22')};}return'unlink'==_0x26959c['commandName']?{'type':'format','content':o(_0xce4816,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5c469f{['afterInit'](){const _0x3b7651=this['editor'],_0x3d1dec=_0x3b7651['locale'];if(!_0x3b7651['plugins']['has']('LegacyListEditing'))return;const _0x48590f=_0x3b7651['plugins']['get']('TrackChangesEditing'),_0x3c90a9=_0x3b7651['plugins']['has']('LegacyTodoListEditing');function _0x86fdb4(_0x3a4340){return()=>{const _0x3c52f0=_0x3b7651['model']['document']['selection'],_0x289004=_0x3b7651['commands']['get'](_0x3a4340);if(_0x289004['value'])return void _0x3b7651['execute']('paragraph',{});const _0x5a3606=_0x3a4340['slice'](0x0,-0x4),_0x2384be=function(_0x269dfb,_0x1ff006,_0x30b82a){let _0x527c16=Array['from'](_0x269dfb)['filter'](_0x48c19e=>function(_0xf22470,_0x36612c){return _0x36612c['checkChild'](_0xf22470['parent'],'listItem')&&!_0x36612c['isObject'](_0xf22470);}(_0x48c19e,_0x30b82a));_0x527c16=_0x527c16['filter'](_0x3f4c18=>!_0x3f4c18['is']('element','listItem')||_0x3f4c18['getAttribute']('listType')!=_0x1ff006);const _0x502909=new Set();for(const _0x40edf2 of _0x527c16)_0x40edf2['is']('element','listItem')?_0x502909['add'](Le(_0x40edf2)):_0x502909['add'](_0x40edf2);return Array['from'](_0x502909);}(_0x3c52f0['getSelectedBlocks'](),_0x5a3606,_0x3b7651['model']['schema']);_0x3b7651['model']['change'](()=>{for(const _0x61380d of _0x2384be)_0x48590f['markBlockFormat'](_0x61380d,{'commandName':_0x3a4340,'commandParams':[{'forceValue':!_0x289004['value']}],'formatGroupId':'blockName'},Ee(_0x61380d));});};}function _0x52d55a(_0x3e01c8){return()=>{const _0x1d9c9f=function(_0x3b4e0c){let _0x3d2c26=Array['from'](_0x3b4e0c);const _0x9d4a4c=_0x3d2c26['findIndex'](_0x56c671=>'listItem'!=_0x56c671['name']);return _0x9d4a4c>-0x1&&(_0x3d2c26=_0x3d2c26['slice'](0x0,_0x9d4a4c)),_0x3d2c26;}(_0x3b7651['model']['document']['selection']['getSelectedBlocks']()),_0x4e2837=_0x3b7651['model']['createRange'](_0x3b7651['model']['createPositionAt'](_0x1d9c9f[0x0],'before'),_0x3b7651['model']['createPositionAt'](_0x1d9c9f[_0x1d9c9f['length']-0x1],'end'));_0x3b7651['model']['change'](()=>{_0x48590f['markBlockFormat'](_0x4e2837,{'commandName':_0x3e01c8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x344afa){const _0x3b7a97=new Set();for(const _0x597066 of _0x344afa){let _0x4b36c6=_0x597066['nextSibling'];for(;_0x4b36c6&&_0x4b36c6['getAttribute']('listIndent')>_0x597066['getAttribute']('listIndent');)_0x3b7a97['add'](_0x4b36c6),_0x4b36c6=_0x4b36c6['nextSibling'];}return Array['from'](_0x3b7a97);}(_0x1d9c9f));});};}_0x48590f['enableCommand']('numberedList',_0x86fdb4('numberedList')),_0x48590f['enableCommand']('bulletedList',_0x86fdb4('bulletedList')),_0x3c90a9&&_0x48590f['enableCommand']('todoList',_0x86fdb4('todoList')),_0x48590f['enableCommand']('indentList',_0x52d55a('indentList')),_0x48590f['enableCommand']('outdentList',_0x52d55a('outdentList')),_0x3c90a9&&_0x48590f['enableCommand']('checkTodoList',()=>{const _0x31b3b8=_0x3b7651['commands']['get']('checkTodoList'),_0x5187a2=Array['from'](_0x31b3b8['_selectedElements']);_0x5187a2['filter'](_0x3c424f=>_0x3c424f['getAttribute']('todoListChecked')!=_0x31b3b8['value']),_0x3b7651['model']['change'](()=>{for(const _0x1e5120 of _0x5187a2)_0x48590f['markBlockFormat'](_0x1e5120,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x31b3b8['value']}]});});}),_0x48590f['descriptionFactory']['registerElementLabel']('listItem',_0x3c1fe3=>o(_0x3d1dec,'ELEMENT_LIST_ITEM',_0x3c1fe3)),_0x48590f['descriptionFactory']['registerDescriptionCallback'](_0x219023=>{if('formatBlock'!=_0x219023['type']&&'formatInline'!=_0x219023['type'])return;const {data:_0x2fca95}=_0x219023;if(_0x2fca95){if('numberedList'==_0x2fca95['commandName']||'bulletedList'==_0x2fca95['commandName']||'todoList'==_0x2fca95['commandName'])switch(_0x2fca95['commandName']['replace']('List','')){case'bulleted':return _0x21205e(o(_0x3d1dec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21205e(o(_0x3d1dec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21205e(o(_0x3d1dec,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2fca95['commandName'])return{'type':'format','content':o(_0x3d1dec,'*Indent:*\x20%0',o(_0x3d1dec,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2fca95['commandName'])return{'type':'format','content':o(_0x3d1dec,'*Outdent:*\x20%0',o(_0x3d1dec,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2fca95['commandName'])return _0x2fca95['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d1dec,'*Check\x20item*')}:{'type':'format','content':o(_0x3d1dec,'*Uncheck\x20item*')};}function _0x21205e(_0x3712af){return{'type':'format','content':o(_0x3d1dec,'*Change\x20to:*\x20%0',_0x3712af)};}});}}function Le(_0x42288b){const _0x2bbccf=_0x42288b['getAttribute']('listIndent');if(0x0==_0x2bbccf)return _0x42288b;let _0x2810a6=_0x42288b;for(;_0x42288b['previousSibling']&&_0x42288b['previousSibling']['is']('element','listItem');){const _0x2e9b5e=_0x42288b['previousSibling']['getAttribute']('listIndent');if(_0x2e9b5e==_0x2bbccf)_0x2810a6=_0x42288b['previousSibling'];else{if(_0x2e9b5e<_0x2bbccf)break;}_0x42288b=_0x42288b['previousSibling'];}return _0x2810a6;}function Ee(_0x39a9c0){const _0x3b48aa=[];if(_0x39a9c0['is']('element','listItem')&&_0x39a9c0['getAttribute']('listIndent')>0x0){let _0x329193=_0x39a9c0['nextSibling'];for(;_0x329193&&'listItem'==_0x329193['name']&&_0x329193['getAttribute']('listIndent')==_0x39a9c0['getAttribute']('listIndent');)_0x3b48aa['push'](_0x329193),_0x329193=_0x329193['nextSibling'];}return _0x3b48aa;}class mt extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a22ab=this['editor']['config']['get']('list.properties'),_0x10adb3=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a22ab['styles']&&_0x10adb3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a22ab['reversed']&&_0x10adb3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a22ab['startIndex']&&_0x10adb3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10adb3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1be94a,_0x6369f6={}){const _0x3fed60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36e627=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3fed60['markMultiRangeBlockFormat'](_0x36e627,{'commandName':'listStyle','commandParams':[{'type':_0x6369f6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x183094,_0x4a3b5d={}){const _0x37d33b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x102fd0=this['_getSuggestionBlocks'](_0x192992=>_0x192992['is']('element','listItem')&&'numbered'===_0x192992['getAttribute']('listType'));if(_0x102fd0['length']<0x1)return;const _0x35d164=_0x102fd0['map'](_0x243ee6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x243ee6,'before'),this['editor']['model']['createPositionAt'](_0x243ee6,0x0)));this['editor']['model']['change'](()=>{_0x37d33b['markMultiRangeBlockFormat'](_0x35d164,{'commandName':'listReversed','commandParams':[{'reversed':_0x4a3b5d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2c5157,_0x33e512={}){const _0x5251b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a0ed3=this['_getSuggestionBlocks'](_0x371713=>_0x371713['is']('element','listItem')&&'numbered'===_0x371713['getAttribute']('listType'));if(_0x2a0ed3['length']<0x1)return;const _0x24b47f=_0x2a0ed3['map'](_0x36842f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36842f,'before'),this['editor']['model']['createPositionAt'](_0x36842f,0x0)));this['editor']['model']['change'](()=>{_0x5251b3['markMultiRangeBlockFormat'](_0x24b47f,{'commandName':'listStart','commandParams':[{'startIndex':_0x33e512['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x495f8f){if('formatBlock'!=_0x495f8f['type']&&'formatInline'!=_0x495f8f['type'])return;const _0x1fa3d9=this['editor']['locale'],{data:_0x4669d2}=_0x495f8f;if(!_0x4669d2)return;let _0x592ade,_0x4878a8;switch(_0x4669d2['commandName']){case'listStyle':_0x592ade='*Change\x20to:*\x20%0',_0x4878a8={'type':'format','content':o(_0x1fa3d9,_0x592ade,o(_0x1fa3d9,this['_getTranslationKeyForListStyle'](_0x4669d2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x592ade=_0x4669d2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4878a8={'type':'format','content':o(_0x1fa3d9,_0x592ade)};break;case'listStart':_0x592ade='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4878a8={'type':'format','content':o(_0x1fa3d9,_0x592ade,_0x4669d2['commandParams'][0x0]['startIndex'])};}return _0x4878a8;}['_getSuggestionBlocksForListStyle'](){const _0x41e5df=this['editor']['plugins']['get']('LegacyListUtils');let _0x50c91f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x50c91f[0x0]?.['is']('element','listItem')&&_0x50c91f['unshift'](..._0x41e5df['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x50c91f[_0x50c91f['length']-0x1]?.['is']('element','listItem')&&_0x50c91f['push'](..._0x41e5df['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x50c91f=[...new Set(_0x50c91f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x50c91f=_0x50c91f['filter'](_0x130902=>_0x130902['is']('element','listItem'))),_0x50c91f;}['_getSuggestionBlocks'](_0x15593c){const _0x4d3209=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c3a26=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x15593c)['map'](_0x240403=>{const _0x550169=this['editor']['model']['createPositionAt'](_0x240403,0x0);return[..._0x4d3209['getSiblingNodes'](_0x550169,'backward'),..._0x4d3209['getSiblingNodes'](_0x550169,'forward')];})['flat']();return _0x4c3a26=[...new Set(_0x4c3a26)],_0x4c3a26;}['_getTranslationKeyForListStyle'](_0x5d8674){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d8674)||'default')['toUpperCase']()+'_LIST_'+_0x5d8674['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5c469f{['afterInit'](){const _0x2b4656=this['editor'];if(!_0x2b4656['plugins']['has']('MediaEmbedEditing'))return;const _0x3d207d=_0x2b4656['plugins']['get']('TrackChangesEditing'),_0x7e6461=_0x2b4656['locale'];_0x3d207d['enableCommand']('mediaEmbed'),_0x3d207d['descriptionFactory']['registerElementLabel']('media',_0x32dab0=>o(_0x7e6461,'ELEMENT_MEDIA',_0x32dab0));}}class pt extends _0x5c469f{['afterInit'](){const _0x52610b=this['editor'];_0x52610b['plugins']['has']('MentionEditing')&&_0x52610b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5c469f{['afterInit'](){const _0x220e04=this['editor'];if(!_0x220e04['plugins']['has']('MergeFieldsEditing'))return;const _0x2610a9=_0x220e04['plugins']['get']('TrackChangesEditing'),_0x100089=_0x220e04['locale'];_0x2610a9['enableCommand']('insertMergeField'),_0x2610a9['enableCommand']('insertMergeFieldBlock'),_0x2610a9['enableCommand']('insertMergeFieldImage'),_0x2610a9['descriptionFactory']['registerElementLabel']('mergeField',_0x5d3cc7=>o(_0x100089,'ELEMENT_MERGE_FIELD',_0x5d3cc7)),_0x2610a9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1799a8=>o(_0x100089,'ELEMENT_MERGE_FIELD',_0x1799a8)),_0x2610a9['descriptionFactory']['registerDescriptionCallback'](_0x3258cc=>{if('insertion'!=_0x3258cc['type']&&'deletion'!=_0x3258cc['type'])return;const _0x3104bd=_0x3258cc['getContainedElement']();if(null==_0x3104bd)return;const _0x2c02b6=_0x220e04['plugins']['get']('MergeFieldsEditing');let _0x517cb4;switch(_0x2c02b6['getMergeFieldType'](_0x3104bd)){case null:return;case'image':{const _0x1d6cba=_0x2c02b6['unwrapAffixes'](_0x3104bd['getAttribute']('src'));_0x517cb4=_0x2c02b6['getLabel'](_0x1d6cba)||_0x1d6cba;break;}default:{const _0x434ccb=_0x3104bd['getAttribute']('id');_0x517cb4=_0x2c02b6['getLabel'](_0x434ccb)||_0x434ccb;break;}}return'insertion'==_0x3258cc['type']?{'type':'insertion','content':o(_0x100089,'*Insert:*\x20%0','\x22'+_0x517cb4+'\x22\x20'+o(_0x100089,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x100089,'*Remove:*\x20%0','\x22'+_0x517cb4+'\x22\x20'+o(_0x100089,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x5c469f{['afterInit'](){const _0x456ccd=this['editor'],_0x519771=_0x456ccd['plugins']['get']('TrackChangesEditing');_0x456ccd['plugins']['has']('MultiLevelList')&&(_0x519771['enableDefaultAttributesIntegration']('multiLevelList'),_0x519771['descriptionFactory']['registerDescriptionCallback'](_0x441276=>this['handleDescriptions'](_0x441276)));}['handleDescriptions'](_0x7f379a){const _0x3c9e36=this['editor']['locale'],{data:_0x3e5a12}=_0x7f379a,_0x11abcd={'type':'format','content':''};if(_0x3e5a12&&'listMarkerStyle'==_0x3e5a12['key']){if(!_0x3e5a12['oldValue'])return{'type':'format','content':o(_0x3c9e36,'*Set\x20format:*\x20%0',o(_0x3c9e36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e5a12['newValue']+')'};if(!_0x3e5a12['newValue']){let _0x7b85a2=_0x7f379a['head'];for(;_0x7b85a2;){if(_0x7b85a2['data']&&'listType'==_0x7b85a2['data']['key']&&_0x7b85a2['data']['newValue'])return _0x11abcd;_0x7b85a2=_0x7b85a2['next'];}return{'type':'format','content':o(_0x3c9e36,'*Remove\x20format:*\x20%0',o(_0x3c9e36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e5a12['oldValue']+')'};}}}}class bt extends _0x5c469f{['afterInit'](){const _0xad983a=this['editor'];if(!_0xad983a['plugins']['has']('PageBreakEditing'))return;_0xad983a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2a68e2=_0xad983a['plugins']['get']('TrackChangesEditing'),_0x11fa54=_0xad983a['locale'];_0x2a68e2['descriptionFactory']['registerElementLabel']('pageBreak',_0x22c65a=>o(_0x11fa54,'ELEMENT_PAGE_BREAK',_0x22c65a));}}class yt extends _0x5c469f{['afterInit'](){const _0x4199d6=this['editor'];if(!_0x4199d6['plugins']['has']('Paragraph'))return;const _0x316fee=_0x4199d6['locale'],_0x54f74d=_0x4199d6['plugins']['get']('TrackChangesEditing');_0x54f74d['descriptionFactory']['registerElementLabel']('paragraph',_0x16138c=>o(_0x316fee,'ELEMENT_PARAGRAPH',_0x16138c)),_0x54f74d['enableDefaultAttributesIntegration']('paragraph'),_0x54f74d['enableCommand']('insertParagraph');const _0x1e32a4=_0x54f74d['descriptionFactory'];_0x1e32a4['registerDescriptionCallback'](_0x30355f=>{if('insertion'!==_0x30355f['type'])return;const {start:_0x29c21f,end:_0x2107cd}=_0x30355f['getFirstRange']();if(!_0x29c21f['isTouching'](_0x2107cd)||!_0x29c21f['nodeAfter'])return;const _0x25f142=_0x4199d6['model']['schema'],_0x1e4812=_0x29c21f['nodeAfter'];return _0x25f142['isBlock'](_0x1e4812)&&!_0x25f142['isLimit'](_0x1e4812)&&_0x25f142['checkChild'](_0x1e4812,'$text')?{'type':'insertion','content':o(_0x316fee,'*Insert:*\x20%0',_0x1e32a4['getItemLabel'](_0x1e4812,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e8c81=this['editor'],_0x36b8a5=_0x2e8c81['locale'];_0x2e8c81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf64d89=>{if('formatBlock'!=_0xf64d89['type'])return;const {data:_0x33d817}=_0xf64d89;return _0x33d817&&'paragraph'==_0x33d817['commandName']?{'type':'format','content':o(_0x36b8a5,'*Change\x20to:*\x20%0',o(_0x36b8a5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x5c469f{['afterInit'](){const _0x556903=this['editor'];_0x556903['commands']['get']('replaceSource')&&_0x556903['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5c469f{['afterInit'](){const _0x441c20=this['editor'];if(!_0x441c20['plugins']['has']('RemoveFormatEditing'))return;_0x441c20['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x585a84=this['editor'];_0x585a84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ddf0c=>{if('formatBlock'!=_0x4ddf0c['type']&&'formatInline'!=_0x4ddf0c['type'])return;const {data:_0x5c54de}=_0x4ddf0c;return _0x5c54de&&'removeFormat'==_0x5c54de['commandName']?{'type':'format','content':o(_0x585a84['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x5c469f{['afterInit'](){const _0x284ae1=this['editor'];if(!_0x284ae1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2a3dc5=_0x284ae1['plugins']['get']('TrackChangesEditing');_0x2a3dc5['enableCommand']('goToPreviousRestrictedEditingException'),_0x2a3dc5['enableCommand']('goToNextRestrictedEditingException');const _0x3178b3=_0x284ae1['plugins']['get']('RestrictedEditingModeEditing');_0x3178b3['enableCommand']('trackChanges'),_0x3178b3['enableCommand']('acceptSuggestion'),_0x3178b3['enableCommand']('discardSuggestion'),_0x3178b3['enableCommand']('acceptAllSuggestions'),_0x3178b3['enableCommand']('discardAllSuggestions'),_0x3178b3['enableCommand']('acceptSelectedSuggestions'),_0x3178b3['enableCommand']('discardSelectedSuggestions');}}class At extends _0x5c469f{['afterInit'](){const _0xdf377c=this['editor'];if(!_0xdf377c['plugins']['has']('ShiftEnter'))return;const _0x5eaa91=_0xdf377c['plugins']['get']('TrackChangesEditing');_0x5eaa91['enableCommand']('shiftEnter'),_0x5eaa91['descriptionFactory']['registerElementLabel']('softBreak',_0x4bcc90=>o(_0xdf377c['locale'],'ELEMENT_LINE_BREAK',_0x4bcc90));}}function an(_0x2b5727,_0xe265b6,_0xc1912b){const _0x5bfbde=[];for(const _0x4eb0c5 of _0xe265b6['getItems']())_0x4eb0c5['hasAttribute'](_0x2b5727)&&_0x5bfbde['push'](_0xc1912b['createRangeOn'](_0x4eb0c5));return _0x5bfbde;}class _t extends _0x5c469f{['afterInit'](){const _0x51e52a=this['editor'],_0x41d5ca=_0x51e52a['plugins']['get']('TrackChangesEditing');_0x51e52a['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x41d5ca['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x346051=this['editor'],_0x3f9a69=_0x346051['model'],_0x100416=_0x346051['locale'],_0x334dad=_0x346051['plugins']['get']('TrackChangesEditing'),_0x3b5d31='restrictedEditingException',_0x4dca8a=_0x346051['commands']['get'](_0x3b5d31);_0x334dad['enableCommand'](_0x3b5d31,(_0x4fda47,_0x3541c2={})=>{const _0x4c1c3d=_0x3f9a69['document']['selection'];if(_0x4c1c3d['isCollapsed'])return void _0x4fda47(_0x3541c2);const _0x3663e2=void 0x0!==_0x3541c2['forceValue']?_0x3541c2['forceValue']:!_0x4dca8a['value'];_0x3f9a69['change'](()=>{const _0xcc66a=Array['from'](_0x4c1c3d['getRanges']());for(const _0x1de135 of _0xcc66a){const _0x5c7174=_0x3663e2?[_0x1de135]:an(_0x3b5d31,_0x1de135,_0x3f9a69);for(const _0x54e438 of _0x5c7174)_0x334dad['markInlineFormat'](_0x54e438,{'commandName':_0x3b5d31,'commandParams':[{'forceValue':_0x3663e2}]});}});}),_0x334dad['descriptionFactory']['registerDescriptionCallback'](_0x1b3290=>{if('formatBlock'!=_0x1b3290['type']&&'formatInline'!=_0x1b3290['type'])return;const {data:_0x11c596}=_0x1b3290;return _0x11c596&&_0x11c596['commandName']==_0x3b5d31?_0x11c596['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x100416,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x100416,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x131cd3=this['editor'],_0x4472cb=_0x131cd3['locale'],_0x26da1b=_0x131cd3['plugins']['get']('TrackChangesEditing'),_0x309fe7='restrictedEditingExceptionBlock',_0x4366f9=this['editor']['commands']['get'](_0x309fe7);_0x26da1b['enableCommand'](_0x309fe7,(_0x125b27,_0x25c247={})=>{const _0xa62b40=this['editor']['model']['document']['selection'],_0x4045b9=_0x25c247&&void 0x0!==_0x25c247['forceValue']?_0x25c247['forceValue']:!_0x4366f9['value'];let _0x5673f1=[];if(_0x4045b9){const _0x5c8a3d=Array['from'](_0xa62b40['getSelectedBlocks']())['filter'](_0x19298a=>function(_0xcb0b08){return!!_0xcb0b08['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x19298a)||function(_0x3859f0,_0x1d55cc){const _0x327c21=_0x1d55cc['createContext'](_0x3859f0['parent']);if(!_0x1d55cc['checkChild'](_0x327c21,'restrictedEditingException'))return!0x1;if(!_0x1d55cc['checkChild'](_0x327c21['push']('restrictedEditingException'),_0x3859f0))return!0x1;return!0x0;}(_0x19298a,this['editor']['model']['schema']));_0x5673f1=to(_0x5c8a3d,_0x131cd3['model']);}else{const _0x2e1629=Array['from'](_0xa62b40['getSelectedBlocks']())['map'](_0x585994=>function(_0x4c0781){let _0x420ff0=_0x4c0781;for(;_0x420ff0['parent'];){if('restrictedEditingException'==_0x420ff0['parent']['name'])return _0x420ff0;_0x420ff0=_0x420ff0['parent'];}return null;}(_0x585994))['filter'](_0xfa7bcb=>!!_0xfa7bcb);_0x5673f1=to(_0x2e1629,_0x131cd3['model']);}_0x131cd3['model']['change'](()=>{for(const _0x7a5fe1 of _0x5673f1)_0x26da1b['markBlockFormat'](_0x7a5fe1,{'commandName':_0x309fe7,'commandParams':[{'forceValue':_0x4045b9}]});});}),_0x26da1b['descriptionFactory']['registerDescriptionCallback'](_0x12d741=>{const {data:_0x11b83a}=_0x12d741;if(_0x11b83a&&_0x11b83a['commandName']==_0x309fe7)return _0x11b83a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4472cb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4472cb,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x5c469f{['afterInit'](){const _0x22e0e9=this['editor'];if(!_0x22e0e9['plugins']['has']('Style')||!_0x22e0e9['plugins']['has']('DataSchema'))return;const _0x38a59e=_0x22e0e9['plugins']['get']('TrackChangesEditing'),_0x228367=_0x22e0e9['locale'],_0x3a8cbe=_0x22e0e9['config']['get']('style')||{},_0x27cec1=_0x22e0e9['plugins']['get']('GeneralHtmlSupport'),_0x24c6ad=_0x22e0e9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x22e0e9['plugins']['get']('DataSchema'),_0x3a8cbe['definitions']);_0x38a59e['enableDefaultAttributesIntegration']('style');const _0x1a4f78=new Set();for(const _0x3d2485 of _0x24c6ad['block']){const _0x12496c=_0x27cec1['getGhsAttributeNameForElement'](_0x3d2485['element']);_0x1a4f78['add'](_0x12496c);}const _0x2e67ce=new Set();for(const _0x1011aa of _0x24c6ad['inline']){const _0x1c73ed=_0x27cec1['getGhsAttributeNameForElement'](_0x1011aa['element']);_0x2e67ce['add'](_0x1c73ed);for(const _0x56bf3d of _0x1011aa['ghsAttributes'])_0x2e67ce['add'](_0x56bf3d);}for(const _0x276b86 of _0x1a4f78)_0x38a59e['descriptionFactory']['registerAttributeLabel'](_0x276b86,o(_0x228367,'FORMAT_STYLE'));for(const _0x1ac2d2 of _0x2e67ce)_0x38a59e['descriptionFactory']['registerAttributeLabel'](_0x1ac2d2,o(_0x228367,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf9d3ac=this['editor'],_0x206bdc=_0xf9d3ac['locale'];_0xf9d3ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8fc8a5=>{if('formatBlock'!=_0x8fc8a5['type']&&'formatInline'!=_0x8fc8a5['type'])return;const {data:_0xb83638}=_0x8fc8a5;return _0xb83638&&'style'===_0xb83638['commandName']?_0xb83638['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x206bdc,'*Set\x20format:*\x20%0',_0xb83638['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x206bdc,'*Remove\x20format:*\x20%0',_0xb83638['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x5c469f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x331172){super(_0x331172),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31bb0c=this['editor'],_0x3a1e44=_0x31bb0c['model']['document']['selection'];if(!_0x31bb0c['plugins']['has']('TableEditing'))return;const _0x26af3c=_0x31bb0c['locale'],_0x2e7161=_0x31bb0c['plugins']['get']('TrackChangesEditing'),_0x5c0fc5=_0x31bb0c['plugins']['get']('TableUtils');_0x2e7161['descriptionFactory']['registerElementLabel']('table',_0x483e83=>o(_0x26af3c,'ELEMENT_TABLE',_0x483e83)),this['_setupColumnsRowsFixing'](),_0x2e7161['enableCommand']('insertTable'),_0x2e7161['enableCommand']('selectTableRow'),_0x2e7161['enableCommand']('selectTableColumn');for(const _0x51a953 of['insertTableRowAbove','insertTableRowBelow']){const _0x5d75e8=_0x31bb0c['commands']['get'](_0x51a953);_0x2e7161['enableCommand'](_0x51a953,_0x271683=>{_0x31bb0c['model']['change'](_0x304cb7=>{_0x271683();const _0x331380='above'===_0x5d75e8['order'],_0x3be5c4=_0x5c0fc5['getSelectionAffectedTableCells'](_0x3a1e44),_0x2f3c27=_0x5c0fc5['getRowIndexes'](_0x3be5c4),_0x2c4bb2=_0x331380?_0x2f3c27['first']-0x1:_0x2f3c27['last']+0x1,_0x42d29a=_0x3be5c4[0x0]['findAncestor']('table'),_0x5a1499=_0x5c0fc5['createTableWalker'](_0x42d29a,{'startRow':_0x2c4bb2,'endRow':_0x2c4bb2}),_0x46184c=Array['from'](_0x5a1499)['map'](_0x5e3802=>_0x304cb7['createRangeOn'](_0x5e3802['cell']));_0x2e7161['markMultiRangeInsertion'](_0x46184c,'tableRow');});});}for(const _0x2bbad2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x45e529=_0x31bb0c['commands']['get'](_0x2bbad2);_0x2e7161['enableCommand'](_0x2bbad2,_0xac98db=>{_0x31bb0c['model']['change'](_0x283ad8=>{_0xac98db();const _0xb72d0f='left'===_0x45e529['order'],_0x4f1d6e=_0x5c0fc5['getSelectionAffectedTableCells'](_0x3a1e44),_0x3c9e3c=_0x5c0fc5['getColumnIndexes'](_0x4f1d6e),_0x2491a1=_0xb72d0f?_0x3c9e3c['first']-0x1:_0x3c9e3c['last']+0x1,_0x3f19a7=_0x4f1d6e[0x0]['findAncestor']('table'),_0xb57689=_0x5c0fc5['createTableWalker'](_0x3f19a7,{'startRow':0x0,'column':_0x2491a1,'includeAllSlots':!0x1}),_0x4eb883=Array['from'](_0xb57689)['map'](_0x282759=>_0x283ad8['createRangeOn'](_0x282759['cell']));_0x2e7161['markMultiRangeInsertion'](_0x4eb883,'tableColumn');});});}for(const _0x521f40 of['removeTableRow','removeTableColumn']){const _0xa97c74=_0x521f40['substr'](0xb),_0x5abcb8=_0xa97c74['toLowerCase'](),_0x1cea8f=_0x5abcb8['substr'](0x0,0x3)+'span',_0x1bcf67='table'+_0xa97c74,_0x58b9ea='min'+_0xa97c74,_0x108afe='max'+_0xa97c74;_0x2e7161['enableCommand'](_0x521f40,()=>{_0x31bb0c['model']['change'](_0x23ca20=>{const _0x7b5d1c=_0x5c0fc5['getSelectionAffectedTableCells'](_0x3a1e44),_0x45319f=_0x7b5d1c[0x0]['findAncestor']('table');let _0x431688;if('removeTableRow'==_0x521f40){const _0x4b8aed=_0x5c0fc5['getRowIndexes'](_0x7b5d1c);_0x431688={'startRow':_0x4b8aed['first'],'endRow':_0x4b8aed['last'],'includeAllSlots':!0x0};}else{const _0x526dbe=_0x5c0fc5['getColumnIndexes'](_0x7b5d1c);_0x431688={'startColumn':_0x526dbe['first'],'endColumn':_0x526dbe['last'],'includeAllSlots':!0x0};}const _0x48cde3=_0x5c0fc5['createTableWalker'](_0x45319f,_0x431688),_0x327c1a=Array['from'](_0x48cde3)['map'](({cell:_0x47279d})=>_0x47279d),_0x507b27=_e(_0x327c1a['filter'](_0x2aa824=>_0x2aa824['hasAttribute'](_0x1cea8f))),_0x5a109e=_e(_0x327c1a['filter'](_0x1d4acb=>!_0x1d4acb['hasAttribute'](_0x1cea8f)))['map'](_0x16cbd5=>_0x23ca20['createRangeOn'](_0x16cbd5)),_0x1df618=_0x2e7161['markMultiRangeDeletion'](_0x5a109e,_0x1bcf67);if(_0x1df618&&('tableRow'==_0x1df618['subType']||'tableColumn'==_0x1df618['subType'])){const _0xd235c7=this['_getSuggestionCoords'](_0x1df618);for(const _0x389016 of _0x507b27){const _0xbe0b7f=_0x23ca20['createRangeOn'](_0x389016),_0xe59b6e=_0x5c0fc5['getCellLocation'](_0x389016),_0x28477e=_0x389016['getAttribute'](_0x1cea8f)-0x1,_0x20c02b=_0xd235c7[_0x58b9ea],_0x2aa8a9=_0xd235c7[_0x108afe];_0x20c02b<=_0xe59b6e[_0x5abcb8]&&_0xe59b6e[_0x5abcb8]+_0x28477e<=_0x2aa8a9&&_0x1df618['addRange'](_0xbe0b7f);}}});});}function _0x2558f9(_0x5f1ea1){const _0x4749e4=Array['from'](_0x3a1e44['getRanges']())['map'](_0x190806=>_0x167977['fromRange'](_0x190806));_0x31bb0c['model']['change'](_0x5e5896=>{const _0xcb4136=_0x5e5896['batch'];_0x5f1ea1=_0x5f1ea1['filter'](_0x3a2408=>'$graveyard'!=_0x3a2408['root']['rootName']),_0x5e5896['setSelection'](_0x5f1ea1),_0x31bb0c['commands']['get']('removeTableRow')['refresh'](),_0x31bb0c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31bb0c['model']['enqueueChange'](()=>{_0x31bb0c['model']['enqueueChange'](_0xcb4136,_0x209f55=>{const _0x386d00=_0x4749e4['filter'](_0x96ee0c=>'$graveyard'!=_0x96ee0c['root']['rootName']);_0x386d00['length']>0x0&&_0x209f55['setSelection'](_0x386d00);for(const _0x320105 of _0x4749e4)_0x320105['detach']();});});});}function _0x53d6e9(_0x1647b0){_0x31bb0c['model']['change'](_0x5c8a4c=>{const _0x582330=Array['from'](_0x3a1e44['getRanges']())['map'](_0xdf7c7=>_0x167977['fromRange'](_0xdf7c7)),_0x4b0bde=[];for(const _0x53ff14 of _0x1647b0)for(const _0x34cdfd of _0x53ff14['getItems']({'shallow':!0x0}))_0x4b0bde['push'](_0x34cdfd);for(const _0x287ca9 of _0x4b0bde)'$graveyard'!=_0x287ca9['root']['rootName']&&(_0x5c8a4c['setSelection'](_0x5c8a4c['createPositionAt'](_0x287ca9,0x0)),_0x31bb0c['commands']['get']('removeTableColumn')['refresh'](),_0x31bb0c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x53e94e=_0x582330['filter'](_0x30ae27=>'$graveyard'!=_0x30ae27['root']['rootName']);_0x53e94e['length']>0x0&&_0x5c8a4c['setSelection'](_0x53e94e);for(const _0x4eca46 of _0x582330)_0x4eca46['detach']();});}function _0x5ccec9(_0x320b57,_0x12575b){return _0x12575b['every'](_0x2dc40b=>_0x320b57['some'](_0x194827=>_0x194827['end']['isEqual'](_0x2dc40b['start'])||_0x2dc40b['end']['isEqual'](_0x194827['start'])));}function _0x44dab1(_0x470918,_0x4d67b7){return!_0x470918['some'](_0x22cff7=>_0x4d67b7['some'](_0x1486cd=>_0x22cff7['isIntersecting'](_0x1486cd)))&&_0x470918['some'](_0x1cf025=>_0x4d67b7['some'](_0x548201=>_0x1cf025['end']['isTouching'](_0x548201['start'])));}_0x2e7161['descriptionFactory']['registerDescriptionCallback'](_0x34fc98=>{if('insertion'!=_0x34fc98['type']&&'deletion'!=_0x34fc98['type'])return;const _0x50443f=_0x34fc98['getContainedElement']();if(null!=_0x50443f&&_0x50443f['is']('element','table')){if('insertion'==_0x34fc98['type']){const _0x44904a=_0x34fc98['getItems']()['filter'](_0x43c8a8=>_0x43c8a8['is']('$textProxy'))['map'](_0xe6294=>_0xe6294['data']);if(_0x44904a['length'])return{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44904a['join']('\x20')+'\x22'))};}if('deletion'==_0x34fc98['type']){const _0x5db301=_0x34fc98['getItems']()['filter'](_0x3dd2f6=>_0x3dd2f6['is']('$textProxy'))['map'](_0x5d785e=>_0x5d785e['data']);if(_0x5db301['length'])return{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5db301['join']('\x20')+'\x22'))};}}}),_0x2e7161['descriptionFactory']['registerDescriptionCallback'](_0x2ea952=>{if('tableRow'==_0x2ea952['subType']){const _0x984c60=_0x2ea952['getItems']()['filter'](_0x2deda1=>_0x2deda1['is']('$textProxy'))['map'](_0x319aad=>_0x319aad['data']),_0xb7597c=this['_getSuggestionCoords'](_0x2ea952),_0x2ea57f=_0xb7597c['maxRow']-_0xb7597c['minRow']+0x1;if('insertion'==_0x2ea952['type'])return _0x984c60['length']?{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ea57f,'\x22'+_0x984c60['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW',_0x2ea57f))};if('deletion'==_0x2ea952['type'])return _0x984c60['length']?{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ea57f,'\x22'+_0x984c60['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_ROW',_0x2ea57f))};}if('tableColumn'==_0x2ea952['subType']){const _0x49ae62=_0x2ea952['getItems']()['filter'](_0x51eb5b=>_0x51eb5b['is']('$textProxy'))['map'](_0x38f4a5=>_0x38f4a5['data']),_0x4b96c1=this['_getSuggestionCoords'](_0x2ea952),_0x58bf5f=_0x4b96c1['maxColumn']-_0x4b96c1['minColumn']+0x1;if('insertion'==_0x2ea952['type'])return _0x49ae62['length']?{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58bf5f,'\x22'+_0x49ae62['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26af3c,'*Insert:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN',_0x58bf5f))};if('deletion'==_0x2ea952['type'])return _0x49ae62['length']?{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58bf5f,'\x22'+_0x49ae62['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26af3c,'*Remove:*\x20%0',o(_0x26af3c,'ELEMENT_TABLE_COLUMN',_0x58bf5f))};}}),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2558f9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2558f9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53d6e9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53d6e9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5ccec9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5ccec9),_0x2e7161['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x44dab1),_0x2e7161['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x44dab1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3c86ca=this['editor'],_0x318cd0=_0x3c86ca['model']['document']['selection'];return(_0x19fdca,_0x54c64c)=>{_0x3c86ca['model']['change'](_0x3cb6e5=>{const {commandName:_0x329d4e,commandParams:_0x594284}=_0x54c64c;let _0x44734b=_0x19fdca[0x0]['end']['nodeBefore'];_0x594284&&_0x594284[0x0]&&!0x1===_0x594284[0x0]['forceValue']&&(_0x44734b=_0x19fdca[0x0]['start']['nodeAfter']);const _0x24f322=_0x3cb6e5['createRangeIn'](_0x44734b);if('$graveyard'==_0x24f322['root']['rootName'])return;const _0x120b56=Array['from'](_0x318cd0['getRanges']())['map'](_0xb161a6=>_0x167977['fromRange'](_0xb161a6));_0x3cb6e5['setSelection'](_0x24f322),_0x3c86ca['commands']['get'](_0x329d4e)['refresh'](),_0x594284['push']({'forceDefaultExecution':!0x0}),_0x3c86ca['execute'](_0x329d4e,..._0x594284);const _0x5dfe0f=_0x120b56['filter'](_0x55d1fc=>'$graveyard'!=_0x55d1fc['root']['rootName']);_0x5dfe0f['length']>0x0&&_0x3cb6e5['setSelection'](_0x5dfe0f);for(const _0x373280 of _0x120b56)_0x373280['detach']();});};}['_getCoordsForCells'](_0x1cab6e){const _0x2fc0b7=this['editor']['plugins']['get']('TableUtils');let _0x10bf91=Number['MAX_SAFE_INTEGER'],_0x4b0f24=Number['MIN_SAFE_INTEGER'],_0x400f58=Number['MAX_SAFE_INTEGER'],_0x197cc1=Number['MIN_SAFE_INTEGER'];for(const _0x3b5505 of _0x1cab6e){if('$graveyard'==_0x3b5505['root']['rootName'])continue;const {row:_0x1cb6fb,column:_0x69978c}=_0x2fc0b7['getCellLocation'](_0x3b5505),_0xfa5171=_0x3b5505['hasAttribute']('rowspan')?_0x3b5505['getAttribute']('rowspan')-0x1:0x0,_0x5527c1=_0x3b5505['hasAttribute']('colspan')?_0x3b5505['getAttribute']('colspan')-0x1:0x0;_0x10bf91=_0x1cb6fb<_0x10bf91?_0x1cb6fb:_0x10bf91,_0x4b0f24=_0x1cb6fb+_0xfa5171>_0x4b0f24?_0x1cb6fb+_0xfa5171:_0x4b0f24,_0x400f58=_0x69978c<_0x400f58?_0x69978c:_0x400f58,_0x197cc1=_0x69978c+_0x5527c1>_0x197cc1?_0x69978c+_0x5527c1:_0x197cc1;}return{'minRow':_0x10bf91,'maxRow':_0x4b0f24,'minColumn':_0x400f58,'maxColumn':_0x197cc1};}['_setupColumnsRowsFixing'](){const _0x155abb=this['editor'],_0x2966fc=_0x155abb['plugins']['get']('TrackChangesEditing'),_0x33f7ba=_0x155abb['plugins']['get']('TableUtils');_0x155abb['model']['document']['on']('change:data',()=>{const _0x356965=Array['from'](_0x155abb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5765b7,data:_0x2e90a2}of _0x356965){const {group:_0x58f53a,id:_0x2f8c84,subType:_0x1d7c3a}=_0x2966fc['_splitMarkerName'](_0x5765b7);if('suggestion'!=_0x58f53a)continue;if(null!=_0x2e90a2['oldRange'])continue;const _0x29c663=_0x2966fc['getSuggestion'](_0x2f8c84);this['_tablePostFixingSubtypes']['includes'](_0x1d7c3a)&&this['_tableSuggestions']['add'](_0x29c663);}},{'priority':'low'});const _0x4a21ed=(_0x259792,_0xf781c)=>{let _0x23a06e=!0x1;const _0x4871c0=_0xf781c['createRangeOn'](_0x259792),_0x76a675=_0x259792['findAncestor']('table'),_0x51015d=_0x33f7ba['getCellLocation'](_0x259792);for(const _0x36fa11 of this['_tableSuggestions']){const _0x3f504e=_0x36fa11['subType'],_0x5c56ce=_0x3f504e['startsWith']('tablePaste'),_0x5d7051=_0x3f504e['substr'](_0x5c56ce?0xa:0x5),_0x4bd49c=_0x5d7051['toLowerCase'](),_0x3c0426=_0x4bd49c['substr'](0x0,0x3)+'span',_0xaaa616='min'+_0x5d7051,_0x12b99f='max'+_0x5d7051;if(!_0x36fa11['isInContent'])continue;if(_0x76a675!=_0x36fa11['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x36fa11['isIntersectingWithRange'](_0x4871c0))continue;const _0x274279=_0x259792['hasAttribute'](_0x3c0426)?_0x259792['getAttribute'](_0x3c0426)-0x1:0x0,_0x4d35af=this['_getSuggestionCoords'](_0x36fa11),_0x1f66e8=_0x4d35af[_0xaaa616],_0x550faf=_0x4d35af[_0x12b99f];_0x1f66e8<=_0x51015d[_0x4bd49c]&&_0x51015d[_0x4bd49c]+_0x274279<=_0x550faf&&(_0x36fa11['addRange'](_0x4871c0),_0x23a06e=!0x0);}return _0x23a06e;};_0x155abb['model']['document']['registerPostFixer'](_0x3a1586=>{let _0x4491a6=!0x1;for(const _0x19d76f of _0x155abb['model']['document']['differ']['getChanges']())if('insert'==_0x19d76f['type']){if('tableRow'==_0x19d76f['name']){for(const _0x38b619 of _0x19d76f['position']['nodeAfter']['getChildren']())_0x4491a6=_0x4491a6||_0x4a21ed(_0x38b619,_0x3a1586);}else'tableCell'==_0x19d76f['name']&&(_0x4491a6=_0x4491a6||_0x4a21ed(_0x19d76f['position']['nodeAfter'],_0x3a1586));}return _0x4491a6;});}['_getSuggestionCoords'](_0xf457b3){return this['_getCoordsForCells'](_0xf457b3['getRanges']()['map'](_0x33d00d=>_0x33d00d['start']['nodeAfter']));}}function _e(_0x1a9a77){return Array['from'](new Set(_0x1a9a77)['values']());}class $t extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x3601dc=this['editor'],_0x544728=_0x3601dc['model']['document']['selection'],_0x4dda9e=_0x3601dc['locale'];if(!_0x3601dc['plugins']['has']('TableEditing'))return;const _0x427353=_0x3601dc['plugins']['get']('TrackChangesEditing'),_0x3f79ee=_0x3601dc['plugins']['get']('TableUtils'),_0x27e946=_0x3601dc['plugins']['get'](Nt);_0x27e946['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x427353['enableCommand']('mergeTableCells',()=>{const _0x371f13=_0x3f79ee['getSelectionAffectedTableCells'](_0x3601dc['model']['document']['selection']);_0x3601dc['model']['change'](()=>{_0x427353['markMultiRangeBlockFormat'](_0x371f13,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3601dc['commands']['get']('mergeTableCells')['on']('execute',(_0xf364a3,_0x1fca91)=>{_0x3601dc['commands']['get']('trackChanges')['value']&&(_0x1fca91['length']>0x0&&_0x1fca91[_0x1fca91['length']-0x1]&&_0x1fca91[_0x1fca91['length']-0x1]['forceDefaultExecution']||_0x427353['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf364a3['stop']());},{'priority':'highest'});for(const _0x52f0ac of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x324b90=_0x3601dc['commands']['get'](_0x52f0ac);_0x427353['enableCommand'](_0x52f0ac,()=>{const _0x4f3e63=_0x3601dc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x145ab2=>_0x145ab2['is']('element','tableCell')),_0x2b69d1=_0x324b90['value'];_0x3601dc['model']['change'](()=>{_0x427353['markMultiRangeBlockFormat']([_0x4f3e63,_0x2b69d1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1d37d6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18e3fc=_0x3601dc['commands']['get'](_0x1d37d6);_0x427353['enableCommand'](_0x1d37d6,()=>{const _0x131baf=_0x3f79ee['getSelectionAffectedTableCells'](_0x3601dc['model']['document']['selection'])[0x0],_0x222c4f=_0x131baf['findAncestor']('table'),{column:_0x5d0b4b,row:_0x201e27}=_0x3f79ee['getCellLocation'](_0x131baf);let _0x52d684=[];if('horizontally'==_0x18e3fc['direction']){const _0x3af602=_0x3f79ee['createTableWalker'](_0x222c4f,{'startRow':_0x201e27,'endRow':_0x201e27,'includeAllSlots':!0x0});_0x52d684=Array['from'](_0x3af602)['map'](_0x1899a2=>_0x1899a2['cell']);}else{const _0x389c2a=_0x3f79ee['createTableWalker'](_0x222c4f,{'column':_0x5d0b4b,'includeAllSlots':!0x0});_0x52d684=Array['from'](_0x389c2a)['map'](_0x484211=>_0x484211['cell']);}_0x3601dc['model']['change'](_0x1c1c82=>{_0x427353['markBlockFormat'](_0x1c1c82['createRangeOn'](_0x131baf),{'commandName':_0x1d37d6,'commandParams':[]},_0x52d684,_0x1d37d6);});});}_0x427353['descriptionFactory']['registerDescriptionCallback'](_0x101f46=>{if('formatBlock'!=_0x101f46['type']&&'formatInline'!=_0x101f46['type'])return;const {data:_0x39c958}=_0x101f46;return _0x39c958&&'mergeTableCells'==_0x39c958['commandName']?{'type':'format','content':o(_0x4dda9e,'*Merge\x20cells*')}:void 0x0;}),_0x427353['descriptionFactory']['registerDescriptionCallback'](_0x3385d7=>{if('formatBlock'!=_0x3385d7['type']&&'formatInline'!=_0x3385d7['type'])return;const {data:_0x162dc2}=_0x3385d7;return _0x162dc2?'splitTableCellVertically'==_0x162dc2['commandName']?{'type':'format','content':o(_0x4dda9e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x162dc2['commandName']?{'type':'format','content':o(_0x4dda9e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4cc8a8=_0x27e946['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d2f6e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x427353['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d2f6e,'accept',_0x4cc8a8);for(const _0x11156d of['splitTableCellVertically','splitTableCellHorizontally'])_0x427353['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11156d,'accept',_0x4cc8a8);_0x427353['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x161f19=>{_0x3601dc['model']['change'](_0x31895e=>{const _0x4d399b=Array['from'](_0x544728['getRanges']())['map'](_0x396f41=>_0x167977['fromRange'](_0x396f41));_0x31895e['setSelection'](_0x161f19),_0x3601dc['commands']['get']('mergeTableCells')['refresh'](),_0x3601dc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x577450=_0x4d399b['filter'](_0x460e2c=>'$graveyard'!=_0x460e2c['root']['rootName']);_0x577450['length']>0x0&&_0x31895e['setSelection'](_0x577450);for(const _0x218d86 of _0x4d399b)_0x218d86['detach']();});});for(const _0xd82026 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3488d6=_0x3601dc['commands']['get'](_0xd82026);_0x3488d6['on']('set:isEnabled',(_0x285ffa,_0x52aa88,_0x3a389b)=>{if(_0x3a389b){const _0x8d3a5d=_0x3601dc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x340787=>_0x340787['is']('element','tableCell'));this['_areMergableCells'](_0x3488d6['value'],_0x8d3a5d)||(_0x285ffa['return']=!0x1,_0x285ffa['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe68e1e=this['editor']['commands']['get']('mergeTableCells'),_0x423bf9=this['editor']['plugins']['get']('TableUtils');if(!_0xe68e1e['isEnabled'])return!0x1;const _0xe32a17=_0x423bf9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56f0f0 of _0xe32a17)for(const _0x27d5c6 of _0xe32a17)if(_0x56f0f0!=_0x27d5c6&&!this['_areMergableCells'](_0x56f0f0,_0x27d5c6))return!0x1;return!0x0;}['_areMergableCells'](_0x5bfd61,_0x400a2b){const _0x2c1ded=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed8f6=this['editor']['model']['createRangeOn'](_0x5bfd61),_0x3d34af=this['editor']['model']['createRangeOn'](_0x400a2b),_0x4118cd=new Set(),_0x11be49=new Set();for(const _0x303d87 of _0x2c1ded['getSuggestions']())if(('insertion'==_0x303d87['type']||'deletion'==_0x303d87['type']||'mergeTableCells'==_0x303d87['subType'])&&_0x303d87['isInContent']){for(const _0x3eb628 of _0x303d87['getRanges']())_0x3eb628['containsRange'](_0x3ed8f6,!0x0)&&_0x4118cd['add'](_0x303d87['type']+':'+_0x303d87['author']['id']),_0x3eb628['containsRange'](_0x3d34af,!0x0)&&_0x11be49['add'](_0x303d87['type']+':'+_0x303d87['author']['id']);}if(_0x4118cd['size']!=_0x11be49['size'])return!0x1;for(const _0x36a687 of _0x4118cd)if(!_0x11be49['has'](_0x36a687))return!0x1;return!0x0;}}class vt extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x202785=this['editor'];if(!_0x202785['plugins']['has']('TableEditing'))return;const _0x2222ff=_0x202785['locale'],_0x121111=_0x202785['plugins']['get']('TrackChangesEditing');_0x121111['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x121111['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x121111['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2222ff,'FORMAT_HEADER_ROW')),_0x121111['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2222ff,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x269053=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb8ed1d=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x269053['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xb8ed1d),_0x269053['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xb8ed1d),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4ba354=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e2ce2=this['editor']['plugins']['get']('TableUtils');function _0x3f0581({showActiveMarker:_0x1ed2d6=!0x0,setDataAttribute:_0x5dd92c=!0x0}={}){return(_0x4eb22c,_0x154b5c,_0x57026c)=>{const {type:_0x326f61,id:_0x1809b6}=_0x4ba354['_splitMarkerName'](_0x154b5c['markerName']);if(!_0x4ba354['hasSuggestion'](_0x1809b6))return;const _0x141554=_0x4ba354['getSuggestion'](_0x1809b6),_0x50fec4=_0x141554['data'];if('formatBlock'!=_0x141554['type']||!_0x50fec4||'setTableColumnHeader'!=_0x50fec4['commandName'])return;if(_0x154b5c['item'])return void _0x4eb22c['stop']();if(!_0x57026c['consumable']['consume'](_0x154b5c['markerRange'],_0x4eb22c['name']))return;const _0x102bd4=_0x154b5c['markerRange']['start']['nodeAfter'],_0x530fda=_0x154b5c['markerRange']['end']['nodeBefore'],_0x49a850=_0x102bd4['parent']['parent'],{column:_0x23ba56}=_0x2e2ce2['getCellLocation'](_0x102bd4),{column:_0xd53c11}=_0x2e2ce2['getCellLocation'](_0x530fda);for(let _0x56f4c4=_0x23ba56;_0x56f4c4<=_0xd53c11;_0x56f4c4++){const _0x430456=_0x2e2ce2['createTableWalker'](_0x49a850,{'column':_0x56f4c4,'includeAllSlots':!0x1});for(const _0x400832 of _0x430456){const _0x5e7d36=_0x400832['cell'],_0x27836a=_0x57026c['mapper']['toViewElement'](_0x5e7d36);_0x57026c['writer']['addClass']('ck-suggestion-marker-'+_0x326f61,_0x27836a),_0x5dd92c&&_0x57026c['writer']['setAttribute']('data-suggestion',_0x1809b6,_0x27836a),_0x57026c['mapper']['bindElementToMarker'](_0x27836a,_0x154b5c['markerName']),_0x1ed2d6&&(_0x4ba354['activeMarkers']['includes'](_0x154b5c['markerName'])?_0x57026c['writer']['addClass']('ck-suggestion-marker--active',_0x27836a):_0x57026c['writer']['removeClass']('ck-suggestion-marker--active',_0x27836a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3f0581(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x206090,_0x2e76db,_0x40d3be)=>{_0x40d3be['options']['showSuggestionHighlights']&&_0x3f0581({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x206090,_0x2e76db,_0x40d3be);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2a0192,_0x10c5c8,_0x4309c5)=>{const {type:_0x21cb98,id:_0x37a4ef}=_0x4ba354['_splitMarkerName'](_0x10c5c8['markerName']);if(!_0x4ba354['hasSuggestion'](_0x37a4ef))return;const _0x59e3d4=_0x4ba354['getSuggestion'](_0x37a4ef),_0x2382a6=_0x59e3d4['data'];if('formatBlock'!=_0x59e3d4['type']||!_0x2382a6||'setTableColumnHeader'!=_0x2382a6['commandName'])return;const _0x37b6f3=_0x4309c5['mapper']['markerNameToElements'](_0x10c5c8['markerName']);if(_0x37b6f3){for(const _0x31ae4d of _0x37b6f3)_0x4309c5['writer']['removeClass']('ck-suggestion-marker-'+_0x21cb98,_0x31ae4d),_0x4309c5['writer']['removeClass']('ck-suggestion-marker--active',_0x31ae4d),_0x4309c5['writer']['removeAttribute']('data-suggestion',_0x31ae4d),_0x4309c5['mapper']['unbindElementFromMarkerName'](_0x31ae4d,_0x10c5c8['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x495a9a=this['editor'],_0x58cd00=_0x495a9a['locale'];function _0x41e323(_0x160cec){return{'type':'format','content':o(_0x58cd00,'*Format:*\x20%0',_0x160cec)};}_0x495a9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50adc7=>{if('formatBlock'!=_0x50adc7['type'])return;const {data:_0x5af6f1}=_0x50adc7;if(_0x5af6f1){if('setTableRowHeader'==_0x5af6f1['commandName']){const _0x113cdb=_0x5af6f1['commandParams'][0x0]['forceValue'];return _0x41e323(o(_0x58cd00,_0x113cdb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5af6f1['commandName']){const _0x48ea6f=_0x5af6f1['commandParams'][0x0]['forceValue'];return _0x41e323(o(_0x58cd00,_0x48ea6f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x5c469f{['afterInit'](){const _0x313d61=this['editor'],_0x4d8c23=_0x313d61['locale'],_0x6ea766=_0x313d61['plugins']['get']('TrackChangesEditing');function _0x3535bf(_0x2a65cb){return{'type':'format','content':''+o(_0x4d8c23,'*Set\x20table\x20type:*\x20%0',_0x2a65cb)};}_0x313d61['plugins']['has']('TableLayout')&&(_0x6ea766['enableCommand']('insertTableLayout'),_0x6ea766['enableDefaultAttributesIntegration']('tableType'),_0x6ea766['descriptionFactory']['registerElementLabel'](_0xc2086e=>_0xc2086e['is']('element','table')&&'layout'===_0xc2086e['getAttribute']('tableType'),_0x2c38c7=>o(_0x4d8c23,'ELEMENT_LAYOUT_TABLE',_0x2c38c7)),_0x6ea766['descriptionFactory']['registerDescriptionCallback'](_0x358650=>{const {data:_0x53839f}=_0x358650;if(_0x53839f&&'tableType'==_0x53839f['key'])switch(_0x53839f['newValue']){case'layout':return _0x3535bf(o(_0x4d8c23,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3535bf(o(_0x4d8c23,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x10ee4b=>[_0x10ee4b,null]));class Bt extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x44296a=this['editor'];if(!_0x44296a['plugins']['has']('TableClipboard'))return;const _0x2ffd86=_0x44296a['plugins']['get']('TrackChangesEditing'),_0x3a860b=_0x44296a['plugins']['get']('TableUtils'),_0x12c35c=_0x44296a['plugins']['get'](Nt),_0x4aa8e5=_0x44296a['plugins']['get']('TableClipboard'),_0x393abc=_0x44296a['plugins']['get']('TableSelection'),_0x35b85c=_0x44296a['plugins']['get'](_0x1fe9af);_0x12c35c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x44296a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x44296a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x504601=null,_0x4a112c=!0x1;_0x35b85c['on']('contentInsertion',(_0x5eb71d,_0x2f3a86)=>{_0x4a112c='paste'===_0x2f3a86['method'];}),_0x44296a['model']['on']('insertContent',(_0x327308,_0x53187d)=>{if(!_0x4a112c&&null===_0x393abc['getSelectedTableCells']())return;const [_0x41c87a,_0xe7b308]=_0x53187d,_0x2d786e=_0x53187d[_0x53187d['length']-0x1];_0x2d786e&&_0x2d786e['forceDefaultExecution']||_0x2ffd86['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x15f195,_0x3f1328,_0x3bde19,_0x120059,_0x4e21d9){if(_0x3f1328&&!_0x3f1328['is']('documentSelection'))return!0x1;const _0x5850ee=_0x4e21d9['getTableIfOnlyTableInContent'](_0x15f195,_0x3bde19);if(!_0x5850ee||!Oe(_0x5850ee,void 0x0,_0x120059))return!0x1;const _0x5ac3df=_0x120059['getSelectionAffectedTableCells'](_0x3bde19['document']['selection']);if(!_0x5ac3df['length'])return!0x1;const _0x140516=_0x5ac3df[0x0]['findAncestor']('table'),_0x27455c=_0x120059['getRowIndexes'](_0x5ac3df),_0x1731f7=_0x120059['getColumnIndexes'](_0x5ac3df),_0xc0232b={'startRow':_0x27455c['first'],'endRow':_0x27455c['last'],'startColumn':_0x1731f7['first'],'endColumn':_0x1731f7['last']};return 0x1==_0x5ac3df['length']&&(_0xc0232b['endRow']+=_0x120059['getRows'](_0x5850ee)-0x1,_0xc0232b['endColumn']+=_0x120059['getColumns'](_0x5850ee)-0x1),Oe(_0x140516,_0xc0232b,_0x120059);}(_0x41c87a,_0xe7b308,_0x44296a['model'],_0x3a860b,_0x4aa8e5)&&(_0x327308['stop'](),_0x504601={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x44296a['model']['change'](()=>{_0x44296a['model']['insertContent'](_0x53187d[0x0],_0x53187d[0x1],_0x53187d[0x2],{'forceDefaultExecution':!0x0});const _0x4483a0=_0xe7a85c(),{rowInsertionRanges:_0x517b4c,columnInsertionRanges:_0x891dd4,insertionRanges:_0x432e71,deletionRanges:_0x407bf6,cells:_0x59bf1a}=_0x504601;_0x517b4c['length']&&_0x2ffd86['markMultiRangeInsertion'](_0x517b4c,'tablePasteRow',{'tablePasteChainId':_0x4483a0}),_0x891dd4['length']&&_0x2ffd86['markMultiRangeInsertion'](_0x891dd4,'tablePasteColumn',{'tablePasteChainId':_0x4483a0}),_0x432e71['length']&&(_0x2ffd86['markMultiRangeInsertion'](_0x432e71,'tablePaste',{'tablePasteChainId':_0x4483a0,'skipNestingCheck':!0x0}),_0x432e71['forEach'](_0x44b60b=>_0x44b60b['detach']?.())),_0x407bf6['length']&&(_0x2ffd86['markMultiRangeDeletion'](_0x407bf6,'tablePaste',{'tablePasteChainId':_0x4483a0,'skipNestingCheck':!0x0}),_0x407bf6['forEach'](_0x3c92c2=>_0x3c92c2['detach']?.()));const _0x272a24=_0x2ffd86['markMultiRangeBlockFormat'](_0x59bf1a['map'](({element:_0x55f12e})=>_0x55f12e),{'formatGroupId':_0xe7a85c()},[],'tablePasteCell',{'tablePasteChainId':_0x4483a0});if(_0x272a24){const _0x1e580f=_0x272a24['getMarkers'](),_0xfef24e=[];for(const {element:_0x5d46ec,attributes:_0x4528ac}of _0x59bf1a){if(!_0x4528ac)continue;const _0x72c834=_0x44296a['model']['createRangeOn'](_0x5d46ec),_0x4d5900=_0x1e580f['find'](_0x559006=>_0x559006['getRange']()['isEqual'](_0x72c834));_0x4d5900&&_0xfef24e['push']([_0x4d5900['name'],_0x4528ac]);}_0xfef24e['length']&&_0x272a24['setAttribute']('markerAttributes',Object['fromEntries'](_0xfef24e));}_0x504601=null;}));},{'priority':_0x5382c2['high']+0xa}),_0x35b85c['on']('contentInsertion',()=>{_0x4a112c=!0x1;},{'priority':'lowest'}),_0x44296a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x21a06f,_0x54603e)=>{const [_0x54f9a2,_0x7690ab,,_0x21b9e0]=_0x54603e;if(!_0x504601)return;_0x21a06f['stop']();const _0x82f936=_0x54f9a2['cell'],_0x505a95=_0x7690ab,_0x4e9d46=Be(_0x82f936),_0x4cfc3b=Be(_0x505a95);_0x21a06f['return']=_0x82f936;let _0x144d5d=null,_0x726ed8=null;if(_0x4cfc3b||_0x4e9d46){if(_0x4e9d46&&!_0x4cfc3b){_0x21b9e0['remove'](_0x82f936['getChild'](0x0));for(const _0x5e8987 of Array['from'](_0x505a95['getChildren']()))_0x21b9e0['insert'](_0x5e8987,_0x82f936,'end');const _0x54a2d8=_0x504601['rowInsertionIndexes']['includes'](_0x54f9a2['row']),_0x1c2368=_0x504601['columnInsertionIndexes']['includes'](_0x54f9a2['column']);_0x54a2d8||_0x1c2368||(_0x144d5d=_0x167977['fromRange'](_0x21b9e0['createRangeIn'](_0x82f936)));}else _0x4cfc3b&&!_0x4e9d46&&(_0x726ed8=_0x21b9e0['createRangeIn'](_0x82f936));}else{const _0x502bcf=_0x21b9e0['createElement']('tableCellSuggestion'),_0x401b13=_0x21b9e0['createElement']('tableCellSuggestion');_0x21b9e0['wrap'](_0x21b9e0['createRangeIn'](_0x82f936),_0x401b13),_0x21b9e0['insert'](_0x502bcf,_0x82f936,0x0);for(const _0x3ba4f3 of Array['from'](_0x505a95['getChildren']()))_0x21b9e0['insert'](_0x3ba4f3,_0x502bcf,'end');_0x144d5d=_0x167977['fromRange'](_0x21b9e0['createRangeOn'](_0x502bcf)),_0x726ed8=_0x167977['fromRange'](_0x21b9e0['createRangeOn'](_0x401b13));}const _0x38e009=Array['from'](_0x505a95['getAttributes']())['filter'](([_0x2bb1c8])=>Re['includes'](_0x2bb1c8));_0x504601['cells']['push']({'element':_0x82f936,'attributes':_0x38e009['length']?Object['fromEntries'](_0x38e009):null}),_0x144d5d&&_0x504601['insertionRanges']['push'](_0x144d5d),_0x726ed8&&_0x504601['deletionRanges']['push'](_0x726ed8);},{'priority':'high'}),_0x3a860b['on']('insertColumns',(_0x50f8e9,_0x4925a8)=>{const [_0x442fb8,_0x3bd0c0={}]=_0x4925a8;if(!_0x504601)return;const _0xf5c5f7=_0x3bd0c0['at']||0x0,_0x320fa6=_0x3bd0c0['columns']||0x1;_0x504601['columnInsertionIndexes']=new Array(_0x320fa6)['fill'](_0xf5c5f7)['map']((_0x28f5ee,_0x9dda50)=>_0x28f5ee+_0x9dda50);for(const {cell:_0x252428}of _0x3a860b['createTableWalker'](_0x442fb8,{'startColumn':_0xf5c5f7,'endColumn':_0xf5c5f7+_0x320fa6-0x1}))_0x504601['columnInsertionRanges']['push'](_0x44296a['model']['createRangeOn'](_0x252428));},{'priority':'low'}),_0x3a860b['on']('insertRows',(_0x18823b,_0x525781)=>{const [_0x15de0e,_0x24622a={}]=_0x525781;if(!_0x504601)return;const _0x47b6ed=_0x24622a['at']||0x0,_0x2ccc71=_0x24622a['rows']||0x1;_0x504601['rowInsertionIndexes']=new Array(_0x2ccc71)['fill'](_0x47b6ed)['map']((_0x1b004e,_0x10d04e)=>_0x1b004e+_0x10d04e);for(const {cell:_0xfe5d30}of _0x3a860b['createTableWalker'](_0x15de0e,{'startRow':_0x47b6ed,'endRow':_0x47b6ed+_0x2ccc71-0x1}))_0x504601['rowInsertionRanges']['push'](_0x44296a['model']['createRangeOn'](_0xfe5d30));},{'priority':'low'}),_0x2ffd86['descriptionFactory']['registerDescriptionCallback'](_0x45a8d9=>{if(_0x45a8d9['subType']&&_0x45a8d9['subType']['startsWith']('tablePaste'))return _0x45a8d9['previous']?{}:{'type':'insertion','content':o(_0x44296a['locale'],'*Replace\x20table\x20cells*')};});const _0x2e3ebb=()=>!0x1;for(const _0x44fe6f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2ffd86['_suggestionFactory']['registerCustomCallback']('insertion',_0x44fe6f,'join',_0x2e3ebb),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('deletion',_0x44fe6f,'join',_0x2e3ebb),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44fe6f,'join',_0x2e3ebb);_0x2ffd86['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2e3ebb),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x59a2ac,_0xd55a10,_0x32f175)=>{const _0x236993=_0x59a2ac['map'](_0x543486=>_0x543486['getContainedElement']())['filter'](_0x5585f2=>_0x5585f2),_0x3b58a4=new Map(_0x236993['map'](_0x37e14d=>[_0x37e14d,null]));if(_0x504601){for(const {element:_0x32c5b1,attributes:_0x3b89c0}of _0x504601['cells'])_0x3b89c0&&_0x3b58a4['set'](_0x32c5b1,_0x3b89c0);}else{if(_0x32f175&&_0x32f175['markerAttributes'])for(const [_0x291de9,_0x11abea]of Object['entries'](_0x32f175['markerAttributes'])){const _0x10ab24=_0x44296a['model']['markers']['get'](_0x291de9),_0x37b6ca=_0x10ab24?_0x10ab24['getRange']()['getContainedElement']():null;_0x37b6ca&&_0x3b58a4['set'](_0x37b6ca,_0x11abea);}}_0x44296a['model']['change'](_0x179679=>{for(const [_0x5637fd,_0x322e7e]of _0x3b58a4)_0x179679['setAttributes']({...Ae,..._0x322e7e},_0x5637fd);});});const _0x280883=(_0x54a2c6,_0x1f89cb)=>{_0x2ffd86['_suggestionFactory']['registerCustomCallback'](_0x54a2c6,'tablePaste',_0x1f89cb,(_0x874239,_0x399ba6,_0x3c8046)=>{_0x44296a['model']['change'](_0x216bfe=>{const _0x3496e4=[];for(const _0x48d639 of _0x874239){const _0x38b133=_0x48d639['start']['nodeAfter'];_0x38b133['is']('element','tableCellSuggestion')&&_0x3496e4['push'](_0x38b133);}_0x2ffd86['_suggestionFactory']['getSuggestionCallback'](_0x54a2c6,null,_0x1f89cb)(_0x874239,_0x399ba6,_0x3c8046);for(const _0x3602a6 of _0x3496e4)'$graveyard'!=_0x3602a6['root']['rootName']&&_0x216bfe['unwrap'](_0x3602a6);});});};_0x280883('insertion','accept'),_0x280883('insertion','discard'),_0x280883('deletion','accept'),_0x280883('deletion','discard'),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55e712=>{const _0x50ad54=_0x55e712['map'](_0x10aa1f=>_0x10aa1f['getContainedElement']()),_0x3e7151=_0x50ad54[0x0]['findAncestor']('table'),{minRow:_0x4340bb,maxRow:_0x2592b2}=_0x12c35c['_getCoordsForCells'](_0x50ad54);_0x3a860b['removeRows'](_0x3e7151,{'at':_0x4340bb,'rows':_0x2592b2-_0x4340bb+0x1});}),_0x2ffd86['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x36f40e=>{const _0x3dbb72=_0x36f40e['map'](_0x5344ea=>_0x5344ea['getContainedElement']()),_0x1e31e1=_0x3dbb72[0x0]['findAncestor']('table'),{minColumn:_0x170f8a,maxColumn:_0x214f64}=_0x12c35c['_getCoordsForCells'](_0x3dbb72);_0x3a860b['removeColumns'](_0x1e31e1,{'at':_0x170f8a,'columns':_0x214f64-_0x170f8a+0x1});});const _0x56ceab=(_0x39fbec,_0x2886f2)=>{if(!_0x2886f2['subType']||!_0x2886f2['subType']['startsWith']('tablePaste'))return;const _0xa691cc=_0x2886f2['attributes']['tablePasteChainId'],_0x4b6a71=_0x2ffd86['getSuggestions']()['filter'](_0x5ca0e3=>_0x5ca0e3['isInContent']&&_0x5ca0e3['attributes']&&_0x5ca0e3['attributes']['tablePasteChainId']==_0xa691cc);_0x4b6a71['length']&&_0x2886f2['getAllAdjacentSuggestions']()['length']!=_0x4b6a71['length']&&_0x4b6a71['reduce']((_0x530ec1,_0x588bb2)=>(_0x530ec1['next']=_0x588bb2,_0x588bb2['previous']=_0x530ec1,_0x588bb2));};function _0x429119(_0x5d53f5,_0x34be13=!0x0){const {id:_0x24ec24,authorId:_0x5c4518}=_0x2ffd86['_splitMarkerName'](_0x5d53f5['markerName']),_0x5e133f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbd3f0e=_0x2ffd86['activeMarkers']['includes'](_0x5d53f5['markerName']);return _0xbd3f0e&&_0x5e133f['push']('ck-suggestion-marker--active'),{'classes':_0x5e133f,'attributes':{'data-suggestion':_0x24ec24,'data-author-id':_0x5c4518},'priority':_0xbd3f0e&&_0x34be13?0xbc2:0xbb8};}_0x2ffd86['on']('suggestionLoaded',_0x56ceab,{'priority':'high'}),_0x2ffd86['on']('suggestionUnloaded',_0x56ceab,{'priority':'high'}),_0x44296a['model']['document']['registerPostFixer'](()=>{let _0x2a437d=!0x1;const _0x5f3c55=Array['from'](_0x44296a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa341c,data:_0x415d47}of _0x5f3c55){const {group:_0x58a4d8,type:_0x1bfd1f,id:_0x315f17}=_0x2ffd86['_splitMarkerName'](_0xa341c);if('suggestion'!=_0x58a4d8||'deletion'!=_0x1bfd1f||_0x415d47['oldRange'])continue;if(!_0x2ffd86['hasSuggestion'](_0x315f17))continue;const _0xeff096=_0x2ffd86['getSuggestion'](_0x315f17)['getRanges'](),_0x104105=_0x44296a['plugins']['get']('Users')['me'];for(const _0x4e7402 of _0x2ffd86['getSuggestions']()){if(!_0x4e7402['isInContent']||_0x4e7402['author']!=_0x104105)continue;if('formatBlock'!=_0x4e7402['type']||'tablePasteCell'!=_0x4e7402['subType'])continue;if(_0x4e7402['getRanges']()['every'](_0x54d461=>_0xeff096['some'](_0x4a31ec=>_0x4a31ec['containsRange'](_0x54d461,!0x0)))){for(const _0x5cb205 of _0x4e7402['getAllAdjacentSuggestions']())_0x5cb205['isInContent']&&(_0x5cb205['discard'](),_0x2a437d=!0x0);}}}return _0x2a437d;}),_0x44296a['model']['document']['registerPostFixer'](_0x44e785=>{const _0x21eb64=_0x44296a['commands']['get']('redo');if(!_0x21eb64||!_0x21eb64['_createdBatches']['has'](_0x44e785['batch']))return!0x1;let _0x51cd7c=!0x1;const _0x1ae8c4=_0x44296a['plugins']['get']('Users')['me'],_0x2a47ef=_0x44296a['model']['document']['differ']['getChanges'](),_0x3a9cef=Array['from'](_0x44296a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xe8879e,data:_0x4ed74d})=>{const {group:_0x453bca,subType:_0x208d8f,authorId:_0x523319}=_0x2ffd86['_splitMarkerName'](_0xe8879e);return'suggestion'==_0x453bca&&'tablePaste'==_0x208d8f&&_0x523319==_0x1ae8c4['id']&&!_0x4ed74d['oldRange'];});for(const _0x5444ee of _0x2a47ef){if('insert'!=_0x5444ee['type']||'tableCellSuggestion'!=_0x5444ee['name']||0x1!=_0x5444ee['length'])continue;const _0x314af9=_0x44e785['createRange'](_0x5444ee['position'],_0x5444ee['position']['getShiftedBy'](0x1));if(!_0x3a9cef['find'](({data:_0xebf09})=>_0xebf09['newRange']['isEqual'](_0x314af9))){for(const {name:_0x5872a0,data:_0x253cf7}of _0x3a9cef)if(_0x314af9['containsRange'](_0x253cf7['newRange'])){_0x44e785['updateMarker'](_0x5872a0,{'range':_0x314af9}),_0x51cd7c=!0x0;break;}}}return _0x51cd7c;}),_0x44296a['model']['document']['registerPostFixer'](_0x1fbb16=>{let _0x55685d=!0x1;const _0x159da4=_0x44296a['plugins']['get']('Users')['me'],_0x33dbbb=_0x2ffd86['getSuggestions']()['filter'](_0x220596=>_0x220596['isInContent']&&_0x220596['author']==_0x159da4),_0x3cda55=new Set(),_0xe91d81=new Set();for(const _0x3e60e9 of _0x33dbbb)if('tablePaste'==_0x3e60e9['subType'])for(const _0x1237d1 of _0x3e60e9['getMarkers']()){const _0x9c8740=_0x1237d1['getRange']()['getContainedElement']();if(_0x9c8740){if(_0x9c8740['is']('element','tableCellSuggestion')&&Be(_0x9c8740)){_0x3e60e9['removeMarker'](_0x1237d1['name']),_0x3cda55['add'](_0x9c8740),_0x55685d=!0x0;const _0x52efd3=_0x9c8740['nextSibling'],_0x1cfea0=_0x9c8740['previousSibling'],_0x2bda6d=_0x52efd3&&_0x52efd3['is']('element','tableCellSuggestion'),_0x45ff5a=_0x1cfea0&&_0x1cfea0['is']('element','tableCellSuggestion');_0x2bda6d&&!_0x3cda55['has'](_0x52efd3)&&_0xe91d81['add'](_0x52efd3),_0x45ff5a&&!_0x3cda55['has'](_0x1cfea0)&&_0xe91d81['add'](_0x1cfea0);}else _0x9c8740['is']('element','paragraph')&&_0x9c8740['isEmpty']&&(_0x3e60e9['removeMarker'](_0x1237d1['name']),_0x55685d=!0x0);}}else{if('tablePasteCell'==_0x3e60e9['subType']){if(!_0x3e60e9['attributes']||!_0x3e60e9['attributes']['tablePasteChainId'])continue;const _0x123ef2=_0x3e60e9['attributes']['markerAttributes'];if(_0x123ef2&&Object['keys'](_0x123ef2)['length'])continue;const _0x32b2dc=_0x3e60e9['attributes']['tablePasteChainId'];let _0x2e6b6c=!0x0,_0xb4f9f2=!0x0;for(const _0x2522ed of _0x33dbbb)if(_0x2522ed['subType']&&_0x2522ed['subType']['startsWith']('tablePaste')){if(!_0x2522ed['attributes']['tablePasteChainId']){_0xb4f9f2=!0x1;break;}if(_0x2522ed['id']!=_0x3e60e9['id']&&_0x2522ed['attributes']['tablePasteChainId']==_0x32b2dc){_0x2e6b6c=!0x1;break;}}_0xb4f9f2&&_0x2e6b6c&&(_0x3e60e9['removeMarkers'](),_0x55685d=!0x0);}}for(const _0x2ccb9d of _0x3cda55)_0x1fbb16['remove'](_0x2ccb9d);for(const _0x49e84e of _0xe91d81)_0x1fbb16['unwrap'](_0x49e84e);return _0x55685d;}),_0x44296a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2fff78=>_0x429119(_0x2fff78),'converterPriority':'high'}),_0x44296a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d88b4,_0x984003)=>_0x984003['options']['showSuggestionHighlights']?_0x429119(_0x2d88b4,!0x1):null,'converterPriority':'high'});const _0x2a704c=_0x44296a['editing']['view'];this['listenTo'](_0x2a704c['document'],'clipboardOutput',(_0x1ebb01,_0x338265)=>{const _0x4bf523=[];for(const _0x14beb5 of _0x2a704c['createRangeIn'](_0x338265['content'])['getItems']())_0x14beb5['is']('element','suggestion-td')&&_0x4bf523['push'](_0x14beb5);_0x2a704c['change'](_0x5938eb=>{for(const _0x569dd6 of _0x4bf523)_0x5938eb['move'](_0x5938eb['createRangeIn'](_0x569dd6),_0x5938eb['createPositionBefore'](_0x569dd6)),_0x5938eb['remove'](_0x569dd6);});});}}function Be(_0x50cfbb){if(_0x50cfbb['isEmpty'])return!0x0;const _0x5d5781=_0x50cfbb['getChild'](0x0);return _0x5d5781['is']('element','paragraph')&&_0x5d5781['isEmpty'];}function Oe(_0x38c035,_0x3e6832={},_0x1d948e){for(const {isAnchor:_0x1f2237,cellHeight:_0x18d082,cellWidth:_0x48bede}of _0x1d948e['createTableWalker'](_0x38c035,{'includeAllSlots':!0x0,..._0x3e6832}))if(!_0x1f2237||0x1!=_0x18d082||0x1!=_0x48bede)return!0x1;return!0x0;}class Ot extends _0x5c469f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x544f42=this['editor']['plugins']['get']('TrackChangesEditing');_0x544f42['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x544f42['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x544f42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x544f42['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x544f42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x544f42['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xaf3346,_0x3d5baf){const _0xcec5be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ac244=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x24aeb3=_0x3d5baf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3db6c3=_0x5ac244['getColumnGroupElement'](_0x24aeb3);let _0x4a8b22=_0x3db6c3?_0x5ac244['getTableColumnsWidths'](_0x3db6c3):null,_0x2ce397=_0x24aeb3['getAttribute']('tableWidth')||null;const _0x2a4502=_0x3d5baf['tableWidth']||_0x2ce397,_0x362152=_0x3d5baf['columnWidths']||_0x4a8b22,_0x38f99c=this['editor']['plugins']['get']('Users')['me'];for(const _0x203fdf of _0xcec5be['getSuggestions']()){const _0x155785=_0x203fdf['getContainedElement']();if('resizeTable'===_0x203fdf['subType']&&_0x155785===_0x24aeb3){_0x203fdf['author']!==_0x38f99c&&_0x203fdf['discard']();const _0x133780=_0x203fdf['data']['commandParams'];_0x2ce397=_0x133780[0x0]['tableWidth'],_0x4a8b22=_0x133780[0x0]['columnWidths'];break;}}_0xaf3346({'table':_0x24aeb3,'tableWidth':_0x2a4502,'columnWidths':_0x362152}),_0xcec5be['markBlockFormat'](_0x24aeb3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2ce397,'columnWidths':_0x4a8b22}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xfd6cbc){if('formatBlock'!=_0xfd6cbc['type']&&'formatInline'!=_0xfd6cbc['type'])return;const {data:_0x2da989}=_0xfd6cbc;if(_0x2da989&&'resizeTable'===_0x2da989['formatGroupId']){const _0x13c5af='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x13c5af)};}}}class xt extends _0x5c469f{['afterInit'](){const _0x64a69d=this['editor'];_0x64a69d['plugins']['has']('Template')&&_0x64a69d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5c469f{['afterInit'](){const _0x5c3006=this['editor'];if(!_0x5c3006['commands']['get']('insertTableOfContents'))return;_0x5c3006['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2a6061=_0x5c3006['plugins']['get']('TrackChangesEditing'),_0x520156=_0x5c3006['locale'];_0x2a6061['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14a443=>o(_0x520156,'ELEMENT_TABLE_OF_CONTENTS',_0x14a443));}}class Rt extends _0x5c469f{['afterInit'](){const _0x44273a=this['editor'];if(!_0x44273a['plugins']['has']('Title'))return;const _0x4ecad6=_0x44273a['plugins']['get']('TrackChangesEditing');_0x4ecad6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x44273a['locale'],'ELEMENT_TITLE')),_0x44273a['model']['document']['registerPostFixer'](_0x4fd171=>{let _0x71b8ef=!0x1;const _0x19f867=Array['from'](_0x44273a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x76cd0,data:_0xef368a}of _0x19f867){const {group:_0x296503}=_0x4ecad6['_splitMarkerName'](_0x76cd0);if('suggestion'!==_0x296503||!_0xef368a['newRange'])continue;const _0x380430=_0xef368a['newRange'],_0x3462f1=_0x380430['end']['nodeBefore'];if(!_0x3462f1||!_0x3462f1['is']('element','title-content'))continue;if(!_0x380430['start']['isTouching'](_0x380430['end']))continue;const _0xd68969=_0x44273a['model']['schema']['getNearestSelectionRange'](_0x380430['end'],'forward');if(_0xd68969&&_0xd68969['isCollapsed']){const _0x5e5e32=_0x4fd171['createRange'](_0x380430['start'],_0xd68969['start']);_0x5e5e32['isEqual'](_0x380430)||(_0x4fd171['updateMarker'](_0x76cd0,{'range':_0x5e5e32}),_0x71b8ef=!0x0);}_0x71b8ef||(_0x4fd171['removeMarker'](_0x76cd0),_0x71b8ef=!0x0);}return _0x71b8ef;});}}class Tt extends _0x5c469f{['afterInit'](){const _0xcc06a9=this['editor'],_0x50d418=_0xcc06a9['plugins']['get']('TrackChangesEditing');_0xcc06a9['plugins']['has']('Uploadcare')&&(_0x50d418['enableCommand']('uploadcare'),_0xcc06a9['plugins']['has']('UploadcareImageEdit')&&(_0x50d418['enableCommand']('uploadcareImageEdit'),_0x50d418['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x50d418['descriptionFactory']['registerDescriptionCallback'](_0x36dcbe=>{if('attribute'!=_0x36dcbe['type'])return;const {data:_0x160147}=_0x36dcbe;return _0x160147&&'uploadcareImageId'==_0x160147['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5c469f{['afterInit'](){const _0x356d61=this['editor'],_0x54321b=_0x356d61['plugins']['get']('TrackChangesEditing');_0x356d61['plugins']['has']('UndoEditing')&&(_0x54321b['enableCommand']('undo'),_0x54321b['enableCommand']('redo'));}}class Ut extends _0x5c469f{static get['requires'](){return[Nt];}['afterInit'](){const _0x3f4cf1=this['editor'];if(!_0x3f4cf1['plugins']['has']('TableCaptionEditing'))return;_0x3f4cf1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5c469f{['tableProperties'];['tableCellProperties'];constructor(_0x124089){super(_0x124089),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x50a28f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x16ce1f of this['tableProperties'])_0x50a28f['enableCommand'](_0x16ce1f,(_0x917ecd,_0x536413)=>{const _0x5edd73=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x16ce1f,[_0x5edd73],this['tableProperties'],'tableProperties',_0x917ecd,_0x536413);});_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x50a28f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1b3630,_0x5c3228)=>this['handleDiscardAction'](this['tableProperties'],_0x1b3630,_0x5c3228)),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1fcee4 of this['tableCellProperties'])_0x50a28f['enableCommand'](_0x1fcee4,(_0x2918ab,_0x3eee87)=>{const _0xd4940f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1fcee4,_0xd4940f,this['tableCellProperties'],'tableCellProperties',_0x2918ab,_0x3eee87);});_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x50a28f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x513763,_0x52a76c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x513763,_0x52a76c)),_0x50a28f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x50a28f['descriptionFactory']['registerDescriptionCallback'](_0x47710e=>this['handleSuggestionDescription'](_0x47710e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x54cece,_0x393008,_0x4551e7,_0x447beb,_0x2a11c1,_0x5b2535){const _0xf8cdba=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b2535['batch'],()=>{for(const _0xa44a69 of _0x393008){if(this['_getSuggestion'](_0xa44a69,_0x447beb))_0x2a11c1(_0x5b2535);else{const _0x3abf82={};for(const _0x27fa7b of _0x4551e7){const _0x361a76=_0xa44a69['getAttribute'](_0x27fa7b);void 0x0!==_0x361a76&&(_0x3abf82[_0x27fa7b]=_0x361a76);}_0x2a11c1(_0x5b2535),_0xf8cdba['markBlockFormat'](_0xa44a69,{'commandParams':[_0x3abf82]},[],_0x447beb);}}});}['handleDiscardAction'](_0x3080dd,_0x43d5ee,_0x58c293){const _0x280307=_0x43d5ee[0x0]['start']['nodeAfter'],_0x5edf2d=_0x58c293['commandParams'][0x0];this['editor']['model']['change'](_0x4e3879=>{for(const _0x38c543 of _0x3080dd)void 0x0!==_0x5edf2d[_0x38c543]?_0x4e3879['setAttribute'](_0x38c543,_0x5edf2d[_0x38c543],_0x280307):_0x4e3879['removeAttribute'](_0x38c543,_0x280307);});}['handleSuggestionDescription'](_0x483fa2){if(_0x483fa2['data'])switch(_0x483fa2['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'](_0x5e6996,_0x46ca7e){const _0x1e9c95=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3c3dac of _0x1e9c95['getSuggestions']({'skipNotAttached':!0x0})){const _0x440f90=_0x3c3dac['getContainedElement']();if(_0x3c3dac['subType']===_0x46ca7e&&_0x440f90===_0x5e6996)return _0x3c3dac;}return null;}['_registerTablePropertiesAttributes'](){const _0x1bce0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x765b00=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1fdf6a of _0x765b00){const _0x28f28d=_0x1fdf6a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1bce0b['descriptionFactory']['registerAttributeLabel'](_0x1fdf6a,o(this['editor']['locale'],'FORMAT_'+_0x28f28d));}}}class Ft extends _0x5c469f{['afterInit'](){const _0x6d163b=this['editor'];if(!_0x6d163b['plugins']['has']('LineHeight'))return;const _0xd68a42=_0x6d163b['plugins']['get']('TrackChangesEditing'),_0x3c49bf=_0x6d163b['locale'];_0xd68a42['enableDefaultAttributesIntegration']('lineHeight'),_0xd68a42['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3c49bf,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x5c469f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0xe3d5a4,_0x52061b,_0x4a392e,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4baeac){super(_0x4baeac),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1afa2d,_0x5c3d28,_0x18bd70,_0x8302d0)=>{this['_model']['change'](()=>{for(const _0x2bdd2f of[..._0x8302d0,..._0x18bd70])this['_model']['markers']['has'](_0x2bdd2f)&&_0x4baeac['editing']['reconvertMarker'](_0x2bdd2f);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4baeac['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4baeac['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4baeac['config']['get']('trackChanges.trackFormatChanges'),_0x4baeac['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4baeac['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4baeac,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1462f0=this['editor'];_0x1462f0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x36e06a,{writer:_0xf9d5a})=>{let _0x41ba7a='suggestion:'+_0x36e06a['getAttribute']('suggestion-type')+':'+_0x36e06a['getAttribute']('id');return _0x36e06a['getAttribute']('marker-count')&&(_0x41ba7a+=':'+_0x36e06a['getAttribute']('marker-count')),_0xf9d5a['createElement']('$marker',{'data-name':_0x41ba7a});}}),_0x1462f0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1462f0['model']['document']['registerPostFixer'](_0x4834fd=>{let _0x19131a=!0x1;const _0x38925c=Array['from'](_0x1462f0['model']['document']['differ']['getChangedMarkers']()),_0x299a2a=new Set();for(const {name:_0x2270de,data:_0x28044d}of _0x38925c){const {group:_0x48056f,type:_0x170aa3,subType:_0x204dfb,id:_0x4fc10e}=this['_splitMarkerName'](_0x2270de);if('suggestion'!==_0x48056f)continue;const _0x5bf5b4=_0x204dfb?'suggestion:'+_0x170aa3+':'+_0x204dfb+':'+_0x4fc10e:'suggestion:'+_0x170aa3+':'+_0x4fc10e,_0x496230=_0x1462f0['model']['markers']['getMarkersGroup'](_0x5bf5b4),_0x12132a=_0x1462f0['model']['markers']['get'](_0x2270de),_0x4a7c85=this['_suggestions']['get'](_0x4fc10e);if(null!=_0x28044d['newRange']){'formatInline'==_0x170aa3&&(_0x19131a=_0x19131a||Wt(_0x28044d['newRange'],_0x2270de,_0x4834fd,_0x1462f0['model']['schema']));const _0x54fb9e='attribute'==_0x170aa3&&this['_isBlockAttribute'](_0x204dfb['split']('|')[0x0]),_0x5d7fbd='attribute'==_0x170aa3&&this['_isInlineAttribute'](_0x204dfb['split']('|')[0x0]);if(_0x28044d['newRange']['isCollapsed']||'$graveyard'==_0x28044d['newRange']['root']['rootName']||'formatBlock'==_0x170aa3&&!Qt(_0x28044d['newRange'])||_0x54fb9e&&!Qt(_0x28044d['newRange'])||_0x5d7fbd&&Xt(_0x28044d['newRange'])||'deletion'==_0x170aa3&&Xt(_0x28044d['newRange'])||_0x12132a&&Yt(_0x12132a,_0x496230))_0x4834fd['removeMarker'](_0x2270de),_0x19131a=!0x0;else{if(!_0x4a7c85||!_0x4a7c85['isInContent'])continue;if(_0x28044d['newRange']&&_0x28044d['oldRange']&&_0x28044d['newRange']['isEqual'](_0x28044d['oldRange']))continue;_0x299a2a['add'](_0x4a7c85);}}}return _0x299a2a['size']>0x0&&(_0x19131a=!!this['_joinWithAdjacentSuggestions'](_0x299a2a)||_0x19131a),_0x19131a;}),_0x1462f0['model']['document']['registerPostFixer'](_0x984225=>{let _0x5402be=!0x1;for(const _0x59baac of _0x1462f0['model']['document']['differ']['getChanges']())if('insert'==_0x59baac['type'])for(const _0x2051ce of this['_suggestions']['values']()){if(_0x2051ce['isMultiRange']||!_0x2051ce['isInContent'])continue;const _0x39588b='formatBlock'==_0x2051ce['type'],_0x266889=this['_getAttributeKey'](_0x2051ce),_0x1145c8=_0x266889&&this['_isBlockAttribute'](_0x266889);if(!_0x39588b&&!_0x1145c8)continue;const _0x3569ba=_0x2051ce['getFirstRange']();if(_0x3569ba['start']['parent']!=_0x3569ba['end']['parent']&&!_0x3569ba['end']['isAtEnd']){const _0x2edd48=_0x1462f0['model']['createPositionAt'](_0x3569ba['start']['nodeAfter'],'end'),_0x3d8daa=_0x1462f0['model']['createRange'](_0x3569ba['start'],_0x2edd48);_0x984225['updateMarker'](_0x2051ce['getFirstMarker'](),{'range':_0x3d8daa}),_0x5402be=!0x0;}}return _0x5402be;}),_0x1462f0['model']['document']['registerPostFixer'](_0x4a0db0=>this['_processAttributeChanges'](_0x4a0db0)),_0x1462f0['model']['document']['registerPostFixer'](_0x43255c=>!_0x43255c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x43255c)),_0x1462f0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1462f0['model']['document']['on']('change:data',(_0x4dc469,_0x343601)=>{if(!_0x343601['isLocal']||_0x343601['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x86586f=_0x1462f0['model']['document']['differ']['getChanges']();if(0x0==_0x86586f['length'])return;const _0xbdc7c3=[],_0x3c9e8b=_0x86586f['filter'](_0x2b61c9=>'attribute'==_0x2b61c9['type']),_0x15da70=_0x86586f['filter'](_0x3c21af=>'insert'==_0x3c21af['type']&&'$text'!=_0x3c21af['name']);for(const _0x2f02a8 of _0x3c9e8b)this['_isRegisteredAttribute'](_0x2f02a8['attributeKey'])&&_0xbdc7c3['push']({'key':_0x2f02a8['attributeKey'],'newValue':_0x2f02a8['attributeNewValue'],'oldValue':_0x2f02a8['attributeOldValue'],'range':Zt(_0x2f02a8['range'],_0x1462f0['model'])});for(const _0x48fc6f of _0x15da70){if('rename'!=_0x48fc6f['action']&&'refresh'!=_0x48fc6f['action'])continue;const _0x11c740=tn(_0x48fc6f['position']['nodeAfter'],_0x1462f0['model']),_0x44a043=_0x48fc6f['before'];'rename'==_0x48fc6f['action']&&_0xbdc7c3['push']({'key':m,'newValue':_0x48fc6f['name'],'oldValue':_0x44a043['name'],'range':_0x11c740});for(const [_0x20af08,_0x30adc4]of _0x44a043['attributes']){if(!this['_isRegisteredAttribute'](_0x20af08))continue;const _0xed424c=_0x48fc6f['attributes']['get'](_0x20af08);_0x30adc4!==_0xed424c&&_0xbdc7c3['push']({'key':_0x20af08,'newValue':_0xed424c,'oldValue':_0x30adc4,'range':_0x11c740});}for(const [_0x54e056,_0x5b7de6]of _0x48fc6f['attributes'])this['_isRegisteredAttribute'](_0x54e056)&&(_0x44a043['attributes']['has'](_0x54e056)||_0xbdc7c3['push']({'key':_0x54e056,'newValue':_0x5b7de6,'oldValue':null,'range':_0x11c740}));}0x0!=_0xbdc7c3['length']&&_0x1462f0['model']['enqueueChange'](_0x343601,_0x5ad1d1=>{const _0x2aaf1a=_0xe7a85c();for(const {range:_0x2e2aba,key:_0x2e250d,oldValue:_0x13fc49,newValue:_0x5e4748}of _0xbdc7c3)this['markAttributeChange'](_0x2e2aba,_0x2e250d,_0x13fc49,_0x5e4748,{'groupId':_0x2aaf1a});this['_reduceExistingSuggestions'](_0x5ad1d1,_0xbdc7c3);});},{'priority':'lowest'}),_0x1462f0['model']['markers']['on']('update:suggestion',(_0x3466ee,_0x42ca3b,_0x2ae5ff)=>{if(null==_0x2ae5ff){const {id:_0x515dce}=this['_splitMarkerName'](_0x42ca3b['name']),_0x1abe9c=this['_suggestions']['get'](_0x515dce);_0x1abe9c&&_0x1abe9c['addMarkerName'](_0x42ca3b['name']);}}),_0x1462f0['model']['document']['on']('change:data',()=>{const _0x32036a=Array['from'](_0x1462f0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5152ae=>'suggestion'===this['_splitMarkerName'](_0x5152ae['name'])['group']);if(0x0===_0x32036a['length'])return;_0x32036a['sort']((_0x44936d,_0x380c3e)=>{const _0x59517b=_0x44936d['data']['oldRange'],_0x23f8e5=_0x380c3e['data']['oldRange'];return null===_0x59517b&&null===_0x23f8e5?0x0:null===_0x59517b&&null!==_0x23f8e5?-0x1:null!==_0x59517b&&null===_0x23f8e5?0x1:_0x59517b['start']['isBefore'](_0x23f8e5['start'])?-0x1:0x1;});const _0x17f970=new Set(),_0x1da163=new Set();for(const {name:_0x5f1891,data:_0x59bb16}of _0x32036a){const {id:_0x122412}=this['_splitMarkerName'](_0x5f1891);if(null===_0x59bb16['oldRange']){const _0x5a6e12=this['_handleNewSuggestionMarker'](_0x5f1891);_0x1da163['add'](_0x5a6e12);}else{const _0x1f47ba=this['_suggestions']['get'](_0x122412);null!==_0x59bb16['newRange']||_0x1f47ba['isInContent']?(_0x17f970['add'](_0x1f47ba['head']),_0x1da163['add'](_0x1f47ba)):this['_removeSuggestion'](_0x1f47ba);}}_0x1da163['size']>0x0&&this['_refreshSuggestionsChain'](_0x1da163);for(const _0x5e184d of _0x17f970)this['fire']('suggestionChanged',_0x5e184d);}),_0x1462f0['model']['on']('applyOperation',(_0x157884,_0x154a2c)=>{const _0xe6cfdd=_0x154a2c[0x0];if(!this['_suggestions']['size'])return;if(!_0xe6cfdd['isDocumentOperation'])return;if(_0xe6cfdd['batch']['isUndo']||!_0xe6cfdd['batch']['isLocal'])return;let _0x4f8c5b,_0x54594f;switch(_0xe6cfdd['type']){case'insert':_0x4f8c5b=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['position']),_0x54594f=_0x4f8c5b['getShiftedBy'](_0xe6cfdd['howMany']);break;case'split':_0x4f8c5b=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['splitPosition']),_0x54594f=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['moveTargetPosition']);break;case'move':_0x4f8c5b=_0x1462f0['model']['createPositionAt'](_0xe6cfdd['targetPosition']),_0x54594f=_0x4f8c5b['getShiftedBy'](_0xe6cfdd['howMany']);break;default:return;}const _0x223521=_0x1462f0['model']['createRange'](_0x4f8c5b,_0x54594f);_0x1462f0['model']['change'](()=>{for(const {suggestion:_0x523df0,meta:_0x7b68c4}of this['_findSuggestions'](_0x223521)){if(_0x523df0['isMultiRange'])continue;if('formatInline'==_0x523df0['type'])continue;const _0x296d88=this['_getAttributeKey'](_0x523df0);if(_0x296d88&&this['_isBlockAttribute'](_0x296d88)&&'split'!=_0xe6cfdd['type'])continue;const _0x513ccf=_0x523df0['data']&&_0x523df0['data']['multipleBlocks'];('formatBlock'!=_0x523df0['type']||'split'==_0xe6cfdd['type']&&!_0x513ccf)&&(_0x7b68c4['containsRangeInObject']||'insertion'==_0x523df0['type']&&_0x7b68c4['isOwn']||_0x523df0['getFirstRange']()['containsRange'](_0x223521)&&this['_breakSuggestionMarker'](_0x523df0,_0x4f8c5b,_0x54594f));}});},{'priority':'lowest'}),_0x1462f0['model']['on']('deleteContent',(_0x42bbe8,_0x286f1e)=>{const _0x4917cb=_0x286f1e[0x0],_0x248f03=_0x286f1e[0x1];if(_0x248f03&&_0x248f03['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4917cb['isCollapsed'])return;const _0x26f6d5=_0x1462f0['model']['schema'],{start:_0x4ca2be,end:_0x3ca557}=_0x4917cb['getFirstRange'](),_0x4348c9=_0x4ca2be['nodeAfter']&&_0x26f6d5['isLimit'](_0x4ca2be['nodeAfter'])?null:_0x26f6d5['getNearestSelectionRange'](_0x4ca2be,'forward'),_0x512931=_0x3ca557['nodeBefore']&&_0x26f6d5['isLimit'](_0x3ca557['nodeBefore'])?null:_0x26f6d5['getNearestSelectionRange'](_0x3ca557,'backward'),_0x309459=_0x1462f0['model']['createRange'](_0x4348c9?_0x4348c9['start']:_0x4ca2be,_0x512931?_0x512931['end']:_0x3ca557);_0x1462f0['model']['change'](_0x2a749f=>{this['markDeletion'](_0x309459);const _0x1151d5=_0x1462f0['model']['schema']['getNearestSelectionRange'](_0x309459['start']);_0x4917cb['is']('documentSelection')?_0x2a749f['setSelection'](_0x1151d5):_0x4917cb['setTo'](_0x1151d5);}),_0x42bbe8['stop']();},{'priority':_0x5382c2['normal']+0xa}),_0x1462f0['model']['on']('insertContent',(_0x581739,_0x54952a)=>{const _0x1d3a8a=_0x54952a[_0x54952a['length']-0x1];_0x1d3a8a&&_0x1d3a8a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1462f0['model']['change'](()=>{let _0x4d8a3f=_0x1462f0['model']['insertContent'](_0x54952a[0x0],_0x54952a[0x1],_0x54952a[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d8a3f)return;_0x581739['return']=_0x4d8a3f['clone']();const _0x20e3bc=_0x4d8a3f['end']['nodeBefore'],_0x3d3a9f=_0x1462f0['model']['schema'];_0x20e3bc&&_0x3d3a9f['isBlock'](_0x20e3bc)&&!_0x3d3a9f['isObject'](_0x20e3bc)&&(_0x4d8a3f=_0x1462f0['model']['createRange'](_0x4d8a3f['start'],_0x1462f0['model']['createPositionAt'](_0x20e3bc,'end'))),this['markInsertion'](_0x4d8a3f);}),_0x581739['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5d2bbb=new v(_0x1462f0,this['_suggestions']);_0x1462f0['commands']['add']('acceptSuggestion',_0x5d2bbb),this['enableCommand']('acceptSuggestion');const _0x1d0f0a=new D(_0x1462f0,this['_suggestions']);_0x1462f0['commands']['add']('discardSuggestion',_0x1d0f0a),this['enableCommand']('discardSuggestion'),_0x1462f0['commands']['add']('acceptAllSuggestions',new B(_0x1462f0,_0x5d2bbb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1462f0['commands']['add']('discardAllSuggestions',new B(_0x1462f0,_0x1d0f0a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1462f0['commands']['add']('acceptSelectedSuggestions',new O(_0x1462f0,_0x5d2bbb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1462f0['commands']['add']('discardSelectedSuggestions',new O(_0x1462f0,_0x1d0f0a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x57ea0e=_0x1462f0['plugins']['get']('CommentsRepository');this['listenTo'](_0x57ea0e,'addComment',(_0x4e198b,{threadId:_0x1e7376})=>{const _0x285561=this['_suggestions']['get'](_0x1e7376);_0x285561&&_0x285561['commentThread']&&0x1===_0x285561['commentThread']['length']&&this['_updateSuggestionData'](_0x1e7376,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x57ea0e,'removeComment',(_0x17fbfc,{threadId:_0xb3c06b})=>{const _0xdb7dda=this['_suggestions']['get'](_0xb3c06b);_0xdb7dda&&_0xdb7dda['commentThread']&&!_0xdb7dda['commentThread']['length']&&this['_updateSuggestionData'](_0xb3c06b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x440a53){const _0x1a4406=_0x1d8612([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]),_0x29c5d6=0x3d8d0df,_0x1a58f7=0x3dfaa97^_0x29c5d6,_0x2117eb=window[_0x1d8612([0x44,0x61,0x74,0x65])][_0x1d8612([0x6e,0x6f,0x77])](),_0x5058c=_0x440a53[_0x1d8612([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2667a2=new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530564=>{_0x5058c[_0x1d8612([0x6f,0x6e,0x63,0x65])](_0x1d8612([0x72,0x65,0x61,0x64,0x79]),_0x530564);}),_0x6201e7={[_0x1d8612([0x6b,0x74,0x79])]:_0x1d8612([0x45,0x43]),[_0x1d8612([0x75,0x73,0x65])]:_0x1d8612([0x73,0x69,0x67]),[_0x1d8612([0x63,0x72,0x76])]:_0x1d8612([0x50,0x2d,0x32,0x35,0x36]),[_0x1d8612([0x78])]:_0x1d8612([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]),[_0x1d8612([0x79])]:_0x1d8612([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]),[_0x1d8612([0x61,0x6c,0x67])]:_0x1d8612([0x45,0x53,0x32,0x35,0x36])},_0x5dd792=_0x5058c[_0x1d8612([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d8612([0x67,0x65,0x74])](_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x182649(){let _0x3078ae,_0x473f39=null,_0x1e12b4=null;try{if(_0x5dd792==_0x1d8612([0x47,0x50,0x4c]))return _0x1d8612([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3078ae=_0x4c68b0(),!_0x3078ae)return _0x1d8612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3078ae[_0x1d8612([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e12b4=_0xe6c5a9(_0x3078ae[_0x1d8612([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3078ae[_0x1d8612([0x6a,0x74,0x69])])),await _0x3d4a1b()?_0x11b2d8()?_0x589213()?_0x1d8612([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x550188()?(_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d8612([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x473f39=_0x24cb46(_0x1d8612([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d8612([0x74,0x72,0x69,0x61,0x6c])&&(_0x473f39=_0x24cb46(_0x1d8612([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16f02e()):_0x1d8612([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d8612([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d8612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d8612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x589213(){const _0xfb5c70=[_0x1d8612([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d8612([0x74,0x72,0x69,0x61,0x6c])][_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2117eb/0x3e8:0xe10*_0x1a58f7;return _0x3078ae[_0x1d8612([0x65,0x78,0x70])]<_0xfb5c70;}function _0x11b2d8(){const _0x1065c6=_0x3078ae[_0x1d8612([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1065c6)return!0x1;if(_0x1065c6[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x2a])))return!0x0;if(_0x1065c6[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x54,0x43])))return!0x0;if(_0x1065c6[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x52,0x54,0x43]))){if(_0x1cdca6())return!0x0;if(_0x2f6149()||_0x505f7d())return!0x0;}return!0x1;}function _0x550188(){const _0x15fcc9=_0x3078ae[_0x1d8612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15fcc9||0x0==_0x15fcc9[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c1fbc}=new URL(window[_0x1d8612([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15fcc9[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c1fbc))return!0x0;const _0x1fd8c3=_0x5c1fbc[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e]));return _0x15fcc9[_0x1d8612([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48d20c=>_0x48d20c[_0x1d8612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8612([0x2a])))[_0x1d8612([0x6d,0x61,0x70])](_0x1f0a32=>_0x1f0a32[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e])))[_0x1d8612([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19a8c0=>_0x19a8c0[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1fd8c3[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d8612([0x6d,0x61,0x70])](_0x131246=>Array(_0x1fd8c3[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x131246[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d8612([0x66,0x69,0x6c,0x6c])](_0x131246[0x0]===_0x1d8612([0x2a])?_0x1d8612([0x2a]):'')[_0x1d8612([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x131246))[_0x1d8612([0x73,0x6f,0x6d,0x65])](_0x4be41a=>_0x1fd8c3[_0x1d8612([0x65,0x76,0x65,0x72,0x79])]((_0x1ca823,_0x553d68)=>_0x4be41a[_0x553d68]===_0x1ca823||_0x4be41a[_0x553d68]===_0x1d8612([0x2a])));}function _0x16f02e(){return _0x473f39&&_0x1e12b4?new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2018d1,_0x2d1799)=>{_0x473f39[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x2018d1,_0x2d1799),_0x1e12b4[_0x1d8612([0x74,0x68,0x65,0x6e])](_0xfaebce=>{_0xfaebce!=_0x1d8612([0x56,0x61,0x6c,0x69,0x64])&&_0x2018d1(_0xfaebce);},_0x2d1799);}):_0x473f39||_0x1e12b4||_0x1d8612([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe6c5a9(_0x513a1d,_0x3c1ca2){return new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d78f8=>{if(_0x5b7bcb())return _0x3d78f8(_0x1d8612([0x56,0x61,0x6c,0x69,0x64]));_0x55cc67(),_0x5058c[_0x1d8612([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d8612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d07fd=!0x1;const _0x1ca63e=_0xe7a85c();function _0x49229e(_0x373308){return!!_0x373308&&(typeof _0x373308===_0x1d8612([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x373308===_0x1d8612([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x373308[_0x1d8612([0x74,0x68,0x65,0x6e])]===_0x1d8612([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x373308[_0x1d8612([0x63,0x61,0x74,0x63,0x68])]===_0x1d8612([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x436b4f(_0x2991a3){_0xb5f632(_0x2991a3)[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x1d9552=>{if(!_0x1d9552||_0x1d9552[_0x1d8612([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d8612([0x6f,0x6b]))return _0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16a9a1(_0x5dd064(_0x1ca63e+_0x3c1ca2))!=_0x1d9552[_0x1d8612([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d8612([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x323223=>(_0x45b5a0(),_0x323223),()=>{const _0x2478a4=_0x498089();return null==_0x2478a4?(_0x45b5a0(),_0x1d8612([0x56,0x61,0x6c,0x69,0x64])):_0x1d8612(_0x2117eb-_0x2478a4>(0x27d454df^_0x29c5d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x3d78f8)[_0x1d8612([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d78f8(_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x560fd1=0x3ee3e5f^_0x29c5d6;function _0x45b5a0(){const _0x3cb2dc=_0x1d8612([0x6c,0x6c,0x63,0x74,0x2d])+_0x16a9a1(_0x5dd064(_0x513a1d)),_0x23d355=_0x2d212a(_0x16a9a1(window[_0x1d8612([0x4d,0x61,0x74,0x68])][_0x1d8612([0x63,0x65,0x69,0x6c])](_0x2117eb/_0x560fd1)));window[_0x1d8612([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d8612([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cb2dc,_0x23d355);}function _0x498089(){const _0x35e5a3=_0x1d8612([0x6c,0x6c,0x63,0x74,0x2d])+_0x16a9a1(_0x5dd064(_0x513a1d)),_0x36dd11=window[_0x1d8612([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d8612([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35e5a3);return _0x36dd11?window[_0x1d8612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d212a(_0x36dd11),0x10)*_0x560fd1:null;}function _0xb5f632(_0x11e2fc){return new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15af15,_0x2fccc4)=>{_0x11e2fc[_0x1d8612([0x74,0x68,0x65,0x6e])](_0x15af15,_0x2fccc4),window[_0x1d8612([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fccc4,0x3d9041f^_0x29c5d6);});}}_0x5058c[_0x1d8612([0x6f,0x6e])](_0x1d8612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12e45f,_0x399ba4)=>{if(_0x399ba4[0x0]!=_0x513a1d)return _0x3d78f8(_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x399ba4[0x1]={..._0x399ba4[0x1],[_0x1d8612([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ca63e};},{[_0x1d8612([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d8612([0x68,0x69,0x67,0x68])}),_0x5058c[_0x1d8612([0x6f,0x6e])](_0x1d8612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bd9bd=>{_0x49229e(_0x5bd9bd[_0x1d8612([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d07fd=!0x0,_0x436b4f(_0x5bd9bd[_0x1d8612([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d8612([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d8612([0x6c,0x6f,0x77])}),_0x2667a2[_0x1d8612([0x74,0x68,0x65,0x6e])](()=>{_0x3d07fd||_0x3d78f8(_0x1d8612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b7bcb(){return _0x5058c[_0x1d8612([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d8612([0x76,0x69,0x65,0x77])][_0x1d8612([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d8612([0x61,0x75,0x74,0x6f]);}function _0x55cc67(){_0x5058c[_0x1d8612([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d8612([0x76,0x69,0x65,0x77])][_0x1d8612([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d8612([0x61,0x75,0x74,0x6f]);}}function _0x24cb46(_0x399daa){const _0x4ae4cd=[new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41cf19=>setTimeout(_0x41cf19,0x3d1ee13^_0x29c5d6)),_0x2667a2[_0x1d8612([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x399057=>{let _0x3b0a4a=0x0;_0x5058c[_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d8612([0x6f,0x6e])](_0x1d8612([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57f127,_0x51fa7f)=>{_0x51fa7f[0x0][_0x1d8612([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b0a4a++,_0x3b0a4a==(0x3d8d127^_0x29c5d6)&&(_0x399057(),_0x57f127[_0x1d8612([0x6f,0x66,0x66])]());});}))];return window[_0x1d8612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d8612([0x72,0x61,0x63,0x65])](_0x4ae4cd)[_0x1d8612([0x74,0x68,0x65,0x6e])](()=>_0x399daa);}async function _0x3e8f26(){await _0x2667a2,_0x5058c[_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d8612([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x406e82,_0x5058c[_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d8612([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x406e82,_0x5058c[_0x1d8612([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d8612([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1cdca6(){return _0x1c3000(_0x1d8612([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x464ca5(_0x1d8612([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d8612([0x73,0x74,0x61,0x74,0x65])]==_0x1d8612([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f6149(){return _0x1c3000(_0x1d8612([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 _0x505f7d(){return _0x1c3000(_0x1d8612([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f4a1a(_0xa2efe4){const _0x38355c=_0x5726d5();_0x5058c[_0x38355c]=_0x1d8612([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa2efe4,_0xa2efe4!=_0x1d8612([0x56,0x61,0x6c,0x69,0x64])&&_0x3e8f26();}function _0x5726d5(){const _0x5b5f11=window[_0x1d8612([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d8612([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d8612([0x6e,0x6f,0x77])]())[_0x1d8612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d8612([0x2e]),'');let _0x594f59=_0x1d8612([0x52]);for(let _0x32ef50=0x0;_0x32ef50<_0x5b5f11[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32ef50+=0x2){let _0xf2cb15=window[_0x1d8612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b5f11[_0x1d8612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32ef50,_0x32ef50+0x2));_0xf2cb15>=_0x1a4406[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf2cb15-=_0x1a4406[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x594f59+=_0x1a4406[_0xf2cb15];}return _0x594f59;}function _0x4c68b0(){const _0x10e457=_0x5dd792[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e]));if(0x3!=_0x10e457[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x384456(_0x10e457[0x1]);function _0x384456(_0x2547bb){const _0x51f6ce=_0xf8c2a3(_0x2547bb);return _0x51f6ce&&_0x501412()?_0x51f6ce:null;function _0x501412(){const _0x13f00c=_0x51f6ce[_0x1d8612([0x6a,0x74,0x69])],_0x1e490d=window[_0x1d8612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f00c[_0x1d8612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13f00c[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x339c32={..._0x51f6ce,[_0x1d8612([0x6a,0x74,0x69])]:_0x13f00c[_0x1d8612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13f00c[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x339c32[_0x1d8612([0x76,0x63])],_0x5dd064(_0x339c32)==_0x1e490d;}}}async function _0x3d4a1b(){let _0x3ecf08=!0x0;try{const _0x4dfb43=_0x5dd792[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])](_0x1d8612([0x2e])),[_0x3d0d43,_0x60aedc,_0x269145]=_0x4dfb43;return _0x46a237(_0x3d0d43),await _0x6b2aba(_0x3d0d43,_0x60aedc,_0x269145),_0x3ecf08;}catch{return!0x1;}function _0x46a237(_0x1cdc95){const _0xdde555=_0xf8c2a3(_0x1cdc95);_0xdde555&&_0xdde555[_0x1d8612([0x61,0x6c,0x67])]==_0x1d8612([0x45,0x53,0x32,0x35,0x36])||(_0x3ecf08=!0x1);}async function _0x6b2aba(_0x20e1b8,_0x26ef16,_0x2c50f2){const _0x3607bf=window[_0x1d8612([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d8612([0x66,0x72,0x6f,0x6d])](_0x54bb93(_0x2c50f2),_0x12b7c0=>_0x12b7c0[_0x1d8612([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x532a78=new window[(_0x1d8612([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d8612([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20e1b8+_0x1d8612([0x2e])+_0x26ef16),_0x52ba9a=window[_0x1d8612([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d8612([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x52ba9a)return;const _0x139401=await _0x52ba9a[_0x1d8612([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d8612([0x6a,0x77,0x6b]),_0x6201e7,{[_0x1d8612([0x6e,0x61,0x6d,0x65])]:_0x1d8612([0x45,0x43,0x44,0x53,0x41]),[_0x1d8612([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d8612([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d8612([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x52ba9a[_0x1d8612([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d8612([0x6e,0x61,0x6d,0x65])]:_0x1d8612([0x45,0x43,0x44,0x53,0x41]),[_0x1d8612([0x68,0x61,0x73,0x68])]:{[_0x1d8612([0x6e,0x61,0x6d,0x65])]:_0x1d8612([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x139401,_0x3607bf,_0x532a78)||(_0x3ecf08=!0x1);}}function _0xf8c2a3(_0x53dc5d){return _0x53dc5d[_0x1d8612([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d8612([0x65,0x79]))?JSON[_0x1d8612([0x70,0x61,0x72,0x73,0x65])](_0x54bb93(_0x53dc5d)):null;}function _0x54bb93(_0x3555ea){return window[_0x1d8612([0x61,0x74,0x6f,0x62])](_0x3555ea[_0x1d8612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d8612([0x2b]))[_0x1d8612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d8612([0x2f])));}function _0x5dd064(_0x5d24cc){let _0x497f07=0x1505;function _0x2c2396(_0x16141c){for(let _0x43c358=0x0;_0x43c358<_0x16141c[_0x1d8612([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43c358++){const _0x1eee04=_0x16141c[_0x1d8612([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43c358);_0x497f07=(_0x497f07<<0x5)+_0x497f07+_0x1eee04,_0x497f07&=_0x497f07;}}function _0x1372ad(_0x2f4691){Array[_0x1d8612([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f4691)?_0x2f4691[_0x1d8612([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1372ad):_0x2f4691&&typeof _0x2f4691==_0x1d8612([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d8612([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f4691)[_0x1d8612([0x73,0x6f,0x72,0x74])]()[_0x1d8612([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fbe09,_0x37fa36])=>{_0x2c2396(_0x4fbe09),_0x1372ad(_0x37fa36);}):_0x2c2396(window[_0x1d8612([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f4691));}return _0x1372ad(_0x5d24cc),_0x497f07>>>0x0;}function _0x16a9a1(_0x2963ac){return _0x2963ac[_0x1d8612([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d8612([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d8612([0x30]));}function _0x2d212a(_0x4a495c){return _0x4a495c[_0x1d8612([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d8612([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d8612([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c3000(_0x433f5f){return _0x5058c[_0x1d8612([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d8612([0x68,0x61,0x73])](_0x433f5f);}function _0x464ca5(_0x1b823d){return _0x5058c[_0x1d8612([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d8612([0x67,0x65,0x74])](_0x1b823d);}function _0x406e82(){}function _0x1d8612(_0x5a94f4){return _0x5a94f4['map'](_0x1c3771=>String['fromCharCode'](_0x1c3771))['join']('');}_0x2f4a1a(await _0x182649());}(this);}set['adapter'](_0xf590ac){if(this['_adapter'])throw new _0x4bd1ef('track-changes-adapter-already-set',this);this['_adapter']=_0xf590ac;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3765c1=!0x1,toJSON:_0x5b7a8e=!0x1}={}){const _0x48017e=[];for(const _0x39c328 of this['_suggestions']['values']())_0x3765c1&&!_0x39c328['isInContent']||_0x48017e['push'](_0x39c328);return _0x5b7a8e?_0x48017e['map'](_0x13ee20=>_0x13ee20['toJSON']()):_0x48017e;}['getSuggestion'](_0x25d22b){const _0x33cff5=this['_suggestions']['get'](_0x25d22b);if(!_0x33cff5)throw new _0x4bd1ef('track-changes-suggestion-not-found',this);return _0x33cff5;}['hasSuggestion'](_0x326397){return this['_suggestions']['has'](_0x326397);}['addSuggestionData'](_0x5af041){const {authorId:_0x5377c3,id:_0x4a0aa0,originalSuggestionId:_0x93c630,attributes:_0x24e775}=_0x5af041,[_0x3a87ad,_0x64cf10]=_0x5af041['type']['split'](':'),_0x4f457b=this['_suggestions']['get'](_0x4a0aa0)||this['_createSuggestion'](_0x3a87ad,_0x64cf10,_0x4a0aa0,_0x5377c3,_0x24e775,_0x93c630);if(this['_addThreadToSuggestion'](_0x4f457b),this['_checkSuggestionCorrectness'](_0x4f457b,_0x3a87ad,_0x64cf10||null,_0x5377c3),_0x4f457b['createdAt']=_0x5af041['createdAt'],_0x4f457b['_isDataLoaded']=!0x0,_0x24e775&&_0x24e775['@external']){const _0x53a491=_0x24e775['@external'],_0x23e9f4=this['_getExternalAuthor'](_0x53a491['authorName']);_0x4f457b['authoredAt']=_0x53a491['createdAt'],_0x4f457b['author']=_0x23e9f4,_0x4f457b['isExternal']=!0x0;}else _0x4f457b['authoredAt']=_0x5af041['createdAt'];switch(_0x5af041['data']&&(_0x4f457b['data']=_0x5af041['data']),_0x5af041['attributes']&&(_0x4f457b['attributes']=_0x5af041['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4f457b['_saved']=!0x0),this['_suggestionState']['get'](_0x4f457b)){case'notReady':this['_suggestionState']['set'](_0x4f457b,'dataReady');break;case'markerReady':_0x4f457b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4f457b])),this['_refreshSuggestionsChain'](new Set([_0x4f457b])),this['_suggestionState']['set'](_0x4f457b,'ready'),this['fire']('suggestionLoaded',_0x4f457b)):this['_suggestionState']['set'](_0x4f457b,'removed');}return _0x4f457b;}['acceptSuggestion'](_0x53c58e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x491bb5 of _0x53c58e['getAllAdjacentSuggestions']())_0x491bb5['accept']();});});}['discardSuggestion'](_0x347d79){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x260b7f of _0x347d79['getAllAdjacentSuggestions']())_0x260b7f['discard']();});});}['enableCommand'](_0xf8b13a,_0x28a5d8){const _0x58eaa2=this['editor']['commands']['get'](_0xf8b13a);if(!_0x58eaa2)throw new _0x4bd1ef('track-changes-command-not-found',this,{'commandName':_0xf8b13a});if(this['_enabledCommands']['has'](_0x58eaa2))throw new _0x4bd1ef('track-changes-enable-command-twice',this,{'commandName':_0xf8b13a});this['_enabledCommands']['add'](_0x58eaa2),_0x28a5d8&&_0x58eaa2['on']('execute',(_0x462564,_0x4abe7a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4abe7a['length']>0x0&&_0x4abe7a[_0x4abe7a['length']-0x1]&&_0x4abe7a[_0x4abe7a['length']-0x1]['forceDefaultExecution']?_0x4abe7a['pop']():(_0x462564['return']=_0x28a5d8((..._0x2c4b16)=>_0x58eaa2['execute'](..._0x2c4b16,{'forceDefaultExecution':!0x0}),..._0x4abe7a),_0x462564['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1bcf10){let _0xc59092,_0x257466;const _0xcca32b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc59092=_0x1bcf10();}catch(_0x565a41){_0x257466=_0x565a41;}return _0xcca32b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x257466&&_0x4bd1ef['rethrowUnexpectedError'](_0x257466,this),_0xc59092;}['markInsertion'](_0x3c9a88,_0x297ed8=null,_0x494982={}){if(_0x3c9a88['isCollapsed'])return null;const _0x4dcf81=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x494982['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2bae81,meta:_0x526851}of this['_findSuggestions'](_0x3c9a88,'insertion'))if(_0x526851['isOwn']){if(!_0x526851['isNextTo']){if(_0x526851['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2bae81,_0x494982))continue;return _0x2bae81;}if(sn(_0x2bae81,_0x494982))return _0x2bae81;this['_breakSuggestionMarker'](_0x2bae81,_0x3c9a88['start'],_0x3c9a88['end']);break;}if(_0x297ed8==_0x2bae81['subType']&&sn(_0x2bae81,_0x494982)){const _0x20a2f9=_0x2bae81['getFirstRange']();return _0x20a2f9['start']['isEqual'](_0x3c9a88['end'])?this['_setSuggestionRange'](_0x2bae81,this['_model']['createRange'](_0x3c9a88['start'],_0x20a2f9['end'])):this['_setSuggestionRange'](_0x2bae81,this['_model']['createRange'](_0x20a2f9['start'],_0x3c9a88['end'])),_0x2bae81;}}const _0x590d28=_0xe7a85c(),_0x8a791b=_0x4dcf81['id'],_0x1079a3=_0x297ed8?'insertion:'+_0x297ed8:'insertion',_0x85b89c=this['_setSuggestionData']({'id':_0x590d28,'type':_0x1079a3,'createdAt':new Date(),'authorId':_0x8a791b,'attributes':_0x494982});return this['_addSuggestionMarker'](_0x1079a3,_0x590d28,_0x8a791b,_0x3c9a88),_0x85b89c;}['markMultiRangeInsertion'](_0x5861d4,_0x544c84='multi',_0x47d62f={}){const _0x1b5902=this['editor']['plugins']['get']('Users')['me'],_0x330557=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x544c84,'join');this['_trackingSessionId']&&(_0x47d62f['trackingSessionId']=this['_trackingSessionId']);for(const _0x15129d of this['getSuggestions']())if(_0x15129d['author']['id']==_0x1b5902['id']&&'insertion'==_0x15129d['type']&&_0x15129d['subType']==_0x544c84&&sn(_0x15129d,_0x47d62f)&&(_0x330557(_0x15129d['getRanges'](),_0x5861d4)||_0x330557(_0x5861d4,_0x15129d['getRanges']()))){for(const _0x4844dc of _0x5861d4)_0x15129d['addRange'](_0x4844dc);return _0x15129d;}for(const {suggestion:_0x3b4ab5,meta:_0x570645}of this['_findSuggestions'](_0x5861d4,'insertion')){if(!_0x570645['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x570645['containsRangeInObject'])continue;if(!sn(_0x3b4ab5,_0x47d62f))continue;let _0x22ecfd=!0x0;for(const _0x4d4b6f of _0x3b4ab5['getRanges']())for(const _0x1e86a2 of _0x5861d4)if(!_0x4d4b6f['containsRange'](_0x1e86a2)){_0x22ecfd=!0x1;break;}if(_0x22ecfd)return _0x3b4ab5;}const _0x1340a0=_0xe7a85c(),_0x3dec18=_0x1b5902['id'],_0x85760f='insertion:'+_0x544c84,_0x5beb14=this['_setSuggestionData']({'id':_0x1340a0,'type':_0x85760f,'createdAt':new Date(),'authorId':_0x3dec18,'attributes':_0x47d62f});for(const _0x11d4ec of _0x5861d4)this['_addSuggestionMarker'](_0x85760f,_0x1340a0,_0x3dec18,_0x11d4ec,x['getMultiRangeId']());return _0x5beb14;}['markInlineFormat'](_0x5c99ce,_0x19b969,_0x1f7862=null,_0x45da37={}){if(_0x1f7862=_0x1f7862||Ht(_0x19b969),_0x5c99ce['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x45da37['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c65fd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f7862,'accept');return this['forceDefaultExecution'](()=>_0x2c65fd([_0x5c99ce],_0x19b969,_0x45da37)),null;}const _0x46d06b=this['editor']['plugins']['get']('Users')['me'],_0x3250e0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x224e15,meta:_0x2a64e2}of this['_findSuggestions'](_0x5c99ce,'insertion'))_0x2a64e2['isOwn']&&!_0x2a64e2['isInsideObject']&&_0x3250e0['push'](..._0x224e15['getRanges']());}const _0xc3efd9=function(_0x55d882,_0x38223e){const _0xc8f9fa=[];for(const _0x8d3ba8 of _0x38223e){const _0x548f85=_0x55d882['getIntersection'](_0x8d3ba8);_0x548f85&&_0xc8f9fa['push'](_0x548f85);}return _0xc8f9fa;}(_0x5c99ce,_0x3250e0),_0x308137=function(_0x5c66dc,_0x41b768){const _0x4c8438=[_0x5c66dc];for(const _0x5cf2a2 of _0x41b768){let _0x5505f2=0x0;for(;_0x5505f2<_0x4c8438['length'];){const _0x4407b6=_0x4c8438[_0x5505f2]['getDifference'](_0x5cf2a2);_0x4c8438['splice'](_0x5505f2,0x1,..._0x4407b6),_0x5505f2+=_0x4407b6['length'];}}return _0x4c8438;}(_0x5c99ce,_0x3250e0);_0xc3efd9['length']&&this['_model']['change'](()=>{for(const _0x58ea92 of _0xc3efd9){const _0x41b9c5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f7862,'accept');this['forceDefaultExecution'](()=>_0x41b9c5([_0x58ea92],_0x19b969,_0x45da37));}});for(const _0x191c1b of _0x308137){let _0x5a89fc=null,_0x51f66b=_0x191c1b['start'],_0x121564=_0x191c1b['end'];for(const {suggestion:_0x2b3ca0,meta:_0x58dfc6}of this['_findSuggestions'](_0x191c1b,'formatInline')){if(!_0x58dfc6['isOwn'])continue;if(_0x2b3ca0['subType']!=_0x1f7862)continue;if(!sn(_0x2b3ca0,_0x45da37))continue;const _0x56b5f3=_0x2b3ca0['getFirstRange']();if(_0x56b5f3['containsRange'](_0x191c1b,!0x0))return null;_0x51f66b=_0x51f66b['isBefore'](_0x56b5f3['start'])?_0x51f66b:_0x56b5f3['start'],_0x121564=_0x121564['isAfter'](_0x56b5f3['end'])?_0x121564:_0x56b5f3['end'],_0x5a89fc?_0x56b5f3['start']['isBefore'](_0x5a89fc['getFirstRange']()['start'])?(_0x5a89fc['removeMarkers'](),_0x5a89fc=_0x2b3ca0):_0x2b3ca0['removeMarkers']():_0x5a89fc=_0x2b3ca0;}const _0xb9a4c5=this['_model']['createRange'](_0x51f66b,_0x121564);if(_0x5a89fc)this['_setSuggestionRange'](_0x5a89fc,_0xb9a4c5);else{const _0x10fced=_0xe7a85c(),_0x568178=_0x46d06b['id'];this['_setSuggestionData']({'id':_0x10fced,'type':'formatInline:'+_0x1f7862,'data':_0x19b969,'createdAt':new Date(),'authorId':_0x568178,'attributes':_0x45da37}),this['_addSuggestionMarker']('formatInline:'+_0x1f7862,_0x10fced,_0x568178,_0xb9a4c5);}}return null;}['markBlockFormat'](_0xc30d8c,_0x42c316,_0x4ca61c=[],_0x2f1a69=null,_0x4bd971={}){_0x42c316['formatGroupId']||(_0x42c316['formatGroupId']=_0x42c316['commandName']),_0x42c316['multipleBlocks']=_0xc30d8c['is']('range'),_0x2f1a69=_0x2f1a69||Ht(_0x42c316);const _0x557ee9=_0x4ca61c['map'](_0x39e960=>tn(_0x39e960,this['_model'])),_0x2b7625=_0xc30d8c['is']('range')?_0xc30d8c:tn(_0xc30d8c,this['_model']);if(this['_trackingSessionId']&&(_0x4bd971['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x424a90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f1a69,'accept');return this['forceDefaultExecution'](()=>_0x424a90([_0x2b7625],_0x42c316,_0x4bd971)),null;}_0x557ee9['push'](_0x2b7625);let _0x37d8bd=!0x0;for(const _0x40d864 of _0x557ee9)if(!this['_rangeIsInLocalUserInsertion'](_0x40d864)){_0x37d8bd=!0x1;break;}if(_0x37d8bd&&'always'!==this['_trackFormatChanges']){const _0x51b9da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f1a69,'accept');return this['forceDefaultExecution'](()=>_0x51b9da([_0x2b7625],_0x42c316,_0x4bd971)),null;}let _0x3f11fe=null,_0x5f02ca=_0x2b7625['start'],_0x5cb552=_0x2b7625['end'];for(const {suggestion:_0x431244,meta:_0xe67116}of this['_findSuggestions'](_0x2b7625,'formatBlock')){if(!_0xe67116['isOwn'])continue;if(_0xe67116['isNextTo']||_0xe67116['containsRangeInObject']||_0xe67116['isInsideObject'])continue;if(_0x431244['data']['formatGroupId']!=_0x42c316['formatGroupId'])continue;if(!sn(_0x431244,_0x4bd971))continue;const _0x414844=_0x431244['getFirstRange']();if(_0x431244['subType']==_0x2f1a69){if(_0x414844['containsRange'](_0x2b7625,!0x0))return null;_0x5f02ca=_0x5f02ca['isBefore'](_0x414844['start'])?_0x5f02ca:_0x414844['start'],_0x5cb552=_0x5cb552['isAfter'](_0x414844['end'])?_0x5cb552:_0x414844['end'],_0x3f11fe?_0x414844['start']['isBefore'](_0x3f11fe['getFirstRange']()['start'])?(_0x3f11fe['removeMarkers'](),_0x3f11fe=_0x431244):_0x431244['removeMarkers']():_0x3f11fe=_0x431244;}else{const _0x3a1f54=_0x2b7625['getIntersection'](_0x414844);this['_cutOutSuggestionMarker'](_0x431244,_0x3a1f54);}}const _0x48a881=this['editor']['plugins']['get']('Users')['me'],_0x5f4c03=_0xe7a85c(),_0x2bde32=_0x48a881['id'];if(_0x3f11fe)return this['_setSuggestionRange'](_0x3f11fe,this['_model']['createRange'](_0x5f02ca,_0x5cb552)),_0x3f11fe;{const _0x2da0f1=this['_setSuggestionData']({'id':_0x5f4c03,'type':'formatBlock:'+_0x2f1a69,'data':_0x42c316,'createdAt':new Date(),'authorId':_0x2bde32,'attributes':_0x4bd971});return this['_addSuggestionMarker']('formatBlock:'+_0x2f1a69,_0x5f4c03,_0x2bde32,this['_model']['createRange'](_0x5f02ca,_0x5cb552)),_0x2da0f1;}}['markMultiRangeBlockFormat'](_0x1cce3c,_0x4890c1,_0x4358ae=[],_0x44cb37=null,_0x164b76={}){_0x4890c1['formatGroupId']||(_0x4890c1['formatGroupId']=_0x4890c1['commandName']);const _0x138b52=_0x1cce3c[0x0];_0x4890c1['multipleBlocks']=_0x138b52['is']('range'),_0x44cb37=_0x44cb37||Ht(_0x4890c1);const _0x53661b=_0x4358ae['map'](_0x847573=>tn(_0x847573,this['_model'])),_0x44fab9=_0x138b52['is']('range')?_0x1cce3c:_0x1cce3c['map'](_0x12583c=>tn(_0x12583c,this['_model']));if(this['_trackingSessionId']&&(_0x164b76['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x56a426=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44cb37,'accept');return this['forceDefaultExecution'](()=>_0x56a426(_0x44fab9,_0x4890c1,_0x164b76)),null;}_0x53661b['push'](..._0x44fab9);let _0x5682f0=!0x0;for(const _0x231247 of _0x53661b)if(!this['_rangeIsInLocalUserInsertion'](_0x231247)){_0x5682f0=!0x1;break;}if(_0x5682f0&&'always'!==this['_trackFormatChanges']){const _0x2580fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44cb37,'accept');return this['forceDefaultExecution'](()=>_0x2580fe(_0x44fab9,_0x4890c1,_0x164b76)),null;}const _0x31bf49=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ff265 of this['getSuggestions']()){const _0xb42474=_0x4ff265['data'];if(_0x4ff265['author']['id']!=_0x31bf49['id'])continue;if('formatBlock'!=_0x4ff265['type']||_0xb42474['formatGroupId']!=_0x4890c1['formatGroupId'])continue;if(!sn(_0x4ff265,_0x164b76))continue;const _0x468ea6=_0x4ff265['subType']==_0x44cb37;for(let _0x2e29ca=0x0;_0x2e29ca<_0x44fab9['length'];_0x2e29ca++){const _0x12ad5d=_0x44fab9[_0x2e29ca];for(const _0x3f3815 of _0x4ff265['getMarkers']()){const _0x316956=_0x3f3815['getRange']();if(_0x12ad5d['isEqual'](_0x316956)){_0x468ea6?(_0x44fab9['splice'](_0x2e29ca,0x1),_0x2e29ca--):_0x4ff265['removeMarker'](_0x3f3815['name']);break;}}}}if(0x0==_0x44fab9['length'])return null;const _0x1a51c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44cb37,'join');for(const _0x2f4f99 of this['getSuggestions']()){const _0x4e729f=_0x2f4f99['data'];if(_0x2f4f99['author']['id']==_0x31bf49['id']&&('formatBlock'==_0x2f4f99['type']&&_0x4e729f['formatGroupId']==_0x4890c1['formatGroupId']&&_0x2f4f99['subType']==_0x44cb37&&sn(_0x2f4f99,_0x164b76)&&(_0x1a51c6(_0x2f4f99['getRanges'](),_0x44fab9)||_0x1a51c6(_0x44fab9,_0x2f4f99['getRanges']())))){for(const _0x2dd934 of _0x44fab9)_0x2f4f99['addRange'](_0x2dd934);return _0x2f4f99;}}const _0xfd40d6=_0xe7a85c(),_0x1b8184=_0x31bf49['id'],_0x3137cf='formatBlock:'+_0x44cb37,_0x5084c3=this['_setSuggestionData']({'id':_0xfd40d6,'type':_0x3137cf,'data':_0x4890c1,'createdAt':new Date(),'authorId':_0x1b8184,'attributes':_0x164b76});for(const _0x2721a5 of _0x44fab9)this['_addSuggestionMarker'](_0x3137cf,_0xfd40d6,_0x1b8184,_0x2721a5,x['getMultiRangeId']());return _0x5084c3;}['markDeletion'](_0x4ca16e,_0xa0a3b3=null,_0x4e6405={}){if(_0x4ca16e['isCollapsed'])return null;const _0x548cfd=this['editor']['plugins']['get']('Users')['me'],_0x22233a=new _0x167977(_0x4ca16e['start'],_0x4ca16e['end']);this['_trackingSessionId']&&(_0x4e6405['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x471680,meta:_0x3159af}of this['_findSuggestions'](_0x22233a,'insertion'))if(_0x3159af['isOwn']&&!_0x3159af['isNextTo']){if(_0x471680['isMultiRange']){const _0x559656=_0x471680['getRanges']()['filter'](_0xeaa74=>'$graveyard'!=_0xeaa74['root']['rootName']);_0x559656['every'](_0x32cfb8=>_0x22233a['containsRange'](_0x32cfb8,!0x0))&&_0x471680['discard']();if(_0x559656['some'](_0x1b6c29=>_0x1b6c29['containsRange'](_0x22233a,!0x0))){const _0x45f48f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa0a3b3,'accept');return this['forceDefaultExecution'](()=>_0x45f48f([_0x22233a],null,_0x4e6405)),null;}}else{const _0x91949f=_0x22233a['getIntersection'](_0x471680['getFirstRange']());null!==_0x91949f&&_0x471680['_onDiscard']([_0x91949f],null,_0x4e6405);}}if(_0x22233a['detach'](),_0x22233a['isCollapsed']||'$graveyard'==_0x22233a['root']['rootName'])return null;let _0x27ab97=null,_0x1e5a93=_0x22233a['start'],_0x290dec=_0x22233a['end'];const _0x1ff2e1=this['_findSuggestions'](_0x22233a,'deletion');for(const {suggestion:_0x1e3ddc,meta:_0x45c292}of _0x1ff2e1){const _0x3cab0d=this['_model']['createRange'](_0x1e5a93,_0x290dec);if(_0x45c292['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45c292['containsRangeInObject']&&!_0x45c292['isInsideObject'])){if(_0x1e3ddc['isMultiRange']){if(!sn(_0x1e3ddc,_0x4e6405))continue;let _0x460f54=!0x0;for(const _0x245224 of _0x1e3ddc['getRanges']()){if(_0x245224['containsRange'](_0x3cab0d,!0x0))return _0x1e3ddc;_0x3cab0d['containsRange'](_0x245224)||(_0x460f54=!0x1);}_0x460f54&&_0x1e3ddc['discard']();}else{const _0x11a2b4=_0x1e3ddc['getFirstRange']();if(_0x11a2b4['containsRange'](_0x3cab0d,!0x0))return _0x1e3ddc;if(!sn(_0x1e3ddc,_0x4e6405)){_0x3cab0d['containsRange'](_0x11a2b4)?_0x1e3ddc['removeMarkers']():_0x11a2b4['containsPosition'](_0x1e5a93)?_0x1e5a93=_0x11a2b4['end']:_0x11a2b4['containsPosition'](_0x290dec)&&(_0x290dec=_0x11a2b4['start']);continue;}_0x1e5a93=_0x1e5a93['isBefore'](_0x11a2b4['start'])?_0x1e5a93:_0x11a2b4['start'],_0x290dec=_0x290dec['isAfter'](_0x11a2b4['end'])?_0x290dec:_0x11a2b4['end'],_0x4e6405=Object['assign']({},_0x1e3ddc['attributes']),_0x27ab97?_0x11a2b4['start']['isBefore'](_0x27ab97['getFirstRange']()['start'])?(_0x27ab97['removeMarkers'](),_0x27ab97=_0x1e3ddc):_0x1e3ddc['removeMarkers']():_0x27ab97=_0x1e3ddc;}}}if(_0x27ab97)return this['_setSuggestionRange'](_0x27ab97,this['_model']['createRange'](_0x1e5a93,_0x290dec)),_0x27ab97;{const _0x526b6a=_0xe7a85c(),_0x586463=this['_model']['createRange'](_0x1e5a93,_0x290dec),_0x14f85e=_0x548cfd['id'],_0x10b26e=_0xa0a3b3?'deletion:'+_0xa0a3b3:'deletion',_0x4f4d70=this['_setSuggestionData']({'id':_0x526b6a,'type':_0x10b26e,'createdAt':new Date(),'authorId':_0x14f85e,'attributes':_0x4e6405});return this['_addSuggestionMarker'](_0x10b26e,_0x526b6a,_0x14f85e,_0x586463),_0x4f4d70;}}['markMultiRangeDeletion'](_0x37e535,_0x1583bb='multi',_0x178945={}){const _0x1f533b=this['editor']['plugins']['get']('Users')['me'],_0xc4c4c4=_0x37e535['map'](_0x4c4634=>new _0x167977(_0x4c4634['start'],_0x4c4634['end'])),_0x52d330=new Set();this['_trackingSessionId']&&(_0x178945['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22db54,meta:_0x465408}of this['_findSuggestions'](_0xc4c4c4,'insertion'))_0x465408['isOwn']&&!_0x465408['isNextTo']&&_0x52d330['add'](_0x22db54);for(const _0x2dbab5 of _0x52d330)if(_0x2dbab5['isMultiRange']){const _0x1afb5b=_0x2dbab5['getRanges']();(!_0x2dbab5['attributes']||!_0x2dbab5['attributes']['skipNestingCheck'])&&(_0x1afb5b['every'](_0x4cc1e0=>_0xc4c4c4['some'](_0x4314f6=>_0x4314f6['containsRange'](_0x4cc1e0,!0x0)))&&_0x2dbab5['discard']());if(_0xc4c4c4['every'](_0x277fcc=>_0x1afb5b['some'](_0x651baa=>_0x651baa['containsRange'](_0x277fcc,!0x0)))){const _0x582df3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1583bb,'accept');return this['forceDefaultExecution'](()=>_0x582df3(_0x37e535,null,_0x178945)),null;}}else{const _0xde67a4=_0x2dbab5['getFirstRange']();_0xc4c4c4['some'](_0x13297a=>_0x13297a['containsRange'](_0xde67a4,!0x0))&&_0x2dbab5['discard']();if(_0xc4c4c4['every'](_0x38a5ad=>_0xde67a4['containsRange'](_0x38a5ad,!0x0))){const _0x787423=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1583bb,'accept');return this['forceDefaultExecution'](()=>_0x787423(_0xc4c4c4,null,_0x178945)),null;}}const _0xf2fdc4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1583bb,'join');let _0x4e3f0b=null;for(const _0x58d625 of this['getSuggestions']())if(_0x58d625['author']['id']==_0x1f533b['id']&&_0x58d625['isInContent']&&'deletion'==_0x58d625['type']&&_0x58d625['subType']==_0x1583bb&&sn(_0x58d625,_0x178945)&&(_0xf2fdc4(_0x58d625['getRanges'](),_0xc4c4c4)||_0xf2fdc4(_0xc4c4c4,_0x58d625['getRanges']()))){if(_0x4e3f0b){if(_0x58d625['commentThread']&&_0x58d625['commentThread']['length'])continue;for(const _0x551616 of _0x58d625['getRanges']())_0x4e3f0b['isIntersectingWithRange'](_0x551616)||_0x4e3f0b['addRange'](_0x551616);_0x58d625['removeMarkers']();}else{_0x4e3f0b=_0x58d625;for(const _0x526ff3 of _0xc4c4c4)_0x58d625['isIntersectingWithRange'](_0x526ff3)||_0x58d625['addRange'](_0x526ff3);}}if(_0x4e3f0b)return _0x4e3f0b;_0x52d330['clear']();for(const {suggestion:_0x34f3ed,meta:_0x324e33}of this['_findSuggestions'](_0xc4c4c4,'deletion'))_0x324e33['isOwn']&&(this['_mergeNestedSuggestions']||!_0x324e33['containsRangeInObject']&&!_0x324e33['isInsideObject'])&&sn(_0x34f3ed,_0x178945)&&_0x52d330['add'](_0x34f3ed);for(const _0x3b59ef of _0x52d330){const _0x2f8227=_0x3b59ef['getRanges']();if(!_0x178945||!_0x178945['skipNestingCheck']){if(_0xc4c4c4['every'](_0x292d93=>_0x2f8227['some'](_0x53c3a0=>_0x53c3a0['containsRange'](_0x292d93,!0x0))))return _0x3b59ef;}(!_0x3b59ef['attributes']||!_0x3b59ef['attributes']['skipNestingCheck'])&&(_0x2f8227['every'](_0x290917=>_0xc4c4c4['some'](_0x2d1783=>_0x2d1783['containsRange'](_0x290917,!0x0)))&&_0x3b59ef['discard']());}const _0x5ef31a=_0xe7a85c(),_0x52d7f8=_0x1f533b['id'],_0x437e92='deletion:'+_0x1583bb,_0x3e3266=this['_setSuggestionData']({'id':_0x5ef31a,'type':_0x437e92,'createdAt':new Date(),'authorId':_0x52d7f8,'attributes':_0x178945});for(const _0x149088 of _0xc4c4c4)_0x149088['detach'](),_0x149088['isCollapsed']||'$graveyard'==_0x149088['root']['rootName']||this['_addSuggestionMarker'](_0x437e92,_0x5ef31a,_0x52d7f8,_0x149088,x['getMultiRangeId']());return _0x3e3266;}['markAttributeChange'](_0x5ab398,_0x452059,_0x4203cd,_0x5b32ae,_0xd6866d){if(_0x5ab398['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x32167b=this['editor']['plugins']['get']('Users')['me']['id'],_0x30f555=Array['from'](this['_suggestions']['values']())['filter'](_0x419d0f=>'attribute'==_0x419d0f['type']&&_0x419d0f['data']['key']==_0x452059&&_0x419d0f['isIntersectingWithRange'](_0x5ab398));if(this['_trackingSessionId']&&(_0xd6866d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x10990c=this['_findSuggestions'](_0x5ab398,'insertion')['filter'](({meta:_0x58a8db})=>_0x58a8db['isOwn']&&!_0x58a8db['isInsideObject']&&!_0x58a8db['isNextTo'])['map'](({suggestion:_0x122e2d})=>_0x122e2d);_0x30f555['unshift'](..._0x10990c);}const _0x108334=new Map([[_0x5ab398,_0x4203cd]]);for(const _0x53bb9e of _0x30f555){const _0x58a4b0='attribute'==_0x53bb9e['type']?_0x53bb9e['data']['oldValue']:void 0x0,_0x4c0f4b=_0x53bb9e['getFirstRange'](),_0x53cfd1=Array['from'](_0x108334['keys']())['find'](_0x1c5789=>_0x1c5789['isIntersecting'](_0x4c0f4b));if(!_0x53cfd1)continue;const _0x3e3b0c=_0x53cfd1['getDifference'](_0x4c0f4b);this['_isBlockAttribute'](_0x452059)&&'insertion'==_0x53bb9e['type']&&0x0!=_0x3e3b0c['length']||(_0x108334['delete'](_0x53cfd1),_0x3e3b0c['forEach'](_0x4bec79=>{_0x108334['set'](_0x4bec79,_0x4203cd);}),'insertion'!=_0x53bb9e['type']&&_0x58a4b0!=_0x5b32ae&&_0x108334['set'](_0x53cfd1['getIntersection'](_0x4c0f4b),_0x58a4b0));}const _0xfe19fa=[];for(const [_0x106465,_0x3e853d]of _0x108334){const _0xc64e4a=_0xe7a85c(),_0x24c429={'key':_0x452059,'oldValue':_0x3e853d,'newValue':_0x5b32ae};_0x452059['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':_0x452059});const _0x574a99=('attribute:'+(_0x452059+'|'+Ht({'newValue':_0x5b32ae})))['substring'](0x0,0x3c),_0x35f409=this['_setSuggestionData']({'id':_0xc64e4a,'type':_0x574a99,'data':_0x24c429,'createdAt':new Date(),'authorId':_0x32167b,'attributes':_0xd6866d});_0xfe19fa['push'](_0x35f409),this['_addSuggestionMarker'](_0x574a99,_0xc64e4a,_0x32167b,_0x106465);}return _0xfe19fa;}['enableDefaultAttributesIntegration'](_0x56b4a7){this['enableCommand'](_0x56b4a7,(_0x56510a,..._0x3d0a6c)=>{this['recordAttributeChanges'](()=>{_0x56510a(..._0x3d0a6c);});});}['registerBlockAttribute'](_0x40d633){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x40d633);}['registerInlineAttribute'](_0x58b322){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x58b322);}['startTrackingSession'](_0x37309b){return this['_trackingSessionId']=void 0x0!==_0x37309b?_0x37309b:_0xe7a85c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x26a581){return'attribute'==_0x26a581['type']?_0x26a581['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5e5723){if(0x0==_0x5e5723['length'])return;const _0x48f7bc=this['editor'],_0x5e826a=_0x48f7bc['plugins']['get'](_0x4a392e),_0x2835ba=[];_0x48f7bc['model']['change'](_0x1f0815=>{for(let _0x584dd8=0x0;_0x584dd8<_0x5e5723['length'];_0x584dd8++){const _0x347199=_0x5e5723[_0x584dd8];if(_0x347199['baseVersion']=_0x48f7bc['model']['document']['version'],_0x347199['isDocumentOperation']=!0x0,_0x5e826a['isMarkedRemoveOperation'](_0x347199)){const _0x10a9eb=Lt(_0x347199['newRange'],_0x48f7bc['model']);_0x2835ba['unshift'](_0x167977['fromRange'](_0x10a9eb));}else switch(_0x347199['type']){case'rename':{const _0x5b05d5=_0x347199['oldName'],_0x3a67d1=_0x347199['newName'];if(_0x5b05d5==_0x3a67d1)break;_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);const _0x5543c2='$elementName',_0x598502=_0x347199['position'],_0xef6cfc=_0x48f7bc['model']['createRange'](_0x598502,_0x48f7bc['model']['createPositionAt'](_0x598502['nodeAfter'],'end'));this['markAttributeChange'](_0xef6cfc,_0x5543c2,_0x5b05d5,_0x3a67d1,{'groupId':_0xe7a85c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xa676b7=_0x347199['oldValue'],_0x2ef658=_0x347199['newValue'];if(_0xa676b7==_0x2ef658)break;_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);const _0x2e9fc5=_0x347199['key'];if(!this['_isRegisteredAttribute'](_0x2e9fc5))break;const _0x5172a5=Lt(_0x347199['range'],_0x48f7bc['model']);this['markAttributeChange'](_0x5172a5,_0x2e9fc5,_0xa676b7,_0x2ef658,{'groupId':_0xe7a85c()});break;}case'insert':{_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);if(_0x5e5723[_0x584dd8+0x1]&&'move'==_0x5e5723[_0x584dd8+0x1]['type'])break;const _0x5ea8cc=_0x347199['position'],_0x12d95c=_0x347199['howMany'],_0x1bc039=Lt(_0x48f7bc['model']['createRange'](_0x5ea8cc,_0x5ea8cc['getShiftedBy'](_0x12d95c)),_0x48f7bc['model']);this['markInsertion'](_0x1bc039);break;}case'split':{_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);const _0x5eecda=_0x347199['splitPosition'],_0x3819ca=_0x347199['moveTargetPosition'];this['markInsertion'](_0x48f7bc['model']['createRange'](_0x5eecda,_0x3819ca));break;}case'move':case'remove':_0x1f0815['batch']['addOperation'](_0x347199),_0x48f7bc['model']['applyOperation'](_0x347199);}}for(const _0x439d73 of _0x2835ba)_0x439d73['detach'](),this['markDeletion'](_0x439d73);});}['_setSuggestionRange'](_0x27162e,_0x4dd1f9){const _0x1a07e0=_0x27162e['getFirstMarker']();this['_model']['change'](_0x5aa332=>{_0x5aa332['updateMarker'](_0x1a07e0,{'range':_0x4dd1f9});});}['_addThreadToSuggestion'](_0x7c207d){const _0x4b2fc7=_0x7c207d['id'],_0x2c5e24=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4b2fc7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c5e24,'threadId':_0x4b2fc7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x463495=this['_commentsRepository']['getCommentThread'](_0x4b2fc7);_0x463495['unbind']('isRemovable'),_0x463495['isRemovable']=!0x1,_0x7c207d['commentThread']=_0x463495;}['_checkSuggestionCorrectness'](_0x432846,_0x159f0a,_0x38cee4,_0x1955d3){if(_0x432846['type']!=_0x159f0a||_0x432846['subType']!=_0x38cee4||_0x432846['creator']['id']!=_0x1955d3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4bd1ef('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x283368,_0x476b87){const _0x2734eb=_0x283368['getFirstRange']();if(_0x476b87['isEqual'](_0x2734eb))_0x283368['removeMarkers']();else{if(_0x2734eb['containsRange'](_0x476b87)){const _0x1fc678=this['_model']['createPositionAt'](_0x476b87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x283368,this['_model']['createRange'](_0x2734eb['start'],_0x1fc678));const _0x46d788=_0xe7a85c(),_0x10d615=_0x283368['creator']['id'],_0x1b4254=_0x283368['type']+':'+_0x283368['subType'];this['_setSuggestionData']({'id':_0x46d788,'type':_0x1b4254,'createdAt':new Date(),'authorId':_0x10d615,'data':_0x283368['data'],'attributes':_0x283368['attributes']});const _0x4ffc6e=this['_model']['createPositionAt'](_0x476b87['end']['parent'],'after'),_0x5a5502=this['_model']['createRange'](_0x4ffc6e,_0x2734eb['end']);this['_addSuggestionMarker'](_0x1b4254,_0x46d788,_0x10d615,_0x5a5502);}else{if(_0x2734eb['containsPosition'](_0x476b87['start'])){const _0x480d79=this['_model']['createPositionAt'](_0x476b87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x283368,this['_model']['createRange'](_0x2734eb['start'],_0x480d79));}else{const _0x3fe8a1=this['_model']['createPositionAt'](_0x476b87['end']['parent'],'after');this['_setSuggestionRange'](_0x283368,this['_model']['createRange'](_0x3fe8a1,_0x2734eb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x49f5a2){for(const {suggestion:_0x14dcdc,meta:_0x2c67dd}of this['_findSuggestions'](_0x49f5a2,'insertion')){if(!_0x2c67dd['isOwn'])continue;const _0x401bd4=_0x14dcdc['getRanges']();for(const _0x2ae9d9 of _0x401bd4)if(!_0x49f5a2['getDifference'](_0x2ae9d9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x46693d){return this['editor']['plugins']['get']('Users')['getUser'](_0x46693d);}['_getExternalAuthor'](_0x41927c){const _0x25b1f3=this['editor']['plugins']['get']('Users'),_0x1a7ccc=_0x4f3ece('external:'+_0x41927c),_0x4512fe=_0x25b1f3['getUser'](_0x1a7ccc);return _0x4512fe||_0x25b1f3['addUser']({'id':_0x1a7ccc,'name':_0x41927c});}['_createSuggestion'](_0x226457,_0x1d5463,_0x2e7c4a,_0x470ad6,_0x46ddf8,_0x790cd4){const _0x2c87a3=this['_getAuthorFromId'](_0x470ad6);if(!_0x2c87a3)throw new _0x4bd1ef('track-changes-user-not-found',this,{'authorId':_0x470ad6,'suggestionId':_0x2e7c4a});const _0x40f218=this['_suggestionFactory']['buildSuggestion'](_0x226457,_0x1d5463,_0x2e7c4a,_0x2c87a3,_0x46ddf8,_0x55f798=>{this['_updateSuggestionData'](_0x2e7c4a,{'attributes':_0x55f798});const _0x53fccc=this['getSuggestion'](_0x2e7c4a);this['_joinWithAdjacentSuggestions'](new Set([_0x53fccc])),this['_refreshSuggestionsChain'](new Set([_0x53fccc]));},_0x790cd4);return this['listenTo'](_0x40f218,'accept',()=>{this['_updateSuggestionData'](_0x2e7c4a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x40f218,'discard',()=>{this['_updateSuggestionData'](_0x2e7c4a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2e7c4a,_0x40f218),this['_suggestionState']['set'](_0x40f218,'notReady'),_0x40f218;}['_splitMarkerName'](_0x399a0b){return Gt(_0x399a0b);}['_breakSuggestionMarker'](_0x5bd1ac,_0x3a2bc3,_0x8dfd29){const _0x371130=_0x5bd1ac['getFirstRange'](),_0x21730c=_0x371130['start'],_0x4a5ec9=_0x371130['end'];this['_setSuggestionRange'](_0x5bd1ac,this['_model']['createRange'](_0x21730c,_0x3a2bc3));const _0x27a95e=_0xe7a85c(),_0x2f5997=_0x5bd1ac['creator']['id'],_0x5b36d1=_0x5bd1ac['type']+(_0x5bd1ac['subType']?':'+_0x5bd1ac['subType']:'');this['_setSuggestionData']({'id':_0x27a95e,'type':_0x5b36d1,'createdAt':new Date(),'authorId':_0x2f5997,'originalSuggestionId':_0x5bd1ac['_originalSuggestionId']||_0x5bd1ac['id'],'attributes':_0x5bd1ac['attributes'],'data':_0x5bd1ac['data']});const _0x1bff75=this['_getAttributeKey'](_0x5bd1ac);('formatBlock'==_0x5bd1ac['type']||_0x1bff75&&this['_isBlockAttribute'](_0x1bff75))&&(_0x8dfd29=this['_model']['createPositionBefore'](_0x8dfd29['parent'])),this['_addSuggestionMarker'](_0x5b36d1,_0x27a95e,_0x2f5997,this['_model']['createRange'](_0x8dfd29,_0x4a5ec9));}['_findSuggestions'](_0xe2966b,_0xf249cf=null){const _0x6af6b4=[],_0x35f7a4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xe2966b)||(_0xe2966b=[_0xe2966b]);for(const _0x3ee96f of this['getSuggestions']()){if(!_0x3ee96f['isInContent'])continue;if(_0xf249cf&&_0x3ee96f['type']!=_0xf249cf)continue;let _0x109d61=!0x1;for(const _0x6b96a3 of _0x3ee96f['getRanges']()){for(const _0x2ec8c7 of _0xe2966b){const _0x5ba12e=_0x2ec8c7['start']['isEqual'](_0x6b96a3['end'])||_0x2ec8c7['end']['isEqual'](_0x6b96a3['start']);if(_0x5ba12e||_0x2ec8c7['getIntersection'](_0x6b96a3)){const _0x15dd72=_0x2ec8c7['containsRange'](_0x6b96a3)&&zt(this['_model']['schema'],_0x6b96a3['start'],_0x2ec8c7),_0x4309d9=_0x6b96a3['containsRange'](_0x2ec8c7)&&zt(this['_model']['schema'],_0x2ec8c7['start'],_0x6b96a3);_0x6af6b4['push']({'suggestion':_0x3ee96f,'meta':{'isOwn':_0x35f7a4==_0x3ee96f['author'],'isNextTo':_0x5ba12e,'isInsideObject':_0x15dd72,'containsRangeInObject':_0x4309d9}}),_0x109d61=!0x0;break;}}if(_0x109d61)break;}}return _0x6af6b4;}['_addSuggestionMarker'](_0x43aec0,_0x15c4c7,_0x2d1fed,_0x4adb4b,_0x1a0e1f){this['_model']['change'](_0x1a1d96=>{let _0x7f4546='suggestion:'+_0x43aec0+':'+_0x15c4c7+':'+_0x2d1fed;_0x1a0e1f&&(_0x7f4546=_0x7f4546+':'+_0x1a0e1f),_0x1a1d96['addMarker'](_0x7f4546,{'range':_0x4adb4b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4fa7bb){const _0x5adb5f=_0x4fa7bb['previous'],_0x30be97=_0x4fa7bb['next'];_0x4fa7bb['previous']=null,_0x4fa7bb['next']=null,null!=_0x5adb5f&&_0x5adb5f['next']==_0x4fa7bb&&(_0x5adb5f['next']=_0x30be97),null!=_0x30be97&&_0x30be97['previous']==_0x4fa7bb&&(_0x30be97['previous']=_0x5adb5f),'ready'==this['_suggestionState']['get'](_0x4fa7bb)&&(this['_suggestionState']['set'](_0x4fa7bb,'removed'),this['fire']('suggestionUnloaded',_0x4fa7bb,_0x5adb5f,_0x30be97));}['_setSuggestionData'](_0x422b27){const _0x4981f8=_0x422b27['id'],_0x568113=this['addSuggestionData'](_0x422b27);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e5645=this['editor']['plugins']['get']('PendingActions'),_0x4e9440=_0x568113['hasComments'],_0x477804=_0x568113['subType']?_0x568113['type']+':'+_0x568113['subType']:_0x568113['type'],_0x421649=this['editor']['locale'],_0x305193=_0x3e5645['add'](o(_0x421649,'PENDING_ACTION_SUGGESTION')),_0x684f5a={'id':_0x4981f8,'type':_0x477804,'hasComments':_0x4e9440,'data':_0x422b27['data']||null,'originalSuggestionId':_0x422b27['originalSuggestionId']||null,'attributes':_0x568113['attributes']};this['_adapter']['addSuggestion'](_0x684f5a)['then'](_0x425b6a=>{_0x568113['_saved']=!0x0,_0x3e5645['remove'](_0x305193),_0x425b6a&&_0x425b6a['createdAt']&&(this['_suggestions']['get'](_0x4981f8)['createdAt']=_0x425b6a['createdAt']);})['catch'](_0x257f3f=>{throw _0x5dad29('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x568113['discard']();}),_0x568113['stopListening'](),this['_suggestions']['delete'](_0x568113['id']),this['_suggestionState']['delete'](_0x568113),_0x257f3f;});}return _0x568113;}['_isBlockAttribute'](_0x563c5a){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x563c5a);}['_isInlineAttribute'](_0x56adf9){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x56adf9);}['_updateSuggestionData'](_0x4aa5b3,_0xf57633){const _0xefd233=this['editor']['plugins']['get']('PendingActions'),_0x4e80f7=this['getSuggestion'](_0x4aa5b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4e80f7['_saved']){const _0x5c7af5=_0xefd233['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4aa5b3,_0xf57633)['then'](()=>{_0xefd233['remove'](_0x5c7af5);});}else _0x4e80f7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4aa5b3,_0xf57633);});}}['_getSuggestionData'](_0x124e6c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4bd1ef('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x124e6c);}['_handleNewSuggestionMarker'](_0x21e1a8){const {id:_0x431655,type:_0x1f9a58,subType:_0x19616d,authorId:_0x4c3fec}=this['_splitMarkerName'](_0x21e1a8),_0x51aa38=this['_suggestions']['get'](_0x431655)||this['_createSuggestion'](_0x1f9a58,_0x19616d,_0x431655,_0x4c3fec,{});switch(this['_checkSuggestionCorrectness'](_0x51aa38,_0x1f9a58,_0x19616d,_0x4c3fec),this['_suggestionState']['get'](_0x51aa38)){case'notReady':this['_getSuggestionData'](_0x431655)['then'](_0x4c19c9=>{let _0x2a4657=Promise['resolve']();_0x4c19c9['hasComments']&&(_0x2a4657=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x431655})),_0x2a4657['then'](()=>{this['addSuggestionData'](_0x4c19c9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51aa38,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x431655,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51aa38,'ready'),this['fire']('suggestionLoaded',_0x51aa38);break;case'ready':this['fire']('suggestionChanged',_0x51aa38);}return _0x51aa38['addMarkerName'](_0x21e1a8),_0x51aa38;}['_refreshSuggestionsChain'](_0x2023b7){const _0x432be8=Array['from'](_0x2023b7),_0x1376b1=_0x432be8['filter'](_0x1aff8c=>'attribute'==_0x1aff8c['type']);this['_refreshAttributeSuggestionsChain'](_0x1376b1);const _0x19fe1e=_0x432be8['filter'](_0x2ea959=>!_0x2ea959['isMultiRange']&&'attribute'!=_0x2ea959['type']),_0x3d62f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5013f2=>!_0x5013f2['isMultiRange']&&'attribute'!=_0x5013f2['type']),_0x4f5bbc=_0x3d62f6['filter'](_0x13dcbb=>!_0x2023b7['has'](_0x13dcbb)),_0x29d25d=new Map(_0x3d62f6['map'](_0xde4d1b=>[_0xde4d1b,this['_suggestionFactory']['getSuggestionCallback'](_0xde4d1b['type'],_0xde4d1b['subType'],'chain')])),_0x1b11fc=new Map(_0x3d62f6['map'](_0x2b3463=>[_0x2b3463,_0x2b3463['getFirstRange']()])),_0xce0f19=new Set(),_0x4e9740=new Set();for(let _0xe09de=0x0;_0xe09de<_0x19fe1e['length'];_0xe09de++)_0x85ff4a(_0x19fe1e[_0xe09de],_0x19fe1e,_0xe09de+0x1);for(let _0x2cc5f3=0x0;_0x2cc5f3<_0x19fe1e['length'];_0x2cc5f3++)_0x85ff4a(_0x19fe1e[_0x2cc5f3],_0x4f5bbc,0x0);const _0x5f1473=new Set();for(let _0x3a5410=0x0;_0x3a5410<_0x19fe1e['length'];_0x3a5410++){const _0x500045=_0x19fe1e[_0x3a5410];!_0x4e9740['has'](_0x500045)&&_0x500045['previous']&&(_0x5f1473['add'](_0x500045['previous']),_0x500045['previous']['next']===_0x500045&&(_0x500045['previous']['next']=null),_0x500045['previous']=null),!_0xce0f19['has'](_0x500045)&&_0x500045['next']&&(_0x5f1473['add'](_0x500045['next']),_0x500045['next']['previous']===_0x500045&&(_0x500045['next']['previous']=null),_0x500045['next']=null);}function _0x85ff4a(_0x4de3b4,_0x4664f4,_0x27d6c7){for(let _0x1427fb=_0x27d6c7;_0x1427fb<_0x4664f4['length'];_0x1427fb++){const _0x24bbde=_0x4962a9(_0x4de3b4,_0x4664f4[_0x1427fb]);_0x24bbde&&(_0x24bbde[0x0]['next']=_0x24bbde[0x1],_0x24bbde[0x1]['previous']=_0x24bbde[0x0],_0xce0f19['add'](_0x24bbde[0x0]),_0x4e9740['add'](_0x24bbde[0x1]));}}function _0x4962a9(_0x330611,_0x461efe){if(_0x330611['author']['id']!==_0x461efe['author']['id'])return null;const _0x52cc5e=_0x29d25d['get'](_0x330611)(_0x330611,_0x461efe,_0x1b11fc['get'](_0x330611),_0x1b11fc['get'](_0x461efe));if(!_0x52cc5e)return null;return _0x29d25d['get'](_0x461efe)(_0x330611,_0x461efe,_0x1b11fc['get'](_0x330611),_0x1b11fc['get'](_0x461efe))?_0x52cc5e[0x1]['commentThread']&&_0x52cc5e[0x1]['commentThread']['length']?null:_0x52cc5e:null;}_0x5f1473['size']&&this['_refreshSuggestionsChain'](_0x5f1473);}['_refreshAttributeSuggestionsChain'](_0x3a877c){if(0x0==_0x3a877c['length'])return;const _0x547fbe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50f076=>'attribute'==_0x50f076['type']&&_0x50f076['_isDataLoaded']),_0x4ce6e1=[],_0x1fffc6=new Map();for(const _0xaf83c1 of _0x547fbe){const _0x2557e6=_0x4f3ece(_0xaf83c1['attributes']);_0x1fffc6['has'](_0x2557e6)||(_0x1fffc6['set'](_0x2557e6,_0x4ce6e1['length']),_0x4ce6e1['push']([]));const _0x5a0e71=_0x1fffc6['get'](_0x2557e6);_0x4ce6e1[_0x5a0e71]['push'](_0xaf83c1);}!(function(){_0x4ce6e1['sort']((_0x22f33c,_0x54eb79)=>{const _0x19ad02=_0x22f33c[0x0]['createdAt'],_0x14c3ef=_0x54eb79[0x0]['createdAt'];return _0x19ad02==_0x14c3ef?_0x22f33c[0x0]['attributes']['groupId']<_0x54eb79[0x0]['attributes']['groupId']?-0x1:0x1:_0x19ad02<_0x14c3ef?-0x1:0x1;});for(const _0x486493 of _0x4ce6e1)_0x486493['sort']((_0x2f0fdf,_0x5bfd80)=>_0x2f0fdf['id']<_0x5bfd80['id']?-0x1:0x1);}());for(let _0x465a30=0x0;_0x465a30<_0x4ce6e1['length'];_0x465a30++){if(0x0==_0x4ce6e1[_0x465a30]['length'])continue;const _0x210032=[];for(let _0x4d44a7=_0x465a30+0x1;_0x4d44a7<_0x4ce6e1['length'];_0x4d44a7++)0x0!=_0x4ce6e1[_0x4d44a7]['length']&&_0x38ed36(_0x4ce6e1[_0x465a30],_0x4ce6e1[_0x4d44a7])&&_0x210032['push'](_0x4d44a7);for(const _0x251beb of _0x210032)_0x4ce6e1[_0x465a30]=_0x4ce6e1[_0x465a30]['concat'](_0x4ce6e1[_0x251beb]),_0x4ce6e1[_0x251beb]=[];}for(const _0x152a6f of _0x4ce6e1)for(let _0x17f37d=0x0;_0x17f37d<_0x152a6f['length'];_0x17f37d++){const _0x38c32e=_0x152a6f[_0x17f37d+0x1]||null;_0x152a6f[_0x17f37d]['next']!==_0x38c32e&&(_0x152a6f[_0x17f37d]['next']=_0x38c32e);}for(const _0xc8fa7 of _0x4ce6e1)for(let _0x2bfa38=0x0;_0x2bfa38<_0xc8fa7['length'];_0x2bfa38++){const _0x1dffbc=_0xc8fa7[_0x2bfa38-0x1]||null;_0xc8fa7[_0x2bfa38]['previous']!==_0x1dffbc&&(_0xc8fa7[_0x2bfa38]['previous']=_0x1dffbc);}function _0x38ed36(_0x941290,_0x404220){if(_0x941290[0x0]['attributes']['groupId']!==_0x404220[0x0]['attributes']['groupId']&&_0x941290[0x0]['author']!==_0x404220[0x0]['author'])return!0x1;if(!function(_0x39e09e,_0x2dbea3){if(!_0x39e09e['hasComments']&&!_0x2dbea3['hasComments'])return!0x0;if(_0x39e09e['hasComments']&&_0x2dbea3['hasComments'])return!0x1;if(_0x39e09e['hasComments']&&_0x2dbea3['createdAt']<_0x39e09e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2dbea3['hasComments']&&_0x39e09e['createdAt']<_0x2dbea3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x941290[0x0],_0x404220[0x0]))return!0x1;const _0x447223=Pt(_0x941290[0x0]['attributes'],['groupId','trackingSessionId']),_0x9a516=Pt(_0x404220[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x33d31c(_0x447223,_0x9a516))return!0x1;if(_0x941290[0x0]['attributes']['groupId']==_0x404220[0x0]['attributes']['groupId'])return!0x0;if(_0x941290[0x0]['attributes']['trackingSessionId']!==_0x404220[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x941290['every'](_0x12e53f=>_0x404220['some'](_0x40c657=>_0x12e53f['getFirstRange']()['isEqual'](_0x40c657['getFirstRange']())))&&_0x404220['every'](_0xe7218b=>_0x941290['some'](_0x48c727=>_0xe7218b['getFirstRange']()['isEqual'](_0x48c727['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x33fa4d){const _0x41a9e6=Array['from'](_0x33fa4d),_0x598f91=this['getSuggestions']({'skipNotAttached':!0x0}),_0x457e54=_0x598f91['filter'](_0x2f4a89=>!_0x33fa4d['has'](_0x2f4a89)),_0x5d97ff=new Map(_0x41a9e6['map'](_0x25fb5b=>[_0x25fb5b,this['_suggestionFactory']['getSuggestionCallback'](_0x25fb5b['type'],_0x25fb5b['subType'],'join')])),_0x1abb4a=new Map(_0x598f91['map'](_0x290e29=>[_0x290e29,_0x290e29['getRanges']()]));for(let _0x1aaa4e=0x0;_0x1aaa4e<_0x41a9e6['length'];_0x1aaa4e++){if(_0x10b5a2(this,_0x41a9e6[_0x1aaa4e],_0x41a9e6,_0x1aaa4e+0x1))return!0x0;}for(let _0x93921c=0x0;_0x93921c<_0x41a9e6['length'];_0x93921c++){if(_0x10b5a2(this,_0x41a9e6[_0x93921c],_0x457e54,0x0))return!0x0;}return!0x1;function _0x10b5a2(_0x1cf37e,_0x5670fc,_0x738be8,_0x3b9dae){for(let _0x1c8560=_0x3b9dae;_0x1c8560<_0x738be8['length'];_0x1c8560++){const _0x4cc588=_0x738be8[_0x1c8560];if(_0x4cc588['type']!==_0x5670fc['type']||_0x4cc588['author']['id']!==_0x5670fc['author']['id']||_0x4cc588['subType']!==_0x5670fc['subType'])continue;if(!en(_0x5670fc,_0x4cc588))continue;if('attribute'==_0x5670fc['type']&&_0x5670fc['data']['oldValue']!=_0x4cc588['data']['oldValue'])continue;if('attribute'==_0x5670fc['type']&&_0x1cf37e['_isBlockAttribute'](_0x5670fc['data']['key']))continue;if('formatBlock'==_0x5670fc['type']){const _0x445972=_0x1cf37e['editor']['model'],_0x1ce002=_0x5670fc['getContainedElement']();if(_0x1ce002&&(_0x445972['schema']['isObject'](_0x1ce002)||_0x445972['schema']['isLimit'](_0x1ce002)))continue;}const _0x3fcd63=_0x5d97ff['get'](_0x5670fc),_0x2da17b=_0x1abb4a['get'](_0x5670fc),_0x3a8551=_0x1abb4a['get'](_0x4cc588),_0x4ffd8a=_0x5670fc['commentThread']&&_0x5670fc['commentThread']['length'],_0x365f3c=_0x4cc588['commentThread']&&_0x4cc588['commentThread']['length'];if(!_0x4ffd8a&&_0x3fcd63(_0x3a8551,_0x2da17b))return _0x1cf37e['_joinSuggestions'](_0x4cc588,_0x5670fc),_0x1abb4a['delete'](_0x5670fc),!0x0;if(!_0x365f3c&&_0x3fcd63(_0x2da17b,_0x3a8551))return _0x1cf37e['_joinSuggestions'](_0x5670fc,_0x4cc588),_0x1abb4a['delete'](_0x4cc588),!0x0;}return!0x1;}}['_joinSuggestions'](_0x226473,_0x55c4b6){if(_0x226473['isMultiRange']){for(const _0x5039ae of _0x55c4b6['getRanges']())_0x226473['addRange'](_0x5039ae);}else{const _0x2ec281=_0x55c4b6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x226473,this['_model']['createRange'](_0x226473['getFirstRange']()['start'],_0x2ec281));}_0x55c4b6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41f41e,_0x559353,_0x3f2b23){const _0x35d454=_0x41f41e['startsWith']('format')||_0x41f41e['startsWith']('attribute')?'FORMATTING':_0x41f41e['toUpperCase']();return o(this['editor']['locale'],_0x559353+'_'+_0x35d454+'_SUGGESTION_ANNOUNCEMENT',_0x3f2b23);}['_initAriaMarkerChangeAnnouncements'](){const _0x405352=this['editor'];if(!_0x405352['ui'])return;const {ariaLiveAnnouncer:_0x460bec}=_0x405352['ui'];_0xdbf774(this['_model'],({left:_0x4fac14,entered:_0x4ecaea})=>{for(const _0x341d73 of _0x4fac14){const {group:_0x399c20,type:_0x26cb89}=this['_splitMarkerName'](_0x341d73['name']);if('suggestion'===_0x399c20){_0x460bec['announce'](this['_getMarkerAnnouncementText'](_0x26cb89,'LEAVE'));break;}}for(const _0x50686a of _0x4ecaea){const {group:_0x5257bf,type:_0x37a258}=this['_splitMarkerName'](_0x50686a['name']);if('suggestion'===_0x5257bf){_0x460bec['announce'](this['_getMarkerAnnouncementText'](_0x37a258,'ENTER',_0xc43d41(_0x18497a)));break;}}});}['_processAttributeChanges'](_0x252f22){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e0e38=this['editor'],_0x43a1ae=_0x2e0e38['model']['document']['differ']['getChanges']();if(0x0==_0x43a1ae['length'])return!0x1;const _0x311b74=[],_0x8d02b2=_0x43a1ae['filter'](_0x38bfc1=>'attribute'==_0x38bfc1['type']),_0x532876=_0x43a1ae['filter'](_0x66355e=>'insert'==_0x66355e['type']&&'$text'!=_0x66355e['name']),_0x3ac504=_0x43a1ae['filter'](_0x50ba80=>'remove'==_0x50ba80['type']&&'$text'!=_0x50ba80['name']);for(const _0x3df24f of _0x8d02b2)_0x311b74['push']({'key':_0x3df24f['attributeKey'],'newValue':_0x3df24f['attributeNewValue'],'oldValue':_0x3df24f['attributeOldValue'],'range':Zt(_0x3df24f['range'],_0x2e0e38['model'])});for(const _0x4af8db of _0x532876){const _0x155143=_0x3ac504['find'](_0x35b73e=>_0x35b73e['position']['isEqual'](_0x4af8db['position']));_0x155143&&_0x311b74['push']({'key':m,'newValue':_0x4af8db['name'],'oldValue':_0x155143['name'],'range':_0x2e0e38['model']['createRangeOn'](_0x4af8db['position']['nodeAfter'])});}return 0x0!=_0x311b74['length']&&this['_reduceExistingSuggestions'](_0x252f22,_0x311b74);}['_processAttributeSuggestions'](_0xaaa3de){let _0x3b1574=!0x1;const _0x15b0da=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x454556=>_0x454556['data']['newRange']&&_0x454556['name']['startsWith']('suggestion:attribute:'));for(const _0x42a7c7 of _0x15b0da){const {subType:_0x4dbd97,id:_0x5c5636}=this['_splitMarkerName'](_0x42a7c7['name']),_0x370c37=_0x4dbd97['split']('|')[0x0];for(const _0x5e2266 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5e2266['id']!=_0x5c5636&&'attribute'==_0x5e2266['type']&&_0x5e2266['data']&&_0x5e2266['data']['key']==_0x370c37&&_0x5e2266['getFirstRange']()['isIntersecting'](_0x42a7c7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5e2266,_0x42a7c7['data']['newRange'],_0xaaa3de),_0x3b1574=!0x0);}return _0x3b1574;}['recordAttributeChanges'](_0x3de3e8){this['_recordAttributeSuggestions']=!0x0,_0x3de3e8();}['_isRegisteredAttribute'](_0x5c1b56){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x5c1b56);}['_reduceExistingSuggestions'](_0x463bef,_0x1d8db9){if(0x0==_0x1d8db9['length'])return!0x1;let _0x4e621a=!0x1;for(const _0x5da293 of _0x1d8db9){const _0x27b6d3=this['_findSuggestions'](_0x5da293['range'],'attribute')['filter'](_0x2c5c7a=>!_0x2c5c7a['meta']['isNextTo'])['map'](_0x35bf31=>_0x35bf31['suggestion']),_0x535a71=_0x4f3ece({'newValue':_0x5da293['newValue']});_0x27b6d3['filter'](_0x5a5945=>{const [_0x4f8c96,_0x395fd3]=_0x5a5945['subType']['split']('|');return _0x4f8c96==_0x5da293['key']&&_0x395fd3!=_0x535a71;})['forEach'](_0x2632d7=>{this['_reduceSuggestionAttributeRange'](_0x2632d7,_0x5da293['range'],_0x463bef),_0x4e621a=!0x0;});}return _0x4e621a;}['_reduceSuggestionAttributeRange'](_0x1df29f,_0x34b55f,_0x22d44c){const _0x5a0ed1=_0x1df29f['getFirstRange']()['getDifference'](_0x34b55f);0x0!==_0x5a0ed1['length']?0x1!==_0x5a0ed1['length']?this['_breakSuggestionMarker'](_0x1df29f,_0x34b55f['start'],_0x34b55f['end']):this['_setSuggestionRange'](_0x1df29f,_0x5a0ed1[0x0]):_0x22d44c['removeMarker'](_0x1df29f['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4f7c5c){this['_editor']=_0x4f7c5c,this['_model']=_0x4f7c5c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x239a4d,_0x38f30d,_0x2e52f3,_0x5443a0,_0x2c123f,_0x20a4c6,_0x1e984c){return new x(this['_model'],{'type':_0x239a4d,'subType':_0x38f30d,'id':_0x2e52f3,'originalSuggestionId':_0x1e984c,'author':_0x5443a0,'creator':_0x5443a0,'attributes':_0x2c123f,'onAttributesChange':_0x20a4c6,'onAccept':(..._0xcd137e)=>this['getSuggestionCallback'](_0x239a4d,_0x38f30d,'accept')(..._0xcd137e),'onDiscard':(..._0x101d6d)=>this['getSuggestionCallback'](_0x239a4d,_0x38f30d,'discard')(..._0x101d6d)});}['registerCustomCallback'](_0x18bb84,_0x4f98b2,_0x33fabd,_0x20514c){const _0xc5db39=_0x18bb84+':'+_0x4f98b2+':'+_0x33fabd;this['_customCallbacks']['set'](_0xc5db39,_0x20514c);}['getSuggestionCallback'](_0x8214c9,_0x387052,_0x951a51){const _0x409b57=_0x8214c9+':'+_0x387052+':'+_0x951a51;return this['_customCallbacks']['get'](_0x409b57)||this['_defaultCallbacks']['get'](_0x8214c9+':'+_0x951a51);}['_registerDefaultCallbacks'](){const _0x53e6ab=()=>!0x1,_0x3ca328=_0x11f6dd=>{_0x11f6dd['sort']((_0x439436,_0x45f1b5)=>_0x439436['start']['isBefore'](_0x45f1b5['start'])?0x1:-0x1),this['_model']['change'](_0x12699c=>{for(const _0x453139 of _0x11f6dd){let _0x771391;_0x771391=_0x453139['end']['isAtEnd']&&_0x453139['end']['parent']==_0x453139['start']['nodeAfter']?_0x12699c['createSelection'](_0x453139['start']['nodeAfter'],'on'):_0x12699c['createSelection'](_0x453139),this['_model']['deleteContent'](_0x771391,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x376086=(_0x1451f1,_0x478329)=>{_0x478329&&this['_model']['change'](_0x16b983=>{const {commandName:_0x37a54c,commandParams:_0x26da9b=[]}=_0x478329,_0x4be6a5=_0x1451f1['map'](_0x166dea=>(Kt(_0x166dea)&&(_0x166dea=this['_model']['createRange'](_0x166dea['end'])),_0x166dea))['filter'](_0x48f069=>'$graveyard'!==_0x48f069['root']['rootName']);if(_0x4be6a5['length']<0x1)return;const _0x5d190c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x571e24=>_0x167977['fromRange'](_0x571e24));_0x16b983['setSelection'](_0x4be6a5);for(const _0xa72fb1 of this['_editor']['commands']['commands']())_0xa72fb1['refresh']();_0x26da9b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x37a54c,..._0x26da9b);const _0x3815fd=_0x5d190c['filter'](_0x67cc23=>'$graveyard'!=_0x67cc23['root']['rootName']);_0x3815fd['length']>0x0&&_0x16b983['setSelection'](_0x3815fd);for(const _0x5ac868 of _0x5d190c)_0x5ac868['detach']();});},_0x556251=(_0x47e760,_0xda8cba)=>0x1==_0x47e760['length']&&0x1==_0xda8cba['length']&&_0x47e760[0x0]['end']['isEqual'](_0xda8cba[0x0]['start']),_0x459454=(_0x5b61b1,_0x46a346,_0x48f19d,_0x58256d)=>nn(_0x5b61b1,_0x46a346,_0x48f19d,_0x58256d)?[_0x5b61b1,_0x46a346]:nn(_0x46a346,_0x5b61b1,_0x58256d,_0x48f19d)?[_0x46a346,_0x5b61b1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x53e6ab),this['_defaultCallbacks']['set']('insertion:discard',_0x3ca328),this['_defaultCallbacks']['set']('insertion:join',_0x556251),this['_defaultCallbacks']['set']('insertion:chain',_0x459454),this['_defaultCallbacks']['set']('deletion:accept',_0x3ca328),this['_defaultCallbacks']['set']('deletion:discard',_0x53e6ab),this['_defaultCallbacks']['set']('deletion:join',_0x556251),this['_defaultCallbacks']['set']('deletion:chain',_0x459454),this['_defaultCallbacks']['set']('formatInline:accept',_0x376086),this['_defaultCallbacks']['set']('formatInline:discard',_0x53e6ab),this['_defaultCallbacks']['set']('formatInline:join',_0x556251),this['_defaultCallbacks']['set']('formatInline:chain',_0x53e6ab),this['_defaultCallbacks']['set']('formatBlock:accept',_0x376086),this['_defaultCallbacks']['set']('formatBlock:discard',_0x53e6ab),this['_defaultCallbacks']['set']('formatBlock:join',_0x556251),this['_defaultCallbacks']['set']('formatBlock:chain',_0x53e6ab),this['_defaultCallbacks']['set']('attribute:accept',_0x53e6ab),this['_defaultCallbacks']['set']('attribute:discard',(_0x57ae8d,_0x2f2119)=>{if(!_0x2f2119)return;const _0x397272=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x439846=>{if(_0x2f2119['key']==m)for(const _0x49d062 of _0x57ae8d){const _0x4ae968=_0x49d062['start']['nodeAfter'],_0x4914bc=_0x2f2119['oldValue'];_0x439846['rename'](_0x4ae968,_0x4914bc);}else{if(_0x397272['_isBlockAttribute'](_0x2f2119['key'])){for(const _0x4e67b3 of _0x57ae8d)void 0x0!==_0x2f2119['oldValue']?_0x439846['setAttribute'](_0x2f2119['key'],_0x2f2119['oldValue'],_0x4e67b3['start']['nodeAfter']):_0x439846['removeAttribute'](_0x2f2119['key'],_0x4e67b3['start']['nodeAfter']);}else{for(const _0x208231 of _0x57ae8d)_0x2f2119['oldValue']?_0x439846['setAttribute'](_0x2f2119['key'],_0x2f2119['oldValue'],_0x208231):_0x439846['removeAttribute'](_0x2f2119['key'],_0x208231);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x556251);}}function zt(_0xa2deae,_0x4b3b93,_0x56b7f6){for(const _0x38ab3f of _0x4b3b93['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x38ab3f['root']==_0x38ab3f)return!0x1;if(!_0x56b7f6['containsItem'](_0x38ab3f))return!0x1;if(_0xa2deae['isObject'](_0x38ab3f)||_0xa2deae['isLimit'](_0x38ab3f))return!0x0;}return!0x1;}function Kt(_0x55ba71){return _0x55ba71['end']['parent']==_0x55ba71['start']['nodeAfter']&&_0x55ba71['end']['isAtStart'];}function Wt(_0x23cd93,_0x20d191,_0x63a076,_0x5ce3bd){const _0x16ddce=_0x257550=>!_0x257550['item']['is']('$textProxy')&&!_0x5ce3bd['isObject'](_0x257550['item']),_0x531efc=_0x23cd93['start']['getLastMatchingPosition'](_0x16ddce),_0x3c1133=_0x23cd93['end']['getLastMatchingPosition'](_0x16ddce,{'direction':'backward'});return(!_0x23cd93['start']['isEqual'](_0x531efc)||!_0x23cd93['end']['isEqual'](_0x3c1133))&&(_0x531efc['isBefore'](_0x3c1133)?_0x63a076['updateMarker'](_0x20d191,{'range':_0x63a076['createRange'](_0x531efc,_0x3c1133)}):_0x63a076['removeMarker'](_0x20d191),!0x0);}function Ht(_0xe86580){return _0x4f3ece(_0xe86580);}function Qt(_0x14ada2){const _0x3aa009=_0x14ada2['start']['nodeAfter'];return _0x3aa009&&_0x3aa009['is']('element');}function Xt(_0x117433){return Kt(_0x117433)||function(_0x34053e){return _0x34053e['start']['parent']==_0x34053e['end']['nodeBefore']&&_0x34053e['start']['isAtEnd'];}(_0x117433);}function Yt(_0x4afd69,_0x28e622){try{const _0x25d487=_0x4afd69['getRange']();for(const _0x326cb7 of _0x28e622)if(_0x4afd69!==_0x326cb7&&_0x25d487&&_0x25d487['isIntersecting'](_0x326cb7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x5d8226,_0x359ca8){return null==_0x5d8226['end']['nodeBefore']&&_0x5d8226['end']['parent']==_0x5d8226['start']['nodeAfter']?tn(_0x5d8226['start']['nodeAfter'],_0x359ca8):_0x5d8226;}function tn(_0x20e0a7,_0x499f34){const _0x584353=_0x499f34['schema']['isObject'](_0x20e0a7)||_0x499f34['schema']['isSelectable'](_0x20e0a7);return _0x499f34['createRange'](_0x499f34['createPositionAt'](_0x20e0a7,'before'),_0x584353?_0x499f34['createPositionAfter'](_0x20e0a7):_0x499f34['createPositionAt'](_0x20e0a7,'end'));}function nn(_0x286ef5,_0x2adce2,_0x41f1ec,_0x4a134b){return!!en(_0x286ef5,_0x2adce2)&&_0x41f1ec['end']['isEqual'](_0x4a134b['start']);}function en(_0x117052,_0x104b0c){if(!_0x117052['_isDataLoaded']||!_0x104b0c['_isDataLoaded'])return!0x1;const _0x54f37b=new Set(Object['keys'](_0x117052['attributes'])),_0x4cc46c=new Set(Object['keys'](_0x104b0c['attributes']));if(_0x54f37b['delete']('groupId'),_0x4cc46c['delete']('groupId'),0x0==_0x54f37b['size']&&0x0==_0x4cc46c['size'])return!0x0;if(_0x54f37b['size']!=_0x4cc46c['size'])return!0x1;const _0x2852f7={..._0x117052['attributes']},_0x4c7b64={..._0x104b0c['attributes']};return delete _0x2852f7['groupId'],delete _0x4c7b64['groupId'],JSON['stringify'](_0x2852f7)==JSON['stringify'](_0x4c7b64);}function sn(_0x41d607,_0x4f3d45){const _0x14ecdf=on(_0x41d607['attributes']),_0x4a6806=on(_0x4f3d45);if(!_0x41d607['_isDataLoaded'])return!0x1;for(const _0x196cbc of Object['keys'](_0x4a6806))if(!_0x33d31c(_0x14ecdf[_0x196cbc],_0x4a6806[_0x196cbc]))return!0x1;return!0x0;}function on(_0x1c634f){const _0x4a8371=Object['assign']({},_0x1c634f);return delete _0x4a8371['skipNestingCheck'],delete _0x4a8371['tablePasteChainId'],_0x4a8371;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x396c0e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1197d9,_0x191525,_0x31f224,_0xbd5a3e){super(),this['model']=_0x191525,this['view']=_0x31f224,this['commentThreadController']=_0xbd5a3e,this['_editor']=_0x1197d9,this['_acceptCommand']=_0x1197d9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1197d9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa5c2c2,_0x151964)=>_0xa5c2c2||_0x151964),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1baa66=>_0x1baa66&&this['_editor']['model']['canEditAt'](_0x191525['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x334320=>_0x334320&&this['_editor']['model']['canEditAt'](_0x191525['getRanges']())),this['_pendingAction']=null,_0x31f224['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x31f224,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x31f224,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x31f224,'change:isDirty',()=>{_0x31f224['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 _0x2492da=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2492da);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3725c9{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5293d1,_0x1a7722,_0x3b5784,_0xd965d3){super(_0x5293d1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x536ecb(_0x5293d1,o(_0x5293d1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1a7722['authoredAt']),this['bind']('authoredAt')['to'](_0x1a7722),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',_0x1a7722,'authoredAt',this,'descriptionParts',(_0x231e34,_0x206461,_0x9739f7)=>{const _0x9359d5=_0x9739f7['map'](_0x54fbbe=>ls(_0x54fbbe['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x231e34-0x1,_0x1a7722['author']['name'],_0x206461?_0xd965d3['formatDateTime'](_0x206461):'',new DOMParser()['parseFromString'](_0x9359d5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4958e7(),this['focusTracker']=new _0x117c38(),this['keystrokes']=new _0x15ddba(),this['focusCycler']=new _0x5d44a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x166bd0=>_0x166bd0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1a7722,this['_localUser']=_0x3b5784,this['_config']=_0xd965d3,_0xd965d3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x19f182(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x46c945}=this['_config'];this['commentsListView']=new _0x46c945(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',_0x29d32b=>_0x29d32b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xfd11d2,_0x464f0d)=>_0xfd11d2||!!_0x464f0d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x48c392}=this['_config'],_0x2027de=new _0x48c392(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5f3939=_0x2027de['commentInputView'];return _0x2027de['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5f3939,'value',(_0xb45c97,_0x27b94e,_0xcc79cd)=>!!_0xcc79cd||_0xb45c97&&!_0x27b94e),_0x5f3939['on']('submit',(_0x4c4f03,_0x1c6366)=>{this['fire']('addComment',_0x1c6366),_0x5f3939['editor']['setData']('');}),_0x5f3939['on']('cancel',()=>this['focus']()),_0x5f3939['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2027de;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x36c661,_0x27534a,_0x1449b8,_0x4d6921){super(_0x36c661,_0x27534a,_0x1449b8,_0x4d6921),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d6f44=>_0x4d6f44&&_0x4d6f44[0x0]?_0x4d6f44[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x51e6d1,_0x37fd78)=>{let _0x37b34c='';for(const _0x456612 of _0x51e6d1)_0x37b34c+='<p>'+ls(_0x456612['content'],_0x456612['color'])+'</p>';return _0x37fd78?_0x37b34c:_0x1cbe9a(_0x37b34c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d6921['SuggestionView'](_0x36c661,_0x27534a,{'formatDateTime':_0x4d6921['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 _0x199099=this['bindTemplate'],_0x4017e6=[this['suggestionView']];return this['commentsListView']&&_0x4017e6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4017e6['push'](this['commentThreadInputView']),_0x4017e6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x199099['if']('isActive','ck-suggestion-wrapper--active'),_0x199099['to']('type',_0x1e5f2d=>'ck-suggestion-'+_0x1e5f2d),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':_0x199099['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4017e6};}['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 _0x3725c9{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x43b5df,_0x792320,_0x1683c6){super(_0x43b5df),this['_model']=_0x792320,this['_config']=_0x1683c6,this['set']('description',''),this['bind']('authoredAt')['to'](_0x792320),this['acceptButton']=this['_createButton'](o(_0x43b5df,'Accept\x20suggestion'),_0x66c94d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x43b5df,'Discard\x20suggestion'),_0x11ac0f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x35b91d(_0x43b5df,_0x792320['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4958e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x117c38(),this['keystrokes']=new _0x15ddba(),this['focusCycler']=new _0x5d44a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4ed137=>_0x4ed137['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xcf2122=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xcf2122['innerHTML']=this['description'],this['on']('change:description',(_0x4fcbd8,_0x4a50f2,_0x42cc9a)=>{_0xcf2122['innerHTML']=_0x42cc9a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x63147d=this['bindTemplate'],_0x403e76=[{'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':_0x63147d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x63147d['to']('authoredAt',_0x112d0f=>this['_config']['formatDateTime'](_0x112d0f))}]}]},{'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']&&_0x403e76['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':_0x403e76}]};}['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'](_0xa38625,_0x21c7a2,_0x34247e,_0x303df6,_0x4209b0){const _0x4c09e2=new _0x1f2254(this['locale']);return _0x4c09e2['set']({'label':_0xa38625,'icon':_0x21c7a2,'tooltip':!0x0,'tooltipPosition':_0x4209b0}),_0x4c09e2['extendTemplate']({'attributes':{'class':_0x34247e}}),_0x4c09e2['on']('execute',()=>{this['fire'](_0x303df6,this['_model']['id']);}),_0x4c09e2;}['_setupKeyboardNavigation'](){const _0x2dbe26=this['element'];this['keystrokes']['listenTo'](_0x2dbe26);for(const _0x96cc90 of this['focusables'])this['focusTracker']['add'](_0x96cc90['element']),this['keystrokes']['listenTo'](_0x96cc90['element']);this['keystrokes']['set']('enter',(_0x371d1c,_0x4f3548)=>{_0x2dbe26===_0x371d1c['target']&&(this['focusCycler']['focusFirst'](),_0x4f3548());}),this['keystrokes']['set']('esc',(_0x14c264,_0x4dce4d)=>{_0x2dbe26!==_0x14c264['target']&&(this['focus'](),_0x4dce4d());});}}class u extends _0x5c469f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0xe3d5a4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13afdd){super(_0x13afdd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x326a63=this['editor']['config'];_0x326a63['define']('trackChanges.SuggestionThreadView',fe),_0x326a63['define']('trackChanges.SuggestionView',we),_0x326a63['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x326a63['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23899e,_0x33a02b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4ea012,_0x9cb683]of this['_handleControllerBuffer']){const _0x4abc1f=this['_suggestionToController']['has'](_0x4ea012);_0x4abc1f||_0x9cb683?_0x4abc1f&&_0x9cb683&&this['_destroyController'](_0x4ea012):this['_initializeController'](_0x4ea012);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23899e,_0x33a02b);}['init'](){const _0x1d9539=this['editor'],_0x57096b=_0x1d9539['plugins']['get']('TrackChangesEditing'),_0x518503=_0x1d9539['plugins']['get']('Annotations'),_0x1f3de5=_0x1d9539['plugins']['get']('EditorAnnotations'),_0x125147=_0x1d9539['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f3de5['addSourceCollector'](()=>{const _0x1f56be=[];for(const [_0x1399ad,_0x495cef]of Array['from'](this['_suggestionToController'])){const _0x3d826f=_0x1399ad['getAllAdjacentSuggestions'](),_0x3570c4=[];for(const _0x104ca7 of _0x3d826f){if(!_0x104ca7['isInContent'])continue;if(_0x104ca7['isMultiRange']){_0x3570c4['push'](..._0x104ca7['getRanges']());continue;}const _0x38317c=_0x104ca7['getFirstRange']();if(_0x3570c4['length']>0x0){const _0x5632fb=_0x3570c4[0x0]['getJoined'](_0x38317c);if(_0x5632fb){_0x3570c4[0x0]=_0x5632fb;continue;}}_0x3570c4['push'](_0x38317c);}_0x1f56be['push']([_0x495cef['view'],_0x3570c4]);}return _0x1f56be;}),this['listenTo'](_0x57096b,'suggestionLoaded',(_0x46a67d,_0x5e3fe3)=>{this['listenTo'](_0x5e3fe3,'change:previous',(_0x5d5190,_0x4e9b7f,_0x5af547,_0xe324be)=>{_0x5e3fe3['isInContent']&&(null==_0x5af547?(this['_updateController'](_0xe324be['head']),this['_handleSuggestionControllerDelayed'](_0x5e3fe3,!0x1)):(this['_updateController'](_0x5af547['head']),null==_0xe324be&&this['_handleSuggestionControllerDelayed'](_0x5e3fe3,!0x0)));}),null!==_0x5e3fe3['previous']?this['_updateController'](_0x5e3fe3['head']):this['_handleSuggestionControllerDelayed'](_0x5e3fe3,!0x1);}),this['listenTo'](_0x57096b,'suggestionUnloaded',(_0x372865,_0x1f0ffd,_0x2ad15b)=>{this['stopListening'](_0x1f0ffd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f0ffd),this['_suggestionToController']['has'](_0x1f0ffd)&&this['_destroyController'](_0x1f0ffd),_0x2ad15b&&this['_updateController'](_0x2ad15b['head']);}),this['listenTo'](_0x57096b,'suggestionChanged',(_0x16145e,_0x7a588f)=>{this['_updateController'](_0x7a588f);}),this['listenTo'](_0x518503,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x125147,'addComment',(_0x288419,{threadId:_0x5593db,isFromAdapter:_0x58093a})=>{if(_0x58093a||!_0x57096b['hasSuggestion'](_0x5593db))return;const _0x416d5c=_0x57096b['getSuggestion'](_0x5593db);this['_suggestionToController']['get'](_0x416d5c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fabc1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f63ef;for(const _0x4479df in _0x4fabc1){const _0x1ed848=_0x4479df,_0x326ab9=_0x4fabc1[_0x1ed848];if('trackChangesLicenseKeyValid'==_0x326ab9||'trackChangesLicenseKeyInvalid'==_0x326ab9||'trackChangesLicenseKeyExpired'==_0x326ab9||'trackChangesLicenseKeyDomainLimit'==_0x326ab9||'trackChangesLicenseKeyNotAllowed'==_0x326ab9||'trackChangesLicenseKeyEvaluationLimit'==_0x326ab9||'trackChangesLicenseKeyTrialLimit'==_0x326ab9||'trackChangesLicenseKeyUsageLimit'==_0x326ab9){delete _0x4fabc1[_0x1ed848],_0x4f63ef=_0x326ab9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4f63ef&&_0x4fabc1['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x54600e){const _0x1adf7f=this['_suggestionToController']['get'](_0x54600e);if(!_0x1adf7f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1adf7f['view'])||null;}['getSuggestionForAnnotation'](_0x144cd0){const _0x555c91=this['_viewToController']['get'](_0x144cd0['innerView']);return _0x555c91?_0x555c91['model']:null;}['_refreshActiveMarkers'](){const _0x280a98=this['editor']['plugins']['get']('Annotations'),_0x66189a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1664a5=Array['from'](_0x280a98['activeAnnotations'],_0x43dce1=>_0x43dce1['innerView'])['filter'](_0x3ff973=>this['_viewToController']['has'](_0x3ff973)),_0x2451dd=[];for(const _0x2097db of _0x1664a5){const _0x4681a0=this['_viewToController']['get'](_0x2097db)['model']['getAllAdjacentSuggestions']();_0x2451dd['push'](..._0x4681a0['reduce']((_0x39d500,_0x113caa)=>[..._0x39d500,..._0x113caa['getMarkerNames']()],[]));}_0x66189a['activeMarkers']=_0x2451dd;}['_addUIComponentsToFactory'](){const _0x598d5f=this['editor'],_0x1bf816=_0x598d5f['locale'],_0x3e5897=o(_0x1bf816,'Track\x20changes'),_0x5c050d=new _0x2a31a7([{'type':'switchbutton','model':new _0x4d4814({'withText':!0x0,'isToggleable':!0x0,'label':_0x3e5897,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x598d5f['plugins']['has']('TrackChangesPreview')&&_0x5c050d['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d4814({'withText':!0x0,'label':o(_0x1bf816,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x672553 of _0x5c050d)if(ke(_0x672553)){const _0x13c61a=_0x598d5f['commands']['get'](_0x672553['model']['commandName']);_0x672553['model']['bind']('isOn','isEnabled')['to'](_0x13c61a,'value','isEnabled');}_0x598d5f['ui']['componentFactory']['add']('trackChanges',_0x19025b=>this['_createToolbarButton'](_0x19025b,_0x5c050d,_0x3e5897)),_0x598d5f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ee0af=>this['_createMenuBarMenu'](_0x2ee0af,_0x5c050d,_0x3e5897));}['_createToolbarButton'](_0x19fb37,_0x2bd650,_0x55596b){const _0x4432d3=_0x57847e(_0x19fb37,_0x2e353d),_0x2a644e=this['editor']['commands']['get']('trackChanges');_0x4432d3['buttonView']['set']({'tooltip':_0x55596b,'label':_0x55596b,'icon':_0x5563d1}),_0x4432d3['buttonView']['bind']('isOn')['to'](_0x2a644e,'value'),_0x4432d3['buttonView']['on']('execute',()=>{_0x2a644e['execute'](),this['editor']['editing']['view']['focus']();}),_0x1cd2d(_0x4432d3,_0x2bd650,{'role':'menu'});const _0x416d06=[];for(const _0x39b54b of _0x2bd650)ke(_0x39b54b)&&_0x416d06['push'](this['editor']['commands']['get'](_0x39b54b['model']['commandName']));const _0x3a60d2=_0x4432d3['buttonView'];return _0x3a60d2['actionView']['unbind']('isEnabled'),_0x3a60d2['arrowView']['unbind']('isEnabled'),_0x3a60d2['actionView']['bind']('isEnabled')['to'](_0x2a644e,'isEnabled'),_0x3a60d2['arrowView']['bind']('isEnabled')['toMany'](_0x416d06,'isEnabled',(..._0x4de315)=>_0x4de315['some'](_0x54afba=>_0x54afba)),_0x4432d3['on']('execute',_0x6d2b6c=>{this['editor']['execute'](_0x6d2b6c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4432d3;}['_createMenuBarMenu'](_0x9f7991,_0x35b523,_0x1c1b1f){const _0x5d2a99=new _0x502fd3(_0x9f7991),_0x33b721=this['editor']['commands']['get']('trackChanges');_0x5d2a99['buttonView']['set']({'label':_0x1c1b1f,'icon':_0x5563d1});const _0x33495d=new _0x5b0b21(_0x9f7991);for(const _0x1b5f5f of _0x35b523){if('separator'==_0x1b5f5f['type']){_0x33495d['items']['add'](new _0xc8adaa(_0x9f7991));continue;}const _0x4fa1eb=new _0x1f14d7(_0x9f7991,_0x5d2a99),_0xf34d8=new _0x59084b(_0x9f7991),_0x5cbf=_0x1b5f5f['model'];_0xf34d8['bind'](...Object['keys'](_0x5cbf))['to'](_0x5cbf),_0xf34d8['delegate']('execute')['to'](_0x5d2a99),_0xf34d8['on']('execute',()=>{this['editor']['execute'](_0x5cbf['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fa1eb['children']['add'](_0xf34d8),_0x33495d['items']['add'](_0x4fa1eb);}return _0x5d2a99['bind']('isEnabled')['to'](_0x33b721,'isEnabled'),_0x5d2a99['panelView']['children']['add'](_0x33495d),_0x5d2a99;}['_initializeController'](_0x34eae1){const _0x2f702d=this['editor'],_0x10d1ad=_0x2f702d['config'],_0x101a9f=_0x2f702d['plugins']['get']('Annotations'),_0x1ec6ee=_0x2f702d['plugins']['get']('CommentsRepository'),_0x2b13f5=_0x2f702d['plugins']['get']('EditorAnnotations'),_0x51c534=_0x2f702d['plugins']['get'](_0xe3d5a4)['me'],_0x1c17de=_0x10d1ad['get']('trackChanges')['SuggestionThreadView'],_0x29234a=_0x10d1ad['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x6926b,CommentThreadInputView:_0x55d1cd}=_0x2f702d['plugins']['get']('CommentsUI');let _0x41ccdd,_0x408e97,_0x4da4ec;this['_annotationViews']['has'](_0x34eae1['id'])?(_0x408e97=this['_annotationViews']['get'](_0x34eae1['id']),_0x41ccdd=_0x408e97['mainView']):(_0x41ccdd=new _0x1c17de(_0x2f702d['locale'],_0x34eae1,_0x51c534,{'disableComments':this['_disableComments'],'editorConfig':{..._0x10d1ad['get']('comments.editorConfig'),'licenseKey':_0x10d1ad['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x10d1ad['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x10d1ad['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x10d1ad['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x703e2b(_0x10d1ad['get']('locale'),_0x2f702d['locale']),'CommentView':_0x10d1ad['get']('comments')['CommentView'],'CommentsListView':_0x6926b,'CommentThreadInputView':_0x55d1cd,'SuggestionView':_0x29234a}),_0x41ccdd['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f702d['editing']['view']['focus']();}),_0x41ccdd['suggestionView']['discardButton']['on']('execute',()=>{_0x2f702d['editing']['view']['focus']();}),_0x408e97=_0x101a9f['createAnnotationView'](this['editor']['locale'],_0x41ccdd),_0x408e97['bind']('isDirty')['to'](_0x41ccdd,'isDirty'),_0x408e97['bind']('length')['to'](_0x41ccdd),_0x408e97['bind']('type')['to'](_0x41ccdd,'type',_0x172bbb=>'suggestion-'+_0x172bbb),_0x41ccdd['on']('escape',()=>{_0x4da4ec['fire']('escape');}),this['_annotationViews']['set'](_0x34eae1['id'],_0x408e97));const _0x2cd211=_0x1ec6ee['createCommentThreadController'](_0x34eae1['commentThread'],_0x41ccdd),_0xaef574=new pe(_0x2f702d,_0x34eae1,_0x41ccdd,_0x2cd211),_0x42b1f2=_0x34eae1['getAllAdjacentSuggestions']()['filter'](_0x906722=>_0x906722['isInContent']);_0x41ccdd['descriptionParts']=_0x2f702d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x42b1f2),this['_suggestionToController']['set'](_0x34eae1,_0xaef574),this['_viewToController']['set'](_0x41ccdd,_0xaef574);const _0x3b4cc9=()=>{const _0x1966b3=[],_0x64dd55=_0x34eae1['getAllAdjacentSuggestions']()['filter'](_0x605c96=>_0x605c96['isInContent']);for(const _0x462b44 of _0x64dd55)_0x1966b3['push'](..._0x462b44['getMarkers']());return _0x319fa6(_0x2f702d['editing'],_0x1966b3);};_0x4da4ec=_0x101a9f['createAnnotation']({'view':_0x408e97,'target':_0x3b4cc9,'type':()=>'suggestion-'+_0xaef574['view']['type'],'isVisible':!!_0x3b4cc9()}),_0x1ec6ee['_bindAnnotationToEditors'](_0x41ccdd,_0x4da4ec),_0x101a9f['add'](_0x4da4ec),_0x2b13f5['registerAnnotation'](_0x4da4ec);}['_destroyController'](_0x4a8787){const _0x127257=this['editor']['plugins']['get']('CommentsRepository'),_0x1a96bd=this['editor']['plugins']['get']('Annotations'),_0x453f4a=this['_suggestionToController']['get'](_0x4a8787),_0xd156fb=_0x453f4a['view'],_0x3b96c5=_0x1a96bd['getByInnerView'](_0xd156fb);_0x127257['_unbindEditors'](_0xd156fb),_0x3b96c5&&_0x1a96bd['remove'](_0x3b96c5),this['_suggestionToController']['delete'](_0x4a8787),this['_viewToController']['delete'](_0xd156fb),_0x453f4a['destroy']();}['_updateController'](_0x50bfed){if(!_0x50bfed['isInContent']||!this['_suggestionToController']['has'](_0x50bfed))return;const _0x1e1e19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15daec=this['_suggestionToController']['get'](_0x50bfed),_0x14ac38=_0x50bfed['getAllAdjacentSuggestions']();_0x15daec['view']['descriptionParts']=_0x1e1e19['descriptionFactory']['getDescriptions'](_0x14ac38);}['destroy'](){for(const _0x33c7b5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x33c7b5);for(const _0x5e885a of this['_annotationViews']['values']())_0x5e885a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3873ef){return'model'in _0x3873ef;}class Ne extends _0x5c469f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1f15f4){this['editor']['plugins']['get'](d)['adapter']=_0x1f15f4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2985c8){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2985c8);}['getSuggestions']({skipNotAttached:_0x5d2f61=!0x1,toJSON:_0x3685bf=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5d2f61,'toJSON':_0x3685bf});}['getSuggestion'](_0x44cb4d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x44cb4d);}}const p=['Pagination'];class re extends _0x5c469f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5a215d=this['editor'];if(_0x5a215d['config']['define']('trackChangesData.editorCreator',_0x2f70c2=>{const _0x50e57c=_0x5a215d['model']['document']['getRootNames']()['reduce']((_0x3f8d77,_0x1e5dc3)=>(_0x3f8d77[_0x1e5dc3]='',_0x3f8d77),{});return _0x5a215d['constructor']['create'](_0x50e57c,_0x2f70c2);}),'function'!=typeof _0x5a215d['config']['get']('trackChangesData')['editorCreator'])throw new _0x4bd1ef('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5eb796){return P(this['editor'],!0x0,_0x5eb796);}['getDataWithDiscardedSuggestions'](_0x4c973d){return P(this['editor'],!0x1,_0x4c973d);}}class Fe extends _0x5c469f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24b614){function _0x29e9ee(_0x3f504a){return _0x3f504a['map'](_0x287c4d=>String['fromCharCode'](_0x287c4d))['join']('');}super(_0x24b614),this['result']='end',_0x24b614[_0x29e9ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e9ee([0x76,0x69,0x65,0x77])][_0x29e9ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29e9ee([0x61,0x75,0x74,0x6f]),_0x24b614[_0x29e9ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x29e9ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29e9ee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x29e9ee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x29e9ee([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(_0x3c3dd8){return void 0x0!==_0x3c3dd8['getRootsAttributes'];}async function P(_0x3b2893,_0x244f35,_0x197217){const _0x154ac7=_0x4f6792(_0x3b2893,p);_0x154ac7['plugins']['push'](d,Fe),_0x154ac7['rootsAttributes']=De(_0x3b2893)?_0x3b2893['getRootsAttributes']():void 0x0;const _0x4b8604=document['createDocumentFragment'](),_0x7e23bc=_0x3b2893['config']['get']('trackChangesData')['editorCreator'],_0x41cce0=await _0x7e23bc(_0x154ac7,()=>function(_0x26e244){const _0x5bf232=document['createElement']('div');return _0x26e244['appendChild'](_0x5bf232),_0x5bf232;}(_0x4b8604));!function(_0x4c195f,_0x3aed7b){const _0x3fb7a4=_0x4c195f['model']['document']['getRootNames']()['reduce']((_0x369728,_0x58830d)=>(_0x369728[_0x58830d]=_0x4c195f['data']['get']({'rootName':_0x58830d}),_0x369728),{}),_0x1fcb70=_0x4c195f['plugins']['get']('Users')['users']['map'](_0x57e576=>({'id':_0x57e576['id'],'name':_0x57e576['name']})),_0x160b93=_0x4c195f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3eeec7=_0x4c195f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fe46c=_0x3aed7b['plugins']['get']('Users'),_0xe772eb=_0x3aed7b['plugins']['get']('TrackChangesEditing'),_0xf80562=_0x3aed7b['plugins']['get']('CommentsRepository');for(const _0x3c6c5f of _0xf80562['getCommentThreads']())_0x3c6c5f['remove']();for(const _0xe1c03b of _0x1fcb70)_0x3fe46c['getUser'](_0xe1c03b['id'])||_0x3fe46c['addUser'](_0xe1c03b);_0x3fe46c['me']||_0x3fe46c['useAnonymousUser']();for(const _0xf8e687 of _0x3eeec7)_0xf80562['addCommentThread'](_0xf8e687);for(const _0x3f378d of _0x160b93)_0xe772eb['addSuggestionData'](_0x3f378d);_0x3aed7b['data']['set'](_0x3fb7a4);}(_0x3b2893,_0x41cce0),_0x41cce0['execute'](_0x244f35?'acceptAllSuggestions':'discardAllSuggestions');const _0x29fe09=De(_0x41cce0)?_0x41cce0['getFullData'](_0x197217):_0x41cce0['data']['get'](_0x197217);return await _0x41cce0['destroy'](),_0x29fe09;}class Me extends _0x3725c9{['options'];constructor(_0x8dde3,_0x4ff3c0){super(_0x8dde3),this['options']=_0x4ff3c0,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'](_0x5469b8,_0x193082){if(!this['element'])return;const _0x1b7ca5=[];for(const [_0x4768ed,_0x5cd12a]of _0x5469b8){const _0x39310d=document['createElement']('div');_0x39310d['setAttribute']('data-ck-root-name',_0x4768ed),_0x39310d['className']=_0x5cd12a['classes']+'\x20ck-track-changes-preview__root-container',_0x39310d['innerHTML']=_0x5cd12a['content'],_0x1b7ca5['push'](_0x39310d);}_0x193082(this['element'],_0x1b7ca5),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2677d9{constructor(_0x288068){super(_0x288068),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3e93ae=this['editor'],_0x300bc4=_0x3e93ae['locale'],_0x1663ce=_0x3e93ae['plugins']['get']('Dialog');let _0x263316;const _0x36dbfc=function(_0x22ad92){const _0x39737c={};if('editables'in _0x22ad92['ui']['view']){for(const [_0x1829af,_0xfd129d]of Object['entries'](_0x22ad92['ui']['view']['editables']))_0x39737c[_0x1829af]=_0xfd129d['element'];}else _0x39737c[_0x22ad92['model']['document']['getRootNames']()[0x0]]=_0x22ad92['ui']['view']['editable']['element'];return _0x39737c;}(_0x3e93ae),_0x32bf54=function(_0x811f6a){let _0x5bda94=0x0;for(const _0x38286d of Object['values'](_0x811f6a))_0x5bda94=Math['max'](_0x5bda94,_0x38286d['getBoundingClientRect']()['width']);let _0x25fddc=0x0;for(const _0x1ac38f of Object['values'](_0x811f6a))_0x25fddc+=_0x1ac38f['getBoundingClientRect']()['height'];const _0x14f55a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xa3ae50=Math['min'](_0x25fddc,_0x14f55a);return{'width':_0x5bda94,'height':_0xa3ae50};}(_0x36dbfc);_0x1663ce['show']({'id':'finalContentPreview','title':o(_0x300bc4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x300bc4,{'dialogRects':_0x32bf54}),'onHide':()=>{_0x263316['detachFromDom']();},'onShow':()=>{_0x3e93ae['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x43c2d0=>{const _0x80fc2c=this['_standarizeRootsData'](_0x43c2d0,_0x3e93ae,_0x36dbfc);_0x1663ce['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x80fc2c,_0x3e93ae['config']['get']('trackChanges.preview.renderFunction'));}),_0x263316=new _0xfa1121(_0x300bc4,[_0x1663ce['view']]),_0x263316['attachToDom'](),_0x263316['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3e93ae['once']('destroy',()=>{_0x263316['detachFromDom']();});const _0x28ab23=_0x1663ce['view']['headerView']['class'];_0x1663ce['view']['headerView']['class']=_0x28ab23?_0x28ab23+'\x20ck-reset_all':'ck-reset_all',_0x1663ce['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1663ce['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xd5ce=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x574528=_0xd5ce['previewMode'],_0x22a84f={};if('$labels'===_0x574528){for(const _0x1acc29 of _0xd5ce['getMergeFieldsIds']())_0x22a84f[_0x1acc29]=_0xd5ce['getLabel'](_0x1acc29)||_0x1acc29;}else{const _0x25c1f2='$defaultValues'===_0x574528?_0xd5ce['getDefaultValues']():_0xd5ce['getDataSetValues'](_0x574528,!0x0);for(const _0x4d2ceb of Object['entries'](_0x25c1f2)){const [_0x4da46e,_0x224e9c]=_0x4d2ceb;_0x22a84f[_0x4da46e]=null!==_0x224e9c?_0x224e9c:_0xd5ce['getLabel'](_0x4da46e)||_0x4da46e;}}return{'mergeFieldsData':_0x22a84f};}['_standarizeRootsData'](_0x43a83a,_0x34c112,_0x53159c){let _0x2492c6;if('string'==typeof _0x43a83a){const _0x5d42d5=_0x34c112['model']['document']['getRootNames']()[0x0];_0x2492c6={[_0x5d42d5]:_0x43a83a};}else _0x2492c6=_0x43a83a;const _0x5ac50e=this['_fixMediaEmbeds'](_0x2492c6,_0x34c112),_0x403ff6=function(_0xac0fce,_0x441e83){for(const [_0x2d150a,_0x1cb761]of _0xac0fce)_0x1cb761['classes']=_0x441e83[_0x2d150a]['classList']['value']['replace']('ck-focused','');return _0xac0fce;}(this['_sortRoots'](_0x34c112)['reduce']((_0x2cf503,_0x431c45)=>(_0x2cf503['push']([_0x431c45,{'content':_0x5ac50e[_0x431c45],'classes':''}]),_0x2cf503),[]),_0x53159c);return _0x403ff6;}['_fixMediaEmbeds'](_0x4eba03,_0x1e5697){if(!_0x1e5697['plugins']['has']('MediaEmbedEditing'))return _0x4eba03;const _0x9ce8f7=_0x1e5697['plugins']['get']('MediaEmbedEditing');for(const [_0x25eee,_0x28bc01]of Object['entries'](_0x4eba03)){const _0x426060=document['createElement']('div');_0x426060['innerHTML']=_0x28bc01,(_0x426060['querySelectorAll']('figure.media')['forEach'](_0x3ff8c7=>{const _0x24df1f=_0x3ff8c7['querySelector']('oembed');if(_0x24df1f){const _0x291fa4=_0x24df1f['getAttribute']('url');if(_0x291fa4){const _0x1af9f2=_0x9ce8f7['registry']['getMediaViewElement'](new _0x2db659(_0x1e5697['editing']['view']['document']),_0x291fa4,{'elementName':'','renderForEditingView':!0x0}),_0x180750=document['createElement']('div');_0x180750['classList']['add']('ck-media__wrapper'),_0x1af9f2['render'](_0x180750,_0x1e5697['editing']['view']['domConverter']),_0x24df1f['replaceWith'](_0x180750);}}}),_0x4eba03[_0x25eee]=_0x426060['innerHTML']);}return _0x4eba03;}['_sortRoots'](_0x47bb50){if(!function(_0x3210e6){return void 0x0!==_0x3210e6['getRootsAttributes'];}(_0x47bb50))return _0x47bb50['model']['document']['getRootNames']();const _0x57503c=[],_0x5d6582=new Map();for(const _0x4d568d of _0x47bb50['model']['document']['getRootNames']()){const _0x25717d=_0x47bb50['editing']['view']['getDomRoot'](_0x4d568d)['getClientRects']()['item'](0x0);_0x57503c['push'](_0x4d568d),_0x5d6582['set'](_0x4d568d,_0x25717d);}return _0x57503c['sort']((_0x559edf,_0x2545c3)=>{const _0x1e70c1=_0x5d6582['get'](_0x559edf),_0x1bb481=_0x5d6582['get'](_0x2545c3);return _0x1e70c1['y']-_0x1bb481['y']||_0x1e70c1['x']-_0x1bb481['x'];}),_0x57503c;}}class Ue extends _0x5c469f{static get['requires'](){return[re,_0xc55595];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ee4ec){super(_0x5ee4ec),_0x5ee4ec['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5ee4ec['config']['define']('trackChanges.preview.renderFunction',(_0x199abe,_0x2db338)=>{for(const _0xd6eded of _0x2db338)_0x199abe['appendChild'](_0xd6eded);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|