@ckeditor/ckeditor5-track-changes 47.3.0-alpha.2 → 47.3.0-alpha.3
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
|
-
_0x16f996(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x338ace,_0x277fd5){super(),this['id']=_0x277fd5['id'],this['type']=_0x277fd5['type'],this['subType']=_0x277fd5['subType']||null,this['author']=_0x277fd5['author'],this['creator']=_0x277fd5['creator']||_0x277fd5['author'],this['isExternal']=Boolean(_0x277fd5['attributes']&&_0x277fd5['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x277fd5['originalSuggestionId']||null,this['_model']=_0x338ace,this['_onAccept']=_0x277fd5['onAccept'],this['_onDiscard']=_0x277fd5['onDiscard'],this['_onAttributesChange']=_0x277fd5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x277fd5['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 _0x297107=this;for(;_0x297107['previous'];)_0x297107=_0x297107['previous'];return _0x297107;}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'](_0x24a980){this['_markerNames']['add'](_0x24a980);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3ee9e7=>this['_model']['markers']['get'](_0x3ee9e7))['filter'](_0x368576=>_0x368576);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x335181=>{for(const _0x41d93b of this['getMarkers']())_0x335181['removeMarker'](_0x41d93b);}),this['_markerNames']['clear']();}['removeMarker'](_0x15ae4c){this['_model']['change'](_0x3c7f43=>{_0x3c7f43['removeMarker'](_0x15ae4c);}),this['_markerNames']['delete'](_0x15ae4c);}['addRange'](_0x5f542d){const _0x2f4735='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x2f4735),this['_model']['change'](_0x48e09c=>{_0x48e09c['addMarker'](_0x2f4735,{'range':_0x5f542d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x258e07){for(const _0x31827f of this['getRanges']())if(_0x31827f['isIntersecting'](_0x258e07))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1bf6fe=>_0x1bf6fe['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x194304,_0x1647ac)=>[..._0x194304,..._0x1647ac['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x26744c=this['getRanges']();if(0x1!=_0x26744c['length'])return null;const _0x1c5e22=_0x26744c[0x0],_0x1a2b4b=_0x1c5e22['start']['nodeAfter'],_0x2ce73a=_0x1c5e22['end']['nodeBefore'];return _0x1a2b4b instanceof _0x4ababf?_0x1a2b4b!=_0x2ce73a?null:_0x1a2b4b: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 _0x23e0f8=[];let _0x56f6de=this['head'];for(;_0x56f6de;)_0x23e0f8['push'](_0x56f6de),_0x56f6de=_0x56f6de['next'];return _0x23e0f8;}['setAttribute'](_0x213bb3,_0x94b458){const _0xfedce6=_0x47925d(this['attributes']);_0x594cb6(_0xfedce6,_0x213bb3,_0x94b458),_0x4eaf57(_0xfedce6,this['attributes'])||(this['attributes']=_0xfedce6,this['_onAttributesChange'](_0xfedce6));}['removeAttribute'](_0x4ffca9){const _0x2f4931=_0x47925d(this['attributes']);_0x56d881(_0x2f4931,_0x4ffca9),_0x4eaf57(_0x2f4931,this['attributes'])||(this['attributes']=_0x2f4931,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 _0x49bc9e()['substr'](0x1,0x5);}}function o(_0x38d244,_0x3910ae,_0x5e5abd){const _0x251a05=_0x38d244['t'],t=_0x38d244['t'];switch(_0x3910ae){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',_0x5e5abd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e5abd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e5abd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e5abd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e5abd);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',_0x5e5abd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e5abd);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',_0x5e5abd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e5abd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e5abd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e5abd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e5abd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e5abd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5e5abd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e5abd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e5abd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e5abd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e5abd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e5abd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e5abd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e5abd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e5abd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e5abd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e5abd);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5e5abd);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5e5abd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e5abd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e5abd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e5abd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e5abd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e5abd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e5abd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e5abd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e5abd);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'},_0x5e5abd);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5e5abd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e5abd);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5e5abd);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5e5abd);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5e5abd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e5abd);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'},_0x5e5abd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5e5abd);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 _0x251a05({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5e5abd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x251a05({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5e5abd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5e5abd);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'},_0x5e5abd);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'},_0x5e5abd);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'},_0x5e5abd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3910ae;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d0d4b,_0x190fc3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d0d4b,this['_locale']=_0x190fc3;}['getDescriptions'](_0x3295a6){const _0x4f2806=[],_0x1ecfe5=new Set(),_0x4d07c6=new Set();for(let _0xd181a4=0x0;_0xd181a4<_0x3295a6['length'];_0xd181a4++){const _0x428d05=_0x3295a6[_0xd181a4];if(!_0x428d05['isInContent'])continue;const _0x147010=this['_handleCustomCallbackDescription'](_0x428d05);if(_0x147010){if(null!=_0x428d05['subType']){if(_0x1ecfe5['has'](_0x428d05['subType']))continue;_0x1ecfe5['add'](_0x428d05['subType']);}_0x4f2806['push'](_0x147010);}else{if('attribute'==_0x428d05['type']){const _0x18c775=_0x428d05['data']['key'];if(_0x4d07c6['has'](_0x18c775))continue;_0x4d07c6['add'](_0x428d05['data']['key']),_0x18c775==m?this['_handleRenameSuggestionDescription'](_0x4f2806,_0x428d05):this['_handleAttributeSuggestionDescription'](_0x4f2806,_0x428d05);continue;}'insertion'!=_0x428d05['type']&&'deletion'!=_0x428d05['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4f2806,_0x428d05,_0x3295a6[_0xd181a4+0x1]);}}return this['_resolveDescriptionItems'](_0x4f2806);}['registerDescriptionCallback'](_0x48a768){this['_customCallbacks']['push'](_0x48a768);}['registerElementLabel'](_0x49c61a,_0xae8242,_0x13aca3=_0x1b8846['normal']){'function'==typeof _0x49c61a?_0x4d13b0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49c61a,'label':_0xae8242,'priority':_0x13aca3}):this['_itemLabels']['set'](_0x49c61a,_0xae8242);}['registerAttributeLabel'](_0x3da3fa,_0xa4d0a7){this['_attributeLabels']['set'](_0x3da3fa,_0xa4d0a7);}['getItemLabel'](_0xd1cb63,_0x3866ee=0x1){let _0x1a7b99;for(const _0x1b4f28 of this['_itemLabelsCallbacks'])if(_0x1b4f28['matchingCallback'](_0xd1cb63)){_0x1a7b99=_0x1b4f28['label'];break;}return _0x1a7b99||(_0x1a7b99=this['_itemLabels']['get'](_0xd1cb63['name'])),_0x1a7b99?_0x1a7b99(_0x3866ee):0x1!==_0x3866ee?_0x3866ee+'\x20'+_0xd1cb63['name']+'s':''+_0xd1cb63['name'];}['_addDescriptionItems'](_0x36dea3,_0x124a38){const _0x3a4e78=_0x124a38['getFirstRange']()['getWalker'](),_0x5ebb18='insertion'==_0x124a38['type']?'add':'remove';for(const _0x477f8f of _0x3a4e78){const _0x55160a=_0x477f8f['item'],_0x4ba6e9=_0x36dea3[_0x36dea3['length']-0x1];if(_0x55160a['is']('$textProxy'))_0x4ba6e9&&_0x4ba6e9['type']['indexOf']('Container')>-0x1&&_0x36dea3['pop'](),_0x4ba6e9&&'text'==_0x4ba6e9['type']?_0x4ba6e9[_0x5ebb18]+=_0x55160a['data']:_0x36dea3['push']({'type':'text','add':'add'==_0x5ebb18?_0x55160a['data']:'','remove':'remove'==_0x5ebb18?_0x55160a['data']:''});else{if(this['_schema']['isObject'](_0x55160a)){const _0x2d2a1a=_0x55160a;if(_0x4ba6e9&&_0x4ba6e9['type']['indexOf']('Container')>-0x1&&_0x36dea3['pop'](),'elementEnd'==_0x477f8f['type'])continue;_0x4ba6e9&&_0x4ba6e9['type']==_0x5ebb18+'Object'&&_0x4ba6e9['element']['name']==_0x2d2a1a['name']?_0x4ba6e9['quantity']++:_0x36dea3['push']({'type':_0x5ebb18+'Object','element':_0x2d2a1a,'quantity':0x1}),_0x3a4e78['skip'](_0x3194cf=>!('elementEnd'==_0x3194cf['type']&&_0x3194cf['item']==_0x55160a));}else{if(this['_schema']['checkChild'](_0x55160a,'$text')||_0x55160a['is']('element','softBreak')){const _0x2f95e3=_0x55160a;if('add'==_0x5ebb18&&'elementStart'==_0x477f8f['type']||'remove'==_0x5ebb18&&'elementEnd'==_0x477f8f['type'])continue;if(_0x4ba6e9&&-0x1==_0x4ba6e9['type']['indexOf']('Container')){'text'==_0x4ba6e9['type']&&(_0x4ba6e9[_0x5ebb18]+='\x0a');continue;}let _0x446980;if(_0x446980='add'==_0x5ebb18?_0x2f95e3['nextSibling']&&!this['_schema']['isObject'](_0x2f95e3['nextSibling'])?_0x2f95e3['nextSibling']:null:_0x2f95e3['previousSibling']&&!this['_schema']['isObject'](_0x2f95e3['previousSibling'])?_0x2f95e3['previousSibling']:null,_0x2f95e3['isEmpty']||_0x446980&&_0x446980['isEmpty']){const _0x26e575=_0x446980&&_0x446980['isEmpty']?_0x446980:_0x2f95e3;_0x4ba6e9&&_0x4ba6e9['type']==_0x5ebb18+'EmptyContainer'&&_0x4ba6e9['element']['name']==_0x26e575['name']?_0x4ba6e9['quantity']++:_0x36dea3['push']({'type':_0x5ebb18+'EmptyContainer','element':_0x26e575,'quantity':0x1});}else _0x36dea3['push']({'type':_0x5ebb18+'Container','element':_0x2f95e3});}}}}}['_resolveDescriptionItems'](_0x171306){const _0x61d048=this['_locale'],_0x9370f3=[],_0x4733ec=[],_0x47f278=[];for(const _0x313351 of _0x171306)switch(_0x313351['type']){case'text':if(_0x313351['add']=_0x313351['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x313351['remove']=_0x313351['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x313351['add']&&''!=_0x313351['remove']){_0x9370f3['push']({'type':'replace','content':o(_0x61d048,'REPLACE_TEXT',['\x22'+_0x313351['remove']+'\x22','\x22'+_0x313351['add']+'\x22'])});continue;}if(null!=_0x313351['add']['match'](/^ +$/)){_0x9370f3['push']({'type':'insertion','content':o(_0x61d048,'*Insert:*\x20%0',o(_0x61d048,'ELEMENT_SPACE',_0x313351['add']['length']))});continue;}if(null!=_0x313351['remove']['match'](/^ +$/)){_0x9370f3['push']({'type':'deletion','content':o(_0x61d048,'*Remove:*\x20%0',o(_0x61d048,'ELEMENT_SPACE',_0x313351['remove']['length']))});continue;}if(''!=_0x313351['add']){_0x9370f3['push']({'type':'insertion','content':o(_0x61d048,'*Insert:*\x20%0','\x22'+_0x313351['add']+'\x22')});continue;}_0x9370f3['push']({'type':'deletion','content':o(_0x61d048,'*Remove:*\x20%0','\x22'+_0x313351['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x9370f3['push']({'type':'insertion','content':o(_0x61d048,'*Insert:*\x20%0',this['getItemLabel'](_0x313351['element'],_0x313351['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x9370f3['push']({'type':'deletion','content':o(_0x61d048,'*Remove:*\x20%0',this['getItemLabel'](_0x313351['element'],_0x313351['quantity']))});continue;case'addContainer':_0x9370f3['push']({'type':'insertion','content':o(_0x61d048,'*Split:*\x20%0',this['getItemLabel'](_0x313351['element'],_0x313351['quantity']))});continue;case'removeContainer':_0x9370f3['push']({'type':'deletion','content':o(_0x61d048,'*Merge:*\x20%0',this['getItemLabel'](_0x313351['element'],_0x313351['quantity']))});continue;case'addFormat':_0x4733ec['push'](_0x313351['key']);continue;case'removeFormat':_0x47f278['push'](_0x313351['key']);continue;default:_0x9370f3['push'](_0x313351);}if(_0x4733ec['length']){const _0x3b0735=_0x4733ec['map'](_0x4b7c2b=>this['_attributeLabels']['has'](_0x4b7c2b)?this['_attributeLabels']['get'](_0x4b7c2b):_0x4b7c2b)['join'](',\x20');_0x9370f3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3b0735)});}if(_0x47f278['length']){const _0x53e303=_0x47f278['map'](_0x16306c=>this['_attributeLabels']['has'](_0x16306c)?this['_attributeLabels']['get'](_0x16306c):_0x16306c)['join'](',\x20');_0x9370f3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x53e303)});}return _0x9370f3;}['_handleCustomCallbackDescription'](_0x4b50ac){for(const _0x1c2efd of this['_customCallbacks']){const _0x35cfd0=_0x1c2efd(_0x4b50ac);if(_0x35cfd0&&'type'in _0x35cfd0)return _0x35cfd0;}}['_handleAttributeSuggestionDescription'](_0x98f30,_0xd10668){const _0x409fd9=_0xd10668['data'],_0x1580a2=void 0x0===_0x409fd9['newValue']?'removeFormat':'addFormat';_0x98f30['push']({'type':_0x1580a2,'key':_0x409fd9['key']});}['_handleRenameSuggestionDescription'](_0x36ebfe,_0x35d318){_0x36ebfe['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35d318['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31368f,_0x5aaf2c,_0x32470e){if(this['_addDescriptionItems'](_0x31368f,_0x5aaf2c),_0x32470e&&_0x32470e['getFirstRange']()&&!_0x5aaf2c['getFirstRange']()['end']['isEqual'](_0x32470e['getFirstRange']()['start'])){const _0xc7c75f=_0x31368f[_0x31368f['length']-0x1],_0x470625='insertion'==_0x5aaf2c['type']?'add':'remove';_0xc7c75f&&'text'==_0xc7c75f['type']&&(_0xc7c75f[_0x470625]+='\x0a');}}}class R extends _0x21c11d{['afterInit'](){const _0x4634d2=this['editor'],_0x9efee8=_0x4634d2['plugins']['get']('TrackChangesEditing');_0x4634d2['commands']['get']('showAIAssistant')&&_0x9efee8['enableCommand']('showAIAssistant');}}class T extends _0x21c11d{['afterInit'](){const _0x2c9c6f=this['editor'],_0x4ba50c=_0x2c9c6f['plugins']['get']('TrackChangesEditing');_0x2c9c6f['commands']['get']('toggleAi')&&_0x4ba50c['enableCommand']('toggleAi');}}class E extends _0x21c11d{['afterInit'](){const _0x3481fa=this['editor'],_0x1598bd=_0x3481fa['plugins']['get']('TrackChangesEditing');_0x3481fa['commands']['get']('aiQuickAction')&&_0x1598bd['enableCommand']('aiQuickAction');}}class U extends _0x21c11d{['afterInit'](){const _0x12be4c=this['editor'],_0x5a353f=_0x12be4c['locale'];if(!_0x12be4c['plugins']['has']('AlignmentEditing'))return;const _0x41e31e=_0x12be4c['plugins']['get']('TrackChangesEditing');_0x41e31e['enableDefaultAttributesIntegration']('alignment'),_0x41e31e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a353f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b18ef=this['editor'],_0x50716e=_0x3b18ef['locale'];_0x3b18ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x288dfc=>{if('formatBlock'!=_0x288dfc['type'])return;const {data:_0x1f9e1f}=_0x288dfc;if(_0x1f9e1f&&'alignment'==_0x1f9e1f['commandName']){const _0x130efc=_0x1f9e1f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x50716e,'*Format:*\x20%0',function(_0x3f0d40){switch(_0x3f0d40){case'left':return o(_0x50716e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x50716e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x50716e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x50716e,'FORMAT_JUSTIFY_TEXT');}}(_0x130efc))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x21c11d{['afterInit'](){const _0x118cc0=this['editor'],_0xb832e4=_0x118cc0['plugins']['get']('TrackChangesEditing'),_0x4184f7=_0x118cc0['locale'];for(const _0x2d2096 of ti){if(!_0x118cc0['plugins']['has'](_0x2d2096))continue;const _0x35d61f=_0x2d2096['slice'](0x0,-0x7)['toLowerCase'](),_0x30c790='FORMAT_'+_0x35d61f['toUpperCase']();_0xb832e4['enableDefaultAttributesIntegration'](_0x35d61f),_0xb832e4['descriptionFactory']['registerAttributeLabel'](_0x35d61f,o(_0x4184f7,_0x30c790));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb34478=this['editor'],_0x44e3f5=_0xb34478['locale'],_0x12ece9=_0xb34478['plugins']['get']('TrackChangesEditing');function _0x5a0989(_0x54e2fa,_0x385d6c){_0x12ece9['descriptionFactory']['registerDescriptionCallback'](_0x440e40=>{if('formatInline'!=_0x440e40['type'])return;const {data:_0x31b579}=_0x440e40;return _0x31b579&&_0x31b579['commandName']===_0x54e2fa?_0x31b579['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44e3f5,'*Format:*\x20%0',_0x385d6c)}:{'type':'format','content':o(_0x44e3f5,'*Remove\x20format:*\x20%0',_0x385d6c)}:void 0x0;});}_0x5a0989('bold',o(_0x44e3f5,'FORMAT_BOLD')),_0x5a0989('italic',o(_0x44e3f5,'FORMAT_ITALIC')),_0x5a0989('underline',o(_0x44e3f5,'FORMAT_UNDERLINE')),_0x5a0989('code',o(_0x44e3f5,'FORMAT_CODE')),_0x5a0989('strikethrough',o(_0x44e3f5,'FORMAT_STRIKETHROUGH')),_0x5a0989('subscript',o(_0x44e3f5,'FORMAT_SUBSCRIPT')),_0x5a0989('superscript',o(_0x44e3f5,'FORMAT_SUPERSCRIPT'));}}class F extends _0x21c11d{['afterInit'](){const _0x462f4a=this['editor'],_0x32158a=_0x462f4a['locale'];if(!_0x462f4a['plugins']['has']('BlockQuoteEditing'))return;const _0x598383=_0x462f4a['plugins']['get']('TrackChangesEditing'),_0x81f728=this['editor']['commands']['get']('blockQuote');_0x598383['enableCommand']('blockQuote',(_0x13aee8,_0x480bba={})=>{const _0x2ce62a=this['editor']['model']['document']['selection'],_0x2aaf75=_0x480bba&&void 0x0!==_0x480bba['forceValue']?_0x480bba['forceValue']:!_0x81f728['value'];let _0x569202=[];if(_0x2aaf75){const _0x35df84=Array['from'](_0x2ce62a['getSelectedBlocks']())['filter'](_0x338efd=>oo(_0x338efd)||function(_0x551652,_0x29cc20){const _0xd1057a=_0x29cc20['checkChild'](_0x551652['parent'],'blockQuote'),_0x4afaa5=_0x29cc20['checkChild'](['$root','blockQuote'],_0x551652);return _0xd1057a&&_0x4afaa5;}(_0x338efd,this['editor']['model']['schema']));_0x569202=to(_0x35df84,_0x462f4a['model']);}else{const _0x48e3bc=Array['from'](_0x2ce62a['getSelectedBlocks']())['filter'](_0x560cea=>oo(_0x560cea));_0x569202=to(_0x48e3bc,_0x462f4a['model']);}_0x462f4a['model']['change'](()=>{for(const _0x20ab1f of _0x569202)_0x598383['markBlockFormat'](_0x20ab1f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2aaf75}]});});}),_0x598383['descriptionFactory']['registerDescriptionCallback'](_0x5a890b=>{const {data:_0x201bf7}=_0x5a890b;if(_0x201bf7&&'blockQuote'==_0x201bf7['commandName']){const _0xe662df=o(_0x32158a,'ELEMENT_BLOCK_QUOTE');return _0x201bf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32158a,'*Set\x20format:*\x20%0',_0xe662df)}:{'type':'format','content':o(_0x32158a,'*Remove\x20format:*\x20%0',_0xe662df)};}});}}function oo(_0x401ee1){return'blockQuote'==_0x401ee1['parent']['name'];}class G extends _0x21c11d{['afterInit'](){const _0x17a0f7=this['editor'],_0x415cb7=_0x17a0f7['locale'],_0x3e6169=_0x17a0f7['plugins']['get']('TrackChangesEditing');_0x17a0f7['plugins']['has']('BookmarkEditing')&&(_0x3e6169['enableCommand']('insertBookmark'),_0x3e6169['enableDefaultAttributesIntegration']('updateBookmark'),_0x3e6169['descriptionFactory']['registerDescriptionCallback'](_0x2aa816=>{if('insertion'!=_0x2aa816['type']&&'deletion'!=_0x2aa816['type']&&'attribute'!=_0x2aa816['type'])return;const _0x6840b0=_0x2aa816['getContainedElement']();if(null==_0x6840b0)return;if(!_0x6840b0['is']('element','bookmark'))return;const _0x3396a0=_0x6840b0['getAttribute']('bookmarkId');if('insertion'==_0x2aa816['type'])return{'type':'insertion','content':o(_0x415cb7,'*Insert:*\x20%0','\x22'+_0x3396a0+'\x22\x20'+o(_0x415cb7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2aa816['type'])return{'type':'deletion','content':o(_0x415cb7,'*Remove:*\x20%0','\x22'+_0x3396a0+'\x22\x20'+o(_0x415cb7,'ELEMENT_BOOKMARK'))};const {data:_0x2bdff0}=_0x2aa816;if(!_0x2bdff0||'bookmarkId'!=_0x2bdff0['key'])return;return{'type':'format','content':o(_0x415cb7,'*Set\x20bookmark:*\x20%0','\x22'+_0x2bdff0['newValue']+'\x22')};}));}}class L extends _0x21c11d{['afterInit'](){const _0x1916e4=this['editor'];_0x1916e4['plugins']['has']('CaseChange')&&(_0x1916e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1916e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1916e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x21c11d{['afterInit'](){const _0x252c8f=this['editor'];_0x252c8f['commands']['get']('ckbox')&&_0x252c8f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x21c11d{['afterInit'](){const _0x4f21a6=this['editor'];if(!_0x4f21a6['plugins']['has']('CodeBlock'))return;const _0xc5d92b=_0x4f21a6['plugins']['get']('TrackChangesEditing'),_0x31501=_0x4f21a6['locale'],_0x3eae01=_0x4f21a6['config']['get']('codeBlock')['languages'],_0x46b940=_0x4f21a6['commands']['get']('codeBlock');_0xc5d92b['enableCommand']('indentCodeBlock'),_0xc5d92b['enableCommand']('outdentCodeBlock'),_0xc5d92b['enableCommand']('codeBlock',(_0x3eff5e,_0x523805={})=>{const _0x6be730=_0x4f21a6['model'],_0x19df29=_0x4f21a6['model']['document']['selection'],_0x4d596d=_0x523805&&void 0x0!==_0x523805['forceValue']?_0x523805['forceValue']:!_0x46b940['value'];let _0x1f38fb;_0x523805['language']||(_0x523805['language']=_0x3eae01[0x0]['language']),_0x1f38fb=_0x4d596d?Array['from'](_0x19df29['getSelectedBlocks']())['filter'](_0x697bdc=>co(_0x697bdc)||function(_0x347cc4,_0x59ed0a){if(_0x347cc4['is']('rootElement')||_0x59ed0a['isLimit'](_0x347cc4))return!0x1;return _0x59ed0a['checkChild'](_0x347cc4['parent'],'codeBlock');}(_0x697bdc,_0x6be730['schema'])):Array['from'](_0x19df29['getSelectedBlocks']())['filter'](_0x58ccdc=>co(_0x58ccdc));const _0x1ee026=to(_0x1f38fb,_0x6be730);_0x6be730['change'](()=>{for(const _0x5bfb5c of _0x1ee026)_0xc5d92b['markBlockFormat'](_0x5bfb5c,{'commandName':'codeBlock','commandParams':[{..._0x523805,'forceValue':_0x4d596d}],'formatGroupId':'blockName'});});}),(_0xc5d92b['descriptionFactory']['registerElementLabel']('codeBlock',_0x594ca2=>o(_0x31501,'ELEMENT_CODE_BLOCK',_0x594ca2)),_0xc5d92b['descriptionFactory']['registerDescriptionCallback'](_0x3c885f=>{if('formatBlock'!=_0x3c885f['type'])return;const _0x5814a7=_0x31501['t'],{data:_0x98e362}=_0x3c885f;if(!_0x98e362||'codeBlock'!=_0x98e362['commandName'])return;const _0x17fd45=_0x98e362['commandParams'][0x0]['language'],_0x1c229b=_0x5814a7(_0x3eae01['find'](_0x5c6f1b=>_0x5c6f1b['language']===_0x17fd45)['label'])['toLowerCase']();return _0x98e362['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31501,'*Set\x20format:*\x20%0',o(_0x31501,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1c229b+')')}:{'type':'format','content':o(_0x31501,'*Remove\x20format:*\x20%0',o(_0x31501,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x504ea1){return'codeBlock'==_0x504ea1['name'];}class z extends _0x21c11d{['afterInit'](){const _0x3fa6d8=this['editor'];if(!_0x3fa6d8['plugins']['has']('CommentsEditing'))return;_0x3fa6d8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x21c11d{static get['requires'](){return[_0xa957ed];}['init'](){const _0x457ba2=this['editor'],_0x1722dd=_0x457ba2['plugins']['get']('TrackChangesEditing');_0x1722dd['enableCommand']('delete');const _0x13667f=_0x457ba2['commands']['get']('deleteForward');_0x1722dd['enableCommand']('deleteForward',(_0x416f99,_0x46cbbe={})=>{const _0x415b15=_0x457ba2['model']['createSelection'](_0x457ba2['model']['document']['selection']);_0x415b15['isCollapsed']&&_0x457ba2['model']['modifySelection'](_0x415b15,{'direction':'forward','unit':_0x46cbbe['unit']});const _0x201cd0=_0x415b15['getFirstRange'](),_0x32529e=_0x7e27aa['fromRange'](_0x201cd0);let _0x331fda;_0x416f99(_0x46cbbe),_0x331fda='$graveyard'==_0x32529e['root']['rootName']?_0x457ba2['model']['createRange'](_0x201cd0['start']):_0x457ba2['model']['createRange'](_0x32529e['start'],_0x32529e['end']),_0x32529e['detach'](),_0x457ba2['model']['enqueueChange'](_0x13667f['buffer']['batch'],_0x64e5ca=>{_0x13667f['buffer']['lock'](),_0x64e5ca['setSelection'](_0x64e5ca['createRange'](_0x331fda['end'])),_0x13667f['buffer']['unlock']();});});}}class W extends _0x21c11d{['afterInit'](){const _0x300781=this['editor'];if(!_0x300781['plugins']['has']('ListEditing'))return;const _0x50ea01=_0x300781['locale'],_0x5b1627=_0x300781['plugins']['get']('TrackChangesEditing'),_0x476527=_0x300781['plugins']['has']('TodoListEditing'),_0x1096ca=!!_0x300781['config']['get']('list.multiBlock');function _0x573665(_0x868360){return{'type':'format','content':''+o(_0x50ea01,'*Set\x20format:*\x20%0',_0x868360)};}function _0x3ad612(_0x3a09ff){return{'type':'format','content':''+o(_0x50ea01,'*Remove\x20format:*\x20%0',_0x3a09ff)};}_0x5b1627['enableDefaultAttributesIntegration']('numberedList'),_0x5b1627['enableDefaultAttributesIntegration']('bulletedList'),_0x5b1627['enableDefaultAttributesIntegration']('customNumberedList'),_0x5b1627['enableDefaultAttributesIntegration']('customBulletedList'),_0x5b1627['enableDefaultAttributesIntegration']('indentList'),_0x5b1627['enableDefaultAttributesIntegration']('outdentList'),_0x5b1627['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5b1627['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1096ca&&(_0x5b1627['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5b1627['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x476527&&(_0x5b1627['enableDefaultAttributesIntegration']('todoList'),_0x5b1627['enableDefaultAttributesIntegration']('checkTodoList'),_0x5b1627['descriptionFactory']['registerDescriptionCallback'](_0xcd7a70=>{const {data:_0x3254de}=_0xcd7a70;if(_0x3254de&&'todoListChecked'==_0x3254de['key'])return{'type':'format','content':_0x3254de['newValue']?o(_0x50ea01,'*Check\x20item*'):o(_0x50ea01,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xae5f63=>{if(_0xae5f63['batch']['isUndo'])return!0x1;let _0x4f2ba7=!0x1;const _0x50065f=_0x5b1627['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x183e36=>'todoListChecked'===_0x5b1627['_getAttributeKey'](_0x183e36));for(const _0x3ed67c of _0x50065f){'todo'!=_0x3ed67c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5b1627['_findSuggestions'](_0x3ed67c['getFirstRange'](),'attribute')['find'](_0x12cd16=>'listType'===_0x5b1627['_getAttributeKey'](_0x12cd16['suggestion']))||(_0xae5f63['removeMarker'](_0x3ed67c['getFirstMarker']()),_0x4f2ba7=!0x0));}return _0x4f2ba7;})),_0x5b1627['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x50ea01,'FORMAT_INDENT'));const _0x311dc2={'type':'format','content':''};_0x5b1627['descriptionFactory']['registerDescriptionCallback'](_0x5e7359=>{const {data:_0xa9e67b}=_0x5e7359;if(!_0xa9e67b||'listType'!=_0xa9e67b['key'])return;let _0x2fef07=_0x5e7359['head'];for(;_0x2fef07;){if(_0x2fef07['data']&&(('listStyle'==_0x2fef07['data']['key']||'listMarkerStyle'==_0x2fef07['data']['key'])&&(_0x2fef07['data']['newValue']&&'default'!=_0x2fef07['data']['newValue']||'default'!=_0x2fef07['data']['oldValue']&&!_0xa9e67b['newValue'])||!_0x1096ca&&_0x2fef07['data']['key']==m))return _0x311dc2;_0x2fef07=_0x2fef07['next'];}if(null==_0xa9e67b['newValue'])switch(_0xa9e67b['oldValue']){case'bulleted':return _0x3ad612(o(_0x50ea01,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ad612(o(_0x50ea01,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ad612(o(_0x50ea01,'ELEMENT_TODO_LIST'));}switch(_0xa9e67b['newValue']){case'bulleted':return _0x573665(o(_0x50ea01,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x573665(o(_0x50ea01,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x573665(o(_0x50ea01,'ELEMENT_TODO_LIST'));}}),_0x5b1627['descriptionFactory']['registerDescriptionCallback'](_0x187638=>{const {data:_0x541989}=_0x187638;if(_0x541989&&'listIndent'==_0x541989['key'])return null==_0x541989['newValue']||null==_0x541989['oldValue']&&0x0==_0x541989['newValue']?_0x311dc2:void 0x0;}),_0x5b1627['descriptionFactory']['registerDescriptionCallback'](_0x2d05a9=>{if('attribute'!=_0x2d05a9['type'])return;const {data:_0x6d82bb}=_0x2d05a9;if(!_0x6d82bb||'listItemId'!=_0x6d82bb['key'])return;const _0x1f75a4=Te(_0x2d05a9);return'newValue'==_0x1f75a4?{'type':'format','content':o(_0x50ea01,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1f75a4?{'type':'format','content':o(_0x50ea01,'*Split:*\x20list\x20item')}:_0x311dc2;}),_0x300781['model']['document']['registerPostFixer'](_0x1dc619=>this['listItemIdFixer'](_0x1dc619)),_0x300781['model']['document']['registerPostFixer'](_0x4185cb=>this['noTrackChangesFixer'](_0x4185cb)),_0x300781['model']['document']['on']('change:data',(_0x83cd97,_0x41b760)=>{if(_0x41b760['isUndo']||!_0x41b760['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xd4be2a){if(_0xd4be2a['batch']['isUndo']||!_0xd4be2a['batch']['isLocal'])return!0x1;let _0x404724=!0x1;const _0x293b91=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a806b=>_0x4a806b['data']&&'listItemId'==_0x4a806b['data']['key'])['filter'](_0x4124ce=>_0x4124ce['data']['newValue']&&_0x4124ce['data']['oldValue']);for(const _0x96c183 of _0x293b91)Te(_0x96c183)||(_0xd4be2a['removeMarker'](_0x96c183['getFirstMarker']()),_0x404724=!0x0);return _0x404724;}['noTrackChangesFixer'](_0x3ad896){if(_0x3ad896['batch']['isUndo']||!_0x3ad896['batch']['isLocal'])return!0x1;const _0x2d134d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d134d['trackChangesCommand']['value'])return!0x1;let _0x11e1a5=!0x1;const _0x499235=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x438313=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4cd167=>'attribute'==_0x4cd167['type'])['filter'](_0x58aa5e=>_0x499235['includes'](_0x58aa5e['attributeKey']));if(0x0==_0x438313['length'])return _0x11e1a5;for(const _0x4ebec5 of _0x438313){const _0x4fa17d=_0x2d134d['_findSuggestions'](_0x4ebec5['range'],'attribute')['filter'](_0x4705fe=>!_0x4705fe['meta']['isNextTo'])['map'](_0xc0bf4b=>_0xc0bf4b['suggestion'])['filter'](_0x1a4b85=>{const _0x544cec=_0x2d134d['_getAttributeKey'](_0x1a4b85);return _0x499235['includes'](_0x544cec);});if(_0x4fa17d['length']){for(const _0x101bd4 of _0x4fa17d)_0x3ad896['removeMarker'](_0x101bd4['getFirstMarker']());_0x11e1a5=!0x0;}}return _0x11e1a5;}['assureChains'](){const _0x208aa6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3393d6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1c3174;const _0x4db897=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x213cbb=>{if(_0x213cbb['data']['oldRange']||!_0x213cbb['data']['newRange'])return null;if(!_0x213cbb['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x29ab41}=_0x208aa6['_splitMarkerName'](_0x213cbb['name']);if(!_0x208aa6['hasSuggestion'](_0x29ab41))return null;const _0xfaeb0c=_0x208aa6['getSuggestion'](_0x29ab41);return _0x3393d6['includes'](_0xfaeb0c['data']['key']);})['map'](_0x358c69=>{const {id:_0x3cecc3}=_0x208aa6['_splitMarkerName'](_0x358c69['name']),_0x360064=_0x208aa6['getSuggestion'](_0x3cecc3);return _0x1c3174=_0x360064['attributes']['groupId'],_0x360064['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4db897['size'])return;const _0x1bb471=_0x208aa6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e23a0=>'attribute'==_0x2e23a0['type']&&_0x2e23a0['data']&&_0x3393d6['includes'](_0x2e23a0['data']['key'])&&_0x2e23a0['attributes']['groupId']!=_0x1c3174)['map'](_0x355707=>({'listItem':_0x355707['getFirstRange']()['start']['nodeAfter'],'groupId':_0x355707['attributes']['groupId']})),_0x3e8092=new Set();for(const {groupId:_0x3226b1,listItem:_0x297749}of _0x1bb471)_0x4db897['has'](_0x297749)&&_0x3e8092['add'](_0x3226b1);for(const _0x1ef5cd of _0x208aa6['getSuggestions']())_0x3e8092['has'](_0x1ef5cd['attributes']['groupId'])&&_0x1ef5cd['setAttribute']('groupId',_0x1c3174);}['_supportLegacySuggestions'](){const _0x332bbf=this['editor'],_0x1d4241=_0x332bbf['locale'],_0x4d6beb=_0x332bbf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4d6beb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xa32570,_0x29964d){const _0x341cb8=[];for(let _0x2355ff of _0xa32570)_0x2355ff['start']['nodeAfter']===_0x2355ff['end']['parent']&&(_0x2355ff=_0x332bbf['model']['createRange'](_0x332bbf['model']['createPositionAt'](_0x2355ff['start']['nodeAfter'],0x0))),_0x341cb8['push'](_0x2355ff);_0x332bbf['model']['change'](_0x3521e9=>{const _0x39e4f8=_0x332bbf['model']['document']['selection'],_0x48677a=Array['from'](_0x39e4f8['getRanges']())['map'](_0x43d457=>_0x7e27aa['fromRange'](_0x43d457));_0x3521e9['setSelection'](_0x341cb8),_0x332bbf['commands']['get'](_0x29964d['commandName'])['refresh'](),_0x29964d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x332bbf['execute'](_0x29964d['commandName'],..._0x29964d['commandParams']),_0x3521e9['setSelection'](_0x48677a);for(const _0x41192b of _0x48677a)_0x41192b['detach']();});}),_0x4d6beb['descriptionFactory']['registerElementLabel'](function(_0x5df56e){const _0x4ba1c7=!_0x332bbf['model']['schema']['isObject'](_0x5df56e),_0x281104=_0x5df56e['previousSibling'],_0x4c88c8=_0x5df56e['nextSibling'],_0x10da02=_0x5df56e['getAttribute']('listItemId'),_0x1c283f=!_0x281104||_0x281104['getAttribute']('listItemId')!==_0x10da02,_0x2a60a0=!_0x4c88c8||_0x4c88c8['getAttribute']('listItemId')!==_0x10da02;return _0x4ba1c7&&Boolean(_0x10da02)&&_0x1c283f&&_0x2a60a0;},_0x597905=>o(_0x1d4241,'ELEMENT_LIST_ITEM',_0x597905));}['_registerLegacyDescription'](){const _0x1e96b0=this['editor'],_0xd36d57=_0x1e96b0['locale'];function _0x187178(_0x3ea415){const _0x4fb4f1=_0x1e96b0['commands']['get']('bulletedList')['value'],_0x48037d=_0x1e96b0['commands']['get']('numberedList')['value'];return'numberedList'===_0x3ea415?_0x4fb4f1:_0x48037d;}_0x1e96b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4787b0){if('formatBlock'!=_0x4787b0['type'])return;const {data:_0x496c05}=_0x4787b0;if(!_0x496c05)return;let _0x41722f,_0x15158b,_0x216c71,_0x1983cb;switch(_0x496c05['commandName']){case'bulletedList':_0x216c71=_0x496c05['commandParams'][0x0]['forceValue'],_0x1983cb=_0x187178(_0x496c05['commandName']),_0x41722f=_0x216c71?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1983cb&&_0x1e96b0['config']['get']('list.multiBlock')||(_0x41722f='*Change\x20to:*\x20%0'),_0x15158b={'type':'format','content':o(_0xd36d57,_0x41722f,o(_0xd36d57,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x216c71=_0x496c05['commandParams'][0x0]['forceValue'],_0x1983cb=_0x187178(_0x496c05['commandName']),_0x41722f=_0x216c71?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1983cb&&_0x1e96b0['config']['get']('list.multiBlock')||(_0x41722f='*Change\x20to:*\x20%0'),_0x15158b={'type':'format','content':o(_0xd36d57,_0x41722f,o(_0xd36d57,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x41722f='*Indent:*\x20%0',_0x15158b={'type':'format','content':o(_0xd36d57,_0x41722f,o(_0xd36d57,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x41722f=function(_0x3898eb){const _0x3232f2=_0x3898eb['getFirstRange']();let _0x5467ed=_0x3232f2['start']['nodeAfter'];for(;_0x5467ed&&_0x3232f2['containsItem'](_0x5467ed);){if(_0x5467ed['getAttribute']('listIndent')>0x0)return!0x1;_0x5467ed=_0x5467ed['nextSibling'];}return!0x0;}(_0x4787b0)?o(_0xd36d57,'*Format:*\x20remove\x20from\x20%0',o(_0xd36d57,function(_0x37cbc9){return'ELEMENT_'+_0x37cbc9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4787b0))):o(_0xd36d57,'*Outdent:*\x20%0',o(_0xd36d57,'ELEMENT_LIST_ITEM')),_0x15158b={'type':'format','content':_0x41722f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x496c05['multipleBlocks']&&(_0x41722f='*Merge:*\x20%0',_0x15158b={'type':'deletion','content':o(_0xd36d57,_0x41722f,o(_0xd36d57,'ELEMENT_LIST_ITEM'))});}return _0x15158b;});}}function Te(_0x2eab6b){let _0x594925=_0x2eab6b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x594925;){const _0x28c98a=_0x594925['getAttribute']('listItemId');if(!_0x28c98a)return!0x1;if(_0x28c98a==_0x2eab6b['data']['newValue'])return'newValue';if(_0x28c98a==_0x2eab6b['data']['oldValue'])return'oldValue';_0x594925=_0x594925['previousSibling'];}return!0x1;}class H extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xad5487=this['editor']['config']['get']('list.properties'),_0x5e683a=this['editor']['plugins']['get']('TrackChangesEditing');_0xad5487['styles']&&_0x5e683a['enableDefaultAttributesIntegration']('listStyle'),_0xad5487['reversed']&&_0x5e683a['enableDefaultAttributesIntegration']('listReversed'),_0xad5487['startIndex']&&_0x5e683a['enableDefaultAttributesIntegration']('listStart');const _0x514371={'type':'format','content':''};_0x5e683a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5bca05=this['editor']['locale'];_0x5e683a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5bca05,'FORMAT_LIST_REVERSED')),_0x5e683a['descriptionFactory']['registerDescriptionCallback'](_0x21ae72=>{const {data:_0x4f52c5}=_0x21ae72;if(_0x4f52c5&&'listReversed'==_0x4f52c5['key'])return null==_0x4f52c5['newValue']||0x0==_0x4f52c5['newValue']&&null==_0x4f52c5['oldValue']?_0x514371:void 0x0;}),_0x5e683a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5bca05,'FORMAT_LIST_START')),_0x5e683a['descriptionFactory']['registerDescriptionCallback'](_0x45d759=>{const {data:_0x2c7f30}=_0x45d759;if(_0x2c7f30&&'listStart'==_0x2c7f30['key'])return null==_0x2c7f30['newValue']||0x1==_0x2c7f30['newValue']&&null==_0x2c7f30['oldValue']?_0x514371:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a85ea=>{if(_0x1a85ea['batch']['isUndo'])return!0x1;let _0x4d9607=!0x1;const _0x46a33f=_0x5e683a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x539457=>{const _0x5a75a3=_0x5e683a['_getAttributeKey'](_0x539457);return'listStart'==_0x5a75a3||'listReversed'==_0x5a75a3;});for(const _0xc33224 of _0x46a33f){const _0x754a5b=_0xc33224['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x754a5b||'customNumbered'==_0x754a5b)continue;_0x5e683a['_findSuggestions'](_0xc33224['getFirstRange'](),'attribute')['find'](_0x35fdc6=>'listType'==_0x5e683a['_getAttributeKey'](_0x35fdc6['suggestion']))||(_0x1a85ea['removeMarker'](_0xc33224['getFirstMarker']()),_0x4d9607=!0x0);}return _0x4d9607;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x122d7e){const _0x1616f6=this['editor']['locale'],{data:_0x456cdd}=_0x122d7e,_0x3a276f={'type':'format','content':''};if(!_0x456cdd||'listStyle'!=_0x456cdd['key'])return;if(!_0x456cdd['oldValue'])return'default'==_0x456cdd['newValue']?_0x3a276f:{'type':'format','content':''+o(_0x1616f6,'*Set\x20format:*\x20%0',o(_0x1616f6,this['_getTranslationKeyForListStyle'](_0x456cdd['newValue'])))};if(!_0x456cdd['newValue']){if('default'==_0x456cdd['oldValue'])return _0x3a276f;let _0xf6ac28=_0x122d7e['head'];for(;_0xf6ac28;){if(_0xf6ac28['data']&&'listType'==_0xf6ac28['data']['key']&&_0xf6ac28['data']['newValue'])return _0x3a276f;_0xf6ac28=_0xf6ac28['next'];}return{'type':'format','content':''+o(_0x1616f6,'*Remove\x20format:*\x20%0',o(_0x1616f6,this['_getTranslationKeyForListStyle'](_0x456cdd['oldValue'])))};}if('default'!=_0x456cdd['newValue'])return{'type':'format','content':''+o(_0x1616f6,'*Set\x20format:*\x20%0',o(_0x1616f6,this['_getTranslationKeyForListStyle'](_0x456cdd['newValue'])))};let _0x5d2253=_0x122d7e['head'];for(;_0x5d2253;){if(_0x5d2253['data']&&'listType'==_0x5d2253['data']['key']&&_0x5d2253['data']['newValue']&&_0x5d2253['data']['oldValue'])return _0x3a276f;_0x5d2253=_0x5d2253['next'];}return{'type':'format','content':o(_0x1616f6,'*Set\x20format:*\x20%0',o(_0x1616f6,'ELEMENT_'+_0x122d7e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x12f21a=this['editor'],_0xb9a369=_0x12f21a['locale'];_0x12f21a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x316077=>{if('formatBlock'!=_0x316077['type'])return;const {data:_0x5568b6}=_0x316077;if(!_0x5568b6)return;let _0x4b62de,_0x2162cf;switch(_0x5568b6['commandName']){case'listStyle':_0x4b62de='*Change\x20to:*\x20%0',_0x2162cf={'type':'format','content':o(_0xb9a369,_0x4b62de,o(_0xb9a369,this['_getTranslationKeyForListStyle'](_0x5568b6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b62de=_0x5568b6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2162cf={'type':'format','content':o(_0xb9a369,_0x4b62de)};break;case'listStart':_0x4b62de='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2162cf={'type':'format','content':o(_0xb9a369,_0x4b62de,_0x5568b6['commandParams'][0x0]['startIndex'])};}return _0x2162cf;});}['_getTranslationKeyForListStyle'](_0x5173f7){return'ELEMENT_'+function(_0x429a6c){if(ye['includes'](_0x429a6c))return'bulleted';if(Se['includes'](_0x429a6c))return'numbered';return null;}(_0x5173f7)['toUpperCase']()+'_LIST_'+_0x5173f7['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x21c11d{['afterInit'](){const _0x7364ab=this['editor'];_0x7364ab['commands']['get']('emoji')&&_0x7364ab['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x21c11d{static get['requires'](){return[_0x72dd8d];}['init'](){const _0x17a87b=this['editor'],_0x4db917=_0x17a87b['plugins']['get']('TrackChangesEditing'),_0x4850d9=_0x17a87b['commands']['get']('enter');_0x4db917['enableCommand']('enter',()=>{_0x17a87b['model']['change'](_0x20a6dd=>{const _0x23be68=_0x17a87b['model']['document']['selection'],_0x3ee6cc=_0x23be68['getFirstPosition'](),_0x5ef86a=_0x7e27aa['fromRange'](_0x23be68['getFirstRange']());if(_0x4850d9['enterBlock'](_0x20a6dd)){const _0xd104d4=_0x17a87b['model']['createPositionAt'](_0x3ee6cc['parent']['nextSibling'],0x0),_0x58f4e1=_0x20a6dd['createRange'](_0x3ee6cc,_0xd104d4);_0x4db917['markInsertion'](_0x58f4e1);}else _0x20a6dd['setSelection'](_0x20a6dd['createRange'](_0x5ef86a['end']));_0x5ef86a['detach'](),_0x4850d9['fire']('afterExecute',{'writer':_0x20a6dd});});});}}class Y extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xd94088=this['editor']['plugins']['get']('TrackChangesEditing');_0xd94088['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xd94088['enableCommand']('findNext'),_0xd94088['enableCommand']('findPrevious'),_0xd94088['enableCommand']('replace'),_0xd94088['enableCommand']('replaceAll');}['handleFindCommand'](_0x294bb8,_0x56ad6f,_0x1b53e8={}){const _0x4c22af=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x294bb8(_0x41d2ad=>{let _0x5a9fd8=('string'==typeof _0x56ad6f?_0x4c22af['findByTextCallback'](_0x56ad6f,_0x1b53e8):_0x56ad6f)(_0x41d2ad);Array['isArray'](_0x5a9fd8)&&(_0x5a9fd8={'results':_0x5a9fd8,'searchText':'string'==typeof _0x56ad6f?_0x56ad6f:''});const _0x2621ea=_0x5a9fd8['results']['filter'](_0xfca3b3=>!0x1===this['_isInDeletionRange'](_0xfca3b3,_0x41d2ad['item']));return{..._0x5a9fd8,'results':_0x2621ea};},_0x1b53e8);}['_isInDeletionRange'](_0x60db5c,_0x13e6e9){const _0x335c26=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x13e6e9,_0x60db5c['start']),this['editor']['model']['createPositionAt'](_0x13e6e9,_0x60db5c['end']));for(const _0x5e6990 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x335c26['getIntersection'](_0x5e6990['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 _0x21c11d{['afterInit'](){const _0xdb6803=this['editor']['locale'],_0x1774e4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xccb381,commandName:_0x2cb962}of eo)this['editor']['plugins']['has'](_0xccb381)&&_0x1774e4['enableDefaultAttributesIntegration'](_0x2cb962);_0x1774e4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xdb6803,'FORMAT_FONT_SIZE')),_0x1774e4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xdb6803,'FORMAT_FONT_FAMILY')),_0x1774e4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xdb6803,'FORMAT_FONT_COLOR')),_0x1774e4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xdb6803,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c2d7=this['editor'],_0x3ba41d=_0x3c2d7['locale'];_0x3c2d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54fbfb=>{const _0x3e8ccf=_0x3ba41d['t'];if('formatInline'!=_0x54fbfb['type'])return;const {data:_0x5b47fa}=_0x54fbfb;if(null!=_0x5b47fa){if('fontSize'==_0x5b47fa['commandName']){const _0x1c6e55=_0x5b47fa['commandParams'][0x0]['value'];if(_0x1c6e55){const _0x49b3bf=_0x3e8ccf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe9eec=>_0xe9eec['model']==_0x1c6e55)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3ba41d,'*Set\x20font\x20size:*\x20%0',_0x49b3bf)};}return{'type':'format','content':o(_0x3ba41d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5b47fa['commandName']){const _0x393624=_0x5b47fa['commandParams'][0x0]['value'];return _0x393624?{'type':'format','content':o(_0x3ba41d,'*Set\x20font\x20family:*\x20%0',_0x393624)}:{'type':'format','content':o(_0x3ba41d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5b47fa['commandName']){const _0x464753=_0x5b47fa['commandParams'][0x0]['value'];if(_0x464753){const _0x97a3e6=_0x260430(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f371f=>_0x5f371f['model']==_0x464753);let _0x219239=_0x464753,_0x188dd0='';return _0x97a3e6&&(_0x219239=_0x97a3e6['label'],_0x188dd0=_0x3e8ccf(_0x219239)['toLowerCase']()),{'type':'format','content':o(_0x3ba41d,'*Set\x20font\x20color:*\x20%0',_0x188dd0)['trim'](),'color':{'value':_0x464753,'title':_0x188dd0||_0x219239}};}return{'type':'format','content':o(_0x3ba41d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5b47fa['commandName']){const _0x3006bb=_0x5b47fa['commandParams'][0x0]['value'];if(_0x3006bb){const _0x4047e8=_0x260430(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x148548=>_0x148548['model']==_0x3006bb);let _0x453678=_0x3006bb,_0x27ec2b='';return _0x4047e8&&(_0x453678=_0x4047e8['label'],_0x27ec2b=_0x3e8ccf(_0x453678)['toLowerCase']()),{'type':'format','content':o(_0x3ba41d,'*Set\x20font\x20background\x20color:*\x20%0',_0x27ec2b)['trim'](),'color':{'value':_0x3006bb,'title':_0x27ec2b||_0x453678}};}return{'type':'format','content':o(_0x3ba41d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x21c11d{['afterInit'](){const {plugins:_0x56e56b}=this['editor'];_0x56e56b['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x56e56b['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x381a64,plugins:_0x5e1ef5,commands:_0x478216}=this['editor'],_0x239641=_0x5e1ef5['get']('TrackChangesEditing');_0x478216['get']('footnotesStyle')&&_0x239641['enableDefaultAttributesIntegration']('footnotesStyle'),_0x478216['get']('footnotesStart')&&_0x239641['enableDefaultAttributesIntegration']('footnotesStart'),_0x239641['registerBlockAttribute']('footnotesListStyle'),_0x239641['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x381a64,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x239641['registerBlockAttribute']('footnotesListStart'),_0x239641['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x381a64,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x327495=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x433172,commands:_0x53f7bc}=this['editor'];_0x53f7bc['get']('insertFootnote')&&_0x327495['enableCommand']('insertFootnote'),_0x327495['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1f3c07=>o(_0x433172,'ELEMENT_FOOTNOTE_REF',_0x1f3c07)),_0x327495['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1fdd24=>o(_0x433172,'ELEMENT_FOOTNOTE_DEFINITION',_0x1fdd24)),_0x327495['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3604dd=>o(_0x433172,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3604dd));}}class nt extends _0x21c11d{['afterInit'](){const _0x10ae45=this['editor'],_0x579f3d=_0x10ae45['plugins']['get']('TrackChangesEditing'),_0x2604de=_0x10ae45['commands']['get']('copyFormat'),_0x2fa25a=_0x10ae45['commands']['get']('pasteFormat');_0x2604de&&_0x2fa25a&&(_0x579f3d['enableDefaultAttributesIntegration']('pasteFormat'),_0x579f3d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x390eb3=this['editor'],_0x3c6217=_0x390eb3['locale'];_0x390eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x576bfd=>{if('formatBlock'!=_0x576bfd['type']&&'formatInline'!=_0x576bfd['type'])return;const {data:_0x2c1994}=_0x576bfd;if(_0x2c1994&&'pasteFormat'===_0x2c1994['commandName']){const _0x17fb0e=[],_0x4b0d52=_0x2c1994['commandParams'][0x0];for(const [_0x5b4b53,_0x436080]of Object['entries'](_0x4b0d52))_0x17fb0e['push'](ro(_0x390eb3,_0x5b4b53,_0x436080));return _0x17fb0e['length']?{'type':'format','content':o(_0x3c6217,'*Set\x20format\x20to:*\x20%0',_0x17fb0e['join'](',\x20'))}:{'type':'format','content':o(_0x3c6217,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1b58d6,_0x5000d6,_0x3c5da8){const _0x3c73c9=_0x1b58d6['locale']['t'],_0x2ab15a=_0x5000d6['split'](/(?=[A-Z])/)['join']('\x20'),_0x412cad=_0x3c73c9(_0x2ab15a['charAt'](0x0)['toUpperCase']()+_0x2ab15a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3c5da8)return _0x412cad;if('fontColor'===_0x5000d6||'fontBackgroundColor'===_0x5000d6){const _0xbe00b1=_0x260430(_0x1b58d6['config']['get']('fontColor.colors'))['find'](_0x1740ed=>_0x1740ed['model']==_0x3c5da8);return _0x412cad+'\x20('+(_0xbe00b1?_0x3c73c9(_0xbe00b1['label'])['toLowerCase']():_0x3c5da8)+')';}if('fontSize'===_0x5000d6&&isNaN(parseFloat(_0x3c5da8))){const _0x32b11b=_0x1b58d6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b58d6['config']['get']('fontSize.options'))['find'](_0x5177ca=>_0x5177ca['model']==_0x3c5da8);return _0x412cad+'\x20('+(_0x32b11b?_0x3c73c9(_0x32b11b['title'])['toLowerCase']():_0x3c5da8)+')';}return _0x412cad+'\x20('+_0x3c5da8+')';}class it extends _0x21c11d{['_headingOptions'];['afterInit'](){const _0x3247e4=this['editor'];if(!_0x3247e4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3247e4['config']['get']('heading.options');const _0x59e422=_0x3247e4['locale'],_0x14d8b8=_0x3247e4['plugins']['get']('TrackChangesEditing');_0x14d8b8['enableDefaultAttributesIntegration']('heading');for(const _0x73b616 of this['_headingOptions'])'paragraph'!=_0x73b616['model']&&_0x14d8b8['descriptionFactory']['registerElementLabel'](_0x73b616['model'],_0x3e85d1=>{const _0x6fb0fb=this['_getHeadingLevel'](_0x73b616['model']);return null!==_0x6fb0fb?_0x54283e(_0x3e85d1,_0x6fb0fb):_0x5c21f4(_0x3e85d1,_0x73b616['title']);});function _0x54283e(_0x3e00ce,_0x1851aa){return o(_0x59e422,'ELEMENT_HEADING',[_0x3e00ce,_0x1851aa]);}function _0x5c21f4(_0x2b46a2,_0x1d34de){return o(_0x59e422,'ELEMENT_HEADING_CUSTOM',[_0x2b46a2,_0x1d34de]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0975=this['editor'],_0x5b7d67=_0x4c0975['locale'];function _0x543c09(_0x1c9361,_0x5029a0){return o(_0x5b7d67,'ELEMENT_HEADING_CUSTOM',[_0x1c9361,_0x5029a0]);}_0x4c0975['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dde9c=>{if('formatBlock'!=_0x4dde9c['type'])return;const {data:_0xf79039}=_0x4dde9c;if(_0xf79039&&'heading'==_0xf79039['commandName']){const _0x5f2f45=_0xf79039['commandParams'][0x0]['value'],_0x3cb419=this['_getHeadingLevel'](_0x5f2f45);if(null!==_0x3cb419)return{'type':'format','content':o(_0x5b7d67,'*Change\x20to:*\x20%0',(_0x5f783a=0x1,_0x39c575=_0x3cb419,o(_0x5b7d67,'ELEMENT_HEADING',[_0x5f783a,_0x39c575])))};const _0x41dd54=this['_headingOptions']['find'](_0x5ca187=>_0x5ca187['model']===_0x5f2f45)['title'];return{'type':'format','content':o(_0x5b7d67,'*Change\x20to:*\x20%0',_0x543c09(0x1,_0x41dd54))};}var _0x5f783a,_0x39c575;});}['_getHeadingLevel'](_0x302c68){const _0x4373b7=_0x302c68['match'](/^heading(\d+)/);if(_0x4373b7)return _0x4373b7[0x1];const _0x417e4d=this['_headingOptions']?.['find'](_0x54c147=>_0x54c147['model']==_0x302c68);if(_0x417e4d&&_0x417e4d['view']){const _0x614439=_0x417e4d['view'],_0x2f6fca=(_0x614439['name']??_0x614439)['match'](/^h(\d+)/);if(_0x2f6fca)return _0x2f6fca[0x1];}return null;}}class et extends _0x21c11d{['afterInit'](){const _0x20a084=this['editor'];if(!_0x20a084['plugins']['has']('HighlightEditing'))return;const _0x5f3f9e=_0x20a084['plugins']['get']('TrackChangesEditing'),_0x278e35=_0x20a084['locale'];_0x5f3f9e['enableDefaultAttributesIntegration']('highlight'),_0x5f3f9e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x278e35,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e899=this['editor'],_0x1ab45d=_0x58e899['locale'];_0x58e899['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b83f0=>{if('formatInline'!=_0x1b83f0['type'])return;const {data:_0x234fe9}=_0x1b83f0;if(_0x234fe9&&'highlight'==_0x234fe9['commandName']){const _0x56a307=_0x1ab45d['t'],_0x1f26f6=_0x234fe9['commandParams'][0x0]['value'];if(_0x1f26f6){const _0x2b8e2f=_0x58e899['config']['get']('highlight.options')['find'](_0x34f9d1=>_0x34f9d1['model']==_0x1f26f6),_0x2fc8bd=_0x56a307(_0x2b8e2f['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ab45d,'*Set\x20highlight:*\x20%0',_0x2fc8bd),'color':{'value':_0x2b8e2f['color'],'title':_0x2b8e2f['title']}};}return{'type':'format','content':o(_0x1ab45d,'*Remove\x20highlight*',o(_0x1ab45d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x21c11d{['afterInit'](){const _0x1b4976=this['editor'];if(!_0x1b4976['plugins']['has']('HorizontalLineEditing'))return;_0x1b4976['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x309556=_0x1b4976['plugins']['get']('TrackChangesEditing'),_0x49bc4a=_0x1b4976['locale'];_0x309556['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4e2f23=>o(_0x49bc4a,'ELEMENT_HORIZONTAL_LINE',_0x4e2f23));}}class ot extends _0x21c11d{['afterInit'](){const _0x2b07cd=this['editor'];if(!_0x2b07cd['plugins']['has']('HtmlEmbed'))return;const _0x35703f=_0x2b07cd['plugins']['get']('TrackChangesEditing'),_0x56fa0a=_0x2b07cd['locale'];_0x35703f['descriptionFactory']['registerElementLabel']('rawHtml',_0x29325f=>o(_0x56fa0a,'ELEMENT_HTML_EMBED',_0x29325f)),_0x35703f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x35703f['descriptionFactory']['registerDescriptionCallback'](_0x5138eb=>{if('attribute'!=_0x5138eb['type'])return;const {data:_0x3fd35a}=_0x5138eb;if(_0x3fd35a&&'value'==_0x3fd35a['key']&&_0x5138eb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4a5181=o(_0x56fa0a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x56fa0a,'*Change\x20%0\x20content*',_0x4a5181)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41d9c6=this['editor'],_0x46007f=_0x41d9c6['locale'];_0x41d9c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2531=>{if('formatBlock'!=_0x5d2531['type'])return;const {data:_0x465364}=_0x5d2531;if(_0x465364&&'htmlEmbed'==_0x465364['commandName']){const _0x5621d1=o(_0x46007f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x46007f,'*Change\x20%0\x20content*',_0x5621d1)};}});}}class rt extends _0x21c11d{['afterInit'](){const _0xdcb08d=this['editor'];if(!_0xdcb08d['plugins']['has']('ImageEditing'))return;const _0x26a999=_0xdcb08d['plugins']['get']('TrackChangesEditing'),_0x5b42ca=_0xdcb08d['plugins']['get']('ImageUtils'),_0x28ae15=_0xdcb08d['locale'];_0x26a999['enableCommand']('insertImage'),_0x26a999['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e75e9=>o(_0x28ae15,'ELEMENT_IMAGE',_0x5e75e9)),_0x26a999['descriptionFactory']['registerElementLabel']('imageInline',_0xd4e5bc=>o(_0x28ae15,'ELEMENT_INLINE_IMAGE',_0xd4e5bc)),_0x26a999['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x28ae15,'ELEMENT_CAPTION')),_0xdcb08d['plugins']['has']('ImageUploadEditing')&&_0x26a999['enableCommand']('uploadImage'),_0xdcb08d['plugins']['has']('ImageBlockEditing')&&_0xdcb08d['plugins']['has']('ImageInlineEditing')&&(_0x26a999['enableCommand']('imageTypeInline',(_0x5558c9,_0x557c32)=>{const _0x26256a=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']);_0xdcb08d['model']['change'](()=>{_0x26a999['markBlockFormat'](_0x26256a,{'commandName':'imageTypeInline','commandParams':[_0x557c32]},[],'convertBlockImageToInline');});}),_0x26a999['enableCommand']('imageTypeBlock',(_0x18ab0a,_0x20bfc9)=>{_0xdcb08d['model']['change'](_0x599f34=>{let _0x579f8c=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']),_0x51d451=_0x599f34['createRangeOn'](_0x579f8c);const _0x3060c9=_0x27204c['fromPosition'](_0x51d451['start'],'toPrevious'),_0xf80985=_0x27204c['fromPosition'](_0x51d451['end'],'toNext');_0x26a999['forceDefaultExecution'](()=>_0x18ab0a(_0x20bfc9)),_0x579f8c=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']),_0x51d451=_0x599f34['createRangeOn'](_0x579f8c);const _0x199f75=_0x599f34['createRange'](_0x3060c9,_0xf80985);_0x3060c9['detach'](),_0xf80985['detach'](),_0x26a999['markBlockFormat'](_0x579f8c,{'commandName':'imageTypeInline','commandParams':[_0x20bfc9]},[],'convertInlineImageToBlock'),_0x199f75['start']['isBefore'](_0x51d451['start'])&&_0x26a999['markInsertion'](_0x599f34['createRange'](_0x199f75['start'],_0x51d451['start']),'convertInlineImageToBlock'),_0x51d451['end']['isBefore'](_0x199f75['end'])&&_0x26a999['markInsertion'](_0x599f34['createRange'](_0x51d451['end'],_0x199f75['end']),'convertInlineImageToBlock');});}),_0x26a999['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x26a999['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x26a999['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x26a999['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x26a999['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x26a999['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x27b5d4])=>{const _0x3f07a8=_0x26a999['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x200108=_0x27b5d4['start'],_0x3a6bb4=_0x27b5d4['end'];const _0x2438d0=_0xdcb08d['model']['schema']['getNearestSelectionRange'](_0x200108,'backward'),_0x14ca18=_0xdcb08d['model']['schema']['getNearestSelectionRange'](_0x3a6bb4,'forward');_0x2438d0['isCollapsed']&&(_0x200108=_0x2438d0['start']),_0x14ca18['isCollapsed']&&(_0x3a6bb4=_0x14ca18['end']),_0x3f07a8([_0xdcb08d['model']['createRange'](_0x200108,_0x3a6bb4)]);}),_0x26a999['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2db437),_0x26a999['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2db437)),_0xdcb08d['plugins']['has']('ImageCaptionEditing')&&(_0x26a999['enableCommand']('toggleImageCaption',(_0x12a52d,_0x1e4f40)=>{const _0x1dfa3c=_0xdcb08d['plugins']['get']('ImageCaptionUtils');let _0x45eb73=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']),_0x959fbf=_0x1dfa3c['getCaptionFromImageModelElement'](_0x45eb73);_0xdcb08d['model']['change'](()=>{if(_0x959fbf)return void _0x26a999['markDeletion'](_0xdcb08d['model']['createRangeOn'](_0x959fbf));const _0x6bf4f6=_0x5b42ca['isBlockImage'](_0x45eb73);_0x12a52d(_0x1e4f40),_0x45eb73=_0x5b42ca['getClosestSelectedImageElement'](_0xdcb08d['model']['document']['selection']),_0x959fbf=_0x1dfa3c['getCaptionFromImageModelElement'](_0x45eb73),_0x26a999['markInsertion'](_0xdcb08d['model']['createRangeOn'](_0x959fbf),_0x6bf4f6?null:'imageCaption');});}),_0x26a999['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2db437));const _0x2ea066=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x185418(_0x1c61db,_0x3c401f){const _0x2c46ed=_0x2ea066['findIndex'](({type:_0x49ee7e,subType:_0x2af573})=>_0x1c61db['type']==_0x49ee7e&&_0x1c61db['subType']==_0x2af573),_0x4bb664=_0x2ea066['findIndex'](({type:_0x4457f2,subType:_0x49bf0b})=>_0x3c401f['type']==_0x4457f2&&_0x3c401f['subType']==_0x49bf0b);if(_0x2c46ed<0x0||_0x4bb664<0x0)return!0x1;const _0x4eace7=_0x1c61db['getFirstRange'](),_0x11c691=_0x3c401f['getFirstRange']();if((0x0==_0x2c46ed||0x1==_0x2c46ed)&&0x2==_0x4bb664&&_0x4eace7['isIntersecting'](_0x11c691))return!0x0;if(0x2==_0x2c46ed&&0x3==_0x4bb664){const _0x401403=_0x26a999['_findSuggestions'](_0x4eace7,'insertion')['filter'](({suggestion:_0x4df3e8,meta:_0x40fd80})=>_0x40fd80['isOwn']&&'convertInlineImageToBlock'==_0x4df3e8['subType']);if(_0x401403['length']>0x1&&_0x11c691['end']['isEqual'](_0x4eace7['start']))return!0x0;if(0x1==_0x401403['length']&&(_0x4eace7['start']['isEqual'](_0x11c691['end'])||_0x4eace7['end']['isEqual'](_0x11c691['start'])))return!0x0;}if(0x3==_0x2c46ed&&0x3==_0x4bb664&&_0x4eace7['start']['isBefore'](_0x11c691['start'])){const _0x53d511=_0x4eace7['end']['nodeAfter'],_0x353ef3=_0x11c691['start']['nodeBefore'];return _0x5b42ca['isBlockImage'](_0x53d511)&&_0x53d511===_0x353ef3;}return!0x1;}function _0x2db437(_0x5d6fbc,_0x490d6c){return _0x185418(_0x5d6fbc,_0x490d6c)?[_0x5d6fbc,_0x490d6c]:_0x185418(_0x490d6c,_0x5d6fbc)?[_0x490d6c,_0x5d6fbc]:null;}_0xdcb08d['plugins']['has']('ImageResize')&&(_0x26a999['enableDefaultAttributesIntegration']('resizeImage'),_0x26a999['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x28ae15,'FORMAT_IMAGE_SIZE'))),_0xdcb08d['plugins']['has']('ImageTextAlternativeEditing')&&_0x26a999['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xdcb08d['plugins']['has']('PictureEditing')&&_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0x3859fa=>{if('attribute'!=_0x3859fa['type'])return;const {data:_0x46166e}=_0x3859fa;return _0x46166e&&'sources'==_0x46166e['key']?{'type':'format','content':''}:void 0x0;}),_0xdcb08d['plugins']['has']('ImageSizeAttributes')&&_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0xd2c181=>{if('attribute'!=_0xd2c181['type'])return;const {data:_0x436591}=_0xd2c181;return!_0x436591||'width'!=_0x436591['key']&&'height'!=_0x436591['key']?void 0x0:{'type':'format','content':''};}),_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0xea9ec5=>{if(!!_0x2ea066['find'](({type:_0x5a042e,subType:_0x20e193})=>_0xea9ec5['type']==_0x5a042e&&_0xea9ec5['subType']==_0x20e193))return _0xea9ec5['previous']?{}:void 0x0;}),_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0x24adb5=>{if('insertion'==_0x24adb5['type']||'deletion'==_0x24adb5['type']){const _0x3df41c=_0x24adb5['getContainedElement']();if(_0x3df41c&&_0x3df41c['is']('element','caption'))return{'type':'insertion'==_0x24adb5['type']?'addObject':'removeObject','element':_0x3df41c,'quantity':0x1};}}),_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0x9805c0=>'formatBlock'==_0x9805c0['type']&&'convertInlineImageToBlock'==_0x9805c0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x9805c0['type']&&'convertBlockImageToInline'==_0x9805c0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26a999['descriptionFactory']['registerDescriptionCallback'](_0x38c23e=>{if('attribute'!=_0x38c23e['type'])return;const {data:_0x14f495}=_0x38c23e;if(!_0x14f495||'alt'!=_0x14f495['key'])return;const _0x4b215a=_0x14f495['newValue'];return _0x4b215a?{'type':'format','content':o(_0x28ae15,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b215a+'\x22')}:{'type':'format','content':o(_0x28ae15,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24c7dd=this['editor'],_0x3a8ccc=_0x24c7dd['locale'];_0x24c7dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd80b=>{if('formatBlock'!=_0x4fd80b['type']&&'formatInline'!=_0x4fd80b['type'])return;const {data:_0xe26a71}=_0x4fd80b;if(_0xe26a71){if('imageTextAlternative'==_0xe26a71['commandName']){const _0x3824ad=_0xe26a71['commandParams'][0x0]['newValue'];return _0x3824ad?{'type':'format','content':o(_0x3a8ccc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3824ad+'\x22')}:{'type':'format','content':o(_0x3a8ccc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe26a71['commandName']){const _0x2441e9=_0xe26a71['commandParams'][0x0]['width'];return _0x2441e9?{'type':'format','content':o(_0x3a8ccc,'*Set\x20image\x20width:*\x20%0',_0x2441e9)}:{'type':'format','content':o(_0x3a8ccc,'*Reset\x20image\x20width*')};}}});}}class at extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3d0acf=this['editor']['locale'],_0x39dbc4=this['editor']['plugins']['get']('TrackChangesEditing');_0x39dbc4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x39dbc4['descriptionFactory']['registerDescriptionCallback'](_0x4f7903=>{if('attribute'!=_0x4f7903['type'])return;const {data:_0x22b916}=_0x4f7903;return _0x22b916&&'src'==_0x22b916['key']?_0x22b916['newValue']&&_0x22b916['oldValue']?{'type':'format','content':o(_0x3d0acf,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5d27aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d27aa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5d27aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d27aa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5d27aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46b82e=this['editor'],_0x2a7368=_0x46b82e['locale'];_0x46b82e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45cf4e=>{if('formatBlock'!=_0x45cf4e['type']&&'formatInline'!=_0x45cf4e['type'])return;const {data:_0x5bfb70}=_0x45cf4e;if(!_0x5bfb70||'replaceImageSource'!=_0x5bfb70['commandName'])return;return{'type':'format','content':o(_0x2a7368,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x21c11d{['afterInit'](){const _0x146b38=this['editor'];if(!_0x146b38['plugins']['has']('ImageStyleEditing'))return;const _0x4cc6f7=_0x146b38['plugins']['get']('TrackChangesEditing'),_0x1403e6=_0x146b38['plugins']['get']('ImageUtils'),_0x4f6a55={};_0x4cc6f7['enableCommand']('imageStyle',(_0x2fbd81,_0x4de0d7)=>{const _0x87466a=_0x146b38['plugins']['get']('Users')['me'],_0x29a503=_0x146b38['commands']['get']('imageStyle');let _0x955a7d=_0x1403e6['getClosestSelectedImageElement'](_0x146b38['model']['document']['selection']),_0x256db1=_0x146b38['model']['createRangeOn'](_0x955a7d),_0x5453e9=_0x29a503['value'];if(_0x5453e9==_0x4de0d7['value'])return;const _0x167b53={'commandName':'imageStyle','commandParams':[_0x4de0d7],'formatGroupId':_0x49bc9e()};_0x146b38['model']['change'](()=>{if(_0x4cc6f7['getSuggestions']()['filter'](_0x50c25f=>_0x50c25f['isInContent']&&_0x87466a==_0x50c25f['author']&&('formatBlock'==_0x50c25f['type']||'formatInline'==_0x50c25f['type'])&&('imageStylePreApply'==_0x50c25f['subType']||'imageStylePostApply'==_0x50c25f['subType'])&&_0x50c25f['getFirstRange']()['isEqual'](_0x256db1))['forEach'](_0x17f21c=>_0x4cc6f7['discardSuggestion'](_0x17f21c['head'])),_0x955a7d=_0x1403e6['getClosestSelectedImageElement'](_0x146b38['model']['document']['selection']),_0x256db1=_0x146b38['model']['createRangeOn'](_0x955a7d),_0x29a503['refresh'](),_0x146b38['commands']['get']('imageTypeInline')['refresh'](),_0x146b38['commands']['get']('imageTypeBlock')['refresh'](),_0x5453e9=_0x29a503['value'],_0x5453e9!=_0x4de0d7['value'])return _0x1403e6['isInlineImage'](_0x955a7d)&&_0x29a503['shouldConvertImageType'](_0x4de0d7['value'],_0x955a7d)?(_0x2fbd81({..._0x4de0d7,'setImageSizes':!0x1}),_0x955a7d=_0x1403e6['getClosestSelectedImageElement'](_0x146b38['model']['document']['selection']),void _0x4cc6f7['markBlockFormat'](_0x955a7d,{..._0x167b53,'commandReversedParams':[{'value':_0x5453e9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1403e6['isBlockImage'](_0x955a7d)?_0x4cc6f7['markBlockFormat'](_0x955a7d,_0x167b53,[],'imageStylePostApply'):_0x4cc6f7['markInlineFormat'](_0x256db1,_0x167b53,'imageStylePostApply'));});});for(const _0x3b24e7 of _0x146b38['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f6a55[_0x3b24e7['name']]=_0x3b24e7['title']['toLowerCase']();_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x9f2f07])=>{_0x1403e6['setImageNaturalSizeAttributes'](_0x9f2f07['getContainedElement']());}),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2cd3e4,_0x4b7b92)=>{_0x4cc6f7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2cd3e4,{'commandName':_0x4b7b92['commandName'],'commandParams':_0x4b7b92['commandReversedParams']});}),_0x4cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5e86a5,_0x18c063){if(_0x42cae4(_0x5e86a5,_0x18c063))return[_0x5e86a5,_0x18c063];if(_0x42cae4(_0x18c063,_0x5e86a5))return[_0x18c063,_0x5e86a5];return null;});const _0x2e179c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42cae4(_0x143c85,_0x4dfdbc){const _0x3625a9=_0x2e179c['findIndex'](({type:_0x978f6d,subType:_0x4b89bd})=>_0x143c85['type']==_0x978f6d&&_0x143c85['subType']==_0x4b89bd),_0x57f03f=_0x2e179c['findIndex'](({type:_0x5e9285,subType:_0xe2ca8b})=>_0x4dfdbc['type']==_0x5e9285&&_0x4dfdbc['subType']==_0xe2ca8b);if(_0x3625a9<0x0||_0x57f03f<0x0)return!0x1;const _0x5269c0=_0x143c85['getFirstRange'](),_0x15c240=_0x4dfdbc['getFirstRange']();if((0x0==_0x3625a9||0x1==_0x3625a9)&&0x2==_0x57f03f&&_0x5269c0['isIntersecting'](_0x15c240))return!0x0;if(0x2==_0x3625a9&&0x3==_0x57f03f){const _0x3cf3ff=_0x4cc6f7['_findSuggestions'](_0x5269c0,'insertion')['filter'](({suggestion:_0x4a609d,meta:_0x14a820})=>_0x14a820['isOwn']&&'convertInlineImageToBlock'==_0x4a609d['subType']);if(_0x3cf3ff['length']>0x1&&_0x15c240['end']['isEqual'](_0x5269c0['start']))return!0x0;if(0x1==_0x3cf3ff['length']&&(_0x5269c0['start']['isEqual'](_0x15c240['end'])||_0x5269c0['end']['isEqual'](_0x15c240['start'])))return!0x0;}if(0x3==_0x3625a9&&0x3==_0x57f03f&&_0x5269c0['start']['isBefore'](_0x15c240['start'])){const _0x391ca9=_0x5269c0['end']['nodeAfter'],_0x45face=_0x15c240['start']['nodeBefore'];return _0x1403e6['isBlockImage'](_0x391ca9)&&_0x391ca9===_0x45face;}return!0x1;}_0x146b38['model']['document']['registerPostFixer'](()=>{let _0x8dd212=!0x1;const _0x25752d=Array['from'](_0x146b38['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51246f,data:_0x157065}of _0x25752d){const {group:_0x587122,type:_0x459195,subType:_0x32e036,id:_0x83fcb6}=_0x4cc6f7['_splitMarkerName'](_0x51246f);if('suggestion'==_0x587122&&_0x4cc6f7['hasSuggestion'](_0x83fcb6)){if('formatBlock'==_0x459195&&('imageStylePreApply'==_0x32e036||'imageStylePostApply'==_0x32e036)){const _0x442a7e=_0x4cc6f7['getSuggestion'](_0x83fcb6);if(_0x157065['newRange']){const _0x48c834=_0x442a7e['getFirstRange']()['getContainedElement']();if(_0x1403e6['isBlockImage'](_0x48c834))continue;_0x4cc6f7['discardSuggestion'](_0x442a7e),_0x8dd212=!0x0;}}if('insertion'==_0x459195&&'imageCaption'==_0x32e036&&!_0x157065['newRange']){const _0x358360=_0x4cc6f7['getSuggestion'](_0x83fcb6);_0x358360['next']&&_0x358360['next']['isInContent']&&(_0x4cc6f7['discardSuggestion'](_0x358360['next']),_0x8dd212=!0x0);}}}return _0x8dd212;}),this['_registerLegacyDescription'](_0x4f6a55);}['_registerLegacyDescription'](_0x228e33){const _0x478272=this['editor'],_0x425224=_0x478272['locale'];_0x478272['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32ee27=>{if('formatBlock'!=_0x32ee27['type']&&'formatInline'!=_0x32ee27['type'])return;const {data:_0x59f182}=_0x32ee27;if(!_0x59f182||'imageStyle'!=_0x59f182['commandName'])return;const _0x2bec8c=_0x59f182['commandParams'][0x0]['value'];return _0x676e6e('side'===_0x2bec8c?o(_0x425224,'FORMAT_SIDE_IMAGE'):_0x228e33[_0x2bec8c]||_0x2bec8c);function _0x676e6e(_0x5e292c){return{'type':'format','content':o(_0x425224,'*Format:*\x20%0',_0x5e292c)};}});}}class ut extends _0x21c11d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5d91ee){super(_0x5d91ee),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x30a856=this['editor'],_0x3d6f62=_0x30a856['commands']['get']('importWord'),_0x5936fa=_0x30a856['commands']['get']('trackChanges');_0x3d6f62&&(_0x3d6f62['on']('execute',(_0x4ce6bc,[,_0x21ca9a])=>{this['_trackChangesValueDuringImport']=_0x5936fa['value'],_0x21ca9a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3d6f62,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3d6f62,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5936fa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x30a856['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3f0135,_0x1f1f3a){const {suggestions:_0x30cfea}=_0x1f1f3a,_0x25c600=this['editor']['commands']['get']('trackChanges'),_0x1314d2=_0x25c600['value'];this['_trackChangesValueDuringImport']!==_0x1314d2&&(_0x25c600['execute'](),this['_trackChangesExecuted']=!0x0),_0x30cfea&&_0x30cfea['forEach'](({id:_0x3f2150,type:_0x48fc4a,author:_0x285bac,created_at:_0x13192f})=>{const _0x37f1d5={'id':_0x3f2150,'type':_0x48fc4a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x285bac,'createdAt':_0x13192f?new Date(_0x13192f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x37f1d5);});}}class ft extends _0x21c11d{['afterInit'](){const _0x396a29=this['editor'],_0x1e0fa0=_0x396a29['plugins']['get']('TrackChangesEditing');if(_0x396a29['plugins']['has']('IndentEditing')&&(_0x1e0fa0['enableCommand']('indent'),_0x1e0fa0['enableCommand']('outdent')),_0x396a29['plugins']['has']('IndentBlock')){for(const _0x4c2dd2 of['indentBlock','outdentBlock'])_0x1e0fa0['enableDefaultAttributesIntegration'](_0x4c2dd2);}const _0x44d260=_0x396a29['locale'];_0x1e0fa0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x44d260,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xca957=this['editor'],_0x5cca6f=_0xca957['locale'],_0x213047=_0xca957['plugins']['get']('TrackChangesEditing');_0x213047['descriptionFactory']['registerDescriptionCallback'](_0x4370e6=>{if('formatBlock'!=_0x4370e6['type'])return;const {data:_0x29c78d}=_0x4370e6;if(!_0x29c78d)return;if('indentBlock'!=_0x29c78d['commandName']&&'outdentBlock'!=_0x29c78d['commandName'])return;const _0x104a2a=_0x4370e6['getItems']()[0x0],_0x491785=_0x213047['descriptionFactory']['getItemLabel'](_0x104a2a);return'indentBlock'==_0x29c78d['commandName']?{'type':'format','content':o(_0x5cca6f,'*Indent:*\x20%0',_0x491785)}:'outdentBlock'==_0x29c78d['commandName']?{'type':'format','content':o(_0x5cca6f,'*Outdent:*\x20%0',_0x491785)}:void 0x0;});}}class ht extends _0x21c11d{static get['requires'](){return[_0x98a46];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x21c11d{['afterInit'](){const _0x3a009e=this['editor'];if(!_0x3a009e['plugins']['has']('LinkEditing'))return;const _0x420fc7=_0x3a009e['plugins']['get']('TrackChangesEditing'),_0x40fabb=_0x3a009e['commands']['get']('link');_0x420fc7['enableDefaultAttributesIntegration']('link'),_0x420fc7['enableDefaultAttributesIntegration']('unlink');for(const _0x3a3e2 of _0x40fabb['manualDecorators'])_0x420fc7['descriptionFactory']['registerAttributeLabel'](_0x3a3e2['id'],'link\x20('+_0x3a3e2['label']['toLowerCase']()+')');_0x420fc7['descriptionFactory']['registerDescriptionCallback'](_0x42ef7f=>{if('attribute'!=_0x42ef7f['type'])return;const {data:_0x222050}=_0x42ef7f;if(!_0x222050||'linkHref'!=_0x222050['key'])return;const _0x51c237=_0x222050['newValue'],_0x542313=_0x3a009e['locale'];return{'type':'format','content':null==_0x51c237?o(_0x542313,'*Remove\x20link*'):o(_0x542313,'*Set\x20link:*\x20%0','\x22'+_0x51c237+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55e20b=this['editor'],_0x745bb2=_0x55e20b['locale'];_0x55e20b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x208e6c=>{if('formatInline'!=_0x208e6c['type'])return;const {data:_0x30bfb0}=_0x208e6c;if(_0x30bfb0){if('link'==_0x30bfb0['commandName']){const _0x3775aa=_0x30bfb0['commandParams'][0x0];return{'type':'format','content':o(_0x745bb2,'*Set\x20link:*\x20%0','\x22'+_0x3775aa+'\x22')};}return'unlink'==_0x30bfb0['commandName']?{'type':'format','content':o(_0x745bb2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x21c11d{['afterInit'](){const _0x19f495=this['editor'],_0x52e120=_0x19f495['locale'];if(!_0x19f495['plugins']['has']('LegacyListEditing'))return;const _0x2fb5e1=_0x19f495['plugins']['get']('TrackChangesEditing'),_0x2404eb=_0x19f495['plugins']['has']('LegacyTodoListEditing');function _0x22fcb6(_0x3a2299){return()=>{const _0x340c66=_0x19f495['model']['document']['selection'],_0x4e7c0b=_0x19f495['commands']['get'](_0x3a2299);if(_0x4e7c0b['value'])return void _0x19f495['execute']('paragraph',{});const _0x3355b9=_0x3a2299['slice'](0x0,-0x4),_0x1d84c0=function(_0x27fd9e,_0x59954a,_0x32a177){let _0x1766ec=Array['from'](_0x27fd9e)['filter'](_0x3f3c02=>function(_0x46cc9d,_0x591f4f){return _0x591f4f['checkChild'](_0x46cc9d['parent'],'listItem')&&!_0x591f4f['isObject'](_0x46cc9d);}(_0x3f3c02,_0x32a177));_0x1766ec=_0x1766ec['filter'](_0x58937f=>!_0x58937f['is']('element','listItem')||_0x58937f['getAttribute']('listType')!=_0x59954a);const _0x516a95=new Set();for(const _0x24ad56 of _0x1766ec)_0x24ad56['is']('element','listItem')?_0x516a95['add'](Le(_0x24ad56)):_0x516a95['add'](_0x24ad56);return Array['from'](_0x516a95);}(_0x340c66['getSelectedBlocks'](),_0x3355b9,_0x19f495['model']['schema']);_0x19f495['model']['change'](()=>{for(const _0x40e0f of _0x1d84c0)_0x2fb5e1['markBlockFormat'](_0x40e0f,{'commandName':_0x3a2299,'commandParams':[{'forceValue':!_0x4e7c0b['value']}],'formatGroupId':'blockName'},Ee(_0x40e0f));});};}function _0x526095(_0x16f575){return()=>{const _0x151fef=function(_0x3a74d7){let _0x48cd3c=Array['from'](_0x3a74d7);const _0x51d8c4=_0x48cd3c['findIndex'](_0xc928a0=>'listItem'!=_0xc928a0['name']);return _0x51d8c4>-0x1&&(_0x48cd3c=_0x48cd3c['slice'](0x0,_0x51d8c4)),_0x48cd3c;}(_0x19f495['model']['document']['selection']['getSelectedBlocks']()),_0x574384=_0x19f495['model']['createRange'](_0x19f495['model']['createPositionAt'](_0x151fef[0x0],'before'),_0x19f495['model']['createPositionAt'](_0x151fef[_0x151fef['length']-0x1],'end'));_0x19f495['model']['change'](()=>{_0x2fb5e1['markBlockFormat'](_0x574384,{'commandName':_0x16f575,'commandParams':[],'formatGroupId':'listIndent'},function(_0x403d0a){const _0x3908d2=new Set();for(const _0x1e1cd8 of _0x403d0a){let _0xfcdbb8=_0x1e1cd8['nextSibling'];for(;_0xfcdbb8&&_0xfcdbb8['getAttribute']('listIndent')>_0x1e1cd8['getAttribute']('listIndent');)_0x3908d2['add'](_0xfcdbb8),_0xfcdbb8=_0xfcdbb8['nextSibling'];}return Array['from'](_0x3908d2);}(_0x151fef));});};}_0x2fb5e1['enableCommand']('numberedList',_0x22fcb6('numberedList')),_0x2fb5e1['enableCommand']('bulletedList',_0x22fcb6('bulletedList')),_0x2404eb&&_0x2fb5e1['enableCommand']('todoList',_0x22fcb6('todoList')),_0x2fb5e1['enableCommand']('indentList',_0x526095('indentList')),_0x2fb5e1['enableCommand']('outdentList',_0x526095('outdentList')),_0x2404eb&&_0x2fb5e1['enableCommand']('checkTodoList',()=>{const _0x22bc7a=_0x19f495['commands']['get']('checkTodoList'),_0x38406e=Array['from'](_0x22bc7a['_selectedElements']);_0x38406e['filter'](_0x307b78=>_0x307b78['getAttribute']('todoListChecked')!=_0x22bc7a['value']),_0x19f495['model']['change'](()=>{for(const _0x47efb6 of _0x38406e)_0x2fb5e1['markBlockFormat'](_0x47efb6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x22bc7a['value']}]});});}),_0x2fb5e1['descriptionFactory']['registerElementLabel']('listItem',_0x46c620=>o(_0x52e120,'ELEMENT_LIST_ITEM',_0x46c620)),_0x2fb5e1['descriptionFactory']['registerDescriptionCallback'](_0x2b284d=>{if('formatBlock'!=_0x2b284d['type']&&'formatInline'!=_0x2b284d['type'])return;const {data:_0x5ab17c}=_0x2b284d;if(_0x5ab17c){if('numberedList'==_0x5ab17c['commandName']||'bulletedList'==_0x5ab17c['commandName']||'todoList'==_0x5ab17c['commandName'])switch(_0x5ab17c['commandName']['replace']('List','')){case'bulleted':return _0x52ef0f(o(_0x52e120,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52ef0f(o(_0x52e120,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52ef0f(o(_0x52e120,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5ab17c['commandName'])return{'type':'format','content':o(_0x52e120,'*Indent:*\x20%0',o(_0x52e120,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5ab17c['commandName'])return{'type':'format','content':o(_0x52e120,'*Outdent:*\x20%0',o(_0x52e120,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5ab17c['commandName'])return _0x5ab17c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52e120,'*Check\x20item*')}:{'type':'format','content':o(_0x52e120,'*Uncheck\x20item*')};}function _0x52ef0f(_0x4c6155){return{'type':'format','content':o(_0x52e120,'*Change\x20to:*\x20%0',_0x4c6155)};}});}}function Le(_0x19d2ac){const _0x1114a9=_0x19d2ac['getAttribute']('listIndent');if(0x0==_0x1114a9)return _0x19d2ac;let _0xe93667=_0x19d2ac;for(;_0x19d2ac['previousSibling']&&_0x19d2ac['previousSibling']['is']('element','listItem');){const _0x10b8df=_0x19d2ac['previousSibling']['getAttribute']('listIndent');if(_0x10b8df==_0x1114a9)_0xe93667=_0x19d2ac['previousSibling'];else{if(_0x10b8df<_0x1114a9)break;}_0x19d2ac=_0x19d2ac['previousSibling'];}return _0xe93667;}function Ee(_0x3f4ab2){const _0x436973=[];if(_0x3f4ab2['is']('element','listItem')&&_0x3f4ab2['getAttribute']('listIndent')>0x0){let _0x467232=_0x3f4ab2['nextSibling'];for(;_0x467232&&'listItem'==_0x467232['name']&&_0x467232['getAttribute']('listIndent')==_0x3f4ab2['getAttribute']('listIndent');)_0x436973['push'](_0x467232),_0x467232=_0x467232['nextSibling'];}return _0x436973;}class mt extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3a6ef0=this['editor']['config']['get']('list.properties'),_0x1c48b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a6ef0['styles']&&_0x1c48b8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3a6ef0['reversed']&&_0x1c48b8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3a6ef0['startIndex']&&_0x1c48b8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c48b8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x537bdb,_0x1cf8bb={}){const _0x30a342=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17dfa9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x30a342['markMultiRangeBlockFormat'](_0x17dfa9,{'commandName':'listStyle','commandParams':[{'type':_0x1cf8bb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x7d4547,_0x110c0b={}){const _0xcb2659=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b0537=this['_getSuggestionBlocks'](_0x17656b=>_0x17656b['is']('element','listItem')&&'numbered'===_0x17656b['getAttribute']('listType'));if(_0x2b0537['length']<0x1)return;const _0x63360f=_0x2b0537['map'](_0x752d51=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x752d51,'before'),this['editor']['model']['createPositionAt'](_0x752d51,0x0)));this['editor']['model']['change'](()=>{_0xcb2659['markMultiRangeBlockFormat'](_0x63360f,{'commandName':'listReversed','commandParams':[{'reversed':_0x110c0b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x32970e,_0x22b7f5={}){const _0x5f02fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12d608=this['_getSuggestionBlocks'](_0x1fe80d=>_0x1fe80d['is']('element','listItem')&&'numbered'===_0x1fe80d['getAttribute']('listType'));if(_0x12d608['length']<0x1)return;const _0x276348=_0x12d608['map'](_0x10eb7a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10eb7a,'before'),this['editor']['model']['createPositionAt'](_0x10eb7a,0x0)));this['editor']['model']['change'](()=>{_0x5f02fc['markMultiRangeBlockFormat'](_0x276348,{'commandName':'listStart','commandParams':[{'startIndex':_0x22b7f5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x32b079){if('formatBlock'!=_0x32b079['type']&&'formatInline'!=_0x32b079['type'])return;const _0x3a6630=this['editor']['locale'],{data:_0x4b08a5}=_0x32b079;if(!_0x4b08a5)return;let _0x26e759,_0x3380f1;switch(_0x4b08a5['commandName']){case'listStyle':_0x26e759='*Change\x20to:*\x20%0',_0x3380f1={'type':'format','content':o(_0x3a6630,_0x26e759,o(_0x3a6630,this['_getTranslationKeyForListStyle'](_0x4b08a5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26e759=_0x4b08a5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3380f1={'type':'format','content':o(_0x3a6630,_0x26e759)};break;case'listStart':_0x26e759='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3380f1={'type':'format','content':o(_0x3a6630,_0x26e759,_0x4b08a5['commandParams'][0x0]['startIndex'])};}return _0x3380f1;}['_getSuggestionBlocksForListStyle'](){const _0x4a4d67=this['editor']['plugins']['get']('LegacyListUtils');let _0x74dc0e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x74dc0e[0x0]?.['is']('element','listItem')&&_0x74dc0e['unshift'](..._0x4a4d67['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x74dc0e[_0x74dc0e['length']-0x1]?.['is']('element','listItem')&&_0x74dc0e['push'](..._0x4a4d67['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x74dc0e=[...new Set(_0x74dc0e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x74dc0e=_0x74dc0e['filter'](_0x9e13aa=>_0x9e13aa['is']('element','listItem'))),_0x74dc0e;}['_getSuggestionBlocks'](_0x246656){const _0x30e235=this['editor']['plugins']['get']('LegacyListUtils');let _0x340bd2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x246656)['map'](_0x566c76=>{const _0x5414a6=this['editor']['model']['createPositionAt'](_0x566c76,0x0);return[..._0x30e235['getSiblingNodes'](_0x5414a6,'backward'),..._0x30e235['getSiblingNodes'](_0x5414a6,'forward')];})['flat']();return _0x340bd2=[...new Set(_0x340bd2)],_0x340bd2;}['_getTranslationKeyForListStyle'](_0x5eb185){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5eb185)||'default')['toUpperCase']()+'_LIST_'+_0x5eb185['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x21c11d{['afterInit'](){const _0x38a624=this['editor'];if(!_0x38a624['plugins']['has']('MediaEmbedEditing'))return;const _0x4f95fa=_0x38a624['plugins']['get']('TrackChangesEditing'),_0x151b23=_0x38a624['locale'];_0x4f95fa['enableCommand']('mediaEmbed'),_0x4f95fa['descriptionFactory']['registerElementLabel']('media',_0x5230d9=>o(_0x151b23,'ELEMENT_MEDIA',_0x5230d9));}}class pt extends _0x21c11d{['afterInit'](){const _0x234fd5=this['editor'];_0x234fd5['plugins']['has']('MentionEditing')&&_0x234fd5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x21c11d{['afterInit'](){const _0xb840b5=this['editor'];if(!_0xb840b5['plugins']['has']('MergeFieldsEditing'))return;const _0x5e4341=_0xb840b5['plugins']['get']('TrackChangesEditing'),_0x1f53f4=_0xb840b5['locale'];_0x5e4341['enableCommand']('insertMergeField'),_0x5e4341['enableCommand']('insertMergeFieldBlock'),_0x5e4341['enableCommand']('insertMergeFieldImage'),_0x5e4341['descriptionFactory']['registerElementLabel']('mergeField',_0x505846=>o(_0x1f53f4,'ELEMENT_MERGE_FIELD',_0x505846)),_0x5e4341['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xd72652=>o(_0x1f53f4,'ELEMENT_MERGE_FIELD',_0xd72652)),_0x5e4341['descriptionFactory']['registerDescriptionCallback'](_0x4c9019=>{if('insertion'!=_0x4c9019['type']&&'deletion'!=_0x4c9019['type'])return;const _0x806fdb=_0x4c9019['getContainedElement']();if(null==_0x806fdb)return;const _0x38b92c=_0xb840b5['plugins']['get']('MergeFieldsEditing');let _0x14e226;switch(_0x38b92c['getMergeFieldType'](_0x806fdb)){case null:return;case'image':{const _0x1b951a=_0x38b92c['unwrapAffixes'](_0x806fdb['getAttribute']('src'));_0x14e226=_0x38b92c['getLabel'](_0x1b951a)||_0x1b951a;break;}default:{const _0x2c8b40=_0x806fdb['getAttribute']('id');_0x14e226=_0x38b92c['getLabel'](_0x2c8b40)||_0x2c8b40;break;}}return'insertion'==_0x4c9019['type']?{'type':'insertion','content':o(_0x1f53f4,'*Insert:*\x20%0','\x22'+_0x14e226+'\x22\x20'+o(_0x1f53f4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1f53f4,'*Remove:*\x20%0','\x22'+_0x14e226+'\x22\x20'+o(_0x1f53f4,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x21c11d{['afterInit'](){const _0x568013=this['editor'],_0x26016a=_0x568013['plugins']['get']('TrackChangesEditing');_0x568013['plugins']['has']('MultiLevelList')&&(_0x26016a['enableDefaultAttributesIntegration']('multiLevelList'),_0x26016a['descriptionFactory']['registerDescriptionCallback'](_0x5ac8c3=>this['handleDescriptions'](_0x5ac8c3)));}['handleDescriptions'](_0x50d754){const _0x2aff35=this['editor']['locale'],{data:_0x31d097}=_0x50d754,_0x133a62={'type':'format','content':''};if(_0x31d097&&'listMarkerStyle'==_0x31d097['key']){if(!_0x31d097['oldValue'])return{'type':'format','content':o(_0x2aff35,'*Set\x20format:*\x20%0',o(_0x2aff35,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31d097['newValue']+')'};if(!_0x31d097['newValue']){let _0x564861=_0x50d754['head'];for(;_0x564861;){if(_0x564861['data']&&'listType'==_0x564861['data']['key']&&_0x564861['data']['newValue'])return _0x133a62;_0x564861=_0x564861['next'];}return{'type':'format','content':o(_0x2aff35,'*Remove\x20format:*\x20%0',o(_0x2aff35,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31d097['oldValue']+')'};}}}}class bt extends _0x21c11d{['afterInit'](){const _0x36eb82=this['editor'];if(!_0x36eb82['plugins']['has']('PageBreakEditing'))return;_0x36eb82['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x565da7=_0x36eb82['plugins']['get']('TrackChangesEditing'),_0xf32d5b=_0x36eb82['locale'];_0x565da7['descriptionFactory']['registerElementLabel']('pageBreak',_0x48edea=>o(_0xf32d5b,'ELEMENT_PAGE_BREAK',_0x48edea));}}class yt extends _0x21c11d{['afterInit'](){const _0x1b81db=this['editor'];if(!_0x1b81db['plugins']['has']('Paragraph'))return;const _0x483d54=_0x1b81db['locale'],_0x2e5d63=_0x1b81db['plugins']['get']('TrackChangesEditing');_0x2e5d63['descriptionFactory']['registerElementLabel']('paragraph',_0x584f51=>o(_0x483d54,'ELEMENT_PARAGRAPH',_0x584f51)),_0x2e5d63['enableDefaultAttributesIntegration']('paragraph'),_0x2e5d63['enableCommand']('insertParagraph');const _0x74a733=_0x2e5d63['descriptionFactory'];_0x74a733['registerDescriptionCallback'](_0x44b805=>{if('insertion'!==_0x44b805['type'])return;const {start:_0x4868a2,end:_0x3f2b98}=_0x44b805['getFirstRange']();if(!_0x4868a2['isTouching'](_0x3f2b98)||!_0x4868a2['nodeAfter'])return;const _0x515223=_0x1b81db['model']['schema'],_0xc025a2=_0x4868a2['nodeAfter'];return _0x515223['isBlock'](_0xc025a2)&&!_0x515223['isLimit'](_0xc025a2)&&_0x515223['checkChild'](_0xc025a2,'$text')?{'type':'insertion','content':o(_0x483d54,'*Insert:*\x20%0',_0x74a733['getItemLabel'](_0xc025a2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x71f79b=this['editor'],_0x430add=_0x71f79b['locale'];_0x71f79b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13d8d2=>{if('formatBlock'!=_0x13d8d2['type'])return;const {data:_0x2d31c0}=_0x13d8d2;return _0x2d31c0&&'paragraph'==_0x2d31c0['commandName']?{'type':'format','content':o(_0x430add,'*Change\x20to:*\x20%0',o(_0x430add,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x21c11d{['afterInit'](){const _0x2c98eb=this['editor'];_0x2c98eb['commands']['get']('replaceSource')&&_0x2c98eb['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x21c11d{['afterInit'](){const _0x29f9b7=this['editor'];if(!_0x29f9b7['plugins']['has']('RemoveFormatEditing'))return;_0x29f9b7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d0606=this['editor'];_0x3d0606['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6fca04=>{if('formatBlock'!=_0x6fca04['type']&&'formatInline'!=_0x6fca04['type'])return;const {data:_0x964ede}=_0x6fca04;return _0x964ede&&'removeFormat'==_0x964ede['commandName']?{'type':'format','content':o(_0x3d0606['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x21c11d{['afterInit'](){const _0x475f3d=this['editor'];if(!_0x475f3d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x47464e=_0x475f3d['plugins']['get']('TrackChangesEditing');_0x47464e['enableCommand']('goToPreviousRestrictedEditingException'),_0x47464e['enableCommand']('goToNextRestrictedEditingException');const _0x15267d=_0x475f3d['plugins']['get']('RestrictedEditingModeEditing');_0x15267d['enableCommand']('trackChanges'),_0x15267d['enableCommand']('acceptSuggestion'),_0x15267d['enableCommand']('discardSuggestion'),_0x15267d['enableCommand']('acceptAllSuggestions'),_0x15267d['enableCommand']('discardAllSuggestions'),_0x15267d['enableCommand']('acceptSelectedSuggestions'),_0x15267d['enableCommand']('discardSelectedSuggestions');}}class At extends _0x21c11d{['afterInit'](){const _0x11f14c=this['editor'];if(!_0x11f14c['plugins']['has']('ShiftEnter'))return;const _0x2ed0ba=_0x11f14c['plugins']['get']('TrackChangesEditing');_0x2ed0ba['enableCommand']('shiftEnter'),_0x2ed0ba['descriptionFactory']['registerElementLabel']('softBreak',_0x4c459f=>o(_0x11f14c['locale'],'ELEMENT_LINE_BREAK',_0x4c459f));}}function an(_0x10c3ba,_0x32a23b,_0x392b51){const _0x5b4ce6=[];for(const _0x361c79 of _0x32a23b['getItems']())_0x361c79['hasAttribute'](_0x10c3ba)&&_0x5b4ce6['push'](_0x392b51['createRangeOn'](_0x361c79));return _0x5b4ce6;}class _t extends _0x21c11d{['afterInit'](){const _0x5b7b6f=this['editor'],_0x1404b=_0x5b7b6f['plugins']['get']('TrackChangesEditing');_0x5b7b6f['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1404b['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x16e86f=this['editor'],_0x34bca9=_0x16e86f['model'],_0x20b1de=_0x16e86f['locale'],_0x3cfaf4=_0x16e86f['plugins']['get']('TrackChangesEditing'),_0x1536a7='restrictedEditingException',_0x4795a6=_0x16e86f['commands']['get'](_0x1536a7);_0x3cfaf4['enableCommand'](_0x1536a7,(_0x1fd529,_0x166aa9={})=>{const _0x49d980=_0x34bca9['document']['selection'];if(_0x49d980['isCollapsed'])return void _0x1fd529(_0x166aa9);const _0x4a48a4=void 0x0!==_0x166aa9['forceValue']?_0x166aa9['forceValue']:!_0x4795a6['value'];_0x34bca9['change'](()=>{const _0x264827=Array['from'](_0x49d980['getRanges']());for(const _0x29b842 of _0x264827){const _0x56acab=_0x4a48a4?[_0x29b842]:an(_0x1536a7,_0x29b842,_0x34bca9);for(const _0x350c21 of _0x56acab)_0x3cfaf4['markInlineFormat'](_0x350c21,{'commandName':_0x1536a7,'commandParams':[{'forceValue':_0x4a48a4}]});}});}),_0x3cfaf4['descriptionFactory']['registerDescriptionCallback'](_0x5b8891=>{if('formatBlock'!=_0x5b8891['type']&&'formatInline'!=_0x5b8891['type'])return;const {data:_0x4f778f}=_0x5b8891;return _0x4f778f&&_0x4f778f['commandName']==_0x1536a7?_0x4f778f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20b1de,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x20b1de,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xc245a1=this['editor'],_0x1b1cd9=_0xc245a1['locale'],_0x36a25d=_0xc245a1['plugins']['get']('TrackChangesEditing'),_0x4e5045='restrictedEditingExceptionBlock',_0x358185=this['editor']['commands']['get'](_0x4e5045);_0x36a25d['enableCommand'](_0x4e5045,(_0x34e6fe,_0x164ea6={})=>{const _0x5ab7c0=this['editor']['model']['document']['selection'],_0x213fde=_0x164ea6&&void 0x0!==_0x164ea6['forceValue']?_0x164ea6['forceValue']:!_0x358185['value'];let _0x1536fd=[];if(_0x213fde){const _0x5acd1b=Array['from'](_0x5ab7c0['getSelectedBlocks']())['filter'](_0x5d216c=>function(_0x512cbf){return!!_0x512cbf['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x5d216c)||function(_0x5daa42,_0x12717f){const _0x464a74=_0x12717f['createContext'](_0x5daa42['parent']);if(!_0x12717f['checkChild'](_0x464a74,'restrictedEditingException'))return!0x1;if(!_0x12717f['checkChild'](_0x464a74['push']('restrictedEditingException'),_0x5daa42))return!0x1;return!0x0;}(_0x5d216c,this['editor']['model']['schema']));_0x1536fd=to(_0x5acd1b,_0xc245a1['model']);}else{const _0x381fba=Array['from'](_0x5ab7c0['getSelectedBlocks']())['map'](_0x59f0d1=>function(_0x27cd5c){let _0x1d95bf=_0x27cd5c;for(;_0x1d95bf['parent'];){if('restrictedEditingException'==_0x1d95bf['parent']['name'])return _0x1d95bf;_0x1d95bf=_0x1d95bf['parent'];}return null;}(_0x59f0d1))['filter'](_0x1dc5b6=>!!_0x1dc5b6);_0x1536fd=to(_0x381fba,_0xc245a1['model']);}_0xc245a1['model']['change'](()=>{for(const _0x599a30 of _0x1536fd)_0x36a25d['markBlockFormat'](_0x599a30,{'commandName':_0x4e5045,'commandParams':[{'forceValue':_0x213fde}]});});}),_0x36a25d['descriptionFactory']['registerDescriptionCallback'](_0x549415=>{const {data:_0x3077a9}=_0x549415;if(_0x3077a9&&_0x3077a9['commandName']==_0x4e5045)return _0x3077a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b1cd9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1b1cd9,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x21c11d{['afterInit'](){const _0xc61dfa=this['editor'];if(!_0xc61dfa['plugins']['has']('Style')||!_0xc61dfa['plugins']['has']('DataSchema'))return;const _0x54dfa0=_0xc61dfa['plugins']['get']('TrackChangesEditing'),_0x2ed0f5=_0xc61dfa['locale'],_0x5404f8=_0xc61dfa['config']['get']('style')||{},_0x584604=_0xc61dfa['plugins']['get']('GeneralHtmlSupport'),_0x2019aa=_0xc61dfa['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc61dfa['plugins']['get']('DataSchema'),_0x5404f8['definitions']);_0x54dfa0['enableDefaultAttributesIntegration']('style');const _0x3bece8=new Set();for(const _0x3d84a7 of _0x2019aa['block']){const _0x4e6c27=_0x584604['getGhsAttributeNameForElement'](_0x3d84a7['element']);_0x3bece8['add'](_0x4e6c27);}const _0x402431=new Set();for(const _0x8ab1b9 of _0x2019aa['inline']){const _0x376b15=_0x584604['getGhsAttributeNameForElement'](_0x8ab1b9['element']);_0x402431['add'](_0x376b15);for(const _0x2e0cb9 of _0x8ab1b9['ghsAttributes'])_0x402431['add'](_0x2e0cb9);}for(const _0x5e4fda of _0x3bece8)_0x54dfa0['descriptionFactory']['registerAttributeLabel'](_0x5e4fda,o(_0x2ed0f5,'FORMAT_STYLE'));for(const _0x1482bf of _0x402431)_0x54dfa0['descriptionFactory']['registerAttributeLabel'](_0x1482bf,o(_0x2ed0f5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a53d=this['editor'],_0x223fd0=_0x13a53d['locale'];_0x13a53d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eff1a=>{if('formatBlock'!=_0x4eff1a['type']&&'formatInline'!=_0x4eff1a['type'])return;const {data:_0x4cbbef}=_0x4eff1a;return _0x4cbbef&&'style'===_0x4cbbef['commandName']?_0x4cbbef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x223fd0,'*Set\x20format:*\x20%0',_0x4cbbef['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x223fd0,'*Remove\x20format:*\x20%0',_0x4cbbef['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x21c11d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x40cd87){super(_0x40cd87),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x479b2c=this['editor'],_0x3c3c2c=_0x479b2c['model']['document']['selection'];if(!_0x479b2c['plugins']['has']('TableEditing'))return;const _0x34406b=_0x479b2c['locale'],_0x355329=_0x479b2c['plugins']['get']('TrackChangesEditing'),_0x455788=_0x479b2c['plugins']['get']('TableUtils');_0x355329['descriptionFactory']['registerElementLabel']('table',_0x1365cf=>o(_0x34406b,'ELEMENT_TABLE',_0x1365cf)),this['_setupColumnsRowsFixing'](),_0x355329['enableCommand']('insertTable'),_0x355329['enableCommand']('selectTableRow'),_0x355329['enableCommand']('selectTableColumn');for(const _0x2dfccd of['insertTableRowAbove','insertTableRowBelow']){const _0x143af0=_0x479b2c['commands']['get'](_0x2dfccd);_0x355329['enableCommand'](_0x2dfccd,_0x48c8dc=>{_0x479b2c['model']['change'](_0x3dcd1d=>{_0x48c8dc();const _0x10cbac='above'===_0x143af0['order'],_0x2dbb51=_0x455788['getSelectionAffectedTableCells'](_0x3c3c2c),_0x1266c1=_0x455788['getRowIndexes'](_0x2dbb51),_0xed4103=_0x10cbac?_0x1266c1['first']-0x1:_0x1266c1['last']+0x1,_0x6b8bc2=_0x2dbb51[0x0]['findAncestor']('table'),_0x3c4820=_0x455788['createTableWalker'](_0x6b8bc2,{'startRow':_0xed4103,'endRow':_0xed4103}),_0x408ee4=Array['from'](_0x3c4820)['map'](_0x29ed59=>_0x3dcd1d['createRangeOn'](_0x29ed59['cell']));_0x355329['markMultiRangeInsertion'](_0x408ee4,'tableRow');});});}for(const _0x274085 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3ca0bd=_0x479b2c['commands']['get'](_0x274085);_0x355329['enableCommand'](_0x274085,_0x2bc489=>{_0x479b2c['model']['change'](_0x595d07=>{_0x2bc489();const _0x134671='left'===_0x3ca0bd['order'],_0x41c991=_0x455788['getSelectionAffectedTableCells'](_0x3c3c2c),_0x797c21=_0x455788['getColumnIndexes'](_0x41c991),_0x4c4b7e=_0x134671?_0x797c21['first']-0x1:_0x797c21['last']+0x1,_0xfc2018=_0x41c991[0x0]['findAncestor']('table'),_0x2636a6=_0x455788['createTableWalker'](_0xfc2018,{'startRow':0x0,'column':_0x4c4b7e,'includeAllSlots':!0x1}),_0x13730e=Array['from'](_0x2636a6)['map'](_0x43271c=>_0x595d07['createRangeOn'](_0x43271c['cell']));_0x355329['markMultiRangeInsertion'](_0x13730e,'tableColumn');});});}for(const _0x3ffd08 of['removeTableRow','removeTableColumn']){const _0x171f75=_0x3ffd08['substr'](0xb),_0x14285b=_0x171f75['toLowerCase'](),_0x4527a5=_0x14285b['substr'](0x0,0x3)+'span',_0x44fd5f='table'+_0x171f75,_0x27c2b8='min'+_0x171f75,_0x5793a3='max'+_0x171f75;_0x355329['enableCommand'](_0x3ffd08,()=>{_0x479b2c['model']['change'](_0x49fd34=>{const _0x4e69be=_0x455788['getSelectionAffectedTableCells'](_0x3c3c2c),_0x111991=_0x4e69be[0x0]['findAncestor']('table');let _0x29b60d;if('removeTableRow'==_0x3ffd08){const _0x37e446=_0x455788['getRowIndexes'](_0x4e69be);_0x29b60d={'startRow':_0x37e446['first'],'endRow':_0x37e446['last'],'includeAllSlots':!0x0};}else{const _0x7c6e27=_0x455788['getColumnIndexes'](_0x4e69be);_0x29b60d={'startColumn':_0x7c6e27['first'],'endColumn':_0x7c6e27['last'],'includeAllSlots':!0x0};}const _0x60dfd9=_0x455788['createTableWalker'](_0x111991,_0x29b60d),_0x380dd7=Array['from'](_0x60dfd9)['map'](({cell:_0x4cc120})=>_0x4cc120),_0x193c13=_e(_0x380dd7['filter'](_0x50cfd2=>_0x50cfd2['hasAttribute'](_0x4527a5))),_0x26328a=_e(_0x380dd7['filter'](_0x316de0=>!_0x316de0['hasAttribute'](_0x4527a5)))['map'](_0x516aba=>_0x49fd34['createRangeOn'](_0x516aba)),_0x1e1ddc=_0x355329['markMultiRangeDeletion'](_0x26328a,_0x44fd5f);if(_0x1e1ddc&&('tableRow'==_0x1e1ddc['subType']||'tableColumn'==_0x1e1ddc['subType'])){const _0x5f22cb=this['_getSuggestionCoords'](_0x1e1ddc);for(const _0x317e9d of _0x193c13){const _0x5d8d1f=_0x49fd34['createRangeOn'](_0x317e9d),_0x3aa2e0=_0x455788['getCellLocation'](_0x317e9d),_0x3f26d4=_0x317e9d['getAttribute'](_0x4527a5)-0x1,_0x111b5e=_0x5f22cb[_0x27c2b8],_0x1a5200=_0x5f22cb[_0x5793a3];_0x111b5e<=_0x3aa2e0[_0x14285b]&&_0x3aa2e0[_0x14285b]+_0x3f26d4<=_0x1a5200&&_0x1e1ddc['addRange'](_0x5d8d1f);}}});});}function _0x2287ff(_0x45c14a){const _0x147c1c=Array['from'](_0x3c3c2c['getRanges']())['map'](_0x2e98bf=>_0x7e27aa['fromRange'](_0x2e98bf));_0x479b2c['model']['change'](_0x417cc9=>{const _0x2e2b2d=_0x417cc9['batch'];_0x45c14a=_0x45c14a['filter'](_0x604e7c=>'$graveyard'!=_0x604e7c['root']['rootName']),_0x417cc9['setSelection'](_0x45c14a),_0x479b2c['commands']['get']('removeTableRow')['refresh'](),_0x479b2c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x479b2c['model']['enqueueChange'](()=>{_0x479b2c['model']['enqueueChange'](_0x2e2b2d,_0x31a1a7=>{const _0x16a5d3=_0x147c1c['filter'](_0x5d4299=>'$graveyard'!=_0x5d4299['root']['rootName']);_0x16a5d3['length']>0x0&&_0x31a1a7['setSelection'](_0x16a5d3);for(const _0x423a61 of _0x147c1c)_0x423a61['detach']();});});});}function _0x35def2(_0x2e8ef3){_0x479b2c['model']['change'](_0x539d93=>{const _0x52b881=Array['from'](_0x3c3c2c['getRanges']())['map'](_0x2d416b=>_0x7e27aa['fromRange'](_0x2d416b)),_0x30b327=[];for(const _0x2b83c1 of _0x2e8ef3)for(const _0xfbfbb3 of _0x2b83c1['getItems']({'shallow':!0x0}))_0x30b327['push'](_0xfbfbb3);for(const _0x123f18 of _0x30b327)'$graveyard'!=_0x123f18['root']['rootName']&&(_0x539d93['setSelection'](_0x539d93['createPositionAt'](_0x123f18,0x0)),_0x479b2c['commands']['get']('removeTableColumn')['refresh'](),_0x479b2c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x162667=_0x52b881['filter'](_0x32e132=>'$graveyard'!=_0x32e132['root']['rootName']);_0x162667['length']>0x0&&_0x539d93['setSelection'](_0x162667);for(const _0x2dd4df of _0x52b881)_0x2dd4df['detach']();});}function _0x4e5a3e(_0x471bec,_0x2bd82e){return _0x2bd82e['every'](_0x21a168=>_0x471bec['some'](_0xc5bca0=>_0xc5bca0['end']['isEqual'](_0x21a168['start'])||_0x21a168['end']['isEqual'](_0xc5bca0['start'])));}function _0x4291df(_0x3476fe,_0x413aef){return!_0x3476fe['some'](_0x23d61b=>_0x413aef['some'](_0xef5589=>_0x23d61b['isIntersecting'](_0xef5589)))&&_0x3476fe['some'](_0x557102=>_0x413aef['some'](_0x1d41ea=>_0x557102['end']['isTouching'](_0x1d41ea['start'])));}_0x355329['descriptionFactory']['registerDescriptionCallback'](_0x555121=>{if('insertion'!=_0x555121['type']&&'deletion'!=_0x555121['type'])return;const _0xcae823=_0x555121['getContainedElement']();if(null!=_0xcae823&&_0xcae823['is']('element','table')){if('insertion'==_0x555121['type']){const _0x3ff11a=_0x555121['getItems']()['filter'](_0x403aa9=>_0x403aa9['is']('$textProxy'))['map'](_0x2e0ae2=>_0x2e0ae2['data']);if(_0x3ff11a['length'])return{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ff11a['join']('\x20')+'\x22'))};}if('deletion'==_0x555121['type']){const _0x2e306d=_0x555121['getItems']()['filter'](_0x4e2dc4=>_0x4e2dc4['is']('$textProxy'))['map'](_0xd73036=>_0xd73036['data']);if(_0x2e306d['length'])return{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2e306d['join']('\x20')+'\x22'))};}}}),_0x355329['descriptionFactory']['registerDescriptionCallback'](_0x2a4371=>{if('tableRow'==_0x2a4371['subType']){const _0x41678b=_0x2a4371['getItems']()['filter'](_0x54cb36=>_0x54cb36['is']('$textProxy'))['map'](_0x52d842=>_0x52d842['data']),_0x31037f=this['_getSuggestionCoords'](_0x2a4371),_0x3e5550=_0x31037f['maxRow']-_0x31037f['minRow']+0x1;if('insertion'==_0x2a4371['type'])return _0x41678b['length']?{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e5550,'\x22'+_0x41678b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_ROW',_0x3e5550))};if('deletion'==_0x2a4371['type'])return _0x41678b['length']?{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e5550,'\x22'+_0x41678b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_ROW',_0x3e5550))};}if('tableColumn'==_0x2a4371['subType']){const _0x5b597d=_0x2a4371['getItems']()['filter'](_0x58999d=>_0x58999d['is']('$textProxy'))['map'](_0x3cfb72=>_0x3cfb72['data']),_0x22fb22=this['_getSuggestionCoords'](_0x2a4371),_0x286148=_0x22fb22['maxColumn']-_0x22fb22['minColumn']+0x1;if('insertion'==_0x2a4371['type'])return _0x5b597d['length']?{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x286148,'\x22'+_0x5b597d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34406b,'*Insert:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_COLUMN',_0x286148))};if('deletion'==_0x2a4371['type'])return _0x5b597d['length']?{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x286148,'\x22'+_0x5b597d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34406b,'*Remove:*\x20%0',o(_0x34406b,'ELEMENT_TABLE_COLUMN',_0x286148))};}}),_0x355329['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2287ff),_0x355329['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2287ff),_0x355329['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x35def2),_0x355329['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x35def2),_0x355329['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e5a3e),_0x355329['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e5a3e),_0x355329['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4291df),_0x355329['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4291df);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3d00ae=this['editor'],_0x5ba9e1=_0x3d00ae['model']['document']['selection'];return(_0x4b02fc,_0x421e6c)=>{_0x3d00ae['model']['change'](_0x758c3f=>{const {commandName:_0xe1103c,commandParams:_0x120562}=_0x421e6c;let _0x8dd406=_0x4b02fc[0x0]['end']['nodeBefore'];_0x120562&&_0x120562[0x0]&&!0x1===_0x120562[0x0]['forceValue']&&(_0x8dd406=_0x4b02fc[0x0]['start']['nodeAfter']);const _0xe177ff=_0x758c3f['createRangeIn'](_0x8dd406);if('$graveyard'==_0xe177ff['root']['rootName'])return;const _0x3cf78c=Array['from'](_0x5ba9e1['getRanges']())['map'](_0xe3320e=>_0x7e27aa['fromRange'](_0xe3320e));_0x758c3f['setSelection'](_0xe177ff),_0x3d00ae['commands']['get'](_0xe1103c)['refresh'](),_0x120562['push']({'forceDefaultExecution':!0x0}),_0x3d00ae['execute'](_0xe1103c,..._0x120562);const _0xb0e470=_0x3cf78c['filter'](_0x3d15b5=>'$graveyard'!=_0x3d15b5['root']['rootName']);_0xb0e470['length']>0x0&&_0x758c3f['setSelection'](_0xb0e470);for(const _0x235e06 of _0x3cf78c)_0x235e06['detach']();});};}['_getCoordsForCells'](_0x32f1cc){const _0x44c721=this['editor']['plugins']['get']('TableUtils');let _0x54f07d=Number['MAX_SAFE_INTEGER'],_0x459dac=Number['MIN_SAFE_INTEGER'],_0x1e9a98=Number['MAX_SAFE_INTEGER'],_0x1c6cbd=Number['MIN_SAFE_INTEGER'];for(const _0x42263a of _0x32f1cc){if('$graveyard'==_0x42263a['root']['rootName'])continue;const {row:_0x2c3cfb,column:_0x2a6c9a}=_0x44c721['getCellLocation'](_0x42263a),_0xbcdcef=_0x42263a['hasAttribute']('rowspan')?_0x42263a['getAttribute']('rowspan')-0x1:0x0,_0x56a260=_0x42263a['hasAttribute']('colspan')?_0x42263a['getAttribute']('colspan')-0x1:0x0;_0x54f07d=_0x2c3cfb<_0x54f07d?_0x2c3cfb:_0x54f07d,_0x459dac=_0x2c3cfb+_0xbcdcef>_0x459dac?_0x2c3cfb+_0xbcdcef:_0x459dac,_0x1e9a98=_0x2a6c9a<_0x1e9a98?_0x2a6c9a:_0x1e9a98,_0x1c6cbd=_0x2a6c9a+_0x56a260>_0x1c6cbd?_0x2a6c9a+_0x56a260:_0x1c6cbd;}return{'minRow':_0x54f07d,'maxRow':_0x459dac,'minColumn':_0x1e9a98,'maxColumn':_0x1c6cbd};}['_setupColumnsRowsFixing'](){const _0x4d6f93=this['editor'],_0x22744a=_0x4d6f93['plugins']['get']('TrackChangesEditing'),_0x3150f0=_0x4d6f93['plugins']['get']('TableUtils');_0x4d6f93['model']['document']['on']('change:data',()=>{const _0x1e288c=Array['from'](_0x4d6f93['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cf3c7,data:_0x39b278}of _0x1e288c){const {group:_0x177735,id:_0x915a2f,subType:_0x1b8b74}=_0x22744a['_splitMarkerName'](_0x1cf3c7);if('suggestion'!=_0x177735)continue;if(null!=_0x39b278['oldRange'])continue;const _0xd1a27c=_0x22744a['getSuggestion'](_0x915a2f);this['_tablePostFixingSubtypes']['includes'](_0x1b8b74)&&this['_tableSuggestions']['add'](_0xd1a27c);}},{'priority':'low'});const _0x4ad6f5=(_0x1777dd,_0x571cc6)=>{let _0x5846cd=!0x1;const _0x383c3d=_0x571cc6['createRangeOn'](_0x1777dd),_0x2907f2=_0x1777dd['findAncestor']('table'),_0x2b9844=_0x3150f0['getCellLocation'](_0x1777dd);for(const _0x1abb05 of this['_tableSuggestions']){const _0x15e29d=_0x1abb05['subType'],_0x28087d=_0x15e29d['startsWith']('tablePaste'),_0x55e64b=_0x15e29d['substr'](_0x28087d?0xa:0x5),_0x10dd7e=_0x55e64b['toLowerCase'](),_0x44d8ca=_0x10dd7e['substr'](0x0,0x3)+'span',_0x4b2bb0='min'+_0x55e64b,_0x55d01f='max'+_0x55e64b;if(!_0x1abb05['isInContent'])continue;if(_0x2907f2!=_0x1abb05['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1abb05['isIntersectingWithRange'](_0x383c3d))continue;const _0x5ce4f7=_0x1777dd['hasAttribute'](_0x44d8ca)?_0x1777dd['getAttribute'](_0x44d8ca)-0x1:0x0,_0x2f3fd3=this['_getSuggestionCoords'](_0x1abb05),_0x3a0ab6=_0x2f3fd3[_0x4b2bb0],_0x1964e7=_0x2f3fd3[_0x55d01f];_0x3a0ab6<=_0x2b9844[_0x10dd7e]&&_0x2b9844[_0x10dd7e]+_0x5ce4f7<=_0x1964e7&&(_0x1abb05['addRange'](_0x383c3d),_0x5846cd=!0x0);}return _0x5846cd;};_0x4d6f93['model']['document']['registerPostFixer'](_0x199992=>{let _0x4844d0=!0x1;for(const _0x1461c4 of _0x4d6f93['model']['document']['differ']['getChanges']())if('insert'==_0x1461c4['type']){if('tableRow'==_0x1461c4['name']){for(const _0x5b7d42 of _0x1461c4['position']['nodeAfter']['getChildren']())_0x4844d0=_0x4844d0||_0x4ad6f5(_0x5b7d42,_0x199992);}else'tableCell'==_0x1461c4['name']&&(_0x4844d0=_0x4844d0||_0x4ad6f5(_0x1461c4['position']['nodeAfter'],_0x199992));}return _0x4844d0;});}['_getSuggestionCoords'](_0x1b57b5){return this['_getCoordsForCells'](_0x1b57b5['getRanges']()['map'](_0x7e11a1=>_0x7e11a1['start']['nodeAfter']));}}function _e(_0x11260a){return Array['from'](new Set(_0x11260a)['values']());}class $t extends _0x21c11d{static get['requires'](){return[Nt];}['afterInit'](){const _0x5e8f9e=this['editor'],_0x13ed72=_0x5e8f9e['model']['document']['selection'],_0x5b7f0d=_0x5e8f9e['locale'];if(!_0x5e8f9e['plugins']['has']('TableEditing'))return;const _0x1ab398=_0x5e8f9e['plugins']['get']('TrackChangesEditing'),_0x58da7b=_0x5e8f9e['plugins']['get']('TableUtils'),_0x50ac3f=_0x5e8f9e['plugins']['get'](Nt);_0x50ac3f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ab398['enableCommand']('mergeTableCells',()=>{const _0x16a788=_0x58da7b['getSelectionAffectedTableCells'](_0x5e8f9e['model']['document']['selection']);_0x5e8f9e['model']['change'](()=>{_0x1ab398['markMultiRangeBlockFormat'](_0x16a788,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5e8f9e['commands']['get']('mergeTableCells')['on']('execute',(_0x1c6a74,_0x45a1b5)=>{_0x5e8f9e['commands']['get']('trackChanges')['value']&&(_0x45a1b5['length']>0x0&&_0x45a1b5[_0x45a1b5['length']-0x1]&&_0x45a1b5[_0x45a1b5['length']-0x1]['forceDefaultExecution']||_0x1ab398['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1c6a74['stop']());},{'priority':'highest'});for(const _0x25ed37 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xdd6cc6=_0x5e8f9e['commands']['get'](_0x25ed37);_0x1ab398['enableCommand'](_0x25ed37,()=>{const _0x4760a4=_0x5e8f9e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8b721c=>_0x8b721c['is']('element','tableCell')),_0x1ca055=_0xdd6cc6['value'];_0x5e8f9e['model']['change'](()=>{_0x1ab398['markMultiRangeBlockFormat']([_0x4760a4,_0x1ca055],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x593375 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1604c3=_0x5e8f9e['commands']['get'](_0x593375);_0x1ab398['enableCommand'](_0x593375,()=>{const _0x5bf6c5=_0x58da7b['getSelectionAffectedTableCells'](_0x5e8f9e['model']['document']['selection'])[0x0],_0xfdb4e2=_0x5bf6c5['findAncestor']('table'),{column:_0x3315f7,row:_0x362013}=_0x58da7b['getCellLocation'](_0x5bf6c5);let _0x484955=[];if('horizontally'==_0x1604c3['direction']){const _0x4929ba=_0x58da7b['createTableWalker'](_0xfdb4e2,{'startRow':_0x362013,'endRow':_0x362013,'includeAllSlots':!0x0});_0x484955=Array['from'](_0x4929ba)['map'](_0x5f25de=>_0x5f25de['cell']);}else{const _0x4466ec=_0x58da7b['createTableWalker'](_0xfdb4e2,{'column':_0x3315f7,'includeAllSlots':!0x0});_0x484955=Array['from'](_0x4466ec)['map'](_0x16a47d=>_0x16a47d['cell']);}_0x5e8f9e['model']['change'](_0x38e156=>{_0x1ab398['markBlockFormat'](_0x38e156['createRangeOn'](_0x5bf6c5),{'commandName':_0x593375,'commandParams':[]},_0x484955,_0x593375);});});}_0x1ab398['descriptionFactory']['registerDescriptionCallback'](_0x3d931f=>{if('formatBlock'!=_0x3d931f['type']&&'formatInline'!=_0x3d931f['type'])return;const {data:_0x3fcedb}=_0x3d931f;return _0x3fcedb&&'mergeTableCells'==_0x3fcedb['commandName']?{'type':'format','content':o(_0x5b7f0d,'*Merge\x20cells*')}:void 0x0;}),_0x1ab398['descriptionFactory']['registerDescriptionCallback'](_0x33ff14=>{if('formatBlock'!=_0x33ff14['type']&&'formatInline'!=_0x33ff14['type'])return;const {data:_0x1cdb98}=_0x33ff14;return _0x1cdb98?'splitTableCellVertically'==_0x1cdb98['commandName']?{'type':'format','content':o(_0x5b7f0d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1cdb98['commandName']?{'type':'format','content':o(_0x5b7f0d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x34cf74=_0x50ac3f['_acceptFormatSuggestionCallbackFactory']();for(const _0x56da61 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ab398['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56da61,'accept',_0x34cf74);for(const _0x44da94 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ab398['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44da94,'accept',_0x34cf74);_0x1ab398['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x252b18=>{_0x5e8f9e['model']['change'](_0x41f96b=>{const _0x59beb9=Array['from'](_0x13ed72['getRanges']())['map'](_0x30cf7f=>_0x7e27aa['fromRange'](_0x30cf7f));_0x41f96b['setSelection'](_0x252b18),_0x5e8f9e['commands']['get']('mergeTableCells')['refresh'](),_0x5e8f9e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xe6825b=_0x59beb9['filter'](_0x2f9647=>'$graveyard'!=_0x2f9647['root']['rootName']);_0xe6825b['length']>0x0&&_0x41f96b['setSelection'](_0xe6825b);for(const _0x390034 of _0x59beb9)_0x390034['detach']();});});for(const _0x439e1d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x463157=_0x5e8f9e['commands']['get'](_0x439e1d);_0x463157['on']('set:isEnabled',(_0x12ca7b,_0x50e477,_0x22c5ee)=>{if(_0x22c5ee){const _0x2e8db6=_0x5e8f9e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4034b7=>_0x4034b7['is']('element','tableCell'));this['_areMergableCells'](_0x463157['value'],_0x2e8db6)||(_0x12ca7b['return']=!0x1,_0x12ca7b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1db092=this['editor']['commands']['get']('mergeTableCells'),_0x6277e4=this['editor']['plugins']['get']('TableUtils');if(!_0x1db092['isEnabled'])return!0x1;const _0x19b2a6=_0x6277e4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1dd05d of _0x19b2a6)for(const _0x3213ad of _0x19b2a6)if(_0x1dd05d!=_0x3213ad&&!this['_areMergableCells'](_0x1dd05d,_0x3213ad))return!0x1;return!0x0;}['_areMergableCells'](_0x5bcf8a,_0x41ebcd){const _0x3d2e08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x436731=this['editor']['model']['createRangeOn'](_0x5bcf8a),_0x5d6003=this['editor']['model']['createRangeOn'](_0x41ebcd),_0x3b6fde=new Set(),_0xa41004=new Set();for(const _0xe51401 of _0x3d2e08['getSuggestions']())if(('insertion'==_0xe51401['type']||'deletion'==_0xe51401['type']||'mergeTableCells'==_0xe51401['subType'])&&_0xe51401['isInContent']){for(const _0xeefe7b of _0xe51401['getRanges']())_0xeefe7b['containsRange'](_0x436731,!0x0)&&_0x3b6fde['add'](_0xe51401['type']+':'+_0xe51401['author']['id']),_0xeefe7b['containsRange'](_0x5d6003,!0x0)&&_0xa41004['add'](_0xe51401['type']+':'+_0xe51401['author']['id']);}if(_0x3b6fde['size']!=_0xa41004['size'])return!0x1;for(const _0x5bd970 of _0x3b6fde)if(!_0xa41004['has'](_0x5bd970))return!0x1;return!0x0;}}class vt extends _0x21c11d{static get['requires'](){return[Nt];}['afterInit'](){const _0x3fe22b=this['editor'];if(!_0x3fe22b['plugins']['has']('TableEditing'))return;const _0x2e59a1=_0x3fe22b['locale'],_0x176a2b=_0x3fe22b['plugins']['get']('TrackChangesEditing');_0x176a2b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x176a2b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x176a2b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2e59a1,'FORMAT_HEADER_ROW')),_0x176a2b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2e59a1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1136bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15d645=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x1136bd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x15d645),_0x1136bd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x15d645),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x17531a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3de971=this['editor']['plugins']['get']('TableUtils');function _0x86a7d({showActiveMarker:_0x20a0a0=!0x0,setDataAttribute:_0x2f879b=!0x0}={}){return(_0x1886a3,_0x226e49,_0x28f86a)=>{const {type:_0x2bc56c,id:_0x34e04d}=_0x17531a['_splitMarkerName'](_0x226e49['markerName']);if(!_0x17531a['hasSuggestion'](_0x34e04d))return;const _0x551ffd=_0x17531a['getSuggestion'](_0x34e04d),_0x599047=_0x551ffd['data'];if('formatBlock'!=_0x551ffd['type']||!_0x599047||'setTableColumnHeader'!=_0x599047['commandName'])return;if(_0x226e49['item'])return void _0x1886a3['stop']();if(!_0x28f86a['consumable']['consume'](_0x226e49['markerRange'],_0x1886a3['name']))return;const _0x437b65=_0x226e49['markerRange']['start']['nodeAfter'],_0x30efce=_0x226e49['markerRange']['end']['nodeBefore'],_0x104467=_0x437b65['parent']['parent'],{column:_0x2814e2}=_0x3de971['getCellLocation'](_0x437b65),{column:_0x23d3b0}=_0x3de971['getCellLocation'](_0x30efce);for(let _0x477103=_0x2814e2;_0x477103<=_0x23d3b0;_0x477103++){const _0x33df07=_0x3de971['createTableWalker'](_0x104467,{'column':_0x477103,'includeAllSlots':!0x1});for(const _0xec5686 of _0x33df07){const _0x231ddc=_0xec5686['cell'],_0x174a12=_0x28f86a['mapper']['toViewElement'](_0x231ddc);_0x28f86a['writer']['addClass']('ck-suggestion-marker-'+_0x2bc56c,_0x174a12),_0x2f879b&&_0x28f86a['writer']['setAttribute']('data-suggestion',_0x34e04d,_0x174a12),_0x28f86a['mapper']['bindElementToMarker'](_0x174a12,_0x226e49['markerName']),_0x20a0a0&&(_0x17531a['activeMarkers']['includes'](_0x226e49['markerName'])?_0x28f86a['writer']['addClass']('ck-suggestion-marker--active',_0x174a12):_0x28f86a['writer']['removeClass']('ck-suggestion-marker--active',_0x174a12));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x86a7d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7cfda6,_0xa3c256,_0x2f797c)=>{_0x2f797c['options']['showSuggestionHighlights']&&_0x86a7d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x7cfda6,_0xa3c256,_0x2f797c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x17c0c4,_0x1341ce,_0x26e765)=>{const {type:_0x349222,id:_0x58de74}=_0x17531a['_splitMarkerName'](_0x1341ce['markerName']);if(!_0x17531a['hasSuggestion'](_0x58de74))return;const _0x117d9d=_0x17531a['getSuggestion'](_0x58de74),_0x17123b=_0x117d9d['data'];if('formatBlock'!=_0x117d9d['type']||!_0x17123b||'setTableColumnHeader'!=_0x17123b['commandName'])return;const _0x7cc373=_0x26e765['mapper']['markerNameToElements'](_0x1341ce['markerName']);if(_0x7cc373){for(const _0x3219ea of _0x7cc373)_0x26e765['writer']['removeClass']('ck-suggestion-marker-'+_0x349222,_0x3219ea),_0x26e765['writer']['removeClass']('ck-suggestion-marker--active',_0x3219ea),_0x26e765['writer']['removeAttribute']('data-suggestion',_0x3219ea),_0x26e765['mapper']['unbindElementFromMarkerName'](_0x3219ea,_0x1341ce['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x56525c=this['editor'],_0xd0d224=_0x56525c['locale'];function _0x335967(_0x3d941b){return{'type':'format','content':o(_0xd0d224,'*Format:*\x20%0',_0x3d941b)};}_0x56525c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308d12=>{if('formatBlock'!=_0x308d12['type'])return;const {data:_0x365353}=_0x308d12;if(_0x365353){if('setTableRowHeader'==_0x365353['commandName']){const _0x595aa8=_0x365353['commandParams'][0x0]['forceValue'];return _0x335967(o(_0xd0d224,_0x595aa8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x365353['commandName']){const _0x5db95f=_0x365353['commandParams'][0x0]['forceValue'];return _0x335967(o(_0xd0d224,_0x5db95f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x21c11d{['afterInit'](){const _0x303a8d=this['editor'],_0x45e54b=_0x303a8d['locale'],_0x51cabc=_0x303a8d['plugins']['get']('TrackChangesEditing');function _0x1e2e1b(_0x1079b1){return{'type':'format','content':''+o(_0x45e54b,'*Set\x20table\x20type:*\x20%0',_0x1079b1)};}_0x303a8d['plugins']['has']('TableLayout')&&(_0x51cabc['enableCommand']('insertTableLayout'),_0x51cabc['enableDefaultAttributesIntegration']('tableType'),_0x51cabc['descriptionFactory']['registerElementLabel'](_0x5ead4b=>_0x5ead4b['is']('element','table')&&'layout'===_0x5ead4b['getAttribute']('tableType'),_0x10992f=>o(_0x45e54b,'ELEMENT_LAYOUT_TABLE',_0x10992f)),_0x51cabc['descriptionFactory']['registerDescriptionCallback'](_0x492ffb=>{const {data:_0x311a74}=_0x492ffb;if(_0x311a74&&'tableType'==_0x311a74['key'])switch(_0x311a74['newValue']){case'layout':return _0x1e2e1b(o(_0x45e54b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1e2e1b(o(_0x45e54b,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x336fdc=>[_0x336fdc,null]));class Bt extends _0x21c11d{static get['requires'](){return[Nt];}['afterInit'](){const _0x42692a=this['editor'];if(!_0x42692a['plugins']['has']('TableClipboard'))return;const _0x4b376d=_0x42692a['plugins']['get']('TrackChangesEditing'),_0x3b4c0b=_0x42692a['plugins']['get']('TableUtils'),_0x52ef4e=_0x42692a['plugins']['get'](Nt),_0x253c95=_0x42692a['plugins']['get']('TableClipboard'),_0x7b7e7=_0x42692a['plugins']['get']('TableSelection'),_0x344e33=_0x42692a['plugins']['get'](_0x389491);_0x52ef4e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42692a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42692a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5dfa82=null,_0x3c0a01=!0x1;_0x344e33['on']('contentInsertion',(_0x558785,_0x5ebfa8)=>{_0x3c0a01='paste'===_0x5ebfa8['method'];}),_0x42692a['model']['on']('insertContent',(_0x50a759,_0x41ebd9)=>{if(!_0x3c0a01&&null===_0x7b7e7['getSelectedTableCells']())return;const [_0x3a98a5,_0x25dfe8]=_0x41ebd9,_0x4baecf=_0x41ebd9[_0x41ebd9['length']-0x1];_0x4baecf&&_0x4baecf['forceDefaultExecution']||_0x4b376d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x18bbcf,_0x58c59f,_0x49e695,_0x6e50e9,_0x261493){if(_0x58c59f&&!_0x58c59f['is']('documentSelection'))return!0x1;const _0x1536b9=_0x261493['getTableIfOnlyTableInContent'](_0x18bbcf,_0x49e695);if(!_0x1536b9||!Oe(_0x1536b9,void 0x0,_0x6e50e9))return!0x1;const _0x2e4298=_0x6e50e9['getSelectionAffectedTableCells'](_0x49e695['document']['selection']);if(!_0x2e4298['length'])return!0x1;const _0x5c2054=_0x2e4298[0x0]['findAncestor']('table'),_0x37fd3d=_0x6e50e9['getRowIndexes'](_0x2e4298),_0x30d64d=_0x6e50e9['getColumnIndexes'](_0x2e4298),_0x800ad={'startRow':_0x37fd3d['first'],'endRow':_0x37fd3d['last'],'startColumn':_0x30d64d['first'],'endColumn':_0x30d64d['last']};return 0x1==_0x2e4298['length']&&(_0x800ad['endRow']+=_0x6e50e9['getRows'](_0x1536b9)-0x1,_0x800ad['endColumn']+=_0x6e50e9['getColumns'](_0x1536b9)-0x1),Oe(_0x5c2054,_0x800ad,_0x6e50e9);}(_0x3a98a5,_0x25dfe8,_0x42692a['model'],_0x3b4c0b,_0x253c95)&&(_0x50a759['stop'](),_0x5dfa82={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42692a['model']['change'](()=>{_0x42692a['model']['insertContent'](_0x41ebd9[0x0],_0x41ebd9[0x1],_0x41ebd9[0x2],{'forceDefaultExecution':!0x0});const _0x264097=_0x49bc9e(),{rowInsertionRanges:_0x3a1e43,columnInsertionRanges:_0x1b1397,insertionRanges:_0x182214,deletionRanges:_0x2873f3,cells:_0x2f94a2}=_0x5dfa82;_0x3a1e43['length']&&_0x4b376d['markMultiRangeInsertion'](_0x3a1e43,'tablePasteRow',{'tablePasteChainId':_0x264097}),_0x1b1397['length']&&_0x4b376d['markMultiRangeInsertion'](_0x1b1397,'tablePasteColumn',{'tablePasteChainId':_0x264097}),_0x182214['length']&&(_0x4b376d['markMultiRangeInsertion'](_0x182214,'tablePaste',{'tablePasteChainId':_0x264097,'skipNestingCheck':!0x0}),_0x182214['forEach'](_0x22812b=>_0x22812b['detach']?.())),_0x2873f3['length']&&(_0x4b376d['markMultiRangeDeletion'](_0x2873f3,'tablePaste',{'tablePasteChainId':_0x264097,'skipNestingCheck':!0x0}),_0x2873f3['forEach'](_0x4fbb80=>_0x4fbb80['detach']?.()));const _0x8d2661=_0x4b376d['markMultiRangeBlockFormat'](_0x2f94a2['map'](({element:_0x372da6})=>_0x372da6),{'formatGroupId':_0x49bc9e()},[],'tablePasteCell',{'tablePasteChainId':_0x264097});if(_0x8d2661){const _0x435704=_0x8d2661['getMarkers'](),_0x287ddb=[];for(const {element:_0x22fcbc,attributes:_0x25e645}of _0x2f94a2){if(!_0x25e645)continue;const _0x1e186f=_0x42692a['model']['createRangeOn'](_0x22fcbc),_0x3e05ed=_0x435704['find'](_0x45237b=>_0x45237b['getRange']()['isEqual'](_0x1e186f));_0x3e05ed&&_0x287ddb['push']([_0x3e05ed['name'],_0x25e645]);}_0x287ddb['length']&&_0x8d2661['setAttribute']('markerAttributes',Object['fromEntries'](_0x287ddb));}_0x5dfa82=null;}));},{'priority':_0x1b8846['high']+0xa}),_0x344e33['on']('contentInsertion',()=>{_0x3c0a01=!0x1;},{'priority':'lowest'}),_0x42692a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4f5a45,_0x3fab2d)=>{const [_0x5ab3fa,_0x7cd71c,,_0x47aaa8]=_0x3fab2d;if(!_0x5dfa82)return;_0x4f5a45['stop']();const _0x241293=_0x5ab3fa['cell'],_0x316234=_0x7cd71c,_0x2a009b=Be(_0x241293),_0x25f88c=Be(_0x316234);_0x4f5a45['return']=_0x241293;let _0x448f0c=null,_0x161675=null;if(_0x25f88c||_0x2a009b){if(_0x2a009b&&!_0x25f88c){_0x47aaa8['remove'](_0x241293['getChild'](0x0));for(const _0x23f396 of Array['from'](_0x316234['getChildren']()))_0x47aaa8['insert'](_0x23f396,_0x241293,'end');const _0x3558a3=_0x5dfa82['rowInsertionIndexes']['includes'](_0x5ab3fa['row']),_0x190f56=_0x5dfa82['columnInsertionIndexes']['includes'](_0x5ab3fa['column']);_0x3558a3||_0x190f56||(_0x448f0c=_0x7e27aa['fromRange'](_0x47aaa8['createRangeIn'](_0x241293)));}else _0x25f88c&&!_0x2a009b&&(_0x161675=_0x47aaa8['createRangeIn'](_0x241293));}else{const _0x2ae1ee=_0x47aaa8['createElement']('tableCellSuggestion'),_0x173c3a=_0x47aaa8['createElement']('tableCellSuggestion');_0x47aaa8['wrap'](_0x47aaa8['createRangeIn'](_0x241293),_0x173c3a),_0x47aaa8['insert'](_0x2ae1ee,_0x241293,0x0);for(const _0x588c27 of Array['from'](_0x316234['getChildren']()))_0x47aaa8['insert'](_0x588c27,_0x2ae1ee,'end');_0x448f0c=_0x7e27aa['fromRange'](_0x47aaa8['createRangeOn'](_0x2ae1ee)),_0x161675=_0x7e27aa['fromRange'](_0x47aaa8['createRangeOn'](_0x173c3a));}const _0x5bdaa5=Array['from'](_0x316234['getAttributes']())['filter'](([_0x2a8236])=>Re['includes'](_0x2a8236));_0x5dfa82['cells']['push']({'element':_0x241293,'attributes':_0x5bdaa5['length']?Object['fromEntries'](_0x5bdaa5):null}),_0x448f0c&&_0x5dfa82['insertionRanges']['push'](_0x448f0c),_0x161675&&_0x5dfa82['deletionRanges']['push'](_0x161675);},{'priority':'high'}),_0x3b4c0b['on']('insertColumns',(_0x20f9cf,_0x6606b3)=>{const [_0x3bd93e,_0x1aa643={}]=_0x6606b3;if(!_0x5dfa82)return;const _0x2954be=_0x1aa643['at']||0x0,_0x13e91f=_0x1aa643['columns']||0x1;_0x5dfa82['columnInsertionIndexes']=new Array(_0x13e91f)['fill'](_0x2954be)['map']((_0x2056d1,_0x4d34c9)=>_0x2056d1+_0x4d34c9);for(const {cell:_0x65585b}of _0x3b4c0b['createTableWalker'](_0x3bd93e,{'startColumn':_0x2954be,'endColumn':_0x2954be+_0x13e91f-0x1}))_0x5dfa82['columnInsertionRanges']['push'](_0x42692a['model']['createRangeOn'](_0x65585b));},{'priority':'low'}),_0x3b4c0b['on']('insertRows',(_0xdf4f9e,_0x54ab61)=>{const [_0x28385b,_0x24b5a7={}]=_0x54ab61;if(!_0x5dfa82)return;const _0xee626d=_0x24b5a7['at']||0x0,_0x5b5b33=_0x24b5a7['rows']||0x1;_0x5dfa82['rowInsertionIndexes']=new Array(_0x5b5b33)['fill'](_0xee626d)['map']((_0x4866c6,_0x25183c)=>_0x4866c6+_0x25183c);for(const {cell:_0x2b1bbc}of _0x3b4c0b['createTableWalker'](_0x28385b,{'startRow':_0xee626d,'endRow':_0xee626d+_0x5b5b33-0x1}))_0x5dfa82['rowInsertionRanges']['push'](_0x42692a['model']['createRangeOn'](_0x2b1bbc));},{'priority':'low'}),_0x4b376d['descriptionFactory']['registerDescriptionCallback'](_0x5aac38=>{if(_0x5aac38['subType']&&_0x5aac38['subType']['startsWith']('tablePaste'))return _0x5aac38['previous']?{}:{'type':'insertion','content':o(_0x42692a['locale'],'*Replace\x20table\x20cells*')};});const _0xf21ac0=()=>!0x1;for(const _0x27875d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b376d['_suggestionFactory']['registerCustomCallback']('insertion',_0x27875d,'join',_0xf21ac0),_0x4b376d['_suggestionFactory']['registerCustomCallback']('deletion',_0x27875d,'join',_0xf21ac0),_0x4b376d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27875d,'join',_0xf21ac0);_0x4b376d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xf21ac0),_0x4b376d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5bc518,_0x2eb289,_0x492a59)=>{const _0x1be0c9=_0x5bc518['map'](_0x21c2fa=>_0x21c2fa['getContainedElement']())['filter'](_0x136a9f=>_0x136a9f),_0x4c49b0=new Map(_0x1be0c9['map'](_0xffa5f4=>[_0xffa5f4,null]));if(_0x5dfa82){for(const {element:_0x3b763f,attributes:_0x5ae526}of _0x5dfa82['cells'])_0x5ae526&&_0x4c49b0['set'](_0x3b763f,_0x5ae526);}else{if(_0x492a59&&_0x492a59['markerAttributes'])for(const [_0x50cc47,_0xbdec90]of Object['entries'](_0x492a59['markerAttributes'])){const _0x4c2cef=_0x42692a['model']['markers']['get'](_0x50cc47),_0x3badab=_0x4c2cef?_0x4c2cef['getRange']()['getContainedElement']():null;_0x3badab&&_0x4c49b0['set'](_0x3badab,_0xbdec90);}}_0x42692a['model']['change'](_0x39b119=>{for(const [_0x4c049a,_0x5352aa]of _0x4c49b0)_0x39b119['setAttributes']({...Ae,..._0x5352aa},_0x4c049a);});});const _0x31f035=(_0x358631,_0x331b28)=>{_0x4b376d['_suggestionFactory']['registerCustomCallback'](_0x358631,'tablePaste',_0x331b28,(_0x5f184c,_0x1be136,_0x172a2f)=>{_0x42692a['model']['change'](_0x149a8e=>{const _0x512129=[];for(const _0xbb1973 of _0x5f184c){const _0x39025b=_0xbb1973['start']['nodeAfter'];_0x39025b['is']('element','tableCellSuggestion')&&_0x512129['push'](_0x39025b);}_0x4b376d['_suggestionFactory']['getSuggestionCallback'](_0x358631,null,_0x331b28)(_0x5f184c,_0x1be136,_0x172a2f);for(const _0x420bc8 of _0x512129)'$graveyard'!=_0x420bc8['root']['rootName']&&_0x149a8e['unwrap'](_0x420bc8);});});};_0x31f035('insertion','accept'),_0x31f035('insertion','discard'),_0x31f035('deletion','accept'),_0x31f035('deletion','discard'),_0x4b376d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x315721=>{const _0x327a89=_0x315721['map'](_0x2a4e2f=>_0x2a4e2f['getContainedElement']()),_0x379d93=_0x327a89[0x0]['findAncestor']('table'),{minRow:_0x11023e,maxRow:_0xcfca24}=_0x52ef4e['_getCoordsForCells'](_0x327a89);_0x3b4c0b['removeRows'](_0x379d93,{'at':_0x11023e,'rows':_0xcfca24-_0x11023e+0x1});}),_0x4b376d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e9449=>{const _0x4741d5=_0x2e9449['map'](_0x4f4fa4=>_0x4f4fa4['getContainedElement']()),_0x365230=_0x4741d5[0x0]['findAncestor']('table'),{minColumn:_0x17f3b2,maxColumn:_0x39b4c6}=_0x52ef4e['_getCoordsForCells'](_0x4741d5);_0x3b4c0b['removeColumns'](_0x365230,{'at':_0x17f3b2,'columns':_0x39b4c6-_0x17f3b2+0x1});});const _0xea97f6=(_0x2f5028,_0x28d1d8)=>{if(!_0x28d1d8['subType']||!_0x28d1d8['subType']['startsWith']('tablePaste'))return;const _0x5c8342=_0x28d1d8['attributes']['tablePasteChainId'],_0x38d58c=_0x4b376d['getSuggestions']()['filter'](_0x3998d6=>_0x3998d6['isInContent']&&_0x3998d6['attributes']&&_0x3998d6['attributes']['tablePasteChainId']==_0x5c8342);_0x38d58c['length']&&_0x28d1d8['getAllAdjacentSuggestions']()['length']!=_0x38d58c['length']&&_0x38d58c['reduce']((_0x338365,_0x1bfce2)=>(_0x338365['next']=_0x1bfce2,_0x1bfce2['previous']=_0x338365,_0x1bfce2));};function _0x430ecd(_0x23a980,_0x31d449=!0x0){const {id:_0x10cde6,authorId:_0x39b670}=_0x4b376d['_splitMarkerName'](_0x23a980['markerName']),_0x1a2e8d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x38a258=_0x4b376d['activeMarkers']['includes'](_0x23a980['markerName']);return _0x38a258&&_0x1a2e8d['push']('ck-suggestion-marker--active'),{'classes':_0x1a2e8d,'attributes':{'data-suggestion':_0x10cde6,'data-author-id':_0x39b670},'priority':_0x38a258&&_0x31d449?0xbc2:0xbb8};}_0x4b376d['on']('suggestionLoaded',_0xea97f6,{'priority':'high'}),_0x4b376d['on']('suggestionUnloaded',_0xea97f6,{'priority':'high'}),_0x42692a['model']['document']['registerPostFixer'](()=>{let _0x3bf1d6=!0x1;const _0x2d4122=Array['from'](_0x42692a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bad57,data:_0x5f013e}of _0x2d4122){const {group:_0x1a71dd,type:_0x39ded7,id:_0x24858b}=_0x4b376d['_splitMarkerName'](_0x2bad57);if('suggestion'!=_0x1a71dd||'deletion'!=_0x39ded7||_0x5f013e['oldRange'])continue;if(!_0x4b376d['hasSuggestion'](_0x24858b))continue;const _0x1ce166=_0x4b376d['getSuggestion'](_0x24858b)['getRanges'](),_0x40755f=_0x42692a['plugins']['get']('Users')['me'];for(const _0x43f79d of _0x4b376d['getSuggestions']()){if(!_0x43f79d['isInContent']||_0x43f79d['author']!=_0x40755f)continue;if('formatBlock'!=_0x43f79d['type']||'tablePasteCell'!=_0x43f79d['subType'])continue;if(_0x43f79d['getRanges']()['every'](_0x4d4f90=>_0x1ce166['some'](_0x307dfc=>_0x307dfc['containsRange'](_0x4d4f90,!0x0)))){for(const _0x3ff33e of _0x43f79d['getAllAdjacentSuggestions']())_0x3ff33e['isInContent']&&(_0x3ff33e['discard'](),_0x3bf1d6=!0x0);}}}return _0x3bf1d6;}),_0x42692a['model']['document']['registerPostFixer'](_0x37f3a4=>{const _0x55dd79=_0x42692a['commands']['get']('redo');if(!_0x55dd79||!_0x55dd79['_createdBatches']['has'](_0x37f3a4['batch']))return!0x1;let _0x49b050=!0x1;const _0x1e2118=_0x42692a['plugins']['get']('Users')['me'],_0x3339a5=_0x42692a['model']['document']['differ']['getChanges'](),_0xd5eee5=Array['from'](_0x42692a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38300c,data:_0x40ac74})=>{const {group:_0x3a1517,subType:_0x1b3c5b,authorId:_0x223c89}=_0x4b376d['_splitMarkerName'](_0x38300c);return'suggestion'==_0x3a1517&&'tablePaste'==_0x1b3c5b&&_0x223c89==_0x1e2118['id']&&!_0x40ac74['oldRange'];});for(const _0x2e19d4 of _0x3339a5){if('insert'!=_0x2e19d4['type']||'tableCellSuggestion'!=_0x2e19d4['name']||0x1!=_0x2e19d4['length'])continue;const _0x5436ae=_0x37f3a4['createRange'](_0x2e19d4['position'],_0x2e19d4['position']['getShiftedBy'](0x1));if(!_0xd5eee5['find'](({data:_0x50424c})=>_0x50424c['newRange']['isEqual'](_0x5436ae))){for(const {name:_0x3939f2,data:_0x35472c}of _0xd5eee5)if(_0x5436ae['containsRange'](_0x35472c['newRange'])){_0x37f3a4['updateMarker'](_0x3939f2,{'range':_0x5436ae}),_0x49b050=!0x0;break;}}}return _0x49b050;}),_0x42692a['model']['document']['registerPostFixer'](_0x380d6d=>{let _0xc506f8=!0x1;const _0x1f3b0d=_0x42692a['plugins']['get']('Users')['me'],_0xd3ae5f=_0x4b376d['getSuggestions']()['filter'](_0x3e62ae=>_0x3e62ae['isInContent']&&_0x3e62ae['author']==_0x1f3b0d),_0x2abebb=new Set(),_0xb0116e=new Set();for(const _0x3348e3 of _0xd3ae5f)if('tablePaste'==_0x3348e3['subType'])for(const _0x233392 of _0x3348e3['getMarkers']()){const _0x2ad59a=_0x233392['getRange']()['getContainedElement']();if(_0x2ad59a){if(_0x2ad59a['is']('element','tableCellSuggestion')&&Be(_0x2ad59a)){_0x3348e3['removeMarker'](_0x233392['name']),_0x2abebb['add'](_0x2ad59a),_0xc506f8=!0x0;const _0x4f41df=_0x2ad59a['nextSibling'],_0x39f2c4=_0x2ad59a['previousSibling'],_0x4640ac=_0x4f41df&&_0x4f41df['is']('element','tableCellSuggestion'),_0x38ae72=_0x39f2c4&&_0x39f2c4['is']('element','tableCellSuggestion');_0x4640ac&&!_0x2abebb['has'](_0x4f41df)&&_0xb0116e['add'](_0x4f41df),_0x38ae72&&!_0x2abebb['has'](_0x39f2c4)&&_0xb0116e['add'](_0x39f2c4);}else _0x2ad59a['is']('element','paragraph')&&_0x2ad59a['isEmpty']&&(_0x3348e3['removeMarker'](_0x233392['name']),_0xc506f8=!0x0);}}else{if('tablePasteCell'==_0x3348e3['subType']){if(!_0x3348e3['attributes']||!_0x3348e3['attributes']['tablePasteChainId'])continue;const _0x9313f1=_0x3348e3['attributes']['markerAttributes'];if(_0x9313f1&&Object['keys'](_0x9313f1)['length'])continue;const _0x9337f5=_0x3348e3['attributes']['tablePasteChainId'];let _0x1b3919=!0x0,_0x2006d0=!0x0;for(const _0x1d04b5 of _0xd3ae5f)if(_0x1d04b5['subType']&&_0x1d04b5['subType']['startsWith']('tablePaste')){if(!_0x1d04b5['attributes']['tablePasteChainId']){_0x2006d0=!0x1;break;}if(_0x1d04b5['id']!=_0x3348e3['id']&&_0x1d04b5['attributes']['tablePasteChainId']==_0x9337f5){_0x1b3919=!0x1;break;}}_0x2006d0&&_0x1b3919&&(_0x3348e3['removeMarkers'](),_0xc506f8=!0x0);}}for(const _0xe6445b of _0x2abebb)_0x380d6d['remove'](_0xe6445b);for(const _0x3503f3 of _0xb0116e)_0x380d6d['unwrap'](_0x3503f3);return _0xc506f8;}),_0x42692a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x428708=>_0x430ecd(_0x428708),'converterPriority':'high'}),_0x42692a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e5eff,_0xbc9d55)=>_0xbc9d55['options']['showSuggestionHighlights']?_0x430ecd(_0x5e5eff,!0x1):null,'converterPriority':'high'});const _0x3da9e1=_0x42692a['editing']['view'];this['listenTo'](_0x3da9e1['document'],'clipboardOutput',(_0x395865,_0x1144cc)=>{const _0x1f9acb=[];for(const _0x1702fa of _0x3da9e1['createRangeIn'](_0x1144cc['content'])['getItems']())_0x1702fa['is']('element','suggestion-td')&&_0x1f9acb['push'](_0x1702fa);_0x3da9e1['change'](_0x41e8d3=>{for(const _0x4d8249 of _0x1f9acb)_0x41e8d3['move'](_0x41e8d3['createRangeIn'](_0x4d8249),_0x41e8d3['createPositionBefore'](_0x4d8249)),_0x41e8d3['remove'](_0x4d8249);});});}}function Be(_0x5e2369){if(_0x5e2369['isEmpty'])return!0x0;const _0x342f5b=_0x5e2369['getChild'](0x0);return _0x342f5b['is']('element','paragraph')&&_0x342f5b['isEmpty'];}function Oe(_0x239d71,_0x51c738={},_0x475372){for(const {isAnchor:_0x14d224,cellHeight:_0x1066c0,cellWidth:_0x125d4d}of _0x475372['createTableWalker'](_0x239d71,{'includeAllSlots':!0x0,..._0x51c738}))if(!_0x14d224||0x1!=_0x1066c0||0x1!=_0x125d4d)return!0x1;return!0x0;}class Ot extends _0x21c11d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x33eae4=this['editor']['plugins']['get']('TrackChangesEditing');_0x33eae4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x33eae4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x33eae4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33eae4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x33eae4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x33eae4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x421b17,_0x1a507e){const _0x1ff2be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2da19c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1012b5=_0x1a507e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x17632e=_0x2da19c['getColumnGroupElement'](_0x1012b5);let _0x3e8c63=_0x17632e?_0x2da19c['getTableColumnsWidths'](_0x17632e):null,_0x194b54=_0x1012b5['getAttribute']('tableWidth')||null;const _0x4ee959=_0x1a507e['tableWidth']||_0x194b54,_0x4a5dc2=_0x1a507e['columnWidths']||_0x3e8c63,_0x37e53c=this['editor']['plugins']['get']('Users')['me'];for(const _0x223932 of _0x1ff2be['getSuggestions']()){const _0x2caa74=_0x223932['getContainedElement']();if('resizeTable'===_0x223932['subType']&&_0x2caa74===_0x1012b5){_0x223932['author']!==_0x37e53c&&_0x223932['discard']();const _0x11db55=_0x223932['data']['commandParams'];_0x194b54=_0x11db55[0x0]['tableWidth'],_0x3e8c63=_0x11db55[0x0]['columnWidths'];break;}}_0x421b17({'table':_0x1012b5,'tableWidth':_0x4ee959,'columnWidths':_0x4a5dc2}),_0x1ff2be['markBlockFormat'](_0x1012b5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x194b54,'columnWidths':_0x3e8c63}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x8a98d){if('formatBlock'!=_0x8a98d['type']&&'formatInline'!=_0x8a98d['type'])return;const {data:_0x73c42b}=_0x8a98d;if(_0x73c42b&&'resizeTable'===_0x73c42b['formatGroupId']){const _0x444e52='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x444e52)};}}}class xt extends _0x21c11d{['afterInit'](){const _0x4941d2=this['editor'];_0x4941d2['plugins']['has']('Template')&&_0x4941d2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x21c11d{['afterInit'](){const _0x483287=this['editor'];if(!_0x483287['commands']['get']('insertTableOfContents'))return;_0x483287['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x338ddc=_0x483287['plugins']['get']('TrackChangesEditing'),_0x34cff3=_0x483287['locale'];_0x338ddc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x318bee=>o(_0x34cff3,'ELEMENT_TABLE_OF_CONTENTS',_0x318bee));}}class Rt extends _0x21c11d{['afterInit'](){const _0x5412e0=this['editor'];if(!_0x5412e0['plugins']['has']('Title'))return;const _0x67e498=_0x5412e0['plugins']['get']('TrackChangesEditing');_0x67e498['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5412e0['locale'],'ELEMENT_TITLE')),_0x5412e0['model']['document']['registerPostFixer'](_0x31f451=>{let _0x14f101=!0x1;const _0x164872=Array['from'](_0x5412e0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23e26d,data:_0x3b9a4f}of _0x164872){const {group:_0x2337b1}=_0x67e498['_splitMarkerName'](_0x23e26d);if('suggestion'!==_0x2337b1||!_0x3b9a4f['newRange'])continue;const _0x60bfac=_0x3b9a4f['newRange'],_0x5d37fb=_0x60bfac['end']['nodeBefore'];if(!_0x5d37fb||!_0x5d37fb['is']('element','title-content'))continue;if(!_0x60bfac['start']['isTouching'](_0x60bfac['end']))continue;const _0x5c166a=_0x5412e0['model']['schema']['getNearestSelectionRange'](_0x60bfac['end'],'forward');if(_0x5c166a&&_0x5c166a['isCollapsed']){const _0x2211b3=_0x31f451['createRange'](_0x60bfac['start'],_0x5c166a['start']);_0x2211b3['isEqual'](_0x60bfac)||(_0x31f451['updateMarker'](_0x23e26d,{'range':_0x2211b3}),_0x14f101=!0x0);}_0x14f101||(_0x31f451['removeMarker'](_0x23e26d),_0x14f101=!0x0);}return _0x14f101;});}}class Tt extends _0x21c11d{['afterInit'](){const _0x365232=this['editor'],_0x47ca80=_0x365232['plugins']['get']('TrackChangesEditing');_0x365232['plugins']['has']('Uploadcare')&&(_0x47ca80['enableCommand']('uploadcare'),_0x365232['plugins']['has']('UploadcareImageEdit')&&(_0x47ca80['enableCommand']('uploadcareImageEdit'),_0x47ca80['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x47ca80['descriptionFactory']['registerDescriptionCallback'](_0x4adbdf=>{if('attribute'!=_0x4adbdf['type'])return;const {data:_0x24f960}=_0x4adbdf;return _0x24f960&&'uploadcareImageId'==_0x24f960['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x21c11d{['afterInit'](){const _0x346d11=this['editor'],_0x4f181=_0x346d11['plugins']['get']('TrackChangesEditing');_0x346d11['plugins']['has']('UndoEditing')&&(_0x4f181['enableCommand']('undo'),_0x4f181['enableCommand']('redo'));}}class Ut extends _0x21c11d{static get['requires'](){return[Nt];}['afterInit'](){const _0x132535=this['editor'];if(!_0x132535['plugins']['has']('TableCaptionEditing'))return;_0x132535['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x21c11d{['tableProperties'];['tableCellProperties'];constructor(_0x3f643e){super(_0x3f643e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2fd4bf=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa8542d of this['tableProperties'])_0x2fd4bf['enableCommand'](_0xa8542d,(_0x352208,_0x3a5e0a)=>{const _0x55f892=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa8542d,[_0x55f892],this['tableProperties'],'tableProperties',_0x352208,_0x3a5e0a);});_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2fd4bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1f3a7e,_0x358543)=>this['handleDiscardAction'](this['tableProperties'],_0x1f3a7e,_0x358543)),_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x37d052 of this['tableCellProperties'])_0x2fd4bf['enableCommand'](_0x37d052,(_0x320930,_0x34df81)=>{const _0x3531ff=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x37d052,_0x3531ff,this['tableCellProperties'],'tableCellProperties',_0x320930,_0x34df81);});_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2fd4bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x29f849,_0x29168f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x29f849,_0x29168f)),_0x2fd4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2fd4bf['descriptionFactory']['registerDescriptionCallback'](_0x198f6c=>this['handleSuggestionDescription'](_0x198f6c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x15d411,_0x40c08,_0x183a95,_0x10d46f,_0x37d91b,_0x2feb09){const _0x437d39=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2feb09['batch'],()=>{for(const _0x46af9c of _0x40c08){if(this['_getSuggestion'](_0x46af9c,_0x10d46f))_0x37d91b(_0x2feb09);else{const _0x4a4dfd={};for(const _0x27ea2f of _0x183a95){const _0x341594=_0x46af9c['getAttribute'](_0x27ea2f);void 0x0!==_0x341594&&(_0x4a4dfd[_0x27ea2f]=_0x341594);}_0x37d91b(_0x2feb09),_0x437d39['markBlockFormat'](_0x46af9c,{'commandParams':[_0x4a4dfd]},[],_0x10d46f);}}});}['handleDiscardAction'](_0x5236d0,_0x446cc0,_0x11338a){const _0x54173a=_0x446cc0[0x0]['start']['nodeAfter'],_0x2fb95f=_0x11338a['commandParams'][0x0];this['editor']['model']['change'](_0x4bf6ba=>{for(const _0x50da2c of _0x5236d0)void 0x0!==_0x2fb95f[_0x50da2c]?_0x4bf6ba['setAttribute'](_0x50da2c,_0x2fb95f[_0x50da2c],_0x54173a):_0x4bf6ba['removeAttribute'](_0x50da2c,_0x54173a);});}['handleSuggestionDescription'](_0x43d944){if(_0x43d944['data'])switch(_0x43d944['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'](_0x3e1e31,_0x4ca505){const _0x53eb23=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2ed51f of _0x53eb23['getSuggestions']({'skipNotAttached':!0x0})){const _0x218bff=_0x2ed51f['getContainedElement']();if(_0x2ed51f['subType']===_0x4ca505&&_0x218bff===_0x3e1e31)return _0x2ed51f;}return null;}['_registerTablePropertiesAttributes'](){const _0x4d8e39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x176d2f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x819a2b of _0x176d2f){const _0x31e0fa=_0x819a2b['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4d8e39['descriptionFactory']['registerAttributeLabel'](_0x819a2b,o(this['editor']['locale'],'FORMAT_'+_0x31e0fa));}}}class Ft extends _0x21c11d{['afterInit'](){const _0x475d22=this['editor'];if(!_0x475d22['plugins']['has']('LineHeight'))return;const _0x3be7c6=_0x475d22['plugins']['get']('TrackChangesEditing'),_0x4933de=_0x475d22['locale'];_0x3be7c6['enableDefaultAttributesIntegration']('lineHeight'),_0x3be7c6['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4933de,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x21c11d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x5b5ec3,_0x16bf98,_0x49fb4a,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(_0x37574e){super(_0x37574e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3aeb57,_0x69fee1,_0x56de5,_0x52d1d0)=>{this['_model']['change'](()=>{for(const _0x13e6a2 of[..._0x52d1d0,..._0x56de5])this['_model']['markers']['has'](_0x13e6a2)&&_0x37574e['editing']['reconvertMarker'](_0x13e6a2);});}),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']=_0x37574e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x37574e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x37574e['config']['get']('trackChanges.trackFormatChanges'),_0x37574e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x37574e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x37574e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x208b8f=this['editor'];_0x208b8f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x453c35,{writer:_0x42ea74})=>{let _0x21ae40='suggestion:'+_0x453c35['getAttribute']('suggestion-type')+':'+_0x453c35['getAttribute']('id');return _0x453c35['getAttribute']('marker-count')&&(_0x21ae40+=':'+_0x453c35['getAttribute']('marker-count')),_0x42ea74['createElement']('$marker',{'data-name':_0x21ae40});}}),_0x208b8f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x208b8f['model']['document']['registerPostFixer'](_0x7fb325=>{let _0x3241f7=!0x1;const _0x22d476=Array['from'](_0x208b8f['model']['document']['differ']['getChangedMarkers']()),_0x4701a5=new Set();for(const {name:_0x490929,data:_0x4b62c2}of _0x22d476){const {group:_0x4fe884,type:_0x1bd99e,subType:_0xe115c9,id:_0x3ddd71}=this['_splitMarkerName'](_0x490929);if('suggestion'!==_0x4fe884)continue;const _0x2d2be3=_0xe115c9?'suggestion:'+_0x1bd99e+':'+_0xe115c9+':'+_0x3ddd71:'suggestion:'+_0x1bd99e+':'+_0x3ddd71,_0x2a5afc=_0x208b8f['model']['markers']['getMarkersGroup'](_0x2d2be3),_0x2c7c1a=_0x208b8f['model']['markers']['get'](_0x490929),_0x15c795=this['_suggestions']['get'](_0x3ddd71);if(null!=_0x4b62c2['newRange']){'formatInline'==_0x1bd99e&&(_0x3241f7=_0x3241f7||Wt(_0x4b62c2['newRange'],_0x490929,_0x7fb325,_0x208b8f['model']['schema']));const _0x18a1e2='attribute'==_0x1bd99e&&this['_isBlockAttribute'](_0xe115c9['split']('|')[0x0]),_0x2baa24='attribute'==_0x1bd99e&&this['_isInlineAttribute'](_0xe115c9['split']('|')[0x0]);if(_0x4b62c2['newRange']['isCollapsed']||'$graveyard'==_0x4b62c2['newRange']['root']['rootName']||'formatBlock'==_0x1bd99e&&!Qt(_0x4b62c2['newRange'])||_0x18a1e2&&!Qt(_0x4b62c2['newRange'])||_0x2baa24&&Xt(_0x4b62c2['newRange'])||'deletion'==_0x1bd99e&&Xt(_0x4b62c2['newRange'])||_0x2c7c1a&&Yt(_0x2c7c1a,_0x2a5afc))_0x7fb325['removeMarker'](_0x490929),_0x3241f7=!0x0;else{if(!_0x15c795||!_0x15c795['isInContent'])continue;if(_0x4b62c2['newRange']&&_0x4b62c2['oldRange']&&_0x4b62c2['newRange']['isEqual'](_0x4b62c2['oldRange']))continue;_0x4701a5['add'](_0x15c795);}}}return _0x4701a5['size']>0x0&&(_0x3241f7=!!this['_joinWithAdjacentSuggestions'](_0x4701a5)||_0x3241f7),_0x3241f7;}),_0x208b8f['model']['document']['registerPostFixer'](_0x5acece=>{let _0x24d6d5=!0x1;for(const _0x2a70ec of _0x208b8f['model']['document']['differ']['getChanges']())if('insert'==_0x2a70ec['type'])for(const _0x56850a of this['_suggestions']['values']()){if(_0x56850a['isMultiRange']||!_0x56850a['isInContent'])continue;const _0x832adc='formatBlock'==_0x56850a['type'],_0x4a372a=this['_getAttributeKey'](_0x56850a),_0x90afa4=_0x4a372a&&this['_isBlockAttribute'](_0x4a372a);if(!_0x832adc&&!_0x90afa4)continue;const _0x4b97a9=_0x56850a['getFirstRange']();if(_0x4b97a9['start']['parent']!=_0x4b97a9['end']['parent']&&!_0x4b97a9['end']['isAtEnd']){const _0x4b9b78=_0x208b8f['model']['createPositionAt'](_0x4b97a9['start']['nodeAfter'],'end'),_0x1d7dc5=_0x208b8f['model']['createRange'](_0x4b97a9['start'],_0x4b9b78);_0x5acece['updateMarker'](_0x56850a['getFirstMarker'](),{'range':_0x1d7dc5}),_0x24d6d5=!0x0;}}return _0x24d6d5;}),_0x208b8f['model']['document']['registerPostFixer'](_0x32bd75=>this['_processAttributeChanges'](_0x32bd75)),_0x208b8f['model']['document']['registerPostFixer'](_0x3dca75=>!_0x3dca75['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3dca75)),_0x208b8f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x208b8f['model']['document']['on']('change:data',(_0x59a3f7,_0x28660b)=>{if(!_0x28660b['isLocal']||_0x28660b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xbdfb85=_0x208b8f['model']['document']['differ']['getChanges']();if(0x0==_0xbdfb85['length'])return;const _0x2b078c=[],_0x352901=_0xbdfb85['filter'](_0x31982c=>'attribute'==_0x31982c['type']),_0x534c32=_0xbdfb85['filter'](_0x4174ab=>'insert'==_0x4174ab['type']&&'$text'!=_0x4174ab['name']);for(const _0x1b141f of _0x352901)this['_isRegisteredAttribute'](_0x1b141f['attributeKey'])&&_0x2b078c['push']({'key':_0x1b141f['attributeKey'],'newValue':_0x1b141f['attributeNewValue'],'oldValue':_0x1b141f['attributeOldValue'],'range':Zt(_0x1b141f['range'],_0x208b8f['model'])});for(const _0x247ede of _0x534c32){if('rename'!=_0x247ede['action']&&'refresh'!=_0x247ede['action'])continue;const _0x1c65ff=tn(_0x247ede['position']['nodeAfter'],_0x208b8f['model']),_0x3fc768=_0x247ede['before'];'rename'==_0x247ede['action']&&_0x2b078c['push']({'key':m,'newValue':_0x247ede['name'],'oldValue':_0x3fc768['name'],'range':_0x1c65ff});for(const [_0x1ce64a,_0x4703b8]of _0x3fc768['attributes']){if(!this['_isRegisteredAttribute'](_0x1ce64a))continue;const _0x16281a=_0x247ede['attributes']['get'](_0x1ce64a);_0x4703b8!==_0x16281a&&_0x2b078c['push']({'key':_0x1ce64a,'newValue':_0x16281a,'oldValue':_0x4703b8,'range':_0x1c65ff});}for(const [_0x3e7522,_0x415e17]of _0x247ede['attributes'])this['_isRegisteredAttribute'](_0x3e7522)&&(_0x3fc768['attributes']['has'](_0x3e7522)||_0x2b078c['push']({'key':_0x3e7522,'newValue':_0x415e17,'oldValue':null,'range':_0x1c65ff}));}0x0!=_0x2b078c['length']&&_0x208b8f['model']['enqueueChange'](_0x28660b,_0x27faa7=>{const _0x53040e=_0x49bc9e();for(const {range:_0x36b2f1,key:_0x2d7c61,oldValue:_0x3570ba,newValue:_0x388d4d}of _0x2b078c)this['markAttributeChange'](_0x36b2f1,_0x2d7c61,_0x3570ba,_0x388d4d,{'groupId':_0x53040e});this['_reduceExistingSuggestions'](_0x27faa7,_0x2b078c);});},{'priority':'lowest'}),_0x208b8f['model']['markers']['on']('update:suggestion',(_0x47e114,_0x13938d,_0x16d027)=>{if(null==_0x16d027){const {id:_0x433404}=this['_splitMarkerName'](_0x13938d['name']),_0x241154=this['_suggestions']['get'](_0x433404);_0x241154&&_0x241154['addMarkerName'](_0x13938d['name']);}}),_0x208b8f['model']['document']['on']('change:data',()=>{const _0xad91ba=Array['from'](_0x208b8f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ecada=>'suggestion'===this['_splitMarkerName'](_0x2ecada['name'])['group']);if(0x0===_0xad91ba['length'])return;_0xad91ba['sort']((_0x37d049,_0x41ee88)=>{const _0x24fd3b=_0x37d049['data']['oldRange'],_0x5c128c=_0x41ee88['data']['oldRange'];return null===_0x24fd3b&&null===_0x5c128c?0x0:null===_0x24fd3b&&null!==_0x5c128c?-0x1:null!==_0x24fd3b&&null===_0x5c128c?0x1:_0x24fd3b['start']['isBefore'](_0x5c128c['start'])?-0x1:0x1;});const _0x4b6670=new Set(),_0x5a6a75=new Set();for(const {name:_0x4a1ba4,data:_0x2d1f8f}of _0xad91ba){const {id:_0x10cfcb}=this['_splitMarkerName'](_0x4a1ba4);if(null===_0x2d1f8f['oldRange']){const _0x20de61=this['_handleNewSuggestionMarker'](_0x4a1ba4);_0x5a6a75['add'](_0x20de61);}else{const _0x148a08=this['_suggestions']['get'](_0x10cfcb);null!==_0x2d1f8f['newRange']||_0x148a08['isInContent']?(_0x4b6670['add'](_0x148a08['head']),_0x5a6a75['add'](_0x148a08)):this['_removeSuggestion'](_0x148a08);}}_0x5a6a75['size']>0x0&&this['_refreshSuggestionsChain'](_0x5a6a75);for(const _0x5a8aa7 of _0x4b6670)this['fire']('suggestionChanged',_0x5a8aa7);}),_0x208b8f['model']['on']('applyOperation',(_0x2e52b0,_0x1670fc)=>{const _0x4dab68=_0x1670fc[0x0];if(!this['_suggestions']['size'])return;if(!_0x4dab68['isDocumentOperation'])return;if(_0x4dab68['batch']['isUndo']||!_0x4dab68['batch']['isLocal'])return;let _0x55b682,_0x51249d;switch(_0x4dab68['type']){case'insert':_0x55b682=_0x208b8f['model']['createPositionAt'](_0x4dab68['position']),_0x51249d=_0x55b682['getShiftedBy'](_0x4dab68['howMany']);break;case'split':_0x55b682=_0x208b8f['model']['createPositionAt'](_0x4dab68['splitPosition']),_0x51249d=_0x208b8f['model']['createPositionAt'](_0x4dab68['moveTargetPosition']);break;case'move':_0x55b682=_0x208b8f['model']['createPositionAt'](_0x4dab68['targetPosition']),_0x51249d=_0x55b682['getShiftedBy'](_0x4dab68['howMany']);break;default:return;}const _0x4707c8=_0x208b8f['model']['createRange'](_0x55b682,_0x51249d);_0x208b8f['model']['change'](()=>{for(const {suggestion:_0x39afb2,meta:_0x54857d}of this['_findSuggestions'](_0x4707c8)){if(_0x39afb2['isMultiRange'])continue;if('formatInline'==_0x39afb2['type'])continue;const _0x4fceae=this['_getAttributeKey'](_0x39afb2);if(_0x4fceae&&this['_isBlockAttribute'](_0x4fceae)&&'split'!=_0x4dab68['type'])continue;const _0x144abc=_0x39afb2['data']&&_0x39afb2['data']['multipleBlocks'];('formatBlock'!=_0x39afb2['type']||'split'==_0x4dab68['type']&&!_0x144abc)&&(_0x54857d['containsRangeInObject']||'insertion'==_0x39afb2['type']&&_0x54857d['isOwn']||_0x39afb2['getFirstRange']()['containsRange'](_0x4707c8)&&this['_breakSuggestionMarker'](_0x39afb2,_0x55b682,_0x51249d));}});},{'priority':'lowest'}),_0x208b8f['model']['on']('deleteContent',(_0x2ba638,_0x2043c8)=>{const _0x2efc38=_0x2043c8[0x0],_0x4d57e1=_0x2043c8[0x1];if(_0x4d57e1&&_0x4d57e1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2efc38['isCollapsed'])return;const _0x54178c=_0x208b8f['model']['schema'],{start:_0x596899,end:_0x5280d4}=_0x2efc38['getFirstRange'](),_0x58c06a=_0x596899['nodeAfter']&&_0x54178c['isLimit'](_0x596899['nodeAfter'])?null:_0x54178c['getNearestSelectionRange'](_0x596899,'forward'),_0x279b4e=_0x5280d4['nodeBefore']&&_0x54178c['isLimit'](_0x5280d4['nodeBefore'])?null:_0x54178c['getNearestSelectionRange'](_0x5280d4,'backward'),_0x40cfa6=_0x208b8f['model']['createRange'](_0x58c06a?_0x58c06a['start']:_0x596899,_0x279b4e?_0x279b4e['end']:_0x5280d4);_0x208b8f['model']['change'](_0x10390e=>{this['markDeletion'](_0x40cfa6);const _0x1a739d=_0x208b8f['model']['schema']['getNearestSelectionRange'](_0x40cfa6['start']);_0x2efc38['is']('documentSelection')?_0x10390e['setSelection'](_0x1a739d):_0x2efc38['setTo'](_0x1a739d);}),_0x2ba638['stop']();},{'priority':_0x1b8846['normal']+0xa}),_0x208b8f['model']['on']('insertContent',(_0x54d4e5,_0x529ab6)=>{const _0x213c2c=_0x529ab6[_0x529ab6['length']-0x1];_0x213c2c&&_0x213c2c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x208b8f['model']['change'](()=>{let _0x5c2154=_0x208b8f['model']['insertContent'](_0x529ab6[0x0],_0x529ab6[0x1],_0x529ab6[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c2154)return;_0x54d4e5['return']=_0x5c2154['clone']();const _0x333d1b=_0x5c2154['end']['nodeBefore'],_0x416f6a=_0x208b8f['model']['schema'];_0x333d1b&&_0x416f6a['isBlock'](_0x333d1b)&&!_0x416f6a['isObject'](_0x333d1b)&&(_0x5c2154=_0x208b8f['model']['createRange'](_0x5c2154['start'],_0x208b8f['model']['createPositionAt'](_0x333d1b,'end'))),this['markInsertion'](_0x5c2154);}),_0x54d4e5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5af7db=new v(_0x208b8f,this['_suggestions']);_0x208b8f['commands']['add']('acceptSuggestion',_0x5af7db),this['enableCommand']('acceptSuggestion');const _0x2febc4=new D(_0x208b8f,this['_suggestions']);_0x208b8f['commands']['add']('discardSuggestion',_0x2febc4),this['enableCommand']('discardSuggestion'),_0x208b8f['commands']['add']('acceptAllSuggestions',new B(_0x208b8f,_0x5af7db,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x208b8f['commands']['add']('discardAllSuggestions',new B(_0x208b8f,_0x2febc4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x208b8f['commands']['add']('acceptSelectedSuggestions',new O(_0x208b8f,_0x5af7db,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x208b8f['commands']['add']('discardSelectedSuggestions',new O(_0x208b8f,_0x2febc4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x420294=_0x208b8f['plugins']['get']('CommentsRepository');this['listenTo'](_0x420294,'addComment',(_0x5314fd,{threadId:_0x1524db})=>{const _0x54d89d=this['_suggestions']['get'](_0x1524db);_0x54d89d&&_0x54d89d['commentThread']&&0x1===_0x54d89d['commentThread']['length']&&this['_updateSuggestionData'](_0x1524db,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x420294,'removeComment',(_0x137d31,{threadId:_0x303a7c})=>{const _0x54200e=this['_suggestions']['get'](_0x303a7c);_0x54200e&&_0x54200e['commentThread']&&!_0x54200e['commentThread']['length']&&this['_updateSuggestionData'](_0x303a7c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5e13e2){const _0x2c8a7f=_0x44ea70([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]),_0x5850a1=0x3d8d0df,_0x1cf2b4=0x3dfaabf^_0x5850a1,_0x5a701a=window[_0x44ea70([0x44,0x61,0x74,0x65])][_0x44ea70([0x6e,0x6f,0x77])](),_0x1cc650=_0x5e13e2[_0x44ea70([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x288dae=new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f3fb2=>{_0x1cc650[_0x44ea70([0x6f,0x6e,0x63,0x65])](_0x44ea70([0x72,0x65,0x61,0x64,0x79]),_0x1f3fb2);}),_0x54563d={[_0x44ea70([0x6b,0x74,0x79])]:_0x44ea70([0x45,0x43]),[_0x44ea70([0x75,0x73,0x65])]:_0x44ea70([0x73,0x69,0x67]),[_0x44ea70([0x63,0x72,0x76])]:_0x44ea70([0x50,0x2d,0x32,0x35,0x36]),[_0x44ea70([0x78])]:_0x44ea70([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]),[_0x44ea70([0x79])]:_0x44ea70([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]),[_0x44ea70([0x61,0x6c,0x67])]:_0x44ea70([0x45,0x53,0x32,0x35,0x36])},_0xe3b31=_0x1cc650[_0x44ea70([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44ea70([0x67,0x65,0x74])](_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x65de9a(){let _0x48565e,_0x534166=null,_0x17aee9=null;try{if(_0xe3b31==_0x44ea70([0x47,0x50,0x4c]))return _0x44ea70([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48565e=_0x1cefdd(),!_0x48565e)return _0x44ea70([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48565e[_0x44ea70([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17aee9=_0x1d347b(_0x48565e[_0x44ea70([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48565e[_0x44ea70([0x6a,0x74,0x69])])),await _0x253bc4()?_0xec6150()?_0x4beade()?_0x44ea70([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e9e30()?(_0x48565e[_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44ea70([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x534166=_0x463437(_0x44ea70([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48565e[_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44ea70([0x74,0x72,0x69,0x61,0x6c])&&(_0x534166=_0x463437(_0x44ea70([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x195ee2()):_0x44ea70([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44ea70([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44ea70([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x44ea70([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4beade(){const _0x18ee68=[_0x44ea70([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44ea70([0x74,0x72,0x69,0x61,0x6c])][_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48565e[_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a701a/0x3e8:0xe10*_0x1cf2b4;return _0x48565e[_0x44ea70([0x65,0x78,0x70])]<_0x18ee68;}function _0xec6150(){const _0x427c25=_0x48565e[_0x44ea70([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x427c25)return!0x1;if(_0x427c25[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ea70([0x2a])))return!0x0;if(_0x427c25[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ea70([0x54,0x43])))return!0x0;if(_0x427c25[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ea70([0x52,0x54,0x43]))){if(_0x339d8d())return!0x0;if(_0x3725e6()||_0x2674d9())return!0x0;}return!0x1;}function _0x3e9e30(){const _0x443ea2=_0x48565e[_0x44ea70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x443ea2||0x0==_0x443ea2[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1124b1}=new URL(window[_0x44ea70([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x443ea2[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1124b1))return!0x0;const _0x29f3e5=_0x1124b1[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])](_0x44ea70([0x2e]));return _0x443ea2[_0x44ea70([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5318b6=>_0x5318b6[_0x44ea70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ea70([0x2a])))[_0x44ea70([0x6d,0x61,0x70])](_0x4b49e3=>_0x4b49e3[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])](_0x44ea70([0x2e])))[_0x44ea70([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40d8de=>_0x40d8de[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29f3e5[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44ea70([0x6d,0x61,0x70])](_0x289f23=>Array(_0x29f3e5[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x289f23[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44ea70([0x66,0x69,0x6c,0x6c])](_0x289f23[0x0]===_0x44ea70([0x2a])?_0x44ea70([0x2a]):'')[_0x44ea70([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x289f23))[_0x44ea70([0x73,0x6f,0x6d,0x65])](_0x5309b3=>_0x29f3e5[_0x44ea70([0x65,0x76,0x65,0x72,0x79])]((_0x5e38a5,_0x19254c)=>_0x5309b3[_0x19254c]===_0x5e38a5||_0x5309b3[_0x19254c]===_0x44ea70([0x2a])));}function _0x195ee2(){return _0x534166&&_0x17aee9?new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a058b,_0x47d971)=>{_0x534166[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x2a058b,_0x47d971),_0x17aee9[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x91388=>{_0x91388!=_0x44ea70([0x56,0x61,0x6c,0x69,0x64])&&_0x2a058b(_0x91388);},_0x47d971);}):_0x534166||_0x17aee9||_0x44ea70([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d347b(_0x5b8847,_0x8786b6){return new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8445a2=>{if(_0x3474cf())return _0x8445a2(_0x44ea70([0x56,0x61,0x6c,0x69,0x64]));_0x52e6e2(),_0x1cc650[_0x44ea70([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44ea70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36c308=!0x1;const _0x119ea0=_0x49bc9e();function _0x43227f(_0x44ad71){return!!_0x44ad71&&(typeof _0x44ad71===_0x44ea70([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x44ad71===_0x44ea70([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x44ad71[_0x44ea70([0x74,0x68,0x65,0x6e])]===_0x44ea70([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x44ad71[_0x44ea70([0x63,0x61,0x74,0x63,0x68])]===_0x44ea70([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e8014(_0x3f0709){_0x198671(_0x3f0709)[_0x44ea70([0x74,0x68,0x65,0x6e])](_0xc50d87=>{if(!_0xc50d87||_0xc50d87[_0x44ea70([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44ea70([0x6f,0x6b]))return _0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14edea(_0x5e5d22(_0x119ea0+_0x8786b6))!=_0xc50d87[_0x44ea70([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44ea70([0x56,0x61,0x6c,0x69,0x64]);})[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x23fc77=>(_0x2d6d5f(),_0x23fc77),()=>{const _0x2d89c0=_0x135c1b();return null==_0x2d89c0?(_0x2d6d5f(),_0x44ea70([0x56,0x61,0x6c,0x69,0x64])):_0x44ea70(_0x5a701a-_0x2d89c0>(0x27d454df^_0x5850a1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x8445a2)[_0x44ea70([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8445a2(_0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x415c94=0x3ee3e5f^_0x5850a1;function _0x2d6d5f(){const _0x231314=_0x44ea70([0x6c,0x6c,0x63,0x74,0x2d])+_0x14edea(_0x5e5d22(_0x5b8847)),_0x2918ce=_0x5a60cf(_0x14edea(window[_0x44ea70([0x4d,0x61,0x74,0x68])][_0x44ea70([0x63,0x65,0x69,0x6c])](_0x5a701a/_0x415c94)));window[_0x44ea70([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44ea70([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x231314,_0x2918ce);}function _0x135c1b(){const _0x27fe7a=_0x44ea70([0x6c,0x6c,0x63,0x74,0x2d])+_0x14edea(_0x5e5d22(_0x5b8847)),_0x55c868=window[_0x44ea70([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44ea70([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27fe7a);return _0x55c868?window[_0x44ea70([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a60cf(_0x55c868),0x10)*_0x415c94:null;}function _0x198671(_0x448117){return new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33e58f,_0x59064e)=>{_0x448117[_0x44ea70([0x74,0x68,0x65,0x6e])](_0x33e58f,_0x59064e),window[_0x44ea70([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59064e,0x3d9041f^_0x5850a1);});}}_0x1cc650[_0x44ea70([0x6f,0x6e])](_0x44ea70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x198c3f,_0x34b37f)=>{if(_0x34b37f[0x0]!=_0x5b8847)return _0x8445a2(_0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34b37f[0x1]={..._0x34b37f[0x1],[_0x44ea70([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x119ea0};},{[_0x44ea70([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44ea70([0x68,0x69,0x67,0x68])}),_0x1cc650[_0x44ea70([0x6f,0x6e])](_0x44ea70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb882d3=>{_0x43227f(_0xb882d3[_0x44ea70([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36c308=!0x0,_0x4e8014(_0xb882d3[_0x44ea70([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44ea70([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44ea70([0x6c,0x6f,0x77])}),_0x288dae[_0x44ea70([0x74,0x68,0x65,0x6e])](()=>{_0x36c308||_0x8445a2(_0x44ea70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3474cf(){return _0x1cc650[_0x44ea70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44ea70([0x76,0x69,0x65,0x77])][_0x44ea70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44ea70([0x61,0x75,0x74,0x6f]);}function _0x52e6e2(){_0x1cc650[_0x44ea70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44ea70([0x76,0x69,0x65,0x77])][_0x44ea70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44ea70([0x61,0x75,0x74,0x6f]);}}function _0x463437(_0x414c8f){const _0x4e92f0=[new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x519156=>setTimeout(_0x519156,0x3d1ee13^_0x5850a1)),_0x288dae[_0x44ea70([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25a8ea=>{let _0x40bf5a=0x0;_0x1cc650[_0x44ea70([0x6d,0x6f,0x64,0x65,0x6c])][_0x44ea70([0x6f,0x6e])](_0x44ea70([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43f394,_0x4ec3de)=>{_0x4ec3de[0x0][_0x44ea70([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40bf5a++,_0x40bf5a==(0x3d8d127^_0x5850a1)&&(_0x25a8ea(),_0x43f394[_0x44ea70([0x6f,0x66,0x66])]());});}))];return window[_0x44ea70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44ea70([0x72,0x61,0x63,0x65])](_0x4e92f0)[_0x44ea70([0x74,0x68,0x65,0x6e])](()=>_0x414c8f);}async function _0x2ab06c(){await _0x288dae,_0x1cc650[_0x44ea70([0x6d,0x6f,0x64,0x65,0x6c])][_0x44ea70([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20a6f7,_0x1cc650[_0x44ea70([0x6d,0x6f,0x64,0x65,0x6c])][_0x44ea70([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20a6f7,_0x1cc650[_0x44ea70([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44ea70([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x339d8d(){return _0x39f546(_0x44ea70([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x305a24(_0x44ea70([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x44ea70([0x73,0x74,0x61,0x74,0x65])]==_0x44ea70([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3725e6(){return _0x39f546(_0x44ea70([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 _0x2674d9(){return _0x39f546(_0x44ea70([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e787d(_0x11c650){const _0x5de725=_0x2a5f19();_0x1cc650[_0x5de725]=_0x44ea70([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11c650,_0x11c650!=_0x44ea70([0x56,0x61,0x6c,0x69,0x64])&&_0x2ab06c();}function _0x2a5f19(){const _0x59fc9c=window[_0x44ea70([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44ea70([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44ea70([0x6e,0x6f,0x77])]())[_0x44ea70([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44ea70([0x2e]),'');let _0x1f3084=_0x44ea70([0x52]);for(let _0x5d78e2=0x0;_0x5d78e2<_0x59fc9c[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d78e2+=0x2){let _0x22f8e8=window[_0x44ea70([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59fc9c[_0x44ea70([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d78e2,_0x5d78e2+0x2));_0x22f8e8>=_0x2c8a7f[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22f8e8-=_0x2c8a7f[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f3084+=_0x2c8a7f[_0x22f8e8];}return _0x1f3084;}function _0x1cefdd(){const _0x33e2d8=_0xe3b31[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])](_0x44ea70([0x2e]));if(0x3!=_0x33e2d8[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52c2b4(_0x33e2d8[0x1]);function _0x52c2b4(_0x18782c){const _0x470448=_0x194880(_0x18782c);return _0x470448&&_0x35fa6e()?_0x470448:null;function _0x35fa6e(){const _0xe9a1cc=_0x470448[_0x44ea70([0x6a,0x74,0x69])],_0x31890b=window[_0x44ea70([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe9a1cc[_0x44ea70([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe9a1cc[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b69c3={..._0x470448,[_0x44ea70([0x6a,0x74,0x69])]:_0xe9a1cc[_0x44ea70([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe9a1cc[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b69c3[_0x44ea70([0x76,0x63])],_0x5e5d22(_0x2b69c3)==_0x31890b;}}}async function _0x253bc4(){let _0x49b3ad=!0x0;try{const _0x34fad8=_0xe3b31[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])](_0x44ea70([0x2e])),[_0x18d2f3,_0x3d2273,_0x2db09f]=_0x34fad8;return _0x2798ff(_0x18d2f3),await _0x2769bb(_0x18d2f3,_0x3d2273,_0x2db09f),_0x49b3ad;}catch{return!0x1;}function _0x2798ff(_0x7c6370){const _0x5eef11=_0x194880(_0x7c6370);_0x5eef11&&_0x5eef11[_0x44ea70([0x61,0x6c,0x67])]==_0x44ea70([0x45,0x53,0x32,0x35,0x36])||(_0x49b3ad=!0x1);}async function _0x2769bb(_0x56cb03,_0x3db02b,_0x5e23ba){const _0x273413=window[_0x44ea70([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44ea70([0x66,0x72,0x6f,0x6d])](_0x40e33b(_0x5e23ba),_0x542af3=>_0x542af3[_0x44ea70([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1196f0=new window[(_0x44ea70([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44ea70([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56cb03+_0x44ea70([0x2e])+_0x3db02b),_0x33c7c5=window[_0x44ea70([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44ea70([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33c7c5)return;const _0x4a11d6=await _0x33c7c5[_0x44ea70([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44ea70([0x6a,0x77,0x6b]),_0x54563d,{[_0x44ea70([0x6e,0x61,0x6d,0x65])]:_0x44ea70([0x45,0x43,0x44,0x53,0x41]),[_0x44ea70([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44ea70([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44ea70([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33c7c5[_0x44ea70([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44ea70([0x6e,0x61,0x6d,0x65])]:_0x44ea70([0x45,0x43,0x44,0x53,0x41]),[_0x44ea70([0x68,0x61,0x73,0x68])]:{[_0x44ea70([0x6e,0x61,0x6d,0x65])]:_0x44ea70([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a11d6,_0x273413,_0x1196f0)||(_0x49b3ad=!0x1);}}function _0x194880(_0x38de67){return _0x38de67[_0x44ea70([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44ea70([0x65,0x79]))?JSON[_0x44ea70([0x70,0x61,0x72,0x73,0x65])](_0x40e33b(_0x38de67)):null;}function _0x40e33b(_0x41db86){return window[_0x44ea70([0x61,0x74,0x6f,0x62])](_0x41db86[_0x44ea70([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44ea70([0x2b]))[_0x44ea70([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44ea70([0x2f])));}function _0x5e5d22(_0x3191ea){let _0x2c7d2d=0x1505;function _0x4f5f21(_0x40dbf9){for(let _0x3407e2=0x0;_0x3407e2<_0x40dbf9[_0x44ea70([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3407e2++){const _0xe1bf96=_0x40dbf9[_0x44ea70([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3407e2);_0x2c7d2d=(_0x2c7d2d<<0x5)+_0x2c7d2d+_0xe1bf96,_0x2c7d2d&=_0x2c7d2d;}}function _0x2b55cb(_0x11099e){Array[_0x44ea70([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11099e)?_0x11099e[_0x44ea70([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b55cb):_0x11099e&&typeof _0x11099e==_0x44ea70([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44ea70([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11099e)[_0x44ea70([0x73,0x6f,0x72,0x74])]()[_0x44ea70([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e4f13,_0x3692d8])=>{_0x4f5f21(_0x2e4f13),_0x2b55cb(_0x3692d8);}):_0x4f5f21(window[_0x44ea70([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11099e));}return _0x2b55cb(_0x3191ea),_0x2c7d2d>>>0x0;}function _0x14edea(_0x30e990){return _0x30e990[_0x44ea70([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44ea70([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44ea70([0x30]));}function _0x5a60cf(_0x3ee53c){return _0x3ee53c[_0x44ea70([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44ea70([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44ea70([0x6a,0x6f,0x69,0x6e])]('');}function _0x39f546(_0x1ee735){return _0x1cc650[_0x44ea70([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44ea70([0x68,0x61,0x73])](_0x1ee735);}function _0x305a24(_0x46490e){return _0x1cc650[_0x44ea70([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44ea70([0x67,0x65,0x74])](_0x46490e);}function _0x20a6f7(){}function _0x44ea70(_0x3e0018){return _0x3e0018['map'](_0x590437=>String['fromCharCode'](_0x590437))['join']('');}_0x1e787d(await _0x65de9a());}(this);}set['adapter'](_0xb5aca8){if(this['_adapter'])throw new _0x3229f3('track-changes-adapter-already-set',this);this['_adapter']=_0xb5aca8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3ca6b8=!0x1,toJSON:_0xeec64b=!0x1}={}){const _0x30e7f1=[];for(const _0x56056e of this['_suggestions']['values']())_0x3ca6b8&&!_0x56056e['isInContent']||_0x30e7f1['push'](_0x56056e);return _0xeec64b?_0x30e7f1['map'](_0x426962=>_0x426962['toJSON']()):_0x30e7f1;}['getSuggestion'](_0x22c4a0){const _0x34de04=this['_suggestions']['get'](_0x22c4a0);if(!_0x34de04)throw new _0x3229f3('track-changes-suggestion-not-found',this);return _0x34de04;}['hasSuggestion'](_0x291b41){return this['_suggestions']['has'](_0x291b41);}['addSuggestionData'](_0x3b100b){const {authorId:_0x2e9d93,id:_0x235f29,originalSuggestionId:_0x1dc7d2,attributes:_0x2797e4}=_0x3b100b,[_0x3a9bd0,_0x1c9143]=_0x3b100b['type']['split'](':'),_0x4c2d58=this['_suggestions']['get'](_0x235f29)||this['_createSuggestion'](_0x3a9bd0,_0x1c9143,_0x235f29,_0x2e9d93,_0x2797e4,_0x1dc7d2);if(this['_addThreadToSuggestion'](_0x4c2d58),this['_checkSuggestionCorrectness'](_0x4c2d58,_0x3a9bd0,_0x1c9143||null,_0x2e9d93),_0x4c2d58['createdAt']=_0x3b100b['createdAt'],_0x4c2d58['_isDataLoaded']=!0x0,_0x2797e4&&_0x2797e4['@external']){const _0x431201=_0x2797e4['@external'],_0x4c152e=this['_getExternalAuthor'](_0x431201['authorName']);_0x4c2d58['authoredAt']=_0x431201['createdAt'],_0x4c2d58['author']=_0x4c152e,_0x4c2d58['isExternal']=!0x0;}else _0x4c2d58['authoredAt']=_0x3b100b['createdAt'];switch(_0x3b100b['data']&&(_0x4c2d58['data']=_0x3b100b['data']),_0x3b100b['attributes']&&(_0x4c2d58['attributes']=_0x3b100b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4c2d58['_saved']=!0x0),this['_suggestionState']['get'](_0x4c2d58)){case'notReady':this['_suggestionState']['set'](_0x4c2d58,'dataReady');break;case'markerReady':_0x4c2d58['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c2d58])),this['_refreshSuggestionsChain'](new Set([_0x4c2d58])),this['_suggestionState']['set'](_0x4c2d58,'ready'),this['fire']('suggestionLoaded',_0x4c2d58)):this['_suggestionState']['set'](_0x4c2d58,'removed');}return _0x4c2d58;}['acceptSuggestion'](_0x5c2cd7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x74ee76 of _0x5c2cd7['getAllAdjacentSuggestions']())_0x74ee76['accept']();});});}['discardSuggestion'](_0x1e9f8f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e4785 of _0x1e9f8f['getAllAdjacentSuggestions']())_0x3e4785['discard']();});});}['enableCommand'](_0x7cd19f,_0x2bcc72){const _0x2ab955=this['editor']['commands']['get'](_0x7cd19f);if(!_0x2ab955)throw new _0x3229f3('track-changes-command-not-found',this,{'commandName':_0x7cd19f});if(this['_enabledCommands']['has'](_0x2ab955))throw new _0x3229f3('track-changes-enable-command-twice',this,{'commandName':_0x7cd19f});this['_enabledCommands']['add'](_0x2ab955),_0x2bcc72&&_0x2ab955['on']('execute',(_0x580685,_0x304b42)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x304b42['length']>0x0&&_0x304b42[_0x304b42['length']-0x1]&&_0x304b42[_0x304b42['length']-0x1]['forceDefaultExecution']?_0x304b42['pop']():(_0x580685['return']=_0x2bcc72((..._0x3f461e)=>_0x2ab955['execute'](..._0x3f461e,{'forceDefaultExecution':!0x0}),..._0x304b42),_0x580685['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x35ec19){let _0x3a2372,_0x46fb84;const _0x13afb7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3a2372=_0x35ec19();}catch(_0x4eeb1c){_0x46fb84=_0x4eeb1c;}return _0x13afb7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x46fb84&&_0x3229f3['rethrowUnexpectedError'](_0x46fb84,this),_0x3a2372;}['markInsertion'](_0x123126,_0x5c02c0=null,_0x56b23e={}){if(_0x123126['isCollapsed'])return null;const _0x110e2e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x56b23e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x155c00,meta:_0x5cd91a}of this['_findSuggestions'](_0x123126,'insertion'))if(_0x5cd91a['isOwn']){if(!_0x5cd91a['isNextTo']){if(_0x5cd91a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x155c00,_0x56b23e))continue;return _0x155c00;}if(sn(_0x155c00,_0x56b23e))return _0x155c00;this['_breakSuggestionMarker'](_0x155c00,_0x123126['start'],_0x123126['end']);break;}if(_0x5c02c0==_0x155c00['subType']&&sn(_0x155c00,_0x56b23e)){const _0x4e08f9=_0x155c00['getFirstRange']();return _0x4e08f9['start']['isEqual'](_0x123126['end'])?this['_setSuggestionRange'](_0x155c00,this['_model']['createRange'](_0x123126['start'],_0x4e08f9['end'])):this['_setSuggestionRange'](_0x155c00,this['_model']['createRange'](_0x4e08f9['start'],_0x123126['end'])),_0x155c00;}}const _0x45629e=_0x49bc9e(),_0x979a56=_0x110e2e['id'],_0x413e5b=_0x5c02c0?'insertion:'+_0x5c02c0:'insertion',_0x25b4e3=this['_setSuggestionData']({'id':_0x45629e,'type':_0x413e5b,'createdAt':new Date(),'authorId':_0x979a56,'attributes':_0x56b23e});return this['_addSuggestionMarker'](_0x413e5b,_0x45629e,_0x979a56,_0x123126),_0x25b4e3;}['markMultiRangeInsertion'](_0xe05497,_0x3c3045='multi',_0xab8436={}){const _0x59b681=this['editor']['plugins']['get']('Users')['me'],_0xb225c0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c3045,'join');this['_trackingSessionId']&&(_0xab8436['trackingSessionId']=this['_trackingSessionId']);for(const _0x17bd0c of this['getSuggestions']())if(_0x17bd0c['author']['id']==_0x59b681['id']&&'insertion'==_0x17bd0c['type']&&_0x17bd0c['subType']==_0x3c3045&&sn(_0x17bd0c,_0xab8436)&&(_0xb225c0(_0x17bd0c['getRanges'](),_0xe05497)||_0xb225c0(_0xe05497,_0x17bd0c['getRanges']()))){for(const _0x4a256e of _0xe05497)_0x17bd0c['addRange'](_0x4a256e);return _0x17bd0c;}for(const {suggestion:_0x1b2a55,meta:_0x234912}of this['_findSuggestions'](_0xe05497,'insertion')){if(!_0x234912['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x234912['containsRangeInObject'])continue;if(!sn(_0x1b2a55,_0xab8436))continue;let _0x4425b9=!0x0;for(const _0x34e2a0 of _0x1b2a55['getRanges']())for(const _0x380555 of _0xe05497)if(!_0x34e2a0['containsRange'](_0x380555)){_0x4425b9=!0x1;break;}if(_0x4425b9)return _0x1b2a55;}const _0x5b5fa7=_0x49bc9e(),_0x3f5410=_0x59b681['id'],_0x363a00='insertion:'+_0x3c3045,_0x55aec2=this['_setSuggestionData']({'id':_0x5b5fa7,'type':_0x363a00,'createdAt':new Date(),'authorId':_0x3f5410,'attributes':_0xab8436});for(const _0x112bcc of _0xe05497)this['_addSuggestionMarker'](_0x363a00,_0x5b5fa7,_0x3f5410,_0x112bcc,x['getMultiRangeId']());return _0x55aec2;}['markInlineFormat'](_0xf3a681,_0x4734e5,_0x27be02=null,_0x714712={}){if(_0x27be02=_0x27be02||Ht(_0x4734e5),_0xf3a681['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x714712['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x29faf7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27be02,'accept');return this['forceDefaultExecution'](()=>_0x29faf7([_0xf3a681],_0x4734e5,_0x714712)),null;}const _0x5f0289=this['editor']['plugins']['get']('Users')['me'],_0x34ecee=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x36154a,meta:_0x3a6b77}of this['_findSuggestions'](_0xf3a681,'insertion'))_0x3a6b77['isOwn']&&!_0x3a6b77['isInsideObject']&&_0x34ecee['push'](..._0x36154a['getRanges']());}const _0x542264=function(_0x259d55,_0x5080dd){const _0x4829b7=[];for(const _0x3739b3 of _0x5080dd){const _0xe78939=_0x259d55['getIntersection'](_0x3739b3);_0xe78939&&_0x4829b7['push'](_0xe78939);}return _0x4829b7;}(_0xf3a681,_0x34ecee),_0x52c947=function(_0x5bdad8,_0x46dc46){const _0x328cd3=[_0x5bdad8];for(const _0x418f80 of _0x46dc46){let _0x2ffb82=0x0;for(;_0x2ffb82<_0x328cd3['length'];){const _0x1a439c=_0x328cd3[_0x2ffb82]['getDifference'](_0x418f80);_0x328cd3['splice'](_0x2ffb82,0x1,..._0x1a439c),_0x2ffb82+=_0x1a439c['length'];}}return _0x328cd3;}(_0xf3a681,_0x34ecee);_0x542264['length']&&this['_model']['change'](()=>{for(const _0x18ea9e of _0x542264){const _0x2d78bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27be02,'accept');this['forceDefaultExecution'](()=>_0x2d78bd([_0x18ea9e],_0x4734e5,_0x714712));}});for(const _0x5a34f2 of _0x52c947){let _0x14a5a9=null,_0x3bbe80=_0x5a34f2['start'],_0xfcaf75=_0x5a34f2['end'];for(const {suggestion:_0x54ff07,meta:_0x2eeadb}of this['_findSuggestions'](_0x5a34f2,'formatInline')){if(!_0x2eeadb['isOwn'])continue;if(_0x54ff07['subType']!=_0x27be02)continue;if(!sn(_0x54ff07,_0x714712))continue;const _0x474e79=_0x54ff07['getFirstRange']();if(_0x474e79['containsRange'](_0x5a34f2,!0x0))return null;_0x3bbe80=_0x3bbe80['isBefore'](_0x474e79['start'])?_0x3bbe80:_0x474e79['start'],_0xfcaf75=_0xfcaf75['isAfter'](_0x474e79['end'])?_0xfcaf75:_0x474e79['end'],_0x14a5a9?_0x474e79['start']['isBefore'](_0x14a5a9['getFirstRange']()['start'])?(_0x14a5a9['removeMarkers'](),_0x14a5a9=_0x54ff07):_0x54ff07['removeMarkers']():_0x14a5a9=_0x54ff07;}const _0x4d200b=this['_model']['createRange'](_0x3bbe80,_0xfcaf75);if(_0x14a5a9)this['_setSuggestionRange'](_0x14a5a9,_0x4d200b);else{const _0x178c6b=_0x49bc9e(),_0x31fecf=_0x5f0289['id'];this['_setSuggestionData']({'id':_0x178c6b,'type':'formatInline:'+_0x27be02,'data':_0x4734e5,'createdAt':new Date(),'authorId':_0x31fecf,'attributes':_0x714712}),this['_addSuggestionMarker']('formatInline:'+_0x27be02,_0x178c6b,_0x31fecf,_0x4d200b);}}return null;}['markBlockFormat'](_0x5dafa2,_0x3e01e1,_0x2cc0ce=[],_0x1651ed=null,_0x173a0b={}){_0x3e01e1['formatGroupId']||(_0x3e01e1['formatGroupId']=_0x3e01e1['commandName']),_0x3e01e1['multipleBlocks']=_0x5dafa2['is']('range'),_0x1651ed=_0x1651ed||Ht(_0x3e01e1);const _0x87f9f1=_0x2cc0ce['map'](_0x12ca01=>tn(_0x12ca01,this['_model'])),_0x22c649=_0x5dafa2['is']('range')?_0x5dafa2:tn(_0x5dafa2,this['_model']);if(this['_trackingSessionId']&&(_0x173a0b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x33161e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1651ed,'accept');return this['forceDefaultExecution'](()=>_0x33161e([_0x22c649],_0x3e01e1,_0x173a0b)),null;}_0x87f9f1['push'](_0x22c649);let _0x5386d8=!0x0;for(const _0x43c79d of _0x87f9f1)if(!this['_rangeIsInLocalUserInsertion'](_0x43c79d)){_0x5386d8=!0x1;break;}if(_0x5386d8&&'always'!==this['_trackFormatChanges']){const _0x5c4232=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1651ed,'accept');return this['forceDefaultExecution'](()=>_0x5c4232([_0x22c649],_0x3e01e1,_0x173a0b)),null;}let _0x13f947=null,_0x90f9c6=_0x22c649['start'],_0x406b65=_0x22c649['end'];for(const {suggestion:_0x302314,meta:_0x3259ef}of this['_findSuggestions'](_0x22c649,'formatBlock')){if(!_0x3259ef['isOwn'])continue;if(_0x3259ef['isNextTo']||_0x3259ef['containsRangeInObject']||_0x3259ef['isInsideObject'])continue;if(_0x302314['data']['formatGroupId']!=_0x3e01e1['formatGroupId'])continue;if(!sn(_0x302314,_0x173a0b))continue;const _0x380dd2=_0x302314['getFirstRange']();if(_0x302314['subType']==_0x1651ed){if(_0x380dd2['containsRange'](_0x22c649,!0x0))return null;_0x90f9c6=_0x90f9c6['isBefore'](_0x380dd2['start'])?_0x90f9c6:_0x380dd2['start'],_0x406b65=_0x406b65['isAfter'](_0x380dd2['end'])?_0x406b65:_0x380dd2['end'],_0x13f947?_0x380dd2['start']['isBefore'](_0x13f947['getFirstRange']()['start'])?(_0x13f947['removeMarkers'](),_0x13f947=_0x302314):_0x302314['removeMarkers']():_0x13f947=_0x302314;}else{const _0x5bd1e5=_0x22c649['getIntersection'](_0x380dd2);this['_cutOutSuggestionMarker'](_0x302314,_0x5bd1e5);}}const _0x1e1ceb=this['editor']['plugins']['get']('Users')['me'],_0x51f0d8=_0x49bc9e(),_0x2ed7fe=_0x1e1ceb['id'];if(_0x13f947)return this['_setSuggestionRange'](_0x13f947,this['_model']['createRange'](_0x90f9c6,_0x406b65)),_0x13f947;{const _0xf62b20=this['_setSuggestionData']({'id':_0x51f0d8,'type':'formatBlock:'+_0x1651ed,'data':_0x3e01e1,'createdAt':new Date(),'authorId':_0x2ed7fe,'attributes':_0x173a0b});return this['_addSuggestionMarker']('formatBlock:'+_0x1651ed,_0x51f0d8,_0x2ed7fe,this['_model']['createRange'](_0x90f9c6,_0x406b65)),_0xf62b20;}}['markMultiRangeBlockFormat'](_0x30bb19,_0x26708a,_0x1238c0=[],_0x20e4a2=null,_0x291515={}){_0x26708a['formatGroupId']||(_0x26708a['formatGroupId']=_0x26708a['commandName']);const _0x2651b8=_0x30bb19[0x0];_0x26708a['multipleBlocks']=_0x2651b8['is']('range'),_0x20e4a2=_0x20e4a2||Ht(_0x26708a);const _0x3ada8e=_0x1238c0['map'](_0x356ab0=>tn(_0x356ab0,this['_model'])),_0xecb2c2=_0x2651b8['is']('range')?_0x30bb19:_0x30bb19['map'](_0x3cfd88=>tn(_0x3cfd88,this['_model']));if(this['_trackingSessionId']&&(_0x291515['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x195fa0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20e4a2,'accept');return this['forceDefaultExecution'](()=>_0x195fa0(_0xecb2c2,_0x26708a,_0x291515)),null;}_0x3ada8e['push'](..._0xecb2c2);let _0x2f8cf6=!0x0;for(const _0x1496b6 of _0x3ada8e)if(!this['_rangeIsInLocalUserInsertion'](_0x1496b6)){_0x2f8cf6=!0x1;break;}if(_0x2f8cf6&&'always'!==this['_trackFormatChanges']){const _0x3bc16e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20e4a2,'accept');return this['forceDefaultExecution'](()=>_0x3bc16e(_0xecb2c2,_0x26708a,_0x291515)),null;}const _0x323313=this['editor']['plugins']['get']('Users')['me'];for(const _0x2d0fc7 of this['getSuggestions']()){const _0x13d096=_0x2d0fc7['data'];if(_0x2d0fc7['author']['id']!=_0x323313['id'])continue;if('formatBlock'!=_0x2d0fc7['type']||_0x13d096['formatGroupId']!=_0x26708a['formatGroupId'])continue;if(!sn(_0x2d0fc7,_0x291515))continue;const _0x454f5b=_0x2d0fc7['subType']==_0x20e4a2;for(let _0x4b988a=0x0;_0x4b988a<_0xecb2c2['length'];_0x4b988a++){const _0xd09824=_0xecb2c2[_0x4b988a];for(const _0x432ac4 of _0x2d0fc7['getMarkers']()){const _0x1d4dc0=_0x432ac4['getRange']();if(_0xd09824['isEqual'](_0x1d4dc0)){_0x454f5b?(_0xecb2c2['splice'](_0x4b988a,0x1),_0x4b988a--):_0x2d0fc7['removeMarker'](_0x432ac4['name']);break;}}}}if(0x0==_0xecb2c2['length'])return null;const _0x28ea2a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20e4a2,'join');for(const _0x5569bc of this['getSuggestions']()){const _0x15e6a0=_0x5569bc['data'];if(_0x5569bc['author']['id']==_0x323313['id']&&('formatBlock'==_0x5569bc['type']&&_0x15e6a0['formatGroupId']==_0x26708a['formatGroupId']&&_0x5569bc['subType']==_0x20e4a2&&sn(_0x5569bc,_0x291515)&&(_0x28ea2a(_0x5569bc['getRanges'](),_0xecb2c2)||_0x28ea2a(_0xecb2c2,_0x5569bc['getRanges']())))){for(const _0x963daa of _0xecb2c2)_0x5569bc['addRange'](_0x963daa);return _0x5569bc;}}const _0x976502=_0x49bc9e(),_0x25925b=_0x323313['id'],_0x55e33e='formatBlock:'+_0x20e4a2,_0x439ece=this['_setSuggestionData']({'id':_0x976502,'type':_0x55e33e,'data':_0x26708a,'createdAt':new Date(),'authorId':_0x25925b,'attributes':_0x291515});for(const _0x58dbe0 of _0xecb2c2)this['_addSuggestionMarker'](_0x55e33e,_0x976502,_0x25925b,_0x58dbe0,x['getMultiRangeId']());return _0x439ece;}['markDeletion'](_0x3297f9,_0xd19bdc=null,_0x2178c7={}){if(_0x3297f9['isCollapsed'])return null;const _0xbd0b0c=this['editor']['plugins']['get']('Users')['me'],_0x1488bc=new _0x7e27aa(_0x3297f9['start'],_0x3297f9['end']);this['_trackingSessionId']&&(_0x2178c7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3bb5cc,meta:_0x4f2b8e}of this['_findSuggestions'](_0x1488bc,'insertion'))if(_0x4f2b8e['isOwn']&&!_0x4f2b8e['isNextTo']){if(_0x3bb5cc['isMultiRange']){const _0x8d502=_0x3bb5cc['getRanges']()['filter'](_0x52d31f=>'$graveyard'!=_0x52d31f['root']['rootName']);_0x8d502['every'](_0x5c9f5a=>_0x1488bc['containsRange'](_0x5c9f5a,!0x0))&&_0x3bb5cc['discard']();if(_0x8d502['some'](_0x23bc43=>_0x23bc43['containsRange'](_0x1488bc,!0x0))){const _0x255b6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd19bdc,'accept');return this['forceDefaultExecution'](()=>_0x255b6b([_0x1488bc],null,_0x2178c7)),null;}}else{const _0x49ce06=_0x1488bc['getIntersection'](_0x3bb5cc['getFirstRange']());null!==_0x49ce06&&_0x3bb5cc['_onDiscard']([_0x49ce06],null,_0x2178c7);}}if(_0x1488bc['detach'](),_0x1488bc['isCollapsed']||'$graveyard'==_0x1488bc['root']['rootName'])return null;let _0x2ca0a9=null,_0x524cb1=_0x1488bc['start'],_0x19de6e=_0x1488bc['end'];const _0x20e561=this['_findSuggestions'](_0x1488bc,'deletion');for(const {suggestion:_0x2661cc,meta:_0x3e1722}of _0x20e561){const _0x237eae=this['_model']['createRange'](_0x524cb1,_0x19de6e);if(_0x3e1722['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e1722['containsRangeInObject']&&!_0x3e1722['isInsideObject'])){if(_0x2661cc['isMultiRange']){if(!sn(_0x2661cc,_0x2178c7))continue;let _0x15b25c=!0x0;for(const _0x25f09d of _0x2661cc['getRanges']()){if(_0x25f09d['containsRange'](_0x237eae,!0x0))return _0x2661cc;_0x237eae['containsRange'](_0x25f09d)||(_0x15b25c=!0x1);}_0x15b25c&&_0x2661cc['discard']();}else{const _0x383992=_0x2661cc['getFirstRange']();if(_0x383992['containsRange'](_0x237eae,!0x0))return _0x2661cc;if(!sn(_0x2661cc,_0x2178c7)){_0x237eae['containsRange'](_0x383992)?_0x2661cc['removeMarkers']():_0x383992['containsPosition'](_0x524cb1)?_0x524cb1=_0x383992['end']:_0x383992['containsPosition'](_0x19de6e)&&(_0x19de6e=_0x383992['start']);continue;}_0x524cb1=_0x524cb1['isBefore'](_0x383992['start'])?_0x524cb1:_0x383992['start'],_0x19de6e=_0x19de6e['isAfter'](_0x383992['end'])?_0x19de6e:_0x383992['end'],_0x2178c7=Object['assign']({},_0x2661cc['attributes']),_0x2ca0a9?_0x383992['start']['isBefore'](_0x2ca0a9['getFirstRange']()['start'])?(_0x2ca0a9['removeMarkers'](),_0x2ca0a9=_0x2661cc):_0x2661cc['removeMarkers']():_0x2ca0a9=_0x2661cc;}}}if(_0x2ca0a9)return this['_setSuggestionRange'](_0x2ca0a9,this['_model']['createRange'](_0x524cb1,_0x19de6e)),_0x2ca0a9;{const _0x1b532f=_0x49bc9e(),_0x275779=this['_model']['createRange'](_0x524cb1,_0x19de6e),_0x46344a=_0xbd0b0c['id'],_0x23dada=_0xd19bdc?'deletion:'+_0xd19bdc:'deletion',_0x36b974=this['_setSuggestionData']({'id':_0x1b532f,'type':_0x23dada,'createdAt':new Date(),'authorId':_0x46344a,'attributes':_0x2178c7});return this['_addSuggestionMarker'](_0x23dada,_0x1b532f,_0x46344a,_0x275779),_0x36b974;}}['markMultiRangeDeletion'](_0x293b7a,_0x1a8afe='multi',_0x55bd39={}){const _0x4a234c=this['editor']['plugins']['get']('Users')['me'],_0x1ff93c=_0x293b7a['map'](_0x1beb4c=>new _0x7e27aa(_0x1beb4c['start'],_0x1beb4c['end'])),_0x13923b=new Set();this['_trackingSessionId']&&(_0x55bd39['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xf26964,meta:_0x19bc1d}of this['_findSuggestions'](_0x1ff93c,'insertion'))_0x19bc1d['isOwn']&&!_0x19bc1d['isNextTo']&&_0x13923b['add'](_0xf26964);for(const _0x33442b of _0x13923b)if(_0x33442b['isMultiRange']){const _0x50f87a=_0x33442b['getRanges']();(!_0x33442b['attributes']||!_0x33442b['attributes']['skipNestingCheck'])&&(_0x50f87a['every'](_0x301497=>_0x1ff93c['some'](_0x3c41f4=>_0x3c41f4['containsRange'](_0x301497,!0x0)))&&_0x33442b['discard']());if(_0x1ff93c['every'](_0x57e135=>_0x50f87a['some'](_0xe18321=>_0xe18321['containsRange'](_0x57e135,!0x0)))){const _0x5349f6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a8afe,'accept');return this['forceDefaultExecution'](()=>_0x5349f6(_0x293b7a,null,_0x55bd39)),null;}}else{const _0x1d0487=_0x33442b['getFirstRange']();_0x1ff93c['some'](_0x5cfb80=>_0x5cfb80['containsRange'](_0x1d0487,!0x0))&&_0x33442b['discard']();if(_0x1ff93c['every'](_0x3c8136=>_0x1d0487['containsRange'](_0x3c8136,!0x0))){const _0x591d91=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a8afe,'accept');return this['forceDefaultExecution'](()=>_0x591d91(_0x1ff93c,null,_0x55bd39)),null;}}const _0xec13a0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a8afe,'join');let _0x48ccf3=null;for(const _0x2fbf8c of this['getSuggestions']())if(_0x2fbf8c['author']['id']==_0x4a234c['id']&&_0x2fbf8c['isInContent']&&'deletion'==_0x2fbf8c['type']&&_0x2fbf8c['subType']==_0x1a8afe&&sn(_0x2fbf8c,_0x55bd39)&&(_0xec13a0(_0x2fbf8c['getRanges'](),_0x1ff93c)||_0xec13a0(_0x1ff93c,_0x2fbf8c['getRanges']()))){if(_0x48ccf3){if(_0x2fbf8c['commentThread']&&_0x2fbf8c['commentThread']['length'])continue;for(const _0x23e39f of _0x2fbf8c['getRanges']())_0x48ccf3['isIntersectingWithRange'](_0x23e39f)||_0x48ccf3['addRange'](_0x23e39f);_0x2fbf8c['removeMarkers']();}else{_0x48ccf3=_0x2fbf8c;for(const _0x2c2698 of _0x1ff93c)_0x2fbf8c['isIntersectingWithRange'](_0x2c2698)||_0x2fbf8c['addRange'](_0x2c2698);}}if(_0x48ccf3)return _0x48ccf3;_0x13923b['clear']();for(const {suggestion:_0x17c4ce,meta:_0x305216}of this['_findSuggestions'](_0x1ff93c,'deletion'))_0x305216['isOwn']&&(this['_mergeNestedSuggestions']||!_0x305216['containsRangeInObject']&&!_0x305216['isInsideObject'])&&sn(_0x17c4ce,_0x55bd39)&&_0x13923b['add'](_0x17c4ce);for(const _0x46d5b2 of _0x13923b){const _0x428ed1=_0x46d5b2['getRanges']();if(!_0x55bd39||!_0x55bd39['skipNestingCheck']){if(_0x1ff93c['every'](_0x57701d=>_0x428ed1['some'](_0x3647c7=>_0x3647c7['containsRange'](_0x57701d,!0x0))))return _0x46d5b2;}(!_0x46d5b2['attributes']||!_0x46d5b2['attributes']['skipNestingCheck'])&&(_0x428ed1['every'](_0x2062dd=>_0x1ff93c['some'](_0x235af6=>_0x235af6['containsRange'](_0x2062dd,!0x0)))&&_0x46d5b2['discard']());}const _0xe47acb=_0x49bc9e(),_0x6bc9f9=_0x4a234c['id'],_0x1b88d4='deletion:'+_0x1a8afe,_0x521b31=this['_setSuggestionData']({'id':_0xe47acb,'type':_0x1b88d4,'createdAt':new Date(),'authorId':_0x6bc9f9,'attributes':_0x55bd39});for(const _0x21d9db of _0x1ff93c)_0x21d9db['detach'](),_0x21d9db['isCollapsed']||'$graveyard'==_0x21d9db['root']['rootName']||this['_addSuggestionMarker'](_0x1b88d4,_0xe47acb,_0x6bc9f9,_0x21d9db,x['getMultiRangeId']());return _0x521b31;}['markAttributeChange'](_0x462684,_0x1c953f,_0x5a0d8d,_0x2da92a,_0x310e6f){if(_0x462684['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5d32e7=this['editor']['plugins']['get']('Users')['me']['id'],_0xc67912=Array['from'](this['_suggestions']['values']())['filter'](_0x42430a=>'attribute'==_0x42430a['type']&&_0x42430a['data']['key']==_0x1c953f&&_0x42430a['isIntersectingWithRange'](_0x462684));if(this['_trackingSessionId']&&(_0x310e6f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x14294e=this['_findSuggestions'](_0x462684,'insertion')['filter'](({meta:_0x3bd8f0})=>_0x3bd8f0['isOwn']&&!_0x3bd8f0['isInsideObject']&&!_0x3bd8f0['isNextTo'])['map'](({suggestion:_0x1abb18})=>_0x1abb18);_0xc67912['unshift'](..._0x14294e);}const _0x2be1ea=new Map([[_0x462684,_0x5a0d8d]]);for(const _0x37d0ec of _0xc67912){const _0x30dd7='attribute'==_0x37d0ec['type']?_0x37d0ec['data']['oldValue']:void 0x0,_0x233e38=_0x37d0ec['getFirstRange'](),_0x1e9ecd=Array['from'](_0x2be1ea['keys']())['find'](_0x29b8a1=>_0x29b8a1['isIntersecting'](_0x233e38));if(!_0x1e9ecd)continue;const _0x3a9c38=_0x1e9ecd['getDifference'](_0x233e38);this['_isBlockAttribute'](_0x1c953f)&&'insertion'==_0x37d0ec['type']&&0x0!=_0x3a9c38['length']||(_0x2be1ea['delete'](_0x1e9ecd),_0x3a9c38['forEach'](_0x5f1c3b=>{_0x2be1ea['set'](_0x5f1c3b,_0x5a0d8d);}),'insertion'!=_0x37d0ec['type']&&_0x30dd7!=_0x2da92a&&_0x2be1ea['set'](_0x1e9ecd['getIntersection'](_0x233e38),_0x30dd7));}const _0x2a6d1f=[];for(const [_0xa4e657,_0x416e4c]of _0x2be1ea){const _0x64d80d=_0x49bc9e(),_0x1a0996={'key':_0x1c953f,'oldValue':_0x416e4c,'newValue':_0x2da92a};_0x1c953f['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':_0x1c953f});const _0x35c94e=('attribute:'+(_0x1c953f+'|'+Ht({'newValue':_0x2da92a})))['substring'](0x0,0x3c),_0x103c98=this['_setSuggestionData']({'id':_0x64d80d,'type':_0x35c94e,'data':_0x1a0996,'createdAt':new Date(),'authorId':_0x5d32e7,'attributes':_0x310e6f});_0x2a6d1f['push'](_0x103c98),this['_addSuggestionMarker'](_0x35c94e,_0x64d80d,_0x5d32e7,_0xa4e657);}return _0x2a6d1f;}['enableDefaultAttributesIntegration'](_0x3dbe8e){this['enableCommand'](_0x3dbe8e,(_0x3945c7,..._0x3369bb)=>{this['recordAttributeChanges'](()=>{_0x3945c7(..._0x3369bb);});});}['registerBlockAttribute'](_0x28435e){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x28435e);}['registerInlineAttribute'](_0x1a2be9){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1a2be9);}['startTrackingSession'](_0x3ab0c2){return this['_trackingSessionId']=void 0x0!==_0x3ab0c2?_0x3ab0c2:_0x49bc9e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x56a786){return'attribute'==_0x56a786['type']?_0x56a786['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x13e09b){if(0x0==_0x13e09b['length'])return;const _0x56af2f=this['editor'],_0x8ed299=_0x56af2f['plugins']['get'](_0x49fb4a),_0x475660=[];_0x56af2f['model']['change'](_0x544999=>{for(let _0x91a1c7=0x0;_0x91a1c7<_0x13e09b['length'];_0x91a1c7++){const _0x27f134=_0x13e09b[_0x91a1c7];if(_0x27f134['baseVersion']=_0x56af2f['model']['document']['version'],_0x27f134['isDocumentOperation']=!0x0,_0x8ed299['isMarkedRemoveOperation'](_0x27f134)){const _0x13102c=Lt(_0x27f134['newRange'],_0x56af2f['model']);_0x475660['unshift'](_0x7e27aa['fromRange'](_0x13102c));}else switch(_0x27f134['type']){case'rename':{const _0xa23f07=_0x27f134['oldName'],_0x32258e=_0x27f134['newName'];if(_0xa23f07==_0x32258e)break;_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);const _0x4336cd='$elementName',_0x5a9a70=_0x27f134['position'],_0x4b033e=_0x56af2f['model']['createRange'](_0x5a9a70,_0x56af2f['model']['createPositionAt'](_0x5a9a70['nodeAfter'],'end'));this['markAttributeChange'](_0x4b033e,_0x4336cd,_0xa23f07,_0x32258e,{'groupId':_0x49bc9e()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2bceef=_0x27f134['oldValue'],_0x522031=_0x27f134['newValue'];if(_0x2bceef==_0x522031)break;_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);const _0x4d4b29=_0x27f134['key'];if(!this['_isRegisteredAttribute'](_0x4d4b29))break;const _0x5cdde5=Lt(_0x27f134['range'],_0x56af2f['model']);this['markAttributeChange'](_0x5cdde5,_0x4d4b29,_0x2bceef,_0x522031,{'groupId':_0x49bc9e()});break;}case'insert':{_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);if(_0x13e09b[_0x91a1c7+0x1]&&'move'==_0x13e09b[_0x91a1c7+0x1]['type'])break;const _0x7361b2=_0x27f134['position'],_0x5cbb6a=_0x27f134['howMany'],_0x51089c=Lt(_0x56af2f['model']['createRange'](_0x7361b2,_0x7361b2['getShiftedBy'](_0x5cbb6a)),_0x56af2f['model']);this['markInsertion'](_0x51089c);break;}case'split':{_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);const _0x13b0f=_0x27f134['splitPosition'],_0x4a3618=_0x27f134['moveTargetPosition'];this['markInsertion'](_0x56af2f['model']['createRange'](_0x13b0f,_0x4a3618));break;}case'move':case'remove':_0x544999['batch']['addOperation'](_0x27f134),_0x56af2f['model']['applyOperation'](_0x27f134);}}for(const _0x3baeae of _0x475660)_0x3baeae['detach'](),this['markDeletion'](_0x3baeae);});}['_setSuggestionRange'](_0x4e12f9,_0x303868){const _0x55e287=_0x4e12f9['getFirstMarker']();this['_model']['change'](_0x147057=>{_0x147057['updateMarker'](_0x55e287,{'range':_0x303868});});}['_addThreadToSuggestion'](_0x46d222){const _0x565546=_0x46d222['id'],_0x339936=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x565546)||this['_commentsRepository']['addCommentThread']({'channelId':_0x339936,'threadId':_0x565546,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c01d5=this['_commentsRepository']['getCommentThread'](_0x565546);_0x1c01d5['unbind']('isRemovable'),_0x1c01d5['isRemovable']=!0x1,_0x46d222['commentThread']=_0x1c01d5;}['_checkSuggestionCorrectness'](_0x225d91,_0x206e28,_0x3a1ddd,_0x48dc28){if(_0x225d91['type']!=_0x206e28||_0x225d91['subType']!=_0x3a1ddd||_0x225d91['creator']['id']!=_0x48dc28)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3229f3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x41e746,_0x465c60){const _0x3dd3c6=_0x41e746['getFirstRange']();if(_0x465c60['isEqual'](_0x3dd3c6))_0x41e746['removeMarkers']();else{if(_0x3dd3c6['containsRange'](_0x465c60)){const _0x29b93c=this['_model']['createPositionAt'](_0x465c60['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41e746,this['_model']['createRange'](_0x3dd3c6['start'],_0x29b93c));const _0x4c7ecb=_0x49bc9e(),_0x2c2084=_0x41e746['creator']['id'],_0x3aaab7=_0x41e746['type']+':'+_0x41e746['subType'];this['_setSuggestionData']({'id':_0x4c7ecb,'type':_0x3aaab7,'createdAt':new Date(),'authorId':_0x2c2084,'data':_0x41e746['data'],'attributes':_0x41e746['attributes']});const _0x27ed0f=this['_model']['createPositionAt'](_0x465c60['end']['parent'],'after'),_0x429dbc=this['_model']['createRange'](_0x27ed0f,_0x3dd3c6['end']);this['_addSuggestionMarker'](_0x3aaab7,_0x4c7ecb,_0x2c2084,_0x429dbc);}else{if(_0x3dd3c6['containsPosition'](_0x465c60['start'])){const _0x5d8ed1=this['_model']['createPositionAt'](_0x465c60['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41e746,this['_model']['createRange'](_0x3dd3c6['start'],_0x5d8ed1));}else{const _0x3f19c7=this['_model']['createPositionAt'](_0x465c60['end']['parent'],'after');this['_setSuggestionRange'](_0x41e746,this['_model']['createRange'](_0x3f19c7,_0x3dd3c6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4589f2){for(const {suggestion:_0x2347b3,meta:_0x1aa606}of this['_findSuggestions'](_0x4589f2,'insertion')){if(!_0x1aa606['isOwn'])continue;const _0x3639ec=_0x2347b3['getRanges']();for(const _0x20c364 of _0x3639ec)if(!_0x4589f2['getDifference'](_0x20c364)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1fefeb){return this['editor']['plugins']['get']('Users')['getUser'](_0x1fefeb);}['_getExternalAuthor'](_0x1dac81){const _0x301c1d=this['editor']['plugins']['get']('Users'),_0x15ae93=_0xa821ed('external:'+_0x1dac81),_0x1e128a=_0x301c1d['getUser'](_0x15ae93);return _0x1e128a||_0x301c1d['addUser']({'id':_0x15ae93,'name':_0x1dac81});}['_createSuggestion'](_0x4dc51f,_0x15b841,_0x43d977,_0x50c37d,_0x355bf4,_0x246e71){const _0x313a8c=this['_getAuthorFromId'](_0x50c37d);if(!_0x313a8c)throw new _0x3229f3('track-changes-user-not-found',this,{'authorId':_0x50c37d,'suggestionId':_0x43d977});const _0x517772=this['_suggestionFactory']['buildSuggestion'](_0x4dc51f,_0x15b841,_0x43d977,_0x313a8c,_0x355bf4,_0x41c3cf=>{this['_updateSuggestionData'](_0x43d977,{'attributes':_0x41c3cf});const _0x3f3bcb=this['getSuggestion'](_0x43d977);this['_joinWithAdjacentSuggestions'](new Set([_0x3f3bcb])),this['_refreshSuggestionsChain'](new Set([_0x3f3bcb]));},_0x246e71);return this['listenTo'](_0x517772,'accept',()=>{this['_updateSuggestionData'](_0x43d977,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x517772,'discard',()=>{this['_updateSuggestionData'](_0x43d977,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x43d977,_0x517772),this['_suggestionState']['set'](_0x517772,'notReady'),_0x517772;}['_splitMarkerName'](_0x29cda1){return Gt(_0x29cda1);}['_breakSuggestionMarker'](_0x3b73ec,_0x561bba,_0x2f4c4b){const _0x197c6c=_0x3b73ec['getFirstRange'](),_0x5c7d49=_0x197c6c['start'],_0x3f6c0a=_0x197c6c['end'];this['_setSuggestionRange'](_0x3b73ec,this['_model']['createRange'](_0x5c7d49,_0x561bba));const _0x3ee0dc=_0x49bc9e(),_0x1089e5=_0x3b73ec['creator']['id'],_0x7c8cdc=_0x3b73ec['type']+(_0x3b73ec['subType']?':'+_0x3b73ec['subType']:'');this['_setSuggestionData']({'id':_0x3ee0dc,'type':_0x7c8cdc,'createdAt':new Date(),'authorId':_0x1089e5,'originalSuggestionId':_0x3b73ec['_originalSuggestionId']||_0x3b73ec['id'],'attributes':_0x3b73ec['attributes'],'data':_0x3b73ec['data']});const _0x37461c=this['_getAttributeKey'](_0x3b73ec);('formatBlock'==_0x3b73ec['type']||_0x37461c&&this['_isBlockAttribute'](_0x37461c))&&(_0x2f4c4b=this['_model']['createPositionBefore'](_0x2f4c4b['parent'])),this['_addSuggestionMarker'](_0x7c8cdc,_0x3ee0dc,_0x1089e5,this['_model']['createRange'](_0x2f4c4b,_0x3f6c0a));}['_findSuggestions'](_0x17daa7,_0x25736e=null){const _0x5d63a8=[],_0x575e5d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x17daa7)||(_0x17daa7=[_0x17daa7]);for(const _0x29b400 of this['getSuggestions']()){if(!_0x29b400['isInContent'])continue;if(_0x25736e&&_0x29b400['type']!=_0x25736e)continue;let _0x24d58a=!0x1;for(const _0x4f0ece of _0x29b400['getRanges']()){for(const _0x3a9c23 of _0x17daa7){const _0x3dbf83=_0x3a9c23['start']['isEqual'](_0x4f0ece['end'])||_0x3a9c23['end']['isEqual'](_0x4f0ece['start']);if(_0x3dbf83||_0x3a9c23['getIntersection'](_0x4f0ece)){const _0x5bcb24=_0x3a9c23['containsRange'](_0x4f0ece)&&zt(this['_model']['schema'],_0x4f0ece['start'],_0x3a9c23),_0x3b4efd=_0x4f0ece['containsRange'](_0x3a9c23)&&zt(this['_model']['schema'],_0x3a9c23['start'],_0x4f0ece);_0x5d63a8['push']({'suggestion':_0x29b400,'meta':{'isOwn':_0x575e5d==_0x29b400['author'],'isNextTo':_0x3dbf83,'isInsideObject':_0x5bcb24,'containsRangeInObject':_0x3b4efd}}),_0x24d58a=!0x0;break;}}if(_0x24d58a)break;}}return _0x5d63a8;}['_addSuggestionMarker'](_0x34465a,_0x2f682b,_0x25066d,_0x50914c,_0x41d9a7){this['_model']['change'](_0x2b709c=>{let _0xd2a710='suggestion:'+_0x34465a+':'+_0x2f682b+':'+_0x25066d;_0x41d9a7&&(_0xd2a710=_0xd2a710+':'+_0x41d9a7),_0x2b709c['addMarker'](_0xd2a710,{'range':_0x50914c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1ec23b){const _0x5d2423=_0x1ec23b['previous'],_0x2e269b=_0x1ec23b['next'];_0x1ec23b['previous']=null,_0x1ec23b['next']=null,null!=_0x5d2423&&_0x5d2423['next']==_0x1ec23b&&(_0x5d2423['next']=_0x2e269b),null!=_0x2e269b&&_0x2e269b['previous']==_0x1ec23b&&(_0x2e269b['previous']=_0x5d2423),'ready'==this['_suggestionState']['get'](_0x1ec23b)&&(this['_suggestionState']['set'](_0x1ec23b,'removed'),this['fire']('suggestionUnloaded',_0x1ec23b,_0x5d2423,_0x2e269b));}['_setSuggestionData'](_0x3d5276){const _0x58e9a8=_0x3d5276['id'],_0x127124=this['addSuggestionData'](_0x3d5276);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f9d81=this['editor']['plugins']['get']('PendingActions'),_0x45af81=_0x127124['hasComments'],_0x377108=_0x127124['subType']?_0x127124['type']+':'+_0x127124['subType']:_0x127124['type'],_0x5bf10b=this['editor']['locale'],_0x27e2eb=_0x1f9d81['add'](o(_0x5bf10b,'PENDING_ACTION_SUGGESTION')),_0x43a9a1={'id':_0x58e9a8,'type':_0x377108,'hasComments':_0x45af81,'data':_0x3d5276['data']||null,'originalSuggestionId':_0x3d5276['originalSuggestionId']||null,'attributes':_0x127124['attributes']};this['_adapter']['addSuggestion'](_0x43a9a1)['then'](_0xe68ccc=>{_0x127124['_saved']=!0x0,_0x1f9d81['remove'](_0x27e2eb),_0xe68ccc&&_0xe68ccc['createdAt']&&(this['_suggestions']['get'](_0x58e9a8)['createdAt']=_0xe68ccc['createdAt']);})['catch'](_0x573951=>{throw _0x2c240d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x127124['discard']();}),_0x127124['stopListening'](),this['_suggestions']['delete'](_0x127124['id']),this['_suggestionState']['delete'](_0x127124),_0x573951;});}return _0x127124;}['_isBlockAttribute'](_0x24db2c){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x24db2c);}['_isInlineAttribute'](_0x5644df){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x5644df);}['_updateSuggestionData'](_0x40c8a1,_0x4a3505){const _0x5808d2=this['editor']['plugins']['get']('PendingActions'),_0x1961b2=this['getSuggestion'](_0x40c8a1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1961b2['_saved']){const _0x2c8f19=_0x5808d2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x40c8a1,_0x4a3505)['then'](()=>{_0x5808d2['remove'](_0x2c8f19);});}else _0x1961b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x40c8a1,_0x4a3505);});}}['_getSuggestionData'](_0x10ef3a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3229f3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x10ef3a);}['_handleNewSuggestionMarker'](_0x39c445){const {id:_0x4c2548,type:_0xa4a902,subType:_0x11949e,authorId:_0x2030aa}=this['_splitMarkerName'](_0x39c445),_0x2b9d12=this['_suggestions']['get'](_0x4c2548)||this['_createSuggestion'](_0xa4a902,_0x11949e,_0x4c2548,_0x2030aa,{});switch(this['_checkSuggestionCorrectness'](_0x2b9d12,_0xa4a902,_0x11949e,_0x2030aa),this['_suggestionState']['get'](_0x2b9d12)){case'notReady':this['_getSuggestionData'](_0x4c2548)['then'](_0x1e2471=>{let _0x1b897e=Promise['resolve']();_0x1e2471['hasComments']&&(_0x1b897e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4c2548})),_0x1b897e['then'](()=>{this['addSuggestionData'](_0x1e2471)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2b9d12,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4c2548,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2b9d12,'ready'),this['fire']('suggestionLoaded',_0x2b9d12);break;case'ready':this['fire']('suggestionChanged',_0x2b9d12);}return _0x2b9d12['addMarkerName'](_0x39c445),_0x2b9d12;}['_refreshSuggestionsChain'](_0x5607be){const _0x7fbe3a=Array['from'](_0x5607be),_0x3295eb=_0x7fbe3a['filter'](_0x3bed4d=>'attribute'==_0x3bed4d['type']);this['_refreshAttributeSuggestionsChain'](_0x3295eb);const _0x5aed93=_0x7fbe3a['filter'](_0x32f906=>!_0x32f906['isMultiRange']&&'attribute'!=_0x32f906['type']),_0x4a8b44=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xefdfa6=>!_0xefdfa6['isMultiRange']&&'attribute'!=_0xefdfa6['type']),_0x238109=_0x4a8b44['filter'](_0x58fa6e=>!_0x5607be['has'](_0x58fa6e)),_0x221995=new Map(_0x4a8b44['map'](_0x24e9c6=>[_0x24e9c6,this['_suggestionFactory']['getSuggestionCallback'](_0x24e9c6['type'],_0x24e9c6['subType'],'chain')])),_0x3886fd=new Map(_0x4a8b44['map'](_0x1e5878=>[_0x1e5878,_0x1e5878['getFirstRange']()])),_0x35a42c=new Set(),_0x3567cd=new Set();for(let _0x21867a=0x0;_0x21867a<_0x5aed93['length'];_0x21867a++)_0x5e9568(_0x5aed93[_0x21867a],_0x5aed93,_0x21867a+0x1);for(let _0x1b0deb=0x0;_0x1b0deb<_0x5aed93['length'];_0x1b0deb++)_0x5e9568(_0x5aed93[_0x1b0deb],_0x238109,0x0);const _0x2b0766=new Set();for(let _0x1c7fa3=0x0;_0x1c7fa3<_0x5aed93['length'];_0x1c7fa3++){const _0x591451=_0x5aed93[_0x1c7fa3];!_0x3567cd['has'](_0x591451)&&_0x591451['previous']&&(_0x2b0766['add'](_0x591451['previous']),_0x591451['previous']['next']===_0x591451&&(_0x591451['previous']['next']=null),_0x591451['previous']=null),!_0x35a42c['has'](_0x591451)&&_0x591451['next']&&(_0x2b0766['add'](_0x591451['next']),_0x591451['next']['previous']===_0x591451&&(_0x591451['next']['previous']=null),_0x591451['next']=null);}function _0x5e9568(_0x576f22,_0x4f7597,_0x54ff37){for(let _0x10999d=_0x54ff37;_0x10999d<_0x4f7597['length'];_0x10999d++){const _0x42febc=_0x3c40a4(_0x576f22,_0x4f7597[_0x10999d]);_0x42febc&&(_0x42febc[0x0]['next']=_0x42febc[0x1],_0x42febc[0x1]['previous']=_0x42febc[0x0],_0x35a42c['add'](_0x42febc[0x0]),_0x3567cd['add'](_0x42febc[0x1]));}}function _0x3c40a4(_0x39630f,_0x249eab){if(_0x39630f['author']['id']!==_0x249eab['author']['id'])return null;const _0x15a072=_0x221995['get'](_0x39630f)(_0x39630f,_0x249eab,_0x3886fd['get'](_0x39630f),_0x3886fd['get'](_0x249eab));if(!_0x15a072)return null;return _0x221995['get'](_0x249eab)(_0x39630f,_0x249eab,_0x3886fd['get'](_0x39630f),_0x3886fd['get'](_0x249eab))?_0x15a072[0x1]['commentThread']&&_0x15a072[0x1]['commentThread']['length']?null:_0x15a072:null;}_0x2b0766['size']&&this['_refreshSuggestionsChain'](_0x2b0766);}['_refreshAttributeSuggestionsChain'](_0x58d5b3){if(0x0==_0x58d5b3['length'])return;const _0x1abc17=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13525c=>'attribute'==_0x13525c['type']&&_0x13525c['_isDataLoaded']),_0x84fbf5=[],_0x151153=new Map();for(const _0x4895b6 of _0x1abc17){const _0x406a0c=_0xa821ed(_0x4895b6['attributes']);_0x151153['has'](_0x406a0c)||(_0x151153['set'](_0x406a0c,_0x84fbf5['length']),_0x84fbf5['push']([]));const _0x17332e=_0x151153['get'](_0x406a0c);_0x84fbf5[_0x17332e]['push'](_0x4895b6);}!(function(){_0x84fbf5['sort']((_0x42825f,_0x1d2e8a)=>{const _0x4ea11c=_0x42825f[0x0]['createdAt'],_0x1f3217=_0x1d2e8a[0x0]['createdAt'];return _0x4ea11c==_0x1f3217?_0x42825f[0x0]['attributes']['groupId']<_0x1d2e8a[0x0]['attributes']['groupId']?-0x1:0x1:_0x4ea11c<_0x1f3217?-0x1:0x1;});for(const _0x1075ea of _0x84fbf5)_0x1075ea['sort']((_0x289c1e,_0x30dea9)=>_0x289c1e['id']<_0x30dea9['id']?-0x1:0x1);}());for(let _0x266fad=0x0;_0x266fad<_0x84fbf5['length'];_0x266fad++){if(0x0==_0x84fbf5[_0x266fad]['length'])continue;const _0x498416=[];for(let _0xdb07f0=_0x266fad+0x1;_0xdb07f0<_0x84fbf5['length'];_0xdb07f0++)0x0!=_0x84fbf5[_0xdb07f0]['length']&&_0x5b56f1(_0x84fbf5[_0x266fad],_0x84fbf5[_0xdb07f0])&&_0x498416['push'](_0xdb07f0);for(const _0x5f32c3 of _0x498416)_0x84fbf5[_0x266fad]=_0x84fbf5[_0x266fad]['concat'](_0x84fbf5[_0x5f32c3]),_0x84fbf5[_0x5f32c3]=[];}for(const _0x3d4123 of _0x84fbf5)for(let _0x53f7fc=0x0;_0x53f7fc<_0x3d4123['length'];_0x53f7fc++){const _0xbcfbb2=_0x3d4123[_0x53f7fc+0x1]||null;_0x3d4123[_0x53f7fc]['next']!==_0xbcfbb2&&(_0x3d4123[_0x53f7fc]['next']=_0xbcfbb2);}for(const _0x268a29 of _0x84fbf5)for(let _0x52685b=0x0;_0x52685b<_0x268a29['length'];_0x52685b++){const _0x5142f8=_0x268a29[_0x52685b-0x1]||null;_0x268a29[_0x52685b]['previous']!==_0x5142f8&&(_0x268a29[_0x52685b]['previous']=_0x5142f8);}function _0x5b56f1(_0x5b3d59,_0x396522){if(_0x5b3d59[0x0]['attributes']['groupId']!==_0x396522[0x0]['attributes']['groupId']&&_0x5b3d59[0x0]['author']!==_0x396522[0x0]['author'])return!0x1;if(!function(_0x22239e,_0x21022b){if(!_0x22239e['hasComments']&&!_0x21022b['hasComments'])return!0x0;if(_0x22239e['hasComments']&&_0x21022b['hasComments'])return!0x1;if(_0x22239e['hasComments']&&_0x21022b['createdAt']<_0x22239e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x21022b['hasComments']&&_0x22239e['createdAt']<_0x21022b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b3d59[0x0],_0x396522[0x0]))return!0x1;const _0xc3ac91=Pt(_0x5b3d59[0x0]['attributes'],['groupId','trackingSessionId']),_0x57009c=Pt(_0x396522[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4eaf57(_0xc3ac91,_0x57009c))return!0x1;if(_0x5b3d59[0x0]['attributes']['groupId']==_0x396522[0x0]['attributes']['groupId'])return!0x0;if(_0x5b3d59[0x0]['attributes']['trackingSessionId']!==_0x396522[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5b3d59['every'](_0x5d476e=>_0x396522['some'](_0x13cde6=>_0x5d476e['getFirstRange']()['isEqual'](_0x13cde6['getFirstRange']())))&&_0x396522['every'](_0x5b93b8=>_0x5b3d59['some'](_0x274a66=>_0x5b93b8['getFirstRange']()['isEqual'](_0x274a66['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xb1e58c){const _0x289c8b=Array['from'](_0xb1e58c),_0x379246=this['getSuggestions']({'skipNotAttached':!0x0}),_0x230407=_0x379246['filter'](_0x35dc0b=>!_0xb1e58c['has'](_0x35dc0b)),_0x53011b=new Map(_0x289c8b['map'](_0x14b753=>[_0x14b753,this['_suggestionFactory']['getSuggestionCallback'](_0x14b753['type'],_0x14b753['subType'],'join')])),_0x39a949=new Map(_0x379246['map'](_0x177b4a=>[_0x177b4a,_0x177b4a['getRanges']()]));for(let _0x1c9ed3=0x0;_0x1c9ed3<_0x289c8b['length'];_0x1c9ed3++){if(_0x5da690(this,_0x289c8b[_0x1c9ed3],_0x289c8b,_0x1c9ed3+0x1))return!0x0;}for(let _0x459940=0x0;_0x459940<_0x289c8b['length'];_0x459940++){if(_0x5da690(this,_0x289c8b[_0x459940],_0x230407,0x0))return!0x0;}return!0x1;function _0x5da690(_0x5de1d6,_0x1f9962,_0x21ec4f,_0x546050){for(let _0x4ecfd2=_0x546050;_0x4ecfd2<_0x21ec4f['length'];_0x4ecfd2++){const _0x5a7393=_0x21ec4f[_0x4ecfd2];if(_0x5a7393['type']!==_0x1f9962['type']||_0x5a7393['author']['id']!==_0x1f9962['author']['id']||_0x5a7393['subType']!==_0x1f9962['subType'])continue;if(!en(_0x1f9962,_0x5a7393))continue;if('attribute'==_0x1f9962['type']&&_0x1f9962['data']['oldValue']!=_0x5a7393['data']['oldValue'])continue;if('attribute'==_0x1f9962['type']&&_0x5de1d6['_isBlockAttribute'](_0x1f9962['data']['key']))continue;if('formatBlock'==_0x1f9962['type']){const _0x88bd31=_0x5de1d6['editor']['model'],_0x1eed67=_0x1f9962['getContainedElement']();if(_0x1eed67&&(_0x88bd31['schema']['isObject'](_0x1eed67)||_0x88bd31['schema']['isLimit'](_0x1eed67)))continue;}const _0x52f999=_0x53011b['get'](_0x1f9962),_0x163489=_0x39a949['get'](_0x1f9962),_0x4cdf64=_0x39a949['get'](_0x5a7393),_0x3b2d45=_0x1f9962['commentThread']&&_0x1f9962['commentThread']['length'],_0x2b7398=_0x5a7393['commentThread']&&_0x5a7393['commentThread']['length'];if(!_0x3b2d45&&_0x52f999(_0x4cdf64,_0x163489))return _0x5de1d6['_joinSuggestions'](_0x5a7393,_0x1f9962),_0x39a949['delete'](_0x1f9962),!0x0;if(!_0x2b7398&&_0x52f999(_0x163489,_0x4cdf64))return _0x5de1d6['_joinSuggestions'](_0x1f9962,_0x5a7393),_0x39a949['delete'](_0x5a7393),!0x0;}return!0x1;}}['_joinSuggestions'](_0x40599f,_0x566bfe){if(_0x40599f['isMultiRange']){for(const _0x5d25a0 of _0x566bfe['getRanges']())_0x40599f['addRange'](_0x5d25a0);}else{const _0x1689a2=_0x566bfe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x40599f,this['_model']['createRange'](_0x40599f['getFirstRange']()['start'],_0x1689a2));}_0x566bfe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4f3367,_0x2f9a6e,_0x136bf1){const _0x483d63=_0x4f3367['startsWith']('format')||_0x4f3367['startsWith']('attribute')?'FORMATTING':_0x4f3367['toUpperCase']();return o(this['editor']['locale'],_0x2f9a6e+'_'+_0x483d63+'_SUGGESTION_ANNOUNCEMENT',_0x136bf1);}['_initAriaMarkerChangeAnnouncements'](){const _0x11ed84=this['editor'];if(!_0x11ed84['ui'])return;const {ariaLiveAnnouncer:_0x5e2891}=_0x11ed84['ui'];_0x5c2db1(this['_model'],({left:_0x69930c,entered:_0x2a21fd})=>{for(const _0x573109 of _0x69930c){const {group:_0x37adf5,type:_0x5b2d0d}=this['_splitMarkerName'](_0x573109['name']);if('suggestion'===_0x37adf5){_0x5e2891['announce'](this['_getMarkerAnnouncementText'](_0x5b2d0d,'LEAVE'));break;}}for(const _0x56b41d of _0x2a21fd){const {group:_0x369423,type:_0x15ca16}=this['_splitMarkerName'](_0x56b41d['name']);if('suggestion'===_0x369423){_0x5e2891['announce'](this['_getMarkerAnnouncementText'](_0x15ca16,'ENTER',_0x5e9bd4(_0x25e28a)));break;}}});}['_processAttributeChanges'](_0x36e116){if(this['_recordAttributeSuggestions'])return!0x1;const _0x387fa3=this['editor'],_0x6aba66=_0x387fa3['model']['document']['differ']['getChanges']();if(0x0==_0x6aba66['length'])return!0x1;const _0x105845=[],_0x21cfd0=_0x6aba66['filter'](_0x5345ab=>'attribute'==_0x5345ab['type']),_0x58450d=_0x6aba66['filter'](_0x398558=>'insert'==_0x398558['type']&&'$text'!=_0x398558['name']),_0x4eec2d=_0x6aba66['filter'](_0x4cee5f=>'remove'==_0x4cee5f['type']&&'$text'!=_0x4cee5f['name']);for(const _0x4305c7 of _0x21cfd0)_0x105845['push']({'key':_0x4305c7['attributeKey'],'newValue':_0x4305c7['attributeNewValue'],'oldValue':_0x4305c7['attributeOldValue'],'range':Zt(_0x4305c7['range'],_0x387fa3['model'])});for(const _0xd9cc88 of _0x58450d){const _0x4596dd=_0x4eec2d['find'](_0x37a452=>_0x37a452['position']['isEqual'](_0xd9cc88['position']));_0x4596dd&&_0x105845['push']({'key':m,'newValue':_0xd9cc88['name'],'oldValue':_0x4596dd['name'],'range':_0x387fa3['model']['createRangeOn'](_0xd9cc88['position']['nodeAfter'])});}return 0x0!=_0x105845['length']&&this['_reduceExistingSuggestions'](_0x36e116,_0x105845);}['_processAttributeSuggestions'](_0x3af5fc){let _0x44834b=!0x1;const _0x3f6317=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3c3245=>_0x3c3245['data']['newRange']&&_0x3c3245['name']['startsWith']('suggestion:attribute:'));for(const _0x9ac0a of _0x3f6317){const {subType:_0x2c5f0b,id:_0x526d0a}=this['_splitMarkerName'](_0x9ac0a['name']),_0x2d86a7=_0x2c5f0b['split']('|')[0x0];for(const _0x4316a0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4316a0['id']!=_0x526d0a&&'attribute'==_0x4316a0['type']&&_0x4316a0['data']&&_0x4316a0['data']['key']==_0x2d86a7&&_0x4316a0['getFirstRange']()['isIntersecting'](_0x9ac0a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4316a0,_0x9ac0a['data']['newRange'],_0x3af5fc),_0x44834b=!0x0);}return _0x44834b;}['recordAttributeChanges'](_0x1d0a70){this['_recordAttributeSuggestions']=!0x0,_0x1d0a70();}['_isRegisteredAttribute'](_0x592fa1){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x592fa1);}['_reduceExistingSuggestions'](_0x3059f1,_0x296d16){if(0x0==_0x296d16['length'])return!0x1;let _0x4a87c6=!0x1;for(const _0x202f21 of _0x296d16){const _0x5c7697=this['_findSuggestions'](_0x202f21['range'],'attribute')['filter'](_0x5b587d=>!_0x5b587d['meta']['isNextTo'])['map'](_0xd2e071=>_0xd2e071['suggestion']),_0x138e3f=_0xa821ed({'newValue':_0x202f21['newValue']});_0x5c7697['filter'](_0x1b0fdb=>{const [_0x40a9cb,_0xd90314]=_0x1b0fdb['subType']['split']('|');return _0x40a9cb==_0x202f21['key']&&_0xd90314!=_0x138e3f;})['forEach'](_0x3fa992=>{this['_reduceSuggestionAttributeRange'](_0x3fa992,_0x202f21['range'],_0x3059f1),_0x4a87c6=!0x0;});}return _0x4a87c6;}['_reduceSuggestionAttributeRange'](_0x304f9c,_0x3ea831,_0x4b037b){const _0x3a8d19=_0x304f9c['getFirstRange']()['getDifference'](_0x3ea831);0x0!==_0x3a8d19['length']?0x1!==_0x3a8d19['length']?this['_breakSuggestionMarker'](_0x304f9c,_0x3ea831['start'],_0x3ea831['end']):this['_setSuggestionRange'](_0x304f9c,_0x3a8d19[0x0]):_0x4b037b['removeMarker'](_0x304f9c['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3d76f2){this['_editor']=_0x3d76f2,this['_model']=_0x3d76f2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x754452,_0xc3a672,_0x49f68a,_0x520c22,_0x4875b1,_0x3aba1d,_0x565d35){return new x(this['_model'],{'type':_0x754452,'subType':_0xc3a672,'id':_0x49f68a,'originalSuggestionId':_0x565d35,'author':_0x520c22,'creator':_0x520c22,'attributes':_0x4875b1,'onAttributesChange':_0x3aba1d,'onAccept':(..._0x4ccfb1)=>this['getSuggestionCallback'](_0x754452,_0xc3a672,'accept')(..._0x4ccfb1),'onDiscard':(..._0x5dfa3d)=>this['getSuggestionCallback'](_0x754452,_0xc3a672,'discard')(..._0x5dfa3d)});}['registerCustomCallback'](_0xc0e6cf,_0x35f9cd,_0x432e78,_0x4e2757){const _0x469831=_0xc0e6cf+':'+_0x35f9cd+':'+_0x432e78;this['_customCallbacks']['set'](_0x469831,_0x4e2757);}['getSuggestionCallback'](_0x3aba46,_0x2d9260,_0x26a0af){const _0x416ad9=_0x3aba46+':'+_0x2d9260+':'+_0x26a0af;return this['_customCallbacks']['get'](_0x416ad9)||this['_defaultCallbacks']['get'](_0x3aba46+':'+_0x26a0af);}['_registerDefaultCallbacks'](){const _0xbb7c1=()=>!0x1,_0x1a18ed=_0x47d521=>{_0x47d521['sort']((_0x2a83a7,_0x1669e8)=>_0x2a83a7['start']['isBefore'](_0x1669e8['start'])?0x1:-0x1),this['_model']['change'](_0x40aed2=>{for(const _0x3f0936 of _0x47d521){let _0x43001c;_0x43001c=_0x3f0936['end']['isAtEnd']&&_0x3f0936['end']['parent']==_0x3f0936['start']['nodeAfter']?_0x40aed2['createSelection'](_0x3f0936['start']['nodeAfter'],'on'):_0x40aed2['createSelection'](_0x3f0936),this['_model']['deleteContent'](_0x43001c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xfd9f8c=(_0x2bddeb,_0x1fcd9c)=>{_0x1fcd9c&&this['_model']['change'](_0x56969a=>{const {commandName:_0x1ff82a,commandParams:_0x2c0f8c=[]}=_0x1fcd9c,_0x47a964=_0x2bddeb['map'](_0x4d6f50=>(Kt(_0x4d6f50)&&(_0x4d6f50=this['_model']['createRange'](_0x4d6f50['end'])),_0x4d6f50))['filter'](_0x584ca0=>'$graveyard'!==_0x584ca0['root']['rootName']);if(_0x47a964['length']<0x1)return;const _0x2e62dd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x57d77c=>_0x7e27aa['fromRange'](_0x57d77c));_0x56969a['setSelection'](_0x47a964);for(const _0x45a714 of this['_editor']['commands']['commands']())_0x45a714['refresh']();_0x2c0f8c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1ff82a,..._0x2c0f8c);const _0x171c9a=_0x2e62dd['filter'](_0x14b57d=>'$graveyard'!=_0x14b57d['root']['rootName']);_0x171c9a['length']>0x0&&_0x56969a['setSelection'](_0x171c9a);for(const _0x3d7ccf of _0x2e62dd)_0x3d7ccf['detach']();});},_0x330bb2=(_0x416400,_0x4fefa3)=>0x1==_0x416400['length']&&0x1==_0x4fefa3['length']&&_0x416400[0x0]['end']['isEqual'](_0x4fefa3[0x0]['start']),_0x526850=(_0x5346ca,_0x5ba1db,_0x25d686,_0x1f7cd2)=>nn(_0x5346ca,_0x5ba1db,_0x25d686,_0x1f7cd2)?[_0x5346ca,_0x5ba1db]:nn(_0x5ba1db,_0x5346ca,_0x1f7cd2,_0x25d686)?[_0x5ba1db,_0x5346ca]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xbb7c1),this['_defaultCallbacks']['set']('insertion:discard',_0x1a18ed),this['_defaultCallbacks']['set']('insertion:join',_0x330bb2),this['_defaultCallbacks']['set']('insertion:chain',_0x526850),this['_defaultCallbacks']['set']('deletion:accept',_0x1a18ed),this['_defaultCallbacks']['set']('deletion:discard',_0xbb7c1),this['_defaultCallbacks']['set']('deletion:join',_0x330bb2),this['_defaultCallbacks']['set']('deletion:chain',_0x526850),this['_defaultCallbacks']['set']('formatInline:accept',_0xfd9f8c),this['_defaultCallbacks']['set']('formatInline:discard',_0xbb7c1),this['_defaultCallbacks']['set']('formatInline:join',_0x330bb2),this['_defaultCallbacks']['set']('formatInline:chain',_0xbb7c1),this['_defaultCallbacks']['set']('formatBlock:accept',_0xfd9f8c),this['_defaultCallbacks']['set']('formatBlock:discard',_0xbb7c1),this['_defaultCallbacks']['set']('formatBlock:join',_0x330bb2),this['_defaultCallbacks']['set']('formatBlock:chain',_0xbb7c1),this['_defaultCallbacks']['set']('attribute:accept',_0xbb7c1),this['_defaultCallbacks']['set']('attribute:discard',(_0x187b28,_0x15f52b)=>{if(!_0x15f52b)return;const _0x2cb6f5=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x395c93=>{if(_0x15f52b['key']==m)for(const _0x470579 of _0x187b28){const _0x6bcbb2=_0x470579['start']['nodeAfter'],_0x136349=_0x15f52b['oldValue'];_0x395c93['rename'](_0x6bcbb2,_0x136349);}else{if(_0x2cb6f5['_isBlockAttribute'](_0x15f52b['key'])){for(const _0x309aeb of _0x187b28)void 0x0!==_0x15f52b['oldValue']?_0x395c93['setAttribute'](_0x15f52b['key'],_0x15f52b['oldValue'],_0x309aeb['start']['nodeAfter']):_0x395c93['removeAttribute'](_0x15f52b['key'],_0x309aeb['start']['nodeAfter']);}else{for(const _0x3384f9 of _0x187b28)_0x15f52b['oldValue']?_0x395c93['setAttribute'](_0x15f52b['key'],_0x15f52b['oldValue'],_0x3384f9):_0x395c93['removeAttribute'](_0x15f52b['key'],_0x3384f9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x330bb2);}}function zt(_0x3c30d8,_0x275ee9,_0x3eb3b0){for(const _0x1c3743 of _0x275ee9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c3743['root']==_0x1c3743)return!0x1;if(!_0x3eb3b0['containsItem'](_0x1c3743))return!0x1;if(_0x3c30d8['isObject'](_0x1c3743)||_0x3c30d8['isLimit'](_0x1c3743))return!0x0;}return!0x1;}function Kt(_0x2e00f1){return _0x2e00f1['end']['parent']==_0x2e00f1['start']['nodeAfter']&&_0x2e00f1['end']['isAtStart'];}function Wt(_0x59a726,_0x58194b,_0x423214,_0x3eb63c){const _0x56b2c7=_0x553be2=>!_0x553be2['item']['is']('$textProxy')&&!_0x3eb63c['isObject'](_0x553be2['item']),_0x1bf7a7=_0x59a726['start']['getLastMatchingPosition'](_0x56b2c7),_0x2c7343=_0x59a726['end']['getLastMatchingPosition'](_0x56b2c7,{'direction':'backward'});return(!_0x59a726['start']['isEqual'](_0x1bf7a7)||!_0x59a726['end']['isEqual'](_0x2c7343))&&(_0x1bf7a7['isBefore'](_0x2c7343)?_0x423214['updateMarker'](_0x58194b,{'range':_0x423214['createRange'](_0x1bf7a7,_0x2c7343)}):_0x423214['removeMarker'](_0x58194b),!0x0);}function Ht(_0x2a61d3){return _0xa821ed(_0x2a61d3);}function Qt(_0x4693ab){const _0x23c5cd=_0x4693ab['start']['nodeAfter'];return _0x23c5cd&&_0x23c5cd['is']('element');}function Xt(_0x394307){return Kt(_0x394307)||function(_0x6e9a8b){return _0x6e9a8b['start']['parent']==_0x6e9a8b['end']['nodeBefore']&&_0x6e9a8b['start']['isAtEnd'];}(_0x394307);}function Yt(_0x54ae0d,_0xe42cca){try{const _0x13b25c=_0x54ae0d['getRange']();for(const _0x464e7e of _0xe42cca)if(_0x54ae0d!==_0x464e7e&&_0x13b25c&&_0x13b25c['isIntersecting'](_0x464e7e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x3228b9,_0x356430){return null==_0x3228b9['end']['nodeBefore']&&_0x3228b9['end']['parent']==_0x3228b9['start']['nodeAfter']?tn(_0x3228b9['start']['nodeAfter'],_0x356430):_0x3228b9;}function tn(_0x36a7d7,_0x5ee2ec){const _0xc5b112=_0x5ee2ec['schema']['isObject'](_0x36a7d7)||_0x5ee2ec['schema']['isSelectable'](_0x36a7d7);return _0x5ee2ec['createRange'](_0x5ee2ec['createPositionAt'](_0x36a7d7,'before'),_0xc5b112?_0x5ee2ec['createPositionAfter'](_0x36a7d7):_0x5ee2ec['createPositionAt'](_0x36a7d7,'end'));}function nn(_0x15da0f,_0xcbd801,_0x58ce12,_0x26f456){return!!en(_0x15da0f,_0xcbd801)&&_0x58ce12['end']['isEqual'](_0x26f456['start']);}function en(_0x2dd340,_0x19f53d){if(!_0x2dd340['_isDataLoaded']||!_0x19f53d['_isDataLoaded'])return!0x1;const _0x52838d=new Set(Object['keys'](_0x2dd340['attributes'])),_0x2ff259=new Set(Object['keys'](_0x19f53d['attributes']));if(_0x52838d['delete']('groupId'),_0x2ff259['delete']('groupId'),0x0==_0x52838d['size']&&0x0==_0x2ff259['size'])return!0x0;if(_0x52838d['size']!=_0x2ff259['size'])return!0x1;const _0x2d006e={..._0x2dd340['attributes']},_0x28d393={..._0x19f53d['attributes']};return delete _0x2d006e['groupId'],delete _0x28d393['groupId'],JSON['stringify'](_0x2d006e)==JSON['stringify'](_0x28d393);}function sn(_0x4e5157,_0x585e1f){const _0x4443f5=on(_0x4e5157['attributes']),_0x2cb583=on(_0x585e1f);if(!_0x4e5157['_isDataLoaded'])return!0x1;for(const _0x12b336 of Object['keys'](_0x2cb583))if(!_0x4eaf57(_0x4443f5[_0x12b336],_0x2cb583[_0x12b336]))return!0x1;return!0x0;}function on(_0x52e78a){const _0x4087b0=Object['assign']({},_0x52e78a);return delete _0x4087b0['skipNestingCheck'],delete _0x4087b0['tablePasteChainId'],_0x4087b0;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x16f996(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4efab9,_0x396701,_0x53d805,_0x1b67bb){super(),this['model']=_0x396701,this['view']=_0x53d805,this['commentThreadController']=_0x1b67bb,this['_editor']=_0x4efab9,this['_acceptCommand']=_0x4efab9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4efab9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ad407,_0x235522)=>_0x4ad407||_0x235522),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x178625=>_0x178625&&this['_editor']['model']['canEditAt'](_0x396701['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3c1d72=>_0x3c1d72&&this['_editor']['model']['canEditAt'](_0x396701['getRanges']())),this['_pendingAction']=null,_0x53d805['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x53d805,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x53d805,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x53d805,'change:isDirty',()=>{_0x53d805['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 _0x538e07=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x538e07);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x29b676{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x281403,_0x20917c,_0x16bcad,_0x513140){super(_0x281403),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x414b2b(_0x281403,o(_0x281403,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x20917c['authoredAt']),this['bind']('authoredAt')['to'](_0x20917c),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',_0x20917c,'authoredAt',this,'descriptionParts',(_0x4d1517,_0x1b71a9,_0x2f3d3e)=>{const _0x199fd6=_0x2f3d3e['map'](_0x2378fc=>ls(_0x2378fc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d1517-0x1,_0x20917c['author']['name'],_0x1b71a9?_0x513140['formatDateTime'](_0x1b71a9):'',new DOMParser()['parseFromString'](_0x199fd6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3961f9(),this['focusTracker']=new _0x463116(),this['keystrokes']=new _0x16ca75(),this['focusCycler']=new _0x2f6372({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x7daf80=>_0x7daf80['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x20917c,this['_localUser']=_0x16bcad,this['_config']=_0x513140,_0x513140['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x58c0c6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x18c7b0}=this['_config'];this['commentsListView']=new _0x18c7b0(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',_0x3050c4=>_0x3050c4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x27d7f6,_0x5ac2d2)=>_0x27d7f6||!!_0x5ac2d2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x74be1d}=this['_config'],_0xb18a9b=new _0x74be1d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5be6e5=_0xb18a9b['commentInputView'];return _0xb18a9b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5be6e5,'value',(_0x1a69e3,_0x1f6812,_0x17fa8c)=>!!_0x17fa8c||_0x1a69e3&&!_0x1f6812),_0x5be6e5['on']('submit',(_0x3a2413,_0x13fba0)=>{this['fire']('addComment',_0x13fba0),_0x5be6e5['editor']['setData']('');}),_0x5be6e5['on']('cancel',()=>this['focus']()),_0x5be6e5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb18a9b;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x36290e,_0x40535b,_0x10a941,_0x404dd6){super(_0x36290e,_0x40535b,_0x10a941,_0x404dd6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10e63c=>_0x10e63c&&_0x10e63c[0x0]?_0x10e63c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x365ebb,_0x12b906)=>{let _0x316660='';for(const _0x363e78 of _0x365ebb)_0x316660+='<p>'+ls(_0x363e78['content'],_0x363e78['color'])+'</p>';return _0x12b906?_0x316660:_0x163b64(_0x316660,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x404dd6['SuggestionView'](_0x36290e,_0x40535b,{'formatDateTime':_0x404dd6['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 _0x2b9fec=this['bindTemplate'],_0x22eb87=[this['suggestionView']];return this['commentsListView']&&_0x22eb87['push'](this['commentsListView']),this['commentThreadInputView']&&_0x22eb87['push'](this['commentThreadInputView']),_0x22eb87['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2b9fec['if']('isActive','ck-suggestion-wrapper--active'),_0x2b9fec['to']('type',_0x2ea030=>'ck-suggestion-'+_0x2ea030),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':_0x2b9fec['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x22eb87};}['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 _0x29b676{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x24a1bb,_0x166f78,_0x31a22b){super(_0x24a1bb),this['_model']=_0x166f78,this['_config']=_0x31a22b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x166f78),this['acceptButton']=this['_createButton'](o(_0x24a1bb,'Accept\x20suggestion'),_0x2e5731,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x24a1bb,'Discard\x20suggestion'),_0x5d7595,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x114de8(_0x24a1bb,_0x166f78['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3961f9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x463116(),this['keystrokes']=new _0x16ca75(),this['focusCycler']=new _0x2f6372({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2b54f7=>_0x2b54f7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x30af1c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x30af1c['innerHTML']=this['description'],this['on']('change:description',(_0x428996,_0x4979c9,_0x1ccad4)=>{_0x30af1c['innerHTML']=_0x1ccad4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4f5654=this['bindTemplate'],_0x5a4ae7=[{'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':_0x4f5654['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4f5654['to']('authoredAt',_0x54af34=>this['_config']['formatDateTime'](_0x54af34))}]}]},{'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']&&_0x5a4ae7['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':_0x5a4ae7}]};}['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'](_0x1933d4,_0x14bf5a,_0x47d7a9,_0x4db16d,_0x527a33){const _0x99fbd5=new _0x1c4684(this['locale']);return _0x99fbd5['set']({'label':_0x1933d4,'icon':_0x14bf5a,'tooltip':!0x0,'tooltipPosition':_0x527a33}),_0x99fbd5['extendTemplate']({'attributes':{'class':_0x47d7a9}}),_0x99fbd5['on']('execute',()=>{this['fire'](_0x4db16d,this['_model']['id']);}),_0x99fbd5;}['_setupKeyboardNavigation'](){const _0x5627ad=this['element'];this['keystrokes']['listenTo'](_0x5627ad);for(const _0x12076f of this['focusables'])this['focusTracker']['add'](_0x12076f['element']),this['keystrokes']['listenTo'](_0x12076f['element']);this['keystrokes']['set']('enter',(_0x4e1447,_0x3a2ea5)=>{_0x5627ad===_0x4e1447['target']&&(this['focusCycler']['focusFirst'](),_0x3a2ea5());}),this['keystrokes']['set']('esc',(_0x4669d3,_0x2bfcda)=>{_0x5627ad!==_0x4669d3['target']&&(this['focus'](),_0x2bfcda());});}}class u extends _0x21c11d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5b5ec3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb1bafd){super(_0xb1bafd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x14c9bc=this['editor']['config'];_0x14c9bc['define']('trackChanges.SuggestionThreadView',fe),_0x14c9bc['define']('trackChanges.SuggestionView',we),_0x14c9bc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x14c9bc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3b022b,_0x1150ce){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3113f4,_0x51e801]of this['_handleControllerBuffer']){const _0x51bd28=this['_suggestionToController']['has'](_0x3113f4);_0x51bd28||_0x51e801?_0x51bd28&&_0x51e801&&this['_destroyController'](_0x3113f4):this['_initializeController'](_0x3113f4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3b022b,_0x1150ce);}['init'](){const _0xe3873=this['editor'],_0x4d9f51=_0xe3873['plugins']['get']('TrackChangesEditing'),_0x1a7bc9=_0xe3873['plugins']['get']('Annotations'),_0x340b44=_0xe3873['plugins']['get']('EditorAnnotations'),_0x48d921=_0xe3873['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x340b44['addSourceCollector'](()=>{const _0x45dbd6=[];for(const [_0x24b184,_0x373589]of Array['from'](this['_suggestionToController'])){const _0x132bd9=_0x24b184['getAllAdjacentSuggestions'](),_0x57d821=[];for(const _0x598df8 of _0x132bd9){if(!_0x598df8['isInContent'])continue;if(_0x598df8['isMultiRange']){_0x57d821['push'](..._0x598df8['getRanges']());continue;}const _0x1e162d=_0x598df8['getFirstRange']();if(_0x57d821['length']>0x0){const _0x22a04e=_0x57d821[0x0]['getJoined'](_0x1e162d);if(_0x22a04e){_0x57d821[0x0]=_0x22a04e;continue;}}_0x57d821['push'](_0x1e162d);}_0x45dbd6['push']([_0x373589['view'],_0x57d821]);}return _0x45dbd6;}),this['listenTo'](_0x4d9f51,'suggestionLoaded',(_0x12b004,_0x6d7bf3)=>{this['listenTo'](_0x6d7bf3,'change:previous',(_0x4812ba,_0x226902,_0x46a645,_0x5577fa)=>{_0x6d7bf3['isInContent']&&(null==_0x46a645?(this['_updateController'](_0x5577fa['head']),this['_handleSuggestionControllerDelayed'](_0x6d7bf3,!0x1)):(this['_updateController'](_0x46a645['head']),null==_0x5577fa&&this['_handleSuggestionControllerDelayed'](_0x6d7bf3,!0x0)));}),null!==_0x6d7bf3['previous']?this['_updateController'](_0x6d7bf3['head']):this['_handleSuggestionControllerDelayed'](_0x6d7bf3,!0x1);}),this['listenTo'](_0x4d9f51,'suggestionUnloaded',(_0x496e5c,_0x3bea9f,_0x4a1dc2)=>{this['stopListening'](_0x3bea9f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3bea9f),this['_suggestionToController']['has'](_0x3bea9f)&&this['_destroyController'](_0x3bea9f),_0x4a1dc2&&this['_updateController'](_0x4a1dc2['head']);}),this['listenTo'](_0x4d9f51,'suggestionChanged',(_0x22806b,_0x48b163)=>{this['_updateController'](_0x48b163);}),this['listenTo'](_0x1a7bc9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x48d921,'addComment',(_0x5966ed,{threadId:_0x3c18d9,isFromAdapter:_0x33c6ab})=>{if(_0x33c6ab||!_0x4d9f51['hasSuggestion'](_0x3c18d9))return;const _0x1c473a=_0x4d9f51['getSuggestion'](_0x3c18d9);this['_suggestionToController']['get'](_0x1c473a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43b1af=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23fb7e;for(const _0x5a4433 in _0x43b1af){const _0x528b45=_0x5a4433,_0x174aaa=_0x43b1af[_0x528b45];if('trackChangesLicenseKeyValid'==_0x174aaa||'trackChangesLicenseKeyInvalid'==_0x174aaa||'trackChangesLicenseKeyExpired'==_0x174aaa||'trackChangesLicenseKeyDomainLimit'==_0x174aaa||'trackChangesLicenseKeyNotAllowed'==_0x174aaa||'trackChangesLicenseKeyEvaluationLimit'==_0x174aaa||'trackChangesLicenseKeyTrialLimit'==_0x174aaa||'trackChangesLicenseKeyUsageLimit'==_0x174aaa){delete _0x43b1af[_0x528b45],_0x23fb7e=_0x174aaa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x23fb7e&&_0x43b1af['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x23fb7e&&_0x43b1af['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x23fb7e&&_0x43b1af['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x23fb7e&&_0x43b1af['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x23fb7e&&_0x43b1af['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x23fb7e&&_0x43b1af['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x23fb7e&&_0x43b1af['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x15a1c3){const _0x367714=this['_suggestionToController']['get'](_0x15a1c3);if(!_0x367714)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x367714['view'])||null;}['getSuggestionForAnnotation'](_0x3a9d41){const _0x6d55e6=this['_viewToController']['get'](_0x3a9d41['innerView']);return _0x6d55e6?_0x6d55e6['model']:null;}['_refreshActiveMarkers'](){const _0x49c8fc=this['editor']['plugins']['get']('Annotations'),_0xbd1b80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x327dd8=Array['from'](_0x49c8fc['activeAnnotations'],_0x28d657=>_0x28d657['innerView'])['filter'](_0x27e462=>this['_viewToController']['has'](_0x27e462)),_0xdad6bc=[];for(const _0x379e64 of _0x327dd8){const _0x2192ff=this['_viewToController']['get'](_0x379e64)['model']['getAllAdjacentSuggestions']();_0xdad6bc['push'](..._0x2192ff['reduce']((_0x131d34,_0x4623c5)=>[..._0x131d34,..._0x4623c5['getMarkerNames']()],[]));}_0xbd1b80['activeMarkers']=_0xdad6bc;}['_addUIComponentsToFactory'](){const _0x1fb84a=this['editor'],_0x429c2f=_0x1fb84a['locale'],_0x118a99=o(_0x429c2f,'Track\x20changes'),_0x596a43=new _0x7ca091([{'type':'switchbutton','model':new _0x60db5a({'withText':!0x0,'isToggleable':!0x0,'label':_0x118a99,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1fb84a['plugins']['has']('TrackChangesPreview')&&_0x596a43['addMany']([{'type':'separator'},{'type':'button','model':new _0x60db5a({'withText':!0x0,'label':o(_0x429c2f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5ffe25 of _0x596a43)if(ke(_0x5ffe25)){const _0x3335f0=_0x1fb84a['commands']['get'](_0x5ffe25['model']['commandName']);_0x5ffe25['model']['bind']('isOn','isEnabled')['to'](_0x3335f0,'value','isEnabled');}_0x1fb84a['ui']['componentFactory']['add']('trackChanges',_0x937c05=>this['_createToolbarButton'](_0x937c05,_0x596a43,_0x118a99)),_0x1fb84a['ui']['componentFactory']['add']('menuBar:trackChanges',_0xced086=>this['_createMenuBarMenu'](_0xced086,_0x596a43,_0x118a99));}['_createToolbarButton'](_0x47c8b8,_0x1bb539,_0x10b8a8){const _0x36123e=_0x22945d(_0x47c8b8,_0x210506),_0x5b04fb=this['editor']['commands']['get']('trackChanges');_0x36123e['buttonView']['set']({'tooltip':_0x10b8a8,'label':_0x10b8a8,'icon':_0x37b8d5}),_0x36123e['buttonView']['bind']('isOn')['to'](_0x5b04fb,'value'),_0x36123e['buttonView']['on']('execute',()=>{_0x5b04fb['execute'](),this['editor']['editing']['view']['focus']();}),_0x2be475(_0x36123e,_0x1bb539,{'role':'menu'});const _0x46b0f9=[];for(const _0x414230 of _0x1bb539)ke(_0x414230)&&_0x46b0f9['push'](this['editor']['commands']['get'](_0x414230['model']['commandName']));const _0xb2a0a8=_0x36123e['buttonView'];return _0xb2a0a8['actionView']['unbind']('isEnabled'),_0xb2a0a8['arrowView']['unbind']('isEnabled'),_0xb2a0a8['actionView']['bind']('isEnabled')['to'](_0x5b04fb,'isEnabled'),_0xb2a0a8['arrowView']['bind']('isEnabled')['toMany'](_0x46b0f9,'isEnabled',(..._0x3634fa)=>_0x3634fa['some'](_0x490cd0=>_0x490cd0)),_0x36123e['on']('execute',_0x2a45d3=>{this['editor']['execute'](_0x2a45d3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x36123e;}['_createMenuBarMenu'](_0x1680e1,_0x2ed233,_0x1c6c26){const _0x3cab01=new _0x968339(_0x1680e1),_0x5b7eca=this['editor']['commands']['get']('trackChanges');_0x3cab01['buttonView']['set']({'label':_0x1c6c26,'icon':_0x37b8d5});const _0x3577a1=new _0x528ccd(_0x1680e1);for(const _0x1f8bdd of _0x2ed233){if('separator'==_0x1f8bdd['type']){_0x3577a1['items']['add'](new _0x12fc9d(_0x1680e1));continue;}const _0x510b53=new _0xddc8e2(_0x1680e1,_0x3cab01),_0x143386=new _0xd0fae4(_0x1680e1),_0x452f2d=_0x1f8bdd['model'];_0x143386['bind'](...Object['keys'](_0x452f2d))['to'](_0x452f2d),_0x143386['delegate']('execute')['to'](_0x3cab01),_0x143386['on']('execute',()=>{this['editor']['execute'](_0x452f2d['commandName']),this['editor']['editing']['view']['focus']();}),_0x510b53['children']['add'](_0x143386),_0x3577a1['items']['add'](_0x510b53);}return _0x3cab01['bind']('isEnabled')['to'](_0x5b7eca,'isEnabled'),_0x3cab01['panelView']['children']['add'](_0x3577a1),_0x3cab01;}['_initializeController'](_0x153728){const _0x36c7cd=this['editor'],_0x78764d=_0x36c7cd['config'],_0x58a9b2=_0x36c7cd['plugins']['get']('Annotations'),_0x10fc99=_0x36c7cd['plugins']['get']('CommentsRepository'),_0x3c24a2=_0x36c7cd['plugins']['get']('EditorAnnotations'),_0x274c52=_0x36c7cd['plugins']['get'](_0x5b5ec3)['me'],_0x1d5264=_0x78764d['get']('trackChanges')['SuggestionThreadView'],_0x5539ff=_0x78764d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x121f67,CommentThreadInputView:_0x1888df}=_0x36c7cd['plugins']['get']('CommentsUI');let _0xd66c1,_0x30bacb,_0x92057;this['_annotationViews']['has'](_0x153728['id'])?(_0x30bacb=this['_annotationViews']['get'](_0x153728['id']),_0xd66c1=_0x30bacb['mainView']):(_0xd66c1=new _0x1d5264(_0x36c7cd['locale'],_0x153728,_0x274c52,{'disableComments':this['_disableComments'],'editorConfig':{..._0x78764d['get']('comments.editorConfig'),'licenseKey':_0x78764d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x78764d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x78764d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x78764d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25842c(_0x78764d['get']('locale'),_0x36c7cd['locale']),'CommentView':_0x78764d['get']('comments')['CommentView'],'CommentsListView':_0x121f67,'CommentThreadInputView':_0x1888df,'SuggestionView':_0x5539ff}),_0xd66c1['suggestionView']['acceptButton']['on']('execute',()=>{_0x36c7cd['editing']['view']['focus']();}),_0xd66c1['suggestionView']['discardButton']['on']('execute',()=>{_0x36c7cd['editing']['view']['focus']();}),_0x30bacb=_0x58a9b2['createAnnotationView'](this['editor']['locale'],_0xd66c1),_0x30bacb['bind']('isDirty')['to'](_0xd66c1,'isDirty'),_0x30bacb['bind']('length')['to'](_0xd66c1),_0x30bacb['bind']('type')['to'](_0xd66c1,'type',_0x53456f=>'suggestion-'+_0x53456f),_0xd66c1['on']('escape',()=>{_0x92057['fire']('escape');}),this['_annotationViews']['set'](_0x153728['id'],_0x30bacb));const _0x44e6de=_0x10fc99['createCommentThreadController'](_0x153728['commentThread'],_0xd66c1),_0x39632d=new pe(_0x36c7cd,_0x153728,_0xd66c1,_0x44e6de),_0x4fcf6f=_0x153728['getAllAdjacentSuggestions']()['filter'](_0x332564=>_0x332564['isInContent']);_0xd66c1['descriptionParts']=_0x36c7cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4fcf6f),this['_suggestionToController']['set'](_0x153728,_0x39632d),this['_viewToController']['set'](_0xd66c1,_0x39632d);const _0x3a65e5=()=>{const _0x3cc2ae=[],_0x497480=_0x153728['getAllAdjacentSuggestions']()['filter'](_0x29abd5=>_0x29abd5['isInContent']);for(const _0x46cebe of _0x497480)_0x3cc2ae['push'](..._0x46cebe['getMarkers']());return _0x3ccfe5(_0x36c7cd['editing'],_0x3cc2ae);};_0x92057=_0x58a9b2['createAnnotation']({'view':_0x30bacb,'target':_0x3a65e5,'type':()=>'suggestion-'+_0x39632d['view']['type'],'isVisible':!!_0x3a65e5()}),_0x10fc99['_bindAnnotationToEditors'](_0xd66c1,_0x92057),_0x58a9b2['add'](_0x92057),_0x3c24a2['registerAnnotation'](_0x92057);}['_destroyController'](_0x3b2547){const _0x24152f=this['editor']['plugins']['get']('CommentsRepository'),_0xd440e4=this['editor']['plugins']['get']('Annotations'),_0x90eb36=this['_suggestionToController']['get'](_0x3b2547),_0x223b35=_0x90eb36['view'],_0x54989e=_0xd440e4['getByInnerView'](_0x223b35);_0x24152f['_unbindEditors'](_0x223b35),_0x54989e&&_0xd440e4['remove'](_0x54989e),this['_suggestionToController']['delete'](_0x3b2547),this['_viewToController']['delete'](_0x223b35),_0x90eb36['destroy']();}['_updateController'](_0x9b6840){if(!_0x9b6840['isInContent']||!this['_suggestionToController']['has'](_0x9b6840))return;const _0x419f94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c8e10=this['_suggestionToController']['get'](_0x9b6840),_0x1e6021=_0x9b6840['getAllAdjacentSuggestions']();_0x1c8e10['view']['descriptionParts']=_0x419f94['descriptionFactory']['getDescriptions'](_0x1e6021);}['destroy'](){for(const _0x2e1e4e of this['_suggestionToController']['keys']())this['_destroyController'](_0x2e1e4e);for(const _0x5b4c2c of this['_annotationViews']['values']())_0x5b4c2c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14c317){return'model'in _0x14c317;}class Ne extends _0x21c11d{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x360bc4){this['editor']['plugins']['get'](d)['adapter']=_0x360bc4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x53179e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x53179e);}['getSuggestions']({skipNotAttached:_0x4f1c47=!0x1,toJSON:_0x406418=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4f1c47,'toJSON':_0x406418});}['getSuggestion'](_0x83a26b){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x83a26b);}}const p=['Pagination'];class re extends _0x21c11d{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5a5817=this['editor'];if(_0x5a5817['config']['define']('trackChangesData.editorCreator',_0x2479da=>{const _0x5ded8b=_0x5a5817['model']['document']['getRootNames']()['reduce']((_0x4af926,_0x32333d)=>(_0x4af926[_0x32333d]='',_0x4af926),{});return _0x5a5817['constructor']['create'](_0x5ded8b,_0x2479da);}),'function'!=typeof _0x5a5817['config']['get']('trackChangesData')['editorCreator'])throw new _0x3229f3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2a4e42){return P(this['editor'],!0x0,_0x2a4e42);}['getDataWithDiscardedSuggestions'](_0x5eb8c5){return P(this['editor'],!0x1,_0x5eb8c5);}}class Fe extends _0x21c11d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2560f5){function _0x2a955d(_0x12a0b0){return _0x12a0b0['map'](_0x2e2652=>String['fromCharCode'](_0x2e2652))['join']('');}super(_0x2560f5),this['result']='end',_0x2560f5[_0x2a955d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a955d([0x76,0x69,0x65,0x77])][_0x2a955d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a955d([0x61,0x75,0x74,0x6f]),_0x2560f5[_0x2a955d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2a955d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a955d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2a955d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2a955d([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(_0x2afe0e){return void 0x0!==_0x2afe0e['getRootsAttributes'];}async function P(_0x5987fb,_0x5d4fe9,_0x316739){const _0x86e43=_0x71d4(_0x5987fb,p);_0x86e43['plugins']['push'](d,Fe),_0x86e43['rootsAttributes']=De(_0x5987fb)?_0x5987fb['getRootsAttributes']():void 0x0;const _0x47877c=document['createDocumentFragment'](),_0x22e9e4=_0x5987fb['config']['get']('trackChangesData')['editorCreator'],_0x19f74d=await _0x22e9e4(_0x86e43,()=>function(_0x18e424){const _0x48e76a=document['createElement']('div');return _0x18e424['appendChild'](_0x48e76a),_0x48e76a;}(_0x47877c));!function(_0x4041f4,_0x909265){const _0x4f5cca=_0x4041f4['model']['document']['getRootNames']()['reduce']((_0x458015,_0x16a1ae)=>(_0x458015[_0x16a1ae]=_0x4041f4['data']['get']({'rootName':_0x16a1ae}),_0x458015),{}),_0x51be4b=_0x4041f4['plugins']['get']('Users')['users']['map'](_0x4602e4=>({'id':_0x4602e4['id'],'name':_0x4602e4['name']})),_0x4eaf43=_0x4041f4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x48dda1=_0x4041f4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x99234e=_0x909265['plugins']['get']('Users'),_0x453db3=_0x909265['plugins']['get']('TrackChangesEditing'),_0x1c20d2=_0x909265['plugins']['get']('CommentsRepository');for(const _0x1ea85a of _0x1c20d2['getCommentThreads']())_0x1ea85a['remove']();for(const _0x18aac8 of _0x51be4b)_0x99234e['getUser'](_0x18aac8['id'])||_0x99234e['addUser'](_0x18aac8);_0x99234e['me']||_0x99234e['useAnonymousUser']();for(const _0x28dc51 of _0x48dda1)_0x1c20d2['addCommentThread'](_0x28dc51);for(const _0x1ee536 of _0x4eaf43)_0x453db3['addSuggestionData'](_0x1ee536);_0x909265['data']['set'](_0x4f5cca);}(_0x5987fb,_0x19f74d),_0x19f74d['execute'](_0x5d4fe9?'acceptAllSuggestions':'discardAllSuggestions');const _0x17cb14=De(_0x19f74d)?_0x19f74d['getFullData'](_0x316739):_0x19f74d['data']['get'](_0x316739);return await _0x19f74d['destroy'](),_0x17cb14;}class Me extends _0x29b676{['options'];constructor(_0x4794f3,_0xf237ca){super(_0x4794f3),this['options']=_0xf237ca,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'](_0x11afe9,_0x5ca479){if(!this['element'])return;const _0x50b2f0=[];for(const [_0x20253c,_0x2c57a0]of _0x11afe9){const _0x4867b1=document['createElement']('div');_0x4867b1['setAttribute']('data-ck-root-name',_0x20253c),_0x4867b1['className']=_0x2c57a0['classes']+'\x20ck-track-changes-preview__root-container',_0x4867b1['innerHTML']=_0x2c57a0['content'],_0x50b2f0['push'](_0x4867b1);}_0x5ca479(this['element'],_0x50b2f0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x31a038{constructor(_0x547408){super(_0x547408),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2cb666=this['editor'],_0x1649ee=_0x2cb666['locale'],_0x2006d8=_0x2cb666['plugins']['get']('Dialog');let _0x47c60e;const _0x57d105=function(_0x543ba9){const _0x19f15a={};if('editables'in _0x543ba9['ui']['view']){for(const [_0x59b373,_0x5e0ae1]of Object['entries'](_0x543ba9['ui']['view']['editables']))_0x19f15a[_0x59b373]=_0x5e0ae1['element'];}else _0x19f15a[_0x543ba9['model']['document']['getRootNames']()[0x0]]=_0x543ba9['ui']['view']['editable']['element'];return _0x19f15a;}(_0x2cb666),_0x39791e=function(_0x4ed863){let _0x17b73e=0x0;for(const _0x207121 of Object['values'](_0x4ed863))_0x17b73e=Math['max'](_0x17b73e,_0x207121['getBoundingClientRect']()['width']);let _0xd9211d=0x0;for(const _0x49ee80 of Object['values'](_0x4ed863))_0xd9211d+=_0x49ee80['getBoundingClientRect']()['height'];const _0x417a30=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x6c671a=Math['min'](_0xd9211d,_0x417a30);return{'width':_0x17b73e,'height':_0x6c671a};}(_0x57d105);_0x2006d8['show']({'id':'finalContentPreview','title':o(_0x1649ee,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1649ee,{'dialogRects':_0x39791e}),'onHide':()=>{_0x47c60e['detachFromDom']();},'onShow':()=>{_0x2cb666['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x42582d=>{const _0x5130d4=this['_standarizeRootsData'](_0x42582d,_0x2cb666,_0x57d105);_0x2006d8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5130d4,_0x2cb666['config']['get']('trackChanges.preview.renderFunction'));}),_0x47c60e=new _0x49435d(_0x1649ee,[_0x2006d8['view']]),_0x47c60e['attachToDom'](),_0x47c60e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2cb666['once']('destroy',()=>{_0x47c60e['detachFromDom']();});const _0x5b0dd0=_0x2006d8['view']['headerView']['class'];_0x2006d8['view']['headerView']['class']=_0x5b0dd0?_0x5b0dd0+'\x20ck-reset_all':'ck-reset_all',_0x2006d8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2006d8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2d94d3=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4328c5=_0x2d94d3['previewMode'],_0x4d7e3b={};if('$labels'===_0x4328c5){for(const _0x1658fa of _0x2d94d3['getMergeFieldsIds']())_0x4d7e3b[_0x1658fa]=_0x2d94d3['getLabel'](_0x1658fa)||_0x1658fa;}else{const _0x2d3401='$defaultValues'===_0x4328c5?_0x2d94d3['getDefaultValues']():_0x2d94d3['getDataSetValues'](_0x4328c5,!0x0);for(const _0x4c52fc of Object['entries'](_0x2d3401)){const [_0x467767,_0x265bab]=_0x4c52fc;_0x4d7e3b[_0x467767]=null!==_0x265bab?_0x265bab:_0x2d94d3['getLabel'](_0x467767)||_0x467767;}}return{'mergeFieldsData':_0x4d7e3b};}['_standarizeRootsData'](_0x56ae33,_0x3902e8,_0x1441b0){let _0x1ea25e;if('string'==typeof _0x56ae33){const _0x3085ce=_0x3902e8['model']['document']['getRootNames']()[0x0];_0x1ea25e={[_0x3085ce]:_0x56ae33};}else _0x1ea25e=_0x56ae33;const _0x582f49=this['_fixMediaEmbeds'](_0x1ea25e,_0x3902e8),_0x1706ff=function(_0x25a1ef,_0x4e0270){for(const [_0x55fb5b,_0x260ded]of _0x25a1ef)_0x260ded['classes']=_0x4e0270[_0x55fb5b]['classList']['value']['replace']('ck-focused','');return _0x25a1ef;}(this['_sortRoots'](_0x3902e8)['reduce']((_0x355e80,_0x34063d)=>(_0x355e80['push']([_0x34063d,{'content':_0x582f49[_0x34063d],'classes':''}]),_0x355e80),[]),_0x1441b0);return _0x1706ff;}['_fixMediaEmbeds'](_0x1d97e1,_0x615040){if(!_0x615040['plugins']['has']('MediaEmbedEditing'))return _0x1d97e1;const _0x4ede87=_0x615040['plugins']['get']('MediaEmbedEditing');for(const [_0x499fc4,_0x4fee5d]of Object['entries'](_0x1d97e1)){const _0x39e2f8=document['createElement']('div');_0x39e2f8['innerHTML']=_0x4fee5d,(_0x39e2f8['querySelectorAll']('figure.media')['forEach'](_0x1d3bf4=>{const _0x1a77f0=_0x1d3bf4['querySelector']('oembed');if(_0x1a77f0){const _0x495acb=_0x1a77f0['getAttribute']('url');if(_0x495acb){const _0x444692=_0x4ede87['registry']['getMediaViewElement'](new _0x3441f2(_0x615040['editing']['view']['document']),_0x495acb,{'elementName':'','renderForEditingView':!0x0}),_0x4b52b7=document['createElement']('div');_0x4b52b7['classList']['add']('ck-media__wrapper'),_0x444692['render'](_0x4b52b7,_0x615040['editing']['view']['domConverter']),_0x1a77f0['replaceWith'](_0x4b52b7);}}}),_0x1d97e1[_0x499fc4]=_0x39e2f8['innerHTML']);}return _0x1d97e1;}['_sortRoots'](_0x256f98){if(!function(_0x5c608b){return void 0x0!==_0x5c608b['getRootsAttributes'];}(_0x256f98))return _0x256f98['model']['document']['getRootNames']();const _0x32de4d=[],_0x4500a2=new Map();for(const _0x4db894 of _0x256f98['model']['document']['getRootNames']()){const _0x50f88f=_0x256f98['editing']['view']['getDomRoot'](_0x4db894)['getClientRects']()['item'](0x0);_0x32de4d['push'](_0x4db894),_0x4500a2['set'](_0x4db894,_0x50f88f);}return _0x32de4d['sort']((_0x3906df,_0x573010)=>{const _0xcbebf7=_0x4500a2['get'](_0x3906df),_0x215742=_0x4500a2['get'](_0x573010);return _0xcbebf7['y']-_0x215742['y']||_0xcbebf7['x']-_0x215742['x'];}),_0x32de4d;}}class Ue extends _0x21c11d{static get['requires'](){return[re,_0x368a72];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46930d){super(_0x46930d),_0x46930d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x46930d['config']['define']('trackChanges.preview.renderFunction',(_0x3bec78,_0x457497)=>{for(const _0x2ee20c of _0x457497)_0x3bec78['appendChild'](_0x2ee20c);});}}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 _0x5c7385,Plugin as _0x2e7573,PendingActions as _0xbc397a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x46a289,ObservableMixin as _0x386c37,uid as _0xcb588e,priorities as _0x104c24,insertToPriorityArray as _0x5c5269,logWarning as _0xcdc9f4,getEnvKeystrokeText as _0x2dfbdc,FocusTracker as _0x520c8a,KeystrokeHandler as _0x45b742,Collection as _0x337a51}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x12f3aa,IconCancel as _0x379fe7,IconTrackChanges as _0x3ce186}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x996e88,View as _0x20be2a,ViewCollection as _0x30678b,FocusCycler as _0x43d12b,UIModel as _0x154060,createDropdown as _0x4cc6f2,SplitButtonView as _0x2533a2,addListToDropdown as _0x403ddc,MenuBarMenuView as _0x300cd3,MenuBarMenuListView as _0x165e35,ListSeparatorView as _0x475c98,MenuBarMenuListItemView as _0x2e9641,MenuBarMenuListItemButtonView as _0x454e07,BodyCollection as _0x423b18,Dialog as _0x3dac62}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x34d734,DocumentCompare as _0x392ee9,hashObject as _0x52b8a6,surroundingMarkersDetector as _0x242b1c,FOCUS_ANNOTATION_KEYSTROKE as _0x16a60d,AriaDescriptionView as _0x16489a,setupThreadKeyboardNavigation as _0x1917fb,trimHtml as _0x1a599f,UserView as _0x5d2179,LateFocusButtonView as _0x52bc61,getDateTimeFormatter as _0x4a8dec,getAllMarkersDomElementsSorted as _0x18268c,sanitizeEditorConfig as _0x8731a5}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x46ae36,ModelLiveRange as _0x2f9bba,ModelLivePosition as _0x7306c2,ViewDowncastWriter as _0x1b9e66}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x111325,set as _0xc8892e,isEqual as _0x3c4da3,unset as _0x512536,omit as Pt}from'es-toolkit/compat';import{Delete as _0x1a056a,Input as _0x105aae}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xfee016}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3c5440}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 _0x5c7385{['_enabledCommands'];constructor(_0x296f9a,_0x2727f9){super(_0x296f9a),this['_enabledCommands']=_0x2727f9,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 _0x425c30 of this['editor']['commands']['commands']())_0x425c30['affectsData']&&!this['_enabledCommands']['has'](_0x425c30)&&_0x425c30['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x184af0 of this['editor']['commands']['commands']())_0x184af0['affectsData']&&!this['_enabledCommands']['has'](_0x184af0)&&_0x184af0['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x5c7385{['_suggestions'];constructor(_0x3df4ec,_0x2b83fe){super(_0x3df4ec),this['_suggestions']=_0x2b83fe,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x41129e){const _0x2b7f8c=this['_suggestions']['get'](_0x41129e);if(!_0x2b7f8c)throw new _0x46a289('track-changes-accept-suggestion-not-found',this);const _0x46709b=_0x2b7f8c['getRanges']();this['editor']['model']['canEditAt'](_0x46709b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2b7f8c);}}class D extends _0x5c7385{['_suggestions'];constructor(_0xa1b0f9,_0x3d8c02){super(_0xa1b0f9),this['_suggestions']=_0x3d8c02,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x887c9c){const _0x313ace=this['_suggestions']['get'](_0x887c9c);if(!_0x313ace)throw new _0x46a289('track-changes-discard-suggestion-not-found',this);const _0x51e760=_0x313ace['getRanges']();this['editor']['model']['canEditAt'](_0x51e760)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x313ace);}}function ls(_0x3bb32b,_0x318428){let _0x495982='';return _0x495982+=_0x3bb32b['split']('*')['map']((_0x22ed68,_0x12877d)=>_0x12877d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x22ed68)+'</span>':rn(_0x22ed68))['join'](''),_0x318428&&(_0x495982+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x318428['value']+'\x22\x20title=\x22'+_0x318428['title']+'\x22></span>'),_0x495982;}function rn(_0x1e10aa){const _0x1b1a30=document['createElement']('span');return _0x1b1a30['innerText']=_0x1e10aa,_0x1b1a30['innerHTML'];}function ts(_0x29bbe5){return _0x29bbe5['sort']((_0x461c7c,_0x3060eb)=>'attribute'===_0x461c7c['type']&&'attribute'!==_0x3060eb['type']?-0x1:'attribute'!==_0x461c7c['type']&&'attribute'===_0x3060eb['type']?0x1:'deletion'==_0x461c7c['type']&&'deletion'!=_0x3060eb['type']?-0x1:'deletion'!=_0x461c7c['type']&&'deletion'==_0x3060eb['type']?0x1:0x0);}function to(_0x107ad6,_0x46d1ba){let _0xb72e27,_0x3dd464=0x0;const _0x1f1ace=[],_0x3f6bd9=_0x46d1ba['schema'];for(;_0x3dd464<_0x107ad6['length'];){const _0x521eff=_0x107ad6[_0x3dd464],_0x3ba299=_0x107ad6[_0x3dd464+0x1];_0xb72e27||(_0xb72e27=_0x46d1ba['createPositionBefore'](_0x521eff)),cn(_0x46d1ba,_0x521eff,_0x3ba299)||(_0x1f1ace['push'](_0x46d1ba['createRange'](_0xb72e27,_0x3f6bd9['isObject'](_0x521eff)?_0x46d1ba['createPositionAfter'](_0x521eff):_0x46d1ba['createPositionAt'](_0x521eff,'end'))),_0xb72e27=null),_0x3dd464++;}return _0x1f1ace;}function cn(_0x490ff3,_0x2a57cf,_0x2c9beb){if(!_0x2c9beb)return!0x1;const _0x5d1fed=_0x490ff3['createPositionAfter'](_0x2a57cf),_0x50856f=_0x490ff3['createPositionBefore'](_0x2c9beb);return _0x5d1fed['isTouching'](_0x50856f);}function rs(_0x35fc2f,_0x2cbbbf,_0xaef7dc){for(;_0xaef7dc['length'];){const _0x459331=_0xaef7dc['splice'](0x0,0x64);_0x35fc2f['change'](()=>{for(const _0x545262 of _0x459331)_0x545262['isInContent']&&_0x2cbbbf['execute'](_0x545262['id']);});}}class B extends _0x5c7385{['_command'];['_suggestions'];constructor(_0x3a485e,_0x328575,_0x3a9539){super(_0x3a485e),this['_command']=_0x328575,this['_suggestions']=_0x3a9539,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a3056=Array['from'](this['_suggestions']['values']())['some'](_0x65bf6f=>_0x65bf6f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3a3056;}['execute'](){const _0x35930d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x25738c of _0x35930d){const _0x382704=_0x25738c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x382704))return;}rs(this['editor']['model'],this['_command'],_0x35930d);}}class O extends _0x5c7385{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2838a6,_0x2f8718,_0xa5773a){super(_0x2838a6),this['_command']=_0x2f8718,this['_suggestions']=_0xa5773a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e5bff=this['editor']['model']['document']['selection'],_0x54c91e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56c06,_0x3e1750){const _0x34488a=Array['from'](_0x56c06['getRanges']()),_0x3469b4=new Set();for(const _0x5682ed of _0x3e1750)if(_0x5682ed['isInContent']){for(const _0x4f0d5c of _0x34488a)for(const _0x2a00c3 of _0x5682ed['getRanges']())(_0x4f0d5c['isIntersecting'](_0x2a00c3)||_0x56c06['isCollapsed']&&!_0x5682ed['isMultiRange']&&_0x5682ed['next']&&_0x2a00c3['end']['isTouching'](_0x4f0d5c['start']))&&_0x3469b4['add'](_0x5682ed);}return _0x3469b4;}(_0x5e5bff,_0x54c91e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xbd65d1=ts(Array['from'](this['_selectedSuggestions']));for(const _0x41d6bf of _0xbd65d1){const _0x155ff6=_0x41d6bf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x155ff6))return;}rs(this['editor']['model'],this['_command'],_0xbd65d1);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x386c37(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x184d3f,_0x85428d){super(),this['id']=_0x85428d['id'],this['type']=_0x85428d['type'],this['subType']=_0x85428d['subType']||null,this['author']=_0x85428d['author'],this['creator']=_0x85428d['creator']||_0x85428d['author'],this['isExternal']=Boolean(_0x85428d['attributes']&&_0x85428d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x85428d['originalSuggestionId']||null,this['_model']=_0x184d3f,this['_onAccept']=_0x85428d['onAccept'],this['_onDiscard']=_0x85428d['onDiscard'],this['_onAttributesChange']=_0x85428d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x85428d['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 _0x3d6fbc=this;for(;_0x3d6fbc['previous'];)_0x3d6fbc=_0x3d6fbc['previous'];return _0x3d6fbc;}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'](_0x418692){this['_markerNames']['add'](_0x418692);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x400460=>this['_model']['markers']['get'](_0x400460))['filter'](_0x274046=>_0x274046);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22a84e=>{for(const _0x2b4615 of this['getMarkers']())_0x22a84e['removeMarker'](_0x2b4615);}),this['_markerNames']['clear']();}['removeMarker'](_0x510c8b){this['_model']['change'](_0x7c25df=>{_0x7c25df['removeMarker'](_0x510c8b);}),this['_markerNames']['delete'](_0x510c8b);}['addRange'](_0x15df1f){const _0x15662c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x15662c),this['_model']['change'](_0x979e27=>{_0x979e27['addMarker'](_0x15662c,{'range':_0x15df1f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x73b38a){for(const _0x180088 of this['getRanges']())if(_0x180088['isIntersecting'](_0x73b38a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4d20bb=>_0x4d20bb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ef505,_0x251d3d)=>[..._0x1ef505,..._0x251d3d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3931e9=this['getRanges']();if(0x1!=_0x3931e9['length'])return null;const _0x5ee62e=_0x3931e9[0x0],_0x19a21f=_0x5ee62e['start']['nodeAfter'],_0x38c52e=_0x5ee62e['end']['nodeBefore'];return _0x19a21f instanceof _0x46ae36?_0x19a21f!=_0x38c52e?null:_0x19a21f: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 _0xaf5dcf=[];let _0x202029=this['head'];for(;_0x202029;)_0xaf5dcf['push'](_0x202029),_0x202029=_0x202029['next'];return _0xaf5dcf;}['setAttribute'](_0x4cc9b7,_0xbb88e5){const _0x3cc31b=_0x111325(this['attributes']);_0xc8892e(_0x3cc31b,_0x4cc9b7,_0xbb88e5),_0x3c4da3(_0x3cc31b,this['attributes'])||(this['attributes']=_0x3cc31b,this['_onAttributesChange'](_0x3cc31b));}['removeAttribute'](_0x28c392){const _0x3c3cd8=_0x111325(this['attributes']);_0x512536(_0x3c3cd8,_0x28c392),_0x3c4da3(_0x3c3cd8,this['attributes'])||(this['attributes']=_0x3c3cd8,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 _0xcb588e()['substr'](0x1,0x5);}}function o(_0x557033,_0x2a722d,_0x30eba2){const _0x242ed2=_0x557033['t'],t=_0x557033['t'];switch(_0x2a722d){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',_0x30eba2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x30eba2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x30eba2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x30eba2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x30eba2);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',_0x30eba2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x30eba2);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',_0x30eba2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x30eba2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x30eba2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x30eba2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x30eba2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x30eba2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x30eba2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x30eba2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x30eba2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x30eba2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x30eba2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x30eba2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x30eba2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x30eba2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x30eba2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x30eba2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x30eba2);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x30eba2);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'},_0x30eba2);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x30eba2);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x30eba2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x30eba2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x30eba2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x30eba2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x30eba2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x30eba2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x30eba2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x30eba2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x30eba2);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'},_0x30eba2);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x30eba2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x30eba2);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x30eba2);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x30eba2);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x30eba2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x30eba2);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 _0x242ed2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x30eba2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x242ed2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x30eba2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x30eba2);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'},_0x30eba2);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'},_0x30eba2);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'},_0x30eba2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2a722d;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xf15305,_0x24084b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xf15305,this['_locale']=_0x24084b;}['getDescriptions'](_0x9341d4){const _0x257c88=[],_0x3571cc=new Set(),_0x2ebd63=new Set();for(let _0x99146b=0x0;_0x99146b<_0x9341d4['length'];_0x99146b++){const _0x407eba=_0x9341d4[_0x99146b];if(!_0x407eba['isInContent'])continue;const _0x1587ab=this['_handleCustomCallbackDescription'](_0x407eba);if(_0x1587ab){if(null!=_0x407eba['subType']){if(_0x3571cc['has'](_0x407eba['subType']))continue;_0x3571cc['add'](_0x407eba['subType']);}_0x257c88['push'](_0x1587ab);}else{if('attribute'==_0x407eba['type']){const _0x466ef8=_0x407eba['data']['key'];if(_0x2ebd63['has'](_0x466ef8))continue;_0x2ebd63['add'](_0x407eba['data']['key']),_0x466ef8==m?this['_handleRenameSuggestionDescription'](_0x257c88,_0x407eba):this['_handleAttributeSuggestionDescription'](_0x257c88,_0x407eba);continue;}'insertion'!=_0x407eba['type']&&'deletion'!=_0x407eba['type']||this['_handleInsertRemoveSuggestionDescription'](_0x257c88,_0x407eba,_0x9341d4[_0x99146b+0x1]);}}return this['_resolveDescriptionItems'](_0x257c88);}['registerDescriptionCallback'](_0x5a047c){this['_customCallbacks']['push'](_0x5a047c);}['registerElementLabel'](_0x32e5c1,_0x2c55d8,_0x314620=_0x104c24['normal']){'function'==typeof _0x32e5c1?_0x5c5269(this['_itemLabelsCallbacks'],{'matchingCallback':_0x32e5c1,'label':_0x2c55d8,'priority':_0x314620}):this['_itemLabels']['set'](_0x32e5c1,_0x2c55d8);}['registerAttributeLabel'](_0x31d5a1,_0x31321f){this['_attributeLabels']['set'](_0x31d5a1,_0x31321f);}['getItemLabel'](_0x4d60e8,_0x11dd03=0x1){let _0x2604ca;for(const _0x722d24 of this['_itemLabelsCallbacks'])if(_0x722d24['matchingCallback'](_0x4d60e8)){_0x2604ca=_0x722d24['label'];break;}return _0x2604ca||(_0x2604ca=this['_itemLabels']['get'](_0x4d60e8['name'])),_0x2604ca?_0x2604ca(_0x11dd03):0x1!==_0x11dd03?_0x11dd03+'\x20'+_0x4d60e8['name']+'s':''+_0x4d60e8['name'];}['_addDescriptionItems'](_0x16a045,_0x56536b){const _0x379583=_0x56536b['getFirstRange']()['getWalker'](),_0x37fe8e='insertion'==_0x56536b['type']?'add':'remove';for(const _0x32528a of _0x379583){const _0x2a5af1=_0x32528a['item'],_0x1b1679=_0x16a045[_0x16a045['length']-0x1];if(_0x2a5af1['is']('$textProxy'))_0x1b1679&&_0x1b1679['type']['indexOf']('Container')>-0x1&&_0x16a045['pop'](),_0x1b1679&&'text'==_0x1b1679['type']?_0x1b1679[_0x37fe8e]+=_0x2a5af1['data']:_0x16a045['push']({'type':'text','add':'add'==_0x37fe8e?_0x2a5af1['data']:'','remove':'remove'==_0x37fe8e?_0x2a5af1['data']:''});else{if(this['_schema']['isObject'](_0x2a5af1)){const _0x37211f=_0x2a5af1;if(_0x1b1679&&_0x1b1679['type']['indexOf']('Container')>-0x1&&_0x16a045['pop'](),'elementEnd'==_0x32528a['type'])continue;_0x1b1679&&_0x1b1679['type']==_0x37fe8e+'Object'&&_0x1b1679['element']['name']==_0x37211f['name']?_0x1b1679['quantity']++:_0x16a045['push']({'type':_0x37fe8e+'Object','element':_0x37211f,'quantity':0x1}),_0x379583['skip'](_0x355eca=>!('elementEnd'==_0x355eca['type']&&_0x355eca['item']==_0x2a5af1));}else{if(this['_schema']['checkChild'](_0x2a5af1,'$text')||_0x2a5af1['is']('element','softBreak')){const _0x4d02ac=_0x2a5af1;if('add'==_0x37fe8e&&'elementStart'==_0x32528a['type']||'remove'==_0x37fe8e&&'elementEnd'==_0x32528a['type'])continue;if(_0x1b1679&&-0x1==_0x1b1679['type']['indexOf']('Container')){'text'==_0x1b1679['type']&&(_0x1b1679[_0x37fe8e]+='\x0a');continue;}let _0x2b7d5d;if(_0x2b7d5d='add'==_0x37fe8e?_0x4d02ac['nextSibling']&&!this['_schema']['isObject'](_0x4d02ac['nextSibling'])?_0x4d02ac['nextSibling']:null:_0x4d02ac['previousSibling']&&!this['_schema']['isObject'](_0x4d02ac['previousSibling'])?_0x4d02ac['previousSibling']:null,_0x4d02ac['isEmpty']||_0x2b7d5d&&_0x2b7d5d['isEmpty']){const _0x393c9f=_0x2b7d5d&&_0x2b7d5d['isEmpty']?_0x2b7d5d:_0x4d02ac;_0x1b1679&&_0x1b1679['type']==_0x37fe8e+'EmptyContainer'&&_0x1b1679['element']['name']==_0x393c9f['name']?_0x1b1679['quantity']++:_0x16a045['push']({'type':_0x37fe8e+'EmptyContainer','element':_0x393c9f,'quantity':0x1});}else _0x16a045['push']({'type':_0x37fe8e+'Container','element':_0x4d02ac});}}}}}['_resolveDescriptionItems'](_0x24a98f){const _0x117555=this['_locale'],_0x6f5db5=[],_0x154535=[],_0x446c20=[];for(const _0x13bbc0 of _0x24a98f)switch(_0x13bbc0['type']){case'text':if(_0x13bbc0['add']=_0x13bbc0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x13bbc0['remove']=_0x13bbc0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x13bbc0['add']&&''!=_0x13bbc0['remove']){_0x6f5db5['push']({'type':'replace','content':o(_0x117555,'REPLACE_TEXT',['\x22'+_0x13bbc0['remove']+'\x22','\x22'+_0x13bbc0['add']+'\x22'])});continue;}if(null!=_0x13bbc0['add']['match'](/^ +$/)){_0x6f5db5['push']({'type':'insertion','content':o(_0x117555,'*Insert:*\x20%0',o(_0x117555,'ELEMENT_SPACE',_0x13bbc0['add']['length']))});continue;}if(null!=_0x13bbc0['remove']['match'](/^ +$/)){_0x6f5db5['push']({'type':'deletion','content':o(_0x117555,'*Remove:*\x20%0',o(_0x117555,'ELEMENT_SPACE',_0x13bbc0['remove']['length']))});continue;}if(''!=_0x13bbc0['add']){_0x6f5db5['push']({'type':'insertion','content':o(_0x117555,'*Insert:*\x20%0','\x22'+_0x13bbc0['add']+'\x22')});continue;}_0x6f5db5['push']({'type':'deletion','content':o(_0x117555,'*Remove:*\x20%0','\x22'+_0x13bbc0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x6f5db5['push']({'type':'insertion','content':o(_0x117555,'*Insert:*\x20%0',this['getItemLabel'](_0x13bbc0['element'],_0x13bbc0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x6f5db5['push']({'type':'deletion','content':o(_0x117555,'*Remove:*\x20%0',this['getItemLabel'](_0x13bbc0['element'],_0x13bbc0['quantity']))});continue;case'addContainer':_0x6f5db5['push']({'type':'insertion','content':o(_0x117555,'*Split:*\x20%0',this['getItemLabel'](_0x13bbc0['element'],_0x13bbc0['quantity']))});continue;case'removeContainer':_0x6f5db5['push']({'type':'deletion','content':o(_0x117555,'*Merge:*\x20%0',this['getItemLabel'](_0x13bbc0['element'],_0x13bbc0['quantity']))});continue;case'addFormat':_0x154535['push'](_0x13bbc0['key']);continue;case'removeFormat':_0x446c20['push'](_0x13bbc0['key']);continue;default:_0x6f5db5['push'](_0x13bbc0);}if(_0x154535['length']){const _0x4d9668=_0x154535['map'](_0x193972=>this['_attributeLabels']['has'](_0x193972)?this['_attributeLabels']['get'](_0x193972):_0x193972)['join'](',\x20');_0x6f5db5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4d9668)});}if(_0x446c20['length']){const _0x556413=_0x446c20['map'](_0x33cb7f=>this['_attributeLabels']['has'](_0x33cb7f)?this['_attributeLabels']['get'](_0x33cb7f):_0x33cb7f)['join'](',\x20');_0x6f5db5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x556413)});}return _0x6f5db5;}['_handleCustomCallbackDescription'](_0x2c0bff){for(const _0x5a800d of this['_customCallbacks']){const _0x1fbf96=_0x5a800d(_0x2c0bff);if(_0x1fbf96&&'type'in _0x1fbf96)return _0x1fbf96;}}['_handleAttributeSuggestionDescription'](_0x4fed78,_0x58470f){const _0x525a4c=_0x58470f['data'],_0x40287d=void 0x0===_0x525a4c['newValue']?'removeFormat':'addFormat';_0x4fed78['push']({'type':_0x40287d,'key':_0x525a4c['key']});}['_handleRenameSuggestionDescription'](_0x23066a,_0x5ec6f9){_0x23066a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5ec6f9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xcae0d5,_0x1dfe08,_0x3d72c5){if(this['_addDescriptionItems'](_0xcae0d5,_0x1dfe08),_0x3d72c5&&_0x3d72c5['getFirstRange']()&&!_0x1dfe08['getFirstRange']()['end']['isEqual'](_0x3d72c5['getFirstRange']()['start'])){const _0x511bea=_0xcae0d5[_0xcae0d5['length']-0x1],_0x3bdf58='insertion'==_0x1dfe08['type']?'add':'remove';_0x511bea&&'text'==_0x511bea['type']&&(_0x511bea[_0x3bdf58]+='\x0a');}}}class R extends _0x2e7573{['afterInit'](){const _0x59795a=this['editor'],_0x248bd5=_0x59795a['plugins']['get']('TrackChangesEditing');_0x59795a['commands']['get']('showAIAssistant')&&_0x248bd5['enableCommand']('showAIAssistant');}}class T extends _0x2e7573{['afterInit'](){const _0x372209=this['editor'],_0x2c5190=_0x372209['plugins']['get']('TrackChangesEditing');_0x372209['commands']['get']('toggleAi')&&_0x2c5190['enableCommand']('toggleAi');}}class E extends _0x2e7573{['afterInit'](){const _0x3973a4=this['editor'],_0x1c05d3=_0x3973a4['plugins']['get']('TrackChangesEditing');_0x3973a4['commands']['get']('aiQuickAction')&&_0x1c05d3['enableCommand']('aiQuickAction');}}class U extends _0x2e7573{['afterInit'](){const _0x3054c4=this['editor'],_0x45bae7=_0x3054c4['locale'];if(!_0x3054c4['plugins']['has']('AlignmentEditing'))return;const _0x33e4cc=_0x3054c4['plugins']['get']('TrackChangesEditing');_0x33e4cc['enableDefaultAttributesIntegration']('alignment'),_0x33e4cc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x45bae7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dd9ff=this['editor'],_0x1c526d=_0x3dd9ff['locale'];_0x3dd9ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b98b1=>{if('formatBlock'!=_0x1b98b1['type'])return;const {data:_0xea1be3}=_0x1b98b1;if(_0xea1be3&&'alignment'==_0xea1be3['commandName']){const _0xbddabc=_0xea1be3['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1c526d,'*Format:*\x20%0',function(_0x11b1a9){switch(_0x11b1a9){case'left':return o(_0x1c526d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1c526d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1c526d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1c526d,'FORMAT_JUSTIFY_TEXT');}}(_0xbddabc))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2e7573{['afterInit'](){const _0x3649e7=this['editor'],_0x28964f=_0x3649e7['plugins']['get']('TrackChangesEditing'),_0x2ec15a=_0x3649e7['locale'];for(const _0xb4749a of ti){if(!_0x3649e7['plugins']['has'](_0xb4749a))continue;const _0x54c9cb=_0xb4749a['slice'](0x0,-0x7)['toLowerCase'](),_0x40eaa4='FORMAT_'+_0x54c9cb['toUpperCase']();_0x28964f['enableDefaultAttributesIntegration'](_0x54c9cb),_0x28964f['descriptionFactory']['registerAttributeLabel'](_0x54c9cb,o(_0x2ec15a,_0x40eaa4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4de200=this['editor'],_0x8cff79=_0x4de200['locale'],_0xa17564=_0x4de200['plugins']['get']('TrackChangesEditing');function _0x40559b(_0x550a32,_0x17e533){_0xa17564['descriptionFactory']['registerDescriptionCallback'](_0x51a0ad=>{if('formatInline'!=_0x51a0ad['type'])return;const {data:_0x4695d8}=_0x51a0ad;return _0x4695d8&&_0x4695d8['commandName']===_0x550a32?_0x4695d8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8cff79,'*Format:*\x20%0',_0x17e533)}:{'type':'format','content':o(_0x8cff79,'*Remove\x20format:*\x20%0',_0x17e533)}:void 0x0;});}_0x40559b('bold',o(_0x8cff79,'FORMAT_BOLD')),_0x40559b('italic',o(_0x8cff79,'FORMAT_ITALIC')),_0x40559b('underline',o(_0x8cff79,'FORMAT_UNDERLINE')),_0x40559b('code',o(_0x8cff79,'FORMAT_CODE')),_0x40559b('strikethrough',o(_0x8cff79,'FORMAT_STRIKETHROUGH')),_0x40559b('subscript',o(_0x8cff79,'FORMAT_SUBSCRIPT')),_0x40559b('superscript',o(_0x8cff79,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2e7573{['afterInit'](){const _0x41d4d7=this['editor'],_0x3e4ffa=_0x41d4d7['locale'];if(!_0x41d4d7['plugins']['has']('BlockQuoteEditing'))return;const _0x45ea6a=_0x41d4d7['plugins']['get']('TrackChangesEditing'),_0x41f121=this['editor']['commands']['get']('blockQuote');_0x45ea6a['enableCommand']('blockQuote',(_0x1551a9,_0x246f75={})=>{const _0x4310d8=this['editor']['model']['document']['selection'],_0x55d7ce=_0x246f75&&void 0x0!==_0x246f75['forceValue']?_0x246f75['forceValue']:!_0x41f121['value'];let _0x14aaa7=[];if(_0x55d7ce){const _0x23bb51=Array['from'](_0x4310d8['getSelectedBlocks']())['filter'](_0x233a16=>oo(_0x233a16)||function(_0x19ec00,_0x522538){const _0x22259d=_0x522538['checkChild'](_0x19ec00['parent'],'blockQuote'),_0x23f11b=_0x522538['checkChild'](['$root','blockQuote'],_0x19ec00);return _0x22259d&&_0x23f11b;}(_0x233a16,this['editor']['model']['schema']));_0x14aaa7=to(_0x23bb51,_0x41d4d7['model']);}else{const _0x575b8b=Array['from'](_0x4310d8['getSelectedBlocks']())['filter'](_0x2ed6a0=>oo(_0x2ed6a0));_0x14aaa7=to(_0x575b8b,_0x41d4d7['model']);}_0x41d4d7['model']['change'](()=>{for(const _0xbda5d7 of _0x14aaa7)_0x45ea6a['markBlockFormat'](_0xbda5d7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x55d7ce}]});});}),_0x45ea6a['descriptionFactory']['registerDescriptionCallback'](_0x4b8a6b=>{const {data:_0x32af58}=_0x4b8a6b;if(_0x32af58&&'blockQuote'==_0x32af58['commandName']){const _0x3fed0c=o(_0x3e4ffa,'ELEMENT_BLOCK_QUOTE');return _0x32af58['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e4ffa,'*Set\x20format:*\x20%0',_0x3fed0c)}:{'type':'format','content':o(_0x3e4ffa,'*Remove\x20format:*\x20%0',_0x3fed0c)};}});}}function oo(_0x5e998b){return'blockQuote'==_0x5e998b['parent']['name'];}class G extends _0x2e7573{['afterInit'](){const _0x428578=this['editor'],_0x285b36=_0x428578['locale'],_0x17a354=_0x428578['plugins']['get']('TrackChangesEditing');_0x428578['plugins']['has']('BookmarkEditing')&&(_0x17a354['enableCommand']('insertBookmark'),_0x17a354['enableDefaultAttributesIntegration']('updateBookmark'),_0x17a354['descriptionFactory']['registerDescriptionCallback'](_0x341c46=>{if('insertion'!=_0x341c46['type']&&'deletion'!=_0x341c46['type']&&'attribute'!=_0x341c46['type'])return;const _0x1fc9d5=_0x341c46['getContainedElement']();if(null==_0x1fc9d5)return;if(!_0x1fc9d5['is']('element','bookmark'))return;const _0x182827=_0x1fc9d5['getAttribute']('bookmarkId');if('insertion'==_0x341c46['type'])return{'type':'insertion','content':o(_0x285b36,'*Insert:*\x20%0','\x22'+_0x182827+'\x22\x20'+o(_0x285b36,'ELEMENT_BOOKMARK'))};if('deletion'==_0x341c46['type'])return{'type':'deletion','content':o(_0x285b36,'*Remove:*\x20%0','\x22'+_0x182827+'\x22\x20'+o(_0x285b36,'ELEMENT_BOOKMARK'))};const {data:_0x3de733}=_0x341c46;if(!_0x3de733||'bookmarkId'!=_0x3de733['key'])return;return{'type':'format','content':o(_0x285b36,'*Set\x20bookmark:*\x20%0','\x22'+_0x3de733['newValue']+'\x22')};}));}}class L extends _0x2e7573{['afterInit'](){const _0x27495d=this['editor'];_0x27495d['plugins']['has']('CaseChange')&&(_0x27495d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x27495d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x27495d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2e7573{['afterInit'](){const _0x5993d4=this['editor'];_0x5993d4['commands']['get']('ckbox')&&_0x5993d4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2e7573{['afterInit'](){const _0x4530b3=this['editor'];if(!_0x4530b3['plugins']['has']('CodeBlock'))return;const _0x41114a=_0x4530b3['plugins']['get']('TrackChangesEditing'),_0x1c677d=_0x4530b3['locale'],_0x52e48d=_0x4530b3['config']['get']('codeBlock')['languages'],_0x147757=_0x4530b3['commands']['get']('codeBlock');_0x41114a['enableCommand']('indentCodeBlock'),_0x41114a['enableCommand']('outdentCodeBlock'),_0x41114a['enableCommand']('codeBlock',(_0x574bf1,_0x1f96d6={})=>{const _0x45ea27=_0x4530b3['model'],_0x167656=_0x4530b3['model']['document']['selection'],_0xca2d6b=_0x1f96d6&&void 0x0!==_0x1f96d6['forceValue']?_0x1f96d6['forceValue']:!_0x147757['value'];let _0x4754fc;_0x1f96d6['language']||(_0x1f96d6['language']=_0x52e48d[0x0]['language']),_0x4754fc=_0xca2d6b?Array['from'](_0x167656['getSelectedBlocks']())['filter'](_0x27690d=>co(_0x27690d)||function(_0x4ac83e,_0x54eeac){if(_0x4ac83e['is']('rootElement')||_0x54eeac['isLimit'](_0x4ac83e))return!0x1;return _0x54eeac['checkChild'](_0x4ac83e['parent'],'codeBlock');}(_0x27690d,_0x45ea27['schema'])):Array['from'](_0x167656['getSelectedBlocks']())['filter'](_0xa215e8=>co(_0xa215e8));const _0x20c448=to(_0x4754fc,_0x45ea27);_0x45ea27['change'](()=>{for(const _0x3bf209 of _0x20c448)_0x41114a['markBlockFormat'](_0x3bf209,{'commandName':'codeBlock','commandParams':[{..._0x1f96d6,'forceValue':_0xca2d6b}],'formatGroupId':'blockName'});});}),(_0x41114a['descriptionFactory']['registerElementLabel']('codeBlock',_0x197be7=>o(_0x1c677d,'ELEMENT_CODE_BLOCK',_0x197be7)),_0x41114a['descriptionFactory']['registerDescriptionCallback'](_0xafa0b5=>{if('formatBlock'!=_0xafa0b5['type'])return;const _0x15f85e=_0x1c677d['t'],{data:_0x79ae5c}=_0xafa0b5;if(!_0x79ae5c||'codeBlock'!=_0x79ae5c['commandName'])return;const _0x3f4155=_0x79ae5c['commandParams'][0x0]['language'],_0x9206d0=_0x15f85e(_0x52e48d['find'](_0x121226=>_0x121226['language']===_0x3f4155)['label'])['toLowerCase']();return _0x79ae5c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c677d,'*Set\x20format:*\x20%0',o(_0x1c677d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9206d0+')')}:{'type':'format','content':o(_0x1c677d,'*Remove\x20format:*\x20%0',o(_0x1c677d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x36b832){return'codeBlock'==_0x36b832['name'];}class z extends _0x2e7573{['afterInit'](){const _0x1c8177=this['editor'];if(!_0x1c8177['plugins']['has']('CommentsEditing'))return;_0x1c8177['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2e7573{static get['requires'](){return[_0x1a056a];}['init'](){const _0x578506=this['editor'],_0x6bbef9=_0x578506['plugins']['get']('TrackChangesEditing');_0x6bbef9['enableCommand']('delete');const _0x449fb6=_0x578506['commands']['get']('deleteForward');_0x6bbef9['enableCommand']('deleteForward',(_0x537b3e,_0x2f7fc={})=>{const _0x49a264=_0x578506['model']['createSelection'](_0x578506['model']['document']['selection']);_0x49a264['isCollapsed']&&_0x578506['model']['modifySelection'](_0x49a264,{'direction':'forward','unit':_0x2f7fc['unit']});const _0x59659a=_0x49a264['getFirstRange'](),_0x1c39a0=_0x2f9bba['fromRange'](_0x59659a);let _0x4c130b;_0x537b3e(_0x2f7fc),_0x4c130b='$graveyard'==_0x1c39a0['root']['rootName']?_0x578506['model']['createRange'](_0x59659a['start']):_0x578506['model']['createRange'](_0x1c39a0['start'],_0x1c39a0['end']),_0x1c39a0['detach'](),_0x578506['model']['enqueueChange'](_0x449fb6['buffer']['batch'],_0x3f7bf1=>{_0x449fb6['buffer']['lock'](),_0x3f7bf1['setSelection'](_0x3f7bf1['createRange'](_0x4c130b['end'])),_0x449fb6['buffer']['unlock']();});});}}class W extends _0x2e7573{['afterInit'](){const _0x5b60a0=this['editor'];if(!_0x5b60a0['plugins']['has']('ListEditing'))return;const _0x1dd013=_0x5b60a0['locale'],_0x1a967d=_0x5b60a0['plugins']['get']('TrackChangesEditing'),_0x23be17=_0x5b60a0['plugins']['has']('TodoListEditing'),_0x34280e=!!_0x5b60a0['config']['get']('list.multiBlock');function _0x4d3ac9(_0x9d6225){return{'type':'format','content':''+o(_0x1dd013,'*Set\x20format:*\x20%0',_0x9d6225)};}function _0x2e6390(_0x2834ee){return{'type':'format','content':''+o(_0x1dd013,'*Remove\x20format:*\x20%0',_0x2834ee)};}_0x1a967d['enableDefaultAttributesIntegration']('numberedList'),_0x1a967d['enableDefaultAttributesIntegration']('bulletedList'),_0x1a967d['enableDefaultAttributesIntegration']('customNumberedList'),_0x1a967d['enableDefaultAttributesIntegration']('customBulletedList'),_0x1a967d['enableDefaultAttributesIntegration']('indentList'),_0x1a967d['enableDefaultAttributesIntegration']('outdentList'),_0x1a967d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1a967d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x34280e&&(_0x1a967d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1a967d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x23be17&&(_0x1a967d['enableDefaultAttributesIntegration']('todoList'),_0x1a967d['enableDefaultAttributesIntegration']('checkTodoList'),_0x1a967d['descriptionFactory']['registerDescriptionCallback'](_0x5edf87=>{const {data:_0xefedd2}=_0x5edf87;if(_0xefedd2&&'todoListChecked'==_0xefedd2['key'])return{'type':'format','content':_0xefedd2['newValue']?o(_0x1dd013,'*Check\x20item*'):o(_0x1dd013,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8a266e=>{if(_0x8a266e['batch']['isUndo'])return!0x1;let _0x417eb5=!0x1;const _0x1c68c4=_0x1a967d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49a3a9=>'todoListChecked'===_0x1a967d['_getAttributeKey'](_0x49a3a9));for(const _0x18f820 of _0x1c68c4){'todo'!=_0x18f820['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1a967d['_findSuggestions'](_0x18f820['getFirstRange'](),'attribute')['find'](_0x232f8a=>'listType'===_0x1a967d['_getAttributeKey'](_0x232f8a['suggestion']))||(_0x8a266e['removeMarker'](_0x18f820['getFirstMarker']()),_0x417eb5=!0x0));}return _0x417eb5;})),_0x1a967d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1dd013,'FORMAT_INDENT'));const _0x2e9398={'type':'format','content':''};_0x1a967d['descriptionFactory']['registerDescriptionCallback'](_0x5dd71a=>{const {data:_0x405f81}=_0x5dd71a;if(!_0x405f81||'listType'!=_0x405f81['key'])return;let _0x3e31c6=_0x5dd71a['head'];for(;_0x3e31c6;){if(_0x3e31c6['data']&&(('listStyle'==_0x3e31c6['data']['key']||'listMarkerStyle'==_0x3e31c6['data']['key'])&&(_0x3e31c6['data']['newValue']&&'default'!=_0x3e31c6['data']['newValue']||'default'!=_0x3e31c6['data']['oldValue']&&!_0x405f81['newValue'])||!_0x34280e&&_0x3e31c6['data']['key']==m))return _0x2e9398;_0x3e31c6=_0x3e31c6['next'];}if(null==_0x405f81['newValue'])switch(_0x405f81['oldValue']){case'bulleted':return _0x2e6390(o(_0x1dd013,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e6390(o(_0x1dd013,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e6390(o(_0x1dd013,'ELEMENT_TODO_LIST'));}switch(_0x405f81['newValue']){case'bulleted':return _0x4d3ac9(o(_0x1dd013,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d3ac9(o(_0x1dd013,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d3ac9(o(_0x1dd013,'ELEMENT_TODO_LIST'));}}),_0x1a967d['descriptionFactory']['registerDescriptionCallback'](_0x474ebd=>{const {data:_0x48c2a5}=_0x474ebd;if(_0x48c2a5&&'listIndent'==_0x48c2a5['key'])return null==_0x48c2a5['newValue']||null==_0x48c2a5['oldValue']&&0x0==_0x48c2a5['newValue']?_0x2e9398:void 0x0;}),_0x1a967d['descriptionFactory']['registerDescriptionCallback'](_0x507f4c=>{if('attribute'!=_0x507f4c['type'])return;const {data:_0x5efc9e}=_0x507f4c;if(!_0x5efc9e||'listItemId'!=_0x5efc9e['key'])return;const _0x5d53c3=Te(_0x507f4c);return'newValue'==_0x5d53c3?{'type':'format','content':o(_0x1dd013,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5d53c3?{'type':'format','content':o(_0x1dd013,'*Split:*\x20list\x20item')}:_0x2e9398;}),_0x5b60a0['model']['document']['registerPostFixer'](_0x12e39a=>this['listItemIdFixer'](_0x12e39a)),_0x5b60a0['model']['document']['registerPostFixer'](_0x324e0a=>this['noTrackChangesFixer'](_0x324e0a)),_0x5b60a0['model']['document']['on']('change:data',(_0x4e8198,_0x1923f3)=>{if(_0x1923f3['isUndo']||!_0x1923f3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3cf5cd){if(_0x3cf5cd['batch']['isUndo']||!_0x3cf5cd['batch']['isLocal'])return!0x1;let _0x269f5f=!0x1;const _0xaf826b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xeacad5=>_0xeacad5['data']&&'listItemId'==_0xeacad5['data']['key'])['filter'](_0x47ceee=>_0x47ceee['data']['newValue']&&_0x47ceee['data']['oldValue']);for(const _0x18ce1d of _0xaf826b)Te(_0x18ce1d)||(_0x3cf5cd['removeMarker'](_0x18ce1d['getFirstMarker']()),_0x269f5f=!0x0);return _0x269f5f;}['noTrackChangesFixer'](_0x3655a3){if(_0x3655a3['batch']['isUndo']||!_0x3655a3['batch']['isLocal'])return!0x1;const _0x950d1c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x950d1c['trackChangesCommand']['value'])return!0x1;let _0x50b1c5=!0x1;const _0x4f3fd1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x34f06f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4f6120=>'attribute'==_0x4f6120['type'])['filter'](_0x357219=>_0x4f3fd1['includes'](_0x357219['attributeKey']));if(0x0==_0x34f06f['length'])return _0x50b1c5;for(const _0xe108f8 of _0x34f06f){const _0x1d8297=_0x950d1c['_findSuggestions'](_0xe108f8['range'],'attribute')['filter'](_0x2c820e=>!_0x2c820e['meta']['isNextTo'])['map'](_0x3f96f4=>_0x3f96f4['suggestion'])['filter'](_0xa9ef4a=>{const _0x3da07b=_0x950d1c['_getAttributeKey'](_0xa9ef4a);return _0x4f3fd1['includes'](_0x3da07b);});if(_0x1d8297['length']){for(const _0x201bf7 of _0x1d8297)_0x3655a3['removeMarker'](_0x201bf7['getFirstMarker']());_0x50b1c5=!0x0;}}return _0x50b1c5;}['assureChains'](){const _0xb73592=this['editor']['plugins']['get']('TrackChangesEditing'),_0x599cff=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2bfc14;const _0x356296=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21cfb2=>{if(_0x21cfb2['data']['oldRange']||!_0x21cfb2['data']['newRange'])return null;if(!_0x21cfb2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2463d4}=_0xb73592['_splitMarkerName'](_0x21cfb2['name']);if(!_0xb73592['hasSuggestion'](_0x2463d4))return null;const _0x204c68=_0xb73592['getSuggestion'](_0x2463d4);return _0x599cff['includes'](_0x204c68['data']['key']);})['map'](_0x1de4d6=>{const {id:_0x1dcc6b}=_0xb73592['_splitMarkerName'](_0x1de4d6['name']),_0x5e208a=_0xb73592['getSuggestion'](_0x1dcc6b);return _0x2bfc14=_0x5e208a['attributes']['groupId'],_0x5e208a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x356296['size'])return;const _0x2c1e96=_0xb73592['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cdd16=>'attribute'==_0x4cdd16['type']&&_0x4cdd16['data']&&_0x599cff['includes'](_0x4cdd16['data']['key'])&&_0x4cdd16['attributes']['groupId']!=_0x2bfc14)['map'](_0x727493=>({'listItem':_0x727493['getFirstRange']()['start']['nodeAfter'],'groupId':_0x727493['attributes']['groupId']})),_0x46940e=new Set();for(const {groupId:_0x20cbd5,listItem:_0x4ffa27}of _0x2c1e96)_0x356296['has'](_0x4ffa27)&&_0x46940e['add'](_0x20cbd5);for(const _0x46a064 of _0xb73592['getSuggestions']())_0x46940e['has'](_0x46a064['attributes']['groupId'])&&_0x46a064['setAttribute']('groupId',_0x2bfc14);}['_supportLegacySuggestions'](){const _0x25f621=this['editor'],_0x873313=_0x25f621['locale'],_0x18d4dc=_0x25f621['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x18d4dc['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4f7718,_0x1d774e){const _0x57c7e1=[];for(let _0x22e98f of _0x4f7718)_0x22e98f['start']['nodeAfter']===_0x22e98f['end']['parent']&&(_0x22e98f=_0x25f621['model']['createRange'](_0x25f621['model']['createPositionAt'](_0x22e98f['start']['nodeAfter'],0x0))),_0x57c7e1['push'](_0x22e98f);_0x25f621['model']['change'](_0x152c91=>{const _0xf44748=_0x25f621['model']['document']['selection'],_0x578dba=Array['from'](_0xf44748['getRanges']())['map'](_0x36e357=>_0x2f9bba['fromRange'](_0x36e357));_0x152c91['setSelection'](_0x57c7e1),_0x25f621['commands']['get'](_0x1d774e['commandName'])['refresh'](),_0x1d774e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x25f621['execute'](_0x1d774e['commandName'],..._0x1d774e['commandParams']),_0x152c91['setSelection'](_0x578dba);for(const _0x35ca00 of _0x578dba)_0x35ca00['detach']();});}),_0x18d4dc['descriptionFactory']['registerElementLabel'](function(_0x3604f4){const _0x3435a7=!_0x25f621['model']['schema']['isObject'](_0x3604f4),_0x2b6cff=_0x3604f4['previousSibling'],_0xb5dd3b=_0x3604f4['nextSibling'],_0x5caf08=_0x3604f4['getAttribute']('listItemId'),_0x3f8d20=!_0x2b6cff||_0x2b6cff['getAttribute']('listItemId')!==_0x5caf08,_0x17dbbb=!_0xb5dd3b||_0xb5dd3b['getAttribute']('listItemId')!==_0x5caf08;return _0x3435a7&&Boolean(_0x5caf08)&&_0x3f8d20&&_0x17dbbb;},_0x1c561c=>o(_0x873313,'ELEMENT_LIST_ITEM',_0x1c561c));}['_registerLegacyDescription'](){const _0x3128b5=this['editor'],_0x3e1054=_0x3128b5['locale'];function _0xcde2de(_0x2184a6){const _0x4a9b27=_0x3128b5['commands']['get']('bulletedList')['value'],_0x56bff9=_0x3128b5['commands']['get']('numberedList')['value'];return'numberedList'===_0x2184a6?_0x4a9b27:_0x56bff9;}_0x3128b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49cab5){if('formatBlock'!=_0x49cab5['type'])return;const {data:_0x31ceac}=_0x49cab5;if(!_0x31ceac)return;let _0x29e2bf,_0x256b09,_0x5d8888,_0x488f4c;switch(_0x31ceac['commandName']){case'bulletedList':_0x5d8888=_0x31ceac['commandParams'][0x0]['forceValue'],_0x488f4c=_0xcde2de(_0x31ceac['commandName']),_0x29e2bf=_0x5d8888?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x488f4c&&_0x3128b5['config']['get']('list.multiBlock')||(_0x29e2bf='*Change\x20to:*\x20%0'),_0x256b09={'type':'format','content':o(_0x3e1054,_0x29e2bf,o(_0x3e1054,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d8888=_0x31ceac['commandParams'][0x0]['forceValue'],_0x488f4c=_0xcde2de(_0x31ceac['commandName']),_0x29e2bf=_0x5d8888?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x488f4c&&_0x3128b5['config']['get']('list.multiBlock')||(_0x29e2bf='*Change\x20to:*\x20%0'),_0x256b09={'type':'format','content':o(_0x3e1054,_0x29e2bf,o(_0x3e1054,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x29e2bf='*Indent:*\x20%0',_0x256b09={'type':'format','content':o(_0x3e1054,_0x29e2bf,o(_0x3e1054,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x29e2bf=function(_0x395a9e){const _0x177588=_0x395a9e['getFirstRange']();let _0x15bf53=_0x177588['start']['nodeAfter'];for(;_0x15bf53&&_0x177588['containsItem'](_0x15bf53);){if(_0x15bf53['getAttribute']('listIndent')>0x0)return!0x1;_0x15bf53=_0x15bf53['nextSibling'];}return!0x0;}(_0x49cab5)?o(_0x3e1054,'*Format:*\x20remove\x20from\x20%0',o(_0x3e1054,function(_0x53a66a){return'ELEMENT_'+_0x53a66a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49cab5))):o(_0x3e1054,'*Outdent:*\x20%0',o(_0x3e1054,'ELEMENT_LIST_ITEM')),_0x256b09={'type':'format','content':_0x29e2bf};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x31ceac['multipleBlocks']&&(_0x29e2bf='*Merge:*\x20%0',_0x256b09={'type':'deletion','content':o(_0x3e1054,_0x29e2bf,o(_0x3e1054,'ELEMENT_LIST_ITEM'))});}return _0x256b09;});}}function Te(_0x2d6503){let _0x4b8d0e=_0x2d6503['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b8d0e;){const _0x480bfb=_0x4b8d0e['getAttribute']('listItemId');if(!_0x480bfb)return!0x1;if(_0x480bfb==_0x2d6503['data']['newValue'])return'newValue';if(_0x480bfb==_0x2d6503['data']['oldValue'])return'oldValue';_0x4b8d0e=_0x4b8d0e['previousSibling'];}return!0x1;}class H extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4dd67f=this['editor']['config']['get']('list.properties'),_0x11ac63=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dd67f['styles']&&_0x11ac63['enableDefaultAttributesIntegration']('listStyle'),_0x4dd67f['reversed']&&_0x11ac63['enableDefaultAttributesIntegration']('listReversed'),_0x4dd67f['startIndex']&&_0x11ac63['enableDefaultAttributesIntegration']('listStart');const _0x5c8ad4={'type':'format','content':''};_0x11ac63['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31118e=this['editor']['locale'];_0x11ac63['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x31118e,'FORMAT_LIST_REVERSED')),_0x11ac63['descriptionFactory']['registerDescriptionCallback'](_0x302013=>{const {data:_0x1e949c}=_0x302013;if(_0x1e949c&&'listReversed'==_0x1e949c['key'])return null==_0x1e949c['newValue']||0x0==_0x1e949c['newValue']&&null==_0x1e949c['oldValue']?_0x5c8ad4:void 0x0;}),_0x11ac63['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x31118e,'FORMAT_LIST_START')),_0x11ac63['descriptionFactory']['registerDescriptionCallback'](_0xa975d2=>{const {data:_0x454f9e}=_0xa975d2;if(_0x454f9e&&'listStart'==_0x454f9e['key'])return null==_0x454f9e['newValue']||0x1==_0x454f9e['newValue']&&null==_0x454f9e['oldValue']?_0x5c8ad4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3b4462=>{if(_0x3b4462['batch']['isUndo'])return!0x1;let _0x2dd01b=!0x1;const _0x2eb7d6=_0x11ac63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13d16e=>{const _0x3ee717=_0x11ac63['_getAttributeKey'](_0x13d16e);return'listStart'==_0x3ee717||'listReversed'==_0x3ee717;});for(const _0x40a603 of _0x2eb7d6){const _0x59b772=_0x40a603['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x59b772||'customNumbered'==_0x59b772)continue;_0x11ac63['_findSuggestions'](_0x40a603['getFirstRange'](),'attribute')['find'](_0x50237b=>'listType'==_0x11ac63['_getAttributeKey'](_0x50237b['suggestion']))||(_0x3b4462['removeMarker'](_0x40a603['getFirstMarker']()),_0x2dd01b=!0x0);}return _0x2dd01b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5b42cc){const _0x5f1ccc=this['editor']['locale'],{data:_0x2c99cd}=_0x5b42cc,_0x15364e={'type':'format','content':''};if(!_0x2c99cd||'listStyle'!=_0x2c99cd['key'])return;if(!_0x2c99cd['oldValue'])return'default'==_0x2c99cd['newValue']?_0x15364e:{'type':'format','content':''+o(_0x5f1ccc,'*Set\x20format:*\x20%0',o(_0x5f1ccc,this['_getTranslationKeyForListStyle'](_0x2c99cd['newValue'])))};if(!_0x2c99cd['newValue']){if('default'==_0x2c99cd['oldValue'])return _0x15364e;let _0x711a97=_0x5b42cc['head'];for(;_0x711a97;){if(_0x711a97['data']&&'listType'==_0x711a97['data']['key']&&_0x711a97['data']['newValue'])return _0x15364e;_0x711a97=_0x711a97['next'];}return{'type':'format','content':''+o(_0x5f1ccc,'*Remove\x20format:*\x20%0',o(_0x5f1ccc,this['_getTranslationKeyForListStyle'](_0x2c99cd['oldValue'])))};}if('default'!=_0x2c99cd['newValue'])return{'type':'format','content':''+o(_0x5f1ccc,'*Set\x20format:*\x20%0',o(_0x5f1ccc,this['_getTranslationKeyForListStyle'](_0x2c99cd['newValue'])))};let _0x8450e5=_0x5b42cc['head'];for(;_0x8450e5;){if(_0x8450e5['data']&&'listType'==_0x8450e5['data']['key']&&_0x8450e5['data']['newValue']&&_0x8450e5['data']['oldValue'])return _0x15364e;_0x8450e5=_0x8450e5['next'];}return{'type':'format','content':o(_0x5f1ccc,'*Set\x20format:*\x20%0',o(_0x5f1ccc,'ELEMENT_'+_0x5b42cc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xe3b263=this['editor'],_0x2117fd=_0xe3b263['locale'];_0xe3b263['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47cdf9=>{if('formatBlock'!=_0x47cdf9['type'])return;const {data:_0x546dce}=_0x47cdf9;if(!_0x546dce)return;let _0x15816f,_0x2ad6ec;switch(_0x546dce['commandName']){case'listStyle':_0x15816f='*Change\x20to:*\x20%0',_0x2ad6ec={'type':'format','content':o(_0x2117fd,_0x15816f,o(_0x2117fd,this['_getTranslationKeyForListStyle'](_0x546dce['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15816f=_0x546dce['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ad6ec={'type':'format','content':o(_0x2117fd,_0x15816f)};break;case'listStart':_0x15816f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ad6ec={'type':'format','content':o(_0x2117fd,_0x15816f,_0x546dce['commandParams'][0x0]['startIndex'])};}return _0x2ad6ec;});}['_getTranslationKeyForListStyle'](_0x854af9){return'ELEMENT_'+function(_0x3c9793){if(ye['includes'](_0x3c9793))return'bulleted';if(Se['includes'](_0x3c9793))return'numbered';return null;}(_0x854af9)['toUpperCase']()+'_LIST_'+_0x854af9['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2e7573{['afterInit'](){const _0x540dc4=this['editor'];_0x540dc4['commands']['get']('emoji')&&_0x540dc4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2e7573{static get['requires'](){return[_0xfee016];}['init'](){const _0x566265=this['editor'],_0x123642=_0x566265['plugins']['get']('TrackChangesEditing'),_0xd17a2c=_0x566265['commands']['get']('enter');_0x123642['enableCommand']('enter',()=>{_0x566265['model']['change'](_0x234581=>{const _0x37d1ce=_0x566265['model']['document']['selection'],_0x243718=_0x37d1ce['getFirstPosition'](),_0xe2b41c=_0x2f9bba['fromRange'](_0x37d1ce['getFirstRange']());if(_0xd17a2c['enterBlock'](_0x234581)){const _0x31ea1=_0x566265['model']['createPositionAt'](_0x243718['parent']['nextSibling'],0x0),_0x117592=_0x234581['createRange'](_0x243718,_0x31ea1);_0x123642['markInsertion'](_0x117592);}else _0x234581['setSelection'](_0x234581['createRange'](_0xe2b41c['end']));_0xe2b41c['detach'](),_0xd17a2c['fire']('afterExecute',{'writer':_0x234581});});});}}class Y extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x587976=this['editor']['plugins']['get']('TrackChangesEditing');_0x587976['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x587976['enableCommand']('findNext'),_0x587976['enableCommand']('findPrevious'),_0x587976['enableCommand']('replace'),_0x587976['enableCommand']('replaceAll');}['handleFindCommand'](_0x3494bb,_0xfd3264,_0x6d8cb1={}){const _0xa16f92=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3494bb(_0x108537=>{let _0x2127da=('string'==typeof _0xfd3264?_0xa16f92['findByTextCallback'](_0xfd3264,_0x6d8cb1):_0xfd3264)(_0x108537);Array['isArray'](_0x2127da)&&(_0x2127da={'results':_0x2127da,'searchText':'string'==typeof _0xfd3264?_0xfd3264:''});const _0x2bd3d2=_0x2127da['results']['filter'](_0x9c1278=>!0x1===this['_isInDeletionRange'](_0x9c1278,_0x108537['item']));return{..._0x2127da,'results':_0x2bd3d2};},_0x6d8cb1);}['_isInDeletionRange'](_0x3d56c3,_0x4a7456){const _0x40d4a8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a7456,_0x3d56c3['start']),this['editor']['model']['createPositionAt'](_0x4a7456,_0x3d56c3['end']));for(const _0x4d62d3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x40d4a8['getIntersection'](_0x4d62d3['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 _0x2e7573{['afterInit'](){const _0x2741a6=this['editor']['locale'],_0x4ae836=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4f8da8,commandName:_0x46095a}of eo)this['editor']['plugins']['has'](_0x4f8da8)&&_0x4ae836['enableDefaultAttributesIntegration'](_0x46095a);_0x4ae836['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2741a6,'FORMAT_FONT_SIZE')),_0x4ae836['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2741a6,'FORMAT_FONT_FAMILY')),_0x4ae836['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2741a6,'FORMAT_FONT_COLOR')),_0x4ae836['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2741a6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31eed0=this['editor'],_0x1718ad=_0x31eed0['locale'];_0x31eed0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9d47=>{const _0x485fb3=_0x1718ad['t'];if('formatInline'!=_0x3e9d47['type'])return;const {data:_0x4d49ce}=_0x3e9d47;if(null!=_0x4d49ce){if('fontSize'==_0x4d49ce['commandName']){const _0x50a4b5=_0x4d49ce['commandParams'][0x0]['value'];if(_0x50a4b5){const _0x40eb5e=_0x485fb3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5d4a64=>_0x5d4a64['model']==_0x50a4b5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1718ad,'*Set\x20font\x20size:*\x20%0',_0x40eb5e)};}return{'type':'format','content':o(_0x1718ad,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4d49ce['commandName']){const _0x4df513=_0x4d49ce['commandParams'][0x0]['value'];return _0x4df513?{'type':'format','content':o(_0x1718ad,'*Set\x20font\x20family:*\x20%0',_0x4df513)}:{'type':'format','content':o(_0x1718ad,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4d49ce['commandName']){const _0x5cd52c=_0x4d49ce['commandParams'][0x0]['value'];if(_0x5cd52c){const _0x584150=_0x996e88(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5213cf=>_0x5213cf['model']==_0x5cd52c);let _0x57ff85=_0x5cd52c,_0x44f169='';return _0x584150&&(_0x57ff85=_0x584150['label'],_0x44f169=_0x485fb3(_0x57ff85)['toLowerCase']()),{'type':'format','content':o(_0x1718ad,'*Set\x20font\x20color:*\x20%0',_0x44f169)['trim'](),'color':{'value':_0x5cd52c,'title':_0x44f169||_0x57ff85}};}return{'type':'format','content':o(_0x1718ad,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4d49ce['commandName']){const _0x546e3d=_0x4d49ce['commandParams'][0x0]['value'];if(_0x546e3d){const _0x4a4d51=_0x996e88(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x42cd54=>_0x42cd54['model']==_0x546e3d);let _0x34215a=_0x546e3d,_0x27537a='';return _0x4a4d51&&(_0x34215a=_0x4a4d51['label'],_0x27537a=_0x485fb3(_0x34215a)['toLowerCase']()),{'type':'format','content':o(_0x1718ad,'*Set\x20font\x20background\x20color:*\x20%0',_0x27537a)['trim'](),'color':{'value':_0x546e3d,'title':_0x27537a||_0x34215a}};}return{'type':'format','content':o(_0x1718ad,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2e7573{['afterInit'](){const {plugins:_0x1c4546}=this['editor'];_0x1c4546['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1c4546['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x107175,plugins:_0x446ffd,commands:_0x4fe65b}=this['editor'],_0x4a62ff=_0x446ffd['get']('TrackChangesEditing');_0x4fe65b['get']('footnotesStyle')&&_0x4a62ff['enableDefaultAttributesIntegration']('footnotesStyle'),_0x4fe65b['get']('footnotesStart')&&_0x4a62ff['enableDefaultAttributesIntegration']('footnotesStart'),_0x4a62ff['registerBlockAttribute']('footnotesListStyle'),_0x4a62ff['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x107175,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4a62ff['registerBlockAttribute']('footnotesListStart'),_0x4a62ff['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x107175,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2d1782=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4c3773,commands:_0x209c7d}=this['editor'];_0x209c7d['get']('insertFootnote')&&_0x2d1782['enableCommand']('insertFootnote'),_0x2d1782['descriptionFactory']['registerElementLabel']('footnoteRef',_0x31d9f8=>o(_0x4c3773,'ELEMENT_FOOTNOTE_REF',_0x31d9f8)),_0x2d1782['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3688b7=>o(_0x4c3773,'ELEMENT_FOOTNOTE_DEFINITION',_0x3688b7)),_0x2d1782['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1b9fed=>o(_0x4c3773,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1b9fed));}}class nt extends _0x2e7573{['afterInit'](){const _0x4de561=this['editor'],_0x39d41c=_0x4de561['plugins']['get']('TrackChangesEditing'),_0x4a8929=_0x4de561['commands']['get']('copyFormat'),_0x51707c=_0x4de561['commands']['get']('pasteFormat');_0x4a8929&&_0x51707c&&(_0x39d41c['enableDefaultAttributesIntegration']('pasteFormat'),_0x39d41c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x38a452=this['editor'],_0x242d4a=_0x38a452['locale'];_0x38a452['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4825a7=>{if('formatBlock'!=_0x4825a7['type']&&'formatInline'!=_0x4825a7['type'])return;const {data:_0x279729}=_0x4825a7;if(_0x279729&&'pasteFormat'===_0x279729['commandName']){const _0x205430=[],_0x492c2b=_0x279729['commandParams'][0x0];for(const [_0x3d4050,_0x15ee6e]of Object['entries'](_0x492c2b))_0x205430['push'](ro(_0x38a452,_0x3d4050,_0x15ee6e));return _0x205430['length']?{'type':'format','content':o(_0x242d4a,'*Set\x20format\x20to:*\x20%0',_0x205430['join'](',\x20'))}:{'type':'format','content':o(_0x242d4a,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x207bf8,_0x456b21,_0x2056d0){const _0x50b34f=_0x207bf8['locale']['t'],_0x52dc8c=_0x456b21['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c8cf0=_0x50b34f(_0x52dc8c['charAt'](0x0)['toUpperCase']()+_0x52dc8c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2056d0)return _0x3c8cf0;if('fontColor'===_0x456b21||'fontBackgroundColor'===_0x456b21){const _0x38652b=_0x996e88(_0x207bf8['config']['get']('fontColor.colors'))['find'](_0x5421af=>_0x5421af['model']==_0x2056d0);return _0x3c8cf0+'\x20('+(_0x38652b?_0x50b34f(_0x38652b['label'])['toLowerCase']():_0x2056d0)+')';}if('fontSize'===_0x456b21&&isNaN(parseFloat(_0x2056d0))){const _0x2c3e2c=_0x207bf8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x207bf8['config']['get']('fontSize.options'))['find'](_0x16e1fa=>_0x16e1fa['model']==_0x2056d0);return _0x3c8cf0+'\x20('+(_0x2c3e2c?_0x50b34f(_0x2c3e2c['title'])['toLowerCase']():_0x2056d0)+')';}return _0x3c8cf0+'\x20('+_0x2056d0+')';}class it extends _0x2e7573{['_headingOptions'];['afterInit'](){const _0xd91553=this['editor'];if(!_0xd91553['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd91553['config']['get']('heading.options');const _0x35fd56=_0xd91553['locale'],_0x1ea6b4=_0xd91553['plugins']['get']('TrackChangesEditing');_0x1ea6b4['enableDefaultAttributesIntegration']('heading');for(const _0x43dde0 of this['_headingOptions'])'paragraph'!=_0x43dde0['model']&&_0x1ea6b4['descriptionFactory']['registerElementLabel'](_0x43dde0['model'],_0x7d7fc6=>{const _0x979ad1=this['_getHeadingLevel'](_0x43dde0['model']);return null!==_0x979ad1?_0x1c1152(_0x7d7fc6,_0x979ad1):_0x2173c3(_0x7d7fc6,_0x43dde0['title']);});function _0x1c1152(_0x337427,_0x29990b){return o(_0x35fd56,'ELEMENT_HEADING',[_0x337427,_0x29990b]);}function _0x2173c3(_0x3a9fa5,_0x2f5637){return o(_0x35fd56,'ELEMENT_HEADING_CUSTOM',[_0x3a9fa5,_0x2f5637]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27423a=this['editor'],_0x4e0474=_0x27423a['locale'];function _0x2b039e(_0x5af403,_0x2989b4){return o(_0x4e0474,'ELEMENT_HEADING_CUSTOM',[_0x5af403,_0x2989b4]);}_0x27423a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f9e32=>{if('formatBlock'!=_0x3f9e32['type'])return;const {data:_0x1b8c51}=_0x3f9e32;if(_0x1b8c51&&'heading'==_0x1b8c51['commandName']){const _0x3098c5=_0x1b8c51['commandParams'][0x0]['value'],_0x4f95e1=this['_getHeadingLevel'](_0x3098c5);if(null!==_0x4f95e1)return{'type':'format','content':o(_0x4e0474,'*Change\x20to:*\x20%0',(_0xcbe25f=0x1,_0x27558b=_0x4f95e1,o(_0x4e0474,'ELEMENT_HEADING',[_0xcbe25f,_0x27558b])))};const _0x526118=this['_headingOptions']['find'](_0x46493a=>_0x46493a['model']===_0x3098c5)['title'];return{'type':'format','content':o(_0x4e0474,'*Change\x20to:*\x20%0',_0x2b039e(0x1,_0x526118))};}var _0xcbe25f,_0x27558b;});}['_getHeadingLevel'](_0x58d0cb){const _0x1a57ad=_0x58d0cb['match'](/^heading(\d+)/);if(_0x1a57ad)return _0x1a57ad[0x1];const _0xdbd2ab=this['_headingOptions']?.['find'](_0x4118e7=>_0x4118e7['model']==_0x58d0cb);if(_0xdbd2ab&&_0xdbd2ab['view']){const _0x1997af=_0xdbd2ab['view'],_0x5ab743=(_0x1997af['name']??_0x1997af)['match'](/^h(\d+)/);if(_0x5ab743)return _0x5ab743[0x1];}return null;}}class et extends _0x2e7573{['afterInit'](){const _0x2357f3=this['editor'];if(!_0x2357f3['plugins']['has']('HighlightEditing'))return;const _0x39d415=_0x2357f3['plugins']['get']('TrackChangesEditing'),_0x72b648=_0x2357f3['locale'];_0x39d415['enableDefaultAttributesIntegration']('highlight'),_0x39d415['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x72b648,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10cdb9=this['editor'],_0x342feb=_0x10cdb9['locale'];_0x10cdb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x330ca9=>{if('formatInline'!=_0x330ca9['type'])return;const {data:_0x231e67}=_0x330ca9;if(_0x231e67&&'highlight'==_0x231e67['commandName']){const _0x3df7bd=_0x342feb['t'],_0x43b241=_0x231e67['commandParams'][0x0]['value'];if(_0x43b241){const _0x6bddc3=_0x10cdb9['config']['get']('highlight.options')['find'](_0x1046cf=>_0x1046cf['model']==_0x43b241),_0x1b5c46=_0x3df7bd(_0x6bddc3['title'])['toLowerCase']();return{'type':'format','content':o(_0x342feb,'*Set\x20highlight:*\x20%0',_0x1b5c46),'color':{'value':_0x6bddc3['color'],'title':_0x6bddc3['title']}};}return{'type':'format','content':o(_0x342feb,'*Remove\x20highlight*',o(_0x342feb,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2e7573{['afterInit'](){const _0x7b44af=this['editor'];if(!_0x7b44af['plugins']['has']('HorizontalLineEditing'))return;_0x7b44af['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50260a=_0x7b44af['plugins']['get']('TrackChangesEditing'),_0x40faa3=_0x7b44af['locale'];_0x50260a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x66104c=>o(_0x40faa3,'ELEMENT_HORIZONTAL_LINE',_0x66104c));}}class ot extends _0x2e7573{['afterInit'](){const _0x2bcc26=this['editor'];if(!_0x2bcc26['plugins']['has']('HtmlEmbed'))return;const _0x1ef460=_0x2bcc26['plugins']['get']('TrackChangesEditing'),_0x4c36c6=_0x2bcc26['locale'];_0x1ef460['descriptionFactory']['registerElementLabel']('rawHtml',_0x534ad0=>o(_0x4c36c6,'ELEMENT_HTML_EMBED',_0x534ad0)),_0x1ef460['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1ef460['descriptionFactory']['registerDescriptionCallback'](_0x58951b=>{if('attribute'!=_0x58951b['type'])return;const {data:_0x5f322a}=_0x58951b;if(_0x5f322a&&'value'==_0x5f322a['key']&&_0x58951b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x30117d=o(_0x4c36c6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c36c6,'*Change\x20%0\x20content*',_0x30117d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b068=this['editor'],_0x275929=_0x56b068['locale'];_0x56b068['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1be394=>{if('formatBlock'!=_0x1be394['type'])return;const {data:_0x275fa1}=_0x1be394;if(_0x275fa1&&'htmlEmbed'==_0x275fa1['commandName']){const _0x209dbf=o(_0x275929,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x275929,'*Change\x20%0\x20content*',_0x209dbf)};}});}}class rt extends _0x2e7573{['afterInit'](){const _0x49e9ed=this['editor'];if(!_0x49e9ed['plugins']['has']('ImageEditing'))return;const _0x5401cc=_0x49e9ed['plugins']['get']('TrackChangesEditing'),_0x596891=_0x49e9ed['plugins']['get']('ImageUtils'),_0x5a74b7=_0x49e9ed['locale'];_0x5401cc['enableCommand']('insertImage'),_0x5401cc['descriptionFactory']['registerElementLabel']('imageBlock',_0x4dfce2=>o(_0x5a74b7,'ELEMENT_IMAGE',_0x4dfce2)),_0x5401cc['descriptionFactory']['registerElementLabel']('imageInline',_0x5bea47=>o(_0x5a74b7,'ELEMENT_INLINE_IMAGE',_0x5bea47)),_0x5401cc['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5a74b7,'ELEMENT_CAPTION')),_0x49e9ed['plugins']['has']('ImageUploadEditing')&&_0x5401cc['enableCommand']('uploadImage'),_0x49e9ed['plugins']['has']('ImageBlockEditing')&&_0x49e9ed['plugins']['has']('ImageInlineEditing')&&(_0x5401cc['enableCommand']('imageTypeInline',(_0x394406,_0x8e6d95)=>{const _0x39a230=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']);_0x49e9ed['model']['change'](()=>{_0x5401cc['markBlockFormat'](_0x39a230,{'commandName':'imageTypeInline','commandParams':[_0x8e6d95]},[],'convertBlockImageToInline');});}),_0x5401cc['enableCommand']('imageTypeBlock',(_0x10dd53,_0x4e1ec9)=>{_0x49e9ed['model']['change'](_0x32662d=>{let _0x236bca=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']),_0x118cb2=_0x32662d['createRangeOn'](_0x236bca);const _0x166fd2=_0x7306c2['fromPosition'](_0x118cb2['start'],'toPrevious'),_0x3ab1cd=_0x7306c2['fromPosition'](_0x118cb2['end'],'toNext');_0x5401cc['forceDefaultExecution'](()=>_0x10dd53(_0x4e1ec9)),_0x236bca=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']),_0x118cb2=_0x32662d['createRangeOn'](_0x236bca);const _0x144775=_0x32662d['createRange'](_0x166fd2,_0x3ab1cd);_0x166fd2['detach'](),_0x3ab1cd['detach'](),_0x5401cc['markBlockFormat'](_0x236bca,{'commandName':'imageTypeInline','commandParams':[_0x4e1ec9]},[],'convertInlineImageToBlock'),_0x144775['start']['isBefore'](_0x118cb2['start'])&&_0x5401cc['markInsertion'](_0x32662d['createRange'](_0x144775['start'],_0x118cb2['start']),'convertInlineImageToBlock'),_0x118cb2['end']['isBefore'](_0x144775['end'])&&_0x5401cc['markInsertion'](_0x32662d['createRange'](_0x118cb2['end'],_0x144775['end']),'convertInlineImageToBlock');});}),_0x5401cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5401cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5401cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5401cc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5401cc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5401cc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x41fd32])=>{const _0x2c3934=_0x5401cc['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3fa914=_0x41fd32['start'],_0x2d1cf9=_0x41fd32['end'];const _0x2160b8=_0x49e9ed['model']['schema']['getNearestSelectionRange'](_0x3fa914,'backward'),_0x5c195f=_0x49e9ed['model']['schema']['getNearestSelectionRange'](_0x2d1cf9,'forward');_0x2160b8['isCollapsed']&&(_0x3fa914=_0x2160b8['start']),_0x5c195f['isCollapsed']&&(_0x2d1cf9=_0x5c195f['end']),_0x2c3934([_0x49e9ed['model']['createRange'](_0x3fa914,_0x2d1cf9)]);}),_0x5401cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3984d2),_0x5401cc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3984d2)),_0x49e9ed['plugins']['has']('ImageCaptionEditing')&&(_0x5401cc['enableCommand']('toggleImageCaption',(_0x2438a6,_0x459bf2)=>{const _0x53655b=_0x49e9ed['plugins']['get']('ImageCaptionUtils');let _0x36d50e=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']),_0x433a19=_0x53655b['getCaptionFromImageModelElement'](_0x36d50e);_0x49e9ed['model']['change'](()=>{if(_0x433a19)return void _0x5401cc['markDeletion'](_0x49e9ed['model']['createRangeOn'](_0x433a19));const _0x38b87a=_0x596891['isBlockImage'](_0x36d50e);_0x2438a6(_0x459bf2),_0x36d50e=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']),_0x433a19=_0x53655b['getCaptionFromImageModelElement'](_0x36d50e),_0x5401cc['markInsertion'](_0x49e9ed['model']['createRangeOn'](_0x433a19),_0x38b87a?null:'imageCaption');});}),_0x5401cc['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3984d2));const _0x341bdc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x181513(_0x26d35d,_0x271436){const _0x23c197=_0x341bdc['findIndex'](({type:_0x57e510,subType:_0x4e2178})=>_0x26d35d['type']==_0x57e510&&_0x26d35d['subType']==_0x4e2178),_0x2fe92b=_0x341bdc['findIndex'](({type:_0x4758b3,subType:_0x2b73c7})=>_0x271436['type']==_0x4758b3&&_0x271436['subType']==_0x2b73c7);if(_0x23c197<0x0||_0x2fe92b<0x0)return!0x1;const _0x1fd0b3=_0x26d35d['getFirstRange'](),_0x80e11f=_0x271436['getFirstRange']();if((0x0==_0x23c197||0x1==_0x23c197)&&0x2==_0x2fe92b&&_0x1fd0b3['isIntersecting'](_0x80e11f))return!0x0;if(0x2==_0x23c197&&0x3==_0x2fe92b){const _0x36ac11=_0x5401cc['_findSuggestions'](_0x1fd0b3,'insertion')['filter'](({suggestion:_0x169a8c,meta:_0x336706})=>_0x336706['isOwn']&&'convertInlineImageToBlock'==_0x169a8c['subType']);if(_0x36ac11['length']>0x1&&_0x80e11f['end']['isEqual'](_0x1fd0b3['start']))return!0x0;if(0x1==_0x36ac11['length']&&(_0x1fd0b3['start']['isEqual'](_0x80e11f['end'])||_0x1fd0b3['end']['isEqual'](_0x80e11f['start'])))return!0x0;}if(0x3==_0x23c197&&0x3==_0x2fe92b&&_0x1fd0b3['start']['isBefore'](_0x80e11f['start'])){const _0x338b93=_0x1fd0b3['end']['nodeAfter'],_0x833799=_0x80e11f['start']['nodeBefore'];return _0x596891['isBlockImage'](_0x338b93)&&_0x338b93===_0x833799;}return!0x1;}function _0x3984d2(_0x5e1928,_0xf4a32c){return _0x181513(_0x5e1928,_0xf4a32c)?[_0x5e1928,_0xf4a32c]:_0x181513(_0xf4a32c,_0x5e1928)?[_0xf4a32c,_0x5e1928]:null;}_0x49e9ed['plugins']['has']('ImageResize')&&(_0x5401cc['enableDefaultAttributesIntegration']('resizeImage'),_0x5401cc['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5a74b7,'FORMAT_IMAGE_SIZE'))),_0x49e9ed['plugins']['has']('ImageTextAlternativeEditing')&&_0x5401cc['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x49e9ed['plugins']['has']('PictureEditing')&&_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x4cc414=>{if('attribute'!=_0x4cc414['type'])return;const {data:_0x2b8aa1}=_0x4cc414;return _0x2b8aa1&&'sources'==_0x2b8aa1['key']?{'type':'format','content':''}:void 0x0;}),_0x49e9ed['plugins']['has']('ImageSizeAttributes')&&_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x19b7ee=>{if('attribute'!=_0x19b7ee['type'])return;const {data:_0x2b8843}=_0x19b7ee;return!_0x2b8843||'width'!=_0x2b8843['key']&&'height'!=_0x2b8843['key']?void 0x0:{'type':'format','content':''};}),_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x1f93f4=>{if(!!_0x341bdc['find'](({type:_0x45b049,subType:_0x238ec0})=>_0x1f93f4['type']==_0x45b049&&_0x1f93f4['subType']==_0x238ec0))return _0x1f93f4['previous']?{}:void 0x0;}),_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x12977e=>{if('insertion'==_0x12977e['type']||'deletion'==_0x12977e['type']){const _0x180277=_0x12977e['getContainedElement']();if(_0x180277&&_0x180277['is']('element','caption'))return{'type':'insertion'==_0x12977e['type']?'addObject':'removeObject','element':_0x180277,'quantity':0x1};}}),_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0xad8be0=>'formatBlock'==_0xad8be0['type']&&'convertInlineImageToBlock'==_0xad8be0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xad8be0['type']&&'convertBlockImageToInline'==_0xad8be0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x4fb5d5=>{if('attribute'!=_0x4fb5d5['type'])return;const {data:_0x2d0fe7}=_0x4fb5d5;if(!_0x2d0fe7||'alt'!=_0x2d0fe7['key'])return;const _0x123a8d=_0x2d0fe7['newValue'];return _0x123a8d?{'type':'format','content':o(_0x5a74b7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x123a8d+'\x22')}:{'type':'format','content':o(_0x5a74b7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25de4b=this['editor'],_0x320c8b=_0x25de4b['locale'];_0x25de4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d7b8=>{if('formatBlock'!=_0x51d7b8['type']&&'formatInline'!=_0x51d7b8['type'])return;const {data:_0x22d98f}=_0x51d7b8;if(_0x22d98f){if('imageTextAlternative'==_0x22d98f['commandName']){const _0x499858=_0x22d98f['commandParams'][0x0]['newValue'];return _0x499858?{'type':'format','content':o(_0x320c8b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x499858+'\x22')}:{'type':'format','content':o(_0x320c8b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x22d98f['commandName']){const _0x68e6d9=_0x22d98f['commandParams'][0x0]['width'];return _0x68e6d9?{'type':'format','content':o(_0x320c8b,'*Set\x20image\x20width:*\x20%0',_0x68e6d9)}:{'type':'format','content':o(_0x320c8b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x93c5e4=this['editor']['locale'],_0x4328aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x4328aa['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4328aa['descriptionFactory']['registerDescriptionCallback'](_0x46c12b=>{if('attribute'!=_0x46c12b['type'])return;const {data:_0xca3558}=_0x46c12b;return _0xca3558&&'src'==_0xca3558['key']?_0xca3558['newValue']&&_0xca3558['oldValue']?{'type':'format','content':o(_0x93c5e4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x27ec40=this['editor']['plugins']['get']('TrackChangesEditing');_0x27ec40['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x27ec40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27ec40['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x27ec40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13aa07=this['editor'],_0x5786a2=_0x13aa07['locale'];_0x13aa07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30de58=>{if('formatBlock'!=_0x30de58['type']&&'formatInline'!=_0x30de58['type'])return;const {data:_0x4a0ef2}=_0x30de58;if(!_0x4a0ef2||'replaceImageSource'!=_0x4a0ef2['commandName'])return;return{'type':'format','content':o(_0x5786a2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2e7573{['afterInit'](){const _0x50bdf6=this['editor'];if(!_0x50bdf6['plugins']['has']('ImageStyleEditing'))return;const _0x588457=_0x50bdf6['plugins']['get']('TrackChangesEditing'),_0xc08597=_0x50bdf6['plugins']['get']('ImageUtils'),_0x2fed26={};_0x588457['enableCommand']('imageStyle',(_0x1618f6,_0x15170f)=>{const _0x5c81f3=_0x50bdf6['plugins']['get']('Users')['me'],_0x33eb60=_0x50bdf6['commands']['get']('imageStyle');let _0x1bd602=_0xc08597['getClosestSelectedImageElement'](_0x50bdf6['model']['document']['selection']),_0x49be0e=_0x50bdf6['model']['createRangeOn'](_0x1bd602),_0x256d28=_0x33eb60['value'];if(_0x256d28==_0x15170f['value'])return;const _0x3f16c6={'commandName':'imageStyle','commandParams':[_0x15170f],'formatGroupId':_0xcb588e()};_0x50bdf6['model']['change'](()=>{if(_0x588457['getSuggestions']()['filter'](_0x23ea05=>_0x23ea05['isInContent']&&_0x5c81f3==_0x23ea05['author']&&('formatBlock'==_0x23ea05['type']||'formatInline'==_0x23ea05['type'])&&('imageStylePreApply'==_0x23ea05['subType']||'imageStylePostApply'==_0x23ea05['subType'])&&_0x23ea05['getFirstRange']()['isEqual'](_0x49be0e))['forEach'](_0x27c07d=>_0x588457['discardSuggestion'](_0x27c07d['head'])),_0x1bd602=_0xc08597['getClosestSelectedImageElement'](_0x50bdf6['model']['document']['selection']),_0x49be0e=_0x50bdf6['model']['createRangeOn'](_0x1bd602),_0x33eb60['refresh'](),_0x50bdf6['commands']['get']('imageTypeInline')['refresh'](),_0x50bdf6['commands']['get']('imageTypeBlock')['refresh'](),_0x256d28=_0x33eb60['value'],_0x256d28!=_0x15170f['value'])return _0xc08597['isInlineImage'](_0x1bd602)&&_0x33eb60['shouldConvertImageType'](_0x15170f['value'],_0x1bd602)?(_0x1618f6({..._0x15170f,'setImageSizes':!0x1}),_0x1bd602=_0xc08597['getClosestSelectedImageElement'](_0x50bdf6['model']['document']['selection']),void _0x588457['markBlockFormat'](_0x1bd602,{..._0x3f16c6,'commandReversedParams':[{'value':_0x256d28||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xc08597['isBlockImage'](_0x1bd602)?_0x588457['markBlockFormat'](_0x1bd602,_0x3f16c6,[],'imageStylePostApply'):_0x588457['markInlineFormat'](_0x49be0e,_0x3f16c6,'imageStylePostApply'));});});for(const _0x2cb72d of _0x50bdf6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2fed26[_0x2cb72d['name']]=_0x2cb72d['title']['toLowerCase']();_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x588457['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4906ac])=>{_0xc08597['setImageNaturalSizeAttributes'](_0x4906ac['getContainedElement']());}),_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1e42fd,_0x31a37f)=>{_0x588457['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1e42fd,{'commandName':_0x31a37f['commandName'],'commandParams':_0x31a37f['commandReversedParams']});}),_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x55419f,_0x1aa741){if(_0x136adb(_0x55419f,_0x1aa741))return[_0x55419f,_0x1aa741];if(_0x136adb(_0x1aa741,_0x55419f))return[_0x1aa741,_0x55419f];return null;});const _0x552e3e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x136adb(_0x4b87ad,_0x109a0f){const _0xf11dda=_0x552e3e['findIndex'](({type:_0x1454ae,subType:_0x3074a8})=>_0x4b87ad['type']==_0x1454ae&&_0x4b87ad['subType']==_0x3074a8),_0x195d53=_0x552e3e['findIndex'](({type:_0x4fef23,subType:_0x7f3094})=>_0x109a0f['type']==_0x4fef23&&_0x109a0f['subType']==_0x7f3094);if(_0xf11dda<0x0||_0x195d53<0x0)return!0x1;const _0x19459a=_0x4b87ad['getFirstRange'](),_0x5d43e0=_0x109a0f['getFirstRange']();if((0x0==_0xf11dda||0x1==_0xf11dda)&&0x2==_0x195d53&&_0x19459a['isIntersecting'](_0x5d43e0))return!0x0;if(0x2==_0xf11dda&&0x3==_0x195d53){const _0x240098=_0x588457['_findSuggestions'](_0x19459a,'insertion')['filter'](({suggestion:_0x492821,meta:_0x55cf63})=>_0x55cf63['isOwn']&&'convertInlineImageToBlock'==_0x492821['subType']);if(_0x240098['length']>0x1&&_0x5d43e0['end']['isEqual'](_0x19459a['start']))return!0x0;if(0x1==_0x240098['length']&&(_0x19459a['start']['isEqual'](_0x5d43e0['end'])||_0x19459a['end']['isEqual'](_0x5d43e0['start'])))return!0x0;}if(0x3==_0xf11dda&&0x3==_0x195d53&&_0x19459a['start']['isBefore'](_0x5d43e0['start'])){const _0x3fd49d=_0x19459a['end']['nodeAfter'],_0x40590f=_0x5d43e0['start']['nodeBefore'];return _0xc08597['isBlockImage'](_0x3fd49d)&&_0x3fd49d===_0x40590f;}return!0x1;}_0x50bdf6['model']['document']['registerPostFixer'](()=>{let _0x99cb8b=!0x1;const _0x5d35c0=Array['from'](_0x50bdf6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd9fb66,data:_0x58ca42}of _0x5d35c0){const {group:_0x5789fb,type:_0x499abf,subType:_0x53909e,id:_0x1f88da}=_0x588457['_splitMarkerName'](_0xd9fb66);if('suggestion'==_0x5789fb&&_0x588457['hasSuggestion'](_0x1f88da)){if('formatBlock'==_0x499abf&&('imageStylePreApply'==_0x53909e||'imageStylePostApply'==_0x53909e)){const _0x1288d8=_0x588457['getSuggestion'](_0x1f88da);if(_0x58ca42['newRange']){const _0x2804ac=_0x1288d8['getFirstRange']()['getContainedElement']();if(_0xc08597['isBlockImage'](_0x2804ac))continue;_0x588457['discardSuggestion'](_0x1288d8),_0x99cb8b=!0x0;}}if('insertion'==_0x499abf&&'imageCaption'==_0x53909e&&!_0x58ca42['newRange']){const _0x5d3994=_0x588457['getSuggestion'](_0x1f88da);_0x5d3994['next']&&_0x5d3994['next']['isInContent']&&(_0x588457['discardSuggestion'](_0x5d3994['next']),_0x99cb8b=!0x0);}}}return _0x99cb8b;}),this['_registerLegacyDescription'](_0x2fed26);}['_registerLegacyDescription'](_0x584786){const _0x3dc919=this['editor'],_0x4ff35d=_0x3dc919['locale'];_0x3dc919['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20cfaf=>{if('formatBlock'!=_0x20cfaf['type']&&'formatInline'!=_0x20cfaf['type'])return;const {data:_0x3c0055}=_0x20cfaf;if(!_0x3c0055||'imageStyle'!=_0x3c0055['commandName'])return;const _0x2e3d93=_0x3c0055['commandParams'][0x0]['value'];return _0xacd74d('side'===_0x2e3d93?o(_0x4ff35d,'FORMAT_SIDE_IMAGE'):_0x584786[_0x2e3d93]||_0x2e3d93);function _0xacd74d(_0x2c75c2){return{'type':'format','content':o(_0x4ff35d,'*Format:*\x20%0',_0x2c75c2)};}});}}class ut extends _0x2e7573{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3ef7fa){super(_0x3ef7fa),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5bea5b=this['editor'],_0xb37dad=_0x5bea5b['commands']['get']('importWord'),_0xa855a4=_0x5bea5b['commands']['get']('trackChanges');_0xb37dad&&(_0xb37dad['on']('execute',(_0x239796,[,_0x27c846])=>{this['_trackChangesValueDuringImport']=_0xa855a4['value'],_0x27c846['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xb37dad,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xb37dad,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xa855a4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5bea5b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xdd7fdc,_0x461da4){const {suggestions:_0x3bc8ca}=_0x461da4,_0x189431=this['editor']['commands']['get']('trackChanges'),_0x295fa0=_0x189431['value'];this['_trackChangesValueDuringImport']!==_0x295fa0&&(_0x189431['execute'](),this['_trackChangesExecuted']=!0x0),_0x3bc8ca&&_0x3bc8ca['forEach'](({id:_0x9f5b47,type:_0x1cbedf,author:_0xb7beab,created_at:_0x2a08e7})=>{const _0x59962a={'id':_0x9f5b47,'type':_0x1cbedf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xb7beab,'createdAt':_0x2a08e7?new Date(_0x2a08e7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x59962a);});}}class ft extends _0x2e7573{['afterInit'](){const _0x5d4833=this['editor'],_0x3ba689=_0x5d4833['plugins']['get']('TrackChangesEditing');if(_0x5d4833['plugins']['has']('IndentEditing')&&(_0x3ba689['enableCommand']('indent'),_0x3ba689['enableCommand']('outdent')),_0x5d4833['plugins']['has']('IndentBlock')){for(const _0x415a91 of['indentBlock','outdentBlock'])_0x3ba689['enableDefaultAttributesIntegration'](_0x415a91);}const _0x5d827f=_0x5d4833['locale'];_0x3ba689['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5d827f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d5af0=this['editor'],_0x187a5e=_0x3d5af0['locale'],_0xa01f5=_0x3d5af0['plugins']['get']('TrackChangesEditing');_0xa01f5['descriptionFactory']['registerDescriptionCallback'](_0x53ba40=>{if('formatBlock'!=_0x53ba40['type'])return;const {data:_0x370454}=_0x53ba40;if(!_0x370454)return;if('indentBlock'!=_0x370454['commandName']&&'outdentBlock'!=_0x370454['commandName'])return;const _0x49e3bc=_0x53ba40['getItems']()[0x0],_0x61c04b=_0xa01f5['descriptionFactory']['getItemLabel'](_0x49e3bc);return'indentBlock'==_0x370454['commandName']?{'type':'format','content':o(_0x187a5e,'*Indent:*\x20%0',_0x61c04b)}:'outdentBlock'==_0x370454['commandName']?{'type':'format','content':o(_0x187a5e,'*Outdent:*\x20%0',_0x61c04b)}:void 0x0;});}}class ht extends _0x2e7573{static get['requires'](){return[_0x105aae];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2e7573{['afterInit'](){const _0x434286=this['editor'];if(!_0x434286['plugins']['has']('LinkEditing'))return;const _0x99462a=_0x434286['plugins']['get']('TrackChangesEditing'),_0x57eea0=_0x434286['commands']['get']('link');_0x99462a['enableDefaultAttributesIntegration']('link'),_0x99462a['enableDefaultAttributesIntegration']('unlink');for(const _0x3cf4c2 of _0x57eea0['manualDecorators'])_0x99462a['descriptionFactory']['registerAttributeLabel'](_0x3cf4c2['id'],'link\x20('+_0x3cf4c2['label']['toLowerCase']()+')');_0x99462a['descriptionFactory']['registerDescriptionCallback'](_0x4b2e58=>{if('attribute'!=_0x4b2e58['type'])return;const {data:_0x1fa347}=_0x4b2e58;if(!_0x1fa347||'linkHref'!=_0x1fa347['key'])return;const _0x2dc5a7=_0x1fa347['newValue'],_0x4b0c85=_0x434286['locale'];return{'type':'format','content':null==_0x2dc5a7?o(_0x4b0c85,'*Remove\x20link*'):o(_0x4b0c85,'*Set\x20link:*\x20%0','\x22'+_0x2dc5a7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b331a=this['editor'],_0x51a2b5=_0x1b331a['locale'];_0x1b331a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4db862=>{if('formatInline'!=_0x4db862['type'])return;const {data:_0x4d6d63}=_0x4db862;if(_0x4d6d63){if('link'==_0x4d6d63['commandName']){const _0x5e7fd1=_0x4d6d63['commandParams'][0x0];return{'type':'format','content':o(_0x51a2b5,'*Set\x20link:*\x20%0','\x22'+_0x5e7fd1+'\x22')};}return'unlink'==_0x4d6d63['commandName']?{'type':'format','content':o(_0x51a2b5,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2e7573{['afterInit'](){const _0x170198=this['editor'],_0x73d1ca=_0x170198['locale'];if(!_0x170198['plugins']['has']('LegacyListEditing'))return;const _0x509221=_0x170198['plugins']['get']('TrackChangesEditing'),_0x214f22=_0x170198['plugins']['has']('LegacyTodoListEditing');function _0xc3e2c2(_0x4fd835){return()=>{const _0x5ac81c=_0x170198['model']['document']['selection'],_0x426f7e=_0x170198['commands']['get'](_0x4fd835);if(_0x426f7e['value'])return void _0x170198['execute']('paragraph',{});const _0x19a659=_0x4fd835['slice'](0x0,-0x4),_0x389380=function(_0x4de17d,_0x12a753,_0x2293ea){let _0x2e9c38=Array['from'](_0x4de17d)['filter'](_0x231b39=>function(_0x1e8cec,_0x42357d){return _0x42357d['checkChild'](_0x1e8cec['parent'],'listItem')&&!_0x42357d['isObject'](_0x1e8cec);}(_0x231b39,_0x2293ea));_0x2e9c38=_0x2e9c38['filter'](_0x7080d9=>!_0x7080d9['is']('element','listItem')||_0x7080d9['getAttribute']('listType')!=_0x12a753);const _0x213eda=new Set();for(const _0x59eb0f of _0x2e9c38)_0x59eb0f['is']('element','listItem')?_0x213eda['add'](Le(_0x59eb0f)):_0x213eda['add'](_0x59eb0f);return Array['from'](_0x213eda);}(_0x5ac81c['getSelectedBlocks'](),_0x19a659,_0x170198['model']['schema']);_0x170198['model']['change'](()=>{for(const _0x7c664c of _0x389380)_0x509221['markBlockFormat'](_0x7c664c,{'commandName':_0x4fd835,'commandParams':[{'forceValue':!_0x426f7e['value']}],'formatGroupId':'blockName'},Ee(_0x7c664c));});};}function _0x1c80c7(_0x4289d3){return()=>{const _0x49961d=function(_0xd590e9){let _0x4f9438=Array['from'](_0xd590e9);const _0x51e00b=_0x4f9438['findIndex'](_0x47a8b8=>'listItem'!=_0x47a8b8['name']);return _0x51e00b>-0x1&&(_0x4f9438=_0x4f9438['slice'](0x0,_0x51e00b)),_0x4f9438;}(_0x170198['model']['document']['selection']['getSelectedBlocks']()),_0x3c4e47=_0x170198['model']['createRange'](_0x170198['model']['createPositionAt'](_0x49961d[0x0],'before'),_0x170198['model']['createPositionAt'](_0x49961d[_0x49961d['length']-0x1],'end'));_0x170198['model']['change'](()=>{_0x509221['markBlockFormat'](_0x3c4e47,{'commandName':_0x4289d3,'commandParams':[],'formatGroupId':'listIndent'},function(_0xa81b34){const _0x3ec0c9=new Set();for(const _0x434867 of _0xa81b34){let _0x1cc365=_0x434867['nextSibling'];for(;_0x1cc365&&_0x1cc365['getAttribute']('listIndent')>_0x434867['getAttribute']('listIndent');)_0x3ec0c9['add'](_0x1cc365),_0x1cc365=_0x1cc365['nextSibling'];}return Array['from'](_0x3ec0c9);}(_0x49961d));});};}_0x509221['enableCommand']('numberedList',_0xc3e2c2('numberedList')),_0x509221['enableCommand']('bulletedList',_0xc3e2c2('bulletedList')),_0x214f22&&_0x509221['enableCommand']('todoList',_0xc3e2c2('todoList')),_0x509221['enableCommand']('indentList',_0x1c80c7('indentList')),_0x509221['enableCommand']('outdentList',_0x1c80c7('outdentList')),_0x214f22&&_0x509221['enableCommand']('checkTodoList',()=>{const _0xc98154=_0x170198['commands']['get']('checkTodoList'),_0x179040=Array['from'](_0xc98154['_selectedElements']);_0x179040['filter'](_0xd7295b=>_0xd7295b['getAttribute']('todoListChecked')!=_0xc98154['value']),_0x170198['model']['change'](()=>{for(const _0x26dfdb of _0x179040)_0x509221['markBlockFormat'](_0x26dfdb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc98154['value']}]});});}),_0x509221['descriptionFactory']['registerElementLabel']('listItem',_0x4e5659=>o(_0x73d1ca,'ELEMENT_LIST_ITEM',_0x4e5659)),_0x509221['descriptionFactory']['registerDescriptionCallback'](_0x8f883f=>{if('formatBlock'!=_0x8f883f['type']&&'formatInline'!=_0x8f883f['type'])return;const {data:_0x37e5c7}=_0x8f883f;if(_0x37e5c7){if('numberedList'==_0x37e5c7['commandName']||'bulletedList'==_0x37e5c7['commandName']||'todoList'==_0x37e5c7['commandName'])switch(_0x37e5c7['commandName']['replace']('List','')){case'bulleted':return _0x39f389(o(_0x73d1ca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39f389(o(_0x73d1ca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39f389(o(_0x73d1ca,'ELEMENT_TODO_LIST'));}if('indentList'==_0x37e5c7['commandName'])return{'type':'format','content':o(_0x73d1ca,'*Indent:*\x20%0',o(_0x73d1ca,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x37e5c7['commandName'])return{'type':'format','content':o(_0x73d1ca,'*Outdent:*\x20%0',o(_0x73d1ca,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x37e5c7['commandName'])return _0x37e5c7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x73d1ca,'*Check\x20item*')}:{'type':'format','content':o(_0x73d1ca,'*Uncheck\x20item*')};}function _0x39f389(_0x328275){return{'type':'format','content':o(_0x73d1ca,'*Change\x20to:*\x20%0',_0x328275)};}});}}function Le(_0x1534f8){const _0x3e1c5b=_0x1534f8['getAttribute']('listIndent');if(0x0==_0x3e1c5b)return _0x1534f8;let _0x478d18=_0x1534f8;for(;_0x1534f8['previousSibling']&&_0x1534f8['previousSibling']['is']('element','listItem');){const _0x1ee15b=_0x1534f8['previousSibling']['getAttribute']('listIndent');if(_0x1ee15b==_0x3e1c5b)_0x478d18=_0x1534f8['previousSibling'];else{if(_0x1ee15b<_0x3e1c5b)break;}_0x1534f8=_0x1534f8['previousSibling'];}return _0x478d18;}function Ee(_0x4fa45f){const _0x5a7c09=[];if(_0x4fa45f['is']('element','listItem')&&_0x4fa45f['getAttribute']('listIndent')>0x0){let _0x5db26a=_0x4fa45f['nextSibling'];for(;_0x5db26a&&'listItem'==_0x5db26a['name']&&_0x5db26a['getAttribute']('listIndent')==_0x4fa45f['getAttribute']('listIndent');)_0x5a7c09['push'](_0x5db26a),_0x5db26a=_0x5db26a['nextSibling'];}return _0x5a7c09;}class mt extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x583e22=this['editor']['config']['get']('list.properties'),_0x52afbd=this['editor']['plugins']['get']('TrackChangesEditing');_0x583e22['styles']&&_0x52afbd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x583e22['reversed']&&_0x52afbd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x583e22['startIndex']&&_0x52afbd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x52afbd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2ceb9d,_0x95760c={}){const _0x2570a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106e75=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2570a4['markMultiRangeBlockFormat'](_0x106e75,{'commandName':'listStyle','commandParams':[{'type':_0x95760c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x538708,_0x598a69={}){const _0x3a2e1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42f666=this['_getSuggestionBlocks'](_0x385e42=>_0x385e42['is']('element','listItem')&&'numbered'===_0x385e42['getAttribute']('listType'));if(_0x42f666['length']<0x1)return;const _0x35546a=_0x42f666['map'](_0x1a6b33=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a6b33,'before'),this['editor']['model']['createPositionAt'](_0x1a6b33,0x0)));this['editor']['model']['change'](()=>{_0x3a2e1e['markMultiRangeBlockFormat'](_0x35546a,{'commandName':'listReversed','commandParams':[{'reversed':_0x598a69['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x12ee72,_0x24387e={}){const _0x37158c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e072e=this['_getSuggestionBlocks'](_0x2fbe47=>_0x2fbe47['is']('element','listItem')&&'numbered'===_0x2fbe47['getAttribute']('listType'));if(_0x3e072e['length']<0x1)return;const _0x33b6dc=_0x3e072e['map'](_0x7ee09c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7ee09c,'before'),this['editor']['model']['createPositionAt'](_0x7ee09c,0x0)));this['editor']['model']['change'](()=>{_0x37158c['markMultiRangeBlockFormat'](_0x33b6dc,{'commandName':'listStart','commandParams':[{'startIndex':_0x24387e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5f45c9){if('formatBlock'!=_0x5f45c9['type']&&'formatInline'!=_0x5f45c9['type'])return;const _0x1a3a33=this['editor']['locale'],{data:_0x5150e8}=_0x5f45c9;if(!_0x5150e8)return;let _0x2fada0,_0x57331b;switch(_0x5150e8['commandName']){case'listStyle':_0x2fada0='*Change\x20to:*\x20%0',_0x57331b={'type':'format','content':o(_0x1a3a33,_0x2fada0,o(_0x1a3a33,this['_getTranslationKeyForListStyle'](_0x5150e8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2fada0=_0x5150e8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57331b={'type':'format','content':o(_0x1a3a33,_0x2fada0)};break;case'listStart':_0x2fada0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57331b={'type':'format','content':o(_0x1a3a33,_0x2fada0,_0x5150e8['commandParams'][0x0]['startIndex'])};}return _0x57331b;}['_getSuggestionBlocksForListStyle'](){const _0x1ac030=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a64dd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a64dd[0x0]?.['is']('element','listItem')&&_0x5a64dd['unshift'](..._0x1ac030['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a64dd[_0x5a64dd['length']-0x1]?.['is']('element','listItem')&&_0x5a64dd['push'](..._0x1ac030['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a64dd=[...new Set(_0x5a64dd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a64dd=_0x5a64dd['filter'](_0x15a12a=>_0x15a12a['is']('element','listItem'))),_0x5a64dd;}['_getSuggestionBlocks'](_0x153300){const _0x2a0864=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c53c0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x153300)['map'](_0x218acd=>{const _0x1ef340=this['editor']['model']['createPositionAt'](_0x218acd,0x0);return[..._0x2a0864['getSiblingNodes'](_0x1ef340,'backward'),..._0x2a0864['getSiblingNodes'](_0x1ef340,'forward')];})['flat']();return _0x5c53c0=[...new Set(_0x5c53c0)],_0x5c53c0;}['_getTranslationKeyForListStyle'](_0x2f9910){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2f9910)||'default')['toUpperCase']()+'_LIST_'+_0x2f9910['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2e7573{['afterInit'](){const _0xc7babd=this['editor'];if(!_0xc7babd['plugins']['has']('MediaEmbedEditing'))return;const _0x3799d9=_0xc7babd['plugins']['get']('TrackChangesEditing'),_0x1ff96c=_0xc7babd['locale'];_0x3799d9['enableCommand']('mediaEmbed'),_0x3799d9['descriptionFactory']['registerElementLabel']('media',_0x48d418=>o(_0x1ff96c,'ELEMENT_MEDIA',_0x48d418));}}class pt extends _0x2e7573{['afterInit'](){const _0x290e9f=this['editor'];_0x290e9f['plugins']['has']('MentionEditing')&&_0x290e9f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2e7573{['afterInit'](){const _0x1a43a0=this['editor'];if(!_0x1a43a0['plugins']['has']('MergeFieldsEditing'))return;const _0x27836a=_0x1a43a0['plugins']['get']('TrackChangesEditing'),_0x4de7cb=_0x1a43a0['locale'];_0x27836a['enableCommand']('insertMergeField'),_0x27836a['enableCommand']('insertMergeFieldBlock'),_0x27836a['enableCommand']('insertMergeFieldImage'),_0x27836a['descriptionFactory']['registerElementLabel']('mergeField',_0x5cf11b=>o(_0x4de7cb,'ELEMENT_MERGE_FIELD',_0x5cf11b)),_0x27836a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x40c39b=>o(_0x4de7cb,'ELEMENT_MERGE_FIELD',_0x40c39b)),_0x27836a['descriptionFactory']['registerDescriptionCallback'](_0xc00caf=>{if('insertion'!=_0xc00caf['type']&&'deletion'!=_0xc00caf['type'])return;const _0x4ec209=_0xc00caf['getContainedElement']();if(null==_0x4ec209)return;const _0x4f4d7c=_0x1a43a0['plugins']['get']('MergeFieldsEditing');let _0x11c1a6;switch(_0x4f4d7c['getMergeFieldType'](_0x4ec209)){case null:return;case'image':{const _0x29aa33=_0x4f4d7c['unwrapAffixes'](_0x4ec209['getAttribute']('src'));_0x11c1a6=_0x4f4d7c['getLabel'](_0x29aa33)||_0x29aa33;break;}default:{const _0x25b726=_0x4ec209['getAttribute']('id');_0x11c1a6=_0x4f4d7c['getLabel'](_0x25b726)||_0x25b726;break;}}return'insertion'==_0xc00caf['type']?{'type':'insertion','content':o(_0x4de7cb,'*Insert:*\x20%0','\x22'+_0x11c1a6+'\x22\x20'+o(_0x4de7cb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4de7cb,'*Remove:*\x20%0','\x22'+_0x11c1a6+'\x22\x20'+o(_0x4de7cb,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2e7573{['afterInit'](){const _0x4d9da7=this['editor'],_0x2eb739=_0x4d9da7['plugins']['get']('TrackChangesEditing');_0x4d9da7['plugins']['has']('MultiLevelList')&&(_0x2eb739['enableDefaultAttributesIntegration']('multiLevelList'),_0x2eb739['descriptionFactory']['registerDescriptionCallback'](_0x4927a8=>this['handleDescriptions'](_0x4927a8)));}['handleDescriptions'](_0x13e189){const _0x452680=this['editor']['locale'],{data:_0x5cfc82}=_0x13e189,_0x10a279={'type':'format','content':''};if(_0x5cfc82&&'listMarkerStyle'==_0x5cfc82['key']){if(!_0x5cfc82['oldValue'])return{'type':'format','content':o(_0x452680,'*Set\x20format:*\x20%0',o(_0x452680,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5cfc82['newValue']+')'};if(!_0x5cfc82['newValue']){let _0x55bdae=_0x13e189['head'];for(;_0x55bdae;){if(_0x55bdae['data']&&'listType'==_0x55bdae['data']['key']&&_0x55bdae['data']['newValue'])return _0x10a279;_0x55bdae=_0x55bdae['next'];}return{'type':'format','content':o(_0x452680,'*Remove\x20format:*\x20%0',o(_0x452680,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5cfc82['oldValue']+')'};}}}}class bt extends _0x2e7573{['afterInit'](){const _0x47a9d8=this['editor'];if(!_0x47a9d8['plugins']['has']('PageBreakEditing'))return;_0x47a9d8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x573841=_0x47a9d8['plugins']['get']('TrackChangesEditing'),_0x22c225=_0x47a9d8['locale'];_0x573841['descriptionFactory']['registerElementLabel']('pageBreak',_0x90de16=>o(_0x22c225,'ELEMENT_PAGE_BREAK',_0x90de16));}}class yt extends _0x2e7573{['afterInit'](){const _0x343214=this['editor'];if(!_0x343214['plugins']['has']('Paragraph'))return;const _0x1c621b=_0x343214['locale'],_0x27f394=_0x343214['plugins']['get']('TrackChangesEditing');_0x27f394['descriptionFactory']['registerElementLabel']('paragraph',_0x59cbf3=>o(_0x1c621b,'ELEMENT_PARAGRAPH',_0x59cbf3)),_0x27f394['enableDefaultAttributesIntegration']('paragraph'),_0x27f394['enableCommand']('insertParagraph');const _0x302fd4=_0x27f394['descriptionFactory'];_0x302fd4['registerDescriptionCallback'](_0x1e463f=>{if('insertion'!==_0x1e463f['type'])return;const {start:_0x90162f,end:_0x48fc59}=_0x1e463f['getFirstRange']();if(!_0x90162f['isTouching'](_0x48fc59)||!_0x90162f['nodeAfter'])return;const _0x50ea0e=_0x343214['model']['schema'],_0x4af615=_0x90162f['nodeAfter'];return _0x50ea0e['isBlock'](_0x4af615)&&!_0x50ea0e['isLimit'](_0x4af615)&&_0x50ea0e['checkChild'](_0x4af615,'$text')?{'type':'insertion','content':o(_0x1c621b,'*Insert:*\x20%0',_0x302fd4['getItemLabel'](_0x4af615,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x442f9=this['editor'],_0x1fd364=_0x442f9['locale'];_0x442f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e4108=>{if('formatBlock'!=_0x5e4108['type'])return;const {data:_0x591ff1}=_0x5e4108;return _0x591ff1&&'paragraph'==_0x591ff1['commandName']?{'type':'format','content':o(_0x1fd364,'*Change\x20to:*\x20%0',o(_0x1fd364,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2e7573{['afterInit'](){const _0x5ccd5c=this['editor'];_0x5ccd5c['commands']['get']('replaceSource')&&_0x5ccd5c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2e7573{['afterInit'](){const _0xecb339=this['editor'];if(!_0xecb339['plugins']['has']('RemoveFormatEditing'))return;_0xecb339['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52fdb1=this['editor'];_0x52fdb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37757e=>{if('formatBlock'!=_0x37757e['type']&&'formatInline'!=_0x37757e['type'])return;const {data:_0x3257ad}=_0x37757e;return _0x3257ad&&'removeFormat'==_0x3257ad['commandName']?{'type':'format','content':o(_0x52fdb1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2e7573{['afterInit'](){const _0x22d56e=this['editor'];if(!_0x22d56e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa14933=_0x22d56e['plugins']['get']('TrackChangesEditing');_0xa14933['enableCommand']('goToPreviousRestrictedEditingException'),_0xa14933['enableCommand']('goToNextRestrictedEditingException');const _0x2bd27c=_0x22d56e['plugins']['get']('RestrictedEditingModeEditing');_0x2bd27c['enableCommand']('trackChanges'),_0x2bd27c['enableCommand']('acceptSuggestion'),_0x2bd27c['enableCommand']('discardSuggestion'),_0x2bd27c['enableCommand']('acceptAllSuggestions'),_0x2bd27c['enableCommand']('discardAllSuggestions'),_0x2bd27c['enableCommand']('acceptSelectedSuggestions'),_0x2bd27c['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2e7573{['afterInit'](){const _0xa0da21=this['editor'];if(!_0xa0da21['plugins']['has']('ShiftEnter'))return;const _0x1ca625=_0xa0da21['plugins']['get']('TrackChangesEditing');_0x1ca625['enableCommand']('shiftEnter'),_0x1ca625['descriptionFactory']['registerElementLabel']('softBreak',_0x5aab28=>o(_0xa0da21['locale'],'ELEMENT_LINE_BREAK',_0x5aab28));}}function an(_0x1ee235,_0x17dd4f,_0x32f927){const _0x27854c=[];for(const _0x41b2c8 of _0x17dd4f['getItems']())_0x41b2c8['hasAttribute'](_0x1ee235)&&_0x27854c['push'](_0x32f927['createRangeOn'](_0x41b2c8));return _0x27854c;}class _t extends _0x2e7573{['afterInit'](){const _0x221f44=this['editor'],_0x4d2963=_0x221f44['plugins']['get']('TrackChangesEditing');_0x221f44['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4d2963['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x472298=this['editor'],_0x18a23b=_0x472298['model'],_0x4c737a=_0x472298['locale'],_0x3774ab=_0x472298['plugins']['get']('TrackChangesEditing'),_0x59bb52='restrictedEditingException',_0x3a6731=_0x472298['commands']['get'](_0x59bb52);_0x3774ab['enableCommand'](_0x59bb52,(_0x539549,_0x28b692={})=>{const _0x4fc633=_0x18a23b['document']['selection'];if(_0x4fc633['isCollapsed'])return void _0x539549(_0x28b692);const _0x1a4141=void 0x0!==_0x28b692['forceValue']?_0x28b692['forceValue']:!_0x3a6731['value'];_0x18a23b['change'](()=>{const _0x1802ab=Array['from'](_0x4fc633['getRanges']());for(const _0x3fa8f7 of _0x1802ab){const _0x474257=_0x1a4141?[_0x3fa8f7]:an(_0x59bb52,_0x3fa8f7,_0x18a23b);for(const _0x39d6bb of _0x474257)_0x3774ab['markInlineFormat'](_0x39d6bb,{'commandName':_0x59bb52,'commandParams':[{'forceValue':_0x1a4141}]});}});}),_0x3774ab['descriptionFactory']['registerDescriptionCallback'](_0x1cd78d=>{if('formatBlock'!=_0x1cd78d['type']&&'formatInline'!=_0x1cd78d['type'])return;const {data:_0x982ad}=_0x1cd78d;return _0x982ad&&_0x982ad['commandName']==_0x59bb52?_0x982ad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c737a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4c737a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x218d56=this['editor'],_0x163651=_0x218d56['locale'],_0x13898e=_0x218d56['plugins']['get']('TrackChangesEditing'),_0x7deb67='restrictedEditingExceptionBlock',_0xb2d86d=this['editor']['commands']['get'](_0x7deb67);_0x13898e['enableCommand'](_0x7deb67,(_0x13acec,_0x3d7fad={})=>{const _0x565874=this['editor']['model']['document']['selection'],_0x47b161=_0x3d7fad&&void 0x0!==_0x3d7fad['forceValue']?_0x3d7fad['forceValue']:!_0xb2d86d['value'];let _0x5d9c9c=[];if(_0x47b161){const _0x17b579=Array['from'](_0x565874['getSelectedBlocks']())['filter'](_0x44e604=>function(_0x55d592){return!!_0x55d592['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x44e604)||function(_0x286b36,_0x517a37){const _0x2268d7=_0x517a37['createContext'](_0x286b36['parent']);if(!_0x517a37['checkChild'](_0x2268d7,'restrictedEditingException'))return!0x1;if(!_0x517a37['checkChild'](_0x2268d7['push']('restrictedEditingException'),_0x286b36))return!0x1;return!0x0;}(_0x44e604,this['editor']['model']['schema']));_0x5d9c9c=to(_0x17b579,_0x218d56['model']);}else{const _0x3a622d=Array['from'](_0x565874['getSelectedBlocks']())['map'](_0x4c6ad4=>function(_0x275244){let _0x32d3fb=_0x275244;for(;_0x32d3fb['parent'];){if('restrictedEditingException'==_0x32d3fb['parent']['name'])return _0x32d3fb;_0x32d3fb=_0x32d3fb['parent'];}return null;}(_0x4c6ad4))['filter'](_0x55a13a=>!!_0x55a13a);_0x5d9c9c=to(_0x3a622d,_0x218d56['model']);}_0x218d56['model']['change'](()=>{for(const _0x2e8118 of _0x5d9c9c)_0x13898e['markBlockFormat'](_0x2e8118,{'commandName':_0x7deb67,'commandParams':[{'forceValue':_0x47b161}]});});}),_0x13898e['descriptionFactory']['registerDescriptionCallback'](_0x2d9799=>{const {data:_0x1d5eb4}=_0x2d9799;if(_0x1d5eb4&&_0x1d5eb4['commandName']==_0x7deb67)return _0x1d5eb4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x163651,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x163651,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2e7573{['afterInit'](){const _0x16c711=this['editor'];if(!_0x16c711['plugins']['has']('Style')||!_0x16c711['plugins']['has']('DataSchema'))return;const _0x1b98a1=_0x16c711['plugins']['get']('TrackChangesEditing'),_0x556a47=_0x16c711['locale'],_0x47fc93=_0x16c711['config']['get']('style')||{},_0x56d143=_0x16c711['plugins']['get']('GeneralHtmlSupport'),_0x506b85=_0x16c711['plugins']['get']('StyleUtils')['normalizeConfig'](_0x16c711['plugins']['get']('DataSchema'),_0x47fc93['definitions']);_0x1b98a1['enableDefaultAttributesIntegration']('style');const _0x203318=new Set();for(const _0x5d6c70 of _0x506b85['block']){const _0x3c57e8=_0x56d143['getGhsAttributeNameForElement'](_0x5d6c70['element']);_0x203318['add'](_0x3c57e8);}const _0x3d068f=new Set();for(const _0x39b72c of _0x506b85['inline']){const _0x1dad8b=_0x56d143['getGhsAttributeNameForElement'](_0x39b72c['element']);_0x3d068f['add'](_0x1dad8b);for(const _0x53154d of _0x39b72c['ghsAttributes'])_0x3d068f['add'](_0x53154d);}for(const _0x3504eb of _0x203318)_0x1b98a1['descriptionFactory']['registerAttributeLabel'](_0x3504eb,o(_0x556a47,'FORMAT_STYLE'));for(const _0x4c27c8 of _0x3d068f)_0x1b98a1['descriptionFactory']['registerAttributeLabel'](_0x4c27c8,o(_0x556a47,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51b268=this['editor'],_0x5b1ba2=_0x51b268['locale'];_0x51b268['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555e53=>{if('formatBlock'!=_0x555e53['type']&&'formatInline'!=_0x555e53['type'])return;const {data:_0x4ea5d4}=_0x555e53;return _0x4ea5d4&&'style'===_0x4ea5d4['commandName']?_0x4ea5d4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b1ba2,'*Set\x20format:*\x20%0',_0x4ea5d4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5b1ba2,'*Remove\x20format:*\x20%0',_0x4ea5d4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2e7573{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x238e83){super(_0x238e83),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x665301=this['editor'],_0x5e5cb7=_0x665301['model']['document']['selection'];if(!_0x665301['plugins']['has']('TableEditing'))return;const _0x1b79fa=_0x665301['locale'],_0x3dff37=_0x665301['plugins']['get']('TrackChangesEditing'),_0x22c0d2=_0x665301['plugins']['get']('TableUtils');_0x3dff37['descriptionFactory']['registerElementLabel']('table',_0x2b9a7f=>o(_0x1b79fa,'ELEMENT_TABLE',_0x2b9a7f)),this['_setupColumnsRowsFixing'](),_0x3dff37['enableCommand']('insertTable'),_0x3dff37['enableCommand']('selectTableRow'),_0x3dff37['enableCommand']('selectTableColumn');for(const _0x3ccf7f of['insertTableRowAbove','insertTableRowBelow']){const _0x5bfab0=_0x665301['commands']['get'](_0x3ccf7f);_0x3dff37['enableCommand'](_0x3ccf7f,_0x92ff59=>{_0x665301['model']['change'](_0x1c8418=>{_0x92ff59();const _0x53f1a8='above'===_0x5bfab0['order'],_0x5aa717=_0x22c0d2['getSelectionAffectedTableCells'](_0x5e5cb7),_0x17c687=_0x22c0d2['getRowIndexes'](_0x5aa717),_0x3225a4=_0x53f1a8?_0x17c687['first']-0x1:_0x17c687['last']+0x1,_0x3d91bd=_0x5aa717[0x0]['findAncestor']('table'),_0x33acd2=_0x22c0d2['createTableWalker'](_0x3d91bd,{'startRow':_0x3225a4,'endRow':_0x3225a4}),_0x5df432=Array['from'](_0x33acd2)['map'](_0x521c7f=>_0x1c8418['createRangeOn'](_0x521c7f['cell']));_0x3dff37['markMultiRangeInsertion'](_0x5df432,'tableRow');});});}for(const _0x4259fd of['insertTableColumnLeft','insertTableColumnRight']){const _0x59044a=_0x665301['commands']['get'](_0x4259fd);_0x3dff37['enableCommand'](_0x4259fd,_0x39c5ee=>{_0x665301['model']['change'](_0x47d4c6=>{_0x39c5ee();const _0x2c3d52='left'===_0x59044a['order'],_0x4059be=_0x22c0d2['getSelectionAffectedTableCells'](_0x5e5cb7),_0x166101=_0x22c0d2['getColumnIndexes'](_0x4059be),_0x3b50d3=_0x2c3d52?_0x166101['first']-0x1:_0x166101['last']+0x1,_0x52c6b4=_0x4059be[0x0]['findAncestor']('table'),_0x3f9a9d=_0x22c0d2['createTableWalker'](_0x52c6b4,{'startRow':0x0,'column':_0x3b50d3,'includeAllSlots':!0x1}),_0x6ba828=Array['from'](_0x3f9a9d)['map'](_0x563d04=>_0x47d4c6['createRangeOn'](_0x563d04['cell']));_0x3dff37['markMultiRangeInsertion'](_0x6ba828,'tableColumn');});});}for(const _0x333704 of['removeTableRow','removeTableColumn']){const _0x4e1654=_0x333704['substr'](0xb),_0x2e39c2=_0x4e1654['toLowerCase'](),_0x1120be=_0x2e39c2['substr'](0x0,0x3)+'span',_0xff07c='table'+_0x4e1654,_0x2b3afc='min'+_0x4e1654,_0x134520='max'+_0x4e1654;_0x3dff37['enableCommand'](_0x333704,()=>{_0x665301['model']['change'](_0xd32b99=>{const _0x323179=_0x22c0d2['getSelectionAffectedTableCells'](_0x5e5cb7),_0x5121f7=_0x323179[0x0]['findAncestor']('table');let _0x3dad38;if('removeTableRow'==_0x333704){const _0x4524ef=_0x22c0d2['getRowIndexes'](_0x323179);_0x3dad38={'startRow':_0x4524ef['first'],'endRow':_0x4524ef['last'],'includeAllSlots':!0x0};}else{const _0x50b60a=_0x22c0d2['getColumnIndexes'](_0x323179);_0x3dad38={'startColumn':_0x50b60a['first'],'endColumn':_0x50b60a['last'],'includeAllSlots':!0x0};}const _0x3c7cc2=_0x22c0d2['createTableWalker'](_0x5121f7,_0x3dad38),_0x4f5c45=Array['from'](_0x3c7cc2)['map'](({cell:_0x5ab048})=>_0x5ab048),_0x1c1e26=_e(_0x4f5c45['filter'](_0x4a9149=>_0x4a9149['hasAttribute'](_0x1120be))),_0x2f7231=_e(_0x4f5c45['filter'](_0x3f9bb3=>!_0x3f9bb3['hasAttribute'](_0x1120be)))['map'](_0x8b7db0=>_0xd32b99['createRangeOn'](_0x8b7db0)),_0x95bb94=_0x3dff37['markMultiRangeDeletion'](_0x2f7231,_0xff07c);if(_0x95bb94&&('tableRow'==_0x95bb94['subType']||'tableColumn'==_0x95bb94['subType'])){const _0x4d1a1c=this['_getSuggestionCoords'](_0x95bb94);for(const _0x58a476 of _0x1c1e26){const _0x29606d=_0xd32b99['createRangeOn'](_0x58a476),_0x59e843=_0x22c0d2['getCellLocation'](_0x58a476),_0x232994=_0x58a476['getAttribute'](_0x1120be)-0x1,_0x1915d6=_0x4d1a1c[_0x2b3afc],_0x14ad09=_0x4d1a1c[_0x134520];_0x1915d6<=_0x59e843[_0x2e39c2]&&_0x59e843[_0x2e39c2]+_0x232994<=_0x14ad09&&_0x95bb94['addRange'](_0x29606d);}}});});}function _0x560f4f(_0xec4c4e){const _0x9a16ae=Array['from'](_0x5e5cb7['getRanges']())['map'](_0x1778a9=>_0x2f9bba['fromRange'](_0x1778a9));_0x665301['model']['change'](_0x29376a=>{const _0x567f52=_0x29376a['batch'];_0xec4c4e=_0xec4c4e['filter'](_0x53b678=>'$graveyard'!=_0x53b678['root']['rootName']),_0x29376a['setSelection'](_0xec4c4e),_0x665301['commands']['get']('removeTableRow')['refresh'](),_0x665301['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x665301['model']['enqueueChange'](()=>{_0x665301['model']['enqueueChange'](_0x567f52,_0x1d5c4d=>{const _0x1c15a3=_0x9a16ae['filter'](_0x47d1e6=>'$graveyard'!=_0x47d1e6['root']['rootName']);_0x1c15a3['length']>0x0&&_0x1d5c4d['setSelection'](_0x1c15a3);for(const _0x8ec347 of _0x9a16ae)_0x8ec347['detach']();});});});}function _0x26c067(_0x11e24c){_0x665301['model']['change'](_0x205837=>{const _0x51c7a2=Array['from'](_0x5e5cb7['getRanges']())['map'](_0x25aa6b=>_0x2f9bba['fromRange'](_0x25aa6b)),_0x57bebd=[];for(const _0x2a500d of _0x11e24c)for(const _0x1eb18a of _0x2a500d['getItems']({'shallow':!0x0}))_0x57bebd['push'](_0x1eb18a);for(const _0x415d24 of _0x57bebd)'$graveyard'!=_0x415d24['root']['rootName']&&(_0x205837['setSelection'](_0x205837['createPositionAt'](_0x415d24,0x0)),_0x665301['commands']['get']('removeTableColumn')['refresh'](),_0x665301['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2eae9=_0x51c7a2['filter'](_0x20a6d9=>'$graveyard'!=_0x20a6d9['root']['rootName']);_0x2eae9['length']>0x0&&_0x205837['setSelection'](_0x2eae9);for(const _0x43bf8d of _0x51c7a2)_0x43bf8d['detach']();});}function _0x2aa9d9(_0xbb1c8c,_0x4faefa){return _0x4faefa['every'](_0xa2282c=>_0xbb1c8c['some'](_0x200724=>_0x200724['end']['isEqual'](_0xa2282c['start'])||_0xa2282c['end']['isEqual'](_0x200724['start'])));}function _0xeb6b78(_0x23adfc,_0x259362){return!_0x23adfc['some'](_0x5b2b25=>_0x259362['some'](_0x498a8b=>_0x5b2b25['isIntersecting'](_0x498a8b)))&&_0x23adfc['some'](_0x199919=>_0x259362['some'](_0x39b5f8=>_0x199919['end']['isTouching'](_0x39b5f8['start'])));}_0x3dff37['descriptionFactory']['registerDescriptionCallback'](_0x11879b=>{if('insertion'!=_0x11879b['type']&&'deletion'!=_0x11879b['type'])return;const _0x57e058=_0x11879b['getContainedElement']();if(null!=_0x57e058&&_0x57e058['is']('element','table')){if('insertion'==_0x11879b['type']){const _0x424cf4=_0x11879b['getItems']()['filter'](_0x374782=>_0x374782['is']('$textProxy'))['map'](_0x2b51a6=>_0x2b51a6['data']);if(_0x424cf4['length'])return{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x424cf4['join']('\x20')+'\x22'))};}if('deletion'==_0x11879b['type']){const _0x5edf42=_0x11879b['getItems']()['filter'](_0x385dfb=>_0x385dfb['is']('$textProxy'))['map'](_0x3788f5=>_0x3788f5['data']);if(_0x5edf42['length'])return{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5edf42['join']('\x20')+'\x22'))};}}}),_0x3dff37['descriptionFactory']['registerDescriptionCallback'](_0xf81b33=>{if('tableRow'==_0xf81b33['subType']){const _0x1b7128=_0xf81b33['getItems']()['filter'](_0x1d6045=>_0x1d6045['is']('$textProxy'))['map'](_0x18ff52=>_0x18ff52['data']),_0x3ad4e8=this['_getSuggestionCoords'](_0xf81b33),_0x35b7a2=_0x3ad4e8['maxRow']-_0x3ad4e8['minRow']+0x1;if('insertion'==_0xf81b33['type'])return _0x1b7128['length']?{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35b7a2,'\x22'+_0x1b7128['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_ROW',_0x35b7a2))};if('deletion'==_0xf81b33['type'])return _0x1b7128['length']?{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35b7a2,'\x22'+_0x1b7128['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_ROW',_0x35b7a2))};}if('tableColumn'==_0xf81b33['subType']){const _0x3b80f7=_0xf81b33['getItems']()['filter'](_0x4ca358=>_0x4ca358['is']('$textProxy'))['map'](_0x178238=>_0x178238['data']),_0xd93b57=this['_getSuggestionCoords'](_0xf81b33),_0x23b2ec=_0xd93b57['maxColumn']-_0xd93b57['minColumn']+0x1;if('insertion'==_0xf81b33['type'])return _0x3b80f7['length']?{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23b2ec,'\x22'+_0x3b80f7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_COLUMN',_0x23b2ec))};if('deletion'==_0xf81b33['type'])return _0x3b80f7['length']?{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23b2ec,'\x22'+_0x3b80f7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_COLUMN',_0x23b2ec))};}}),_0x3dff37['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x560f4f),_0x3dff37['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x560f4f),_0x3dff37['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26c067),_0x3dff37['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26c067),_0x3dff37['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2aa9d9),_0x3dff37['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2aa9d9),_0x3dff37['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xeb6b78),_0x3dff37['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xeb6b78);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ff6f7=this['editor'],_0x4c3f94=_0x1ff6f7['model']['document']['selection'];return(_0x5ba266,_0x34e38d)=>{_0x1ff6f7['model']['change'](_0x54dd10=>{const {commandName:_0x1e78fd,commandParams:_0x407aa1}=_0x34e38d;let _0x13a884=_0x5ba266[0x0]['end']['nodeBefore'];_0x407aa1&&_0x407aa1[0x0]&&!0x1===_0x407aa1[0x0]['forceValue']&&(_0x13a884=_0x5ba266[0x0]['start']['nodeAfter']);const _0x49526d=_0x54dd10['createRangeIn'](_0x13a884);if('$graveyard'==_0x49526d['root']['rootName'])return;const _0x5bbb2e=Array['from'](_0x4c3f94['getRanges']())['map'](_0x558198=>_0x2f9bba['fromRange'](_0x558198));_0x54dd10['setSelection'](_0x49526d),_0x1ff6f7['commands']['get'](_0x1e78fd)['refresh'](),_0x407aa1['push']({'forceDefaultExecution':!0x0}),_0x1ff6f7['execute'](_0x1e78fd,..._0x407aa1);const _0x2888d5=_0x5bbb2e['filter'](_0x3ca054=>'$graveyard'!=_0x3ca054['root']['rootName']);_0x2888d5['length']>0x0&&_0x54dd10['setSelection'](_0x2888d5);for(const _0x2b1df4 of _0x5bbb2e)_0x2b1df4['detach']();});};}['_getCoordsForCells'](_0x7cbad8){const _0x2db3e6=this['editor']['plugins']['get']('TableUtils');let _0xa65094=Number['MAX_SAFE_INTEGER'],_0x35df73=Number['MIN_SAFE_INTEGER'],_0x52180b=Number['MAX_SAFE_INTEGER'],_0x56da87=Number['MIN_SAFE_INTEGER'];for(const _0x1dabdb of _0x7cbad8){if('$graveyard'==_0x1dabdb['root']['rootName'])continue;const {row:_0xe10d9a,column:_0x58cfd3}=_0x2db3e6['getCellLocation'](_0x1dabdb),_0x17b8b5=_0x1dabdb['hasAttribute']('rowspan')?_0x1dabdb['getAttribute']('rowspan')-0x1:0x0,_0x367b51=_0x1dabdb['hasAttribute']('colspan')?_0x1dabdb['getAttribute']('colspan')-0x1:0x0;_0xa65094=_0xe10d9a<_0xa65094?_0xe10d9a:_0xa65094,_0x35df73=_0xe10d9a+_0x17b8b5>_0x35df73?_0xe10d9a+_0x17b8b5:_0x35df73,_0x52180b=_0x58cfd3<_0x52180b?_0x58cfd3:_0x52180b,_0x56da87=_0x58cfd3+_0x367b51>_0x56da87?_0x58cfd3+_0x367b51:_0x56da87;}return{'minRow':_0xa65094,'maxRow':_0x35df73,'minColumn':_0x52180b,'maxColumn':_0x56da87};}['_setupColumnsRowsFixing'](){const _0x25a6fd=this['editor'],_0x4c01ae=_0x25a6fd['plugins']['get']('TrackChangesEditing'),_0x26fd81=_0x25a6fd['plugins']['get']('TableUtils');_0x25a6fd['model']['document']['on']('change:data',()=>{const _0xd4e4ca=Array['from'](_0x25a6fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4202e5,data:_0x590564}of _0xd4e4ca){const {group:_0x1fe742,id:_0x4d7075,subType:_0x461996}=_0x4c01ae['_splitMarkerName'](_0x4202e5);if('suggestion'!=_0x1fe742)continue;if(null!=_0x590564['oldRange'])continue;const _0x2cc454=_0x4c01ae['getSuggestion'](_0x4d7075);this['_tablePostFixingSubtypes']['includes'](_0x461996)&&this['_tableSuggestions']['add'](_0x2cc454);}},{'priority':'low'});const _0x3c431c=(_0x5d58cc,_0x36b938)=>{let _0x197e22=!0x1;const _0x35bc09=_0x36b938['createRangeOn'](_0x5d58cc),_0x1e4bb3=_0x5d58cc['findAncestor']('table'),_0x201f43=_0x26fd81['getCellLocation'](_0x5d58cc);for(const _0x47489e of this['_tableSuggestions']){const _0xc00cf5=_0x47489e['subType'],_0x40c2d2=_0xc00cf5['startsWith']('tablePaste'),_0x50d5c6=_0xc00cf5['substr'](_0x40c2d2?0xa:0x5),_0xb69f63=_0x50d5c6['toLowerCase'](),_0x29db35=_0xb69f63['substr'](0x0,0x3)+'span',_0x312c90='min'+_0x50d5c6,_0x41a368='max'+_0x50d5c6;if(!_0x47489e['isInContent'])continue;if(_0x1e4bb3!=_0x47489e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x47489e['isIntersectingWithRange'](_0x35bc09))continue;const _0x254eda=_0x5d58cc['hasAttribute'](_0x29db35)?_0x5d58cc['getAttribute'](_0x29db35)-0x1:0x0,_0x5ab1f7=this['_getSuggestionCoords'](_0x47489e),_0x29830d=_0x5ab1f7[_0x312c90],_0x150372=_0x5ab1f7[_0x41a368];_0x29830d<=_0x201f43[_0xb69f63]&&_0x201f43[_0xb69f63]+_0x254eda<=_0x150372&&(_0x47489e['addRange'](_0x35bc09),_0x197e22=!0x0);}return _0x197e22;};_0x25a6fd['model']['document']['registerPostFixer'](_0x5997d2=>{let _0x3f1f0c=!0x1;for(const _0xec65c1 of _0x25a6fd['model']['document']['differ']['getChanges']())if('insert'==_0xec65c1['type']){if('tableRow'==_0xec65c1['name']){for(const _0x42144b of _0xec65c1['position']['nodeAfter']['getChildren']())_0x3f1f0c=_0x3f1f0c||_0x3c431c(_0x42144b,_0x5997d2);}else'tableCell'==_0xec65c1['name']&&(_0x3f1f0c=_0x3f1f0c||_0x3c431c(_0xec65c1['position']['nodeAfter'],_0x5997d2));}return _0x3f1f0c;});}['_getSuggestionCoords'](_0x31b46b){return this['_getCoordsForCells'](_0x31b46b['getRanges']()['map'](_0x57fc2c=>_0x57fc2c['start']['nodeAfter']));}}function _e(_0x1fa1ed){return Array['from'](new Set(_0x1fa1ed)['values']());}class $t extends _0x2e7573{static get['requires'](){return[Nt];}['afterInit'](){const _0x5ef6c0=this['editor'],_0x24a31b=_0x5ef6c0['model']['document']['selection'],_0x43fc62=_0x5ef6c0['locale'];if(!_0x5ef6c0['plugins']['has']('TableEditing'))return;const _0x21ea57=_0x5ef6c0['plugins']['get']('TrackChangesEditing'),_0x349ce4=_0x5ef6c0['plugins']['get']('TableUtils'),_0x69130c=_0x5ef6c0['plugins']['get'](Nt);_0x69130c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21ea57['enableCommand']('mergeTableCells',()=>{const _0x1d6fd2=_0x349ce4['getSelectionAffectedTableCells'](_0x5ef6c0['model']['document']['selection']);_0x5ef6c0['model']['change'](()=>{_0x21ea57['markMultiRangeBlockFormat'](_0x1d6fd2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5ef6c0['commands']['get']('mergeTableCells')['on']('execute',(_0x51b72a,_0x4609e)=>{_0x5ef6c0['commands']['get']('trackChanges')['value']&&(_0x4609e['length']>0x0&&_0x4609e[_0x4609e['length']-0x1]&&_0x4609e[_0x4609e['length']-0x1]['forceDefaultExecution']||_0x21ea57['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x51b72a['stop']());},{'priority':'highest'});for(const _0x1e56ab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5e5a02=_0x5ef6c0['commands']['get'](_0x1e56ab);_0x21ea57['enableCommand'](_0x1e56ab,()=>{const _0x49353d=_0x5ef6c0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3428e8=>_0x3428e8['is']('element','tableCell')),_0x578fdf=_0x5e5a02['value'];_0x5ef6c0['model']['change'](()=>{_0x21ea57['markMultiRangeBlockFormat']([_0x49353d,_0x578fdf],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4579d3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x463c6e=_0x5ef6c0['commands']['get'](_0x4579d3);_0x21ea57['enableCommand'](_0x4579d3,()=>{const _0x392a25=_0x349ce4['getSelectionAffectedTableCells'](_0x5ef6c0['model']['document']['selection'])[0x0],_0x3a639b=_0x392a25['findAncestor']('table'),{column:_0x33be42,row:_0x522c04}=_0x349ce4['getCellLocation'](_0x392a25);let _0x5b8506=[];if('horizontally'==_0x463c6e['direction']){const _0x5d2b0c=_0x349ce4['createTableWalker'](_0x3a639b,{'startRow':_0x522c04,'endRow':_0x522c04,'includeAllSlots':!0x0});_0x5b8506=Array['from'](_0x5d2b0c)['map'](_0x30c542=>_0x30c542['cell']);}else{const _0x706ede=_0x349ce4['createTableWalker'](_0x3a639b,{'column':_0x33be42,'includeAllSlots':!0x0});_0x5b8506=Array['from'](_0x706ede)['map'](_0x637237=>_0x637237['cell']);}_0x5ef6c0['model']['change'](_0x245829=>{_0x21ea57['markBlockFormat'](_0x245829['createRangeOn'](_0x392a25),{'commandName':_0x4579d3,'commandParams':[]},_0x5b8506,_0x4579d3);});});}_0x21ea57['descriptionFactory']['registerDescriptionCallback'](_0x2fc7a0=>{if('formatBlock'!=_0x2fc7a0['type']&&'formatInline'!=_0x2fc7a0['type'])return;const {data:_0x43efeb}=_0x2fc7a0;return _0x43efeb&&'mergeTableCells'==_0x43efeb['commandName']?{'type':'format','content':o(_0x43fc62,'*Merge\x20cells*')}:void 0x0;}),_0x21ea57['descriptionFactory']['registerDescriptionCallback'](_0x2b169a=>{if('formatBlock'!=_0x2b169a['type']&&'formatInline'!=_0x2b169a['type'])return;const {data:_0x537306}=_0x2b169a;return _0x537306?'splitTableCellVertically'==_0x537306['commandName']?{'type':'format','content':o(_0x43fc62,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x537306['commandName']?{'type':'format','content':o(_0x43fc62,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x23ee92=_0x69130c['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b94e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21ea57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b94e3,'accept',_0x23ee92);for(const _0x394827 of['splitTableCellVertically','splitTableCellHorizontally'])_0x21ea57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x394827,'accept',_0x23ee92);_0x21ea57['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x63f6e9=>{_0x5ef6c0['model']['change'](_0x4ad669=>{const _0x53f567=Array['from'](_0x24a31b['getRanges']())['map'](_0x3c01b7=>_0x2f9bba['fromRange'](_0x3c01b7));_0x4ad669['setSelection'](_0x63f6e9),_0x5ef6c0['commands']['get']('mergeTableCells')['refresh'](),_0x5ef6c0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x28d208=_0x53f567['filter'](_0x4de5f5=>'$graveyard'!=_0x4de5f5['root']['rootName']);_0x28d208['length']>0x0&&_0x4ad669['setSelection'](_0x28d208);for(const _0x2dcc69 of _0x53f567)_0x2dcc69['detach']();});});for(const _0xc4e62e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x22a939=_0x5ef6c0['commands']['get'](_0xc4e62e);_0x22a939['on']('set:isEnabled',(_0x47f00c,_0x26617f,_0x24b539)=>{if(_0x24b539){const _0x3d99f3=_0x5ef6c0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x321343=>_0x321343['is']('element','tableCell'));this['_areMergableCells'](_0x22a939['value'],_0x3d99f3)||(_0x47f00c['return']=!0x1,_0x47f00c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x242c46=this['editor']['commands']['get']('mergeTableCells'),_0x21c748=this['editor']['plugins']['get']('TableUtils');if(!_0x242c46['isEnabled'])return!0x1;const _0x2a22a1=_0x21c748['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56c974 of _0x2a22a1)for(const _0x44b5d8 of _0x2a22a1)if(_0x56c974!=_0x44b5d8&&!this['_areMergableCells'](_0x56c974,_0x44b5d8))return!0x1;return!0x0;}['_areMergableCells'](_0x49c302,_0x5d6c11){const _0x1c20b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ab432=this['editor']['model']['createRangeOn'](_0x49c302),_0x152e32=this['editor']['model']['createRangeOn'](_0x5d6c11),_0x5e9065=new Set(),_0x51035e=new Set();for(const _0x1890fd of _0x1c20b0['getSuggestions']())if(('insertion'==_0x1890fd['type']||'deletion'==_0x1890fd['type']||'mergeTableCells'==_0x1890fd['subType'])&&_0x1890fd['isInContent']){for(const _0x3eb38c of _0x1890fd['getRanges']())_0x3eb38c['containsRange'](_0x3ab432,!0x0)&&_0x5e9065['add'](_0x1890fd['type']+':'+_0x1890fd['author']['id']),_0x3eb38c['containsRange'](_0x152e32,!0x0)&&_0x51035e['add'](_0x1890fd['type']+':'+_0x1890fd['author']['id']);}if(_0x5e9065['size']!=_0x51035e['size'])return!0x1;for(const _0x2df299 of _0x5e9065)if(!_0x51035e['has'](_0x2df299))return!0x1;return!0x0;}}class vt extends _0x2e7573{static get['requires'](){return[Nt];}['afterInit'](){const _0x2937bd=this['editor'];if(!_0x2937bd['plugins']['has']('TableEditing'))return;const _0x556dfa=_0x2937bd['locale'],_0x1338d4=_0x2937bd['plugins']['get']('TrackChangesEditing');_0x1338d4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1338d4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1338d4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x556dfa,'FORMAT_HEADER_ROW')),_0x1338d4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x556dfa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3978c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51090a=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x3978c8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x51090a),_0x3978c8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x51090a),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x1f0abe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ed7b4=this['editor']['plugins']['get']('TableUtils');function _0x562c5c({showActiveMarker:_0x3c144c=!0x0,setDataAttribute:_0x3a85d0=!0x0}={}){return(_0x484264,_0x15aa77,_0x357e7d)=>{const {type:_0x2c38f2,id:_0x3c0273}=_0x1f0abe['_splitMarkerName'](_0x15aa77['markerName']);if(!_0x1f0abe['hasSuggestion'](_0x3c0273))return;const _0x32cd49=_0x1f0abe['getSuggestion'](_0x3c0273),_0x5060af=_0x32cd49['data'];if('formatBlock'!=_0x32cd49['type']||!_0x5060af||'setTableColumnHeader'!=_0x5060af['commandName'])return;if(_0x15aa77['item'])return void _0x484264['stop']();if(!_0x357e7d['consumable']['consume'](_0x15aa77['markerRange'],_0x484264['name']))return;const _0x90d9cc=_0x15aa77['markerRange']['start']['nodeAfter'],_0x1134ed=_0x15aa77['markerRange']['end']['nodeBefore'],_0x5e6529=_0x90d9cc['parent']['parent'],{column:_0x6671e4}=_0x2ed7b4['getCellLocation'](_0x90d9cc),{column:_0x4f7549}=_0x2ed7b4['getCellLocation'](_0x1134ed);for(let _0x1e3346=_0x6671e4;_0x1e3346<=_0x4f7549;_0x1e3346++){const _0x1ee0c6=_0x2ed7b4['createTableWalker'](_0x5e6529,{'column':_0x1e3346,'includeAllSlots':!0x1});for(const _0xb7882 of _0x1ee0c6){const _0x4022c9=_0xb7882['cell'],_0x4a7004=_0x357e7d['mapper']['toViewElement'](_0x4022c9);_0x357e7d['writer']['addClass']('ck-suggestion-marker-'+_0x2c38f2,_0x4a7004),_0x3a85d0&&_0x357e7d['writer']['setAttribute']('data-suggestion',_0x3c0273,_0x4a7004),_0x357e7d['mapper']['bindElementToMarker'](_0x4a7004,_0x15aa77['markerName']),_0x3c144c&&(_0x1f0abe['activeMarkers']['includes'](_0x15aa77['markerName'])?_0x357e7d['writer']['addClass']('ck-suggestion-marker--active',_0x4a7004):_0x357e7d['writer']['removeClass']('ck-suggestion-marker--active',_0x4a7004));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x562c5c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5fc15b,_0xf61682,_0x499d34)=>{_0x499d34['options']['showSuggestionHighlights']&&_0x562c5c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5fc15b,_0xf61682,_0x499d34);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x55ed80,_0x3f5498,_0xd0963c)=>{const {type:_0x2a17ca,id:_0x2fe793}=_0x1f0abe['_splitMarkerName'](_0x3f5498['markerName']);if(!_0x1f0abe['hasSuggestion'](_0x2fe793))return;const _0x3e757d=_0x1f0abe['getSuggestion'](_0x2fe793),_0x86d495=_0x3e757d['data'];if('formatBlock'!=_0x3e757d['type']||!_0x86d495||'setTableColumnHeader'!=_0x86d495['commandName'])return;const _0x5ef74a=_0xd0963c['mapper']['markerNameToElements'](_0x3f5498['markerName']);if(_0x5ef74a){for(const _0x1f52ee of _0x5ef74a)_0xd0963c['writer']['removeClass']('ck-suggestion-marker-'+_0x2a17ca,_0x1f52ee),_0xd0963c['writer']['removeClass']('ck-suggestion-marker--active',_0x1f52ee),_0xd0963c['writer']['removeAttribute']('data-suggestion',_0x1f52ee),_0xd0963c['mapper']['unbindElementFromMarkerName'](_0x1f52ee,_0x3f5498['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x115794=this['editor'],_0x3213f8=_0x115794['locale'];function _0x14e433(_0x4b0a2e){return{'type':'format','content':o(_0x3213f8,'*Format:*\x20%0',_0x4b0a2e)};}_0x115794['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x104331=>{if('formatBlock'!=_0x104331['type'])return;const {data:_0x3668c8}=_0x104331;if(_0x3668c8){if('setTableRowHeader'==_0x3668c8['commandName']){const _0x3d9cc6=_0x3668c8['commandParams'][0x0]['forceValue'];return _0x14e433(o(_0x3213f8,_0x3d9cc6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3668c8['commandName']){const _0x3bf2bc=_0x3668c8['commandParams'][0x0]['forceValue'];return _0x14e433(o(_0x3213f8,_0x3bf2bc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2e7573{['afterInit'](){const _0x414cfa=this['editor'],_0x1125e2=_0x414cfa['locale'],_0x24317d=_0x414cfa['plugins']['get']('TrackChangesEditing');function _0x226f49(_0x5b5deb){return{'type':'format','content':''+o(_0x1125e2,'*Set\x20table\x20type:*\x20%0',_0x5b5deb)};}_0x414cfa['plugins']['has']('TableLayout')&&(_0x24317d['enableCommand']('insertTableLayout'),_0x24317d['enableDefaultAttributesIntegration']('tableType'),_0x24317d['descriptionFactory']['registerElementLabel'](_0x188fe7=>_0x188fe7['is']('element','table')&&'layout'===_0x188fe7['getAttribute']('tableType'),_0x216067=>o(_0x1125e2,'ELEMENT_LAYOUT_TABLE',_0x216067)),_0x24317d['descriptionFactory']['registerDescriptionCallback'](_0x19b08f=>{const {data:_0x382da3}=_0x19b08f;if(_0x382da3&&'tableType'==_0x382da3['key'])switch(_0x382da3['newValue']){case'layout':return _0x226f49(o(_0x1125e2,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x226f49(o(_0x1125e2,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x5aedf8=>[_0x5aedf8,null]));class Bt extends _0x2e7573{static get['requires'](){return[Nt];}['afterInit'](){const _0x2d4ccd=this['editor'];if(!_0x2d4ccd['plugins']['has']('TableClipboard'))return;const _0x4bddbe=_0x2d4ccd['plugins']['get']('TrackChangesEditing'),_0x1d7f9f=_0x2d4ccd['plugins']['get']('TableUtils'),_0x4b1ed0=_0x2d4ccd['plugins']['get'](Nt),_0x3a817f=_0x2d4ccd['plugins']['get']('TableClipboard'),_0x18a25c=_0x2d4ccd['plugins']['get']('TableSelection'),_0x37cb4b=_0x2d4ccd['plugins']['get'](_0x3c5440);_0x4b1ed0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2d4ccd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2d4ccd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3f68de=null,_0x3c9b67=!0x1;_0x37cb4b['on']('contentInsertion',(_0x5f181b,_0x5de6a9)=>{_0x3c9b67='paste'===_0x5de6a9['method'];}),_0x2d4ccd['model']['on']('insertContent',(_0x410e84,_0x4216f4)=>{if(!_0x3c9b67&&null===_0x18a25c['getSelectedTableCells']())return;const [_0x308af8,_0x4c6b92]=_0x4216f4,_0x49beb8=_0x4216f4[_0x4216f4['length']-0x1];_0x49beb8&&_0x49beb8['forceDefaultExecution']||_0x4bddbe['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xa42e93,_0x3d795d,_0xce685,_0x5b1868,_0xf4b395){if(_0x3d795d&&!_0x3d795d['is']('documentSelection'))return!0x1;const _0x3590cf=_0xf4b395['getTableIfOnlyTableInContent'](_0xa42e93,_0xce685);if(!_0x3590cf||!Oe(_0x3590cf,void 0x0,_0x5b1868))return!0x1;const _0x2141a9=_0x5b1868['getSelectionAffectedTableCells'](_0xce685['document']['selection']);if(!_0x2141a9['length'])return!0x1;const _0x1eb67a=_0x2141a9[0x0]['findAncestor']('table'),_0x364057=_0x5b1868['getRowIndexes'](_0x2141a9),_0xea9ad=_0x5b1868['getColumnIndexes'](_0x2141a9),_0x2a8027={'startRow':_0x364057['first'],'endRow':_0x364057['last'],'startColumn':_0xea9ad['first'],'endColumn':_0xea9ad['last']};return 0x1==_0x2141a9['length']&&(_0x2a8027['endRow']+=_0x5b1868['getRows'](_0x3590cf)-0x1,_0x2a8027['endColumn']+=_0x5b1868['getColumns'](_0x3590cf)-0x1),Oe(_0x1eb67a,_0x2a8027,_0x5b1868);}(_0x308af8,_0x4c6b92,_0x2d4ccd['model'],_0x1d7f9f,_0x3a817f)&&(_0x410e84['stop'](),_0x3f68de={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2d4ccd['model']['change'](()=>{_0x2d4ccd['model']['insertContent'](_0x4216f4[0x0],_0x4216f4[0x1],_0x4216f4[0x2],{'forceDefaultExecution':!0x0});const _0x23e72f=_0xcb588e(),{rowInsertionRanges:_0x45e92f,columnInsertionRanges:_0x28e5a7,insertionRanges:_0x334ade,deletionRanges:_0x1dcd60,cells:_0x4c1c2e}=_0x3f68de;_0x45e92f['length']&&_0x4bddbe['markMultiRangeInsertion'](_0x45e92f,'tablePasteRow',{'tablePasteChainId':_0x23e72f}),_0x28e5a7['length']&&_0x4bddbe['markMultiRangeInsertion'](_0x28e5a7,'tablePasteColumn',{'tablePasteChainId':_0x23e72f}),_0x334ade['length']&&(_0x4bddbe['markMultiRangeInsertion'](_0x334ade,'tablePaste',{'tablePasteChainId':_0x23e72f,'skipNestingCheck':!0x0}),_0x334ade['forEach'](_0x2007a4=>_0x2007a4['detach']?.())),_0x1dcd60['length']&&(_0x4bddbe['markMultiRangeDeletion'](_0x1dcd60,'tablePaste',{'tablePasteChainId':_0x23e72f,'skipNestingCheck':!0x0}),_0x1dcd60['forEach'](_0x5d9e92=>_0x5d9e92['detach']?.()));const _0x498f5a=_0x4bddbe['markMultiRangeBlockFormat'](_0x4c1c2e['map'](({element:_0x28e375})=>_0x28e375),{'formatGroupId':_0xcb588e()},[],'tablePasteCell',{'tablePasteChainId':_0x23e72f});if(_0x498f5a){const _0x4b9eab=_0x498f5a['getMarkers'](),_0x45c777=[];for(const {element:_0x2c6a44,attributes:_0x2a87c8}of _0x4c1c2e){if(!_0x2a87c8)continue;const _0x15e35c=_0x2d4ccd['model']['createRangeOn'](_0x2c6a44),_0x1fb244=_0x4b9eab['find'](_0x16fc69=>_0x16fc69['getRange']()['isEqual'](_0x15e35c));_0x1fb244&&_0x45c777['push']([_0x1fb244['name'],_0x2a87c8]);}_0x45c777['length']&&_0x498f5a['setAttribute']('markerAttributes',Object['fromEntries'](_0x45c777));}_0x3f68de=null;}));},{'priority':_0x104c24['high']+0xa}),_0x37cb4b['on']('contentInsertion',()=>{_0x3c9b67=!0x1;},{'priority':'lowest'}),_0x2d4ccd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42ccf4,_0x1ddda7)=>{const [_0x1f4d80,_0x3c4e04,,_0xa474f9]=_0x1ddda7;if(!_0x3f68de)return;_0x42ccf4['stop']();const _0x9c87a8=_0x1f4d80['cell'],_0x2d48f2=_0x3c4e04,_0x37a27e=Be(_0x9c87a8),_0x562bb2=Be(_0x2d48f2);_0x42ccf4['return']=_0x9c87a8;let _0xa6c589=null,_0x5787dd=null;if(_0x562bb2||_0x37a27e){if(_0x37a27e&&!_0x562bb2){_0xa474f9['remove'](_0x9c87a8['getChild'](0x0));for(const _0x103e5c of Array['from'](_0x2d48f2['getChildren']()))_0xa474f9['insert'](_0x103e5c,_0x9c87a8,'end');const _0x48684e=_0x3f68de['rowInsertionIndexes']['includes'](_0x1f4d80['row']),_0x3c38c0=_0x3f68de['columnInsertionIndexes']['includes'](_0x1f4d80['column']);_0x48684e||_0x3c38c0||(_0xa6c589=_0x2f9bba['fromRange'](_0xa474f9['createRangeIn'](_0x9c87a8)));}else _0x562bb2&&!_0x37a27e&&(_0x5787dd=_0xa474f9['createRangeIn'](_0x9c87a8));}else{const _0x2dcf69=_0xa474f9['createElement']('tableCellSuggestion'),_0x57212e=_0xa474f9['createElement']('tableCellSuggestion');_0xa474f9['wrap'](_0xa474f9['createRangeIn'](_0x9c87a8),_0x57212e),_0xa474f9['insert'](_0x2dcf69,_0x9c87a8,0x0);for(const _0x190dc3 of Array['from'](_0x2d48f2['getChildren']()))_0xa474f9['insert'](_0x190dc3,_0x2dcf69,'end');_0xa6c589=_0x2f9bba['fromRange'](_0xa474f9['createRangeOn'](_0x2dcf69)),_0x5787dd=_0x2f9bba['fromRange'](_0xa474f9['createRangeOn'](_0x57212e));}const _0x59a091=Array['from'](_0x2d48f2['getAttributes']())['filter'](([_0x56b1d9])=>Re['includes'](_0x56b1d9));_0x3f68de['cells']['push']({'element':_0x9c87a8,'attributes':_0x59a091['length']?Object['fromEntries'](_0x59a091):null}),_0xa6c589&&_0x3f68de['insertionRanges']['push'](_0xa6c589),_0x5787dd&&_0x3f68de['deletionRanges']['push'](_0x5787dd);},{'priority':'high'}),_0x1d7f9f['on']('insertColumns',(_0x5c5de2,_0xa6c974)=>{const [_0x2a156e,_0x63b408={}]=_0xa6c974;if(!_0x3f68de)return;const _0x5b7b93=_0x63b408['at']||0x0,_0x10ccc6=_0x63b408['columns']||0x1;_0x3f68de['columnInsertionIndexes']=new Array(_0x10ccc6)['fill'](_0x5b7b93)['map']((_0x4815fa,_0x36ef72)=>_0x4815fa+_0x36ef72);for(const {cell:_0x49ca90}of _0x1d7f9f['createTableWalker'](_0x2a156e,{'startColumn':_0x5b7b93,'endColumn':_0x5b7b93+_0x10ccc6-0x1}))_0x3f68de['columnInsertionRanges']['push'](_0x2d4ccd['model']['createRangeOn'](_0x49ca90));},{'priority':'low'}),_0x1d7f9f['on']('insertRows',(_0xc831e7,_0x3af80c)=>{const [_0x527cb8,_0x2e420e={}]=_0x3af80c;if(!_0x3f68de)return;const _0x1f5858=_0x2e420e['at']||0x0,_0x29c5e0=_0x2e420e['rows']||0x1;_0x3f68de['rowInsertionIndexes']=new Array(_0x29c5e0)['fill'](_0x1f5858)['map']((_0x8944d9,_0x50a3dd)=>_0x8944d9+_0x50a3dd);for(const {cell:_0x52bff5}of _0x1d7f9f['createTableWalker'](_0x527cb8,{'startRow':_0x1f5858,'endRow':_0x1f5858+_0x29c5e0-0x1}))_0x3f68de['rowInsertionRanges']['push'](_0x2d4ccd['model']['createRangeOn'](_0x52bff5));},{'priority':'low'}),_0x4bddbe['descriptionFactory']['registerDescriptionCallback'](_0x19aaf4=>{if(_0x19aaf4['subType']&&_0x19aaf4['subType']['startsWith']('tablePaste'))return _0x19aaf4['previous']?{}:{'type':'insertion','content':o(_0x2d4ccd['locale'],'*Replace\x20table\x20cells*')};});const _0x144758=()=>!0x1;for(const _0x117b40 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4bddbe['_suggestionFactory']['registerCustomCallback']('insertion',_0x117b40,'join',_0x144758),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('deletion',_0x117b40,'join',_0x144758),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x117b40,'join',_0x144758);_0x4bddbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x144758),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3bc785,_0x141d70,_0x40245a)=>{const _0x57498b=_0x3bc785['map'](_0x28fd49=>_0x28fd49['getContainedElement']())['filter'](_0x5039b2=>_0x5039b2),_0x1d651d=new Map(_0x57498b['map'](_0x34cca2=>[_0x34cca2,null]));if(_0x3f68de){for(const {element:_0x41a317,attributes:_0x5b799b}of _0x3f68de['cells'])_0x5b799b&&_0x1d651d['set'](_0x41a317,_0x5b799b);}else{if(_0x40245a&&_0x40245a['markerAttributes'])for(const [_0xccf5b5,_0x564f96]of Object['entries'](_0x40245a['markerAttributes'])){const _0x226b1c=_0x2d4ccd['model']['markers']['get'](_0xccf5b5),_0x1fcbda=_0x226b1c?_0x226b1c['getRange']()['getContainedElement']():null;_0x1fcbda&&_0x1d651d['set'](_0x1fcbda,_0x564f96);}}_0x2d4ccd['model']['change'](_0x4cf23e=>{for(const [_0x106b99,_0x35da2a]of _0x1d651d)_0x4cf23e['setAttributes']({...Ae,..._0x35da2a},_0x106b99);});});const _0x25f5d1=(_0x448c28,_0x14d7f2)=>{_0x4bddbe['_suggestionFactory']['registerCustomCallback'](_0x448c28,'tablePaste',_0x14d7f2,(_0x254e78,_0x47fa27,_0x12632b)=>{_0x2d4ccd['model']['change'](_0x215958=>{const _0x32743f=[];for(const _0x42bd63 of _0x254e78){const _0x222fd5=_0x42bd63['start']['nodeAfter'];_0x222fd5['is']('element','tableCellSuggestion')&&_0x32743f['push'](_0x222fd5);}_0x4bddbe['_suggestionFactory']['getSuggestionCallback'](_0x448c28,null,_0x14d7f2)(_0x254e78,_0x47fa27,_0x12632b);for(const _0x26c35b of _0x32743f)'$graveyard'!=_0x26c35b['root']['rootName']&&_0x215958['unwrap'](_0x26c35b);});});};_0x25f5d1('insertion','accept'),_0x25f5d1('insertion','discard'),_0x25f5d1('deletion','accept'),_0x25f5d1('deletion','discard'),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x21e99f=>{const _0x504a86=_0x21e99f['map'](_0x474287=>_0x474287['getContainedElement']()),_0x1c35de=_0x504a86[0x0]['findAncestor']('table'),{minRow:_0x28d265,maxRow:_0x403e32}=_0x4b1ed0['_getCoordsForCells'](_0x504a86);_0x1d7f9f['removeRows'](_0x1c35de,{'at':_0x28d265,'rows':_0x403e32-_0x28d265+0x1});}),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5b581f=>{const _0x4fc217=_0x5b581f['map'](_0x124951=>_0x124951['getContainedElement']()),_0x5de3a0=_0x4fc217[0x0]['findAncestor']('table'),{minColumn:_0x5dab31,maxColumn:_0x234b1b}=_0x4b1ed0['_getCoordsForCells'](_0x4fc217);_0x1d7f9f['removeColumns'](_0x5de3a0,{'at':_0x5dab31,'columns':_0x234b1b-_0x5dab31+0x1});});const _0xaaca83=(_0x433629,_0x41e355)=>{if(!_0x41e355['subType']||!_0x41e355['subType']['startsWith']('tablePaste'))return;const _0x4d145a=_0x41e355['attributes']['tablePasteChainId'],_0x2cfb16=_0x4bddbe['getSuggestions']()['filter'](_0x83883f=>_0x83883f['isInContent']&&_0x83883f['attributes']&&_0x83883f['attributes']['tablePasteChainId']==_0x4d145a);_0x2cfb16['length']&&_0x41e355['getAllAdjacentSuggestions']()['length']!=_0x2cfb16['length']&&_0x2cfb16['reduce']((_0x41c2aa,_0x16ff29)=>(_0x41c2aa['next']=_0x16ff29,_0x16ff29['previous']=_0x41c2aa,_0x16ff29));};function _0x295cc7(_0x11ebd4,_0x3e780d=!0x0){const {id:_0x10c70b,authorId:_0x221639}=_0x4bddbe['_splitMarkerName'](_0x11ebd4['markerName']),_0x59ee27=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x493895=_0x4bddbe['activeMarkers']['includes'](_0x11ebd4['markerName']);return _0x493895&&_0x59ee27['push']('ck-suggestion-marker--active'),{'classes':_0x59ee27,'attributes':{'data-suggestion':_0x10c70b,'data-author-id':_0x221639},'priority':_0x493895&&_0x3e780d?0xbc2:0xbb8};}_0x4bddbe['on']('suggestionLoaded',_0xaaca83,{'priority':'high'}),_0x4bddbe['on']('suggestionUnloaded',_0xaaca83,{'priority':'high'}),_0x2d4ccd['model']['document']['registerPostFixer'](()=>{let _0xbad36f=!0x1;const _0x4a8920=Array['from'](_0x2d4ccd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x344ef7,data:_0x1adb12}of _0x4a8920){const {group:_0x130bda,type:_0x21a0e0,id:_0xd57a81}=_0x4bddbe['_splitMarkerName'](_0x344ef7);if('suggestion'!=_0x130bda||'deletion'!=_0x21a0e0||_0x1adb12['oldRange'])continue;if(!_0x4bddbe['hasSuggestion'](_0xd57a81))continue;const _0x49833a=_0x4bddbe['getSuggestion'](_0xd57a81)['getRanges'](),_0x521e3a=_0x2d4ccd['plugins']['get']('Users')['me'];for(const _0x4a731e of _0x4bddbe['getSuggestions']()){if(!_0x4a731e['isInContent']||_0x4a731e['author']!=_0x521e3a)continue;if('formatBlock'!=_0x4a731e['type']||'tablePasteCell'!=_0x4a731e['subType'])continue;if(_0x4a731e['getRanges']()['every'](_0x479653=>_0x49833a['some'](_0x3af356=>_0x3af356['containsRange'](_0x479653,!0x0)))){for(const _0x3388ad of _0x4a731e['getAllAdjacentSuggestions']())_0x3388ad['isInContent']&&(_0x3388ad['discard'](),_0xbad36f=!0x0);}}}return _0xbad36f;}),_0x2d4ccd['model']['document']['registerPostFixer'](_0x163ca9=>{const _0x363690=_0x2d4ccd['commands']['get']('redo');if(!_0x363690||!_0x363690['_createdBatches']['has'](_0x163ca9['batch']))return!0x1;let _0x269a3d=!0x1;const _0x47d0be=_0x2d4ccd['plugins']['get']('Users')['me'],_0x386164=_0x2d4ccd['model']['document']['differ']['getChanges'](),_0x3399f2=Array['from'](_0x2d4ccd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x336094,data:_0x18b36b})=>{const {group:_0x55e635,subType:_0x2cc2bb,authorId:_0x994f8a}=_0x4bddbe['_splitMarkerName'](_0x336094);return'suggestion'==_0x55e635&&'tablePaste'==_0x2cc2bb&&_0x994f8a==_0x47d0be['id']&&!_0x18b36b['oldRange'];});for(const _0x500dc7 of _0x386164){if('insert'!=_0x500dc7['type']||'tableCellSuggestion'!=_0x500dc7['name']||0x1!=_0x500dc7['length'])continue;const _0xf88a42=_0x163ca9['createRange'](_0x500dc7['position'],_0x500dc7['position']['getShiftedBy'](0x1));if(!_0x3399f2['find'](({data:_0x18f09b})=>_0x18f09b['newRange']['isEqual'](_0xf88a42))){for(const {name:_0x24dd0c,data:_0x38b246}of _0x3399f2)if(_0xf88a42['containsRange'](_0x38b246['newRange'])){_0x163ca9['updateMarker'](_0x24dd0c,{'range':_0xf88a42}),_0x269a3d=!0x0;break;}}}return _0x269a3d;}),_0x2d4ccd['model']['document']['registerPostFixer'](_0x6e7785=>{let _0x376fad=!0x1;const _0x4dba57=_0x2d4ccd['plugins']['get']('Users')['me'],_0x303cf4=_0x4bddbe['getSuggestions']()['filter'](_0x54d41e=>_0x54d41e['isInContent']&&_0x54d41e['author']==_0x4dba57),_0x1051fb=new Set(),_0x39bff3=new Set();for(const _0x3e141a of _0x303cf4)if('tablePaste'==_0x3e141a['subType'])for(const _0x5b63e7 of _0x3e141a['getMarkers']()){const _0x36d628=_0x5b63e7['getRange']()['getContainedElement']();if(_0x36d628){if(_0x36d628['is']('element','tableCellSuggestion')&&Be(_0x36d628)){_0x3e141a['removeMarker'](_0x5b63e7['name']),_0x1051fb['add'](_0x36d628),_0x376fad=!0x0;const _0x249419=_0x36d628['nextSibling'],_0x2da20f=_0x36d628['previousSibling'],_0x1f9e0f=_0x249419&&_0x249419['is']('element','tableCellSuggestion'),_0x4b165e=_0x2da20f&&_0x2da20f['is']('element','tableCellSuggestion');_0x1f9e0f&&!_0x1051fb['has'](_0x249419)&&_0x39bff3['add'](_0x249419),_0x4b165e&&!_0x1051fb['has'](_0x2da20f)&&_0x39bff3['add'](_0x2da20f);}else _0x36d628['is']('element','paragraph')&&_0x36d628['isEmpty']&&(_0x3e141a['removeMarker'](_0x5b63e7['name']),_0x376fad=!0x0);}}else{if('tablePasteCell'==_0x3e141a['subType']){if(!_0x3e141a['attributes']||!_0x3e141a['attributes']['tablePasteChainId'])continue;const _0x41973a=_0x3e141a['attributes']['markerAttributes'];if(_0x41973a&&Object['keys'](_0x41973a)['length'])continue;const _0x50c469=_0x3e141a['attributes']['tablePasteChainId'];let _0x4b0ee1=!0x0,_0x244bf7=!0x0;for(const _0x1222c9 of _0x303cf4)if(_0x1222c9['subType']&&_0x1222c9['subType']['startsWith']('tablePaste')){if(!_0x1222c9['attributes']['tablePasteChainId']){_0x244bf7=!0x1;break;}if(_0x1222c9['id']!=_0x3e141a['id']&&_0x1222c9['attributes']['tablePasteChainId']==_0x50c469){_0x4b0ee1=!0x1;break;}}_0x244bf7&&_0x4b0ee1&&(_0x3e141a['removeMarkers'](),_0x376fad=!0x0);}}for(const _0x39e824 of _0x1051fb)_0x6e7785['remove'](_0x39e824);for(const _0x743e8d of _0x39bff3)_0x6e7785['unwrap'](_0x743e8d);return _0x376fad;}),_0x2d4ccd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xafdefc=>_0x295cc7(_0xafdefc),'converterPriority':'high'}),_0x2d4ccd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x205131,_0x14877f)=>_0x14877f['options']['showSuggestionHighlights']?_0x295cc7(_0x205131,!0x1):null,'converterPriority':'high'});const _0x20af6c=_0x2d4ccd['editing']['view'];this['listenTo'](_0x20af6c['document'],'clipboardOutput',(_0x4ce63c,_0x561eeb)=>{const _0x24fe74=[];for(const _0x2b623b of _0x20af6c['createRangeIn'](_0x561eeb['content'])['getItems']())_0x2b623b['is']('element','suggestion-td')&&_0x24fe74['push'](_0x2b623b);_0x20af6c['change'](_0x2bfdec=>{for(const _0x571ebc of _0x24fe74)_0x2bfdec['move'](_0x2bfdec['createRangeIn'](_0x571ebc),_0x2bfdec['createPositionBefore'](_0x571ebc)),_0x2bfdec['remove'](_0x571ebc);});});}}function Be(_0x3f8fe8){if(_0x3f8fe8['isEmpty'])return!0x0;const _0x997241=_0x3f8fe8['getChild'](0x0);return _0x997241['is']('element','paragraph')&&_0x997241['isEmpty'];}function Oe(_0x460804,_0x166192={},_0x28a14e){for(const {isAnchor:_0x17169a,cellHeight:_0x4ef5e4,cellWidth:_0x15771b}of _0x28a14e['createTableWalker'](_0x460804,{'includeAllSlots':!0x0,..._0x166192}))if(!_0x17169a||0x1!=_0x4ef5e4||0x1!=_0x15771b)return!0x1;return!0x0;}class Ot extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x488833=this['editor']['plugins']['get']('TrackChangesEditing');_0x488833['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x488833['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x488833['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x488833['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x488833['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x488833['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1d7e0f,_0x4fa208){const _0x1ca930=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d024a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x578e9b=_0x4fa208['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x15a830=_0x3d024a['getColumnGroupElement'](_0x578e9b);let _0x4d9f9f=_0x15a830?_0x3d024a['getTableColumnsWidths'](_0x15a830):null,_0xe806d9=_0x578e9b['getAttribute']('tableWidth')||null;const _0x511033=_0x4fa208['tableWidth']||_0xe806d9,_0x7a5bbd=_0x4fa208['columnWidths']||_0x4d9f9f,_0x5c3961=this['editor']['plugins']['get']('Users')['me'];for(const _0x53e163 of _0x1ca930['getSuggestions']()){const _0x5b072d=_0x53e163['getContainedElement']();if('resizeTable'===_0x53e163['subType']&&_0x5b072d===_0x578e9b){_0x53e163['author']!==_0x5c3961&&_0x53e163['discard']();const _0x28561d=_0x53e163['data']['commandParams'];_0xe806d9=_0x28561d[0x0]['tableWidth'],_0x4d9f9f=_0x28561d[0x0]['columnWidths'];break;}}_0x1d7e0f({'table':_0x578e9b,'tableWidth':_0x511033,'columnWidths':_0x7a5bbd}),_0x1ca930['markBlockFormat'](_0x578e9b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xe806d9,'columnWidths':_0x4d9f9f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1a9717){if('formatBlock'!=_0x1a9717['type']&&'formatInline'!=_0x1a9717['type'])return;const {data:_0x4d62d6}=_0x1a9717;if(_0x4d62d6&&'resizeTable'===_0x4d62d6['formatGroupId']){const _0xdc3d42='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xdc3d42)};}}}class xt extends _0x2e7573{['afterInit'](){const _0xa82baf=this['editor'];_0xa82baf['plugins']['has']('Template')&&_0xa82baf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2e7573{['afterInit'](){const _0x5745e9=this['editor'];if(!_0x5745e9['commands']['get']('insertTableOfContents'))return;_0x5745e9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2340d8=_0x5745e9['plugins']['get']('TrackChangesEditing'),_0x3200db=_0x5745e9['locale'];_0x2340d8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x251bec=>o(_0x3200db,'ELEMENT_TABLE_OF_CONTENTS',_0x251bec));}}class Rt extends _0x2e7573{['afterInit'](){const _0xceed97=this['editor'];if(!_0xceed97['plugins']['has']('Title'))return;const _0x3ac52a=_0xceed97['plugins']['get']('TrackChangesEditing');_0x3ac52a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xceed97['locale'],'ELEMENT_TITLE')),_0xceed97['model']['document']['registerPostFixer'](_0x60258b=>{let _0x555f77=!0x1;const _0xd09cf=Array['from'](_0xceed97['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16e14a,data:_0x4da1c5}of _0xd09cf){const {group:_0x27dcfe}=_0x3ac52a['_splitMarkerName'](_0x16e14a);if('suggestion'!==_0x27dcfe||!_0x4da1c5['newRange'])continue;const _0x10038f=_0x4da1c5['newRange'],_0x363d80=_0x10038f['end']['nodeBefore'];if(!_0x363d80||!_0x363d80['is']('element','title-content'))continue;if(!_0x10038f['start']['isTouching'](_0x10038f['end']))continue;const _0x5821db=_0xceed97['model']['schema']['getNearestSelectionRange'](_0x10038f['end'],'forward');if(_0x5821db&&_0x5821db['isCollapsed']){const _0x9080b9=_0x60258b['createRange'](_0x10038f['start'],_0x5821db['start']);_0x9080b9['isEqual'](_0x10038f)||(_0x60258b['updateMarker'](_0x16e14a,{'range':_0x9080b9}),_0x555f77=!0x0);}_0x555f77||(_0x60258b['removeMarker'](_0x16e14a),_0x555f77=!0x0);}return _0x555f77;});}}class Tt extends _0x2e7573{['afterInit'](){const _0x2d8fa4=this['editor'],_0x27d40d=_0x2d8fa4['plugins']['get']('TrackChangesEditing');_0x2d8fa4['plugins']['has']('Uploadcare')&&(_0x27d40d['enableCommand']('uploadcare'),_0x2d8fa4['plugins']['has']('UploadcareImageEdit')&&(_0x27d40d['enableCommand']('uploadcareImageEdit'),_0x27d40d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x27d40d['descriptionFactory']['registerDescriptionCallback'](_0x490550=>{if('attribute'!=_0x490550['type'])return;const {data:_0x4b93ac}=_0x490550;return _0x4b93ac&&'uploadcareImageId'==_0x4b93ac['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2e7573{['afterInit'](){const _0x1f0751=this['editor'],_0x5ca368=_0x1f0751['plugins']['get']('TrackChangesEditing');_0x1f0751['plugins']['has']('UndoEditing')&&(_0x5ca368['enableCommand']('undo'),_0x5ca368['enableCommand']('redo'));}}class Ut extends _0x2e7573{static get['requires'](){return[Nt];}['afterInit'](){const _0x12e4f9=this['editor'];if(!_0x12e4f9['plugins']['has']('TableCaptionEditing'))return;_0x12e4f9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2e7573{['tableProperties'];['tableCellProperties'];constructor(_0x553712){super(_0x553712),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5e52e9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xeb2850 of this['tableProperties'])_0x5e52e9['enableCommand'](_0xeb2850,(_0xe35a19,_0xbb6e85)=>{const _0x47136a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xeb2850,[_0x47136a],this['tableProperties'],'tableProperties',_0xe35a19,_0xbb6e85);});_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e52e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d8f02,_0x4d2ab4)=>this['handleDiscardAction'](this['tableProperties'],_0x3d8f02,_0x4d2ab4)),_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x44e664 of this['tableCellProperties'])_0x5e52e9['enableCommand'](_0x44e664,(_0x3718b4,_0x1759e1)=>{const _0x2d7a58=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x44e664,_0x2d7a58,this['tableCellProperties'],'tableCellProperties',_0x3718b4,_0x1759e1);});_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e52e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x50c62d,_0x1fc0e7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x50c62d,_0x1fc0e7)),_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e52e9['descriptionFactory']['registerDescriptionCallback'](_0x39f7d7=>this['handleSuggestionDescription'](_0x39f7d7)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x48a98a,_0x166837,_0x926c7b,_0x20b0cf,_0x24842c,_0x1217bc){const _0x37c3c0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1217bc['batch'],()=>{for(const _0x3d006b of _0x166837){if(this['_getSuggestion'](_0x3d006b,_0x20b0cf))_0x24842c(_0x1217bc);else{const _0x431ac6={};for(const _0x197ccc of _0x926c7b){const _0x23ffcd=_0x3d006b['getAttribute'](_0x197ccc);void 0x0!==_0x23ffcd&&(_0x431ac6[_0x197ccc]=_0x23ffcd);}_0x24842c(_0x1217bc),_0x37c3c0['markBlockFormat'](_0x3d006b,{'commandParams':[_0x431ac6]},[],_0x20b0cf);}}});}['handleDiscardAction'](_0x552c37,_0x2eca31,_0x38847a){const _0x29137a=_0x2eca31[0x0]['start']['nodeAfter'],_0x1bf1a0=_0x38847a['commandParams'][0x0];this['editor']['model']['change'](_0x58e504=>{for(const _0x276488 of _0x552c37)void 0x0!==_0x1bf1a0[_0x276488]?_0x58e504['setAttribute'](_0x276488,_0x1bf1a0[_0x276488],_0x29137a):_0x58e504['removeAttribute'](_0x276488,_0x29137a);});}['handleSuggestionDescription'](_0x45ad32){if(_0x45ad32['data'])switch(_0x45ad32['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'](_0x119a1c,_0x4fd366){const _0x1e1c73=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ca642 of _0x1e1c73['getSuggestions']({'skipNotAttached':!0x0})){const _0xf35435=_0x5ca642['getContainedElement']();if(_0x5ca642['subType']===_0x4fd366&&_0xf35435===_0x119a1c)return _0x5ca642;}return null;}['_registerTablePropertiesAttributes'](){const _0x30cd1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5288fb=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2cefd8 of _0x5288fb){const _0x3db068=_0x2cefd8['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x30cd1c['descriptionFactory']['registerAttributeLabel'](_0x2cefd8,o(this['editor']['locale'],'FORMAT_'+_0x3db068));}}}class Ft extends _0x2e7573{['afterInit'](){const _0x13a8e3=this['editor'];if(!_0x13a8e3['plugins']['has']('LineHeight'))return;const _0x490850=_0x13a8e3['plugins']['get']('TrackChangesEditing'),_0x5a6921=_0x13a8e3['locale'];_0x490850['enableDefaultAttributesIntegration']('lineHeight'),_0x490850['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x5a6921,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2e7573{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x34d734,_0xbc397a,_0x392ee9,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(_0x4284a7){super(_0x4284a7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x500f90,_0x399c72,_0x40148e,_0x16459e)=>{this['_model']['change'](()=>{for(const _0x35dfba of[..._0x16459e,..._0x40148e])this['_model']['markers']['has'](_0x35dfba)&&_0x4284a7['editing']['reconvertMarker'](_0x35dfba);});}),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']=_0x4284a7['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4284a7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4284a7['config']['get']('trackChanges.trackFormatChanges'),_0x4284a7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4284a7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4284a7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x221009=this['editor'];_0x221009['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xce9e9e,{writer:_0x328da4})=>{let _0xcedb14='suggestion:'+_0xce9e9e['getAttribute']('suggestion-type')+':'+_0xce9e9e['getAttribute']('id');return _0xce9e9e['getAttribute']('marker-count')&&(_0xcedb14+=':'+_0xce9e9e['getAttribute']('marker-count')),_0x328da4['createElement']('$marker',{'data-name':_0xcedb14});}}),_0x221009['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x221009['model']['document']['registerPostFixer'](_0x547609=>{let _0x5dc3f5=!0x1;const _0x40a3ad=Array['from'](_0x221009['model']['document']['differ']['getChangedMarkers']()),_0x2ccc4a=new Set();for(const {name:_0x388efa,data:_0x5c38e6}of _0x40a3ad){const {group:_0x32dcba,type:_0x1eed07,subType:_0x2da8e8,id:_0x2ea107}=this['_splitMarkerName'](_0x388efa);if('suggestion'!==_0x32dcba)continue;const _0x2bfa4b=_0x2da8e8?'suggestion:'+_0x1eed07+':'+_0x2da8e8+':'+_0x2ea107:'suggestion:'+_0x1eed07+':'+_0x2ea107,_0x48cc01=_0x221009['model']['markers']['getMarkersGroup'](_0x2bfa4b),_0x12e1c2=_0x221009['model']['markers']['get'](_0x388efa),_0x41a17a=this['_suggestions']['get'](_0x2ea107);if(null!=_0x5c38e6['newRange']){'formatInline'==_0x1eed07&&(_0x5dc3f5=_0x5dc3f5||Wt(_0x5c38e6['newRange'],_0x388efa,_0x547609,_0x221009['model']['schema']));const _0x1981f9='attribute'==_0x1eed07&&this['_isBlockAttribute'](_0x2da8e8['split']('|')[0x0]),_0x50264a='attribute'==_0x1eed07&&this['_isInlineAttribute'](_0x2da8e8['split']('|')[0x0]);if(_0x5c38e6['newRange']['isCollapsed']||'$graveyard'==_0x5c38e6['newRange']['root']['rootName']||'formatBlock'==_0x1eed07&&!Qt(_0x5c38e6['newRange'])||_0x1981f9&&!Qt(_0x5c38e6['newRange'])||_0x50264a&&Xt(_0x5c38e6['newRange'])||'deletion'==_0x1eed07&&Xt(_0x5c38e6['newRange'])||_0x12e1c2&&Yt(_0x12e1c2,_0x48cc01))_0x547609['removeMarker'](_0x388efa),_0x5dc3f5=!0x0;else{if(!_0x41a17a||!_0x41a17a['isInContent'])continue;if(_0x5c38e6['newRange']&&_0x5c38e6['oldRange']&&_0x5c38e6['newRange']['isEqual'](_0x5c38e6['oldRange']))continue;_0x2ccc4a['add'](_0x41a17a);}}}return _0x2ccc4a['size']>0x0&&(_0x5dc3f5=!!this['_joinWithAdjacentSuggestions'](_0x2ccc4a)||_0x5dc3f5),_0x5dc3f5;}),_0x221009['model']['document']['registerPostFixer'](_0x3daf83=>{let _0x142970=!0x1;for(const _0x166972 of _0x221009['model']['document']['differ']['getChanges']())if('insert'==_0x166972['type'])for(const _0x214849 of this['_suggestions']['values']()){if(_0x214849['isMultiRange']||!_0x214849['isInContent'])continue;const _0x28e3c0='formatBlock'==_0x214849['type'],_0x1bfd80=this['_getAttributeKey'](_0x214849),_0x4e8770=_0x1bfd80&&this['_isBlockAttribute'](_0x1bfd80);if(!_0x28e3c0&&!_0x4e8770)continue;const _0x58dc15=_0x214849['getFirstRange']();if(_0x58dc15['start']['parent']!=_0x58dc15['end']['parent']&&!_0x58dc15['end']['isAtEnd']){const _0x1ec1d2=_0x221009['model']['createPositionAt'](_0x58dc15['start']['nodeAfter'],'end'),_0x2ed333=_0x221009['model']['createRange'](_0x58dc15['start'],_0x1ec1d2);_0x3daf83['updateMarker'](_0x214849['getFirstMarker'](),{'range':_0x2ed333}),_0x142970=!0x0;}}return _0x142970;}),_0x221009['model']['document']['registerPostFixer'](_0x1d7bf1=>this['_processAttributeChanges'](_0x1d7bf1)),_0x221009['model']['document']['registerPostFixer'](_0x2f3b1a=>!_0x2f3b1a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2f3b1a)),_0x221009['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x221009['model']['document']['on']('change:data',(_0x310b6d,_0xd95230)=>{if(!_0xd95230['isLocal']||_0xd95230['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xf0189c=_0x221009['model']['document']['differ']['getChanges']();if(0x0==_0xf0189c['length'])return;const _0x6b83b4=[],_0x73522f=_0xf0189c['filter'](_0x4f64e4=>'attribute'==_0x4f64e4['type']),_0x1a43fa=_0xf0189c['filter'](_0x20f3c3=>'insert'==_0x20f3c3['type']&&'$text'!=_0x20f3c3['name']);for(const _0x3e4255 of _0x73522f)this['_isRegisteredAttribute'](_0x3e4255['attributeKey'])&&_0x6b83b4['push']({'key':_0x3e4255['attributeKey'],'newValue':_0x3e4255['attributeNewValue'],'oldValue':_0x3e4255['attributeOldValue'],'range':Zt(_0x3e4255['range'],_0x221009['model'])});for(const _0x264963 of _0x1a43fa){if('rename'!=_0x264963['action']&&'refresh'!=_0x264963['action'])continue;const _0xb5d68d=tn(_0x264963['position']['nodeAfter'],_0x221009['model']),_0x4c654e=_0x264963['before'];'rename'==_0x264963['action']&&_0x6b83b4['push']({'key':m,'newValue':_0x264963['name'],'oldValue':_0x4c654e['name'],'range':_0xb5d68d});for(const [_0x2874f4,_0x418ed2]of _0x4c654e['attributes']){if(!this['_isRegisteredAttribute'](_0x2874f4))continue;const _0xe72f21=_0x264963['attributes']['get'](_0x2874f4);_0x418ed2!==_0xe72f21&&_0x6b83b4['push']({'key':_0x2874f4,'newValue':_0xe72f21,'oldValue':_0x418ed2,'range':_0xb5d68d});}for(const [_0x371ad5,_0x4e7132]of _0x264963['attributes'])this['_isRegisteredAttribute'](_0x371ad5)&&(_0x4c654e['attributes']['has'](_0x371ad5)||_0x6b83b4['push']({'key':_0x371ad5,'newValue':_0x4e7132,'oldValue':null,'range':_0xb5d68d}));}0x0!=_0x6b83b4['length']&&_0x221009['model']['enqueueChange'](_0xd95230,_0x1ab0ac=>{const _0x21b5f0=_0xcb588e();for(const {range:_0x5d622b,key:_0x39d4fe,oldValue:_0x5d030b,newValue:_0xa14494}of _0x6b83b4)this['markAttributeChange'](_0x5d622b,_0x39d4fe,_0x5d030b,_0xa14494,{'groupId':_0x21b5f0});this['_reduceExistingSuggestions'](_0x1ab0ac,_0x6b83b4);});},{'priority':'lowest'}),_0x221009['model']['markers']['on']('update:suggestion',(_0x127a98,_0x452c68,_0x373cd3)=>{if(null==_0x373cd3){const {id:_0x321a3a}=this['_splitMarkerName'](_0x452c68['name']),_0x2c0d73=this['_suggestions']['get'](_0x321a3a);_0x2c0d73&&_0x2c0d73['addMarkerName'](_0x452c68['name']);}}),_0x221009['model']['document']['on']('change:data',()=>{const _0x16ffa8=Array['from'](_0x221009['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3cd074=>'suggestion'===this['_splitMarkerName'](_0x3cd074['name'])['group']);if(0x0===_0x16ffa8['length'])return;_0x16ffa8['sort']((_0x48106d,_0x5cef47)=>{const _0x5428f2=_0x48106d['data']['oldRange'],_0x2593fe=_0x5cef47['data']['oldRange'];return null===_0x5428f2&&null===_0x2593fe?0x0:null===_0x5428f2&&null!==_0x2593fe?-0x1:null!==_0x5428f2&&null===_0x2593fe?0x1:_0x5428f2['start']['isBefore'](_0x2593fe['start'])?-0x1:0x1;});const _0x21d68f=new Set(),_0x506b18=new Set();for(const {name:_0x4d35ec,data:_0x8a722d}of _0x16ffa8){const {id:_0x24751f}=this['_splitMarkerName'](_0x4d35ec);if(null===_0x8a722d['oldRange']){const _0x42710f=this['_handleNewSuggestionMarker'](_0x4d35ec);_0x506b18['add'](_0x42710f);}else{const _0x7390da=this['_suggestions']['get'](_0x24751f);null!==_0x8a722d['newRange']||_0x7390da['isInContent']?(_0x21d68f['add'](_0x7390da['head']),_0x506b18['add'](_0x7390da)):this['_removeSuggestion'](_0x7390da);}}_0x506b18['size']>0x0&&this['_refreshSuggestionsChain'](_0x506b18);for(const _0x5d10ed of _0x21d68f)this['fire']('suggestionChanged',_0x5d10ed);}),_0x221009['model']['on']('applyOperation',(_0xb6b34e,_0x2e0f79)=>{const _0x1485ce=_0x2e0f79[0x0];if(!this['_suggestions']['size'])return;if(!_0x1485ce['isDocumentOperation'])return;if(_0x1485ce['batch']['isUndo']||!_0x1485ce['batch']['isLocal'])return;let _0x42a4ca,_0x5bbabf;switch(_0x1485ce['type']){case'insert':_0x42a4ca=_0x221009['model']['createPositionAt'](_0x1485ce['position']),_0x5bbabf=_0x42a4ca['getShiftedBy'](_0x1485ce['howMany']);break;case'split':_0x42a4ca=_0x221009['model']['createPositionAt'](_0x1485ce['splitPosition']),_0x5bbabf=_0x221009['model']['createPositionAt'](_0x1485ce['moveTargetPosition']);break;case'move':_0x42a4ca=_0x221009['model']['createPositionAt'](_0x1485ce['targetPosition']),_0x5bbabf=_0x42a4ca['getShiftedBy'](_0x1485ce['howMany']);break;default:return;}const _0x348c04=_0x221009['model']['createRange'](_0x42a4ca,_0x5bbabf);_0x221009['model']['change'](()=>{for(const {suggestion:_0x5a5b83,meta:_0x2ff17c}of this['_findSuggestions'](_0x348c04)){if(_0x5a5b83['isMultiRange'])continue;if('formatInline'==_0x5a5b83['type'])continue;const _0xb36a61=this['_getAttributeKey'](_0x5a5b83);if(_0xb36a61&&this['_isBlockAttribute'](_0xb36a61)&&'split'!=_0x1485ce['type'])continue;const _0x28ca0d=_0x5a5b83['data']&&_0x5a5b83['data']['multipleBlocks'];('formatBlock'!=_0x5a5b83['type']||'split'==_0x1485ce['type']&&!_0x28ca0d)&&(_0x2ff17c['containsRangeInObject']||'insertion'==_0x5a5b83['type']&&_0x2ff17c['isOwn']||_0x5a5b83['getFirstRange']()['containsRange'](_0x348c04)&&this['_breakSuggestionMarker'](_0x5a5b83,_0x42a4ca,_0x5bbabf));}});},{'priority':'lowest'}),_0x221009['model']['on']('deleteContent',(_0x3e7b31,_0x300635)=>{const _0x3cea0b=_0x300635[0x0],_0x33b3d5=_0x300635[0x1];if(_0x33b3d5&&_0x33b3d5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cea0b['isCollapsed'])return;const _0x2cc4be=_0x221009['model']['schema'],{start:_0xceb577,end:_0x1cc644}=_0x3cea0b['getFirstRange'](),_0x1c7143=_0xceb577['nodeAfter']&&_0x2cc4be['isLimit'](_0xceb577['nodeAfter'])?null:_0x2cc4be['getNearestSelectionRange'](_0xceb577,'forward'),_0x43c3ad=_0x1cc644['nodeBefore']&&_0x2cc4be['isLimit'](_0x1cc644['nodeBefore'])?null:_0x2cc4be['getNearestSelectionRange'](_0x1cc644,'backward'),_0x453362=_0x221009['model']['createRange'](_0x1c7143?_0x1c7143['start']:_0xceb577,_0x43c3ad?_0x43c3ad['end']:_0x1cc644);_0x221009['model']['change'](_0x4920de=>{this['markDeletion'](_0x453362);const _0x4bc1d8=_0x221009['model']['schema']['getNearestSelectionRange'](_0x453362['start']);_0x3cea0b['is']('documentSelection')?_0x4920de['setSelection'](_0x4bc1d8):_0x3cea0b['setTo'](_0x4bc1d8);}),_0x3e7b31['stop']();},{'priority':_0x104c24['normal']+0xa}),_0x221009['model']['on']('insertContent',(_0x2d1d0f,_0x41ca76)=>{const _0x7e47aa=_0x41ca76[_0x41ca76['length']-0x1];_0x7e47aa&&_0x7e47aa['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x221009['model']['change'](()=>{let _0x4c4ab6=_0x221009['model']['insertContent'](_0x41ca76[0x0],_0x41ca76[0x1],_0x41ca76[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c4ab6)return;_0x2d1d0f['return']=_0x4c4ab6['clone']();const _0x4362e0=_0x4c4ab6['end']['nodeBefore'],_0x2aaa8b=_0x221009['model']['schema'];_0x4362e0&&_0x2aaa8b['isBlock'](_0x4362e0)&&!_0x2aaa8b['isObject'](_0x4362e0)&&(_0x4c4ab6=_0x221009['model']['createRange'](_0x4c4ab6['start'],_0x221009['model']['createPositionAt'](_0x4362e0,'end'))),this['markInsertion'](_0x4c4ab6);}),_0x2d1d0f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c8ae3=new v(_0x221009,this['_suggestions']);_0x221009['commands']['add']('acceptSuggestion',_0x5c8ae3),this['enableCommand']('acceptSuggestion');const _0x51126d=new D(_0x221009,this['_suggestions']);_0x221009['commands']['add']('discardSuggestion',_0x51126d),this['enableCommand']('discardSuggestion'),_0x221009['commands']['add']('acceptAllSuggestions',new B(_0x221009,_0x5c8ae3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x221009['commands']['add']('discardAllSuggestions',new B(_0x221009,_0x51126d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x221009['commands']['add']('acceptSelectedSuggestions',new O(_0x221009,_0x5c8ae3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x221009['commands']['add']('discardSelectedSuggestions',new O(_0x221009,_0x51126d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3b8494=_0x221009['plugins']['get']('CommentsRepository');this['listenTo'](_0x3b8494,'addComment',(_0x17fc8d,{threadId:_0x3afab5})=>{const _0x3e9b44=this['_suggestions']['get'](_0x3afab5);_0x3e9b44&&_0x3e9b44['commentThread']&&0x1===_0x3e9b44['commentThread']['length']&&this['_updateSuggestionData'](_0x3afab5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3b8494,'removeComment',(_0x152c79,{threadId:_0x828b65})=>{const _0xc6aa98=this['_suggestions']['get'](_0x828b65);_0xc6aa98&&_0xc6aa98['commentThread']&&!_0xc6aa98['commentThread']['length']&&this['_updateSuggestionData'](_0x828b65,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x49a191){const _0x11b14e=_0x5f49dc([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]),_0x41a377=0x3d8d0df,_0x325194=0x3dfaaa7^_0x41a377,_0x21a789=window[_0x5f49dc([0x44,0x61,0x74,0x65])][_0x5f49dc([0x6e,0x6f,0x77])](),_0x2491a9=_0x49a191[_0x5f49dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x103f44=new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xad502c=>{_0x2491a9[_0x5f49dc([0x6f,0x6e,0x63,0x65])](_0x5f49dc([0x72,0x65,0x61,0x64,0x79]),_0xad502c);}),_0x1352a8={[_0x5f49dc([0x6b,0x74,0x79])]:_0x5f49dc([0x45,0x43]),[_0x5f49dc([0x75,0x73,0x65])]:_0x5f49dc([0x73,0x69,0x67]),[_0x5f49dc([0x63,0x72,0x76])]:_0x5f49dc([0x50,0x2d,0x32,0x35,0x36]),[_0x5f49dc([0x78])]:_0x5f49dc([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]),[_0x5f49dc([0x79])]:_0x5f49dc([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]),[_0x5f49dc([0x61,0x6c,0x67])]:_0x5f49dc([0x45,0x53,0x32,0x35,0x36])},_0x4a0829=_0x2491a9[_0x5f49dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f49dc([0x67,0x65,0x74])](_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x392eb2(){let _0x332f0b,_0x2b6797=null,_0x412aaf=null;try{if(_0x4a0829==_0x5f49dc([0x47,0x50,0x4c]))return _0x5f49dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x332f0b=_0x3d9823(),!_0x332f0b)return _0x5f49dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x332f0b[_0x5f49dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x412aaf=_0x370484(_0x332f0b[_0x5f49dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x332f0b[_0x5f49dc([0x6a,0x74,0x69])])),await _0x508092()?_0x493338()?_0x539451()?_0x5f49dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ecbf9()?(_0x332f0b[_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b6797=_0x7587d9(_0x5f49dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x332f0b[_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b6797=_0x7587d9(_0x5f49dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1cd738()):_0x5f49dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f49dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5f49dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x539451(){const _0x4b80a6=[_0x5f49dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f49dc([0x74,0x72,0x69,0x61,0x6c])][_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332f0b[_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21a789/0x3e8:0xe10*_0x325194;return _0x332f0b[_0x5f49dc([0x65,0x78,0x70])]<_0x4b80a6;}function _0x493338(){const _0x52ebdd=_0x332f0b[_0x5f49dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x52ebdd)return!0x1;if(_0x52ebdd[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49dc([0x2a])))return!0x0;if(_0x52ebdd[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49dc([0x54,0x43])))return!0x0;if(_0x52ebdd[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49dc([0x52,0x54,0x43]))){if(_0x321e00())return!0x0;if(_0x53dfe1()||_0x2cb541())return!0x0;}return!0x1;}function _0x3ecbf9(){const _0x178bb4=_0x332f0b[_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x178bb4||0x0==_0x178bb4[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17e8a7}=new URL(window[_0x5f49dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x178bb4[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17e8a7))return!0x0;const _0xa8f46=_0x17e8a7[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])](_0x5f49dc([0x2e]));return _0x178bb4[_0x5f49dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14e7a2=>_0x14e7a2[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49dc([0x2a])))[_0x5f49dc([0x6d,0x61,0x70])](_0x28b978=>_0x28b978[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])](_0x5f49dc([0x2e])))[_0x5f49dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1006cc=>_0x1006cc[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa8f46[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49dc([0x6d,0x61,0x70])](_0x429387=>Array(_0xa8f46[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x429387[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49dc([0x66,0x69,0x6c,0x6c])](_0x429387[0x0]===_0x5f49dc([0x2a])?_0x5f49dc([0x2a]):'')[_0x5f49dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x429387))[_0x5f49dc([0x73,0x6f,0x6d,0x65])](_0x3a61de=>_0xa8f46[_0x5f49dc([0x65,0x76,0x65,0x72,0x79])]((_0x397a82,_0x1b1c35)=>_0x3a61de[_0x1b1c35]===_0x397a82||_0x3a61de[_0x1b1c35]===_0x5f49dc([0x2a])));}function _0x1cd738(){return _0x2b6797&&_0x412aaf?new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdcde74,_0x1de755)=>{_0x2b6797[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0xdcde74,_0x1de755),_0x412aaf[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x62a681=>{_0x62a681!=_0x5f49dc([0x56,0x61,0x6c,0x69,0x64])&&_0xdcde74(_0x62a681);},_0x1de755);}):_0x2b6797||_0x412aaf||_0x5f49dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x370484(_0x234c09,_0xd780ae){return new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ebf3d=>{if(_0x5f3bd9())return _0x4ebf3d(_0x5f49dc([0x56,0x61,0x6c,0x69,0x64]));_0x3a497e(),_0x2491a9[_0x5f49dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f49dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ac7f6=!0x1;const _0x3f34db=_0xcb588e();function _0x3c07ed(_0x41170f){return!!_0x41170f&&(typeof _0x41170f===_0x5f49dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41170f===_0x5f49dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41170f[_0x5f49dc([0x74,0x68,0x65,0x6e])]===_0x5f49dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41170f[_0x5f49dc([0x63,0x61,0x74,0x63,0x68])]===_0x5f49dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f014b(_0x450fcf){_0x4d515c(_0x450fcf)[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x10d4f2=>{if(!_0x10d4f2||_0x10d4f2[_0x5f49dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f49dc([0x6f,0x6b]))return _0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ddd99(_0x44fb14(_0x3f34db+_0xd780ae))!=_0x10d4f2[_0x5f49dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x4f7695=>(_0x7b65e8(),_0x4f7695),()=>{const _0x223d89=_0x2b1abc();return null==_0x223d89?(_0x7b65e8(),_0x5f49dc([0x56,0x61,0x6c,0x69,0x64])):_0x5f49dc(_0x21a789-_0x223d89>(0x27d454df^_0x41a377)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x4ebf3d)[_0x5f49dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ebf3d(_0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36966b=0x3ee3e5f^_0x41a377;function _0x7b65e8(){const _0x4f4692=_0x5f49dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ddd99(_0x44fb14(_0x234c09)),_0x43cada=_0x291d5b(_0x4ddd99(window[_0x5f49dc([0x4d,0x61,0x74,0x68])][_0x5f49dc([0x63,0x65,0x69,0x6c])](_0x21a789/_0x36966b)));window[_0x5f49dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f4692,_0x43cada);}function _0x2b1abc(){const _0x5e1c63=_0x5f49dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ddd99(_0x44fb14(_0x234c09)),_0x1287ca=window[_0x5f49dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e1c63);return _0x1287ca?window[_0x5f49dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x291d5b(_0x1287ca),0x10)*_0x36966b:null;}function _0x4d515c(_0x18846e){return new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37f086,_0x311ce6)=>{_0x18846e[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x37f086,_0x311ce6),window[_0x5f49dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x311ce6,0x3d9041f^_0x41a377);});}}_0x2491a9[_0x5f49dc([0x6f,0x6e])](_0x5f49dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x246ac6,_0x406031)=>{if(_0x406031[0x0]!=_0x234c09)return _0x4ebf3d(_0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x406031[0x1]={..._0x406031[0x1],[_0x5f49dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f34db};},{[_0x5f49dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49dc([0x68,0x69,0x67,0x68])}),_0x2491a9[_0x5f49dc([0x6f,0x6e])](_0x5f49dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57768e=>{_0x3c07ed(_0x57768e[_0x5f49dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ac7f6=!0x0,_0x1f014b(_0x57768e[_0x5f49dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f49dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49dc([0x6c,0x6f,0x77])}),_0x103f44[_0x5f49dc([0x74,0x68,0x65,0x6e])](()=>{_0x5ac7f6||_0x4ebf3d(_0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f3bd9(){return _0x2491a9[_0x5f49dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49dc([0x76,0x69,0x65,0x77])][_0x5f49dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f49dc([0x61,0x75,0x74,0x6f]);}function _0x3a497e(){_0x2491a9[_0x5f49dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49dc([0x76,0x69,0x65,0x77])][_0x5f49dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f49dc([0x61,0x75,0x74,0x6f]);}}function _0x7587d9(_0x374e66){const _0x677e2c=[new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410401=>setTimeout(_0x410401,0x3d1ee13^_0x41a377)),_0x103f44[_0x5f49dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3394d0=>{let _0x27dd09=0x0;_0x2491a9[_0x5f49dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49dc([0x6f,0x6e])](_0x5f49dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3cdb45,_0x23e540)=>{_0x23e540[0x0][_0x5f49dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27dd09++,_0x27dd09==(0x3d8d127^_0x41a377)&&(_0x3394d0(),_0x3cdb45[_0x5f49dc([0x6f,0x66,0x66])]());});}))];return window[_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f49dc([0x72,0x61,0x63,0x65])](_0x677e2c)[_0x5f49dc([0x74,0x68,0x65,0x6e])](()=>_0x374e66);}async function _0x3c833a(){await _0x103f44,_0x2491a9[_0x5f49dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x290764,_0x2491a9[_0x5f49dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x290764,_0x2491a9[_0x5f49dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f49dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x321e00(){return _0x3b412e(_0x5f49dc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54e7e5(_0x5f49dc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f49dc([0x73,0x74,0x61,0x74,0x65])]==_0x5f49dc([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x53dfe1(){return _0x3b412e(_0x5f49dc([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 _0x2cb541(){return _0x3b412e(_0x5f49dc([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x31b042(_0x1139cf){const _0x5c91bb=_0x45cee4();_0x2491a9[_0x5c91bb]=_0x5f49dc([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1139cf,_0x1139cf!=_0x5f49dc([0x56,0x61,0x6c,0x69,0x64])&&_0x3c833a();}function _0x45cee4(){const _0x3dadda=window[_0x5f49dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f49dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f49dc([0x6e,0x6f,0x77])]())[_0x5f49dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f49dc([0x2e]),'');let _0x272111=_0x5f49dc([0x52]);for(let _0x2eac4a=0x0;_0x2eac4a<_0x3dadda[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eac4a+=0x2){let _0x29eb59=window[_0x5f49dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dadda[_0x5f49dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2eac4a,_0x2eac4a+0x2));_0x29eb59>=_0x11b14e[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29eb59-=_0x11b14e[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x272111+=_0x11b14e[_0x29eb59];}return _0x272111;}function _0x3d9823(){const _0x1a90c6=_0x4a0829[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])](_0x5f49dc([0x2e]));if(0x3!=_0x1a90c6[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ee452(_0x1a90c6[0x1]);function _0x2ee452(_0x172900){const _0x150e09=_0x4184fb(_0x172900);return _0x150e09&&_0x5ba6a4()?_0x150e09:null;function _0x5ba6a4(){const _0x449cf7=_0x150e09[_0x5f49dc([0x6a,0x74,0x69])],_0x20a66c=window[_0x5f49dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x449cf7[_0x5f49dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x449cf7[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b8eb9={..._0x150e09,[_0x5f49dc([0x6a,0x74,0x69])]:_0x449cf7[_0x5f49dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x449cf7[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b8eb9[_0x5f49dc([0x76,0x63])],_0x44fb14(_0x1b8eb9)==_0x20a66c;}}}async function _0x508092(){let _0x449c08=!0x0;try{const _0x3cc590=_0x4a0829[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])](_0x5f49dc([0x2e])),[_0x64a349,_0x554215,_0x37960b]=_0x3cc590;return _0x2ec3f5(_0x64a349),await _0x114391(_0x64a349,_0x554215,_0x37960b),_0x449c08;}catch{return!0x1;}function _0x2ec3f5(_0x58c188){const _0x12e126=_0x4184fb(_0x58c188);_0x12e126&&_0x12e126[_0x5f49dc([0x61,0x6c,0x67])]==_0x5f49dc([0x45,0x53,0x32,0x35,0x36])||(_0x449c08=!0x1);}async function _0x114391(_0x37dd4a,_0x2514df,_0x30c116){const _0x8cc34a=window[_0x5f49dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f49dc([0x66,0x72,0x6f,0x6d])](_0x3053b1(_0x30c116),_0x49de47=>_0x49de47[_0x5f49dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x374d6c=new window[(_0x5f49dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f49dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37dd4a+_0x5f49dc([0x2e])+_0x2514df),_0x4940f4=window[_0x5f49dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f49dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4940f4)return;const _0x3cc727=await _0x4940f4[_0x5f49dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f49dc([0x6a,0x77,0x6b]),_0x1352a8,{[_0x5f49dc([0x6e,0x61,0x6d,0x65])]:_0x5f49dc([0x45,0x43,0x44,0x53,0x41]),[_0x5f49dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f49dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f49dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4940f4[_0x5f49dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f49dc([0x6e,0x61,0x6d,0x65])]:_0x5f49dc([0x45,0x43,0x44,0x53,0x41]),[_0x5f49dc([0x68,0x61,0x73,0x68])]:{[_0x5f49dc([0x6e,0x61,0x6d,0x65])]:_0x5f49dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3cc727,_0x8cc34a,_0x374d6c)||(_0x449c08=!0x1);}}function _0x4184fb(_0x4fab30){return _0x4fab30[_0x5f49dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f49dc([0x65,0x79]))?JSON[_0x5f49dc([0x70,0x61,0x72,0x73,0x65])](_0x3053b1(_0x4fab30)):null;}function _0x3053b1(_0x591652){return window[_0x5f49dc([0x61,0x74,0x6f,0x62])](_0x591652[_0x5f49dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f49dc([0x2b]))[_0x5f49dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f49dc([0x2f])));}function _0x44fb14(_0x2c4d4d){let _0x504a2e=0x1505;function _0x4254fc(_0x56191e){for(let _0x507b97=0x0;_0x507b97<_0x56191e[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x507b97++){const _0x468f0d=_0x56191e[_0x5f49dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x507b97);_0x504a2e=(_0x504a2e<<0x5)+_0x504a2e+_0x468f0d,_0x504a2e&=_0x504a2e;}}function _0x2c3822(_0x3e633a){Array[_0x5f49dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e633a)?_0x3e633a[_0x5f49dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c3822):_0x3e633a&&typeof _0x3e633a==_0x5f49dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f49dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e633a)[_0x5f49dc([0x73,0x6f,0x72,0x74])]()[_0x5f49dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4dbe56,_0x30263e])=>{_0x4254fc(_0x4dbe56),_0x2c3822(_0x30263e);}):_0x4254fc(window[_0x5f49dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e633a));}return _0x2c3822(_0x2c4d4d),_0x504a2e>>>0x0;}function _0x4ddd99(_0x160467){return _0x160467[_0x5f49dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f49dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f49dc([0x30]));}function _0x291d5b(_0xb4fec9){return _0xb4fec9[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f49dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f49dc([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b412e(_0x56b848){return _0x2491a9[_0x5f49dc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f49dc([0x68,0x61,0x73])](_0x56b848);}function _0x54e7e5(_0x4a77bb){return _0x2491a9[_0x5f49dc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f49dc([0x67,0x65,0x74])](_0x4a77bb);}function _0x290764(){}function _0x5f49dc(_0xc157de){return _0xc157de['map'](_0x322e3e=>String['fromCharCode'](_0x322e3e))['join']('');}_0x31b042(await _0x392eb2());}(this);}set['adapter'](_0x5abb14){if(this['_adapter'])throw new _0x46a289('track-changes-adapter-already-set',this);this['_adapter']=_0x5abb14;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe12ada=!0x1,toJSON:_0x1ba7ef=!0x1}={}){const _0x1a24ea=[];for(const _0xd79574 of this['_suggestions']['values']())_0xe12ada&&!_0xd79574['isInContent']||_0x1a24ea['push'](_0xd79574);return _0x1ba7ef?_0x1a24ea['map'](_0x164e86=>_0x164e86['toJSON']()):_0x1a24ea;}['getSuggestion'](_0x2671bb){const _0x436a88=this['_suggestions']['get'](_0x2671bb);if(!_0x436a88)throw new _0x46a289('track-changes-suggestion-not-found',this);return _0x436a88;}['hasSuggestion'](_0xfa71a4){return this['_suggestions']['has'](_0xfa71a4);}['addSuggestionData'](_0xe8eb3a){const {authorId:_0x3e2dc2,id:_0x3f1d90,originalSuggestionId:_0x1b7225,attributes:_0x5b0c36}=_0xe8eb3a,[_0x4defb5,_0x1a5d2d]=_0xe8eb3a['type']['split'](':'),_0x559298=this['_suggestions']['get'](_0x3f1d90)||this['_createSuggestion'](_0x4defb5,_0x1a5d2d,_0x3f1d90,_0x3e2dc2,_0x5b0c36,_0x1b7225);if(this['_addThreadToSuggestion'](_0x559298),this['_checkSuggestionCorrectness'](_0x559298,_0x4defb5,_0x1a5d2d||null,_0x3e2dc2),_0x559298['createdAt']=_0xe8eb3a['createdAt'],_0x559298['_isDataLoaded']=!0x0,_0x5b0c36&&_0x5b0c36['@external']){const _0xa46bcc=_0x5b0c36['@external'],_0x1d0e35=this['_getExternalAuthor'](_0xa46bcc['authorName']);_0x559298['authoredAt']=_0xa46bcc['createdAt'],_0x559298['author']=_0x1d0e35,_0x559298['isExternal']=!0x0;}else _0x559298['authoredAt']=_0xe8eb3a['createdAt'];switch(_0xe8eb3a['data']&&(_0x559298['data']=_0xe8eb3a['data']),_0xe8eb3a['attributes']&&(_0x559298['attributes']=_0xe8eb3a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x559298['_saved']=!0x0),this['_suggestionState']['get'](_0x559298)){case'notReady':this['_suggestionState']['set'](_0x559298,'dataReady');break;case'markerReady':_0x559298['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x559298])),this['_refreshSuggestionsChain'](new Set([_0x559298])),this['_suggestionState']['set'](_0x559298,'ready'),this['fire']('suggestionLoaded',_0x559298)):this['_suggestionState']['set'](_0x559298,'removed');}return _0x559298;}['acceptSuggestion'](_0x3b4e18){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x476579 of _0x3b4e18['getAllAdjacentSuggestions']())_0x476579['accept']();});});}['discardSuggestion'](_0x7eff0e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf49c48 of _0x7eff0e['getAllAdjacentSuggestions']())_0xf49c48['discard']();});});}['enableCommand'](_0x4d4994,_0x19436a){const _0x1de47a=this['editor']['commands']['get'](_0x4d4994);if(!_0x1de47a)throw new _0x46a289('track-changes-command-not-found',this,{'commandName':_0x4d4994});if(this['_enabledCommands']['has'](_0x1de47a))throw new _0x46a289('track-changes-enable-command-twice',this,{'commandName':_0x4d4994});this['_enabledCommands']['add'](_0x1de47a),_0x19436a&&_0x1de47a['on']('execute',(_0x4a5b0d,_0x418dbc)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x418dbc['length']>0x0&&_0x418dbc[_0x418dbc['length']-0x1]&&_0x418dbc[_0x418dbc['length']-0x1]['forceDefaultExecution']?_0x418dbc['pop']():(_0x4a5b0d['return']=_0x19436a((..._0x33172d)=>_0x1de47a['execute'](..._0x33172d,{'forceDefaultExecution':!0x0}),..._0x418dbc),_0x4a5b0d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2a0b4b){let _0x579628,_0x1b1ffc;const _0x124810=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x579628=_0x2a0b4b();}catch(_0xfa3c29){_0x1b1ffc=_0xfa3c29;}return _0x124810||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b1ffc&&_0x46a289['rethrowUnexpectedError'](_0x1b1ffc,this),_0x579628;}['markInsertion'](_0x259477,_0x9fd4bf=null,_0x12f5d8={}){if(_0x259477['isCollapsed'])return null;const _0x59de3a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x12f5d8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5cd000,meta:_0x1adc4b}of this['_findSuggestions'](_0x259477,'insertion'))if(_0x1adc4b['isOwn']){if(!_0x1adc4b['isNextTo']){if(_0x1adc4b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x5cd000,_0x12f5d8))continue;return _0x5cd000;}if(sn(_0x5cd000,_0x12f5d8))return _0x5cd000;this['_breakSuggestionMarker'](_0x5cd000,_0x259477['start'],_0x259477['end']);break;}if(_0x9fd4bf==_0x5cd000['subType']&&sn(_0x5cd000,_0x12f5d8)){const _0x3a00af=_0x5cd000['getFirstRange']();return _0x3a00af['start']['isEqual'](_0x259477['end'])?this['_setSuggestionRange'](_0x5cd000,this['_model']['createRange'](_0x259477['start'],_0x3a00af['end'])):this['_setSuggestionRange'](_0x5cd000,this['_model']['createRange'](_0x3a00af['start'],_0x259477['end'])),_0x5cd000;}}const _0x3d86e3=_0xcb588e(),_0x23024f=_0x59de3a['id'],_0x2cff54=_0x9fd4bf?'insertion:'+_0x9fd4bf:'insertion',_0x151083=this['_setSuggestionData']({'id':_0x3d86e3,'type':_0x2cff54,'createdAt':new Date(),'authorId':_0x23024f,'attributes':_0x12f5d8});return this['_addSuggestionMarker'](_0x2cff54,_0x3d86e3,_0x23024f,_0x259477),_0x151083;}['markMultiRangeInsertion'](_0x3dd221,_0x4d5e4f='multi',_0x158406={}){const _0x2b5e20=this['editor']['plugins']['get']('Users')['me'],_0x63d72b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4d5e4f,'join');this['_trackingSessionId']&&(_0x158406['trackingSessionId']=this['_trackingSessionId']);for(const _0x558481 of this['getSuggestions']())if(_0x558481['author']['id']==_0x2b5e20['id']&&'insertion'==_0x558481['type']&&_0x558481['subType']==_0x4d5e4f&&sn(_0x558481,_0x158406)&&(_0x63d72b(_0x558481['getRanges'](),_0x3dd221)||_0x63d72b(_0x3dd221,_0x558481['getRanges']()))){for(const _0x4eff07 of _0x3dd221)_0x558481['addRange'](_0x4eff07);return _0x558481;}for(const {suggestion:_0x4b4eb0,meta:_0x786f65}of this['_findSuggestions'](_0x3dd221,'insertion')){if(!_0x786f65['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x786f65['containsRangeInObject'])continue;if(!sn(_0x4b4eb0,_0x158406))continue;let _0x67e945=!0x0;for(const _0x19f57c of _0x4b4eb0['getRanges']())for(const _0x1137bb of _0x3dd221)if(!_0x19f57c['containsRange'](_0x1137bb)){_0x67e945=!0x1;break;}if(_0x67e945)return _0x4b4eb0;}const _0x123050=_0xcb588e(),_0x201037=_0x2b5e20['id'],_0x1e15be='insertion:'+_0x4d5e4f,_0x2a515f=this['_setSuggestionData']({'id':_0x123050,'type':_0x1e15be,'createdAt':new Date(),'authorId':_0x201037,'attributes':_0x158406});for(const _0x2adb2d of _0x3dd221)this['_addSuggestionMarker'](_0x1e15be,_0x123050,_0x201037,_0x2adb2d,x['getMultiRangeId']());return _0x2a515f;}['markInlineFormat'](_0xa2b7e5,_0x349685,_0x1842f1=null,_0x22e446={}){if(_0x1842f1=_0x1842f1||Ht(_0x349685),_0xa2b7e5['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x22e446['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ff110=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1842f1,'accept');return this['forceDefaultExecution'](()=>_0x1ff110([_0xa2b7e5],_0x349685,_0x22e446)),null;}const _0x260256=this['editor']['plugins']['get']('Users')['me'],_0x5e4b00=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ba6bd,meta:_0x179ef1}of this['_findSuggestions'](_0xa2b7e5,'insertion'))_0x179ef1['isOwn']&&!_0x179ef1['isInsideObject']&&_0x5e4b00['push'](..._0x3ba6bd['getRanges']());}const _0x23f026=function(_0x546ac2,_0x57092b){const _0x533643=[];for(const _0xae29f9 of _0x57092b){const _0x277595=_0x546ac2['getIntersection'](_0xae29f9);_0x277595&&_0x533643['push'](_0x277595);}return _0x533643;}(_0xa2b7e5,_0x5e4b00),_0x1488e1=function(_0x44cdc3,_0x368933){const _0x24c5d4=[_0x44cdc3];for(const _0x3a9d44 of _0x368933){let _0xd91cd6=0x0;for(;_0xd91cd6<_0x24c5d4['length'];){const _0x17e8b1=_0x24c5d4[_0xd91cd6]['getDifference'](_0x3a9d44);_0x24c5d4['splice'](_0xd91cd6,0x1,..._0x17e8b1),_0xd91cd6+=_0x17e8b1['length'];}}return _0x24c5d4;}(_0xa2b7e5,_0x5e4b00);_0x23f026['length']&&this['_model']['change'](()=>{for(const _0x2db17f of _0x23f026){const _0x2930ca=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1842f1,'accept');this['forceDefaultExecution'](()=>_0x2930ca([_0x2db17f],_0x349685,_0x22e446));}});for(const _0x4788ba of _0x1488e1){let _0x34b0f7=null,_0x3e1006=_0x4788ba['start'],_0x1bc4e4=_0x4788ba['end'];for(const {suggestion:_0x2e2e2a,meta:_0x4d4c56}of this['_findSuggestions'](_0x4788ba,'formatInline')){if(!_0x4d4c56['isOwn'])continue;if(_0x2e2e2a['subType']!=_0x1842f1)continue;if(!sn(_0x2e2e2a,_0x22e446))continue;const _0x4c70b3=_0x2e2e2a['getFirstRange']();if(_0x4c70b3['containsRange'](_0x4788ba,!0x0))return null;_0x3e1006=_0x3e1006['isBefore'](_0x4c70b3['start'])?_0x3e1006:_0x4c70b3['start'],_0x1bc4e4=_0x1bc4e4['isAfter'](_0x4c70b3['end'])?_0x1bc4e4:_0x4c70b3['end'],_0x34b0f7?_0x4c70b3['start']['isBefore'](_0x34b0f7['getFirstRange']()['start'])?(_0x34b0f7['removeMarkers'](),_0x34b0f7=_0x2e2e2a):_0x2e2e2a['removeMarkers']():_0x34b0f7=_0x2e2e2a;}const _0x5883a1=this['_model']['createRange'](_0x3e1006,_0x1bc4e4);if(_0x34b0f7)this['_setSuggestionRange'](_0x34b0f7,_0x5883a1);else{const _0x4cfb06=_0xcb588e(),_0x318abb=_0x260256['id'];this['_setSuggestionData']({'id':_0x4cfb06,'type':'formatInline:'+_0x1842f1,'data':_0x349685,'createdAt':new Date(),'authorId':_0x318abb,'attributes':_0x22e446}),this['_addSuggestionMarker']('formatInline:'+_0x1842f1,_0x4cfb06,_0x318abb,_0x5883a1);}}return null;}['markBlockFormat'](_0x325cde,_0x308513,_0x4e6f78=[],_0x28bd4f=null,_0x460ef9={}){_0x308513['formatGroupId']||(_0x308513['formatGroupId']=_0x308513['commandName']),_0x308513['multipleBlocks']=_0x325cde['is']('range'),_0x28bd4f=_0x28bd4f||Ht(_0x308513);const _0x3a71e9=_0x4e6f78['map'](_0x439d9e=>tn(_0x439d9e,this['_model'])),_0x28aac1=_0x325cde['is']('range')?_0x325cde:tn(_0x325cde,this['_model']);if(this['_trackingSessionId']&&(_0x460ef9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c0ec7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28bd4f,'accept');return this['forceDefaultExecution'](()=>_0x1c0ec7([_0x28aac1],_0x308513,_0x460ef9)),null;}_0x3a71e9['push'](_0x28aac1);let _0x5f5ab4=!0x0;for(const _0x1c52ff of _0x3a71e9)if(!this['_rangeIsInLocalUserInsertion'](_0x1c52ff)){_0x5f5ab4=!0x1;break;}if(_0x5f5ab4&&'always'!==this['_trackFormatChanges']){const _0x13ce83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28bd4f,'accept');return this['forceDefaultExecution'](()=>_0x13ce83([_0x28aac1],_0x308513,_0x460ef9)),null;}let _0x4e2848=null,_0x53579d=_0x28aac1['start'],_0xeefb81=_0x28aac1['end'];for(const {suggestion:_0x4777e9,meta:_0x290467}of this['_findSuggestions'](_0x28aac1,'formatBlock')){if(!_0x290467['isOwn'])continue;if(_0x290467['isNextTo']||_0x290467['containsRangeInObject']||_0x290467['isInsideObject'])continue;if(_0x4777e9['data']['formatGroupId']!=_0x308513['formatGroupId'])continue;if(!sn(_0x4777e9,_0x460ef9))continue;const _0x4107b3=_0x4777e9['getFirstRange']();if(_0x4777e9['subType']==_0x28bd4f){if(_0x4107b3['containsRange'](_0x28aac1,!0x0))return null;_0x53579d=_0x53579d['isBefore'](_0x4107b3['start'])?_0x53579d:_0x4107b3['start'],_0xeefb81=_0xeefb81['isAfter'](_0x4107b3['end'])?_0xeefb81:_0x4107b3['end'],_0x4e2848?_0x4107b3['start']['isBefore'](_0x4e2848['getFirstRange']()['start'])?(_0x4e2848['removeMarkers'](),_0x4e2848=_0x4777e9):_0x4777e9['removeMarkers']():_0x4e2848=_0x4777e9;}else{const _0x526821=_0x28aac1['getIntersection'](_0x4107b3);this['_cutOutSuggestionMarker'](_0x4777e9,_0x526821);}}const _0xa45cbf=this['editor']['plugins']['get']('Users')['me'],_0x492e26=_0xcb588e(),_0x956dcf=_0xa45cbf['id'];if(_0x4e2848)return this['_setSuggestionRange'](_0x4e2848,this['_model']['createRange'](_0x53579d,_0xeefb81)),_0x4e2848;{const _0x55e44d=this['_setSuggestionData']({'id':_0x492e26,'type':'formatBlock:'+_0x28bd4f,'data':_0x308513,'createdAt':new Date(),'authorId':_0x956dcf,'attributes':_0x460ef9});return this['_addSuggestionMarker']('formatBlock:'+_0x28bd4f,_0x492e26,_0x956dcf,this['_model']['createRange'](_0x53579d,_0xeefb81)),_0x55e44d;}}['markMultiRangeBlockFormat'](_0x120e1c,_0xfd1dfb,_0x2e4fa7=[],_0x16384a=null,_0xd1b87f={}){_0xfd1dfb['formatGroupId']||(_0xfd1dfb['formatGroupId']=_0xfd1dfb['commandName']);const _0x4e3cfb=_0x120e1c[0x0];_0xfd1dfb['multipleBlocks']=_0x4e3cfb['is']('range'),_0x16384a=_0x16384a||Ht(_0xfd1dfb);const _0x2523ea=_0x2e4fa7['map'](_0x2a6737=>tn(_0x2a6737,this['_model'])),_0xa1b8bc=_0x4e3cfb['is']('range')?_0x120e1c:_0x120e1c['map'](_0x24ca0d=>tn(_0x24ca0d,this['_model']));if(this['_trackingSessionId']&&(_0xd1b87f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f4028=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16384a,'accept');return this['forceDefaultExecution'](()=>_0x1f4028(_0xa1b8bc,_0xfd1dfb,_0xd1b87f)),null;}_0x2523ea['push'](..._0xa1b8bc);let _0x286cdb=!0x0;for(const _0x36275d of _0x2523ea)if(!this['_rangeIsInLocalUserInsertion'](_0x36275d)){_0x286cdb=!0x1;break;}if(_0x286cdb&&'always'!==this['_trackFormatChanges']){const _0x4c74e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16384a,'accept');return this['forceDefaultExecution'](()=>_0x4c74e2(_0xa1b8bc,_0xfd1dfb,_0xd1b87f)),null;}const _0x91815c=this['editor']['plugins']['get']('Users')['me'];for(const _0x542877 of this['getSuggestions']()){const _0x3eb162=_0x542877['data'];if(_0x542877['author']['id']!=_0x91815c['id'])continue;if('formatBlock'!=_0x542877['type']||_0x3eb162['formatGroupId']!=_0xfd1dfb['formatGroupId'])continue;if(!sn(_0x542877,_0xd1b87f))continue;const _0x34ca87=_0x542877['subType']==_0x16384a;for(let _0xaea0c1=0x0;_0xaea0c1<_0xa1b8bc['length'];_0xaea0c1++){const _0x2e02d7=_0xa1b8bc[_0xaea0c1];for(const _0x18d1aa of _0x542877['getMarkers']()){const _0x4ac162=_0x18d1aa['getRange']();if(_0x2e02d7['isEqual'](_0x4ac162)){_0x34ca87?(_0xa1b8bc['splice'](_0xaea0c1,0x1),_0xaea0c1--):_0x542877['removeMarker'](_0x18d1aa['name']);break;}}}}if(0x0==_0xa1b8bc['length'])return null;const _0x39f3b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16384a,'join');for(const _0x30d637 of this['getSuggestions']()){const _0x460bc5=_0x30d637['data'];if(_0x30d637['author']['id']==_0x91815c['id']&&('formatBlock'==_0x30d637['type']&&_0x460bc5['formatGroupId']==_0xfd1dfb['formatGroupId']&&_0x30d637['subType']==_0x16384a&&sn(_0x30d637,_0xd1b87f)&&(_0x39f3b9(_0x30d637['getRanges'](),_0xa1b8bc)||_0x39f3b9(_0xa1b8bc,_0x30d637['getRanges']())))){for(const _0x51f91b of _0xa1b8bc)_0x30d637['addRange'](_0x51f91b);return _0x30d637;}}const _0x4dccaf=_0xcb588e(),_0x556b6e=_0x91815c['id'],_0x435e72='formatBlock:'+_0x16384a,_0x2de547=this['_setSuggestionData']({'id':_0x4dccaf,'type':_0x435e72,'data':_0xfd1dfb,'createdAt':new Date(),'authorId':_0x556b6e,'attributes':_0xd1b87f});for(const _0x57cd1c of _0xa1b8bc)this['_addSuggestionMarker'](_0x435e72,_0x4dccaf,_0x556b6e,_0x57cd1c,x['getMultiRangeId']());return _0x2de547;}['markDeletion'](_0x70cddf,_0x5dd79a=null,_0x4e7ef3={}){if(_0x70cddf['isCollapsed'])return null;const _0x410ae3=this['editor']['plugins']['get']('Users')['me'],_0x104d76=new _0x2f9bba(_0x70cddf['start'],_0x70cddf['end']);this['_trackingSessionId']&&(_0x4e7ef3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2f0fbb,meta:_0x2840d6}of this['_findSuggestions'](_0x104d76,'insertion'))if(_0x2840d6['isOwn']&&!_0x2840d6['isNextTo']){if(_0x2f0fbb['isMultiRange']){const _0x4da560=_0x2f0fbb['getRanges']()['filter'](_0x3bf753=>'$graveyard'!=_0x3bf753['root']['rootName']);_0x4da560['every'](_0x4933a7=>_0x104d76['containsRange'](_0x4933a7,!0x0))&&_0x2f0fbb['discard']();if(_0x4da560['some'](_0x9eb5f2=>_0x9eb5f2['containsRange'](_0x104d76,!0x0))){const _0x1a9cd4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dd79a,'accept');return this['forceDefaultExecution'](()=>_0x1a9cd4([_0x104d76],null,_0x4e7ef3)),null;}}else{const _0x2e0a31=_0x104d76['getIntersection'](_0x2f0fbb['getFirstRange']());null!==_0x2e0a31&&_0x2f0fbb['_onDiscard']([_0x2e0a31],null,_0x4e7ef3);}}if(_0x104d76['detach'](),_0x104d76['isCollapsed']||'$graveyard'==_0x104d76['root']['rootName'])return null;let _0x5e6b44=null,_0x35059c=_0x104d76['start'],_0x403646=_0x104d76['end'];const _0x43c1eb=this['_findSuggestions'](_0x104d76,'deletion');for(const {suggestion:_0x34bd77,meta:_0x5dafd1}of _0x43c1eb){const _0x251db9=this['_model']['createRange'](_0x35059c,_0x403646);if(_0x5dafd1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5dafd1['containsRangeInObject']&&!_0x5dafd1['isInsideObject'])){if(_0x34bd77['isMultiRange']){if(!sn(_0x34bd77,_0x4e7ef3))continue;let _0x5d4878=!0x0;for(const _0x4a5b90 of _0x34bd77['getRanges']()){if(_0x4a5b90['containsRange'](_0x251db9,!0x0))return _0x34bd77;_0x251db9['containsRange'](_0x4a5b90)||(_0x5d4878=!0x1);}_0x5d4878&&_0x34bd77['discard']();}else{const _0x5880e3=_0x34bd77['getFirstRange']();if(_0x5880e3['containsRange'](_0x251db9,!0x0))return _0x34bd77;if(!sn(_0x34bd77,_0x4e7ef3)){_0x251db9['containsRange'](_0x5880e3)?_0x34bd77['removeMarkers']():_0x5880e3['containsPosition'](_0x35059c)?_0x35059c=_0x5880e3['end']:_0x5880e3['containsPosition'](_0x403646)&&(_0x403646=_0x5880e3['start']);continue;}_0x35059c=_0x35059c['isBefore'](_0x5880e3['start'])?_0x35059c:_0x5880e3['start'],_0x403646=_0x403646['isAfter'](_0x5880e3['end'])?_0x403646:_0x5880e3['end'],_0x4e7ef3=Object['assign']({},_0x34bd77['attributes']),_0x5e6b44?_0x5880e3['start']['isBefore'](_0x5e6b44['getFirstRange']()['start'])?(_0x5e6b44['removeMarkers'](),_0x5e6b44=_0x34bd77):_0x34bd77['removeMarkers']():_0x5e6b44=_0x34bd77;}}}if(_0x5e6b44)return this['_setSuggestionRange'](_0x5e6b44,this['_model']['createRange'](_0x35059c,_0x403646)),_0x5e6b44;{const _0x51b291=_0xcb588e(),_0xc07156=this['_model']['createRange'](_0x35059c,_0x403646),_0x4de002=_0x410ae3['id'],_0x48dd28=_0x5dd79a?'deletion:'+_0x5dd79a:'deletion',_0x1c44e4=this['_setSuggestionData']({'id':_0x51b291,'type':_0x48dd28,'createdAt':new Date(),'authorId':_0x4de002,'attributes':_0x4e7ef3});return this['_addSuggestionMarker'](_0x48dd28,_0x51b291,_0x4de002,_0xc07156),_0x1c44e4;}}['markMultiRangeDeletion'](_0x362a11,_0x27df94='multi',_0x11ae26={}){const _0x4c1938=this['editor']['plugins']['get']('Users')['me'],_0x5dcaec=_0x362a11['map'](_0x4c960c=>new _0x2f9bba(_0x4c960c['start'],_0x4c960c['end'])),_0x55414b=new Set();this['_trackingSessionId']&&(_0x11ae26['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x501e6c,meta:_0x5e8b28}of this['_findSuggestions'](_0x5dcaec,'insertion'))_0x5e8b28['isOwn']&&!_0x5e8b28['isNextTo']&&_0x55414b['add'](_0x501e6c);for(const _0x3f93f3 of _0x55414b)if(_0x3f93f3['isMultiRange']){const _0x21f65c=_0x3f93f3['getRanges']();(!_0x3f93f3['attributes']||!_0x3f93f3['attributes']['skipNestingCheck'])&&(_0x21f65c['every'](_0x38970c=>_0x5dcaec['some'](_0x583ade=>_0x583ade['containsRange'](_0x38970c,!0x0)))&&_0x3f93f3['discard']());if(_0x5dcaec['every'](_0xaa3a13=>_0x21f65c['some'](_0xa6c60e=>_0xa6c60e['containsRange'](_0xaa3a13,!0x0)))){const _0x41f342=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27df94,'accept');return this['forceDefaultExecution'](()=>_0x41f342(_0x362a11,null,_0x11ae26)),null;}}else{const _0x36d630=_0x3f93f3['getFirstRange']();_0x5dcaec['some'](_0x5d259e=>_0x5d259e['containsRange'](_0x36d630,!0x0))&&_0x3f93f3['discard']();if(_0x5dcaec['every'](_0x94ab28=>_0x36d630['containsRange'](_0x94ab28,!0x0))){const _0x4c6c4c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27df94,'accept');return this['forceDefaultExecution'](()=>_0x4c6c4c(_0x5dcaec,null,_0x11ae26)),null;}}const _0x3004f8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27df94,'join');let _0xb5234=null;for(const _0x4dd1e8 of this['getSuggestions']())if(_0x4dd1e8['author']['id']==_0x4c1938['id']&&_0x4dd1e8['isInContent']&&'deletion'==_0x4dd1e8['type']&&_0x4dd1e8['subType']==_0x27df94&&sn(_0x4dd1e8,_0x11ae26)&&(_0x3004f8(_0x4dd1e8['getRanges'](),_0x5dcaec)||_0x3004f8(_0x5dcaec,_0x4dd1e8['getRanges']()))){if(_0xb5234){if(_0x4dd1e8['commentThread']&&_0x4dd1e8['commentThread']['length'])continue;for(const _0x33234d of _0x4dd1e8['getRanges']())_0xb5234['isIntersectingWithRange'](_0x33234d)||_0xb5234['addRange'](_0x33234d);_0x4dd1e8['removeMarkers']();}else{_0xb5234=_0x4dd1e8;for(const _0x45e427 of _0x5dcaec)_0x4dd1e8['isIntersectingWithRange'](_0x45e427)||_0x4dd1e8['addRange'](_0x45e427);}}if(_0xb5234)return _0xb5234;_0x55414b['clear']();for(const {suggestion:_0x468d8c,meta:_0x543938}of this['_findSuggestions'](_0x5dcaec,'deletion'))_0x543938['isOwn']&&(this['_mergeNestedSuggestions']||!_0x543938['containsRangeInObject']&&!_0x543938['isInsideObject'])&&sn(_0x468d8c,_0x11ae26)&&_0x55414b['add'](_0x468d8c);for(const _0x102f22 of _0x55414b){const _0x4f82e1=_0x102f22['getRanges']();if(!_0x11ae26||!_0x11ae26['skipNestingCheck']){if(_0x5dcaec['every'](_0x10ff4e=>_0x4f82e1['some'](_0x165304=>_0x165304['containsRange'](_0x10ff4e,!0x0))))return _0x102f22;}(!_0x102f22['attributes']||!_0x102f22['attributes']['skipNestingCheck'])&&(_0x4f82e1['every'](_0x1f68fd=>_0x5dcaec['some'](_0x1c7947=>_0x1c7947['containsRange'](_0x1f68fd,!0x0)))&&_0x102f22['discard']());}const _0x1a0e51=_0xcb588e(),_0x43882d=_0x4c1938['id'],_0x5f2f0b='deletion:'+_0x27df94,_0x4ebda7=this['_setSuggestionData']({'id':_0x1a0e51,'type':_0x5f2f0b,'createdAt':new Date(),'authorId':_0x43882d,'attributes':_0x11ae26});for(const _0xd58624 of _0x5dcaec)_0xd58624['detach'](),_0xd58624['isCollapsed']||'$graveyard'==_0xd58624['root']['rootName']||this['_addSuggestionMarker'](_0x5f2f0b,_0x1a0e51,_0x43882d,_0xd58624,x['getMultiRangeId']());return _0x4ebda7;}['markAttributeChange'](_0x211751,_0x1967bd,_0xda5e90,_0xd32b3b,_0x4b321b){if(_0x211751['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd145ba=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b6fa=Array['from'](this['_suggestions']['values']())['filter'](_0x3cb24b=>'attribute'==_0x3cb24b['type']&&_0x3cb24b['data']['key']==_0x1967bd&&_0x3cb24b['isIntersectingWithRange'](_0x211751));if(this['_trackingSessionId']&&(_0x4b321b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x29a5fa=this['_findSuggestions'](_0x211751,'insertion')['filter'](({meta:_0x3f65b8})=>_0x3f65b8['isOwn']&&!_0x3f65b8['isInsideObject']&&!_0x3f65b8['isNextTo'])['map'](({suggestion:_0x3061c6})=>_0x3061c6);_0x4b6fa['unshift'](..._0x29a5fa);}const _0x4b9743=new Map([[_0x211751,_0xda5e90]]);for(const _0x2e829f of _0x4b6fa){const _0x157d2e='attribute'==_0x2e829f['type']?_0x2e829f['data']['oldValue']:void 0x0,_0x2736eb=_0x2e829f['getFirstRange'](),_0x455da1=Array['from'](_0x4b9743['keys']())['find'](_0x18e582=>_0x18e582['isIntersecting'](_0x2736eb));if(!_0x455da1)continue;const _0x4d84b8=_0x455da1['getDifference'](_0x2736eb);this['_isBlockAttribute'](_0x1967bd)&&'insertion'==_0x2e829f['type']&&0x0!=_0x4d84b8['length']||(_0x4b9743['delete'](_0x455da1),_0x4d84b8['forEach'](_0x4a513b=>{_0x4b9743['set'](_0x4a513b,_0xda5e90);}),'insertion'!=_0x2e829f['type']&&_0x157d2e!=_0xd32b3b&&_0x4b9743['set'](_0x455da1['getIntersection'](_0x2736eb),_0x157d2e));}const _0x439bbe=[];for(const [_0xe55489,_0x46dac2]of _0x4b9743){const _0x2253cd=_0xcb588e(),_0x32ab50={'key':_0x1967bd,'oldValue':_0x46dac2,'newValue':_0xd32b3b};_0x1967bd['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':_0x1967bd});const _0x20227b=('attribute:'+(_0x1967bd+'|'+Ht({'newValue':_0xd32b3b})))['substring'](0x0,0x3c),_0x4e81bd=this['_setSuggestionData']({'id':_0x2253cd,'type':_0x20227b,'data':_0x32ab50,'createdAt':new Date(),'authorId':_0xd145ba,'attributes':_0x4b321b});_0x439bbe['push'](_0x4e81bd),this['_addSuggestionMarker'](_0x20227b,_0x2253cd,_0xd145ba,_0xe55489);}return _0x439bbe;}['enableDefaultAttributesIntegration'](_0x2817fd){this['enableCommand'](_0x2817fd,(_0x56f51e,..._0x1f2226)=>{this['recordAttributeChanges'](()=>{_0x56f51e(..._0x1f2226);});});}['registerBlockAttribute'](_0x3c9d7c){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x3c9d7c);}['registerInlineAttribute'](_0x5047f3){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x5047f3);}['startTrackingSession'](_0x19eddb){return this['_trackingSessionId']=void 0x0!==_0x19eddb?_0x19eddb:_0xcb588e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5c5fd1){return'attribute'==_0x5c5fd1['type']?_0x5c5fd1['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x342055){if(0x0==_0x342055['length'])return;const _0x72ed6e=this['editor'],_0x78b01f=_0x72ed6e['plugins']['get'](_0x392ee9),_0x2ebfb2=[];_0x72ed6e['model']['change'](_0x194c8a=>{for(let _0x28badc=0x0;_0x28badc<_0x342055['length'];_0x28badc++){const _0x4a0abe=_0x342055[_0x28badc];if(_0x4a0abe['baseVersion']=_0x72ed6e['model']['document']['version'],_0x4a0abe['isDocumentOperation']=!0x0,_0x78b01f['isMarkedRemoveOperation'](_0x4a0abe)){const _0x14c4f3=Lt(_0x4a0abe['newRange'],_0x72ed6e['model']);_0x2ebfb2['unshift'](_0x2f9bba['fromRange'](_0x14c4f3));}else switch(_0x4a0abe['type']){case'rename':{const _0x2b9e70=_0x4a0abe['oldName'],_0xee4f31=_0x4a0abe['newName'];if(_0x2b9e70==_0xee4f31)break;_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);const _0x19dc4a='$elementName',_0xa77b0b=_0x4a0abe['position'],_0x39e4eb=_0x72ed6e['model']['createRange'](_0xa77b0b,_0x72ed6e['model']['createPositionAt'](_0xa77b0b['nodeAfter'],'end'));this['markAttributeChange'](_0x39e4eb,_0x19dc4a,_0x2b9e70,_0xee4f31,{'groupId':_0xcb588e()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x11925a=_0x4a0abe['oldValue'],_0x2ca40c=_0x4a0abe['newValue'];if(_0x11925a==_0x2ca40c)break;_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);const _0x12bccf=_0x4a0abe['key'];if(!this['_isRegisteredAttribute'](_0x12bccf))break;const _0x14934e=Lt(_0x4a0abe['range'],_0x72ed6e['model']);this['markAttributeChange'](_0x14934e,_0x12bccf,_0x11925a,_0x2ca40c,{'groupId':_0xcb588e()});break;}case'insert':{_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);if(_0x342055[_0x28badc+0x1]&&'move'==_0x342055[_0x28badc+0x1]['type'])break;const _0x4b449b=_0x4a0abe['position'],_0x478e63=_0x4a0abe['howMany'],_0x21b8bf=Lt(_0x72ed6e['model']['createRange'](_0x4b449b,_0x4b449b['getShiftedBy'](_0x478e63)),_0x72ed6e['model']);this['markInsertion'](_0x21b8bf);break;}case'split':{_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);const _0x1df92a=_0x4a0abe['splitPosition'],_0x3fdba0=_0x4a0abe['moveTargetPosition'];this['markInsertion'](_0x72ed6e['model']['createRange'](_0x1df92a,_0x3fdba0));break;}case'move':case'remove':_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);}}for(const _0x10d73e of _0x2ebfb2)_0x10d73e['detach'](),this['markDeletion'](_0x10d73e);});}['_setSuggestionRange'](_0x4b75e3,_0xec154c){const _0x3ae6ba=_0x4b75e3['getFirstMarker']();this['_model']['change'](_0x504270=>{_0x504270['updateMarker'](_0x3ae6ba,{'range':_0xec154c});});}['_addThreadToSuggestion'](_0x5b393b){const _0x510147=_0x5b393b['id'],_0x1e334b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x510147)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e334b,'threadId':_0x510147,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x52b29d=this['_commentsRepository']['getCommentThread'](_0x510147);_0x52b29d['unbind']('isRemovable'),_0x52b29d['isRemovable']=!0x1,_0x5b393b['commentThread']=_0x52b29d;}['_checkSuggestionCorrectness'](_0x4569b9,_0x31e23f,_0x10e23f,_0x5e0b2c){if(_0x4569b9['type']!=_0x31e23f||_0x4569b9['subType']!=_0x10e23f||_0x4569b9['creator']['id']!=_0x5e0b2c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x46a289('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xefe2d4,_0x32c08b){const _0x149311=_0xefe2d4['getFirstRange']();if(_0x32c08b['isEqual'](_0x149311))_0xefe2d4['removeMarkers']();else{if(_0x149311['containsRange'](_0x32c08b)){const _0x4ad1fe=this['_model']['createPositionAt'](_0x32c08b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xefe2d4,this['_model']['createRange'](_0x149311['start'],_0x4ad1fe));const _0x491aba=_0xcb588e(),_0x5eec64=_0xefe2d4['creator']['id'],_0x5702b4=_0xefe2d4['type']+':'+_0xefe2d4['subType'];this['_setSuggestionData']({'id':_0x491aba,'type':_0x5702b4,'createdAt':new Date(),'authorId':_0x5eec64,'data':_0xefe2d4['data'],'attributes':_0xefe2d4['attributes']});const _0x2bd1c5=this['_model']['createPositionAt'](_0x32c08b['end']['parent'],'after'),_0x22e93a=this['_model']['createRange'](_0x2bd1c5,_0x149311['end']);this['_addSuggestionMarker'](_0x5702b4,_0x491aba,_0x5eec64,_0x22e93a);}else{if(_0x149311['containsPosition'](_0x32c08b['start'])){const _0x2ede05=this['_model']['createPositionAt'](_0x32c08b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xefe2d4,this['_model']['createRange'](_0x149311['start'],_0x2ede05));}else{const _0x241987=this['_model']['createPositionAt'](_0x32c08b['end']['parent'],'after');this['_setSuggestionRange'](_0xefe2d4,this['_model']['createRange'](_0x241987,_0x149311['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47d92d){for(const {suggestion:_0x4f374c,meta:_0x573d39}of this['_findSuggestions'](_0x47d92d,'insertion')){if(!_0x573d39['isOwn'])continue;const _0x3cbbfa=_0x4f374c['getRanges']();for(const _0x5d6a48 of _0x3cbbfa)if(!_0x47d92d['getDifference'](_0x5d6a48)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x505d95){return this['editor']['plugins']['get']('Users')['getUser'](_0x505d95);}['_getExternalAuthor'](_0x224f24){const _0xfef33c=this['editor']['plugins']['get']('Users'),_0x51d28e=_0x52b8a6('external:'+_0x224f24),_0x41a92f=_0xfef33c['getUser'](_0x51d28e);return _0x41a92f||_0xfef33c['addUser']({'id':_0x51d28e,'name':_0x224f24});}['_createSuggestion'](_0x37adf6,_0xdb6007,_0x2c8a96,_0x2a44dd,_0x705871,_0x46b356){const _0x2704d0=this['_getAuthorFromId'](_0x2a44dd);if(!_0x2704d0)throw new _0x46a289('track-changes-user-not-found',this,{'authorId':_0x2a44dd,'suggestionId':_0x2c8a96});const _0xcfc46b=this['_suggestionFactory']['buildSuggestion'](_0x37adf6,_0xdb6007,_0x2c8a96,_0x2704d0,_0x705871,_0x1ccbd4=>{this['_updateSuggestionData'](_0x2c8a96,{'attributes':_0x1ccbd4});const _0x3c1bc0=this['getSuggestion'](_0x2c8a96);this['_joinWithAdjacentSuggestions'](new Set([_0x3c1bc0])),this['_refreshSuggestionsChain'](new Set([_0x3c1bc0]));},_0x46b356);return this['listenTo'](_0xcfc46b,'accept',()=>{this['_updateSuggestionData'](_0x2c8a96,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xcfc46b,'discard',()=>{this['_updateSuggestionData'](_0x2c8a96,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2c8a96,_0xcfc46b),this['_suggestionState']['set'](_0xcfc46b,'notReady'),_0xcfc46b;}['_splitMarkerName'](_0x1021c9){return Gt(_0x1021c9);}['_breakSuggestionMarker'](_0x112c44,_0x36b814,_0xca62d6){const _0x3e08fa=_0x112c44['getFirstRange'](),_0x165ca8=_0x3e08fa['start'],_0xad1a5c=_0x3e08fa['end'];this['_setSuggestionRange'](_0x112c44,this['_model']['createRange'](_0x165ca8,_0x36b814));const _0x8bb8ed=_0xcb588e(),_0x40a1ac=_0x112c44['creator']['id'],_0x271e51=_0x112c44['type']+(_0x112c44['subType']?':'+_0x112c44['subType']:'');this['_setSuggestionData']({'id':_0x8bb8ed,'type':_0x271e51,'createdAt':new Date(),'authorId':_0x40a1ac,'originalSuggestionId':_0x112c44['_originalSuggestionId']||_0x112c44['id'],'attributes':_0x112c44['attributes'],'data':_0x112c44['data']});const _0x137a9f=this['_getAttributeKey'](_0x112c44);('formatBlock'==_0x112c44['type']||_0x137a9f&&this['_isBlockAttribute'](_0x137a9f))&&(_0xca62d6=this['_model']['createPositionBefore'](_0xca62d6['parent'])),this['_addSuggestionMarker'](_0x271e51,_0x8bb8ed,_0x40a1ac,this['_model']['createRange'](_0xca62d6,_0xad1a5c));}['_findSuggestions'](_0xb412a1,_0x17d28b=null){const _0x263a0e=[],_0x600333=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb412a1)||(_0xb412a1=[_0xb412a1]);for(const _0x47c5bf of this['getSuggestions']()){if(!_0x47c5bf['isInContent'])continue;if(_0x17d28b&&_0x47c5bf['type']!=_0x17d28b)continue;let _0x43130a=!0x1;for(const _0x350a92 of _0x47c5bf['getRanges']()){for(const _0x32d314 of _0xb412a1){const _0x1cc149=_0x32d314['start']['isEqual'](_0x350a92['end'])||_0x32d314['end']['isEqual'](_0x350a92['start']);if(_0x1cc149||_0x32d314['getIntersection'](_0x350a92)){const _0x2f9ac5=_0x32d314['containsRange'](_0x350a92)&&zt(this['_model']['schema'],_0x350a92['start'],_0x32d314),_0x3b57c0=_0x350a92['containsRange'](_0x32d314)&&zt(this['_model']['schema'],_0x32d314['start'],_0x350a92);_0x263a0e['push']({'suggestion':_0x47c5bf,'meta':{'isOwn':_0x600333==_0x47c5bf['author'],'isNextTo':_0x1cc149,'isInsideObject':_0x2f9ac5,'containsRangeInObject':_0x3b57c0}}),_0x43130a=!0x0;break;}}if(_0x43130a)break;}}return _0x263a0e;}['_addSuggestionMarker'](_0x451254,_0x45b41b,_0x1b6669,_0x2f0aa3,_0x32002e){this['_model']['change'](_0x6a6441=>{let _0x20fbc6='suggestion:'+_0x451254+':'+_0x45b41b+':'+_0x1b6669;_0x32002e&&(_0x20fbc6=_0x20fbc6+':'+_0x32002e),_0x6a6441['addMarker'](_0x20fbc6,{'range':_0x2f0aa3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x320a1b){const _0x295d6d=_0x320a1b['previous'],_0x546cd5=_0x320a1b['next'];_0x320a1b['previous']=null,_0x320a1b['next']=null,null!=_0x295d6d&&_0x295d6d['next']==_0x320a1b&&(_0x295d6d['next']=_0x546cd5),null!=_0x546cd5&&_0x546cd5['previous']==_0x320a1b&&(_0x546cd5['previous']=_0x295d6d),'ready'==this['_suggestionState']['get'](_0x320a1b)&&(this['_suggestionState']['set'](_0x320a1b,'removed'),this['fire']('suggestionUnloaded',_0x320a1b,_0x295d6d,_0x546cd5));}['_setSuggestionData'](_0x4b8a9f){const _0x5cb8d6=_0x4b8a9f['id'],_0x45872a=this['addSuggestionData'](_0x4b8a9f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2b7d9c=this['editor']['plugins']['get']('PendingActions'),_0x26cced=_0x45872a['hasComments'],_0x39959e=_0x45872a['subType']?_0x45872a['type']+':'+_0x45872a['subType']:_0x45872a['type'],_0x515d3b=this['editor']['locale'],_0x8843d7=_0x2b7d9c['add'](o(_0x515d3b,'PENDING_ACTION_SUGGESTION')),_0x32b71c={'id':_0x5cb8d6,'type':_0x39959e,'hasComments':_0x26cced,'data':_0x4b8a9f['data']||null,'originalSuggestionId':_0x4b8a9f['originalSuggestionId']||null,'attributes':_0x45872a['attributes']};this['_adapter']['addSuggestion'](_0x32b71c)['then'](_0x326a7a=>{_0x45872a['_saved']=!0x0,_0x2b7d9c['remove'](_0x8843d7),_0x326a7a&&_0x326a7a['createdAt']&&(this['_suggestions']['get'](_0x5cb8d6)['createdAt']=_0x326a7a['createdAt']);})['catch'](_0x21d9cc=>{throw _0xcdc9f4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x45872a['discard']();}),_0x45872a['stopListening'](),this['_suggestions']['delete'](_0x45872a['id']),this['_suggestionState']['delete'](_0x45872a),_0x21d9cc;});}return _0x45872a;}['_isBlockAttribute'](_0x24045f){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x24045f);}['_isInlineAttribute'](_0x3ec76a){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x3ec76a);}['_updateSuggestionData'](_0x105e22,_0x1af9dd){const _0x3b3b60=this['editor']['plugins']['get']('PendingActions'),_0x25514b=this['getSuggestion'](_0x105e22);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x25514b['_saved']){const _0xce0b33=_0x3b3b60['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x105e22,_0x1af9dd)['then'](()=>{_0x3b3b60['remove'](_0xce0b33);});}else _0x25514b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x105e22,_0x1af9dd);});}}['_getSuggestionData'](_0x20595f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x46a289('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x20595f);}['_handleNewSuggestionMarker'](_0xc5968b){const {id:_0x44dfc0,type:_0x57b1b4,subType:_0x1b6d4f,authorId:_0x4ffe34}=this['_splitMarkerName'](_0xc5968b),_0x30547b=this['_suggestions']['get'](_0x44dfc0)||this['_createSuggestion'](_0x57b1b4,_0x1b6d4f,_0x44dfc0,_0x4ffe34,{});switch(this['_checkSuggestionCorrectness'](_0x30547b,_0x57b1b4,_0x1b6d4f,_0x4ffe34),this['_suggestionState']['get'](_0x30547b)){case'notReady':this['_getSuggestionData'](_0x44dfc0)['then'](_0x1d8505=>{let _0x2ea38d=Promise['resolve']();_0x1d8505['hasComments']&&(_0x2ea38d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x44dfc0})),_0x2ea38d['then'](()=>{this['addSuggestionData'](_0x1d8505)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x30547b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x44dfc0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x30547b,'ready'),this['fire']('suggestionLoaded',_0x30547b);break;case'ready':this['fire']('suggestionChanged',_0x30547b);}return _0x30547b['addMarkerName'](_0xc5968b),_0x30547b;}['_refreshSuggestionsChain'](_0x26e666){const _0xa28727=Array['from'](_0x26e666),_0x5d0054=_0xa28727['filter'](_0x54050c=>'attribute'==_0x54050c['type']);this['_refreshAttributeSuggestionsChain'](_0x5d0054);const _0x667813=_0xa28727['filter'](_0x4da27b=>!_0x4da27b['isMultiRange']&&'attribute'!=_0x4da27b['type']),_0x1290db=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3be18a=>!_0x3be18a['isMultiRange']&&'attribute'!=_0x3be18a['type']),_0x4c9aa3=_0x1290db['filter'](_0x1bb6d1=>!_0x26e666['has'](_0x1bb6d1)),_0x366034=new Map(_0x1290db['map'](_0x1466b6=>[_0x1466b6,this['_suggestionFactory']['getSuggestionCallback'](_0x1466b6['type'],_0x1466b6['subType'],'chain')])),_0xd82050=new Map(_0x1290db['map'](_0x25263b=>[_0x25263b,_0x25263b['getFirstRange']()])),_0x567b8f=new Set(),_0xea3967=new Set();for(let _0x12cdde=0x0;_0x12cdde<_0x667813['length'];_0x12cdde++)_0x1950af(_0x667813[_0x12cdde],_0x667813,_0x12cdde+0x1);for(let _0x2e8602=0x0;_0x2e8602<_0x667813['length'];_0x2e8602++)_0x1950af(_0x667813[_0x2e8602],_0x4c9aa3,0x0);const _0x444f2a=new Set();for(let _0x2d3136=0x0;_0x2d3136<_0x667813['length'];_0x2d3136++){const _0x4f606e=_0x667813[_0x2d3136];!_0xea3967['has'](_0x4f606e)&&_0x4f606e['previous']&&(_0x444f2a['add'](_0x4f606e['previous']),_0x4f606e['previous']['next']===_0x4f606e&&(_0x4f606e['previous']['next']=null),_0x4f606e['previous']=null),!_0x567b8f['has'](_0x4f606e)&&_0x4f606e['next']&&(_0x444f2a['add'](_0x4f606e['next']),_0x4f606e['next']['previous']===_0x4f606e&&(_0x4f606e['next']['previous']=null),_0x4f606e['next']=null);}function _0x1950af(_0x24bed5,_0x2b9391,_0x4c0cb9){for(let _0x2d9931=_0x4c0cb9;_0x2d9931<_0x2b9391['length'];_0x2d9931++){const _0x54d543=_0x10792e(_0x24bed5,_0x2b9391[_0x2d9931]);_0x54d543&&(_0x54d543[0x0]['next']=_0x54d543[0x1],_0x54d543[0x1]['previous']=_0x54d543[0x0],_0x567b8f['add'](_0x54d543[0x0]),_0xea3967['add'](_0x54d543[0x1]));}}function _0x10792e(_0xc9dc8a,_0x251b5c){if(_0xc9dc8a['author']['id']!==_0x251b5c['author']['id'])return null;const _0x1b5cee=_0x366034['get'](_0xc9dc8a)(_0xc9dc8a,_0x251b5c,_0xd82050['get'](_0xc9dc8a),_0xd82050['get'](_0x251b5c));if(!_0x1b5cee)return null;return _0x366034['get'](_0x251b5c)(_0xc9dc8a,_0x251b5c,_0xd82050['get'](_0xc9dc8a),_0xd82050['get'](_0x251b5c))?_0x1b5cee[0x1]['commentThread']&&_0x1b5cee[0x1]['commentThread']['length']?null:_0x1b5cee:null;}_0x444f2a['size']&&this['_refreshSuggestionsChain'](_0x444f2a);}['_refreshAttributeSuggestionsChain'](_0x3cbdd7){if(0x0==_0x3cbdd7['length'])return;const _0x42080d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2998ab=>'attribute'==_0x2998ab['type']&&_0x2998ab['_isDataLoaded']),_0x5ce61d=[],_0x251fe2=new Map();for(const _0x1710c5 of _0x42080d){const _0x328eb2=_0x52b8a6(_0x1710c5['attributes']);_0x251fe2['has'](_0x328eb2)||(_0x251fe2['set'](_0x328eb2,_0x5ce61d['length']),_0x5ce61d['push']([]));const _0xc76d6a=_0x251fe2['get'](_0x328eb2);_0x5ce61d[_0xc76d6a]['push'](_0x1710c5);}!(function(){_0x5ce61d['sort']((_0x184b28,_0x31c952)=>{const _0x3ec4dd=_0x184b28[0x0]['createdAt'],_0x5ac229=_0x31c952[0x0]['createdAt'];return _0x3ec4dd==_0x5ac229?_0x184b28[0x0]['attributes']['groupId']<_0x31c952[0x0]['attributes']['groupId']?-0x1:0x1:_0x3ec4dd<_0x5ac229?-0x1:0x1;});for(const _0x28bf8f of _0x5ce61d)_0x28bf8f['sort']((_0x55c98a,_0x7ee4e1)=>_0x55c98a['id']<_0x7ee4e1['id']?-0x1:0x1);}());for(let _0x4f85df=0x0;_0x4f85df<_0x5ce61d['length'];_0x4f85df++){if(0x0==_0x5ce61d[_0x4f85df]['length'])continue;const _0x3082d7=[];for(let _0x4e4a74=_0x4f85df+0x1;_0x4e4a74<_0x5ce61d['length'];_0x4e4a74++)0x0!=_0x5ce61d[_0x4e4a74]['length']&&_0x575d12(_0x5ce61d[_0x4f85df],_0x5ce61d[_0x4e4a74])&&_0x3082d7['push'](_0x4e4a74);for(const _0x433bb6 of _0x3082d7)_0x5ce61d[_0x4f85df]=_0x5ce61d[_0x4f85df]['concat'](_0x5ce61d[_0x433bb6]),_0x5ce61d[_0x433bb6]=[];}for(const _0x1f97d9 of _0x5ce61d)for(let _0x58fd5c=0x0;_0x58fd5c<_0x1f97d9['length'];_0x58fd5c++){const _0x47054b=_0x1f97d9[_0x58fd5c+0x1]||null;_0x1f97d9[_0x58fd5c]['next']!==_0x47054b&&(_0x1f97d9[_0x58fd5c]['next']=_0x47054b);}for(const _0x41cf94 of _0x5ce61d)for(let _0x113d21=0x0;_0x113d21<_0x41cf94['length'];_0x113d21++){const _0x2e97b2=_0x41cf94[_0x113d21-0x1]||null;_0x41cf94[_0x113d21]['previous']!==_0x2e97b2&&(_0x41cf94[_0x113d21]['previous']=_0x2e97b2);}function _0x575d12(_0x3d29d8,_0x5ceeb7){if(_0x3d29d8[0x0]['attributes']['groupId']!==_0x5ceeb7[0x0]['attributes']['groupId']&&_0x3d29d8[0x0]['author']!==_0x5ceeb7[0x0]['author'])return!0x1;if(!function(_0x417627,_0x23093f){if(!_0x417627['hasComments']&&!_0x23093f['hasComments'])return!0x0;if(_0x417627['hasComments']&&_0x23093f['hasComments'])return!0x1;if(_0x417627['hasComments']&&_0x23093f['createdAt']<_0x417627['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x23093f['hasComments']&&_0x417627['createdAt']<_0x23093f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3d29d8[0x0],_0x5ceeb7[0x0]))return!0x1;const _0x49448d=Pt(_0x3d29d8[0x0]['attributes'],['groupId','trackingSessionId']),_0x2fc192=Pt(_0x5ceeb7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3c4da3(_0x49448d,_0x2fc192))return!0x1;if(_0x3d29d8[0x0]['attributes']['groupId']==_0x5ceeb7[0x0]['attributes']['groupId'])return!0x0;if(_0x3d29d8[0x0]['attributes']['trackingSessionId']!==_0x5ceeb7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3d29d8['every'](_0x10ee6e=>_0x5ceeb7['some'](_0x29d77b=>_0x10ee6e['getFirstRange']()['isEqual'](_0x29d77b['getFirstRange']())))&&_0x5ceeb7['every'](_0x20a7d7=>_0x3d29d8['some'](_0x29d4ef=>_0x20a7d7['getFirstRange']()['isEqual'](_0x29d4ef['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x10ae00){const _0x46e4ce=Array['from'](_0x10ae00),_0x412810=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3bace4=_0x412810['filter'](_0x4ca28d=>!_0x10ae00['has'](_0x4ca28d)),_0x480256=new Map(_0x46e4ce['map'](_0x33a788=>[_0x33a788,this['_suggestionFactory']['getSuggestionCallback'](_0x33a788['type'],_0x33a788['subType'],'join')])),_0x5ce6f2=new Map(_0x412810['map'](_0x1d7f51=>[_0x1d7f51,_0x1d7f51['getRanges']()]));for(let _0x4b4969=0x0;_0x4b4969<_0x46e4ce['length'];_0x4b4969++){if(_0x5856af(this,_0x46e4ce[_0x4b4969],_0x46e4ce,_0x4b4969+0x1))return!0x0;}for(let _0x4585b0=0x0;_0x4585b0<_0x46e4ce['length'];_0x4585b0++){if(_0x5856af(this,_0x46e4ce[_0x4585b0],_0x3bace4,0x0))return!0x0;}return!0x1;function _0x5856af(_0x5660c9,_0x115f50,_0x42cf8f,_0x28390c){for(let _0x4b0e6a=_0x28390c;_0x4b0e6a<_0x42cf8f['length'];_0x4b0e6a++){const _0x29a13f=_0x42cf8f[_0x4b0e6a];if(_0x29a13f['type']!==_0x115f50['type']||_0x29a13f['author']['id']!==_0x115f50['author']['id']||_0x29a13f['subType']!==_0x115f50['subType'])continue;if(!en(_0x115f50,_0x29a13f))continue;if('attribute'==_0x115f50['type']&&_0x115f50['data']['oldValue']!=_0x29a13f['data']['oldValue'])continue;if('attribute'==_0x115f50['type']&&_0x5660c9['_isBlockAttribute'](_0x115f50['data']['key']))continue;if('formatBlock'==_0x115f50['type']){const _0x571723=_0x5660c9['editor']['model'],_0xc8569d=_0x115f50['getContainedElement']();if(_0xc8569d&&(_0x571723['schema']['isObject'](_0xc8569d)||_0x571723['schema']['isLimit'](_0xc8569d)))continue;}const _0xcc2287=_0x480256['get'](_0x115f50),_0x556ac0=_0x5ce6f2['get'](_0x115f50),_0x140464=_0x5ce6f2['get'](_0x29a13f),_0x56b600=_0x115f50['commentThread']&&_0x115f50['commentThread']['length'],_0x3da554=_0x29a13f['commentThread']&&_0x29a13f['commentThread']['length'];if(!_0x56b600&&_0xcc2287(_0x140464,_0x556ac0))return _0x5660c9['_joinSuggestions'](_0x29a13f,_0x115f50),_0x5ce6f2['delete'](_0x115f50),!0x0;if(!_0x3da554&&_0xcc2287(_0x556ac0,_0x140464))return _0x5660c9['_joinSuggestions'](_0x115f50,_0x29a13f),_0x5ce6f2['delete'](_0x29a13f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x27ba40,_0x3577d6){if(_0x27ba40['isMultiRange']){for(const _0x514254 of _0x3577d6['getRanges']())_0x27ba40['addRange'](_0x514254);}else{const _0x2d0467=_0x3577d6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x27ba40,this['_model']['createRange'](_0x27ba40['getFirstRange']()['start'],_0x2d0467));}_0x3577d6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4f5f6d,_0x513339,_0x305dba){const _0x178ee4=_0x4f5f6d['startsWith']('format')||_0x4f5f6d['startsWith']('attribute')?'FORMATTING':_0x4f5f6d['toUpperCase']();return o(this['editor']['locale'],_0x513339+'_'+_0x178ee4+'_SUGGESTION_ANNOUNCEMENT',_0x305dba);}['_initAriaMarkerChangeAnnouncements'](){const _0x8e3970=this['editor'];if(!_0x8e3970['ui'])return;const {ariaLiveAnnouncer:_0x1715a5}=_0x8e3970['ui'];_0x242b1c(this['_model'],({left:_0x518eea,entered:_0x12a4fa})=>{for(const _0x386109 of _0x518eea){const {group:_0x4f26ea,type:_0x116e2a}=this['_splitMarkerName'](_0x386109['name']);if('suggestion'===_0x4f26ea){_0x1715a5['announce'](this['_getMarkerAnnouncementText'](_0x116e2a,'LEAVE'));break;}}for(const _0x46172e of _0x12a4fa){const {group:_0x52b68e,type:_0x228a98}=this['_splitMarkerName'](_0x46172e['name']);if('suggestion'===_0x52b68e){_0x1715a5['announce'](this['_getMarkerAnnouncementText'](_0x228a98,'ENTER',_0x2dfbdc(_0x16a60d)));break;}}});}['_processAttributeChanges'](_0x3643a3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2eb8f5=this['editor'],_0x2fbb85=_0x2eb8f5['model']['document']['differ']['getChanges']();if(0x0==_0x2fbb85['length'])return!0x1;const _0xebbaad=[],_0x3971c4=_0x2fbb85['filter'](_0x3e35bb=>'attribute'==_0x3e35bb['type']),_0x4986bb=_0x2fbb85['filter'](_0x73df10=>'insert'==_0x73df10['type']&&'$text'!=_0x73df10['name']),_0x200b66=_0x2fbb85['filter'](_0x413dee=>'remove'==_0x413dee['type']&&'$text'!=_0x413dee['name']);for(const _0x3fc6ef of _0x3971c4)_0xebbaad['push']({'key':_0x3fc6ef['attributeKey'],'newValue':_0x3fc6ef['attributeNewValue'],'oldValue':_0x3fc6ef['attributeOldValue'],'range':Zt(_0x3fc6ef['range'],_0x2eb8f5['model'])});for(const _0x50c66f of _0x4986bb){const _0x1bc6cf=_0x200b66['find'](_0x5e0f06=>_0x5e0f06['position']['isEqual'](_0x50c66f['position']));_0x1bc6cf&&_0xebbaad['push']({'key':m,'newValue':_0x50c66f['name'],'oldValue':_0x1bc6cf['name'],'range':_0x2eb8f5['model']['createRangeOn'](_0x50c66f['position']['nodeAfter'])});}return 0x0!=_0xebbaad['length']&&this['_reduceExistingSuggestions'](_0x3643a3,_0xebbaad);}['_processAttributeSuggestions'](_0x2e0e0c){let _0x2b7577=!0x1;const _0x55d587=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x247e2a=>_0x247e2a['data']['newRange']&&_0x247e2a['name']['startsWith']('suggestion:attribute:'));for(const _0xcae7c1 of _0x55d587){const {subType:_0x85c600,id:_0x1e7450}=this['_splitMarkerName'](_0xcae7c1['name']),_0x513f64=_0x85c600['split']('|')[0x0];for(const _0x3d0973 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3d0973['id']!=_0x1e7450&&'attribute'==_0x3d0973['type']&&_0x3d0973['data']&&_0x3d0973['data']['key']==_0x513f64&&_0x3d0973['getFirstRange']()['isIntersecting'](_0xcae7c1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3d0973,_0xcae7c1['data']['newRange'],_0x2e0e0c),_0x2b7577=!0x0);}return _0x2b7577;}['recordAttributeChanges'](_0x22b0e5){this['_recordAttributeSuggestions']=!0x0,_0x22b0e5();}['_isRegisteredAttribute'](_0x4239a7){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x4239a7);}['_reduceExistingSuggestions'](_0x360997,_0x38057a){if(0x0==_0x38057a['length'])return!0x1;let _0x4a0c80=!0x1;for(const _0x15c7b2 of _0x38057a){const _0x44463a=this['_findSuggestions'](_0x15c7b2['range'],'attribute')['filter'](_0x5655d4=>!_0x5655d4['meta']['isNextTo'])['map'](_0x57fc0b=>_0x57fc0b['suggestion']),_0x327606=_0x52b8a6({'newValue':_0x15c7b2['newValue']});_0x44463a['filter'](_0x24564c=>{const [_0x10ea70,_0x88566b]=_0x24564c['subType']['split']('|');return _0x10ea70==_0x15c7b2['key']&&_0x88566b!=_0x327606;})['forEach'](_0x3b336b=>{this['_reduceSuggestionAttributeRange'](_0x3b336b,_0x15c7b2['range'],_0x360997),_0x4a0c80=!0x0;});}return _0x4a0c80;}['_reduceSuggestionAttributeRange'](_0x21795b,_0xcadb1c,_0x66e4cf){const _0x462a52=_0x21795b['getFirstRange']()['getDifference'](_0xcadb1c);0x0!==_0x462a52['length']?0x1!==_0x462a52['length']?this['_breakSuggestionMarker'](_0x21795b,_0xcadb1c['start'],_0xcadb1c['end']):this['_setSuggestionRange'](_0x21795b,_0x462a52[0x0]):_0x66e4cf['removeMarker'](_0x21795b['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x51d15a){this['_editor']=_0x51d15a,this['_model']=_0x51d15a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xc2772c,_0x1f888a,_0x2cf1a2,_0x48af9b,_0x2886f4,_0x387441,_0x38f749){return new x(this['_model'],{'type':_0xc2772c,'subType':_0x1f888a,'id':_0x2cf1a2,'originalSuggestionId':_0x38f749,'author':_0x48af9b,'creator':_0x48af9b,'attributes':_0x2886f4,'onAttributesChange':_0x387441,'onAccept':(..._0x1d11e9)=>this['getSuggestionCallback'](_0xc2772c,_0x1f888a,'accept')(..._0x1d11e9),'onDiscard':(..._0x47995e)=>this['getSuggestionCallback'](_0xc2772c,_0x1f888a,'discard')(..._0x47995e)});}['registerCustomCallback'](_0x2a94a4,_0x19890e,_0x440438,_0xda6b0a){const _0x439e8f=_0x2a94a4+':'+_0x19890e+':'+_0x440438;this['_customCallbacks']['set'](_0x439e8f,_0xda6b0a);}['getSuggestionCallback'](_0x4d07d4,_0x1d6b2c,_0x353e4e){const _0x2f0935=_0x4d07d4+':'+_0x1d6b2c+':'+_0x353e4e;return this['_customCallbacks']['get'](_0x2f0935)||this['_defaultCallbacks']['get'](_0x4d07d4+':'+_0x353e4e);}['_registerDefaultCallbacks'](){const _0x4d564a=()=>!0x1,_0x4ac7c3=_0x520832=>{_0x520832['sort']((_0x4c46af,_0xd76f7b)=>_0x4c46af['start']['isBefore'](_0xd76f7b['start'])?0x1:-0x1),this['_model']['change'](_0xc0e83e=>{for(const _0x14467e of _0x520832){let _0x48e4db;_0x48e4db=_0x14467e['end']['isAtEnd']&&_0x14467e['end']['parent']==_0x14467e['start']['nodeAfter']?_0xc0e83e['createSelection'](_0x14467e['start']['nodeAfter'],'on'):_0xc0e83e['createSelection'](_0x14467e),this['_model']['deleteContent'](_0x48e4db,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xe191c1=(_0x2a7fe0,_0x4045b8)=>{_0x4045b8&&this['_model']['change'](_0x47af46=>{const {commandName:_0x255131,commandParams:_0x233419=[]}=_0x4045b8,_0x181bbc=_0x2a7fe0['map'](_0x1b0992=>(Kt(_0x1b0992)&&(_0x1b0992=this['_model']['createRange'](_0x1b0992['end'])),_0x1b0992))['filter'](_0x548868=>'$graveyard'!==_0x548868['root']['rootName']);if(_0x181bbc['length']<0x1)return;const _0x161318=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x32138a=>_0x2f9bba['fromRange'](_0x32138a));_0x47af46['setSelection'](_0x181bbc);for(const _0x28550c of this['_editor']['commands']['commands']())_0x28550c['refresh']();_0x233419['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x255131,..._0x233419);const _0x572ed1=_0x161318['filter'](_0x357b63=>'$graveyard'!=_0x357b63['root']['rootName']);_0x572ed1['length']>0x0&&_0x47af46['setSelection'](_0x572ed1);for(const _0x45c721 of _0x161318)_0x45c721['detach']();});},_0x2bb796=(_0x435e96,_0x2ce279)=>0x1==_0x435e96['length']&&0x1==_0x2ce279['length']&&_0x435e96[0x0]['end']['isEqual'](_0x2ce279[0x0]['start']),_0x308781=(_0x5354a4,_0x3facc8,_0x3cc8c4,_0x5e05bc)=>nn(_0x5354a4,_0x3facc8,_0x3cc8c4,_0x5e05bc)?[_0x5354a4,_0x3facc8]:nn(_0x3facc8,_0x5354a4,_0x5e05bc,_0x3cc8c4)?[_0x3facc8,_0x5354a4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d564a),this['_defaultCallbacks']['set']('insertion:discard',_0x4ac7c3),this['_defaultCallbacks']['set']('insertion:join',_0x2bb796),this['_defaultCallbacks']['set']('insertion:chain',_0x308781),this['_defaultCallbacks']['set']('deletion:accept',_0x4ac7c3),this['_defaultCallbacks']['set']('deletion:discard',_0x4d564a),this['_defaultCallbacks']['set']('deletion:join',_0x2bb796),this['_defaultCallbacks']['set']('deletion:chain',_0x308781),this['_defaultCallbacks']['set']('formatInline:accept',_0xe191c1),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d564a),this['_defaultCallbacks']['set']('formatInline:join',_0x2bb796),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d564a),this['_defaultCallbacks']['set']('formatBlock:accept',_0xe191c1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d564a),this['_defaultCallbacks']['set']('formatBlock:join',_0x2bb796),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d564a),this['_defaultCallbacks']['set']('attribute:accept',_0x4d564a),this['_defaultCallbacks']['set']('attribute:discard',(_0x58b30d,_0x34bc8e)=>{if(!_0x34bc8e)return;const _0x4fecc1=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x588d16=>{if(_0x34bc8e['key']==m)for(const _0xf4c786 of _0x58b30d){const _0x13aee5=_0xf4c786['start']['nodeAfter'],_0x3a2a14=_0x34bc8e['oldValue'];_0x588d16['rename'](_0x13aee5,_0x3a2a14);}else{if(_0x4fecc1['_isBlockAttribute'](_0x34bc8e['key'])){for(const _0x38e9f2 of _0x58b30d)void 0x0!==_0x34bc8e['oldValue']?_0x588d16['setAttribute'](_0x34bc8e['key'],_0x34bc8e['oldValue'],_0x38e9f2['start']['nodeAfter']):_0x588d16['removeAttribute'](_0x34bc8e['key'],_0x38e9f2['start']['nodeAfter']);}else{for(const _0x552ad4 of _0x58b30d)_0x34bc8e['oldValue']?_0x588d16['setAttribute'](_0x34bc8e['key'],_0x34bc8e['oldValue'],_0x552ad4):_0x588d16['removeAttribute'](_0x34bc8e['key'],_0x552ad4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2bb796);}}function zt(_0x2f8f28,_0x7d05b0,_0x3b1a11){for(const _0x553541 of _0x7d05b0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x553541['root']==_0x553541)return!0x1;if(!_0x3b1a11['containsItem'](_0x553541))return!0x1;if(_0x2f8f28['isObject'](_0x553541)||_0x2f8f28['isLimit'](_0x553541))return!0x0;}return!0x1;}function Kt(_0x288f86){return _0x288f86['end']['parent']==_0x288f86['start']['nodeAfter']&&_0x288f86['end']['isAtStart'];}function Wt(_0x42d251,_0x3a8fb8,_0x2b96ff,_0x13b390){const _0x5d8101=_0x2bbae5=>!_0x2bbae5['item']['is']('$textProxy')&&!_0x13b390['isObject'](_0x2bbae5['item']),_0x2b9b35=_0x42d251['start']['getLastMatchingPosition'](_0x5d8101),_0x4b5c1a=_0x42d251['end']['getLastMatchingPosition'](_0x5d8101,{'direction':'backward'});return(!_0x42d251['start']['isEqual'](_0x2b9b35)||!_0x42d251['end']['isEqual'](_0x4b5c1a))&&(_0x2b9b35['isBefore'](_0x4b5c1a)?_0x2b96ff['updateMarker'](_0x3a8fb8,{'range':_0x2b96ff['createRange'](_0x2b9b35,_0x4b5c1a)}):_0x2b96ff['removeMarker'](_0x3a8fb8),!0x0);}function Ht(_0xab50ee){return _0x52b8a6(_0xab50ee);}function Qt(_0x4e804f){const _0x496f20=_0x4e804f['start']['nodeAfter'];return _0x496f20&&_0x496f20['is']('element');}function Xt(_0x44dacc){return Kt(_0x44dacc)||function(_0x180cec){return _0x180cec['start']['parent']==_0x180cec['end']['nodeBefore']&&_0x180cec['start']['isAtEnd'];}(_0x44dacc);}function Yt(_0x1d4327,_0x540f1a){try{const _0x51b3dc=_0x1d4327['getRange']();for(const _0x19cfc7 of _0x540f1a)if(_0x1d4327!==_0x19cfc7&&_0x51b3dc&&_0x51b3dc['isIntersecting'](_0x19cfc7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1fb67e,_0x2f51b3){return null==_0x1fb67e['end']['nodeBefore']&&_0x1fb67e['end']['parent']==_0x1fb67e['start']['nodeAfter']?tn(_0x1fb67e['start']['nodeAfter'],_0x2f51b3):_0x1fb67e;}function tn(_0x517225,_0x386c4b){const _0x334357=_0x386c4b['schema']['isObject'](_0x517225)||_0x386c4b['schema']['isSelectable'](_0x517225);return _0x386c4b['createRange'](_0x386c4b['createPositionAt'](_0x517225,'before'),_0x334357?_0x386c4b['createPositionAfter'](_0x517225):_0x386c4b['createPositionAt'](_0x517225,'end'));}function nn(_0x28a6d8,_0x107192,_0x53bd7b,_0x4f1fe6){return!!en(_0x28a6d8,_0x107192)&&_0x53bd7b['end']['isEqual'](_0x4f1fe6['start']);}function en(_0x4d1390,_0x23258a){if(!_0x4d1390['_isDataLoaded']||!_0x23258a['_isDataLoaded'])return!0x1;const _0x423760=new Set(Object['keys'](_0x4d1390['attributes'])),_0x3b6f84=new Set(Object['keys'](_0x23258a['attributes']));if(_0x423760['delete']('groupId'),_0x3b6f84['delete']('groupId'),0x0==_0x423760['size']&&0x0==_0x3b6f84['size'])return!0x0;if(_0x423760['size']!=_0x3b6f84['size'])return!0x1;const _0x420bc1={..._0x4d1390['attributes']},_0x74a537={..._0x23258a['attributes']};return delete _0x420bc1['groupId'],delete _0x74a537['groupId'],JSON['stringify'](_0x420bc1)==JSON['stringify'](_0x74a537);}function sn(_0xf0ed9c,_0x224777){const _0x44a192=on(_0xf0ed9c['attributes']),_0x11f436=on(_0x224777);if(!_0xf0ed9c['_isDataLoaded'])return!0x1;for(const _0x3c78f9 of Object['keys'](_0x11f436))if(!_0x3c4da3(_0x44a192[_0x3c78f9],_0x11f436[_0x3c78f9]))return!0x1;return!0x0;}function on(_0x15626b){const _0x17c22d=Object['assign']({},_0x15626b);return delete _0x17c22d['skipNestingCheck'],delete _0x17c22d['tablePasteChainId'],_0x17c22d;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x386c37(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x283f5d,_0x3cb91e,_0x45a64f,_0x102907){super(),this['model']=_0x3cb91e,this['view']=_0x45a64f,this['commentThreadController']=_0x102907,this['_editor']=_0x283f5d,this['_acceptCommand']=_0x283f5d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x283f5d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x470964,_0x34d529)=>_0x470964||_0x34d529),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x14780a=>_0x14780a&&this['_editor']['model']['canEditAt'](_0x3cb91e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x9b0c6c=>_0x9b0c6c&&this['_editor']['model']['canEditAt'](_0x3cb91e['getRanges']())),this['_pendingAction']=null,_0x45a64f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x45a64f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x45a64f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x45a64f,'change:isDirty',()=>{_0x45a64f['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 _0x468f2a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x468f2a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x20be2a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5eea8b,_0x6e847f,_0x191c97,_0x3f9ea2){super(_0x5eea8b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x16489a(_0x5eea8b,o(_0x5eea8b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x6e847f['authoredAt']),this['bind']('authoredAt')['to'](_0x6e847f),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',_0x6e847f,'authoredAt',this,'descriptionParts',(_0x115624,_0x2ed97b,_0x170c55)=>{const _0x18a581=_0x170c55['map'](_0x949ef2=>ls(_0x949ef2['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x115624-0x1,_0x6e847f['author']['name'],_0x2ed97b?_0x3f9ea2['formatDateTime'](_0x2ed97b):'',new DOMParser()['parseFromString'](_0x18a581,'text/html')['body']['textContent']]);}),this['focusables']=new _0x30678b(),this['focusTracker']=new _0x520c8a(),this['keystrokes']=new _0x45b742(),this['focusCycler']=new _0x43d12b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x21e06e=>_0x21e06e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x6e847f,this['_localUser']=_0x191c97,this['_config']=_0x3f9ea2,_0x3f9ea2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1917fb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3a0da5}=this['_config'];this['commentsListView']=new _0x3a0da5(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',_0x23a925=>_0x23a925+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x59ef85,_0x55f919)=>_0x59ef85||!!_0x55f919);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a561d}=this['_config'],_0x269786=new _0x5a561d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x343371=_0x269786['commentInputView'];return _0x269786['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x343371,'value',(_0x3fec8c,_0x2222d5,_0x278cfb)=>!!_0x278cfb||_0x3fec8c&&!_0x2222d5),_0x343371['on']('submit',(_0x80f76d,_0x3aa54a)=>{this['fire']('addComment',_0x3aa54a),_0x343371['editor']['setData']('');}),_0x343371['on']('cancel',()=>this['focus']()),_0x343371['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x269786;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1ecd95,_0x443f09,_0x4ace7e,_0x2c15b5){super(_0x1ecd95,_0x443f09,_0x4ace7e,_0x2c15b5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b0fc6=>_0x3b0fc6&&_0x3b0fc6[0x0]?_0x3b0fc6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x528e16,_0x2dc408)=>{let _0x2053d7='';for(const _0x4b6df8 of _0x528e16)_0x2053d7+='<p>'+ls(_0x4b6df8['content'],_0x4b6df8['color'])+'</p>';return _0x2dc408?_0x2053d7:_0x1a599f(_0x2053d7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2c15b5['SuggestionView'](_0x1ecd95,_0x443f09,{'formatDateTime':_0x2c15b5['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 _0x3df9a7=this['bindTemplate'],_0x592214=[this['suggestionView']];return this['commentsListView']&&_0x592214['push'](this['commentsListView']),this['commentThreadInputView']&&_0x592214['push'](this['commentThreadInputView']),_0x592214['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3df9a7['if']('isActive','ck-suggestion-wrapper--active'),_0x3df9a7['to']('type',_0x5cc4ef=>'ck-suggestion-'+_0x5cc4ef),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':_0x3df9a7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x592214};}['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 _0x20be2a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xd4f247,_0x4092b3,_0x563b53){super(_0xd4f247),this['_model']=_0x4092b3,this['_config']=_0x563b53,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4092b3),this['acceptButton']=this['_createButton'](o(_0xd4f247,'Accept\x20suggestion'),_0x12f3aa,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xd4f247,'Discard\x20suggestion'),_0x379fe7,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5d2179(_0xd4f247,_0x4092b3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x30678b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x520c8a(),this['keystrokes']=new _0x45b742(),this['focusCycler']=new _0x43d12b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46b1cc=>_0x46b1cc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1aa308=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1aa308['innerHTML']=this['description'],this['on']('change:description',(_0x24a44a,_0x4e2d39,_0x2bb829)=>{_0x1aa308['innerHTML']=_0x2bb829;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x32e1ec=this['bindTemplate'],_0x175f01=[{'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':_0x32e1ec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x32e1ec['to']('authoredAt',_0x500b23=>this['_config']['formatDateTime'](_0x500b23))}]}]},{'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']&&_0x175f01['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':_0x175f01}]};}['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'](_0x366572,_0x16bf6e,_0x1392a1,_0x5db2fc,_0x5a0ab6){const _0x37e7b2=new _0x52bc61(this['locale']);return _0x37e7b2['set']({'label':_0x366572,'icon':_0x16bf6e,'tooltip':!0x0,'tooltipPosition':_0x5a0ab6}),_0x37e7b2['extendTemplate']({'attributes':{'class':_0x1392a1}}),_0x37e7b2['on']('execute',()=>{this['fire'](_0x5db2fc,this['_model']['id']);}),_0x37e7b2;}['_setupKeyboardNavigation'](){const _0x1975c3=this['element'];this['keystrokes']['listenTo'](_0x1975c3);for(const _0x4fcaae of this['focusables'])this['focusTracker']['add'](_0x4fcaae['element']),this['keystrokes']['listenTo'](_0x4fcaae['element']);this['keystrokes']['set']('enter',(_0x416cac,_0x83620f)=>{_0x1975c3===_0x416cac['target']&&(this['focusCycler']['focusFirst'](),_0x83620f());}),this['keystrokes']['set']('esc',(_0x46a14e,_0x1369ac)=>{_0x1975c3!==_0x46a14e['target']&&(this['focus'](),_0x1369ac());});}}class u extends _0x2e7573{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x34d734,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x503a10){super(_0x503a10),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2974ee=this['editor']['config'];_0x2974ee['define']('trackChanges.SuggestionThreadView',fe),_0x2974ee['define']('trackChanges.SuggestionView',we),_0x2974ee['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2974ee['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f9b2c,_0x497481){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3aa575,_0x4128bf]of this['_handleControllerBuffer']){const _0x3824ce=this['_suggestionToController']['has'](_0x3aa575);_0x3824ce||_0x4128bf?_0x3824ce&&_0x4128bf&&this['_destroyController'](_0x3aa575):this['_initializeController'](_0x3aa575);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f9b2c,_0x497481);}['init'](){const _0x4051aa=this['editor'],_0x1456ee=_0x4051aa['plugins']['get']('TrackChangesEditing'),_0x4c10fc=_0x4051aa['plugins']['get']('Annotations'),_0x28fb95=_0x4051aa['plugins']['get']('EditorAnnotations'),_0x26db36=_0x4051aa['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x28fb95['addSourceCollector'](()=>{const _0x33af0f=[];for(const [_0x27bb3c,_0x772ebe]of Array['from'](this['_suggestionToController'])){const _0x7cdaba=_0x27bb3c['getAllAdjacentSuggestions'](),_0x5fe224=[];for(const _0x33d4c8 of _0x7cdaba){if(!_0x33d4c8['isInContent'])continue;if(_0x33d4c8['isMultiRange']){_0x5fe224['push'](..._0x33d4c8['getRanges']());continue;}const _0x3a9a69=_0x33d4c8['getFirstRange']();if(_0x5fe224['length']>0x0){const _0x4617a=_0x5fe224[0x0]['getJoined'](_0x3a9a69);if(_0x4617a){_0x5fe224[0x0]=_0x4617a;continue;}}_0x5fe224['push'](_0x3a9a69);}_0x33af0f['push']([_0x772ebe['view'],_0x5fe224]);}return _0x33af0f;}),this['listenTo'](_0x1456ee,'suggestionLoaded',(_0x55cc03,_0x2eef8c)=>{this['listenTo'](_0x2eef8c,'change:previous',(_0x5dbeed,_0x5dacf7,_0x717acc,_0x1f7316)=>{_0x2eef8c['isInContent']&&(null==_0x717acc?(this['_updateController'](_0x1f7316['head']),this['_handleSuggestionControllerDelayed'](_0x2eef8c,!0x1)):(this['_updateController'](_0x717acc['head']),null==_0x1f7316&&this['_handleSuggestionControllerDelayed'](_0x2eef8c,!0x0)));}),null!==_0x2eef8c['previous']?this['_updateController'](_0x2eef8c['head']):this['_handleSuggestionControllerDelayed'](_0x2eef8c,!0x1);}),this['listenTo'](_0x1456ee,'suggestionUnloaded',(_0x165e4e,_0x2ecda9,_0x5a8854)=>{this['stopListening'](_0x2ecda9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2ecda9),this['_suggestionToController']['has'](_0x2ecda9)&&this['_destroyController'](_0x2ecda9),_0x5a8854&&this['_updateController'](_0x5a8854['head']);}),this['listenTo'](_0x1456ee,'suggestionChanged',(_0x170ed2,_0x5ed270)=>{this['_updateController'](_0x5ed270);}),this['listenTo'](_0x4c10fc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x26db36,'addComment',(_0x556ef7,{threadId:_0x78c97f,isFromAdapter:_0x11bbcd})=>{if(_0x11bbcd||!_0x1456ee['hasSuggestion'](_0x78c97f))return;const _0x3ecd15=_0x1456ee['getSuggestion'](_0x78c97f);this['_suggestionToController']['get'](_0x3ecd15)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13dab5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a4fae;for(const _0x31b722 in _0x13dab5){const _0x5e1682=_0x31b722,_0x15b257=_0x13dab5[_0x5e1682];if('trackChangesLicenseKeyValid'==_0x15b257||'trackChangesLicenseKeyInvalid'==_0x15b257||'trackChangesLicenseKeyExpired'==_0x15b257||'trackChangesLicenseKeyDomainLimit'==_0x15b257||'trackChangesLicenseKeyNotAllowed'==_0x15b257||'trackChangesLicenseKeyEvaluationLimit'==_0x15b257||'trackChangesLicenseKeyTrialLimit'==_0x15b257||'trackChangesLicenseKeyUsageLimit'==_0x15b257){delete _0x13dab5[_0x5e1682],_0x2a4fae=_0x15b257,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2a4fae&&_0x13dab5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2a4fae&&_0x13dab5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2a4fae&&_0x13dab5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2a4fae&&_0x13dab5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2a4fae&&_0x13dab5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2a4fae&&_0x13dab5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2a4fae&&_0x13dab5['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3724dd){const _0x199782=this['_suggestionToController']['get'](_0x3724dd);if(!_0x199782)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x199782['view'])||null;}['getSuggestionForAnnotation'](_0x452ae4){const _0xfae8f0=this['_viewToController']['get'](_0x452ae4['innerView']);return _0xfae8f0?_0xfae8f0['model']:null;}['_refreshActiveMarkers'](){const _0x493ba3=this['editor']['plugins']['get']('Annotations'),_0x2ac83f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46693a=Array['from'](_0x493ba3['activeAnnotations'],_0x3f2efe=>_0x3f2efe['innerView'])['filter'](_0x483db4=>this['_viewToController']['has'](_0x483db4)),_0x8cd57b=[];for(const _0x571602 of _0x46693a){const _0x578f40=this['_viewToController']['get'](_0x571602)['model']['getAllAdjacentSuggestions']();_0x8cd57b['push'](..._0x578f40['reduce']((_0x5b1fbb,_0x5c40bd)=>[..._0x5b1fbb,..._0x5c40bd['getMarkerNames']()],[]));}_0x2ac83f['activeMarkers']=_0x8cd57b;}['_addUIComponentsToFactory'](){const _0x2b67e9=this['editor'],_0x38ff27=_0x2b67e9['locale'],_0x3bc6e9=o(_0x38ff27,'Track\x20changes'),_0x309b33=new _0x337a51([{'type':'switchbutton','model':new _0x154060({'withText':!0x0,'isToggleable':!0x0,'label':_0x3bc6e9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2b67e9['plugins']['has']('TrackChangesPreview')&&_0x309b33['addMany']([{'type':'separator'},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x26282e of _0x309b33)if(ke(_0x26282e)){const _0x21607f=_0x2b67e9['commands']['get'](_0x26282e['model']['commandName']);_0x26282e['model']['bind']('isOn','isEnabled')['to'](_0x21607f,'value','isEnabled');}_0x2b67e9['ui']['componentFactory']['add']('trackChanges',_0x486fb2=>this['_createToolbarButton'](_0x486fb2,_0x309b33,_0x3bc6e9)),_0x2b67e9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x32d2df=>this['_createMenuBarMenu'](_0x32d2df,_0x309b33,_0x3bc6e9));}['_createToolbarButton'](_0x2e97d8,_0x5e83b9,_0x322d72){const _0x377fdc=_0x4cc6f2(_0x2e97d8,_0x2533a2),_0x3ec6b1=this['editor']['commands']['get']('trackChanges');_0x377fdc['buttonView']['set']({'tooltip':_0x322d72,'label':_0x322d72,'icon':_0x3ce186}),_0x377fdc['buttonView']['bind']('isOn')['to'](_0x3ec6b1,'value'),_0x377fdc['buttonView']['on']('execute',()=>{_0x3ec6b1['execute'](),this['editor']['editing']['view']['focus']();}),_0x403ddc(_0x377fdc,_0x5e83b9,{'role':'menu'});const _0x446826=[];for(const _0x2af27b of _0x5e83b9)ke(_0x2af27b)&&_0x446826['push'](this['editor']['commands']['get'](_0x2af27b['model']['commandName']));const _0x4b291f=_0x377fdc['buttonView'];return _0x4b291f['actionView']['unbind']('isEnabled'),_0x4b291f['arrowView']['unbind']('isEnabled'),_0x4b291f['actionView']['bind']('isEnabled')['to'](_0x3ec6b1,'isEnabled'),_0x4b291f['arrowView']['bind']('isEnabled')['toMany'](_0x446826,'isEnabled',(..._0x133b76)=>_0x133b76['some'](_0xeec100=>_0xeec100)),_0x377fdc['on']('execute',_0x27b715=>{this['editor']['execute'](_0x27b715['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x377fdc;}['_createMenuBarMenu'](_0x5cd132,_0x11536e,_0x4f9c96){const _0x3eeafd=new _0x300cd3(_0x5cd132),_0x202750=this['editor']['commands']['get']('trackChanges');_0x3eeafd['buttonView']['set']({'label':_0x4f9c96,'icon':_0x3ce186});const _0x5e309c=new _0x165e35(_0x5cd132);for(const _0x6805a0 of _0x11536e){if('separator'==_0x6805a0['type']){_0x5e309c['items']['add'](new _0x475c98(_0x5cd132));continue;}const _0x7062f5=new _0x2e9641(_0x5cd132,_0x3eeafd),_0xc4fac6=new _0x454e07(_0x5cd132),_0x136f71=_0x6805a0['model'];_0xc4fac6['bind'](...Object['keys'](_0x136f71))['to'](_0x136f71),_0xc4fac6['delegate']('execute')['to'](_0x3eeafd),_0xc4fac6['on']('execute',()=>{this['editor']['execute'](_0x136f71['commandName']),this['editor']['editing']['view']['focus']();}),_0x7062f5['children']['add'](_0xc4fac6),_0x5e309c['items']['add'](_0x7062f5);}return _0x3eeafd['bind']('isEnabled')['to'](_0x202750,'isEnabled'),_0x3eeafd['panelView']['children']['add'](_0x5e309c),_0x3eeafd;}['_initializeController'](_0x65c50b){const _0x15a95e=this['editor'],_0x5bfdbe=_0x15a95e['config'],_0x39b489=_0x15a95e['plugins']['get']('Annotations'),_0x4a1492=_0x15a95e['plugins']['get']('CommentsRepository'),_0x24eb79=_0x15a95e['plugins']['get']('EditorAnnotations'),_0x397794=_0x15a95e['plugins']['get'](_0x34d734)['me'],_0x42263a=_0x5bfdbe['get']('trackChanges')['SuggestionThreadView'],_0x27bfbe=_0x5bfdbe['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x48c332,CommentThreadInputView:_0x92bf2d}=_0x15a95e['plugins']['get']('CommentsUI');let _0x196bdf,_0x11d3db,_0x45e710;this['_annotationViews']['has'](_0x65c50b['id'])?(_0x11d3db=this['_annotationViews']['get'](_0x65c50b['id']),_0x196bdf=_0x11d3db['mainView']):(_0x196bdf=new _0x42263a(_0x15a95e['locale'],_0x65c50b,_0x397794,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5bfdbe['get']('comments.editorConfig'),'licenseKey':_0x5bfdbe['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5bfdbe['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5bfdbe['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5bfdbe['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4a8dec(_0x5bfdbe['get']('locale'),_0x15a95e['locale']),'CommentView':_0x5bfdbe['get']('comments')['CommentView'],'CommentsListView':_0x48c332,'CommentThreadInputView':_0x92bf2d,'SuggestionView':_0x27bfbe}),_0x196bdf['suggestionView']['acceptButton']['on']('execute',()=>{_0x15a95e['editing']['view']['focus']();}),_0x196bdf['suggestionView']['discardButton']['on']('execute',()=>{_0x15a95e['editing']['view']['focus']();}),_0x11d3db=_0x39b489['createAnnotationView'](this['editor']['locale'],_0x196bdf),_0x11d3db['bind']('isDirty')['to'](_0x196bdf,'isDirty'),_0x11d3db['bind']('length')['to'](_0x196bdf),_0x11d3db['bind']('type')['to'](_0x196bdf,'type',_0x589978=>'suggestion-'+_0x589978),_0x196bdf['on']('escape',()=>{_0x45e710['fire']('escape');}),this['_annotationViews']['set'](_0x65c50b['id'],_0x11d3db));const _0x30a34a=_0x4a1492['createCommentThreadController'](_0x65c50b['commentThread'],_0x196bdf),_0x3342f5=new pe(_0x15a95e,_0x65c50b,_0x196bdf,_0x30a34a),_0x3045e2=_0x65c50b['getAllAdjacentSuggestions']()['filter'](_0x21911e=>_0x21911e['isInContent']);_0x196bdf['descriptionParts']=_0x15a95e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3045e2),this['_suggestionToController']['set'](_0x65c50b,_0x3342f5),this['_viewToController']['set'](_0x196bdf,_0x3342f5);const _0x53255c=()=>{const _0x4a340=[],_0x32e473=_0x65c50b['getAllAdjacentSuggestions']()['filter'](_0x21f538=>_0x21f538['isInContent']);for(const _0x2e684f of _0x32e473)_0x4a340['push'](..._0x2e684f['getMarkers']());return _0x18268c(_0x15a95e['editing'],_0x4a340);};_0x45e710=_0x39b489['createAnnotation']({'view':_0x11d3db,'target':_0x53255c,'type':()=>'suggestion-'+_0x3342f5['view']['type'],'isVisible':!!_0x53255c()}),_0x4a1492['_bindAnnotationToEditors'](_0x196bdf,_0x45e710),_0x39b489['add'](_0x45e710),_0x24eb79['registerAnnotation'](_0x45e710);}['_destroyController'](_0x212414){const _0x31aed4=this['editor']['plugins']['get']('CommentsRepository'),_0x2b4802=this['editor']['plugins']['get']('Annotations'),_0x5607e7=this['_suggestionToController']['get'](_0x212414),_0x503547=_0x5607e7['view'],_0x33e8c8=_0x2b4802['getByInnerView'](_0x503547);_0x31aed4['_unbindEditors'](_0x503547),_0x33e8c8&&_0x2b4802['remove'](_0x33e8c8),this['_suggestionToController']['delete'](_0x212414),this['_viewToController']['delete'](_0x503547),_0x5607e7['destroy']();}['_updateController'](_0x4fe1a2){if(!_0x4fe1a2['isInContent']||!this['_suggestionToController']['has'](_0x4fe1a2))return;const _0x3d3b14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x550dda=this['_suggestionToController']['get'](_0x4fe1a2),_0x38532c=_0x4fe1a2['getAllAdjacentSuggestions']();_0x550dda['view']['descriptionParts']=_0x3d3b14['descriptionFactory']['getDescriptions'](_0x38532c);}['destroy'](){for(const _0x41f2dc of this['_suggestionToController']['keys']())this['_destroyController'](_0x41f2dc);for(const _0x3561f9 of this['_annotationViews']['values']())_0x3561f9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x274550){return'model'in _0x274550;}class Ne extends _0x2e7573{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x30222b){this['editor']['plugins']['get'](d)['adapter']=_0x30222b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x29da77){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x29da77);}['getSuggestions']({skipNotAttached:_0x59eef4=!0x1,toJSON:_0x7bb554=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x59eef4,'toJSON':_0x7bb554});}['getSuggestion'](_0x26b329){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x26b329);}}const p=['Pagination'];class re extends _0x2e7573{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2c91ab=this['editor'];if(_0x2c91ab['config']['define']('trackChangesData.editorCreator',_0x10c16c=>{const _0x22f6b3=_0x2c91ab['model']['document']['getRootNames']()['reduce']((_0x112b68,_0x269464)=>(_0x112b68[_0x269464]='',_0x112b68),{});return _0x2c91ab['constructor']['create'](_0x22f6b3,_0x10c16c);}),'function'!=typeof _0x2c91ab['config']['get']('trackChangesData')['editorCreator'])throw new _0x46a289('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x516217){return P(this['editor'],!0x0,_0x516217);}['getDataWithDiscardedSuggestions'](_0xbad6b0){return P(this['editor'],!0x1,_0xbad6b0);}}class Fe extends _0x2e7573{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48880d){function _0x4bebc1(_0x760ce9){return _0x760ce9['map'](_0x1c34ee=>String['fromCharCode'](_0x1c34ee))['join']('');}super(_0x48880d),this['result']='end',_0x48880d[_0x4bebc1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bebc1([0x76,0x69,0x65,0x77])][_0x4bebc1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bebc1([0x61,0x75,0x74,0x6f]),_0x48880d[_0x4bebc1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4bebc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bebc1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4bebc1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4bebc1([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(_0x19b785){return void 0x0!==_0x19b785['getRootsAttributes'];}async function P(_0x22b449,_0x248122,_0x52c9b0){const _0xa9bfeb=_0x8731a5(_0x22b449,p);_0xa9bfeb['plugins']['push'](d,Fe),_0xa9bfeb['rootsAttributes']=De(_0x22b449)?_0x22b449['getRootsAttributes']():void 0x0;const _0x48b380=document['createDocumentFragment'](),_0x4329a0=_0x22b449['config']['get']('trackChangesData')['editorCreator'],_0x513d7b=await _0x4329a0(_0xa9bfeb,()=>function(_0x166f86){const _0x59d933=document['createElement']('div');return _0x166f86['appendChild'](_0x59d933),_0x59d933;}(_0x48b380));!function(_0x3865c9,_0xc5f3f2){const _0x1f2eb1=_0x3865c9['model']['document']['getRootNames']()['reduce']((_0x49b6f5,_0x169306)=>(_0x49b6f5[_0x169306]=_0x3865c9['data']['get']({'rootName':_0x169306}),_0x49b6f5),{}),_0x5adf0f=_0x3865c9['plugins']['get']('Users')['users']['map'](_0xae015a=>({'id':_0xae015a['id'],'name':_0xae015a['name']})),_0x16b396=_0x3865c9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3f33a9=_0x3865c9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xcc2a50=_0xc5f3f2['plugins']['get']('Users'),_0x1e6d57=_0xc5f3f2['plugins']['get']('TrackChangesEditing'),_0x208d2c=_0xc5f3f2['plugins']['get']('CommentsRepository');for(const _0x113913 of _0x208d2c['getCommentThreads']())_0x113913['remove']();for(const _0x1ea647 of _0x5adf0f)_0xcc2a50['getUser'](_0x1ea647['id'])||_0xcc2a50['addUser'](_0x1ea647);_0xcc2a50['me']||_0xcc2a50['useAnonymousUser']();for(const _0x1c2552 of _0x3f33a9)_0x208d2c['addCommentThread'](_0x1c2552);for(const _0x281d63 of _0x16b396)_0x1e6d57['addSuggestionData'](_0x281d63);_0xc5f3f2['data']['set'](_0x1f2eb1);}(_0x22b449,_0x513d7b),_0x513d7b['execute'](_0x248122?'acceptAllSuggestions':'discardAllSuggestions');const _0xcaaa8=De(_0x513d7b)?_0x513d7b['getFullData'](_0x52c9b0):_0x513d7b['data']['get'](_0x52c9b0);return await _0x513d7b['destroy'](),_0xcaaa8;}class Me extends _0x20be2a{['options'];constructor(_0x1c5547,_0x36880d){super(_0x1c5547),this['options']=_0x36880d,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'](_0x86c9f8,_0x150a23){if(!this['element'])return;const _0x3029f8=[];for(const [_0x2488b1,_0x57a19b]of _0x86c9f8){const _0x43d5d1=document['createElement']('div');_0x43d5d1['setAttribute']('data-ck-root-name',_0x2488b1),_0x43d5d1['className']=_0x57a19b['classes']+'\x20ck-track-changes-preview__root-container',_0x43d5d1['innerHTML']=_0x57a19b['content'],_0x3029f8['push'](_0x43d5d1);}_0x150a23(this['element'],_0x3029f8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5c7385{constructor(_0x5a40ff){super(_0x5a40ff),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x249884=this['editor'],_0x53d796=_0x249884['locale'],_0x488d1f=_0x249884['plugins']['get']('Dialog');let _0xf8d521;const _0x39d394=function(_0x3b09ec){const _0x4c7009={};if('editables'in _0x3b09ec['ui']['view']){for(const [_0x50a7cd,_0x4fe1a7]of Object['entries'](_0x3b09ec['ui']['view']['editables']))_0x4c7009[_0x50a7cd]=_0x4fe1a7['element'];}else _0x4c7009[_0x3b09ec['model']['document']['getRootNames']()[0x0]]=_0x3b09ec['ui']['view']['editable']['element'];return _0x4c7009;}(_0x249884),_0x4eeb9c=function(_0x2a31a5){let _0x45d008=0x0;for(const _0xd8018c of Object['values'](_0x2a31a5))_0x45d008=Math['max'](_0x45d008,_0xd8018c['getBoundingClientRect']()['width']);let _0x5440c5=0x0;for(const _0x5d2121 of Object['values'](_0x2a31a5))_0x5440c5+=_0x5d2121['getBoundingClientRect']()['height'];const _0xe5db6b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2810e9=Math['min'](_0x5440c5,_0xe5db6b);return{'width':_0x45d008,'height':_0x2810e9};}(_0x39d394);_0x488d1f['show']({'id':'finalContentPreview','title':o(_0x53d796,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x53d796,{'dialogRects':_0x4eeb9c}),'onHide':()=>{_0xf8d521['detachFromDom']();},'onShow':()=>{_0x249884['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5ef109=>{const _0x367ad0=this['_standarizeRootsData'](_0x5ef109,_0x249884,_0x39d394);_0x488d1f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x367ad0,_0x249884['config']['get']('trackChanges.preview.renderFunction'));}),_0xf8d521=new _0x423b18(_0x53d796,[_0x488d1f['view']]),_0xf8d521['attachToDom'](),_0xf8d521['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x249884['once']('destroy',()=>{_0xf8d521['detachFromDom']();});const _0x2abda2=_0x488d1f['view']['headerView']['class'];_0x488d1f['view']['headerView']['class']=_0x2abda2?_0x2abda2+'\x20ck-reset_all':'ck-reset_all',_0x488d1f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x488d1f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3545f2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x753da2=_0x3545f2['previewMode'],_0x1c940a={};if('$labels'===_0x753da2){for(const _0x143b27 of _0x3545f2['getMergeFieldsIds']())_0x1c940a[_0x143b27]=_0x3545f2['getLabel'](_0x143b27)||_0x143b27;}else{const _0x3734bf='$defaultValues'===_0x753da2?_0x3545f2['getDefaultValues']():_0x3545f2['getDataSetValues'](_0x753da2,!0x0);for(const _0x26c523 of Object['entries'](_0x3734bf)){const [_0x1e79ea,_0xb0edbb]=_0x26c523;_0x1c940a[_0x1e79ea]=null!==_0xb0edbb?_0xb0edbb:_0x3545f2['getLabel'](_0x1e79ea)||_0x1e79ea;}}return{'mergeFieldsData':_0x1c940a};}['_standarizeRootsData'](_0x255772,_0x578935,_0x143ff3){let _0x255ee1;if('string'==typeof _0x255772){const _0x1386b5=_0x578935['model']['document']['getRootNames']()[0x0];_0x255ee1={[_0x1386b5]:_0x255772};}else _0x255ee1=_0x255772;const _0x383b57=this['_fixMediaEmbeds'](_0x255ee1,_0x578935),_0x5696f9=function(_0xf72e81,_0x53859d){for(const [_0x1db8ef,_0x4def4a]of _0xf72e81)_0x4def4a['classes']=_0x53859d[_0x1db8ef]['classList']['value']['replace']('ck-focused','');return _0xf72e81;}(this['_sortRoots'](_0x578935)['reduce']((_0xe4fbc1,_0x13658a)=>(_0xe4fbc1['push']([_0x13658a,{'content':_0x383b57[_0x13658a],'classes':''}]),_0xe4fbc1),[]),_0x143ff3);return _0x5696f9;}['_fixMediaEmbeds'](_0x4a7437,_0x5bfb9f){if(!_0x5bfb9f['plugins']['has']('MediaEmbedEditing'))return _0x4a7437;const _0x1af7bb=_0x5bfb9f['plugins']['get']('MediaEmbedEditing');for(const [_0x48bab1,_0x2de316]of Object['entries'](_0x4a7437)){const _0x57f56e=document['createElement']('div');_0x57f56e['innerHTML']=_0x2de316,(_0x57f56e['querySelectorAll']('figure.media')['forEach'](_0x49217a=>{const _0x51b8fc=_0x49217a['querySelector']('oembed');if(_0x51b8fc){const _0x19dfe2=_0x51b8fc['getAttribute']('url');if(_0x19dfe2){const _0x2e478d=_0x1af7bb['registry']['getMediaViewElement'](new _0x1b9e66(_0x5bfb9f['editing']['view']['document']),_0x19dfe2,{'elementName':'','renderForEditingView':!0x0}),_0x17bf8b=document['createElement']('div');_0x17bf8b['classList']['add']('ck-media__wrapper'),_0x2e478d['render'](_0x17bf8b,_0x5bfb9f['editing']['view']['domConverter']),_0x51b8fc['replaceWith'](_0x17bf8b);}}}),_0x4a7437[_0x48bab1]=_0x57f56e['innerHTML']);}return _0x4a7437;}['_sortRoots'](_0x3f210b){if(!function(_0xc9da6a){return void 0x0!==_0xc9da6a['getRootsAttributes'];}(_0x3f210b))return _0x3f210b['model']['document']['getRootNames']();const _0x6e03c6=[],_0x465426=new Map();for(const _0x5df994 of _0x3f210b['model']['document']['getRootNames']()){const _0x1869c0=_0x3f210b['editing']['view']['getDomRoot'](_0x5df994)['getClientRects']()['item'](0x0);_0x6e03c6['push'](_0x5df994),_0x465426['set'](_0x5df994,_0x1869c0);}return _0x6e03c6['sort']((_0x286440,_0x1ddfa6)=>{const _0x174a5f=_0x465426['get'](_0x286440),_0x3e80aa=_0x465426['get'](_0x1ddfa6);return _0x174a5f['y']-_0x3e80aa['y']||_0x174a5f['x']-_0x3e80aa['x'];}),_0x6e03c6;}}class Ue extends _0x2e7573{static get['requires'](){return[re,_0x3dac62];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27dc67){super(_0x27dc67),_0x27dc67['commands']['add']('previewFinalContent',new te(this['editor'])),_0x27dc67['config']['define']('trackChanges.preview.renderFunction',(_0x346d9e,_0x218df6)=>{for(const _0x328e0e of _0x218df6)_0x346d9e['appendChild'](_0x328e0e);});}}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};
|