@ckeditor/ckeditor5-track-changes 47.5.0-alpha.7 → 47.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +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
|
-
_0x4ecca1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4722a7,_0x29d9af){super(),this['id']=_0x29d9af['id'],this['type']=_0x29d9af['type'],this['subType']=_0x29d9af['subType']||null,this['author']=_0x29d9af['author'],this['creator']=_0x29d9af['creator']||_0x29d9af['author'],this['isExternal']=Boolean(_0x29d9af['attributes']&&_0x29d9af['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x29d9af['originalSuggestionId']||null,this['_model']=_0x4722a7,this['_onAccept']=_0x29d9af['onAccept'],this['_onDiscard']=_0x29d9af['onDiscard'],this['_onAttributesChange']=_0x29d9af['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29d9af['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 _0x563a17=this;for(;_0x563a17['previous'];)_0x563a17=_0x563a17['previous'];return _0x563a17;}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'](_0x38bb6d){this['_markerNames']['add'](_0x38bb6d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x49861b=>this['_model']['markers']['get'](_0x49861b))['filter'](_0x1ddc0c=>_0x1ddc0c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1cdb00=>{for(const _0x44ff26 of this['getMarkers']())_0x1cdb00['removeMarker'](_0x44ff26);}),this['_markerNames']['clear']();}['removeMarker'](_0x2c898b){this['_model']['change'](_0x173422=>{_0x173422['removeMarker'](_0x2c898b);}),this['_markerNames']['delete'](_0x2c898b);}['addRange'](_0x4285ad){const _0x1184a1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x1184a1),this['_model']['change'](_0x450f0a=>{_0x450f0a['addMarker'](_0x1184a1,{'range':_0x4285ad,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x214acc){for(const _0x257d11 of this['getRanges']())if(_0x257d11['isIntersecting'](_0x214acc))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2c8efb=>_0x2c8efb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1b8509,_0x4d22a2)=>[..._0x1b8509,..._0x4d22a2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x49d54a=this['getRanges']();if(0x1!=_0x49d54a['length'])return null;const _0x3d8d2d=_0x49d54a[0x0],_0x2b92c2=_0x3d8d2d['start']['nodeAfter'],_0x4702ad=_0x3d8d2d['end']['nodeBefore'];return _0x2b92c2 instanceof _0x12a260?_0x2b92c2!=_0x4702ad?null:_0x2b92c2: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 _0x1542e8=[];let _0x2a63c0=this['head'];for(;_0x2a63c0;)_0x1542e8['push'](_0x2a63c0),_0x2a63c0=_0x2a63c0['next'];return _0x1542e8;}['setAttribute'](_0x35cdbc,_0x2b64a9){const _0x400930=_0x2c2b37(this['attributes']);_0x204034(_0x400930,_0x35cdbc,_0x2b64a9),_0x199067(_0x400930,this['attributes'])||(this['attributes']=_0x400930,this['_onAttributesChange'](_0x400930));}['removeAttribute'](_0x351c87){const _0x527b43=_0x2c2b37(this['attributes']);_0x522ac4(_0x527b43,_0x351c87),_0x199067(_0x527b43,this['attributes'])||(this['attributes']=_0x527b43,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 _0x373a37()['substr'](0x1,0x5);}}function o(_0x15591f,_0x12086b,_0x151810){const _0x5549c9=_0x15591f['t'],t=_0x15591f['t'];switch(_0x12086b){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',_0x151810);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x151810);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x151810);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x151810);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x151810);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',_0x151810);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x151810);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',_0x151810);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x151810);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x151810);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x151810);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x151810);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x151810);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x151810);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x151810);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x151810);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x151810);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x151810);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x151810);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x151810);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x151810);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x151810);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x151810);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x151810);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x151810);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'},_0x151810);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x151810);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x151810);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x151810);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x151810);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x151810);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x151810);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x151810);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'},_0x151810);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x151810);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x151810);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x151810);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x151810);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'},_0x151810);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x151810);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'},_0x151810);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x151810);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x151810);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'},_0x151810);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x151810);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'},_0x151810);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x151810);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x151810);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x151810);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x151810);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x151810);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'},_0x151810);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x151810);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 _0x5549c9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x151810);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5549c9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x151810);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x151810);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'},_0x151810);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'},_0x151810);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'},_0x151810);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x12086b;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xa85d05,_0x477263){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xa85d05,this['_locale']=_0x477263;}['getDescriptions'](_0x3c6657){const _0x23cae2=[],_0x5225f5=new Set(),_0x41aabc=new Set();for(let _0x3ab7aa=0x0;_0x3ab7aa<_0x3c6657['length'];_0x3ab7aa++){const _0x389dcd=_0x3c6657[_0x3ab7aa];if(!_0x389dcd['isInContent'])continue;const _0x58d2d2=this['_handleCustomCallbackDescription'](_0x389dcd);if(_0x58d2d2){if(null!=_0x389dcd['subType']){if(_0x5225f5['has'](_0x389dcd['subType']))continue;_0x5225f5['add'](_0x389dcd['subType']);}_0x23cae2['push'](_0x58d2d2);}else{if('attribute'==_0x389dcd['type']){const _0x3dafe8=_0x389dcd['data']['key'];if(_0x41aabc['has'](_0x3dafe8))continue;_0x41aabc['add'](_0x389dcd['data']['key']),_0x3dafe8==m?this['_handleRenameSuggestionDescription'](_0x23cae2,_0x389dcd):this['_handleAttributeSuggestionDescription'](_0x23cae2,_0x389dcd);continue;}'insertion'!=_0x389dcd['type']&&'deletion'!=_0x389dcd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x23cae2,_0x389dcd,_0x3c6657[_0x3ab7aa+0x1]);}}return this['_resolveDescriptionItems'](_0x23cae2);}['registerDescriptionCallback'](_0x435020){this['_customCallbacks']['push'](_0x435020);}['registerElementLabel'](_0x5ef429,_0x2d8bea,_0x43149b=_0x242a53['normal']){'function'==typeof _0x5ef429?_0x513c45(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5ef429,'label':_0x2d8bea,'priority':_0x43149b}):this['_itemLabels']['set'](_0x5ef429,_0x2d8bea);}['registerAttributeLabel'](_0x29c6c3,_0x23f3bd){this['_attributeLabels']['set'](_0x29c6c3,_0x23f3bd);}['getItemLabel'](_0x1e3b87,_0x231ad2=0x1){let _0xca6192;for(const _0x437346 of this['_itemLabelsCallbacks'])if(_0x437346['matchingCallback'](_0x1e3b87)){_0xca6192=_0x437346['label'];break;}return _0xca6192||(_0xca6192=this['_itemLabels']['get'](_0x1e3b87['name'])),_0xca6192?_0xca6192(_0x231ad2):0x1!==_0x231ad2?_0x231ad2+'\x20'+_0x1e3b87['name']+'s':''+_0x1e3b87['name'];}['_addDescriptionItems'](_0x36e13e,_0x24a85a){const _0x3c1f83=_0x24a85a['getFirstRange']()['getWalker'](),_0x616917='insertion'==_0x24a85a['type']?'add':'remove';for(const _0x5290db of _0x3c1f83){const _0x4e42ae=_0x5290db['item'],_0x1b226b=_0x36e13e[_0x36e13e['length']-0x1];if(_0x4e42ae['is']('$textProxy'))_0x1b226b&&_0x1b226b['type']['indexOf']('Container')>-0x1&&_0x36e13e['pop'](),_0x1b226b&&'text'==_0x1b226b['type']?_0x1b226b[_0x616917]+=_0x4e42ae['data']:_0x36e13e['push']({'type':'text','add':'add'==_0x616917?_0x4e42ae['data']:'','remove':'remove'==_0x616917?_0x4e42ae['data']:''});else{if(this['_schema']['isObject'](_0x4e42ae)){const _0x2243d0=_0x4e42ae;if(_0x1b226b&&_0x1b226b['type']['indexOf']('Container')>-0x1&&_0x36e13e['pop'](),'elementEnd'==_0x5290db['type'])continue;_0x1b226b&&_0x1b226b['type']==_0x616917+'Object'&&_0x1b226b['element']['name']==_0x2243d0['name']?_0x1b226b['quantity']++:_0x36e13e['push']({'type':_0x616917+'Object','element':_0x2243d0,'quantity':0x1}),_0x3c1f83['skip'](_0x452d47=>!('elementEnd'==_0x452d47['type']&&_0x452d47['item']==_0x4e42ae));}else{if(this['_schema']['checkChild'](_0x4e42ae,'$text')||_0x4e42ae['is']('element','softBreak')){const _0x470ad0=_0x4e42ae;if('add'==_0x616917&&'elementStart'==_0x5290db['type']||'remove'==_0x616917&&'elementEnd'==_0x5290db['type'])continue;if(_0x1b226b&&-0x1==_0x1b226b['type']['indexOf']('Container')){'text'==_0x1b226b['type']&&(_0x1b226b[_0x616917]+='\x0a');continue;}let _0x536e40;if(_0x536e40='add'==_0x616917?_0x470ad0['nextSibling']&&!this['_schema']['isObject'](_0x470ad0['nextSibling'])?_0x470ad0['nextSibling']:null:_0x470ad0['previousSibling']&&!this['_schema']['isObject'](_0x470ad0['previousSibling'])?_0x470ad0['previousSibling']:null,_0x470ad0['isEmpty']||_0x536e40&&_0x536e40['isEmpty']){const _0x360e2f=_0x536e40&&_0x536e40['isEmpty']?_0x536e40:_0x470ad0;_0x1b226b&&_0x1b226b['type']==_0x616917+'EmptyContainer'&&_0x1b226b['element']['name']==_0x360e2f['name']?_0x1b226b['quantity']++:_0x36e13e['push']({'type':_0x616917+'EmptyContainer','element':_0x360e2f,'quantity':0x1});}else _0x36e13e['push']({'type':_0x616917+'Container','element':_0x470ad0});}}}}}['_resolveDescriptionItems'](_0x472801){const _0xd947df=this['_locale'],_0x48933b=[],_0x16db9b=[],_0x4b9aad=[];for(const _0x2ce9aa of _0x472801)switch(_0x2ce9aa['type']){case'text':if(_0x2ce9aa['add']=_0x2ce9aa['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2ce9aa['remove']=_0x2ce9aa['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2ce9aa['add']&&''!=_0x2ce9aa['remove']){_0x48933b['push']({'type':'replace','content':o(_0xd947df,'REPLACE_TEXT',['\x22'+_0x2ce9aa['remove']+'\x22','\x22'+_0x2ce9aa['add']+'\x22'])});continue;}if(null!=_0x2ce9aa['add']['match'](/^ +$/)){_0x48933b['push']({'type':'insertion','content':o(_0xd947df,'*Insert:*\x20%0',o(_0xd947df,'ELEMENT_SPACE',_0x2ce9aa['add']['length']))});continue;}if(null!=_0x2ce9aa['remove']['match'](/^ +$/)){_0x48933b['push']({'type':'deletion','content':o(_0xd947df,'*Remove:*\x20%0',o(_0xd947df,'ELEMENT_SPACE',_0x2ce9aa['remove']['length']))});continue;}if(''!=_0x2ce9aa['add']){_0x48933b['push']({'type':'insertion','content':o(_0xd947df,'*Insert:*\x20%0','\x22'+_0x2ce9aa['add']+'\x22')});continue;}_0x48933b['push']({'type':'deletion','content':o(_0xd947df,'*Remove:*\x20%0','\x22'+_0x2ce9aa['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48933b['push']({'type':'insertion','content':o(_0xd947df,'*Insert:*\x20%0',this['getItemLabel'](_0x2ce9aa['element'],_0x2ce9aa['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48933b['push']({'type':'deletion','content':o(_0xd947df,'*Remove:*\x20%0',this['getItemLabel'](_0x2ce9aa['element'],_0x2ce9aa['quantity']))});continue;case'addContainer':_0x48933b['push']({'type':'insertion','content':o(_0xd947df,'*Split:*\x20%0',this['getItemLabel'](_0x2ce9aa['element'],_0x2ce9aa['quantity']))});continue;case'removeContainer':_0x48933b['push']({'type':'deletion','content':o(_0xd947df,'*Merge:*\x20%0',this['getItemLabel'](_0x2ce9aa['element'],_0x2ce9aa['quantity']))});continue;case'addFormat':_0x16db9b['push'](_0x2ce9aa['key']);continue;case'removeFormat':_0x4b9aad['push'](_0x2ce9aa['key']);continue;default:_0x48933b['push'](_0x2ce9aa);}if(_0x16db9b['length']){const _0x20d035=_0x16db9b['map'](_0x1bddc4=>this['_attributeLabels']['has'](_0x1bddc4)?this['_attributeLabels']['get'](_0x1bddc4):_0x1bddc4)['join'](',\x20');_0x48933b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x20d035)});}if(_0x4b9aad['length']){const _0x82f086=_0x4b9aad['map'](_0x1f422e=>this['_attributeLabels']['has'](_0x1f422e)?this['_attributeLabels']['get'](_0x1f422e):_0x1f422e)['join'](',\x20');_0x48933b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x82f086)});}return _0x48933b;}['_handleCustomCallbackDescription'](_0x45a9c6){for(const _0xf964a8 of this['_customCallbacks']){const _0xc74db0=_0xf964a8(_0x45a9c6);if(_0xc74db0&&'type'in _0xc74db0)return _0xc74db0;}}['_handleAttributeSuggestionDescription'](_0x321945,_0x3522eb){const _0x5d1a4d=_0x3522eb['data'],_0xfced5=void 0x0===_0x5d1a4d['newValue']?'removeFormat':'addFormat';_0x321945['push']({'type':_0xfced5,'key':_0x5d1a4d['key']});}['_handleRenameSuggestionDescription'](_0x44cf20,_0x482e14){_0x44cf20['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x482e14['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x492d9d,_0x21c951,_0x9d63f8){if(this['_addDescriptionItems'](_0x492d9d,_0x21c951),_0x9d63f8&&_0x9d63f8['getFirstRange']()&&!_0x21c951['getFirstRange']()['end']['isEqual'](_0x9d63f8['getFirstRange']()['start'])){const _0x6cb014=_0x492d9d[_0x492d9d['length']-0x1],_0x2a3c4f='insertion'==_0x21c951['type']?'add':'remove';_0x6cb014&&'text'==_0x6cb014['type']&&(_0x6cb014[_0x2a3c4f]+='\x0a');}}}class R extends _0x2699f5{['afterInit'](){const _0x1a9f76=this['editor'],_0x37104c=_0x1a9f76['plugins']['get']('TrackChangesEditing');_0x1a9f76['commands']['get']('showAIAssistant')&&_0x37104c['enableCommand']('showAIAssistant');}}class T extends _0x2699f5{['afterInit'](){const _0x52e490=this['editor'],_0x9193ff=_0x52e490['plugins']['get']('TrackChangesEditing');_0x52e490['commands']['get']('toggleAi')&&_0x9193ff['enableCommand']('toggleAi');}}class E extends _0x2699f5{['afterInit'](){const _0x420862=this['editor'],_0x2c33d6=_0x420862['plugins']['get']('TrackChangesEditing');_0x420862['commands']['get']('aiQuickAction')&&_0x2c33d6['enableCommand']('aiQuickAction');}}class U extends _0x2699f5{['afterInit'](){const _0x2995db=this['editor'],_0x488b88=_0x2995db['locale'];if(!_0x2995db['plugins']['has']('AlignmentEditing'))return;const _0x468924=_0x2995db['plugins']['get']('TrackChangesEditing');_0x468924['enableDefaultAttributesIntegration']('alignment'),_0x468924['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x488b88,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a13b0=this['editor'],_0xa216c2=_0x5a13b0['locale'];_0x5a13b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x143479=>{if('formatBlock'!=_0x143479['type'])return;const {data:_0x53e8a8}=_0x143479;if(_0x53e8a8&&'alignment'==_0x53e8a8['commandName']){const _0x5d7279=_0x53e8a8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xa216c2,'*Format:*\x20%0',function(_0x20f165){switch(_0x20f165){case'left':return o(_0xa216c2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xa216c2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xa216c2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xa216c2,'FORMAT_JUSTIFY_TEXT');}}(_0x5d7279))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2699f5{['afterInit'](){const _0x4a90da=this['editor'],_0x2ba95c=_0x4a90da['plugins']['get']('TrackChangesEditing'),_0x3841ae=_0x4a90da['locale'];for(const _0x19b126 of ti){if(!_0x4a90da['plugins']['has'](_0x19b126))continue;const _0x2ab86c=_0x19b126['slice'](0x0,-0x7)['toLowerCase'](),_0x517243='FORMAT_'+_0x2ab86c['toUpperCase']();_0x2ba95c['enableDefaultAttributesIntegration'](_0x2ab86c),_0x2ba95c['descriptionFactory']['registerAttributeLabel'](_0x2ab86c,o(_0x3841ae,_0x517243));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57a99d=this['editor'],_0x2fa4b2=_0x57a99d['locale'],_0x551ce5=_0x57a99d['plugins']['get']('TrackChangesEditing');function _0x48955d(_0x52e69c,_0x6fc9f1){_0x551ce5['descriptionFactory']['registerDescriptionCallback'](_0x45ce55=>{if('formatInline'!=_0x45ce55['type'])return;const {data:_0x529819}=_0x45ce55;return _0x529819&&_0x529819['commandName']===_0x52e69c?_0x529819['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fa4b2,'*Format:*\x20%0',_0x6fc9f1)}:{'type':'format','content':o(_0x2fa4b2,'*Remove\x20format:*\x20%0',_0x6fc9f1)}:void 0x0;});}_0x48955d('bold',o(_0x2fa4b2,'FORMAT_BOLD')),_0x48955d('italic',o(_0x2fa4b2,'FORMAT_ITALIC')),_0x48955d('underline',o(_0x2fa4b2,'FORMAT_UNDERLINE')),_0x48955d('code',o(_0x2fa4b2,'FORMAT_CODE')),_0x48955d('strikethrough',o(_0x2fa4b2,'FORMAT_STRIKETHROUGH')),_0x48955d('subscript',o(_0x2fa4b2,'FORMAT_SUBSCRIPT')),_0x48955d('superscript',o(_0x2fa4b2,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2699f5{['afterInit'](){const _0x3625f9=this['editor'],_0x1147e3=_0x3625f9['locale'];if(!_0x3625f9['plugins']['has']('BlockQuoteEditing'))return;const _0x2229fc=_0x3625f9['plugins']['get']('TrackChangesEditing'),_0x1d6d67=this['editor']['commands']['get']('blockQuote');_0x2229fc['enableCommand']('blockQuote',(_0x3ba270,_0x3bcd9b={})=>{const _0x71c031=this['editor']['model']['document']['selection'],_0xc74db4=_0x3bcd9b&&void 0x0!==_0x3bcd9b['forceValue']?_0x3bcd9b['forceValue']:!_0x1d6d67['value'];let _0x3c673a=[];if(_0xc74db4){const _0xd10825=Array['from'](_0x71c031['getSelectedBlocks']())['filter'](_0x2ba03e=>oo(_0x2ba03e)||function(_0x50406d,_0x45ca00){const _0x4f324e=_0x45ca00['checkChild'](_0x50406d['parent'],'blockQuote'),_0x46e345=_0x45ca00['checkChild'](['$root','blockQuote'],_0x50406d);return _0x4f324e&&_0x46e345;}(_0x2ba03e,this['editor']['model']['schema']));_0x3c673a=to(_0xd10825,_0x3625f9['model']);}else{const _0x18ae8f=Array['from'](_0x71c031['getSelectedBlocks']())['filter'](_0x3719de=>oo(_0x3719de));_0x3c673a=to(_0x18ae8f,_0x3625f9['model']);}_0x3625f9['model']['change'](()=>{for(const _0x36c556 of _0x3c673a)_0x2229fc['markBlockFormat'](_0x36c556,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xc74db4}]});});}),_0x2229fc['descriptionFactory']['registerDescriptionCallback'](_0x1e643a=>{const {data:_0x3fcf0f}=_0x1e643a;if(_0x3fcf0f&&'blockQuote'==_0x3fcf0f['commandName']){const _0x3b0dcf=o(_0x1147e3,'ELEMENT_BLOCK_QUOTE');return _0x3fcf0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1147e3,'*Set\x20format:*\x20%0',_0x3b0dcf)}:{'type':'format','content':o(_0x1147e3,'*Remove\x20format:*\x20%0',_0x3b0dcf)};}});}}function oo(_0x526709){return'blockQuote'==_0x526709['parent']['name'];}class G extends _0x2699f5{['afterInit'](){const _0x4e1d09=this['editor'],_0x28b952=_0x4e1d09['locale'],_0x24616d=_0x4e1d09['plugins']['get']('TrackChangesEditing');_0x4e1d09['plugins']['has']('BookmarkEditing')&&(_0x24616d['enableCommand']('insertBookmark'),_0x24616d['enableDefaultAttributesIntegration']('updateBookmark'),_0x24616d['descriptionFactory']['registerDescriptionCallback'](_0x15c8b9=>{if('insertion'!=_0x15c8b9['type']&&'deletion'!=_0x15c8b9['type']&&'attribute'!=_0x15c8b9['type'])return;const _0x4cbace=_0x15c8b9['getContainedElement']();if(null==_0x4cbace)return;if(!_0x4cbace['is']('element','bookmark'))return;const _0x1a0cb5=_0x4cbace['getAttribute']('bookmarkId');if('insertion'==_0x15c8b9['type'])return{'type':'insertion','content':o(_0x28b952,'*Insert:*\x20%0','\x22'+_0x1a0cb5+'\x22\x20'+o(_0x28b952,'ELEMENT_BOOKMARK'))};if('deletion'==_0x15c8b9['type'])return{'type':'deletion','content':o(_0x28b952,'*Remove:*\x20%0','\x22'+_0x1a0cb5+'\x22\x20'+o(_0x28b952,'ELEMENT_BOOKMARK'))};const {data:_0x372067}=_0x15c8b9;if(!_0x372067||'bookmarkId'!=_0x372067['key'])return;return{'type':'format','content':o(_0x28b952,'*Set\x20bookmark:*\x20%0','\x22'+_0x372067['newValue']+'\x22')};}));}}class L extends _0x2699f5{['afterInit'](){const _0x363485=this['editor'];_0x363485['plugins']['has']('CaseChange')&&(_0x363485['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x363485['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x363485['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2699f5{['afterInit'](){const _0x482b59=this['editor'];_0x482b59['commands']['get']('ckbox')&&_0x482b59['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2699f5{['afterInit'](){const _0x5edab0=this['editor'];if(!_0x5edab0['plugins']['has']('CodeBlock'))return;const _0x3e0bd5=_0x5edab0['plugins']['get']('TrackChangesEditing'),_0x4d2b14=_0x5edab0['locale'],_0x1d4b9c=_0x5edab0['config']['get']('codeBlock')['languages'],_0xb3ea45=_0x5edab0['commands']['get']('codeBlock');_0x3e0bd5['enableCommand']('indentCodeBlock'),_0x3e0bd5['enableCommand']('outdentCodeBlock'),_0x3e0bd5['enableCommand']('codeBlock',(_0x34f34d,_0x5f0764={})=>{const _0x7e7e9f=_0x5edab0['model'],_0x2ac85b=_0x5edab0['model']['document']['selection'],_0x53347b=_0x5f0764&&void 0x0!==_0x5f0764['forceValue']?_0x5f0764['forceValue']:!_0xb3ea45['value'];let _0x96cab2;_0x5f0764['language']||(_0x5f0764['language']=_0x1d4b9c[0x0]['language']),_0x96cab2=_0x53347b?Array['from'](_0x2ac85b['getSelectedBlocks']())['filter'](_0x7cf9c=>co(_0x7cf9c)||function(_0x1d4d79,_0x1ca800){if(_0x1d4d79['is']('rootElement')||_0x1ca800['isLimit'](_0x1d4d79))return!0x1;return _0x1ca800['checkChild'](_0x1d4d79['parent'],'codeBlock');}(_0x7cf9c,_0x7e7e9f['schema'])):Array['from'](_0x2ac85b['getSelectedBlocks']())['filter'](_0x4ab75b=>co(_0x4ab75b));const _0x52a60f=to(_0x96cab2,_0x7e7e9f);_0x7e7e9f['change'](()=>{for(const _0x1af2ee of _0x52a60f)_0x3e0bd5['markBlockFormat'](_0x1af2ee,{'commandName':'codeBlock','commandParams':[{..._0x5f0764,'forceValue':_0x53347b}],'formatGroupId':'blockName'});});}),(_0x3e0bd5['descriptionFactory']['registerElementLabel']('codeBlock',_0x1d5b9c=>o(_0x4d2b14,'ELEMENT_CODE_BLOCK',_0x1d5b9c)),_0x3e0bd5['descriptionFactory']['registerDescriptionCallback'](_0x533de0=>{if('formatBlock'!=_0x533de0['type'])return;const _0x25f988=_0x4d2b14['t'],{data:_0x3a1b1b}=_0x533de0;if(!_0x3a1b1b||'codeBlock'!=_0x3a1b1b['commandName'])return;const _0x1eb5a9=_0x3a1b1b['commandParams'][0x0]['language'],_0x350340=_0x25f988(_0x1d4b9c['find'](_0x269fd1=>_0x269fd1['language']===_0x1eb5a9)['label'])['toLowerCase']();return _0x3a1b1b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d2b14,'*Set\x20format:*\x20%0',o(_0x4d2b14,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x350340+')')}:{'type':'format','content':o(_0x4d2b14,'*Remove\x20format:*\x20%0',o(_0x4d2b14,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x577666){return'codeBlock'==_0x577666['name'];}class z extends _0x2699f5{['afterInit'](){const _0x4bacf3=this['editor'];if(!_0x4bacf3['plugins']['has']('CommentsEditing'))return;_0x4bacf3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2699f5{static get['requires'](){return[_0x6cb917];}['init'](){const _0x2df6f7=this['editor'],_0x4d5d70=_0x2df6f7['plugins']['get']('TrackChangesEditing');_0x4d5d70['enableCommand']('delete');const _0xe47279=_0x2df6f7['commands']['get']('deleteForward');_0x4d5d70['enableCommand']('deleteForward',(_0x4a3b2c,_0x3ed7bc={})=>{const _0x350306=_0x2df6f7['model']['createSelection'](_0x2df6f7['model']['document']['selection']);_0x350306['isCollapsed']&&_0x2df6f7['model']['modifySelection'](_0x350306,{'direction':'forward','unit':_0x3ed7bc['unit']});const _0x200c96=_0x350306['getFirstRange'](),_0x24a2a1=_0x3eedc6['fromRange'](_0x200c96);let _0x1e1859;_0x4a3b2c(_0x3ed7bc),_0x1e1859='$graveyard'==_0x24a2a1['root']['rootName']?_0x2df6f7['model']['createRange'](_0x200c96['start']):_0x2df6f7['model']['createRange'](_0x24a2a1['start'],_0x24a2a1['end']),_0x24a2a1['detach'](),_0x2df6f7['model']['enqueueChange'](_0xe47279['buffer']['batch'],_0x2d5e61=>{_0xe47279['buffer']['lock'](),_0x2d5e61['setSelection'](_0x2d5e61['createRange'](_0x1e1859['end'])),_0xe47279['buffer']['unlock']();});});}}class W extends _0x2699f5{['afterInit'](){const _0x36f1b8=this['editor'];if(!_0x36f1b8['plugins']['has']('ListEditing'))return;const _0x2ca237=_0x36f1b8['locale'],_0x27eb93=_0x36f1b8['plugins']['get']('TrackChangesEditing'),_0x1bc5fd=_0x36f1b8['plugins']['has']('TodoListEditing'),_0x33ae2f=!!_0x36f1b8['config']['get']('list.multiBlock');function _0x434eea(_0x3ced7e){return{'type':'format','content':''+o(_0x2ca237,'*Set\x20format:*\x20%0',_0x3ced7e)};}function _0x2b4077(_0x1a7815){return{'type':'format','content':''+o(_0x2ca237,'*Remove\x20format:*\x20%0',_0x1a7815)};}_0x27eb93['enableDefaultAttributesIntegration']('numberedList'),_0x27eb93['enableDefaultAttributesIntegration']('bulletedList'),_0x27eb93['enableDefaultAttributesIntegration']('customNumberedList'),_0x27eb93['enableDefaultAttributesIntegration']('customBulletedList'),_0x27eb93['enableDefaultAttributesIntegration']('indentList'),_0x27eb93['enableDefaultAttributesIntegration']('outdentList'),_0x27eb93['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x27eb93['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x33ae2f&&(_0x27eb93['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x27eb93['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1bc5fd&&(_0x27eb93['enableDefaultAttributesIntegration']('todoList'),_0x27eb93['enableDefaultAttributesIntegration']('checkTodoList'),_0x27eb93['descriptionFactory']['registerDescriptionCallback'](_0x278445=>{const {data:_0xf8525}=_0x278445;if(_0xf8525&&'todoListChecked'==_0xf8525['key'])return{'type':'format','content':_0xf8525['newValue']?o(_0x2ca237,'*Check\x20item*'):o(_0x2ca237,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x11ae56=>{if(_0x11ae56['batch']['isUndo'])return!0x1;let _0x324d71=!0x1;const _0x3f9fa5=_0x27eb93['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5de15f=>'todoListChecked'===_0x27eb93['_getAttributeKey'](_0x5de15f));for(const _0x461cb1 of _0x3f9fa5){'todo'!=_0x461cb1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x27eb93['_findSuggestions'](_0x461cb1['getFirstRange'](),'attribute')['find'](_0x2f773f=>'listType'===_0x27eb93['_getAttributeKey'](_0x2f773f['suggestion']))||(_0x11ae56['removeMarker'](_0x461cb1['getFirstMarker']()),_0x324d71=!0x0));}return _0x324d71;})),_0x27eb93['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2ca237,'FORMAT_INDENT'));const _0x4856d8={'type':'format','content':''};_0x27eb93['descriptionFactory']['registerDescriptionCallback'](_0x5c4d6a=>{const {data:_0x55c2b8}=_0x5c4d6a;if(!_0x55c2b8||'listType'!=_0x55c2b8['key'])return;let _0x4db0c8=_0x5c4d6a['head'];for(;_0x4db0c8;){if(_0x4db0c8['data']&&(('listStyle'==_0x4db0c8['data']['key']||'listMarkerStyle'==_0x4db0c8['data']['key'])&&(_0x4db0c8['data']['newValue']&&'default'!=_0x4db0c8['data']['newValue']||'default'!=_0x4db0c8['data']['oldValue']&&!_0x55c2b8['newValue'])||!_0x33ae2f&&_0x4db0c8['data']['key']==m))return _0x4856d8;_0x4db0c8=_0x4db0c8['next'];}if(null==_0x55c2b8['newValue'])switch(_0x55c2b8['oldValue']){case'bulleted':return _0x2b4077(o(_0x2ca237,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b4077(o(_0x2ca237,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b4077(o(_0x2ca237,'ELEMENT_TODO_LIST'));}switch(_0x55c2b8['newValue']){case'bulleted':return _0x434eea(o(_0x2ca237,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x434eea(o(_0x2ca237,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x434eea(o(_0x2ca237,'ELEMENT_TODO_LIST'));}}),_0x27eb93['descriptionFactory']['registerDescriptionCallback'](_0x50fae7=>{const {data:_0x2bea3c}=_0x50fae7;if(_0x2bea3c&&'listIndent'==_0x2bea3c['key'])return null==_0x2bea3c['newValue']||null==_0x2bea3c['oldValue']&&0x0==_0x2bea3c['newValue']?_0x4856d8:void 0x0;}),_0x27eb93['descriptionFactory']['registerDescriptionCallback'](_0x32c68b=>{if('attribute'!=_0x32c68b['type'])return;const {data:_0x36e710}=_0x32c68b;if(!_0x36e710||'listItemId'!=_0x36e710['key'])return;const _0x2bc885=Te(_0x32c68b);return'newValue'==_0x2bc885?{'type':'format','content':o(_0x2ca237,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2bc885?{'type':'format','content':o(_0x2ca237,'*Split:*\x20list\x20item')}:_0x4856d8;}),_0x36f1b8['model']['document']['registerPostFixer'](_0x2de925=>this['listItemIdFixer'](_0x2de925)),_0x36f1b8['model']['document']['registerPostFixer'](_0x497dd4=>this['noTrackChangesFixer'](_0x497dd4)),_0x36f1b8['model']['document']['on']('change:data',(_0x53d2f8,_0x462a26)=>{if(_0x462a26['isUndo']||!_0x462a26['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x561bc5){if(_0x561bc5['batch']['isUndo']||!_0x561bc5['batch']['isLocal'])return!0x1;let _0x3e49fc=!0x1;const _0x295dc2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x286e4e=>_0x286e4e['data']&&'listItemId'==_0x286e4e['data']['key'])['filter'](_0x50126d=>_0x50126d['data']['newValue']&&_0x50126d['data']['oldValue']);for(const _0x5c48fe of _0x295dc2)Te(_0x5c48fe)||(_0x561bc5['removeMarker'](_0x5c48fe['getFirstMarker']()),_0x3e49fc=!0x0);return _0x3e49fc;}['noTrackChangesFixer'](_0x110758){if(_0x110758['batch']['isUndo']||!_0x110758['batch']['isLocal'])return!0x1;const _0x3a2017=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3a2017['trackChangesCommand']['value'])return!0x1;let _0x379fb3=!0x1;const _0x33cc27=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x327f9e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x209770=>'attribute'==_0x209770['type'])['filter'](_0xf150fe=>_0x33cc27['includes'](_0xf150fe['attributeKey']));if(0x0==_0x327f9e['length'])return _0x379fb3;for(const _0x2ed614 of _0x327f9e){const _0x1b4978=_0x3a2017['_findSuggestions'](_0x2ed614['range'],'attribute')['filter'](_0x4b5160=>!_0x4b5160['meta']['isNextTo'])['map'](_0x28a738=>_0x28a738['suggestion'])['filter'](_0x5df50a=>{const _0x4376e8=_0x3a2017['_getAttributeKey'](_0x5df50a);return _0x33cc27['includes'](_0x4376e8);});if(_0x1b4978['length']){for(const _0x1c903e of _0x1b4978)_0x110758['removeMarker'](_0x1c903e['getFirstMarker']());_0x379fb3=!0x0;}}return _0x379fb3;}['assureChains'](){const _0x368cfd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ee99c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5006a9;const _0x50b5ba=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd1e7a3=>{if(_0xd1e7a3['data']['oldRange']||!_0xd1e7a3['data']['newRange'])return null;if(!_0xd1e7a3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x48f76e}=_0x368cfd['_splitMarkerName'](_0xd1e7a3['name']);if(!_0x368cfd['hasSuggestion'](_0x48f76e))return null;const _0x458f3a=_0x368cfd['getSuggestion'](_0x48f76e);return _0x1ee99c['includes'](_0x458f3a['data']['key']);})['map'](_0x38ef28=>{const {id:_0x2233a5}=_0x368cfd['_splitMarkerName'](_0x38ef28['name']),_0x26d861=_0x368cfd['getSuggestion'](_0x2233a5);return _0x5006a9=_0x26d861['attributes']['groupId'],_0x26d861['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x50b5ba['size'])return;const _0x12b069=_0x368cfd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49ddfd=>'attribute'==_0x49ddfd['type']&&_0x49ddfd['data']&&_0x1ee99c['includes'](_0x49ddfd['data']['key'])&&_0x49ddfd['attributes']['groupId']!=_0x5006a9)['map'](_0x167788=>({'listItem':_0x167788['getFirstRange']()['start']['nodeAfter'],'groupId':_0x167788['attributes']['groupId']})),_0x3760fa=new Set();for(const {groupId:_0x2a9f6e,listItem:_0x30c563}of _0x12b069)_0x50b5ba['has'](_0x30c563)&&_0x3760fa['add'](_0x2a9f6e);for(const _0x2924d7 of _0x368cfd['getSuggestions']())_0x3760fa['has'](_0x2924d7['attributes']['groupId'])&&_0x2924d7['setAttribute']('groupId',_0x5006a9);}['_supportLegacySuggestions'](){const _0x4a2023=this['editor'],_0x3276f1=_0x4a2023['locale'],_0x283bf8=_0x4a2023['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x283bf8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3b8597,_0x32e839){const _0x4c4fcb=[];for(let _0x2a5841 of _0x3b8597)_0x2a5841['start']['nodeAfter']===_0x2a5841['end']['parent']&&(_0x2a5841=_0x4a2023['model']['createRange'](_0x4a2023['model']['createPositionAt'](_0x2a5841['start']['nodeAfter'],0x0))),_0x4c4fcb['push'](_0x2a5841);_0x4a2023['model']['change'](_0x183b4e=>{const _0x551f5c=_0x4a2023['model']['document']['selection'],_0x27c14d=Array['from'](_0x551f5c['getRanges']())['map'](_0x83377=>_0x3eedc6['fromRange'](_0x83377));_0x183b4e['setSelection'](_0x4c4fcb),_0x4a2023['commands']['get'](_0x32e839['commandName'])['refresh'](),_0x32e839['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a2023['execute'](_0x32e839['commandName'],..._0x32e839['commandParams']),_0x183b4e['setSelection'](_0x27c14d);for(const _0x44dee1 of _0x27c14d)_0x44dee1['detach']();});}),_0x283bf8['descriptionFactory']['registerElementLabel'](function(_0x1763be){const _0x54ecb3=!_0x4a2023['model']['schema']['isObject'](_0x1763be),_0x212be5=_0x1763be['previousSibling'],_0x421dfa=_0x1763be['nextSibling'],_0x2bbfef=_0x1763be['getAttribute']('listItemId'),_0x5130f7=!_0x212be5||_0x212be5['getAttribute']('listItemId')!==_0x2bbfef,_0x55bf63=!_0x421dfa||_0x421dfa['getAttribute']('listItemId')!==_0x2bbfef;return _0x54ecb3&&Boolean(_0x2bbfef)&&_0x5130f7&&_0x55bf63;},_0x294106=>o(_0x3276f1,'ELEMENT_LIST_ITEM',_0x294106));}['_registerLegacyDescription'](){const _0xad8bd5=this['editor'],_0x5a1623=_0xad8bd5['locale'];function _0x8147c(_0x2706f3){const _0x4c97c1=_0xad8bd5['commands']['get']('bulletedList')['value'],_0x55e358=_0xad8bd5['commands']['get']('numberedList')['value'];return'numberedList'===_0x2706f3?_0x4c97c1:_0x55e358;}_0xad8bd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf890eb){if('formatBlock'!=_0xf890eb['type'])return;const {data:_0x579f83}=_0xf890eb;if(!_0x579f83)return;let _0x19637e,_0x13a5f2,_0x1b0a0e,_0x1777c1;switch(_0x579f83['commandName']){case'bulletedList':_0x1b0a0e=_0x579f83['commandParams'][0x0]['forceValue'],_0x1777c1=_0x8147c(_0x579f83['commandName']),_0x19637e=_0x1b0a0e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1777c1&&_0xad8bd5['config']['get']('list.multiBlock')||(_0x19637e='*Change\x20to:*\x20%0'),_0x13a5f2={'type':'format','content':o(_0x5a1623,_0x19637e,o(_0x5a1623,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1b0a0e=_0x579f83['commandParams'][0x0]['forceValue'],_0x1777c1=_0x8147c(_0x579f83['commandName']),_0x19637e=_0x1b0a0e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1777c1&&_0xad8bd5['config']['get']('list.multiBlock')||(_0x19637e='*Change\x20to:*\x20%0'),_0x13a5f2={'type':'format','content':o(_0x5a1623,_0x19637e,o(_0x5a1623,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x19637e='*Indent:*\x20%0',_0x13a5f2={'type':'format','content':o(_0x5a1623,_0x19637e,o(_0x5a1623,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x19637e=function(_0xfda7fb){const _0x1c75a9=_0xfda7fb['getFirstRange']();let _0x4efd34=_0x1c75a9['start']['nodeAfter'];for(;_0x4efd34&&_0x1c75a9['containsItem'](_0x4efd34);){if(_0x4efd34['getAttribute']('listIndent')>0x0)return!0x1;_0x4efd34=_0x4efd34['nextSibling'];}return!0x0;}(_0xf890eb)?o(_0x5a1623,'*Format:*\x20remove\x20from\x20%0',o(_0x5a1623,function(_0x1f0903){return'ELEMENT_'+_0x1f0903['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf890eb))):o(_0x5a1623,'*Outdent:*\x20%0',o(_0x5a1623,'ELEMENT_LIST_ITEM')),_0x13a5f2={'type':'format','content':_0x19637e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x579f83['multipleBlocks']&&(_0x19637e='*Merge:*\x20%0',_0x13a5f2={'type':'deletion','content':o(_0x5a1623,_0x19637e,o(_0x5a1623,'ELEMENT_LIST_ITEM'))});}return _0x13a5f2;});}}function Te(_0x57c337){let _0x27c398=_0x57c337['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x27c398;){const _0x58c01e=_0x27c398['getAttribute']('listItemId');if(!_0x58c01e)return!0x1;if(_0x58c01e==_0x57c337['data']['newValue'])return'newValue';if(_0x58c01e==_0x57c337['data']['oldValue'])return'oldValue';_0x27c398=_0x27c398['previousSibling'];}return!0x1;}class H extends _0x2699f5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x10671c=this['editor']['config']['get']('list.properties'),_0x27b1fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x10671c['styles']&&_0x27b1fb['enableDefaultAttributesIntegration']('listStyle'),_0x10671c['reversed']&&_0x27b1fb['enableDefaultAttributesIntegration']('listReversed'),_0x10671c['startIndex']&&_0x27b1fb['enableDefaultAttributesIntegration']('listStart');const _0x40a9f5={'type':'format','content':''};_0x27b1fb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2dfb21=this['editor']['locale'];_0x27b1fb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2dfb21,'FORMAT_LIST_REVERSED')),_0x27b1fb['descriptionFactory']['registerDescriptionCallback'](_0x2510d5=>{const {data:_0x687c63}=_0x2510d5;if(_0x687c63&&'listReversed'==_0x687c63['key'])return null==_0x687c63['newValue']||0x0==_0x687c63['newValue']&&null==_0x687c63['oldValue']?_0x40a9f5:void 0x0;}),_0x27b1fb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2dfb21,'FORMAT_LIST_START')),_0x27b1fb['descriptionFactory']['registerDescriptionCallback'](_0x4ddf01=>{const {data:_0x43f276}=_0x4ddf01;if(_0x43f276&&'listStart'==_0x43f276['key'])return null==_0x43f276['newValue']||0x1==_0x43f276['newValue']&&null==_0x43f276['oldValue']?_0x40a9f5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x17ff01=>{if(_0x17ff01['batch']['isUndo'])return!0x1;let _0x985ad9=!0x1;const _0x937c20=_0x27b1fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48d039=>{const _0xb0279b=_0x27b1fb['_getAttributeKey'](_0x48d039);return'listStart'==_0xb0279b||'listReversed'==_0xb0279b;});for(const _0x2230df of _0x937c20){const _0x4006cd=_0x2230df['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4006cd||'customNumbered'==_0x4006cd)continue;_0x27b1fb['_findSuggestions'](_0x2230df['getFirstRange'](),'attribute')['find'](_0x3acad5=>'listType'==_0x27b1fb['_getAttributeKey'](_0x3acad5['suggestion']))||(_0x17ff01['removeMarker'](_0x2230df['getFirstMarker']()),_0x985ad9=!0x0);}return _0x985ad9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1db25d){const _0x1262bf=this['editor']['locale'],{data:_0x5d14d8}=_0x1db25d,_0xf89ce4={'type':'format','content':''};if(!_0x5d14d8||'listStyle'!=_0x5d14d8['key'])return;if(!_0x5d14d8['oldValue'])return'default'==_0x5d14d8['newValue']?_0xf89ce4:{'type':'format','content':''+o(_0x1262bf,'*Set\x20format:*\x20%0',o(_0x1262bf,this['_getTranslationKeyForListStyle'](_0x5d14d8['newValue'])))};if(!_0x5d14d8['newValue']){if('default'==_0x5d14d8['oldValue'])return _0xf89ce4;let _0x342897=_0x1db25d['head'];for(;_0x342897;){if(_0x342897['data']&&'listType'==_0x342897['data']['key']&&_0x342897['data']['newValue'])return _0xf89ce4;_0x342897=_0x342897['next'];}return{'type':'format','content':''+o(_0x1262bf,'*Remove\x20format:*\x20%0',o(_0x1262bf,this['_getTranslationKeyForListStyle'](_0x5d14d8['oldValue'])))};}if('default'!=_0x5d14d8['newValue'])return{'type':'format','content':''+o(_0x1262bf,'*Set\x20format:*\x20%0',o(_0x1262bf,this['_getTranslationKeyForListStyle'](_0x5d14d8['newValue'])))};let _0x3dc564=_0x1db25d['head'];for(;_0x3dc564;){if(_0x3dc564['data']&&'listType'==_0x3dc564['data']['key']&&_0x3dc564['data']['newValue']&&_0x3dc564['data']['oldValue'])return _0xf89ce4;_0x3dc564=_0x3dc564['next'];}return{'type':'format','content':o(_0x1262bf,'*Set\x20format:*\x20%0',o(_0x1262bf,'ELEMENT_'+_0x1db25d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x561399=this['editor'],_0x1ed2a3=_0x561399['locale'];_0x561399['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x143a3d=>{if('formatBlock'!=_0x143a3d['type'])return;const {data:_0xa9a4c8}=_0x143a3d;if(!_0xa9a4c8)return;let _0x42691e,_0x3c56f1;switch(_0xa9a4c8['commandName']){case'listStyle':_0x42691e='*Change\x20to:*\x20%0',_0x3c56f1={'type':'format','content':o(_0x1ed2a3,_0x42691e,o(_0x1ed2a3,this['_getTranslationKeyForListStyle'](_0xa9a4c8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42691e=_0xa9a4c8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c56f1={'type':'format','content':o(_0x1ed2a3,_0x42691e)};break;case'listStart':_0x42691e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c56f1={'type':'format','content':o(_0x1ed2a3,_0x42691e,_0xa9a4c8['commandParams'][0x0]['startIndex'])};}return _0x3c56f1;});}['_getTranslationKeyForListStyle'](_0x5c3a5e){return'ELEMENT_'+function(_0x20fdcf){if(ye['includes'](_0x20fdcf))return'bulleted';if(Se['includes'](_0x20fdcf))return'numbered';return null;}(_0x5c3a5e)['toUpperCase']()+'_LIST_'+_0x5c3a5e['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2699f5{['afterInit'](){const _0x19a6b0=this['editor'];_0x19a6b0['commands']['get']('emoji')&&_0x19a6b0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2699f5{static get['requires'](){return[_0x26ace5];}['init'](){const _0x4eb8a8=this['editor'],_0x245e9c=_0x4eb8a8['plugins']['get']('TrackChangesEditing'),_0x25db5f=_0x4eb8a8['commands']['get']('enter');_0x245e9c['enableCommand']('enter',()=>{_0x4eb8a8['model']['change'](_0x2e3e6d=>{const _0x1d6ad0=_0x4eb8a8['model']['document']['selection'],_0x28cac4=_0x1d6ad0['getFirstPosition'](),_0x2b40bb=_0x3eedc6['fromRange'](_0x1d6ad0['getFirstRange']());if(_0x25db5f['enterBlock'](_0x2e3e6d)){const _0x5e35e5=_0x4eb8a8['model']['createPositionAt'](_0x28cac4['parent']['nextSibling'],0x0),_0x1f9cef=_0x2e3e6d['createRange'](_0x28cac4,_0x5e35e5);_0x245e9c['markInsertion'](_0x1f9cef);}else _0x2e3e6d['setSelection'](_0x2e3e6d['createRange'](_0x2b40bb['end']));_0x2b40bb['detach'](),_0x25db5f['fire']('afterExecute',{'writer':_0x2e3e6d});});});}}class Y extends _0x2699f5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x222d1f=this['editor']['plugins']['get']('TrackChangesEditing');_0x222d1f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x222d1f['enableCommand']('findNext'),_0x222d1f['enableCommand']('findPrevious'),_0x222d1f['enableCommand']('replace'),_0x222d1f['enableCommand']('replaceAll');}['handleFindCommand'](_0x2afdef,_0x155e43,_0x1110bb={}){const _0x2b9a02=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2afdef(_0x3b690a=>{let _0x4cd791=('string'==typeof _0x155e43?_0x2b9a02['findByTextCallback'](_0x155e43,_0x1110bb):_0x155e43)(_0x3b690a);Array['isArray'](_0x4cd791)&&(_0x4cd791={'results':_0x4cd791,'searchText':'string'==typeof _0x155e43?_0x155e43:''});const _0x2cc74a=_0x4cd791['results']['filter'](_0x366abc=>!0x1===this['_isInDeletionRange'](_0x366abc,_0x3b690a['item']));return{..._0x4cd791,'results':_0x2cc74a};},_0x1110bb);}['_isInDeletionRange'](_0x4daf9e,_0x5aaffb){const _0x15c1ff=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5aaffb,_0x4daf9e['start']),this['editor']['model']['createPositionAt'](_0x5aaffb,_0x4daf9e['end']));for(const _0xc53aeb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x15c1ff['getIntersection'](_0xc53aeb['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 _0x2699f5{['afterInit'](){const _0x13bd74=this['editor']['locale'],_0x124a5b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4c472e,commandName:_0x199b25}of eo)this['editor']['plugins']['has'](_0x4c472e)&&_0x124a5b['enableDefaultAttributesIntegration'](_0x199b25);_0x124a5b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x13bd74,'FORMAT_FONT_SIZE')),_0x124a5b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x13bd74,'FORMAT_FONT_FAMILY')),_0x124a5b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x13bd74,'FORMAT_FONT_COLOR')),_0x124a5b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x13bd74,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x101848=this['editor'],_0x976b43=_0x101848['locale'];_0x101848['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a81c1=>{const _0x33a7d0=_0x976b43['t'];if('formatInline'!=_0x2a81c1['type'])return;const {data:_0x404743}=_0x2a81c1;if(null!=_0x404743){if('fontSize'==_0x404743['commandName']){const _0x851c0=_0x404743['commandParams'][0x0]['value'];if(_0x851c0){const _0x44ab83=_0x33a7d0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x496805=>_0x496805['model']==_0x851c0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x976b43,'*Set\x20font\x20size:*\x20%0',_0x44ab83)};}return{'type':'format','content':o(_0x976b43,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x404743['commandName']){const _0x53a23f=_0x404743['commandParams'][0x0]['value'];return _0x53a23f?{'type':'format','content':o(_0x976b43,'*Set\x20font\x20family:*\x20%0',_0x53a23f)}:{'type':'format','content':o(_0x976b43,'*Reset\x20font\x20family*')};}if('fontColor'==_0x404743['commandName']){const _0x319f02=_0x404743['commandParams'][0x0]['value'];if(_0x319f02){const _0x5d8c4f=_0x35bef7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x588ff6=>_0x588ff6['model']==_0x319f02);let _0x34ec79=_0x319f02,_0x423c0d='';return _0x5d8c4f&&(_0x34ec79=_0x5d8c4f['label'],_0x423c0d=_0x33a7d0(_0x34ec79)['toLowerCase']()),{'type':'format','content':o(_0x976b43,'*Set\x20font\x20color:*\x20%0',_0x423c0d)['trim'](),'color':{'value':_0x319f02,'title':_0x423c0d||_0x34ec79}};}return{'type':'format','content':o(_0x976b43,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x404743['commandName']){const _0x54dacb=_0x404743['commandParams'][0x0]['value'];if(_0x54dacb){const _0x4f38cc=_0x35bef7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1411bd=>_0x1411bd['model']==_0x54dacb);let _0x5d9803=_0x54dacb,_0x5c1032='';return _0x4f38cc&&(_0x5d9803=_0x4f38cc['label'],_0x5c1032=_0x33a7d0(_0x5d9803)['toLowerCase']()),{'type':'format','content':o(_0x976b43,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c1032)['trim'](),'color':{'value':_0x54dacb,'title':_0x5c1032||_0x5d9803}};}return{'type':'format','content':o(_0x976b43,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2699f5{['afterInit'](){const {plugins:_0x5a9bf2}=this['editor'];_0x5a9bf2['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x5a9bf2['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x30f300,plugins:_0x34758d,commands:_0x59a585}=this['editor'],_0x55782d=_0x34758d['get']('TrackChangesEditing');_0x59a585['get']('footnotesStyle')&&_0x55782d['enableDefaultAttributesIntegration']('footnotesStyle'),_0x59a585['get']('footnotesStart')&&_0x55782d['enableDefaultAttributesIntegration']('footnotesStart'),_0x55782d['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x30f300,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x55782d['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x30f300,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2c47e7=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x168c26,commands:_0x1cc1a1}=this['editor'];_0x1cc1a1['get']('insertFootnote')&&_0x2c47e7['enableCommand']('insertFootnote'),_0x2c47e7['descriptionFactory']['registerElementLabel']('footnoteRef',_0x31c368=>o(_0x168c26,'ELEMENT_FOOTNOTE_REF',_0x31c368)),_0x2c47e7['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1c3e0c=>o(_0x168c26,'ELEMENT_FOOTNOTE_DEFINITION',_0x1c3e0c)),_0x2c47e7['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4cbc33=>o(_0x168c26,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4cbc33));}}class nt extends _0x2699f5{['afterInit'](){const _0x26058d=this['editor'],_0x25467f=_0x26058d['plugins']['get']('TrackChangesEditing'),_0x12da36=_0x26058d['commands']['get']('copyFormat'),_0x4dcd23=_0x26058d['commands']['get']('pasteFormat');_0x12da36&&_0x4dcd23&&(_0x25467f['enableDefaultAttributesIntegration']('pasteFormat'),_0x25467f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x30ba51=this['editor'],_0x2f1520=_0x30ba51['locale'];_0x30ba51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3209ba=>{if('formatBlock'!=_0x3209ba['type']&&'formatInline'!=_0x3209ba['type'])return;const {data:_0x4aa0ea}=_0x3209ba;if(_0x4aa0ea&&'pasteFormat'===_0x4aa0ea['commandName']){const _0x29d224=[],_0x244295=_0x4aa0ea['commandParams'][0x0];for(const [_0x260705,_0x250502]of Object['entries'](_0x244295))_0x29d224['push'](ro(_0x30ba51,_0x260705,_0x250502));return _0x29d224['length']?{'type':'format','content':o(_0x2f1520,'*Set\x20format\x20to:*\x20%0',_0x29d224['join'](',\x20'))}:{'type':'format','content':o(_0x2f1520,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x49ab0c,_0x26c69a,_0x3ecc2f){const _0x17c5d7=_0x49ab0c['locale']['t'],_0x4247e1=_0x26c69a['split'](/(?=[A-Z])/)['join']('\x20'),_0x28793d=_0x17c5d7(_0x4247e1['charAt'](0x0)['toUpperCase']()+_0x4247e1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3ecc2f)return _0x28793d;if('fontColor'===_0x26c69a||'fontBackgroundColor'===_0x26c69a){const _0x17498f=_0x35bef7(_0x49ab0c['config']['get']('fontColor.colors'))['find'](_0xfabb01=>_0xfabb01['model']==_0x3ecc2f);return _0x28793d+'\x20('+(_0x17498f?_0x17c5d7(_0x17498f['label'])['toLowerCase']():_0x3ecc2f)+')';}if('fontSize'===_0x26c69a&&isNaN(parseFloat(_0x3ecc2f))){const _0x5120ef=_0x49ab0c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x49ab0c['config']['get']('fontSize.options'))['find'](_0x3704a2=>_0x3704a2['model']==_0x3ecc2f);return _0x28793d+'\x20('+(_0x5120ef?_0x17c5d7(_0x5120ef['title'])['toLowerCase']():_0x3ecc2f)+')';}return _0x28793d+'\x20('+_0x3ecc2f+')';}class it extends _0x2699f5{['_headingOptions'];['afterInit'](){const _0x7a0063=this['editor'];if(!_0x7a0063['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x7a0063['config']['get']('heading.options');const _0x1c070a=_0x7a0063['locale'],_0x2ec09b=_0x7a0063['plugins']['get']('TrackChangesEditing');_0x2ec09b['enableDefaultAttributesIntegration']('heading');for(const _0x232a70 of this['_headingOptions'])'paragraph'!=_0x232a70['model']&&_0x2ec09b['descriptionFactory']['registerElementLabel'](_0x232a70['model'],_0x2ac641=>{const _0xc695b0=this['_getHeadingLevel'](_0x232a70['model']);return null!==_0xc695b0?_0x169c34(_0x2ac641,_0xc695b0):_0x3934b5(_0x2ac641,_0x232a70['title']);});function _0x169c34(_0x5936af,_0x2c98f8){return o(_0x1c070a,'ELEMENT_HEADING',[_0x5936af,_0x2c98f8]);}function _0x3934b5(_0x2fa2cc,_0x3becdf){return o(_0x1c070a,'ELEMENT_HEADING_CUSTOM',[_0x2fa2cc,_0x3becdf]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43cb07=this['editor'],_0x35c828=_0x43cb07['locale'];function _0x32a4d3(_0x4c2bd6,_0x28add7){return o(_0x35c828,'ELEMENT_HEADING_CUSTOM',[_0x4c2bd6,_0x28add7]);}_0x43cb07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbcc2=>{if('formatBlock'!=_0x3dbcc2['type'])return;const {data:_0x2400b8}=_0x3dbcc2;if(_0x2400b8&&'heading'==_0x2400b8['commandName']){const _0x3de563=_0x2400b8['commandParams'][0x0]['value'],_0x44815f=this['_getHeadingLevel'](_0x3de563);if(null!==_0x44815f)return{'type':'format','content':o(_0x35c828,'*Change\x20to:*\x20%0',(_0x5720a3=0x1,_0x2788bc=_0x44815f,o(_0x35c828,'ELEMENT_HEADING',[_0x5720a3,_0x2788bc])))};const _0x5ceb6d=this['_headingOptions']['find'](_0x549bd0=>_0x549bd0['model']===_0x3de563)['title'];return{'type':'format','content':o(_0x35c828,'*Change\x20to:*\x20%0',_0x32a4d3(0x1,_0x5ceb6d))};}var _0x5720a3,_0x2788bc;});}['_getHeadingLevel'](_0x50c67c){const _0x359f64=_0x50c67c['match'](/^heading(\d+)/);if(_0x359f64)return _0x359f64[0x1];const _0x151a3a=this['_headingOptions']?.['find'](_0x185c2d=>_0x185c2d['model']==_0x50c67c);if(_0x151a3a&&_0x151a3a['view']){const _0x524912=_0x151a3a['view'],_0x240389=(_0x524912['name']??_0x524912)['match'](/^h(\d+)/);if(_0x240389)return _0x240389[0x1];}return null;}}class et extends _0x2699f5{['afterInit'](){const _0x1f8152=this['editor'];if(!_0x1f8152['plugins']['has']('HighlightEditing'))return;const _0xdd1c4a=_0x1f8152['plugins']['get']('TrackChangesEditing'),_0x589604=_0x1f8152['locale'];_0xdd1c4a['enableDefaultAttributesIntegration']('highlight'),_0xdd1c4a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x589604,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1712fe=this['editor'],_0x12aaf0=_0x1712fe['locale'];_0x1712fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x422b61=>{if('formatInline'!=_0x422b61['type'])return;const {data:_0x5075d1}=_0x422b61;if(_0x5075d1&&'highlight'==_0x5075d1['commandName']){const _0x52ee8e=_0x12aaf0['t'],_0x5c9dff=_0x5075d1['commandParams'][0x0]['value'];if(_0x5c9dff){const _0x36910f=_0x1712fe['config']['get']('highlight.options')['find'](_0x2912f6=>_0x2912f6['model']==_0x5c9dff),_0x23f5ad=_0x52ee8e(_0x36910f['title'])['toLowerCase']();return{'type':'format','content':o(_0x12aaf0,'*Set\x20highlight:*\x20%0',_0x23f5ad),'color':{'value':_0x36910f['color'],'title':_0x36910f['title']}};}return{'type':'format','content':o(_0x12aaf0,'*Remove\x20highlight*',o(_0x12aaf0,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2699f5{['afterInit'](){const _0x24144b=this['editor'];if(!_0x24144b['plugins']['has']('HorizontalLineEditing'))return;_0x24144b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d72a1=_0x24144b['plugins']['get']('TrackChangesEditing'),_0x392737=_0x24144b['locale'];_0x4d72a1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2da713=>o(_0x392737,'ELEMENT_HORIZONTAL_LINE',_0x2da713));}}class ot extends _0x2699f5{['afterInit'](){const _0xe70b06=this['editor'];if(!_0xe70b06['plugins']['has']('HtmlEmbed'))return;const _0x393093=_0xe70b06['plugins']['get']('TrackChangesEditing'),_0x1d4b60=_0xe70b06['locale'];_0x393093['descriptionFactory']['registerElementLabel']('rawHtml',_0x1b90f3=>o(_0x1d4b60,'ELEMENT_HTML_EMBED',_0x1b90f3)),_0x393093['enableDefaultAttributesIntegration']('htmlEmbed'),_0x393093['descriptionFactory']['registerDescriptionCallback'](_0x21ca8d=>{if('attribute'!=_0x21ca8d['type'])return;const {data:_0x173a8c}=_0x21ca8d;if(_0x173a8c&&'value'==_0x173a8c['key']&&_0x21ca8d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x50f2b8=o(_0x1d4b60,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d4b60,'*Change\x20%0\x20content*',_0x50f2b8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2babf3=this['editor'],_0xf6df97=_0x2babf3['locale'];_0x2babf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33ca22=>{if('formatBlock'!=_0x33ca22['type'])return;const {data:_0x6b9163}=_0x33ca22;if(_0x6b9163&&'htmlEmbed'==_0x6b9163['commandName']){const _0x49ba21=o(_0xf6df97,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf6df97,'*Change\x20%0\x20content*',_0x49ba21)};}});}}class rt extends _0x2699f5{['afterInit'](){const _0x1364d1=this['editor'];if(!_0x1364d1['plugins']['has']('ImageEditing'))return;const _0x54550e=_0x1364d1['plugins']['get']('TrackChangesEditing'),_0x12b96f=_0x1364d1['plugins']['get']('ImageUtils'),_0x4c17e3=_0x1364d1['locale'];_0x54550e['enableCommand']('insertImage'),_0x54550e['descriptionFactory']['registerElementLabel']('imageBlock',_0x5b4cc=>o(_0x4c17e3,'ELEMENT_IMAGE',_0x5b4cc)),_0x54550e['descriptionFactory']['registerElementLabel']('imageInline',_0x5a0bcc=>o(_0x4c17e3,'ELEMENT_INLINE_IMAGE',_0x5a0bcc)),_0x54550e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4c17e3,'ELEMENT_CAPTION')),_0x1364d1['plugins']['has']('ImageUploadEditing')&&_0x54550e['enableCommand']('uploadImage'),_0x1364d1['plugins']['has']('ImageBlockEditing')&&_0x1364d1['plugins']['has']('ImageInlineEditing')&&(_0x54550e['enableCommand']('imageTypeInline',(_0x1379ad,_0x1e827a)=>{const _0x58acef=_0x12b96f['getClosestSelectedImageElement'](_0x1364d1['model']['document']['selection']);_0x1364d1['model']['change'](()=>{_0x54550e['markBlockFormat'](_0x58acef,{'commandName':'imageTypeInline','commandParams':[_0x1e827a]},[],'convertBlockImageToInline');});}),_0x54550e['enableCommand']('imageTypeBlock',(_0x43d0bf,_0x43a080)=>{_0x1364d1['model']['change'](_0x448705=>{let _0x4e196c=_0x12b96f['getClosestSelectedImageElement'](_0x1364d1['model']['document']['selection']),_0x5f4fe8=_0x448705['createRangeOn'](_0x4e196c);const _0xd6ec94=_0x50d1a8['fromPosition'](_0x5f4fe8['start'],'toPrevious'),_0x5cc398=_0x50d1a8['fromPosition'](_0x5f4fe8['end'],'toNext');_0x54550e['forceDefaultExecution'](()=>_0x43d0bf(_0x43a080)),_0x4e196c=_0x12b96f['getClosestSelectedImageElement'](_0x1364d1['model']['document']['selection']),_0x5f4fe8=_0x448705['createRangeOn'](_0x4e196c);const _0x2e8782=_0x448705['createRange'](_0xd6ec94,_0x5cc398);_0xd6ec94['detach'](),_0x5cc398['detach'](),_0x54550e['markBlockFormat'](_0x4e196c,{'commandName':'imageTypeInline','commandParams':[_0x43a080]},[],'convertInlineImageToBlock'),_0x2e8782['start']['isBefore'](_0x5f4fe8['start'])&&_0x54550e['markInsertion'](_0x448705['createRange'](_0x2e8782['start'],_0x5f4fe8['start']),'convertInlineImageToBlock'),_0x5f4fe8['end']['isBefore'](_0x2e8782['end'])&&_0x54550e['markInsertion'](_0x448705['createRange'](_0x5f4fe8['end'],_0x2e8782['end']),'convertInlineImageToBlock');});}),_0x54550e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x54550e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x54550e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x54550e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x54550e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x54550e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x53b6c6])=>{const _0xeaa5a=_0x54550e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xcc2d40=_0x53b6c6['start'],_0x508527=_0x53b6c6['end'];const _0x26fd36=_0x1364d1['model']['schema']['getNearestSelectionRange'](_0xcc2d40,'backward'),_0x255f70=_0x1364d1['model']['schema']['getNearestSelectionRange'](_0x508527,'forward');_0x26fd36['isCollapsed']&&(_0xcc2d40=_0x26fd36['start']),_0x255f70['isCollapsed']&&(_0x508527=_0x255f70['end']),_0xeaa5a([_0x1364d1['model']['createRange'](_0xcc2d40,_0x508527)]);}),_0x54550e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x309d39),_0x54550e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x309d39)),_0x1364d1['plugins']['has']('ImageCaptionEditing')&&(_0x54550e['enableCommand']('toggleImageCaption',(_0x3405bd,_0x68ed8e)=>{const _0x438465=_0x1364d1['plugins']['get']('ImageCaptionUtils');let _0x9778f9=_0x12b96f['getClosestSelectedImageElement'](_0x1364d1['model']['document']['selection']),_0x4e6c11=_0x438465['getCaptionFromImageModelElement'](_0x9778f9);_0x1364d1['model']['change'](()=>{if(_0x4e6c11)return void _0x54550e['markDeletion'](_0x1364d1['model']['createRangeOn'](_0x4e6c11));const _0x495def=_0x12b96f['isBlockImage'](_0x9778f9);_0x3405bd(_0x68ed8e),_0x9778f9=_0x12b96f['getClosestSelectedImageElement'](_0x1364d1['model']['document']['selection']),_0x4e6c11=_0x438465['getCaptionFromImageModelElement'](_0x9778f9),_0x54550e['markInsertion'](_0x1364d1['model']['createRangeOn'](_0x4e6c11),_0x495def?null:'imageCaption');});}),_0x54550e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x309d39));const _0x5039e7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5220c8(_0x195306,_0x1dff3a){const _0x9b8fe6=_0x5039e7['findIndex'](({type:_0x155156,subType:_0x28df25})=>_0x195306['type']==_0x155156&&_0x195306['subType']==_0x28df25),_0x443ecd=_0x5039e7['findIndex'](({type:_0x2bf034,subType:_0x11c0bb})=>_0x1dff3a['type']==_0x2bf034&&_0x1dff3a['subType']==_0x11c0bb);if(_0x9b8fe6<0x0||_0x443ecd<0x0)return!0x1;const _0x216a07=_0x195306['getFirstRange'](),_0x567210=_0x1dff3a['getFirstRange']();if((0x0==_0x9b8fe6||0x1==_0x9b8fe6)&&0x2==_0x443ecd&&_0x216a07['isIntersecting'](_0x567210))return!0x0;if(0x2==_0x9b8fe6&&0x3==_0x443ecd){const _0x2bb20f=_0x54550e['_findSuggestions'](_0x216a07,'insertion')['filter'](({suggestion:_0x1744e4,meta:_0x136f3a})=>_0x136f3a['isOwn']&&'convertInlineImageToBlock'==_0x1744e4['subType']);if(_0x2bb20f['length']>0x1&&_0x567210['end']['isEqual'](_0x216a07['start']))return!0x0;if(0x1==_0x2bb20f['length']&&(_0x216a07['start']['isEqual'](_0x567210['end'])||_0x216a07['end']['isEqual'](_0x567210['start'])))return!0x0;}if(0x3==_0x9b8fe6&&0x3==_0x443ecd&&_0x216a07['start']['isBefore'](_0x567210['start'])){const _0x8e8d61=_0x216a07['end']['nodeAfter'],_0x3e03e7=_0x567210['start']['nodeBefore'];return _0x12b96f['isBlockImage'](_0x8e8d61)&&_0x8e8d61===_0x3e03e7;}return!0x1;}function _0x309d39(_0x13815d,_0x3d3f79){return _0x5220c8(_0x13815d,_0x3d3f79)?[_0x13815d,_0x3d3f79]:_0x5220c8(_0x3d3f79,_0x13815d)?[_0x3d3f79,_0x13815d]:null;}_0x1364d1['plugins']['has']('ImageResize')&&(_0x54550e['enableDefaultAttributesIntegration']('resizeImage'),_0x54550e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4c17e3,'FORMAT_IMAGE_SIZE'))),_0x1364d1['plugins']['has']('ImageTextAlternativeEditing')&&_0x54550e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1364d1['plugins']['has']('PictureEditing')&&_0x54550e['descriptionFactory']['registerDescriptionCallback'](_0x108592=>{if('attribute'!=_0x108592['type'])return;const {data:_0x580273}=_0x108592;return _0x580273&&'sources'==_0x580273['key']?{'type':'format','content':''}:void 0x0;}),_0x1364d1['plugins']['has']('ImageSizeAttributes')&&_0x54550e['descriptionFactory']['registerDescriptionCallback'](_0x1b833e=>{if('attribute'!=_0x1b833e['type'])return;const {data:_0x48b693}=_0x1b833e;return!_0x48b693||'width'!=_0x48b693['key']&&'height'!=_0x48b693['key']?void 0x0:{'type':'format','content':''};}),_0x54550e['descriptionFactory']['registerDescriptionCallback'](_0x31b1f4=>{if(!!_0x5039e7['find'](({type:_0x4efcad,subType:_0x359537})=>_0x31b1f4['type']==_0x4efcad&&_0x31b1f4['subType']==_0x359537))return _0x31b1f4['previous']?{}:void 0x0;}),_0x54550e['descriptionFactory']['registerDescriptionCallback'](_0x27b2a7=>{if('insertion'==_0x27b2a7['type']||'deletion'==_0x27b2a7['type']){const _0xdf7aa1=_0x27b2a7['getContainedElement']();if(_0xdf7aa1&&_0xdf7aa1['is']('element','caption'))return{'type':'insertion'==_0x27b2a7['type']?'addObject':'removeObject','element':_0xdf7aa1,'quantity':0x1};}}),_0x54550e['descriptionFactory']['registerDescriptionCallback'](_0x1edd09=>'formatBlock'==_0x1edd09['type']&&'convertInlineImageToBlock'==_0x1edd09['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1edd09['type']&&'convertBlockImageToInline'==_0x1edd09['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x54550e['descriptionFactory']['registerDescriptionCallback'](_0x4437de=>{if('attribute'!=_0x4437de['type'])return;const {data:_0x1f030a}=_0x4437de;if(!_0x1f030a||'alt'!=_0x1f030a['key'])return;const _0x16139f=_0x1f030a['newValue'];return _0x16139f?{'type':'format','content':o(_0x4c17e3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x16139f+'\x22')}:{'type':'format','content':o(_0x4c17e3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5348bc=this['editor'],_0x3b04b=_0x5348bc['locale'];_0x5348bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13187c=>{if('formatBlock'!=_0x13187c['type']&&'formatInline'!=_0x13187c['type'])return;const {data:_0x518b20}=_0x13187c;if(_0x518b20){if('imageTextAlternative'==_0x518b20['commandName']){const _0x407d47=_0x518b20['commandParams'][0x0]['newValue'];return _0x407d47?{'type':'format','content':o(_0x3b04b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x407d47+'\x22')}:{'type':'format','content':o(_0x3b04b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x518b20['commandName']){const _0x547e0c=_0x518b20['commandParams'][0x0]['width'];return _0x547e0c?{'type':'format','content':o(_0x3b04b,'*Set\x20image\x20width:*\x20%0',_0x547e0c)}:{'type':'format','content':o(_0x3b04b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2699f5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3543de=this['editor']['locale'],_0x3077fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x3077fd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3077fd['descriptionFactory']['registerDescriptionCallback'](_0x30fa01=>{if('attribute'!=_0x30fa01['type'])return;const {data:_0x31cf7a}=_0x30fa01;return _0x31cf7a&&'src'==_0x31cf7a['key']?_0x31cf7a['newValue']&&_0x31cf7a['oldValue']?{'type':'format','content':o(_0x3543de,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2bb15d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bb15d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2bb15d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bb15d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2bb15d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x296cf8=this['editor'],_0xdf4aee=_0x296cf8['locale'];_0x296cf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aa7c8=>{if('formatBlock'!=_0x3aa7c8['type']&&'formatInline'!=_0x3aa7c8['type'])return;const {data:_0x30e149}=_0x3aa7c8;if(!_0x30e149||'replaceImageSource'!=_0x30e149['commandName'])return;return{'type':'format','content':o(_0xdf4aee,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2699f5{['afterInit'](){const _0x679ff1=this['editor'];if(!_0x679ff1['plugins']['has']('ImageStyleEditing'))return;const _0x2b8fa3=_0x679ff1['plugins']['get']('TrackChangesEditing'),_0x3a7dc1=_0x679ff1['plugins']['get']('ImageUtils'),_0x2bc503={};_0x2b8fa3['enableCommand']('imageStyle',(_0x459fbc,_0x5c4be0)=>{const _0x12fd81=_0x679ff1['plugins']['get']('Users')['me'],_0x396aac=_0x679ff1['commands']['get']('imageStyle');let _0x759179=_0x3a7dc1['getClosestSelectedImageElement'](_0x679ff1['model']['document']['selection']),_0x220e25=_0x679ff1['model']['createRangeOn'](_0x759179),_0x4ae623=_0x396aac['value'];if(_0x4ae623==_0x5c4be0['value'])return;const _0x1363c2={'commandName':'imageStyle','commandParams':[_0x5c4be0],'formatGroupId':_0x373a37()};_0x679ff1['model']['change'](()=>{if(_0x2b8fa3['getSuggestions']()['filter'](_0x29f087=>_0x29f087['isInContent']&&_0x12fd81==_0x29f087['author']&&('formatBlock'==_0x29f087['type']||'formatInline'==_0x29f087['type'])&&('imageStylePreApply'==_0x29f087['subType']||'imageStylePostApply'==_0x29f087['subType'])&&_0x29f087['getFirstRange']()['isEqual'](_0x220e25))['forEach'](_0x224bf7=>_0x2b8fa3['discardSuggestion'](_0x224bf7['head'])),_0x759179=_0x3a7dc1['getClosestSelectedImageElement'](_0x679ff1['model']['document']['selection']),_0x220e25=_0x679ff1['model']['createRangeOn'](_0x759179),_0x396aac['refresh'](),_0x679ff1['commands']['get']('imageTypeInline')['refresh'](),_0x679ff1['commands']['get']('imageTypeBlock')['refresh'](),_0x4ae623=_0x396aac['value'],_0x4ae623!=_0x5c4be0['value'])return _0x3a7dc1['isInlineImage'](_0x759179)&&_0x396aac['shouldConvertImageType'](_0x5c4be0['value'],_0x759179)?(_0x459fbc({..._0x5c4be0,'setImageSizes':!0x1}),_0x759179=_0x3a7dc1['getClosestSelectedImageElement'](_0x679ff1['model']['document']['selection']),void _0x2b8fa3['markBlockFormat'](_0x759179,{..._0x1363c2,'commandReversedParams':[{'value':_0x4ae623||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3a7dc1['isBlockImage'](_0x759179)?_0x2b8fa3['markBlockFormat'](_0x759179,_0x1363c2,[],'imageStylePostApply'):_0x2b8fa3['markInlineFormat'](_0x220e25,_0x1363c2,'imageStylePostApply'));});});for(const _0x40fe91 of _0x679ff1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2bc503[_0x40fe91['name']]=_0x40fe91['title']['toLowerCase']();_0x2b8fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2b8fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2b8fa3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2b8fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e25e7])=>{_0x3a7dc1['setImageNaturalSizeAttributes'](_0x3e25e7['getContainedElement']());}),_0x2b8fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x34134c,_0x3ccc27)=>{_0x2b8fa3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x34134c,{'commandName':_0x3ccc27['commandName'],'commandParams':_0x3ccc27['commandReversedParams']});}),_0x2b8fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x820725,_0x167ad0){if(_0x296bea(_0x820725,_0x167ad0))return[_0x820725,_0x167ad0];if(_0x296bea(_0x167ad0,_0x820725))return[_0x167ad0,_0x820725];return null;});const _0xe9e10c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x296bea(_0x5ab76d,_0x1d7982){const _0x45e401=_0xe9e10c['findIndex'](({type:_0x1edf8b,subType:_0x44e283})=>_0x5ab76d['type']==_0x1edf8b&&_0x5ab76d['subType']==_0x44e283),_0x8ed598=_0xe9e10c['findIndex'](({type:_0x40b86d,subType:_0x3b769e})=>_0x1d7982['type']==_0x40b86d&&_0x1d7982['subType']==_0x3b769e);if(_0x45e401<0x0||_0x8ed598<0x0)return!0x1;const _0x408b3d=_0x5ab76d['getFirstRange'](),_0x40508c=_0x1d7982['getFirstRange']();if((0x0==_0x45e401||0x1==_0x45e401)&&0x2==_0x8ed598&&_0x408b3d['isIntersecting'](_0x40508c))return!0x0;if(0x2==_0x45e401&&0x3==_0x8ed598){const _0x2720b4=_0x2b8fa3['_findSuggestions'](_0x408b3d,'insertion')['filter'](({suggestion:_0xaf4a9a,meta:_0x45131b})=>_0x45131b['isOwn']&&'convertInlineImageToBlock'==_0xaf4a9a['subType']);if(_0x2720b4['length']>0x1&&_0x40508c['end']['isEqual'](_0x408b3d['start']))return!0x0;if(0x1==_0x2720b4['length']&&(_0x408b3d['start']['isEqual'](_0x40508c['end'])||_0x408b3d['end']['isEqual'](_0x40508c['start'])))return!0x0;}if(0x3==_0x45e401&&0x3==_0x8ed598&&_0x408b3d['start']['isBefore'](_0x40508c['start'])){const _0x45c236=_0x408b3d['end']['nodeAfter'],_0x520707=_0x40508c['start']['nodeBefore'];return _0x3a7dc1['isBlockImage'](_0x45c236)&&_0x45c236===_0x520707;}return!0x1;}_0x679ff1['model']['document']['registerPostFixer'](()=>{let _0x36813b=!0x1;const _0x4eedc9=Array['from'](_0x679ff1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3740c0,data:_0x8ba960}of _0x4eedc9){const {group:_0x563557,type:_0x1c40d0,subType:_0x1a10c2,id:_0x7a33c6}=_0x2b8fa3['_splitMarkerName'](_0x3740c0);if('suggestion'==_0x563557&&_0x2b8fa3['hasSuggestion'](_0x7a33c6)){if('formatBlock'==_0x1c40d0&&('imageStylePreApply'==_0x1a10c2||'imageStylePostApply'==_0x1a10c2)){const _0xcbc0c=_0x2b8fa3['getSuggestion'](_0x7a33c6);if(_0x8ba960['newRange']){const _0x5858f9=_0xcbc0c['getFirstRange']()['getContainedElement']();if(_0x3a7dc1['isBlockImage'](_0x5858f9))continue;_0x2b8fa3['discardSuggestion'](_0xcbc0c),_0x36813b=!0x0;}}if('insertion'==_0x1c40d0&&'imageCaption'==_0x1a10c2&&!_0x8ba960['newRange']){const _0x32b5b4=_0x2b8fa3['getSuggestion'](_0x7a33c6);_0x32b5b4['next']&&_0x32b5b4['next']['isInContent']&&(_0x2b8fa3['discardSuggestion'](_0x32b5b4['next']),_0x36813b=!0x0);}}}return _0x36813b;}),this['_registerLegacyDescription'](_0x2bc503);}['_registerLegacyDescription'](_0x2aae7e){const _0x19d1ed=this['editor'],_0x1763b4=_0x19d1ed['locale'];_0x19d1ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cf5=>{if('formatBlock'!=_0x5cf5['type']&&'formatInline'!=_0x5cf5['type'])return;const {data:_0x46d83d}=_0x5cf5;if(!_0x46d83d||'imageStyle'!=_0x46d83d['commandName'])return;const _0x1b90cb=_0x46d83d['commandParams'][0x0]['value'];return _0x5a2607('side'===_0x1b90cb?o(_0x1763b4,'FORMAT_SIDE_IMAGE'):_0x2aae7e[_0x1b90cb]||_0x1b90cb);function _0x5a2607(_0x136e07){return{'type':'format','content':o(_0x1763b4,'*Format:*\x20%0',_0x136e07)};}});}}class ut extends _0x2699f5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4612f0){super(_0x4612f0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d9713=this['editor'],_0x262ddc=_0x4d9713['commands']['get']('importWord'),_0x5ef2d6=_0x4d9713['commands']['get']('trackChanges');_0x262ddc&&(_0x262ddc['on']('execute',(_0x31d933,[,_0x3018a7])=>{this['_trackChangesValueDuringImport']=_0x5ef2d6['value'],_0x3018a7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x262ddc,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x262ddc,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5ef2d6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d9713['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x48c8e7,_0x10140a){const {suggestions:_0x1f8f04}=_0x10140a,_0x3c691d=this['editor']['commands']['get']('trackChanges'),_0x3274a9=_0x3c691d['value'];this['_trackChangesValueDuringImport']!==_0x3274a9&&(_0x3c691d['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f8f04&&_0x1f8f04['forEach'](({id:_0x57f7cf,type:_0x474766,author:_0x42b5ee,created_at:_0x4e1505})=>{const _0x243f53={'id':_0x57f7cf,'type':_0x474766,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x42b5ee,'createdAt':_0x4e1505?new Date(_0x4e1505):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x243f53);});}}class ft extends _0x2699f5{['afterInit'](){const _0x3e87eb=this['editor'],_0xcd9fec=_0x3e87eb['plugins']['get']('TrackChangesEditing');if(_0x3e87eb['plugins']['has']('IndentEditing')&&(_0xcd9fec['enableCommand']('indent'),_0xcd9fec['enableCommand']('outdent')),_0x3e87eb['plugins']['has']('IndentBlock')){for(const _0xfcdee2 of['indentBlock','outdentBlock'])_0xcd9fec['enableDefaultAttributesIntegration'](_0xfcdee2);}const _0x494f0c=_0x3e87eb['locale'];_0xcd9fec['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x494f0c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b17c6=this['editor'],_0x4f7fab=_0x1b17c6['locale'],_0x4d8ae9=_0x1b17c6['plugins']['get']('TrackChangesEditing');_0x4d8ae9['descriptionFactory']['registerDescriptionCallback'](_0xf98deb=>{if('formatBlock'!=_0xf98deb['type'])return;const {data:_0x6fe462}=_0xf98deb;if(!_0x6fe462)return;if('indentBlock'!=_0x6fe462['commandName']&&'outdentBlock'!=_0x6fe462['commandName'])return;const _0x160da1=_0xf98deb['getItems']()[0x0],_0x1f5fdc=_0x4d8ae9['descriptionFactory']['getItemLabel'](_0x160da1);return'indentBlock'==_0x6fe462['commandName']?{'type':'format','content':o(_0x4f7fab,'*Indent:*\x20%0',_0x1f5fdc)}:'outdentBlock'==_0x6fe462['commandName']?{'type':'format','content':o(_0x4f7fab,'*Outdent:*\x20%0',_0x1f5fdc)}:void 0x0;});}}class ht extends _0x2699f5{static get['requires'](){return[_0x3db868];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2699f5{['afterInit'](){const _0x24ae91=this['editor'];if(!_0x24ae91['plugins']['has']('LinkEditing'))return;const _0xd0f0=_0x24ae91['plugins']['get']('TrackChangesEditing'),_0x12cb0e=_0x24ae91['commands']['get']('link');_0xd0f0['enableDefaultAttributesIntegration']('link'),_0xd0f0['enableDefaultAttributesIntegration']('unlink');for(const _0x45d65b of _0x12cb0e['manualDecorators'])_0xd0f0['descriptionFactory']['registerAttributeLabel'](_0x45d65b['id'],'link\x20('+_0x45d65b['label']['toLowerCase']()+')');_0xd0f0['descriptionFactory']['registerDescriptionCallback'](_0x92414c=>{if('attribute'!=_0x92414c['type'])return;const {data:_0x13211c}=_0x92414c;if(!_0x13211c||'linkHref'!=_0x13211c['key'])return;const _0x184608=_0x13211c['newValue'],_0x1991be=_0x24ae91['locale'];return{'type':'format','content':null==_0x184608?o(_0x1991be,'*Remove\x20link*'):o(_0x1991be,'*Set\x20link:*\x20%0','\x22'+_0x184608+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15db4b=this['editor'],_0xc7e3d4=_0x15db4b['locale'];_0x15db4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d5391=>{if('formatInline'!=_0x2d5391['type'])return;const {data:_0x127dec}=_0x2d5391;if(_0x127dec){if('link'==_0x127dec['commandName']){const _0x4ff5b2=_0x127dec['commandParams'][0x0];return{'type':'format','content':o(_0xc7e3d4,'*Set\x20link:*\x20%0','\x22'+_0x4ff5b2+'\x22')};}return'unlink'==_0x127dec['commandName']?{'type':'format','content':o(_0xc7e3d4,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2699f5{['afterInit'](){const _0x5613ae=this['editor'],_0x4bf263=_0x5613ae['locale'];if(!_0x5613ae['plugins']['has']('LegacyListEditing'))return;const _0x2baccc=_0x5613ae['plugins']['get']('TrackChangesEditing'),_0x5c2ebf=_0x5613ae['plugins']['has']('LegacyTodoListEditing');function _0x5187a7(_0x14b8fe){return()=>{const _0x2293e1=_0x5613ae['model']['document']['selection'],_0x3b3451=_0x5613ae['commands']['get'](_0x14b8fe);if(_0x3b3451['value'])return void _0x5613ae['execute']('paragraph',{});const _0x3f5feb=_0x14b8fe['slice'](0x0,-0x4),_0x4d0bca=function(_0x393c5a,_0x42fddd,_0x576091){let _0x48a6d6=Array['from'](_0x393c5a)['filter'](_0x9ad4=>function(_0x413a05,_0xe735ee){return _0xe735ee['checkChild'](_0x413a05['parent'],'listItem')&&!_0xe735ee['isObject'](_0x413a05);}(_0x9ad4,_0x576091));_0x48a6d6=_0x48a6d6['filter'](_0x24189b=>!_0x24189b['is']('element','listItem')||_0x24189b['getAttribute']('listType')!=_0x42fddd);const _0x32420f=new Set();for(const _0x128a8a of _0x48a6d6)_0x128a8a['is']('element','listItem')?_0x32420f['add'](Le(_0x128a8a)):_0x32420f['add'](_0x128a8a);return Array['from'](_0x32420f);}(_0x2293e1['getSelectedBlocks'](),_0x3f5feb,_0x5613ae['model']['schema']);_0x5613ae['model']['change'](()=>{for(const _0x57e5ac of _0x4d0bca)_0x2baccc['markBlockFormat'](_0x57e5ac,{'commandName':_0x14b8fe,'commandParams':[{'forceValue':!_0x3b3451['value']}],'formatGroupId':'blockName'},Ee(_0x57e5ac));});};}function _0x8f2518(_0x510394){return()=>{const _0x405f38=function(_0x12dde4){let _0x13658c=Array['from'](_0x12dde4);const _0x6499fc=_0x13658c['findIndex'](_0x308f6f=>'listItem'!=_0x308f6f['name']);return _0x6499fc>-0x1&&(_0x13658c=_0x13658c['slice'](0x0,_0x6499fc)),_0x13658c;}(_0x5613ae['model']['document']['selection']['getSelectedBlocks']()),_0x9774c2=_0x5613ae['model']['createRange'](_0x5613ae['model']['createPositionAt'](_0x405f38[0x0],'before'),_0x5613ae['model']['createPositionAt'](_0x405f38[_0x405f38['length']-0x1],'end'));_0x5613ae['model']['change'](()=>{_0x2baccc['markBlockFormat'](_0x9774c2,{'commandName':_0x510394,'commandParams':[],'formatGroupId':'listIndent'},function(_0xc21432){const _0x5f214c=new Set();for(const _0x36f7c5 of _0xc21432){let _0x3e4244=_0x36f7c5['nextSibling'];for(;_0x3e4244&&_0x3e4244['getAttribute']('listIndent')>_0x36f7c5['getAttribute']('listIndent');)_0x5f214c['add'](_0x3e4244),_0x3e4244=_0x3e4244['nextSibling'];}return Array['from'](_0x5f214c);}(_0x405f38));});};}_0x2baccc['enableCommand']('numberedList',_0x5187a7('numberedList')),_0x2baccc['enableCommand']('bulletedList',_0x5187a7('bulletedList')),_0x5c2ebf&&_0x2baccc['enableCommand']('todoList',_0x5187a7('todoList')),_0x2baccc['enableCommand']('indentList',_0x8f2518('indentList')),_0x2baccc['enableCommand']('outdentList',_0x8f2518('outdentList')),_0x5c2ebf&&_0x2baccc['enableCommand']('checkTodoList',()=>{const _0x242d93=_0x5613ae['commands']['get']('checkTodoList'),_0x13d3e0=Array['from'](_0x242d93['_selectedElements']);_0x13d3e0['filter'](_0x1f51c3=>_0x1f51c3['getAttribute']('todoListChecked')!=_0x242d93['value']),_0x5613ae['model']['change'](()=>{for(const _0x530b62 of _0x13d3e0)_0x2baccc['markBlockFormat'](_0x530b62,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x242d93['value']}]});});}),_0x2baccc['descriptionFactory']['registerElementLabel']('listItem',_0x4da5f3=>o(_0x4bf263,'ELEMENT_LIST_ITEM',_0x4da5f3)),_0x2baccc['descriptionFactory']['registerDescriptionCallback'](_0x5cfbb1=>{if('formatBlock'!=_0x5cfbb1['type']&&'formatInline'!=_0x5cfbb1['type'])return;const {data:_0x560933}=_0x5cfbb1;if(_0x560933){if('numberedList'==_0x560933['commandName']||'bulletedList'==_0x560933['commandName']||'todoList'==_0x560933['commandName'])switch(_0x560933['commandName']['replace']('List','')){case'bulleted':return _0x36520e(o(_0x4bf263,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36520e(o(_0x4bf263,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36520e(o(_0x4bf263,'ELEMENT_TODO_LIST'));}if('indentList'==_0x560933['commandName'])return{'type':'format','content':o(_0x4bf263,'*Indent:*\x20%0',o(_0x4bf263,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x560933['commandName'])return{'type':'format','content':o(_0x4bf263,'*Outdent:*\x20%0',o(_0x4bf263,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x560933['commandName'])return _0x560933['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4bf263,'*Check\x20item*')}:{'type':'format','content':o(_0x4bf263,'*Uncheck\x20item*')};}function _0x36520e(_0x5c2937){return{'type':'format','content':o(_0x4bf263,'*Change\x20to:*\x20%0',_0x5c2937)};}});}}function Le(_0x42f92f){const _0x5ee674=_0x42f92f['getAttribute']('listIndent');if(0x0==_0x5ee674)return _0x42f92f;let _0x160529=_0x42f92f;for(;_0x42f92f['previousSibling']&&_0x42f92f['previousSibling']['is']('element','listItem');){const _0x1146f6=_0x42f92f['previousSibling']['getAttribute']('listIndent');if(_0x1146f6==_0x5ee674)_0x160529=_0x42f92f['previousSibling'];else{if(_0x1146f6<_0x5ee674)break;}_0x42f92f=_0x42f92f['previousSibling'];}return _0x160529;}function Ee(_0x34347f){const _0x5ef1a6=[];if(_0x34347f['is']('element','listItem')&&_0x34347f['getAttribute']('listIndent')>0x0){let _0xc69b19=_0x34347f['nextSibling'];for(;_0xc69b19&&'listItem'==_0xc69b19['name']&&_0xc69b19['getAttribute']('listIndent')==_0x34347f['getAttribute']('listIndent');)_0x5ef1a6['push'](_0xc69b19),_0xc69b19=_0xc69b19['nextSibling'];}return _0x5ef1a6;}class mt extends _0x2699f5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x507634=this['editor']['config']['get']('list.properties'),_0x4c7c32=this['editor']['plugins']['get']('TrackChangesEditing');_0x507634['styles']&&_0x4c7c32['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x507634['reversed']&&_0x4c7c32['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x507634['startIndex']&&_0x4c7c32['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4c7c32['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5bc759,_0x3c91c4={}){const _0x45757e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x177258=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x45757e['markMultiRangeBlockFormat'](_0x177258,{'commandName':'listStyle','commandParams':[{'type':_0x3c91c4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5f2f5e,_0x1f63ae={}){const _0x37a17c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c9d61=this['_getSuggestionBlocks'](_0x437eda=>_0x437eda['is']('element','listItem')&&'numbered'===_0x437eda['getAttribute']('listType'));if(_0x4c9d61['length']<0x1)return;const _0x5ae973=_0x4c9d61['map'](_0x2a8dc0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a8dc0,'before'),this['editor']['model']['createPositionAt'](_0x2a8dc0,0x0)));this['editor']['model']['change'](()=>{_0x37a17c['markMultiRangeBlockFormat'](_0x5ae973,{'commandName':'listReversed','commandParams':[{'reversed':_0x1f63ae['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1afce5,_0x33a505={}){const _0x49cb42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21ba8b=this['_getSuggestionBlocks'](_0x18b539=>_0x18b539['is']('element','listItem')&&'numbered'===_0x18b539['getAttribute']('listType'));if(_0x21ba8b['length']<0x1)return;const _0x72b9c9=_0x21ba8b['map'](_0x4f1b7a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f1b7a,'before'),this['editor']['model']['createPositionAt'](_0x4f1b7a,0x0)));this['editor']['model']['change'](()=>{_0x49cb42['markMultiRangeBlockFormat'](_0x72b9c9,{'commandName':'listStart','commandParams':[{'startIndex':_0x33a505['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4fcefa){if('formatBlock'!=_0x4fcefa['type']&&'formatInline'!=_0x4fcefa['type'])return;const _0x169195=this['editor']['locale'],{data:_0x3a709c}=_0x4fcefa;if(!_0x3a709c)return;let _0x2cfeeb,_0x299b59;switch(_0x3a709c['commandName']){case'listStyle':_0x2cfeeb='*Change\x20to:*\x20%0',_0x299b59={'type':'format','content':o(_0x169195,_0x2cfeeb,o(_0x169195,this['_getTranslationKeyForListStyle'](_0x3a709c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2cfeeb=_0x3a709c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x299b59={'type':'format','content':o(_0x169195,_0x2cfeeb)};break;case'listStart':_0x2cfeeb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x299b59={'type':'format','content':o(_0x169195,_0x2cfeeb,_0x3a709c['commandParams'][0x0]['startIndex'])};}return _0x299b59;}['_getSuggestionBlocksForListStyle'](){const _0x7d45c0=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a4f3b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a4f3b[0x0]?.['is']('element','listItem')&&_0x5a4f3b['unshift'](..._0x7d45c0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a4f3b[_0x5a4f3b['length']-0x1]?.['is']('element','listItem')&&_0x5a4f3b['push'](..._0x7d45c0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a4f3b=[...new Set(_0x5a4f3b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a4f3b=_0x5a4f3b['filter'](_0x4f1192=>_0x4f1192['is']('element','listItem'))),_0x5a4f3b;}['_getSuggestionBlocks'](_0x33862d){const _0x59fef5=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b62d2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x33862d)['map'](_0x866a5e=>{const _0x4940b7=this['editor']['model']['createPositionAt'](_0x866a5e,0x0);return[..._0x59fef5['getSiblingNodes'](_0x4940b7,'backward'),..._0x59fef5['getSiblingNodes'](_0x4940b7,'forward')];})['flat']();return _0x5b62d2=[...new Set(_0x5b62d2)],_0x5b62d2;}['_getTranslationKeyForListStyle'](_0x4536c3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4536c3)||'default')['toUpperCase']()+'_LIST_'+_0x4536c3['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2699f5{['afterInit'](){const _0x279c54=this['editor'];if(!_0x279c54['plugins']['has']('MediaEmbedEditing'))return;const _0x1f710e=_0x279c54['plugins']['get']('TrackChangesEditing'),_0x143c9e=_0x279c54['locale'];_0x1f710e['enableCommand']('mediaEmbed'),_0x1f710e['descriptionFactory']['registerElementLabel']('media',_0x33b7a7=>o(_0x143c9e,'ELEMENT_MEDIA',_0x33b7a7));}}class pt extends _0x2699f5{['afterInit'](){const _0x572009=this['editor'];_0x572009['plugins']['has']('MentionEditing')&&_0x572009['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2699f5{['afterInit'](){const _0x447e06=this['editor'];if(!_0x447e06['plugins']['has']('MergeFieldsEditing'))return;const _0x33000a=_0x447e06['plugins']['get']('TrackChangesEditing'),_0x5aa65d=_0x447e06['locale'];_0x33000a['enableCommand']('insertMergeField'),_0x33000a['enableCommand']('insertMergeFieldBlock'),_0x33000a['enableCommand']('insertMergeFieldImage'),_0x33000a['descriptionFactory']['registerElementLabel']('mergeField',_0x593ac3=>o(_0x5aa65d,'ELEMENT_MERGE_FIELD',_0x593ac3)),_0x33000a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x491152=>o(_0x5aa65d,'ELEMENT_MERGE_FIELD',_0x491152)),_0x33000a['descriptionFactory']['registerDescriptionCallback'](_0x51bc73=>{if('insertion'!=_0x51bc73['type']&&'deletion'!=_0x51bc73['type'])return;const _0x218573=_0x51bc73['getContainedElement']();if(null==_0x218573)return;const _0x4508a5=_0x447e06['plugins']['get']('MergeFieldsEditing');let _0x57ccf5;switch(_0x4508a5['getMergeFieldType'](_0x218573)){case null:return;case'image':{const _0xde7a2a=_0x4508a5['unwrapAffixes'](_0x218573['getAttribute']('src'));_0x57ccf5=_0x4508a5['getLabel'](_0xde7a2a)||_0xde7a2a;break;}default:{const _0x37d70c=_0x218573['getAttribute']('id');_0x57ccf5=_0x4508a5['getLabel'](_0x37d70c)||_0x37d70c;break;}}return'insertion'==_0x51bc73['type']?{'type':'insertion','content':o(_0x5aa65d,'*Insert:*\x20%0','\x22'+_0x57ccf5+'\x22\x20'+o(_0x5aa65d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5aa65d,'*Remove:*\x20%0','\x22'+_0x57ccf5+'\x22\x20'+o(_0x5aa65d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2699f5{['afterInit'](){const _0xe55306=this['editor'],_0x84b156=_0xe55306['plugins']['get']('TrackChangesEditing');_0xe55306['plugins']['has']('MultiLevelList')&&(_0x84b156['enableDefaultAttributesIntegration']('multiLevelList'),_0x84b156['descriptionFactory']['registerDescriptionCallback'](_0x183a9c=>this['handleDescriptions'](_0x183a9c)));}['handleDescriptions'](_0x166563){const _0x3bb6c1=this['editor']['locale'],{data:_0xfc58df}=_0x166563,_0x2f2e90={'type':'format','content':''};if(_0xfc58df&&'listMarkerStyle'==_0xfc58df['key']){if(!_0xfc58df['oldValue'])return{'type':'format','content':o(_0x3bb6c1,'*Set\x20format:*\x20%0',o(_0x3bb6c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfc58df['newValue']+')'};if(!_0xfc58df['newValue']){let _0x392fed=_0x166563['head'];for(;_0x392fed;){if(_0x392fed['data']&&'listType'==_0x392fed['data']['key']&&_0x392fed['data']['newValue'])return _0x2f2e90;_0x392fed=_0x392fed['next'];}return{'type':'format','content':o(_0x3bb6c1,'*Remove\x20format:*\x20%0',o(_0x3bb6c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfc58df['oldValue']+')'};}}}}class bt extends _0x2699f5{['afterInit'](){const _0x3bb3bb=this['editor'];if(!_0x3bb3bb['plugins']['has']('PageBreakEditing'))return;_0x3bb3bb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2a7e9d=_0x3bb3bb['plugins']['get']('TrackChangesEditing'),_0x148dd2=_0x3bb3bb['locale'];_0x2a7e9d['descriptionFactory']['registerElementLabel']('pageBreak',_0x104836=>o(_0x148dd2,'ELEMENT_PAGE_BREAK',_0x104836));}}class yt extends _0x2699f5{['afterInit'](){const _0x354fe5=this['editor'];if(!_0x354fe5['plugins']['has']('Paragraph'))return;const _0x3913e6=_0x354fe5['locale'],_0x288bdb=_0x354fe5['plugins']['get']('TrackChangesEditing');_0x288bdb['descriptionFactory']['registerElementLabel']('paragraph',_0x2b3a83=>o(_0x3913e6,'ELEMENT_PARAGRAPH',_0x2b3a83)),_0x288bdb['enableDefaultAttributesIntegration']('paragraph'),_0x288bdb['enableCommand']('insertParagraph');const _0x14c03e=_0x288bdb['descriptionFactory'];_0x14c03e['registerDescriptionCallback'](_0x266132=>{if('insertion'!==_0x266132['type'])return;const {start:_0x16e3c5,end:_0x1e790a}=_0x266132['getFirstRange']();if(!_0x16e3c5['isTouching'](_0x1e790a)||!_0x16e3c5['nodeAfter'])return;const _0x5bea12=_0x354fe5['model']['schema'],_0x5ce251=_0x16e3c5['nodeAfter'];return _0x5bea12['isBlock'](_0x5ce251)&&!_0x5bea12['isLimit'](_0x5ce251)&&_0x5bea12['checkChild'](_0x5ce251,'$text')?{'type':'insertion','content':o(_0x3913e6,'*Insert:*\x20%0',_0x14c03e['getItemLabel'](_0x5ce251,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27c8f5=this['editor'],_0x3df589=_0x27c8f5['locale'];_0x27c8f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f336b=>{if('formatBlock'!=_0x2f336b['type'])return;const {data:_0x23b7a1}=_0x2f336b;return _0x23b7a1&&'paragraph'==_0x23b7a1['commandName']?{'type':'format','content':o(_0x3df589,'*Change\x20to:*\x20%0',o(_0x3df589,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2699f5{['afterInit'](){const _0x426bf5=this['editor'];_0x426bf5['commands']['get']('replaceSource')&&_0x426bf5['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2699f5{['afterInit'](){const _0x10e377=this['editor'];if(!_0x10e377['plugins']['has']('RemoveFormatEditing'))return;_0x10e377['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cab29=this['editor'];_0x4cab29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x261124=>{if('formatBlock'!=_0x261124['type']&&'formatInline'!=_0x261124['type'])return;const {data:_0x3e86e4}=_0x261124;return _0x3e86e4&&'removeFormat'==_0x3e86e4['commandName']?{'type':'format','content':o(_0x4cab29['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2699f5{['afterInit'](){const _0x2fad59=this['editor'];if(!_0x2fad59['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x307534=_0x2fad59['plugins']['get']('TrackChangesEditing');_0x307534['enableCommand']('goToPreviousRestrictedEditingException'),_0x307534['enableCommand']('goToNextRestrictedEditingException');const _0x526169=_0x2fad59['plugins']['get']('RestrictedEditingModeEditing');_0x526169['enableCommand']('trackChanges'),_0x526169['enableCommand']('acceptSuggestion'),_0x526169['enableCommand']('discardSuggestion'),_0x526169['enableCommand']('acceptAllSuggestions'),_0x526169['enableCommand']('discardAllSuggestions'),_0x526169['enableCommand']('acceptSelectedSuggestions'),_0x526169['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2699f5{['afterInit'](){const _0x2f189b=this['editor'];if(!_0x2f189b['plugins']['has']('ShiftEnter'))return;const _0x5ea184=_0x2f189b['plugins']['get']('TrackChangesEditing');_0x5ea184['enableCommand']('shiftEnter'),_0x5ea184['descriptionFactory']['registerElementLabel']('softBreak',_0x2b1ae1=>o(_0x2f189b['locale'],'ELEMENT_LINE_BREAK',_0x2b1ae1));}}function an(_0x54fdd5,_0x37d8c4,_0x1ed671){const _0x463b66=[];for(const _0x34ce4e of _0x37d8c4['getItems']())_0x34ce4e['hasAttribute'](_0x54fdd5)&&_0x463b66['push'](_0x1ed671['createRangeOn'](_0x34ce4e));return _0x463b66;}class _t extends _0x2699f5{['afterInit'](){const _0x3c3555=this['editor'],_0x4221c6=_0x3c3555['plugins']['get']('TrackChangesEditing');_0x3c3555['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4221c6['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xe52ede=this['editor'],_0x32a840=_0xe52ede['model'],_0xf9195e=_0xe52ede['locale'],_0x4d06d1=_0xe52ede['plugins']['get']('TrackChangesEditing'),_0x21f135='restrictedEditingException',_0x1a2710=_0xe52ede['commands']['get'](_0x21f135);_0x4d06d1['enableCommand'](_0x21f135,(_0x531fe1,_0x56cb37={})=>{const _0x3daa1c=_0x32a840['document']['selection'];if(_0x3daa1c['isCollapsed'])return void _0x531fe1(_0x56cb37);const _0x69199c=void 0x0!==_0x56cb37['forceValue']?_0x56cb37['forceValue']:!_0x1a2710['value'];_0x32a840['change'](()=>{const _0x299e8d=Array['from'](_0x3daa1c['getRanges']());for(const _0x2a80b8 of _0x299e8d){const _0x4f4e65=_0x69199c?[_0x2a80b8]:an(_0x21f135,_0x2a80b8,_0x32a840);for(const _0x2574f5 of _0x4f4e65)_0x4d06d1['markInlineFormat'](_0x2574f5,{'commandName':_0x21f135,'commandParams':[{'forceValue':_0x69199c}]});}});}),_0x4d06d1['descriptionFactory']['registerDescriptionCallback'](_0x5c61e0=>{if('formatBlock'!=_0x5c61e0['type']&&'formatInline'!=_0x5c61e0['type'])return;const {data:_0x304164}=_0x5c61e0;return _0x304164&&_0x304164['commandName']==_0x21f135?_0x304164['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf9195e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xf9195e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x385664=this['editor'],_0x4b44a2=_0x385664['locale'],_0xc3a4df=_0x385664['plugins']['get']('TrackChangesEditing'),_0xed386f='restrictedEditingExceptionBlock',_0x4c3cb0=this['editor']['commands']['get'](_0xed386f);_0xc3a4df['enableCommand'](_0xed386f,(_0x262330,_0x11ea44={})=>{const _0x200da9=this['editor']['model']['document']['selection'],_0x303a9b=_0x11ea44&&void 0x0!==_0x11ea44['forceValue']?_0x11ea44['forceValue']:!_0x4c3cb0['value'];let _0x18c4d2=[];if(_0x303a9b){const _0x47afc2=Array['from'](_0x200da9['getSelectedBlocks']())['filter'](_0x42931e=>function(_0x1cac91){return!!_0x1cac91['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x42931e)||function(_0x1139ee,_0x483a4c){const _0x8ec1bf=_0x483a4c['createContext'](_0x1139ee['parent']);if(!_0x483a4c['checkChild'](_0x8ec1bf,'restrictedEditingException'))return!0x1;if(!_0x483a4c['checkChild'](_0x8ec1bf['push']('restrictedEditingException'),_0x1139ee))return!0x1;return!0x0;}(_0x42931e,this['editor']['model']['schema']));_0x18c4d2=to(_0x47afc2,_0x385664['model']);}else{const _0x561ff7=Array['from'](_0x200da9['getSelectedBlocks']())['map'](_0x1c995b=>function(_0x2ba3f9){let _0x598c94=_0x2ba3f9;for(;_0x598c94['parent'];){if('restrictedEditingException'==_0x598c94['parent']['name'])return _0x598c94;_0x598c94=_0x598c94['parent'];}return null;}(_0x1c995b))['filter'](_0x7ce93=>!!_0x7ce93);_0x18c4d2=to(_0x561ff7,_0x385664['model']);}_0x385664['model']['change'](()=>{for(const _0x1568f0 of _0x18c4d2)_0xc3a4df['markBlockFormat'](_0x1568f0,{'commandName':_0xed386f,'commandParams':[{'forceValue':_0x303a9b}]});});}),_0xc3a4df['descriptionFactory']['registerDescriptionCallback'](_0x300a14=>{const {data:_0xd64617}=_0x300a14;if(_0xd64617&&_0xd64617['commandName']==_0xed386f)return _0xd64617['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b44a2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4b44a2,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2699f5{['afterInit'](){const _0x9bae22=this['editor'];if(!_0x9bae22['plugins']['has']('Style')||!_0x9bae22['plugins']['has']('DataSchema'))return;const _0x4a5a40=_0x9bae22['plugins']['get']('TrackChangesEditing'),_0x650562=_0x9bae22['locale'],_0x4ae494=_0x9bae22['config']['get']('style')||{},_0x4994ea=_0x9bae22['plugins']['get']('GeneralHtmlSupport'),_0x19a1ae=_0x9bae22['plugins']['get']('StyleUtils')['normalizeConfig'](_0x9bae22['plugins']['get']('DataSchema'),_0x4ae494['definitions']);_0x4a5a40['enableDefaultAttributesIntegration']('style');const _0x59332e=new Set();for(const _0x216122 of _0x19a1ae['block']){const _0x109c0e=_0x4994ea['getGhsAttributeNameForElement'](_0x216122['element']);_0x59332e['add'](_0x109c0e);}const _0x42fb37=new Set();for(const _0x425a14 of _0x19a1ae['inline']){const _0x5b1858=_0x4994ea['getGhsAttributeNameForElement'](_0x425a14['element']);_0x42fb37['add'](_0x5b1858);for(const _0x29f69d of _0x425a14['ghsAttributes'])_0x42fb37['add'](_0x29f69d);}for(const _0x3b2178 of _0x59332e)_0x4a5a40['descriptionFactory']['registerAttributeLabel'](_0x3b2178,o(_0x650562,'FORMAT_STYLE'));for(const _0x225e1a of _0x42fb37)_0x4a5a40['descriptionFactory']['registerAttributeLabel'](_0x225e1a,o(_0x650562,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a0a0f=this['editor'],_0x40b467=_0x5a0a0f['locale'];_0x5a0a0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54aaee=>{if('formatBlock'!=_0x54aaee['type']&&'formatInline'!=_0x54aaee['type'])return;const {data:_0x248bd8}=_0x54aaee;return _0x248bd8&&'style'===_0x248bd8['commandName']?_0x248bd8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40b467,'*Set\x20format:*\x20%0',_0x248bd8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x40b467,'*Remove\x20format:*\x20%0',_0x248bd8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2699f5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x199ed2){super(_0x199ed2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x25c702=this['editor'],_0x696825=_0x25c702['model']['document']['selection'];if(!_0x25c702['plugins']['has']('TableEditing'))return;const _0x52d1ce=_0x25c702['locale'],_0x19eb5d=_0x25c702['plugins']['get']('TrackChangesEditing'),_0x297390=_0x25c702['plugins']['get']('TableUtils');_0x19eb5d['descriptionFactory']['registerElementLabel']('table',_0x5a061c=>o(_0x52d1ce,'ELEMENT_TABLE',_0x5a061c)),this['_setupColumnsRowsFixing'](),_0x19eb5d['enableCommand']('insertTable'),_0x19eb5d['enableCommand']('selectTableRow'),_0x19eb5d['enableCommand']('selectTableColumn');for(const _0x2b5c01 of['insertTableRowAbove','insertTableRowBelow']){const _0x5deb62=_0x25c702['commands']['get'](_0x2b5c01);_0x19eb5d['enableCommand'](_0x2b5c01,_0x51e286=>{_0x25c702['model']['change'](_0x37f42f=>{_0x51e286();const _0x116341='above'===_0x5deb62['order'],_0x3e5011=_0x297390['getSelectionAffectedTableCells'](_0x696825),_0x2c53a7=_0x297390['getRowIndexes'](_0x3e5011),_0x5bae07=_0x116341?_0x2c53a7['first']-0x1:_0x2c53a7['last']+0x1,_0x120df0=_0x3e5011[0x0]['findAncestor']('table'),_0x21935d=_0x297390['createTableWalker'](_0x120df0,{'startRow':_0x5bae07,'endRow':_0x5bae07}),_0x40fa04=Array['from'](_0x21935d)['map'](_0x102d65=>_0x37f42f['createRangeOn'](_0x102d65['cell']));_0x19eb5d['markMultiRangeInsertion'](_0x40fa04,'tableRow');});});}for(const _0x599317 of['insertTableColumnLeft','insertTableColumnRight']){const _0x334182=_0x25c702['commands']['get'](_0x599317);_0x19eb5d['enableCommand'](_0x599317,_0x5daa6a=>{_0x25c702['model']['change'](_0x3e3a5c=>{_0x5daa6a();const _0x322ef2='left'===_0x334182['order'],_0x1c8c88=_0x297390['getSelectionAffectedTableCells'](_0x696825),_0x12de0f=_0x297390['getColumnIndexes'](_0x1c8c88),_0x14949f=_0x322ef2?_0x12de0f['first']-0x1:_0x12de0f['last']+0x1,_0x4dda42=_0x1c8c88[0x0]['findAncestor']('table'),_0x22108c=_0x297390['createTableWalker'](_0x4dda42,{'startRow':0x0,'column':_0x14949f,'includeAllSlots':!0x1}),_0x1fa048=Array['from'](_0x22108c)['map'](_0x1f247d=>_0x3e3a5c['createRangeOn'](_0x1f247d['cell']));_0x19eb5d['markMultiRangeInsertion'](_0x1fa048,'tableColumn');});});}for(const _0x38dbe8 of['removeTableRow','removeTableColumn']){const _0x4a722c=_0x38dbe8['substr'](0xb),_0x40d254=_0x4a722c['toLowerCase'](),_0x4fae57=_0x40d254['substr'](0x0,0x3)+'span',_0x104669='table'+_0x4a722c,_0x2be24c='min'+_0x4a722c,_0x1df793='max'+_0x4a722c;_0x19eb5d['enableCommand'](_0x38dbe8,()=>{_0x25c702['model']['change'](_0xdc45c3=>{const _0x52f6f9=_0x297390['getSelectionAffectedTableCells'](_0x696825),_0xd0a8d7=_0x52f6f9[0x0]['findAncestor']('table');let _0x1f2054;if('removeTableRow'==_0x38dbe8){const _0x448b20=_0x297390['getRowIndexes'](_0x52f6f9);_0x1f2054={'startRow':_0x448b20['first'],'endRow':_0x448b20['last'],'includeAllSlots':!0x0};}else{const _0x27e3eb=_0x297390['getColumnIndexes'](_0x52f6f9);_0x1f2054={'startColumn':_0x27e3eb['first'],'endColumn':_0x27e3eb['last'],'includeAllSlots':!0x0};}const _0x3eec34=_0x297390['createTableWalker'](_0xd0a8d7,_0x1f2054),_0x528441=Array['from'](_0x3eec34)['map'](({cell:_0x237706})=>_0x237706),_0xb4c528=_e(_0x528441['filter'](_0x2ca2cc=>_0x2ca2cc['hasAttribute'](_0x4fae57))),_0x2395d2=_e(_0x528441['filter'](_0x1f6ddc=>!_0x1f6ddc['hasAttribute'](_0x4fae57)))['map'](_0x2db3a9=>_0xdc45c3['createRangeOn'](_0x2db3a9)),_0x36ba3d=_0x19eb5d['markMultiRangeDeletion'](_0x2395d2,_0x104669);if(_0x36ba3d&&('tableRow'==_0x36ba3d['subType']||'tableColumn'==_0x36ba3d['subType'])){const _0x22bd4b=this['_getSuggestionCoords'](_0x36ba3d);for(const _0x136f41 of _0xb4c528){const _0x4ab565=_0xdc45c3['createRangeOn'](_0x136f41),_0x4d3b91=_0x297390['getCellLocation'](_0x136f41),_0x218741=_0x136f41['getAttribute'](_0x4fae57)-0x1,_0x5e114a=_0x22bd4b[_0x2be24c],_0x226f02=_0x22bd4b[_0x1df793];_0x5e114a<=_0x4d3b91[_0x40d254]&&_0x4d3b91[_0x40d254]+_0x218741<=_0x226f02&&_0x36ba3d['addRange'](_0x4ab565);}}});});}function _0x491142(_0x245fc7){const _0x312190=Array['from'](_0x696825['getRanges']())['map'](_0x49f329=>_0x3eedc6['fromRange'](_0x49f329));_0x25c702['model']['change'](_0x43417a=>{const _0x4cb68d=_0x43417a['batch'];_0x245fc7=_0x245fc7['filter'](_0x474801=>'$graveyard'!=_0x474801['root']['rootName']),_0x43417a['setSelection'](_0x245fc7),_0x25c702['commands']['get']('removeTableRow')['refresh'](),_0x25c702['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x25c702['model']['enqueueChange'](()=>{_0x25c702['model']['enqueueChange'](_0x4cb68d,_0x59c140=>{const _0x33c365=_0x312190['filter'](_0x4f8c5b=>'$graveyard'!=_0x4f8c5b['root']['rootName']);_0x33c365['length']>0x0&&_0x59c140['setSelection'](_0x33c365);for(const _0x161ee0 of _0x312190)_0x161ee0['detach']();});});});}function _0xbfe205(_0x23ce30){_0x25c702['model']['change'](_0x1a2079=>{const _0xe2cfaf=Array['from'](_0x696825['getRanges']())['map'](_0x148a22=>_0x3eedc6['fromRange'](_0x148a22)),_0x7b0ac1=[];for(const _0x5c2711 of _0x23ce30)for(const _0x17f7e6 of _0x5c2711['getItems']({'shallow':!0x0}))_0x7b0ac1['push'](_0x17f7e6);for(const _0x2e93da of _0x7b0ac1)'$graveyard'!=_0x2e93da['root']['rootName']&&(_0x1a2079['setSelection'](_0x1a2079['createPositionAt'](_0x2e93da,0x0)),_0x25c702['commands']['get']('removeTableColumn')['refresh'](),_0x25c702['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x44e0e7=_0xe2cfaf['filter'](_0x414087=>'$graveyard'!=_0x414087['root']['rootName']);_0x44e0e7['length']>0x0&&_0x1a2079['setSelection'](_0x44e0e7);for(const _0x1e514c of _0xe2cfaf)_0x1e514c['detach']();});}function _0x2623c2(_0x18f05c,_0x3c0fe2){return _0x3c0fe2['every'](_0x5021c8=>_0x18f05c['some'](_0x31c204=>_0x31c204['end']['isEqual'](_0x5021c8['start'])||_0x5021c8['end']['isEqual'](_0x31c204['start'])));}function _0x453d87(_0x542ba5,_0x8fb45a){return!_0x542ba5['some'](_0x315b58=>_0x8fb45a['some'](_0x56c5da=>_0x315b58['isIntersecting'](_0x56c5da)))&&_0x542ba5['some'](_0x387ba6=>_0x8fb45a['some'](_0x2a2476=>_0x387ba6['end']['isTouching'](_0x2a2476['start'])));}_0x19eb5d['descriptionFactory']['registerDescriptionCallback'](_0x10b677=>{if('insertion'!=_0x10b677['type']&&'deletion'!=_0x10b677['type'])return;const _0x2b5bff=_0x10b677['getContainedElement']();if(null!=_0x2b5bff&&_0x2b5bff['is']('element','table')){if('insertion'==_0x10b677['type']){const _0x3a5a4a=_0x10b677['getItems']()['filter'](_0x4846af=>_0x4846af['is']('$textProxy'))['map'](_0x3195bf=>_0x3195bf['data']);if(_0x3a5a4a['length'])return{'type':'insertion','content':o(_0x52d1ce,'*Insert:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a5a4a['join']('\x20')+'\x22'))};}if('deletion'==_0x10b677['type']){const _0x48af8e=_0x10b677['getItems']()['filter'](_0x2cc45e=>_0x2cc45e['is']('$textProxy'))['map'](_0xc2cc41=>_0xc2cc41['data']);if(_0x48af8e['length'])return{'type':'deletion','content':o(_0x52d1ce,'*Remove:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x48af8e['join']('\x20')+'\x22'))};}}}),_0x19eb5d['descriptionFactory']['registerDescriptionCallback'](_0x17f968=>{if('tableRow'==_0x17f968['subType']){const _0x58cdf8=_0x17f968['getItems']()['filter'](_0x4c17bf=>_0x4c17bf['is']('$textProxy'))['map'](_0x2c68b3=>_0x2c68b3['data']),_0x5423b9=this['_getSuggestionCoords'](_0x17f968),_0x2272e8=_0x5423b9['maxRow']-_0x5423b9['minRow']+0x1;if('insertion'==_0x17f968['type'])return _0x58cdf8['length']?{'type':'insertion','content':o(_0x52d1ce,'*Insert:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2272e8,'\x22'+_0x58cdf8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x52d1ce,'*Insert:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_ROW',_0x2272e8))};if('deletion'==_0x17f968['type'])return _0x58cdf8['length']?{'type':'deletion','content':o(_0x52d1ce,'*Remove:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2272e8,'\x22'+_0x58cdf8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x52d1ce,'*Remove:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_ROW',_0x2272e8))};}if('tableColumn'==_0x17f968['subType']){const _0x53ce82=_0x17f968['getItems']()['filter'](_0x563504=>_0x563504['is']('$textProxy'))['map'](_0x330515=>_0x330515['data']),_0x14718e=this['_getSuggestionCoords'](_0x17f968),_0x43c098=_0x14718e['maxColumn']-_0x14718e['minColumn']+0x1;if('insertion'==_0x17f968['type'])return _0x53ce82['length']?{'type':'insertion','content':o(_0x52d1ce,'*Insert:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x43c098,'\x22'+_0x53ce82['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x52d1ce,'*Insert:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_COLUMN',_0x43c098))};if('deletion'==_0x17f968['type'])return _0x53ce82['length']?{'type':'deletion','content':o(_0x52d1ce,'*Remove:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x43c098,'\x22'+_0x53ce82['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x52d1ce,'*Remove:*\x20%0',o(_0x52d1ce,'ELEMENT_TABLE_COLUMN',_0x43c098))};}}),_0x19eb5d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x491142),_0x19eb5d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x491142),_0x19eb5d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xbfe205),_0x19eb5d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xbfe205),_0x19eb5d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2623c2),_0x19eb5d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2623c2),_0x19eb5d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x453d87),_0x19eb5d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x453d87);}['_acceptFormatSuggestionCallbackFactory'](){const _0x99fbe7=this['editor'],_0x4d27fd=_0x99fbe7['model']['document']['selection'];return(_0x47cdfb,_0x255fd0)=>{_0x99fbe7['model']['change'](_0x387d83=>{const {commandName:_0x27d3bf,commandParams:_0x24d05b}=_0x255fd0;let _0x59df12=_0x47cdfb[0x0]['end']['nodeBefore'];_0x24d05b&&_0x24d05b[0x0]&&!0x1===_0x24d05b[0x0]['forceValue']&&(_0x59df12=_0x47cdfb[0x0]['start']['nodeAfter']);const _0x7f812e=_0x387d83['createRangeIn'](_0x59df12);if('$graveyard'==_0x7f812e['root']['rootName'])return;const _0x3cbfa8=Array['from'](_0x4d27fd['getRanges']())['map'](_0x4cdca1=>_0x3eedc6['fromRange'](_0x4cdca1));_0x387d83['setSelection'](_0x7f812e),_0x99fbe7['commands']['get'](_0x27d3bf)['refresh'](),_0x24d05b['push']({'forceDefaultExecution':!0x0}),_0x99fbe7['execute'](_0x27d3bf,..._0x24d05b);const _0xa249c1=_0x3cbfa8['filter'](_0x17c7b2=>'$graveyard'!=_0x17c7b2['root']['rootName']);_0xa249c1['length']>0x0&&_0x387d83['setSelection'](_0xa249c1);for(const _0x469156 of _0x3cbfa8)_0x469156['detach']();});};}['_getCoordsForCells'](_0x453da0){const _0x1ffc21=this['editor']['plugins']['get']('TableUtils');let _0x5c21a3=Number['MAX_SAFE_INTEGER'],_0x120662=Number['MIN_SAFE_INTEGER'],_0x5dfa37=Number['MAX_SAFE_INTEGER'],_0x5df41c=Number['MIN_SAFE_INTEGER'];for(const _0x509b18 of _0x453da0){if('$graveyard'==_0x509b18['root']['rootName'])continue;const {row:_0x1b87da,column:_0x5ad6e0}=_0x1ffc21['getCellLocation'](_0x509b18),_0x58be69=_0x509b18['hasAttribute']('rowspan')?_0x509b18['getAttribute']('rowspan')-0x1:0x0,_0x2bd89e=_0x509b18['hasAttribute']('colspan')?_0x509b18['getAttribute']('colspan')-0x1:0x0;_0x5c21a3=_0x1b87da<_0x5c21a3?_0x1b87da:_0x5c21a3,_0x120662=_0x1b87da+_0x58be69>_0x120662?_0x1b87da+_0x58be69:_0x120662,_0x5dfa37=_0x5ad6e0<_0x5dfa37?_0x5ad6e0:_0x5dfa37,_0x5df41c=_0x5ad6e0+_0x2bd89e>_0x5df41c?_0x5ad6e0+_0x2bd89e:_0x5df41c;}return{'minRow':_0x5c21a3,'maxRow':_0x120662,'minColumn':_0x5dfa37,'maxColumn':_0x5df41c};}['_setupColumnsRowsFixing'](){const _0x533499=this['editor'],_0x12d459=_0x533499['plugins']['get']('TrackChangesEditing'),_0x1d0966=_0x533499['plugins']['get']('TableUtils');_0x533499['model']['document']['on']('change:data',()=>{const _0x41df0d=Array['from'](_0x533499['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd39866,data:_0x58c0d3}of _0x41df0d){const {group:_0x433142,id:_0x287802,subType:_0x2ed846}=_0x12d459['_splitMarkerName'](_0xd39866);if('suggestion'!=_0x433142)continue;if(null!=_0x58c0d3['oldRange'])continue;const _0x2d0c20=_0x12d459['getSuggestion'](_0x287802);this['_tablePostFixingSubtypes']['includes'](_0x2ed846)&&this['_tableSuggestions']['add'](_0x2d0c20);}},{'priority':'low'});const _0x3a33c7=(_0x320b5f,_0x25eba9)=>{let _0x97712c=!0x1;const _0x1cdef3=_0x25eba9['createRangeOn'](_0x320b5f),_0x296a7b=_0x320b5f['findAncestor']('table'),_0x1d7d78=_0x1d0966['getCellLocation'](_0x320b5f);for(const _0x3753e2 of this['_tableSuggestions']){const _0x2db628=_0x3753e2['subType'],_0x14b383=_0x2db628['startsWith']('tablePaste'),_0x5d04eb=_0x2db628['substr'](_0x14b383?0xa:0x5),_0x40d377=_0x5d04eb['toLowerCase'](),_0x58f25d=_0x40d377['substr'](0x0,0x3)+'span',_0x58194a='min'+_0x5d04eb,_0x565115='max'+_0x5d04eb;if(!_0x3753e2['isInContent'])continue;if(_0x296a7b!=_0x3753e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3753e2['isIntersectingWithRange'](_0x1cdef3))continue;const _0x63f17e=_0x320b5f['hasAttribute'](_0x58f25d)?_0x320b5f['getAttribute'](_0x58f25d)-0x1:0x0,_0xcd71c5=this['_getSuggestionCoords'](_0x3753e2),_0x5e1d28=_0xcd71c5[_0x58194a],_0x57cdce=_0xcd71c5[_0x565115];_0x5e1d28<=_0x1d7d78[_0x40d377]&&_0x1d7d78[_0x40d377]+_0x63f17e<=_0x57cdce&&(_0x3753e2['addRange'](_0x1cdef3),_0x97712c=!0x0);}return _0x97712c;};_0x533499['model']['document']['registerPostFixer'](_0xbdb62f=>{let _0x3d1c2c=!0x1;for(const _0xe966d7 of _0x533499['model']['document']['differ']['getChanges']())if('insert'==_0xe966d7['type']){if('tableRow'==_0xe966d7['name']){for(const _0x3cf36d of _0xe966d7['position']['nodeAfter']['getChildren']())_0x3d1c2c=_0x3d1c2c||_0x3a33c7(_0x3cf36d,_0xbdb62f);}else'tableCell'==_0xe966d7['name']&&(_0x3d1c2c=_0x3d1c2c||_0x3a33c7(_0xe966d7['position']['nodeAfter'],_0xbdb62f));}return _0x3d1c2c;});}['_getSuggestionCoords'](_0xdaac25){return this['_getCoordsForCells'](_0xdaac25['getRanges']()['map'](_0x10b1df=>_0x10b1df['start']['nodeAfter']));}}function _e(_0x5032f6){return Array['from'](new Set(_0x5032f6)['values']());}class $t extends _0x2699f5{static get['requires'](){return[Nt];}['afterInit'](){const _0x19a304=this['editor'],_0x294b26=_0x19a304['model']['document']['selection'],_0x99fb97=_0x19a304['locale'];if(!_0x19a304['plugins']['has']('TableEditing'))return;const _0x4bfc1a=_0x19a304['plugins']['get']('TrackChangesEditing'),_0x5822a3=_0x19a304['plugins']['get']('TableUtils'),_0x486500=_0x19a304['plugins']['get'](Nt);_0x486500['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4bfc1a['enableCommand']('mergeTableCells',()=>{const _0x423659=_0x5822a3['getSelectionAffectedTableCells'](_0x19a304['model']['document']['selection']);_0x19a304['model']['change'](()=>{_0x4bfc1a['markMultiRangeBlockFormat'](_0x423659,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x19a304['commands']['get']('mergeTableCells')['on']('execute',(_0x337dba,_0x4860ae)=>{_0x19a304['commands']['get']('trackChanges')['value']&&(_0x4860ae['length']>0x0&&_0x4860ae[_0x4860ae['length']-0x1]&&_0x4860ae[_0x4860ae['length']-0x1]['forceDefaultExecution']||_0x4bfc1a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x337dba['stop']());},{'priority':'highest'});for(const _0x392022 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x20b3b6=_0x19a304['commands']['get'](_0x392022);_0x4bfc1a['enableCommand'](_0x392022,()=>{const _0x8ed83a=_0x19a304['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x255e42=>_0x255e42['is']('element','tableCell')),_0x904df7=_0x20b3b6['value'];_0x19a304['model']['change'](()=>{_0x4bfc1a['markMultiRangeBlockFormat']([_0x8ed83a,_0x904df7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x28e2cd of['splitTableCellVertically','splitTableCellHorizontally']){const _0xba3dac=_0x19a304['commands']['get'](_0x28e2cd);_0x4bfc1a['enableCommand'](_0x28e2cd,()=>{const _0x28c0b7=_0x5822a3['getSelectionAffectedTableCells'](_0x19a304['model']['document']['selection'])[0x0],_0x221093=_0x28c0b7['findAncestor']('table'),{column:_0x4757c4,row:_0x319bd3}=_0x5822a3['getCellLocation'](_0x28c0b7);let _0x3363b3=[];if('horizontally'==_0xba3dac['direction']){const _0x3bc0ad=_0x5822a3['createTableWalker'](_0x221093,{'startRow':_0x319bd3,'endRow':_0x319bd3,'includeAllSlots':!0x0});_0x3363b3=Array['from'](_0x3bc0ad)['map'](_0x1d7478=>_0x1d7478['cell']);}else{const _0x3a70d2=_0x5822a3['createTableWalker'](_0x221093,{'column':_0x4757c4,'includeAllSlots':!0x0});_0x3363b3=Array['from'](_0x3a70d2)['map'](_0xde7c30=>_0xde7c30['cell']);}_0x19a304['model']['change'](_0x651683=>{_0x4bfc1a['markBlockFormat'](_0x651683['createRangeOn'](_0x28c0b7),{'commandName':_0x28e2cd,'commandParams':[]},_0x3363b3,_0x28e2cd);});});}_0x4bfc1a['descriptionFactory']['registerDescriptionCallback'](_0x49510f=>{if('formatBlock'!=_0x49510f['type']&&'formatInline'!=_0x49510f['type'])return;const {data:_0x4d7c99}=_0x49510f;return _0x4d7c99&&'mergeTableCells'==_0x4d7c99['commandName']?{'type':'format','content':o(_0x99fb97,'*Merge\x20cells*')}:void 0x0;}),_0x4bfc1a['descriptionFactory']['registerDescriptionCallback'](_0x4089a8=>{if('formatBlock'!=_0x4089a8['type']&&'formatInline'!=_0x4089a8['type'])return;const {data:_0x248ace}=_0x4089a8;return _0x248ace?'splitTableCellVertically'==_0x248ace['commandName']?{'type':'format','content':o(_0x99fb97,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x248ace['commandName']?{'type':'format','content':o(_0x99fb97,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x33f081=_0x486500['_acceptFormatSuggestionCallbackFactory']();for(const _0x12502c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4bfc1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12502c,'accept',_0x33f081);for(const _0x3ca26f of['splitTableCellVertically','splitTableCellHorizontally'])_0x4bfc1a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ca26f,'accept',_0x33f081);_0x4bfc1a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5d75b8=>{_0x19a304['model']['change'](_0x319c85=>{const _0x3f4182=Array['from'](_0x294b26['getRanges']())['map'](_0x116321=>_0x3eedc6['fromRange'](_0x116321));_0x319c85['setSelection'](_0x5d75b8),_0x19a304['commands']['get']('mergeTableCells')['refresh'](),_0x19a304['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x120c0a=_0x3f4182['filter'](_0x4c84ad=>'$graveyard'!=_0x4c84ad['root']['rootName']);_0x120c0a['length']>0x0&&_0x319c85['setSelection'](_0x120c0a);for(const _0x5c4715 of _0x3f4182)_0x5c4715['detach']();});});for(const _0x3419ab of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x14caa1=_0x19a304['commands']['get'](_0x3419ab);_0x14caa1['on']('set:isEnabled',(_0x570fb6,_0x8982bb,_0x272273)=>{if(_0x272273){const _0x2a5625=_0x19a304['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfd3d5=>_0xfd3d5['is']('element','tableCell'));this['_areMergableCells'](_0x14caa1['value'],_0x2a5625)||(_0x570fb6['return']=!0x1,_0x570fb6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x48a083=this['editor']['commands']['get']('mergeTableCells'),_0x2ccf9d=this['editor']['plugins']['get']('TableUtils');if(!_0x48a083['isEnabled'])return!0x1;const _0x24a041=_0x2ccf9d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x45cd87 of _0x24a041)for(const _0x4ebfe2 of _0x24a041)if(_0x45cd87!=_0x4ebfe2&&!this['_areMergableCells'](_0x45cd87,_0x4ebfe2))return!0x1;return!0x0;}['_areMergableCells'](_0x1d6863,_0x5ad6f6){const _0x34481b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b6069=this['editor']['model']['createRangeOn'](_0x1d6863),_0xf84696=this['editor']['model']['createRangeOn'](_0x5ad6f6),_0x1cf02f=new Set(),_0x5c7ba1=new Set();for(const _0x130be9 of _0x34481b['getSuggestions']())if(('insertion'==_0x130be9['type']||'deletion'==_0x130be9['type']||'mergeTableCells'==_0x130be9['subType'])&&_0x130be9['isInContent']){for(const _0x2d0f19 of _0x130be9['getRanges']())_0x2d0f19['containsRange'](_0x3b6069,!0x0)&&_0x1cf02f['add'](_0x130be9['type']+':'+_0x130be9['author']['id']),_0x2d0f19['containsRange'](_0xf84696,!0x0)&&_0x5c7ba1['add'](_0x130be9['type']+':'+_0x130be9['author']['id']);}if(_0x1cf02f['size']!=_0x5c7ba1['size'])return!0x1;for(const _0x2f8107 of _0x1cf02f)if(!_0x5c7ba1['has'](_0x2f8107))return!0x1;return!0x0;}}class vt extends _0x2699f5{static get['requires'](){return[Nt];}['afterInit'](){const _0x2966da=this['editor'];if(!_0x2966da['plugins']['has']('TableEditing'))return;const _0x398c69=_0x2966da['locale'],_0xccc94b=_0x2966da['plugins']['get']('TrackChangesEditing');_0xccc94b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xccc94b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xccc94b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x398c69,'FORMAT_HEADER_ROW')),_0xccc94b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x398c69,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2ee09e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ffd48=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x2ee09e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1ffd48),_0x2ee09e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1ffd48),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x560c56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38f009=this['editor']['plugins']['get']('TableUtils');function _0x54e6a9({showActiveMarker:_0x3695ef=!0x0,setDataAttribute:_0x2bae27=!0x0}={}){return(_0x14f3e1,_0x5be229,_0x1ec9e9)=>{const {type:_0x209938,id:_0x4d4146}=_0x560c56['_splitMarkerName'](_0x5be229['markerName']);if(!_0x560c56['hasSuggestion'](_0x4d4146))return;const _0xad9e7d=_0x560c56['getSuggestion'](_0x4d4146),_0x5a9822=_0xad9e7d['data'];if('formatBlock'!=_0xad9e7d['type']||!_0x5a9822||'setTableColumnHeader'!=_0x5a9822['commandName'])return;if(_0x5be229['item'])return void _0x14f3e1['stop']();if(!_0x1ec9e9['consumable']['consume'](_0x5be229['markerRange'],_0x14f3e1['name']))return;const _0x45df9f=_0x5be229['markerRange']['start']['nodeAfter'],_0x317701=_0x5be229['markerRange']['end']['nodeBefore'],_0x43a570=_0x45df9f['parent']['parent'],{column:_0x2aa986}=_0x38f009['getCellLocation'](_0x45df9f),{column:_0x553fc0}=_0x38f009['getCellLocation'](_0x317701);for(let _0x111198=_0x2aa986;_0x111198<=_0x553fc0;_0x111198++){const _0x15be25=_0x38f009['createTableWalker'](_0x43a570,{'column':_0x111198,'includeAllSlots':!0x1});for(const _0x52ac64 of _0x15be25){const _0x12501b=_0x52ac64['cell'],_0x2252ff=_0x1ec9e9['mapper']['toViewElement'](_0x12501b);_0x1ec9e9['writer']['addClass']('ck-suggestion-marker-'+_0x209938,_0x2252ff),_0x2bae27&&_0x1ec9e9['writer']['setAttribute']('data-suggestion',_0x4d4146,_0x2252ff),_0x1ec9e9['mapper']['bindElementToMarker'](_0x2252ff,_0x5be229['markerName']),_0x3695ef&&(_0x560c56['activeMarkers']['includes'](_0x5be229['markerName'])?_0x1ec9e9['writer']['addClass']('ck-suggestion-marker--active',_0x2252ff):_0x1ec9e9['writer']['removeClass']('ck-suggestion-marker--active',_0x2252ff));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x54e6a9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4664dc,_0x2f340d,_0x5a816f)=>{_0x5a816f['options']['showSuggestionHighlights']&&_0x54e6a9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4664dc,_0x2f340d,_0x5a816f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x256e0a,_0x16c939,_0x341073)=>{const {type:_0x574afe,id:_0x15b787}=_0x560c56['_splitMarkerName'](_0x16c939['markerName']);if(!_0x560c56['hasSuggestion'](_0x15b787))return;const _0x1fe832=_0x560c56['getSuggestion'](_0x15b787),_0x593c08=_0x1fe832['data'];if('formatBlock'!=_0x1fe832['type']||!_0x593c08||'setTableColumnHeader'!=_0x593c08['commandName'])return;const _0x33f037=_0x341073['mapper']['markerNameToElements'](_0x16c939['markerName']);if(_0x33f037){for(const _0x34112e of _0x33f037)_0x341073['writer']['removeClass']('ck-suggestion-marker-'+_0x574afe,_0x34112e),_0x341073['writer']['removeClass']('ck-suggestion-marker--active',_0x34112e),_0x341073['writer']['removeAttribute']('data-suggestion',_0x34112e),_0x341073['mapper']['unbindElementFromMarkerName'](_0x34112e,_0x16c939['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x387a85=this['editor'],_0x1ae0d2=_0x387a85['locale'];function _0x237562(_0x42ae0d){return{'type':'format','content':o(_0x1ae0d2,'*Format:*\x20%0',_0x42ae0d)};}_0x387a85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2201c9=>{if('formatBlock'!=_0x2201c9['type'])return;const {data:_0x1600d0}=_0x2201c9;if(_0x1600d0){if('setTableRowHeader'==_0x1600d0['commandName']){const _0x17945f=_0x1600d0['commandParams'][0x0]['forceValue'];return _0x237562(o(_0x1ae0d2,_0x17945f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1600d0['commandName']){const _0x6ef386=_0x1600d0['commandParams'][0x0]['forceValue'];return _0x237562(o(_0x1ae0d2,_0x6ef386?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2699f5{['afterInit'](){const _0x3c1fda=this['editor'],_0x79ba7d=_0x3c1fda['locale'],_0x4d89bb=_0x3c1fda['plugins']['get']('TrackChangesEditing');function _0x2145b7(_0x27edae){return{'type':'format','content':''+o(_0x79ba7d,'*Set\x20table\x20type:*\x20%0',_0x27edae)};}_0x3c1fda['plugins']['has']('TableLayout')&&(_0x4d89bb['enableCommand']('insertTableLayout'),_0x4d89bb['enableDefaultAttributesIntegration']('tableType'),_0x4d89bb['descriptionFactory']['registerElementLabel'](_0x584787=>_0x584787['is']('element','table')&&'layout'===_0x584787['getAttribute']('tableType'),_0x231e49=>o(_0x79ba7d,'ELEMENT_LAYOUT_TABLE',_0x231e49)),_0x4d89bb['descriptionFactory']['registerDescriptionCallback'](_0x1276ff=>{const {data:_0x9f2ec2}=_0x1276ff;if(_0x9f2ec2&&'tableType'==_0x9f2ec2['key'])switch(_0x9f2ec2['newValue']){case'layout':return _0x2145b7(o(_0x79ba7d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2145b7(o(_0x79ba7d,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x563f9d=>[_0x563f9d,null]));class Bt extends _0x2699f5{static get['requires'](){return[Nt];}['afterInit'](){const _0x382eaf=this['editor'];if(!_0x382eaf['plugins']['has']('TableClipboard'))return;const _0x5678e9=_0x382eaf['plugins']['get']('TrackChangesEditing'),_0x4dbd82=_0x382eaf['plugins']['get']('TableUtils'),_0x5e8c37=_0x382eaf['plugins']['get'](Nt),_0x2b8ac5=_0x382eaf['plugins']['get']('TableClipboard'),_0x151d30=_0x382eaf['plugins']['get']('TableSelection'),_0x1efbd5=_0x382eaf['plugins']['get'](_0x438dc4);_0x5e8c37['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x382eaf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x382eaf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5747f1=null,_0x42d391=!0x1;_0x1efbd5['on']('contentInsertion',(_0x5f4f7f,_0x3bc337)=>{_0x42d391='paste'===_0x3bc337['method'];}),_0x382eaf['model']['on']('insertContent',(_0x534744,_0x39cb33)=>{if(!_0x42d391&&null===_0x151d30['getSelectedTableCells']())return;const [_0x332288,_0x24a281]=_0x39cb33,_0x58ce20=_0x39cb33[_0x39cb33['length']-0x1];_0x58ce20&&_0x58ce20['forceDefaultExecution']||_0x5678e9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x35cae2,_0x5bc0da,_0x4bd949,_0x20c2ea,_0x3e04e5){if(_0x5bc0da&&!_0x5bc0da['is']('documentSelection'))return!0x1;const _0x48b0a5=_0x3e04e5['getTableIfOnlyTableInContent'](_0x35cae2,_0x4bd949);if(!_0x48b0a5||!Oe(_0x48b0a5,void 0x0,_0x20c2ea))return!0x1;const _0x375c71=_0x20c2ea['getSelectionAffectedTableCells'](_0x4bd949['document']['selection']);if(!_0x375c71['length'])return!0x1;const _0x4cd042=_0x375c71[0x0]['findAncestor']('table'),_0x58c8d4=_0x20c2ea['getRowIndexes'](_0x375c71),_0x3576c9=_0x20c2ea['getColumnIndexes'](_0x375c71),_0x2d9c96={'startRow':_0x58c8d4['first'],'endRow':_0x58c8d4['last'],'startColumn':_0x3576c9['first'],'endColumn':_0x3576c9['last']};return 0x1==_0x375c71['length']&&(_0x2d9c96['endRow']+=_0x20c2ea['getRows'](_0x48b0a5)-0x1,_0x2d9c96['endColumn']+=_0x20c2ea['getColumns'](_0x48b0a5)-0x1),Oe(_0x4cd042,_0x2d9c96,_0x20c2ea);}(_0x332288,_0x24a281,_0x382eaf['model'],_0x4dbd82,_0x2b8ac5)&&(_0x534744['stop'](),_0x5747f1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x382eaf['model']['change'](()=>{_0x382eaf['model']['insertContent'](_0x39cb33[0x0],_0x39cb33[0x1],_0x39cb33[0x2],{'forceDefaultExecution':!0x0});const _0x1a8c52=_0x373a37(),{rowInsertionRanges:_0x4a3c6e,columnInsertionRanges:_0x45d7d7,insertionRanges:_0x12756a,deletionRanges:_0x5bd571,cells:_0x3d9101}=_0x5747f1;_0x4a3c6e['length']&&_0x5678e9['markMultiRangeInsertion'](_0x4a3c6e,'tablePasteRow',{'tablePasteChainId':_0x1a8c52}),_0x45d7d7['length']&&_0x5678e9['markMultiRangeInsertion'](_0x45d7d7,'tablePasteColumn',{'tablePasteChainId':_0x1a8c52}),_0x12756a['length']&&(_0x5678e9['markMultiRangeInsertion'](_0x12756a,'tablePaste',{'tablePasteChainId':_0x1a8c52,'skipNestingCheck':!0x0}),_0x12756a['forEach'](_0x50404e=>_0x50404e['detach']?.())),_0x5bd571['length']&&(_0x5678e9['markMultiRangeDeletion'](_0x5bd571,'tablePaste',{'tablePasteChainId':_0x1a8c52,'skipNestingCheck':!0x0}),_0x5bd571['forEach'](_0x4ac3bd=>_0x4ac3bd['detach']?.()));const _0x13e63c=_0x5678e9['markMultiRangeBlockFormat'](_0x3d9101['map'](({element:_0x4a6b79})=>_0x4a6b79),{'formatGroupId':_0x373a37()},[],'tablePasteCell',{'tablePasteChainId':_0x1a8c52});if(_0x13e63c){const _0x448ea0=_0x13e63c['getMarkers'](),_0x6dc939=[];for(const {element:_0x406298,attributes:_0x294396}of _0x3d9101){if(!_0x294396)continue;const _0x286f32=_0x382eaf['model']['createRangeOn'](_0x406298),_0x21b1fd=_0x448ea0['find'](_0x3fb9ba=>_0x3fb9ba['getRange']()['isEqual'](_0x286f32));_0x21b1fd&&_0x6dc939['push']([_0x21b1fd['name'],_0x294396]);}_0x6dc939['length']&&_0x13e63c['setAttribute']('markerAttributes',Object['fromEntries'](_0x6dc939));}_0x5747f1=null;}));},{'priority':_0x242a53['high']+0xa}),_0x1efbd5['on']('contentInsertion',()=>{_0x42d391=!0x1;},{'priority':'lowest'}),_0x382eaf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x348a76,_0x448b1d)=>{const [_0x5bb217,_0x31b01f,,_0x3bccd8]=_0x448b1d;if(!_0x5747f1)return;_0x348a76['stop']();const _0x2989ff=_0x5bb217['cell'],_0x39d53=_0x31b01f,_0x2d6459=Be(_0x2989ff),_0x3ab069=Be(_0x39d53);_0x348a76['return']=_0x2989ff;let _0x3979b7=null,_0x7e50ff=null;if(_0x3ab069||_0x2d6459){if(_0x2d6459&&!_0x3ab069){_0x3bccd8['remove'](_0x2989ff['getChild'](0x0));for(const _0x28746d of Array['from'](_0x39d53['getChildren']()))_0x3bccd8['insert'](_0x28746d,_0x2989ff,'end');const _0xe8e468=_0x5747f1['rowInsertionIndexes']['includes'](_0x5bb217['row']),_0xbc5921=_0x5747f1['columnInsertionIndexes']['includes'](_0x5bb217['column']);_0xe8e468||_0xbc5921||(_0x3979b7=_0x3eedc6['fromRange'](_0x3bccd8['createRangeIn'](_0x2989ff)));}else _0x3ab069&&!_0x2d6459&&(_0x7e50ff=_0x3bccd8['createRangeIn'](_0x2989ff));}else{const _0x26d2a2=_0x3bccd8['createElement']('tableCellSuggestion'),_0x30d4eb=_0x3bccd8['createElement']('tableCellSuggestion');_0x3bccd8['wrap'](_0x3bccd8['createRangeIn'](_0x2989ff),_0x30d4eb),_0x3bccd8['insert'](_0x26d2a2,_0x2989ff,0x0);for(const _0x2a63a5 of Array['from'](_0x39d53['getChildren']()))_0x3bccd8['insert'](_0x2a63a5,_0x26d2a2,'end');_0x3979b7=_0x3eedc6['fromRange'](_0x3bccd8['createRangeOn'](_0x26d2a2)),_0x7e50ff=_0x3eedc6['fromRange'](_0x3bccd8['createRangeOn'](_0x30d4eb));}const _0x2abd1d=Array['from'](_0x39d53['getAttributes']())['filter'](([_0x3d756e])=>Re['includes'](_0x3d756e));_0x5747f1['cells']['push']({'element':_0x2989ff,'attributes':_0x2abd1d['length']?Object['fromEntries'](_0x2abd1d):null}),_0x3979b7&&_0x5747f1['insertionRanges']['push'](_0x3979b7),_0x7e50ff&&_0x5747f1['deletionRanges']['push'](_0x7e50ff);},{'priority':'high'}),_0x4dbd82['on']('insertColumns',(_0x26e77d,_0x3d1839)=>{const [_0x487c14,_0x552f09={}]=_0x3d1839;if(!_0x5747f1)return;const _0x54adac=_0x552f09['at']||0x0,_0x21a0e6=_0x552f09['columns']||0x1;_0x5747f1['columnInsertionIndexes']=new Array(_0x21a0e6)['fill'](_0x54adac)['map']((_0x4eca69,_0x1ee555)=>_0x4eca69+_0x1ee555);for(const {cell:_0x17be32}of _0x4dbd82['createTableWalker'](_0x487c14,{'startColumn':_0x54adac,'endColumn':_0x54adac+_0x21a0e6-0x1}))_0x5747f1['columnInsertionRanges']['push'](_0x382eaf['model']['createRangeOn'](_0x17be32));},{'priority':'low'}),_0x4dbd82['on']('insertRows',(_0x1c387f,_0x2bb9b5)=>{const [_0x7655b5,_0x35013f={}]=_0x2bb9b5;if(!_0x5747f1)return;const _0x3b2128=_0x35013f['at']||0x0,_0x349edc=_0x35013f['rows']||0x1;_0x5747f1['rowInsertionIndexes']=new Array(_0x349edc)['fill'](_0x3b2128)['map']((_0x1ec24c,_0x4428b2)=>_0x1ec24c+_0x4428b2);for(const {cell:_0x56dcc4}of _0x4dbd82['createTableWalker'](_0x7655b5,{'startRow':_0x3b2128,'endRow':_0x3b2128+_0x349edc-0x1}))_0x5747f1['rowInsertionRanges']['push'](_0x382eaf['model']['createRangeOn'](_0x56dcc4));},{'priority':'low'}),_0x5678e9['descriptionFactory']['registerDescriptionCallback'](_0x3c7e52=>{if(_0x3c7e52['subType']&&_0x3c7e52['subType']['startsWith']('tablePaste'))return _0x3c7e52['previous']?{}:{'type':'insertion','content':o(_0x382eaf['locale'],'*Replace\x20table\x20cells*')};});const _0x22d5ad=()=>!0x1;for(const _0xd56744 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5678e9['_suggestionFactory']['registerCustomCallback']('insertion',_0xd56744,'join',_0x22d5ad),_0x5678e9['_suggestionFactory']['registerCustomCallback']('deletion',_0xd56744,'join',_0x22d5ad),_0x5678e9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd56744,'join',_0x22d5ad);_0x5678e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x22d5ad),_0x5678e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5cd577,_0x28a12c,_0x5a56cd)=>{const _0x2f8fac=_0x5cd577['map'](_0x5645ec=>_0x5645ec['getContainedElement']())['filter'](_0x3a38e1=>_0x3a38e1),_0x1bfb00=new Map(_0x2f8fac['map'](_0x3dfdf6=>[_0x3dfdf6,null]));if(_0x5747f1){for(const {element:_0x4d8c01,attributes:_0x559274}of _0x5747f1['cells'])_0x559274&&_0x1bfb00['set'](_0x4d8c01,_0x559274);}else{if(_0x5a56cd&&_0x5a56cd['markerAttributes'])for(const [_0x15491a,_0x380d67]of Object['entries'](_0x5a56cd['markerAttributes'])){const _0x39908f=_0x382eaf['model']['markers']['get'](_0x15491a),_0x45d755=_0x39908f?_0x39908f['getRange']()['getContainedElement']():null;_0x45d755&&_0x1bfb00['set'](_0x45d755,_0x380d67);}}_0x382eaf['model']['change'](_0x334d7b=>{for(const [_0x363f98,_0x129aa9]of _0x1bfb00)_0x334d7b['setAttributes']({...Ae,..._0x129aa9},_0x363f98);});});const _0x58e9e8=(_0x5d8187,_0x33e626)=>{_0x5678e9['_suggestionFactory']['registerCustomCallback'](_0x5d8187,'tablePaste',_0x33e626,(_0x38dd8d,_0x36eeb7,_0x5cd3ec)=>{_0x382eaf['model']['change'](_0x26bcbc=>{const _0x411e3e=[];for(const _0x5d8c63 of _0x38dd8d){const _0x27e582=_0x5d8c63['start']['nodeAfter'];_0x27e582['is']('element','tableCellSuggestion')&&_0x411e3e['push'](_0x27e582);}_0x5678e9['_suggestionFactory']['getSuggestionCallback'](_0x5d8187,null,_0x33e626)(_0x38dd8d,_0x36eeb7,_0x5cd3ec);for(const _0x2719c1 of _0x411e3e)'$graveyard'!=_0x2719c1['root']['rootName']&&_0x26bcbc['unwrap'](_0x2719c1);});});};_0x58e9e8('insertion','accept'),_0x58e9e8('insertion','discard'),_0x58e9e8('deletion','accept'),_0x58e9e8('deletion','discard'),_0x5678e9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x33e03a=>{const _0x5cc52f=_0x33e03a['map'](_0x495f05=>_0x495f05['getContainedElement']()),_0x2b3b22=_0x5cc52f[0x0]['findAncestor']('table'),{minRow:_0xad5265,maxRow:_0x37dccf}=_0x5e8c37['_getCoordsForCells'](_0x5cc52f);_0x4dbd82['removeRows'](_0x2b3b22,{'at':_0xad5265,'rows':_0x37dccf-_0xad5265+0x1});}),_0x5678e9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d6a89=>{const _0xbc09bd=_0x2d6a89['map'](_0x6c22ee=>_0x6c22ee['getContainedElement']()),_0x3393c2=_0xbc09bd[0x0]['findAncestor']('table'),{minColumn:_0x6690d9,maxColumn:_0x205135}=_0x5e8c37['_getCoordsForCells'](_0xbc09bd);_0x4dbd82['removeColumns'](_0x3393c2,{'at':_0x6690d9,'columns':_0x205135-_0x6690d9+0x1});});const _0x3a817e=(_0x4ae7cc,_0x2b51b3)=>{if(!_0x2b51b3['subType']||!_0x2b51b3['subType']['startsWith']('tablePaste'))return;const _0xd13af7=_0x2b51b3['attributes']['tablePasteChainId'],_0x40d9cb=_0x5678e9['getSuggestions']()['filter'](_0x13f8f9=>_0x13f8f9['isInContent']&&_0x13f8f9['attributes']&&_0x13f8f9['attributes']['tablePasteChainId']==_0xd13af7);_0x40d9cb['length']&&_0x2b51b3['getAllAdjacentSuggestions']()['length']!=_0x40d9cb['length']&&_0x40d9cb['reduce']((_0x2eaff6,_0xe6c64c)=>(_0x2eaff6['next']=_0xe6c64c,_0xe6c64c['previous']=_0x2eaff6,_0xe6c64c));};function _0x42ae0e(_0x511b99,_0x2f28b2=!0x0){const {id:_0x4f876f,authorId:_0x457762}=_0x5678e9['_splitMarkerName'](_0x511b99['markerName']),_0x2a49db=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x10fa96=_0x5678e9['activeMarkers']['includes'](_0x511b99['markerName']);return _0x10fa96&&_0x2a49db['push']('ck-suggestion-marker--active'),{'classes':_0x2a49db,'attributes':{'data-suggestion':_0x4f876f,'data-author-id':_0x457762},'priority':_0x10fa96&&_0x2f28b2?0xbc2:0xbb8};}_0x5678e9['on']('suggestionLoaded',_0x3a817e,{'priority':'high'}),_0x5678e9['on']('suggestionUnloaded',_0x3a817e,{'priority':'high'}),_0x382eaf['model']['document']['registerPostFixer'](()=>{let _0x1419d7=!0x1;const _0x51153a=Array['from'](_0x382eaf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x393d1b,data:_0x12ddf2}of _0x51153a){const {group:_0x250b12,type:_0x5e3072,id:_0x3b3445}=_0x5678e9['_splitMarkerName'](_0x393d1b);if('suggestion'!=_0x250b12||'deletion'!=_0x5e3072||_0x12ddf2['oldRange'])continue;if(!_0x5678e9['hasSuggestion'](_0x3b3445))continue;const _0x3c705e=_0x5678e9['getSuggestion'](_0x3b3445)['getRanges'](),_0x444f29=_0x382eaf['plugins']['get']('Users')['me'];for(const _0x4113be of _0x5678e9['getSuggestions']()){if(!_0x4113be['isInContent']||_0x4113be['author']!=_0x444f29)continue;if('formatBlock'!=_0x4113be['type']||'tablePasteCell'!=_0x4113be['subType'])continue;if(_0x4113be['getRanges']()['every'](_0x464b13=>_0x3c705e['some'](_0x334948=>_0x334948['containsRange'](_0x464b13,!0x0)))){for(const _0x25ea35 of _0x4113be['getAllAdjacentSuggestions']())_0x25ea35['isInContent']&&(_0x25ea35['discard'](),_0x1419d7=!0x0);}}}return _0x1419d7;}),_0x382eaf['model']['document']['registerPostFixer'](_0x5901d8=>{const _0x20d15c=_0x382eaf['commands']['get']('redo');if(!_0x20d15c||!_0x20d15c['_createdBatches']['has'](_0x5901d8['batch']))return!0x1;let _0x122b8d=!0x1;const _0xc90adc=_0x382eaf['plugins']['get']('Users')['me'],_0x9b1bbf=_0x382eaf['model']['document']['differ']['getChanges'](),_0x2af437=Array['from'](_0x382eaf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e955d,data:_0x296bb4})=>{const {group:_0x294573,subType:_0x14ea08,authorId:_0x32ca5b}=_0x5678e9['_splitMarkerName'](_0x1e955d);return'suggestion'==_0x294573&&'tablePaste'==_0x14ea08&&_0x32ca5b==_0xc90adc['id']&&!_0x296bb4['oldRange'];});for(const _0x5398fb of _0x9b1bbf){if('insert'!=_0x5398fb['type']||'tableCellSuggestion'!=_0x5398fb['name']||0x1!=_0x5398fb['length'])continue;const _0x41d80b=_0x5901d8['createRange'](_0x5398fb['position'],_0x5398fb['position']['getShiftedBy'](0x1));if(!_0x2af437['find'](({data:_0x3a9363})=>_0x3a9363['newRange']['isEqual'](_0x41d80b))){for(const {name:_0x12f56b,data:_0x58e5c1}of _0x2af437)if(_0x41d80b['containsRange'](_0x58e5c1['newRange'])){_0x5901d8['updateMarker'](_0x12f56b,{'range':_0x41d80b}),_0x122b8d=!0x0;break;}}}return _0x122b8d;}),_0x382eaf['model']['document']['registerPostFixer'](_0x3ed373=>{let _0x2683e0=!0x1;const _0x4bcac9=_0x382eaf['plugins']['get']('Users')['me'],_0x4f68ad=_0x5678e9['getSuggestions']()['filter'](_0x413179=>_0x413179['isInContent']&&_0x413179['author']==_0x4bcac9),_0x1a85a2=new Set(),_0x256d7a=new Set();for(const _0x6fd6f3 of _0x4f68ad)if('tablePaste'==_0x6fd6f3['subType'])for(const _0x1f0267 of _0x6fd6f3['getMarkers']()){const _0x3cb352=_0x1f0267['getRange']()['getContainedElement']();if(_0x3cb352){if(_0x3cb352['is']('element','tableCellSuggestion')&&Be(_0x3cb352)){_0x6fd6f3['removeMarker'](_0x1f0267['name']),_0x1a85a2['add'](_0x3cb352),_0x2683e0=!0x0;const _0x146d5f=_0x3cb352['nextSibling'],_0x2c814d=_0x3cb352['previousSibling'],_0x53c2bb=_0x146d5f&&_0x146d5f['is']('element','tableCellSuggestion'),_0x159005=_0x2c814d&&_0x2c814d['is']('element','tableCellSuggestion');_0x53c2bb&&!_0x1a85a2['has'](_0x146d5f)&&_0x256d7a['add'](_0x146d5f),_0x159005&&!_0x1a85a2['has'](_0x2c814d)&&_0x256d7a['add'](_0x2c814d);}else _0x3cb352['is']('element','paragraph')&&_0x3cb352['isEmpty']&&(_0x6fd6f3['removeMarker'](_0x1f0267['name']),_0x2683e0=!0x0);}}else{if('tablePasteCell'==_0x6fd6f3['subType']){if(!_0x6fd6f3['attributes']||!_0x6fd6f3['attributes']['tablePasteChainId'])continue;const _0x1f0c02=_0x6fd6f3['attributes']['markerAttributes'];if(_0x1f0c02&&Object['keys'](_0x1f0c02)['length'])continue;const _0xf49661=_0x6fd6f3['attributes']['tablePasteChainId'];let _0x2ae22b=!0x0,_0x255416=!0x0;for(const _0x430e16 of _0x4f68ad)if(_0x430e16['subType']&&_0x430e16['subType']['startsWith']('tablePaste')){if(!_0x430e16['attributes']['tablePasteChainId']){_0x255416=!0x1;break;}if(_0x430e16['id']!=_0x6fd6f3['id']&&_0x430e16['attributes']['tablePasteChainId']==_0xf49661){_0x2ae22b=!0x1;break;}}_0x255416&&_0x2ae22b&&(_0x6fd6f3['removeMarkers'](),_0x2683e0=!0x0);}}for(const _0x55a626 of _0x1a85a2)_0x3ed373['remove'](_0x55a626);for(const _0x310583 of _0x256d7a)_0x3ed373['unwrap'](_0x310583);return _0x2683e0;}),_0x382eaf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x6cd336=>_0x42ae0e(_0x6cd336),'converterPriority':'high'}),_0x382eaf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2414bc,_0x535449)=>_0x535449['options']['showSuggestionHighlights']?_0x42ae0e(_0x2414bc,!0x1):null,'converterPriority':'high'});const _0x412635=_0x382eaf['editing']['view'];this['listenTo'](_0x412635['document'],'clipboardOutput',(_0x5134ff,_0x1561f5)=>{const _0x1d2b03=[];for(const _0x19caa0 of _0x412635['createRangeIn'](_0x1561f5['content'])['getItems']())_0x19caa0['is']('element','suggestion-td')&&_0x1d2b03['push'](_0x19caa0);_0x412635['change'](_0x505f58=>{for(const _0x407b9d of _0x1d2b03)_0x505f58['move'](_0x505f58['createRangeIn'](_0x407b9d),_0x505f58['createPositionBefore'](_0x407b9d)),_0x505f58['remove'](_0x407b9d);});});}}function Be(_0x3077f9){if(_0x3077f9['isEmpty'])return!0x0;const _0x5ed756=_0x3077f9['getChild'](0x0);return _0x5ed756['is']('element','paragraph')&&_0x5ed756['isEmpty'];}function Oe(_0x542873,_0x19ad09={},_0x357676){for(const {isAnchor:_0x279cfe,cellHeight:_0x40c357,cellWidth:_0x5ab176}of _0x357676['createTableWalker'](_0x542873,{'includeAllSlots':!0x0,..._0x19ad09}))if(!_0x279cfe||0x1!=_0x40c357||0x1!=_0x5ab176)return!0x1;return!0x0;}class Ot extends _0x2699f5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x138de3=this['editor']['plugins']['get']('TrackChangesEditing');_0x138de3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x138de3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x138de3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x138de3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x138de3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x138de3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x546be6,_0x55256a){const _0x180eda=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb6b169=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16647c=_0x55256a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x31d8d7=_0xb6b169['getColumnGroupElement'](_0x16647c);let _0x269be8=_0x31d8d7?_0xb6b169['getTableColumnsWidths'](_0x31d8d7):null,_0x1b2418=_0x16647c['getAttribute']('tableWidth')||null;const _0x7c97e9=_0x55256a['tableWidth']||_0x1b2418,_0x2eddb9=_0x55256a['columnWidths']||_0x269be8,_0x28512b=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b0930 of _0x180eda['getSuggestions']()){const _0x4fec06=_0x3b0930['getContainedElement']();if('resizeTable'===_0x3b0930['subType']&&_0x4fec06===_0x16647c){_0x3b0930['author']!==_0x28512b&&_0x3b0930['discard']();const _0x3fd110=_0x3b0930['data']['commandParams'];_0x1b2418=_0x3fd110[0x0]['tableWidth'],_0x269be8=_0x3fd110[0x0]['columnWidths'];break;}}_0x546be6({'table':_0x16647c,'tableWidth':_0x7c97e9,'columnWidths':_0x2eddb9}),_0x180eda['markBlockFormat'](_0x16647c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1b2418,'columnWidths':_0x269be8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1e836a){if('formatBlock'!=_0x1e836a['type']&&'formatInline'!=_0x1e836a['type'])return;const {data:_0x3b9832}=_0x1e836a;if(_0x3b9832&&'resizeTable'===_0x3b9832['formatGroupId']){const _0x1955ba='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1955ba)};}}}class xt extends _0x2699f5{['afterInit'](){const _0x44a4e4=this['editor'];_0x44a4e4['plugins']['has']('Template')&&_0x44a4e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2699f5{['afterInit'](){const _0x2b8c1b=this['editor'];if(!_0x2b8c1b['commands']['get']('insertTableOfContents'))return;_0x2b8c1b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x48ce11=_0x2b8c1b['plugins']['get']('TrackChangesEditing'),_0xafa4b=_0x2b8c1b['locale'];_0x48ce11['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c1b7c=>o(_0xafa4b,'ELEMENT_TABLE_OF_CONTENTS',_0x5c1b7c));}}class Rt extends _0x2699f5{['afterInit'](){const _0x13c4b6=this['editor'];if(!_0x13c4b6['plugins']['has']('Title'))return;const _0x5d6696=_0x13c4b6['plugins']['get']('TrackChangesEditing');_0x5d6696['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x13c4b6['locale'],'ELEMENT_TITLE')),_0x13c4b6['model']['document']['registerPostFixer'](_0x3c4534=>{let _0x25808e=!0x1;const _0x8b6155=Array['from'](_0x13c4b6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x87f441,data:_0x2a9fef}of _0x8b6155){const {group:_0x3d5f9e}=_0x5d6696['_splitMarkerName'](_0x87f441);if('suggestion'!==_0x3d5f9e||!_0x2a9fef['newRange'])continue;const _0x193c3c=_0x2a9fef['newRange'],_0x34b483=_0x193c3c['end']['nodeBefore'];if(!_0x34b483||!_0x34b483['is']('element','title-content'))continue;if(!_0x193c3c['start']['isTouching'](_0x193c3c['end']))continue;const _0x244915=_0x13c4b6['model']['schema']['getNearestSelectionRange'](_0x193c3c['end'],'forward');if(_0x244915&&_0x244915['isCollapsed']){const _0x29c4d9=_0x3c4534['createRange'](_0x193c3c['start'],_0x244915['start']);_0x29c4d9['isEqual'](_0x193c3c)||(_0x3c4534['updateMarker'](_0x87f441,{'range':_0x29c4d9}),_0x25808e=!0x0);}_0x25808e||(_0x3c4534['removeMarker'](_0x87f441),_0x25808e=!0x0);}return _0x25808e;});}}class Tt extends _0x2699f5{['afterInit'](){const _0x30cf8d=this['editor'],_0x555ed1=_0x30cf8d['plugins']['get']('TrackChangesEditing');_0x30cf8d['plugins']['has']('Uploadcare')&&(_0x555ed1['enableCommand']('uploadcare'),_0x30cf8d['plugins']['has']('UploadcareImageEdit')&&(_0x555ed1['enableCommand']('uploadcareImageEdit'),_0x555ed1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x555ed1['descriptionFactory']['registerDescriptionCallback'](_0x3833b0=>{if('attribute'!=_0x3833b0['type'])return;const {data:_0x3c74d0}=_0x3833b0;return _0x3c74d0&&'uploadcareImageId'==_0x3c74d0['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2699f5{['afterInit'](){const _0x369cd4=this['editor'],_0x3ae1ed=_0x369cd4['plugins']['get']('TrackChangesEditing');_0x369cd4['plugins']['has']('UndoEditing')&&(_0x3ae1ed['enableCommand']('undo'),_0x3ae1ed['enableCommand']('redo'));}}class Ut extends _0x2699f5{static get['requires'](){return[Nt];}['afterInit'](){const _0x295f11=this['editor'];if(!_0x295f11['plugins']['has']('TableCaptionEditing'))return;_0x295f11['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2699f5{['tableProperties'];['tableCellProperties'];constructor(_0x15aab6){super(_0x15aab6),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x15aab6['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x482137=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d4fa8 of this['tableProperties'])_0x482137['enableCommand'](_0x1d4fa8,(_0x1ae0ea,_0xa52281)=>{const _0x29a13c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d4fa8,[_0x29a13c],this['tableProperties'],'tableProperties',_0x1ae0ea,_0xa52281);});_0x482137['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x482137['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x482137['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x398111,_0x67af77)=>this['handleDiscardAction'](this['tableProperties'],_0x398111,_0x67af77)),_0x482137['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2f4f8e of this['tableCellProperties'])this['editor']['commands']['get'](_0x2f4f8e)&&_0x482137['enableCommand'](_0x2f4f8e,(_0x15f554,_0x2caa26)=>{const _0x3b9abe=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2f4f8e,_0x3b9abe,this['tableCellProperties'],'tableCellProperties',_0x15f554,_0x2caa26);});_0x482137['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x482137['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x482137['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1a6a7d,_0xb4783c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1a6a7d,_0xb4783c)),_0x482137['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x482137['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x482137['descriptionFactory']['registerDescriptionCallback'](_0x33e2c4=>this['handleSuggestionDescription'](_0x33e2c4)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x390067,_0x424490,_0x55d802,_0xdd803f,_0x243ab8,_0x24339f){const _0x2cb991=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x24339f['batch'],()=>{for(const _0xa1cbf8 of _0x424490){if(this['_getSuggestion'](_0xa1cbf8,_0xdd803f))_0x243ab8(_0x24339f);else{const _0x578520={};for(const _0x17a0c3 of _0x55d802){const _0x5e1f53=_0xa1cbf8['getAttribute'](_0x17a0c3);void 0x0!==_0x5e1f53&&(_0x578520[_0x17a0c3]=_0x5e1f53);}_0x243ab8(_0x24339f),_0x2cb991['markBlockFormat'](_0xa1cbf8,{'commandParams':[_0x578520]},[],_0xdd803f);}}});}['handleDiscardAction'](_0x50d7cd,_0x5414ad,_0x43c59b){const _0x1919f9=_0x5414ad[0x0]['start']['nodeAfter'],_0x49f3ce=_0x43c59b['commandParams'][0x0];this['editor']['model']['change'](_0x5d8d88=>{for(const _0x3f55a3 of _0x50d7cd)void 0x0!==_0x49f3ce[_0x3f55a3]?_0x5d8d88['setAttribute'](_0x3f55a3,_0x49f3ce[_0x3f55a3],_0x1919f9):_0x5d8d88['removeAttribute'](_0x3f55a3,_0x1919f9);});}['handleSuggestionDescription'](_0x57c35c){if(_0x57c35c['data'])switch(_0x57c35c['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'](_0x196612,_0x36823b){const _0x4211e8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x44f815 of _0x4211e8['getSuggestions']({'skipNotAttached':!0x0})){const _0x17cb75=_0x44f815['getContainedElement']();if(_0x44f815['subType']===_0x36823b&&_0x17cb75===_0x196612)return _0x44f815;}return null;}['_registerTablePropertiesAttributes'](){const _0x50da51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x497a0e=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5c6998 of _0x497a0e){const _0x3524ad=_0x5c6998['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x50da51['descriptionFactory']['registerAttributeLabel'](_0x5c6998,o(this['editor']['locale'],'FORMAT_'+_0x3524ad));}}}class Ft extends _0x2699f5{['afterInit'](){const _0x556b26=this['editor'];if(!_0x556b26['plugins']['has']('LineHeight'))return;const _0x5c3fa2=_0x556b26['plugins']['get']('TrackChangesEditing'),_0x689688=_0x556b26['locale'];_0x5c3fa2['enableDefaultAttributesIntegration']('lineHeight'),_0x5c3fa2['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x689688,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2699f5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x365677,_0x9f3fc6,_0xadb51c,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(_0x2e343c){super(_0x2e343c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x37520e,_0x7b4895,_0x26caaa,_0x5de535)=>{this['_model']['change'](()=>{for(const _0x5ef490 of[..._0x5de535,..._0x26caaa])this['_model']['markers']['has'](_0x5ef490)&&_0x2e343c['editing']['reconvertMarker'](_0x5ef490);});}),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']=_0x2e343c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2e343c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2e343c['config']['get']('trackChanges.trackFormatChanges'),_0x2e343c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2e343c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x2e343c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xc625e4=this['editor'];_0xc625e4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3cf680,{writer:_0x4278ec})=>{let _0x5b3853='suggestion:'+_0x3cf680['getAttribute']('suggestion-type')+':'+_0x3cf680['getAttribute']('id');return _0x3cf680['getAttribute']('marker-count')&&(_0x5b3853+=':'+_0x3cf680['getAttribute']('marker-count')),_0x4278ec['createElement']('$marker',{'data-name':_0x5b3853});}}),_0xc625e4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xc625e4['model']['document']['registerPostFixer'](_0x12c854=>{let _0x312b8b=!0x1;const _0x2cb086=Array['from'](_0xc625e4['model']['document']['differ']['getChangedMarkers']()),_0x162294=new Set();for(const {name:_0x3684bb,data:_0x32a7eb}of _0x2cb086){const {group:_0x535797,type:_0x3e6924,subType:_0x19b4fb,id:_0x514f0b}=this['_splitMarkerName'](_0x3684bb);if('suggestion'!==_0x535797)continue;const _0xe75330=_0x19b4fb?'suggestion:'+_0x3e6924+':'+_0x19b4fb+':'+_0x514f0b:'suggestion:'+_0x3e6924+':'+_0x514f0b,_0x12a809=_0xc625e4['model']['markers']['getMarkersGroup'](_0xe75330),_0x1a228c=_0xc625e4['model']['markers']['get'](_0x3684bb),_0x5b4cee=this['_suggestions']['get'](_0x514f0b);if(null!=_0x32a7eb['newRange']){'formatInline'==_0x3e6924&&(_0x312b8b=_0x312b8b||Wt(_0x32a7eb['newRange'],_0x3684bb,_0x12c854,_0xc625e4['model']['schema']));const _0x1a5889='attribute'==_0x3e6924&&this['_isBlockAttribute'](_0x19b4fb['split']('|')[0x0]),_0x523fa0='attribute'==_0x3e6924&&this['_isInlineAttribute'](_0x19b4fb['split']('|')[0x0]);if(_0x32a7eb['newRange']['isCollapsed']||'$graveyard'==_0x32a7eb['newRange']['root']['rootName']||'formatBlock'==_0x3e6924&&!Qt(_0x32a7eb['newRange'])||_0x1a5889&&!Qt(_0x32a7eb['newRange'])||_0x523fa0&&Xt(_0x32a7eb['newRange'])||'deletion'==_0x3e6924&&Xt(_0x32a7eb['newRange'])||_0x1a228c&&Yt(_0x1a228c,_0x12a809))_0x12c854['removeMarker'](_0x3684bb),_0x312b8b=!0x0;else{if(!_0x5b4cee||!_0x5b4cee['isInContent'])continue;if(_0x32a7eb['newRange']&&_0x32a7eb['oldRange']&&_0x32a7eb['newRange']['isEqual'](_0x32a7eb['oldRange']))continue;_0x162294['add'](_0x5b4cee);}}}return _0x162294['size']>0x0&&(_0x312b8b=!!this['_joinWithAdjacentSuggestions'](_0x162294)||_0x312b8b),_0x312b8b;}),_0xc625e4['model']['document']['registerPostFixer'](_0x4dbcff=>{let _0x160014=!0x1;for(const _0x183c34 of _0xc625e4['model']['document']['differ']['getChanges']())if('insert'==_0x183c34['type'])for(const _0xf5a329 of this['_suggestions']['values']()){if(_0xf5a329['isMultiRange']||!_0xf5a329['isInContent'])continue;const _0x1ce2be='formatBlock'==_0xf5a329['type'],_0x4bcdc0=this['_getAttributeKey'](_0xf5a329),_0x36e0b7=_0x4bcdc0&&this['_isBlockAttribute'](_0x4bcdc0);if(!_0x1ce2be&&!_0x36e0b7)continue;const _0x500708=_0xf5a329['getFirstRange']();if(_0x500708['start']['parent']!=_0x500708['end']['parent']&&!_0x500708['end']['isAtEnd']){const _0x33892f=_0xc625e4['model']['createPositionAt'](_0x500708['start']['nodeAfter'],'end'),_0x29694a=_0xc625e4['model']['createRange'](_0x500708['start'],_0x33892f);_0x4dbcff['updateMarker'](_0xf5a329['getFirstMarker'](),{'range':_0x29694a}),_0x160014=!0x0;}}return _0x160014;}),_0xc625e4['model']['document']['registerPostFixer'](_0x14342d=>this['_processAttributeChanges'](_0x14342d)),_0xc625e4['model']['document']['registerPostFixer'](_0x492f5d=>!_0x492f5d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x492f5d)),_0xc625e4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xc625e4['model']['document']['on']('change:data',(_0x1f5f96,_0x255973)=>{if(!_0x255973['isLocal']||_0x255973['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4097ce=_0xc625e4['model']['document']['differ']['getChanges']();if(0x0==_0x4097ce['length'])return;const _0x1efffc=[],_0x29466c=_0x4097ce['filter'](_0x3b2bcc=>'attribute'==_0x3b2bcc['type']),_0x3b3cc1=_0x4097ce['filter'](_0x398bdc=>'insert'==_0x398bdc['type']&&'$text'!=_0x398bdc['name']);for(const _0x30e3c7 of _0x29466c)this['_isRegisteredAttribute'](_0x30e3c7['attributeKey'])&&_0x1efffc['push']({'key':_0x30e3c7['attributeKey'],'newValue':_0x30e3c7['attributeNewValue'],'oldValue':_0x30e3c7['attributeOldValue'],'range':Zt(_0x30e3c7['range'],_0xc625e4['model'])});for(const _0x28e753 of _0x3b3cc1){if('rename'!=_0x28e753['action']&&'refresh'!=_0x28e753['action'])continue;const _0x4020a9=tn(_0x28e753['position']['nodeAfter'],_0xc625e4['model']),_0x4b9573=_0x28e753['before'];'rename'==_0x28e753['action']&&_0x1efffc['push']({'key':m,'newValue':_0x28e753['name'],'oldValue':_0x4b9573['name'],'range':_0x4020a9});for(const [_0x1e94b7,_0x1f8442]of _0x4b9573['attributes']){if(!this['_isRegisteredAttribute'](_0x1e94b7))continue;const _0x19f095=_0x28e753['attributes']['get'](_0x1e94b7);_0x1f8442!==_0x19f095&&_0x1efffc['push']({'key':_0x1e94b7,'newValue':_0x19f095,'oldValue':_0x1f8442,'range':_0x4020a9});}for(const [_0x30c992,_0x48bbd9]of _0x28e753['attributes'])this['_isRegisteredAttribute'](_0x30c992)&&(_0x4b9573['attributes']['has'](_0x30c992)||_0x1efffc['push']({'key':_0x30c992,'newValue':_0x48bbd9,'oldValue':null,'range':_0x4020a9}));}0x0!=_0x1efffc['length']&&_0xc625e4['model']['enqueueChange'](_0x255973,_0xb2e4b0=>{const _0xf8310a=_0x373a37();for(const {range:_0x1fb7c6,key:_0x22e703,oldValue:_0x3c65f6,newValue:_0x483872}of _0x1efffc)this['markAttributeChange'](_0x1fb7c6,_0x22e703,_0x3c65f6,_0x483872,{'groupId':_0xf8310a});this['_reduceExistingSuggestions'](_0xb2e4b0,_0x1efffc);});},{'priority':'lowest'}),_0xc625e4['model']['markers']['on']('update:suggestion',(_0x58fa5e,_0x399dba,_0xa0ed5c)=>{if(null==_0xa0ed5c){const {id:_0x167012}=this['_splitMarkerName'](_0x399dba['name']),_0x2ab0b3=this['_suggestions']['get'](_0x167012);_0x2ab0b3&&_0x2ab0b3['addMarkerName'](_0x399dba['name']);}}),_0xc625e4['model']['document']['on']('change:data',()=>{const _0x50abed=Array['from'](_0xc625e4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3098f2=>'suggestion'===this['_splitMarkerName'](_0x3098f2['name'])['group']);if(0x0===_0x50abed['length'])return;_0x50abed['sort']((_0x9031ba,_0x37f8e6)=>{const _0x5880aa=_0x9031ba['data']['oldRange'],_0x155bea=_0x37f8e6['data']['oldRange'];return null===_0x5880aa&&null===_0x155bea?0x0:null===_0x5880aa&&null!==_0x155bea?-0x1:null!==_0x5880aa&&null===_0x155bea?0x1:_0x5880aa['start']['isBefore'](_0x155bea['start'])?-0x1:0x1;});const _0x151f2d=new Set(),_0x4da360=new Set();for(const {name:_0x1b6706,data:_0x102b4e}of _0x50abed){const {id:_0x42d7c9}=this['_splitMarkerName'](_0x1b6706);if(null===_0x102b4e['oldRange']){const _0x2893c4=this['_handleNewSuggestionMarker'](_0x1b6706);_0x4da360['add'](_0x2893c4);}else{const _0x14849d=this['_suggestions']['get'](_0x42d7c9);null!==_0x102b4e['newRange']||_0x14849d['isInContent']?(_0x151f2d['add'](_0x14849d['head']),_0x4da360['add'](_0x14849d)):this['_removeSuggestion'](_0x14849d);}}_0x4da360['size']>0x0&&this['_refreshSuggestionsChain'](_0x4da360);for(const _0x1fe480 of _0x151f2d)this['fire']('suggestionChanged',_0x1fe480);}),_0xc625e4['model']['on']('applyOperation',(_0x39c772,_0x308ad9)=>{const _0x21298d=_0x308ad9[0x0];if(!this['_suggestions']['size'])return;if(!_0x21298d['isDocumentOperation'])return;if(_0x21298d['batch']['isUndo']||!_0x21298d['batch']['isLocal'])return;let _0x125e59,_0x2c4f44;switch(_0x21298d['type']){case'insert':_0x125e59=_0xc625e4['model']['createPositionAt'](_0x21298d['position']),_0x2c4f44=_0x125e59['getShiftedBy'](_0x21298d['howMany']);break;case'split':_0x125e59=_0xc625e4['model']['createPositionAt'](_0x21298d['splitPosition']),_0x2c4f44=_0xc625e4['model']['createPositionAt'](_0x21298d['moveTargetPosition']);break;case'move':_0x125e59=_0xc625e4['model']['createPositionAt'](_0x21298d['targetPosition']),_0x2c4f44=_0x125e59['getShiftedBy'](_0x21298d['howMany']);break;default:return;}const _0x3afa44=_0xc625e4['model']['createRange'](_0x125e59,_0x2c4f44);_0xc625e4['model']['change'](()=>{for(const {suggestion:_0x1a1d9c,meta:_0x2af8d9}of this['_findSuggestions'](_0x3afa44)){if(_0x1a1d9c['isMultiRange'])continue;if('formatInline'==_0x1a1d9c['type'])continue;const _0x3f47e4=this['_getAttributeKey'](_0x1a1d9c);if(_0x3f47e4&&this['_isBlockAttribute'](_0x3f47e4)&&'split'!=_0x21298d['type'])continue;const _0x46457f=_0x1a1d9c['data']&&_0x1a1d9c['data']['multipleBlocks'];('formatBlock'!=_0x1a1d9c['type']||'split'==_0x21298d['type']&&!_0x46457f)&&(_0x2af8d9['containsRangeInObject']||'insertion'==_0x1a1d9c['type']&&_0x2af8d9['isOwn']||_0x1a1d9c['getFirstRange']()['containsRange'](_0x3afa44)&&this['_breakSuggestionMarker'](_0x1a1d9c,_0x125e59,_0x2c4f44));}});},{'priority':'lowest'}),_0xc625e4['model']['on']('deleteContent',(_0x14d9b6,_0x5cf49c)=>{const _0x3ca224=_0x5cf49c[0x0],_0x4bcfd1=_0x5cf49c[0x1];if(_0x4bcfd1&&_0x4bcfd1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3ca224['isCollapsed'])return;const _0x358ef2=_0xc625e4['model']['schema'],{start:_0x2bb8a9,end:_0x2b351c}=_0x3ca224['getFirstRange'](),_0x3befed=_0x2bb8a9['nodeAfter']&&_0x358ef2['isLimit'](_0x2bb8a9['nodeAfter'])?null:_0x358ef2['getNearestSelectionRange'](_0x2bb8a9,'forward'),_0x1969d9=_0x2b351c['nodeBefore']&&_0x358ef2['isLimit'](_0x2b351c['nodeBefore'])?null:_0x358ef2['getNearestSelectionRange'](_0x2b351c,'backward'),_0x523bb8=_0xc625e4['model']['createRange'](_0x3befed?_0x3befed['start']:_0x2bb8a9,_0x1969d9?_0x1969d9['end']:_0x2b351c);_0xc625e4['model']['change'](_0x2dde5c=>{this['markDeletion'](_0x523bb8);const _0x1bc1a8=_0xc625e4['model']['schema']['getNearestSelectionRange'](_0x523bb8['start']);_0x3ca224['is']('documentSelection')?_0x2dde5c['setSelection'](_0x1bc1a8):_0x3ca224['setTo'](_0x1bc1a8);}),_0x14d9b6['stop']();},{'priority':_0x242a53['normal']+0xa}),_0xc625e4['model']['on']('insertContent',(_0x146749,_0x5da1e6)=>{const _0x4df856=_0x5da1e6[_0x5da1e6['length']-0x1];_0x4df856&&_0x4df856['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xc625e4['model']['change'](()=>{let _0x231bb0=_0xc625e4['model']['insertContent'](_0x5da1e6[0x0],_0x5da1e6[0x1],_0x5da1e6[0x2],{'forceDefaultExecution':!0x0});if(!_0x231bb0)return;_0x146749['return']=_0x231bb0['clone']();const _0xfca93a=_0x231bb0['end']['nodeBefore'],_0x36eb0e=_0xc625e4['model']['schema'];_0xfca93a&&_0x36eb0e['isBlock'](_0xfca93a)&&!_0x36eb0e['isObject'](_0xfca93a)&&(_0x231bb0=_0xc625e4['model']['createRange'](_0x231bb0['start'],_0xc625e4['model']['createPositionAt'](_0xfca93a,'end'))),this['markInsertion'](_0x231bb0);}),_0x146749['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xa841=new v(_0xc625e4,this['_suggestions']);_0xc625e4['commands']['add']('acceptSuggestion',_0xa841),this['enableCommand']('acceptSuggestion');const _0x10796c=new D(_0xc625e4,this['_suggestions']);_0xc625e4['commands']['add']('discardSuggestion',_0x10796c),this['enableCommand']('discardSuggestion'),_0xc625e4['commands']['add']('acceptAllSuggestions',new B(_0xc625e4,_0xa841,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xc625e4['commands']['add']('discardAllSuggestions',new B(_0xc625e4,_0x10796c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xc625e4['commands']['add']('acceptSelectedSuggestions',new O(_0xc625e4,_0xa841,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xc625e4['commands']['add']('discardSelectedSuggestions',new O(_0xc625e4,_0x10796c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1cb514=_0xc625e4['plugins']['get']('CommentsRepository');this['listenTo'](_0x1cb514,'addComment',(_0x34a599,{threadId:_0x3cf076})=>{const _0x69e7c3=this['_suggestions']['get'](_0x3cf076);_0x69e7c3&&_0x69e7c3['commentThread']&&0x1===_0x69e7c3['commentThread']['length']&&this['_updateSuggestionData'](_0x3cf076,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1cb514,'removeComment',(_0x2b19e9,{threadId:_0x475824})=>{const _0x46e1da=this['_suggestions']['get'](_0x475824);_0x46e1da&&_0x46e1da['commentThread']&&!_0x46e1da['commentThread']['length']&&this['_updateSuggestionData'](_0x475824,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2a5e7c){const _0x157eff=_0x10109d([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]),_0xbf0bed=0x3d8d0df,_0x319c74=0x3df518f^_0xbf0bed,_0x43d028=window[_0x10109d([0x44,0x61,0x74,0x65])][_0x10109d([0x6e,0x6f,0x77])](),_0x43f80c=_0x2a5e7c[_0x10109d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1161ff=new window[(_0x10109d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a98ae=>{_0x43f80c[_0x10109d([0x6f,0x6e,0x63,0x65])](_0x10109d([0x72,0x65,0x61,0x64,0x79]),_0x2a98ae);}),_0x489259={[_0x10109d([0x6b,0x74,0x79])]:_0x10109d([0x45,0x43]),[_0x10109d([0x75,0x73,0x65])]:_0x10109d([0x73,0x69,0x67]),[_0x10109d([0x63,0x72,0x76])]:_0x10109d([0x50,0x2d,0x32,0x35,0x36]),[_0x10109d([0x78])]:_0x10109d([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]),[_0x10109d([0x79])]:_0x10109d([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]),[_0x10109d([0x61,0x6c,0x67])]:_0x10109d([0x45,0x53,0x32,0x35,0x36])},_0x47d853=_0x43f80c[_0x10109d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10109d([0x67,0x65,0x74])](_0x10109d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfe05fa(){let _0x452553,_0x480cba=null,_0x1b1293=null;try{if(_0x47d853==_0x10109d([0x47,0x50,0x4c]))return _0x10109d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x452553=_0x30cf50(),!_0x452553)return _0x10109d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x452553[_0x10109d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b1293=_0x27c8b9(_0x452553[_0x10109d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x452553[_0x10109d([0x6a,0x74,0x69])])),await _0x416243()?_0x400642()?_0x1e1ef4()?_0x10109d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1943f5()?(_0x452553[_0x10109d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10109d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x480cba=_0x2002e2(_0x10109d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25ece6()):_0x10109d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10109d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10109d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x10109d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e1ef4(){const _0x92d97e=[_0x10109d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10109d([0x74,0x72,0x69,0x61,0x6c])][_0x10109d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x452553[_0x10109d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43d028/0x3e8:0xe10*_0x319c74;return _0x452553[_0x10109d([0x65,0x78,0x70])]<_0x92d97e;}function _0x400642(){const _0x42e9eb=_0x452553[_0x10109d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x42e9eb)return!0x1;if(_0x42e9eb[_0x10109d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10109d([0x2a])))return!0x0;if(_0x42e9eb[_0x10109d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10109d([0x54,0x43])))return!0x0;if(_0x42e9eb[_0x10109d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10109d([0x52,0x54,0x43]))){if(_0x1d849b())return!0x0;if(_0x18cd7f()||_0x1305f6())return!0x0;}return!0x1;}function _0x1943f5(){const _0x94667f=_0x452553[_0x10109d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x94667f||0x0==_0x94667f[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xddfbec}=new URL(window[_0x10109d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x94667f[_0x10109d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xddfbec))return!0x0;const _0x1930c9=_0xddfbec[_0x10109d([0x73,0x70,0x6c,0x69,0x74])](_0x10109d([0x2e]));return _0x94667f[_0x10109d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x338b87=>_0x338b87[_0x10109d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10109d([0x2a])))[_0x10109d([0x6d,0x61,0x70])](_0x5e48ea=>_0x5e48ea[_0x10109d([0x73,0x70,0x6c,0x69,0x74])](_0x10109d([0x2e])))[_0x10109d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3774b1=>_0x3774b1[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1930c9[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10109d([0x6d,0x61,0x70])](_0x4947de=>Array(_0x1930c9[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4947de[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10109d([0x66,0x69,0x6c,0x6c])](_0x4947de[0x0]===_0x10109d([0x2a])?_0x10109d([0x2a]):'')[_0x10109d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4947de))[_0x10109d([0x73,0x6f,0x6d,0x65])](_0x100672=>_0x1930c9[_0x10109d([0x65,0x76,0x65,0x72,0x79])]((_0xefab0d,_0x358b2b)=>_0x100672[_0x358b2b]===_0xefab0d||_0x100672[_0x358b2b]===_0x10109d([0x2a])));}function _0x25ece6(){return _0x480cba&&_0x1b1293?new window[(_0x10109d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2471f6,_0x5871d8)=>{_0x480cba[_0x10109d([0x74,0x68,0x65,0x6e])](_0x2471f6,_0x5871d8),_0x1b1293[_0x10109d([0x74,0x68,0x65,0x6e])](_0x50dacf=>{_0x50dacf!=_0x10109d([0x56,0x61,0x6c,0x69,0x64])&&_0x2471f6(_0x50dacf);},_0x5871d8);}):_0x480cba||_0x1b1293||_0x10109d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27c8b9(_0x36b25b,_0x5a11cf){return new window[(_0x10109d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2295f3=>{if(_0x2db356())return _0x2295f3(_0x10109d([0x56,0x61,0x6c,0x69,0x64]));_0x5aed9e(),_0x43f80c[_0x10109d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10109d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4160e9=!0x1;const _0x1bf65a=_0x373a37();function _0x4a3d49(_0x3b7f2c){return!!_0x3b7f2c&&(typeof _0x3b7f2c===_0x10109d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3b7f2c===_0x10109d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3b7f2c[_0x10109d([0x74,0x68,0x65,0x6e])]===_0x10109d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3b7f2c[_0x10109d([0x63,0x61,0x74,0x63,0x68])]===_0x10109d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x374e16(_0x5c9d7a){_0x377914(_0x5c9d7a)[_0x10109d([0x74,0x68,0x65,0x6e])](_0x5a7293=>{if(!_0x5a7293||_0x5a7293[_0x10109d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10109d([0x6f,0x6b]))return _0x10109d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c40b3(_0x546eb9(_0x1bf65a+_0x5a11cf))!=_0x5a7293[_0x10109d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10109d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10109d([0x56,0x61,0x6c,0x69,0x64]);})[_0x10109d([0x74,0x68,0x65,0x6e])](_0x411325=>(_0x116a37(),_0x411325),()=>{const _0x1ac6ab=_0x3f3529();return null==_0x1ac6ab?(_0x116a37(),_0x10109d([0x56,0x61,0x6c,0x69,0x64])):_0x10109d(_0x43d028-_0x1ac6ab>(0x27d454df^_0xbf0bed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10109d([0x74,0x68,0x65,0x6e])](_0x2295f3)[_0x10109d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2295f3(_0x10109d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15856b=0x3ee3e5f^_0xbf0bed;function _0x116a37(){const _0x293010=_0x10109d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c40b3(_0x546eb9(_0x36b25b)),_0x35ee40=_0x25f986(_0x1c40b3(window[_0x10109d([0x4d,0x61,0x74,0x68])][_0x10109d([0x63,0x65,0x69,0x6c])](_0x43d028/_0x15856b)));window[_0x10109d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10109d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x293010,_0x35ee40);}function _0x3f3529(){const _0x110b7c=_0x10109d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c40b3(_0x546eb9(_0x36b25b)),_0xe9111a=window[_0x10109d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10109d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x110b7c);return _0xe9111a?window[_0x10109d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25f986(_0xe9111a),0x10)*_0x15856b:null;}function _0x377914(_0x2f205b){return new window[(_0x10109d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x317060,_0x13f66a)=>{_0x2f205b[_0x10109d([0x74,0x68,0x65,0x6e])](_0x317060,_0x13f66a),window[_0x10109d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13f66a,0x3d9041f^_0xbf0bed);});}}_0x43f80c[_0x10109d([0x6f,0x6e])](_0x10109d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b6cab,_0x67fa50)=>{if(_0x67fa50[0x0]!=_0x36b25b)return _0x2295f3(_0x10109d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x67fa50[0x1]={..._0x67fa50[0x1],[_0x10109d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1bf65a};},{[_0x10109d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10109d([0x68,0x69,0x67,0x68])}),_0x43f80c[_0x10109d([0x6f,0x6e])](_0x10109d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x564c9f=>{_0x4a3d49(_0x564c9f[_0x10109d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4160e9=!0x0,_0x374e16(_0x564c9f[_0x10109d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10109d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10109d([0x6c,0x6f,0x77])}),_0x1161ff[_0x10109d([0x74,0x68,0x65,0x6e])](()=>{_0x4160e9||_0x2295f3(_0x10109d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2db356(){return _0x43f80c[_0x10109d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10109d([0x76,0x69,0x65,0x77])][_0x10109d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10109d([0x61,0x75,0x74,0x6f]);}function _0x5aed9e(){_0x43f80c[_0x10109d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10109d([0x76,0x69,0x65,0x77])][_0x10109d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10109d([0x61,0x75,0x74,0x6f]);}}function _0x2002e2(_0x33bce5){const _0xd7bb95=[new window[(_0x10109d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48f9b2=>setTimeout(_0x48f9b2,0x3d1ee13^_0xbf0bed)),_0x1161ff[_0x10109d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10109d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x307e29=>{let _0x15101b=0x0;_0x43f80c[_0x10109d([0x6d,0x6f,0x64,0x65,0x6c])][_0x10109d([0x6f,0x6e])](_0x10109d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f9b10,_0x66a3d0)=>{_0x66a3d0[0x0][_0x10109d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15101b++,_0x15101b==(0x3d8d537^_0xbf0bed)&&(_0x307e29(),_0x1f9b10[_0x10109d([0x6f,0x66,0x66])]());});}))];return window[_0x10109d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10109d([0x72,0x61,0x63,0x65])](_0xd7bb95)[_0x10109d([0x74,0x68,0x65,0x6e])](()=>_0x33bce5);}async function _0x9ea869(){await _0x1161ff,_0x43f80c[_0x10109d([0x6d,0x6f,0x64,0x65,0x6c])][_0x10109d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f4af3,_0x43f80c[_0x10109d([0x6d,0x6f,0x64,0x65,0x6c])][_0x10109d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f4af3,_0x43f80c[_0x10109d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10109d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d849b(){return _0x32923e(_0x10109d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5925fe(_0x10109d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x10109d([0x73,0x74,0x61,0x74,0x65])]==_0x10109d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x18cd7f(){return _0x32923e(_0x10109d([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 _0x1305f6(){return _0x32923e(_0x10109d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4fb775(_0x4504af){const _0x6cfc4a=_0xe6291();_0x43f80c[_0x6cfc4a]=_0x10109d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4504af,_0x4504af!=_0x10109d([0x56,0x61,0x6c,0x69,0x64])&&_0x9ea869();}function _0xe6291(){const _0x4f3ffa=window[_0x10109d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10109d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10109d([0x6e,0x6f,0x77])]())[_0x10109d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10109d([0x2e]),'');let _0x1ea131=_0x10109d([0x52]);for(let _0x2994e2=0x0;_0x2994e2<_0x4f3ffa[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2994e2+=0x2){let _0x27fb30=window[_0x10109d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f3ffa[_0x10109d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2994e2,_0x2994e2+0x2));_0x27fb30>=_0x157eff[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27fb30-=_0x157eff[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ea131+=_0x157eff[_0x27fb30];}return _0x1ea131;}function _0x30cf50(){const _0x415f4f=_0x47d853[_0x10109d([0x73,0x70,0x6c,0x69,0x74])](_0x10109d([0x2e]));if(0x3!=_0x415f4f[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x393c7d(_0x415f4f[0x1]);function _0x393c7d(_0x1c4e7b){const _0x2cccc5=_0x1ef946(_0x1c4e7b);return _0x2cccc5&&_0x523184()?_0x2cccc5:null;function _0x523184(){const _0x173d4c=_0x2cccc5[_0x10109d([0x6a,0x74,0x69])],_0x4c6a44=window[_0x10109d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173d4c[_0x10109d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x173d4c[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48c4ba={..._0x2cccc5,[_0x10109d([0x6a,0x74,0x69])]:_0x173d4c[_0x10109d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x173d4c[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48c4ba[_0x10109d([0x76,0x63])],_0x546eb9(_0x48c4ba)==_0x4c6a44;}}}async function _0x416243(){let _0x10e180=!0x0;try{const _0x2789b7=_0x47d853[_0x10109d([0x73,0x70,0x6c,0x69,0x74])](_0x10109d([0x2e])),[_0x5c4437,_0xb85e1,_0x59a5b9]=_0x2789b7;return _0x156845(_0x5c4437),await _0x12c885(_0x5c4437,_0xb85e1,_0x59a5b9),_0x10e180;}catch{return!0x1;}function _0x156845(_0x3cd931){const _0x198c85=_0x1ef946(_0x3cd931);_0x198c85&&_0x198c85[_0x10109d([0x61,0x6c,0x67])]==_0x10109d([0x45,0x53,0x32,0x35,0x36])||(_0x10e180=!0x1);}async function _0x12c885(_0x18ddd8,_0x4eb440,_0x5da6da){const _0x372b31=window[_0x10109d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10109d([0x66,0x72,0x6f,0x6d])](_0x3d9a22(_0x5da6da),_0x488a2e=>_0x488a2e[_0x10109d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e79a9=new window[(_0x10109d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10109d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18ddd8+_0x10109d([0x2e])+_0x4eb440),_0x16ecde=window[_0x10109d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10109d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16ecde)return;const _0x38b65c=await _0x16ecde[_0x10109d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10109d([0x6a,0x77,0x6b]),_0x489259,{[_0x10109d([0x6e,0x61,0x6d,0x65])]:_0x10109d([0x45,0x43,0x44,0x53,0x41]),[_0x10109d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10109d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10109d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16ecde[_0x10109d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10109d([0x6e,0x61,0x6d,0x65])]:_0x10109d([0x45,0x43,0x44,0x53,0x41]),[_0x10109d([0x68,0x61,0x73,0x68])]:{[_0x10109d([0x6e,0x61,0x6d,0x65])]:_0x10109d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38b65c,_0x372b31,_0x3e79a9)||(_0x10e180=!0x1);}}function _0x1ef946(_0xec8b5d){return _0xec8b5d[_0x10109d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10109d([0x65,0x79]))?JSON[_0x10109d([0x70,0x61,0x72,0x73,0x65])](_0x3d9a22(_0xec8b5d)):null;}function _0x3d9a22(_0x5eed90){return window[_0x10109d([0x61,0x74,0x6f,0x62])](_0x5eed90[_0x10109d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10109d([0x2b]))[_0x10109d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10109d([0x2f])));}function _0x546eb9(_0x210b50){let _0x2732e1=0x1505;function _0x4d63a7(_0x1b7d7d){for(let _0x372c80=0x0;_0x372c80<_0x1b7d7d[_0x10109d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x372c80++){const _0x246c08=_0x1b7d7d[_0x10109d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x372c80);_0x2732e1=(_0x2732e1<<0x5)+_0x2732e1+_0x246c08,_0x2732e1&=_0x2732e1;}}function _0x5a9aad(_0x1fff95){Array[_0x10109d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1fff95)?_0x1fff95[_0x10109d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a9aad):_0x1fff95&&typeof _0x1fff95==_0x10109d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10109d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1fff95)[_0x10109d([0x73,0x6f,0x72,0x74])]()[_0x10109d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x168f68,_0x5e4459])=>{_0x4d63a7(_0x168f68),_0x5a9aad(_0x5e4459);}):_0x4d63a7(window[_0x10109d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1fff95));}return _0x5a9aad(_0x210b50),_0x2732e1>>>0x0;}function _0x1c40b3(_0x5a709f){return _0x5a709f[_0x10109d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10109d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10109d([0x30]));}function _0x25f986(_0x10392a){return _0x10392a[_0x10109d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10109d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10109d([0x6a,0x6f,0x69,0x6e])]('');}function _0x32923e(_0x155b36){return _0x43f80c[_0x10109d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10109d([0x68,0x61,0x73])](_0x155b36);}function _0x5925fe(_0xf7ba59){return _0x43f80c[_0x10109d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10109d([0x67,0x65,0x74])](_0xf7ba59);}function _0x1f4af3(){}function _0x10109d(_0x3c9632){return _0x3c9632['map'](_0x57c4c0=>String['fromCharCode'](_0x57c4c0))['join']('');}_0x4fb775(await _0xfe05fa());}(this);}set['adapter'](_0x1faa6e){if(this['_adapter'])throw new _0x3ee078('track-changes-adapter-already-set',this);this['_adapter']=_0x1faa6e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3459d9=!0x1,toJSON:_0x84e52=!0x1}={}){const _0x47db4d=[];for(const _0x45cfd6 of this['_suggestions']['values']())_0x3459d9&&!_0x45cfd6['isInContent']||_0x47db4d['push'](_0x45cfd6);return _0x84e52?_0x47db4d['map'](_0x467b6b=>_0x467b6b['toJSON']()):_0x47db4d;}['getSuggestion'](_0x1f3127){const _0x1a7913=this['_suggestions']['get'](_0x1f3127);if(!_0x1a7913)throw new _0x3ee078('track-changes-suggestion-not-found',this);return _0x1a7913;}['hasSuggestion'](_0x295c58){return this['_suggestions']['has'](_0x295c58);}['addSuggestionData'](_0x46ef87){const {authorId:_0x5bfc56,id:_0x1c10f2,originalSuggestionId:_0x468af7,attributes:_0x2a56c0}=_0x46ef87,[_0x40e14e,_0x1717a0]=_0x46ef87['type']['split'](':'),_0x2e30d0=this['_suggestions']['get'](_0x1c10f2)||this['_createSuggestion'](_0x40e14e,_0x1717a0,_0x1c10f2,_0x5bfc56,_0x2a56c0,_0x468af7);if(this['_addThreadToSuggestion'](_0x2e30d0),this['_checkSuggestionCorrectness'](_0x2e30d0,_0x40e14e,_0x1717a0||null,_0x5bfc56),_0x2e30d0['createdAt']=_0x46ef87['createdAt'],_0x2e30d0['_isDataLoaded']=!0x0,_0x2a56c0&&_0x2a56c0['@external']){const _0x5bb01c=_0x2a56c0['@external'],_0x591e89=this['_getExternalAuthor'](_0x5bb01c['authorName']);_0x2e30d0['authoredAt']=_0x5bb01c['createdAt'],_0x2e30d0['author']=_0x591e89,_0x2e30d0['isExternal']=!0x0;}else _0x2e30d0['authoredAt']=_0x46ef87['createdAt'];switch(_0x46ef87['data']&&(_0x2e30d0['data']=_0x46ef87['data']),_0x46ef87['attributes']&&(_0x2e30d0['attributes']=_0x46ef87['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2e30d0['_saved']=!0x0),this['_suggestionState']['get'](_0x2e30d0)){case'notReady':this['_suggestionState']['set'](_0x2e30d0,'dataReady');break;case'markerReady':_0x2e30d0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2e30d0])),this['_refreshSuggestionsChain'](new Set([_0x2e30d0])),this['_suggestionState']['set'](_0x2e30d0,'ready'),this['fire']('suggestionLoaded',_0x2e30d0)):this['_suggestionState']['set'](_0x2e30d0,'removed');}return _0x2e30d0;}['acceptSuggestion'](_0x463ff4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x65b572 of _0x463ff4['getAllAdjacentSuggestions']())_0x65b572['accept']();});});}['discardSuggestion'](_0x33fd37){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42d9f3 of _0x33fd37['getAllAdjacentSuggestions']())_0x42d9f3['discard']();});});}['enableCommand'](_0x5e8c6,_0x47c63e){const _0x411daf=this['editor']['commands']['get'](_0x5e8c6);if(!_0x411daf)throw new _0x3ee078('track-changes-command-not-found',this,{'commandName':_0x5e8c6});if(this['_enabledCommands']['has'](_0x411daf))throw new _0x3ee078('track-changes-enable-command-twice',this,{'commandName':_0x5e8c6});this['_enabledCommands']['add'](_0x411daf),_0x47c63e&&_0x411daf['on']('execute',(_0x1e8843,_0x1c1ae8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1c1ae8['length']>0x0&&_0x1c1ae8[_0x1c1ae8['length']-0x1]&&_0x1c1ae8[_0x1c1ae8['length']-0x1]['forceDefaultExecution']?_0x1c1ae8['pop']():(_0x1e8843['return']=_0x47c63e((..._0x57f243)=>_0x411daf['execute'](..._0x57f243,{'forceDefaultExecution':!0x0}),..._0x1c1ae8),_0x1e8843['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a1135){let _0x1a0954,_0x4859ab;const _0xc603a9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1a0954=_0x4a1135();}catch(_0x39de49){_0x4859ab=_0x39de49;}return _0xc603a9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4859ab&&_0x3ee078['rethrowUnexpectedError'](_0x4859ab,this),_0x1a0954;}['markInsertion'](_0x469b17,_0x196dfc=null,_0x30516a={}){if(_0x469b17['isCollapsed'])return null;const _0x3f758b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x30516a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4df6f2,meta:_0x557cbf}of this['_findSuggestions'](_0x469b17,'insertion'))if(_0x557cbf['isOwn']){if(!_0x557cbf['isNextTo']){if(_0x557cbf['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x4df6f2,_0x30516a))continue;return _0x4df6f2;}if(sn(_0x4df6f2,_0x30516a))return _0x4df6f2;this['_breakSuggestionMarker'](_0x4df6f2,_0x469b17['start'],_0x469b17['end']);break;}if(_0x196dfc==_0x4df6f2['subType']&&sn(_0x4df6f2,_0x30516a)){const _0x27690e=_0x4df6f2['getFirstRange']();return _0x27690e['start']['isEqual'](_0x469b17['end'])?this['_setSuggestionRange'](_0x4df6f2,this['_model']['createRange'](_0x469b17['start'],_0x27690e['end'])):this['_setSuggestionRange'](_0x4df6f2,this['_model']['createRange'](_0x27690e['start'],_0x469b17['end'])),_0x4df6f2;}}const _0x545157=_0x373a37(),_0x50beb0=_0x3f758b['id'],_0x519a64=_0x196dfc?'insertion:'+_0x196dfc:'insertion',_0x2c0bc5=this['_setSuggestionData']({'id':_0x545157,'type':_0x519a64,'createdAt':new Date(),'authorId':_0x50beb0,'attributes':_0x30516a});return this['_addSuggestionMarker'](_0x519a64,_0x545157,_0x50beb0,_0x469b17),_0x2c0bc5;}['markMultiRangeInsertion'](_0x5b62bd,_0x324c23='multi',_0x12780a={}){const _0xe157c3=this['editor']['plugins']['get']('Users')['me'],_0x51bf4f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x324c23,'join');this['_trackingSessionId']&&(_0x12780a['trackingSessionId']=this['_trackingSessionId']);for(const _0x497962 of this['getSuggestions']())if(_0x497962['author']['id']==_0xe157c3['id']&&'insertion'==_0x497962['type']&&_0x497962['subType']==_0x324c23&&sn(_0x497962,_0x12780a)&&(_0x51bf4f(_0x497962['getRanges'](),_0x5b62bd)||_0x51bf4f(_0x5b62bd,_0x497962['getRanges']()))){for(const _0x2dd3ac of _0x5b62bd)_0x497962['addRange'](_0x2dd3ac);return _0x497962;}for(const {suggestion:_0x4d95af,meta:_0x2ccec3}of this['_findSuggestions'](_0x5b62bd,'insertion')){if(!_0x2ccec3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2ccec3['containsRangeInObject'])continue;if(!sn(_0x4d95af,_0x12780a))continue;let _0x54ee44=!0x0;for(const _0x57a4d4 of _0x4d95af['getRanges']())for(const _0x4d1c02 of _0x5b62bd)if(!_0x57a4d4['containsRange'](_0x4d1c02)){_0x54ee44=!0x1;break;}if(_0x54ee44)return _0x4d95af;}const _0x5c30fc=_0x373a37(),_0x435b7b=_0xe157c3['id'],_0x25f2ab='insertion:'+_0x324c23,_0x4079df=this['_setSuggestionData']({'id':_0x5c30fc,'type':_0x25f2ab,'createdAt':new Date(),'authorId':_0x435b7b,'attributes':_0x12780a});for(const _0x2e90a8 of _0x5b62bd)this['_addSuggestionMarker'](_0x25f2ab,_0x5c30fc,_0x435b7b,_0x2e90a8,x['getMultiRangeId']());return _0x4079df;}['markInlineFormat'](_0x21afc7,_0x58d1b8,_0x2eca88=null,_0x5c37e0={}){if(_0x2eca88=_0x2eca88||Ht(_0x58d1b8),_0x21afc7['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5c37e0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3ccc03=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2eca88,'accept');return this['forceDefaultExecution'](()=>_0x3ccc03([_0x21afc7],_0x58d1b8,_0x5c37e0)),null;}const _0x6fc252=this['editor']['plugins']['get']('Users')['me'],_0x2c35fa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x11d3e1,meta:_0x56c2bf}of this['_findSuggestions'](_0x21afc7,'insertion'))_0x56c2bf['isOwn']&&!_0x56c2bf['isInsideObject']&&_0x2c35fa['push'](..._0x11d3e1['getRanges']());}const _0x3955eb=function(_0x2fea2f,_0x3115ee){const _0x261923=[];for(const _0x295c17 of _0x3115ee){const _0x1802ee=_0x2fea2f['getIntersection'](_0x295c17);_0x1802ee&&_0x261923['push'](_0x1802ee);}return _0x261923;}(_0x21afc7,_0x2c35fa),_0x5f3c0a=function(_0x58af20,_0xedd48c){const _0x45d07b=[_0x58af20];for(const _0x81e74a of _0xedd48c){let _0xdc9489=0x0;for(;_0xdc9489<_0x45d07b['length'];){const _0x516845=_0x45d07b[_0xdc9489]['getDifference'](_0x81e74a);_0x45d07b['splice'](_0xdc9489,0x1,..._0x516845),_0xdc9489+=_0x516845['length'];}}return _0x45d07b;}(_0x21afc7,_0x2c35fa);_0x3955eb['length']&&this['_model']['change'](()=>{for(const _0x53600f of _0x3955eb){const _0x1c7f6e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2eca88,'accept');this['forceDefaultExecution'](()=>_0x1c7f6e([_0x53600f],_0x58d1b8,_0x5c37e0));}});for(const _0x49a91a of _0x5f3c0a){let _0x328c55=null,_0x20d179=_0x49a91a['start'],_0xd14e28=_0x49a91a['end'];for(const {suggestion:_0xb774bf,meta:_0x37765}of this['_findSuggestions'](_0x49a91a,'formatInline')){if(!_0x37765['isOwn'])continue;if(_0xb774bf['subType']!=_0x2eca88)continue;if(!sn(_0xb774bf,_0x5c37e0))continue;const _0x505c5b=_0xb774bf['getFirstRange']();if(_0x505c5b['containsRange'](_0x49a91a,!0x0))return null;_0x20d179=_0x20d179['isBefore'](_0x505c5b['start'])?_0x20d179:_0x505c5b['start'],_0xd14e28=_0xd14e28['isAfter'](_0x505c5b['end'])?_0xd14e28:_0x505c5b['end'],_0x328c55?_0x505c5b['start']['isBefore'](_0x328c55['getFirstRange']()['start'])?(_0x328c55['removeMarkers'](),_0x328c55=_0xb774bf):_0xb774bf['removeMarkers']():_0x328c55=_0xb774bf;}const _0x53e971=this['_model']['createRange'](_0x20d179,_0xd14e28);if(_0x328c55)this['_setSuggestionRange'](_0x328c55,_0x53e971);else{const _0x444c83=_0x373a37(),_0x3dcccf=_0x6fc252['id'];this['_setSuggestionData']({'id':_0x444c83,'type':'formatInline:'+_0x2eca88,'data':_0x58d1b8,'createdAt':new Date(),'authorId':_0x3dcccf,'attributes':_0x5c37e0}),this['_addSuggestionMarker']('formatInline:'+_0x2eca88,_0x444c83,_0x3dcccf,_0x53e971);}}return null;}['markBlockFormat'](_0x16beb8,_0x2045cf,_0x522958=[],_0x185158=null,_0x2882b3={}){_0x2045cf['formatGroupId']||(_0x2045cf['formatGroupId']=_0x2045cf['commandName']),_0x2045cf['multipleBlocks']=_0x16beb8['is']('range'),_0x185158=_0x185158||Ht(_0x2045cf);const _0x3ada22=_0x522958['map'](_0x40910e=>tn(_0x40910e,this['_model'])),_0x2b670f=_0x16beb8['is']('range')?_0x16beb8:tn(_0x16beb8,this['_model']);if(this['_trackingSessionId']&&(_0x2882b3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39b6fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x185158,'accept');return this['forceDefaultExecution'](()=>_0x39b6fe([_0x2b670f],_0x2045cf,_0x2882b3)),null;}_0x3ada22['push'](_0x2b670f);let _0x429d38=!0x0;for(const _0x3cefb1 of _0x3ada22)if(!this['_rangeIsInLocalUserInsertion'](_0x3cefb1)){_0x429d38=!0x1;break;}if(_0x429d38&&'always'!==this['_trackFormatChanges']){const _0x586962=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x185158,'accept');return this['forceDefaultExecution'](()=>_0x586962([_0x2b670f],_0x2045cf,_0x2882b3)),null;}let _0x26379d=null,_0x1bbc40=_0x2b670f['start'],_0x25545a=_0x2b670f['end'];for(const {suggestion:_0x5e68fa,meta:_0x2dba19}of this['_findSuggestions'](_0x2b670f,'formatBlock')){if(!_0x2dba19['isOwn'])continue;if(_0x2dba19['isNextTo']||_0x2dba19['containsRangeInObject']||_0x2dba19['isInsideObject'])continue;if(_0x5e68fa['data']['formatGroupId']!=_0x2045cf['formatGroupId'])continue;if(!sn(_0x5e68fa,_0x2882b3))continue;const _0x17787f=_0x5e68fa['getFirstRange']();if(_0x5e68fa['subType']==_0x185158){if(_0x17787f['containsRange'](_0x2b670f,!0x0))return null;_0x1bbc40=_0x1bbc40['isBefore'](_0x17787f['start'])?_0x1bbc40:_0x17787f['start'],_0x25545a=_0x25545a['isAfter'](_0x17787f['end'])?_0x25545a:_0x17787f['end'],_0x26379d?_0x17787f['start']['isBefore'](_0x26379d['getFirstRange']()['start'])?(_0x26379d['removeMarkers'](),_0x26379d=_0x5e68fa):_0x5e68fa['removeMarkers']():_0x26379d=_0x5e68fa;}else{const _0x33e521=_0x2b670f['getIntersection'](_0x17787f);this['_cutOutSuggestionMarker'](_0x5e68fa,_0x33e521);}}const _0x1b76d4=this['editor']['plugins']['get']('Users')['me'],_0x6ef1a8=_0x373a37(),_0x27649e=_0x1b76d4['id'];if(_0x26379d)return this['_setSuggestionRange'](_0x26379d,this['_model']['createRange'](_0x1bbc40,_0x25545a)),_0x26379d;{const _0x255781=this['_setSuggestionData']({'id':_0x6ef1a8,'type':'formatBlock:'+_0x185158,'data':_0x2045cf,'createdAt':new Date(),'authorId':_0x27649e,'attributes':_0x2882b3});return this['_addSuggestionMarker']('formatBlock:'+_0x185158,_0x6ef1a8,_0x27649e,this['_model']['createRange'](_0x1bbc40,_0x25545a)),_0x255781;}}['markMultiRangeBlockFormat'](_0x15d5c8,_0x30c754,_0x77ffb=[],_0x3e726f=null,_0x28f0c8={}){_0x30c754['formatGroupId']||(_0x30c754['formatGroupId']=_0x30c754['commandName']);const _0x4f331f=_0x15d5c8[0x0];_0x30c754['multipleBlocks']=_0x4f331f['is']('range'),_0x3e726f=_0x3e726f||Ht(_0x30c754);const _0xb84418=_0x77ffb['map'](_0x1edbc8=>tn(_0x1edbc8,this['_model'])),_0x3da4c0=_0x4f331f['is']('range')?_0x15d5c8:_0x15d5c8['map'](_0x1d0f28=>tn(_0x1d0f28,this['_model']));if(this['_trackingSessionId']&&(_0x28f0c8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5b8dbb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e726f,'accept');return this['forceDefaultExecution'](()=>_0x5b8dbb(_0x3da4c0,_0x30c754,_0x28f0c8)),null;}_0xb84418['push'](..._0x3da4c0);let _0x1bc0f9=!0x0;for(const _0x5d1a8c of _0xb84418)if(!this['_rangeIsInLocalUserInsertion'](_0x5d1a8c)){_0x1bc0f9=!0x1;break;}if(_0x1bc0f9&&'always'!==this['_trackFormatChanges']){const _0x577e68=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e726f,'accept');return this['forceDefaultExecution'](()=>_0x577e68(_0x3da4c0,_0x30c754,_0x28f0c8)),null;}const _0x125b88=this['editor']['plugins']['get']('Users')['me'];for(const _0x40eb68 of this['getSuggestions']()){const _0x4ce802=_0x40eb68['data'];if(_0x40eb68['author']['id']!=_0x125b88['id'])continue;if('formatBlock'!=_0x40eb68['type']||_0x4ce802['formatGroupId']!=_0x30c754['formatGroupId'])continue;if(!sn(_0x40eb68,_0x28f0c8))continue;const _0x118411=_0x40eb68['subType']==_0x3e726f;for(let _0x5a9f56=0x0;_0x5a9f56<_0x3da4c0['length'];_0x5a9f56++){const _0x359ddb=_0x3da4c0[_0x5a9f56];for(const _0xbcb8ef of _0x40eb68['getMarkers']()){const _0x3d1d28=_0xbcb8ef['getRange']();if(_0x359ddb['isEqual'](_0x3d1d28)){_0x118411?(_0x3da4c0['splice'](_0x5a9f56,0x1),_0x5a9f56--):_0x40eb68['removeMarker'](_0xbcb8ef['name']);break;}}}}if(0x0==_0x3da4c0['length'])return null;const _0x1f5293=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e726f,'join');for(const _0x590945 of this['getSuggestions']()){const _0x3e9bd7=_0x590945['data'];if(_0x590945['author']['id']==_0x125b88['id']&&('formatBlock'==_0x590945['type']&&_0x3e9bd7['formatGroupId']==_0x30c754['formatGroupId']&&_0x590945['subType']==_0x3e726f&&sn(_0x590945,_0x28f0c8)&&(_0x1f5293(_0x590945['getRanges'](),_0x3da4c0)||_0x1f5293(_0x3da4c0,_0x590945['getRanges']())))){for(const _0x1d0d2c of _0x3da4c0)_0x590945['addRange'](_0x1d0d2c);return _0x590945;}}const _0x13e3d5=_0x373a37(),_0x1809be=_0x125b88['id'],_0xcada0='formatBlock:'+_0x3e726f,_0x4c436c=this['_setSuggestionData']({'id':_0x13e3d5,'type':_0xcada0,'data':_0x30c754,'createdAt':new Date(),'authorId':_0x1809be,'attributes':_0x28f0c8});for(const _0x113bc9 of _0x3da4c0)this['_addSuggestionMarker'](_0xcada0,_0x13e3d5,_0x1809be,_0x113bc9,x['getMultiRangeId']());return _0x4c436c;}['markDeletion'](_0x5e6535,_0x46220e=null,_0xf5765e={}){if(_0x5e6535['isCollapsed'])return null;const _0x76b14d=this['editor']['plugins']['get']('Users')['me'],_0x5e87c0=new _0x3eedc6(_0x5e6535['start'],_0x5e6535['end']);this['_trackingSessionId']&&(_0xf5765e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x29bb14,meta:_0x3bbc9a}of this['_findSuggestions'](_0x5e87c0,'insertion'))if(_0x3bbc9a['isOwn']&&!_0x3bbc9a['isNextTo']){if(_0x29bb14['isMultiRange']){const _0x3f8755=_0x29bb14['getRanges']()['filter'](_0x384a87=>'$graveyard'!=_0x384a87['root']['rootName']);_0x3f8755['every'](_0x15f270=>_0x5e87c0['containsRange'](_0x15f270,!0x0))&&_0x29bb14['discard']();if(_0x3f8755['some'](_0x9089a=>_0x9089a['containsRange'](_0x5e87c0,!0x0))){const _0x6bb2ad=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46220e,'accept');return this['forceDefaultExecution'](()=>_0x6bb2ad([_0x5e87c0],null,_0xf5765e)),null;}}else{const _0x36a0ef=_0x5e87c0['getIntersection'](_0x29bb14['getFirstRange']());null!==_0x36a0ef&&_0x29bb14['_onDiscard']([_0x36a0ef],null,_0xf5765e);}}if(_0x5e87c0['detach'](),_0x5e87c0['isCollapsed']||'$graveyard'==_0x5e87c0['root']['rootName'])return null;let _0x277913=null,_0x5b642c=_0x5e87c0['start'],_0x2d56a9=_0x5e87c0['end'];const _0x4f3d53=this['_findSuggestions'](_0x5e87c0,'deletion');for(const {suggestion:_0x3fd76d,meta:_0x2ba3ba}of _0x4f3d53){const _0x3679bd=this['_model']['createRange'](_0x5b642c,_0x2d56a9);if(_0x2ba3ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2ba3ba['containsRangeInObject']&&!_0x2ba3ba['isInsideObject'])){if(_0x3fd76d['isMultiRange']){if(!sn(_0x3fd76d,_0xf5765e))continue;let _0x3776e2=!0x0;for(const _0x4868e5 of _0x3fd76d['getRanges']()){if(_0x4868e5['containsRange'](_0x3679bd,!0x0))return _0x3fd76d;_0x3679bd['containsRange'](_0x4868e5)||(_0x3776e2=!0x1);}_0x3776e2&&_0x3fd76d['discard']();}else{const _0x4039da=_0x3fd76d['getFirstRange']();if(_0x4039da['containsRange'](_0x3679bd,!0x0))return _0x3fd76d;if(!sn(_0x3fd76d,_0xf5765e)){_0x3679bd['containsRange'](_0x4039da)?_0x3fd76d['removeMarkers']():_0x4039da['containsPosition'](_0x5b642c)?_0x5b642c=_0x4039da['end']:_0x4039da['containsPosition'](_0x2d56a9)&&(_0x2d56a9=_0x4039da['start']);continue;}_0x5b642c=_0x5b642c['isBefore'](_0x4039da['start'])?_0x5b642c:_0x4039da['start'],_0x2d56a9=_0x2d56a9['isAfter'](_0x4039da['end'])?_0x2d56a9:_0x4039da['end'],_0xf5765e=Object['assign']({},_0x3fd76d['attributes']),_0x277913?_0x4039da['start']['isBefore'](_0x277913['getFirstRange']()['start'])?(_0x277913['removeMarkers'](),_0x277913=_0x3fd76d):_0x3fd76d['removeMarkers']():_0x277913=_0x3fd76d;}}}if(_0x277913)return this['_setSuggestionRange'](_0x277913,this['_model']['createRange'](_0x5b642c,_0x2d56a9)),_0x277913;{const _0xb23fe2=_0x373a37(),_0x23d501=this['_model']['createRange'](_0x5b642c,_0x2d56a9),_0x213f1e=_0x76b14d['id'],_0x1d9a5e=_0x46220e?'deletion:'+_0x46220e:'deletion',_0x1f234e=this['_setSuggestionData']({'id':_0xb23fe2,'type':_0x1d9a5e,'createdAt':new Date(),'authorId':_0x213f1e,'attributes':_0xf5765e});return this['_addSuggestionMarker'](_0x1d9a5e,_0xb23fe2,_0x213f1e,_0x23d501),_0x1f234e;}}['markMultiRangeDeletion'](_0x442352,_0x38a5ca='multi',_0x205838={}){const _0x72d7b4=this['editor']['plugins']['get']('Users')['me'],_0x3e30ef=_0x442352['map'](_0x477df8=>new _0x3eedc6(_0x477df8['start'],_0x477df8['end'])),_0x2f114b=new Set();this['_trackingSessionId']&&(_0x205838['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x56bcf7,meta:_0x26dcbc}of this['_findSuggestions'](_0x3e30ef,'insertion'))_0x26dcbc['isOwn']&&!_0x26dcbc['isNextTo']&&_0x2f114b['add'](_0x56bcf7);for(const _0x1fb3f3 of _0x2f114b)if(_0x1fb3f3['isMultiRange']){const _0x37d053=_0x1fb3f3['getRanges']();(!_0x1fb3f3['attributes']||!_0x1fb3f3['attributes']['skipNestingCheck'])&&(_0x37d053['every'](_0x4cfe45=>_0x3e30ef['some'](_0xf6cacb=>_0xf6cacb['containsRange'](_0x4cfe45,!0x0)))&&_0x1fb3f3['discard']());if(_0x3e30ef['every'](_0x43e7e9=>_0x37d053['some'](_0x3830a9=>_0x3830a9['containsRange'](_0x43e7e9,!0x0)))){const _0x26bdf9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38a5ca,'accept');return this['forceDefaultExecution'](()=>_0x26bdf9(_0x442352,null,_0x205838)),null;}}else{const _0x2d67d3=_0x1fb3f3['getFirstRange']();_0x3e30ef['some'](_0x13cde5=>_0x13cde5['containsRange'](_0x2d67d3,!0x0))&&_0x1fb3f3['discard']();if(_0x3e30ef['every'](_0x24085f=>_0x2d67d3['containsRange'](_0x24085f,!0x0))){const _0xcf2c34=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38a5ca,'accept');return this['forceDefaultExecution'](()=>_0xcf2c34(_0x3e30ef,null,_0x205838)),null;}}const _0x52d335=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38a5ca,'join');let _0x4a8715=null;for(const _0x1e0729 of this['getSuggestions']())if(_0x1e0729['author']['id']==_0x72d7b4['id']&&_0x1e0729['isInContent']&&'deletion'==_0x1e0729['type']&&_0x1e0729['subType']==_0x38a5ca&&sn(_0x1e0729,_0x205838)&&(_0x52d335(_0x1e0729['getRanges'](),_0x3e30ef)||_0x52d335(_0x3e30ef,_0x1e0729['getRanges']()))){if(_0x4a8715){if(_0x1e0729['commentThread']&&_0x1e0729['commentThread']['length'])continue;for(const _0x5eeb1e of _0x1e0729['getRanges']())_0x4a8715['isIntersectingWithRange'](_0x5eeb1e)||_0x4a8715['addRange'](_0x5eeb1e);_0x1e0729['removeMarkers']();}else{_0x4a8715=_0x1e0729;for(const _0x320323 of _0x3e30ef)_0x1e0729['isIntersectingWithRange'](_0x320323)||_0x1e0729['addRange'](_0x320323);}}if(_0x4a8715)return _0x4a8715;_0x2f114b['clear']();for(const {suggestion:_0x5197d6,meta:_0x1915bc}of this['_findSuggestions'](_0x3e30ef,'deletion'))_0x1915bc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1915bc['containsRangeInObject']&&!_0x1915bc['isInsideObject'])&&sn(_0x5197d6,_0x205838)&&_0x2f114b['add'](_0x5197d6);for(const _0xc5dc3 of _0x2f114b){const _0x492ac3=_0xc5dc3['getRanges']();if(!_0x205838||!_0x205838['skipNestingCheck']){if(_0x3e30ef['every'](_0x24cb5d=>_0x492ac3['some'](_0x18ca8b=>_0x18ca8b['containsRange'](_0x24cb5d,!0x0))))return _0xc5dc3;}(!_0xc5dc3['attributes']||!_0xc5dc3['attributes']['skipNestingCheck'])&&(_0x492ac3['every'](_0x38096c=>_0x3e30ef['some'](_0x35bc0c=>_0x35bc0c['containsRange'](_0x38096c,!0x0)))&&_0xc5dc3['discard']());}const _0x2a0278=_0x373a37(),_0x33a5d1=_0x72d7b4['id'],_0x4f55b7='deletion:'+_0x38a5ca,_0x3dcd0d=this['_setSuggestionData']({'id':_0x2a0278,'type':_0x4f55b7,'createdAt':new Date(),'authorId':_0x33a5d1,'attributes':_0x205838});for(const _0x4437c2 of _0x3e30ef)_0x4437c2['detach'](),_0x4437c2['isCollapsed']||'$graveyard'==_0x4437c2['root']['rootName']||this['_addSuggestionMarker'](_0x4f55b7,_0x2a0278,_0x33a5d1,_0x4437c2,x['getMultiRangeId']());return _0x3dcd0d;}['markAttributeChange'](_0x27e9b0,_0x12592b,_0x5d37e6,_0x1b827e,_0x5c543f){if(_0x27e9b0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2fd32f=this['editor']['plugins']['get']('Users')['me']['id'],_0x1a2583=Array['from'](this['_suggestions']['values']())['filter'](_0x5de8c7=>'attribute'==_0x5de8c7['type']&&_0x5de8c7['data']['key']==_0x12592b&&_0x5de8c7['isIntersectingWithRange'](_0x27e9b0));if(this['_trackingSessionId']&&(_0x5c543f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2f056c=this['_findSuggestions'](_0x27e9b0,'insertion')['filter'](({meta:_0x1d6b17})=>_0x1d6b17['isOwn']&&!_0x1d6b17['isInsideObject']&&!_0x1d6b17['isNextTo'])['map'](({suggestion:_0x43fc5f})=>_0x43fc5f);_0x1a2583['unshift'](..._0x2f056c);}const _0x59ba2a=new Map([[_0x27e9b0,_0x5d37e6]]);for(const _0x12ff0c of _0x1a2583){const _0x220458='attribute'==_0x12ff0c['type']?_0x12ff0c['data']['oldValue']:void 0x0,_0x3e8e0d=_0x12ff0c['getFirstRange'](),_0x2fb49c=Array['from'](_0x59ba2a['keys']())['find'](_0x400809=>_0x400809['isIntersecting'](_0x3e8e0d));if(!_0x2fb49c)continue;const _0x444293=_0x2fb49c['getDifference'](_0x3e8e0d);this['_isBlockAttribute'](_0x12592b)&&'insertion'==_0x12ff0c['type']&&0x0!=_0x444293['length']||(_0x59ba2a['delete'](_0x2fb49c),_0x444293['forEach'](_0x134603=>{_0x59ba2a['set'](_0x134603,_0x5d37e6);}),'insertion'!=_0x12ff0c['type']&&_0x220458!=_0x1b827e&&_0x59ba2a['set'](_0x2fb49c['getIntersection'](_0x3e8e0d),_0x220458));}const _0x14ed17=[];for(const [_0x2664e1,_0x423723]of _0x59ba2a){const _0x3ac92b=_0x373a37(),_0x2506e9={'key':_0x12592b,'oldValue':_0x423723,'newValue':_0x1b827e};_0x12592b['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':_0x12592b});const _0x90a1ed=('attribute:'+(_0x12592b+'|'+Ht({'newValue':_0x1b827e})))['substring'](0x0,0x3c),_0x80141=this['_setSuggestionData']({'id':_0x3ac92b,'type':_0x90a1ed,'data':_0x2506e9,'createdAt':new Date(),'authorId':_0x2fd32f,'attributes':_0x5c543f});_0x14ed17['push'](_0x80141),this['_addSuggestionMarker'](_0x90a1ed,_0x3ac92b,_0x2fd32f,_0x2664e1);}return _0x14ed17;}['enableDefaultAttributesIntegration'](_0x47b82c){this['enableCommand'](_0x47b82c,(_0x38fcdc,..._0x55459e)=>{this['recordAttributeChanges'](()=>{_0x38fcdc(..._0x55459e);});});}['registerBlockAttribute'](_0x5e4f2a){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x5e4f2a);}['registerInlineAttribute'](_0x2b9bd4){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x2b9bd4);}['startTrackingSession'](_0x337672){return this['_trackingSessionId']=void 0x0!==_0x337672?_0x337672:_0x373a37(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2d479e){return'attribute'==_0x2d479e['type']?_0x2d479e['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x892502){if(0x0==_0x892502['length'])return;const _0x366090=this['editor'],_0x50dbb2=_0x366090['plugins']['get'](_0xadb51c),_0x5281e5=[];_0x366090['model']['change'](_0x2cee45=>{for(let _0x2c0f04=0x0;_0x2c0f04<_0x892502['length'];_0x2c0f04++){const _0x350ac0=_0x892502[_0x2c0f04];if(_0x350ac0['baseVersion']=_0x366090['model']['document']['version'],_0x350ac0['isDocumentOperation']=!0x0,_0x50dbb2['isMarkedRemoveOperation'](_0x350ac0)){const _0x82cfcf=Lt(_0x350ac0['newRange'],_0x366090['model']);_0x5281e5['unshift'](_0x3eedc6['fromRange'](_0x82cfcf));}else switch(_0x350ac0['type']){case'rename':{const _0x52d7ad=_0x350ac0['oldName'],_0x573dcd=_0x350ac0['newName'];if(_0x52d7ad==_0x573dcd)break;_0x2cee45['batch']['addOperation'](_0x350ac0),_0x366090['model']['applyOperation'](_0x350ac0);const _0x3a7c03='$elementName',_0xd83ad5=_0x350ac0['position'],_0x215355=_0x366090['model']['createRange'](_0xd83ad5,_0x366090['model']['createPositionAt'](_0xd83ad5['nodeAfter'],'end'));this['markAttributeChange'](_0x215355,_0x3a7c03,_0x52d7ad,_0x573dcd,{'groupId':_0x373a37()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x49ad39=_0x350ac0['oldValue'],_0x381b2f=_0x350ac0['newValue'];if(_0x49ad39==_0x381b2f)break;_0x2cee45['batch']['addOperation'](_0x350ac0),_0x366090['model']['applyOperation'](_0x350ac0);const _0xf4d60c=_0x350ac0['key'];if(!this['_isRegisteredAttribute'](_0xf4d60c))break;const _0xd8f590=Lt(_0x350ac0['range'],_0x366090['model']);this['markAttributeChange'](_0xd8f590,_0xf4d60c,_0x49ad39,_0x381b2f,{'groupId':_0x373a37()});break;}case'insert':{_0x2cee45['batch']['addOperation'](_0x350ac0),_0x366090['model']['applyOperation'](_0x350ac0);if(_0x892502[_0x2c0f04+0x1]&&'move'==_0x892502[_0x2c0f04+0x1]['type'])break;const _0xfac5ef=_0x350ac0['position'],_0x2d884a=_0x350ac0['howMany'],_0x4c4f6b=Lt(_0x366090['model']['createRange'](_0xfac5ef,_0xfac5ef['getShiftedBy'](_0x2d884a)),_0x366090['model']);this['markInsertion'](_0x4c4f6b);break;}case'split':{_0x2cee45['batch']['addOperation'](_0x350ac0),_0x366090['model']['applyOperation'](_0x350ac0);const _0x3fa05b=_0x350ac0['splitPosition'],_0x204e65=_0x350ac0['moveTargetPosition'];this['markInsertion'](_0x366090['model']['createRange'](_0x3fa05b,_0x204e65));break;}case'move':case'remove':_0x2cee45['batch']['addOperation'](_0x350ac0),_0x366090['model']['applyOperation'](_0x350ac0);}}for(const _0xfa26d5 of _0x5281e5)_0xfa26d5['detach'](),this['markDeletion'](_0xfa26d5);});}['_setSuggestionRange'](_0x280175,_0x17e54e){const _0x4ba8df=_0x280175['getFirstMarker']();this['_model']['change'](_0xf05473=>{_0xf05473['updateMarker'](_0x4ba8df,{'range':_0x17e54e});});}['_addThreadToSuggestion'](_0x54efd8){const _0x5e1916=_0x54efd8['id'],_0x42075d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e1916)||this['_commentsRepository']['addCommentThread']({'channelId':_0x42075d,'threadId':_0x5e1916,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1985f6=this['_commentsRepository']['getCommentThread'](_0x5e1916);_0x1985f6['unbind']('isRemovable'),_0x1985f6['isRemovable']=!0x1,_0x54efd8['commentThread']=_0x1985f6;}['_checkSuggestionCorrectness'](_0x38c8d4,_0x44f0ff,_0xffa3e3,_0x3866d5){if(_0x38c8d4['type']!=_0x44f0ff||_0x38c8d4['subType']!=_0xffa3e3||_0x38c8d4['creator']['id']!=_0x3866d5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ee078('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x313893,_0x57f47f){const _0x17dace=_0x313893['getFirstRange']();if(_0x57f47f['isEqual'](_0x17dace))_0x313893['removeMarkers']();else{if(_0x17dace['containsRange'](_0x57f47f)){const _0x506338=this['_model']['createPositionAt'](_0x57f47f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x313893,this['_model']['createRange'](_0x17dace['start'],_0x506338));const _0x455cd3=_0x373a37(),_0x3a504e=_0x313893['creator']['id'],_0x3a3b5a=_0x313893['type']+':'+_0x313893['subType'];this['_setSuggestionData']({'id':_0x455cd3,'type':_0x3a3b5a,'createdAt':new Date(),'authorId':_0x3a504e,'data':_0x313893['data'],'attributes':_0x313893['attributes']});const _0x2bbef3=this['_model']['createPositionAt'](_0x57f47f['end']['parent'],'after'),_0x2288be=this['_model']['createRange'](_0x2bbef3,_0x17dace['end']);this['_addSuggestionMarker'](_0x3a3b5a,_0x455cd3,_0x3a504e,_0x2288be);}else{if(_0x17dace['containsPosition'](_0x57f47f['start'])){const _0x5e08c3=this['_model']['createPositionAt'](_0x57f47f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x313893,this['_model']['createRange'](_0x17dace['start'],_0x5e08c3));}else{const _0x4369b7=this['_model']['createPositionAt'](_0x57f47f['end']['parent'],'after');this['_setSuggestionRange'](_0x313893,this['_model']['createRange'](_0x4369b7,_0x17dace['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe19067){for(const {suggestion:_0x22592c,meta:_0x31d41b}of this['_findSuggestions'](_0xe19067,'insertion')){if(!_0x31d41b['isOwn'])continue;const _0x1af512=_0x22592c['getRanges']();for(const _0x2e888b of _0x1af512)if(!_0xe19067['getDifference'](_0x2e888b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3dc320){return this['editor']['plugins']['get']('Users')['getUser'](_0x3dc320);}['_getExternalAuthor'](_0x15539e){const _0x26c4d5=this['editor']['plugins']['get']('Users'),_0x329b47=_0x4aae1b('external:'+_0x15539e),_0x4b67a1=_0x26c4d5['getUser'](_0x329b47);return _0x4b67a1||_0x26c4d5['addUser']({'id':_0x329b47,'name':_0x15539e});}['_createSuggestion'](_0x5944d7,_0x45d10e,_0x4d5866,_0x18d1dd,_0x4946e0,_0x53cf20){const _0x21b0c1=this['_getAuthorFromId'](_0x18d1dd);if(!_0x21b0c1)throw new _0x3ee078('track-changes-user-not-found',this,{'authorId':_0x18d1dd,'suggestionId':_0x4d5866});const _0x1503ce=this['_suggestionFactory']['buildSuggestion'](_0x5944d7,_0x45d10e,_0x4d5866,_0x21b0c1,_0x4946e0,_0x3d7312=>{this['_updateSuggestionData'](_0x4d5866,{'attributes':_0x3d7312});const _0x141079=this['getSuggestion'](_0x4d5866);this['_joinWithAdjacentSuggestions'](new Set([_0x141079])),this['_refreshSuggestionsChain'](new Set([_0x141079]));},_0x53cf20);return this['listenTo'](_0x1503ce,'accept',()=>{this['_updateSuggestionData'](_0x4d5866,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1503ce,'discard',()=>{this['_updateSuggestionData'](_0x4d5866,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4d5866,_0x1503ce),this['_suggestionState']['set'](_0x1503ce,'notReady'),_0x1503ce;}['_splitMarkerName'](_0x354983){return Gt(_0x354983);}['_breakSuggestionMarker'](_0x569adf,_0x266ff6,_0x15490d){const _0x2713d1=_0x569adf['getFirstRange'](),_0x18c6aa=_0x2713d1['start'],_0x4d9b35=_0x2713d1['end'];this['_setSuggestionRange'](_0x569adf,this['_model']['createRange'](_0x18c6aa,_0x266ff6));const _0xc2430a=_0x373a37(),_0x1b8218=_0x569adf['creator']['id'],_0x3089b5=_0x569adf['type']+(_0x569adf['subType']?':'+_0x569adf['subType']:'');this['_setSuggestionData']({'id':_0xc2430a,'type':_0x3089b5,'createdAt':new Date(),'authorId':_0x1b8218,'originalSuggestionId':_0x569adf['_originalSuggestionId']||_0x569adf['id'],'attributes':_0x569adf['attributes'],'data':_0x569adf['data']});const _0x43fdc7=this['_getAttributeKey'](_0x569adf);('formatBlock'==_0x569adf['type']||_0x43fdc7&&this['_isBlockAttribute'](_0x43fdc7))&&(_0x15490d=this['_model']['createPositionBefore'](_0x15490d['parent'])),this['_addSuggestionMarker'](_0x3089b5,_0xc2430a,_0x1b8218,this['_model']['createRange'](_0x15490d,_0x4d9b35));}['_findSuggestions'](_0x482221,_0x2593d2=null){const _0x2eddf8=[],_0x1083d6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x482221)||(_0x482221=[_0x482221]);for(const _0x14fa8a of this['getSuggestions']()){if(!_0x14fa8a['isInContent'])continue;if(_0x2593d2&&_0x14fa8a['type']!=_0x2593d2)continue;let _0xf0f0e0=!0x1;for(const _0x4abbd0 of _0x14fa8a['getRanges']()){for(const _0x48b6cd of _0x482221){const _0x100609=_0x48b6cd['start']['isEqual'](_0x4abbd0['end'])||_0x48b6cd['end']['isEqual'](_0x4abbd0['start']);if(_0x100609||_0x48b6cd['getIntersection'](_0x4abbd0)){const _0x7aef1e=_0x48b6cd['containsRange'](_0x4abbd0)&&zt(this['_model']['schema'],_0x4abbd0['start'],_0x48b6cd),_0x4073be=_0x4abbd0['containsRange'](_0x48b6cd)&&zt(this['_model']['schema'],_0x48b6cd['start'],_0x4abbd0);_0x2eddf8['push']({'suggestion':_0x14fa8a,'meta':{'isOwn':_0x1083d6==_0x14fa8a['author'],'isNextTo':_0x100609,'isInsideObject':_0x7aef1e,'containsRangeInObject':_0x4073be}}),_0xf0f0e0=!0x0;break;}}if(_0xf0f0e0)break;}}return _0x2eddf8;}['_addSuggestionMarker'](_0x55bb79,_0x4fbd7f,_0x507bad,_0x16f0e0,_0x1f8a1a){this['_model']['change'](_0x475637=>{let _0x418e95='suggestion:'+_0x55bb79+':'+_0x4fbd7f+':'+_0x507bad;_0x1f8a1a&&(_0x418e95=_0x418e95+':'+_0x1f8a1a),_0x475637['addMarker'](_0x418e95,{'range':_0x16f0e0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x11fc60){const _0x25d901=_0x11fc60['previous'],_0x4589c5=_0x11fc60['next'];_0x11fc60['previous']=null,_0x11fc60['next']=null,null!=_0x25d901&&_0x25d901['next']==_0x11fc60&&(_0x25d901['next']=_0x4589c5),null!=_0x4589c5&&_0x4589c5['previous']==_0x11fc60&&(_0x4589c5['previous']=_0x25d901),'ready'==this['_suggestionState']['get'](_0x11fc60)&&(this['_suggestionState']['set'](_0x11fc60,'removed'),this['fire']('suggestionUnloaded',_0x11fc60,_0x25d901,_0x4589c5));}['_setSuggestionData'](_0x2eb79c){const _0x45c854=_0x2eb79c['id'],_0x2270aa=this['addSuggestionData'](_0x2eb79c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2cf655=this['editor']['plugins']['get']('PendingActions'),_0x42df5e=_0x2270aa['hasComments'],_0x4d98ad=_0x2270aa['subType']?_0x2270aa['type']+':'+_0x2270aa['subType']:_0x2270aa['type'],_0x2a464e=this['editor']['locale'],_0x300c3d=_0x2cf655['add'](o(_0x2a464e,'PENDING_ACTION_SUGGESTION')),_0x28c183={'id':_0x45c854,'type':_0x4d98ad,'hasComments':_0x42df5e,'data':_0x2eb79c['data']||null,'originalSuggestionId':_0x2eb79c['originalSuggestionId']||null,'attributes':_0x2270aa['attributes']};this['_adapter']['addSuggestion'](_0x28c183)['then'](_0x242c76=>{_0x2270aa['_saved']=!0x0,_0x2cf655['remove'](_0x300c3d),_0x242c76&&_0x242c76['createdAt']&&(this['_suggestions']['get'](_0x45c854)['createdAt']=_0x242c76['createdAt']);})['catch'](_0x241396=>{throw _0x167603('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2270aa['discard']();}),_0x2270aa['stopListening'](),this['_suggestions']['delete'](_0x2270aa['id']),this['_suggestionState']['delete'](_0x2270aa),_0x241396;});}return _0x2270aa;}['_isBlockAttribute'](_0x1f2afd){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x1f2afd);}['_isInlineAttribute'](_0x45dfec){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x45dfec);}['_updateSuggestionData'](_0x52e1c6,_0x149d7e){const _0x491d9a=this['editor']['plugins']['get']('PendingActions'),_0xa76721=this['getSuggestion'](_0x52e1c6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa76721['_saved']){const _0x39eba2=_0x491d9a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x52e1c6,_0x149d7e)['then'](()=>{_0x491d9a['remove'](_0x39eba2);});}else _0xa76721['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x52e1c6,_0x149d7e);});}}['_getSuggestionData'](_0x25fe1b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ee078('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25fe1b);}['_handleNewSuggestionMarker'](_0x4a0830){const {id:_0x3227e2,type:_0x51fb10,subType:_0x150eee,authorId:_0x48eb50}=this['_splitMarkerName'](_0x4a0830),_0x250fd0=this['_suggestions']['get'](_0x3227e2)||this['_createSuggestion'](_0x51fb10,_0x150eee,_0x3227e2,_0x48eb50,{});switch(this['_checkSuggestionCorrectness'](_0x250fd0,_0x51fb10,_0x150eee,_0x48eb50),this['_suggestionState']['get'](_0x250fd0)){case'notReady':this['_getSuggestionData'](_0x3227e2)['then'](_0x527969=>{let _0x24286d=Promise['resolve']();_0x527969['hasComments']&&(_0x24286d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3227e2})),_0x24286d['then'](()=>{this['addSuggestionData'](_0x527969)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x250fd0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3227e2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x250fd0,'ready'),this['fire']('suggestionLoaded',_0x250fd0);break;case'ready':this['fire']('suggestionChanged',_0x250fd0);}return _0x250fd0['addMarkerName'](_0x4a0830),_0x250fd0;}['_refreshSuggestionsChain'](_0x4718e2){const _0x5ce269=Array['from'](_0x4718e2),_0xfea276=_0x5ce269['filter'](_0x4165a8=>'attribute'==_0x4165a8['type']);this['_refreshAttributeSuggestionsChain'](_0xfea276);const _0x21ef3e=_0x5ce269['filter'](_0x5168a1=>!_0x5168a1['isMultiRange']&&'attribute'!=_0x5168a1['type']),_0x1c15bc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x229965=>!_0x229965['isMultiRange']&&'attribute'!=_0x229965['type']),_0x59ae3f=_0x1c15bc['filter'](_0x3f4a7a=>!_0x4718e2['has'](_0x3f4a7a)),_0x6e8940=new Map(_0x1c15bc['map'](_0x442323=>[_0x442323,this['_suggestionFactory']['getSuggestionCallback'](_0x442323['type'],_0x442323['subType'],'chain')])),_0x17cd11=new Map(_0x1c15bc['map'](_0x16b7d8=>[_0x16b7d8,_0x16b7d8['getFirstRange']()])),_0x50b0d0=new Set(),_0x492131=new Set();for(let _0x28ba78=0x0;_0x28ba78<_0x21ef3e['length'];_0x28ba78++)_0x4e3c5a(_0x21ef3e[_0x28ba78],_0x21ef3e,_0x28ba78+0x1);for(let _0x555cfc=0x0;_0x555cfc<_0x21ef3e['length'];_0x555cfc++)_0x4e3c5a(_0x21ef3e[_0x555cfc],_0x59ae3f,0x0);const _0x322837=new Set();for(let _0x3e6954=0x0;_0x3e6954<_0x21ef3e['length'];_0x3e6954++){const _0x3cfd85=_0x21ef3e[_0x3e6954];!_0x492131['has'](_0x3cfd85)&&_0x3cfd85['previous']&&(_0x322837['add'](_0x3cfd85['previous']),_0x3cfd85['previous']['next']===_0x3cfd85&&(_0x3cfd85['previous']['next']=null),_0x3cfd85['previous']=null),!_0x50b0d0['has'](_0x3cfd85)&&_0x3cfd85['next']&&(_0x322837['add'](_0x3cfd85['next']),_0x3cfd85['next']['previous']===_0x3cfd85&&(_0x3cfd85['next']['previous']=null),_0x3cfd85['next']=null);}function _0x4e3c5a(_0x17ca8c,_0x501a13,_0x4d0ab4){for(let _0x5d6e8a=_0x4d0ab4;_0x5d6e8a<_0x501a13['length'];_0x5d6e8a++){const _0x193256=_0x427cf7(_0x17ca8c,_0x501a13[_0x5d6e8a]);_0x193256&&(_0x193256[0x0]['next']=_0x193256[0x1],_0x193256[0x1]['previous']=_0x193256[0x0],_0x50b0d0['add'](_0x193256[0x0]),_0x492131['add'](_0x193256[0x1]));}}function _0x427cf7(_0x78f1b1,_0x32fad3){if(_0x78f1b1['author']['id']!==_0x32fad3['author']['id'])return null;const _0x14e6ee=_0x6e8940['get'](_0x78f1b1)(_0x78f1b1,_0x32fad3,_0x17cd11['get'](_0x78f1b1),_0x17cd11['get'](_0x32fad3));if(!_0x14e6ee)return null;return _0x6e8940['get'](_0x32fad3)(_0x78f1b1,_0x32fad3,_0x17cd11['get'](_0x78f1b1),_0x17cd11['get'](_0x32fad3))?_0x14e6ee[0x1]['commentThread']&&_0x14e6ee[0x1]['commentThread']['length']?null:_0x14e6ee:null;}_0x322837['size']&&this['_refreshSuggestionsChain'](_0x322837);}['_refreshAttributeSuggestionsChain'](_0x342bfd){if(0x0==_0x342bfd['length'])return;const _0x43a24a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1385e6=>'attribute'==_0x1385e6['type']&&_0x1385e6['_isDataLoaded']),_0x4cc195=[],_0x34a991=new Map();for(const _0x7ae22b of _0x43a24a){const _0x503dd1=_0x4aae1b(_0x7ae22b['attributes']);_0x34a991['has'](_0x503dd1)||(_0x34a991['set'](_0x503dd1,_0x4cc195['length']),_0x4cc195['push']([]));const _0x2ca58c=_0x34a991['get'](_0x503dd1);_0x4cc195[_0x2ca58c]['push'](_0x7ae22b);}!(function(){_0x4cc195['sort']((_0x1e2d06,_0x525d55)=>{const _0x588288=_0x1e2d06[0x0]['createdAt'],_0x214d00=_0x525d55[0x0]['createdAt'];return _0x588288==_0x214d00?_0x1e2d06[0x0]['attributes']['groupId']<_0x525d55[0x0]['attributes']['groupId']?-0x1:0x1:_0x588288<_0x214d00?-0x1:0x1;});for(const _0x43e2e7 of _0x4cc195)_0x43e2e7['sort']((_0x15ca13,_0x3bb24a)=>_0x15ca13['id']<_0x3bb24a['id']?-0x1:0x1);}());for(let _0x53c522=0x0;_0x53c522<_0x4cc195['length'];_0x53c522++){if(0x0==_0x4cc195[_0x53c522]['length'])continue;const _0x52c562=[];for(let _0x2d57cf=_0x53c522+0x1;_0x2d57cf<_0x4cc195['length'];_0x2d57cf++)0x0!=_0x4cc195[_0x2d57cf]['length']&&_0x53d6eb(_0x4cc195[_0x53c522],_0x4cc195[_0x2d57cf])&&_0x52c562['push'](_0x2d57cf);for(const _0x36fd03 of _0x52c562)_0x4cc195[_0x53c522]=_0x4cc195[_0x53c522]['concat'](_0x4cc195[_0x36fd03]),_0x4cc195[_0x36fd03]=[];}for(const _0x3dca86 of _0x4cc195)for(let _0x1fa295=0x0;_0x1fa295<_0x3dca86['length'];_0x1fa295++){const _0x5cdb9f=_0x3dca86[_0x1fa295+0x1]||null;_0x3dca86[_0x1fa295]['next']!==_0x5cdb9f&&(_0x3dca86[_0x1fa295]['next']=_0x5cdb9f);}for(const _0x3550c1 of _0x4cc195)for(let _0x627b11=0x0;_0x627b11<_0x3550c1['length'];_0x627b11++){const _0x2e8394=_0x3550c1[_0x627b11-0x1]||null;_0x3550c1[_0x627b11]['previous']!==_0x2e8394&&(_0x3550c1[_0x627b11]['previous']=_0x2e8394);}function _0x53d6eb(_0x2cc49a,_0x18a717){if(_0x2cc49a[0x0]['attributes']['groupId']!==_0x18a717[0x0]['attributes']['groupId']&&_0x2cc49a[0x0]['author']!==_0x18a717[0x0]['author'])return!0x1;if(!function(_0xef999,_0x3792f3){if(!_0xef999['hasComments']&&!_0x3792f3['hasComments'])return!0x0;if(_0xef999['hasComments']&&_0x3792f3['hasComments'])return!0x1;if(_0xef999['hasComments']&&_0x3792f3['createdAt']<_0xef999['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3792f3['hasComments']&&_0xef999['createdAt']<_0x3792f3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2cc49a[0x0],_0x18a717[0x0]))return!0x1;const _0x4125f3=Pt(_0x2cc49a[0x0]['attributes'],['groupId','trackingSessionId']),_0x4c5c87=Pt(_0x18a717[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x199067(_0x4125f3,_0x4c5c87))return!0x1;if(_0x2cc49a[0x0]['attributes']['groupId']==_0x18a717[0x0]['attributes']['groupId'])return!0x0;if(_0x2cc49a[0x0]['attributes']['trackingSessionId']!==_0x18a717[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2cc49a['every'](_0x5c6b9e=>_0x18a717['some'](_0x27000f=>_0x5c6b9e['getFirstRange']()['isEqual'](_0x27000f['getFirstRange']())))&&_0x18a717['every'](_0x3ceb31=>_0x2cc49a['some'](_0x543d3d=>_0x3ceb31['getFirstRange']()['isEqual'](_0x543d3d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3fae6d){const _0xfaf6cf=Array['from'](_0x3fae6d),_0x5a93e4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3868c1=_0x5a93e4['filter'](_0x370d71=>!_0x3fae6d['has'](_0x370d71)),_0x424a85=new Map(_0xfaf6cf['map'](_0x336b56=>[_0x336b56,this['_suggestionFactory']['getSuggestionCallback'](_0x336b56['type'],_0x336b56['subType'],'join')])),_0x535dc9=new Map(_0x5a93e4['map'](_0x16a69b=>[_0x16a69b,_0x16a69b['getRanges']()]));for(let _0x528a10=0x0;_0x528a10<_0xfaf6cf['length'];_0x528a10++){if(_0x407966(this,_0xfaf6cf[_0x528a10],_0xfaf6cf,_0x528a10+0x1))return!0x0;}for(let _0x53b105=0x0;_0x53b105<_0xfaf6cf['length'];_0x53b105++){if(_0x407966(this,_0xfaf6cf[_0x53b105],_0x3868c1,0x0))return!0x0;}return!0x1;function _0x407966(_0x15a8f8,_0xd40e29,_0xbe1260,_0x36d774){for(let _0x43c9f0=_0x36d774;_0x43c9f0<_0xbe1260['length'];_0x43c9f0++){const _0x5e7092=_0xbe1260[_0x43c9f0];if(_0x5e7092['type']!==_0xd40e29['type']||_0x5e7092['author']['id']!==_0xd40e29['author']['id']||_0x5e7092['subType']!==_0xd40e29['subType'])continue;if(!en(_0xd40e29,_0x5e7092))continue;if('attribute'==_0xd40e29['type']&&_0xd40e29['data']['oldValue']!=_0x5e7092['data']['oldValue'])continue;if('attribute'==_0xd40e29['type']&&_0x15a8f8['_isBlockAttribute'](_0xd40e29['data']['key']))continue;if('formatBlock'==_0xd40e29['type']){const _0x3adab3=_0x15a8f8['editor']['model'],_0xaae9f6=_0xd40e29['getContainedElement']();if(_0xaae9f6&&(_0x3adab3['schema']['isObject'](_0xaae9f6)||_0x3adab3['schema']['isLimit'](_0xaae9f6)))continue;}const _0x56ac5c=_0x424a85['get'](_0xd40e29),_0x259cc=_0x535dc9['get'](_0xd40e29),_0x458bf7=_0x535dc9['get'](_0x5e7092),_0x33d797=_0xd40e29['commentThread']&&_0xd40e29['commentThread']['length'],_0xda11b9=_0x5e7092['commentThread']&&_0x5e7092['commentThread']['length'];if(!_0x33d797&&_0x56ac5c(_0x458bf7,_0x259cc))return _0x15a8f8['_joinSuggestions'](_0x5e7092,_0xd40e29),_0x535dc9['delete'](_0xd40e29),!0x0;if(!_0xda11b9&&_0x56ac5c(_0x259cc,_0x458bf7))return _0x15a8f8['_joinSuggestions'](_0xd40e29,_0x5e7092),_0x535dc9['delete'](_0x5e7092),!0x0;}return!0x1;}}['_joinSuggestions'](_0x260233,_0x3edb8c){if(_0x260233['isMultiRange']){for(const _0x3c34b1 of _0x3edb8c['getRanges']())_0x260233['addRange'](_0x3c34b1);}else{const _0x45bd32=_0x3edb8c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x260233,this['_model']['createRange'](_0x260233['getFirstRange']()['start'],_0x45bd32));}_0x3edb8c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1e1559,_0x4897ac,_0x1af8c7){const _0x3ac719=_0x1e1559['startsWith']('format')||_0x1e1559['startsWith']('attribute')?'FORMATTING':_0x1e1559['toUpperCase']();return o(this['editor']['locale'],_0x4897ac+'_'+_0x3ac719+'_SUGGESTION_ANNOUNCEMENT',_0x1af8c7);}['_initAriaMarkerChangeAnnouncements'](){const _0x46f366=this['editor'];if(!_0x46f366['ui'])return;const {ariaLiveAnnouncer:_0x4649b2}=_0x46f366['ui'];_0x49c02b(this['_model'],({left:_0x16b5e6,entered:_0xc6380})=>{for(const _0x40ce5c of _0x16b5e6){const {group:_0x145061,type:_0x2b6555}=this['_splitMarkerName'](_0x40ce5c['name']);if('suggestion'===_0x145061){_0x4649b2['announce'](this['_getMarkerAnnouncementText'](_0x2b6555,'LEAVE'));break;}}for(const _0x516e1a of _0xc6380){const {group:_0x34ae56,type:_0x3447c9}=this['_splitMarkerName'](_0x516e1a['name']);if('suggestion'===_0x34ae56){_0x4649b2['announce'](this['_getMarkerAnnouncementText'](_0x3447c9,'ENTER',_0x4c9032(_0x5209f6)));break;}}});}['_processAttributeChanges'](_0x5417b4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x529a8e=this['editor'],_0x2c674d=_0x529a8e['model']['document']['differ']['getChanges']();if(0x0==_0x2c674d['length'])return!0x1;const _0x1c7084=[],_0x1e97bb=_0x2c674d['filter'](_0x15efa4=>'attribute'==_0x15efa4['type']),_0xfc9d45=_0x2c674d['filter'](_0x177569=>'insert'==_0x177569['type']&&'$text'!=_0x177569['name']),_0x42eae1=_0x2c674d['filter'](_0x105b7=>'remove'==_0x105b7['type']&&'$text'!=_0x105b7['name']);for(const _0x21468f of _0x1e97bb)_0x1c7084['push']({'key':_0x21468f['attributeKey'],'newValue':_0x21468f['attributeNewValue'],'oldValue':_0x21468f['attributeOldValue'],'range':Zt(_0x21468f['range'],_0x529a8e['model'])});for(const _0x258d47 of _0xfc9d45){const _0x41fe62=_0x42eae1['find'](_0x52caf5=>_0x52caf5['position']['isEqual'](_0x258d47['position']));_0x41fe62&&_0x1c7084['push']({'key':m,'newValue':_0x258d47['name'],'oldValue':_0x41fe62['name'],'range':_0x529a8e['model']['createRangeOn'](_0x258d47['position']['nodeAfter'])});}return 0x0!=_0x1c7084['length']&&this['_reduceExistingSuggestions'](_0x5417b4,_0x1c7084);}['_processAttributeSuggestions'](_0x53ebf3){let _0x389d92=!0x1;const _0x56910d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x433570=>_0x433570['data']['newRange']&&_0x433570['name']['startsWith']('suggestion:attribute:'));for(const _0x504182 of _0x56910d){const {subType:_0x307258,id:_0x42f920}=this['_splitMarkerName'](_0x504182['name']),_0x540074=_0x307258['split']('|')[0x0];for(const _0x54d259 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x54d259['id']!=_0x42f920&&'attribute'==_0x54d259['type']&&_0x54d259['data']&&_0x54d259['data']['key']==_0x540074&&_0x54d259['getFirstRange']()['isIntersecting'](_0x504182['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x54d259,_0x504182['data']['newRange'],_0x53ebf3),_0x389d92=!0x0);}return _0x389d92;}['recordAttributeChanges'](_0x111c25){this['_recordAttributeSuggestions']=!0x0,_0x111c25();}['_isRegisteredAttribute'](_0x5a284a){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x5a284a);}['_reduceExistingSuggestions'](_0x1104f3,_0x44d1cd){if(0x0==_0x44d1cd['length'])return!0x1;let _0x1a0d09=!0x1;for(const _0x51327a of _0x44d1cd){const _0xc0c557=this['_findSuggestions'](_0x51327a['range'],'attribute')['filter'](_0x21ad04=>!_0x21ad04['meta']['isNextTo'])['map'](_0x29b0a3=>_0x29b0a3['suggestion']),_0x5abdfc=_0x4aae1b({'newValue':_0x51327a['newValue']});_0xc0c557['filter'](_0x1d1267=>{const [_0x1d843d,_0x5efc4b]=_0x1d1267['subType']['split']('|');return _0x1d843d==_0x51327a['key']&&_0x5efc4b!=_0x5abdfc;})['forEach'](_0x49df47=>{this['_reduceSuggestionAttributeRange'](_0x49df47,_0x51327a['range'],_0x1104f3),_0x1a0d09=!0x0;});}return _0x1a0d09;}['_reduceSuggestionAttributeRange'](_0x1408d5,_0x3d637a,_0x2ed851){const _0x2cee78=_0x1408d5['getFirstRange']()['getDifference'](_0x3d637a);0x0!==_0x2cee78['length']?0x1!==_0x2cee78['length']?this['_breakSuggestionMarker'](_0x1408d5,_0x3d637a['start'],_0x3d637a['end']):this['_setSuggestionRange'](_0x1408d5,_0x2cee78[0x0]):_0x2ed851['removeMarker'](_0x1408d5['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1db16a){this['_editor']=_0x1db16a,this['_model']=_0x1db16a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x254293,_0x261699,_0x2e4a5b,_0x15c3b2,_0x2a4aed,_0x495e19,_0x372c7a){return new x(this['_model'],{'type':_0x254293,'subType':_0x261699,'id':_0x2e4a5b,'originalSuggestionId':_0x372c7a,'author':_0x15c3b2,'creator':_0x15c3b2,'attributes':_0x2a4aed,'onAttributesChange':_0x495e19,'onAccept':(..._0x4fced2)=>this['getSuggestionCallback'](_0x254293,_0x261699,'accept')(..._0x4fced2),'onDiscard':(..._0x1cb96d)=>this['getSuggestionCallback'](_0x254293,_0x261699,'discard')(..._0x1cb96d)});}['registerCustomCallback'](_0x2724c9,_0x1eb422,_0x31ae7d,_0x3e6618){const _0x317e00=_0x2724c9+':'+_0x1eb422+':'+_0x31ae7d;this['_customCallbacks']['set'](_0x317e00,_0x3e6618);}['getSuggestionCallback'](_0x16c4f1,_0x5ef7bb,_0x3a9f9c){const _0x10287f=_0x16c4f1+':'+_0x5ef7bb+':'+_0x3a9f9c;return this['_customCallbacks']['get'](_0x10287f)||this['_defaultCallbacks']['get'](_0x16c4f1+':'+_0x3a9f9c);}['_registerDefaultCallbacks'](){const _0x4b9620=()=>!0x1,_0xda4ece=_0x4664db=>{_0x4664db['sort']((_0x25d1ad,_0x42388e)=>_0x25d1ad['start']['isBefore'](_0x42388e['start'])?0x1:-0x1),this['_model']['change'](_0x16709c=>{for(const _0x4ebf98 of _0x4664db){let _0x5f168d;_0x5f168d=_0x4ebf98['end']['isAtEnd']&&_0x4ebf98['end']['parent']==_0x4ebf98['start']['nodeAfter']?_0x16709c['createSelection'](_0x4ebf98['start']['nodeAfter'],'on'):_0x16709c['createSelection'](_0x4ebf98),this['_model']['deleteContent'](_0x5f168d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x36623f=(_0x7d90db,_0x2af797)=>{_0x2af797&&this['_model']['change'](_0x573233=>{const {commandName:_0x55f632,commandParams:_0x53d5a9=[]}=_0x2af797,_0x4be460=_0x7d90db['map'](_0x42298d=>(Kt(_0x42298d)&&(_0x42298d=this['_model']['createRange'](_0x42298d['end'])),_0x42298d))['filter'](_0xf1357e=>'$graveyard'!==_0xf1357e['root']['rootName']);if(_0x4be460['length']<0x1)return;const _0x402fd8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1a7722=>_0x3eedc6['fromRange'](_0x1a7722));_0x573233['setSelection'](_0x4be460);for(const _0x13374c of this['_editor']['commands']['commands']())_0x13374c['refresh']();_0x53d5a9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x55f632,..._0x53d5a9);const _0x11d6d2=_0x402fd8['filter'](_0x510b71=>'$graveyard'!=_0x510b71['root']['rootName']);_0x11d6d2['length']>0x0&&_0x573233['setSelection'](_0x11d6d2);for(const _0xd63ec8 of _0x402fd8)_0xd63ec8['detach']();});},_0x23844f=(_0x5b578e,_0xb9c43b)=>0x1==_0x5b578e['length']&&0x1==_0xb9c43b['length']&&_0x5b578e[0x0]['end']['isEqual'](_0xb9c43b[0x0]['start']),_0x3a34f2=(_0x240687,_0x87db6c,_0x224972,_0x22632f)=>nn(_0x240687,_0x87db6c,_0x224972,_0x22632f)?[_0x240687,_0x87db6c]:nn(_0x87db6c,_0x240687,_0x22632f,_0x224972)?[_0x87db6c,_0x240687]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b9620),this['_defaultCallbacks']['set']('insertion:discard',_0xda4ece),this['_defaultCallbacks']['set']('insertion:join',_0x23844f),this['_defaultCallbacks']['set']('insertion:chain',_0x3a34f2),this['_defaultCallbacks']['set']('deletion:accept',_0xda4ece),this['_defaultCallbacks']['set']('deletion:discard',_0x4b9620),this['_defaultCallbacks']['set']('deletion:join',_0x23844f),this['_defaultCallbacks']['set']('deletion:chain',_0x3a34f2),this['_defaultCallbacks']['set']('formatInline:accept',_0x36623f),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b9620),this['_defaultCallbacks']['set']('formatInline:join',_0x23844f),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b9620),this['_defaultCallbacks']['set']('formatBlock:accept',_0x36623f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b9620),this['_defaultCallbacks']['set']('formatBlock:join',_0x23844f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b9620),this['_defaultCallbacks']['set']('attribute:accept',_0x4b9620),this['_defaultCallbacks']['set']('attribute:discard',(_0x4f6947,_0x469354)=>{if(!_0x469354)return;const _0x540121=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x9a98ef=>{if(_0x469354['key']==m)for(const _0x27d739 of _0x4f6947){const _0x14a242=_0x27d739['start']['nodeAfter'],_0x43e5f3=_0x469354['oldValue'];_0x9a98ef['rename'](_0x14a242,_0x43e5f3);}else{if(_0x540121['_isBlockAttribute'](_0x469354['key'])){for(const _0x599638 of _0x4f6947)void 0x0!==_0x469354['oldValue']?_0x9a98ef['setAttribute'](_0x469354['key'],_0x469354['oldValue'],_0x599638['start']['nodeAfter']):_0x9a98ef['removeAttribute'](_0x469354['key'],_0x599638['start']['nodeAfter']);}else{for(const _0x4ae4ef of _0x4f6947)_0x469354['oldValue']?_0x9a98ef['setAttribute'](_0x469354['key'],_0x469354['oldValue'],_0x4ae4ef):_0x9a98ef['removeAttribute'](_0x469354['key'],_0x4ae4ef);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x23844f);}}function zt(_0x154237,_0x39a9f5,_0x18f324){for(const _0x5b74f1 of _0x39a9f5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b74f1['root']==_0x5b74f1)return!0x1;if(!_0x18f324['containsItem'](_0x5b74f1))return!0x1;if(_0x154237['isObject'](_0x5b74f1)||_0x154237['isLimit'](_0x5b74f1))return!0x0;}return!0x1;}function Kt(_0x582c54){return _0x582c54['end']['parent']==_0x582c54['start']['nodeAfter']&&_0x582c54['end']['isAtStart'];}function Wt(_0x3fb12e,_0xa0dca,_0x4f9bb5,_0x4ba20a){const _0x53d70d=_0x159b84=>!_0x159b84['item']['is']('$textProxy')&&!_0x4ba20a['isObject'](_0x159b84['item']),_0x5e77c6=_0x3fb12e['start']['getLastMatchingPosition'](_0x53d70d),_0x3bdea0=_0x3fb12e['end']['getLastMatchingPosition'](_0x53d70d,{'direction':'backward'});return(!_0x3fb12e['start']['isEqual'](_0x5e77c6)||!_0x3fb12e['end']['isEqual'](_0x3bdea0))&&(_0x5e77c6['isBefore'](_0x3bdea0)?_0x4f9bb5['updateMarker'](_0xa0dca,{'range':_0x4f9bb5['createRange'](_0x5e77c6,_0x3bdea0)}):_0x4f9bb5['removeMarker'](_0xa0dca),!0x0);}function Ht(_0x53466b){return _0x4aae1b(_0x53466b);}function Qt(_0x2a3b1e){const _0x2bb165=_0x2a3b1e['start']['nodeAfter'];return _0x2bb165&&_0x2bb165['is']('element');}function Xt(_0x22f848){return Kt(_0x22f848)||function(_0x2f758c){return _0x2f758c['start']['parent']==_0x2f758c['end']['nodeBefore']&&_0x2f758c['start']['isAtEnd'];}(_0x22f848);}function Yt(_0x4ed893,_0x5bdfa8){try{const _0xe59235=_0x4ed893['getRange']();for(const _0x560ab3 of _0x5bdfa8)if(_0x4ed893!==_0x560ab3&&_0xe59235&&_0xe59235['isIntersecting'](_0x560ab3['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x54d66c,_0x1ea240){return null==_0x54d66c['end']['nodeBefore']&&_0x54d66c['end']['parent']==_0x54d66c['start']['nodeAfter']?tn(_0x54d66c['start']['nodeAfter'],_0x1ea240):_0x54d66c;}function tn(_0x3c4430,_0x3d13d2){const _0x50481b=_0x3d13d2['schema']['isObject'](_0x3c4430)||_0x3d13d2['schema']['isSelectable'](_0x3c4430);return _0x3d13d2['createRange'](_0x3d13d2['createPositionAt'](_0x3c4430,'before'),_0x50481b?_0x3d13d2['createPositionAfter'](_0x3c4430):_0x3d13d2['createPositionAt'](_0x3c4430,'end'));}function nn(_0x30c51b,_0x35fb6f,_0x1be725,_0x568f2c){return!!en(_0x30c51b,_0x35fb6f)&&_0x1be725['end']['isEqual'](_0x568f2c['start']);}function en(_0x489953,_0x359e6e){if(!_0x489953['_isDataLoaded']||!_0x359e6e['_isDataLoaded'])return!0x1;const _0x386873=new Set(Object['keys'](_0x489953['attributes'])),_0x1a70e9=new Set(Object['keys'](_0x359e6e['attributes']));if(_0x386873['delete']('groupId'),_0x1a70e9['delete']('groupId'),0x0==_0x386873['size']&&0x0==_0x1a70e9['size'])return!0x0;if(_0x386873['size']!=_0x1a70e9['size'])return!0x1;const _0x2a6aba={..._0x489953['attributes']},_0x3aa86f={..._0x359e6e['attributes']};return delete _0x2a6aba['groupId'],delete _0x3aa86f['groupId'],JSON['stringify'](_0x2a6aba)==JSON['stringify'](_0x3aa86f);}function sn(_0x264dfc,_0x486555){const _0x598e69=on(_0x264dfc['attributes']),_0x4c7504=on(_0x486555);if(!_0x264dfc['_isDataLoaded'])return!0x1;for(const _0x315326 of Object['keys'](_0x4c7504))if(!_0x199067(_0x598e69[_0x315326],_0x4c7504[_0x315326]))return!0x1;return!0x0;}function on(_0x355959){const _0x54a105=Object['assign']({},_0x355959);return delete _0x54a105['skipNestingCheck'],delete _0x54a105['tablePasteChainId'],_0x54a105;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4ecca1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1051d4,_0x2e81fa,_0x568cc8,_0x3976a8){super(),this['model']=_0x2e81fa,this['view']=_0x568cc8,this['commentThreadController']=_0x3976a8,this['_editor']=_0x1051d4,this['_acceptCommand']=_0x1051d4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1051d4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x347b8a,_0x341dcd)=>_0x347b8a||_0x341dcd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2368e8=>_0x2368e8&&this['_editor']['model']['canEditAt'](_0x2e81fa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x52b871=>_0x52b871&&this['_editor']['model']['canEditAt'](_0x2e81fa['getRanges']())),this['_pendingAction']=null,_0x568cc8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x568cc8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x568cc8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x568cc8,'change:isDirty',()=>{_0x568cc8['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 _0x56b758=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x56b758);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2d508c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xd8ba91,_0x5dd7da,_0x401460,_0x2cfdbb){super(_0xd8ba91),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x62ff78(_0xd8ba91,o(_0xd8ba91,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5dd7da['authoredAt']),this['bind']('authoredAt')['to'](_0x5dd7da),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',_0x5dd7da,'authoredAt',this,'descriptionParts',(_0x306134,_0x26f581,_0xb82bf1)=>{const _0x1daca9=_0xb82bf1['map'](_0x7514cb=>ls(_0x7514cb['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x306134-0x1,_0x5dd7da['author']['name'],_0x26f581?_0x2cfdbb['formatDateTime'](_0x26f581):'',new DOMParser()['parseFromString'](_0x1daca9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x42dbc0(),this['focusTracker']=new _0x326abe(),this['keystrokes']=new _0x5cd938(),this['focusCycler']=new _0x3d5f58({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1c4715=>_0x1c4715['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5dd7da,this['_localUser']=_0x401460,this['_config']=_0x2cfdbb,_0x2cfdbb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3ce7d4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2afd38}=this['_config'];this['commentsListView']=new _0x2afd38(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',_0x9a82ac=>_0x9a82ac+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x575a49,_0x4e2eae)=>_0x575a49||!!_0x4e2eae);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x441fb7}=this['_config'],_0x55fd6e=new _0x441fb7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2e3f8d=_0x55fd6e['commentInputView'];return _0x55fd6e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2e3f8d,'value',(_0x5d894d,_0x59a6c4,_0x379d44)=>!!_0x379d44||_0x5d894d&&!_0x59a6c4),_0x2e3f8d['on']('submit',(_0x237882,_0x2c6c11)=>{this['fire']('addComment',_0x2c6c11),_0x2e3f8d['editor']['setData']('');}),_0x2e3f8d['on']('cancel',()=>this['focus']()),_0x2e3f8d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55fd6e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1693eb,_0x3103a6,_0x20c00d,_0x3f0c4a){super(_0x1693eb,_0x3103a6,_0x20c00d,_0x3f0c4a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x883b52=>_0x883b52&&_0x883b52[0x0]?_0x883b52[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3fec8e,_0x2b5aef)=>{let _0x30677b='';for(const _0x2dd48a of _0x3fec8e)_0x30677b+='<p>'+ls(_0x2dd48a['content'],_0x2dd48a['color'])+'</p>';return _0x2b5aef?_0x30677b:_0x5d675c(_0x30677b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3f0c4a['SuggestionView'](_0x1693eb,_0x3103a6,{'formatDateTime':_0x3f0c4a['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 _0x18fa5c=this['bindTemplate'],_0x34d8a3=[this['suggestionView']];return this['commentsListView']&&_0x34d8a3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x34d8a3['push'](this['commentThreadInputView']),_0x34d8a3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x18fa5c['if']('isActive','ck-suggestion-wrapper--active'),_0x18fa5c['to']('type',_0x4fa23b=>'ck-suggestion-'+_0x4fa23b),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':_0x18fa5c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x34d8a3};}['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 _0x2d508c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x50ee0f,_0xf668f5,_0xa3d7c){super(_0x50ee0f),this['_model']=_0xf668f5,this['_config']=_0xa3d7c,this['set']('description',''),this['bind']('authoredAt')['to'](_0xf668f5),this['acceptButton']=this['_createButton'](o(_0x50ee0f,'Accept\x20suggestion'),_0x326d0b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x50ee0f,'Discard\x20suggestion'),_0x2f511f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x35cbf5(_0x50ee0f,_0xf668f5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x42dbc0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x326abe(),this['keystrokes']=new _0x5cd938(),this['focusCycler']=new _0x3d5f58({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3af276=>_0x3af276['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x24f68e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x24f68e['innerHTML']=this['description'],this['on']('change:description',(_0x45dbb6,_0x22100d,_0x1862b3)=>{_0x24f68e['innerHTML']=_0x1862b3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x338c14=this['bindTemplate'],_0x34dc22=[{'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':_0x338c14['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x338c14['to']('authoredAt',_0x265a4e=>this['_config']['formatDateTime'](_0x265a4e))}]}]},{'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']&&_0x34dc22['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':_0x34dc22}]};}['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'](_0x561da4,_0x201494,_0x41ad9d,_0x1f199d,_0xc594e0){const _0x149032=new _0x1759d2(this['locale']);return _0x149032['set']({'label':_0x561da4,'icon':_0x201494,'tooltip':!0x0,'tooltipPosition':_0xc594e0}),_0x149032['extendTemplate']({'attributes':{'class':_0x41ad9d}}),_0x149032['on']('execute',()=>{this['fire'](_0x1f199d,this['_model']['id']);}),_0x149032;}['_setupKeyboardNavigation'](){const _0x4731a7=this['element'];this['keystrokes']['listenTo'](_0x4731a7);for(const _0x28c160 of this['focusables'])this['focusTracker']['add'](_0x28c160['element']),this['keystrokes']['listenTo'](_0x28c160['element']);this['keystrokes']['set']('enter',(_0x13866b,_0x2b898)=>{_0x4731a7===_0x13866b['target']&&(this['focusCycler']['focusFirst'](),_0x2b898());}),this['keystrokes']['set']('esc',(_0x2fd1ae,_0x117eb6)=>{_0x4731a7!==_0x2fd1ae['target']&&(this['focus'](),_0x117eb6());});}}class u extends _0x2699f5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x365677,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40443a){super(_0x40443a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xadf9c5=this['editor']['config'];_0xadf9c5['define']('trackChanges.SuggestionThreadView',fe),_0xadf9c5['define']('trackChanges.SuggestionView',we),_0xadf9c5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xadf9c5['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5c1671,_0x5d593a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3a8a55,_0x557e68]of this['_handleControllerBuffer']){const _0x1aed07=this['_suggestionToController']['has'](_0x3a8a55);_0x1aed07||_0x557e68?_0x1aed07&&_0x557e68&&this['_destroyController'](_0x3a8a55):this['_initializeController'](_0x3a8a55);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5c1671,_0x5d593a);}['init'](){const _0x229721=this['editor'],_0x27acf1=_0x229721['plugins']['get']('TrackChangesEditing'),_0x2fdc61=_0x229721['plugins']['get']('Annotations'),_0x326428=_0x229721['plugins']['get']('EditorAnnotations'),_0x5cbddd=_0x229721['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x326428['addSourceCollector'](()=>{const _0x22db60=[];for(const [_0x5676f9,_0x1ce0f2]of Array['from'](this['_suggestionToController'])){const _0x58abba=_0x5676f9['getAllAdjacentSuggestions'](),_0xd9360=[];for(const _0x449e76 of _0x58abba){if(!_0x449e76['isInContent'])continue;if(_0x449e76['isMultiRange']){_0xd9360['push'](..._0x449e76['getRanges']());continue;}const _0x489de8=_0x449e76['getFirstRange']();if(_0xd9360['length']>0x0){const _0x109369=_0xd9360[0x0]['getJoined'](_0x489de8);if(_0x109369){_0xd9360[0x0]=_0x109369;continue;}}_0xd9360['push'](_0x489de8);}_0x22db60['push']([_0x1ce0f2['view'],_0xd9360]);}return _0x22db60;}),this['listenTo'](_0x27acf1,'suggestionLoaded',(_0x1fb00c,_0x3daca0)=>{this['listenTo'](_0x3daca0,'change:previous',(_0x1e18bf,_0x15aeb4,_0x23cacf,_0x1d74c2)=>{_0x3daca0['isInContent']&&(null==_0x23cacf?(this['_updateController'](_0x1d74c2['head']),this['_handleSuggestionControllerDelayed'](_0x3daca0,!0x1)):(this['_updateController'](_0x23cacf['head']),null==_0x1d74c2&&this['_handleSuggestionControllerDelayed'](_0x3daca0,!0x0)));}),null!==_0x3daca0['previous']?this['_updateController'](_0x3daca0['head']):this['_handleSuggestionControllerDelayed'](_0x3daca0,!0x1);}),this['listenTo'](_0x27acf1,'suggestionUnloaded',(_0x2ef87b,_0x77ca3b,_0x2e9f2a)=>{this['stopListening'](_0x77ca3b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x77ca3b),this['_suggestionToController']['has'](_0x77ca3b)&&this['_destroyController'](_0x77ca3b),_0x2e9f2a&&this['_updateController'](_0x2e9f2a['head']);}),this['listenTo'](_0x27acf1,'suggestionChanged',(_0x3ac5da,_0x1feb21)=>{this['_updateController'](_0x1feb21);}),this['listenTo'](_0x2fdc61,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5cbddd,'addComment',(_0x84e62b,{threadId:_0x4d3c37,isFromAdapter:_0xc1bc07})=>{if(_0xc1bc07||!_0x27acf1['hasSuggestion'](_0x4d3c37))return;const _0x50c3bc=_0x27acf1['getSuggestion'](_0x4d3c37);this['_suggestionToController']['get'](_0x50c3bc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9ae2d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x36f2e2;for(const _0x1b0692 in _0x9ae2d3){const _0x556a25=_0x1b0692,_0x485dd3=_0x9ae2d3[_0x556a25];if('trackChangesLicenseKeyValid'==_0x485dd3||'trackChangesLicenseKeyInvalid'==_0x485dd3||'trackChangesLicenseKeyExpired'==_0x485dd3||'trackChangesLicenseKeyDomainLimit'==_0x485dd3||'trackChangesLicenseKeyNotAllowed'==_0x485dd3||'trackChangesLicenseKeyEvaluationLimit'==_0x485dd3||'trackChangesLicenseKeyUsageLimit'==_0x485dd3){delete _0x9ae2d3[_0x556a25],_0x36f2e2=_0x485dd3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x36f2e2&&_0x9ae2d3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x36f2e2&&_0x9ae2d3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x36f2e2&&_0x9ae2d3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x36f2e2&&_0x9ae2d3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x36f2e2&&_0x9ae2d3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x36f2e2&&_0x9ae2d3['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2c8ed8){const _0x380b0f=this['_suggestionToController']['get'](_0x2c8ed8);if(!_0x380b0f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x380b0f['view'])||null;}['getSuggestionForAnnotation'](_0x2dc2e3){const _0x40f633=this['_viewToController']['get'](_0x2dc2e3['innerView']);return _0x40f633?_0x40f633['model']:null;}['_refreshActiveMarkers'](){const _0x4cfc28=this['editor']['plugins']['get']('Annotations'),_0x519905=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13f11a=Array['from'](_0x4cfc28['activeAnnotations'],_0x368e68=>_0x368e68['innerView'])['filter'](_0x5e6f78=>this['_viewToController']['has'](_0x5e6f78)),_0x21dfa5=[];for(const _0x236846 of _0x13f11a){const _0xf88034=this['_viewToController']['get'](_0x236846)['model']['getAllAdjacentSuggestions']();_0x21dfa5['push'](..._0xf88034['reduce']((_0x366da7,_0x41f328)=>[..._0x366da7,..._0x41f328['getMarkerNames']()],[]));}_0x519905['activeMarkers']=_0x21dfa5;}['_addUIComponentsToFactory'](){const _0x935073=this['editor'],_0x1b7024=_0x935073['locale'],_0x1ca6ef=o(_0x1b7024,'Track\x20changes'),_0x5eef95=new _0x2d231a([{'type':'switchbutton','model':new _0x460cb0({'withText':!0x0,'isToggleable':!0x0,'label':_0x1ca6ef,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x460cb0({'withText':!0x0,'label':o(_0x1b7024,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x460cb0({'withText':!0x0,'label':o(_0x1b7024,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x460cb0({'withText':!0x0,'label':o(_0x1b7024,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x460cb0({'withText':!0x0,'label':o(_0x1b7024,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x935073['plugins']['has']('TrackChangesPreview')&&_0x5eef95['addMany']([{'type':'separator'},{'type':'button','model':new _0x460cb0({'withText':!0x0,'label':o(_0x1b7024,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x392317 of _0x5eef95)if(ke(_0x392317)){const _0x314cd1=_0x935073['commands']['get'](_0x392317['model']['commandName']);_0x392317['model']['bind']('isOn','isEnabled')['to'](_0x314cd1,'value','isEnabled');}_0x935073['ui']['componentFactory']['add']('trackChanges',_0x592c93=>this['_createToolbarButton'](_0x592c93,_0x5eef95,_0x1ca6ef)),_0x935073['ui']['componentFactory']['add']('menuBar:trackChanges',_0x476e98=>this['_createMenuBarMenu'](_0x476e98,_0x5eef95,_0x1ca6ef));}['_createToolbarButton'](_0x59f1a0,_0x27c72a,_0x10f41c){const _0x33c92a=_0x473c2f(_0x59f1a0,_0x4d3568),_0x5bbaca=this['editor']['commands']['get']('trackChanges');_0x33c92a['buttonView']['set']({'tooltip':_0x10f41c,'label':_0x10f41c,'icon':_0x205859}),_0x33c92a['buttonView']['bind']('isOn')['to'](_0x5bbaca,'value'),_0x33c92a['buttonView']['on']('execute',()=>{_0x5bbaca['execute'](),this['editor']['editing']['view']['focus']();}),_0x37ab1d(_0x33c92a,_0x27c72a,{'role':'menu'});const _0x3efac3=[];for(const _0x262c25 of _0x27c72a)ke(_0x262c25)&&_0x3efac3['push'](this['editor']['commands']['get'](_0x262c25['model']['commandName']));const _0x5ae977=_0x33c92a['buttonView'];return _0x5ae977['actionView']['unbind']('isEnabled'),_0x5ae977['arrowView']['unbind']('isEnabled'),_0x5ae977['actionView']['bind']('isEnabled')['to'](_0x5bbaca,'isEnabled'),_0x5ae977['arrowView']['bind']('isEnabled')['toMany'](_0x3efac3,'isEnabled',(..._0x18b4d4)=>_0x18b4d4['some'](_0x5cfd8e=>_0x5cfd8e)),_0x33c92a['on']('execute',_0x11146d=>{this['editor']['execute'](_0x11146d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x33c92a;}['_createMenuBarMenu'](_0x1173bc,_0x326242,_0x383652){const _0x57ee34=new _0x47e727(_0x1173bc),_0xb769ba=this['editor']['commands']['get']('trackChanges');_0x57ee34['buttonView']['set']({'label':_0x383652,'icon':_0x205859});const _0x39424c=new _0x576804(_0x1173bc);for(const _0x510b9e of _0x326242){if('separator'==_0x510b9e['type']){_0x39424c['items']['add'](new _0xe4f539(_0x1173bc));continue;}const _0x54ddad=new _0x2d73a3(_0x1173bc,_0x57ee34),_0x385702=new _0x4776da(_0x1173bc),_0x1aa4ed=_0x510b9e['model'];_0x385702['bind'](...Object['keys'](_0x1aa4ed))['to'](_0x1aa4ed),_0x385702['delegate']('execute')['to'](_0x57ee34),_0x385702['on']('execute',()=>{this['editor']['execute'](_0x1aa4ed['commandName']),this['editor']['editing']['view']['focus']();}),_0x54ddad['children']['add'](_0x385702),_0x39424c['items']['add'](_0x54ddad);}return _0x57ee34['bind']('isEnabled')['to'](_0xb769ba,'isEnabled'),_0x57ee34['panelView']['children']['add'](_0x39424c),_0x57ee34;}['_initializeController'](_0x11c9be){const _0x4a6317=this['editor'],_0x5a27f8=_0x4a6317['config'],_0x44a226=_0x4a6317['plugins']['get']('Annotations'),_0x56aac3=_0x4a6317['plugins']['get']('CommentsRepository'),_0x20c8b8=_0x4a6317['plugins']['get']('EditorAnnotations'),_0x31d595=_0x4a6317['plugins']['get'](_0x365677)['me'],_0x2b84b8=_0x5a27f8['get']('trackChanges')['SuggestionThreadView'],_0x461c48=_0x5a27f8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x529353,CommentThreadInputView:_0x48ea41}=_0x4a6317['plugins']['get']('CommentsUI');let _0x4bb844,_0x524376,_0x14f88c;this['_annotationViews']['has'](_0x11c9be['id'])?(_0x524376=this['_annotationViews']['get'](_0x11c9be['id']),_0x4bb844=_0x524376['mainView']):(_0x4bb844=new _0x2b84b8(_0x4a6317['locale'],_0x11c9be,_0x31d595,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5a27f8['get']('comments.editorConfig'),'licenseKey':_0x5a27f8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5a27f8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5a27f8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5a27f8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x308150(_0x5a27f8['get']('locale'),_0x4a6317['locale']),'CommentView':_0x5a27f8['get']('comments')['CommentView'],'CommentsListView':_0x529353,'CommentThreadInputView':_0x48ea41,'SuggestionView':_0x461c48}),_0x4bb844['suggestionView']['acceptButton']['on']('execute',()=>{_0x4a6317['editing']['view']['focus']();}),_0x4bb844['suggestionView']['discardButton']['on']('execute',()=>{_0x4a6317['editing']['view']['focus']();}),_0x524376=_0x44a226['createAnnotationView'](this['editor']['locale'],_0x4bb844),_0x524376['bind']('isDirty')['to'](_0x4bb844,'isDirty'),_0x524376['bind']('length')['to'](_0x4bb844),_0x524376['bind']('type')['to'](_0x4bb844,'type',_0x441b7d=>'suggestion-'+_0x441b7d),_0x4bb844['on']('escape',()=>{_0x14f88c['fire']('escape');}),this['_annotationViews']['set'](_0x11c9be['id'],_0x524376));const _0x2d39b5=_0x56aac3['createCommentThreadController'](_0x11c9be['commentThread'],_0x4bb844),_0x2faef6=new pe(_0x4a6317,_0x11c9be,_0x4bb844,_0x2d39b5),_0x597910=_0x11c9be['getAllAdjacentSuggestions']()['filter'](_0x324a9a=>_0x324a9a['isInContent']);_0x4bb844['descriptionParts']=_0x4a6317['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x597910),this['_suggestionToController']['set'](_0x11c9be,_0x2faef6),this['_viewToController']['set'](_0x4bb844,_0x2faef6);const _0x34f8ee=()=>{const _0x26f278=[],_0x24efd4=_0x11c9be['getAllAdjacentSuggestions']()['filter'](_0x3e22d2=>_0x3e22d2['isInContent']);for(const _0x7b7503 of _0x24efd4)_0x26f278['push'](..._0x7b7503['getMarkers']());return _0x1bb1f5(_0x4a6317['editing'],_0x26f278);};_0x14f88c=_0x44a226['createAnnotation']({'view':_0x524376,'target':_0x34f8ee,'type':()=>'suggestion-'+_0x2faef6['view']['type'],'isVisible':!!_0x34f8ee()}),_0x56aac3['_bindAnnotationToEditors'](_0x4bb844,_0x14f88c),_0x44a226['add'](_0x14f88c),_0x20c8b8['registerAnnotation'](_0x14f88c);}['_destroyController'](_0x4a75ea){const _0xaeb23a=this['editor']['plugins']['get']('CommentsRepository'),_0x4b94ec=this['editor']['plugins']['get']('Annotations'),_0x3891b4=this['_suggestionToController']['get'](_0x4a75ea),_0x3bbfc6=_0x3891b4['view'],_0x544d0e=_0x4b94ec['getByInnerView'](_0x3bbfc6);_0xaeb23a['_unbindEditors'](_0x3bbfc6),_0x544d0e&&_0x4b94ec['remove'](_0x544d0e),this['_suggestionToController']['delete'](_0x4a75ea),this['_viewToController']['delete'](_0x3bbfc6),_0x3891b4['destroy']();}['_updateController'](_0x480f40){if(!_0x480f40['isInContent']||!this['_suggestionToController']['has'](_0x480f40))return;const _0xc176e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48ee65=this['_suggestionToController']['get'](_0x480f40),_0x9e04d=_0x480f40['getAllAdjacentSuggestions']();_0x48ee65['view']['descriptionParts']=_0xc176e0['descriptionFactory']['getDescriptions'](_0x9e04d);}['destroy'](){for(const _0xba077e of this['_suggestionToController']['keys']())this['_destroyController'](_0xba077e);for(const _0x597135 of this['_annotationViews']['values']())_0x597135['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x254e17){return'model'in _0x254e17;}class Ne extends _0x2699f5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2aa1e1){this['editor']['plugins']['get'](d)['adapter']=_0x2aa1e1;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x20df67){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x20df67);}['getSuggestions']({skipNotAttached:_0x21fa65=!0x1,toJSON:_0xfd49a2=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x21fa65,'toJSON':_0xfd49a2});}['getSuggestion'](_0x365e64){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x365e64);}}const p=['Pagination'];class re extends _0x2699f5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x550efd=this['editor'];if(_0x550efd['config']['define']('trackChangesData.editorCreator',_0x38f4ec=>{const _0x5624a7=_0x550efd['model']['document']['getRootNames']()['reduce']((_0x23129c,_0x1b4dd2)=>(_0x23129c[_0x1b4dd2]='',_0x23129c),{});return _0x550efd['constructor']['create'](_0x5624a7,_0x38f4ec);}),'function'!=typeof _0x550efd['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ee078('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x355f01){return P(this['editor'],!0x0,_0x355f01);}['getDataWithDiscardedSuggestions'](_0x3d5357){return P(this['editor'],!0x1,_0x3d5357);}}class Fe extends _0x2699f5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x372da2){function _0x506b41(_0x4badaf){return _0x4badaf['map'](_0x4c0f42=>String['fromCharCode'](_0x4c0f42))['join']('');}super(_0x372da2),this['result']='end',_0x372da2[_0x506b41([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x506b41([0x76,0x69,0x65,0x77])][_0x506b41([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x506b41([0x61,0x75,0x74,0x6f]),_0x372da2[_0x506b41([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x506b41([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x506b41([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x506b41([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x506b41([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(_0x5b7297){return void 0x0!==_0x5b7297['getRootsAttributes'];}async function P(_0x370b1c,_0x17bbd1,_0x471645){const _0x7d7205=_0x3d2779(_0x370b1c,p);_0x7d7205['plugins']['push'](d,Fe),_0x7d7205['rootsAttributes']=De(_0x370b1c)?_0x370b1c['getRootsAttributes']():void 0x0;const _0x810f46=document['createDocumentFragment'](),_0x1932cf=_0x370b1c['config']['get']('trackChangesData')['editorCreator'],_0x467c97=await _0x1932cf(_0x7d7205,()=>function(_0x3b0acd){const _0x46ed05=document['createElement']('div');return _0x3b0acd['appendChild'](_0x46ed05),_0x46ed05;}(_0x810f46));!function(_0x27420b,_0x3db4c9){const _0x9cf6d8=_0x27420b['model']['document']['getRootNames']()['reduce']((_0x57e2e5,_0x579b92)=>(_0x57e2e5[_0x579b92]=_0x27420b['data']['get']({'rootName':_0x579b92}),_0x57e2e5),{}),_0x4f8803=_0x27420b['plugins']['get']('Users')['users']['map'](_0x42606a=>({'id':_0x42606a['id'],'name':_0x42606a['name']})),_0x4626b0=_0x27420b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ded3c=_0x27420b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55f119=_0x3db4c9['plugins']['get']('Users'),_0x1ca934=_0x3db4c9['plugins']['get']('TrackChangesEditing'),_0x2c70e3=_0x3db4c9['plugins']['get']('CommentsRepository');for(const _0x1624c8 of _0x2c70e3['getCommentThreads']())_0x1624c8['remove']();for(const _0x2f6fb7 of _0x4f8803)_0x55f119['getUser'](_0x2f6fb7['id'])||_0x55f119['addUser'](_0x2f6fb7);_0x55f119['me']||_0x55f119['useAnonymousUser']();for(const _0x344ca8 of _0x2ded3c)_0x2c70e3['addCommentThread'](_0x344ca8);for(const _0x24bc01 of _0x4626b0)_0x1ca934['addSuggestionData'](_0x24bc01);_0x3db4c9['data']['set'](_0x9cf6d8);}(_0x370b1c,_0x467c97),_0x467c97['execute'](_0x17bbd1?'acceptAllSuggestions':'discardAllSuggestions');const _0x56dbbe=De(_0x467c97)?_0x467c97['getFullData'](_0x471645):_0x467c97['data']['get'](_0x471645);return await _0x467c97['destroy'](),_0x56dbbe;}class Me extends _0x2d508c{['options'];constructor(_0x57bf6d,_0x31e8b0){super(_0x57bf6d),this['options']=_0x31e8b0,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'](_0x3c9a40,_0x3f3463){if(!this['element'])return;const _0x42c29a=[];for(const [_0x99bd62,_0x61aece]of _0x3c9a40){const _0x209d4f=document['createElement']('div');_0x209d4f['setAttribute']('data-ck-root-name',_0x99bd62),_0x209d4f['className']=_0x61aece['classes']+'\x20ck-track-changes-preview__root-container',_0x209d4f['innerHTML']=_0x61aece['content'],_0x42c29a['push'](_0x209d4f);}_0x3f3463(this['element'],_0x42c29a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2ded4e{constructor(_0x2e765c){super(_0x2e765c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xe9de3c=this['editor'],_0x19d237=_0xe9de3c['locale'],_0x150e76=_0xe9de3c['plugins']['get']('Dialog');let _0x1f8a5c;const _0x5aac69=function(_0x31c6ff){const _0x26f264={};if('editables'in _0x31c6ff['ui']['view']){for(const [_0x4dac29,_0x19fc55]of Object['entries'](_0x31c6ff['ui']['view']['editables']))_0x26f264[_0x4dac29]=_0x19fc55['element'];}else _0x26f264[_0x31c6ff['model']['document']['getRootNames']()[0x0]]=_0x31c6ff['ui']['view']['editable']['element'];return _0x26f264;}(_0xe9de3c),_0x5e9da3=function(_0x44819d){let _0x19fb55=0x0;for(const _0x5c3be5 of Object['values'](_0x44819d))_0x19fb55=Math['max'](_0x19fb55,_0x5c3be5['getBoundingClientRect']()['width']);let _0x394f89=0x0;for(const _0x1872a1 of Object['values'](_0x44819d))_0x394f89+=_0x1872a1['getBoundingClientRect']()['height'];const _0x2cf8e9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2e7f2b=Math['min'](_0x394f89,_0x2cf8e9);return{'width':_0x19fb55,'height':_0x2e7f2b};}(_0x5aac69);_0x150e76['show']({'id':'finalContentPreview','title':o(_0x19d237,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x19d237,{'dialogRects':_0x5e9da3}),'onHide':()=>{_0x1f8a5c['detachFromDom']();},'onShow':()=>{_0xe9de3c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x33f85a=>{const _0x1d0ea9=this['_standarizeRootsData'](_0x33f85a,_0xe9de3c,_0x5aac69);_0x150e76['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1d0ea9,_0xe9de3c['config']['get']('trackChanges.preview.renderFunction'));}),_0x1f8a5c=new _0x49749f(_0x19d237,[_0x150e76['view']]),_0x1f8a5c['attachToDom'](),_0x1f8a5c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xe9de3c['once']('destroy',()=>{_0x1f8a5c['detachFromDom']();});const _0x3e20f7=_0x150e76['view']['headerView']['class'];_0x150e76['view']['headerView']['class']=_0x3e20f7?_0x3e20f7+'\x20ck-reset_all':'ck-reset_all',_0x150e76['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x150e76['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xc24fd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x32c990=_0xc24fd['previewMode'],_0x41099a={};if('$labels'===_0x32c990){for(const _0x248591 of _0xc24fd['getMergeFieldsIds']())_0x41099a[_0x248591]=_0xc24fd['getLabel'](_0x248591)||_0x248591;}else{const _0x512724='$defaultValues'===_0x32c990?_0xc24fd['getDefaultValues']():_0xc24fd['getDataSetValues'](_0x32c990,!0x0);for(const _0x41020c of Object['entries'](_0x512724)){const [_0x438625,_0x2748ec]=_0x41020c;_0x41099a[_0x438625]=null!==_0x2748ec?_0x2748ec:_0xc24fd['getLabel'](_0x438625)||_0x438625;}}return{'mergeFieldsData':_0x41099a};}['_standarizeRootsData'](_0x27eecb,_0x545d58,_0x39dd41){let _0x1f69d6;if('string'==typeof _0x27eecb){const _0x557e91=_0x545d58['model']['document']['getRootNames']()[0x0];_0x1f69d6={[_0x557e91]:_0x27eecb};}else _0x1f69d6=_0x27eecb;const _0x13ebd2=this['_fixMediaEmbeds'](_0x1f69d6,_0x545d58),_0x14cb69=function(_0x5be119,_0x8f5599){for(const [_0x1d8b8d,_0xfa2883]of _0x5be119)_0xfa2883['classes']=_0x8f5599[_0x1d8b8d]['classList']['value']['replace']('ck-focused','');return _0x5be119;}(this['_sortRoots'](_0x545d58)['reduce']((_0x1662bd,_0x4a85dd)=>(_0x1662bd['push']([_0x4a85dd,{'content':_0x13ebd2[_0x4a85dd],'classes':''}]),_0x1662bd),[]),_0x39dd41);return _0x14cb69;}['_fixMediaEmbeds'](_0x2621d4,_0x7a76b3){if(!_0x7a76b3['plugins']['has']('MediaEmbedEditing'))return _0x2621d4;const _0x492013=_0x7a76b3['plugins']['get']('MediaEmbedEditing');for(const [_0x44dbc1,_0x1e163c]of Object['entries'](_0x2621d4)){const _0x8c374c=document['createElement']('div');_0x8c374c['innerHTML']=_0x1e163c,(_0x8c374c['querySelectorAll']('figure.media')['forEach'](_0x826975=>{const _0x2ab2af=_0x826975['querySelector']('oembed');if(_0x2ab2af){const _0x1c763c=_0x2ab2af['getAttribute']('url');if(_0x1c763c){const _0x537715=_0x492013['registry']['getMediaViewElement'](new _0x1c6785(_0x7a76b3['editing']['view']['document']),_0x1c763c,{'elementName':'','renderForEditingView':!0x0}),_0x24a284=document['createElement']('div');_0x24a284['classList']['add']('ck-media__wrapper'),_0x537715['render'](_0x24a284,_0x7a76b3['editing']['view']['domConverter']),_0x2ab2af['replaceWith'](_0x24a284);}}}),_0x2621d4[_0x44dbc1]=_0x8c374c['innerHTML']);}return _0x2621d4;}['_sortRoots'](_0x288d06){if(!function(_0x23d278){return void 0x0!==_0x23d278['getRootsAttributes'];}(_0x288d06))return _0x288d06['model']['document']['getRootNames']();const _0x1928bf=[],_0x1acbad=new Map();for(const _0x224f37 of _0x288d06['model']['document']['getRootNames']()){const _0x4dfac9=_0x288d06['editing']['view']['getDomRoot'](_0x224f37)['getClientRects']()['item'](0x0);_0x1928bf['push'](_0x224f37),_0x1acbad['set'](_0x224f37,_0x4dfac9);}return _0x1928bf['sort']((_0x54d02e,_0x2946ca)=>{const _0x34b0ad=_0x1acbad['get'](_0x54d02e),_0x4e56c9=_0x1acbad['get'](_0x2946ca);return _0x34b0ad['y']-_0x4e56c9['y']||_0x34b0ad['x']-_0x4e56c9['x'];}),_0x1928bf;}}class Ue extends _0x2699f5{static get['requires'](){return[re,_0x3592e0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36cbed){super(_0x36cbed),_0x36cbed['commands']['add']('previewFinalContent',new te(this['editor'])),_0x36cbed['config']['define']('trackChanges.preview.renderFunction',(_0x4d8ea2,_0x4c33e0)=>{for(const _0x1228e9 of _0x4c33e0)_0x4d8ea2['appendChild'](_0x1228e9);});}}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 _0x25cf1c,Plugin as _0x116a29,PendingActions as _0x33c8e4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x428d7a,ObservableMixin as _0xdf0621,uid as _0x492477,priorities as _0x144041,insertToPriorityArray as _0x5af390,logWarning as _0x242bbe,getEnvKeystrokeText as _0x397604,FocusTracker as _0x4ec7ea,KeystrokeHandler as _0x4da634,Collection as _0x42d68e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x14e302,IconCancel as _0x2ff71d,IconTrackChanges as _0x459346}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x197994,View as _0x45dd94,ViewCollection as _0x97e7be,FocusCycler as _0x412906,UIModel as _0x1662fa,createDropdown as _0x483a08,SplitButtonView as _0x3c77a1,addListToDropdown as _0x186803,MenuBarMenuView as _0x114742,MenuBarMenuListView as _0x31f0a0,ListSeparatorView as _0x2d3004,MenuBarMenuListItemView as _0x4647b4,MenuBarMenuListItemButtonView as _0x2f308f,BodyCollection as _0xc85bd9,Dialog as _0x382d28}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5a4c16,DocumentCompare as _0x30cb5c,hashObject as _0x1d67e1,surroundingMarkersDetector as _0x232abf,FOCUS_ANNOTATION_KEYSTROKE as _0x147b7e,AriaDescriptionView as _0x4101c8,setupThreadKeyboardNavigation as _0x10ac8d,trimHtml as _0x28264b,UserView as _0x26c0e6,LateFocusButtonView as _0xaf0268,getDateTimeFormatter as _0x5876db,getAllMarkersDomElementsSorted as _0x22e28,sanitizeEditorConfig as _0x53e095}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x517346,ModelLiveRange as _0x2d8975,ModelLivePosition as _0x5cd0d0,ViewDowncastWriter as _0x285051}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x1be826,set as _0x129193,isEqual as _0x3a0690,unset as _0x25ba5b,omit as Pt}from'es-toolkit/compat';import{Delete as _0x5dc36c,Input as _0xfc0fdb}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x402d32}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4a131b}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 _0x25cf1c{['_enabledCommands'];constructor(_0x535125,_0xa5204e){super(_0x535125),this['_enabledCommands']=_0xa5204e,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 _0x36337d of this['editor']['commands']['commands']())_0x36337d['affectsData']&&!this['_enabledCommands']['has'](_0x36337d)&&_0x36337d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x228edd of this['editor']['commands']['commands']())_0x228edd['affectsData']&&!this['_enabledCommands']['has'](_0x228edd)&&_0x228edd['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x25cf1c{['_suggestions'];constructor(_0x539a0a,_0x144160){super(_0x539a0a),this['_suggestions']=_0x144160,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x70dff9){const _0x2d821a=this['_suggestions']['get'](_0x70dff9);if(!_0x2d821a)throw new _0x428d7a('track-changes-accept-suggestion-not-found',this);const _0x5d50ee=_0x2d821a['getRanges']();this['editor']['model']['canEditAt'](_0x5d50ee)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2d821a);}}class D extends _0x25cf1c{['_suggestions'];constructor(_0x108bb8,_0x96bd6e){super(_0x108bb8),this['_suggestions']=_0x96bd6e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x28d6ce){const _0x15e96b=this['_suggestions']['get'](_0x28d6ce);if(!_0x15e96b)throw new _0x428d7a('track-changes-discard-suggestion-not-found',this);const _0x1ca451=_0x15e96b['getRanges']();this['editor']['model']['canEditAt'](_0x1ca451)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x15e96b);}}function ls(_0x4bb14d,_0x320252){let _0x579927='';return _0x579927+=_0x4bb14d['split']('*')['map']((_0xa810e3,_0x197eaa)=>_0x197eaa%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0xa810e3)+'</span>':rn(_0xa810e3))['join'](''),_0x320252&&(_0x579927+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x320252['value']+'\x22\x20title=\x22'+_0x320252['title']+'\x22></span>'),_0x579927;}function rn(_0x31e07f){const _0x3346c0=document['createElement']('span');return _0x3346c0['innerText']=_0x31e07f,_0x3346c0['innerHTML'];}function ts(_0x5d0ac1){return _0x5d0ac1['sort']((_0x413c79,_0x1668de)=>'attribute'===_0x413c79['type']&&'attribute'!==_0x1668de['type']?-0x1:'attribute'!==_0x413c79['type']&&'attribute'===_0x1668de['type']?0x1:'deletion'==_0x413c79['type']&&'deletion'!=_0x1668de['type']?-0x1:'deletion'!=_0x413c79['type']&&'deletion'==_0x1668de['type']?0x1:0x0);}function to(_0xe6cc72,_0x3b3442){let _0x2c24f7,_0x40ef4c=0x0;const _0x2800f9=[],_0x1518db=_0x3b3442['schema'];for(;_0x40ef4c<_0xe6cc72['length'];){const _0x422ad3=_0xe6cc72[_0x40ef4c],_0x28facb=_0xe6cc72[_0x40ef4c+0x1];_0x2c24f7||(_0x2c24f7=_0x3b3442['createPositionBefore'](_0x422ad3)),cn(_0x3b3442,_0x422ad3,_0x28facb)||(_0x2800f9['push'](_0x3b3442['createRange'](_0x2c24f7,_0x1518db['isObject'](_0x422ad3)?_0x3b3442['createPositionAfter'](_0x422ad3):_0x3b3442['createPositionAt'](_0x422ad3,'end'))),_0x2c24f7=null),_0x40ef4c++;}return _0x2800f9;}function cn(_0x4c1269,_0x3db505,_0x43fb41){if(!_0x43fb41)return!0x1;const _0x55731d=_0x4c1269['createPositionAfter'](_0x3db505),_0x1b1fcc=_0x4c1269['createPositionBefore'](_0x43fb41);return _0x55731d['isTouching'](_0x1b1fcc);}function rs(_0x104fc5,_0x5d57b1,_0x1f1813){for(;_0x1f1813['length'];){const _0xb03208=_0x1f1813['splice'](0x0,0x64);_0x104fc5['change'](()=>{for(const _0x30fd83 of _0xb03208)_0x30fd83['isInContent']&&_0x5d57b1['execute'](_0x30fd83['id']);});}}class B extends _0x25cf1c{['_command'];['_suggestions'];constructor(_0x233819,_0x527c23,_0x5926fb){super(_0x233819),this['_command']=_0x527c23,this['_suggestions']=_0x5926fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b1a1c=Array['from'](this['_suggestions']['values']())['some'](_0x47957f=>_0x47957f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3b1a1c;}['execute'](){const _0x24d5a1=ts(Array['from'](this['_suggestions']['values']()));for(const _0x18b918 of _0x24d5a1){const _0x22ad7d=_0x18b918['getRanges']();if(!this['editor']['model']['canEditAt'](_0x22ad7d))return;}rs(this['editor']['model'],this['_command'],_0x24d5a1);}}class O extends _0x25cf1c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4950fc,_0xb00e08,_0xf1eb6){super(_0x4950fc),this['_command']=_0xb00e08,this['_suggestions']=_0xf1eb6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27195a=this['editor']['model']['document']['selection'],_0x19876e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x313eeb,_0xbe0f7){const _0x371217=Array['from'](_0x313eeb['getRanges']()),_0x55a842=new Set();for(const _0x5a7953 of _0xbe0f7)if(_0x5a7953['isInContent']){for(const _0x12709d of _0x371217)for(const _0x1588ce of _0x5a7953['getRanges']())(_0x12709d['isIntersecting'](_0x1588ce)||_0x313eeb['isCollapsed']&&!_0x5a7953['isMultiRange']&&_0x5a7953['next']&&_0x1588ce['end']['isTouching'](_0x12709d['start']))&&_0x55a842['add'](_0x5a7953);}return _0x55a842;}(_0x27195a,_0x19876e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x54ce2d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x31918f of _0x54ce2d){const _0x51bce4=_0x31918f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x51bce4))return;}rs(this['editor']['model'],this['_command'],_0x54ce2d);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xdf0621(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x43bd08,_0xe33830){super(),this['id']=_0xe33830['id'],this['type']=_0xe33830['type'],this['subType']=_0xe33830['subType']||null,this['author']=_0xe33830['author'],this['creator']=_0xe33830['creator']||_0xe33830['author'],this['isExternal']=Boolean(_0xe33830['attributes']&&_0xe33830['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xe33830['originalSuggestionId']||null,this['_model']=_0x43bd08,this['_onAccept']=_0xe33830['onAccept'],this['_onDiscard']=_0xe33830['onDiscard'],this['_onAttributesChange']=_0xe33830['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe33830['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 _0x1bdf9f=this;for(;_0x1bdf9f['previous'];)_0x1bdf9f=_0x1bdf9f['previous'];return _0x1bdf9f;}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'](_0x400ee6){this['_markerNames']['add'](_0x400ee6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x255dfa=>this['_model']['markers']['get'](_0x255dfa))['filter'](_0x599bc9=>_0x599bc9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb2d9ba=>{for(const _0x1a26b6 of this['getMarkers']())_0xb2d9ba['removeMarker'](_0x1a26b6);}),this['_markerNames']['clear']();}['removeMarker'](_0x588091){this['_model']['change'](_0x210189=>{_0x210189['removeMarker'](_0x588091);}),this['_markerNames']['delete'](_0x588091);}['addRange'](_0x5b70b6){const _0x1568b8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x1568b8),this['_model']['change'](_0x168ef0=>{_0x168ef0['addMarker'](_0x1568b8,{'range':_0x5b70b6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4044b1){for(const _0x1523e2 of this['getRanges']())if(_0x1523e2['isIntersecting'](_0x4044b1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x880006=>_0x880006['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x44a374,_0x46729c)=>[..._0x44a374,..._0x46729c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x375c63=this['getRanges']();if(0x1!=_0x375c63['length'])return null;const _0x392458=_0x375c63[0x0],_0x3e986d=_0x392458['start']['nodeAfter'],_0x4b630a=_0x392458['end']['nodeBefore'];return _0x3e986d instanceof _0x517346?_0x3e986d!=_0x4b630a?null:_0x3e986d: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 _0x47fc76=[];let _0xaeed9b=this['head'];for(;_0xaeed9b;)_0x47fc76['push'](_0xaeed9b),_0xaeed9b=_0xaeed9b['next'];return _0x47fc76;}['setAttribute'](_0x1e6e76,_0x205b72){const _0x378671=_0x1be826(this['attributes']);_0x129193(_0x378671,_0x1e6e76,_0x205b72),_0x3a0690(_0x378671,this['attributes'])||(this['attributes']=_0x378671,this['_onAttributesChange'](_0x378671));}['removeAttribute'](_0x37c0f1){const _0x44786a=_0x1be826(this['attributes']);_0x25ba5b(_0x44786a,_0x37c0f1),_0x3a0690(_0x44786a,this['attributes'])||(this['attributes']=_0x44786a,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 _0x492477()['substr'](0x1,0x5);}}function o(_0x5c3dad,_0x345da9,_0x16456b){const _0x436c8d=_0x5c3dad['t'],t=_0x5c3dad['t'];switch(_0x345da9){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',_0x16456b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x16456b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x16456b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x16456b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x16456b);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',_0x16456b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x16456b);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',_0x16456b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x16456b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x16456b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x16456b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x16456b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x16456b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x16456b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x16456b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x16456b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x16456b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x16456b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x16456b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x16456b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x16456b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x16456b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x16456b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x16456b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x16456b);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'},_0x16456b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x16456b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x16456b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x16456b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x16456b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x16456b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x16456b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x16456b);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'},_0x16456b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x16456b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x16456b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x16456b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x16456b);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'},_0x16456b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x16456b);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'},_0x16456b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x16456b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x16456b);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'},_0x16456b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x16456b);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'},_0x16456b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x16456b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x16456b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x16456b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x16456b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x16456b);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'},_0x16456b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x16456b);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 _0x436c8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x16456b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x436c8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x16456b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x16456b);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'},_0x16456b);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'},_0x16456b);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'},_0x16456b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x345da9;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x54dfe3,_0xe7e39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x54dfe3,this['_locale']=_0xe7e39;}['getDescriptions'](_0x2e93fe){const _0x5c5f40=[],_0x2b503c=new Set(),_0x5cd76e=new Set();for(let _0x5ede02=0x0;_0x5ede02<_0x2e93fe['length'];_0x5ede02++){const _0xe7088c=_0x2e93fe[_0x5ede02];if(!_0xe7088c['isInContent'])continue;const _0x4502f7=this['_handleCustomCallbackDescription'](_0xe7088c);if(_0x4502f7){if(null!=_0xe7088c['subType']){if(_0x2b503c['has'](_0xe7088c['subType']))continue;_0x2b503c['add'](_0xe7088c['subType']);}_0x5c5f40['push'](_0x4502f7);}else{if('attribute'==_0xe7088c['type']){const _0x455acc=_0xe7088c['data']['key'];if(_0x5cd76e['has'](_0x455acc))continue;_0x5cd76e['add'](_0xe7088c['data']['key']),_0x455acc==m?this['_handleRenameSuggestionDescription'](_0x5c5f40,_0xe7088c):this['_handleAttributeSuggestionDescription'](_0x5c5f40,_0xe7088c);continue;}'insertion'!=_0xe7088c['type']&&'deletion'!=_0xe7088c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5c5f40,_0xe7088c,_0x2e93fe[_0x5ede02+0x1]);}}return this['_resolveDescriptionItems'](_0x5c5f40);}['registerDescriptionCallback'](_0x18c37b){this['_customCallbacks']['push'](_0x18c37b);}['registerElementLabel'](_0x2fa0a6,_0x3aba3d,_0x49298b=_0x144041['normal']){'function'==typeof _0x2fa0a6?_0x5af390(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2fa0a6,'label':_0x3aba3d,'priority':_0x49298b}):this['_itemLabels']['set'](_0x2fa0a6,_0x3aba3d);}['registerAttributeLabel'](_0x38d0aa,_0x2b3b10){this['_attributeLabels']['set'](_0x38d0aa,_0x2b3b10);}['getItemLabel'](_0x1e37d2,_0x5b1720=0x1){let _0x5a7c54;for(const _0x4a2e00 of this['_itemLabelsCallbacks'])if(_0x4a2e00['matchingCallback'](_0x1e37d2)){_0x5a7c54=_0x4a2e00['label'];break;}return _0x5a7c54||(_0x5a7c54=this['_itemLabels']['get'](_0x1e37d2['name'])),_0x5a7c54?_0x5a7c54(_0x5b1720):0x1!==_0x5b1720?_0x5b1720+'\x20'+_0x1e37d2['name']+'s':''+_0x1e37d2['name'];}['_addDescriptionItems'](_0x1e41a6,_0x1f505a){const _0x2bbb27=_0x1f505a['getFirstRange']()['getWalker'](),_0x59c114='insertion'==_0x1f505a['type']?'add':'remove';for(const _0x1fd1aa of _0x2bbb27){const _0x18b53c=_0x1fd1aa['item'],_0x453506=_0x1e41a6[_0x1e41a6['length']-0x1];if(_0x18b53c['is']('$textProxy'))_0x453506&&_0x453506['type']['indexOf']('Container')>-0x1&&_0x1e41a6['pop'](),_0x453506&&'text'==_0x453506['type']?_0x453506[_0x59c114]+=_0x18b53c['data']:_0x1e41a6['push']({'type':'text','add':'add'==_0x59c114?_0x18b53c['data']:'','remove':'remove'==_0x59c114?_0x18b53c['data']:''});else{if(this['_schema']['isObject'](_0x18b53c)){const _0x1f3c6b=_0x18b53c;if(_0x453506&&_0x453506['type']['indexOf']('Container')>-0x1&&_0x1e41a6['pop'](),'elementEnd'==_0x1fd1aa['type'])continue;_0x453506&&_0x453506['type']==_0x59c114+'Object'&&_0x453506['element']['name']==_0x1f3c6b['name']?_0x453506['quantity']++:_0x1e41a6['push']({'type':_0x59c114+'Object','element':_0x1f3c6b,'quantity':0x1}),_0x2bbb27['skip'](_0x28b1a4=>!('elementEnd'==_0x28b1a4['type']&&_0x28b1a4['item']==_0x18b53c));}else{if(this['_schema']['checkChild'](_0x18b53c,'$text')||_0x18b53c['is']('element','softBreak')){const _0x4bed7b=_0x18b53c;if('add'==_0x59c114&&'elementStart'==_0x1fd1aa['type']||'remove'==_0x59c114&&'elementEnd'==_0x1fd1aa['type'])continue;if(_0x453506&&-0x1==_0x453506['type']['indexOf']('Container')){'text'==_0x453506['type']&&(_0x453506[_0x59c114]+='\x0a');continue;}let _0x4e8f32;if(_0x4e8f32='add'==_0x59c114?_0x4bed7b['nextSibling']&&!this['_schema']['isObject'](_0x4bed7b['nextSibling'])?_0x4bed7b['nextSibling']:null:_0x4bed7b['previousSibling']&&!this['_schema']['isObject'](_0x4bed7b['previousSibling'])?_0x4bed7b['previousSibling']:null,_0x4bed7b['isEmpty']||_0x4e8f32&&_0x4e8f32['isEmpty']){const _0x37f0aa=_0x4e8f32&&_0x4e8f32['isEmpty']?_0x4e8f32:_0x4bed7b;_0x453506&&_0x453506['type']==_0x59c114+'EmptyContainer'&&_0x453506['element']['name']==_0x37f0aa['name']?_0x453506['quantity']++:_0x1e41a6['push']({'type':_0x59c114+'EmptyContainer','element':_0x37f0aa,'quantity':0x1});}else _0x1e41a6['push']({'type':_0x59c114+'Container','element':_0x4bed7b});}}}}}['_resolveDescriptionItems'](_0x2a61be){const _0x2f2760=this['_locale'],_0x532aae=[],_0x1a7f88=[],_0x49a438=[];for(const _0x1d8c71 of _0x2a61be)switch(_0x1d8c71['type']){case'text':if(_0x1d8c71['add']=_0x1d8c71['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1d8c71['remove']=_0x1d8c71['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1d8c71['add']&&''!=_0x1d8c71['remove']){_0x532aae['push']({'type':'replace','content':o(_0x2f2760,'REPLACE_TEXT',['\x22'+_0x1d8c71['remove']+'\x22','\x22'+_0x1d8c71['add']+'\x22'])});continue;}if(null!=_0x1d8c71['add']['match'](/^ +$/)){_0x532aae['push']({'type':'insertion','content':o(_0x2f2760,'*Insert:*\x20%0',o(_0x2f2760,'ELEMENT_SPACE',_0x1d8c71['add']['length']))});continue;}if(null!=_0x1d8c71['remove']['match'](/^ +$/)){_0x532aae['push']({'type':'deletion','content':o(_0x2f2760,'*Remove:*\x20%0',o(_0x2f2760,'ELEMENT_SPACE',_0x1d8c71['remove']['length']))});continue;}if(''!=_0x1d8c71['add']){_0x532aae['push']({'type':'insertion','content':o(_0x2f2760,'*Insert:*\x20%0','\x22'+_0x1d8c71['add']+'\x22')});continue;}_0x532aae['push']({'type':'deletion','content':o(_0x2f2760,'*Remove:*\x20%0','\x22'+_0x1d8c71['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x532aae['push']({'type':'insertion','content':o(_0x2f2760,'*Insert:*\x20%0',this['getItemLabel'](_0x1d8c71['element'],_0x1d8c71['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x532aae['push']({'type':'deletion','content':o(_0x2f2760,'*Remove:*\x20%0',this['getItemLabel'](_0x1d8c71['element'],_0x1d8c71['quantity']))});continue;case'addContainer':_0x532aae['push']({'type':'insertion','content':o(_0x2f2760,'*Split:*\x20%0',this['getItemLabel'](_0x1d8c71['element'],_0x1d8c71['quantity']))});continue;case'removeContainer':_0x532aae['push']({'type':'deletion','content':o(_0x2f2760,'*Merge:*\x20%0',this['getItemLabel'](_0x1d8c71['element'],_0x1d8c71['quantity']))});continue;case'addFormat':_0x1a7f88['push'](_0x1d8c71['key']);continue;case'removeFormat':_0x49a438['push'](_0x1d8c71['key']);continue;default:_0x532aae['push'](_0x1d8c71);}if(_0x1a7f88['length']){const _0xbaf7e7=_0x1a7f88['map'](_0x4b4f1e=>this['_attributeLabels']['has'](_0x4b4f1e)?this['_attributeLabels']['get'](_0x4b4f1e):_0x4b4f1e)['join'](',\x20');_0x532aae['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xbaf7e7)});}if(_0x49a438['length']){const _0x591778=_0x49a438['map'](_0x2776d3=>this['_attributeLabels']['has'](_0x2776d3)?this['_attributeLabels']['get'](_0x2776d3):_0x2776d3)['join'](',\x20');_0x532aae['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x591778)});}return _0x532aae;}['_handleCustomCallbackDescription'](_0x193699){for(const _0x307de6 of this['_customCallbacks']){const _0x2610e3=_0x307de6(_0x193699);if(_0x2610e3&&'type'in _0x2610e3)return _0x2610e3;}}['_handleAttributeSuggestionDescription'](_0x1f586f,_0x52bdda){const _0xbd2844=_0x52bdda['data'],_0x25d07b=void 0x0===_0xbd2844['newValue']?'removeFormat':'addFormat';_0x1f586f['push']({'type':_0x25d07b,'key':_0xbd2844['key']});}['_handleRenameSuggestionDescription'](_0x28ce31,_0x2f8e35){_0x28ce31['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2f8e35['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x28fdd9,_0x42db21,_0x5f1026){if(this['_addDescriptionItems'](_0x28fdd9,_0x42db21),_0x5f1026&&_0x5f1026['getFirstRange']()&&!_0x42db21['getFirstRange']()['end']['isEqual'](_0x5f1026['getFirstRange']()['start'])){const _0x442553=_0x28fdd9[_0x28fdd9['length']-0x1],_0x104599='insertion'==_0x42db21['type']?'add':'remove';_0x442553&&'text'==_0x442553['type']&&(_0x442553[_0x104599]+='\x0a');}}}class R extends _0x116a29{['afterInit'](){const _0x1748c1=this['editor'],_0x1bce55=_0x1748c1['plugins']['get']('TrackChangesEditing');_0x1748c1['commands']['get']('showAIAssistant')&&_0x1bce55['enableCommand']('showAIAssistant');}}class T extends _0x116a29{['afterInit'](){const _0x2fae16=this['editor'],_0x47ba00=_0x2fae16['plugins']['get']('TrackChangesEditing');_0x2fae16['commands']['get']('toggleAi')&&_0x47ba00['enableCommand']('toggleAi');}}class E extends _0x116a29{['afterInit'](){const _0x2384d3=this['editor'],_0x46352d=_0x2384d3['plugins']['get']('TrackChangesEditing');_0x2384d3['commands']['get']('aiQuickAction')&&_0x46352d['enableCommand']('aiQuickAction');}}class U extends _0x116a29{['afterInit'](){const _0x22b673=this['editor'],_0x1f6ae3=_0x22b673['locale'];if(!_0x22b673['plugins']['has']('AlignmentEditing'))return;const _0x4a3002=_0x22b673['plugins']['get']('TrackChangesEditing');_0x4a3002['enableDefaultAttributesIntegration']('alignment'),_0x4a3002['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1f6ae3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86b846=this['editor'],_0x13bf7b=_0x86b846['locale'];_0x86b846['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x299b1e=>{if('formatBlock'!=_0x299b1e['type'])return;const {data:_0x404491}=_0x299b1e;if(_0x404491&&'alignment'==_0x404491['commandName']){const _0x1ad926=_0x404491['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x13bf7b,'*Format:*\x20%0',function(_0x35b6ed){switch(_0x35b6ed){case'left':return o(_0x13bf7b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x13bf7b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x13bf7b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x13bf7b,'FORMAT_JUSTIFY_TEXT');}}(_0x1ad926))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x116a29{['afterInit'](){const _0x4dde5f=this['editor'],_0x2099c9=_0x4dde5f['plugins']['get']('TrackChangesEditing'),_0x1ec61a=_0x4dde5f['locale'];for(const _0xe70d26 of ti){if(!_0x4dde5f['plugins']['has'](_0xe70d26))continue;const _0x272365=_0xe70d26['slice'](0x0,-0x7)['toLowerCase'](),_0x4e4c11='FORMAT_'+_0x272365['toUpperCase']();_0x2099c9['enableDefaultAttributesIntegration'](_0x272365),_0x2099c9['descriptionFactory']['registerAttributeLabel'](_0x272365,o(_0x1ec61a,_0x4e4c11));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117f22=this['editor'],_0x6fd8b0=_0x117f22['locale'],_0x26d634=_0x117f22['plugins']['get']('TrackChangesEditing');function _0x57a1e1(_0x310b95,_0x310f8d){_0x26d634['descriptionFactory']['registerDescriptionCallback'](_0xcf2909=>{if('formatInline'!=_0xcf2909['type'])return;const {data:_0xf0c7e5}=_0xcf2909;return _0xf0c7e5&&_0xf0c7e5['commandName']===_0x310b95?_0xf0c7e5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6fd8b0,'*Format:*\x20%0',_0x310f8d)}:{'type':'format','content':o(_0x6fd8b0,'*Remove\x20format:*\x20%0',_0x310f8d)}:void 0x0;});}_0x57a1e1('bold',o(_0x6fd8b0,'FORMAT_BOLD')),_0x57a1e1('italic',o(_0x6fd8b0,'FORMAT_ITALIC')),_0x57a1e1('underline',o(_0x6fd8b0,'FORMAT_UNDERLINE')),_0x57a1e1('code',o(_0x6fd8b0,'FORMAT_CODE')),_0x57a1e1('strikethrough',o(_0x6fd8b0,'FORMAT_STRIKETHROUGH')),_0x57a1e1('subscript',o(_0x6fd8b0,'FORMAT_SUBSCRIPT')),_0x57a1e1('superscript',o(_0x6fd8b0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x116a29{['afterInit'](){const _0x34c48e=this['editor'],_0x3fadd4=_0x34c48e['locale'];if(!_0x34c48e['plugins']['has']('BlockQuoteEditing'))return;const _0x415e6f=_0x34c48e['plugins']['get']('TrackChangesEditing'),_0x119c6f=this['editor']['commands']['get']('blockQuote');_0x415e6f['enableCommand']('blockQuote',(_0x4e739b,_0x2588f5={})=>{const _0x33526f=this['editor']['model']['document']['selection'],_0x13a12f=_0x2588f5&&void 0x0!==_0x2588f5['forceValue']?_0x2588f5['forceValue']:!_0x119c6f['value'];let _0x5a08d4=[];if(_0x13a12f){const _0x2e107d=Array['from'](_0x33526f['getSelectedBlocks']())['filter'](_0x4907ed=>oo(_0x4907ed)||function(_0x192f6f,_0x51120d){const _0x25c114=_0x51120d['checkChild'](_0x192f6f['parent'],'blockQuote'),_0x340ed5=_0x51120d['checkChild'](['$root','blockQuote'],_0x192f6f);return _0x25c114&&_0x340ed5;}(_0x4907ed,this['editor']['model']['schema']));_0x5a08d4=to(_0x2e107d,_0x34c48e['model']);}else{const _0x290bf2=Array['from'](_0x33526f['getSelectedBlocks']())['filter'](_0x41dd14=>oo(_0x41dd14));_0x5a08d4=to(_0x290bf2,_0x34c48e['model']);}_0x34c48e['model']['change'](()=>{for(const _0x324ec7 of _0x5a08d4)_0x415e6f['markBlockFormat'](_0x324ec7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x13a12f}]});});}),_0x415e6f['descriptionFactory']['registerDescriptionCallback'](_0x3c3feb=>{const {data:_0xf1d9ef}=_0x3c3feb;if(_0xf1d9ef&&'blockQuote'==_0xf1d9ef['commandName']){const _0x5ee60e=o(_0x3fadd4,'ELEMENT_BLOCK_QUOTE');return _0xf1d9ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fadd4,'*Set\x20format:*\x20%0',_0x5ee60e)}:{'type':'format','content':o(_0x3fadd4,'*Remove\x20format:*\x20%0',_0x5ee60e)};}});}}function oo(_0x516031){return'blockQuote'==_0x516031['parent']['name'];}class G extends _0x116a29{['afterInit'](){const _0x3a467c=this['editor'],_0xe69d8b=_0x3a467c['locale'],_0x418335=_0x3a467c['plugins']['get']('TrackChangesEditing');_0x3a467c['plugins']['has']('BookmarkEditing')&&(_0x418335['enableCommand']('insertBookmark'),_0x418335['enableDefaultAttributesIntegration']('updateBookmark'),_0x418335['descriptionFactory']['registerDescriptionCallback'](_0x11e23a=>{if('insertion'!=_0x11e23a['type']&&'deletion'!=_0x11e23a['type']&&'attribute'!=_0x11e23a['type'])return;const _0x5b30db=_0x11e23a['getContainedElement']();if(null==_0x5b30db)return;if(!_0x5b30db['is']('element','bookmark'))return;const _0x41712c=_0x5b30db['getAttribute']('bookmarkId');if('insertion'==_0x11e23a['type'])return{'type':'insertion','content':o(_0xe69d8b,'*Insert:*\x20%0','\x22'+_0x41712c+'\x22\x20'+o(_0xe69d8b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x11e23a['type'])return{'type':'deletion','content':o(_0xe69d8b,'*Remove:*\x20%0','\x22'+_0x41712c+'\x22\x20'+o(_0xe69d8b,'ELEMENT_BOOKMARK'))};const {data:_0x1d9647}=_0x11e23a;if(!_0x1d9647||'bookmarkId'!=_0x1d9647['key'])return;return{'type':'format','content':o(_0xe69d8b,'*Set\x20bookmark:*\x20%0','\x22'+_0x1d9647['newValue']+'\x22')};}));}}class L extends _0x116a29{['afterInit'](){const _0x36cd35=this['editor'];_0x36cd35['plugins']['has']('CaseChange')&&(_0x36cd35['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36cd35['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36cd35['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x116a29{['afterInit'](){const _0x343a23=this['editor'];_0x343a23['commands']['get']('ckbox')&&_0x343a23['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x116a29{['afterInit'](){const _0x3f1720=this['editor'];if(!_0x3f1720['plugins']['has']('CodeBlock'))return;const _0x106860=_0x3f1720['plugins']['get']('TrackChangesEditing'),_0x159ad7=_0x3f1720['locale'],_0x3b81a1=_0x3f1720['config']['get']('codeBlock')['languages'],_0x45a4b4=_0x3f1720['commands']['get']('codeBlock');_0x106860['enableCommand']('indentCodeBlock'),_0x106860['enableCommand']('outdentCodeBlock'),_0x106860['enableCommand']('codeBlock',(_0x48f011,_0x2846f9={})=>{const _0x3cffd3=_0x3f1720['model'],_0x4a077d=_0x3f1720['model']['document']['selection'],_0x13ec3f=_0x2846f9&&void 0x0!==_0x2846f9['forceValue']?_0x2846f9['forceValue']:!_0x45a4b4['value'];let _0x3092a7;_0x2846f9['language']||(_0x2846f9['language']=_0x3b81a1[0x0]['language']),_0x3092a7=_0x13ec3f?Array['from'](_0x4a077d['getSelectedBlocks']())['filter'](_0x4dd676=>co(_0x4dd676)||function(_0x658aef,_0x7b1d3){if(_0x658aef['is']('rootElement')||_0x7b1d3['isLimit'](_0x658aef))return!0x1;return _0x7b1d3['checkChild'](_0x658aef['parent'],'codeBlock');}(_0x4dd676,_0x3cffd3['schema'])):Array['from'](_0x4a077d['getSelectedBlocks']())['filter'](_0x1a49c8=>co(_0x1a49c8));const _0x3b31d0=to(_0x3092a7,_0x3cffd3);_0x3cffd3['change'](()=>{for(const _0x176ca9 of _0x3b31d0)_0x106860['markBlockFormat'](_0x176ca9,{'commandName':'codeBlock','commandParams':[{..._0x2846f9,'forceValue':_0x13ec3f}],'formatGroupId':'blockName'});});}),(_0x106860['descriptionFactory']['registerElementLabel']('codeBlock',_0x1fa7ff=>o(_0x159ad7,'ELEMENT_CODE_BLOCK',_0x1fa7ff)),_0x106860['descriptionFactory']['registerDescriptionCallback'](_0x18ccb5=>{if('formatBlock'!=_0x18ccb5['type'])return;const _0x12ebb8=_0x159ad7['t'],{data:_0x44fe49}=_0x18ccb5;if(!_0x44fe49||'codeBlock'!=_0x44fe49['commandName'])return;const _0x50a9d1=_0x44fe49['commandParams'][0x0]['language'],_0x1c4490=_0x12ebb8(_0x3b81a1['find'](_0x4ee340=>_0x4ee340['language']===_0x50a9d1)['label'])['toLowerCase']();return _0x44fe49['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x159ad7,'*Set\x20format:*\x20%0',o(_0x159ad7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1c4490+')')}:{'type':'format','content':o(_0x159ad7,'*Remove\x20format:*\x20%0',o(_0x159ad7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x82fee0){return'codeBlock'==_0x82fee0['name'];}class z extends _0x116a29{['afterInit'](){const _0x8c7cfd=this['editor'];if(!_0x8c7cfd['plugins']['has']('CommentsEditing'))return;_0x8c7cfd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x116a29{static get['requires'](){return[_0x5dc36c];}['init'](){const _0x151ab5=this['editor'],_0x230ab9=_0x151ab5['plugins']['get']('TrackChangesEditing');_0x230ab9['enableCommand']('delete');const _0x2930f1=_0x151ab5['commands']['get']('deleteForward');_0x230ab9['enableCommand']('deleteForward',(_0x2d9729,_0x138210={})=>{const _0x4bcd2e=_0x151ab5['model']['createSelection'](_0x151ab5['model']['document']['selection']);_0x4bcd2e['isCollapsed']&&_0x151ab5['model']['modifySelection'](_0x4bcd2e,{'direction':'forward','unit':_0x138210['unit']});const _0x5106b6=_0x4bcd2e['getFirstRange'](),_0x48906d=_0x2d8975['fromRange'](_0x5106b6);let _0x4db381;_0x2d9729(_0x138210),_0x4db381='$graveyard'==_0x48906d['root']['rootName']?_0x151ab5['model']['createRange'](_0x5106b6['start']):_0x151ab5['model']['createRange'](_0x48906d['start'],_0x48906d['end']),_0x48906d['detach'](),_0x151ab5['model']['enqueueChange'](_0x2930f1['buffer']['batch'],_0x2c6d6f=>{_0x2930f1['buffer']['lock'](),_0x2c6d6f['setSelection'](_0x2c6d6f['createRange'](_0x4db381['end'])),_0x2930f1['buffer']['unlock']();});});}}class W extends _0x116a29{['afterInit'](){const _0x2dee03=this['editor'];if(!_0x2dee03['plugins']['has']('ListEditing'))return;const _0x1490df=_0x2dee03['locale'],_0x270120=_0x2dee03['plugins']['get']('TrackChangesEditing'),_0xdf7434=_0x2dee03['plugins']['has']('TodoListEditing'),_0x34f874=!!_0x2dee03['config']['get']('list.multiBlock');function _0x1cb325(_0x35e401){return{'type':'format','content':''+o(_0x1490df,'*Set\x20format:*\x20%0',_0x35e401)};}function _0x5c7665(_0x245f80){return{'type':'format','content':''+o(_0x1490df,'*Remove\x20format:*\x20%0',_0x245f80)};}_0x270120['enableDefaultAttributesIntegration']('numberedList'),_0x270120['enableDefaultAttributesIntegration']('bulletedList'),_0x270120['enableDefaultAttributesIntegration']('customNumberedList'),_0x270120['enableDefaultAttributesIntegration']('customBulletedList'),_0x270120['enableDefaultAttributesIntegration']('indentList'),_0x270120['enableDefaultAttributesIntegration']('outdentList'),_0x270120['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x270120['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x34f874&&(_0x270120['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x270120['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xdf7434&&(_0x270120['enableDefaultAttributesIntegration']('todoList'),_0x270120['enableDefaultAttributesIntegration']('checkTodoList'),_0x270120['descriptionFactory']['registerDescriptionCallback'](_0x3eb04=>{const {data:_0x16b860}=_0x3eb04;if(_0x16b860&&'todoListChecked'==_0x16b860['key'])return{'type':'format','content':_0x16b860['newValue']?o(_0x1490df,'*Check\x20item*'):o(_0x1490df,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a684e=>{if(_0x2a684e['batch']['isUndo'])return!0x1;let _0x118382=!0x1;const _0x2b5fa4=_0x270120['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22465e=>'todoListChecked'===_0x270120['_getAttributeKey'](_0x22465e));for(const _0x7b59b7 of _0x2b5fa4){'todo'!=_0x7b59b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x270120['_findSuggestions'](_0x7b59b7['getFirstRange'](),'attribute')['find'](_0x16b240=>'listType'===_0x270120['_getAttributeKey'](_0x16b240['suggestion']))||(_0x2a684e['removeMarker'](_0x7b59b7['getFirstMarker']()),_0x118382=!0x0));}return _0x118382;})),_0x270120['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1490df,'FORMAT_INDENT'));const _0xc1b522={'type':'format','content':''};_0x270120['descriptionFactory']['registerDescriptionCallback'](_0x48102a=>{const {data:_0xb3a01c}=_0x48102a;if(!_0xb3a01c||'listType'!=_0xb3a01c['key'])return;let _0x3a33ea=_0x48102a['head'];for(;_0x3a33ea;){if(_0x3a33ea['data']&&(('listStyle'==_0x3a33ea['data']['key']||'listMarkerStyle'==_0x3a33ea['data']['key'])&&(_0x3a33ea['data']['newValue']&&'default'!=_0x3a33ea['data']['newValue']||'default'!=_0x3a33ea['data']['oldValue']&&!_0xb3a01c['newValue'])||!_0x34f874&&_0x3a33ea['data']['key']==m))return _0xc1b522;_0x3a33ea=_0x3a33ea['next'];}if(null==_0xb3a01c['newValue'])switch(_0xb3a01c['oldValue']){case'bulleted':return _0x5c7665(o(_0x1490df,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c7665(o(_0x1490df,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c7665(o(_0x1490df,'ELEMENT_TODO_LIST'));}switch(_0xb3a01c['newValue']){case'bulleted':return _0x1cb325(o(_0x1490df,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cb325(o(_0x1490df,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cb325(o(_0x1490df,'ELEMENT_TODO_LIST'));}}),_0x270120['descriptionFactory']['registerDescriptionCallback'](_0x50d23d=>{const {data:_0x494c4d}=_0x50d23d;if(_0x494c4d&&'listIndent'==_0x494c4d['key'])return null==_0x494c4d['newValue']||null==_0x494c4d['oldValue']&&0x0==_0x494c4d['newValue']?_0xc1b522:void 0x0;}),_0x270120['descriptionFactory']['registerDescriptionCallback'](_0xa99b44=>{if('attribute'!=_0xa99b44['type'])return;const {data:_0x1c5aab}=_0xa99b44;if(!_0x1c5aab||'listItemId'!=_0x1c5aab['key'])return;const _0x547e27=Te(_0xa99b44);return'newValue'==_0x547e27?{'type':'format','content':o(_0x1490df,'*Merge:*\x20list\x20item')}:'oldValue'==_0x547e27?{'type':'format','content':o(_0x1490df,'*Split:*\x20list\x20item')}:_0xc1b522;}),_0x2dee03['model']['document']['registerPostFixer'](_0x337056=>this['listItemIdFixer'](_0x337056)),_0x2dee03['model']['document']['registerPostFixer'](_0x304f75=>this['noTrackChangesFixer'](_0x304f75)),_0x2dee03['model']['document']['on']('change:data',(_0x23615f,_0x21fbef)=>{if(_0x21fbef['isUndo']||!_0x21fbef['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x261da9){if(_0x261da9['batch']['isUndo']||!_0x261da9['batch']['isLocal'])return!0x1;let _0x12671d=!0x1;const _0x33301c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe1ec7c=>_0xe1ec7c['data']&&'listItemId'==_0xe1ec7c['data']['key'])['filter'](_0x368b04=>_0x368b04['data']['newValue']&&_0x368b04['data']['oldValue']);for(const _0x1aaf5c of _0x33301c)Te(_0x1aaf5c)||(_0x261da9['removeMarker'](_0x1aaf5c['getFirstMarker']()),_0x12671d=!0x0);return _0x12671d;}['noTrackChangesFixer'](_0x42c190){if(_0x42c190['batch']['isUndo']||!_0x42c190['batch']['isLocal'])return!0x1;const _0x5d67a7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5d67a7['trackChangesCommand']['value'])return!0x1;let _0x42033d=!0x1;const _0x481c26=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x45ef7e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5ac152=>'attribute'==_0x5ac152['type'])['filter'](_0x5dda42=>_0x481c26['includes'](_0x5dda42['attributeKey']));if(0x0==_0x45ef7e['length'])return _0x42033d;for(const _0x3ddda7 of _0x45ef7e){const _0x3f653a=_0x5d67a7['_findSuggestions'](_0x3ddda7['range'],'attribute')['filter'](_0x182d34=>!_0x182d34['meta']['isNextTo'])['map'](_0xae8506=>_0xae8506['suggestion'])['filter'](_0xdae80d=>{const _0x507bf7=_0x5d67a7['_getAttributeKey'](_0xdae80d);return _0x481c26['includes'](_0x507bf7);});if(_0x3f653a['length']){for(const _0x40be68 of _0x3f653a)_0x42c190['removeMarker'](_0x40be68['getFirstMarker']());_0x42033d=!0x0;}}return _0x42033d;}['assureChains'](){const _0x32bcdd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51f538=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xe305ce;const _0x285198=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b4397=>{if(_0x1b4397['data']['oldRange']||!_0x1b4397['data']['newRange'])return null;if(!_0x1b4397['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xb94d68}=_0x32bcdd['_splitMarkerName'](_0x1b4397['name']);if(!_0x32bcdd['hasSuggestion'](_0xb94d68))return null;const _0x25c370=_0x32bcdd['getSuggestion'](_0xb94d68);return _0x51f538['includes'](_0x25c370['data']['key']);})['map'](_0x44342f=>{const {id:_0x191c5d}=_0x32bcdd['_splitMarkerName'](_0x44342f['name']),_0x253c4=_0x32bcdd['getSuggestion'](_0x191c5d);return _0xe305ce=_0x253c4['attributes']['groupId'],_0x253c4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x285198['size'])return;const _0x977390=_0x32bcdd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x193f81=>'attribute'==_0x193f81['type']&&_0x193f81['data']&&_0x51f538['includes'](_0x193f81['data']['key'])&&_0x193f81['attributes']['groupId']!=_0xe305ce)['map'](_0x3a987e=>({'listItem':_0x3a987e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3a987e['attributes']['groupId']})),_0x3d847f=new Set();for(const {groupId:_0x5dc08c,listItem:_0x360e05}of _0x977390)_0x285198['has'](_0x360e05)&&_0x3d847f['add'](_0x5dc08c);for(const _0x248440 of _0x32bcdd['getSuggestions']())_0x3d847f['has'](_0x248440['attributes']['groupId'])&&_0x248440['setAttribute']('groupId',_0xe305ce);}['_supportLegacySuggestions'](){const _0x37b7e4=this['editor'],_0x253509=_0x37b7e4['locale'],_0x3b67cd=_0x37b7e4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b67cd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2ff66e,_0xe3633d){const _0x43fa77=[];for(let _0x5e97d2 of _0x2ff66e)_0x5e97d2['start']['nodeAfter']===_0x5e97d2['end']['parent']&&(_0x5e97d2=_0x37b7e4['model']['createRange'](_0x37b7e4['model']['createPositionAt'](_0x5e97d2['start']['nodeAfter'],0x0))),_0x43fa77['push'](_0x5e97d2);_0x37b7e4['model']['change'](_0x5a4a38=>{const _0x74073a=_0x37b7e4['model']['document']['selection'],_0x58e8a9=Array['from'](_0x74073a['getRanges']())['map'](_0x544571=>_0x2d8975['fromRange'](_0x544571));_0x5a4a38['setSelection'](_0x43fa77),_0x37b7e4['commands']['get'](_0xe3633d['commandName'])['refresh'](),_0xe3633d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x37b7e4['execute'](_0xe3633d['commandName'],..._0xe3633d['commandParams']),_0x5a4a38['setSelection'](_0x58e8a9);for(const _0x182e13 of _0x58e8a9)_0x182e13['detach']();});}),_0x3b67cd['descriptionFactory']['registerElementLabel'](function(_0xd0a7f3){const _0xc5e8b9=!_0x37b7e4['model']['schema']['isObject'](_0xd0a7f3),_0x5504a3=_0xd0a7f3['previousSibling'],_0xffb16f=_0xd0a7f3['nextSibling'],_0x505b29=_0xd0a7f3['getAttribute']('listItemId'),_0x125e6c=!_0x5504a3||_0x5504a3['getAttribute']('listItemId')!==_0x505b29,_0x200d4b=!_0xffb16f||_0xffb16f['getAttribute']('listItemId')!==_0x505b29;return _0xc5e8b9&&Boolean(_0x505b29)&&_0x125e6c&&_0x200d4b;},_0x23509d=>o(_0x253509,'ELEMENT_LIST_ITEM',_0x23509d));}['_registerLegacyDescription'](){const _0x5540b8=this['editor'],_0x2e7065=_0x5540b8['locale'];function _0x13b3c6(_0x2345e3){const _0x126bd8=_0x5540b8['commands']['get']('bulletedList')['value'],_0x1e0f10=_0x5540b8['commands']['get']('numberedList')['value'];return'numberedList'===_0x2345e3?_0x126bd8:_0x1e0f10;}_0x5540b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3e0762){if('formatBlock'!=_0x3e0762['type'])return;const {data:_0x3c8ba4}=_0x3e0762;if(!_0x3c8ba4)return;let _0x2a48d7,_0x1d84c4,_0x55d7b7,_0x1db196;switch(_0x3c8ba4['commandName']){case'bulletedList':_0x55d7b7=_0x3c8ba4['commandParams'][0x0]['forceValue'],_0x1db196=_0x13b3c6(_0x3c8ba4['commandName']),_0x2a48d7=_0x55d7b7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1db196&&_0x5540b8['config']['get']('list.multiBlock')||(_0x2a48d7='*Change\x20to:*\x20%0'),_0x1d84c4={'type':'format','content':o(_0x2e7065,_0x2a48d7,o(_0x2e7065,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x55d7b7=_0x3c8ba4['commandParams'][0x0]['forceValue'],_0x1db196=_0x13b3c6(_0x3c8ba4['commandName']),_0x2a48d7=_0x55d7b7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1db196&&_0x5540b8['config']['get']('list.multiBlock')||(_0x2a48d7='*Change\x20to:*\x20%0'),_0x1d84c4={'type':'format','content':o(_0x2e7065,_0x2a48d7,o(_0x2e7065,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2a48d7='*Indent:*\x20%0',_0x1d84c4={'type':'format','content':o(_0x2e7065,_0x2a48d7,o(_0x2e7065,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2a48d7=function(_0x53711b){const _0x17898d=_0x53711b['getFirstRange']();let _0x9f9a66=_0x17898d['start']['nodeAfter'];for(;_0x9f9a66&&_0x17898d['containsItem'](_0x9f9a66);){if(_0x9f9a66['getAttribute']('listIndent')>0x0)return!0x1;_0x9f9a66=_0x9f9a66['nextSibling'];}return!0x0;}(_0x3e0762)?o(_0x2e7065,'*Format:*\x20remove\x20from\x20%0',o(_0x2e7065,function(_0x555062){return'ELEMENT_'+_0x555062['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3e0762))):o(_0x2e7065,'*Outdent:*\x20%0',o(_0x2e7065,'ELEMENT_LIST_ITEM')),_0x1d84c4={'type':'format','content':_0x2a48d7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3c8ba4['multipleBlocks']&&(_0x2a48d7='*Merge:*\x20%0',_0x1d84c4={'type':'deletion','content':o(_0x2e7065,_0x2a48d7,o(_0x2e7065,'ELEMENT_LIST_ITEM'))});}return _0x1d84c4;});}}function Te(_0x2d5f9e){let _0x3023c2=_0x2d5f9e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3023c2;){const _0x14fbec=_0x3023c2['getAttribute']('listItemId');if(!_0x14fbec)return!0x1;if(_0x14fbec==_0x2d5f9e['data']['newValue'])return'newValue';if(_0x14fbec==_0x2d5f9e['data']['oldValue'])return'oldValue';_0x3023c2=_0x3023c2['previousSibling'];}return!0x1;}class H extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4dac93=this['editor']['config']['get']('list.properties'),_0x5b1785=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dac93['styles']&&_0x5b1785['enableDefaultAttributesIntegration']('listStyle'),_0x4dac93['reversed']&&_0x5b1785['enableDefaultAttributesIntegration']('listReversed'),_0x4dac93['startIndex']&&_0x5b1785['enableDefaultAttributesIntegration']('listStart');const _0x38ac2f={'type':'format','content':''};_0x5b1785['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x369da4=this['editor']['locale'];_0x5b1785['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x369da4,'FORMAT_LIST_REVERSED')),_0x5b1785['descriptionFactory']['registerDescriptionCallback'](_0x20da34=>{const {data:_0x5efbea}=_0x20da34;if(_0x5efbea&&'listReversed'==_0x5efbea['key'])return null==_0x5efbea['newValue']||0x0==_0x5efbea['newValue']&&null==_0x5efbea['oldValue']?_0x38ac2f:void 0x0;}),_0x5b1785['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x369da4,'FORMAT_LIST_START')),_0x5b1785['descriptionFactory']['registerDescriptionCallback'](_0x1083a6=>{const {data:_0x4968af}=_0x1083a6;if(_0x4968af&&'listStart'==_0x4968af['key'])return null==_0x4968af['newValue']||0x1==_0x4968af['newValue']&&null==_0x4968af['oldValue']?_0x38ac2f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1767c4=>{if(_0x1767c4['batch']['isUndo'])return!0x1;let _0x174dee=!0x1;const _0x5e610b=_0x5b1785['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x361466=>{const _0x3568ee=_0x5b1785['_getAttributeKey'](_0x361466);return'listStart'==_0x3568ee||'listReversed'==_0x3568ee;});for(const _0x35d1cf of _0x5e610b){const _0x5341df=_0x35d1cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5341df||'customNumbered'==_0x5341df)continue;_0x5b1785['_findSuggestions'](_0x35d1cf['getFirstRange'](),'attribute')['find'](_0x166066=>'listType'==_0x5b1785['_getAttributeKey'](_0x166066['suggestion']))||(_0x1767c4['removeMarker'](_0x35d1cf['getFirstMarker']()),_0x174dee=!0x0);}return _0x174dee;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4d0958){const _0x2b97d5=this['editor']['locale'],{data:_0x5dac54}=_0x4d0958,_0x14d52a={'type':'format','content':''};if(!_0x5dac54||'listStyle'!=_0x5dac54['key'])return;if(!_0x5dac54['oldValue'])return'default'==_0x5dac54['newValue']?_0x14d52a:{'type':'format','content':''+o(_0x2b97d5,'*Set\x20format:*\x20%0',o(_0x2b97d5,this['_getTranslationKeyForListStyle'](_0x5dac54['newValue'])))};if(!_0x5dac54['newValue']){if('default'==_0x5dac54['oldValue'])return _0x14d52a;let _0x1ad5e4=_0x4d0958['head'];for(;_0x1ad5e4;){if(_0x1ad5e4['data']&&'listType'==_0x1ad5e4['data']['key']&&_0x1ad5e4['data']['newValue'])return _0x14d52a;_0x1ad5e4=_0x1ad5e4['next'];}return{'type':'format','content':''+o(_0x2b97d5,'*Remove\x20format:*\x20%0',o(_0x2b97d5,this['_getTranslationKeyForListStyle'](_0x5dac54['oldValue'])))};}if('default'!=_0x5dac54['newValue'])return{'type':'format','content':''+o(_0x2b97d5,'*Set\x20format:*\x20%0',o(_0x2b97d5,this['_getTranslationKeyForListStyle'](_0x5dac54['newValue'])))};let _0x307689=_0x4d0958['head'];for(;_0x307689;){if(_0x307689['data']&&'listType'==_0x307689['data']['key']&&_0x307689['data']['newValue']&&_0x307689['data']['oldValue'])return _0x14d52a;_0x307689=_0x307689['next'];}return{'type':'format','content':o(_0x2b97d5,'*Set\x20format:*\x20%0',o(_0x2b97d5,'ELEMENT_'+_0x4d0958['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x51c4e1=this['editor'],_0x2d295a=_0x51c4e1['locale'];_0x51c4e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2566bd=>{if('formatBlock'!=_0x2566bd['type'])return;const {data:_0x5d7b36}=_0x2566bd;if(!_0x5d7b36)return;let _0x47462d,_0x2e64dd;switch(_0x5d7b36['commandName']){case'listStyle':_0x47462d='*Change\x20to:*\x20%0',_0x2e64dd={'type':'format','content':o(_0x2d295a,_0x47462d,o(_0x2d295a,this['_getTranslationKeyForListStyle'](_0x5d7b36['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47462d=_0x5d7b36['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e64dd={'type':'format','content':o(_0x2d295a,_0x47462d)};break;case'listStart':_0x47462d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e64dd={'type':'format','content':o(_0x2d295a,_0x47462d,_0x5d7b36['commandParams'][0x0]['startIndex'])};}return _0x2e64dd;});}['_getTranslationKeyForListStyle'](_0x716ae2){return'ELEMENT_'+function(_0x4f44b2){if(ye['includes'](_0x4f44b2))return'bulleted';if(Se['includes'](_0x4f44b2))return'numbered';return null;}(_0x716ae2)['toUpperCase']()+'_LIST_'+_0x716ae2['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x116a29{['afterInit'](){const _0x289f36=this['editor'];_0x289f36['commands']['get']('emoji')&&_0x289f36['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x116a29{static get['requires'](){return[_0x402d32];}['init'](){const _0x4c79c0=this['editor'],_0x2eae3f=_0x4c79c0['plugins']['get']('TrackChangesEditing'),_0x938421=_0x4c79c0['commands']['get']('enter');_0x2eae3f['enableCommand']('enter',()=>{_0x4c79c0['model']['change'](_0x4876ad=>{const _0x50ffe2=_0x4c79c0['model']['document']['selection'],_0x1d9910=_0x50ffe2['getFirstPosition'](),_0x39fe2f=_0x2d8975['fromRange'](_0x50ffe2['getFirstRange']());if(_0x938421['enterBlock'](_0x4876ad)){const _0x140def=_0x4c79c0['model']['createPositionAt'](_0x1d9910['parent']['nextSibling'],0x0),_0x3077f8=_0x4876ad['createRange'](_0x1d9910,_0x140def);_0x2eae3f['markInsertion'](_0x3077f8);}else _0x4876ad['setSelection'](_0x4876ad['createRange'](_0x39fe2f['end']));_0x39fe2f['detach'](),_0x938421['fire']('afterExecute',{'writer':_0x4876ad});});});}}class Y extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x46b30a=this['editor']['plugins']['get']('TrackChangesEditing');_0x46b30a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x46b30a['enableCommand']('findNext'),_0x46b30a['enableCommand']('findPrevious'),_0x46b30a['enableCommand']('replace'),_0x46b30a['enableCommand']('replaceAll');}['handleFindCommand'](_0x5e0132,_0x27a5ab,_0x4154bd={}){const _0x3d2e50=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5e0132(_0x2c9315=>{let _0x349673=('string'==typeof _0x27a5ab?_0x3d2e50['findByTextCallback'](_0x27a5ab,_0x4154bd):_0x27a5ab)(_0x2c9315);Array['isArray'](_0x349673)&&(_0x349673={'results':_0x349673,'searchText':'string'==typeof _0x27a5ab?_0x27a5ab:''});const _0x38b0d1=_0x349673['results']['filter'](_0x3a66bd=>!0x1===this['_isInDeletionRange'](_0x3a66bd,_0x2c9315['item']));return{..._0x349673,'results':_0x38b0d1};},_0x4154bd);}['_isInDeletionRange'](_0x43be02,_0xe0e348){const _0x3e556c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xe0e348,_0x43be02['start']),this['editor']['model']['createPositionAt'](_0xe0e348,_0x43be02['end']));for(const _0x483ca2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3e556c['getIntersection'](_0x483ca2['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 _0x116a29{['afterInit'](){const _0x11349e=this['editor']['locale'],_0x207bb9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xe57e46,commandName:_0xe53ee1}of eo)this['editor']['plugins']['has'](_0xe57e46)&&_0x207bb9['enableDefaultAttributesIntegration'](_0xe53ee1);_0x207bb9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11349e,'FORMAT_FONT_SIZE')),_0x207bb9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11349e,'FORMAT_FONT_FAMILY')),_0x207bb9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11349e,'FORMAT_FONT_COLOR')),_0x207bb9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11349e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a0211=this['editor'],_0x2f37b5=_0x3a0211['locale'];_0x3a0211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30bc3c=>{const _0x5721d7=_0x2f37b5['t'];if('formatInline'!=_0x30bc3c['type'])return;const {data:_0x5e470f}=_0x30bc3c;if(null!=_0x5e470f){if('fontSize'==_0x5e470f['commandName']){const _0x5932b8=_0x5e470f['commandParams'][0x0]['value'];if(_0x5932b8){const _0x52d0ad=_0x5721d7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x39e49d=>_0x39e49d['model']==_0x5932b8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2f37b5,'*Set\x20font\x20size:*\x20%0',_0x52d0ad)};}return{'type':'format','content':o(_0x2f37b5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5e470f['commandName']){const _0x1dbd6b=_0x5e470f['commandParams'][0x0]['value'];return _0x1dbd6b?{'type':'format','content':o(_0x2f37b5,'*Set\x20font\x20family:*\x20%0',_0x1dbd6b)}:{'type':'format','content':o(_0x2f37b5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5e470f['commandName']){const _0x49c5b1=_0x5e470f['commandParams'][0x0]['value'];if(_0x49c5b1){const _0x22fc88=_0x197994(this['editor']['config']['get']('fontColor.colors'))['find'](_0x54b51a=>_0x54b51a['model']==_0x49c5b1);let _0x23cf13=_0x49c5b1,_0x29f5a5='';return _0x22fc88&&(_0x23cf13=_0x22fc88['label'],_0x29f5a5=_0x5721d7(_0x23cf13)['toLowerCase']()),{'type':'format','content':o(_0x2f37b5,'*Set\x20font\x20color:*\x20%0',_0x29f5a5)['trim'](),'color':{'value':_0x49c5b1,'title':_0x29f5a5||_0x23cf13}};}return{'type':'format','content':o(_0x2f37b5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5e470f['commandName']){const _0xb25933=_0x5e470f['commandParams'][0x0]['value'];if(_0xb25933){const _0x371d73=_0x197994(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x77ac11=>_0x77ac11['model']==_0xb25933);let _0x329f09=_0xb25933,_0x25302d='';return _0x371d73&&(_0x329f09=_0x371d73['label'],_0x25302d=_0x5721d7(_0x329f09)['toLowerCase']()),{'type':'format','content':o(_0x2f37b5,'*Set\x20font\x20background\x20color:*\x20%0',_0x25302d)['trim'](),'color':{'value':_0xb25933,'title':_0x25302d||_0x329f09}};}return{'type':'format','content':o(_0x2f37b5,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x116a29{['afterInit'](){const {plugins:_0x3fc9cc}=this['editor'];_0x3fc9cc['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3fc9cc['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x50adee,plugins:_0x1c7be4,commands:_0xe39b60}=this['editor'],_0x1e2f67=_0x1c7be4['get']('TrackChangesEditing');_0xe39b60['get']('footnotesStyle')&&_0x1e2f67['enableDefaultAttributesIntegration']('footnotesStyle'),_0xe39b60['get']('footnotesStart')&&_0x1e2f67['enableDefaultAttributesIntegration']('footnotesStart'),_0x1e2f67['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x50adee,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1e2f67['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x50adee,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4d9958=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xc05660,commands:_0x17c3ba}=this['editor'];_0x17c3ba['get']('insertFootnote')&&_0x4d9958['enableCommand']('insertFootnote'),_0x4d9958['descriptionFactory']['registerElementLabel']('footnoteRef',_0x35f06f=>o(_0xc05660,'ELEMENT_FOOTNOTE_REF',_0x35f06f)),_0x4d9958['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x490df9=>o(_0xc05660,'ELEMENT_FOOTNOTE_DEFINITION',_0x490df9)),_0x4d9958['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x139a1b=>o(_0xc05660,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x139a1b));}}class nt extends _0x116a29{['afterInit'](){const _0x2bd345=this['editor'],_0x1ec0b2=_0x2bd345['plugins']['get']('TrackChangesEditing'),_0x3c3dc8=_0x2bd345['commands']['get']('copyFormat'),_0x5ad523=_0x2bd345['commands']['get']('pasteFormat');_0x3c3dc8&&_0x5ad523&&(_0x1ec0b2['enableDefaultAttributesIntegration']('pasteFormat'),_0x1ec0b2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x351168=this['editor'],_0x3531bd=_0x351168['locale'];_0x351168['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe466d7=>{if('formatBlock'!=_0xe466d7['type']&&'formatInline'!=_0xe466d7['type'])return;const {data:_0x5d9163}=_0xe466d7;if(_0x5d9163&&'pasteFormat'===_0x5d9163['commandName']){const _0x280996=[],_0x1d6b74=_0x5d9163['commandParams'][0x0];for(const [_0x46e9bb,_0x2f276a]of Object['entries'](_0x1d6b74))_0x280996['push'](ro(_0x351168,_0x46e9bb,_0x2f276a));return _0x280996['length']?{'type':'format','content':o(_0x3531bd,'*Set\x20format\x20to:*\x20%0',_0x280996['join'](',\x20'))}:{'type':'format','content':o(_0x3531bd,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x10ba9b,_0x4e4940,_0x5207aa){const _0x400692=_0x10ba9b['locale']['t'],_0x39d297=_0x4e4940['split'](/(?=[A-Z])/)['join']('\x20'),_0x584ea6=_0x400692(_0x39d297['charAt'](0x0)['toUpperCase']()+_0x39d297['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5207aa)return _0x584ea6;if('fontColor'===_0x4e4940||'fontBackgroundColor'===_0x4e4940){const _0x19d5f3=_0x197994(_0x10ba9b['config']['get']('fontColor.colors'))['find'](_0x4afcc6=>_0x4afcc6['model']==_0x5207aa);return _0x584ea6+'\x20('+(_0x19d5f3?_0x400692(_0x19d5f3['label'])['toLowerCase']():_0x5207aa)+')';}if('fontSize'===_0x4e4940&&isNaN(parseFloat(_0x5207aa))){const _0x4a2654=_0x10ba9b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x10ba9b['config']['get']('fontSize.options'))['find'](_0x53e50a=>_0x53e50a['model']==_0x5207aa);return _0x584ea6+'\x20('+(_0x4a2654?_0x400692(_0x4a2654['title'])['toLowerCase']():_0x5207aa)+')';}return _0x584ea6+'\x20('+_0x5207aa+')';}class it extends _0x116a29{['_headingOptions'];['afterInit'](){const _0x3b4150=this['editor'];if(!_0x3b4150['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3b4150['config']['get']('heading.options');const _0x3e45e3=_0x3b4150['locale'],_0x59ef76=_0x3b4150['plugins']['get']('TrackChangesEditing');_0x59ef76['enableDefaultAttributesIntegration']('heading');for(const _0x8bbf2d of this['_headingOptions'])'paragraph'!=_0x8bbf2d['model']&&_0x59ef76['descriptionFactory']['registerElementLabel'](_0x8bbf2d['model'],_0x1694f1=>{const _0x1e3a53=this['_getHeadingLevel'](_0x8bbf2d['model']);return null!==_0x1e3a53?_0x51befc(_0x1694f1,_0x1e3a53):_0x1334d9(_0x1694f1,_0x8bbf2d['title']);});function _0x51befc(_0x17f3ba,_0x152d5d){return o(_0x3e45e3,'ELEMENT_HEADING',[_0x17f3ba,_0x152d5d]);}function _0x1334d9(_0x3da405,_0x25e24c){return o(_0x3e45e3,'ELEMENT_HEADING_CUSTOM',[_0x3da405,_0x25e24c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cd6ac=this['editor'],_0x32813d=_0x1cd6ac['locale'];function _0x51906f(_0x453b56,_0x134ddd){return o(_0x32813d,'ELEMENT_HEADING_CUSTOM',[_0x453b56,_0x134ddd]);}_0x1cd6ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bd369=>{if('formatBlock'!=_0x4bd369['type'])return;const {data:_0x592842}=_0x4bd369;if(_0x592842&&'heading'==_0x592842['commandName']){const _0x2d4ec6=_0x592842['commandParams'][0x0]['value'],_0x2b7dae=this['_getHeadingLevel'](_0x2d4ec6);if(null!==_0x2b7dae)return{'type':'format','content':o(_0x32813d,'*Change\x20to:*\x20%0',(_0x1a4a73=0x1,_0x2b735c=_0x2b7dae,o(_0x32813d,'ELEMENT_HEADING',[_0x1a4a73,_0x2b735c])))};const _0x411d44=this['_headingOptions']['find'](_0x47ad12=>_0x47ad12['model']===_0x2d4ec6)['title'];return{'type':'format','content':o(_0x32813d,'*Change\x20to:*\x20%0',_0x51906f(0x1,_0x411d44))};}var _0x1a4a73,_0x2b735c;});}['_getHeadingLevel'](_0x336c89){const _0x15fbb6=_0x336c89['match'](/^heading(\d+)/);if(_0x15fbb6)return _0x15fbb6[0x1];const _0x45fa66=this['_headingOptions']?.['find'](_0x9de5a0=>_0x9de5a0['model']==_0x336c89);if(_0x45fa66&&_0x45fa66['view']){const _0x49e0ed=_0x45fa66['view'],_0x4faf73=(_0x49e0ed['name']??_0x49e0ed)['match'](/^h(\d+)/);if(_0x4faf73)return _0x4faf73[0x1];}return null;}}class et extends _0x116a29{['afterInit'](){const _0x208a0e=this['editor'];if(!_0x208a0e['plugins']['has']('HighlightEditing'))return;const _0x348a93=_0x208a0e['plugins']['get']('TrackChangesEditing'),_0x3376d1=_0x208a0e['locale'];_0x348a93['enableDefaultAttributesIntegration']('highlight'),_0x348a93['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3376d1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45e877=this['editor'],_0x45ab53=_0x45e877['locale'];_0x45e877['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5607a7=>{if('formatInline'!=_0x5607a7['type'])return;const {data:_0x1a7169}=_0x5607a7;if(_0x1a7169&&'highlight'==_0x1a7169['commandName']){const _0x41ad4a=_0x45ab53['t'],_0x3a62ff=_0x1a7169['commandParams'][0x0]['value'];if(_0x3a62ff){const _0x2d71f7=_0x45e877['config']['get']('highlight.options')['find'](_0xf9b031=>_0xf9b031['model']==_0x3a62ff),_0x45f2bf=_0x41ad4a(_0x2d71f7['title'])['toLowerCase']();return{'type':'format','content':o(_0x45ab53,'*Set\x20highlight:*\x20%0',_0x45f2bf),'color':{'value':_0x2d71f7['color'],'title':_0x2d71f7['title']}};}return{'type':'format','content':o(_0x45ab53,'*Remove\x20highlight*',o(_0x45ab53,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x116a29{['afterInit'](){const _0x4b0ace=this['editor'];if(!_0x4b0ace['plugins']['has']('HorizontalLineEditing'))return;_0x4b0ace['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf26b77=_0x4b0ace['plugins']['get']('TrackChangesEditing'),_0x30a093=_0x4b0ace['locale'];_0xf26b77['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3fcc92=>o(_0x30a093,'ELEMENT_HORIZONTAL_LINE',_0x3fcc92));}}class ot extends _0x116a29{['afterInit'](){const _0x5399d4=this['editor'];if(!_0x5399d4['plugins']['has']('HtmlEmbed'))return;const _0x2288d1=_0x5399d4['plugins']['get']('TrackChangesEditing'),_0x3becc8=_0x5399d4['locale'];_0x2288d1['descriptionFactory']['registerElementLabel']('rawHtml',_0x1f02af=>o(_0x3becc8,'ELEMENT_HTML_EMBED',_0x1f02af)),_0x2288d1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2288d1['descriptionFactory']['registerDescriptionCallback'](_0x338a24=>{if('attribute'!=_0x338a24['type'])return;const {data:_0x27bd80}=_0x338a24;if(_0x27bd80&&'value'==_0x27bd80['key']&&_0x338a24['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1685bc=o(_0x3becc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3becc8,'*Change\x20%0\x20content*',_0x1685bc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ee3a9=this['editor'],_0x23b3bc=_0x2ee3a9['locale'];_0x2ee3a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b3320=>{if('formatBlock'!=_0x3b3320['type'])return;const {data:_0x11eaba}=_0x3b3320;if(_0x11eaba&&'htmlEmbed'==_0x11eaba['commandName']){const _0x1ba308=o(_0x23b3bc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x23b3bc,'*Change\x20%0\x20content*',_0x1ba308)};}});}}class rt extends _0x116a29{['afterInit'](){const _0x4c0fa5=this['editor'];if(!_0x4c0fa5['plugins']['has']('ImageEditing'))return;const _0x5c86d6=_0x4c0fa5['plugins']['get']('TrackChangesEditing'),_0x277bd8=_0x4c0fa5['plugins']['get']('ImageUtils'),_0x2de108=_0x4c0fa5['locale'];_0x5c86d6['enableCommand']('insertImage'),_0x5c86d6['descriptionFactory']['registerElementLabel']('imageBlock',_0x363fa7=>o(_0x2de108,'ELEMENT_IMAGE',_0x363fa7)),_0x5c86d6['descriptionFactory']['registerElementLabel']('imageInline',_0x551412=>o(_0x2de108,'ELEMENT_INLINE_IMAGE',_0x551412)),_0x5c86d6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2de108,'ELEMENT_CAPTION')),_0x4c0fa5['plugins']['has']('ImageUploadEditing')&&_0x5c86d6['enableCommand']('uploadImage'),_0x4c0fa5['plugins']['has']('ImageBlockEditing')&&_0x4c0fa5['plugins']['has']('ImageInlineEditing')&&(_0x5c86d6['enableCommand']('imageTypeInline',(_0x26b397,_0x28487e)=>{const _0x4765e6=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']);_0x4c0fa5['model']['change'](()=>{_0x5c86d6['markBlockFormat'](_0x4765e6,{'commandName':'imageTypeInline','commandParams':[_0x28487e]},[],'convertBlockImageToInline');});}),_0x5c86d6['enableCommand']('imageTypeBlock',(_0x28667,_0x514164)=>{_0x4c0fa5['model']['change'](_0xc2f2f6=>{let _0x37d2f3=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']),_0x32005d=_0xc2f2f6['createRangeOn'](_0x37d2f3);const _0x462c6e=_0x5cd0d0['fromPosition'](_0x32005d['start'],'toPrevious'),_0x21c8ca=_0x5cd0d0['fromPosition'](_0x32005d['end'],'toNext');_0x5c86d6['forceDefaultExecution'](()=>_0x28667(_0x514164)),_0x37d2f3=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']),_0x32005d=_0xc2f2f6['createRangeOn'](_0x37d2f3);const _0x26a4a4=_0xc2f2f6['createRange'](_0x462c6e,_0x21c8ca);_0x462c6e['detach'](),_0x21c8ca['detach'](),_0x5c86d6['markBlockFormat'](_0x37d2f3,{'commandName':'imageTypeInline','commandParams':[_0x514164]},[],'convertInlineImageToBlock'),_0x26a4a4['start']['isBefore'](_0x32005d['start'])&&_0x5c86d6['markInsertion'](_0xc2f2f6['createRange'](_0x26a4a4['start'],_0x32005d['start']),'convertInlineImageToBlock'),_0x32005d['end']['isBefore'](_0x26a4a4['end'])&&_0x5c86d6['markInsertion'](_0xc2f2f6['createRange'](_0x32005d['end'],_0x26a4a4['end']),'convertInlineImageToBlock');});}),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5c86d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x562451])=>{const _0x46298c=_0x5c86d6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44c0c0=_0x562451['start'],_0x6ff57b=_0x562451['end'];const _0x1b6962=_0x4c0fa5['model']['schema']['getNearestSelectionRange'](_0x44c0c0,'backward'),_0x36c544=_0x4c0fa5['model']['schema']['getNearestSelectionRange'](_0x6ff57b,'forward');_0x1b6962['isCollapsed']&&(_0x44c0c0=_0x1b6962['start']),_0x36c544['isCollapsed']&&(_0x6ff57b=_0x36c544['end']),_0x46298c([_0x4c0fa5['model']['createRange'](_0x44c0c0,_0x6ff57b)]);}),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4fa767),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4fa767)),_0x4c0fa5['plugins']['has']('ImageCaptionEditing')&&(_0x5c86d6['enableCommand']('toggleImageCaption',(_0x23a68c,_0x271dd7)=>{const _0x52cca8=_0x4c0fa5['plugins']['get']('ImageCaptionUtils');let _0x439dd5=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']),_0x21949b=_0x52cca8['getCaptionFromImageModelElement'](_0x439dd5);_0x4c0fa5['model']['change'](()=>{if(_0x21949b)return void _0x5c86d6['markDeletion'](_0x4c0fa5['model']['createRangeOn'](_0x21949b));const _0x31f73f=_0x277bd8['isBlockImage'](_0x439dd5);_0x23a68c(_0x271dd7),_0x439dd5=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']),_0x21949b=_0x52cca8['getCaptionFromImageModelElement'](_0x439dd5),_0x5c86d6['markInsertion'](_0x4c0fa5['model']['createRangeOn'](_0x21949b),_0x31f73f?null:'imageCaption');});}),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4fa767));const _0x530da5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5011c0(_0x3bf801,_0x591aa7){const _0x5c1094=_0x530da5['findIndex'](({type:_0x3cc56c,subType:_0x535577})=>_0x3bf801['type']==_0x3cc56c&&_0x3bf801['subType']==_0x535577),_0x2af9be=_0x530da5['findIndex'](({type:_0x4f2253,subType:_0x1ad83a})=>_0x591aa7['type']==_0x4f2253&&_0x591aa7['subType']==_0x1ad83a);if(_0x5c1094<0x0||_0x2af9be<0x0)return!0x1;const _0xcadb42=_0x3bf801['getFirstRange'](),_0x50bd5a=_0x591aa7['getFirstRange']();if((0x0==_0x5c1094||0x1==_0x5c1094)&&0x2==_0x2af9be&&_0xcadb42['isIntersecting'](_0x50bd5a))return!0x0;if(0x2==_0x5c1094&&0x3==_0x2af9be){const _0x38d715=_0x5c86d6['_findSuggestions'](_0xcadb42,'insertion')['filter'](({suggestion:_0x2e4a42,meta:_0x3605e1})=>_0x3605e1['isOwn']&&'convertInlineImageToBlock'==_0x2e4a42['subType']);if(_0x38d715['length']>0x1&&_0x50bd5a['end']['isEqual'](_0xcadb42['start']))return!0x0;if(0x1==_0x38d715['length']&&(_0xcadb42['start']['isEqual'](_0x50bd5a['end'])||_0xcadb42['end']['isEqual'](_0x50bd5a['start'])))return!0x0;}if(0x3==_0x5c1094&&0x3==_0x2af9be&&_0xcadb42['start']['isBefore'](_0x50bd5a['start'])){const _0x4afdcf=_0xcadb42['end']['nodeAfter'],_0x23c0c2=_0x50bd5a['start']['nodeBefore'];return _0x277bd8['isBlockImage'](_0x4afdcf)&&_0x4afdcf===_0x23c0c2;}return!0x1;}function _0x4fa767(_0x4ad0b7,_0x5ac44f){return _0x5011c0(_0x4ad0b7,_0x5ac44f)?[_0x4ad0b7,_0x5ac44f]:_0x5011c0(_0x5ac44f,_0x4ad0b7)?[_0x5ac44f,_0x4ad0b7]:null;}_0x4c0fa5['plugins']['has']('ImageResize')&&(_0x5c86d6['enableDefaultAttributesIntegration']('resizeImage'),_0x5c86d6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2de108,'FORMAT_IMAGE_SIZE'))),_0x4c0fa5['plugins']['has']('ImageTextAlternativeEditing')&&_0x5c86d6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c0fa5['plugins']['has']('PictureEditing')&&_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x15bdf1=>{if('attribute'!=_0x15bdf1['type'])return;const {data:_0x1270d5}=_0x15bdf1;return _0x1270d5&&'sources'==_0x1270d5['key']?{'type':'format','content':''}:void 0x0;}),_0x4c0fa5['plugins']['has']('ImageSizeAttributes')&&_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x4f38f2=>{if('attribute'!=_0x4f38f2['type'])return;const {data:_0x18b48e}=_0x4f38f2;return!_0x18b48e||'width'!=_0x18b48e['key']&&'height'!=_0x18b48e['key']?void 0x0:{'type':'format','content':''};}),_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x530015=>{if(!!_0x530da5['find'](({type:_0xf0d11c,subType:_0x3a4981})=>_0x530015['type']==_0xf0d11c&&_0x530015['subType']==_0x3a4981))return _0x530015['previous']?{}:void 0x0;}),_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x17a275=>{if('insertion'==_0x17a275['type']||'deletion'==_0x17a275['type']){const _0x4e8eb8=_0x17a275['getContainedElement']();if(_0x4e8eb8&&_0x4e8eb8['is']('element','caption'))return{'type':'insertion'==_0x17a275['type']?'addObject':'removeObject','element':_0x4e8eb8,'quantity':0x1};}}),_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x58f134=>'formatBlock'==_0x58f134['type']&&'convertInlineImageToBlock'==_0x58f134['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58f134['type']&&'convertBlockImageToInline'==_0x58f134['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x4cae84=>{if('attribute'!=_0x4cae84['type'])return;const {data:_0x200f80}=_0x4cae84;if(!_0x200f80||'alt'!=_0x200f80['key'])return;const _0x425c85=_0x200f80['newValue'];return _0x425c85?{'type':'format','content':o(_0x2de108,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x425c85+'\x22')}:{'type':'format','content':o(_0x2de108,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b053e=this['editor'],_0x4e8664=_0x1b053e['locale'];_0x1b053e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4be9ec=>{if('formatBlock'!=_0x4be9ec['type']&&'formatInline'!=_0x4be9ec['type'])return;const {data:_0x4be820}=_0x4be9ec;if(_0x4be820){if('imageTextAlternative'==_0x4be820['commandName']){const _0x5829bb=_0x4be820['commandParams'][0x0]['newValue'];return _0x5829bb?{'type':'format','content':o(_0x4e8664,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5829bb+'\x22')}:{'type':'format','content':o(_0x4e8664,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4be820['commandName']){const _0x216dfa=_0x4be820['commandParams'][0x0]['width'];return _0x216dfa?{'type':'format','content':o(_0x4e8664,'*Set\x20image\x20width:*\x20%0',_0x216dfa)}:{'type':'format','content':o(_0x4e8664,'*Reset\x20image\x20width*')};}}});}}class at extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2f9b94=this['editor']['locale'],_0x2325fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x2325fa['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2325fa['descriptionFactory']['registerDescriptionCallback'](_0xa6b003=>{if('attribute'!=_0xa6b003['type'])return;const {data:_0x4f1dce}=_0xa6b003;return _0x4f1dce&&'src'==_0x4f1dce['key']?_0x4f1dce['newValue']&&_0x4f1dce['oldValue']?{'type':'format','content':o(_0x2f9b94,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fde67=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fde67['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fde67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fde67['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fde67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51d889=this['editor'],_0x3483b2=_0x51d889['locale'];_0x51d889['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378be3=>{if('formatBlock'!=_0x378be3['type']&&'formatInline'!=_0x378be3['type'])return;const {data:_0x3b044e}=_0x378be3;if(!_0x3b044e||'replaceImageSource'!=_0x3b044e['commandName'])return;return{'type':'format','content':o(_0x3483b2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x116a29{['afterInit'](){const _0x131656=this['editor'];if(!_0x131656['plugins']['has']('ImageStyleEditing'))return;const _0x386fa6=_0x131656['plugins']['get']('TrackChangesEditing'),_0x527592=_0x131656['plugins']['get']('ImageUtils'),_0x519231={};_0x386fa6['enableCommand']('imageStyle',(_0x40e9f2,_0x1795c2)=>{const _0x4ca259=_0x131656['plugins']['get']('Users')['me'],_0x1ce8cf=_0x131656['commands']['get']('imageStyle');let _0x55012f=_0x527592['getClosestSelectedImageElement'](_0x131656['model']['document']['selection']),_0x59a281=_0x131656['model']['createRangeOn'](_0x55012f),_0x27064b=_0x1ce8cf['value'];if(_0x27064b==_0x1795c2['value'])return;const _0x39e097={'commandName':'imageStyle','commandParams':[_0x1795c2],'formatGroupId':_0x492477()};_0x131656['model']['change'](()=>{if(_0x386fa6['getSuggestions']()['filter'](_0x200c08=>_0x200c08['isInContent']&&_0x4ca259==_0x200c08['author']&&('formatBlock'==_0x200c08['type']||'formatInline'==_0x200c08['type'])&&('imageStylePreApply'==_0x200c08['subType']||'imageStylePostApply'==_0x200c08['subType'])&&_0x200c08['getFirstRange']()['isEqual'](_0x59a281))['forEach'](_0x2dfd75=>_0x386fa6['discardSuggestion'](_0x2dfd75['head'])),_0x55012f=_0x527592['getClosestSelectedImageElement'](_0x131656['model']['document']['selection']),_0x59a281=_0x131656['model']['createRangeOn'](_0x55012f),_0x1ce8cf['refresh'](),_0x131656['commands']['get']('imageTypeInline')['refresh'](),_0x131656['commands']['get']('imageTypeBlock')['refresh'](),_0x27064b=_0x1ce8cf['value'],_0x27064b!=_0x1795c2['value'])return _0x527592['isInlineImage'](_0x55012f)&&_0x1ce8cf['shouldConvertImageType'](_0x1795c2['value'],_0x55012f)?(_0x40e9f2({..._0x1795c2,'setImageSizes':!0x1}),_0x55012f=_0x527592['getClosestSelectedImageElement'](_0x131656['model']['document']['selection']),void _0x386fa6['markBlockFormat'](_0x55012f,{..._0x39e097,'commandReversedParams':[{'value':_0x27064b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x527592['isBlockImage'](_0x55012f)?_0x386fa6['markBlockFormat'](_0x55012f,_0x39e097,[],'imageStylePostApply'):_0x386fa6['markInlineFormat'](_0x59a281,_0x39e097,'imageStylePostApply'));});});for(const _0x53aca6 of _0x131656['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x519231[_0x53aca6['name']]=_0x53aca6['title']['toLowerCase']();_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x14487d])=>{_0x527592['setImageNaturalSizeAttributes'](_0x14487d['getContainedElement']());}),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x48a964,_0x471f2c)=>{_0x386fa6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x48a964,{'commandName':_0x471f2c['commandName'],'commandParams':_0x471f2c['commandReversedParams']});}),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x18076c,_0x19a7be){if(_0x192f34(_0x18076c,_0x19a7be))return[_0x18076c,_0x19a7be];if(_0x192f34(_0x19a7be,_0x18076c))return[_0x19a7be,_0x18076c];return null;});const _0x2568cd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x192f34(_0x15d2c8,_0x5713f9){const _0x517407=_0x2568cd['findIndex'](({type:_0x5bfd2c,subType:_0x346959})=>_0x15d2c8['type']==_0x5bfd2c&&_0x15d2c8['subType']==_0x346959),_0x565c92=_0x2568cd['findIndex'](({type:_0x4d71cd,subType:_0x22c73f})=>_0x5713f9['type']==_0x4d71cd&&_0x5713f9['subType']==_0x22c73f);if(_0x517407<0x0||_0x565c92<0x0)return!0x1;const _0x411646=_0x15d2c8['getFirstRange'](),_0x571be8=_0x5713f9['getFirstRange']();if((0x0==_0x517407||0x1==_0x517407)&&0x2==_0x565c92&&_0x411646['isIntersecting'](_0x571be8))return!0x0;if(0x2==_0x517407&&0x3==_0x565c92){const _0x430224=_0x386fa6['_findSuggestions'](_0x411646,'insertion')['filter'](({suggestion:_0x1bbff1,meta:_0x538b04})=>_0x538b04['isOwn']&&'convertInlineImageToBlock'==_0x1bbff1['subType']);if(_0x430224['length']>0x1&&_0x571be8['end']['isEqual'](_0x411646['start']))return!0x0;if(0x1==_0x430224['length']&&(_0x411646['start']['isEqual'](_0x571be8['end'])||_0x411646['end']['isEqual'](_0x571be8['start'])))return!0x0;}if(0x3==_0x517407&&0x3==_0x565c92&&_0x411646['start']['isBefore'](_0x571be8['start'])){const _0x1712d4=_0x411646['end']['nodeAfter'],_0x34fea4=_0x571be8['start']['nodeBefore'];return _0x527592['isBlockImage'](_0x1712d4)&&_0x1712d4===_0x34fea4;}return!0x1;}_0x131656['model']['document']['registerPostFixer'](()=>{let _0x38d67b=!0x1;const _0x354e5a=Array['from'](_0x131656['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51d2a8,data:_0x3e9fc8}of _0x354e5a){const {group:_0x38b5de,type:_0x29f44d,subType:_0x31063f,id:_0x215e43}=_0x386fa6['_splitMarkerName'](_0x51d2a8);if('suggestion'==_0x38b5de&&_0x386fa6['hasSuggestion'](_0x215e43)){if('formatBlock'==_0x29f44d&&('imageStylePreApply'==_0x31063f||'imageStylePostApply'==_0x31063f)){const _0x35c5e6=_0x386fa6['getSuggestion'](_0x215e43);if(_0x3e9fc8['newRange']){const _0x30b53e=_0x35c5e6['getFirstRange']()['getContainedElement']();if(_0x527592['isBlockImage'](_0x30b53e))continue;_0x386fa6['discardSuggestion'](_0x35c5e6),_0x38d67b=!0x0;}}if('insertion'==_0x29f44d&&'imageCaption'==_0x31063f&&!_0x3e9fc8['newRange']){const _0x1bc21c=_0x386fa6['getSuggestion'](_0x215e43);_0x1bc21c['next']&&_0x1bc21c['next']['isInContent']&&(_0x386fa6['discardSuggestion'](_0x1bc21c['next']),_0x38d67b=!0x0);}}}return _0x38d67b;}),this['_registerLegacyDescription'](_0x519231);}['_registerLegacyDescription'](_0x4fcf74){const _0x1ecfc4=this['editor'],_0x533aa6=_0x1ecfc4['locale'];_0x1ecfc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a83eb=>{if('formatBlock'!=_0x4a83eb['type']&&'formatInline'!=_0x4a83eb['type'])return;const {data:_0x33127a}=_0x4a83eb;if(!_0x33127a||'imageStyle'!=_0x33127a['commandName'])return;const _0x1d3d61=_0x33127a['commandParams'][0x0]['value'];return _0x100377('side'===_0x1d3d61?o(_0x533aa6,'FORMAT_SIDE_IMAGE'):_0x4fcf74[_0x1d3d61]||_0x1d3d61);function _0x100377(_0x5a44f4){return{'type':'format','content':o(_0x533aa6,'*Format:*\x20%0',_0x5a44f4)};}});}}class ut extends _0x116a29{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x79fe47){super(_0x79fe47),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x361755=this['editor'],_0x3c17df=_0x361755['commands']['get']('importWord'),_0x38f537=_0x361755['commands']['get']('trackChanges');_0x3c17df&&(_0x3c17df['on']('execute',(_0x31df41,[,_0x33bb13])=>{this['_trackChangesValueDuringImport']=_0x38f537['value'],_0x33bb13['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c17df,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c17df,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x38f537['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x361755['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2911a0,_0x250124){const {suggestions:_0x12f5ea}=_0x250124,_0x3a8955=this['editor']['commands']['get']('trackChanges'),_0x15218e=_0x3a8955['value'];this['_trackChangesValueDuringImport']!==_0x15218e&&(_0x3a8955['execute'](),this['_trackChangesExecuted']=!0x0),_0x12f5ea&&_0x12f5ea['forEach'](({id:_0x354be6,type:_0x3a4467,author:_0x38484a,created_at:_0x425230})=>{const _0x148c81={'id':_0x354be6,'type':_0x3a4467,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38484a,'createdAt':_0x425230?new Date(_0x425230):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x148c81);});}}class ft extends _0x116a29{['afterInit'](){const _0x5653fb=this['editor'],_0x495eda=_0x5653fb['plugins']['get']('TrackChangesEditing');if(_0x5653fb['plugins']['has']('IndentEditing')&&(_0x495eda['enableCommand']('indent'),_0x495eda['enableCommand']('outdent')),_0x5653fb['plugins']['has']('IndentBlock')){for(const _0xf5d068 of['indentBlock','outdentBlock'])_0x495eda['enableDefaultAttributesIntegration'](_0xf5d068);}const _0x58e90a=_0x5653fb['locale'];_0x495eda['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x58e90a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fcbde=this['editor'],_0x2f97e1=_0x4fcbde['locale'],_0x4ddd46=_0x4fcbde['plugins']['get']('TrackChangesEditing');_0x4ddd46['descriptionFactory']['registerDescriptionCallback'](_0x2b931d=>{if('formatBlock'!=_0x2b931d['type'])return;const {data:_0x4e0617}=_0x2b931d;if(!_0x4e0617)return;if('indentBlock'!=_0x4e0617['commandName']&&'outdentBlock'!=_0x4e0617['commandName'])return;const _0x2dcbc2=_0x2b931d['getItems']()[0x0],_0x98831e=_0x4ddd46['descriptionFactory']['getItemLabel'](_0x2dcbc2);return'indentBlock'==_0x4e0617['commandName']?{'type':'format','content':o(_0x2f97e1,'*Indent:*\x20%0',_0x98831e)}:'outdentBlock'==_0x4e0617['commandName']?{'type':'format','content':o(_0x2f97e1,'*Outdent:*\x20%0',_0x98831e)}:void 0x0;});}}class ht extends _0x116a29{static get['requires'](){return[_0xfc0fdb];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x116a29{['afterInit'](){const _0xd1d0c6=this['editor'];if(!_0xd1d0c6['plugins']['has']('LinkEditing'))return;const _0x2f5927=_0xd1d0c6['plugins']['get']('TrackChangesEditing'),_0x10644e=_0xd1d0c6['commands']['get']('link');_0x2f5927['enableDefaultAttributesIntegration']('link'),_0x2f5927['enableDefaultAttributesIntegration']('unlink');for(const _0x1cdb21 of _0x10644e['manualDecorators'])_0x2f5927['descriptionFactory']['registerAttributeLabel'](_0x1cdb21['id'],'link\x20('+_0x1cdb21['label']['toLowerCase']()+')');_0x2f5927['descriptionFactory']['registerDescriptionCallback'](_0xa86b70=>{if('attribute'!=_0xa86b70['type'])return;const {data:_0x244217}=_0xa86b70;if(!_0x244217||'linkHref'!=_0x244217['key'])return;const _0x1449de=_0x244217['newValue'],_0x9a54f=_0xd1d0c6['locale'];return{'type':'format','content':null==_0x1449de?o(_0x9a54f,'*Remove\x20link*'):o(_0x9a54f,'*Set\x20link:*\x20%0','\x22'+_0x1449de+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5f57=this['editor'],_0x4d96df=_0x1b5f57['locale'];_0x1b5f57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x140d61=>{if('formatInline'!=_0x140d61['type'])return;const {data:_0x4e32a3}=_0x140d61;if(_0x4e32a3){if('link'==_0x4e32a3['commandName']){const _0x54881b=_0x4e32a3['commandParams'][0x0];return{'type':'format','content':o(_0x4d96df,'*Set\x20link:*\x20%0','\x22'+_0x54881b+'\x22')};}return'unlink'==_0x4e32a3['commandName']?{'type':'format','content':o(_0x4d96df,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x116a29{['afterInit'](){const _0x4146c5=this['editor'],_0x52a14c=_0x4146c5['locale'];if(!_0x4146c5['plugins']['has']('LegacyListEditing'))return;const _0x4932e=_0x4146c5['plugins']['get']('TrackChangesEditing'),_0x5d34ab=_0x4146c5['plugins']['has']('LegacyTodoListEditing');function _0x3aa0fe(_0x56a70f){return()=>{const _0x1b4907=_0x4146c5['model']['document']['selection'],_0x3b5044=_0x4146c5['commands']['get'](_0x56a70f);if(_0x3b5044['value'])return void _0x4146c5['execute']('paragraph',{});const _0x7f22cc=_0x56a70f['slice'](0x0,-0x4),_0x2ffc6f=function(_0x3e0fcf,_0x1280c9,_0x479f9d){let _0xbf937b=Array['from'](_0x3e0fcf)['filter'](_0x39e3e4=>function(_0x500755,_0x36e1fd){return _0x36e1fd['checkChild'](_0x500755['parent'],'listItem')&&!_0x36e1fd['isObject'](_0x500755);}(_0x39e3e4,_0x479f9d));_0xbf937b=_0xbf937b['filter'](_0x41e6e4=>!_0x41e6e4['is']('element','listItem')||_0x41e6e4['getAttribute']('listType')!=_0x1280c9);const _0x40cdd5=new Set();for(const _0x3e1755 of _0xbf937b)_0x3e1755['is']('element','listItem')?_0x40cdd5['add'](Le(_0x3e1755)):_0x40cdd5['add'](_0x3e1755);return Array['from'](_0x40cdd5);}(_0x1b4907['getSelectedBlocks'](),_0x7f22cc,_0x4146c5['model']['schema']);_0x4146c5['model']['change'](()=>{for(const _0x6b0f05 of _0x2ffc6f)_0x4932e['markBlockFormat'](_0x6b0f05,{'commandName':_0x56a70f,'commandParams':[{'forceValue':!_0x3b5044['value']}],'formatGroupId':'blockName'},Ee(_0x6b0f05));});};}function _0x23f566(_0x5085d9){return()=>{const _0x478954=function(_0x584eb5){let _0x48d2b4=Array['from'](_0x584eb5);const _0x30016e=_0x48d2b4['findIndex'](_0x49a5b6=>'listItem'!=_0x49a5b6['name']);return _0x30016e>-0x1&&(_0x48d2b4=_0x48d2b4['slice'](0x0,_0x30016e)),_0x48d2b4;}(_0x4146c5['model']['document']['selection']['getSelectedBlocks']()),_0x47f3fd=_0x4146c5['model']['createRange'](_0x4146c5['model']['createPositionAt'](_0x478954[0x0],'before'),_0x4146c5['model']['createPositionAt'](_0x478954[_0x478954['length']-0x1],'end'));_0x4146c5['model']['change'](()=>{_0x4932e['markBlockFormat'](_0x47f3fd,{'commandName':_0x5085d9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x40d2e2){const _0x29b511=new Set();for(const _0x4124b9 of _0x40d2e2){let _0x4db6d6=_0x4124b9['nextSibling'];for(;_0x4db6d6&&_0x4db6d6['getAttribute']('listIndent')>_0x4124b9['getAttribute']('listIndent');)_0x29b511['add'](_0x4db6d6),_0x4db6d6=_0x4db6d6['nextSibling'];}return Array['from'](_0x29b511);}(_0x478954));});};}_0x4932e['enableCommand']('numberedList',_0x3aa0fe('numberedList')),_0x4932e['enableCommand']('bulletedList',_0x3aa0fe('bulletedList')),_0x5d34ab&&_0x4932e['enableCommand']('todoList',_0x3aa0fe('todoList')),_0x4932e['enableCommand']('indentList',_0x23f566('indentList')),_0x4932e['enableCommand']('outdentList',_0x23f566('outdentList')),_0x5d34ab&&_0x4932e['enableCommand']('checkTodoList',()=>{const _0x5c5615=_0x4146c5['commands']['get']('checkTodoList'),_0x547409=Array['from'](_0x5c5615['_selectedElements']);_0x547409['filter'](_0xe8267c=>_0xe8267c['getAttribute']('todoListChecked')!=_0x5c5615['value']),_0x4146c5['model']['change'](()=>{for(const _0xe78ba4 of _0x547409)_0x4932e['markBlockFormat'](_0xe78ba4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5c5615['value']}]});});}),_0x4932e['descriptionFactory']['registerElementLabel']('listItem',_0x49e4d7=>o(_0x52a14c,'ELEMENT_LIST_ITEM',_0x49e4d7)),_0x4932e['descriptionFactory']['registerDescriptionCallback'](_0x189edb=>{if('formatBlock'!=_0x189edb['type']&&'formatInline'!=_0x189edb['type'])return;const {data:_0x21591c}=_0x189edb;if(_0x21591c){if('numberedList'==_0x21591c['commandName']||'bulletedList'==_0x21591c['commandName']||'todoList'==_0x21591c['commandName'])switch(_0x21591c['commandName']['replace']('List','')){case'bulleted':return _0x379266(o(_0x52a14c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x379266(o(_0x52a14c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x379266(o(_0x52a14c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x21591c['commandName'])return{'type':'format','content':o(_0x52a14c,'*Indent:*\x20%0',o(_0x52a14c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x21591c['commandName'])return{'type':'format','content':o(_0x52a14c,'*Outdent:*\x20%0',o(_0x52a14c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x21591c['commandName'])return _0x21591c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52a14c,'*Check\x20item*')}:{'type':'format','content':o(_0x52a14c,'*Uncheck\x20item*')};}function _0x379266(_0x1cf39c){return{'type':'format','content':o(_0x52a14c,'*Change\x20to:*\x20%0',_0x1cf39c)};}});}}function Le(_0x5c944a){const _0x1e1e56=_0x5c944a['getAttribute']('listIndent');if(0x0==_0x1e1e56)return _0x5c944a;let _0x4e8ce8=_0x5c944a;for(;_0x5c944a['previousSibling']&&_0x5c944a['previousSibling']['is']('element','listItem');){const _0x4fc5c3=_0x5c944a['previousSibling']['getAttribute']('listIndent');if(_0x4fc5c3==_0x1e1e56)_0x4e8ce8=_0x5c944a['previousSibling'];else{if(_0x4fc5c3<_0x1e1e56)break;}_0x5c944a=_0x5c944a['previousSibling'];}return _0x4e8ce8;}function Ee(_0x140b81){const _0x572e7d=[];if(_0x140b81['is']('element','listItem')&&_0x140b81['getAttribute']('listIndent')>0x0){let _0x2b4d99=_0x140b81['nextSibling'];for(;_0x2b4d99&&'listItem'==_0x2b4d99['name']&&_0x2b4d99['getAttribute']('listIndent')==_0x140b81['getAttribute']('listIndent');)_0x572e7d['push'](_0x2b4d99),_0x2b4d99=_0x2b4d99['nextSibling'];}return _0x572e7d;}class mt extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x31f72c=this['editor']['config']['get']('list.properties'),_0x5243be=this['editor']['plugins']['get']('TrackChangesEditing');_0x31f72c['styles']&&_0x5243be['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x31f72c['reversed']&&_0x5243be['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x31f72c['startIndex']&&_0x5243be['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5243be['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x30c853,_0x275098={}){const _0x1c164f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa21f58=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1c164f['markMultiRangeBlockFormat'](_0xa21f58,{'commandName':'listStyle','commandParams':[{'type':_0x275098['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2f9f32,_0x2a6ccd={}){const _0x53d271=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa0dbbe=this['_getSuggestionBlocks'](_0x36fefa=>_0x36fefa['is']('element','listItem')&&'numbered'===_0x36fefa['getAttribute']('listType'));if(_0xa0dbbe['length']<0x1)return;const _0x3597b3=_0xa0dbbe['map'](_0x2a2049=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a2049,'before'),this['editor']['model']['createPositionAt'](_0x2a2049,0x0)));this['editor']['model']['change'](()=>{_0x53d271['markMultiRangeBlockFormat'](_0x3597b3,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a6ccd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5d4441,_0x38fbe7={}){const _0x51b56c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3df14b=this['_getSuggestionBlocks'](_0xbfb628=>_0xbfb628['is']('element','listItem')&&'numbered'===_0xbfb628['getAttribute']('listType'));if(_0x3df14b['length']<0x1)return;const _0x5a1eee=_0x3df14b['map'](_0x48c0d5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48c0d5,'before'),this['editor']['model']['createPositionAt'](_0x48c0d5,0x0)));this['editor']['model']['change'](()=>{_0x51b56c['markMultiRangeBlockFormat'](_0x5a1eee,{'commandName':'listStart','commandParams':[{'startIndex':_0x38fbe7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x483b12){if('formatBlock'!=_0x483b12['type']&&'formatInline'!=_0x483b12['type'])return;const _0x483384=this['editor']['locale'],{data:_0x5324ce}=_0x483b12;if(!_0x5324ce)return;let _0x321365,_0xd973db;switch(_0x5324ce['commandName']){case'listStyle':_0x321365='*Change\x20to:*\x20%0',_0xd973db={'type':'format','content':o(_0x483384,_0x321365,o(_0x483384,this['_getTranslationKeyForListStyle'](_0x5324ce['commandParams'][0x0]['type'])))};break;case'listReversed':_0x321365=_0x5324ce['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd973db={'type':'format','content':o(_0x483384,_0x321365)};break;case'listStart':_0x321365='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd973db={'type':'format','content':o(_0x483384,_0x321365,_0x5324ce['commandParams'][0x0]['startIndex'])};}return _0xd973db;}['_getSuggestionBlocksForListStyle'](){const _0x3f17dc=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f0061=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2f0061[0x0]?.['is']('element','listItem')&&_0x2f0061['unshift'](..._0x3f17dc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2f0061[_0x2f0061['length']-0x1]?.['is']('element','listItem')&&_0x2f0061['push'](..._0x3f17dc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2f0061=[...new Set(_0x2f0061)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2f0061=_0x2f0061['filter'](_0xe82507=>_0xe82507['is']('element','listItem'))),_0x2f0061;}['_getSuggestionBlocks'](_0x2ae38e){const _0x3fba8d=this['editor']['plugins']['get']('LegacyListUtils');let _0x277fd6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ae38e)['map'](_0x16bec9=>{const _0x48abb7=this['editor']['model']['createPositionAt'](_0x16bec9,0x0);return[..._0x3fba8d['getSiblingNodes'](_0x48abb7,'backward'),..._0x3fba8d['getSiblingNodes'](_0x48abb7,'forward')];})['flat']();return _0x277fd6=[...new Set(_0x277fd6)],_0x277fd6;}['_getTranslationKeyForListStyle'](_0x32a911){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x32a911)||'default')['toUpperCase']()+'_LIST_'+_0x32a911['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x116a29{['afterInit'](){const _0x4d861c=this['editor'];if(!_0x4d861c['plugins']['has']('MediaEmbedEditing'))return;const _0x18b33c=_0x4d861c['plugins']['get']('TrackChangesEditing'),_0x2fed80=_0x4d861c['locale'];_0x18b33c['enableCommand']('mediaEmbed'),_0x18b33c['descriptionFactory']['registerElementLabel']('media',_0x3fcce7=>o(_0x2fed80,'ELEMENT_MEDIA',_0x3fcce7));}}class pt extends _0x116a29{['afterInit'](){const _0x4a7da0=this['editor'];_0x4a7da0['plugins']['has']('MentionEditing')&&_0x4a7da0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x116a29{['afterInit'](){const _0xe2fdca=this['editor'];if(!_0xe2fdca['plugins']['has']('MergeFieldsEditing'))return;const _0x4b10e9=_0xe2fdca['plugins']['get']('TrackChangesEditing'),_0x2ea542=_0xe2fdca['locale'];_0x4b10e9['enableCommand']('insertMergeField'),_0x4b10e9['enableCommand']('insertMergeFieldBlock'),_0x4b10e9['enableCommand']('insertMergeFieldImage'),_0x4b10e9['descriptionFactory']['registerElementLabel']('mergeField',_0x41f10f=>o(_0x2ea542,'ELEMENT_MERGE_FIELD',_0x41f10f)),_0x4b10e9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4f40c1=>o(_0x2ea542,'ELEMENT_MERGE_FIELD',_0x4f40c1)),_0x4b10e9['descriptionFactory']['registerDescriptionCallback'](_0x411ffc=>{if('insertion'!=_0x411ffc['type']&&'deletion'!=_0x411ffc['type'])return;const _0x5822e3=_0x411ffc['getContainedElement']();if(null==_0x5822e3)return;const _0x2c20f7=_0xe2fdca['plugins']['get']('MergeFieldsEditing');let _0x39d90a;switch(_0x2c20f7['getMergeFieldType'](_0x5822e3)){case null:return;case'image':{const _0x3ae041=_0x2c20f7['unwrapAffixes'](_0x5822e3['getAttribute']('src'));_0x39d90a=_0x2c20f7['getLabel'](_0x3ae041)||_0x3ae041;break;}default:{const _0x2947e0=_0x5822e3['getAttribute']('id');_0x39d90a=_0x2c20f7['getLabel'](_0x2947e0)||_0x2947e0;break;}}return'insertion'==_0x411ffc['type']?{'type':'insertion','content':o(_0x2ea542,'*Insert:*\x20%0','\x22'+_0x39d90a+'\x22\x20'+o(_0x2ea542,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2ea542,'*Remove:*\x20%0','\x22'+_0x39d90a+'\x22\x20'+o(_0x2ea542,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x116a29{['afterInit'](){const _0x1ccc30=this['editor'],_0x2cf4cd=_0x1ccc30['plugins']['get']('TrackChangesEditing');_0x1ccc30['plugins']['has']('MultiLevelList')&&(_0x2cf4cd['enableDefaultAttributesIntegration']('multiLevelList'),_0x2cf4cd['descriptionFactory']['registerDescriptionCallback'](_0x37ea7b=>this['handleDescriptions'](_0x37ea7b)));}['handleDescriptions'](_0x52a241){const _0x4bcb33=this['editor']['locale'],{data:_0x3895cd}=_0x52a241,_0x3fc84f={'type':'format','content':''};if(_0x3895cd&&'listMarkerStyle'==_0x3895cd['key']){if(!_0x3895cd['oldValue'])return{'type':'format','content':o(_0x4bcb33,'*Set\x20format:*\x20%0',o(_0x4bcb33,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3895cd['newValue']+')'};if(!_0x3895cd['newValue']){let _0xdaab26=_0x52a241['head'];for(;_0xdaab26;){if(_0xdaab26['data']&&'listType'==_0xdaab26['data']['key']&&_0xdaab26['data']['newValue'])return _0x3fc84f;_0xdaab26=_0xdaab26['next'];}return{'type':'format','content':o(_0x4bcb33,'*Remove\x20format:*\x20%0',o(_0x4bcb33,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3895cd['oldValue']+')'};}}}}class bt extends _0x116a29{['afterInit'](){const _0x15c15d=this['editor'];if(!_0x15c15d['plugins']['has']('PageBreakEditing'))return;_0x15c15d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5dc60b=_0x15c15d['plugins']['get']('TrackChangesEditing'),_0x422a5b=_0x15c15d['locale'];_0x5dc60b['descriptionFactory']['registerElementLabel']('pageBreak',_0x46f71a=>o(_0x422a5b,'ELEMENT_PAGE_BREAK',_0x46f71a));}}class yt extends _0x116a29{['afterInit'](){const _0x3982a2=this['editor'];if(!_0x3982a2['plugins']['has']('Paragraph'))return;const _0x588339=_0x3982a2['locale'],_0x2c9b7c=_0x3982a2['plugins']['get']('TrackChangesEditing');_0x2c9b7c['descriptionFactory']['registerElementLabel']('paragraph',_0x10d9ad=>o(_0x588339,'ELEMENT_PARAGRAPH',_0x10d9ad)),_0x2c9b7c['enableDefaultAttributesIntegration']('paragraph'),_0x2c9b7c['enableCommand']('insertParagraph');const _0x1b91e8=_0x2c9b7c['descriptionFactory'];_0x1b91e8['registerDescriptionCallback'](_0x2be63a=>{if('insertion'!==_0x2be63a['type'])return;const {start:_0x21de5c,end:_0xab1288}=_0x2be63a['getFirstRange']();if(!_0x21de5c['isTouching'](_0xab1288)||!_0x21de5c['nodeAfter'])return;const _0x349f5d=_0x3982a2['model']['schema'],_0x3c9174=_0x21de5c['nodeAfter'];return _0x349f5d['isBlock'](_0x3c9174)&&!_0x349f5d['isLimit'](_0x3c9174)&&_0x349f5d['checkChild'](_0x3c9174,'$text')?{'type':'insertion','content':o(_0x588339,'*Insert:*\x20%0',_0x1b91e8['getItemLabel'](_0x3c9174,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e113b=this['editor'],_0x2eeb93=_0x5e113b['locale'];_0x5e113b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ce542=>{if('formatBlock'!=_0x1ce542['type'])return;const {data:_0x1dfed4}=_0x1ce542;return _0x1dfed4&&'paragraph'==_0x1dfed4['commandName']?{'type':'format','content':o(_0x2eeb93,'*Change\x20to:*\x20%0',o(_0x2eeb93,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x116a29{['afterInit'](){const _0x2adbca=this['editor'];_0x2adbca['commands']['get']('replaceSource')&&_0x2adbca['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x116a29{['afterInit'](){const _0x25d9df=this['editor'];if(!_0x25d9df['plugins']['has']('RemoveFormatEditing'))return;_0x25d9df['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2229f0=this['editor'];_0x2229f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd2bb=>{if('formatBlock'!=_0x4fd2bb['type']&&'formatInline'!=_0x4fd2bb['type'])return;const {data:_0x170814}=_0x4fd2bb;return _0x170814&&'removeFormat'==_0x170814['commandName']?{'type':'format','content':o(_0x2229f0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x116a29{['afterInit'](){const _0xe327c1=this['editor'];if(!_0xe327c1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x262519=_0xe327c1['plugins']['get']('TrackChangesEditing');_0x262519['enableCommand']('goToPreviousRestrictedEditingException'),_0x262519['enableCommand']('goToNextRestrictedEditingException');const _0x464f07=_0xe327c1['plugins']['get']('RestrictedEditingModeEditing');_0x464f07['enableCommand']('trackChanges'),_0x464f07['enableCommand']('acceptSuggestion'),_0x464f07['enableCommand']('discardSuggestion'),_0x464f07['enableCommand']('acceptAllSuggestions'),_0x464f07['enableCommand']('discardAllSuggestions'),_0x464f07['enableCommand']('acceptSelectedSuggestions'),_0x464f07['enableCommand']('discardSelectedSuggestions');}}class At extends _0x116a29{['afterInit'](){const _0x1a0469=this['editor'];if(!_0x1a0469['plugins']['has']('ShiftEnter'))return;const _0x29e684=_0x1a0469['plugins']['get']('TrackChangesEditing');_0x29e684['enableCommand']('shiftEnter'),_0x29e684['descriptionFactory']['registerElementLabel']('softBreak',_0x532fb5=>o(_0x1a0469['locale'],'ELEMENT_LINE_BREAK',_0x532fb5));}}function an(_0x13f0b7,_0x53d15c,_0x124500){const _0x2bf301=[];for(const _0x43d460 of _0x53d15c['getItems']())_0x43d460['hasAttribute'](_0x13f0b7)&&_0x2bf301['push'](_0x124500['createRangeOn'](_0x43d460));return _0x2bf301;}class _t extends _0x116a29{['afterInit'](){const _0x26c122=this['editor'],_0x16a150=_0x26c122['plugins']['get']('TrackChangesEditing');_0x26c122['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x16a150['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x35233a=this['editor'],_0x5d0f37=_0x35233a['model'],_0x58ecda=_0x35233a['locale'],_0x2885f4=_0x35233a['plugins']['get']('TrackChangesEditing'),_0xa75329='restrictedEditingException',_0xf7cdf6=_0x35233a['commands']['get'](_0xa75329);_0x2885f4['enableCommand'](_0xa75329,(_0xe53065,_0x2e23cb={})=>{const _0x47ad7a=_0x5d0f37['document']['selection'];if(_0x47ad7a['isCollapsed'])return void _0xe53065(_0x2e23cb);const _0x3b2e34=void 0x0!==_0x2e23cb['forceValue']?_0x2e23cb['forceValue']:!_0xf7cdf6['value'];_0x5d0f37['change'](()=>{const _0x473e1a=Array['from'](_0x47ad7a['getRanges']());for(const _0x7c56e4 of _0x473e1a){const _0x22f9cf=_0x3b2e34?[_0x7c56e4]:an(_0xa75329,_0x7c56e4,_0x5d0f37);for(const _0x22303a of _0x22f9cf)_0x2885f4['markInlineFormat'](_0x22303a,{'commandName':_0xa75329,'commandParams':[{'forceValue':_0x3b2e34}]});}});}),_0x2885f4['descriptionFactory']['registerDescriptionCallback'](_0x5704fc=>{if('formatBlock'!=_0x5704fc['type']&&'formatInline'!=_0x5704fc['type'])return;const {data:_0x3a66e7}=_0x5704fc;return _0x3a66e7&&_0x3a66e7['commandName']==_0xa75329?_0x3a66e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58ecda,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x58ecda,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x5c8887=this['editor'],_0x12ba35=_0x5c8887['locale'],_0x249f9d=_0x5c8887['plugins']['get']('TrackChangesEditing'),_0x17d5fa='restrictedEditingExceptionBlock',_0x5ded50=this['editor']['commands']['get'](_0x17d5fa);_0x249f9d['enableCommand'](_0x17d5fa,(_0x2c864e,_0x27faf1={})=>{const _0x37c84b=this['editor']['model']['document']['selection'],_0x1ff5b2=_0x27faf1&&void 0x0!==_0x27faf1['forceValue']?_0x27faf1['forceValue']:!_0x5ded50['value'];let _0x160005=[];if(_0x1ff5b2){const _0x344b5f=Array['from'](_0x37c84b['getSelectedBlocks']())['filter'](_0x84b64d=>function(_0x270982){return!!_0x270982['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x84b64d)||function(_0x44a15b,_0x2cdccd){const _0x5684bc=_0x2cdccd['createContext'](_0x44a15b['parent']);if(!_0x2cdccd['checkChild'](_0x5684bc,'restrictedEditingException'))return!0x1;if(!_0x2cdccd['checkChild'](_0x5684bc['push']('restrictedEditingException'),_0x44a15b))return!0x1;return!0x0;}(_0x84b64d,this['editor']['model']['schema']));_0x160005=to(_0x344b5f,_0x5c8887['model']);}else{const _0x250d46=Array['from'](_0x37c84b['getSelectedBlocks']())['map'](_0x20bf71=>function(_0x1064c1){let _0x3f9579=_0x1064c1;for(;_0x3f9579['parent'];){if('restrictedEditingException'==_0x3f9579['parent']['name'])return _0x3f9579;_0x3f9579=_0x3f9579['parent'];}return null;}(_0x20bf71))['filter'](_0x4cc881=>!!_0x4cc881);_0x160005=to(_0x250d46,_0x5c8887['model']);}_0x5c8887['model']['change'](()=>{for(const _0x4d606e of _0x160005)_0x249f9d['markBlockFormat'](_0x4d606e,{'commandName':_0x17d5fa,'commandParams':[{'forceValue':_0x1ff5b2}]});});}),_0x249f9d['descriptionFactory']['registerDescriptionCallback'](_0x3fe30f=>{const {data:_0x438e66}=_0x3fe30f;if(_0x438e66&&_0x438e66['commandName']==_0x17d5fa)return _0x438e66['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12ba35,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x12ba35,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x116a29{['afterInit'](){const _0xa31c58=this['editor'];if(!_0xa31c58['plugins']['has']('Style')||!_0xa31c58['plugins']['has']('DataSchema'))return;const _0x3486a8=_0xa31c58['plugins']['get']('TrackChangesEditing'),_0x490cc6=_0xa31c58['locale'],_0x541f21=_0xa31c58['config']['get']('style')||{},_0x2b5792=_0xa31c58['plugins']['get']('GeneralHtmlSupport'),_0x33b812=_0xa31c58['plugins']['get']('StyleUtils')['normalizeConfig'](_0xa31c58['plugins']['get']('DataSchema'),_0x541f21['definitions']);_0x3486a8['enableDefaultAttributesIntegration']('style');const _0x31c5d3=new Set();for(const _0x14176f of _0x33b812['block']){const _0x4a1fc7=_0x2b5792['getGhsAttributeNameForElement'](_0x14176f['element']);_0x31c5d3['add'](_0x4a1fc7);}const _0x5061ce=new Set();for(const _0xc5a9ee of _0x33b812['inline']){const _0x5f47d9=_0x2b5792['getGhsAttributeNameForElement'](_0xc5a9ee['element']);_0x5061ce['add'](_0x5f47d9);for(const _0x5c08d4 of _0xc5a9ee['ghsAttributes'])_0x5061ce['add'](_0x5c08d4);}for(const _0x2527de of _0x31c5d3)_0x3486a8['descriptionFactory']['registerAttributeLabel'](_0x2527de,o(_0x490cc6,'FORMAT_STYLE'));for(const _0x5aaa39 of _0x5061ce)_0x3486a8['descriptionFactory']['registerAttributeLabel'](_0x5aaa39,o(_0x490cc6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45c962=this['editor'],_0x278452=_0x45c962['locale'];_0x45c962['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ac7e9=>{if('formatBlock'!=_0x5ac7e9['type']&&'formatInline'!=_0x5ac7e9['type'])return;const {data:_0xba34fd}=_0x5ac7e9;return _0xba34fd&&'style'===_0xba34fd['commandName']?_0xba34fd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x278452,'*Set\x20format:*\x20%0',_0xba34fd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x278452,'*Remove\x20format:*\x20%0',_0xba34fd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x116a29{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x92f99b){super(_0x92f99b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x24b344=this['editor'],_0x1b540b=_0x24b344['model']['document']['selection'];if(!_0x24b344['plugins']['has']('TableEditing'))return;const _0x2e6088=_0x24b344['locale'],_0x2a0bd8=_0x24b344['plugins']['get']('TrackChangesEditing'),_0x431c42=_0x24b344['plugins']['get']('TableUtils');_0x2a0bd8['descriptionFactory']['registerElementLabel']('table',_0x59a03e=>o(_0x2e6088,'ELEMENT_TABLE',_0x59a03e)),this['_setupColumnsRowsFixing'](),_0x2a0bd8['enableCommand']('insertTable'),_0x2a0bd8['enableCommand']('selectTableRow'),_0x2a0bd8['enableCommand']('selectTableColumn');for(const _0x3b60ae of['insertTableRowAbove','insertTableRowBelow']){const _0x5f37bf=_0x24b344['commands']['get'](_0x3b60ae);_0x2a0bd8['enableCommand'](_0x3b60ae,_0x1be3df=>{_0x24b344['model']['change'](_0x4dc274=>{_0x1be3df();const _0x2aca57='above'===_0x5f37bf['order'],_0x5b0800=_0x431c42['getSelectionAffectedTableCells'](_0x1b540b),_0x4a55a0=_0x431c42['getRowIndexes'](_0x5b0800),_0x44a242=_0x2aca57?_0x4a55a0['first']-0x1:_0x4a55a0['last']+0x1,_0x190b64=_0x5b0800[0x0]['findAncestor']('table'),_0x23e80d=_0x431c42['createTableWalker'](_0x190b64,{'startRow':_0x44a242,'endRow':_0x44a242}),_0x524d98=Array['from'](_0x23e80d)['map'](_0x38b6df=>_0x4dc274['createRangeOn'](_0x38b6df['cell']));_0x2a0bd8['markMultiRangeInsertion'](_0x524d98,'tableRow');});});}for(const _0x52fd30 of['insertTableColumnLeft','insertTableColumnRight']){const _0x15a81d=_0x24b344['commands']['get'](_0x52fd30);_0x2a0bd8['enableCommand'](_0x52fd30,_0x34af40=>{_0x24b344['model']['change'](_0x38646d=>{_0x34af40();const _0x1c6c2e='left'===_0x15a81d['order'],_0x388212=_0x431c42['getSelectionAffectedTableCells'](_0x1b540b),_0x155a97=_0x431c42['getColumnIndexes'](_0x388212),_0x1f1360=_0x1c6c2e?_0x155a97['first']-0x1:_0x155a97['last']+0x1,_0xbf60df=_0x388212[0x0]['findAncestor']('table'),_0xb1f98b=_0x431c42['createTableWalker'](_0xbf60df,{'startRow':0x0,'column':_0x1f1360,'includeAllSlots':!0x1}),_0x1c73d9=Array['from'](_0xb1f98b)['map'](_0x4c8921=>_0x38646d['createRangeOn'](_0x4c8921['cell']));_0x2a0bd8['markMultiRangeInsertion'](_0x1c73d9,'tableColumn');});});}for(const _0x4f3183 of['removeTableRow','removeTableColumn']){const _0x23bc5c=_0x4f3183['substr'](0xb),_0xfc0c33=_0x23bc5c['toLowerCase'](),_0x2e0b6e=_0xfc0c33['substr'](0x0,0x3)+'span',_0x4b8c04='table'+_0x23bc5c,_0x55d4b4='min'+_0x23bc5c,_0x36e482='max'+_0x23bc5c;_0x2a0bd8['enableCommand'](_0x4f3183,()=>{_0x24b344['model']['change'](_0x349f72=>{const _0x956b63=_0x431c42['getSelectionAffectedTableCells'](_0x1b540b),_0x5db4ca=_0x956b63[0x0]['findAncestor']('table');let _0x5a7314;if('removeTableRow'==_0x4f3183){const _0x377e15=_0x431c42['getRowIndexes'](_0x956b63);_0x5a7314={'startRow':_0x377e15['first'],'endRow':_0x377e15['last'],'includeAllSlots':!0x0};}else{const _0x268af2=_0x431c42['getColumnIndexes'](_0x956b63);_0x5a7314={'startColumn':_0x268af2['first'],'endColumn':_0x268af2['last'],'includeAllSlots':!0x0};}const _0xc1fd57=_0x431c42['createTableWalker'](_0x5db4ca,_0x5a7314),_0x4fb5a7=Array['from'](_0xc1fd57)['map'](({cell:_0x5beb95})=>_0x5beb95),_0x290c51=_e(_0x4fb5a7['filter'](_0x35033d=>_0x35033d['hasAttribute'](_0x2e0b6e))),_0x38c3e6=_e(_0x4fb5a7['filter'](_0x46c151=>!_0x46c151['hasAttribute'](_0x2e0b6e)))['map'](_0x48b409=>_0x349f72['createRangeOn'](_0x48b409)),_0x5a64ac=_0x2a0bd8['markMultiRangeDeletion'](_0x38c3e6,_0x4b8c04);if(_0x5a64ac&&('tableRow'==_0x5a64ac['subType']||'tableColumn'==_0x5a64ac['subType'])){const _0x3bed5a=this['_getSuggestionCoords'](_0x5a64ac);for(const _0x2b766e of _0x290c51){const _0x5038f0=_0x349f72['createRangeOn'](_0x2b766e),_0x1b9e5b=_0x431c42['getCellLocation'](_0x2b766e),_0x11b80a=_0x2b766e['getAttribute'](_0x2e0b6e)-0x1,_0x20f453=_0x3bed5a[_0x55d4b4],_0x48410d=_0x3bed5a[_0x36e482];_0x20f453<=_0x1b9e5b[_0xfc0c33]&&_0x1b9e5b[_0xfc0c33]+_0x11b80a<=_0x48410d&&_0x5a64ac['addRange'](_0x5038f0);}}});});}function _0x255c52(_0x29e6c9){const _0x4e5f36=Array['from'](_0x1b540b['getRanges']())['map'](_0x344f73=>_0x2d8975['fromRange'](_0x344f73));_0x24b344['model']['change'](_0x18a59b=>{const _0x515115=_0x18a59b['batch'];_0x29e6c9=_0x29e6c9['filter'](_0x2e5689=>'$graveyard'!=_0x2e5689['root']['rootName']),_0x18a59b['setSelection'](_0x29e6c9),_0x24b344['commands']['get']('removeTableRow')['refresh'](),_0x24b344['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x24b344['model']['enqueueChange'](()=>{_0x24b344['model']['enqueueChange'](_0x515115,_0x348e12=>{const _0x42eb23=_0x4e5f36['filter'](_0x16c3be=>'$graveyard'!=_0x16c3be['root']['rootName']);_0x42eb23['length']>0x0&&_0x348e12['setSelection'](_0x42eb23);for(const _0x34c697 of _0x4e5f36)_0x34c697['detach']();});});});}function _0x34aff7(_0x439d83){_0x24b344['model']['change'](_0x2d4157=>{const _0x167424=Array['from'](_0x1b540b['getRanges']())['map'](_0x556dab=>_0x2d8975['fromRange'](_0x556dab)),_0x26ffc5=[];for(const _0x43dc08 of _0x439d83)for(const _0x7f964c of _0x43dc08['getItems']({'shallow':!0x0}))_0x26ffc5['push'](_0x7f964c);for(const _0x1b9aa0 of _0x26ffc5)'$graveyard'!=_0x1b9aa0['root']['rootName']&&(_0x2d4157['setSelection'](_0x2d4157['createPositionAt'](_0x1b9aa0,0x0)),_0x24b344['commands']['get']('removeTableColumn')['refresh'](),_0x24b344['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3de481=_0x167424['filter'](_0x486d01=>'$graveyard'!=_0x486d01['root']['rootName']);_0x3de481['length']>0x0&&_0x2d4157['setSelection'](_0x3de481);for(const _0x117430 of _0x167424)_0x117430['detach']();});}function _0x3e2d53(_0x2f0005,_0x506e68){return _0x506e68['every'](_0x507bd3=>_0x2f0005['some'](_0xd38e46=>_0xd38e46['end']['isEqual'](_0x507bd3['start'])||_0x507bd3['end']['isEqual'](_0xd38e46['start'])));}function _0x158084(_0x28d7f9,_0x32f8a8){return!_0x28d7f9['some'](_0x57745a=>_0x32f8a8['some'](_0x3b24fb=>_0x57745a['isIntersecting'](_0x3b24fb)))&&_0x28d7f9['some'](_0x41f992=>_0x32f8a8['some'](_0x3ccff4=>_0x41f992['end']['isTouching'](_0x3ccff4['start'])));}_0x2a0bd8['descriptionFactory']['registerDescriptionCallback'](_0x16e466=>{if('insertion'!=_0x16e466['type']&&'deletion'!=_0x16e466['type'])return;const _0x5ee6f8=_0x16e466['getContainedElement']();if(null!=_0x5ee6f8&&_0x5ee6f8['is']('element','table')){if('insertion'==_0x16e466['type']){const _0x449b6b=_0x16e466['getItems']()['filter'](_0x3afc53=>_0x3afc53['is']('$textProxy'))['map'](_0x3b0ac1=>_0x3b0ac1['data']);if(_0x449b6b['length'])return{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x449b6b['join']('\x20')+'\x22'))};}if('deletion'==_0x16e466['type']){const _0x1d81dd=_0x16e466['getItems']()['filter'](_0xc9ab5b=>_0xc9ab5b['is']('$textProxy'))['map'](_0x2dcd3b=>_0x2dcd3b['data']);if(_0x1d81dd['length'])return{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d81dd['join']('\x20')+'\x22'))};}}}),_0x2a0bd8['descriptionFactory']['registerDescriptionCallback'](_0x5eb380=>{if('tableRow'==_0x5eb380['subType']){const _0x25d3d4=_0x5eb380['getItems']()['filter'](_0x282793=>_0x282793['is']('$textProxy'))['map'](_0x2fb3e3=>_0x2fb3e3['data']),_0x302775=this['_getSuggestionCoords'](_0x5eb380),_0x3e6054=_0x302775['maxRow']-_0x302775['minRow']+0x1;if('insertion'==_0x5eb380['type'])return _0x25d3d4['length']?{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e6054,'\x22'+_0x25d3d4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_ROW',_0x3e6054))};if('deletion'==_0x5eb380['type'])return _0x25d3d4['length']?{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e6054,'\x22'+_0x25d3d4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_ROW',_0x3e6054))};}if('tableColumn'==_0x5eb380['subType']){const _0x346f78=_0x5eb380['getItems']()['filter'](_0x56ebc7=>_0x56ebc7['is']('$textProxy'))['map'](_0x1fc244=>_0x1fc244['data']),_0x19b190=this['_getSuggestionCoords'](_0x5eb380),_0x4bdda3=_0x19b190['maxColumn']-_0x19b190['minColumn']+0x1;if('insertion'==_0x5eb380['type'])return _0x346f78['length']?{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4bdda3,'\x22'+_0x346f78['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_COLUMN',_0x4bdda3))};if('deletion'==_0x5eb380['type'])return _0x346f78['length']?{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4bdda3,'\x22'+_0x346f78['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_COLUMN',_0x4bdda3))};}}),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x255c52),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x255c52),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34aff7),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34aff7),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3e2d53),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3e2d53),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x158084),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x158084);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5dbb08=this['editor'],_0x5f128e=_0x5dbb08['model']['document']['selection'];return(_0x37d9d6,_0x1a923c)=>{_0x5dbb08['model']['change'](_0x41ac6f=>{const {commandName:_0x102d2e,commandParams:_0x576aea}=_0x1a923c;let _0x4b4194=_0x37d9d6[0x0]['end']['nodeBefore'];_0x576aea&&_0x576aea[0x0]&&!0x1===_0x576aea[0x0]['forceValue']&&(_0x4b4194=_0x37d9d6[0x0]['start']['nodeAfter']);const _0x4a4e42=_0x41ac6f['createRangeIn'](_0x4b4194);if('$graveyard'==_0x4a4e42['root']['rootName'])return;const _0x2c37de=Array['from'](_0x5f128e['getRanges']())['map'](_0x1314b4=>_0x2d8975['fromRange'](_0x1314b4));_0x41ac6f['setSelection'](_0x4a4e42),_0x5dbb08['commands']['get'](_0x102d2e)['refresh'](),_0x576aea['push']({'forceDefaultExecution':!0x0}),_0x5dbb08['execute'](_0x102d2e,..._0x576aea);const _0x52268d=_0x2c37de['filter'](_0x3bb35d=>'$graveyard'!=_0x3bb35d['root']['rootName']);_0x52268d['length']>0x0&&_0x41ac6f['setSelection'](_0x52268d);for(const _0x343db1 of _0x2c37de)_0x343db1['detach']();});};}['_getCoordsForCells'](_0x4bd90b){const _0x500d81=this['editor']['plugins']['get']('TableUtils');let _0x2953e1=Number['MAX_SAFE_INTEGER'],_0x5619f0=Number['MIN_SAFE_INTEGER'],_0x5a3408=Number['MAX_SAFE_INTEGER'],_0x31d864=Number['MIN_SAFE_INTEGER'];for(const _0x370ba0 of _0x4bd90b){if('$graveyard'==_0x370ba0['root']['rootName'])continue;const {row:_0x157016,column:_0x3ac328}=_0x500d81['getCellLocation'](_0x370ba0),_0x55870c=_0x370ba0['hasAttribute']('rowspan')?_0x370ba0['getAttribute']('rowspan')-0x1:0x0,_0x472b68=_0x370ba0['hasAttribute']('colspan')?_0x370ba0['getAttribute']('colspan')-0x1:0x0;_0x2953e1=_0x157016<_0x2953e1?_0x157016:_0x2953e1,_0x5619f0=_0x157016+_0x55870c>_0x5619f0?_0x157016+_0x55870c:_0x5619f0,_0x5a3408=_0x3ac328<_0x5a3408?_0x3ac328:_0x5a3408,_0x31d864=_0x3ac328+_0x472b68>_0x31d864?_0x3ac328+_0x472b68:_0x31d864;}return{'minRow':_0x2953e1,'maxRow':_0x5619f0,'minColumn':_0x5a3408,'maxColumn':_0x31d864};}['_setupColumnsRowsFixing'](){const _0x1207fd=this['editor'],_0x1b577f=_0x1207fd['plugins']['get']('TrackChangesEditing'),_0x5c8f23=_0x1207fd['plugins']['get']('TableUtils');_0x1207fd['model']['document']['on']('change:data',()=>{const _0x25de00=Array['from'](_0x1207fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28fa64,data:_0x5e2313}of _0x25de00){const {group:_0x1e7abf,id:_0x421b9e,subType:_0x6cd349}=_0x1b577f['_splitMarkerName'](_0x28fa64);if('suggestion'!=_0x1e7abf)continue;if(null!=_0x5e2313['oldRange'])continue;const _0x2b7f0e=_0x1b577f['getSuggestion'](_0x421b9e);this['_tablePostFixingSubtypes']['includes'](_0x6cd349)&&this['_tableSuggestions']['add'](_0x2b7f0e);}},{'priority':'low'});const _0x452fa3=(_0x347448,_0x9f12f2)=>{let _0x33885d=!0x1;const _0x163c29=_0x9f12f2['createRangeOn'](_0x347448),_0x2e45e1=_0x347448['findAncestor']('table'),_0x158ae9=_0x5c8f23['getCellLocation'](_0x347448);for(const _0x4661be of this['_tableSuggestions']){const _0x50c041=_0x4661be['subType'],_0x254dd6=_0x50c041['startsWith']('tablePaste'),_0x146f2a=_0x50c041['substr'](_0x254dd6?0xa:0x5),_0x36f1a2=_0x146f2a['toLowerCase'](),_0x5899f0=_0x36f1a2['substr'](0x0,0x3)+'span',_0x4713dd='min'+_0x146f2a,_0x4477b0='max'+_0x146f2a;if(!_0x4661be['isInContent'])continue;if(_0x2e45e1!=_0x4661be['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4661be['isIntersectingWithRange'](_0x163c29))continue;const _0x2a30f5=_0x347448['hasAttribute'](_0x5899f0)?_0x347448['getAttribute'](_0x5899f0)-0x1:0x0,_0x1f6e97=this['_getSuggestionCoords'](_0x4661be),_0x16c0a8=_0x1f6e97[_0x4713dd],_0x2dd690=_0x1f6e97[_0x4477b0];_0x16c0a8<=_0x158ae9[_0x36f1a2]&&_0x158ae9[_0x36f1a2]+_0x2a30f5<=_0x2dd690&&(_0x4661be['addRange'](_0x163c29),_0x33885d=!0x0);}return _0x33885d;};_0x1207fd['model']['document']['registerPostFixer'](_0x201324=>{let _0x1606ef=!0x1;for(const _0x3f5de5 of _0x1207fd['model']['document']['differ']['getChanges']())if('insert'==_0x3f5de5['type']){if('tableRow'==_0x3f5de5['name']){for(const _0xc731a2 of _0x3f5de5['position']['nodeAfter']['getChildren']())_0x1606ef=_0x1606ef||_0x452fa3(_0xc731a2,_0x201324);}else'tableCell'==_0x3f5de5['name']&&(_0x1606ef=_0x1606ef||_0x452fa3(_0x3f5de5['position']['nodeAfter'],_0x201324));}return _0x1606ef;});}['_getSuggestionCoords'](_0x3f5a06){return this['_getCoordsForCells'](_0x3f5a06['getRanges']()['map'](_0x33b17a=>_0x33b17a['start']['nodeAfter']));}}function _e(_0x16ff97){return Array['from'](new Set(_0x16ff97)['values']());}class $t extends _0x116a29{static get['requires'](){return[Nt];}['afterInit'](){const _0x58fce4=this['editor'],_0x58e965=_0x58fce4['model']['document']['selection'],_0x55ce98=_0x58fce4['locale'];if(!_0x58fce4['plugins']['has']('TableEditing'))return;const _0x2570a0=_0x58fce4['plugins']['get']('TrackChangesEditing'),_0x993753=_0x58fce4['plugins']['get']('TableUtils'),_0x4c708a=_0x58fce4['plugins']['get'](Nt);_0x4c708a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2570a0['enableCommand']('mergeTableCells',()=>{const _0x388dfd=_0x993753['getSelectionAffectedTableCells'](_0x58fce4['model']['document']['selection']);_0x58fce4['model']['change'](()=>{_0x2570a0['markMultiRangeBlockFormat'](_0x388dfd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x58fce4['commands']['get']('mergeTableCells')['on']('execute',(_0x11abb7,_0x1848a6)=>{_0x58fce4['commands']['get']('trackChanges')['value']&&(_0x1848a6['length']>0x0&&_0x1848a6[_0x1848a6['length']-0x1]&&_0x1848a6[_0x1848a6['length']-0x1]['forceDefaultExecution']||_0x2570a0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11abb7['stop']());},{'priority':'highest'});for(const _0x12270a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2055f4=_0x58fce4['commands']['get'](_0x12270a);_0x2570a0['enableCommand'](_0x12270a,()=>{const _0x17ec4a=_0x58fce4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2dae6f=>_0x2dae6f['is']('element','tableCell')),_0x325cc1=_0x2055f4['value'];_0x58fce4['model']['change'](()=>{_0x2570a0['markMultiRangeBlockFormat']([_0x17ec4a,_0x325cc1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x490390 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5f14da=_0x58fce4['commands']['get'](_0x490390);_0x2570a0['enableCommand'](_0x490390,()=>{const _0x25c966=_0x993753['getSelectionAffectedTableCells'](_0x58fce4['model']['document']['selection'])[0x0],_0x2ba35f=_0x25c966['findAncestor']('table'),{column:_0x28045e,row:_0x41445c}=_0x993753['getCellLocation'](_0x25c966);let _0x21cadc=[];if('horizontally'==_0x5f14da['direction']){const _0x22e961=_0x993753['createTableWalker'](_0x2ba35f,{'startRow':_0x41445c,'endRow':_0x41445c,'includeAllSlots':!0x0});_0x21cadc=Array['from'](_0x22e961)['map'](_0x35a439=>_0x35a439['cell']);}else{const _0x58c33a=_0x993753['createTableWalker'](_0x2ba35f,{'column':_0x28045e,'includeAllSlots':!0x0});_0x21cadc=Array['from'](_0x58c33a)['map'](_0x5a131c=>_0x5a131c['cell']);}_0x58fce4['model']['change'](_0x52c4aa=>{_0x2570a0['markBlockFormat'](_0x52c4aa['createRangeOn'](_0x25c966),{'commandName':_0x490390,'commandParams':[]},_0x21cadc,_0x490390);});});}_0x2570a0['descriptionFactory']['registerDescriptionCallback'](_0x4f00b6=>{if('formatBlock'!=_0x4f00b6['type']&&'formatInline'!=_0x4f00b6['type'])return;const {data:_0x424cbd}=_0x4f00b6;return _0x424cbd&&'mergeTableCells'==_0x424cbd['commandName']?{'type':'format','content':o(_0x55ce98,'*Merge\x20cells*')}:void 0x0;}),_0x2570a0['descriptionFactory']['registerDescriptionCallback'](_0x110bbc=>{if('formatBlock'!=_0x110bbc['type']&&'formatInline'!=_0x110bbc['type'])return;const {data:_0x5a0ba7}=_0x110bbc;return _0x5a0ba7?'splitTableCellVertically'==_0x5a0ba7['commandName']?{'type':'format','content':o(_0x55ce98,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5a0ba7['commandName']?{'type':'format','content':o(_0x55ce98,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x47d69a=_0x4c708a['_acceptFormatSuggestionCallbackFactory']();for(const _0x18911e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2570a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18911e,'accept',_0x47d69a);for(const _0x29555e of['splitTableCellVertically','splitTableCellHorizontally'])_0x2570a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x29555e,'accept',_0x47d69a);_0x2570a0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x13f580=>{_0x58fce4['model']['change'](_0x2718ca=>{const _0x38a3ec=Array['from'](_0x58e965['getRanges']())['map'](_0x10e765=>_0x2d8975['fromRange'](_0x10e765));_0x2718ca['setSelection'](_0x13f580),_0x58fce4['commands']['get']('mergeTableCells')['refresh'](),_0x58fce4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ee824=_0x38a3ec['filter'](_0x2d6003=>'$graveyard'!=_0x2d6003['root']['rootName']);_0x4ee824['length']>0x0&&_0x2718ca['setSelection'](_0x4ee824);for(const _0x22a9b1 of _0x38a3ec)_0x22a9b1['detach']();});});for(const _0x249e66 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5cb0a1=_0x58fce4['commands']['get'](_0x249e66);_0x5cb0a1['on']('set:isEnabled',(_0x572cdc,_0x58e263,_0x51f190)=>{if(_0x51f190){const _0x52ba7a=_0x58fce4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x546eaf=>_0x546eaf['is']('element','tableCell'));this['_areMergableCells'](_0x5cb0a1['value'],_0x52ba7a)||(_0x572cdc['return']=!0x1,_0x572cdc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4cb017=this['editor']['commands']['get']('mergeTableCells'),_0x15fb2c=this['editor']['plugins']['get']('TableUtils');if(!_0x4cb017['isEnabled'])return!0x1;const _0x1ea352=_0x15fb2c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d02f8 of _0x1ea352)for(const _0x3760db of _0x1ea352)if(_0x2d02f8!=_0x3760db&&!this['_areMergableCells'](_0x2d02f8,_0x3760db))return!0x1;return!0x0;}['_areMergableCells'](_0x4543f3,_0x29be01){const _0x3ba691=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50a8a5=this['editor']['model']['createRangeOn'](_0x4543f3),_0x46b514=this['editor']['model']['createRangeOn'](_0x29be01),_0x116831=new Set(),_0x79423f=new Set();for(const _0x38e473 of _0x3ba691['getSuggestions']())if(('insertion'==_0x38e473['type']||'deletion'==_0x38e473['type']||'mergeTableCells'==_0x38e473['subType'])&&_0x38e473['isInContent']){for(const _0x4fccc9 of _0x38e473['getRanges']())_0x4fccc9['containsRange'](_0x50a8a5,!0x0)&&_0x116831['add'](_0x38e473['type']+':'+_0x38e473['author']['id']),_0x4fccc9['containsRange'](_0x46b514,!0x0)&&_0x79423f['add'](_0x38e473['type']+':'+_0x38e473['author']['id']);}if(_0x116831['size']!=_0x79423f['size'])return!0x1;for(const _0x5c66cd of _0x116831)if(!_0x79423f['has'](_0x5c66cd))return!0x1;return!0x0;}}class vt extends _0x116a29{static get['requires'](){return[Nt];}['afterInit'](){const _0x266bf4=this['editor'];if(!_0x266bf4['plugins']['has']('TableEditing'))return;const _0x283b1f=_0x266bf4['locale'],_0x175e6f=_0x266bf4['plugins']['get']('TrackChangesEditing');_0x175e6f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x175e6f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x175e6f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x283b1f,'FORMAT_HEADER_ROW')),_0x175e6f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x283b1f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48f6a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23d220=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x48f6a8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x23d220),_0x48f6a8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x23d220),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x379644=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23e1d6=this['editor']['plugins']['get']('TableUtils');function _0x4f635d({showActiveMarker:_0x5cd282=!0x0,setDataAttribute:_0x3f88cd=!0x0}={}){return(_0x497722,_0x31a4b8,_0x4fb0ac)=>{const {type:_0x55ba10,id:_0x502c7d}=_0x379644['_splitMarkerName'](_0x31a4b8['markerName']);if(!_0x379644['hasSuggestion'](_0x502c7d))return;const _0x1b26f5=_0x379644['getSuggestion'](_0x502c7d),_0x17a1fb=_0x1b26f5['data'];if('formatBlock'!=_0x1b26f5['type']||!_0x17a1fb||'setTableColumnHeader'!=_0x17a1fb['commandName'])return;if(_0x31a4b8['item'])return void _0x497722['stop']();if(!_0x4fb0ac['consumable']['consume'](_0x31a4b8['markerRange'],_0x497722['name']))return;const _0x484860=_0x31a4b8['markerRange']['start']['nodeAfter'],_0x5e1f87=_0x31a4b8['markerRange']['end']['nodeBefore'],_0x349873=_0x484860['parent']['parent'],{column:_0x3d4a5e}=_0x23e1d6['getCellLocation'](_0x484860),{column:_0xa1bef4}=_0x23e1d6['getCellLocation'](_0x5e1f87);for(let _0x1629e6=_0x3d4a5e;_0x1629e6<=_0xa1bef4;_0x1629e6++){const _0x495c52=_0x23e1d6['createTableWalker'](_0x349873,{'column':_0x1629e6,'includeAllSlots':!0x1});for(const _0x1fd3db of _0x495c52){const _0x56bc98=_0x1fd3db['cell'],_0x11617a=_0x4fb0ac['mapper']['toViewElement'](_0x56bc98);_0x4fb0ac['writer']['addClass']('ck-suggestion-marker-'+_0x55ba10,_0x11617a),_0x3f88cd&&_0x4fb0ac['writer']['setAttribute']('data-suggestion',_0x502c7d,_0x11617a),_0x4fb0ac['mapper']['bindElementToMarker'](_0x11617a,_0x31a4b8['markerName']),_0x5cd282&&(_0x379644['activeMarkers']['includes'](_0x31a4b8['markerName'])?_0x4fb0ac['writer']['addClass']('ck-suggestion-marker--active',_0x11617a):_0x4fb0ac['writer']['removeClass']('ck-suggestion-marker--active',_0x11617a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f635d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34f76c,_0x43c670,_0x8fe78)=>{_0x8fe78['options']['showSuggestionHighlights']&&_0x4f635d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34f76c,_0x43c670,_0x8fe78);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x430a3d,_0x2aceb7,_0x39e051)=>{const {type:_0x41baae,id:_0x233d93}=_0x379644['_splitMarkerName'](_0x2aceb7['markerName']);if(!_0x379644['hasSuggestion'](_0x233d93))return;const _0x32a0ec=_0x379644['getSuggestion'](_0x233d93),_0x17b0a1=_0x32a0ec['data'];if('formatBlock'!=_0x32a0ec['type']||!_0x17b0a1||'setTableColumnHeader'!=_0x17b0a1['commandName'])return;const _0x4e33bd=_0x39e051['mapper']['markerNameToElements'](_0x2aceb7['markerName']);if(_0x4e33bd){for(const _0xe46e30 of _0x4e33bd)_0x39e051['writer']['removeClass']('ck-suggestion-marker-'+_0x41baae,_0xe46e30),_0x39e051['writer']['removeClass']('ck-suggestion-marker--active',_0xe46e30),_0x39e051['writer']['removeAttribute']('data-suggestion',_0xe46e30),_0x39e051['mapper']['unbindElementFromMarkerName'](_0xe46e30,_0x2aceb7['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x284a04=this['editor'],_0x4f2bcc=_0x284a04['locale'];function _0x4dd6ab(_0x22421d){return{'type':'format','content':o(_0x4f2bcc,'*Format:*\x20%0',_0x22421d)};}_0x284a04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57f9e0=>{if('formatBlock'!=_0x57f9e0['type'])return;const {data:_0x8c173e}=_0x57f9e0;if(_0x8c173e){if('setTableRowHeader'==_0x8c173e['commandName']){const _0x35b388=_0x8c173e['commandParams'][0x0]['forceValue'];return _0x4dd6ab(o(_0x4f2bcc,_0x35b388?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x8c173e['commandName']){const _0x408432=_0x8c173e['commandParams'][0x0]['forceValue'];return _0x4dd6ab(o(_0x4f2bcc,_0x408432?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x116a29{['afterInit'](){const _0x175800=this['editor'],_0x9dc2d9=_0x175800['locale'],_0x21abf8=_0x175800['plugins']['get']('TrackChangesEditing');function _0x13c18c(_0x5d03e5){return{'type':'format','content':''+o(_0x9dc2d9,'*Set\x20table\x20type:*\x20%0',_0x5d03e5)};}_0x175800['plugins']['has']('TableLayout')&&(_0x21abf8['enableCommand']('insertTableLayout'),_0x21abf8['enableDefaultAttributesIntegration']('tableType'),_0x21abf8['descriptionFactory']['registerElementLabel'](_0x33a38c=>_0x33a38c['is']('element','table')&&'layout'===_0x33a38c['getAttribute']('tableType'),_0x5aeb65=>o(_0x9dc2d9,'ELEMENT_LAYOUT_TABLE',_0x5aeb65)),_0x21abf8['descriptionFactory']['registerDescriptionCallback'](_0x26c978=>{const {data:_0x3c8e61}=_0x26c978;if(_0x3c8e61&&'tableType'==_0x3c8e61['key'])switch(_0x3c8e61['newValue']){case'layout':return _0x13c18c(o(_0x9dc2d9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x13c18c(o(_0x9dc2d9,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x1417ae=>[_0x1417ae,null]));class Bt extends _0x116a29{static get['requires'](){return[Nt];}['afterInit'](){const _0xc48cc=this['editor'];if(!_0xc48cc['plugins']['has']('TableClipboard'))return;const _0x3e2079=_0xc48cc['plugins']['get']('TrackChangesEditing'),_0x394a7a=_0xc48cc['plugins']['get']('TableUtils'),_0x1dfc76=_0xc48cc['plugins']['get'](Nt),_0x5d0d4c=_0xc48cc['plugins']['get']('TableClipboard'),_0x1e2404=_0xc48cc['plugins']['get']('TableSelection'),_0x442a24=_0xc48cc['plugins']['get'](_0x4a131b);_0x1dfc76['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc48cc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc48cc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d51da=null,_0x3e54aa=!0x1;_0x442a24['on']('contentInsertion',(_0x457bfc,_0xcb8b4d)=>{_0x3e54aa='paste'===_0xcb8b4d['method'];}),_0xc48cc['model']['on']('insertContent',(_0x273046,_0x1c8254)=>{if(!_0x3e54aa&&null===_0x1e2404['getSelectedTableCells']())return;const [_0x524b1a,_0x2b1785]=_0x1c8254,_0x11381b=_0x1c8254[_0x1c8254['length']-0x1];_0x11381b&&_0x11381b['forceDefaultExecution']||_0x3e2079['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5c0e14,_0x11c897,_0x33027f,_0x136a5e,_0x1ee058){if(_0x11c897&&!_0x11c897['is']('documentSelection'))return!0x1;const _0x2e1f2f=_0x1ee058['getTableIfOnlyTableInContent'](_0x5c0e14,_0x33027f);if(!_0x2e1f2f||!Oe(_0x2e1f2f,void 0x0,_0x136a5e))return!0x1;const _0x15f92a=_0x136a5e['getSelectionAffectedTableCells'](_0x33027f['document']['selection']);if(!_0x15f92a['length'])return!0x1;const _0x4d4471=_0x15f92a[0x0]['findAncestor']('table'),_0x44d427=_0x136a5e['getRowIndexes'](_0x15f92a),_0x9d3523=_0x136a5e['getColumnIndexes'](_0x15f92a),_0x2a9883={'startRow':_0x44d427['first'],'endRow':_0x44d427['last'],'startColumn':_0x9d3523['first'],'endColumn':_0x9d3523['last']};return 0x1==_0x15f92a['length']&&(_0x2a9883['endRow']+=_0x136a5e['getRows'](_0x2e1f2f)-0x1,_0x2a9883['endColumn']+=_0x136a5e['getColumns'](_0x2e1f2f)-0x1),Oe(_0x4d4471,_0x2a9883,_0x136a5e);}(_0x524b1a,_0x2b1785,_0xc48cc['model'],_0x394a7a,_0x5d0d4c)&&(_0x273046['stop'](),_0x3d51da={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc48cc['model']['change'](()=>{_0xc48cc['model']['insertContent'](_0x1c8254[0x0],_0x1c8254[0x1],_0x1c8254[0x2],{'forceDefaultExecution':!0x0});const _0x5204db=_0x492477(),{rowInsertionRanges:_0x3ef04c,columnInsertionRanges:_0x4952fc,insertionRanges:_0x456877,deletionRanges:_0xd1a350,cells:_0x5bc3ab}=_0x3d51da;_0x3ef04c['length']&&_0x3e2079['markMultiRangeInsertion'](_0x3ef04c,'tablePasteRow',{'tablePasteChainId':_0x5204db}),_0x4952fc['length']&&_0x3e2079['markMultiRangeInsertion'](_0x4952fc,'tablePasteColumn',{'tablePasteChainId':_0x5204db}),_0x456877['length']&&(_0x3e2079['markMultiRangeInsertion'](_0x456877,'tablePaste',{'tablePasteChainId':_0x5204db,'skipNestingCheck':!0x0}),_0x456877['forEach'](_0xa762e9=>_0xa762e9['detach']?.())),_0xd1a350['length']&&(_0x3e2079['markMultiRangeDeletion'](_0xd1a350,'tablePaste',{'tablePasteChainId':_0x5204db,'skipNestingCheck':!0x0}),_0xd1a350['forEach'](_0x2f9f95=>_0x2f9f95['detach']?.()));const _0x422f0f=_0x3e2079['markMultiRangeBlockFormat'](_0x5bc3ab['map'](({element:_0x434693})=>_0x434693),{'formatGroupId':_0x492477()},[],'tablePasteCell',{'tablePasteChainId':_0x5204db});if(_0x422f0f){const _0xde0a02=_0x422f0f['getMarkers'](),_0x4c1ba4=[];for(const {element:_0x612d9e,attributes:_0x5cc39a}of _0x5bc3ab){if(!_0x5cc39a)continue;const _0x320233=_0xc48cc['model']['createRangeOn'](_0x612d9e),_0x3b4ee4=_0xde0a02['find'](_0x1dd157=>_0x1dd157['getRange']()['isEqual'](_0x320233));_0x3b4ee4&&_0x4c1ba4['push']([_0x3b4ee4['name'],_0x5cc39a]);}_0x4c1ba4['length']&&_0x422f0f['setAttribute']('markerAttributes',Object['fromEntries'](_0x4c1ba4));}_0x3d51da=null;}));},{'priority':_0x144041['high']+0xa}),_0x442a24['on']('contentInsertion',()=>{_0x3e54aa=!0x1;},{'priority':'lowest'}),_0xc48cc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2068dd,_0x1ea7b8)=>{const [_0x49984c,_0xbdef96,,_0xcaa0ad]=_0x1ea7b8;if(!_0x3d51da)return;_0x2068dd['stop']();const _0x3e460b=_0x49984c['cell'],_0x9fe9cf=_0xbdef96,_0x3abe38=Be(_0x3e460b),_0x25dba8=Be(_0x9fe9cf);_0x2068dd['return']=_0x3e460b;let _0x4d482f=null,_0x1864b5=null;if(_0x25dba8||_0x3abe38){if(_0x3abe38&&!_0x25dba8){_0xcaa0ad['remove'](_0x3e460b['getChild'](0x0));for(const _0x43934a of Array['from'](_0x9fe9cf['getChildren']()))_0xcaa0ad['insert'](_0x43934a,_0x3e460b,'end');const _0x15e687=_0x3d51da['rowInsertionIndexes']['includes'](_0x49984c['row']),_0x47e162=_0x3d51da['columnInsertionIndexes']['includes'](_0x49984c['column']);_0x15e687||_0x47e162||(_0x4d482f=_0x2d8975['fromRange'](_0xcaa0ad['createRangeIn'](_0x3e460b)));}else _0x25dba8&&!_0x3abe38&&(_0x1864b5=_0xcaa0ad['createRangeIn'](_0x3e460b));}else{const _0x1ec4ae=_0xcaa0ad['createElement']('tableCellSuggestion'),_0x1f74cd=_0xcaa0ad['createElement']('tableCellSuggestion');_0xcaa0ad['wrap'](_0xcaa0ad['createRangeIn'](_0x3e460b),_0x1f74cd),_0xcaa0ad['insert'](_0x1ec4ae,_0x3e460b,0x0);for(const _0x54a887 of Array['from'](_0x9fe9cf['getChildren']()))_0xcaa0ad['insert'](_0x54a887,_0x1ec4ae,'end');_0x4d482f=_0x2d8975['fromRange'](_0xcaa0ad['createRangeOn'](_0x1ec4ae)),_0x1864b5=_0x2d8975['fromRange'](_0xcaa0ad['createRangeOn'](_0x1f74cd));}const _0x52b56d=Array['from'](_0x9fe9cf['getAttributes']())['filter'](([_0xf10b46])=>Re['includes'](_0xf10b46));_0x3d51da['cells']['push']({'element':_0x3e460b,'attributes':_0x52b56d['length']?Object['fromEntries'](_0x52b56d):null}),_0x4d482f&&_0x3d51da['insertionRanges']['push'](_0x4d482f),_0x1864b5&&_0x3d51da['deletionRanges']['push'](_0x1864b5);},{'priority':'high'}),_0x394a7a['on']('insertColumns',(_0x666cc9,_0x26241d)=>{const [_0x2b089f,_0x52f1c5={}]=_0x26241d;if(!_0x3d51da)return;const _0x4386b1=_0x52f1c5['at']||0x0,_0x192c34=_0x52f1c5['columns']||0x1;_0x3d51da['columnInsertionIndexes']=new Array(_0x192c34)['fill'](_0x4386b1)['map']((_0x2958bb,_0x216e71)=>_0x2958bb+_0x216e71);for(const {cell:_0x53580d}of _0x394a7a['createTableWalker'](_0x2b089f,{'startColumn':_0x4386b1,'endColumn':_0x4386b1+_0x192c34-0x1}))_0x3d51da['columnInsertionRanges']['push'](_0xc48cc['model']['createRangeOn'](_0x53580d));},{'priority':'low'}),_0x394a7a['on']('insertRows',(_0x384012,_0x157ea6)=>{const [_0x5d38cb,_0x35232d={}]=_0x157ea6;if(!_0x3d51da)return;const _0x258d86=_0x35232d['at']||0x0,_0x1db996=_0x35232d['rows']||0x1;_0x3d51da['rowInsertionIndexes']=new Array(_0x1db996)['fill'](_0x258d86)['map']((_0x34acb8,_0x1e9f08)=>_0x34acb8+_0x1e9f08);for(const {cell:_0x3e7564}of _0x394a7a['createTableWalker'](_0x5d38cb,{'startRow':_0x258d86,'endRow':_0x258d86+_0x1db996-0x1}))_0x3d51da['rowInsertionRanges']['push'](_0xc48cc['model']['createRangeOn'](_0x3e7564));},{'priority':'low'}),_0x3e2079['descriptionFactory']['registerDescriptionCallback'](_0x435cfd=>{if(_0x435cfd['subType']&&_0x435cfd['subType']['startsWith']('tablePaste'))return _0x435cfd['previous']?{}:{'type':'insertion','content':o(_0xc48cc['locale'],'*Replace\x20table\x20cells*')};});const _0x490b05=()=>!0x1;for(const _0x2c4f6c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3e2079['_suggestionFactory']['registerCustomCallback']('insertion',_0x2c4f6c,'join',_0x490b05),_0x3e2079['_suggestionFactory']['registerCustomCallback']('deletion',_0x2c4f6c,'join',_0x490b05),_0x3e2079['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c4f6c,'join',_0x490b05);_0x3e2079['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x490b05),_0x3e2079['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3cbadc,_0x419fe8,_0x1c8d5b)=>{const _0x3b9e9f=_0x3cbadc['map'](_0x4a35f1=>_0x4a35f1['getContainedElement']())['filter'](_0x558b42=>_0x558b42),_0x180faa=new Map(_0x3b9e9f['map'](_0x4ac21e=>[_0x4ac21e,null]));if(_0x3d51da){for(const {element:_0x28c017,attributes:_0x286b97}of _0x3d51da['cells'])_0x286b97&&_0x180faa['set'](_0x28c017,_0x286b97);}else{if(_0x1c8d5b&&_0x1c8d5b['markerAttributes'])for(const [_0x235b6e,_0x40c09e]of Object['entries'](_0x1c8d5b['markerAttributes'])){const _0x1fe5d4=_0xc48cc['model']['markers']['get'](_0x235b6e),_0x4b68e5=_0x1fe5d4?_0x1fe5d4['getRange']()['getContainedElement']():null;_0x4b68e5&&_0x180faa['set'](_0x4b68e5,_0x40c09e);}}_0xc48cc['model']['change'](_0x4e502e=>{for(const [_0x26c92a,_0x8b3c7f]of _0x180faa)_0x4e502e['setAttributes']({...Ae,..._0x8b3c7f},_0x26c92a);});});const _0x40e7bf=(_0x48f416,_0x4908a9)=>{_0x3e2079['_suggestionFactory']['registerCustomCallback'](_0x48f416,'tablePaste',_0x4908a9,(_0x65bad6,_0x5d891f,_0x3f3ba0)=>{_0xc48cc['model']['change'](_0x17cb1c=>{const _0x377a4c=[];for(const _0x359b7f of _0x65bad6){const _0x2ae09a=_0x359b7f['start']['nodeAfter'];_0x2ae09a['is']('element','tableCellSuggestion')&&_0x377a4c['push'](_0x2ae09a);}_0x3e2079['_suggestionFactory']['getSuggestionCallback'](_0x48f416,null,_0x4908a9)(_0x65bad6,_0x5d891f,_0x3f3ba0);for(const _0x5f435e of _0x377a4c)'$graveyard'!=_0x5f435e['root']['rootName']&&_0x17cb1c['unwrap'](_0x5f435e);});});};_0x40e7bf('insertion','accept'),_0x40e7bf('insertion','discard'),_0x40e7bf('deletion','accept'),_0x40e7bf('deletion','discard'),_0x3e2079['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x34f360=>{const _0x56c150=_0x34f360['map'](_0x578510=>_0x578510['getContainedElement']()),_0x420717=_0x56c150[0x0]['findAncestor']('table'),{minRow:_0xfb98b,maxRow:_0xa73c89}=_0x1dfc76['_getCoordsForCells'](_0x56c150);_0x394a7a['removeRows'](_0x420717,{'at':_0xfb98b,'rows':_0xa73c89-_0xfb98b+0x1});}),_0x3e2079['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b0eeb=>{const _0x590fb6=_0x4b0eeb['map'](_0x568cf6=>_0x568cf6['getContainedElement']()),_0xb58f32=_0x590fb6[0x0]['findAncestor']('table'),{minColumn:_0x554d00,maxColumn:_0x33dc99}=_0x1dfc76['_getCoordsForCells'](_0x590fb6);_0x394a7a['removeColumns'](_0xb58f32,{'at':_0x554d00,'columns':_0x33dc99-_0x554d00+0x1});});const _0x1f84ee=(_0x2a7a15,_0x3c8be7)=>{if(!_0x3c8be7['subType']||!_0x3c8be7['subType']['startsWith']('tablePaste'))return;const _0x9356e0=_0x3c8be7['attributes']['tablePasteChainId'],_0x1e1f70=_0x3e2079['getSuggestions']()['filter'](_0x419f83=>_0x419f83['isInContent']&&_0x419f83['attributes']&&_0x419f83['attributes']['tablePasteChainId']==_0x9356e0);_0x1e1f70['length']&&_0x3c8be7['getAllAdjacentSuggestions']()['length']!=_0x1e1f70['length']&&_0x1e1f70['reduce']((_0x51bae2,_0x3f639a)=>(_0x51bae2['next']=_0x3f639a,_0x3f639a['previous']=_0x51bae2,_0x3f639a));};function _0x1824ea(_0x359b14,_0x3f27d0=!0x0){const {id:_0x3cdd51,authorId:_0x43d0c8}=_0x3e2079['_splitMarkerName'](_0x359b14['markerName']),_0x562501=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x14a755=_0x3e2079['activeMarkers']['includes'](_0x359b14['markerName']);return _0x14a755&&_0x562501['push']('ck-suggestion-marker--active'),{'classes':_0x562501,'attributes':{'data-suggestion':_0x3cdd51,'data-author-id':_0x43d0c8},'priority':_0x14a755&&_0x3f27d0?0xbc2:0xbb8};}_0x3e2079['on']('suggestionLoaded',_0x1f84ee,{'priority':'high'}),_0x3e2079['on']('suggestionUnloaded',_0x1f84ee,{'priority':'high'}),_0xc48cc['model']['document']['registerPostFixer'](()=>{let _0x1812fa=!0x1;const _0x180993=Array['from'](_0xc48cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bf185,data:_0x37bb2a}of _0x180993){const {group:_0x230ed4,type:_0x5eb094,id:_0x10bfca}=_0x3e2079['_splitMarkerName'](_0x5bf185);if('suggestion'!=_0x230ed4||'deletion'!=_0x5eb094||_0x37bb2a['oldRange'])continue;if(!_0x3e2079['hasSuggestion'](_0x10bfca))continue;const _0x6e79d4=_0x3e2079['getSuggestion'](_0x10bfca)['getRanges'](),_0x2250fa=_0xc48cc['plugins']['get']('Users')['me'];for(const _0x480670 of _0x3e2079['getSuggestions']()){if(!_0x480670['isInContent']||_0x480670['author']!=_0x2250fa)continue;if('formatBlock'!=_0x480670['type']||'tablePasteCell'!=_0x480670['subType'])continue;if(_0x480670['getRanges']()['every'](_0x3c01ea=>_0x6e79d4['some'](_0x187eaa=>_0x187eaa['containsRange'](_0x3c01ea,!0x0)))){for(const _0x3ba3f3 of _0x480670['getAllAdjacentSuggestions']())_0x3ba3f3['isInContent']&&(_0x3ba3f3['discard'](),_0x1812fa=!0x0);}}}return _0x1812fa;}),_0xc48cc['model']['document']['registerPostFixer'](_0x3ce70b=>{const _0x453d5b=_0xc48cc['commands']['get']('redo');if(!_0x453d5b||!_0x453d5b['_createdBatches']['has'](_0x3ce70b['batch']))return!0x1;let _0x4369bc=!0x1;const _0x360d60=_0xc48cc['plugins']['get']('Users')['me'],_0x2a93af=_0xc48cc['model']['document']['differ']['getChanges'](),_0x23a532=Array['from'](_0xc48cc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x452b31,data:_0x873303})=>{const {group:_0x500514,subType:_0x13df93,authorId:_0x28bcb0}=_0x3e2079['_splitMarkerName'](_0x452b31);return'suggestion'==_0x500514&&'tablePaste'==_0x13df93&&_0x28bcb0==_0x360d60['id']&&!_0x873303['oldRange'];});for(const _0xb82cef of _0x2a93af){if('insert'!=_0xb82cef['type']||'tableCellSuggestion'!=_0xb82cef['name']||0x1!=_0xb82cef['length'])continue;const _0x379bfe=_0x3ce70b['createRange'](_0xb82cef['position'],_0xb82cef['position']['getShiftedBy'](0x1));if(!_0x23a532['find'](({data:_0x2a39ae})=>_0x2a39ae['newRange']['isEqual'](_0x379bfe))){for(const {name:_0x2d24d4,data:_0x4e2c87}of _0x23a532)if(_0x379bfe['containsRange'](_0x4e2c87['newRange'])){_0x3ce70b['updateMarker'](_0x2d24d4,{'range':_0x379bfe}),_0x4369bc=!0x0;break;}}}return _0x4369bc;}),_0xc48cc['model']['document']['registerPostFixer'](_0x53e651=>{let _0x5324c8=!0x1;const _0x5b3dc8=_0xc48cc['plugins']['get']('Users')['me'],_0x1064a5=_0x3e2079['getSuggestions']()['filter'](_0x469ac3=>_0x469ac3['isInContent']&&_0x469ac3['author']==_0x5b3dc8),_0x32c8af=new Set(),_0x3d3dad=new Set();for(const _0x5ee926 of _0x1064a5)if('tablePaste'==_0x5ee926['subType'])for(const _0x418a84 of _0x5ee926['getMarkers']()){const _0x16b5bd=_0x418a84['getRange']()['getContainedElement']();if(_0x16b5bd){if(_0x16b5bd['is']('element','tableCellSuggestion')&&Be(_0x16b5bd)){_0x5ee926['removeMarker'](_0x418a84['name']),_0x32c8af['add'](_0x16b5bd),_0x5324c8=!0x0;const _0x4c4eea=_0x16b5bd['nextSibling'],_0x356fa4=_0x16b5bd['previousSibling'],_0x386ce6=_0x4c4eea&&_0x4c4eea['is']('element','tableCellSuggestion'),_0x3df142=_0x356fa4&&_0x356fa4['is']('element','tableCellSuggestion');_0x386ce6&&!_0x32c8af['has'](_0x4c4eea)&&_0x3d3dad['add'](_0x4c4eea),_0x3df142&&!_0x32c8af['has'](_0x356fa4)&&_0x3d3dad['add'](_0x356fa4);}else _0x16b5bd['is']('element','paragraph')&&_0x16b5bd['isEmpty']&&(_0x5ee926['removeMarker'](_0x418a84['name']),_0x5324c8=!0x0);}}else{if('tablePasteCell'==_0x5ee926['subType']){if(!_0x5ee926['attributes']||!_0x5ee926['attributes']['tablePasteChainId'])continue;const _0x326589=_0x5ee926['attributes']['markerAttributes'];if(_0x326589&&Object['keys'](_0x326589)['length'])continue;const _0x36842c=_0x5ee926['attributes']['tablePasteChainId'];let _0x58aa07=!0x0,_0x5920ae=!0x0;for(const _0x27dfe8 of _0x1064a5)if(_0x27dfe8['subType']&&_0x27dfe8['subType']['startsWith']('tablePaste')){if(!_0x27dfe8['attributes']['tablePasteChainId']){_0x5920ae=!0x1;break;}if(_0x27dfe8['id']!=_0x5ee926['id']&&_0x27dfe8['attributes']['tablePasteChainId']==_0x36842c){_0x58aa07=!0x1;break;}}_0x5920ae&&_0x58aa07&&(_0x5ee926['removeMarkers'](),_0x5324c8=!0x0);}}for(const _0x2fe101 of _0x32c8af)_0x53e651['remove'](_0x2fe101);for(const _0x52e8fb of _0x3d3dad)_0x53e651['unwrap'](_0x52e8fb);return _0x5324c8;}),_0xc48cc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x277407=>_0x1824ea(_0x277407),'converterPriority':'high'}),_0xc48cc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x9a09f3,_0x11df8f)=>_0x11df8f['options']['showSuggestionHighlights']?_0x1824ea(_0x9a09f3,!0x1):null,'converterPriority':'high'});const _0x14e6ab=_0xc48cc['editing']['view'];this['listenTo'](_0x14e6ab['document'],'clipboardOutput',(_0x11771f,_0x11e8e6)=>{const _0x16ddd2=[];for(const _0x10ddb3 of _0x14e6ab['createRangeIn'](_0x11e8e6['content'])['getItems']())_0x10ddb3['is']('element','suggestion-td')&&_0x16ddd2['push'](_0x10ddb3);_0x14e6ab['change'](_0x5eadf1=>{for(const _0x4d10f9 of _0x16ddd2)_0x5eadf1['move'](_0x5eadf1['createRangeIn'](_0x4d10f9),_0x5eadf1['createPositionBefore'](_0x4d10f9)),_0x5eadf1['remove'](_0x4d10f9);});});}}function Be(_0x2ec969){if(_0x2ec969['isEmpty'])return!0x0;const _0x496a1c=_0x2ec969['getChild'](0x0);return _0x496a1c['is']('element','paragraph')&&_0x496a1c['isEmpty'];}function Oe(_0x488aac,_0x95a0d7={},_0x4d4ade){for(const {isAnchor:_0x12a62b,cellHeight:_0x2675c1,cellWidth:_0x2edcec}of _0x4d4ade['createTableWalker'](_0x488aac,{'includeAllSlots':!0x0,..._0x95a0d7}))if(!_0x12a62b||0x1!=_0x2675c1||0x1!=_0x2edcec)return!0x1;return!0x0;}class Ot extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x225c00=this['editor']['plugins']['get']('TrackChangesEditing');_0x225c00['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x225c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x225c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x225c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x225c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x225c00['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x521df2,_0x15102c){const _0x5304b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20717a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x124fa6=_0x15102c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a834d=_0x20717a['getColumnGroupElement'](_0x124fa6);let _0x816b57=_0x3a834d?_0x20717a['getTableColumnsWidths'](_0x3a834d):null,_0x5ae4f8=_0x124fa6['getAttribute']('tableWidth')||null;const _0x3b87a7=_0x15102c['tableWidth']||_0x5ae4f8,_0x4cc52a=_0x15102c['columnWidths']||_0x816b57,_0x315d0c=this['editor']['plugins']['get']('Users')['me'];for(const _0x58faca of _0x5304b5['getSuggestions']()){const _0x1dceac=_0x58faca['getContainedElement']();if('resizeTable'===_0x58faca['subType']&&_0x1dceac===_0x124fa6){_0x58faca['author']!==_0x315d0c&&_0x58faca['discard']();const _0xc6cf86=_0x58faca['data']['commandParams'];_0x5ae4f8=_0xc6cf86[0x0]['tableWidth'],_0x816b57=_0xc6cf86[0x0]['columnWidths'];break;}}_0x521df2({'table':_0x124fa6,'tableWidth':_0x3b87a7,'columnWidths':_0x4cc52a}),_0x5304b5['markBlockFormat'](_0x124fa6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ae4f8,'columnWidths':_0x816b57}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x56beb6){if('formatBlock'!=_0x56beb6['type']&&'formatInline'!=_0x56beb6['type'])return;const {data:_0x41afae}=_0x56beb6;if(_0x41afae&&'resizeTable'===_0x41afae['formatGroupId']){const _0x359d66='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x359d66)};}}}class xt extends _0x116a29{['afterInit'](){const _0x123dd6=this['editor'];_0x123dd6['plugins']['has']('Template')&&_0x123dd6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x116a29{['afterInit'](){const _0x45617b=this['editor'];if(!_0x45617b['commands']['get']('insertTableOfContents'))return;_0x45617b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x271de7=_0x45617b['plugins']['get']('TrackChangesEditing'),_0xe3b775=_0x45617b['locale'];_0x271de7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x295569=>o(_0xe3b775,'ELEMENT_TABLE_OF_CONTENTS',_0x295569));}}class Rt extends _0x116a29{['afterInit'](){const _0x21ed54=this['editor'];if(!_0x21ed54['plugins']['has']('Title'))return;const _0x460ea0=_0x21ed54['plugins']['get']('TrackChangesEditing');_0x460ea0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x21ed54['locale'],'ELEMENT_TITLE')),_0x21ed54['model']['document']['registerPostFixer'](_0x3c68fd=>{let _0x4f7cb3=!0x1;const _0x426fc0=Array['from'](_0x21ed54['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1095e4,data:_0x3dd4d5}of _0x426fc0){const {group:_0x1d9cad}=_0x460ea0['_splitMarkerName'](_0x1095e4);if('suggestion'!==_0x1d9cad||!_0x3dd4d5['newRange'])continue;const _0xe0502e=_0x3dd4d5['newRange'],_0x5c6d84=_0xe0502e['end']['nodeBefore'];if(!_0x5c6d84||!_0x5c6d84['is']('element','title-content'))continue;if(!_0xe0502e['start']['isTouching'](_0xe0502e['end']))continue;const _0x5c2178=_0x21ed54['model']['schema']['getNearestSelectionRange'](_0xe0502e['end'],'forward');if(_0x5c2178&&_0x5c2178['isCollapsed']){const _0x41e128=_0x3c68fd['createRange'](_0xe0502e['start'],_0x5c2178['start']);_0x41e128['isEqual'](_0xe0502e)||(_0x3c68fd['updateMarker'](_0x1095e4,{'range':_0x41e128}),_0x4f7cb3=!0x0);}_0x4f7cb3||(_0x3c68fd['removeMarker'](_0x1095e4),_0x4f7cb3=!0x0);}return _0x4f7cb3;});}}class Tt extends _0x116a29{['afterInit'](){const _0x1cbac2=this['editor'],_0x11d0c4=_0x1cbac2['plugins']['get']('TrackChangesEditing');_0x1cbac2['plugins']['has']('Uploadcare')&&(_0x11d0c4['enableCommand']('uploadcare'),_0x1cbac2['plugins']['has']('UploadcareImageEdit')&&(_0x11d0c4['enableCommand']('uploadcareImageEdit'),_0x11d0c4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x11d0c4['descriptionFactory']['registerDescriptionCallback'](_0x1b9cf3=>{if('attribute'!=_0x1b9cf3['type'])return;const {data:_0x3c5c2b}=_0x1b9cf3;return _0x3c5c2b&&'uploadcareImageId'==_0x3c5c2b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x116a29{['afterInit'](){const _0x26f593=this['editor'],_0x5468f9=_0x26f593['plugins']['get']('TrackChangesEditing');_0x26f593['plugins']['has']('UndoEditing')&&(_0x5468f9['enableCommand']('undo'),_0x5468f9['enableCommand']('redo'));}}class Ut extends _0x116a29{static get['requires'](){return[Nt];}['afterInit'](){const _0xfab05a=this['editor'];if(!_0xfab05a['plugins']['has']('TableCaptionEditing'))return;_0xfab05a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x116a29{['tableProperties'];['tableCellProperties'];constructor(_0x44b36e){super(_0x44b36e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x44b36e['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4394cb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x51fb38 of this['tableProperties'])_0x4394cb['enableCommand'](_0x51fb38,(_0x1f8b88,_0x36cda2)=>{const _0x5b17dc=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x51fb38,[_0x5b17dc],this['tableProperties'],'tableProperties',_0x1f8b88,_0x36cda2);});_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4394cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x153a59,_0x559924)=>this['handleDiscardAction'](this['tableProperties'],_0x153a59,_0x559924)),_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe28fe6 of this['tableCellProperties'])this['editor']['commands']['get'](_0xe28fe6)&&_0x4394cb['enableCommand'](_0xe28fe6,(_0x29b9a5,_0x42899d)=>{const _0x4557b9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe28fe6,_0x4557b9,this['tableCellProperties'],'tableCellProperties',_0x29b9a5,_0x42899d);});_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4394cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x36cd66,_0x2fa959)=>this['handleDiscardAction'](this['tableCellProperties'],_0x36cd66,_0x2fa959)),_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4394cb['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4394cb['descriptionFactory']['registerDescriptionCallback'](_0x55710a=>this['handleSuggestionDescription'](_0x55710a)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4ae39f,_0x4df917,_0x5328ee,_0xf69b9d,_0x52dd4d,_0x4b95e4){const _0x189303=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4b95e4['batch'],()=>{for(const _0x1fa2fb of _0x4df917){if(this['_getSuggestion'](_0x1fa2fb,_0xf69b9d))_0x52dd4d(_0x4b95e4);else{const _0x190880={};for(const _0x5ad354 of _0x5328ee){const _0x13c8f2=_0x1fa2fb['getAttribute'](_0x5ad354);void 0x0!==_0x13c8f2&&(_0x190880[_0x5ad354]=_0x13c8f2);}_0x52dd4d(_0x4b95e4),_0x189303['markBlockFormat'](_0x1fa2fb,{'commandParams':[_0x190880]},[],_0xf69b9d);}}});}['handleDiscardAction'](_0x53a5a5,_0x29801e,_0x3a00b5){const _0x3373b8=_0x29801e[0x0]['start']['nodeAfter'],_0x15797e=_0x3a00b5['commandParams'][0x0];this['editor']['model']['change'](_0x3a9fd2=>{for(const _0x407c04 of _0x53a5a5)void 0x0!==_0x15797e[_0x407c04]?_0x3a9fd2['setAttribute'](_0x407c04,_0x15797e[_0x407c04],_0x3373b8):_0x3a9fd2['removeAttribute'](_0x407c04,_0x3373b8);});}['handleSuggestionDescription'](_0x51bb78){if(_0x51bb78['data'])switch(_0x51bb78['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'](_0x174313,_0x41a675){const _0x4c9ac3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2a88fa of _0x4c9ac3['getSuggestions']({'skipNotAttached':!0x0})){const _0x331017=_0x2a88fa['getContainedElement']();if(_0x2a88fa['subType']===_0x41a675&&_0x331017===_0x174313)return _0x2a88fa;}return null;}['_registerTablePropertiesAttributes'](){const _0x53f62e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10aa1e=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x32a979 of _0x10aa1e){const _0x8402d6=_0x32a979['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x53f62e['descriptionFactory']['registerAttributeLabel'](_0x32a979,o(this['editor']['locale'],'FORMAT_'+_0x8402d6));}}}class Ft extends _0x116a29{['afterInit'](){const _0x19f26d=this['editor'];if(!_0x19f26d['plugins']['has']('LineHeight'))return;const _0x5c4683=_0x19f26d['plugins']['get']('TrackChangesEditing'),_0x3883f9=_0x19f26d['locale'];_0x5c4683['enableDefaultAttributesIntegration']('lineHeight'),_0x5c4683['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3883f9,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x116a29{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x5a4c16,_0x33c8e4,_0x30cb5c,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(_0x33f82d){super(_0x33f82d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x9582be,_0x2b6811,_0xc6f2d7,_0x95d679)=>{this['_model']['change'](()=>{for(const _0x53cd97 of[..._0x95d679,..._0xc6f2d7])this['_model']['markers']['has'](_0x53cd97)&&_0x33f82d['editing']['reconvertMarker'](_0x53cd97);});}),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']=_0x33f82d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x33f82d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x33f82d['config']['get']('trackChanges.trackFormatChanges'),_0x33f82d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x33f82d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x33f82d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f6958=this['editor'];_0x1f6958['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x37c95d,{writer:_0x356cb3})=>{let _0x52abda='suggestion:'+_0x37c95d['getAttribute']('suggestion-type')+':'+_0x37c95d['getAttribute']('id');return _0x37c95d['getAttribute']('marker-count')&&(_0x52abda+=':'+_0x37c95d['getAttribute']('marker-count')),_0x356cb3['createElement']('$marker',{'data-name':_0x52abda});}}),_0x1f6958['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f6958['model']['document']['registerPostFixer'](_0x1067ca=>{let _0x3afffe=!0x1;const _0x23928d=Array['from'](_0x1f6958['model']['document']['differ']['getChangedMarkers']()),_0x468282=new Set();for(const {name:_0x46b5ff,data:_0x31647c}of _0x23928d){const {group:_0x490265,type:_0x35227b,subType:_0x46a2cb,id:_0x2a5664}=this['_splitMarkerName'](_0x46b5ff);if('suggestion'!==_0x490265)continue;const _0x30a930=_0x46a2cb?'suggestion:'+_0x35227b+':'+_0x46a2cb+':'+_0x2a5664:'suggestion:'+_0x35227b+':'+_0x2a5664,_0x44d489=_0x1f6958['model']['markers']['getMarkersGroup'](_0x30a930),_0x43784=_0x1f6958['model']['markers']['get'](_0x46b5ff),_0x25e943=this['_suggestions']['get'](_0x2a5664);if(null!=_0x31647c['newRange']){'formatInline'==_0x35227b&&(_0x3afffe=_0x3afffe||Wt(_0x31647c['newRange'],_0x46b5ff,_0x1067ca,_0x1f6958['model']['schema']));const _0x511518='attribute'==_0x35227b&&this['_isBlockAttribute'](_0x46a2cb['split']('|')[0x0]),_0x20550f='attribute'==_0x35227b&&this['_isInlineAttribute'](_0x46a2cb['split']('|')[0x0]);if(_0x31647c['newRange']['isCollapsed']||'$graveyard'==_0x31647c['newRange']['root']['rootName']||'formatBlock'==_0x35227b&&!Qt(_0x31647c['newRange'])||_0x511518&&!Qt(_0x31647c['newRange'])||_0x20550f&&Xt(_0x31647c['newRange'])||'deletion'==_0x35227b&&Xt(_0x31647c['newRange'])||_0x43784&&Yt(_0x43784,_0x44d489))_0x1067ca['removeMarker'](_0x46b5ff),_0x3afffe=!0x0;else{if(!_0x25e943||!_0x25e943['isInContent'])continue;if(_0x31647c['newRange']&&_0x31647c['oldRange']&&_0x31647c['newRange']['isEqual'](_0x31647c['oldRange']))continue;_0x468282['add'](_0x25e943);}}}return _0x468282['size']>0x0&&(_0x3afffe=!!this['_joinWithAdjacentSuggestions'](_0x468282)||_0x3afffe),_0x3afffe;}),_0x1f6958['model']['document']['registerPostFixer'](_0x52335b=>{let _0x205243=!0x1;for(const _0x4d4429 of _0x1f6958['model']['document']['differ']['getChanges']())if('insert'==_0x4d4429['type'])for(const _0x1eae66 of this['_suggestions']['values']()){if(_0x1eae66['isMultiRange']||!_0x1eae66['isInContent'])continue;const _0x3e464a='formatBlock'==_0x1eae66['type'],_0x477572=this['_getAttributeKey'](_0x1eae66),_0x148036=_0x477572&&this['_isBlockAttribute'](_0x477572);if(!_0x3e464a&&!_0x148036)continue;const _0x42b31f=_0x1eae66['getFirstRange']();if(_0x42b31f['start']['parent']!=_0x42b31f['end']['parent']&&!_0x42b31f['end']['isAtEnd']){const _0x41e38b=_0x1f6958['model']['createPositionAt'](_0x42b31f['start']['nodeAfter'],'end'),_0x260ee6=_0x1f6958['model']['createRange'](_0x42b31f['start'],_0x41e38b);_0x52335b['updateMarker'](_0x1eae66['getFirstMarker'](),{'range':_0x260ee6}),_0x205243=!0x0;}}return _0x205243;}),_0x1f6958['model']['document']['registerPostFixer'](_0x37c4a4=>this['_processAttributeChanges'](_0x37c4a4)),_0x1f6958['model']['document']['registerPostFixer'](_0xd7c124=>!_0xd7c124['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd7c124)),_0x1f6958['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f6958['model']['document']['on']('change:data',(_0x4468d4,_0x35dd24)=>{if(!_0x35dd24['isLocal']||_0x35dd24['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x180e7f=_0x1f6958['model']['document']['differ']['getChanges']();if(0x0==_0x180e7f['length'])return;const _0x5b9375=[],_0x4a0dba=_0x180e7f['filter'](_0x23b821=>'attribute'==_0x23b821['type']),_0x3d89e2=_0x180e7f['filter'](_0x372866=>'insert'==_0x372866['type']&&'$text'!=_0x372866['name']);for(const _0x1c6a3c of _0x4a0dba)this['_isRegisteredAttribute'](_0x1c6a3c['attributeKey'])&&_0x5b9375['push']({'key':_0x1c6a3c['attributeKey'],'newValue':_0x1c6a3c['attributeNewValue'],'oldValue':_0x1c6a3c['attributeOldValue'],'range':Zt(_0x1c6a3c['range'],_0x1f6958['model'])});for(const _0x13da87 of _0x3d89e2){if('rename'!=_0x13da87['action']&&'refresh'!=_0x13da87['action'])continue;const _0x1edeeb=tn(_0x13da87['position']['nodeAfter'],_0x1f6958['model']),_0x2f46c8=_0x13da87['before'];'rename'==_0x13da87['action']&&_0x5b9375['push']({'key':m,'newValue':_0x13da87['name'],'oldValue':_0x2f46c8['name'],'range':_0x1edeeb});for(const [_0x594416,_0x2756f8]of _0x2f46c8['attributes']){if(!this['_isRegisteredAttribute'](_0x594416))continue;const _0x5d44cd=_0x13da87['attributes']['get'](_0x594416);_0x2756f8!==_0x5d44cd&&_0x5b9375['push']({'key':_0x594416,'newValue':_0x5d44cd,'oldValue':_0x2756f8,'range':_0x1edeeb});}for(const [_0x1882bd,_0xeb8847]of _0x13da87['attributes'])this['_isRegisteredAttribute'](_0x1882bd)&&(_0x2f46c8['attributes']['has'](_0x1882bd)||_0x5b9375['push']({'key':_0x1882bd,'newValue':_0xeb8847,'oldValue':null,'range':_0x1edeeb}));}0x0!=_0x5b9375['length']&&_0x1f6958['model']['enqueueChange'](_0x35dd24,_0x54b6ac=>{const _0x3ad6f0=_0x492477();for(const {range:_0x27152b,key:_0x482815,oldValue:_0x29b87b,newValue:_0x1a3387}of _0x5b9375)this['markAttributeChange'](_0x27152b,_0x482815,_0x29b87b,_0x1a3387,{'groupId':_0x3ad6f0});this['_reduceExistingSuggestions'](_0x54b6ac,_0x5b9375);});},{'priority':'lowest'}),_0x1f6958['model']['markers']['on']('update:suggestion',(_0x4825f2,_0x28bc5c,_0x808970)=>{if(null==_0x808970){const {id:_0x144876}=this['_splitMarkerName'](_0x28bc5c['name']),_0x2e5ad3=this['_suggestions']['get'](_0x144876);_0x2e5ad3&&_0x2e5ad3['addMarkerName'](_0x28bc5c['name']);}}),_0x1f6958['model']['document']['on']('change:data',()=>{const _0x5aebaa=Array['from'](_0x1f6958['model']['document']['differ']['getChangedMarkers']())['filter'](_0x49f086=>'suggestion'===this['_splitMarkerName'](_0x49f086['name'])['group']);if(0x0===_0x5aebaa['length'])return;_0x5aebaa['sort']((_0x382d3d,_0x2142e0)=>{const _0x22ccd9=_0x382d3d['data']['oldRange'],_0x45070d=_0x2142e0['data']['oldRange'];return null===_0x22ccd9&&null===_0x45070d?0x0:null===_0x22ccd9&&null!==_0x45070d?-0x1:null!==_0x22ccd9&&null===_0x45070d?0x1:_0x22ccd9['start']['isBefore'](_0x45070d['start'])?-0x1:0x1;});const _0x41d456=new Set(),_0x4115d5=new Set();for(const {name:_0x3afb7d,data:_0x44fb79}of _0x5aebaa){const {id:_0xb989f7}=this['_splitMarkerName'](_0x3afb7d);if(null===_0x44fb79['oldRange']){const _0x4b060a=this['_handleNewSuggestionMarker'](_0x3afb7d);_0x4115d5['add'](_0x4b060a);}else{const _0x4f1f10=this['_suggestions']['get'](_0xb989f7);null!==_0x44fb79['newRange']||_0x4f1f10['isInContent']?(_0x41d456['add'](_0x4f1f10['head']),_0x4115d5['add'](_0x4f1f10)):this['_removeSuggestion'](_0x4f1f10);}}_0x4115d5['size']>0x0&&this['_refreshSuggestionsChain'](_0x4115d5);for(const _0x8de83a of _0x41d456)this['fire']('suggestionChanged',_0x8de83a);}),_0x1f6958['model']['on']('applyOperation',(_0x575b66,_0x297953)=>{const _0x5b41d5=_0x297953[0x0];if(!this['_suggestions']['size'])return;if(!_0x5b41d5['isDocumentOperation'])return;if(_0x5b41d5['batch']['isUndo']||!_0x5b41d5['batch']['isLocal'])return;let _0x598f55,_0x4504fa;switch(_0x5b41d5['type']){case'insert':_0x598f55=_0x1f6958['model']['createPositionAt'](_0x5b41d5['position']),_0x4504fa=_0x598f55['getShiftedBy'](_0x5b41d5['howMany']);break;case'split':_0x598f55=_0x1f6958['model']['createPositionAt'](_0x5b41d5['splitPosition']),_0x4504fa=_0x1f6958['model']['createPositionAt'](_0x5b41d5['moveTargetPosition']);break;case'move':_0x598f55=_0x1f6958['model']['createPositionAt'](_0x5b41d5['targetPosition']),_0x4504fa=_0x598f55['getShiftedBy'](_0x5b41d5['howMany']);break;default:return;}const _0x562c3f=_0x1f6958['model']['createRange'](_0x598f55,_0x4504fa);_0x1f6958['model']['change'](()=>{for(const {suggestion:_0x28e6cc,meta:_0x41061a}of this['_findSuggestions'](_0x562c3f)){if(_0x28e6cc['isMultiRange'])continue;if('formatInline'==_0x28e6cc['type'])continue;const _0x2b2edc=this['_getAttributeKey'](_0x28e6cc);if(_0x2b2edc&&this['_isBlockAttribute'](_0x2b2edc)&&'split'!=_0x5b41d5['type'])continue;const _0x4dca51=_0x28e6cc['data']&&_0x28e6cc['data']['multipleBlocks'];('formatBlock'!=_0x28e6cc['type']||'split'==_0x5b41d5['type']&&!_0x4dca51)&&(_0x41061a['containsRangeInObject']||'insertion'==_0x28e6cc['type']&&_0x41061a['isOwn']||_0x28e6cc['getFirstRange']()['containsRange'](_0x562c3f)&&this['_breakSuggestionMarker'](_0x28e6cc,_0x598f55,_0x4504fa));}});},{'priority':'lowest'}),_0x1f6958['model']['on']('deleteContent',(_0x3ee095,_0x15f1f8)=>{const _0x2577b7=_0x15f1f8[0x0],_0x434bad=_0x15f1f8[0x1];if(_0x434bad&&_0x434bad['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2577b7['isCollapsed'])return;const _0x323c6f=_0x1f6958['model']['schema'],{start:_0x1a06a8,end:_0x291829}=_0x2577b7['getFirstRange'](),_0xb900bf=_0x1a06a8['nodeAfter']&&_0x323c6f['isLimit'](_0x1a06a8['nodeAfter'])?null:_0x323c6f['getNearestSelectionRange'](_0x1a06a8,'forward'),_0x447494=_0x291829['nodeBefore']&&_0x323c6f['isLimit'](_0x291829['nodeBefore'])?null:_0x323c6f['getNearestSelectionRange'](_0x291829,'backward'),_0x59f0bb=_0x1f6958['model']['createRange'](_0xb900bf?_0xb900bf['start']:_0x1a06a8,_0x447494?_0x447494['end']:_0x291829);_0x1f6958['model']['change'](_0x1896fe=>{this['markDeletion'](_0x59f0bb);const _0x1998bb=_0x1f6958['model']['schema']['getNearestSelectionRange'](_0x59f0bb['start']);_0x2577b7['is']('documentSelection')?_0x1896fe['setSelection'](_0x1998bb):_0x2577b7['setTo'](_0x1998bb);}),_0x3ee095['stop']();},{'priority':_0x144041['normal']+0xa}),_0x1f6958['model']['on']('insertContent',(_0x534ea2,_0x2c69e3)=>{const _0xd6725a=_0x2c69e3[_0x2c69e3['length']-0x1];_0xd6725a&&_0xd6725a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f6958['model']['change'](()=>{let _0x396442=_0x1f6958['model']['insertContent'](_0x2c69e3[0x0],_0x2c69e3[0x1],_0x2c69e3[0x2],{'forceDefaultExecution':!0x0});if(!_0x396442)return;_0x534ea2['return']=_0x396442['clone']();const _0x1d66ac=_0x396442['end']['nodeBefore'],_0x2ac317=_0x1f6958['model']['schema'];_0x1d66ac&&_0x2ac317['isBlock'](_0x1d66ac)&&!_0x2ac317['isObject'](_0x1d66ac)&&(_0x396442=_0x1f6958['model']['createRange'](_0x396442['start'],_0x1f6958['model']['createPositionAt'](_0x1d66ac,'end'))),this['markInsertion'](_0x396442);}),_0x534ea2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x55c607=new v(_0x1f6958,this['_suggestions']);_0x1f6958['commands']['add']('acceptSuggestion',_0x55c607),this['enableCommand']('acceptSuggestion');const _0x4aa9b2=new D(_0x1f6958,this['_suggestions']);_0x1f6958['commands']['add']('discardSuggestion',_0x4aa9b2),this['enableCommand']('discardSuggestion'),_0x1f6958['commands']['add']('acceptAllSuggestions',new B(_0x1f6958,_0x55c607,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f6958['commands']['add']('discardAllSuggestions',new B(_0x1f6958,_0x4aa9b2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f6958['commands']['add']('acceptSelectedSuggestions',new O(_0x1f6958,_0x55c607,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f6958['commands']['add']('discardSelectedSuggestions',new O(_0x1f6958,_0x4aa9b2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5c4a95=_0x1f6958['plugins']['get']('CommentsRepository');this['listenTo'](_0x5c4a95,'addComment',(_0x3ff5ec,{threadId:_0x42ea62})=>{const _0x30dd85=this['_suggestions']['get'](_0x42ea62);_0x30dd85&&_0x30dd85['commentThread']&&0x1===_0x30dd85['commentThread']['length']&&this['_updateSuggestionData'](_0x42ea62,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5c4a95,'removeComment',(_0x2656cd,{threadId:_0x1be10e})=>{const _0x33270d=this['_suggestions']['get'](_0x1be10e);_0x33270d&&_0x33270d['commentThread']&&!_0x33270d['commentThread']['length']&&this['_updateSuggestionData'](_0x1be10e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x346a8a){const _0x2f5408=_0x111e21([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]),_0x597c93=0x3d8d0df,_0x43c47f=0x3df51b7^_0x597c93,_0x7d26da=window[_0x111e21([0x44,0x61,0x74,0x65])][_0x111e21([0x6e,0x6f,0x77])](),_0x59180d=_0x346a8a[_0x111e21([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2181d6=new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40f3b5=>{_0x59180d[_0x111e21([0x6f,0x6e,0x63,0x65])](_0x111e21([0x72,0x65,0x61,0x64,0x79]),_0x40f3b5);}),_0xdada42={[_0x111e21([0x6b,0x74,0x79])]:_0x111e21([0x45,0x43]),[_0x111e21([0x75,0x73,0x65])]:_0x111e21([0x73,0x69,0x67]),[_0x111e21([0x63,0x72,0x76])]:_0x111e21([0x50,0x2d,0x32,0x35,0x36]),[_0x111e21([0x78])]:_0x111e21([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]),[_0x111e21([0x79])]:_0x111e21([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]),[_0x111e21([0x61,0x6c,0x67])]:_0x111e21([0x45,0x53,0x32,0x35,0x36])},_0x1a99b9=_0x59180d[_0x111e21([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x111e21([0x67,0x65,0x74])](_0x111e21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12ebc2(){let _0x3c15bd,_0x5ee027=null,_0x20679c=null;try{if(_0x1a99b9==_0x111e21([0x47,0x50,0x4c]))return _0x111e21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c15bd=_0x54362f(),!_0x3c15bd)return _0x111e21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c15bd[_0x111e21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20679c=_0x2d19b6(_0x3c15bd[_0x111e21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c15bd[_0x111e21([0x6a,0x74,0x69])])),await _0x4a8ddd()?_0x5e625c()?_0x432959()?_0x111e21([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1254e3()?(_0x3c15bd[_0x111e21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x111e21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ee027=_0x492707(_0x111e21([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54465b()):_0x111e21([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x111e21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x111e21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x111e21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x432959(){const _0x16f767=[_0x111e21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x111e21([0x74,0x72,0x69,0x61,0x6c])][_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c15bd[_0x111e21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7d26da/0x3e8:0xe10*_0x43c47f;return _0x3c15bd[_0x111e21([0x65,0x78,0x70])]<_0x16f767;}function _0x5e625c(){const _0x4aad9d=_0x3c15bd[_0x111e21([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4aad9d)return!0x1;if(_0x4aad9d[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111e21([0x2a])))return!0x0;if(_0x4aad9d[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111e21([0x54,0x43])))return!0x0;if(_0x4aad9d[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111e21([0x52,0x54,0x43]))){if(_0x568133())return!0x0;if(_0x12d26c()||_0x243d70())return!0x0;}return!0x1;}function _0x1254e3(){const _0x37461b=_0x3c15bd[_0x111e21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37461b||0x0==_0x37461b[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bba15}=new URL(window[_0x111e21([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37461b[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bba15))return!0x0;const _0x3361da=_0x5bba15[_0x111e21([0x73,0x70,0x6c,0x69,0x74])](_0x111e21([0x2e]));return _0x37461b[_0x111e21([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27309a=>_0x27309a[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111e21([0x2a])))[_0x111e21([0x6d,0x61,0x70])](_0x24fb4e=>_0x24fb4e[_0x111e21([0x73,0x70,0x6c,0x69,0x74])](_0x111e21([0x2e])))[_0x111e21([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e21ab=>_0x1e21ab[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3361da[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x111e21([0x6d,0x61,0x70])](_0x36fde1=>Array(_0x3361da[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36fde1[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x111e21([0x66,0x69,0x6c,0x6c])](_0x36fde1[0x0]===_0x111e21([0x2a])?_0x111e21([0x2a]):'')[_0x111e21([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36fde1))[_0x111e21([0x73,0x6f,0x6d,0x65])](_0x2ea2c4=>_0x3361da[_0x111e21([0x65,0x76,0x65,0x72,0x79])]((_0x27ef5f,_0x58c88d)=>_0x2ea2c4[_0x58c88d]===_0x27ef5f||_0x2ea2c4[_0x58c88d]===_0x111e21([0x2a])));}function _0x54465b(){return _0x5ee027&&_0x20679c?new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f0c6a,_0x3c5714)=>{_0x5ee027[_0x111e21([0x74,0x68,0x65,0x6e])](_0x4f0c6a,_0x3c5714),_0x20679c[_0x111e21([0x74,0x68,0x65,0x6e])](_0x465d53=>{_0x465d53!=_0x111e21([0x56,0x61,0x6c,0x69,0x64])&&_0x4f0c6a(_0x465d53);},_0x3c5714);}):_0x5ee027||_0x20679c||_0x111e21([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d19b6(_0x5bf79f,_0x189d5c){return new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23161f=>{if(_0xa3fe6c())return _0x23161f(_0x111e21([0x56,0x61,0x6c,0x69,0x64]));_0x16a638(),_0x59180d[_0x111e21([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x111e21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15ee4c=!0x1;const _0xb1ae9e=_0x492477();function _0x17cc18(_0x557550){return!!_0x557550&&(typeof _0x557550===_0x111e21([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x557550===_0x111e21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x557550[_0x111e21([0x74,0x68,0x65,0x6e])]===_0x111e21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x557550[_0x111e21([0x63,0x61,0x74,0x63,0x68])]===_0x111e21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57bfe0(_0x304cfd){_0x4798e2(_0x304cfd)[_0x111e21([0x74,0x68,0x65,0x6e])](_0x2ad263=>{if(!_0x2ad263||_0x2ad263[_0x111e21([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x111e21([0x6f,0x6b]))return _0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39a889(_0x343824(_0xb1ae9e+_0x189d5c))!=_0x2ad263[_0x111e21([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x111e21([0x56,0x61,0x6c,0x69,0x64]);})[_0x111e21([0x74,0x68,0x65,0x6e])](_0x12633a=>(_0x2866fb(),_0x12633a),()=>{const _0x3b2e1f=_0x5681f3();return null==_0x3b2e1f?(_0x2866fb(),_0x111e21([0x56,0x61,0x6c,0x69,0x64])):_0x111e21(_0x7d26da-_0x3b2e1f>(0x27d454df^_0x597c93)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x111e21([0x74,0x68,0x65,0x6e])](_0x23161f)[_0x111e21([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23161f(_0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x587cc9=0x3ee3e5f^_0x597c93;function _0x2866fb(){const _0x5d0259=_0x111e21([0x6c,0x6c,0x63,0x74,0x2d])+_0x39a889(_0x343824(_0x5bf79f)),_0x5d7f40=_0x1725af(_0x39a889(window[_0x111e21([0x4d,0x61,0x74,0x68])][_0x111e21([0x63,0x65,0x69,0x6c])](_0x7d26da/_0x587cc9)));window[_0x111e21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x111e21([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d0259,_0x5d7f40);}function _0x5681f3(){const _0x345467=_0x111e21([0x6c,0x6c,0x63,0x74,0x2d])+_0x39a889(_0x343824(_0x5bf79f)),_0x18b17c=window[_0x111e21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x111e21([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x345467);return _0x18b17c?window[_0x111e21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1725af(_0x18b17c),0x10)*_0x587cc9:null;}function _0x4798e2(_0x578a61){return new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12d72a,_0x537595)=>{_0x578a61[_0x111e21([0x74,0x68,0x65,0x6e])](_0x12d72a,_0x537595),window[_0x111e21([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x537595,0x3d9041f^_0x597c93);});}}_0x59180d[_0x111e21([0x6f,0x6e])](_0x111e21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4171ef,_0x2d4b1a)=>{if(_0x2d4b1a[0x0]!=_0x5bf79f)return _0x23161f(_0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d4b1a[0x1]={..._0x2d4b1a[0x1],[_0x111e21([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb1ae9e};},{[_0x111e21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x111e21([0x68,0x69,0x67,0x68])}),_0x59180d[_0x111e21([0x6f,0x6e])](_0x111e21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x551899=>{_0x17cc18(_0x551899[_0x111e21([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15ee4c=!0x0,_0x57bfe0(_0x551899[_0x111e21([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x111e21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x111e21([0x6c,0x6f,0x77])}),_0x2181d6[_0x111e21([0x74,0x68,0x65,0x6e])](()=>{_0x15ee4c||_0x23161f(_0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa3fe6c(){return _0x59180d[_0x111e21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x111e21([0x76,0x69,0x65,0x77])][_0x111e21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x111e21([0x61,0x75,0x74,0x6f]);}function _0x16a638(){_0x59180d[_0x111e21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x111e21([0x76,0x69,0x65,0x77])][_0x111e21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x111e21([0x61,0x75,0x74,0x6f]);}}function _0x492707(_0x1c4c02){const _0x4b5a14=[new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a9258=>setTimeout(_0x5a9258,0x3d1ee13^_0x597c93)),_0x2181d6[_0x111e21([0x74,0x68,0x65,0x6e])](()=>new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5999c9=>{let _0x1ee2d9=0x0;_0x59180d[_0x111e21([0x6d,0x6f,0x64,0x65,0x6c])][_0x111e21([0x6f,0x6e])](_0x111e21([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x166028,_0x1e7f22)=>{_0x1e7f22[0x0][_0x111e21([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ee2d9++,_0x1ee2d9==(0x3d8d537^_0x597c93)&&(_0x5999c9(),_0x166028[_0x111e21([0x6f,0x66,0x66])]());});}))];return window[_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x111e21([0x72,0x61,0x63,0x65])](_0x4b5a14)[_0x111e21([0x74,0x68,0x65,0x6e])](()=>_0x1c4c02);}async function _0x32b5b8(){await _0x2181d6,_0x59180d[_0x111e21([0x6d,0x6f,0x64,0x65,0x6c])][_0x111e21([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x439a8d,_0x59180d[_0x111e21([0x6d,0x6f,0x64,0x65,0x6c])][_0x111e21([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x439a8d,_0x59180d[_0x111e21([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x111e21([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x568133(){return _0x181976(_0x111e21([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29475c(_0x111e21([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x111e21([0x73,0x74,0x61,0x74,0x65])]==_0x111e21([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x12d26c(){return _0x181976(_0x111e21([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 _0x243d70(){return _0x181976(_0x111e21([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x155f9d(_0xc5e44e){const _0x513a1c=_0xefb25a();_0x59180d[_0x513a1c]=_0x111e21([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc5e44e,_0xc5e44e!=_0x111e21([0x56,0x61,0x6c,0x69,0x64])&&_0x32b5b8();}function _0xefb25a(){const _0x410c2a=window[_0x111e21([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x111e21([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x111e21([0x6e,0x6f,0x77])]())[_0x111e21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x111e21([0x2e]),'');let _0x1f65e3=_0x111e21([0x52]);for(let _0x4eefa3=0x0;_0x4eefa3<_0x410c2a[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4eefa3+=0x2){let _0x283fde=window[_0x111e21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x410c2a[_0x111e21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eefa3,_0x4eefa3+0x2));_0x283fde>=_0x2f5408[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x283fde-=_0x2f5408[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f65e3+=_0x2f5408[_0x283fde];}return _0x1f65e3;}function _0x54362f(){const _0x4b3f69=_0x1a99b9[_0x111e21([0x73,0x70,0x6c,0x69,0x74])](_0x111e21([0x2e]));if(0x3!=_0x4b3f69[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x581ea1(_0x4b3f69[0x1]);function _0x581ea1(_0x52455f){const _0x43b813=_0x2d6abd(_0x52455f);return _0x43b813&&_0x2dcb73()?_0x43b813:null;function _0x2dcb73(){const _0x19cc90=_0x43b813[_0x111e21([0x6a,0x74,0x69])],_0x57722e=window[_0x111e21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19cc90[_0x111e21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19cc90[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11a6a1={..._0x43b813,[_0x111e21([0x6a,0x74,0x69])]:_0x19cc90[_0x111e21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19cc90[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11a6a1[_0x111e21([0x76,0x63])],_0x343824(_0x11a6a1)==_0x57722e;}}}async function _0x4a8ddd(){let _0x38d798=!0x0;try{const _0xac666e=_0x1a99b9[_0x111e21([0x73,0x70,0x6c,0x69,0x74])](_0x111e21([0x2e])),[_0x4cda9c,_0x3021d6,_0x5a2520]=_0xac666e;return _0x35302d(_0x4cda9c),await _0x1fd5bc(_0x4cda9c,_0x3021d6,_0x5a2520),_0x38d798;}catch{return!0x1;}function _0x35302d(_0x3466dc){const _0x3be09c=_0x2d6abd(_0x3466dc);_0x3be09c&&_0x3be09c[_0x111e21([0x61,0x6c,0x67])]==_0x111e21([0x45,0x53,0x32,0x35,0x36])||(_0x38d798=!0x1);}async function _0x1fd5bc(_0x49a314,_0x376533,_0x199cf8){const _0x54682c=window[_0x111e21([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x111e21([0x66,0x72,0x6f,0x6d])](_0x205c38(_0x199cf8),_0x357a5f=>_0x357a5f[_0x111e21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16dae3=new window[(_0x111e21([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x111e21([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49a314+_0x111e21([0x2e])+_0x376533),_0x505de8=window[_0x111e21([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x111e21([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x505de8)return;const _0x3a4b45=await _0x505de8[_0x111e21([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x111e21([0x6a,0x77,0x6b]),_0xdada42,{[_0x111e21([0x6e,0x61,0x6d,0x65])]:_0x111e21([0x45,0x43,0x44,0x53,0x41]),[_0x111e21([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x111e21([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x111e21([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x505de8[_0x111e21([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x111e21([0x6e,0x61,0x6d,0x65])]:_0x111e21([0x45,0x43,0x44,0x53,0x41]),[_0x111e21([0x68,0x61,0x73,0x68])]:{[_0x111e21([0x6e,0x61,0x6d,0x65])]:_0x111e21([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a4b45,_0x54682c,_0x16dae3)||(_0x38d798=!0x1);}}function _0x2d6abd(_0x5d1d54){return _0x5d1d54[_0x111e21([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x111e21([0x65,0x79]))?JSON[_0x111e21([0x70,0x61,0x72,0x73,0x65])](_0x205c38(_0x5d1d54)):null;}function _0x205c38(_0x526fe7){return window[_0x111e21([0x61,0x74,0x6f,0x62])](_0x526fe7[_0x111e21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x111e21([0x2b]))[_0x111e21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x111e21([0x2f])));}function _0x343824(_0x33cdd0){let _0x5cf5b2=0x1505;function _0x3ea91a(_0x4a537f){for(let _0x1f279e=0x0;_0x1f279e<_0x4a537f[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f279e++){const _0x357b1d=_0x4a537f[_0x111e21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f279e);_0x5cf5b2=(_0x5cf5b2<<0x5)+_0x5cf5b2+_0x357b1d,_0x5cf5b2&=_0x5cf5b2;}}function _0xc675f0(_0x3e70b4){Array[_0x111e21([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e70b4)?_0x3e70b4[_0x111e21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc675f0):_0x3e70b4&&typeof _0x3e70b4==_0x111e21([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x111e21([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e70b4)[_0x111e21([0x73,0x6f,0x72,0x74])]()[_0x111e21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6376b5,_0x5894d1])=>{_0x3ea91a(_0x6376b5),_0xc675f0(_0x5894d1);}):_0x3ea91a(window[_0x111e21([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e70b4));}return _0xc675f0(_0x33cdd0),_0x5cf5b2>>>0x0;}function _0x39a889(_0x2800cc){return _0x2800cc[_0x111e21([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x111e21([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x111e21([0x30]));}function _0x1725af(_0x37abc6){return _0x37abc6[_0x111e21([0x73,0x70,0x6c,0x69,0x74])]('')[_0x111e21([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x111e21([0x6a,0x6f,0x69,0x6e])]('');}function _0x181976(_0x4036de){return _0x59180d[_0x111e21([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x111e21([0x68,0x61,0x73])](_0x4036de);}function _0x29475c(_0x430bf7){return _0x59180d[_0x111e21([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x111e21([0x67,0x65,0x74])](_0x430bf7);}function _0x439a8d(){}function _0x111e21(_0x52f75){return _0x52f75['map'](_0x28f197=>String['fromCharCode'](_0x28f197))['join']('');}_0x155f9d(await _0x12ebc2());}(this);}set['adapter'](_0x703593){if(this['_adapter'])throw new _0x428d7a('track-changes-adapter-already-set',this);this['_adapter']=_0x703593;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5bd3d8=!0x1,toJSON:_0x57e50e=!0x1}={}){const _0x577b14=[];for(const _0x2144e5 of this['_suggestions']['values']())_0x5bd3d8&&!_0x2144e5['isInContent']||_0x577b14['push'](_0x2144e5);return _0x57e50e?_0x577b14['map'](_0xe3b52d=>_0xe3b52d['toJSON']()):_0x577b14;}['getSuggestion'](_0x1ea65b){const _0x45e934=this['_suggestions']['get'](_0x1ea65b);if(!_0x45e934)throw new _0x428d7a('track-changes-suggestion-not-found',this);return _0x45e934;}['hasSuggestion'](_0x2e806f){return this['_suggestions']['has'](_0x2e806f);}['addSuggestionData'](_0x5ea86f){const {authorId:_0x258110,id:_0x128ba3,originalSuggestionId:_0x53075f,attributes:_0xad872a}=_0x5ea86f,[_0x19a618,_0x287f7a]=_0x5ea86f['type']['split'](':'),_0x541549=this['_suggestions']['get'](_0x128ba3)||this['_createSuggestion'](_0x19a618,_0x287f7a,_0x128ba3,_0x258110,_0xad872a,_0x53075f);if(this['_addThreadToSuggestion'](_0x541549),this['_checkSuggestionCorrectness'](_0x541549,_0x19a618,_0x287f7a||null,_0x258110),_0x541549['createdAt']=_0x5ea86f['createdAt'],_0x541549['_isDataLoaded']=!0x0,_0xad872a&&_0xad872a['@external']){const _0xf3896=_0xad872a['@external'],_0x242000=this['_getExternalAuthor'](_0xf3896['authorName']);_0x541549['authoredAt']=_0xf3896['createdAt'],_0x541549['author']=_0x242000,_0x541549['isExternal']=!0x0;}else _0x541549['authoredAt']=_0x5ea86f['createdAt'];switch(_0x5ea86f['data']&&(_0x541549['data']=_0x5ea86f['data']),_0x5ea86f['attributes']&&(_0x541549['attributes']=_0x5ea86f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x541549['_saved']=!0x0),this['_suggestionState']['get'](_0x541549)){case'notReady':this['_suggestionState']['set'](_0x541549,'dataReady');break;case'markerReady':_0x541549['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x541549])),this['_refreshSuggestionsChain'](new Set([_0x541549])),this['_suggestionState']['set'](_0x541549,'ready'),this['fire']('suggestionLoaded',_0x541549)):this['_suggestionState']['set'](_0x541549,'removed');}return _0x541549;}['acceptSuggestion'](_0x3f84a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x22ebf2 of _0x3f84a4['getAllAdjacentSuggestions']())_0x22ebf2['accept']();});});}['discardSuggestion'](_0x3c890e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ac416 of _0x3c890e['getAllAdjacentSuggestions']())_0x5ac416['discard']();});});}['enableCommand'](_0x4d4005,_0xb1f440){const _0x25066c=this['editor']['commands']['get'](_0x4d4005);if(!_0x25066c)throw new _0x428d7a('track-changes-command-not-found',this,{'commandName':_0x4d4005});if(this['_enabledCommands']['has'](_0x25066c))throw new _0x428d7a('track-changes-enable-command-twice',this,{'commandName':_0x4d4005});this['_enabledCommands']['add'](_0x25066c),_0xb1f440&&_0x25066c['on']('execute',(_0x5ae521,_0x2d82e2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d82e2['length']>0x0&&_0x2d82e2[_0x2d82e2['length']-0x1]&&_0x2d82e2[_0x2d82e2['length']-0x1]['forceDefaultExecution']?_0x2d82e2['pop']():(_0x5ae521['return']=_0xb1f440((..._0x306776)=>_0x25066c['execute'](..._0x306776,{'forceDefaultExecution':!0x0}),..._0x2d82e2),_0x5ae521['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xe7dd3d){let _0x4e3484,_0x2cdf02;const _0x4051f2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e3484=_0xe7dd3d();}catch(_0x3a6dfe){_0x2cdf02=_0x3a6dfe;}return _0x4051f2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2cdf02&&_0x428d7a['rethrowUnexpectedError'](_0x2cdf02,this),_0x4e3484;}['markInsertion'](_0x2de658,_0x3cfb44=null,_0xc40dd5={}){if(_0x2de658['isCollapsed'])return null;const _0x3aa28f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xc40dd5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x90d064,meta:_0x35533c}of this['_findSuggestions'](_0x2de658,'insertion'))if(_0x35533c['isOwn']){if(!_0x35533c['isNextTo']){if(_0x35533c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x90d064,_0xc40dd5))continue;return _0x90d064;}if(sn(_0x90d064,_0xc40dd5))return _0x90d064;this['_breakSuggestionMarker'](_0x90d064,_0x2de658['start'],_0x2de658['end']);break;}if(_0x3cfb44==_0x90d064['subType']&&sn(_0x90d064,_0xc40dd5)){const _0x3b0d18=_0x90d064['getFirstRange']();return _0x3b0d18['start']['isEqual'](_0x2de658['end'])?this['_setSuggestionRange'](_0x90d064,this['_model']['createRange'](_0x2de658['start'],_0x3b0d18['end'])):this['_setSuggestionRange'](_0x90d064,this['_model']['createRange'](_0x3b0d18['start'],_0x2de658['end'])),_0x90d064;}}const _0x29f630=_0x492477(),_0x52f94d=_0x3aa28f['id'],_0x2055eb=_0x3cfb44?'insertion:'+_0x3cfb44:'insertion',_0x1b70e6=this['_setSuggestionData']({'id':_0x29f630,'type':_0x2055eb,'createdAt':new Date(),'authorId':_0x52f94d,'attributes':_0xc40dd5});return this['_addSuggestionMarker'](_0x2055eb,_0x29f630,_0x52f94d,_0x2de658),_0x1b70e6;}['markMultiRangeInsertion'](_0x4d18da,_0x39a481='multi',_0x3fd7de={}){const _0x485b95=this['editor']['plugins']['get']('Users')['me'],_0x67e256=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x39a481,'join');this['_trackingSessionId']&&(_0x3fd7de['trackingSessionId']=this['_trackingSessionId']);for(const _0x9ad19f of this['getSuggestions']())if(_0x9ad19f['author']['id']==_0x485b95['id']&&'insertion'==_0x9ad19f['type']&&_0x9ad19f['subType']==_0x39a481&&sn(_0x9ad19f,_0x3fd7de)&&(_0x67e256(_0x9ad19f['getRanges'](),_0x4d18da)||_0x67e256(_0x4d18da,_0x9ad19f['getRanges']()))){for(const _0x63135c of _0x4d18da)_0x9ad19f['addRange'](_0x63135c);return _0x9ad19f;}for(const {suggestion:_0x4aa3d7,meta:_0x361b1e}of this['_findSuggestions'](_0x4d18da,'insertion')){if(!_0x361b1e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x361b1e['containsRangeInObject'])continue;if(!sn(_0x4aa3d7,_0x3fd7de))continue;let _0x599a03=!0x0;for(const _0x220286 of _0x4aa3d7['getRanges']())for(const _0xfe1963 of _0x4d18da)if(!_0x220286['containsRange'](_0xfe1963)){_0x599a03=!0x1;break;}if(_0x599a03)return _0x4aa3d7;}const _0xb6ef75=_0x492477(),_0x21b55c=_0x485b95['id'],_0xca16a7='insertion:'+_0x39a481,_0x4b7001=this['_setSuggestionData']({'id':_0xb6ef75,'type':_0xca16a7,'createdAt':new Date(),'authorId':_0x21b55c,'attributes':_0x3fd7de});for(const _0x42d6d2 of _0x4d18da)this['_addSuggestionMarker'](_0xca16a7,_0xb6ef75,_0x21b55c,_0x42d6d2,x['getMultiRangeId']());return _0x4b7001;}['markInlineFormat'](_0x5aba3a,_0x2f85a7,_0x5bfa83=null,_0x2956a3={}){if(_0x5bfa83=_0x5bfa83||Ht(_0x2f85a7),_0x5aba3a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2956a3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c8f4a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5bfa83,'accept');return this['forceDefaultExecution'](()=>_0x2c8f4a([_0x5aba3a],_0x2f85a7,_0x2956a3)),null;}const _0x43437e=this['editor']['plugins']['get']('Users')['me'],_0x392744=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x27a83f,meta:_0x4635b2}of this['_findSuggestions'](_0x5aba3a,'insertion'))_0x4635b2['isOwn']&&!_0x4635b2['isInsideObject']&&_0x392744['push'](..._0x27a83f['getRanges']());}const _0x2d61e3=function(_0x206670,_0x55e6f4){const _0x505260=[];for(const _0x3bf53c of _0x55e6f4){const _0x370043=_0x206670['getIntersection'](_0x3bf53c);_0x370043&&_0x505260['push'](_0x370043);}return _0x505260;}(_0x5aba3a,_0x392744),_0x4329aa=function(_0x2159b3,_0x4bb57f){const _0x913f6f=[_0x2159b3];for(const _0x1c55d3 of _0x4bb57f){let _0x589245=0x0;for(;_0x589245<_0x913f6f['length'];){const _0x36e0a0=_0x913f6f[_0x589245]['getDifference'](_0x1c55d3);_0x913f6f['splice'](_0x589245,0x1,..._0x36e0a0),_0x589245+=_0x36e0a0['length'];}}return _0x913f6f;}(_0x5aba3a,_0x392744);_0x2d61e3['length']&&this['_model']['change'](()=>{for(const _0x5193e8 of _0x2d61e3){const _0x55584b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5bfa83,'accept');this['forceDefaultExecution'](()=>_0x55584b([_0x5193e8],_0x2f85a7,_0x2956a3));}});for(const _0x3c57f9 of _0x4329aa){let _0x428185=null,_0x5877bd=_0x3c57f9['start'],_0x3dcfea=_0x3c57f9['end'];for(const {suggestion:_0x23ad16,meta:_0x10afbe}of this['_findSuggestions'](_0x3c57f9,'formatInline')){if(!_0x10afbe['isOwn'])continue;if(_0x23ad16['subType']!=_0x5bfa83)continue;if(!sn(_0x23ad16,_0x2956a3))continue;const _0x1d13ec=_0x23ad16['getFirstRange']();if(_0x1d13ec['containsRange'](_0x3c57f9,!0x0))return null;_0x5877bd=_0x5877bd['isBefore'](_0x1d13ec['start'])?_0x5877bd:_0x1d13ec['start'],_0x3dcfea=_0x3dcfea['isAfter'](_0x1d13ec['end'])?_0x3dcfea:_0x1d13ec['end'],_0x428185?_0x1d13ec['start']['isBefore'](_0x428185['getFirstRange']()['start'])?(_0x428185['removeMarkers'](),_0x428185=_0x23ad16):_0x23ad16['removeMarkers']():_0x428185=_0x23ad16;}const _0x3e542f=this['_model']['createRange'](_0x5877bd,_0x3dcfea);if(_0x428185)this['_setSuggestionRange'](_0x428185,_0x3e542f);else{const _0x131bf4=_0x492477(),_0x47dff4=_0x43437e['id'];this['_setSuggestionData']({'id':_0x131bf4,'type':'formatInline:'+_0x5bfa83,'data':_0x2f85a7,'createdAt':new Date(),'authorId':_0x47dff4,'attributes':_0x2956a3}),this['_addSuggestionMarker']('formatInline:'+_0x5bfa83,_0x131bf4,_0x47dff4,_0x3e542f);}}return null;}['markBlockFormat'](_0x2fd86,_0x16c073,_0x5163eb=[],_0x9e8d4a=null,_0x3f1fba={}){_0x16c073['formatGroupId']||(_0x16c073['formatGroupId']=_0x16c073['commandName']),_0x16c073['multipleBlocks']=_0x2fd86['is']('range'),_0x9e8d4a=_0x9e8d4a||Ht(_0x16c073);const _0x5adb01=_0x5163eb['map'](_0x53cfc0=>tn(_0x53cfc0,this['_model'])),_0x203760=_0x2fd86['is']('range')?_0x2fd86:tn(_0x2fd86,this['_model']);if(this['_trackingSessionId']&&(_0x3f1fba['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1427e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9e8d4a,'accept');return this['forceDefaultExecution'](()=>_0x1427e2([_0x203760],_0x16c073,_0x3f1fba)),null;}_0x5adb01['push'](_0x203760);let _0x3c9eae=!0x0;for(const _0x5b8478 of _0x5adb01)if(!this['_rangeIsInLocalUserInsertion'](_0x5b8478)){_0x3c9eae=!0x1;break;}if(_0x3c9eae&&'always'!==this['_trackFormatChanges']){const _0x5c0699=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9e8d4a,'accept');return this['forceDefaultExecution'](()=>_0x5c0699([_0x203760],_0x16c073,_0x3f1fba)),null;}let _0x5c9cf4=null,_0x160473=_0x203760['start'],_0x3b1778=_0x203760['end'];for(const {suggestion:_0x5f2347,meta:_0x5145c8}of this['_findSuggestions'](_0x203760,'formatBlock')){if(!_0x5145c8['isOwn'])continue;if(_0x5145c8['isNextTo']||_0x5145c8['containsRangeInObject']||_0x5145c8['isInsideObject'])continue;if(_0x5f2347['data']['formatGroupId']!=_0x16c073['formatGroupId'])continue;if(!sn(_0x5f2347,_0x3f1fba))continue;const _0x29b2fd=_0x5f2347['getFirstRange']();if(_0x5f2347['subType']==_0x9e8d4a){if(_0x29b2fd['containsRange'](_0x203760,!0x0))return null;_0x160473=_0x160473['isBefore'](_0x29b2fd['start'])?_0x160473:_0x29b2fd['start'],_0x3b1778=_0x3b1778['isAfter'](_0x29b2fd['end'])?_0x3b1778:_0x29b2fd['end'],_0x5c9cf4?_0x29b2fd['start']['isBefore'](_0x5c9cf4['getFirstRange']()['start'])?(_0x5c9cf4['removeMarkers'](),_0x5c9cf4=_0x5f2347):_0x5f2347['removeMarkers']():_0x5c9cf4=_0x5f2347;}else{const _0x5a9739=_0x203760['getIntersection'](_0x29b2fd);this['_cutOutSuggestionMarker'](_0x5f2347,_0x5a9739);}}const _0x3c7911=this['editor']['plugins']['get']('Users')['me'],_0x11df61=_0x492477(),_0x184323=_0x3c7911['id'];if(_0x5c9cf4)return this['_setSuggestionRange'](_0x5c9cf4,this['_model']['createRange'](_0x160473,_0x3b1778)),_0x5c9cf4;{const _0x369a9e=this['_setSuggestionData']({'id':_0x11df61,'type':'formatBlock:'+_0x9e8d4a,'data':_0x16c073,'createdAt':new Date(),'authorId':_0x184323,'attributes':_0x3f1fba});return this['_addSuggestionMarker']('formatBlock:'+_0x9e8d4a,_0x11df61,_0x184323,this['_model']['createRange'](_0x160473,_0x3b1778)),_0x369a9e;}}['markMultiRangeBlockFormat'](_0x4db4bc,_0x2f0e72,_0x5676f7=[],_0x2aa6b9=null,_0x529f40={}){_0x2f0e72['formatGroupId']||(_0x2f0e72['formatGroupId']=_0x2f0e72['commandName']);const _0x243805=_0x4db4bc[0x0];_0x2f0e72['multipleBlocks']=_0x243805['is']('range'),_0x2aa6b9=_0x2aa6b9||Ht(_0x2f0e72);const _0x2a8b74=_0x5676f7['map'](_0x15e9ae=>tn(_0x15e9ae,this['_model'])),_0x53eb2e=_0x243805['is']('range')?_0x4db4bc:_0x4db4bc['map'](_0x503d5e=>tn(_0x503d5e,this['_model']));if(this['_trackingSessionId']&&(_0x529f40['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x14b91b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa6b9,'accept');return this['forceDefaultExecution'](()=>_0x14b91b(_0x53eb2e,_0x2f0e72,_0x529f40)),null;}_0x2a8b74['push'](..._0x53eb2e);let _0xe0244f=!0x0;for(const _0x26b34d of _0x2a8b74)if(!this['_rangeIsInLocalUserInsertion'](_0x26b34d)){_0xe0244f=!0x1;break;}if(_0xe0244f&&'always'!==this['_trackFormatChanges']){const _0x17ed67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa6b9,'accept');return this['forceDefaultExecution'](()=>_0x17ed67(_0x53eb2e,_0x2f0e72,_0x529f40)),null;}const _0x21e89b=this['editor']['plugins']['get']('Users')['me'];for(const _0x131fb2 of this['getSuggestions']()){const _0x788893=_0x131fb2['data'];if(_0x131fb2['author']['id']!=_0x21e89b['id'])continue;if('formatBlock'!=_0x131fb2['type']||_0x788893['formatGroupId']!=_0x2f0e72['formatGroupId'])continue;if(!sn(_0x131fb2,_0x529f40))continue;const _0x289a84=_0x131fb2['subType']==_0x2aa6b9;for(let _0x2dd552=0x0;_0x2dd552<_0x53eb2e['length'];_0x2dd552++){const _0x8736f1=_0x53eb2e[_0x2dd552];for(const _0x296ce1 of _0x131fb2['getMarkers']()){const _0x4a0107=_0x296ce1['getRange']();if(_0x8736f1['isEqual'](_0x4a0107)){_0x289a84?(_0x53eb2e['splice'](_0x2dd552,0x1),_0x2dd552--):_0x131fb2['removeMarker'](_0x296ce1['name']);break;}}}}if(0x0==_0x53eb2e['length'])return null;const _0xcaf333=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa6b9,'join');for(const _0x4bad4e of this['getSuggestions']()){const _0x5cdb89=_0x4bad4e['data'];if(_0x4bad4e['author']['id']==_0x21e89b['id']&&('formatBlock'==_0x4bad4e['type']&&_0x5cdb89['formatGroupId']==_0x2f0e72['formatGroupId']&&_0x4bad4e['subType']==_0x2aa6b9&&sn(_0x4bad4e,_0x529f40)&&(_0xcaf333(_0x4bad4e['getRanges'](),_0x53eb2e)||_0xcaf333(_0x53eb2e,_0x4bad4e['getRanges']())))){for(const _0x45d2ce of _0x53eb2e)_0x4bad4e['addRange'](_0x45d2ce);return _0x4bad4e;}}const _0xa138c6=_0x492477(),_0x1f77eb=_0x21e89b['id'],_0x110d3d='formatBlock:'+_0x2aa6b9,_0x1bb07b=this['_setSuggestionData']({'id':_0xa138c6,'type':_0x110d3d,'data':_0x2f0e72,'createdAt':new Date(),'authorId':_0x1f77eb,'attributes':_0x529f40});for(const _0x4ba9aa of _0x53eb2e)this['_addSuggestionMarker'](_0x110d3d,_0xa138c6,_0x1f77eb,_0x4ba9aa,x['getMultiRangeId']());return _0x1bb07b;}['markDeletion'](_0x425e39,_0x4b164d=null,_0x5a8bfd={}){if(_0x425e39['isCollapsed'])return null;const _0x41296a=this['editor']['plugins']['get']('Users')['me'],_0x2323ba=new _0x2d8975(_0x425e39['start'],_0x425e39['end']);this['_trackingSessionId']&&(_0x5a8bfd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x407f69,meta:_0x42cdc5}of this['_findSuggestions'](_0x2323ba,'insertion'))if(_0x42cdc5['isOwn']&&!_0x42cdc5['isNextTo']){if(_0x407f69['isMultiRange']){const _0x43b2a6=_0x407f69['getRanges']()['filter'](_0x3ffaca=>'$graveyard'!=_0x3ffaca['root']['rootName']);_0x43b2a6['every'](_0x4618da=>_0x2323ba['containsRange'](_0x4618da,!0x0))&&_0x407f69['discard']();if(_0x43b2a6['some'](_0xaa3f07=>_0xaa3f07['containsRange'](_0x2323ba,!0x0))){const _0x5edcb1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b164d,'accept');return this['forceDefaultExecution'](()=>_0x5edcb1([_0x2323ba],null,_0x5a8bfd)),null;}}else{const _0x9fd51f=_0x2323ba['getIntersection'](_0x407f69['getFirstRange']());null!==_0x9fd51f&&_0x407f69['_onDiscard']([_0x9fd51f],null,_0x5a8bfd);}}if(_0x2323ba['detach'](),_0x2323ba['isCollapsed']||'$graveyard'==_0x2323ba['root']['rootName'])return null;let _0x58d121=null,_0x5899dc=_0x2323ba['start'],_0x24c046=_0x2323ba['end'];const _0xa79c0a=this['_findSuggestions'](_0x2323ba,'deletion');for(const {suggestion:_0x48add6,meta:_0x3d7b9d}of _0xa79c0a){const _0x4ca266=this['_model']['createRange'](_0x5899dc,_0x24c046);if(_0x3d7b9d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d7b9d['containsRangeInObject']&&!_0x3d7b9d['isInsideObject'])){if(_0x48add6['isMultiRange']){if(!sn(_0x48add6,_0x5a8bfd))continue;let _0x404b82=!0x0;for(const _0x4ee7dd of _0x48add6['getRanges']()){if(_0x4ee7dd['containsRange'](_0x4ca266,!0x0))return _0x48add6;_0x4ca266['containsRange'](_0x4ee7dd)||(_0x404b82=!0x1);}_0x404b82&&_0x48add6['discard']();}else{const _0x22be91=_0x48add6['getFirstRange']();if(_0x22be91['containsRange'](_0x4ca266,!0x0))return _0x48add6;if(!sn(_0x48add6,_0x5a8bfd)){_0x4ca266['containsRange'](_0x22be91)?_0x48add6['removeMarkers']():_0x22be91['containsPosition'](_0x5899dc)?_0x5899dc=_0x22be91['end']:_0x22be91['containsPosition'](_0x24c046)&&(_0x24c046=_0x22be91['start']);continue;}_0x5899dc=_0x5899dc['isBefore'](_0x22be91['start'])?_0x5899dc:_0x22be91['start'],_0x24c046=_0x24c046['isAfter'](_0x22be91['end'])?_0x24c046:_0x22be91['end'],_0x5a8bfd=Object['assign']({},_0x48add6['attributes']),_0x58d121?_0x22be91['start']['isBefore'](_0x58d121['getFirstRange']()['start'])?(_0x58d121['removeMarkers'](),_0x58d121=_0x48add6):_0x48add6['removeMarkers']():_0x58d121=_0x48add6;}}}if(_0x58d121)return this['_setSuggestionRange'](_0x58d121,this['_model']['createRange'](_0x5899dc,_0x24c046)),_0x58d121;{const _0x4c0a75=_0x492477(),_0x2d25d4=this['_model']['createRange'](_0x5899dc,_0x24c046),_0x506748=_0x41296a['id'],_0x1ff1f=_0x4b164d?'deletion:'+_0x4b164d:'deletion',_0xceedbd=this['_setSuggestionData']({'id':_0x4c0a75,'type':_0x1ff1f,'createdAt':new Date(),'authorId':_0x506748,'attributes':_0x5a8bfd});return this['_addSuggestionMarker'](_0x1ff1f,_0x4c0a75,_0x506748,_0x2d25d4),_0xceedbd;}}['markMultiRangeDeletion'](_0x4953de,_0x4028bb='multi',_0x182e45={}){const _0x516868=this['editor']['plugins']['get']('Users')['me'],_0x1cd958=_0x4953de['map'](_0x315ed3=>new _0x2d8975(_0x315ed3['start'],_0x315ed3['end'])),_0x59f5e9=new Set();this['_trackingSessionId']&&(_0x182e45['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18dfb8,meta:_0x3343db}of this['_findSuggestions'](_0x1cd958,'insertion'))_0x3343db['isOwn']&&!_0x3343db['isNextTo']&&_0x59f5e9['add'](_0x18dfb8);for(const _0xd45483 of _0x59f5e9)if(_0xd45483['isMultiRange']){const _0x4e151e=_0xd45483['getRanges']();(!_0xd45483['attributes']||!_0xd45483['attributes']['skipNestingCheck'])&&(_0x4e151e['every'](_0x2256d9=>_0x1cd958['some'](_0x20670e=>_0x20670e['containsRange'](_0x2256d9,!0x0)))&&_0xd45483['discard']());if(_0x1cd958['every'](_0x119d32=>_0x4e151e['some'](_0x403fac=>_0x403fac['containsRange'](_0x119d32,!0x0)))){const _0x5e62ab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4028bb,'accept');return this['forceDefaultExecution'](()=>_0x5e62ab(_0x4953de,null,_0x182e45)),null;}}else{const _0x40e661=_0xd45483['getFirstRange']();_0x1cd958['some'](_0xcdca9a=>_0xcdca9a['containsRange'](_0x40e661,!0x0))&&_0xd45483['discard']();if(_0x1cd958['every'](_0x39d35a=>_0x40e661['containsRange'](_0x39d35a,!0x0))){const _0x4269c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4028bb,'accept');return this['forceDefaultExecution'](()=>_0x4269c3(_0x1cd958,null,_0x182e45)),null;}}const _0x500d2d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4028bb,'join');let _0x2bd67c=null;for(const _0x4f0597 of this['getSuggestions']())if(_0x4f0597['author']['id']==_0x516868['id']&&_0x4f0597['isInContent']&&'deletion'==_0x4f0597['type']&&_0x4f0597['subType']==_0x4028bb&&sn(_0x4f0597,_0x182e45)&&(_0x500d2d(_0x4f0597['getRanges'](),_0x1cd958)||_0x500d2d(_0x1cd958,_0x4f0597['getRanges']()))){if(_0x2bd67c){if(_0x4f0597['commentThread']&&_0x4f0597['commentThread']['length'])continue;for(const _0x112e86 of _0x4f0597['getRanges']())_0x2bd67c['isIntersectingWithRange'](_0x112e86)||_0x2bd67c['addRange'](_0x112e86);_0x4f0597['removeMarkers']();}else{_0x2bd67c=_0x4f0597;for(const _0x266a97 of _0x1cd958)_0x4f0597['isIntersectingWithRange'](_0x266a97)||_0x4f0597['addRange'](_0x266a97);}}if(_0x2bd67c)return _0x2bd67c;_0x59f5e9['clear']();for(const {suggestion:_0x25d914,meta:_0x4b85c7}of this['_findSuggestions'](_0x1cd958,'deletion'))_0x4b85c7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b85c7['containsRangeInObject']&&!_0x4b85c7['isInsideObject'])&&sn(_0x25d914,_0x182e45)&&_0x59f5e9['add'](_0x25d914);for(const _0x1d6580 of _0x59f5e9){const _0x171055=_0x1d6580['getRanges']();if(!_0x182e45||!_0x182e45['skipNestingCheck']){if(_0x1cd958['every'](_0x1cf13d=>_0x171055['some'](_0x23b19b=>_0x23b19b['containsRange'](_0x1cf13d,!0x0))))return _0x1d6580;}(!_0x1d6580['attributes']||!_0x1d6580['attributes']['skipNestingCheck'])&&(_0x171055['every'](_0x484754=>_0x1cd958['some'](_0x48cc90=>_0x48cc90['containsRange'](_0x484754,!0x0)))&&_0x1d6580['discard']());}const _0x17a2a0=_0x492477(),_0x432c4=_0x516868['id'],_0x329122='deletion:'+_0x4028bb,_0xd05ba5=this['_setSuggestionData']({'id':_0x17a2a0,'type':_0x329122,'createdAt':new Date(),'authorId':_0x432c4,'attributes':_0x182e45});for(const _0x3b3ab6 of _0x1cd958)_0x3b3ab6['detach'](),_0x3b3ab6['isCollapsed']||'$graveyard'==_0x3b3ab6['root']['rootName']||this['_addSuggestionMarker'](_0x329122,_0x17a2a0,_0x432c4,_0x3b3ab6,x['getMultiRangeId']());return _0xd05ba5;}['markAttributeChange'](_0x360ee5,_0x5704c1,_0x120d71,_0xf7d561,_0xe6fae8){if(_0x360ee5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x233a2f=this['editor']['plugins']['get']('Users')['me']['id'],_0x39b3b2=Array['from'](this['_suggestions']['values']())['filter'](_0x3bd6ac=>'attribute'==_0x3bd6ac['type']&&_0x3bd6ac['data']['key']==_0x5704c1&&_0x3bd6ac['isIntersectingWithRange'](_0x360ee5));if(this['_trackingSessionId']&&(_0xe6fae8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x43dae0=this['_findSuggestions'](_0x360ee5,'insertion')['filter'](({meta:_0x25e8f4})=>_0x25e8f4['isOwn']&&!_0x25e8f4['isInsideObject']&&!_0x25e8f4['isNextTo'])['map'](({suggestion:_0x5e364c})=>_0x5e364c);_0x39b3b2['unshift'](..._0x43dae0);}const _0x213f11=new Map([[_0x360ee5,_0x120d71]]);for(const _0x1b9b29 of _0x39b3b2){const _0x499f77='attribute'==_0x1b9b29['type']?_0x1b9b29['data']['oldValue']:void 0x0,_0x4df6d0=_0x1b9b29['getFirstRange'](),_0x31b34c=Array['from'](_0x213f11['keys']())['find'](_0x2b1a21=>_0x2b1a21['isIntersecting'](_0x4df6d0));if(!_0x31b34c)continue;const _0x2bfadf=_0x31b34c['getDifference'](_0x4df6d0);this['_isBlockAttribute'](_0x5704c1)&&'insertion'==_0x1b9b29['type']&&0x0!=_0x2bfadf['length']||(_0x213f11['delete'](_0x31b34c),_0x2bfadf['forEach'](_0x44b39f=>{_0x213f11['set'](_0x44b39f,_0x120d71);}),'insertion'!=_0x1b9b29['type']&&_0x499f77!=_0xf7d561&&_0x213f11['set'](_0x31b34c['getIntersection'](_0x4df6d0),_0x499f77));}const _0x2e716c=[];for(const [_0x5b29c3,_0x7afb82]of _0x213f11){const _0x231bfa=_0x492477(),_0x148de3={'key':_0x5704c1,'oldValue':_0x7afb82,'newValue':_0xf7d561};_0x5704c1['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':_0x5704c1});const _0x4dabc1=('attribute:'+(_0x5704c1+'|'+Ht({'newValue':_0xf7d561})))['substring'](0x0,0x3c),_0x586dc8=this['_setSuggestionData']({'id':_0x231bfa,'type':_0x4dabc1,'data':_0x148de3,'createdAt':new Date(),'authorId':_0x233a2f,'attributes':_0xe6fae8});_0x2e716c['push'](_0x586dc8),this['_addSuggestionMarker'](_0x4dabc1,_0x231bfa,_0x233a2f,_0x5b29c3);}return _0x2e716c;}['enableDefaultAttributesIntegration'](_0xc13415){this['enableCommand'](_0xc13415,(_0xc9f3e0,..._0x536781)=>{this['recordAttributeChanges'](()=>{_0xc9f3e0(..._0x536781);});});}['registerBlockAttribute'](_0x5e6db2){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x5e6db2);}['registerInlineAttribute'](_0x1cdbb9){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1cdbb9);}['startTrackingSession'](_0x1e77d5){return this['_trackingSessionId']=void 0x0!==_0x1e77d5?_0x1e77d5:_0x492477(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2fff36){return'attribute'==_0x2fff36['type']?_0x2fff36['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4ce5a0){if(0x0==_0x4ce5a0['length'])return;const _0xc1ecc9=this['editor'],_0x5349d7=_0xc1ecc9['plugins']['get'](_0x30cb5c),_0x5443b3=[];_0xc1ecc9['model']['change'](_0x605383=>{for(let _0x1bc805=0x0;_0x1bc805<_0x4ce5a0['length'];_0x1bc805++){const _0x4881d2=_0x4ce5a0[_0x1bc805];if(_0x4881d2['baseVersion']=_0xc1ecc9['model']['document']['version'],_0x4881d2['isDocumentOperation']=!0x0,_0x5349d7['isMarkedRemoveOperation'](_0x4881d2)){const _0x1d0e9d=Lt(_0x4881d2['newRange'],_0xc1ecc9['model']);_0x5443b3['unshift'](_0x2d8975['fromRange'](_0x1d0e9d));}else switch(_0x4881d2['type']){case'rename':{const _0x341ff7=_0x4881d2['oldName'],_0x4b8fdf=_0x4881d2['newName'];if(_0x341ff7==_0x4b8fdf)break;_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);const _0x8ed8c0='$elementName',_0x18ec0=_0x4881d2['position'],_0x11846b=_0xc1ecc9['model']['createRange'](_0x18ec0,_0xc1ecc9['model']['createPositionAt'](_0x18ec0['nodeAfter'],'end'));this['markAttributeChange'](_0x11846b,_0x8ed8c0,_0x341ff7,_0x4b8fdf,{'groupId':_0x492477()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5c705c=_0x4881d2['oldValue'],_0x8bd464=_0x4881d2['newValue'];if(_0x5c705c==_0x8bd464)break;_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);const _0x26934a=_0x4881d2['key'];if(!this['_isRegisteredAttribute'](_0x26934a))break;const _0x3777c0=Lt(_0x4881d2['range'],_0xc1ecc9['model']);this['markAttributeChange'](_0x3777c0,_0x26934a,_0x5c705c,_0x8bd464,{'groupId':_0x492477()});break;}case'insert':{_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);if(_0x4ce5a0[_0x1bc805+0x1]&&'move'==_0x4ce5a0[_0x1bc805+0x1]['type'])break;const _0x3f2a55=_0x4881d2['position'],_0x887ad5=_0x4881d2['howMany'],_0x2c57fb=Lt(_0xc1ecc9['model']['createRange'](_0x3f2a55,_0x3f2a55['getShiftedBy'](_0x887ad5)),_0xc1ecc9['model']);this['markInsertion'](_0x2c57fb);break;}case'split':{_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);const _0x475675=_0x4881d2['splitPosition'],_0x320c8d=_0x4881d2['moveTargetPosition'];this['markInsertion'](_0xc1ecc9['model']['createRange'](_0x475675,_0x320c8d));break;}case'move':case'remove':_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);}}for(const _0x344aa7 of _0x5443b3)_0x344aa7['detach'](),this['markDeletion'](_0x344aa7);});}['_setSuggestionRange'](_0x5c6521,_0x4a2fb8){const _0x487791=_0x5c6521['getFirstMarker']();this['_model']['change'](_0x4608c8=>{_0x4608c8['updateMarker'](_0x487791,{'range':_0x4a2fb8});});}['_addThreadToSuggestion'](_0x9409c){const _0x1184cd=_0x9409c['id'],_0x527590=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1184cd)||this['_commentsRepository']['addCommentThread']({'channelId':_0x527590,'threadId':_0x1184cd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x387a34=this['_commentsRepository']['getCommentThread'](_0x1184cd);_0x387a34['unbind']('isRemovable'),_0x387a34['isRemovable']=!0x1,_0x9409c['commentThread']=_0x387a34;}['_checkSuggestionCorrectness'](_0x4f81c1,_0x31aeef,_0x48b600,_0x512926){if(_0x4f81c1['type']!=_0x31aeef||_0x4f81c1['subType']!=_0x48b600||_0x4f81c1['creator']['id']!=_0x512926)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x428d7a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4218a4,_0x590bb7){const _0x456025=_0x4218a4['getFirstRange']();if(_0x590bb7['isEqual'](_0x456025))_0x4218a4['removeMarkers']();else{if(_0x456025['containsRange'](_0x590bb7)){const _0x296584=this['_model']['createPositionAt'](_0x590bb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4218a4,this['_model']['createRange'](_0x456025['start'],_0x296584));const _0x5b2093=_0x492477(),_0x3311a8=_0x4218a4['creator']['id'],_0x34c4d8=_0x4218a4['type']+':'+_0x4218a4['subType'];this['_setSuggestionData']({'id':_0x5b2093,'type':_0x34c4d8,'createdAt':new Date(),'authorId':_0x3311a8,'data':_0x4218a4['data'],'attributes':_0x4218a4['attributes']});const _0x1486e1=this['_model']['createPositionAt'](_0x590bb7['end']['parent'],'after'),_0x124ac2=this['_model']['createRange'](_0x1486e1,_0x456025['end']);this['_addSuggestionMarker'](_0x34c4d8,_0x5b2093,_0x3311a8,_0x124ac2);}else{if(_0x456025['containsPosition'](_0x590bb7['start'])){const _0x3b3e5d=this['_model']['createPositionAt'](_0x590bb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4218a4,this['_model']['createRange'](_0x456025['start'],_0x3b3e5d));}else{const _0x24e669=this['_model']['createPositionAt'](_0x590bb7['end']['parent'],'after');this['_setSuggestionRange'](_0x4218a4,this['_model']['createRange'](_0x24e669,_0x456025['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x41671f){for(const {suggestion:_0x28a016,meta:_0x301867}of this['_findSuggestions'](_0x41671f,'insertion')){if(!_0x301867['isOwn'])continue;const _0x507534=_0x28a016['getRanges']();for(const _0xfeaa0a of _0x507534)if(!_0x41671f['getDifference'](_0xfeaa0a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x15f631){return this['editor']['plugins']['get']('Users')['getUser'](_0x15f631);}['_getExternalAuthor'](_0x4bc902){const _0x30689e=this['editor']['plugins']['get']('Users'),_0x51b173=_0x1d67e1('external:'+_0x4bc902),_0x361f78=_0x30689e['getUser'](_0x51b173);return _0x361f78||_0x30689e['addUser']({'id':_0x51b173,'name':_0x4bc902});}['_createSuggestion'](_0x54103f,_0x5cdf53,_0x3e2ee1,_0x4003f2,_0x1d6ba8,_0x3ddffb){const _0xf8f3b7=this['_getAuthorFromId'](_0x4003f2);if(!_0xf8f3b7)throw new _0x428d7a('track-changes-user-not-found',this,{'authorId':_0x4003f2,'suggestionId':_0x3e2ee1});const _0x32d376=this['_suggestionFactory']['buildSuggestion'](_0x54103f,_0x5cdf53,_0x3e2ee1,_0xf8f3b7,_0x1d6ba8,_0x1485da=>{this['_updateSuggestionData'](_0x3e2ee1,{'attributes':_0x1485da});const _0x52349c=this['getSuggestion'](_0x3e2ee1);this['_joinWithAdjacentSuggestions'](new Set([_0x52349c])),this['_refreshSuggestionsChain'](new Set([_0x52349c]));},_0x3ddffb);return this['listenTo'](_0x32d376,'accept',()=>{this['_updateSuggestionData'](_0x3e2ee1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x32d376,'discard',()=>{this['_updateSuggestionData'](_0x3e2ee1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3e2ee1,_0x32d376),this['_suggestionState']['set'](_0x32d376,'notReady'),_0x32d376;}['_splitMarkerName'](_0x41ac50){return Gt(_0x41ac50);}['_breakSuggestionMarker'](_0xced6f0,_0x393245,_0x407796){const _0x4e76fc=_0xced6f0['getFirstRange'](),_0x47f507=_0x4e76fc['start'],_0x25f96a=_0x4e76fc['end'];this['_setSuggestionRange'](_0xced6f0,this['_model']['createRange'](_0x47f507,_0x393245));const _0x5383e9=_0x492477(),_0x532ab9=_0xced6f0['creator']['id'],_0x2666d7=_0xced6f0['type']+(_0xced6f0['subType']?':'+_0xced6f0['subType']:'');this['_setSuggestionData']({'id':_0x5383e9,'type':_0x2666d7,'createdAt':new Date(),'authorId':_0x532ab9,'originalSuggestionId':_0xced6f0['_originalSuggestionId']||_0xced6f0['id'],'attributes':_0xced6f0['attributes'],'data':_0xced6f0['data']});const _0x2a03bf=this['_getAttributeKey'](_0xced6f0);('formatBlock'==_0xced6f0['type']||_0x2a03bf&&this['_isBlockAttribute'](_0x2a03bf))&&(_0x407796=this['_model']['createPositionBefore'](_0x407796['parent'])),this['_addSuggestionMarker'](_0x2666d7,_0x5383e9,_0x532ab9,this['_model']['createRange'](_0x407796,_0x25f96a));}['_findSuggestions'](_0xb6d732,_0x3500ba=null){const _0x1d4535=[],_0x115b8a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb6d732)||(_0xb6d732=[_0xb6d732]);for(const _0x50524c of this['getSuggestions']()){if(!_0x50524c['isInContent'])continue;if(_0x3500ba&&_0x50524c['type']!=_0x3500ba)continue;let _0x229d01=!0x1;for(const _0x417f54 of _0x50524c['getRanges']()){for(const _0x3120b0 of _0xb6d732){const _0x11df2a=_0x3120b0['start']['isEqual'](_0x417f54['end'])||_0x3120b0['end']['isEqual'](_0x417f54['start']);if(_0x11df2a||_0x3120b0['getIntersection'](_0x417f54)){const _0x147cad=_0x3120b0['containsRange'](_0x417f54)&&zt(this['_model']['schema'],_0x417f54['start'],_0x3120b0),_0x1a3e5f=_0x417f54['containsRange'](_0x3120b0)&&zt(this['_model']['schema'],_0x3120b0['start'],_0x417f54);_0x1d4535['push']({'suggestion':_0x50524c,'meta':{'isOwn':_0x115b8a==_0x50524c['author'],'isNextTo':_0x11df2a,'isInsideObject':_0x147cad,'containsRangeInObject':_0x1a3e5f}}),_0x229d01=!0x0;break;}}if(_0x229d01)break;}}return _0x1d4535;}['_addSuggestionMarker'](_0x1875c1,_0x12e294,_0x41924b,_0x344724,_0x2a3c54){this['_model']['change'](_0x296b92=>{let _0x2d358e='suggestion:'+_0x1875c1+':'+_0x12e294+':'+_0x41924b;_0x2a3c54&&(_0x2d358e=_0x2d358e+':'+_0x2a3c54),_0x296b92['addMarker'](_0x2d358e,{'range':_0x344724,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x8f8a5a){const _0xd2457b=_0x8f8a5a['previous'],_0x41a5c3=_0x8f8a5a['next'];_0x8f8a5a['previous']=null,_0x8f8a5a['next']=null,null!=_0xd2457b&&_0xd2457b['next']==_0x8f8a5a&&(_0xd2457b['next']=_0x41a5c3),null!=_0x41a5c3&&_0x41a5c3['previous']==_0x8f8a5a&&(_0x41a5c3['previous']=_0xd2457b),'ready'==this['_suggestionState']['get'](_0x8f8a5a)&&(this['_suggestionState']['set'](_0x8f8a5a,'removed'),this['fire']('suggestionUnloaded',_0x8f8a5a,_0xd2457b,_0x41a5c3));}['_setSuggestionData'](_0x25c08b){const _0xaec920=_0x25c08b['id'],_0x3921a3=this['addSuggestionData'](_0x25c08b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56c2ca=this['editor']['plugins']['get']('PendingActions'),_0x21b03f=_0x3921a3['hasComments'],_0x6ecca5=_0x3921a3['subType']?_0x3921a3['type']+':'+_0x3921a3['subType']:_0x3921a3['type'],_0x4991f0=this['editor']['locale'],_0x33c56c=_0x56c2ca['add'](o(_0x4991f0,'PENDING_ACTION_SUGGESTION')),_0x4e6820={'id':_0xaec920,'type':_0x6ecca5,'hasComments':_0x21b03f,'data':_0x25c08b['data']||null,'originalSuggestionId':_0x25c08b['originalSuggestionId']||null,'attributes':_0x3921a3['attributes']};this['_adapter']['addSuggestion'](_0x4e6820)['then'](_0x509ff1=>{_0x3921a3['_saved']=!0x0,_0x56c2ca['remove'](_0x33c56c),_0x509ff1&&_0x509ff1['createdAt']&&(this['_suggestions']['get'](_0xaec920)['createdAt']=_0x509ff1['createdAt']);})['catch'](_0x26fc6f=>{throw _0x242bbe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3921a3['discard']();}),_0x3921a3['stopListening'](),this['_suggestions']['delete'](_0x3921a3['id']),this['_suggestionState']['delete'](_0x3921a3),_0x26fc6f;});}return _0x3921a3;}['_isBlockAttribute'](_0x33f681){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x33f681);}['_isInlineAttribute'](_0x51f709){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x51f709);}['_updateSuggestionData'](_0x309049,_0x484aa2){const _0x3f4723=this['editor']['plugins']['get']('PendingActions'),_0x6a7a19=this['getSuggestion'](_0x309049);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x6a7a19['_saved']){const _0x432087=_0x3f4723['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x309049,_0x484aa2)['then'](()=>{_0x3f4723['remove'](_0x432087);});}else _0x6a7a19['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x309049,_0x484aa2);});}}['_getSuggestionData'](_0x5afd84){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x428d7a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5afd84);}['_handleNewSuggestionMarker'](_0x5ae6b3){const {id:_0x5a8c85,type:_0x5c98a2,subType:_0x5bfbb5,authorId:_0x20541b}=this['_splitMarkerName'](_0x5ae6b3),_0x17bbc6=this['_suggestions']['get'](_0x5a8c85)||this['_createSuggestion'](_0x5c98a2,_0x5bfbb5,_0x5a8c85,_0x20541b,{});switch(this['_checkSuggestionCorrectness'](_0x17bbc6,_0x5c98a2,_0x5bfbb5,_0x20541b),this['_suggestionState']['get'](_0x17bbc6)){case'notReady':this['_getSuggestionData'](_0x5a8c85)['then'](_0x49a3bd=>{let _0x3bcd2e=Promise['resolve']();_0x49a3bd['hasComments']&&(_0x3bcd2e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a8c85})),_0x3bcd2e['then'](()=>{this['addSuggestionData'](_0x49a3bd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x17bbc6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a8c85,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x17bbc6,'ready'),this['fire']('suggestionLoaded',_0x17bbc6);break;case'ready':this['fire']('suggestionChanged',_0x17bbc6);}return _0x17bbc6['addMarkerName'](_0x5ae6b3),_0x17bbc6;}['_refreshSuggestionsChain'](_0x580616){const _0x11146e=Array['from'](_0x580616),_0x5e368d=_0x11146e['filter'](_0x3b10ba=>'attribute'==_0x3b10ba['type']);this['_refreshAttributeSuggestionsChain'](_0x5e368d);const _0x5bffdd=_0x11146e['filter'](_0x1681c3=>!_0x1681c3['isMultiRange']&&'attribute'!=_0x1681c3['type']),_0x524a24=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x135875=>!_0x135875['isMultiRange']&&'attribute'!=_0x135875['type']),_0x4322ff=_0x524a24['filter'](_0x511b70=>!_0x580616['has'](_0x511b70)),_0x365ec6=new Map(_0x524a24['map'](_0x4813a1=>[_0x4813a1,this['_suggestionFactory']['getSuggestionCallback'](_0x4813a1['type'],_0x4813a1['subType'],'chain')])),_0xdcc48d=new Map(_0x524a24['map'](_0x2cf67a=>[_0x2cf67a,_0x2cf67a['getFirstRange']()])),_0x229f44=new Set(),_0x482bfe=new Set();for(let _0x49d40a=0x0;_0x49d40a<_0x5bffdd['length'];_0x49d40a++)_0x3031bb(_0x5bffdd[_0x49d40a],_0x5bffdd,_0x49d40a+0x1);for(let _0x27866f=0x0;_0x27866f<_0x5bffdd['length'];_0x27866f++)_0x3031bb(_0x5bffdd[_0x27866f],_0x4322ff,0x0);const _0x41dbb0=new Set();for(let _0x53936e=0x0;_0x53936e<_0x5bffdd['length'];_0x53936e++){const _0xa7db5b=_0x5bffdd[_0x53936e];!_0x482bfe['has'](_0xa7db5b)&&_0xa7db5b['previous']&&(_0x41dbb0['add'](_0xa7db5b['previous']),_0xa7db5b['previous']['next']===_0xa7db5b&&(_0xa7db5b['previous']['next']=null),_0xa7db5b['previous']=null),!_0x229f44['has'](_0xa7db5b)&&_0xa7db5b['next']&&(_0x41dbb0['add'](_0xa7db5b['next']),_0xa7db5b['next']['previous']===_0xa7db5b&&(_0xa7db5b['next']['previous']=null),_0xa7db5b['next']=null);}function _0x3031bb(_0x5a086e,_0x3073c9,_0x19bce6){for(let _0xc5f43d=_0x19bce6;_0xc5f43d<_0x3073c9['length'];_0xc5f43d++){const _0x248da6=_0x40c606(_0x5a086e,_0x3073c9[_0xc5f43d]);_0x248da6&&(_0x248da6[0x0]['next']=_0x248da6[0x1],_0x248da6[0x1]['previous']=_0x248da6[0x0],_0x229f44['add'](_0x248da6[0x0]),_0x482bfe['add'](_0x248da6[0x1]));}}function _0x40c606(_0x57bf1e,_0x4c5a43){if(_0x57bf1e['author']['id']!==_0x4c5a43['author']['id'])return null;const _0x2ebbb1=_0x365ec6['get'](_0x57bf1e)(_0x57bf1e,_0x4c5a43,_0xdcc48d['get'](_0x57bf1e),_0xdcc48d['get'](_0x4c5a43));if(!_0x2ebbb1)return null;return _0x365ec6['get'](_0x4c5a43)(_0x57bf1e,_0x4c5a43,_0xdcc48d['get'](_0x57bf1e),_0xdcc48d['get'](_0x4c5a43))?_0x2ebbb1[0x1]['commentThread']&&_0x2ebbb1[0x1]['commentThread']['length']?null:_0x2ebbb1:null;}_0x41dbb0['size']&&this['_refreshSuggestionsChain'](_0x41dbb0);}['_refreshAttributeSuggestionsChain'](_0x11c365){if(0x0==_0x11c365['length'])return;const _0x302f64=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2af3c6=>'attribute'==_0x2af3c6['type']&&_0x2af3c6['_isDataLoaded']),_0x264855=[],_0x3759d9=new Map();for(const _0x51908a of _0x302f64){const _0x1cf24a=_0x1d67e1(_0x51908a['attributes']);_0x3759d9['has'](_0x1cf24a)||(_0x3759d9['set'](_0x1cf24a,_0x264855['length']),_0x264855['push']([]));const _0x35a33a=_0x3759d9['get'](_0x1cf24a);_0x264855[_0x35a33a]['push'](_0x51908a);}!(function(){_0x264855['sort']((_0x27edf2,_0x5cb5a8)=>{const _0x229881=_0x27edf2[0x0]['createdAt'],_0x215622=_0x5cb5a8[0x0]['createdAt'];return _0x229881==_0x215622?_0x27edf2[0x0]['attributes']['groupId']<_0x5cb5a8[0x0]['attributes']['groupId']?-0x1:0x1:_0x229881<_0x215622?-0x1:0x1;});for(const _0x3ac5cd of _0x264855)_0x3ac5cd['sort']((_0x2c1c6e,_0x45101f)=>_0x2c1c6e['id']<_0x45101f['id']?-0x1:0x1);}());for(let _0xf3bc33=0x0;_0xf3bc33<_0x264855['length'];_0xf3bc33++){if(0x0==_0x264855[_0xf3bc33]['length'])continue;const _0x2c9ad9=[];for(let _0x1b69ba=_0xf3bc33+0x1;_0x1b69ba<_0x264855['length'];_0x1b69ba++)0x0!=_0x264855[_0x1b69ba]['length']&&_0x191b42(_0x264855[_0xf3bc33],_0x264855[_0x1b69ba])&&_0x2c9ad9['push'](_0x1b69ba);for(const _0x9eee93 of _0x2c9ad9)_0x264855[_0xf3bc33]=_0x264855[_0xf3bc33]['concat'](_0x264855[_0x9eee93]),_0x264855[_0x9eee93]=[];}for(const _0x19912c of _0x264855)for(let _0x236853=0x0;_0x236853<_0x19912c['length'];_0x236853++){const _0x3dedb1=_0x19912c[_0x236853+0x1]||null;_0x19912c[_0x236853]['next']!==_0x3dedb1&&(_0x19912c[_0x236853]['next']=_0x3dedb1);}for(const _0x39dae3 of _0x264855)for(let _0x5c68f1=0x0;_0x5c68f1<_0x39dae3['length'];_0x5c68f1++){const _0x127d96=_0x39dae3[_0x5c68f1-0x1]||null;_0x39dae3[_0x5c68f1]['previous']!==_0x127d96&&(_0x39dae3[_0x5c68f1]['previous']=_0x127d96);}function _0x191b42(_0x1d53b2,_0x4e1861){if(_0x1d53b2[0x0]['attributes']['groupId']!==_0x4e1861[0x0]['attributes']['groupId']&&_0x1d53b2[0x0]['author']!==_0x4e1861[0x0]['author'])return!0x1;if(!function(_0x1720a2,_0x46852d){if(!_0x1720a2['hasComments']&&!_0x46852d['hasComments'])return!0x0;if(_0x1720a2['hasComments']&&_0x46852d['hasComments'])return!0x1;if(_0x1720a2['hasComments']&&_0x46852d['createdAt']<_0x1720a2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x46852d['hasComments']&&_0x1720a2['createdAt']<_0x46852d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d53b2[0x0],_0x4e1861[0x0]))return!0x1;const _0x49bbce=Pt(_0x1d53b2[0x0]['attributes'],['groupId','trackingSessionId']),_0x4e349d=Pt(_0x4e1861[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3a0690(_0x49bbce,_0x4e349d))return!0x1;if(_0x1d53b2[0x0]['attributes']['groupId']==_0x4e1861[0x0]['attributes']['groupId'])return!0x0;if(_0x1d53b2[0x0]['attributes']['trackingSessionId']!==_0x4e1861[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1d53b2['every'](_0x5e06a0=>_0x4e1861['some'](_0x57a573=>_0x5e06a0['getFirstRange']()['isEqual'](_0x57a573['getFirstRange']())))&&_0x4e1861['every'](_0x474943=>_0x1d53b2['some'](_0x201f9b=>_0x474943['getFirstRange']()['isEqual'](_0x201f9b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x22d8ca){const _0x28fc40=Array['from'](_0x22d8ca),_0x21cf68=this['getSuggestions']({'skipNotAttached':!0x0}),_0x190b53=_0x21cf68['filter'](_0x513a7c=>!_0x22d8ca['has'](_0x513a7c)),_0x39ece9=new Map(_0x28fc40['map'](_0x4ffb88=>[_0x4ffb88,this['_suggestionFactory']['getSuggestionCallback'](_0x4ffb88['type'],_0x4ffb88['subType'],'join')])),_0x5b96ba=new Map(_0x21cf68['map'](_0x1d9816=>[_0x1d9816,_0x1d9816['getRanges']()]));for(let _0x1f9579=0x0;_0x1f9579<_0x28fc40['length'];_0x1f9579++){if(_0x111e75(this,_0x28fc40[_0x1f9579],_0x28fc40,_0x1f9579+0x1))return!0x0;}for(let _0x5cc6bc=0x0;_0x5cc6bc<_0x28fc40['length'];_0x5cc6bc++){if(_0x111e75(this,_0x28fc40[_0x5cc6bc],_0x190b53,0x0))return!0x0;}return!0x1;function _0x111e75(_0x11d8dd,_0xb834e6,_0x16a963,_0x2fceaa){for(let _0x47c1d1=_0x2fceaa;_0x47c1d1<_0x16a963['length'];_0x47c1d1++){const _0xda6dcc=_0x16a963[_0x47c1d1];if(_0xda6dcc['type']!==_0xb834e6['type']||_0xda6dcc['author']['id']!==_0xb834e6['author']['id']||_0xda6dcc['subType']!==_0xb834e6['subType'])continue;if(!en(_0xb834e6,_0xda6dcc))continue;if('attribute'==_0xb834e6['type']&&_0xb834e6['data']['oldValue']!=_0xda6dcc['data']['oldValue'])continue;if('attribute'==_0xb834e6['type']&&_0x11d8dd['_isBlockAttribute'](_0xb834e6['data']['key']))continue;if('formatBlock'==_0xb834e6['type']){const _0x51ae00=_0x11d8dd['editor']['model'],_0x5bab6c=_0xb834e6['getContainedElement']();if(_0x5bab6c&&(_0x51ae00['schema']['isObject'](_0x5bab6c)||_0x51ae00['schema']['isLimit'](_0x5bab6c)))continue;}const _0x201c46=_0x39ece9['get'](_0xb834e6),_0x357512=_0x5b96ba['get'](_0xb834e6),_0x3b196d=_0x5b96ba['get'](_0xda6dcc),_0x34e1be=_0xb834e6['commentThread']&&_0xb834e6['commentThread']['length'],_0x4de050=_0xda6dcc['commentThread']&&_0xda6dcc['commentThread']['length'];if(!_0x34e1be&&_0x201c46(_0x3b196d,_0x357512))return _0x11d8dd['_joinSuggestions'](_0xda6dcc,_0xb834e6),_0x5b96ba['delete'](_0xb834e6),!0x0;if(!_0x4de050&&_0x201c46(_0x357512,_0x3b196d))return _0x11d8dd['_joinSuggestions'](_0xb834e6,_0xda6dcc),_0x5b96ba['delete'](_0xda6dcc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x191137,_0x39079b){if(_0x191137['isMultiRange']){for(const _0x412cbf of _0x39079b['getRanges']())_0x191137['addRange'](_0x412cbf);}else{const _0x3f4bdb=_0x39079b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x191137,this['_model']['createRange'](_0x191137['getFirstRange']()['start'],_0x3f4bdb));}_0x39079b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5326fe,_0x546adf,_0x385647){const _0x157684=_0x5326fe['startsWith']('format')||_0x5326fe['startsWith']('attribute')?'FORMATTING':_0x5326fe['toUpperCase']();return o(this['editor']['locale'],_0x546adf+'_'+_0x157684+'_SUGGESTION_ANNOUNCEMENT',_0x385647);}['_initAriaMarkerChangeAnnouncements'](){const _0x9ea04c=this['editor'];if(!_0x9ea04c['ui'])return;const {ariaLiveAnnouncer:_0x74bfa4}=_0x9ea04c['ui'];_0x232abf(this['_model'],({left:_0x23bfed,entered:_0x69b50e})=>{for(const _0x325b72 of _0x23bfed){const {group:_0x31b89b,type:_0x3a854d}=this['_splitMarkerName'](_0x325b72['name']);if('suggestion'===_0x31b89b){_0x74bfa4['announce'](this['_getMarkerAnnouncementText'](_0x3a854d,'LEAVE'));break;}}for(const _0x49ef6c of _0x69b50e){const {group:_0x523517,type:_0x4e9980}=this['_splitMarkerName'](_0x49ef6c['name']);if('suggestion'===_0x523517){_0x74bfa4['announce'](this['_getMarkerAnnouncementText'](_0x4e9980,'ENTER',_0x397604(_0x147b7e)));break;}}});}['_processAttributeChanges'](_0x198cb4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x35ac01=this['editor'],_0x593704=_0x35ac01['model']['document']['differ']['getChanges']();if(0x0==_0x593704['length'])return!0x1;const _0x20c8f1=[],_0x4e5e9c=_0x593704['filter'](_0x5c88b9=>'attribute'==_0x5c88b9['type']),_0x5902e5=_0x593704['filter'](_0x275453=>'insert'==_0x275453['type']&&'$text'!=_0x275453['name']),_0x51c5ba=_0x593704['filter'](_0x3f8bb5=>'remove'==_0x3f8bb5['type']&&'$text'!=_0x3f8bb5['name']);for(const _0x461c6f of _0x4e5e9c)_0x20c8f1['push']({'key':_0x461c6f['attributeKey'],'newValue':_0x461c6f['attributeNewValue'],'oldValue':_0x461c6f['attributeOldValue'],'range':Zt(_0x461c6f['range'],_0x35ac01['model'])});for(const _0x18442c of _0x5902e5){const _0x5cc213=_0x51c5ba['find'](_0x521364=>_0x521364['position']['isEqual'](_0x18442c['position']));_0x5cc213&&_0x20c8f1['push']({'key':m,'newValue':_0x18442c['name'],'oldValue':_0x5cc213['name'],'range':_0x35ac01['model']['createRangeOn'](_0x18442c['position']['nodeAfter'])});}return 0x0!=_0x20c8f1['length']&&this['_reduceExistingSuggestions'](_0x198cb4,_0x20c8f1);}['_processAttributeSuggestions'](_0x24d417){let _0x50538f=!0x1;const _0x469c4b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56e86d=>_0x56e86d['data']['newRange']&&_0x56e86d['name']['startsWith']('suggestion:attribute:'));for(const _0x3621a0 of _0x469c4b){const {subType:_0x57385e,id:_0x51f7b6}=this['_splitMarkerName'](_0x3621a0['name']),_0x1b3274=_0x57385e['split']('|')[0x0];for(const _0x38a42a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x38a42a['id']!=_0x51f7b6&&'attribute'==_0x38a42a['type']&&_0x38a42a['data']&&_0x38a42a['data']['key']==_0x1b3274&&_0x38a42a['getFirstRange']()['isIntersecting'](_0x3621a0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x38a42a,_0x3621a0['data']['newRange'],_0x24d417),_0x50538f=!0x0);}return _0x50538f;}['recordAttributeChanges'](_0xd9d15f){this['_recordAttributeSuggestions']=!0x0,_0xd9d15f();}['_isRegisteredAttribute'](_0x477239){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x477239);}['_reduceExistingSuggestions'](_0x24edc2,_0x2211c4){if(0x0==_0x2211c4['length'])return!0x1;let _0x52c91d=!0x1;for(const _0xdeceff of _0x2211c4){const _0x4f50a8=this['_findSuggestions'](_0xdeceff['range'],'attribute')['filter'](_0x42d9a4=>!_0x42d9a4['meta']['isNextTo'])['map'](_0x4d74b7=>_0x4d74b7['suggestion']),_0x1eb5a2=_0x1d67e1({'newValue':_0xdeceff['newValue']});_0x4f50a8['filter'](_0x17cf07=>{const [_0x1288a5,_0x64c62d]=_0x17cf07['subType']['split']('|');return _0x1288a5==_0xdeceff['key']&&_0x64c62d!=_0x1eb5a2;})['forEach'](_0x41df64=>{this['_reduceSuggestionAttributeRange'](_0x41df64,_0xdeceff['range'],_0x24edc2),_0x52c91d=!0x0;});}return _0x52c91d;}['_reduceSuggestionAttributeRange'](_0x12683c,_0x4dfb12,_0xdb364c){const _0xd01298=_0x12683c['getFirstRange']()['getDifference'](_0x4dfb12);0x0!==_0xd01298['length']?0x1!==_0xd01298['length']?this['_breakSuggestionMarker'](_0x12683c,_0x4dfb12['start'],_0x4dfb12['end']):this['_setSuggestionRange'](_0x12683c,_0xd01298[0x0]):_0xdb364c['removeMarker'](_0x12683c['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2ad240){this['_editor']=_0x2ad240,this['_model']=_0x2ad240['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5239ec,_0x279b25,_0x4ec39b,_0x3f1f15,_0x6fedcd,_0x42269b,_0x45a55c){return new x(this['_model'],{'type':_0x5239ec,'subType':_0x279b25,'id':_0x4ec39b,'originalSuggestionId':_0x45a55c,'author':_0x3f1f15,'creator':_0x3f1f15,'attributes':_0x6fedcd,'onAttributesChange':_0x42269b,'onAccept':(..._0x18e951)=>this['getSuggestionCallback'](_0x5239ec,_0x279b25,'accept')(..._0x18e951),'onDiscard':(..._0x29bf68)=>this['getSuggestionCallback'](_0x5239ec,_0x279b25,'discard')(..._0x29bf68)});}['registerCustomCallback'](_0x3aef52,_0x2b8bad,_0x243f59,_0x4b4ae6){const _0x8ab050=_0x3aef52+':'+_0x2b8bad+':'+_0x243f59;this['_customCallbacks']['set'](_0x8ab050,_0x4b4ae6);}['getSuggestionCallback'](_0x19a901,_0x3b6e68,_0x5e1e38){const _0x2ad168=_0x19a901+':'+_0x3b6e68+':'+_0x5e1e38;return this['_customCallbacks']['get'](_0x2ad168)||this['_defaultCallbacks']['get'](_0x19a901+':'+_0x5e1e38);}['_registerDefaultCallbacks'](){const _0x519398=()=>!0x1,_0x5a8bf5=_0x36a82c=>{_0x36a82c['sort']((_0x1bfa38,_0x4d2526)=>_0x1bfa38['start']['isBefore'](_0x4d2526['start'])?0x1:-0x1),this['_model']['change'](_0x5dcbbd=>{for(const _0xd88954 of _0x36a82c){let _0x384eef;_0x384eef=_0xd88954['end']['isAtEnd']&&_0xd88954['end']['parent']==_0xd88954['start']['nodeAfter']?_0x5dcbbd['createSelection'](_0xd88954['start']['nodeAfter'],'on'):_0x5dcbbd['createSelection'](_0xd88954),this['_model']['deleteContent'](_0x384eef,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3297a2=(_0x2e1412,_0x50dc8f)=>{_0x50dc8f&&this['_model']['change'](_0x58383d=>{const {commandName:_0xe45ef,commandParams:_0xf06707=[]}=_0x50dc8f,_0xc35417=_0x2e1412['map'](_0x4858e8=>(Kt(_0x4858e8)&&(_0x4858e8=this['_model']['createRange'](_0x4858e8['end'])),_0x4858e8))['filter'](_0x463740=>'$graveyard'!==_0x463740['root']['rootName']);if(_0xc35417['length']<0x1)return;const _0x4e80c8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x16cb41=>_0x2d8975['fromRange'](_0x16cb41));_0x58383d['setSelection'](_0xc35417);for(const _0x8939c5 of this['_editor']['commands']['commands']())_0x8939c5['refresh']();_0xf06707['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xe45ef,..._0xf06707);const _0x11353d=_0x4e80c8['filter'](_0x4d6141=>'$graveyard'!=_0x4d6141['root']['rootName']);_0x11353d['length']>0x0&&_0x58383d['setSelection'](_0x11353d);for(const _0x151a23 of _0x4e80c8)_0x151a23['detach']();});},_0x11099a=(_0x1ac63,_0x2c4536)=>0x1==_0x1ac63['length']&&0x1==_0x2c4536['length']&&_0x1ac63[0x0]['end']['isEqual'](_0x2c4536[0x0]['start']),_0x437530=(_0x97bcc9,_0x210e8f,_0x43e863,_0x133d00)=>nn(_0x97bcc9,_0x210e8f,_0x43e863,_0x133d00)?[_0x97bcc9,_0x210e8f]:nn(_0x210e8f,_0x97bcc9,_0x133d00,_0x43e863)?[_0x210e8f,_0x97bcc9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x519398),this['_defaultCallbacks']['set']('insertion:discard',_0x5a8bf5),this['_defaultCallbacks']['set']('insertion:join',_0x11099a),this['_defaultCallbacks']['set']('insertion:chain',_0x437530),this['_defaultCallbacks']['set']('deletion:accept',_0x5a8bf5),this['_defaultCallbacks']['set']('deletion:discard',_0x519398),this['_defaultCallbacks']['set']('deletion:join',_0x11099a),this['_defaultCallbacks']['set']('deletion:chain',_0x437530),this['_defaultCallbacks']['set']('formatInline:accept',_0x3297a2),this['_defaultCallbacks']['set']('formatInline:discard',_0x519398),this['_defaultCallbacks']['set']('formatInline:join',_0x11099a),this['_defaultCallbacks']['set']('formatInline:chain',_0x519398),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3297a2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x519398),this['_defaultCallbacks']['set']('formatBlock:join',_0x11099a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x519398),this['_defaultCallbacks']['set']('attribute:accept',_0x519398),this['_defaultCallbacks']['set']('attribute:discard',(_0x2a1177,_0xefa36b)=>{if(!_0xefa36b)return;const _0x462869=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x82e2d3=>{if(_0xefa36b['key']==m)for(const _0x4d140c of _0x2a1177){const _0x271052=_0x4d140c['start']['nodeAfter'],_0x4499d7=_0xefa36b['oldValue'];_0x82e2d3['rename'](_0x271052,_0x4499d7);}else{if(_0x462869['_isBlockAttribute'](_0xefa36b['key'])){for(const _0x243fe8 of _0x2a1177)void 0x0!==_0xefa36b['oldValue']?_0x82e2d3['setAttribute'](_0xefa36b['key'],_0xefa36b['oldValue'],_0x243fe8['start']['nodeAfter']):_0x82e2d3['removeAttribute'](_0xefa36b['key'],_0x243fe8['start']['nodeAfter']);}else{for(const _0x5504ff of _0x2a1177)_0xefa36b['oldValue']?_0x82e2d3['setAttribute'](_0xefa36b['key'],_0xefa36b['oldValue'],_0x5504ff):_0x82e2d3['removeAttribute'](_0xefa36b['key'],_0x5504ff);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x11099a);}}function zt(_0x442ce7,_0x5cdb12,_0x39f534){for(const _0x5b4d43 of _0x5cdb12['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b4d43['root']==_0x5b4d43)return!0x1;if(!_0x39f534['containsItem'](_0x5b4d43))return!0x1;if(_0x442ce7['isObject'](_0x5b4d43)||_0x442ce7['isLimit'](_0x5b4d43))return!0x0;}return!0x1;}function Kt(_0x232060){return _0x232060['end']['parent']==_0x232060['start']['nodeAfter']&&_0x232060['end']['isAtStart'];}function Wt(_0x4821f8,_0x30ec3f,_0x1fb49c,_0x9234b){const _0x44fb2e=_0x257d3b=>!_0x257d3b['item']['is']('$textProxy')&&!_0x9234b['isObject'](_0x257d3b['item']),_0x16f075=_0x4821f8['start']['getLastMatchingPosition'](_0x44fb2e),_0x1dd2b6=_0x4821f8['end']['getLastMatchingPosition'](_0x44fb2e,{'direction':'backward'});return(!_0x4821f8['start']['isEqual'](_0x16f075)||!_0x4821f8['end']['isEqual'](_0x1dd2b6))&&(_0x16f075['isBefore'](_0x1dd2b6)?_0x1fb49c['updateMarker'](_0x30ec3f,{'range':_0x1fb49c['createRange'](_0x16f075,_0x1dd2b6)}):_0x1fb49c['removeMarker'](_0x30ec3f),!0x0);}function Ht(_0x3ba9e1){return _0x1d67e1(_0x3ba9e1);}function Qt(_0x55b540){const _0x348db3=_0x55b540['start']['nodeAfter'];return _0x348db3&&_0x348db3['is']('element');}function Xt(_0x492f0a){return Kt(_0x492f0a)||function(_0x181031){return _0x181031['start']['parent']==_0x181031['end']['nodeBefore']&&_0x181031['start']['isAtEnd'];}(_0x492f0a);}function Yt(_0x247543,_0x4626e8){try{const _0x4f4eb2=_0x247543['getRange']();for(const _0x85a25f of _0x4626e8)if(_0x247543!==_0x85a25f&&_0x4f4eb2&&_0x4f4eb2['isIntersecting'](_0x85a25f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0xfc6f9c,_0xc6844d){return null==_0xfc6f9c['end']['nodeBefore']&&_0xfc6f9c['end']['parent']==_0xfc6f9c['start']['nodeAfter']?tn(_0xfc6f9c['start']['nodeAfter'],_0xc6844d):_0xfc6f9c;}function tn(_0x58f77e,_0x32eedd){const _0x3f7b69=_0x32eedd['schema']['isObject'](_0x58f77e)||_0x32eedd['schema']['isSelectable'](_0x58f77e);return _0x32eedd['createRange'](_0x32eedd['createPositionAt'](_0x58f77e,'before'),_0x3f7b69?_0x32eedd['createPositionAfter'](_0x58f77e):_0x32eedd['createPositionAt'](_0x58f77e,'end'));}function nn(_0x2e10d6,_0x184f2a,_0x34155e,_0x205a99){return!!en(_0x2e10d6,_0x184f2a)&&_0x34155e['end']['isEqual'](_0x205a99['start']);}function en(_0x5122f5,_0x37c2c0){if(!_0x5122f5['_isDataLoaded']||!_0x37c2c0['_isDataLoaded'])return!0x1;const _0x2cb0d6=new Set(Object['keys'](_0x5122f5['attributes'])),_0x35c360=new Set(Object['keys'](_0x37c2c0['attributes']));if(_0x2cb0d6['delete']('groupId'),_0x35c360['delete']('groupId'),0x0==_0x2cb0d6['size']&&0x0==_0x35c360['size'])return!0x0;if(_0x2cb0d6['size']!=_0x35c360['size'])return!0x1;const _0x2b5241={..._0x5122f5['attributes']},_0x244d56={..._0x37c2c0['attributes']};return delete _0x2b5241['groupId'],delete _0x244d56['groupId'],JSON['stringify'](_0x2b5241)==JSON['stringify'](_0x244d56);}function sn(_0x349938,_0x4c8e70){const _0x418ca7=on(_0x349938['attributes']),_0x4dabba=on(_0x4c8e70);if(!_0x349938['_isDataLoaded'])return!0x1;for(const _0x374ee1 of Object['keys'](_0x4dabba))if(!_0x3a0690(_0x418ca7[_0x374ee1],_0x4dabba[_0x374ee1]))return!0x1;return!0x0;}function on(_0x846b77){const _0x49808b=Object['assign']({},_0x846b77);return delete _0x49808b['skipNestingCheck'],delete _0x49808b['tablePasteChainId'],_0x49808b;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xdf0621(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x574b52,_0x194c4b,_0x430306,_0x2cdab3){super(),this['model']=_0x194c4b,this['view']=_0x430306,this['commentThreadController']=_0x2cdab3,this['_editor']=_0x574b52,this['_acceptCommand']=_0x574b52['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x574b52['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x19d960,_0x4a580f)=>_0x19d960||_0x4a580f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2bcbd2=>_0x2bcbd2&&this['_editor']['model']['canEditAt'](_0x194c4b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x689b49=>_0x689b49&&this['_editor']['model']['canEditAt'](_0x194c4b['getRanges']())),this['_pendingAction']=null,_0x430306['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x430306,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x430306,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x430306,'change:isDirty',()=>{_0x430306['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 _0x2d0a9a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2d0a9a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x45dd94{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x197b18,_0x1214d4,_0x26d5e3,_0xcfd59b){super(_0x197b18),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4101c8(_0x197b18,o(_0x197b18,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1214d4['authoredAt']),this['bind']('authoredAt')['to'](_0x1214d4),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',_0x1214d4,'authoredAt',this,'descriptionParts',(_0x58fc60,_0x4f4000,_0xd30bc9)=>{const _0x59c1fc=_0xd30bc9['map'](_0x497c74=>ls(_0x497c74['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x58fc60-0x1,_0x1214d4['author']['name'],_0x4f4000?_0xcfd59b['formatDateTime'](_0x4f4000):'',new DOMParser()['parseFromString'](_0x59c1fc,'text/html')['body']['textContent']]);}),this['focusables']=new _0x97e7be(),this['focusTracker']=new _0x4ec7ea(),this['keystrokes']=new _0x4da634(),this['focusCycler']=new _0x412906({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x36887b=>_0x36887b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1214d4,this['_localUser']=_0x26d5e3,this['_config']=_0xcfd59b,_0xcfd59b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x10ac8d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x441d91}=this['_config'];this['commentsListView']=new _0x441d91(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',_0x2569c8=>_0x2569c8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x301068,_0x8f2da0)=>_0x301068||!!_0x8f2da0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2800f1}=this['_config'],_0x3f3cc9=new _0x2800f1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b5c7d=_0x3f3cc9['commentInputView'];return _0x3f3cc9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b5c7d,'value',(_0x393688,_0x3ec0f6,_0x3f1ba9)=>!!_0x3f1ba9||_0x393688&&!_0x3ec0f6),_0x4b5c7d['on']('submit',(_0x2766c0,_0x245e89)=>{this['fire']('addComment',_0x245e89),_0x4b5c7d['editor']['setData']('');}),_0x4b5c7d['on']('cancel',()=>this['focus']()),_0x4b5c7d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3f3cc9;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x466a3f,_0x3ed215,_0x145fca,_0x4fec62){super(_0x466a3f,_0x3ed215,_0x145fca,_0x4fec62),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xbcdeb0=>_0xbcdeb0&&_0xbcdeb0[0x0]?_0xbcdeb0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5986e5,_0x5efe6f)=>{let _0x384a74='';for(const _0x494467 of _0x5986e5)_0x384a74+='<p>'+ls(_0x494467['content'],_0x494467['color'])+'</p>';return _0x5efe6f?_0x384a74:_0x28264b(_0x384a74,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4fec62['SuggestionView'](_0x466a3f,_0x3ed215,{'formatDateTime':_0x4fec62['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 _0x5d5537=this['bindTemplate'],_0x578d8b=[this['suggestionView']];return this['commentsListView']&&_0x578d8b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x578d8b['push'](this['commentThreadInputView']),_0x578d8b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5d5537['if']('isActive','ck-suggestion-wrapper--active'),_0x5d5537['to']('type',_0x5090ea=>'ck-suggestion-'+_0x5090ea),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':_0x5d5537['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x578d8b};}['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 _0x45dd94{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x44029f,_0x2a9ca2,_0x1c4cd3){super(_0x44029f),this['_model']=_0x2a9ca2,this['_config']=_0x1c4cd3,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2a9ca2),this['acceptButton']=this['_createButton'](o(_0x44029f,'Accept\x20suggestion'),_0x14e302,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x44029f,'Discard\x20suggestion'),_0x2ff71d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x26c0e6(_0x44029f,_0x2a9ca2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x97e7be([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ec7ea(),this['keystrokes']=new _0x4da634(),this['focusCycler']=new _0x412906({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xb19d7a=>_0xb19d7a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2a0a21=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2a0a21['innerHTML']=this['description'],this['on']('change:description',(_0x12da99,_0x28abff,_0x50ba8b)=>{_0x2a0a21['innerHTML']=_0x50ba8b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2586a7=this['bindTemplate'],_0x32a6de=[{'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':_0x2586a7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2586a7['to']('authoredAt',_0x2e8665=>this['_config']['formatDateTime'](_0x2e8665))}]}]},{'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']&&_0x32a6de['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':_0x32a6de}]};}['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'](_0x415c4c,_0x452eb4,_0x164f2d,_0x1a0b48,_0x5d8fde){const _0x124e14=new _0xaf0268(this['locale']);return _0x124e14['set']({'label':_0x415c4c,'icon':_0x452eb4,'tooltip':!0x0,'tooltipPosition':_0x5d8fde}),_0x124e14['extendTemplate']({'attributes':{'class':_0x164f2d}}),_0x124e14['on']('execute',()=>{this['fire'](_0x1a0b48,this['_model']['id']);}),_0x124e14;}['_setupKeyboardNavigation'](){const _0x41eb15=this['element'];this['keystrokes']['listenTo'](_0x41eb15);for(const _0x11313b of this['focusables'])this['focusTracker']['add'](_0x11313b['element']),this['keystrokes']['listenTo'](_0x11313b['element']);this['keystrokes']['set']('enter',(_0x1d6dad,_0x1e4d8c)=>{_0x41eb15===_0x1d6dad['target']&&(this['focusCycler']['focusFirst'](),_0x1e4d8c());}),this['keystrokes']['set']('esc',(_0xaabce5,_0x3dc2ce)=>{_0x41eb15!==_0xaabce5['target']&&(this['focus'](),_0x3dc2ce());});}}class u extends _0x116a29{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5a4c16,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd5d0d4){super(_0xd5d0d4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5f473d=this['editor']['config'];_0x5f473d['define']('trackChanges.SuggestionThreadView',fe),_0x5f473d['define']('trackChanges.SuggestionView',we),_0x5f473d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5f473d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x469f89,_0x278eb5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x526f8d,_0xda8331]of this['_handleControllerBuffer']){const _0x186dc4=this['_suggestionToController']['has'](_0x526f8d);_0x186dc4||_0xda8331?_0x186dc4&&_0xda8331&&this['_destroyController'](_0x526f8d):this['_initializeController'](_0x526f8d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x469f89,_0x278eb5);}['init'](){const _0x1b9d54=this['editor'],_0x28a8f6=_0x1b9d54['plugins']['get']('TrackChangesEditing'),_0x3f1148=_0x1b9d54['plugins']['get']('Annotations'),_0x15e9e4=_0x1b9d54['plugins']['get']('EditorAnnotations'),_0x404cff=_0x1b9d54['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x15e9e4['addSourceCollector'](()=>{const _0x5d5a21=[];for(const [_0x7026de,_0x193fac]of Array['from'](this['_suggestionToController'])){const _0x3f7707=_0x7026de['getAllAdjacentSuggestions'](),_0x5ca33f=[];for(const _0x11badc of _0x3f7707){if(!_0x11badc['isInContent'])continue;if(_0x11badc['isMultiRange']){_0x5ca33f['push'](..._0x11badc['getRanges']());continue;}const _0x4670b2=_0x11badc['getFirstRange']();if(_0x5ca33f['length']>0x0){const _0x179416=_0x5ca33f[0x0]['getJoined'](_0x4670b2);if(_0x179416){_0x5ca33f[0x0]=_0x179416;continue;}}_0x5ca33f['push'](_0x4670b2);}_0x5d5a21['push']([_0x193fac['view'],_0x5ca33f]);}return _0x5d5a21;}),this['listenTo'](_0x28a8f6,'suggestionLoaded',(_0x23e5fd,_0x23c7f0)=>{this['listenTo'](_0x23c7f0,'change:previous',(_0x505009,_0x3112b9,_0x2f5546,_0x47fa0d)=>{_0x23c7f0['isInContent']&&(null==_0x2f5546?(this['_updateController'](_0x47fa0d['head']),this['_handleSuggestionControllerDelayed'](_0x23c7f0,!0x1)):(this['_updateController'](_0x2f5546['head']),null==_0x47fa0d&&this['_handleSuggestionControllerDelayed'](_0x23c7f0,!0x0)));}),null!==_0x23c7f0['previous']?this['_updateController'](_0x23c7f0['head']):this['_handleSuggestionControllerDelayed'](_0x23c7f0,!0x1);}),this['listenTo'](_0x28a8f6,'suggestionUnloaded',(_0x23d42f,_0x3b6b0e,_0x24de34)=>{this['stopListening'](_0x3b6b0e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b6b0e),this['_suggestionToController']['has'](_0x3b6b0e)&&this['_destroyController'](_0x3b6b0e),_0x24de34&&this['_updateController'](_0x24de34['head']);}),this['listenTo'](_0x28a8f6,'suggestionChanged',(_0x23ecfa,_0x429cff)=>{this['_updateController'](_0x429cff);}),this['listenTo'](_0x3f1148,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x404cff,'addComment',(_0x215436,{threadId:_0x22bbd9,isFromAdapter:_0x47356e})=>{if(_0x47356e||!_0x28a8f6['hasSuggestion'](_0x22bbd9))return;const _0x50627a=_0x28a8f6['getSuggestion'](_0x22bbd9);this['_suggestionToController']['get'](_0x50627a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b4a31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27d34c;for(const _0xe9fb93 in _0x4b4a31){const _0x80d1d4=_0xe9fb93,_0x1079fe=_0x4b4a31[_0x80d1d4];if('trackChangesLicenseKeyValid'==_0x1079fe||'trackChangesLicenseKeyInvalid'==_0x1079fe||'trackChangesLicenseKeyExpired'==_0x1079fe||'trackChangesLicenseKeyDomainLimit'==_0x1079fe||'trackChangesLicenseKeyNotAllowed'==_0x1079fe||'trackChangesLicenseKeyEvaluationLimit'==_0x1079fe||'trackChangesLicenseKeyUsageLimit'==_0x1079fe){delete _0x4b4a31[_0x80d1d4],_0x27d34c=_0x1079fe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x27d34c&&_0x4b4a31['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x27d34c&&_0x4b4a31['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x27d34c&&_0x4b4a31['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x27d34c&&_0x4b4a31['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x27d34c&&_0x4b4a31['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x27d34c&&_0x4b4a31['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x62fddd){const _0x677367=this['_suggestionToController']['get'](_0x62fddd);if(!_0x677367)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x677367['view'])||null;}['getSuggestionForAnnotation'](_0x2d70c0){const _0x510c79=this['_viewToController']['get'](_0x2d70c0['innerView']);return _0x510c79?_0x510c79['model']:null;}['_refreshActiveMarkers'](){const _0x56a701=this['editor']['plugins']['get']('Annotations'),_0x233f8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d99f=Array['from'](_0x56a701['activeAnnotations'],_0x25206b=>_0x25206b['innerView'])['filter'](_0x50b1d8=>this['_viewToController']['has'](_0x50b1d8)),_0x23a105=[];for(const _0x593b84 of _0x16d99f){const _0x393f20=this['_viewToController']['get'](_0x593b84)['model']['getAllAdjacentSuggestions']();_0x23a105['push'](..._0x393f20['reduce']((_0x3c3ca5,_0x292fc2)=>[..._0x3c3ca5,..._0x292fc2['getMarkerNames']()],[]));}_0x233f8b['activeMarkers']=_0x23a105;}['_addUIComponentsToFactory'](){const _0x272a0f=this['editor'],_0x55868c=_0x272a0f['locale'],_0xfd5996=o(_0x55868c,'Track\x20changes'),_0x16e47e=new _0x42d68e([{'type':'switchbutton','model':new _0x1662fa({'withText':!0x0,'isToggleable':!0x0,'label':_0xfd5996,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x272a0f['plugins']['has']('TrackChangesPreview')&&_0x16e47e['addMany']([{'type':'separator'},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4f3284 of _0x16e47e)if(ke(_0x4f3284)){const _0x560f02=_0x272a0f['commands']['get'](_0x4f3284['model']['commandName']);_0x4f3284['model']['bind']('isOn','isEnabled')['to'](_0x560f02,'value','isEnabled');}_0x272a0f['ui']['componentFactory']['add']('trackChanges',_0x470ca7=>this['_createToolbarButton'](_0x470ca7,_0x16e47e,_0xfd5996)),_0x272a0f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x35ba45=>this['_createMenuBarMenu'](_0x35ba45,_0x16e47e,_0xfd5996));}['_createToolbarButton'](_0x1420b8,_0x3da361,_0x8320eb){const _0x24622f=_0x483a08(_0x1420b8,_0x3c77a1),_0x3e0a72=this['editor']['commands']['get']('trackChanges');_0x24622f['buttonView']['set']({'tooltip':_0x8320eb,'label':_0x8320eb,'icon':_0x459346}),_0x24622f['buttonView']['bind']('isOn')['to'](_0x3e0a72,'value'),_0x24622f['buttonView']['on']('execute',()=>{_0x3e0a72['execute'](),this['editor']['editing']['view']['focus']();}),_0x186803(_0x24622f,_0x3da361,{'role':'menu'});const _0x17915d=[];for(const _0x36e221 of _0x3da361)ke(_0x36e221)&&_0x17915d['push'](this['editor']['commands']['get'](_0x36e221['model']['commandName']));const _0x4491bb=_0x24622f['buttonView'];return _0x4491bb['actionView']['unbind']('isEnabled'),_0x4491bb['arrowView']['unbind']('isEnabled'),_0x4491bb['actionView']['bind']('isEnabled')['to'](_0x3e0a72,'isEnabled'),_0x4491bb['arrowView']['bind']('isEnabled')['toMany'](_0x17915d,'isEnabled',(..._0x9c58b0)=>_0x9c58b0['some'](_0x2e2e6d=>_0x2e2e6d)),_0x24622f['on']('execute',_0x1f5881=>{this['editor']['execute'](_0x1f5881['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x24622f;}['_createMenuBarMenu'](_0x1f3877,_0x2bff04,_0x149649){const _0x558c97=new _0x114742(_0x1f3877),_0x54a704=this['editor']['commands']['get']('trackChanges');_0x558c97['buttonView']['set']({'label':_0x149649,'icon':_0x459346});const _0x58277c=new _0x31f0a0(_0x1f3877);for(const _0xc779e2 of _0x2bff04){if('separator'==_0xc779e2['type']){_0x58277c['items']['add'](new _0x2d3004(_0x1f3877));continue;}const _0x31a53c=new _0x4647b4(_0x1f3877,_0x558c97),_0x4a2932=new _0x2f308f(_0x1f3877),_0x38fb3f=_0xc779e2['model'];_0x4a2932['bind'](...Object['keys'](_0x38fb3f))['to'](_0x38fb3f),_0x4a2932['delegate']('execute')['to'](_0x558c97),_0x4a2932['on']('execute',()=>{this['editor']['execute'](_0x38fb3f['commandName']),this['editor']['editing']['view']['focus']();}),_0x31a53c['children']['add'](_0x4a2932),_0x58277c['items']['add'](_0x31a53c);}return _0x558c97['bind']('isEnabled')['to'](_0x54a704,'isEnabled'),_0x558c97['panelView']['children']['add'](_0x58277c),_0x558c97;}['_initializeController'](_0x13960a){const _0x1d00a9=this['editor'],_0x4bfa28=_0x1d00a9['config'],_0x2aaf5a=_0x1d00a9['plugins']['get']('Annotations'),_0x32d02f=_0x1d00a9['plugins']['get']('CommentsRepository'),_0x33ec78=_0x1d00a9['plugins']['get']('EditorAnnotations'),_0x4c3275=_0x1d00a9['plugins']['get'](_0x5a4c16)['me'],_0x5d591d=_0x4bfa28['get']('trackChanges')['SuggestionThreadView'],_0x3e5367=_0x4bfa28['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1821f8,CommentThreadInputView:_0x246719}=_0x1d00a9['plugins']['get']('CommentsUI');let _0xdadb69,_0x442798,_0x239198;this['_annotationViews']['has'](_0x13960a['id'])?(_0x442798=this['_annotationViews']['get'](_0x13960a['id']),_0xdadb69=_0x442798['mainView']):(_0xdadb69=new _0x5d591d(_0x1d00a9['locale'],_0x13960a,_0x4c3275,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4bfa28['get']('comments.editorConfig'),'licenseKey':_0x4bfa28['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4bfa28['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4bfa28['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4bfa28['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5876db(_0x4bfa28['get']('locale'),_0x1d00a9['locale']),'CommentView':_0x4bfa28['get']('comments')['CommentView'],'CommentsListView':_0x1821f8,'CommentThreadInputView':_0x246719,'SuggestionView':_0x3e5367}),_0xdadb69['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d00a9['editing']['view']['focus']();}),_0xdadb69['suggestionView']['discardButton']['on']('execute',()=>{_0x1d00a9['editing']['view']['focus']();}),_0x442798=_0x2aaf5a['createAnnotationView'](this['editor']['locale'],_0xdadb69),_0x442798['bind']('isDirty')['to'](_0xdadb69,'isDirty'),_0x442798['bind']('length')['to'](_0xdadb69),_0x442798['bind']('type')['to'](_0xdadb69,'type',_0x242b4c=>'suggestion-'+_0x242b4c),_0xdadb69['on']('escape',()=>{_0x239198['fire']('escape');}),this['_annotationViews']['set'](_0x13960a['id'],_0x442798));const _0x5dcb14=_0x32d02f['createCommentThreadController'](_0x13960a['commentThread'],_0xdadb69),_0x9af5fc=new pe(_0x1d00a9,_0x13960a,_0xdadb69,_0x5dcb14),_0x8e5ceb=_0x13960a['getAllAdjacentSuggestions']()['filter'](_0x1efc8c=>_0x1efc8c['isInContent']);_0xdadb69['descriptionParts']=_0x1d00a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x8e5ceb),this['_suggestionToController']['set'](_0x13960a,_0x9af5fc),this['_viewToController']['set'](_0xdadb69,_0x9af5fc);const _0x17147a=()=>{const _0x3d6e2f=[],_0x3dec78=_0x13960a['getAllAdjacentSuggestions']()['filter'](_0x2e5f3a=>_0x2e5f3a['isInContent']);for(const _0x8ac1a6 of _0x3dec78)_0x3d6e2f['push'](..._0x8ac1a6['getMarkers']());return _0x22e28(_0x1d00a9['editing'],_0x3d6e2f);};_0x239198=_0x2aaf5a['createAnnotation']({'view':_0x442798,'target':_0x17147a,'type':()=>'suggestion-'+_0x9af5fc['view']['type'],'isVisible':!!_0x17147a()}),_0x32d02f['_bindAnnotationToEditors'](_0xdadb69,_0x239198),_0x2aaf5a['add'](_0x239198),_0x33ec78['registerAnnotation'](_0x239198);}['_destroyController'](_0x39ffca){const _0x297887=this['editor']['plugins']['get']('CommentsRepository'),_0xba645=this['editor']['plugins']['get']('Annotations'),_0x44a515=this['_suggestionToController']['get'](_0x39ffca),_0x292859=_0x44a515['view'],_0x3c3437=_0xba645['getByInnerView'](_0x292859);_0x297887['_unbindEditors'](_0x292859),_0x3c3437&&_0xba645['remove'](_0x3c3437),this['_suggestionToController']['delete'](_0x39ffca),this['_viewToController']['delete'](_0x292859),_0x44a515['destroy']();}['_updateController'](_0x26b7e8){if(!_0x26b7e8['isInContent']||!this['_suggestionToController']['has'](_0x26b7e8))return;const _0x59fceb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51e2e2=this['_suggestionToController']['get'](_0x26b7e8),_0x343368=_0x26b7e8['getAllAdjacentSuggestions']();_0x51e2e2['view']['descriptionParts']=_0x59fceb['descriptionFactory']['getDescriptions'](_0x343368);}['destroy'](){for(const _0x9b9470 of this['_suggestionToController']['keys']())this['_destroyController'](_0x9b9470);for(const _0x1ed695 of this['_annotationViews']['values']())_0x1ed695['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xad9e42){return'model'in _0xad9e42;}class Ne extends _0x116a29{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4f984b){this['editor']['plugins']['get'](d)['adapter']=_0x4f984b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2e9b58){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2e9b58);}['getSuggestions']({skipNotAttached:_0x1057c3=!0x1,toJSON:_0x28d288=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1057c3,'toJSON':_0x28d288});}['getSuggestion'](_0x208314){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x208314);}}const p=['Pagination'];class re extends _0x116a29{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5dab80=this['editor'];if(_0x5dab80['config']['define']('trackChangesData.editorCreator',_0x314a7a=>{const _0x5b8a3c=_0x5dab80['model']['document']['getRootNames']()['reduce']((_0x394c3c,_0x318163)=>(_0x394c3c[_0x318163]='',_0x394c3c),{});return _0x5dab80['constructor']['create'](_0x5b8a3c,_0x314a7a);}),'function'!=typeof _0x5dab80['config']['get']('trackChangesData')['editorCreator'])throw new _0x428d7a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x186637){return P(this['editor'],!0x0,_0x186637);}['getDataWithDiscardedSuggestions'](_0x28a8d5){return P(this['editor'],!0x1,_0x28a8d5);}}class Fe extends _0x116a29{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9df5bd){function _0x533f42(_0x352255){return _0x352255['map'](_0x55bbb2=>String['fromCharCode'](_0x55bbb2))['join']('');}super(_0x9df5bd),this['result']='end',_0x9df5bd[_0x533f42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533f42([0x76,0x69,0x65,0x77])][_0x533f42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x533f42([0x61,0x75,0x74,0x6f]),_0x9df5bd[_0x533f42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x533f42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x533f42([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x533f42([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x533f42([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(_0x576eec){return void 0x0!==_0x576eec['getRootsAttributes'];}async function P(_0x1b29bb,_0x333e96,_0xb2327a){const _0x2789af=_0x53e095(_0x1b29bb,p);_0x2789af['plugins']['push'](d,Fe),_0x2789af['rootsAttributes']=De(_0x1b29bb)?_0x1b29bb['getRootsAttributes']():void 0x0;const _0x32a9c8=document['createDocumentFragment'](),_0x4e055c=_0x1b29bb['config']['get']('trackChangesData')['editorCreator'],_0x4fd062=await _0x4e055c(_0x2789af,()=>function(_0x1a0c62){const _0x14e6cd=document['createElement']('div');return _0x1a0c62['appendChild'](_0x14e6cd),_0x14e6cd;}(_0x32a9c8));!function(_0x12fc20,_0x1bb103){const _0x535eda=_0x12fc20['model']['document']['getRootNames']()['reduce']((_0x361fe6,_0x1795b4)=>(_0x361fe6[_0x1795b4]=_0x12fc20['data']['get']({'rootName':_0x1795b4}),_0x361fe6),{}),_0x48ed9e=_0x12fc20['plugins']['get']('Users')['users']['map'](_0x13766c=>({'id':_0x13766c['id'],'name':_0x13766c['name']})),_0x21bbb7=_0x12fc20['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10bf50=_0x12fc20['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2680b6=_0x1bb103['plugins']['get']('Users'),_0x35b791=_0x1bb103['plugins']['get']('TrackChangesEditing'),_0x2d0f6c=_0x1bb103['plugins']['get']('CommentsRepository');for(const _0x37680a of _0x2d0f6c['getCommentThreads']())_0x37680a['remove']();for(const _0x1febb5 of _0x48ed9e)_0x2680b6['getUser'](_0x1febb5['id'])||_0x2680b6['addUser'](_0x1febb5);_0x2680b6['me']||_0x2680b6['useAnonymousUser']();for(const _0x3d6b31 of _0x10bf50)_0x2d0f6c['addCommentThread'](_0x3d6b31);for(const _0x5055f1 of _0x21bbb7)_0x35b791['addSuggestionData'](_0x5055f1);_0x1bb103['data']['set'](_0x535eda);}(_0x1b29bb,_0x4fd062),_0x4fd062['execute'](_0x333e96?'acceptAllSuggestions':'discardAllSuggestions');const _0x29713c=De(_0x4fd062)?_0x4fd062['getFullData'](_0xb2327a):_0x4fd062['data']['get'](_0xb2327a);return await _0x4fd062['destroy'](),_0x29713c;}class Me extends _0x45dd94{['options'];constructor(_0x31ffc8,_0x13bba8){super(_0x31ffc8),this['options']=_0x13bba8,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'](_0xbb9f44,_0x3df082){if(!this['element'])return;const _0x28950b=[];for(const [_0x49c238,_0x468302]of _0xbb9f44){const _0x14875f=document['createElement']('div');_0x14875f['setAttribute']('data-ck-root-name',_0x49c238),_0x14875f['className']=_0x468302['classes']+'\x20ck-track-changes-preview__root-container',_0x14875f['innerHTML']=_0x468302['content'],_0x28950b['push'](_0x14875f);}_0x3df082(this['element'],_0x28950b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x25cf1c{constructor(_0xaa9c0b){super(_0xaa9c0b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x26f5d6=this['editor'],_0x18a58a=_0x26f5d6['locale'],_0x5b1daf=_0x26f5d6['plugins']['get']('Dialog');let _0x1399b4;const _0x9437ef=function(_0x3f20f5){const _0x1a2828={};if('editables'in _0x3f20f5['ui']['view']){for(const [_0xc2b7b5,_0x27bd85]of Object['entries'](_0x3f20f5['ui']['view']['editables']))_0x1a2828[_0xc2b7b5]=_0x27bd85['element'];}else _0x1a2828[_0x3f20f5['model']['document']['getRootNames']()[0x0]]=_0x3f20f5['ui']['view']['editable']['element'];return _0x1a2828;}(_0x26f5d6),_0x1a04e3=function(_0x62394b){let _0x41f1a6=0x0;for(const _0x47c6f0 of Object['values'](_0x62394b))_0x41f1a6=Math['max'](_0x41f1a6,_0x47c6f0['getBoundingClientRect']()['width']);let _0xb93c84=0x0;for(const _0x17e3a3 of Object['values'](_0x62394b))_0xb93c84+=_0x17e3a3['getBoundingClientRect']()['height'];const _0x4fb9d8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x50786b=Math['min'](_0xb93c84,_0x4fb9d8);return{'width':_0x41f1a6,'height':_0x50786b};}(_0x9437ef);_0x5b1daf['show']({'id':'finalContentPreview','title':o(_0x18a58a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x18a58a,{'dialogRects':_0x1a04e3}),'onHide':()=>{_0x1399b4['detachFromDom']();},'onShow':()=>{_0x26f5d6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1cb73f=>{const _0x1bd664=this['_standarizeRootsData'](_0x1cb73f,_0x26f5d6,_0x9437ef);_0x5b1daf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1bd664,_0x26f5d6['config']['get']('trackChanges.preview.renderFunction'));}),_0x1399b4=new _0xc85bd9(_0x18a58a,[_0x5b1daf['view']]),_0x1399b4['attachToDom'](),_0x1399b4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x26f5d6['once']('destroy',()=>{_0x1399b4['detachFromDom']();});const _0x22998e=_0x5b1daf['view']['headerView']['class'];_0x5b1daf['view']['headerView']['class']=_0x22998e?_0x22998e+'\x20ck-reset_all':'ck-reset_all',_0x5b1daf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5b1daf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xe9efdd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x9429c=_0xe9efdd['previewMode'],_0x24512d={};if('$labels'===_0x9429c){for(const _0x11ca5d of _0xe9efdd['getMergeFieldsIds']())_0x24512d[_0x11ca5d]=_0xe9efdd['getLabel'](_0x11ca5d)||_0x11ca5d;}else{const _0x5cbd40='$defaultValues'===_0x9429c?_0xe9efdd['getDefaultValues']():_0xe9efdd['getDataSetValues'](_0x9429c,!0x0);for(const _0x173205 of Object['entries'](_0x5cbd40)){const [_0x2c741e,_0x5deec4]=_0x173205;_0x24512d[_0x2c741e]=null!==_0x5deec4?_0x5deec4:_0xe9efdd['getLabel'](_0x2c741e)||_0x2c741e;}}return{'mergeFieldsData':_0x24512d};}['_standarizeRootsData'](_0x547214,_0x552d84,_0x38122d){let _0x37eb54;if('string'==typeof _0x547214){const _0x484791=_0x552d84['model']['document']['getRootNames']()[0x0];_0x37eb54={[_0x484791]:_0x547214};}else _0x37eb54=_0x547214;const _0x45a513=this['_fixMediaEmbeds'](_0x37eb54,_0x552d84),_0x245128=function(_0x1850d6,_0x2b8d17){for(const [_0x1e10b3,_0x49677e]of _0x1850d6)_0x49677e['classes']=_0x2b8d17[_0x1e10b3]['classList']['value']['replace']('ck-focused','');return _0x1850d6;}(this['_sortRoots'](_0x552d84)['reduce']((_0x21c387,_0x3b1d60)=>(_0x21c387['push']([_0x3b1d60,{'content':_0x45a513[_0x3b1d60],'classes':''}]),_0x21c387),[]),_0x38122d);return _0x245128;}['_fixMediaEmbeds'](_0x5b8a9a,_0x206c99){if(!_0x206c99['plugins']['has']('MediaEmbedEditing'))return _0x5b8a9a;const _0x154f0b=_0x206c99['plugins']['get']('MediaEmbedEditing');for(const [_0xc1a305,_0x1ea8dd]of Object['entries'](_0x5b8a9a)){const _0x752977=document['createElement']('div');_0x752977['innerHTML']=_0x1ea8dd,(_0x752977['querySelectorAll']('figure.media')['forEach'](_0x519fa3=>{const _0x3cad3f=_0x519fa3['querySelector']('oembed');if(_0x3cad3f){const _0x9b304d=_0x3cad3f['getAttribute']('url');if(_0x9b304d){const _0x12bc2f=_0x154f0b['registry']['getMediaViewElement'](new _0x285051(_0x206c99['editing']['view']['document']),_0x9b304d,{'elementName':'','renderForEditingView':!0x0}),_0x1e85f9=document['createElement']('div');_0x1e85f9['classList']['add']('ck-media__wrapper'),_0x12bc2f['render'](_0x1e85f9,_0x206c99['editing']['view']['domConverter']),_0x3cad3f['replaceWith'](_0x1e85f9);}}}),_0x5b8a9a[_0xc1a305]=_0x752977['innerHTML']);}return _0x5b8a9a;}['_sortRoots'](_0x57933f){if(!function(_0x42e143){return void 0x0!==_0x42e143['getRootsAttributes'];}(_0x57933f))return _0x57933f['model']['document']['getRootNames']();const _0x1f1a7e=[],_0x543705=new Map();for(const _0x368887 of _0x57933f['model']['document']['getRootNames']()){const _0x6c217=_0x57933f['editing']['view']['getDomRoot'](_0x368887)['getClientRects']()['item'](0x0);_0x1f1a7e['push'](_0x368887),_0x543705['set'](_0x368887,_0x6c217);}return _0x1f1a7e['sort']((_0x1b4983,_0x2b5e25)=>{const _0x1fea37=_0x543705['get'](_0x1b4983),_0x4de780=_0x543705['get'](_0x2b5e25);return _0x1fea37['y']-_0x4de780['y']||_0x1fea37['x']-_0x4de780['x'];}),_0x1f1a7e;}}class Ue extends _0x116a29{static get['requires'](){return[re,_0x382d28];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15bbb1){super(_0x15bbb1),_0x15bbb1['commands']['add']('previewFinalContent',new te(this['editor'])),_0x15bbb1['config']['define']('trackChanges.preview.renderFunction',(_0x4d622b,_0x364050)=>{for(const _0x397b8e of _0x364050)_0x4d622b['appendChild'](_0x397b8e);});}}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};
|