@ckeditor/ckeditor5-track-changes 44.0.0-alpha.6 → 44.0.0-alpha.8
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/LICENSE.md +7 -7
- package/README.md +15 -12
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- 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/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 +10 -10
- 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/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/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/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 +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.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/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/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/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x5de982(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1989db,_0x128b41){super(),this['id']=_0x128b41['id'],this['type']=_0x128b41['type'],this['subType']=_0x128b41['subType']||null,this['author']=_0x128b41['author'],this['creator']=_0x128b41['creator']||_0x128b41['author'],this['isExternal']=Boolean(_0x128b41['attributes']&&_0x128b41['attributes']['@external']),this['data']=null,this['_model']=_0x1989db,this['_onAccept']=_0x128b41['onAccept'],this['_onDiscard']=_0x128b41['onDiscard'],this['_onAttributesChange']=_0x128b41['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x128b41['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 _0x176475=this;for(;_0x176475['previous'];)_0x176475=_0x176475['previous'];return _0x176475;}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'](_0x47015d){this['_markerNames']['add'](_0x47015d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x59aec2=>this['_model']['markers']['get'](_0x59aec2))['filter'](_0x2c52fa=>_0x2c52fa);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2a4fa9=>{for(const _0x14cd45 of this['getMarkers']())_0x2a4fa9['removeMarker'](_0x14cd45);}),this['_markerNames']['clear']();}['removeMarker'](_0xb6bf59){this['_model']['change'](_0x4edcaf=>{_0x4edcaf['removeMarker'](_0xb6bf59);}),this['_markerNames']['delete'](_0xb6bf59);}['addRange'](_0x13f326){const _0x34746a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x34746a),this['_model']['change'](_0x5810b0=>{_0x5810b0['addMarker'](_0x34746a,{'range':_0x13f326,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x129d23){for(const _0x2d97cf of this['getRanges']())if(_0x2d97cf['isIntersecting'](_0x129d23))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xf1dd5b=>_0xf1dd5b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x27dd79,_0x4b8a94)=>[..._0x27dd79,..._0x4b8a94['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x7ccbfb=this['getRanges']();if(0x1!=_0x7ccbfb['length'])return null;const _0x5c6d3c=_0x7ccbfb[0x0],_0x410d34=_0x5c6d3c['start']['nodeAfter'],_0x43ac04=_0x5c6d3c['end']['nodeBefore'];return _0x410d34 instanceof _0x508285?_0x410d34!=_0x43ac04?null:_0x410d34: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 _0x1c8975=[];let _0x3b5366=this['head'];for(;_0x3b5366;)_0x1c8975['push'](_0x3b5366),_0x3b5366=_0x3b5366['next'];return _0x1c8975;}['setAttribute'](_0x3f5dd7,_0x405669){const _0x2c5ea8=_0x255812(this['attributes']);_0x2156dd(_0x2c5ea8,_0x3f5dd7,_0x405669),_0x4dfac2(_0x2c5ea8,this['attributes'])||(this['attributes']=_0x2c5ea8,this['_onAttributesChange'](_0x2c5ea8));}['removeAttribute'](_0x51e416){const _0x386486=_0x255812(this['attributes']);_0xa93136(_0x386486,_0x51e416),_0x4dfac2(_0x386486,this['attributes'])||(this['attributes']=_0x386486,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 _0xb9e80()['substr'](0x1,0x5);}}function o(_0x5ab091,_0x150fe7,_0x4a597d){const _0x1842b3=_0x5ab091['t'],t=_0x5ab091['t'];switch(_0x150fe7){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'*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',_0x4a597d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4a597d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4a597d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4a597d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4a597d);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',_0x4a597d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4a597d);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x4a597d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4a597d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4a597d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4a597d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4a597d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4a597d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4a597d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4a597d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4a597d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4a597d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4a597d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4a597d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4a597d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4a597d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4a597d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4a597d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4a597d);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'},_0x4a597d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4a597d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4a597d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4a597d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4a597d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4a597d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4a597d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4a597d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4a597d);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'},_0x4a597d);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'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'},_0x4a597d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4a597d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4a597d);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 _0x1842b3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4a597d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1842b3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4a597d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4a597d);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'},_0x4a597d);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'},_0x4a597d);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'},_0x4a597d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x150fe7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3450b2,_0x1f141e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3450b2,this['_locale']=_0x1f141e;}['getDescriptions'](_0xb46d4){const _0x3bbf54=[],_0xfa88bb=new Set(),_0x34cce2=new Set();for(let _0x291c9a=0x0;_0x291c9a<_0xb46d4['length'];_0x291c9a++){const _0x3d785e=_0xb46d4[_0x291c9a];if(!_0x3d785e['isInContent'])continue;const _0x3f44e2=this['_handleCustomCallbackDescription'](_0x3d785e);if(_0x3f44e2){if(null!=_0x3d785e['subType']){if(_0xfa88bb['has'](_0x3d785e['subType']))continue;_0xfa88bb['add'](_0x3d785e['subType']);}_0x3bbf54['push'](_0x3f44e2);}else{if('attribute'!=_0x3d785e['type'])'insertion'!=_0x3d785e['type']&&'deletion'!=_0x3d785e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3bbf54,_0x3d785e,_0xb46d4[_0x291c9a+0x1]);else{const _0x41ac70=_0x3d785e['data']['key'];if(_0x34cce2['has'](_0x41ac70))continue;_0x34cce2['add'](_0x3d785e['data']['key']),_0x41ac70==m?this['_handleRenameSuggestionDescription'](_0x3bbf54,_0x3d785e):this['_handleAttributeSuggestionDescription'](_0x3bbf54,_0x3d785e);}}}return this['_resolveDescriptionItems'](_0x3bbf54);}['registerDescriptionCallback'](_0x4c0eb7){this['_customCallbacks']['push'](_0x4c0eb7);}['registerElementLabel'](_0x2ea48c,_0x7286e8,_0x2b2ce2=_0xe00547['normal']){'function'==typeof _0x2ea48c?_0x520d8b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ea48c,'label':_0x7286e8,'priority':_0x2b2ce2}):this['_itemLabels']['set'](_0x2ea48c,_0x7286e8);}['registerAttributeLabel'](_0x4b09d0,_0x496135){this['_attributeLabels']['set'](_0x4b09d0,_0x496135);}['getItemLabel'](_0x43c8fc,_0x318a1a=0x1){let _0x1a2aef;for(const _0x23fd62 of this['_itemLabelsCallbacks'])if(_0x23fd62['matchingCallback'](_0x43c8fc)){_0x1a2aef=_0x23fd62['label'];break;}return _0x1a2aef||(_0x1a2aef=this['_itemLabels']['get'](_0x43c8fc['name'])),_0x1a2aef?_0x1a2aef(_0x318a1a):0x1!==_0x318a1a?_0x318a1a+'\x20'+_0x43c8fc['name']+'s':''+_0x43c8fc['name'];}['_addDescriptionItems'](_0xaca27e,_0x3ac6af){const _0x221da3=_0x3ac6af['getFirstRange']()['getWalker'](),_0x3f8e85='insertion'==_0x3ac6af['type']?'add':'remove';for(const _0x1f5e77 of _0x221da3){const _0x5f04fb=_0x1f5e77['item'],_0x10b7b0=_0xaca27e[_0xaca27e['length']-0x1];if(_0x5f04fb['is']('$textProxy'))_0x10b7b0&&_0x10b7b0['type']['indexOf']('Container')>-0x1&&_0xaca27e['pop'](),_0x10b7b0&&'text'==_0x10b7b0['type']?_0x10b7b0[_0x3f8e85]+=_0x5f04fb['data']:_0xaca27e['push']({'type':'text','add':'add'==_0x3f8e85?_0x5f04fb['data']:'','remove':'remove'==_0x3f8e85?_0x5f04fb['data']:''});else{if(this['_schema']['isObject'](_0x5f04fb)){const _0xd5b169=_0x5f04fb;if(_0x10b7b0&&_0x10b7b0['type']['indexOf']('Container')>-0x1&&_0xaca27e['pop'](),'elementEnd'==_0x1f5e77['type'])continue;_0x10b7b0&&_0x10b7b0['type']==_0x3f8e85+'Object'&&_0x10b7b0['element']['name']==_0xd5b169['name']?_0x10b7b0['quantity']++:_0xaca27e['push']({'type':_0x3f8e85+'Object','element':_0xd5b169,'quantity':0x1}),_0x221da3['skip'](_0xc7a641=>!('elementEnd'==_0xc7a641['type']&&_0xc7a641['item']==_0x5f04fb));}else{if(this['_schema']['checkChild'](_0x5f04fb,'$text')||_0x5f04fb['is']('element','softBreak')){const _0x36fc54=_0x5f04fb;if('add'==_0x3f8e85&&'elementStart'==_0x1f5e77['type']||'remove'==_0x3f8e85&&'elementEnd'==_0x1f5e77['type'])continue;if(_0x10b7b0&&-0x1==_0x10b7b0['type']['indexOf']('Container')){'text'==_0x10b7b0['type']&&(_0x10b7b0[_0x3f8e85]+='\x0a');continue;}let _0x339a9e;if(_0x339a9e='add'==_0x3f8e85?_0x36fc54['nextSibling']&&!this['_schema']['isObject'](_0x36fc54['nextSibling'])?_0x36fc54['nextSibling']:null:_0x36fc54['previousSibling']&&!this['_schema']['isObject'](_0x36fc54['previousSibling'])?_0x36fc54['previousSibling']:null,_0x36fc54['isEmpty']||_0x339a9e&&_0x339a9e['isEmpty']){const _0x42caa2=_0x339a9e&&_0x339a9e['isEmpty']?_0x339a9e:_0x36fc54;_0x10b7b0&&_0x10b7b0['type']==_0x3f8e85+'EmptyContainer'&&_0x10b7b0['element']['name']==_0x42caa2['name']?_0x10b7b0['quantity']++:_0xaca27e['push']({'type':_0x3f8e85+'EmptyContainer','element':_0x42caa2,'quantity':0x1});}else _0xaca27e['push']({'type':_0x3f8e85+'Container','element':_0x36fc54});}}}}}['_resolveDescriptionItems'](_0x1c957b){const _0x1a7c08=this['_locale'],_0x2a568f=[],_0x3fb453=[],_0x4d93fc=[];for(const _0x38cf1e of _0x1c957b)switch(_0x38cf1e['type']){case'text':if(_0x38cf1e['add']=_0x38cf1e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x38cf1e['remove']=_0x38cf1e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x38cf1e['add']&&''!=_0x38cf1e['remove']){_0x2a568f['push']({'type':'replace','content':o(_0x1a7c08,'REPLACE_TEXT',['\x22'+_0x38cf1e['remove']+'\x22','\x22'+_0x38cf1e['add']+'\x22'])});continue;}if(null!=_0x38cf1e['add']['match'](/^ +$/)){_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Insert:*\x20%0',o(_0x1a7c08,'ELEMENT_SPACE',_0x38cf1e['add']['length']))});continue;}if(null!=_0x38cf1e['remove']['match'](/^ +$/)){_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Remove:*\x20%0',o(_0x1a7c08,'ELEMENT_SPACE',_0x38cf1e['remove']['length']))});continue;}if(''!=_0x38cf1e['add']){_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Insert:*\x20%0','\x22'+_0x38cf1e['add']+'\x22')});continue;}_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Remove:*\x20%0','\x22'+_0x38cf1e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Insert:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Remove:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'addContainer':_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Split:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'removeContainer':_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Merge:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'addFormat':_0x3fb453['push'](_0x38cf1e['key']);continue;case'removeFormat':_0x4d93fc['push'](_0x38cf1e['key']);continue;default:_0x2a568f['push'](_0x38cf1e);}if(_0x3fb453['length']){const _0x40768d=_0x3fb453['map'](_0x54d4c4=>this['_attributeLabels']['has'](_0x54d4c4)?this['_attributeLabels']['get'](_0x54d4c4):_0x54d4c4)['join'](',\x20');_0x2a568f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x40768d)});}if(_0x4d93fc['length']){const _0x2f422d=_0x4d93fc['map'](_0x3cdd63=>this['_attributeLabels']['has'](_0x3cdd63)?this['_attributeLabels']['get'](_0x3cdd63):_0x3cdd63)['join'](',\x20');_0x2a568f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f422d)});}return _0x2a568f;}['_handleCustomCallbackDescription'](_0x591aaa){for(const _0x41b9f2 of this['_customCallbacks']){const _0x3fd01b=_0x41b9f2(_0x591aaa);if(_0x3fd01b&&'type'in _0x3fd01b)return _0x3fd01b;}}['_handleAttributeSuggestionDescription'](_0x322bdd,_0x44118a){const _0x56d9a1=_0x44118a['data'],_0x1255dd=void 0x0===_0x56d9a1['newValue']?'removeFormat':'addFormat';_0x322bdd['push']({'type':_0x1255dd,'key':_0x56d9a1['key']});}['_handleRenameSuggestionDescription'](_0x1f3403,_0x2575f4){_0x1f3403['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2575f4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51290d,_0x467629,_0x35cd39){if(this['_addDescriptionItems'](_0x51290d,_0x467629),_0x35cd39&&_0x35cd39['getFirstRange']()&&!_0x467629['getFirstRange']()['end']['isEqual'](_0x35cd39['getFirstRange']()['start'])){const _0x239300=_0x51290d[_0x51290d['length']-0x1],_0x584bb2='insertion'==_0x467629['type']?'add':'remove';_0x239300&&'text'==_0x239300['type']&&(_0x239300[_0x584bb2]+='\x0a');}}}class U extends _0x522036{['afterInit'](){const _0x11e2b8=this['editor'],_0x4b3b4c=_0x11e2b8['plugins']['get']('TrackChangesEditing');_0x11e2b8['commands']['get']('showAIAssistant')&&_0x4b3b4c['enableCommand']('showAIAssistant');}}class V extends _0x522036{['afterInit'](){const _0x581961=this['editor'],_0x4b0c03=_0x581961['locale'];if(!_0x581961['plugins']['has']('AlignmentEditing'))return;const _0x57dd1c=_0x581961['plugins']['get']('TrackChangesEditing');_0x57dd1c['enableDefaultAttributesIntegration']('alignment'),_0x57dd1c['registerBlockAttribute']('alignment'),_0x57dd1c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4b0c03,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482482=this['editor'],_0x48ff7d=_0x482482['locale'];_0x482482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4de303=>{if('formatBlock'!=_0x4de303['type'])return;const {data:_0x3ebb7d}=_0x4de303;if(_0x3ebb7d&&'alignment'==_0x3ebb7d['commandName']){const _0x27e580=_0x3ebb7d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x48ff7d,'*Format:*\x20%0',function(_0x592697){switch(_0x592697){case'left':return o(_0x48ff7d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x48ff7d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x48ff7d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x48ff7d,'FORMAT_JUSTIFY_TEXT');}}(_0x27e580))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x522036{['afterInit'](){const _0x3e88cd=this['editor'],_0x1b3f9a=_0x3e88cd['plugins']['get']('TrackChangesEditing'),_0x36a2b1=_0x3e88cd['locale'];for(const _0x5d12cf of Zt){if(!_0x3e88cd['plugins']['has'](_0x5d12cf))continue;const _0x139701=_0x5d12cf['slice'](0x0,-0x7)['toLowerCase'](),_0xe8f36c='FORMAT_'+_0x139701['toUpperCase']();_0x1b3f9a['enableDefaultAttributesIntegration'](_0x139701),_0x1b3f9a['registerInlineAttribute'](_0x139701),_0x1b3f9a['descriptionFactory']['registerAttributeLabel'](_0x139701,o(_0x36a2b1,_0xe8f36c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe0838d=this['editor'],_0xd0b14=_0xe0838d['locale'],_0x4356f7=_0xe0838d['plugins']['get']('TrackChangesEditing');function _0x2d63e4(_0x4b1e8c,_0x36ce13){_0x4356f7['descriptionFactory']['registerDescriptionCallback'](_0x1da0c8=>{if('formatInline'!=_0x1da0c8['type'])return;const {data:_0x575f2c}=_0x1da0c8;return _0x575f2c&&_0x575f2c['commandName']===_0x4b1e8c?_0x575f2c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd0b14,'*Format:*\x20%0',_0x36ce13)}:{'type':'format','content':o(_0xd0b14,'*Remove\x20format:*\x20%0',_0x36ce13)}:void 0x0;});}_0x2d63e4('bold',o(_0xd0b14,'FORMAT_BOLD')),_0x2d63e4('italic',o(_0xd0b14,'FORMAT_ITALIC')),_0x2d63e4('underline',o(_0xd0b14,'FORMAT_UNDERLINE')),_0x2d63e4('code',o(_0xd0b14,'FORMAT_CODE')),_0x2d63e4('strikethrough',o(_0xd0b14,'FORMAT_STRIKETHROUGH')),_0x2d63e4('subscript',o(_0xd0b14,'FORMAT_SUBSCRIPT')),_0x2d63e4('superscript',o(_0xd0b14,'FORMAT_SUPERSCRIPT'));}}class F extends _0x522036{['afterInit'](){const _0x36a3e0=this['editor'],_0x3dd906=_0x36a3e0['locale'];if(!_0x36a3e0['plugins']['has']('BlockQuoteEditing'))return;const _0x19fe5d=_0x36a3e0['plugins']['get']('TrackChangesEditing'),_0x4abff3=this['editor']['commands']['get']('blockQuote');_0x19fe5d['enableCommand']('blockQuote',(_0x5a5022,_0x5425c6={})=>{const _0x53e800=this['editor']['model']['document']['selection'],_0x5cd5d9=_0x5425c6&&void 0x0!==_0x5425c6['forceValue']?_0x5425c6['forceValue']:!_0x4abff3['value'];let _0xfe5ff6=[];if(_0x5cd5d9){const _0x5bde2f=Array['from'](_0x53e800['getSelectedBlocks']())['filter'](_0x4477cf=>oo(_0x4477cf)||function(_0x1b8eef,_0x364e83){const _0x2fb774=_0x364e83['checkChild'](_0x1b8eef['parent'],'blockQuote'),_0x23b438=_0x364e83['checkChild'](['$root','blockQuote'],_0x1b8eef);return _0x2fb774&&_0x23b438;}(_0x4477cf,this['editor']['model']['schema']));_0xfe5ff6=to(_0x5bde2f,_0x36a3e0['model']);}else{const _0x38cd2b=Array['from'](_0x53e800['getSelectedBlocks']())['filter'](_0x5b85f4=>oo(_0x5b85f4));_0xfe5ff6=to(_0x38cd2b,_0x36a3e0['model']);}_0x36a3e0['model']['change'](()=>{for(const _0x3a284c of _0xfe5ff6)_0x19fe5d['markBlockFormat'](_0x3a284c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5cd5d9}]});});}),_0x19fe5d['descriptionFactory']['registerDescriptionCallback'](_0x501628=>{const {data:_0x49c3f2}=_0x501628;if(_0x49c3f2&&'blockQuote'==_0x49c3f2['commandName']){const _0x168da9=o(_0x3dd906,'ELEMENT_BLOCK_QUOTE');return _0x49c3f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3dd906,'*Set\x20format:*\x20%0',_0x168da9)}:{'type':'format','content':o(_0x3dd906,'*Remove\x20format:*\x20%0',_0x168da9)};}});}}function oo(_0x4ab776){return'blockQuote'==_0x4ab776['parent']['name'];}class L extends _0x522036{['afterInit'](){const _0x236dd0=this['editor'],_0x5a14fe=_0x236dd0['locale'],_0x206832=_0x236dd0['plugins']['get']('TrackChangesEditing');_0x236dd0['plugins']['has']('BookmarkEditing')&&(_0x206832['enableCommand']('insertBookmark'),_0x206832['enableDefaultAttributesIntegration']('updateBookmark'),_0x206832['registerBlockAttribute']('bookmarkId'),_0x206832['descriptionFactory']['registerDescriptionCallback'](_0x1a2b40=>{if('insertion'!=_0x1a2b40['type']&&'deletion'!=_0x1a2b40['type']&&'attribute'!=_0x1a2b40['type'])return;const _0xeb374a=_0x1a2b40['getContainedElement']();if(null==_0xeb374a)return;if(!_0xeb374a['is']('element','bookmark'))return;const _0x324c4e=_0xeb374a['getAttribute']('bookmarkId');if('insertion'==_0x1a2b40['type'])return{'type':'insertion','content':o(_0x5a14fe,'*Insert:*\x20%0','\x22'+_0x324c4e+'\x22\x20'+o(_0x5a14fe,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1a2b40['type'])return{'type':'deletion','content':o(_0x5a14fe,'*Remove:*\x20%0','\x22'+_0x324c4e+'\x22\x20'+o(_0x5a14fe,'ELEMENT_BOOKMARK'))};const {data:_0x3a0bf4}=_0x1a2b40;if(!_0x3a0bf4||'bookmarkId'!=_0x3a0bf4['key'])return;return{'type':'format','content':o(_0x5a14fe,'*Set\x20bookmark:*\x20%0','\x22'+_0x3a0bf4['newValue']+'\x22')};}));}}class J extends _0x522036{['afterInit'](){const _0x3abdf6=this['editor'];_0x3abdf6['plugins']['has']('CaseChange')&&(_0x3abdf6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3abdf6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3abdf6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x522036{['afterInit'](){const _0x10b99a=this['editor'];_0x10b99a['commands']['get']('ckbox')&&_0x10b99a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x522036{['afterInit'](){const _0x4d350e=this['editor'];if(!_0x4d350e['plugins']['has']('CodeBlock'))return;const _0x258632=_0x4d350e['plugins']['get']('TrackChangesEditing'),_0x19cabc=_0x4d350e['locale'],_0x13019a=_0x4d350e['config']['get']('codeBlock')['languages'],_0x3fd3fa=_0x4d350e['commands']['get']('codeBlock');_0x258632['enableCommand']('indentCodeBlock'),_0x258632['enableCommand']('outdentCodeBlock'),_0x258632['enableCommand']('codeBlock',(_0x3ea5f0,_0x1e70ad={})=>{const _0x3f3193=_0x4d350e['model'],_0x3a7613=_0x4d350e['model']['document']['selection'],_0x1cbbc0=_0x1e70ad&&void 0x0!==_0x1e70ad['forceValue']?_0x1e70ad['forceValue']:!_0x3fd3fa['value'];let _0x318a17;_0x1e70ad['language']||(_0x1e70ad['language']=_0x13019a[0x0]['language']),_0x318a17=_0x1cbbc0?Array['from'](_0x3a7613['getSelectedBlocks']())['filter'](_0x53975c=>eo(_0x53975c)||function(_0x2a5266,_0x3d8902){if(_0x2a5266['is']('rootElement')||_0x3d8902['isLimit'](_0x2a5266))return!0x1;return _0x3d8902['checkChild'](_0x2a5266['parent'],'codeBlock');}(_0x53975c,_0x3f3193['schema'])):Array['from'](_0x3a7613['getSelectedBlocks']())['filter'](_0x4a5aa8=>eo(_0x4a5aa8));const _0x5caaed=to(_0x318a17,_0x3f3193);_0x3f3193['change'](()=>{for(const _0x7c0cd6 of _0x5caaed)_0x258632['markBlockFormat'](_0x7c0cd6,{'commandName':'codeBlock','commandParams':[{..._0x1e70ad,'forceValue':_0x1cbbc0}],'formatGroupId':'blockName'});});}),(_0x258632['descriptionFactory']['registerElementLabel']('codeBlock',_0x2cfaeb=>o(_0x19cabc,'ELEMENT_CODE_BLOCK',_0x2cfaeb)),_0x258632['descriptionFactory']['registerDescriptionCallback'](_0x4201b3=>{if('formatBlock'!=_0x4201b3['type'])return;const _0x10aa89=_0x19cabc['t'],{data:_0x521039}=_0x4201b3;if(!_0x521039||'codeBlock'!=_0x521039['commandName'])return;const _0x57f7d7=_0x521039['commandParams'][0x0]['language'],_0x25ac62=_0x10aa89(_0x13019a['find'](_0x50fe21=>_0x50fe21['language']===_0x57f7d7)['label'])['toLowerCase']();return _0x521039['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19cabc,'*Set\x20format:*\x20%0',o(_0x19cabc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x25ac62+')')}:{'type':'format','content':o(_0x19cabc,'*Remove\x20format:*\x20%0',o(_0x19cabc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x26312c){return'codeBlock'==_0x26312c['name'];}class z extends _0x522036{['afterInit'](){const _0x13f586=this['editor'];if(!_0x13f586['plugins']['has']('CommentsEditing'))return;_0x13f586['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x325ba5,_0x35c1cd,_0x5926b2){const _0x4e0e4c=[];for(const _0x309c1e of _0x35c1cd['getItems']())_0x309c1e['hasAttribute'](_0x325ba5)&&_0x4e0e4c['push'](_0x5926b2['createRangeOn'](_0x309c1e));return _0x4e0e4c;}function Ne(_0x180f1d,_0x42a8d2,{showActiveMarker:_0x4e97d7=!0x0}={}){const _0x2e907c=_0x180f1d['plugins']['get']('TrackChangesEditing');return(_0xa0d2a1,_0x233679,_0x3fdc8e)=>{if(!_0x3fdc8e['consumable']['test'](_0x233679['markerRange'],_0xa0d2a1['name']))return;const _0xb3aa32=_0x233679['markerRange']['getWalker'](),_0x4bd259=_0x233679['markerRange']['start'],_0x26110b=_0x180f1d['model']['schema'];let _0x5e4eaf=null,_0x58c75e=null,_0x1b15ed=!0x1,_0x593857=!0x1;for(const _0x1ff5db of _0xb3aa32){const _0x461d26=_0x1ff5db['item'];_0x1b15ed=_0x1b15ed||_0x26110b['isContent'](_0x461d26);const _0x246b21=_0x3fdc8e['mapper']['toViewElement'](_0x461d26);if(_0x246b21&&_0x246b21['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ff5db['type']&&(_0x26110b['isBlock'](_0x461d26)&&!_0x26110b['isLimit'](_0x461d26)&&(_0x461d26['nextSibling']||_0x4bd259['isAtEnd']?_0x5e4eaf&&_0x5e4eaf['parent']==_0x461d26||(_0x5e4eaf=_0x461d26,_0x53568d(_0x1ff5db['previousPosition']),_0x593857=!0x0):_0x58c75e=_0x58c75e||_0x1ff5db['previousPosition']));}function _0x53568d(_0x19bd76){const {authorId:_0x384eed}=_0x2e907c['_splitMarkerName'](_0x233679['markerName']),_0x30af1f=_0x3fdc8e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42a8d2,'data-author-id':_0x384eed}),_0x33b3c0=_0x3fdc8e['mapper']['toViewPosition'](_0x19bd76);_0x4e97d7&&_0x2e907c['activeMarkers']['includes'](_0x233679['markerName'])&&_0x3fdc8e['writer']['addClass']('ck-suggestion-marker--active',_0x30af1f),_0x3fdc8e['writer']['insert'](_0x33b3c0,_0x30af1f),_0x3fdc8e['mapper']['bindElementToMarker'](_0x30af1f,_0x233679['markerName']);}_0x1b15ed||_0x593857||!_0x58c75e||_0x53568d(_0x58c75e);};}class K extends _0x522036{static get['requires'](){return[_0x14b539];}['init'](){const _0xe3d267=this['editor'],_0xf2b541=_0xe3d267['plugins']['get']('TrackChangesEditing');_0xf2b541['enableCommand']('delete');const _0x496ef3=_0xe3d267['commands']['get']('deleteForward');_0xf2b541['enableCommand']('deleteForward',(_0x2ee9d9,_0x4b852f={})=>{const _0x398506=_0xe3d267['model']['createSelection'](_0xe3d267['model']['document']['selection']);_0x398506['isCollapsed']&&_0xe3d267['model']['modifySelection'](_0x398506,{'direction':'forward','unit':_0x4b852f['unit']});const _0x31743b=_0x398506['getFirstRange'](),_0x3e1c4a=_0x582953['fromRange'](_0x31743b);let _0x3869ca;_0x2ee9d9(_0x4b852f),_0x3869ca='$graveyard'==_0x3e1c4a['root']['rootName']?_0xe3d267['model']['createRange'](_0x31743b['start']):_0xe3d267['model']['createRange'](_0x3e1c4a['start'],_0x3e1c4a['end']),_0x3e1c4a['detach'](),_0xe3d267['model']['enqueueChange'](_0x496ef3['buffer']['batch'],_0x244480=>{_0x496ef3['buffer']['lock'](),_0x244480['setSelection'](_0x244480['createRange'](_0x3869ca['end'])),_0x496ef3['buffer']['unlock']();});}),_0xe3d267['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0xe3d267,'merge'),{'priority':'high'}),_0xe3d267['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3ad258,_0x18e8c6,_0x511ddf)=>{_0x511ddf['options']['showSuggestionHighlights']&&Ne(_0xe3d267,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3ad258,_0x18e8c6,_0x511ddf);},{'priority':'high'}),_0xe3d267['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4c215f,_0x169e5e,_0x2b8c74)=>{const _0x193460=_0x2b8c74['mapper']['markerNameToElements'](_0x169e5e['markerName']);if(_0x193460){for(const _0x582d15 of _0x193460)_0x582d15['is']('uiElement')&&(_0x2b8c74['mapper']['unbindElementFromMarkerName'](_0x582d15,_0x169e5e['markerName']),_0x2b8c74['writer']['remove'](_0x582d15));}},{'priority':'high'});}}class W extends _0x522036{['afterInit'](){const _0x1a30f3=this['editor'];if(!_0x1a30f3['plugins']['has']('ListEditing'))return;const _0x158422=_0x1a30f3['locale'],_0x31a92e=_0x1a30f3['plugins']['get']('TrackChangesEditing'),_0x4bc614=_0x1a30f3['plugins']['has']('TodoListEditing'),_0x5ad645=!!_0x1a30f3['config']['get']('list.multiBlock');function _0xa26b1e(_0x3321ae){return{'type':'format','content':''+o(_0x158422,'*Set\x20format:*\x20%0',_0x3321ae)};}function _0x19772e(_0x512bf5){return{'type':'format','content':''+o(_0x158422,'*Remove\x20format:*\x20%0',_0x512bf5)};}_0x31a92e['enableDefaultAttributesIntegration']('numberedList'),_0x31a92e['enableDefaultAttributesIntegration']('bulletedList'),_0x31a92e['enableDefaultAttributesIntegration']('customNumberedList'),_0x31a92e['enableDefaultAttributesIntegration']('customBulletedList'),_0x31a92e['enableDefaultAttributesIntegration']('indentList'),_0x31a92e['enableDefaultAttributesIntegration']('outdentList'),_0x31a92e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x31a92e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x31a92e['registerBlockAttribute']('listItemId'),_0x31a92e['registerBlockAttribute']('listType'),_0x31a92e['registerBlockAttribute']('listIndent'),_0x5ad645&&(_0x31a92e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x31a92e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4bc614&&(_0x31a92e['enableDefaultAttributesIntegration']('todoList'),_0x31a92e['enableDefaultAttributesIntegration']('checkTodoList'),_0x31a92e['registerBlockAttribute']('todoListChecked'),_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x508f3e=>{const {data:_0x582945}=_0x508f3e;if(_0x582945&&'todoListChecked'==_0x582945['key'])return{'type':'format','content':_0x582945['newValue']?o(_0x158422,'*Check\x20item*'):o(_0x158422,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x590db5=>{if(_0x590db5['batch']['isUndo'])return!0x1;let _0x3c21b1=!0x1;const _0x56b74c=_0x31a92e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ea3b4=>'todoListChecked'===_0x31a92e['_getAttributeKey'](_0x3ea3b4));for(const _0x2b98cb of _0x56b74c){'todo'!=_0x2b98cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x31a92e['_findSuggestions'](_0x2b98cb['getFirstRange'](),'attribute')['find'](_0x513293=>'listType'===_0x31a92e['_getAttributeKey'](_0x513293['suggestion']))||(_0x590db5['removeMarker'](_0x2b98cb['getFirstMarker']()),_0x3c21b1=!0x0));}return _0x3c21b1;})),_0x31a92e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x158422,'FORMAT_INDENT'));const _0x4e5098={'type':'format','content':''};_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x56d127=>{const {data:_0x52e170}=_0x56d127;if(!_0x52e170||'listType'!=_0x52e170['key'])return;let _0x57ef55=_0x56d127['head'];for(;_0x57ef55;){if(_0x57ef55['data']&&(('listStyle'==_0x57ef55['data']['key']||'listMarkerStyle'==_0x57ef55['data']['key'])&&(_0x57ef55['data']['newValue']&&'default'!=_0x57ef55['data']['newValue']||'default'!=_0x57ef55['data']['oldValue']&&!_0x52e170['newValue'])||!_0x5ad645&&_0x57ef55['data']['key']==m))return _0x4e5098;_0x57ef55=_0x57ef55['next'];}if(null==_0x52e170['newValue'])switch(_0x52e170['oldValue']){case'bulleted':return _0x19772e(o(_0x158422,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19772e(o(_0x158422,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19772e(o(_0x158422,'ELEMENT_TODO_LIST'));}switch(_0x52e170['newValue']){case'bulleted':return _0xa26b1e(o(_0x158422,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa26b1e(o(_0x158422,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa26b1e(o(_0x158422,'ELEMENT_TODO_LIST'));}}),_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x2492ab=>{const {data:_0x23932b}=_0x2492ab;if(_0x23932b&&'listIndent'==_0x23932b['key'])return null==_0x23932b['newValue']||null==_0x23932b['oldValue']&&0x0==_0x23932b['newValue']?_0x4e5098:void 0x0;}),_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x9e8c0d=>{if('attribute'!=_0x9e8c0d['type'])return;const {data:_0x17b08f}=_0x9e8c0d;if(!_0x17b08f||'listItemId'!=_0x17b08f['key'])return;const _0x8d400b=Te(_0x9e8c0d);return'newValue'==_0x8d400b?{'type':'format','content':o(_0x158422,'*Merge:*\x20list\x20item')}:'oldValue'==_0x8d400b?{'type':'format','content':o(_0x158422,'*Split:*\x20list\x20item')}:_0x4e5098;}),_0x1a30f3['model']['document']['registerPostFixer'](_0x37f73a=>this['listItemIdFixer'](_0x37f73a)),_0x1a30f3['model']['document']['registerPostFixer'](_0x101984=>this['noTrackChangesFixer'](_0x101984)),_0x1a30f3['model']['document']['on']('change:data',(_0x2e17c4,_0x22a03b)=>{if(_0x22a03b['isUndo']||!_0x22a03b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3b7127){if(_0x3b7127['batch']['isUndo']||!_0x3b7127['batch']['isLocal'])return!0x1;let _0x20281d=!0x1;const _0x2b652f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1325e8=>_0x1325e8['data']&&'listItemId'==_0x1325e8['data']['key'])['filter'](_0x7c9d64=>_0x7c9d64['data']['newValue']&&_0x7c9d64['data']['oldValue']);for(const _0x4bb462 of _0x2b652f)Te(_0x4bb462)||(_0x3b7127['removeMarker'](_0x4bb462['getFirstMarker']()),_0x20281d=!0x0);return _0x20281d;}['noTrackChangesFixer'](_0x2e1899){if(_0x2e1899['batch']['isUndo']||!_0x2e1899['batch']['isLocal'])return!0x1;const _0x6af2f2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6af2f2['trackChangesCommand']['value'])return!0x1;let _0x3bd6f8=!0x1;const _0x328fb0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46295d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x34da2c=>'attribute'==_0x34da2c['type'])['filter'](_0x32a916=>_0x328fb0['includes'](_0x32a916['attributeKey']));if(0x0==_0x46295d['length'])return _0x3bd6f8;for(const _0x18fe56 of _0x46295d){const _0x285287=_0x6af2f2['_findSuggestions'](_0x18fe56['range'],'attribute')['filter'](_0x511a52=>!_0x511a52['meta']['isNextTo'])['map'](_0x3ff4b3=>_0x3ff4b3['suggestion'])['filter'](_0xb3bffe=>{const _0x37e1cd=_0x6af2f2['_getAttributeKey'](_0xb3bffe);return _0x328fb0['includes'](_0x37e1cd);});if(_0x285287['length']){for(const _0x290c31 of _0x285287)_0x2e1899['removeMarker'](_0x290c31['getFirstMarker']());_0x3bd6f8=!0x0;}}return _0x3bd6f8;}['assureChains'](){const _0xb3266a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c714a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x95cfba;const _0x981665=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5425d2=>{if(_0x5425d2['data']['oldRange']||!_0x5425d2['data']['newRange'])return null;if(!_0x5425d2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x479b39}=_0xb3266a['_splitMarkerName'](_0x5425d2['name']);if(!_0xb3266a['hasSuggestion'](_0x479b39))return null;const _0x62fcc1=_0xb3266a['getSuggestion'](_0x479b39);return _0x5c714a['includes'](_0x62fcc1['data']['key']);})['map'](_0x2dea50=>{const {id:_0x439506}=_0xb3266a['_splitMarkerName'](_0x2dea50['name']),_0x28e183=_0xb3266a['getSuggestion'](_0x439506);return _0x95cfba=_0x28e183['attributes']['groupId'],_0x28e183['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x981665['size'])return;const _0x1e3fe4=_0xb3266a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20d898=>'attribute'==_0x20d898['type']&&_0x20d898['data']&&_0x5c714a['includes'](_0x20d898['data']['key'])&&_0x20d898['attributes']['groupId']!=_0x95cfba)['map'](_0x4fdfff=>({'listItem':_0x4fdfff['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4fdfff['attributes']['groupId']})),_0x51b1a7=new Set();for(const {groupId:_0x1cd4e6,listItem:_0x271a54}of _0x1e3fe4)_0x981665['has'](_0x271a54)&&_0x51b1a7['add'](_0x1cd4e6);for(const _0x1c5d6c of _0xb3266a['getSuggestions']())_0x51b1a7['has'](_0x1c5d6c['attributes']['groupId'])&&_0x1c5d6c['setAttribute']('groupId',_0x95cfba);}['_supportLegacySuggestions'](){const _0x369f65=this['editor'],_0x103b0a=_0x369f65['locale'],_0x3f41ca=_0x369f65['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3f41ca['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5010f8,_0x36e85f){const _0x51dc28=[];for(let _0x538cb8 of _0x5010f8)_0x538cb8['start']['nodeAfter']===_0x538cb8['end']['parent']&&(_0x538cb8=_0x369f65['model']['createRange'](_0x369f65['model']['createPositionAt'](_0x538cb8['start']['nodeAfter'],0x0))),_0x51dc28['push'](_0x538cb8);_0x369f65['model']['change'](_0xcd42d1=>{const _0x58c20f=_0x369f65['model']['document']['selection'],_0x585bb3=Array['from'](_0x58c20f['getRanges']())['map'](_0xf67031=>_0x582953['fromRange'](_0xf67031));_0xcd42d1['setSelection'](_0x51dc28),_0x369f65['commands']['get'](_0x36e85f['commandName'])['refresh'](),_0x36e85f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x369f65['execute'](_0x36e85f['commandName'],..._0x36e85f['commandParams']),_0xcd42d1['setSelection'](_0x585bb3);for(const _0x2ea6da of _0x585bb3)_0x2ea6da['detach']();});}),_0x3f41ca['descriptionFactory']['registerElementLabel'](function(_0x213f9e){const _0x233671=!_0x369f65['model']['schema']['isObject'](_0x213f9e),_0x3f415f=_0x213f9e['previousSibling'],_0x36d375=_0x213f9e['nextSibling'],_0x53f806=_0x213f9e['getAttribute']('listItemId'),_0x155e30=!_0x3f415f||_0x3f415f['getAttribute']('listItemId')!==_0x53f806,_0x1a1a31=!_0x36d375||_0x36d375['getAttribute']('listItemId')!==_0x53f806;return _0x233671&&Boolean(_0x53f806)&&_0x155e30&&_0x1a1a31;},_0x2adb68=>o(_0x103b0a,'ELEMENT_LIST_ITEM',_0x2adb68));}['_registerLegacyDescription'](){const _0x578685=this['editor'],_0x4775f4=_0x578685['locale'];function _0x8cade2(_0x2a8588){const _0x855f14=_0x578685['commands']['get']('bulletedList')['value'],_0x1eae19=_0x578685['commands']['get']('numberedList')['value'];return'numberedList'===_0x2a8588?_0x855f14:_0x1eae19;}_0x578685['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3e9985){if('formatBlock'!=_0x3e9985['type'])return;const {data:_0xfa6703}=_0x3e9985;if(!_0xfa6703)return;let _0x3b9175,_0x57904c,_0x909988,_0xfe3a80;switch(_0xfa6703['commandName']){case'bulletedList':_0x909988=_0xfa6703['commandParams'][0x0]['forceValue'],_0xfe3a80=_0x8cade2(_0xfa6703['commandName']),_0x3b9175=_0x909988?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xfe3a80&&_0x578685['config']['get']('list.multiBlock')||(_0x3b9175='*Change\x20to:*\x20%0'),_0x57904c={'type':'format','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x909988=_0xfa6703['commandParams'][0x0]['forceValue'],_0xfe3a80=_0x8cade2(_0xfa6703['commandName']),_0x3b9175=_0x909988?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xfe3a80&&_0x578685['config']['get']('list.multiBlock')||(_0x3b9175='*Change\x20to:*\x20%0'),_0x57904c={'type':'format','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3b9175='*Indent:*\x20%0',_0x57904c={'type':'format','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3b9175=function(_0xdb6d59){const _0x430b35=_0xdb6d59['getFirstRange']();let _0x37680c=_0x430b35['start']['nodeAfter'];for(;_0x37680c&&_0x430b35['containsItem'](_0x37680c);){if(_0x37680c['getAttribute']('listIndent')>0x0)return!0x1;_0x37680c=_0x37680c['nextSibling'];}return!0x0;}(_0x3e9985)?o(_0x4775f4,'*Format:*\x20remove\x20from\x20%0',o(_0x4775f4,function(_0x22407d){return'ELEMENT_'+_0x22407d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3e9985))):o(_0x4775f4,'*Outdent:*\x20%0',o(_0x4775f4,'ELEMENT_LIST_ITEM')),_0x57904c={'type':'format','content':_0x3b9175};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xfa6703['multipleBlocks']&&(_0x3b9175='*Merge:*\x20%0',_0x57904c={'type':'deletion','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_LIST_ITEM'))});}return _0x57904c;});}}function Te(_0x1a1343){let _0x5da567=_0x1a1343['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5da567;){const _0x3791ea=_0x5da567['getAttribute']('listItemId');if(!_0x3791ea)return!0x1;if(_0x3791ea==_0x1a1343['data']['newValue'])return'newValue';if(_0x3791ea==_0x1a1343['data']['oldValue'])return'oldValue';_0x5da567=_0x5da567['previousSibling'];}return!0x1;}class ye extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x76e053=this['editor']['config']['get']('list.properties'),_0x2992fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x76e053['styles']&&(_0x2992fb['enableDefaultAttributesIntegration']('listStyle'),_0x2992fb['registerBlockAttribute']('listStyle')),_0x76e053['reversed']&&(_0x2992fb['enableDefaultAttributesIntegration']('listReversed'),_0x2992fb['registerBlockAttribute']('listReversed')),_0x76e053['startIndex']&&(_0x2992fb['enableDefaultAttributesIntegration']('listStart'),_0x2992fb['registerBlockAttribute']('listStart'));const _0xaedc39={'type':'format','content':''};_0x2992fb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x22e5f8=this['editor']['locale'];_0x2992fb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x22e5f8,'FORMAT_LIST_REVERSED')),_0x2992fb['descriptionFactory']['registerDescriptionCallback'](_0x12f0fd=>{const {data:_0x17786b}=_0x12f0fd;if(_0x17786b&&'listReversed'==_0x17786b['key'])return null==_0x17786b['newValue']||0x0==_0x17786b['newValue']&&null==_0x17786b['oldValue']?_0xaedc39:void 0x0;}),_0x2992fb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x22e5f8,'FORMAT_LIST_START')),_0x2992fb['descriptionFactory']['registerDescriptionCallback'](_0x12283d=>{const {data:_0x501ae0}=_0x12283d;if(_0x501ae0&&'listStart'==_0x501ae0['key'])return null==_0x501ae0['newValue']||0x1==_0x501ae0['newValue']&&null==_0x501ae0['oldValue']?_0xaedc39:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x242f42=>{if(_0x242f42['batch']['isUndo'])return!0x1;let _0x15435b=!0x1;const _0x39e093=_0x2992fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21975e=>{const _0x5ab895=_0x2992fb['_getAttributeKey'](_0x21975e);return'listStart'==_0x5ab895||'listReversed'==_0x5ab895;});for(const _0x4c9aa1 of _0x39e093){const _0x36c061=_0x4c9aa1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x36c061||'customNumbered'==_0x36c061)continue;_0x2992fb['_findSuggestions'](_0x4c9aa1['getFirstRange'](),'attribute')['find'](_0x316e30=>'listType'==_0x2992fb['_getAttributeKey'](_0x316e30['suggestion']))||(_0x242f42['removeMarker'](_0x4c9aa1['getFirstMarker']()),_0x15435b=!0x0);}return _0x15435b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58a865){const _0x3e9cbd=this['editor']['locale'],{data:_0x2f9213}=_0x58a865,_0x49997a={'type':'format','content':''};if(!_0x2f9213||'listStyle'!=_0x2f9213['key'])return;if(!_0x2f9213['oldValue'])return'default'==_0x2f9213['newValue']?_0x49997a:{'type':'format','content':''+o(_0x3e9cbd,'*Set\x20format:*\x20%0',o(_0x3e9cbd,this['_getTranslationKeyForListStyle'](_0x2f9213['newValue'])))};if(!_0x2f9213['newValue']){if('default'==_0x2f9213['oldValue'])return _0x49997a;let _0x3f3214=_0x58a865['head'];for(;_0x3f3214;){if(_0x3f3214['data']&&'listType'==_0x3f3214['data']['key']&&_0x3f3214['data']['newValue'])return _0x49997a;_0x3f3214=_0x3f3214['next'];}return{'type':'format','content':''+o(_0x3e9cbd,'*Remove\x20format:*\x20%0',o(_0x3e9cbd,this['_getTranslationKeyForListStyle'](_0x2f9213['oldValue'])))};}if('default'!=_0x2f9213['newValue'])return{'type':'format','content':''+o(_0x3e9cbd,'*Set\x20format:*\x20%0',o(_0x3e9cbd,this['_getTranslationKeyForListStyle'](_0x2f9213['newValue'])))};let _0x134daf=_0x58a865['head'];for(;_0x134daf;){if(_0x134daf['data']&&'listType'==_0x134daf['data']['key']&&_0x134daf['data']['newValue']&&_0x134daf['data']['oldValue'])return _0x49997a;_0x134daf=_0x134daf['next'];}return{'type':'format','content':o(_0x3e9cbd,'*Set\x20format:*\x20%0',o(_0x3e9cbd,'ELEMENT_'+_0x58a865['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x548f4e=this['editor'],_0x2eaebe=_0x548f4e['locale'];_0x548f4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x535bf0=>{if('formatBlock'!=_0x535bf0['type'])return;const {data:_0x3d8cc8}=_0x535bf0;if(!_0x3d8cc8)return;let _0x4d0491,_0x147656;switch(_0x3d8cc8['commandName']){case'listStyle':_0x4d0491='*Change\x20to:*\x20%0',_0x147656={'type':'format','content':o(_0x2eaebe,_0x4d0491,o(_0x2eaebe,this['_getTranslationKeyForListStyle'](_0x3d8cc8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d0491=_0x3d8cc8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x147656={'type':'format','content':o(_0x2eaebe,_0x4d0491)};break;case'listStart':_0x4d0491='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x147656={'type':'format','content':o(_0x2eaebe,_0x4d0491,_0x3d8cc8['commandParams'][0x0]['startIndex'])};}return _0x147656;});}['_getTranslationKeyForListStyle'](_0x39cb85){return'ELEMENT_'+function(_0x1eb685){if(Se['includes'](_0x1eb685))return'bulleted';if(_e['includes'](_0x1eb685))return'numbered';return null;}(_0x39cb85)['toUpperCase']()+'_LIST_'+_0x39cb85['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x522036{static get['requires'](){return[_0x58ae15];}['init'](){const _0x1b64ca=this['editor'],_0x51f395=_0x1b64ca['plugins']['get']('TrackChangesEditing'),_0x42f6ca=_0x1b64ca['commands']['get']('enter');_0x51f395['enableCommand']('enter',()=>{_0x1b64ca['model']['change'](_0x398a88=>{const _0x548cbd=_0x1b64ca['model']['document']['selection'],_0x284a60=_0x548cbd['getFirstPosition'](),_0x4d3b0c=_0x582953['fromRange'](_0x548cbd['getFirstRange']());if(_0x42f6ca['enterBlock'](_0x398a88)){const _0x207d88=_0x1b64ca['model']['createPositionAt'](_0x284a60['parent']['nextSibling'],0x0),_0x15a558=_0x398a88['createRange'](_0x284a60,_0x207d88);_0x51f395['markInsertion'](_0x15a558);}else _0x398a88['setSelection'](_0x398a88['createRange'](_0x4d3b0c['end']));_0x4d3b0c['detach'](),_0x42f6ca['fire']('afterExecute',{'writer':_0x398a88});});}),_0x1b64ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x1b64ca,'split'),{'priority':'high'}),_0x1b64ca['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b307c,_0x457e46,_0x4131da)=>{const _0x125112=_0x4131da['mapper']['markerNameToElements'](_0x457e46['markerName']);if(_0x125112){for(const _0x28d29b of _0x125112)_0x28d29b['hasClass']('ck-suggestion-marker-split')&&(_0x4131da['mapper']['unbindElementFromMarkerName'](_0x28d29b,_0x457e46['markerName']),_0x4131da['writer']['remove'](_0x28d29b));}},{'priority':'high'}),_0x1b64ca['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x475647,_0x45de3b,_0x5cc718)=>{_0x5cc718['options']['showSuggestionHighlights']&&Ne(_0x1b64ca,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x475647,_0x45de3b,_0x5cc718);},{'priority':'high'});}}class Y extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1f94e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f94e2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1f94e2['enableCommand']('findNext'),_0x1f94e2['enableCommand']('findPrevious'),_0x1f94e2['enableCommand']('replace'),_0x1f94e2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f548c,_0x552b7d,_0x684904={}){const _0x1dd3b6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f548c(_0x485941=>{let _0x594b91=('string'==typeof _0x552b7d?_0x1dd3b6['findByTextCallback'](_0x552b7d,_0x684904):_0x552b7d)(_0x485941);Array['isArray'](_0x594b91)&&(_0x594b91={'results':_0x594b91,'searchText':'string'==typeof _0x552b7d?_0x552b7d:''});const _0x32945d=_0x594b91['results']['filter'](_0x2d7e14=>!0x1===this['_isInDeletionRange'](_0x2d7e14,_0x485941['item']));return{..._0x594b91,'results':_0x32945d};},_0x684904);}['_isInDeletionRange'](_0x21e912,_0x311da7){const _0x5224b7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x311da7,_0x21e912['start']),this['editor']['model']['createPositionAt'](_0x311da7,_0x21e912['end']));for(const _0x40ad33 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5224b7['getIntersection'](_0x40ad33['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x522036{['afterInit'](){const _0x754756=this['editor']['locale'],_0x3f600e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x477ad4,commandName:_0x3745dc}of ro)this['editor']['plugins']['has'](_0x477ad4)&&(_0x3f600e['enableDefaultAttributesIntegration'](_0x3745dc),_0x3f600e['registerInlineAttribute'](_0x3745dc));_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x754756,'FORMAT_FONT_SIZE')),_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x754756,'FORMAT_FONT_FAMILY')),_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x754756,'FORMAT_FONT_COLOR')),_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x754756,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aa576=this['editor'],_0x5ba74c=_0x1aa576['locale'];_0x1aa576['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cb26b=>{const _0x2110a6=_0x5ba74c['t'];if('formatInline'!=_0x3cb26b['type'])return;const {data:_0x27e4bb}=_0x3cb26b;if(null!=_0x27e4bb){if('fontSize'==_0x27e4bb['commandName']){const _0xc0a7d=_0x27e4bb['commandParams'][0x0]['value'];if(_0xc0a7d){const _0x4cfe0a=_0x2110a6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e3484=>_0x4e3484['model']==_0xc0a7d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20size:*\x20%0',_0x4cfe0a)};}return{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27e4bb['commandName']){const _0x5bbdcb=_0x27e4bb['commandParams'][0x0]['value'];return _0x5bbdcb?{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20family:*\x20%0',_0x5bbdcb)}:{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27e4bb['commandName']){const _0xe874c1=_0x27e4bb['commandParams'][0x0]['value'];if(_0xe874c1){const _0x381037=_0x26d584(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e00e0=>_0x3e00e0['model']==_0xe874c1);let _0x2f2844=_0xe874c1,_0x4fcaea='';return _0x381037&&(_0x2f2844=_0x381037['label'],_0x4fcaea=_0x2110a6(_0x2f2844)['toLowerCase']()),{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20color:*\x20%0',_0x4fcaea)['trim'](),'color':{'value':_0xe874c1,'title':_0x4fcaea||_0x2f2844}};}return{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27e4bb['commandName']){const _0x117039=_0x27e4bb['commandParams'][0x0]['value'];if(_0x117039){const _0x2497c8=_0x26d584(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x316ce5=>_0x316ce5['model']==_0x117039);let _0x18df4d=_0x117039,_0x373667='';return _0x2497c8&&(_0x18df4d=_0x2497c8['label'],_0x373667=_0x2110a6(_0x18df4d)['toLowerCase']()),{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20background\x20color:*\x20%0',_0x373667)['trim'](),'color':{'value':_0x117039,'title':_0x373667||_0x18df4d}};}return{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x522036{['afterInit'](){const _0xc6d8ad=this['editor'],_0xc6ec17=_0xc6d8ad['plugins']['get']('TrackChangesEditing'),_0x156e3d=_0xc6d8ad['commands']['get']('copyFormat'),_0x2df0fb=_0xc6d8ad['commands']['get']('pasteFormat');_0x156e3d&&_0x2df0fb&&(_0xc6ec17['enableDefaultAttributesIntegration']('pasteFormat'),_0xc6ec17['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f23da=this['editor'],_0x95e7fb=_0x3f23da['locale'];_0x3f23da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x350fe7=>{if('formatBlock'!=_0x350fe7['type']&&'formatInline'!=_0x350fe7['type'])return;const {data:_0x2381f5}=_0x350fe7;if(_0x2381f5&&'pasteFormat'===_0x2381f5['commandName']){const _0x5d1104=[],_0x331548=_0x2381f5['commandParams'][0x0];for(const [_0x188177,_0x598465]of Object['entries'](_0x331548))_0x5d1104['push'](so(_0x3f23da,_0x188177,_0x598465));return _0x5d1104['length']?{'type':'format','content':o(_0x95e7fb,'*Set\x20format\x20to:*\x20%0',_0x5d1104['join'](',\x20'))}:{'type':'format','content':o(_0x95e7fb,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5751e9,_0x3c956f,_0x4498d0){const _0x4b9ee9=_0x5751e9['locale']['t'],_0xe4b3c=_0x3c956f['split'](/(?=[A-Z])/)['join']('\x20'),_0x27ad9b=_0x4b9ee9(_0xe4b3c['charAt'](0x0)['toUpperCase']()+_0xe4b3c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4498d0)return _0x27ad9b;if('fontColor'===_0x3c956f||'fontBackgroundColor'===_0x3c956f){const _0x29cba3=_0x26d584(_0x5751e9['config']['get']('fontColor.colors'))['find'](_0x49ad6f=>_0x49ad6f['model']==_0x4498d0);return _0x27ad9b+'\x20('+(_0x29cba3?_0x4b9ee9(_0x29cba3['label'])['toLowerCase']():_0x4498d0)+')';}if('fontSize'===_0x3c956f&&isNaN(parseFloat(_0x4498d0))){const _0x3a7f4b=_0x5751e9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5751e9['config']['get']('fontSize.options'))['find'](_0x186b68=>_0x186b68['model']==_0x4498d0);return _0x27ad9b+'\x20('+(_0x3a7f4b?_0x4b9ee9(_0x3a7f4b['title'])['toLowerCase']():_0x4498d0)+')';}return _0x27ad9b+'\x20('+_0x4498d0+')';}class nt extends _0x522036{['_headingOptions'];['afterInit'](){const _0x15e544=this['editor'];if(!_0x15e544['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x15e544['config']['get']('heading.options');const _0x1f51a5=_0x15e544['locale'],_0x3676c8=_0x15e544['plugins']['get']('TrackChangesEditing');_0x3676c8['enableDefaultAttributesIntegration']('heading');for(const _0x5d2778 of this['_headingOptions'])'paragraph'!=_0x5d2778['model']&&_0x3676c8['descriptionFactory']['registerElementLabel'](_0x5d2778['model'],_0x8d8c49=>{const _0x49a465=this['_getHeadingLevel'](_0x5d2778['model']);return null!==_0x49a465?_0x37059b(_0x8d8c49,_0x49a465):_0x561793(_0x8d8c49,_0x5d2778['title']);});function _0x37059b(_0x1ae8ec,_0x31bfd3){return o(_0x1f51a5,'ELEMENT_HEADING',[_0x1ae8ec,_0x31bfd3]);}function _0x561793(_0x1a6f56,_0x18c113){return o(_0x1f51a5,'ELEMENT_HEADING_CUSTOM',[_0x1a6f56,_0x18c113]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cd1d1=this['editor'],_0x41009f=_0x5cd1d1['locale'];function _0x1dac4f(_0x43442c,_0x420bd2){return o(_0x41009f,'ELEMENT_HEADING_CUSTOM',[_0x43442c,_0x420bd2]);}_0x5cd1d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150204=>{if('formatBlock'!=_0x150204['type'])return;const {data:_0x19c8d3}=_0x150204;if(_0x19c8d3&&'heading'==_0x19c8d3['commandName']){const _0x105389=_0x19c8d3['commandParams'][0x0]['value'],_0x21dc74=this['_getHeadingLevel'](_0x105389);if(null!==_0x21dc74)return{'type':'format','content':o(_0x41009f,'*Change\x20to:*\x20%0',(_0x235ad8=0x1,_0x26503d=_0x21dc74,o(_0x41009f,'ELEMENT_HEADING',[_0x235ad8,_0x26503d])))};const _0x7b74ce=this['_headingOptions']['find'](_0x173ade=>_0x173ade['model']===_0x105389)['title'];return{'type':'format','content':o(_0x41009f,'*Change\x20to:*\x20%0',_0x1dac4f(0x1,_0x7b74ce))};}var _0x235ad8,_0x26503d;});}['_getHeadingLevel'](_0x3dad53){const _0x138bff=_0x3dad53['match'](/^heading(\d+)/);if(_0x138bff)return _0x138bff[0x1];const _0x508add=this['_headingOptions']?.['find'](_0x5a406=>_0x5a406['model']==_0x3dad53);if(_0x508add&&_0x508add['view']){const _0x1801f2=_0x508add['view'],_0x4dd651=(_0x1801f2['name']??_0x1801f2)['match'](/^h(\d+)/);if(_0x4dd651)return _0x4dd651[0x1];}return null;}}class it extends _0x522036{['afterInit'](){const _0xf9a452=this['editor'];if(!_0xf9a452['plugins']['has']('HighlightEditing'))return;const _0x2ba7d6=_0xf9a452['plugins']['get']('TrackChangesEditing'),_0x116411=_0xf9a452['locale'];_0x2ba7d6['enableDefaultAttributesIntegration']('highlight'),_0x2ba7d6['registerInlineAttribute']('highlight'),_0x2ba7d6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x116411,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c3644=this['editor'],_0x2cfd00=_0x5c3644['locale'];_0x5c3644['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aab71=>{if('formatInline'!=_0x1aab71['type'])return;const {data:_0x2e21e7}=_0x1aab71;if(_0x2e21e7&&'highlight'==_0x2e21e7['commandName']){const _0x829c77=_0x2cfd00['t'],_0x1128c4=_0x2e21e7['commandParams'][0x0]['value'];if(_0x1128c4){const _0x1e69c7=_0x5c3644['config']['get']('highlight.options')['find'](_0x14737f=>_0x14737f['model']==_0x1128c4),_0x5e8a89=_0x829c77(_0x1e69c7['title'])['toLowerCase']();return{'type':'format','content':o(_0x2cfd00,'*Set\x20highlight:*\x20%0',_0x5e8a89),'color':{'value':_0x1e69c7['color'],'title':_0x1e69c7['title']}};}return{'type':'format','content':o(_0x2cfd00,'*Remove\x20highlight*',o(_0x2cfd00,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x522036{['afterInit'](){const _0x466a24=this['editor'];if(!_0x466a24['plugins']['has']('HorizontalLineEditing'))return;_0x466a24['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x592ea1=_0x466a24['plugins']['get']('TrackChangesEditing'),_0x4ab553=_0x466a24['locale'];_0x592ea1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x256764=>o(_0x4ab553,'ELEMENT_HORIZONTAL_LINE',_0x256764)),_0x466a24['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x180193,{writer:_0x511e5a,options:_0x204883})=>{if(!_0x204883['showSuggestionHighlights'])return null;const _0x32884f=_0x511e5a['createContainerElement']('div'),_0x44c811=_0x511e5a['createEmptyElement']('hr');return _0x511e5a['addClass']('ck-horizontal-line',_0x32884f),_0x511e5a['insert'](_0x511e5a['createPositionAt'](_0x32884f,0x0),_0x44c811),_0x32884f;},'converterPriority':'high'});}}class st extends _0x522036{['afterInit'](){const _0x5420c7=this['editor'];if(!_0x5420c7['plugins']['has']('HtmlEmbed'))return;const _0x34fd62=_0x5420c7['plugins']['get']('TrackChangesEditing'),_0x25c647=_0x5420c7['locale'];_0x34fd62['descriptionFactory']['registerElementLabel']('rawHtml',_0x193cc9=>o(_0x25c647,'ELEMENT_HTML_EMBED',_0x193cc9)),_0x34fd62['enableDefaultAttributesIntegration']('htmlEmbed'),_0x34fd62['registerBlockAttribute']('value'),_0x34fd62['descriptionFactory']['registerDescriptionCallback'](_0x53435a=>{if('attribute'!=_0x53435a['type'])return;const {data:_0x39459c}=_0x53435a;if(_0x39459c&&'value'==_0x39459c['key']&&_0x53435a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x34af47=o(_0x25c647,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25c647,'*Change\x20%0\x20content*',_0x34af47)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ad7a2=this['editor'],_0x4cf915=_0x5ad7a2['locale'];_0x5ad7a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x225dec=>{if('formatBlock'!=_0x225dec['type'])return;const {data:_0x1dc02a}=_0x225dec;if(_0x1dc02a&&'htmlEmbed'==_0x1dc02a['commandName']){const _0x3dae1f=o(_0x4cf915,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cf915,'*Change\x20%0\x20content*',_0x3dae1f)};}});}}class ot extends _0x522036{['afterInit'](){const _0x4a4179=this['editor'];if(!_0x4a4179['plugins']['has']('ImageEditing'))return;const _0x336d30=_0x4a4179['plugins']['get']('TrackChangesEditing'),_0x5d8fd0=_0x4a4179['plugins']['get']('ImageUtils'),_0x418263=_0x4a4179['locale'];_0x336d30['enableCommand']('insertImage'),_0x336d30['descriptionFactory']['registerElementLabel']('imageBlock',_0x63e97d=>o(_0x418263,'ELEMENT_IMAGE',_0x63e97d)),_0x336d30['descriptionFactory']['registerElementLabel']('imageInline',_0x2b1b32=>o(_0x418263,'ELEMENT_INLINE_IMAGE',_0x2b1b32)),_0x336d30['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x418263,'ELEMENT_CAPTION')),_0x4a4179['plugins']['has']('ImageUploadEditing')&&_0x336d30['enableCommand']('uploadImage'),_0x4a4179['plugins']['has']('ImageBlockEditing')&&_0x4a4179['plugins']['has']('ImageInlineEditing')&&(_0x336d30['enableCommand']('imageTypeInline',(_0x71603f,_0x58ff4c)=>{const _0x47a48a=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']);_0x4a4179['model']['change'](()=>{_0x336d30['markBlockFormat'](_0x47a48a,{'commandName':'imageTypeInline','commandParams':[_0x58ff4c]},[],'convertBlockImageToInline');});}),_0x336d30['enableCommand']('imageTypeBlock',(_0x41cb25,_0x3f4e3b)=>{_0x4a4179['model']['change'](_0x488b7d=>{let _0xa09c2e=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x53062d=_0x488b7d['createRangeOn'](_0xa09c2e);const _0x4d60f2=_0x3a3fe2['fromPosition'](_0x53062d['start'],'toPrevious'),_0x3c4be1=_0x3a3fe2['fromPosition'](_0x53062d['end'],'toNext');_0x336d30['forceDefaultExecution'](()=>_0x41cb25(_0x3f4e3b)),_0xa09c2e=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x53062d=_0x488b7d['createRangeOn'](_0xa09c2e);const _0xe1bf71=_0x488b7d['createRange'](_0x4d60f2,_0x3c4be1);_0x4d60f2['detach'](),_0x3c4be1['detach'](),_0x336d30['markBlockFormat'](_0xa09c2e,{'commandName':'imageTypeInline','commandParams':[_0x3f4e3b]},[],'convertInlineImageToBlock'),_0xe1bf71['start']['isBefore'](_0x53062d['start'])&&_0x336d30['markInsertion'](_0x488b7d['createRange'](_0xe1bf71['start'],_0x53062d['start']),'convertInlineImageToBlock'),_0x53062d['end']['isBefore'](_0xe1bf71['end'])&&_0x336d30['markInsertion'](_0x488b7d['createRange'](_0x53062d['end'],_0xe1bf71['end']),'convertInlineImageToBlock');});}),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x336d30['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x122185])=>{const _0x5a2997=_0x336d30['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1af0a8=_0x122185['start'],_0x274078=_0x122185['end'];const _0x2fc538=_0x4a4179['model']['schema']['getNearestSelectionRange'](_0x1af0a8,'backward'),_0x27c137=_0x4a4179['model']['schema']['getNearestSelectionRange'](_0x274078,'forward');_0x2fc538['isCollapsed']&&(_0x1af0a8=_0x2fc538['start']),_0x27c137['isCollapsed']&&(_0x274078=_0x27c137['end']),_0x5a2997([_0x4a4179['model']['createRange'](_0x1af0a8,_0x274078)]);}),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34107f),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34107f)),_0x4a4179['plugins']['has']('ImageCaptionEditing')&&(_0x336d30['enableCommand']('toggleImageCaption',(_0x9043c3,_0x2f9fb5)=>{const _0x5bd455=_0x4a4179['plugins']['get']('ImageCaptionUtils');let _0x16fac4=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x2e9729=_0x5bd455['getCaptionFromImageModelElement'](_0x16fac4);_0x4a4179['model']['change'](()=>{if(_0x2e9729)return void _0x336d30['markDeletion'](_0x4a4179['model']['createRangeOn'](_0x2e9729));const _0x23f210=_0x5d8fd0['isBlockImage'](_0x16fac4);_0x9043c3(_0x2f9fb5),_0x16fac4=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x2e9729=_0x5bd455['getCaptionFromImageModelElement'](_0x16fac4),_0x336d30['markInsertion'](_0x4a4179['model']['createRangeOn'](_0x2e9729),_0x23f210?null:'imageCaption');});}),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34107f));const _0x4ff802=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ef427(_0x38aad8,_0x446780){const _0x81f695=_0x4ff802['findIndex'](({type:_0x136f9b,subType:_0x5f36ef})=>_0x38aad8['type']==_0x136f9b&&_0x38aad8['subType']==_0x5f36ef),_0x44dd5d=_0x4ff802['findIndex'](({type:_0x4a6304,subType:_0x2a4951})=>_0x446780['type']==_0x4a6304&&_0x446780['subType']==_0x2a4951);if(_0x81f695<0x0||_0x44dd5d<0x0)return!0x1;const _0x5816d4=_0x38aad8['getFirstRange'](),_0x2f1868=_0x446780['getFirstRange']();if((0x0==_0x81f695||0x1==_0x81f695)&&0x2==_0x44dd5d&&_0x5816d4['isIntersecting'](_0x2f1868))return!0x0;if(0x2==_0x81f695&&0x3==_0x44dd5d){const _0x2bf133=_0x336d30['_findSuggestions'](_0x5816d4,'insertion')['filter'](({suggestion:_0x22cea2,meta:_0x25dafb})=>_0x25dafb['isOwn']&&'convertInlineImageToBlock'==_0x22cea2['subType']);if(_0x2bf133['length']>0x1&&_0x2f1868['end']['isEqual'](_0x5816d4['start']))return!0x0;if(0x1==_0x2bf133['length']&&(_0x5816d4['start']['isEqual'](_0x2f1868['end'])||_0x5816d4['end']['isEqual'](_0x2f1868['start'])))return!0x0;}if(0x3==_0x81f695&&0x3==_0x44dd5d&&_0x5816d4['start']['isBefore'](_0x2f1868['start'])){const _0x284b16=_0x5816d4['end']['nodeAfter'],_0x55181=_0x2f1868['start']['nodeBefore'];return _0x5d8fd0['isBlockImage'](_0x284b16)&&_0x284b16===_0x55181;}return!0x1;}function _0x34107f(_0x52b9bf,_0x671d3a){return _0x1ef427(_0x52b9bf,_0x671d3a)?[_0x52b9bf,_0x671d3a]:_0x1ef427(_0x671d3a,_0x52b9bf)?[_0x671d3a,_0x52b9bf]:null;}_0x4a4179['plugins']['has']('ImageResize')&&(_0x336d30['enableDefaultAttributesIntegration']('resizeImage'),_0x336d30['registerBlockAttribute']('resizedWidth'),_0x336d30['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x418263,'FORMAT_IMAGE_SIZE'))),_0x4a4179['plugins']['has']('ImageTextAlternativeEditing')&&(_0x336d30['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x336d30['registerBlockAttribute']('alt')),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x2e3bd4=>{if(!!_0x4ff802['find'](({type:_0x3538be,subType:_0x5ce557})=>_0x2e3bd4['type']==_0x3538be&&_0x2e3bd4['subType']==_0x5ce557))return _0x2e3bd4['previous']?{}:void 0x0;}),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x13db35=>{if('insertion'==_0x13db35['type']||'deletion'==_0x13db35['type']){const _0x52994e=_0x13db35['getContainedElement']();if(_0x52994e&&_0x52994e['is']('element','caption'))return{'type':'insertion'==_0x13db35['type']?'addObject':'removeObject','element':_0x52994e,'quantity':0x1};}}),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x212c80=>'formatBlock'==_0x212c80['type']&&'convertInlineImageToBlock'==_0x212c80['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x212c80['type']&&'convertBlockImageToInline'==_0x212c80['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x3cfc98=>{if('attribute'!=_0x3cfc98['type'])return;const {data:_0x186cea}=_0x3cfc98;if(!_0x186cea||'alt'!=_0x186cea['key'])return;const _0xd34608=_0x186cea['newValue'];return _0xd34608?{'type':'format','content':o(_0x418263,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd34608+'\x22')}:{'type':'format','content':o(_0x418263,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58588c=this['editor'],_0x5d675f=_0x58588c['locale'];_0x58588c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33ca7e=>{if('formatBlock'!=_0x33ca7e['type']&&'formatInline'!=_0x33ca7e['type'])return;const {data:_0x599e4f}=_0x33ca7e;if(_0x599e4f){if('imageTextAlternative'==_0x599e4f['commandName']){const _0x358efb=_0x599e4f['commandParams'][0x0]['newValue'];return _0x358efb?{'type':'format','content':o(_0x5d675f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x358efb+'\x22')}:{'type':'format','content':o(_0x5d675f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x599e4f['commandName']){const _0x4d0834=_0x599e4f['commandParams'][0x0]['width'];return _0x4d0834?{'type':'format','content':o(_0x5d675f,'*Set\x20image\x20width:*\x20%0',_0x4d0834)}:{'type':'format','content':o(_0x5d675f,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x171d24=this['editor']['locale'],_0x7b7fac=this['editor']['plugins']['get']('TrackChangesEditing');_0x7b7fac['enableDefaultAttributesIntegration']('replaceImageSource'),_0x7b7fac['registerBlockAttribute']('src'),_0x7b7fac['descriptionFactory']['registerDescriptionCallback'](_0x17b5fb=>{if('attribute'!=_0x17b5fb['type'])return;const {data:_0x500d1d}=_0x17b5fb;return _0x500d1d&&'src'==_0x500d1d['key']?_0x500d1d['newValue']&&_0x500d1d['oldValue']?{'type':'format','content':o(_0x171d24,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54b579=this['editor']['plugins']['get']('TrackChangesEditing');_0x54b579['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x54b579['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54b579['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x54b579['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x662e9d=this['editor'],_0xd34757=_0x662e9d['locale'];_0x662e9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19015f=>{if('formatBlock'!=_0x19015f['type']&&'formatInline'!=_0x19015f['type'])return;const {data:_0x4367cd}=_0x19015f;if(!_0x4367cd||'replaceImageSource'!=_0x4367cd['commandName'])return;return{'type':'format','content':o(_0xd34757,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x522036{['afterInit'](){const _0x1cec72=this['editor'];if(!_0x1cec72['plugins']['has']('ImageStyleEditing'))return;const _0x1ccf88=_0x1cec72['plugins']['get']('TrackChangesEditing'),_0x42b497=_0x1cec72['plugins']['get']('ImageUtils'),_0x5523b5={};_0x1ccf88['enableCommand']('imageStyle',(_0x4c3af2,_0x282b48)=>{const _0x5c2a5c=_0x1cec72['plugins']['get']('Users')['me'],_0x296074=_0x1cec72['commands']['get']('imageStyle');let _0x1d1747=_0x42b497['getClosestSelectedImageElement'](_0x1cec72['model']['document']['selection']),_0x1670a1=_0x1cec72['model']['createRangeOn'](_0x1d1747),_0x5f1efa=_0x296074['value'];if(_0x5f1efa==_0x282b48['value'])return;const _0x62fd66={'commandName':'imageStyle','commandParams':[_0x282b48],'formatGroupId':_0xb9e80()};_0x1cec72['model']['change'](()=>{if(_0x1ccf88['getSuggestions']()['filter'](_0x5493a1=>_0x5493a1['isInContent']&&_0x5c2a5c==_0x5493a1['author']&&('formatBlock'==_0x5493a1['type']||'formatInline'==_0x5493a1['type'])&&('imageStylePreApply'==_0x5493a1['subType']||'imageStylePostApply'==_0x5493a1['subType'])&&_0x5493a1['getFirstRange']()['isEqual'](_0x1670a1))['forEach'](_0x2291c4=>_0x1ccf88['discardSuggestion'](_0x2291c4['head'])),_0x1d1747=_0x42b497['getClosestSelectedImageElement'](_0x1cec72['model']['document']['selection']),_0x1670a1=_0x1cec72['model']['createRangeOn'](_0x1d1747),_0x296074['refresh'](),_0x1cec72['commands']['get']('imageTypeInline')['refresh'](),_0x1cec72['commands']['get']('imageTypeBlock')['refresh'](),_0x5f1efa=_0x296074['value'],_0x5f1efa!=_0x282b48['value'])return _0x42b497['isInlineImage'](_0x1d1747)&&_0x296074['shouldConvertImageType'](_0x282b48['value'],_0x1d1747)?(_0x4c3af2({..._0x282b48,'setImageSizes':!0x1}),_0x1d1747=_0x42b497['getClosestSelectedImageElement'](_0x1cec72['model']['document']['selection']),void _0x1ccf88['markBlockFormat'](_0x1d1747,{..._0x62fd66,'commandReversedParams':[{'value':_0x5f1efa||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x42b497['isBlockImage'](_0x1d1747)?_0x1ccf88['markBlockFormat'](_0x1d1747,_0x62fd66,[],'imageStylePostApply'):_0x1ccf88['markInlineFormat'](_0x1670a1,_0x62fd66,'imageStylePostApply'));});});for(const _0x27a6ac of _0x1cec72['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5523b5[_0x27a6ac['name']]=_0x27a6ac['title']['toLowerCase']();_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x25aa82])=>{_0x42b497['setImageNaturalSizeAttributes'](_0x25aa82['getContainedElement']());}),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x15ce1f,_0x50d400)=>{_0x1ccf88['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x15ce1f,{'commandName':_0x50d400['commandName'],'commandParams':_0x50d400['commandReversedParams']});}),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x13b05f,_0x5c0893){if(_0x68225d(_0x13b05f,_0x5c0893))return[_0x13b05f,_0x5c0893];if(_0x68225d(_0x5c0893,_0x13b05f))return[_0x5c0893,_0x13b05f];return null;});const _0x4243bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x68225d(_0x2aaa43,_0x5d7f51){const _0x6639f5=_0x4243bd['findIndex'](({type:_0x40ee83,subType:_0x3d3a3f})=>_0x2aaa43['type']==_0x40ee83&&_0x2aaa43['subType']==_0x3d3a3f),_0x2d861d=_0x4243bd['findIndex'](({type:_0x4c2cbf,subType:_0x5c53b3})=>_0x5d7f51['type']==_0x4c2cbf&&_0x5d7f51['subType']==_0x5c53b3);if(_0x6639f5<0x0||_0x2d861d<0x0)return!0x1;const _0x3bf258=_0x2aaa43['getFirstRange'](),_0xcb2214=_0x5d7f51['getFirstRange']();if((0x0==_0x6639f5||0x1==_0x6639f5)&&0x2==_0x2d861d&&_0x3bf258['isIntersecting'](_0xcb2214))return!0x0;if(0x2==_0x6639f5&&0x3==_0x2d861d){const _0x26937c=_0x1ccf88['_findSuggestions'](_0x3bf258,'insertion')['filter'](({suggestion:_0x2403b9,meta:_0x30bb93})=>_0x30bb93['isOwn']&&'convertInlineImageToBlock'==_0x2403b9['subType']);if(_0x26937c['length']>0x1&&_0xcb2214['end']['isEqual'](_0x3bf258['start']))return!0x0;if(0x1==_0x26937c['length']&&(_0x3bf258['start']['isEqual'](_0xcb2214['end'])||_0x3bf258['end']['isEqual'](_0xcb2214['start'])))return!0x0;}if(0x3==_0x6639f5&&0x3==_0x2d861d&&_0x3bf258['start']['isBefore'](_0xcb2214['start'])){const _0x836b1a=_0x3bf258['end']['nodeAfter'],_0x3fb85f=_0xcb2214['start']['nodeBefore'];return _0x42b497['isBlockImage'](_0x836b1a)&&_0x836b1a===_0x3fb85f;}return!0x1;}_0x1cec72['model']['document']['registerPostFixer'](()=>{let _0x578a8e=!0x1;const _0x3eee4b=Array['from'](_0x1cec72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x521351,data:_0x580c17}of _0x3eee4b){const {group:_0x373de7,type:_0x5a7f69,subType:_0x5ed572,id:_0x39444a}=_0x1ccf88['_splitMarkerName'](_0x521351);if('suggestion'==_0x373de7&&_0x1ccf88['hasSuggestion'](_0x39444a)){if('formatBlock'==_0x5a7f69&&('imageStylePreApply'==_0x5ed572||'imageStylePostApply'==_0x5ed572)){const _0x447e5c=_0x1ccf88['getSuggestion'](_0x39444a);if(_0x580c17['newRange']){const _0x38a6fe=_0x447e5c['getFirstRange']()['getContainedElement']();if(_0x42b497['isBlockImage'](_0x38a6fe))continue;_0x1ccf88['discardSuggestion'](_0x447e5c),_0x578a8e=!0x0;}}if('insertion'==_0x5a7f69&&'imageCaption'==_0x5ed572&&!_0x580c17['newRange']){const _0x3dcdd1=_0x1ccf88['getSuggestion'](_0x39444a);_0x3dcdd1['next']&&_0x3dcdd1['next']['isInContent']&&(_0x1ccf88['discardSuggestion'](_0x3dcdd1['next']),_0x578a8e=!0x0);}}}return _0x578a8e;}),this['_registerLegacyDescription'](_0x5523b5);}['_registerLegacyDescription'](_0x5de361){const _0x377cd1=this['editor'],_0x449718=_0x377cd1['locale'];_0x377cd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x208809=>{if('formatBlock'!=_0x208809['type']&&'formatInline'!=_0x208809['type'])return;const {data:_0x53eba9}=_0x208809;if(!_0x53eba9||'imageStyle'!=_0x53eba9['commandName'])return;const _0x1885e7=_0x53eba9['commandParams'][0x0]['value'];return _0x2427ff('side'===_0x1885e7?o(_0x449718,'FORMAT_SIDE_IMAGE'):_0x5de361[_0x1885e7]||_0x1885e7);function _0x2427ff(_0x4e7b64){return{'type':'format','content':o(_0x449718,'*Format:*\x20%0',_0x4e7b64)};}});}}class ct extends _0x522036{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x14030f){super(_0x14030f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xab0401=this['editor'],_0x64a159=_0xab0401['commands']['get']('importWord'),_0x5df6ae=_0xab0401['commands']['get']('trackChanges');_0x64a159&&(_0x64a159['on']('execute',(_0x3954a2,[,_0x41df04])=>{this['_trackChangesValueDuringImport']=_0x5df6ae['value'],_0x41df04['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x64a159,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x64a159,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5df6ae['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xab0401['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5ed014,_0x32e932){const {suggestions:_0x16d1f0}=_0x32e932,_0x276c75=this['editor']['commands']['get']('trackChanges'),_0x88466e=_0x276c75['value'];this['_trackChangesValueDuringImport']!==_0x88466e&&(_0x276c75['execute'](),this['_trackChangesExecuted']=!0x0),_0x16d1f0&&_0x16d1f0['forEach'](({id:_0x244ab3,type:_0x1c73f8,author:_0x1c0f05,created_at:_0x578044})=>{const _0x4ebaf8={'id':_0x244ab3,'type':_0x1c73f8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c0f05,'createdAt':_0x578044?new Date(_0x578044):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4ebaf8);});}}class ut extends _0x522036{['afterInit'](){const _0x427e1b=this['editor'],_0x353be6=_0x427e1b['plugins']['get']('TrackChangesEditing');if(_0x427e1b['plugins']['has']('IndentEditing')&&(_0x353be6['enableCommand']('indent'),_0x353be6['enableCommand']('outdent')),_0x427e1b['plugins']['has']('IndentBlock')){for(const _0x29c08f of['indentBlock','outdentBlock'])_0x353be6['enableDefaultAttributesIntegration'](_0x29c08f);}const _0x4d54c0=_0x427e1b['locale'];_0x353be6['registerBlockAttribute']('blockIndent'),_0x353be6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4d54c0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3357fd=this['editor'],_0x3f9f88=_0x3357fd['locale'],_0x4fbe05=_0x3357fd['plugins']['get']('TrackChangesEditing');_0x4fbe05['descriptionFactory']['registerDescriptionCallback'](_0xf0a993=>{if('formatBlock'!=_0xf0a993['type'])return;const {data:_0x598bc7}=_0xf0a993;if(!_0x598bc7)return;if('indentBlock'!=_0x598bc7['commandName']&&'outdentBlock'!=_0x598bc7['commandName'])return;const _0x34ed7d=_0xf0a993['getItems']()[0x0],_0x5bb7d6=_0x4fbe05['descriptionFactory']['getItemLabel'](_0x34ed7d);return'indentBlock'==_0x598bc7['commandName']?{'type':'format','content':o(_0x3f9f88,'*Indent:*\x20%0',_0x5bb7d6)}:'outdentBlock'==_0x598bc7['commandName']?{'type':'format','content':o(_0x3f9f88,'*Outdent:*\x20%0',_0x5bb7d6)}:void 0x0;});}}class ft extends _0x522036{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x522036{['afterInit'](){const _0x31c90b=this['editor'];if(!_0x31c90b['plugins']['has']('LinkEditing'))return;const _0x2328ae=_0x31c90b['plugins']['get']('TrackChangesEditing'),_0x2ab15b=_0x31c90b['commands']['get']('link');_0x2328ae['enableDefaultAttributesIntegration']('link'),_0x2328ae['enableDefaultAttributesIntegration']('unlink'),_0x2328ae['registerInlineAttribute']('linkHref');for(const _0x55ef42 of _0x2ab15b['manualDecorators'])_0x2328ae['registerInlineAttribute'](_0x55ef42['id']),_0x2328ae['descriptionFactory']['registerAttributeLabel'](_0x55ef42['id'],'link\x20('+_0x55ef42['label']['toLowerCase']()+')');_0x2328ae['descriptionFactory']['registerDescriptionCallback'](_0x2853b2=>{if('attribute'!=_0x2853b2['type'])return;const {data:_0x4ca9e4}=_0x2853b2;if(!_0x4ca9e4||'linkHref'!=_0x4ca9e4['key'])return;const _0x25d67f=_0x4ca9e4['newValue'],_0x4ce87c=_0x31c90b['locale'];return{'type':'format','content':null==_0x25d67f?o(_0x4ce87c,'*Remove\x20link*'):o(_0x4ce87c,'*Set\x20link:*\x20%0','\x22'+_0x25d67f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e46b=this['editor'],_0x55e53a=_0x53e46b['locale'];_0x53e46b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20d20b=>{if('formatInline'!=_0x20d20b['type'])return;const {data:_0x4236b8}=_0x20d20b;if(_0x4236b8){if('link'==_0x4236b8['commandName']){const _0xcad376=_0x4236b8['commandParams'][0x0];return{'type':'format','content':o(_0x55e53a,'*Set\x20link:*\x20%0','\x22'+_0xcad376+'\x22')};}return'unlink'==_0x4236b8['commandName']?{'type':'format','content':o(_0x55e53a,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x522036{['afterInit'](){const _0x539f09=this['editor'],_0x5ea4ed=_0x539f09['locale'];if(!_0x539f09['plugins']['has']('LegacyListEditing'))return;const _0x51bf7c=_0x539f09['plugins']['get']('TrackChangesEditing'),_0x4239ee=_0x539f09['plugins']['has']('LegacyTodoListEditing');function _0x339fc5(_0xe261fb){return()=>{const _0x5d468b=_0x539f09['model']['document']['selection'],_0x18e492=_0x539f09['commands']['get'](_0xe261fb);if(_0x18e492['value'])return void _0x539f09['execute']('paragraph',{});const _0x1e1702=_0xe261fb['slice'](0x0,-0x4),_0x42f324=function(_0x2e244a,_0x573f6d,_0xefe871){let _0x59a0c4=Array['from'](_0x2e244a)['filter'](_0x27ea2f=>function(_0x3d96b1,_0x3f2253){return _0x3f2253['checkChild'](_0x3d96b1['parent'],'listItem')&&!_0x3f2253['isObject'](_0x3d96b1);}(_0x27ea2f,_0xefe871));_0x59a0c4=_0x59a0c4['filter'](_0x33d92e=>!_0x33d92e['is']('element','listItem')||_0x33d92e['getAttribute']('listType')!=_0x573f6d);const _0xef037=new Set();for(const _0x5913d0 of _0x59a0c4)_0x5913d0['is']('element','listItem')?_0xef037['add'](Le(_0x5913d0)):_0xef037['add'](_0x5913d0);return Array['from'](_0xef037);}(_0x5d468b['getSelectedBlocks'](),_0x1e1702,_0x539f09['model']['schema']);_0x539f09['model']['change'](()=>{for(const _0x45bb59 of _0x42f324)_0x51bf7c['markBlockFormat'](_0x45bb59,{'commandName':_0xe261fb,'commandParams':[{'forceValue':!_0x18e492['value']}],'formatGroupId':'blockName'},Ee(_0x45bb59));});};}function _0x4c4c7e(_0x7460f5){return()=>{const _0x864c36=function(_0x54e373){let _0xcbc205=Array['from'](_0x54e373);const _0x166ee2=_0xcbc205['findIndex'](_0x1397f5=>'listItem'!=_0x1397f5['name']);return _0x166ee2>-0x1&&(_0xcbc205=_0xcbc205['slice'](0x0,_0x166ee2)),_0xcbc205;}(_0x539f09['model']['document']['selection']['getSelectedBlocks']()),_0x3a9d8c=_0x539f09['model']['createRange'](_0x539f09['model']['createPositionAt'](_0x864c36[0x0],'before'),_0x539f09['model']['createPositionAt'](_0x864c36[_0x864c36['length']-0x1],'end'));_0x539f09['model']['change'](()=>{_0x51bf7c['markBlockFormat'](_0x3a9d8c,{'commandName':_0x7460f5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x18ea5c){const _0x4b5e2b=new Set();for(const _0x633b77 of _0x18ea5c){let _0x574d29=_0x633b77['nextSibling'];for(;_0x574d29&&_0x574d29['getAttribute']('listIndent')>_0x633b77['getAttribute']('listIndent');)_0x4b5e2b['add'](_0x574d29),_0x574d29=_0x574d29['nextSibling'];}return Array['from'](_0x4b5e2b);}(_0x864c36));});};}_0x51bf7c['enableCommand']('numberedList',_0x339fc5('numberedList')),_0x51bf7c['enableCommand']('bulletedList',_0x339fc5('bulletedList')),_0x4239ee&&_0x51bf7c['enableCommand']('todoList',_0x339fc5('todoList')),_0x51bf7c['enableCommand']('indentList',_0x4c4c7e('indentList')),_0x51bf7c['enableCommand']('outdentList',_0x4c4c7e('outdentList')),_0x4239ee&&_0x51bf7c['enableCommand']('checkTodoList',()=>{const _0x1a04da=_0x539f09['commands']['get']('checkTodoList'),_0x88bae4=Array['from'](_0x1a04da['_selectedElements']);_0x88bae4['filter'](_0x485a4f=>_0x485a4f['getAttribute']('todoListChecked')!=_0x1a04da['value']),_0x539f09['model']['change'](()=>{for(const _0x575534 of _0x88bae4)_0x51bf7c['markBlockFormat'](_0x575534,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1a04da['value']}]});});}),_0x51bf7c['descriptionFactory']['registerElementLabel']('listItem',_0x5b44f7=>o(_0x5ea4ed,'ELEMENT_LIST_ITEM',_0x5b44f7)),_0x51bf7c['descriptionFactory']['registerDescriptionCallback'](_0x286e6e=>{if('formatBlock'!=_0x286e6e['type']&&'formatInline'!=_0x286e6e['type'])return;const {data:_0x523ed8}=_0x286e6e;if(_0x523ed8){if('numberedList'==_0x523ed8['commandName']||'bulletedList'==_0x523ed8['commandName']||'todoList'==_0x523ed8['commandName'])switch(_0x523ed8['commandName']['replace']('List','')){case'bulleted':return _0x3625e7(o(_0x5ea4ed,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3625e7(o(_0x5ea4ed,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3625e7(o(_0x5ea4ed,'ELEMENT_TODO_LIST'));}if('indentList'==_0x523ed8['commandName'])return{'type':'format','content':o(_0x5ea4ed,'*Indent:*\x20%0',o(_0x5ea4ed,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x523ed8['commandName'])return{'type':'format','content':o(_0x5ea4ed,'*Outdent:*\x20%0',o(_0x5ea4ed,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x523ed8['commandName'])return _0x523ed8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ea4ed,'*Check\x20item*')}:{'type':'format','content':o(_0x5ea4ed,'*Uncheck\x20item*')};}function _0x3625e7(_0x5a20fb){return{'type':'format','content':o(_0x5ea4ed,'*Change\x20to:*\x20%0',_0x5a20fb)};}});}}function Le(_0x370eec){const _0x2689a8=_0x370eec['getAttribute']('listIndent');if(0x0==_0x2689a8)return _0x370eec;let _0x1d0999=_0x370eec;for(;_0x370eec['previousSibling']&&_0x370eec['previousSibling']['is']('element','listItem');){const _0x335ec1=_0x370eec['previousSibling']['getAttribute']('listIndent');if(_0x335ec1==_0x2689a8)_0x1d0999=_0x370eec['previousSibling'];else{if(_0x335ec1<_0x2689a8)break;}_0x370eec=_0x370eec['previousSibling'];}return _0x1d0999;}function Ee(_0x39d83d){const _0x3b6597=[];if(_0x39d83d['is']('element','listItem')&&_0x39d83d['getAttribute']('listIndent')>0x0){let _0x365379=_0x39d83d['nextSibling'];for(;_0x365379&&'listItem'==_0x365379['name']&&_0x365379['getAttribute']('listIndent')==_0x39d83d['getAttribute']('listIndent');)_0x3b6597['push'](_0x365379),_0x365379=_0x365379['nextSibling'];}return _0x3b6597;}class Q extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4f18de=this['editor']['config']['get']('list.properties'),_0x245504=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f18de['styles']&&_0x245504['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4f18de['reversed']&&_0x245504['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4f18de['startIndex']&&_0x245504['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x245504['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6eaf28,_0x31f6bd={}){const _0x52dbf8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x350a29=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x52dbf8['markMultiRangeBlockFormat'](_0x350a29,{'commandName':'listStyle','commandParams':[{'type':_0x31f6bd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x9f01fd,_0x2c8fa5={}){const _0xc35447=this['editor']['plugins']['get']('TrackChangesEditing'),_0x274adb=this['_getSuggestionBlocks'](_0x668706=>_0x668706['is']('element','listItem')&&'numbered'===_0x668706['getAttribute']('listType'));if(_0x274adb['length']<0x1)return;const _0x1f9ece=_0x274adb['map'](_0x10cedf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10cedf,'before'),this['editor']['model']['createPositionAt'](_0x10cedf,0x0)));this['editor']['model']['change'](()=>{_0xc35447['markMultiRangeBlockFormat'](_0x1f9ece,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c8fa5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4ff657,_0x28b694={}){const _0x1fd480=this['editor']['plugins']['get']('TrackChangesEditing'),_0x249b27=this['_getSuggestionBlocks'](_0x4b3f47=>_0x4b3f47['is']('element','listItem')&&'numbered'===_0x4b3f47['getAttribute']('listType'));if(_0x249b27['length']<0x1)return;const _0x3cd5b3=_0x249b27['map'](_0x5bb5cb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bb5cb,'before'),this['editor']['model']['createPositionAt'](_0x5bb5cb,0x0)));this['editor']['model']['change'](()=>{_0x1fd480['markMultiRangeBlockFormat'](_0x3cd5b3,{'commandName':'listStart','commandParams':[{'startIndex':_0x28b694['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4f2b36){if('formatBlock'!=_0x4f2b36['type']&&'formatInline'!=_0x4f2b36['type'])return;const _0x42468c=this['editor']['locale'],{data:_0x46faa3}=_0x4f2b36;if(!_0x46faa3)return;let _0x10c89e,_0x21d59c;switch(_0x46faa3['commandName']){case'listStyle':_0x10c89e='*Change\x20to:*\x20%0',_0x21d59c={'type':'format','content':o(_0x42468c,_0x10c89e,o(_0x42468c,this['_getTranslationKeyForListStyle'](_0x46faa3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10c89e=_0x46faa3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21d59c={'type':'format','content':o(_0x42468c,_0x10c89e)};break;case'listStart':_0x10c89e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21d59c={'type':'format','content':o(_0x42468c,_0x10c89e,_0x46faa3['commandParams'][0x0]['startIndex'])};}return _0x21d59c;}['_getSuggestionBlocksForListStyle'](){const _0x4ae6bf=this['editor']['plugins']['get']('LegacyListUtils');let _0x993c8f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x993c8f[0x0]?.['is']('element','listItem')&&_0x993c8f['unshift'](..._0x4ae6bf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x993c8f[_0x993c8f['length']-0x1]?.['is']('element','listItem')&&_0x993c8f['push'](..._0x4ae6bf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x993c8f=[...new Set(_0x993c8f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x993c8f=_0x993c8f['filter'](_0x571611=>_0x571611['is']('element','listItem'))),_0x993c8f;}['_getSuggestionBlocks'](_0x5daf5c){const _0x2d5a18=this['editor']['plugins']['get']('LegacyListUtils');let _0xbc6125=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5daf5c)['map'](_0x3d7249=>{const _0x2cac46=this['editor']['model']['createPositionAt'](_0x3d7249,0x0);return[..._0x2d5a18['getSiblingNodes'](_0x2cac46,'backward'),..._0x2d5a18['getSiblingNodes'](_0x2cac46,'forward')];})['flat']();return _0xbc6125=[...new Set(_0xbc6125)],_0xbc6125;}['_getTranslationKeyForListStyle'](_0x2aaf3c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2aaf3c)||'default')['toUpperCase']()+'_LIST_'+_0x2aaf3c['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x522036{['afterInit'](){const _0x3f2545=this['editor'];if(!_0x3f2545['plugins']['has']('MediaEmbedEditing'))return;const _0x15571d=_0x3f2545['plugins']['get']('TrackChangesEditing'),_0x1b318c=_0x3f2545['locale'];_0x15571d['enableCommand']('mediaEmbed'),_0x15571d['descriptionFactory']['registerElementLabel']('media',_0x55a4ff=>o(_0x1b318c,'ELEMENT_MEDIA',_0x55a4ff)),_0x3f2545['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x151dec,{writer:_0xc752d6,options:_0x207ba8})=>{if(_0x207ba8['showSuggestionHighlights'])return _0xc752d6['createEmptyElement']('div');},'converterPriority':'high'}),_0x3f2545['data']['downcastDispatcher']['on']('attribute:url:media',(_0x539893,_0x9b225b,_0xeb02d7)=>{_0xeb02d7['options']['showSuggestionHighlights']&&_0x539893['stop']();},{'priority':'high'});}}class mt extends _0x522036{['afterInit'](){const _0x393ccd=this['editor'];_0x393ccd['plugins']['has']('MentionEditing')&&_0x393ccd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x522036{['afterInit'](){const _0x443ed8=this['editor'];if(!_0x443ed8['plugins']['has']('MergeFieldsEditing'))return;_0x443ed8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x443ed8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x212ecc=_0x443ed8['plugins']['get']('TrackChangesEditing'),_0x148856=_0x443ed8['locale'];_0x212ecc['descriptionFactory']['registerElementLabel']('mergeField',_0x5667e0=>o(_0x148856,'ELEMENT_MERGE_FIELD',_0x5667e0)),_0x212ecc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x188d72=>o(_0x148856,'ELEMENT_MERGE_FIELD',_0x188d72)),_0x212ecc['descriptionFactory']['registerDescriptionCallback'](_0x1aacae=>{if('insertion'!=_0x1aacae['type']&&'deletion'!=_0x1aacae['type'])return;const _0x5b076e=_0x1aacae['getContainedElement']();if(null==_0x5b076e)return;if(!_0x5b076e['is']('element','mergeField')&&!_0x5b076e['is']('element','mergeFieldBlock'))return;const _0x11ea4e=_0x443ed8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5b076e['getAttribute']('id'));return'insertion'==_0x1aacae['type']?{'type':'insertion','content':o(_0x148856,'*Insert:*\x20%0','\x22'+_0x11ea4e+'\x22\x20'+o(_0x148856,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x148856,'*Remove:*\x20%0','\x22'+_0x11ea4e+'\x22\x20'+o(_0x148856,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x522036{['afterInit'](){const _0x296c09=this['editor'],_0x32ceef=_0x296c09['plugins']['get']('TrackChangesEditing');_0x296c09['plugins']['has']('MultiLevelList')&&(_0x32ceef['enableDefaultAttributesIntegration']('multiLevelList'),_0x32ceef['registerBlockAttribute']('listMarkerStyle'),_0x32ceef['descriptionFactory']['registerDescriptionCallback'](_0x588b9f=>this['handleDescriptions'](_0x588b9f)));}['handleDescriptions'](_0x294897){const _0x46c257=this['editor']['locale'],{data:_0x165fcb}=_0x294897,_0x3f2fb1={'type':'format','content':''};if(_0x165fcb&&'listMarkerStyle'==_0x165fcb['key']){if(!_0x165fcb['oldValue'])return{'type':'format','content':o(_0x46c257,'*Set\x20format:*\x20%0',o(_0x46c257,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165fcb['newValue']+')'};if(!_0x165fcb['newValue']){let _0xea70ff=_0x294897['head'];for(;_0xea70ff;){if(_0xea70ff['data']&&'listType'==_0xea70ff['data']['key']&&_0xea70ff['data']['newValue'])return _0x3f2fb1;_0xea70ff=_0xea70ff['next'];}return{'type':'format','content':o(_0x46c257,'*Remove\x20format:*\x20%0',o(_0x46c257,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165fcb['oldValue']+')'};}}}}class kt extends _0x522036{['afterInit'](){const _0x5f6f8b=this['editor'];if(!_0x5f6f8b['plugins']['has']('PageBreakEditing'))return;_0x5f6f8b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1262a7=_0x5f6f8b['plugins']['get']('TrackChangesEditing'),_0x48196e=_0x5f6f8b['locale'];_0x1262a7['descriptionFactory']['registerElementLabel']('pageBreak',_0x1c0858=>o(_0x48196e,'ELEMENT_PAGE_BREAK',_0x1c0858));}}class bt extends _0x522036{['afterInit'](){const _0x580e35=this['editor'];if(!_0x580e35['plugins']['has']('Paragraph'))return;const _0x5cdb5a=_0x580e35['locale'],_0x1d9a4a=_0x580e35['plugins']['get']('TrackChangesEditing');_0x1d9a4a['descriptionFactory']['registerElementLabel']('paragraph',_0x152afe=>o(_0x5cdb5a,'ELEMENT_PARAGRAPH',_0x152afe)),_0x1d9a4a['enableDefaultAttributesIntegration']('paragraph'),_0x1d9a4a['enableCommand']('insertParagraph'),_0x580e35['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x580e35),{'priority':'highest'}),_0x580e35['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ca336,_0xb7be17,_0x59e0e5)=>{_0x59e0e5['options']['showSuggestionHighlights']&&nr(_0x580e35,{'showActiveMarker':!0x1})(_0x4ca336,_0xb7be17,_0x59e0e5);},{'priority':'highest'});const _0x377473=_0x1d9a4a['descriptionFactory'];_0x377473['registerDescriptionCallback'](_0xb5abe=>{if('insertion'!==_0xb5abe['type'])return;const {start:_0xa4260f,end:_0x4fb058}=_0xb5abe['getFirstRange']();if(!_0xa4260f['isTouching'](_0x4fb058)||!_0xa4260f['nodeAfter'])return;const _0x13389e=_0x580e35['model']['schema'],_0x2666f2=_0xa4260f['nodeAfter'];return _0x13389e['isBlock'](_0x2666f2)&&!_0x13389e['isLimit'](_0x2666f2)&&_0x13389e['checkChild'](_0x2666f2,'$text')?{'type':'insertion','content':o(_0x5cdb5a,'*Insert:*\x20%0',_0x377473['getItemLabel'](_0x2666f2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xae5fe4=this['editor'],_0x380bc0=_0xae5fe4['locale'];_0xae5fe4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c756a=>{if('formatBlock'!=_0x1c756a['type'])return;const {data:_0x126111}=_0x1c756a;return _0x126111&&'paragraph'==_0x126111['commandName']?{'type':'format','content':o(_0x380bc0,'*Change\x20to:*\x20%0',o(_0x380bc0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xcc8d83,{showActiveMarker:_0x5a1515=!0x0}={}){return(_0x397cd9,_0x4d7303,_0x4f23e4)=>{const _0x187114=_0xcc8d83['plugins']['get']('TrackChangesEditing'),_0x44b3da=_0x4d7303['markerRange']['start'],_0x251066=_0x4d7303['markerRange']['end'],_0x19dcfc=_0xcc8d83['model']['schema'];if(!_0x44b3da['isTouching'](_0x251066)||!_0x44b3da['nodeAfter'])return;const _0x489dd7=_0x44b3da['nodeAfter'];if(_0x19dcfc['isBlock'](_0x489dd7)&&!_0x19dcfc['isLimit'](_0x489dd7)&&_0x19dcfc['checkChild'](_0x489dd7,'$text')){if(!_0x4f23e4['consumable']['consume'](_0x4d7303['markerRange'],_0x397cd9['name']))return;const {authorId:_0x4e2a20}=_0x187114['_splitMarkerName'](_0x4d7303['markerName']),_0xedbd1c=_0x4f23e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4e2a20}),_0x3f1954=_0x4f23e4['mapper']['toViewPosition'](_0x251066);_0x5a1515&&_0x187114['activeMarkers']['includes'](_0x4d7303['markerName'])&&_0x4f23e4['writer']['addClass']('ck-suggestion-marker--active',_0xedbd1c),_0x4f23e4['writer']['insert'](_0x3f1954,_0xedbd1c),_0x4f23e4['mapper']['bindElementToMarker'](_0xedbd1c,_0x4d7303['markerName']);}};}class yt extends _0x522036{['afterInit'](){const _0x5cf0cd=this['editor'];if(!_0x5cf0cd['plugins']['has']('RemoveFormatEditing'))return;_0x5cf0cd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b5586=this['editor'];_0x2b5586['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236f08=>{if('formatBlock'!=_0x236f08['type']&&'formatInline'!=_0x236f08['type'])return;const {data:_0x21a104}=_0x236f08;return _0x21a104&&'removeFormat'==_0x21a104['commandName']?{'type':'format','content':o(_0x2b5586['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x522036{['afterInit'](){const _0x155414=this['editor'];if(!_0x155414['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x516348=_0x155414['plugins']['get']('TrackChangesEditing');_0x516348['enableCommand']('goToPreviousRestrictedEditingException'),_0x516348['enableCommand']('goToNextRestrictedEditingException');const _0x1aacff=_0x155414['plugins']['get']('RestrictedEditingModeEditing');_0x1aacff['enableCommand']('trackChanges'),_0x1aacff['enableCommand']('acceptSuggestion'),_0x1aacff['enableCommand']('discardSuggestion'),_0x1aacff['enableCommand']('acceptAllSuggestions'),_0x1aacff['enableCommand']('discardAllSuggestions'),_0x1aacff['enableCommand']('acceptSelectedSuggestions'),_0x1aacff['enableCommand']('discardSelectedSuggestions');}}class St extends _0x522036{static get['requires'](){return[_0x2b6dac];}['init'](){const _0x513015=this['editor'],_0x4d7958=_0x513015['plugins']['get']('TrackChangesEditing');_0x4d7958['enableCommand']('shiftEnter'),_0x513015['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x513015),{'priority':'high'}),_0x513015['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x513015),{'priority':'high'}),_0x513015['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x272185,_0x1baef0,_0x4ab319)=>{_0x4ab319['options']['showSuggestionHighlights']&&ke(_0x513015,{'showActiveMarker':!0x1})(_0x272185,_0x1baef0,_0x4ab319);}),_0x4d7958['descriptionFactory']['registerElementLabel']('softBreak',_0x6db6bf=>o(_0x513015['locale'],'ELEMENT_LINE_BREAK',_0x6db6bf));}}function ke(_0x959100,{showActiveMarker:_0xe37909=!0x0}={}){return(_0x3293bd,_0x1bfb9b,_0x3d760f)=>{const _0x83d6d8=_0x959100['plugins']['get']('TrackChangesEditing');if(!_0x3d760f['consumable']['test'](_0x1bfb9b['markerRange'],_0x3293bd['name']))return;const _0x126470=_0x959100['model'];for(const _0x1adfac of _0x1bfb9b['markerRange']['getItems']()){if(!_0x1adfac['is']('element','softBreak'))continue;const _0xb5f71b='deletion'==_0x1bfb9b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x226d06}=_0x83d6d8['_splitMarkerName'](_0x1bfb9b['markerName']),_0x38f6fb=_0x3d760f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb5f71b,'data-author-id':_0x226d06}),_0x23f658=_0x3d760f['mapper']['toViewPosition'](_0x126470['createPositionBefore'](_0x1adfac));_0xe37909&&_0x83d6d8['activeMarkers']['includes'](_0x1bfb9b['markerName'])&&_0x3d760f['writer']['addClass']('ck-suggestion-marker--active',_0x38f6fb),_0x3d760f['writer']['insert'](_0x23f658,_0x38f6fb),_0x3d760f['mapper']['bindElementToMarker'](_0x38f6fb,_0x1bfb9b['markerName']);}};}class At extends _0x522036{['afterInit'](){const _0x257496=this['editor'],_0x52ffa8=_0x257496['model'],_0x1e97c7=_0x257496['locale'];if(!_0x257496['plugins']['has']('StandardEditingModeEditing'))return;const _0x196ea8=_0x257496['plugins']['get']('TrackChangesEditing'),_0x3e79ee='restrictedEditingException',_0x357a76=_0x257496['commands']['get'](_0x3e79ee);_0x196ea8['enableCommand'](_0x3e79ee,(_0x384f30,_0x5664fd={})=>{const _0xc8d8a3=_0x52ffa8['document']['selection'];if(_0xc8d8a3['isCollapsed'])return void _0x384f30(_0x5664fd);const _0x324af4=void 0x0!==_0x5664fd['forceValue']?_0x5664fd['forceValue']:!_0x357a76['value'];_0x52ffa8['change'](()=>{const _0x3dd6e3=Array['from'](_0xc8d8a3['getRanges']());for(const _0x5bb967 of _0x3dd6e3){const _0x39391f=_0x324af4?[_0x5bb967]:io(_0x3e79ee,_0x5bb967,_0x52ffa8);for(const _0x47dee8 of _0x39391f)_0x196ea8['markInlineFormat'](_0x47dee8,{'commandName':_0x3e79ee,'commandParams':[{'forceValue':_0x324af4}]});}});}),_0x196ea8['descriptionFactory']['registerDescriptionCallback'](_0x57e920=>{if('formatBlock'!=_0x57e920['type']&&'formatInline'!=_0x57e920['type'])return;const {data:_0x1a1afb}=_0x57e920;return _0x1a1afb&&_0x1a1afb['commandName']==_0x3e79ee?_0x1a1afb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e97c7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1e97c7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x522036{['afterInit'](){const _0x2fe6a5=this['editor'];if(!_0x2fe6a5['plugins']['has']('Style')||!_0x2fe6a5['plugins']['has']('DataSchema'))return;const _0xfaedfb=_0x2fe6a5['plugins']['get']('TrackChangesEditing'),_0x38ae56=_0x2fe6a5['locale'],_0x3dc05e=_0x2fe6a5['config']['get']('style')||{},_0x55fa57=_0x2fe6a5['plugins']['get']('GeneralHtmlSupport'),_0x444c50=_0x2fe6a5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fe6a5['plugins']['get']('DataSchema'),_0x3dc05e['definitions']);_0xfaedfb['enableDefaultAttributesIntegration']('style');const _0x43e95a=new Set();for(const _0x5744fc of _0x444c50['block']){const _0x556645=_0x55fa57['getGhsAttributeNameForElement'](_0x5744fc['element']);_0x43e95a['add'](_0x556645);}const _0x4b1f23=new Set();for(const _0x542d5f of _0x444c50['inline']){const _0x17e91e=_0x55fa57['getGhsAttributeNameForElement'](_0x542d5f['element']);_0x4b1f23['add'](_0x17e91e);for(const _0x5e0d70 of _0x542d5f['ghsAttributes'])_0x4b1f23['add'](_0x5e0d70);}for(const _0x109f9d of _0x43e95a)_0xfaedfb['registerBlockAttribute'](_0x109f9d),_0xfaedfb['descriptionFactory']['registerAttributeLabel'](_0x109f9d,o(_0x38ae56,'FORMAT_STYLE'));for(const _0xb6aaee of _0x4b1f23)_0xfaedfb['registerInlineAttribute'](_0xb6aaee),_0xfaedfb['descriptionFactory']['registerAttributeLabel'](_0xb6aaee,o(_0x38ae56,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf1129=this['editor'],_0x5c9a91=_0xcf1129['locale'];_0xcf1129['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173320=>{if('formatBlock'!=_0x173320['type']&&'formatInline'!=_0x173320['type'])return;const {data:_0xa9b90e}=_0x173320;return _0xa9b90e&&'style'===_0xa9b90e['commandName']?_0xa9b90e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c9a91,'*Set\x20format:*\x20%0',_0xa9b90e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5c9a91,'*Remove\x20format:*\x20%0',_0xa9b90e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x522036{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2332e7){super(_0x2332e7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x269c01=this['editor'],_0x416eb1=_0x269c01['model']['document']['selection'];if(!_0x269c01['plugins']['has']('TableEditing'))return;const _0x246c49=_0x269c01['locale'],_0x56c36c=_0x269c01['plugins']['get']('TrackChangesEditing'),_0xa009c0=_0x269c01['plugins']['get']('TableUtils');_0x56c36c['descriptionFactory']['registerElementLabel']('table',_0x1fecca=>o(_0x246c49,'ELEMENT_TABLE',_0x1fecca)),this['_setupColumnsRowsFixing'](),_0x56c36c['enableCommand']('insertTable'),_0x56c36c['enableCommand']('selectTableRow'),_0x56c36c['enableCommand']('selectTableColumn');for(const _0xd0cedf of['insertTableRowAbove','insertTableRowBelow']){const _0xa12e90=_0x269c01['commands']['get'](_0xd0cedf);_0x56c36c['enableCommand'](_0xd0cedf,_0x353ace=>{_0x269c01['model']['change'](_0x5f1949=>{_0x353ace();const _0x2b6faf='above'===_0xa12e90['order'],_0x30b5a1=_0xa009c0['getSelectionAffectedTableCells'](_0x416eb1),_0x180494=_0xa009c0['getRowIndexes'](_0x30b5a1),_0x30c288=_0x2b6faf?_0x180494['first']-0x1:_0x180494['last']+0x1,_0x254e9d=_0x30b5a1[0x0]['findAncestor']('table'),_0x47245d=_0xa009c0['createTableWalker'](_0x254e9d,{'startRow':_0x30c288,'endRow':_0x30c288}),_0x1508dd=Array['from'](_0x47245d)['map'](_0x33cf4b=>_0x5f1949['createRangeOn'](_0x33cf4b['cell']));_0x56c36c['markMultiRangeInsertion'](_0x1508dd,'tableRow');});});}for(const _0x11ebbc of['insertTableColumnLeft','insertTableColumnRight']){const _0x53a61d=_0x269c01['commands']['get'](_0x11ebbc);_0x56c36c['enableCommand'](_0x11ebbc,_0x44fee0=>{_0x269c01['model']['change'](_0x3fa8b1=>{_0x44fee0();const _0x1ce3d7='left'===_0x53a61d['order'],_0x59e4c8=_0xa009c0['getSelectionAffectedTableCells'](_0x416eb1),_0x27d553=_0xa009c0['getColumnIndexes'](_0x59e4c8),_0x3ca77f=_0x1ce3d7?_0x27d553['first']-0x1:_0x27d553['last']+0x1,_0x197c3b=_0x59e4c8[0x0]['findAncestor']('table'),_0x2655de=_0xa009c0['createTableWalker'](_0x197c3b,{'startRow':0x0,'column':_0x3ca77f,'includeAllSlots':!0x1}),_0x5712e1=Array['from'](_0x2655de)['map'](_0x2b919d=>_0x3fa8b1['createRangeOn'](_0x2b919d['cell']));_0x56c36c['markMultiRangeInsertion'](_0x5712e1,'tableColumn');});});}for(const _0x443656 of['removeTableRow','removeTableColumn']){const _0x255b39=_0x443656['substr'](0xb),_0x42e510=_0x255b39['toLowerCase'](),_0x18bd90=_0x42e510['substr'](0x0,0x3)+'span',_0x1092bc='table'+_0x255b39,_0x3d545a='min'+_0x255b39,_0x3099e6='max'+_0x255b39;_0x56c36c['enableCommand'](_0x443656,()=>{_0x269c01['model']['change'](_0x47f03b=>{const _0x4cbc12=_0xa009c0['getSelectionAffectedTableCells'](_0x416eb1),_0x30902b=_0x4cbc12[0x0]['findAncestor']('table');let _0x97b34b;if('removeTableRow'==_0x443656){const _0x523305=_0xa009c0['getRowIndexes'](_0x4cbc12);_0x97b34b={'startRow':_0x523305['first'],'endRow':_0x523305['last'],'includeAllSlots':!0x0};}else{const _0x5122f6=_0xa009c0['getColumnIndexes'](_0x4cbc12);_0x97b34b={'startColumn':_0x5122f6['first'],'endColumn':_0x5122f6['last'],'includeAllSlots':!0x0};}const _0x44fa68=_0xa009c0['createTableWalker'](_0x30902b,_0x97b34b),_0x8e5829=Array['from'](_0x44fa68)['map'](({cell:_0x548658})=>_0x548658),_0x2fbc2f=Re(_0x8e5829['filter'](_0x34eb4f=>_0x34eb4f['hasAttribute'](_0x18bd90))),_0x2ca9b1=Re(_0x8e5829['filter'](_0x4b81de=>!_0x4b81de['hasAttribute'](_0x18bd90)))['map'](_0x234f68=>_0x47f03b['createRangeOn'](_0x234f68)),_0x4bf89a=_0x56c36c['markMultiRangeDeletion'](_0x2ca9b1,_0x1092bc);if(_0x4bf89a&&('tableRow'==_0x4bf89a['subType']||'tableColumn'==_0x4bf89a['subType'])){const _0xd822af=this['_getSuggestionCoords'](_0x4bf89a);for(const _0x49867b of _0x2fbc2f){const _0x573201=_0x47f03b['createRangeOn'](_0x49867b),_0x1454d9=_0xa009c0['getCellLocation'](_0x49867b),_0x5dda98=_0x49867b['getAttribute'](_0x18bd90)-0x1,_0x17bd6f=_0xd822af[_0x3d545a],_0x125d27=_0xd822af[_0x3099e6];_0x17bd6f<=_0x1454d9[_0x42e510]&&_0x1454d9[_0x42e510]+_0x5dda98<=_0x125d27&&_0x4bf89a['addRange'](_0x573201);}}});});}function _0x23f5a0(_0xaa98f1){const _0x76e7a7=Array['from'](_0x416eb1['getRanges']())['map'](_0x5cddf4=>_0x582953['fromRange'](_0x5cddf4));_0x269c01['model']['change'](_0x4ec3ea=>{const _0x3b1837=_0x4ec3ea['batch'];_0xaa98f1=_0xaa98f1['filter'](_0x4d15e=>'$graveyard'!=_0x4d15e['root']['rootName']),_0x4ec3ea['setSelection'](_0xaa98f1),_0x269c01['commands']['get']('removeTableRow')['refresh'](),_0x269c01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x269c01['model']['enqueueChange'](()=>{_0x269c01['model']['enqueueChange'](_0x3b1837,_0x1bc7b0=>{const _0x5bb98f=_0x76e7a7['filter'](_0x53b0b4=>'$graveyard'!=_0x53b0b4['root']['rootName']);_0x5bb98f['length']>0x0&&_0x1bc7b0['setSelection'](_0x5bb98f);for(const _0xb0e987 of _0x76e7a7)_0xb0e987['detach']();});});});}function _0x43030f(_0x2c7129){_0x269c01['model']['change'](_0x1e0ac6=>{const _0xbcd336=Array['from'](_0x416eb1['getRanges']())['map'](_0x419e49=>_0x582953['fromRange'](_0x419e49)),_0x38ed8d=[];for(const _0x178db8 of _0x2c7129)for(const _0x1bf9c5 of _0x178db8['getItems']({'shallow':!0x0}))_0x38ed8d['push'](_0x1bf9c5);for(const _0x41bfff of _0x38ed8d)'$graveyard'!=_0x41bfff['root']['rootName']&&(_0x1e0ac6['setSelection'](_0x1e0ac6['createPositionAt'](_0x41bfff,0x0)),_0x269c01['commands']['get']('removeTableColumn')['refresh'](),_0x269c01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x47ab24=_0xbcd336['filter'](_0x50ac62=>'$graveyard'!=_0x50ac62['root']['rootName']);_0x47ab24['length']>0x0&&_0x1e0ac6['setSelection'](_0x47ab24);for(const _0x445a3c of _0xbcd336)_0x445a3c['detach']();});}function _0x46fd8d(_0x545b31,_0x35d026){return _0x35d026['every'](_0xa1099b=>_0x545b31['some'](_0x4b5e3b=>_0x4b5e3b['end']['isEqual'](_0xa1099b['start'])||_0xa1099b['end']['isEqual'](_0x4b5e3b['start'])));}function _0x3801df(_0x97e8b4,_0x2a2672){return!_0x97e8b4['some'](_0x1866f5=>_0x2a2672['some'](_0x307a0f=>_0x1866f5['isIntersecting'](_0x307a0f)))&&_0x97e8b4['some'](_0x251e2b=>_0x2a2672['some'](_0x1a6d18=>_0x251e2b['end']['isTouching'](_0x1a6d18['start'])));}_0x269c01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45eb40,_0x14a4b2,_0x180b0e)=>{if(!_0x180b0e['options']['showSuggestionHighlights'])return;const _0x3db14f=_0x14a4b2['item'];if(!_0x3db14f)return;const _0x172821=_0x180b0e['mapper']['toViewElement'](_0x3db14f);function _0x3ee851(_0x1cc846){return Array['isArray'](_0x1cc846)?_0x1cc846:[_0x1cc846];}_0x172821&&'tableCell'===_0x3db14f['name']&&_0x2b23c9(_0x172821,_0x180b0e['writer'],(_0x47b472,_0x58a70e,_0x14efd7)=>_0x14efd7['addClass'](_0x3ee851(_0x58a70e['classes']),_0x47b472),(_0x542a4e,_0x517c69,_0x527354)=>_0x527354['removeClass'](_0x3ee851(_0x517c69['classes']),_0x542a4e));},{'priority':'highest'}),_0x56c36c['descriptionFactory']['registerDescriptionCallback'](_0x5009b4=>{if('insertion'!=_0x5009b4['type']&&'deletion'!=_0x5009b4['type'])return;const _0x3461e7=_0x5009b4['getContainedElement']();if(null!=_0x3461e7&&_0x3461e7['is']('element','table')){if('insertion'==_0x5009b4['type']){const _0x3ff191=_0x5009b4['getItems']()['filter'](_0x592540=>_0x592540['is']('$textProxy'))['map'](_0x3ac56c=>_0x3ac56c['data']);if(_0x3ff191['length'])return{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ff191['join']('\x20')+'\x22'))};}if('deletion'==_0x5009b4['type']){const _0x340028=_0x5009b4['getItems']()['filter'](_0x552a7e=>_0x552a7e['is']('$textProxy'))['map'](_0x214b6b=>_0x214b6b['data']);if(_0x340028['length'])return{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x340028['join']('\x20')+'\x22'))};}}}),_0x56c36c['descriptionFactory']['registerDescriptionCallback'](_0x1c46a7=>{if('tableRow'==_0x1c46a7['subType']){const _0x4c8cd9=_0x1c46a7['getItems']()['filter'](_0x12c6a2=>_0x12c6a2['is']('$textProxy'))['map'](_0x4cd6ae=>_0x4cd6ae['data']),_0xd53e5b=this['_getSuggestionCoords'](_0x1c46a7),_0x138901=_0xd53e5b['maxRow']-_0xd53e5b['minRow']+0x1;if('insertion'==_0x1c46a7['type'])return _0x4c8cd9['length']?{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x138901,'\x22'+_0x4c8cd9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW',_0x138901))};if('deletion'==_0x1c46a7['type'])return _0x4c8cd9['length']?{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x138901,'\x22'+_0x4c8cd9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW',_0x138901))};}if('tableColumn'==_0x1c46a7['subType']){const _0x213623=_0x1c46a7['getItems']()['filter'](_0x53720a=>_0x53720a['is']('$textProxy'))['map'](_0x359cb3=>_0x359cb3['data']),_0x8ea13b=this['_getSuggestionCoords'](_0x1c46a7),_0x346f6e=_0x8ea13b['maxColumn']-_0x8ea13b['minColumn']+0x1;if('insertion'==_0x1c46a7['type'])return _0x213623['length']?{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346f6e,'\x22'+_0x213623['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN',_0x346f6e))};if('deletion'==_0x1c46a7['type'])return _0x213623['length']?{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346f6e,'\x22'+_0x213623['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN',_0x346f6e))};}}),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x23f5a0),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x23f5a0),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x43030f),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x43030f),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x46fd8d),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x46fd8d),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3801df),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3801df);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2faef0=this['editor'],_0x5934dd=_0x2faef0['model']['document']['selection'];return(_0x277fb5,_0xce8931)=>{_0x2faef0['model']['change'](_0x4a05cd=>{const {commandName:_0x5a4532,commandParams:_0x2d4e18}=_0xce8931;let _0x50890b=_0x277fb5[0x0]['end']['nodeBefore'];_0x2d4e18&&_0x2d4e18[0x0]&&!0x1===_0x2d4e18[0x0]['forceValue']&&(_0x50890b=_0x277fb5[0x0]['start']['nodeAfter']);const _0x14a04e=_0x4a05cd['createRangeIn'](_0x50890b);if('$graveyard'==_0x14a04e['root']['rootName'])return;const _0x3264fc=Array['from'](_0x5934dd['getRanges']())['map'](_0x55316b=>_0x582953['fromRange'](_0x55316b));_0x4a05cd['setSelection'](_0x14a04e),_0x2faef0['commands']['get'](_0x5a4532)['refresh'](),_0x2d4e18['push']({'forceDefaultExecution':!0x0}),_0x2faef0['execute'](_0x5a4532,..._0x2d4e18);const _0x57f42a=_0x3264fc['filter'](_0x1b68c4=>'$graveyard'!=_0x1b68c4['root']['rootName']);_0x57f42a['length']>0x0&&_0x4a05cd['setSelection'](_0x57f42a);for(const _0x3a47cf of _0x3264fc)_0x3a47cf['detach']();});};}['_getCoordsForCells'](_0x50aeb1){const _0x365972=this['editor']['plugins']['get']('TableUtils');let _0x4e5d89=Number['MAX_SAFE_INTEGER'],_0x55d00c=Number['MIN_SAFE_INTEGER'],_0xf954b8=Number['MAX_SAFE_INTEGER'],_0xf30bb6=Number['MIN_SAFE_INTEGER'];for(const _0x4a3a8e of _0x50aeb1){if('$graveyard'==_0x4a3a8e['root']['rootName'])continue;const {row:_0x55f3a6,column:_0x1eed6a}=_0x365972['getCellLocation'](_0x4a3a8e),_0xa53836=_0x4a3a8e['hasAttribute']('rowspan')?_0x4a3a8e['getAttribute']('rowspan')-0x1:0x0,_0x162c2b=_0x4a3a8e['hasAttribute']('colspan')?_0x4a3a8e['getAttribute']('colspan')-0x1:0x0;_0x4e5d89=_0x55f3a6<_0x4e5d89?_0x55f3a6:_0x4e5d89,_0x55d00c=_0x55f3a6+_0xa53836>_0x55d00c?_0x55f3a6+_0xa53836:_0x55d00c,_0xf954b8=_0x1eed6a<_0xf954b8?_0x1eed6a:_0xf954b8,_0xf30bb6=_0x1eed6a+_0x162c2b>_0xf30bb6?_0x1eed6a+_0x162c2b:_0xf30bb6;}return{'minRow':_0x4e5d89,'maxRow':_0x55d00c,'minColumn':_0xf954b8,'maxColumn':_0xf30bb6};}['_setupColumnsRowsFixing'](){const _0x3071d9=this['editor'],_0x5c41ca=_0x3071d9['plugins']['get']('TrackChangesEditing'),_0x1df16d=_0x3071d9['plugins']['get']('TableUtils');_0x3071d9['model']['document']['on']('change:data',()=>{const _0x4ef8ab=Array['from'](_0x3071d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30cd27,data:_0x2823bc}of _0x4ef8ab){const {group:_0x2e3927,id:_0x119438,subType:_0x803320}=_0x5c41ca['_splitMarkerName'](_0x30cd27);if('suggestion'!=_0x2e3927)continue;if(null!=_0x2823bc['oldRange'])continue;const _0x1d1691=_0x5c41ca['getSuggestion'](_0x119438);this['_tablePostFixingSubtypes']['includes'](_0x803320)&&this['_tableSuggestions']['add'](_0x1d1691);}},{'priority':'low'});const _0x4c0584=(_0x42b7bd,_0x5009fc)=>{let _0x5bf8c1=!0x1;const _0x120906=_0x5009fc['createRangeOn'](_0x42b7bd),_0x29ecea=_0x42b7bd['findAncestor']('table'),_0x4bb46b=_0x1df16d['getCellLocation'](_0x42b7bd);for(const _0x1734db of this['_tableSuggestions']){const _0x5c0b82=_0x1734db['subType'],_0x5acab5=_0x5c0b82['startsWith']('tablePaste'),_0x539488=_0x5c0b82['substr'](_0x5acab5?0xa:0x5),_0xcab077=_0x539488['toLowerCase'](),_0x1333cb=_0xcab077['substr'](0x0,0x3)+'span',_0xdfbc1c='min'+_0x539488,_0x28f042='max'+_0x539488;if(!_0x1734db['isInContent'])continue;if(_0x29ecea!=_0x1734db['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1734db['isIntersectingWithRange'](_0x120906))continue;const _0x50f5e1=_0x42b7bd['hasAttribute'](_0x1333cb)?_0x42b7bd['getAttribute'](_0x1333cb)-0x1:0x0,_0xc63e90=this['_getSuggestionCoords'](_0x1734db),_0x14cf92=_0xc63e90[_0xdfbc1c],_0x9ef51e=_0xc63e90[_0x28f042];_0x14cf92<=_0x4bb46b[_0xcab077]&&_0x4bb46b[_0xcab077]+_0x50f5e1<=_0x9ef51e&&(_0x1734db['addRange'](_0x120906),_0x5bf8c1=!0x0);}return _0x5bf8c1;};_0x3071d9['model']['document']['registerPostFixer'](_0x25db76=>{let _0x394f72=!0x1;for(const _0x7bdd2c of _0x3071d9['model']['document']['differ']['getChanges']())if('insert'==_0x7bdd2c['type']){if('tableRow'==_0x7bdd2c['name']){for(const _0x27c460 of _0x7bdd2c['position']['nodeAfter']['getChildren']())_0x394f72=_0x394f72||_0x4c0584(_0x27c460,_0x25db76);}else'tableCell'==_0x7bdd2c['name']&&(_0x394f72=_0x394f72||_0x4c0584(_0x7bdd2c['position']['nodeAfter'],_0x25db76));}return _0x394f72;});}['_getSuggestionCoords'](_0x3ab293){return this['_getCoordsForCells'](_0x3ab293['getRanges']()['map'](_0x43c8a4=>_0x43c8a4['start']['nodeAfter']));}}function Re(_0x55add5){return Array['from'](new Set(_0x55add5)['values']());}class _t extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0xb882c9=this['editor'],_0x57beec=_0xb882c9['model']['document']['selection'],_0x56066f=_0xb882c9['locale'];if(!_0xb882c9['plugins']['has']('TableEditing'))return;const _0x41fa7d=_0xb882c9['plugins']['get']('TrackChangesEditing'),_0x2f4eb2=_0xb882c9['plugins']['get']('TableUtils'),_0x1c1f90=_0xb882c9['plugins']['get'](vt);_0x1c1f90['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x41fa7d['enableCommand']('mergeTableCells',()=>{const _0x4cc699=_0x2f4eb2['getSelectionAffectedTableCells'](_0xb882c9['model']['document']['selection']);_0xb882c9['model']['change'](()=>{_0x41fa7d['markMultiRangeBlockFormat'](_0x4cc699,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xb882c9['commands']['get']('mergeTableCells')['on']('execute',(_0x8021ab,_0xb1f81d)=>{_0xb882c9['commands']['get']('trackChanges')['value']&&(_0xb1f81d['length']>0x0&&_0xb1f81d[_0xb1f81d['length']-0x1]&&_0xb1f81d[_0xb1f81d['length']-0x1]['forceDefaultExecution']||_0x41fa7d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x8021ab['stop']());},{'priority':'highest'});for(const _0x261b11 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x6c79bd=_0xb882c9['commands']['get'](_0x261b11);_0x41fa7d['enableCommand'](_0x261b11,()=>{const _0x4a0bdb=_0xb882c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24f5e4=>_0x24f5e4['is']('element','tableCell')),_0x31f511=_0x6c79bd['value'];_0xb882c9['model']['change'](()=>{_0x41fa7d['markMultiRangeBlockFormat']([_0x4a0bdb,_0x31f511],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c6b9a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x385838=_0xb882c9['commands']['get'](_0x3c6b9a);_0x41fa7d['enableCommand'](_0x3c6b9a,()=>{const _0x20dc45=_0x2f4eb2['getSelectionAffectedTableCells'](_0xb882c9['model']['document']['selection'])[0x0],_0xf75cef=_0x20dc45['findAncestor']('table'),{column:_0x3fcddf,row:_0x45c933}=_0x2f4eb2['getCellLocation'](_0x20dc45);let _0xb957ca=[];if('horizontally'==_0x385838['direction']){const _0x3cf38c=_0x2f4eb2['createTableWalker'](_0xf75cef,{'startRow':_0x45c933,'endRow':_0x45c933,'includeAllSlots':!0x0});_0xb957ca=Array['from'](_0x3cf38c)['map'](_0x569625=>_0x569625['cell']);}else{const _0x3e4168=_0x2f4eb2['createTableWalker'](_0xf75cef,{'column':_0x3fcddf,'includeAllSlots':!0x0});_0xb957ca=Array['from'](_0x3e4168)['map'](_0x41eb7f=>_0x41eb7f['cell']);}_0xb882c9['model']['change'](_0x135b42=>{_0x41fa7d['markBlockFormat'](_0x135b42['createRangeOn'](_0x20dc45),{'commandName':_0x3c6b9a,'commandParams':[]},_0xb957ca,_0x3c6b9a);});});}_0x41fa7d['descriptionFactory']['registerDescriptionCallback'](_0x29ef8b=>{if('formatBlock'!=_0x29ef8b['type']&&'formatInline'!=_0x29ef8b['type'])return;const {data:_0x5e5288}=_0x29ef8b;return _0x5e5288&&'mergeTableCells'==_0x5e5288['commandName']?{'type':'format','content':o(_0x56066f,'*Merge\x20cells*')}:void 0x0;}),_0x41fa7d['descriptionFactory']['registerDescriptionCallback'](_0x36d350=>{if('formatBlock'!=_0x36d350['type']&&'formatInline'!=_0x36d350['type'])return;const {data:_0x1206b2}=_0x36d350;return _0x1206b2?'splitTableCellVertically'==_0x1206b2['commandName']?{'type':'format','content':o(_0x56066f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1206b2['commandName']?{'type':'format','content':o(_0x56066f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x147ecc=_0x1c1f90['_acceptFormatSuggestionCallbackFactory']();for(const _0x5b997d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x41fa7d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b997d,'accept',_0x147ecc);for(const _0x246e39 of['splitTableCellVertically','splitTableCellHorizontally'])_0x41fa7d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x246e39,'accept',_0x147ecc);_0x41fa7d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2fd672=>{_0xb882c9['model']['change'](_0x4d2a33=>{const _0x39974a=Array['from'](_0x57beec['getRanges']())['map'](_0x190002=>_0x582953['fromRange'](_0x190002));_0x4d2a33['setSelection'](_0x2fd672),_0xb882c9['commands']['get']('mergeTableCells')['refresh'](),_0xb882c9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c6d6a=_0x39974a['filter'](_0x2adbf4=>'$graveyard'!=_0x2adbf4['root']['rootName']);_0x3c6d6a['length']>0x0&&_0x4d2a33['setSelection'](_0x3c6d6a);for(const _0x57e8d0 of _0x39974a)_0x57e8d0['detach']();});});for(const _0x58e555 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x570176=_0xb882c9['commands']['get'](_0x58e555);_0x570176['on']('set:isEnabled',(_0x448770,_0x26d401,_0x555282)=>{if(_0x555282){const _0x5922dd=_0xb882c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x375083=>_0x375083['is']('element','tableCell'));this['_areMergableCells'](_0x570176['value'],_0x5922dd)||(_0x448770['return']=!0x1,_0x448770['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x157ed7=this['editor']['commands']['get']('mergeTableCells'),_0x490253=this['editor']['plugins']['get']('TableUtils');if(!_0x157ed7['isEnabled'])return!0x1;const _0xd92a48=_0x490253['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x47e9a3 of _0xd92a48)for(const _0x404418 of _0xd92a48)if(_0x47e9a3!=_0x404418&&!this['_areMergableCells'](_0x47e9a3,_0x404418))return!0x1;return!0x0;}['_areMergableCells'](_0x3f9a96,_0x396c7d){const _0x173be0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24bdfe=this['editor']['model']['createRangeOn'](_0x3f9a96),_0x1c4196=this['editor']['model']['createRangeOn'](_0x396c7d),_0x3f2292=new Set(),_0x4760f7=new Set();for(const _0x29f494 of _0x173be0['getSuggestions']())if(('insertion'==_0x29f494['type']||'deletion'==_0x29f494['type']||'mergeTableCells'==_0x29f494['subType'])&&_0x29f494['isInContent']){for(const _0x21bdc4 of _0x29f494['getRanges']())_0x21bdc4['containsRange'](_0x24bdfe,!0x0)&&_0x3f2292['add'](_0x29f494['type']+':'+_0x29f494['author']['id']),_0x21bdc4['containsRange'](_0x1c4196,!0x0)&&_0x4760f7['add'](_0x29f494['type']+':'+_0x29f494['author']['id']);}if(_0x3f2292['size']!=_0x4760f7['size'])return!0x1;for(const _0x290c2d of _0x3f2292)if(!_0x4760f7['has'](_0x290c2d))return!0x1;return!0x0;}}class Ct extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0x47e83c=this['editor'];if(!_0x47e83c['plugins']['has']('TableEditing'))return;const _0x404931=_0x47e83c['locale'],_0x543bc6=_0x47e83c['plugins']['get']('TrackChangesEditing');_0x543bc6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x543bc6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x543bc6['registerBlockAttribute']('headingRows'),_0x543bc6['registerBlockAttribute']('headingColumns'),_0x543bc6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x404931,'FORMAT_HEADER_ROW')),_0x543bc6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x404931,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32b9fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f9ecd=this['editor']['plugins']['get']('TableUtils'),_0x1cdbf7=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x1c1799({showActiveMarker:_0x29ff2c=!0x0,setDataAttribute:_0x1fe0ca=!0x0}={}){return(_0x555754,_0x308a2e,_0x5d9774)=>{const {type:_0x1dbfd1,id:_0x1f9ce8}=_0x32b9fa['_splitMarkerName'](_0x308a2e['markerName']),_0x2cf33d=_0x32b9fa['getSuggestion'](_0x1f9ce8),_0x1250ae=_0x2cf33d['data'];if('formatBlock'!=_0x2cf33d['type']||!_0x1250ae||'setTableColumnHeader'!=_0x1250ae['commandName'])return;if(_0x308a2e['item'])return void _0x555754['stop']();if(!_0x5d9774['consumable']['consume'](_0x308a2e['markerRange'],_0x555754['name']))return;const _0x4ada1e=_0x308a2e['markerRange']['start']['nodeAfter'],_0x3d346a=_0x308a2e['markerRange']['end']['nodeBefore'],_0xb0bd2=_0x4ada1e['parent']['parent'],{column:_0x56022c}=_0x4f9ecd['getCellLocation'](_0x4ada1e),{column:_0x5b196d}=_0x4f9ecd['getCellLocation'](_0x3d346a);for(let _0x25ab9b=_0x56022c;_0x25ab9b<=_0x5b196d;_0x25ab9b++){const _0x2d35c3=_0x4f9ecd['createTableWalker'](_0xb0bd2,{'column':_0x25ab9b,'includeAllSlots':!0x1});for(const _0x56115d of _0x2d35c3){const _0x4b2c1a=_0x56115d['cell'],_0x2eb71b=_0x5d9774['mapper']['toViewElement'](_0x4b2c1a);_0x5d9774['writer']['addClass']('ck-suggestion-marker-'+_0x1dbfd1,_0x2eb71b),_0x1fe0ca&&_0x5d9774['writer']['setAttribute']('data-suggestion',_0x1f9ce8,_0x2eb71b),_0x5d9774['mapper']['bindElementToMarker'](_0x2eb71b,_0x308a2e['markerName']),_0x29ff2c&&(_0x32b9fa['activeMarkers']['includes'](_0x308a2e['markerName'])?_0x5d9774['writer']['addClass']('ck-suggestion-marker--active',_0x2eb71b):_0x5d9774['writer']['removeClass']('ck-suggestion-marker--active',_0x2eb71b));}}};}_0x32b9fa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1cdbf7),_0x32b9fa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1cdbf7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1c1799(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a11e2,_0x3ac8e7,_0x3d6586)=>{_0x3d6586['options']['showSuggestionHighlights']&&_0x1c1799({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5a11e2,_0x3ac8e7,_0x3d6586);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45d84c,_0x197de0,_0x4311bc)=>{const {type:_0x323ce3,id:_0xda72d2}=_0x32b9fa['_splitMarkerName'](_0x197de0['markerName']),_0x5ebfff=_0x32b9fa['getSuggestion'](_0xda72d2),_0x55b714=_0x5ebfff['data'];if('formatBlock'!=_0x5ebfff['type']||!_0x55b714||'setTableColumnHeader'!=_0x55b714['commandName'])return;const _0x230db6=_0x4311bc['mapper']['markerNameToElements'](_0x197de0['markerName']);if(_0x230db6){for(const _0x3d1f9b of _0x230db6)_0x4311bc['writer']['removeClass']('ck-suggestion-marker-'+_0x323ce3,_0x3d1f9b),_0x4311bc['writer']['removeClass']('ck-suggestion-marker--active',_0x3d1f9b),_0x4311bc['writer']['removeAttribute']('data-suggestion',_0x3d1f9b),_0x4311bc['mapper']['unbindElementFromMarkerName'](_0x3d1f9b,_0x197de0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b1c5f=this['editor'],_0x5b1468=_0x1b1c5f['locale'];function _0x27133e(_0x361619){return{'type':'format','content':o(_0x5b1468,'*Format:*\x20%0',_0x361619)};}_0x1b1c5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d951=>{if('formatBlock'!=_0x36d951['type'])return;const {data:_0x379f27}=_0x36d951;if(_0x379f27){if('setTableRowHeader'==_0x379f27['commandName']){const _0x321a09=_0x379f27['commandParams'][0x0]['forceValue'];return _0x27133e(o(_0x5b1468,_0x321a09?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x379f27['commandName']){const _0x4d18f2=_0x379f27['commandParams'][0x0]['forceValue'];return _0x27133e(o(_0x5b1468,_0x4d18f2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x583d72=>[_0x583d72,null]));class Nt extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0x208036=this['editor'];if(!_0x208036['plugins']['has']('TableClipboard'))return;const _0x565e5a=_0x208036['plugins']['get']('TrackChangesEditing'),_0x3f2562=_0x208036['plugins']['get']('TableUtils'),_0xf334de=_0x208036['plugins']['get'](vt),_0x3c411f=_0x208036['plugins']['get']('TableClipboard');_0xf334de['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x208036['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x208036['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d8255=null;_0x208036['model']['on']('insertContent',(_0x32aa59,_0x46bd9a)=>{const [_0x7edf5a,_0x2385d3]=_0x46bd9a,_0xeeed1f=_0x46bd9a[_0x46bd9a['length']-0x1];_0xeeed1f&&_0xeeed1f['forceDefaultExecution']||_0x565e5a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14670c,_0x2609fb,_0x46abec,_0x3031c2,_0x5ba45f){if(_0x2609fb&&!_0x2609fb['is']('documentSelection'))return!0x1;const _0x53644f=_0x5ba45f['getTableIfOnlyTableInContent'](_0x14670c,_0x46abec);if(!_0x53644f||!Ae(_0x53644f,void 0x0,_0x3031c2))return!0x1;const _0x7356db=_0x3031c2['getSelectionAffectedTableCells'](_0x46abec['document']['selection']);if(!_0x7356db['length'])return!0x1;const _0x59d5fc=_0x7356db[0x0]['findAncestor']('table'),_0x5ae052=_0x3031c2['getRowIndexes'](_0x7356db),_0x440dfb=_0x3031c2['getColumnIndexes'](_0x7356db),_0x4a933c={'startRow':_0x5ae052['first'],'endRow':_0x5ae052['last'],'startColumn':_0x440dfb['first'],'endColumn':_0x440dfb['last']};return 0x1==_0x7356db['length']&&(_0x4a933c['endRow']+=_0x3031c2['getRows'](_0x53644f)-0x1,_0x4a933c['endColumn']+=_0x3031c2['getColumns'](_0x53644f)-0x1),Ae(_0x59d5fc,_0x4a933c,_0x3031c2);}(_0x7edf5a,_0x2385d3,_0x208036['model'],_0x3f2562,_0x3c411f)&&(_0x32aa59['stop'](),_0x3d8255={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x208036['model']['change'](()=>{_0x208036['model']['insertContent'](_0x46bd9a[0x0],_0x46bd9a[0x1],_0x46bd9a[0x2],{'forceDefaultExecution':!0x0});const _0x342f9c=_0xb9e80(),{rowInsertionRanges:_0xe07632,columnInsertionRanges:_0x3682c6,insertionRanges:_0x29acc5,deletionRanges:_0x1183c9,cells:_0x45328e}=_0x3d8255;_0xe07632['length']&&_0x565e5a['markMultiRangeInsertion'](_0xe07632,'tablePasteRow',{'tablePasteChainId':_0x342f9c}),_0x3682c6['length']&&_0x565e5a['markMultiRangeInsertion'](_0x3682c6,'tablePasteColumn',{'tablePasteChainId':_0x342f9c}),_0x29acc5['length']&&(_0x565e5a['markMultiRangeInsertion'](_0x29acc5,'tablePaste',{'tablePasteChainId':_0x342f9c,'skipNestingCheck':!0x0}),_0x29acc5['forEach'](_0x158901=>_0x158901['detach']?.())),_0x1183c9['length']&&(_0x565e5a['markMultiRangeDeletion'](_0x1183c9,'tablePaste',{'tablePasteChainId':_0x342f9c,'skipNestingCheck':!0x0}),_0x1183c9['forEach'](_0x404048=>_0x404048['detach']?.()));const _0x5345c2=_0x565e5a['markMultiRangeBlockFormat'](_0x45328e['map'](({element:_0x13a597})=>_0x13a597),{'formatGroupId':_0xb9e80()},[],'tablePasteCell',{'tablePasteChainId':_0x342f9c});if(_0x5345c2){const _0x43783e=_0x5345c2['getMarkers'](),_0x418f1c=[];for(const {element:_0x564bf3,attributes:_0x16ff59}of _0x45328e){if(!_0x16ff59)continue;const _0x156549=_0x208036['model']['createRangeOn'](_0x564bf3),_0x1a36b3=_0x43783e['find'](_0x5dbb1a=>_0x5dbb1a['getRange']()['isEqual'](_0x156549));_0x1a36b3&&_0x418f1c['push']([_0x1a36b3['name'],_0x16ff59]);}_0x418f1c['length']&&_0x5345c2['setAttribute']('markerAttributes',Object['fromEntries'](_0x418f1c));}_0x3d8255=null;}));},{'priority':_0xe00547['high']+0xa}),_0x208036['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x476295,_0x5a66ec)=>{const [_0x333457,_0x4f3e2b,,_0x125a7c]=_0x5a66ec;if(!_0x3d8255)return;_0x476295['stop']();const _0x463b02=_0x333457['cell'],_0x1f82f7=_0x4f3e2b,_0xc8b405=je(_0x463b02),_0x1ff3a1=je(_0x1f82f7);_0x476295['return']=_0x463b02;let _0x18df9a=null,_0x450ce7=null;if(_0x1ff3a1||_0xc8b405){if(_0xc8b405&&!_0x1ff3a1){_0x125a7c['remove'](_0x463b02['getChild'](0x0));for(const _0x323a04 of Array['from'](_0x1f82f7['getChildren']()))_0x125a7c['insert'](_0x323a04,_0x463b02,'end');const _0x8b6b2a=_0x3d8255['rowInsertionIndexes']['includes'](_0x333457['row']),_0x27a67d=_0x3d8255['columnInsertionIndexes']['includes'](_0x333457['column']);_0x8b6b2a||_0x27a67d||(_0x18df9a=_0x582953['fromRange'](_0x125a7c['createRangeIn'](_0x463b02)));}else _0x1ff3a1&&!_0xc8b405&&(_0x450ce7=_0x125a7c['createRangeIn'](_0x463b02));}else{const _0x3a7f07=_0x125a7c['createElement']('tableCellSuggestion'),_0x4cef78=_0x125a7c['createElement']('tableCellSuggestion');_0x125a7c['wrap'](_0x125a7c['createRangeIn'](_0x463b02),_0x4cef78),_0x125a7c['insert'](_0x3a7f07,_0x463b02,0x0);for(const _0x5d4783 of Array['from'](_0x1f82f7['getChildren']()))_0x125a7c['insert'](_0x5d4783,_0x3a7f07,'end');_0x18df9a=_0x582953['fromRange'](_0x125a7c['createRangeOn'](_0x3a7f07)),_0x450ce7=_0x582953['fromRange'](_0x125a7c['createRangeOn'](_0x4cef78));}const _0x5dcac9=Array['from'](_0x1f82f7['getAttributes']())['filter'](([_0x29ef27])=>we['includes'](_0x29ef27));_0x3d8255['cells']['push']({'element':_0x463b02,'attributes':_0x5dcac9['length']?Object['fromEntries'](_0x5dcac9):null}),_0x18df9a&&_0x3d8255['insertionRanges']['push'](_0x18df9a),_0x450ce7&&_0x3d8255['deletionRanges']['push'](_0x450ce7);},{'priority':'high'}),_0x3f2562['on']('insertColumns',(_0xe93ba0,_0x3e4b6e)=>{const [_0x1eab06,_0x4181a5={}]=_0x3e4b6e;if(!_0x3d8255)return;const _0x38f6f7=_0x4181a5['at']||0x0,_0x438f57=_0x4181a5['columns']||0x1;_0x3d8255['columnInsertionIndexes']=new Array(_0x438f57)['fill'](_0x38f6f7)['map']((_0x27bfab,_0x3016fc)=>_0x27bfab+_0x3016fc);for(const {cell:_0x4d6536}of _0x3f2562['createTableWalker'](_0x1eab06,{'startColumn':_0x38f6f7,'endColumn':_0x38f6f7+_0x438f57-0x1}))_0x3d8255['columnInsertionRanges']['push'](_0x208036['model']['createRangeOn'](_0x4d6536));},{'priority':'low'}),_0x3f2562['on']('insertRows',(_0x3143ba,_0x190659)=>{const [_0x15a45c,_0x5625d3={}]=_0x190659;if(!_0x3d8255)return;const _0x4349e3=_0x5625d3['at']||0x0,_0x588f3c=_0x5625d3['rows']||0x1;_0x3d8255['rowInsertionIndexes']=new Array(_0x588f3c)['fill'](_0x4349e3)['map']((_0x264788,_0x36b162)=>_0x264788+_0x36b162);for(const {cell:_0x4a99b5}of _0x3f2562['createTableWalker'](_0x15a45c,{'startRow':_0x4349e3,'endRow':_0x4349e3+_0x588f3c-0x1}))_0x3d8255['rowInsertionRanges']['push'](_0x208036['model']['createRangeOn'](_0x4a99b5));},{'priority':'low'}),_0x565e5a['descriptionFactory']['registerDescriptionCallback'](_0x110cc0=>{if(_0x110cc0['subType']&&_0x110cc0['subType']['startsWith']('tablePaste'))return _0x110cc0['previous']?{}:{'type':'insertion','content':o(_0x208036['locale'],'*Replace\x20table\x20cells*')};});const _0x24904a=()=>!0x1;for(const _0x36ca95 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x565e5a['_suggestionFactory']['registerCustomCallback']('insertion',_0x36ca95,'join',_0x24904a),_0x565e5a['_suggestionFactory']['registerCustomCallback']('deletion',_0x36ca95,'join',_0x24904a),_0x565e5a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36ca95,'join',_0x24904a);_0x565e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x24904a),_0x565e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3fbcb1,_0xdcb249,_0x297aa4)=>{const _0x23ca06=_0x3fbcb1['map'](_0x4300e0=>_0x4300e0['getContainedElement']())['filter'](_0x5ccb17=>_0x5ccb17),_0x1cab62=new Map(_0x23ca06['map'](_0x4a3065=>[_0x4a3065,null]));if(_0x3d8255){for(const {element:_0x537139,attributes:_0x4d435f}of _0x3d8255['cells'])_0x4d435f&&_0x1cab62['set'](_0x537139,_0x4d435f);}else{if(_0x297aa4&&_0x297aa4['markerAttributes'])for(const [_0x53bb07,_0x1abaf4]of Object['entries'](_0x297aa4['markerAttributes'])){const _0x5d5930=_0x208036['model']['markers']['get'](_0x53bb07),_0x3027b2=_0x5d5930?_0x5d5930['getRange']()['getContainedElement']():null;_0x3027b2&&_0x1cab62['set'](_0x3027b2,_0x1abaf4);}}_0x208036['model']['change'](_0x20e6d3=>{for(const [_0x4323a3,_0x5b3686]of _0x1cab62)_0x20e6d3['setAttributes']({...ve,..._0x5b3686},_0x4323a3);});});const _0xd8a219=(_0x5544a2,_0x961434)=>{_0x565e5a['_suggestionFactory']['registerCustomCallback'](_0x5544a2,'tablePaste',_0x961434,(_0x1b24d3,_0x1f3ce5,_0x3aad3e)=>{_0x208036['model']['change'](_0x4c6d31=>{const _0x4f4647=[];for(const _0x4f2690 of _0x1b24d3){const _0xf955a9=_0x4f2690['start']['nodeAfter'];_0xf955a9['is']('element','tableCellSuggestion')&&_0x4f4647['push'](_0xf955a9);}_0x565e5a['_suggestionFactory']['getSuggestionCallback'](_0x5544a2,null,_0x961434)(_0x1b24d3,_0x1f3ce5,_0x3aad3e);for(const _0x273052 of _0x4f4647)'$graveyard'!=_0x273052['root']['rootName']&&_0x4c6d31['unwrap'](_0x273052);});});};_0xd8a219('insertion','accept'),_0xd8a219('insertion','discard'),_0xd8a219('deletion','accept'),_0xd8a219('deletion','discard'),_0x565e5a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x29202d=>{const _0x418ab2=_0x29202d['map'](_0x3dacb7=>_0x3dacb7['getContainedElement']()),_0x54c606=_0x418ab2[0x0]['findAncestor']('table'),{minRow:_0x45bcb3,maxRow:_0x1e5652}=_0xf334de['_getCoordsForCells'](_0x418ab2);_0x3f2562['removeRows'](_0x54c606,{'at':_0x45bcb3,'rows':_0x1e5652-_0x45bcb3+0x1});}),_0x565e5a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d8eec=>{const _0x137bf5=_0x2d8eec['map'](_0x5249bd=>_0x5249bd['getContainedElement']()),_0x14e466=_0x137bf5[0x0]['findAncestor']('table'),{minColumn:_0x4ae719,maxColumn:_0x25e41f}=_0xf334de['_getCoordsForCells'](_0x137bf5);_0x3f2562['removeColumns'](_0x14e466,{'at':_0x4ae719,'columns':_0x25e41f-_0x4ae719+0x1});});const _0x430c98=(_0x3290bc,_0x1af9dc)=>{if(!_0x1af9dc['subType']||!_0x1af9dc['subType']['startsWith']('tablePaste'))return;const _0x21ce3f=_0x1af9dc['attributes']['tablePasteChainId'],_0x4a51f9=_0x565e5a['getSuggestions']()['filter'](_0x1fbadc=>_0x1fbadc['isInContent']&&_0x1fbadc['attributes']&&_0x1fbadc['attributes']['tablePasteChainId']==_0x21ce3f);_0x4a51f9['length']&&_0x1af9dc['getAllAdjacentSuggestions']()['length']!=_0x4a51f9['length']&&_0x4a51f9['reduce']((_0x2cbfb5,_0x38bfe6)=>(_0x2cbfb5['next']=_0x38bfe6,_0x38bfe6['previous']=_0x2cbfb5,_0x38bfe6));};function _0x57038b(_0x530b55,_0x1002dd=!0x0){const {id:_0x296477,authorId:_0x5ad6cd}=_0x565e5a['_splitMarkerName'](_0x530b55['markerName']),_0x10e98b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2b7f0d=_0x565e5a['activeMarkers']['includes'](_0x530b55['markerName']);return _0x2b7f0d&&_0x10e98b['push']('ck-suggestion-marker--active'),{'classes':_0x10e98b,'attributes':{'data-suggestion':_0x296477,'data-author-id':_0x5ad6cd},'priority':_0x2b7f0d&&_0x1002dd?0xbc2:0xbb8};}_0x565e5a['on']('suggestionLoaded',_0x430c98,{'priority':'high'}),_0x565e5a['on']('suggestionUnloaded',_0x430c98,{'priority':'high'}),_0x208036['model']['document']['registerPostFixer'](()=>{let _0x381e7f=!0x1;const _0x8c35ed=Array['from'](_0x208036['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x328486,data:_0x3715cf}of _0x8c35ed){const {group:_0x5d8d2b,type:_0x2e0428,id:_0x3707b0}=_0x565e5a['_splitMarkerName'](_0x328486);if('suggestion'!=_0x5d8d2b||'deletion'!=_0x2e0428||_0x3715cf['oldRange'])continue;if(!_0x565e5a['hasSuggestion'](_0x3707b0))continue;const _0x2c1eed=_0x565e5a['getSuggestion'](_0x3707b0)['getRanges'](),_0x5cf92a=_0x208036['plugins']['get']('Users')['me'];for(const _0x2b7a36 of _0x565e5a['getSuggestions']()){if(!_0x2b7a36['isInContent']||_0x2b7a36['author']!=_0x5cf92a)continue;if('formatBlock'!=_0x2b7a36['type']||'tablePasteCell'!=_0x2b7a36['subType'])continue;if(_0x2b7a36['getRanges']()['every'](_0x3d4df9=>_0x2c1eed['some'](_0x5a4dfd=>_0x5a4dfd['containsRange'](_0x3d4df9,!0x0)))){for(const _0xf6f86a of _0x2b7a36['getAllAdjacentSuggestions']())_0xf6f86a['isInContent']&&(_0xf6f86a['discard'](),_0x381e7f=!0x0);}}}return _0x381e7f;}),_0x208036['model']['document']['registerPostFixer'](_0x454c11=>{const _0x3fc152=_0x208036['commands']['get']('redo');if(!_0x3fc152||!_0x3fc152['_createdBatches']['has'](_0x454c11['batch']))return!0x1;let _0x4ba84f=!0x1;const _0x180057=_0x208036['plugins']['get']('Users')['me'],_0x422828=_0x208036['model']['document']['differ']['getChanges'](),_0x173876=Array['from'](_0x208036['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x450b49,data:_0x1ba2fa})=>{const {group:_0x2b333f,subType:_0x57bfff,authorId:_0x37aa69}=_0x565e5a['_splitMarkerName'](_0x450b49);return'suggestion'==_0x2b333f&&'tablePaste'==_0x57bfff&&_0x37aa69==_0x180057['id']&&!_0x1ba2fa['oldRange'];});for(const _0xdd06d3 of _0x422828){if('insert'!=_0xdd06d3['type']||'tableCellSuggestion'!=_0xdd06d3['name']||0x1!=_0xdd06d3['length'])continue;const _0x503649=_0x454c11['createRange'](_0xdd06d3['position'],_0xdd06d3['position']['getShiftedBy'](0x1));if(!_0x173876['find'](({data:_0xacc756})=>_0xacc756['newRange']['isEqual'](_0x503649))){for(const {name:_0x211ee6,data:_0x51ce10}of _0x173876)if(_0x503649['containsRange'](_0x51ce10['newRange'])){_0x454c11['updateMarker'](_0x211ee6,{'range':_0x503649}),_0x4ba84f=!0x0;break;}}}return _0x4ba84f;}),_0x208036['model']['document']['registerPostFixer'](_0x1fb513=>{let _0x278989=!0x1;const _0x53312b=_0x208036['plugins']['get']('Users')['me'],_0x49ab74=_0x565e5a['getSuggestions']()['filter'](_0x387c5e=>_0x387c5e['isInContent']&&_0x387c5e['author']==_0x53312b),_0x7291d9=new Set(),_0x3d7fee=new Set();for(const _0x5a47e4 of _0x49ab74)if('tablePaste'==_0x5a47e4['subType'])for(const _0x19dfb2 of _0x5a47e4['getMarkers']()){const _0xd4bee2=_0x19dfb2['getRange']()['getContainedElement']();if(_0xd4bee2){if(_0xd4bee2['is']('element','tableCellSuggestion')&&je(_0xd4bee2)){_0x5a47e4['removeMarker'](_0x19dfb2['name']),_0x7291d9['add'](_0xd4bee2),_0x278989=!0x0;const _0x3e18f2=_0xd4bee2['nextSibling'],_0x1150d3=_0xd4bee2['previousSibling'],_0x2f0e3a=_0x3e18f2&&_0x3e18f2['is']('element','tableCellSuggestion'),_0x33897f=_0x1150d3&&_0x1150d3['is']('element','tableCellSuggestion');_0x2f0e3a&&!_0x7291d9['has'](_0x3e18f2)&&_0x3d7fee['add'](_0x3e18f2),_0x33897f&&!_0x7291d9['has'](_0x1150d3)&&_0x3d7fee['add'](_0x1150d3);}else _0xd4bee2['is']('element','paragraph')&&_0xd4bee2['isEmpty']&&(_0x5a47e4['removeMarker'](_0x19dfb2['name']),_0x278989=!0x0);}}else{if('tablePasteCell'==_0x5a47e4['subType']){if(!_0x5a47e4['attributes']||!_0x5a47e4['attributes']['tablePasteChainId'])continue;const _0x344365=_0x5a47e4['attributes']['markerAttributes'];if(_0x344365&&Object['keys'](_0x344365)['length'])continue;const _0x1cd2d5=_0x5a47e4['attributes']['tablePasteChainId'];let _0x23a4c9=!0x0,_0x446dad=!0x0;for(const _0x183c8d of _0x49ab74)if(_0x183c8d['subType']&&_0x183c8d['subType']['startsWith']('tablePaste')){if(!_0x183c8d['attributes']['tablePasteChainId']){_0x446dad=!0x1;break;}if(_0x183c8d['id']!=_0x5a47e4['id']&&_0x183c8d['attributes']['tablePasteChainId']==_0x1cd2d5){_0x23a4c9=!0x1;break;}}_0x446dad&&_0x23a4c9&&(_0x5a47e4['removeMarkers'](),_0x278989=!0x0);}}for(const _0xc8355e of _0x7291d9)_0x1fb513['remove'](_0xc8355e);for(const _0x2fb1d2 of _0x3d7fee)_0x1fb513['unwrap'](_0x2fb1d2);return _0x278989;}),_0x208036['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xc3445f=>_0x57038b(_0xc3445f),'converterPriority':'high'}),_0x208036['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4404ed,_0x3df1d2)=>_0x3df1d2['options']['showSuggestionHighlights']?_0x57038b(_0x4404ed,!0x1):null,'converterPriority':'high'});const _0x2dd6e8=_0x208036['editing']['view'];this['listenTo'](_0x2dd6e8['document'],'clipboardOutput',(_0x1cc3e7,_0x499ef2)=>{const _0x1b7ef1=[];for(const _0x427616 of _0x2dd6e8['createRangeIn'](_0x499ef2['content'])['getItems']())_0x427616['is']('element','suggestion-td')&&_0x1b7ef1['push'](_0x427616);_0x2dd6e8['change'](_0x3cfd52=>{for(const _0x2b103f of _0x1b7ef1)_0x3cfd52['move'](_0x3cfd52['createRangeIn'](_0x2b103f),_0x3cfd52['createPositionBefore'](_0x2b103f)),_0x3cfd52['remove'](_0x2b103f);});});}}function je(_0x3a5d2a){if(_0x3a5d2a['isEmpty'])return!0x0;const _0x5a33d4=_0x3a5d2a['getChild'](0x0);return _0x5a33d4['is']('element','paragraph')&&_0x5a33d4['isEmpty'];}function Ae(_0x5a1fd4,_0x36603d={},_0x19b7ef){for(const {isAnchor:_0x3e3a41,cellHeight:_0x2bba1c,cellWidth:_0x25f118}of _0x19b7ef['createTableWalker'](_0x5a1fd4,{'includeAllSlots':!0x0,..._0x36603d}))if(!_0x3e3a41||0x1!=_0x2bba1c||0x1!=_0x25f118)return!0x1;return!0x0;}class Dt extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2c8c11=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c8c11['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2c8c11['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2c8c11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c8c11['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2c8c11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2c8c11['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1a791b,_0x285862){const _0x45a235=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d8df4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x301067=_0x285862['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x395cbc=_0x2d8df4['getColumnGroupElement'](_0x301067);let _0x4bd6e8=_0x395cbc?_0x2d8df4['getTableColumnsWidths'](_0x395cbc):null,_0x4e0cf9=_0x301067['getAttribute']('tableWidth')||null;const _0x39246c=_0x285862['tableWidth']||_0x4e0cf9,_0xf84cac=_0x285862['columnWidths']||_0x4bd6e8,_0x3f599f=this['editor']['plugins']['get']('Users')['me'];for(const _0x563c64 of _0x45a235['getSuggestions']()){const _0x3d9d82=_0x563c64['getContainedElement']();if('resizeTable'===_0x563c64['subType']&&_0x3d9d82===_0x301067){_0x563c64['author']!==_0x3f599f&&_0x563c64['discard']();const _0x329d7e=_0x563c64['data']['commandParams'];_0x4e0cf9=_0x329d7e[0x0]['tableWidth'],_0x4bd6e8=_0x329d7e[0x0]['columnWidths'];break;}}_0x1a791b({'table':_0x301067,'tableWidth':_0x39246c,'columnWidths':_0xf84cac}),_0x45a235['markBlockFormat'](_0x301067,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e0cf9,'columnWidths':_0x4bd6e8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x276673){if('formatBlock'!=_0x276673['type']&&'formatInline'!=_0x276673['type'])return;const {data:_0x299962}=_0x276673;if(_0x299962&&'resizeTable'===_0x299962['formatGroupId']){const _0x26d8dc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x26d8dc)};}}}class Mt extends _0x522036{['afterInit'](){const _0x4ed730=this['editor'];_0x4ed730['plugins']['has']('Template')&&_0x4ed730['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x522036{['afterInit'](){const _0x35951d=this['editor'];if(!_0x35951d['commands']['get']('insertTableOfContents'))return;_0x35951d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d9c27=_0x35951d['plugins']['get']('TrackChangesEditing'),_0x3fd0d8=_0x35951d['locale'];_0x4d9c27['descriptionFactory']['registerElementLabel']('tableOfContents',_0x169312=>o(_0x3fd0d8,'ELEMENT_TABLE_OF_CONTENTS',_0x169312));}}class Bt extends _0x522036{['afterInit'](){const _0x56ab4d=this['editor'];if(!_0x56ab4d['plugins']['has']('Title'))return;const _0x141417=_0x56ab4d['plugins']['get']('TrackChangesEditing');_0x141417['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x56ab4d['locale'],'ELEMENT_TITLE')),_0x56ab4d['model']['document']['registerPostFixer'](_0x341020=>{let _0x54b2a0=!0x1;const _0x3f91be=Array['from'](_0x56ab4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c8ff8,data:_0xe4a331}of _0x3f91be){const {group:_0x5319ea}=_0x141417['_splitMarkerName'](_0x2c8ff8);if('suggestion'!==_0x5319ea||!_0xe4a331['newRange'])continue;const _0x51b8e6=_0xe4a331['newRange'],_0x41c5d9=_0x51b8e6['end']['nodeBefore'];if(!_0x41c5d9||!_0x41c5d9['is']('element','title-content'))continue;if(!_0x51b8e6['start']['isTouching'](_0x51b8e6['end']))continue;const _0x300cbb=_0x56ab4d['model']['schema']['getNearestSelectionRange'](_0x51b8e6['end'],'forward');if(_0x300cbb&&_0x300cbb['isCollapsed']){const _0x1e2705=_0x341020['createRange'](_0x51b8e6['start'],_0x300cbb['start']);_0x1e2705['isEqual'](_0x51b8e6)||(_0x341020['updateMarker'](_0x2c8ff8,{'range':_0x1e2705}),_0x54b2a0=!0x0);}_0x54b2a0||(_0x341020['removeMarker'](_0x2c8ff8),_0x54b2a0=!0x0);}return _0x54b2a0;});}}class Ot extends _0x522036{['afterInit'](){const _0x46c14f=this['editor'],_0x15e2d4=_0x46c14f['plugins']['get']('TrackChangesEditing');_0x46c14f['plugins']['has']('UndoEditing')&&(_0x15e2d4['enableCommand']('undo'),_0x15e2d4['enableCommand']('redo'));}}class Rt extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0x21ada0=this['editor'];if(!_0x21ada0['plugins']['has']('TableCaptionEditing'))return;_0x21ada0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x522036{['tableProperties'];['tableCellProperties'];constructor(_0x5b509e){super(_0x5b509e),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 _0x4fea30=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x125506 of this['tableProperties'])_0x4fea30['enableCommand'](_0x125506,(_0x389938,_0x2c92a7)=>{const _0x5aeff8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x125506,[_0x5aeff8],this['tableProperties'],'tableProperties',_0x389938,_0x2c92a7);});_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4fea30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x183981,_0x1e10b9)=>this['handleDiscardAction'](this['tableProperties'],_0x183981,_0x1e10b9)),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x114694 of this['tableCellProperties'])_0x4fea30['enableCommand'](_0x114694,(_0x3c75ff,_0x736c46)=>{const _0x58947b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x114694,_0x58947b,this['tableCellProperties'],'tableCellProperties',_0x3c75ff,_0x736c46);});_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4fea30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3afd51,_0x54a114)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3afd51,_0x54a114)),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4fea30['descriptionFactory']['registerDescriptionCallback'](_0x51f669=>this['handleSuggestionDescription'](_0x51f669));}['_handlePropertyChange'](_0x1bfa08,_0x30497e,_0x755569,_0xd6384,_0x5cda85,_0x6d2419){const _0x476f60=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6d2419['batch'],()=>{for(const _0x55ded1 of _0x30497e){if(this['_getSuggestion'](_0x55ded1,_0xd6384))_0x5cda85(_0x6d2419);else{const _0x4b610b={};for(const _0x28b96c of _0x755569){const _0x3a22f1=_0x55ded1['getAttribute'](_0x28b96c);void 0x0!==_0x3a22f1&&(_0x4b610b[_0x28b96c]=_0x3a22f1);}_0x5cda85(_0x6d2419),_0x476f60['markBlockFormat'](_0x55ded1,{'commandParams':[_0x4b610b]},[],_0xd6384);}}});}['handleDiscardAction'](_0x4d408e,_0x550889,_0x1eaff4){const _0xd91e60=_0x550889[0x0]['start']['nodeAfter'],_0x4790f1=_0x1eaff4['commandParams'][0x0];this['editor']['model']['change'](_0x561fab=>{for(const _0x5abcea of _0x4d408e)void 0x0!==_0x4790f1[_0x5abcea]?_0x561fab['setAttribute'](_0x5abcea,_0x4790f1[_0x5abcea],_0xd91e60):_0x561fab['removeAttribute'](_0x5abcea,_0xd91e60);});}['handleSuggestionDescription'](_0xd5ac28){if(_0xd5ac28['data'])switch(_0xd5ac28['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'](_0x587c1a,_0x33e7ab){const _0x1059f3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x22e261 of _0x1059f3['getSuggestions']({'skipNotAttached':!0x0})){const _0x4a2f6b=_0x22e261['getContainedElement']();if(_0x22e261['subType']===_0x33e7ab&&_0x4a2f6b===_0x587c1a)return _0x22e261;}return null;}}const m='$elementName';class p extends _0x522036{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x32d02e,_0x50247b,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x410426){super(_0x410426),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x139f11,_0x4c20af,_0x3882d7,_0x1e229a)=>{this['_model']['change'](()=>{for(const _0x7a1de4 of[..._0x1e229a,..._0x3882d7])this['_model']['markers']['has'](_0x7a1de4)&&_0x410426['editing']['reconvertMarker'](_0x7a1de4);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x410426['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x410426['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x410426['config']['get']('trackChanges.trackFormatChanges'),_0x410426['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x410426['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x410426,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x35e383=this['editor'],_0x5e90b9=(_0x23bd44,_0x42454b)=>{if('attribute'!=_0x23bd44)return'ck-suggestion-marker-'+_0x23bd44;const _0x3d6dbd=_0x42454b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3d6dbd)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x35e383['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ca556=>{const {id:_0x320449,authorId:_0x207d99,type:_0x541f5d,subType:_0xded13c}=this['_splitMarkerName'](_0x3ca556['markerName']),_0x2cc7d5=['ck-suggestion-marker',_0x5e90b9(_0x541f5d,_0xded13c)];let _0x3e8281=0xbb8;return this['activeMarkers']['includes'](_0x3ca556['markerName'])&&(_0x2cc7d5['push']('ck-suggestion-marker--active'),_0x3e8281=0xbc2),'deletion'==_0x541f5d&&(_0x3e8281+=0x5),{'classes':_0x2cc7d5,'attributes':{'data-suggestion':_0x320449,'data-author-id':_0x207d99},'priority':_0x3e8281};}}),_0x35e383['conversion']['for']('dataDowncast')['add'](_0xabd2f4=>{_0xabd2f4['on']('addMarker:suggestion',(_0xc68f8,_0x1c23bd,_0x58b1a5)=>{if(!_0x58b1a5['options']['showSuggestionHighlights'])return;const _0x5f455b=_0x1c23bd['item'];if(!_0x5f455b)return;const _0x293e20=_0x58b1a5['mapper']['toViewElement'](_0x5f455b);_0x35e383['model']['schema']['isObject'](_0x5f455b)&&_0x293e20&&!_0x293e20['getCustomProperty']('widget')&&_0x293e20['is']('containerElement')&&_0x27f6ef(_0x293e20,_0x58b1a5['writer']);},{'priority':'high'});}),_0x35e383['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x57704d,_0x1208cc)=>{if(!_0x1208cc['options']['showSuggestionHighlights'])return null;const {type:_0x24a896,subType:_0x178be6}=this['_splitMarkerName'](_0x57704d['markerName']);return{'classes':['ck-suggestion-marker',_0x5e90b9(_0x24a896,_0x178be6)],'priority':0xbb8};}});const _0xdcbe89=({showActiveMarkers:_0x299853=!0x0,isAttributeSuggestion:_0x5a4f95=!0x1}={})=>(_0xa64946,_0x37d74c,_0x5a0da4)=>{if(!_0x37d74c['item'])return;const {id:_0x5240f1,authorId:_0x3df530}=this['_splitMarkerName'](_0x37d74c['markerName']);if(_0x5a4f95){const _0x1227ca=this['_suggestions']['get'](_0x5240f1),_0x3b321f=this['_getAttributeKey'](_0x1227ca);if(!this['_isBlockAttribute'](_0x3b321f))return;}if(_0x37d74c['item']['is']('selection'))return void _0x5a0da4['consumable']['consume'](_0x37d74c['item'],_0xa64946['name']);const _0x1bc32f=_0x5a0da4['mapper']['toViewElement'](_0x37d74c['item']);if(_0x37d74c['item']['is']('element')&&_0x35e383['model']['schema']['isBlock'](_0x37d74c['item'])&&!_0x1bc32f['getCustomProperty']('addHighlight')){_0x5a0da4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1bc32f),_0x5a0da4['writer']['setAttribute']('data-suggestion',_0x5240f1,_0x1bc32f),_0x5a0da4['writer']['setAttribute']('data-author-id',_0x3df530,_0x1bc32f),_0x5a0da4['mapper']['bindElementToMarker'](_0x1bc32f,_0x37d74c['markerName']),_0x299853&&(this['activeMarkers']['includes'](_0x37d74c['markerName'])?_0x5a0da4['writer']['addClass']('ck-suggestion-marker--active',_0x1bc32f):_0x5a0da4['writer']['removeClass']('ck-suggestion-marker--active',_0x1bc32f));for(const _0x185065 of _0x35e383['model']['createRangeIn'](_0x37d74c['item'])['getItems']())_0x5a0da4['consumable']['consume'](_0x185065,_0xa64946['name']);_0x5a0da4['consumable']['consume'](_0x37d74c['item'],_0xa64946['name']);}};_0x35e383['conversion']['for']('dataDowncast')['add'](_0x5847b5=>{_0x5847b5['on']('addMarker:suggestion:formatBlock',(_0x5f4d1a,_0x50e9dd,_0x34a7d9)=>{_0x34a7d9['options']['showSuggestionHighlights']&&_0xdcbe89({'showActiveMarkers':!0x1})(_0x5f4d1a,_0x50e9dd,_0x34a7d9);},{'priority':'highest'});}),_0x35e383['conversion']['for']('dataDowncast')['add'](_0x3ebf9f=>{_0x3ebf9f['on']('addMarker:suggestion:attribute',(_0x2d1984,_0x22d350,_0x580e20)=>{_0x580e20['options']['showSuggestionHighlights']&&_0xdcbe89({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2d1984,_0x22d350,_0x580e20);},{'priority':'highest'});}),_0x35e383['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2a39b9,_0x10e1f1)=>_0x10e1f1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2a39b9['substr'](0xb)}}),_0x35e383['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c2988,{writer:_0x5179a3})=>{let _0x926cc='suggestion:'+_0x1c2988['getAttribute']('suggestion-type')+':'+_0x1c2988['getAttribute']('id');return _0x1c2988['getAttribute']('marker-count')&&(_0x926cc+=':'+_0x1c2988['getAttribute']('marker-count')),_0x5179a3['createElement']('$marker',{'data-name':_0x926cc});}}),_0x35e383['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x2ed3ab=>{_0x2ed3ab['on']('addMarker:suggestion:formatBlock',_0xdcbe89(),{'priority':'high'});}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x6e2ff3=>{_0x6e2ff3['on']('addMarker:suggestion:attribute',_0xdcbe89({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x472672=>{_0x472672['on']('removeMarker:suggestion:formatBlock',(_0x1bb9f7,_0x526605,_0x563f83)=>{const _0x336a10=_0x563f83['mapper']['markerNameToElements'](_0x526605['markerName']);if(_0x336a10){for(const _0x3e4225 of _0x336a10)_0x3e4225['getCustomProperty']('addHighlight')||(_0x563f83['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e4225),_0x563f83['writer']['removeAttribute']('data-suggestion',_0x3e4225),_0x563f83['writer']['removeAttribute']('data-author-id',_0x3e4225),_0x563f83['mapper']['unbindElementFromMarkerName'](_0x3e4225,_0x526605['markerName']));}},{'priority':'high'});}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x1d403d=>{_0x1d403d['on']('removeMarker:suggestion:attribute',(_0x1e44ef,_0x340a40,_0x3dd99f)=>{const _0x429659=_0x3dd99f['mapper']['markerNameToElements'](_0x340a40['markerName']);if(!_0x429659)return;const {id:_0x442c1c}=this['_splitMarkerName'](_0x340a40['markerName']),_0x3d2998=this['_suggestions']['get'](_0x442c1c),_0x226cf8=this['_getAttributeKey'](_0x3d2998);if(this['_isBlockAttribute'](_0x226cf8)){for(const _0x3750a9 of _0x429659)_0x3750a9['getCustomProperty']('addHighlight')||(_0x3dd99f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3750a9),_0x3dd99f['writer']['removeAttribute']('data-suggestion',_0x3750a9),_0x3dd99f['writer']['removeAttribute']('data-author-id',_0x3750a9),_0x3dd99f['mapper']['unbindElementFromMarkerName'](_0x3750a9,_0x340a40['markerName']));}},{'priority':'high'});}),_0x35e383['model']['document']['registerPostFixer'](_0x52bca0=>{let _0x46d4a8=!0x1;const _0xe6803d=Array['from'](_0x35e383['model']['document']['differ']['getChangedMarkers']()),_0x23d33e=new Set();for(const {name:_0x2064ae,data:_0x5d31ec}of _0xe6803d){const {group:_0x4bf46d,type:_0x8ef09b,subType:_0x395cc5,id:_0xe60221}=this['_splitMarkerName'](_0x2064ae);if('suggestion'!==_0x4bf46d)continue;const _0x23ab16=this['_suggestions']['get'](_0xe60221);if(null!=_0x5d31ec['newRange']){'formatInline'==_0x8ef09b&&(_0x46d4a8=_0x46d4a8||Pt(_0x5d31ec['newRange'],_0x2064ae,_0x52bca0,_0x35e383['model']['schema']));const _0x39495f='attribute'==_0x8ef09b&&this['_isBlockAttribute'](_0x395cc5['split']('|')[0x0]);if(_0x5d31ec['newRange']['isCollapsed']||'$graveyard'==_0x5d31ec['newRange']['root']['rootName']||'formatBlock'==_0x8ef09b&&!Ft(_0x5d31ec['newRange'])||_0x39495f&&!Ft(_0x5d31ec['newRange'])||'deletion'==_0x8ef09b&&!(!Vt(_0x374016=_0x5d31ec['newRange'])&&!function(_0x8d139e){return _0x8d139e['start']['parent']==_0x8d139e['end']['nodeBefore']&&_0x8d139e['start']['isAtEnd'];}(_0x374016)))_0x52bca0['removeMarker'](_0x2064ae),_0x46d4a8=!0x0;else{if(!_0x23ab16||!_0x23ab16['isInContent'])continue;if(_0x5d31ec['newRange']&&_0x5d31ec['oldRange']&&_0x5d31ec['newRange']['isEqual'](_0x5d31ec['oldRange']))continue;_0x23d33e['add'](_0x23ab16);}}}var _0x374016;return _0x23d33e['size']>0x0&&(_0x46d4a8=!!this['_joinWithAdjacentSuggestions'](_0x23d33e)||_0x46d4a8),_0x46d4a8;}),_0x35e383['model']['document']['registerPostFixer'](_0x2d0918=>{let _0x53b8e2=!0x1;for(const _0x2a73e8 of _0x35e383['model']['document']['differ']['getChanges']())if('insert'==_0x2a73e8['type'])for(const _0x5404fd of this['_suggestions']['values']()){if(_0x5404fd['isMultiRange']||!_0x5404fd['isInContent'])continue;const _0x5b16a1='formatBlock'==_0x5404fd['type'],_0xd82ddd=this['_getAttributeKey'](_0x5404fd),_0x3fee6b=_0xd82ddd&&this['_isBlockAttribute'](_0xd82ddd);if(!_0x5b16a1&&!_0x3fee6b)continue;const _0x103404=_0x5404fd['getFirstRange']();if(_0x103404['start']['parent']!=_0x103404['end']['parent']&&!_0x103404['end']['isAtEnd']){const _0x5ca1f5=_0x35e383['model']['createPositionAt'](_0x103404['start']['nodeAfter'],'end'),_0xd0c82d=_0x35e383['model']['createRange'](_0x103404['start'],_0x5ca1f5);_0x2d0918['updateMarker'](_0x5404fd['getFirstMarker'](),{'range':_0xd0c82d}),_0x53b8e2=!0x0;}}return _0x53b8e2;}),_0x35e383['model']['document']['registerPostFixer'](_0x1579fb=>this['_processAttributeChanges'](_0x1579fb)),_0x35e383['model']['document']['registerPostFixer'](_0x577533=>!_0x577533['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x577533)),_0x35e383['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x35e383['model']['document']['on']('change:data',(_0x4f83cf,_0x2846e3)=>{if(!_0x2846e3['isLocal']||_0x2846e3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x567598=_0x35e383['model']['document']['differ']['getChanges']();if(0x0==_0x567598['length'])return;const _0x3aee84=[],_0x113c8a=_0x567598['filter'](_0x7dbdce=>'attribute'==_0x7dbdce['type']),_0x4a57d0=_0x567598['filter'](_0x4aefa1=>'insert'==_0x4aefa1['type']&&'$text'!=_0x4aefa1['name']);for(const _0x2360bb of _0x113c8a)this['_isRegisteredAttribute'](_0x2360bb['attributeKey'])&&_0x3aee84['push']({'key':_0x2360bb['attributeKey'],'newValue':_0x2360bb['attributeNewValue'],'oldValue':_0x2360bb['attributeOldValue'],'range':Lt(_0x2360bb['range'],_0x35e383['model'])});for(const _0x43934a of _0x4a57d0){if('rename'!=_0x43934a['action']&&'refresh'!=_0x43934a['action'])continue;const _0x552ab9=Jt(_0x43934a['position']['nodeAfter'],_0x35e383['model']),_0x23d7be=_0x43934a['before'];'rename'==_0x43934a['action']&&_0x3aee84['push']({'key':m,'newValue':_0x43934a['name'],'oldValue':_0x23d7be['name'],'range':_0x552ab9});for(const [_0x6630c5,_0x2b5d38]of _0x23d7be['attributes']){if(!this['_isRegisteredAttribute'](_0x6630c5))continue;const _0x210a62=_0x43934a['attributes']['get'](_0x6630c5);_0x2b5d38!==_0x210a62&&_0x3aee84['push']({'key':_0x6630c5,'newValue':_0x210a62,'oldValue':_0x2b5d38,'range':_0x552ab9});}for(const [_0x17054b,_0x41f9f2]of _0x43934a['attributes'])this['_isRegisteredAttribute'](_0x17054b)&&(_0x23d7be['attributes']['has'](_0x17054b)||_0x3aee84['push']({'key':_0x17054b,'newValue':_0x41f9f2,'oldValue':null,'range':_0x552ab9}));}0x0!=_0x3aee84['length']&&_0x35e383['model']['enqueueChange'](_0x2846e3,_0x3e109c=>{const _0x9da7f4=_0xb9e80();for(const {range:_0x25b838,key:_0x4db716,oldValue:_0x5eb0f3,newValue:_0x1af549}of _0x3aee84)this['markAttributeChange'](_0x25b838,_0x4db716,_0x5eb0f3,_0x1af549,{'groupId':_0x9da7f4});this['_reduceExistingSuggestions'](_0x3e109c,_0x3aee84);});},{'priority':'lowest'}),_0x35e383['model']['markers']['on']('update:suggestion',(_0x4ef97e,_0x59f38d,_0x4fb1f9)=>{if(null==_0x4fb1f9){const {id:_0x587c2a}=this['_splitMarkerName'](_0x59f38d['name']),_0x3bc427=this['_suggestions']['get'](_0x587c2a);_0x3bc427&&_0x3bc427['addMarkerName'](_0x59f38d['name']);}}),_0x35e383['model']['document']['on']('change:data',()=>{const _0x6cb04f=Array['from'](_0x35e383['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4390cd=>'suggestion'===this['_splitMarkerName'](_0x4390cd['name'])['group']);if(0x0===_0x6cb04f['length'])return;_0x6cb04f['sort']((_0x47e4ae,_0x6b84)=>{const _0x2f26f4=_0x47e4ae['data']['oldRange'],_0x458124=_0x6b84['data']['oldRange'];return null===_0x2f26f4&&null===_0x458124?0x0:null===_0x2f26f4&&null!==_0x458124?-0x1:null!==_0x2f26f4&&null===_0x458124?0x1:_0x2f26f4['start']['isBefore'](_0x458124['start'])?-0x1:0x1;});const _0x4d0486=new Set(),_0x426bd7=new Set();for(const {name:_0x6b21e8,data:_0x29b3a0}of _0x6cb04f){const {id:_0x355596}=this['_splitMarkerName'](_0x6b21e8);if(null===_0x29b3a0['oldRange']){const _0x334db7=this['_handleNewSuggestionMarker'](_0x6b21e8);_0x426bd7['add'](_0x334db7);}else{const _0x397431=this['_suggestions']['get'](_0x355596);null!==_0x29b3a0['newRange']||_0x397431['isInContent']?(_0x4d0486['add'](_0x397431['head']),_0x426bd7['add'](_0x397431)):this['_removeSuggestion'](_0x397431);}}_0x426bd7['size']>0x0&&this['_refreshSuggestionsChain'](_0x426bd7);for(const _0x2eab37 of _0x4d0486)this['fire']('suggestionChanged',_0x2eab37);}),_0x35e383['model']['on']('applyOperation',(_0x2866b2,_0x30d64f)=>{const _0xf5381f=_0x30d64f[0x0];if(!this['_suggestions']['size'])return;if(!_0xf5381f['isDocumentOperation'])return;if(_0xf5381f['batch']['isUndo']||!_0xf5381f['batch']['isLocal'])return;let _0x4c5e7c,_0x4b20a0;switch(_0xf5381f['type']){case'insert':_0x4c5e7c=_0x35e383['model']['createPositionAt'](_0xf5381f['position']),_0x4b20a0=_0x4c5e7c['getShiftedBy'](_0xf5381f['howMany']);break;case'split':_0x4c5e7c=_0x35e383['model']['createPositionAt'](_0xf5381f['splitPosition']),_0x4b20a0=_0x35e383['model']['createPositionAt'](_0xf5381f['moveTargetPosition']);break;case'move':_0x4c5e7c=_0x35e383['model']['createPositionAt'](_0xf5381f['targetPosition']),_0x4b20a0=_0x4c5e7c['getShiftedBy'](_0xf5381f['howMany']);break;default:return;}const _0x45b449=_0x35e383['model']['createRange'](_0x4c5e7c,_0x4b20a0);_0x35e383['model']['change'](()=>{for(const {suggestion:_0x4c016d,meta:_0x50c536}of this['_findSuggestions'](_0x45b449)){if(_0x4c016d['isMultiRange'])continue;if('formatInline'==_0x4c016d['type'])continue;const _0xf08f68=this['_getAttributeKey'](_0x4c016d);if(_0xf08f68&&this['_isBlockAttribute'](_0xf08f68)&&'split'!=_0xf5381f['type'])continue;const _0x1a92e8=_0x4c016d['data']&&_0x4c016d['data']['multipleBlocks'];('formatBlock'!=_0x4c016d['type']||'split'==_0xf5381f['type']&&!_0x1a92e8)&&(_0x50c536['containsRangeInObject']||'insertion'==_0x4c016d['type']&&_0x50c536['isOwn']||_0x4c016d['getFirstRange']()['containsRange'](_0x45b449)&&this['_breakSuggestionMarker'](_0x4c016d,_0x4c5e7c,_0x4b20a0));}});},{'priority':'lowest'}),_0x35e383['model']['on']('deleteContent',(_0x37c930,_0x2776cc)=>{const _0x33152f=_0x2776cc[0x0],_0x36d29a=_0x2776cc[0x1];if(_0x36d29a&&_0x36d29a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x33152f['isCollapsed'])return;const _0x409e4c=_0x35e383['model']['schema'],{start:_0x4b19e6,end:_0x9f7042}=_0x33152f['getFirstRange'](),_0x1ba93b=_0x4b19e6['nodeAfter']&&_0x409e4c['isLimit'](_0x4b19e6['nodeAfter'])?null:_0x409e4c['getNearestSelectionRange'](_0x4b19e6,'forward'),_0x1cd3fb=_0x9f7042['nodeBefore']&&_0x409e4c['isLimit'](_0x9f7042['nodeBefore'])?null:_0x409e4c['getNearestSelectionRange'](_0x9f7042,'backward'),_0x1f8c5b=_0x35e383['model']['createRange'](_0x1ba93b?_0x1ba93b['start']:_0x4b19e6,_0x1cd3fb?_0x1cd3fb['end']:_0x9f7042);_0x35e383['model']['change'](_0x1c1c5a=>{this['markDeletion'](_0x1f8c5b);const _0x18a269=_0x35e383['model']['schema']['getNearestSelectionRange'](_0x1f8c5b['start']);_0x33152f['is']('documentSelection')?_0x1c1c5a['setSelection'](_0x18a269):_0x33152f['setTo'](_0x18a269);}),_0x37c930['stop']();},{'priority':_0xe00547['normal']+0xa}),_0x35e383['model']['on']('insertContent',(_0x332494,_0x6c6abd)=>{const _0x52e8a8=_0x6c6abd[_0x6c6abd['length']-0x1];_0x52e8a8&&_0x52e8a8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x35e383['model']['change'](()=>{let _0x59a814=_0x35e383['model']['insertContent'](_0x6c6abd[0x0],_0x6c6abd[0x1],_0x6c6abd[0x2],{'forceDefaultExecution':!0x0});if(!_0x59a814)return;_0x332494['return']=_0x59a814['clone']();const _0x289e5c=_0x59a814['end']['nodeBefore'],_0x1b61f4=_0x35e383['model']['schema'];_0x289e5c&&_0x1b61f4['isBlock'](_0x289e5c)&&!_0x1b61f4['isObject'](_0x289e5c)&&(_0x59a814=_0x35e383['model']['createRange'](_0x59a814['start'],_0x35e383['model']['createPositionAt'](_0x289e5c,'end'))),this['markInsertion'](_0x59a814);}),_0x332494['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4da723=new O(_0x35e383,this['_suggestions']);_0x35e383['commands']['add']('acceptSuggestion',_0x4da723),this['enableCommand']('acceptSuggestion');const _0x5c1ba9=new R(_0x35e383,this['_suggestions']);_0x35e383['commands']['add']('discardSuggestion',_0x5c1ba9),this['enableCommand']('discardSuggestion'),_0x35e383['commands']['add']('acceptAllSuggestions',new x(_0x35e383,_0x4da723,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x35e383['commands']['add']('discardAllSuggestions',new x(_0x35e383,_0x5c1ba9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x35e383['commands']['add']('acceptSelectedSuggestions',new E(_0x35e383,_0x4da723,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x35e383['commands']['add']('discardSelectedSuggestions',new E(_0x35e383,_0x5c1ba9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20cf2e=_0x35e383['plugins']['get']('CommentsRepository');this['listenTo'](_0x20cf2e,'addComment',(_0x21b22c,{threadId:_0xbfbceb})=>{const _0x4e2f4c=this['_suggestions']['get'](_0xbfbceb);_0x4e2f4c&&_0x4e2f4c['commentThread']&&0x1===_0x4e2f4c['commentThread']['length']&&this['_updateSuggestionData'](_0xbfbceb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20cf2e,'removeComment',(_0x14fd50,{threadId:_0x3bf6c2})=>{const _0x58561d=this['_suggestions']['get'](_0x3bf6c2);_0x58561d&&_0x58561d['commentThread']&&!_0x58561d['commentThread']['length']&&this['_updateSuggestionData'](_0x3bf6c2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x960b53){const _0x2e7386=_0x76c1ec([0x31,0x6e,0x53,0x6a,0x4c,0x4e,0x32,0x39,0x62,0x6f,0x52,0x4b,0x30,0x48,0x71,0x65,0x58,0x6b,0x77,0x47,0x44,0x7a,0x6d,0x33,0x54,0x74,0x42,0x37,0x56,0x5a,0x72,0x45,0x36,0x51,0x61,0x66,0x79,0x67,0x69,0x4a,0x68,0x63,0x75,0x35,0x4f,0x38,0x49,0x64,0x57,0x43,0x76,0x55,0x34,0x73,0x4d,0x46,0x6c,0x59,0x50,0x70,0x78,0x41]),_0x16d4dc=0x3786288c,_0x5da60a=0x37817f74^_0x16d4dc,_0xe1a5eb=window[_0x76c1ec([0x44,0x61,0x74,0x65])][_0x76c1ec([0x6e,0x6f,0x77])](),_0xdb9936=_0x960b53[_0x76c1ec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x472c76=new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b5dbe=>{_0xdb9936[_0x76c1ec([0x6f,0x6e,0x63,0x65])](_0x76c1ec([0x72,0x65,0x61,0x64,0x79]),_0x2b5dbe);}),_0x1cc9ae={[_0x76c1ec([0x6b,0x74,0x79])]:_0x76c1ec([0x45,0x43]),[_0x76c1ec([0x75,0x73,0x65])]:_0x76c1ec([0x73,0x69,0x67]),[_0x76c1ec([0x63,0x72,0x76])]:_0x76c1ec([0x50,0x2d,0x32,0x35,0x36]),[_0x76c1ec([0x78])]:_0x76c1ec([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]),[_0x76c1ec([0x79])]:_0x76c1ec([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]),[_0x76c1ec([0x61,0x6c,0x67])]:_0x76c1ec([0x45,0x53,0x32,0x35,0x36])},_0x4beee1=_0xdb9936[_0x76c1ec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x76c1ec([0x67,0x65,0x74])](_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33048f(){let _0x135c6f,_0x4e230e=null,_0x32feec=null;try{if(_0x4beee1==_0x76c1ec([0x47,0x50,0x4c]))return _0x76c1ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x135c6f=_0x12651c(),!_0x135c6f)return _0x76c1ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x135c6f[_0x76c1ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32feec=_0x9860ea(_0x135c6f[_0x76c1ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x135c6f[_0x76c1ec([0x6a,0x74,0x69])])),await _0x578564()?_0x2d4571()?_0x238ef8()?_0x76c1ec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x407571()?(_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76c1ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e230e=_0x4a2491(_0x76c1ec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76c1ec([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e230e=_0x4a2491(_0x76c1ec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76c1ec([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4e230e=_0x4a2491(_0x76c1ec([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x318083()):_0x76c1ec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x76c1ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x76c1ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x382c5b){return _0x76c1ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x238ef8(){const _0x153826=[_0x76c1ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x76c1ec([0x74,0x72,0x69,0x61,0x6c])][_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe1a5eb/0x3e8:0xe10*_0x5da60a;return _0x135c6f[_0x76c1ec([0x65,0x78,0x70])]<_0x153826;}function _0x2d4571(){const _0x1973a0=_0x135c6f[_0x76c1ec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1973a0&&(!!_0x1973a0[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x2a]))||(!!_0x1973a0[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x54,0x43]))||!(!_0x1973a0[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x52,0x54,0x43]))||!_0x337dd3())));}function _0x407571(){const _0x4fb7ff=_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fb7ff||0x0==_0x4fb7ff[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f93fa}=new URL(window[_0x76c1ec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4fb7ff[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f93fa))return!0x0;const _0x288b10=_0x1f93fa[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e]));return _0x4fb7ff[_0x76c1ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x93cf97=>_0x93cf97[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x2a])))[_0x76c1ec([0x6d,0x61,0x70])](_0x4f9532=>_0x4f9532[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e])))[_0x76c1ec([0x73,0x6f,0x6d,0x65])](_0x91ed6f=>_0x288b10[_0x76c1ec([0x65,0x76,0x65,0x72,0x79])]((_0x21651e,_0x3b235e)=>_0x91ed6f[_0x3b235e]===_0x21651e||_0x91ed6f[_0x3b235e]===_0x76c1ec([0x2a])));}function _0x318083(){return _0x4e230e&&_0x32feec?new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25b141,_0x7525ee)=>{_0x4e230e[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x25b141,_0x7525ee),_0x32feec[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x40d684=>{_0x40d684!=_0x76c1ec([0x56,0x61,0x6c,0x69,0x64])&&_0x25b141(_0x40d684);},_0x7525ee);}):_0x4e230e||_0x32feec||_0x76c1ec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9860ea(_0x4cbb4c,_0x57db82){return new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196da9=>{if(_0x2f9fe3())return _0x196da9(_0x76c1ec([0x56,0x61,0x6c,0x69,0x64]));_0x17a7ae(),_0xdb9936[_0x76c1ec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x76c1ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14b644=!0x1;const _0x29095c=_0xb9e80();function _0x2ef64b(_0x4904f1){return!!_0x4904f1&&(typeof _0x4904f1===_0x76c1ec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4904f1===_0x76c1ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4904f1[_0x76c1ec([0x74,0x68,0x65,0x6e])]===_0x76c1ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4904f1[_0x76c1ec([0x63,0x61,0x74,0x63,0x68])]===_0x76c1ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24090d(_0x34af2b){_0x7fb535(_0x34af2b)[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x57fadf=>{if(!_0x57fadf||_0x57fadf[_0x76c1ec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x76c1ec([0x6f,0x6b]))return _0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17c61a(_0x3c1342(_0x29095c+_0x57db82))!=_0x57fadf[_0x76c1ec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x76c1ec([0x56,0x61,0x6c,0x69,0x64]);})[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0xfbe5b8=>(_0x2cde41(),_0xfbe5b8),()=>{const _0x58ee8e=_0x4812d7();return null==_0x58ee8e?(_0x2cde41(),_0x76c1ec([0x56,0x61,0x6c,0x69,0x64])):_0x76c1ec(_0xe1a5eb-_0x58ee8e>(0x138aac8c^_0x16d4dc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x196da9)[_0x76c1ec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x196da9(_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21434d=0x37b0c60c^_0x16d4dc;function _0x2cde41(){const _0x466b67=_0x76c1ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c61a(_0x3c1342(_0x4cbb4c)),_0x44a863=_0x716317(_0x17c61a(window[_0x76c1ec([0x4d,0x61,0x74,0x68])][_0x76c1ec([0x63,0x65,0x69,0x6c])](_0xe1a5eb/_0x21434d)));window[_0x76c1ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x76c1ec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x466b67,_0x44a863);}function _0x4812d7(){const _0x171dfe=_0x76c1ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c61a(_0x3c1342(_0x4cbb4c)),_0x3d623a=window[_0x76c1ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x76c1ec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171dfe);return _0x3d623a?window[_0x76c1ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x716317(_0x3d623a),0x10)*_0x21434d:null;}function _0x7fb535(_0x125608){return new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6d7710,_0x4ee1ea)=>{_0x125608[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x6d7710,_0x4ee1ea),window[_0x76c1ec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ee1ea,0x3787fc4c^_0x16d4dc);});}}_0xdb9936[_0x76c1ec([0x6f,0x6e])](_0x76c1ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f1a9e,_0xc52306)=>{if(_0xc52306[0x0]!=_0x4cbb4c)return _0x196da9(_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc52306[0x1]={..._0xc52306[0x1],[_0x76c1ec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29095c};},{[_0x76c1ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x76c1ec([0x68,0x69,0x67,0x68])}),_0xdb9936[_0x76c1ec([0x6f,0x6e])](_0x76c1ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x411424=>{_0x2ef64b(_0x411424[_0x76c1ec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14b644=!0x0,_0x24090d(_0x411424[_0x76c1ec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x76c1ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x76c1ec([0x6c,0x6f,0x77])}),_0x472c76[_0x76c1ec([0x74,0x68,0x65,0x6e])](()=>{_0x14b644||_0x196da9(_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f9fe3(){return _0xdb9936[_0x76c1ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x76c1ec([0x76,0x69,0x65,0x77])][_0x76c1ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x76c1ec([0x61,0x75,0x74,0x6f]);}function _0x17a7ae(){_0xdb9936[_0x76c1ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x76c1ec([0x76,0x69,0x65,0x77])][_0x76c1ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x76c1ec([0x61,0x75,0x74,0x6f]);}}function _0x4a2491(_0x210330){const _0x280b46=[new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d12ea=>setTimeout(_0x4d12ea,0x378f1640^_0x16d4dc)),_0x472c76[_0x76c1ec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe5ce37=>{let _0x3f8231=0x0;_0xdb9936[_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x76c1ec([0x6f,0x6e])](_0x76c1ec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25bd2b,_0x1a83f9)=>{_0x1a83f9[0x0][_0x76c1ec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f8231++,_0x3f8231==(0x37862974^_0x16d4dc)&&(_0xe5ce37(),_0x25bd2b[_0x76c1ec([0x6f,0x66,0x66])]());});}))];return window[_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x76c1ec([0x72,0x61,0x63,0x65])](_0x280b46)[_0x76c1ec([0x74,0x68,0x65,0x6e])](()=>_0x210330);}async function _0x40d6f3(){await _0x472c76,_0xdb9936[_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x76c1ec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x63c05b,_0xdb9936[_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x76c1ec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x63c05b,_0xdb9936[_0x76c1ec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x337dd3(){return _0x50eb6b(_0x76c1ec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x250daf(_0x76c1ec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x76c1ec([0x73,0x74,0x61,0x74,0x65])]==_0x76c1ec([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d666e(_0x578510){const _0x20d30e=_0x46bd5f();_0xdb9936[_0x20d30e]=_0x76c1ec([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x578510,_0x578510!=_0x76c1ec([0x56,0x61,0x6c,0x69,0x64])&&_0x40d6f3();}function _0x46bd5f(){const _0x496692=window[_0x76c1ec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x76c1ec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x76c1ec([0x6e,0x6f,0x77])]())[_0x76c1ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x76c1ec([0x2e]),'');let _0x13f39d=_0x76c1ec([0x6e]);for(let _0x4433cb=0x0;_0x4433cb<_0x496692[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4433cb+=0x2){let _0x1aab7c=window[_0x76c1ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x496692[_0x76c1ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4433cb,_0x4433cb+0x2));_0x1aab7c>=_0x2e7386[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aab7c-=_0x2e7386[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13f39d+=_0x2e7386[_0x1aab7c];}return _0x13f39d;}function _0x12651c(){const _0x4a2b3f=_0x4beee1[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e]));if(0x3!=_0x4a2b3f[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x311da8(_0x4a2b3f[0x1]);function _0x311da8(_0x36d873){const _0x7755c0=_0x1cc9db(_0x36d873);return _0x7755c0&&_0x11bff7()?_0x7755c0:null;function _0x11bff7(){const _0x309d90=_0x7755c0[_0x76c1ec([0x6a,0x74,0x69])],_0x4d28d4=window[_0x76c1ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309d90[_0x76c1ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309d90[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4451cd={..._0x7755c0,[_0x76c1ec([0x6a,0x74,0x69])]:_0x309d90[_0x76c1ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x309d90[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4451cd[_0x76c1ec([0x76,0x63])],_0x3c1342(_0x4451cd)==_0x4d28d4;}}}async function _0x578564(){let _0x2f7974=!0x0;try{const _0x500558=_0x4beee1[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e])),[_0x48369d,_0x406d29,_0x10aabe]=_0x500558;return _0x313e13(_0x48369d),await _0x23a4de(_0x48369d,_0x406d29,_0x10aabe),_0x2f7974;}catch(_0x7e900a){return!0x1;}function _0x313e13(_0x4eb5bc){const _0x280364=_0x1cc9db(_0x4eb5bc);_0x280364&&_0x280364[_0x76c1ec([0x61,0x6c,0x67])]==_0x76c1ec([0x45,0x53,0x32,0x35,0x36])||(_0x2f7974=!0x1);}async function _0x23a4de(_0x3a898f,_0x10c31d,_0x48566f){const _0x231278=window[_0x76c1ec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x76c1ec([0x66,0x72,0x6f,0x6d])](_0x15fa56(_0x48566f),_0x4252f0=>_0x4252f0[_0x76c1ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18b66a=new window[(_0x76c1ec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x76c1ec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a898f+_0x76c1ec([0x2e])+_0x10c31d),_0x250c82=window[_0x76c1ec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x76c1ec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x250c82)return;const _0x22dcee=await _0x250c82[_0x76c1ec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x76c1ec([0x6a,0x77,0x6b]),_0x1cc9ae,{[_0x76c1ec([0x6e,0x61,0x6d,0x65])]:_0x76c1ec([0x45,0x43,0x44,0x53,0x41]),[_0x76c1ec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x76c1ec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x76c1ec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x250c82[_0x76c1ec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x76c1ec([0x6e,0x61,0x6d,0x65])]:_0x76c1ec([0x45,0x43,0x44,0x53,0x41]),[_0x76c1ec([0x68,0x61,0x73,0x68])]:{[_0x76c1ec([0x6e,0x61,0x6d,0x65])]:_0x76c1ec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22dcee,_0x231278,_0x18b66a)||(_0x2f7974=!0x1);}}function _0x1cc9db(_0x56ab08){return _0x56ab08[_0x76c1ec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x76c1ec([0x65,0x79]))?JSON[_0x76c1ec([0x70,0x61,0x72,0x73,0x65])](_0x15fa56(_0x56ab08)):null;}function _0x15fa56(_0x1d39f8){return window[_0x76c1ec([0x61,0x74,0x6f,0x62])](_0x1d39f8[_0x76c1ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x76c1ec([0x2b]))[_0x76c1ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x76c1ec([0x2f])));}function _0x3c1342(_0x9b1ecd){let _0x24de80=0x1505;function _0x30223e(_0x12e6ef){for(let _0x123405=0x0;_0x123405<_0x12e6ef[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123405++){const _0x35ae9d=_0x12e6ef[_0x76c1ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x123405);_0x24de80=(_0x24de80<<0x5)+_0x24de80+_0x35ae9d,_0x24de80&=_0x24de80;}}function _0x47d368(_0x542072){Array[_0x76c1ec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x542072)?_0x542072[_0x76c1ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47d368):_0x542072&&typeof _0x542072==_0x76c1ec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x76c1ec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x542072)[_0x76c1ec([0x73,0x6f,0x72,0x74])]()[_0x76c1ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b5729,_0x481b67])=>{_0x30223e(_0x1b5729),_0x47d368(_0x481b67);}):_0x30223e(window[_0x76c1ec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x542072));}return _0x47d368(_0x9b1ecd),_0x24de80>>>0x0;}function _0x17c61a(_0x271e7d){return _0x271e7d[_0x76c1ec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x76c1ec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x76c1ec([0x30]));}function _0x716317(_0x518e10){return _0x518e10[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x76c1ec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x76c1ec([0x6a,0x6f,0x69,0x6e])]('');}function _0x50eb6b(_0x3a71e3){return _0xdb9936[_0x76c1ec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x76c1ec([0x68,0x61,0x73])](_0x3a71e3);}function _0x250daf(_0x2995bc){return _0xdb9936[_0x76c1ec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x76c1ec([0x67,0x65,0x74])](_0x2995bc);}function _0x63c05b(){}function _0x76c1ec(_0x7e69d5){return _0x7e69d5['map'](_0xfd7570=>String['fromCharCode'](_0xfd7570))['join']('');}_0x4d666e(await _0x33048f());}(this);}set['adapter'](_0xab7028){if(this['_adapter'])throw new _0x1ac58c('track-changes-adapter-already-set',this);this['_adapter']=_0xab7028;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1529ce=!0x1,toJSON:_0x5518f3=!0x1}={}){const _0x5ecfc4=[];for(const _0x52192a of this['_suggestions']['values']())_0x1529ce&&!_0x52192a['isInContent']||_0x5ecfc4['push'](_0x52192a);return _0x5518f3?_0x5ecfc4['map'](_0x57d02b=>_0x57d02b['toJSON']()):_0x5ecfc4;}['getSuggestion'](_0x3f32bc){const _0x12def5=this['_suggestions']['get'](_0x3f32bc);if(!_0x12def5)throw new _0x1ac58c('track-changes-suggestion-not-found',this);return _0x12def5;}['hasSuggestion'](_0xd0a9ab){return this['_suggestions']['has'](_0xd0a9ab);}['addSuggestionData'](_0x1cfd7c){const {authorId:_0x7a3535,id:_0x12db86,attributes:_0x41479c}=_0x1cfd7c,[_0x1049bc,_0xdb93e3]=_0x1cfd7c['type']['split'](':'),_0x3103eb=this['_suggestions']['get'](_0x12db86)||this['_createSuggestion'](_0x1049bc,_0xdb93e3,_0x12db86,_0x7a3535,_0x41479c);if(this['_addThreadToSuggestion'](_0x3103eb),this['_checkSuggestionCorrectness'](_0x3103eb,_0x1049bc,_0xdb93e3||null,_0x7a3535),_0x3103eb['createdAt']=_0x1cfd7c['createdAt'],_0x3103eb['_isDataLoaded']=!0x0,_0x41479c&&_0x41479c['@external']){const _0x353cde=_0x41479c['@external'],_0x3464ea=this['_getExternalAuthor'](_0x353cde['authorName']);_0x3103eb['authoredAt']=_0x353cde['createdAt'],_0x3103eb['author']=_0x3464ea,_0x3103eb['isExternal']=!0x0;}else _0x3103eb['authoredAt']=_0x1cfd7c['createdAt'];switch(_0x1cfd7c['data']&&(_0x3103eb['data']=_0x1cfd7c['data']),_0x1cfd7c['attributes']&&(_0x3103eb['attributes']=_0x1cfd7c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3103eb['_saved']=!0x0),this['_suggestionState']['get'](_0x3103eb)){case'notReady':this['_suggestionState']['set'](_0x3103eb,'dataReady');break;case'markerReady':_0x3103eb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3103eb])),this['_refreshSuggestionsChain'](new Set([_0x3103eb])),this['_suggestionState']['set'](_0x3103eb,'ready'),this['fire']('suggestionLoaded',_0x3103eb)):this['_suggestionState']['set'](_0x3103eb,'removed');}return _0x3103eb;}['acceptSuggestion'](_0x120d15){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58762e of _0x120d15['getAllAdjacentSuggestions']())_0x58762e['accept']();});});}['discardSuggestion'](_0x3a16f9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16cc9e of _0x3a16f9['getAllAdjacentSuggestions']())_0x16cc9e['discard']();});});}['enableCommand'](_0x1b130e,_0x11d776){const _0x3bd327=this['editor']['commands']['get'](_0x1b130e);if(!_0x3bd327)throw new _0x1ac58c('track-changes-command-not-found',this,{'commandName':_0x1b130e});if(this['_enabledCommands']['has'](_0x3bd327))throw new _0x1ac58c('track-changes-enable-command-twice',this,{'commandName':_0x1b130e});this['_enabledCommands']['add'](_0x3bd327),_0x11d776&&_0x3bd327['on']('execute',(_0x518cd4,_0x8ad2a3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x8ad2a3['length']>0x0&&_0x8ad2a3[_0x8ad2a3['length']-0x1]&&_0x8ad2a3[_0x8ad2a3['length']-0x1]['forceDefaultExecution']?_0x8ad2a3['pop']():(_0x518cd4['return']=_0x11d776((..._0xec6a43)=>_0x3bd327['execute'](..._0xec6a43,{'forceDefaultExecution':!0x0}),..._0x8ad2a3),_0x518cd4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a36b6){let _0x586619,_0x4d34ba;const _0x965703=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x586619=_0x4a36b6();}catch(_0x21d1b7){_0x4d34ba=_0x21d1b7;}return _0x965703||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4d34ba&&_0x1ac58c['rethrowUnexpectedError'](_0x4d34ba,this),_0x586619;}['markInsertion'](_0x1441ed,_0x5e94f9=null,_0x55557a={}){if(_0x1441ed['isCollapsed'])return null;const _0x286975=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x109c3b,meta:_0x1d2c16}of this['_findSuggestions'](_0x1441ed,'insertion'))if(_0x1d2c16['isOwn']){if(!_0x1d2c16['isNextTo']){if(_0x1d2c16['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x109c3b,_0x55557a))continue;return _0x109c3b;}if(zt(_0x109c3b,_0x55557a))return _0x109c3b;this['_breakSuggestionMarker'](_0x109c3b,_0x1441ed['start'],_0x1441ed['end']);break;}if(_0x5e94f9==_0x109c3b['subType']&&zt(_0x109c3b,_0x55557a)){const _0x2a1967=_0x109c3b['getFirstRange']();return _0x2a1967['start']['isEqual'](_0x1441ed['end'])?this['_setSuggestionRange'](_0x109c3b,this['_model']['createRange'](_0x1441ed['start'],_0x2a1967['end'])):this['_setSuggestionRange'](_0x109c3b,this['_model']['createRange'](_0x2a1967['start'],_0x1441ed['end'])),_0x109c3b;}}const _0x11f172=_0xb9e80(),_0xb4b92d=_0x286975['id'],_0x19530a=_0x5e94f9?'insertion:'+_0x5e94f9:'insertion',_0x17d097=this['_setSuggestionData']({'id':_0x11f172,'type':_0x19530a,'createdAt':new Date(),'authorId':_0xb4b92d,'attributes':_0x55557a});return this['_addSuggestionMarker'](_0x19530a,_0x11f172,_0xb4b92d,_0x1441ed),_0x17d097;}['markMultiRangeInsertion'](_0x3fb594,_0x4a70d8='multi',_0x6bc1c9={}){const _0x8b723c=this['editor']['plugins']['get']('Users')['me'],_0x2929c7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4a70d8,'join');for(const _0x37fca3 of this['getSuggestions']())if(_0x37fca3['author']['id']==_0x8b723c['id']&&'insertion'==_0x37fca3['type']&&_0x37fca3['subType']==_0x4a70d8&&zt(_0x37fca3,_0x6bc1c9)&&(_0x2929c7(_0x37fca3['getRanges'](),_0x3fb594)||_0x2929c7(_0x3fb594,_0x37fca3['getRanges']()))){for(const _0x42a639 of _0x3fb594)_0x37fca3['addRange'](_0x42a639);return _0x37fca3;}for(const {suggestion:_0xe04321,meta:_0x17489e}of this['_findSuggestions'](_0x3fb594,'insertion')){if(!_0x17489e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x17489e['containsRangeInObject'])continue;if(!zt(_0xe04321,_0x6bc1c9))continue;let _0x26d4d0=!0x0;for(const _0xbfec45 of _0xe04321['getRanges']())for(const _0x228f44 of _0x3fb594)if(!_0xbfec45['containsRange'](_0x228f44)){_0x26d4d0=!0x1;break;}if(_0x26d4d0)return _0xe04321;}const _0x554758=_0xb9e80(),_0x247888=_0x8b723c['id'],_0x46cc21='insertion:'+_0x4a70d8,_0x2ac967=this['_setSuggestionData']({'id':_0x554758,'type':_0x46cc21,'createdAt':new Date(),'authorId':_0x247888,'attributes':_0x6bc1c9});for(const _0x1e8e2f of _0x3fb594)this['_addSuggestionMarker'](_0x46cc21,_0x554758,_0x247888,_0x1e8e2f,u['getMultiRangeId']());return _0x2ac967;}['markInlineFormat'](_0x4dd38e,_0x2b2f9a,_0x460fdc=null,_0x5be923={}){if(_0x460fdc=_0x460fdc||Gt(_0x2b2f9a),_0x4dd38e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5c0e79=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460fdc,'accept');return this['forceDefaultExecution'](()=>_0x5c0e79([_0x4dd38e],_0x2b2f9a,_0x5be923)),null;}const _0x442f74=this['editor']['plugins']['get']('Users')['me'],_0x331812=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5bc958,meta:_0xe9c38a}of this['_findSuggestions'](_0x4dd38e,'insertion'))_0xe9c38a['isOwn']&&!_0xe9c38a['isInsideObject']&&_0x331812['push'](..._0x5bc958['getRanges']());}const _0xe3379e=function(_0x3495d0,_0x5bb00d){const _0x34331f=[];for(const _0x545bd4 of _0x5bb00d){const _0x464ced=_0x3495d0['getIntersection'](_0x545bd4);_0x464ced&&_0x34331f['push'](_0x464ced);}return _0x34331f;}(_0x4dd38e,_0x331812),_0x3a7969=function(_0x16db2d,_0x137e97){const _0x456ec3=[_0x16db2d];for(const _0x8f2b76 of _0x137e97){let _0x146fa0=0x0;for(;_0x146fa0<_0x456ec3['length'];){const _0x35e29c=_0x456ec3[_0x146fa0]['getDifference'](_0x8f2b76);_0x456ec3['splice'](_0x146fa0,0x1,..._0x35e29c),_0x146fa0+=_0x35e29c['length'];}}return _0x456ec3;}(_0x4dd38e,_0x331812);_0xe3379e['length']&&this['_model']['change'](()=>{for(const _0x151c94 of _0xe3379e){const _0x5d20cf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460fdc,'accept');this['forceDefaultExecution'](()=>_0x5d20cf([_0x151c94],_0x2b2f9a,_0x5be923));}});for(const _0x4ce756 of _0x3a7969){let _0x4aaadf=null,_0xf3c447=_0x4ce756['start'],_0xf60c3=_0x4ce756['end'];for(const {suggestion:_0x203789,meta:_0x10bf06}of this['_findSuggestions'](_0x4ce756,'formatInline')){if(!_0x10bf06['isOwn'])continue;if(_0x203789['subType']!=_0x460fdc)continue;if(!zt(_0x203789,_0x5be923))continue;const _0x1865a4=_0x203789['getFirstRange']();if(_0x1865a4['containsRange'](_0x4ce756,!0x0))return null;_0xf3c447=_0xf3c447['isBefore'](_0x1865a4['start'])?_0xf3c447:_0x1865a4['start'],_0xf60c3=_0xf60c3['isAfter'](_0x1865a4['end'])?_0xf60c3:_0x1865a4['end'],_0x4aaadf?_0x1865a4['start']['isBefore'](_0x4aaadf['getFirstRange']()['start'])?(_0x4aaadf['removeMarkers'](),_0x4aaadf=_0x203789):_0x203789['removeMarkers']():_0x4aaadf=_0x203789;}const _0xd77b32=this['_model']['createRange'](_0xf3c447,_0xf60c3);if(_0x4aaadf)this['_setSuggestionRange'](_0x4aaadf,_0xd77b32);else{const _0x33fab6=_0xb9e80(),_0x581a80=_0x442f74['id'];this['_setSuggestionData']({'id':_0x33fab6,'type':'formatInline:'+_0x460fdc,'data':_0x2b2f9a,'createdAt':new Date(),'authorId':_0x581a80,'attributes':_0x5be923}),this['_addSuggestionMarker']('formatInline:'+_0x460fdc,_0x33fab6,_0x581a80,_0xd77b32);}}return null;}['markBlockFormat'](_0x3991ef,_0x267560,_0x3e220d=[],_0x146442=null,_0x94b190={}){_0x267560['formatGroupId']||(_0x267560['formatGroupId']=_0x267560['commandName']),_0x267560['multipleBlocks']=_0x3991ef['is']('range'),_0x146442=_0x146442||Gt(_0x267560);const _0x152d3d=_0x3e220d['map'](_0x711904=>Jt(_0x711904,this['_model'])),_0x10e788=_0x3991ef['is']('range')?_0x3991ef:Jt(_0x3991ef,this['_model']);if('never'===this['_trackFormatChanges']){const _0x260288=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x146442,'accept');return this['forceDefaultExecution'](()=>_0x260288([_0x10e788],_0x267560,_0x94b190)),null;}_0x152d3d['push'](_0x10e788);let _0x568074=!0x0;for(const _0x494ef1 of _0x152d3d)if(!this['_rangeIsInLocalUserInsertion'](_0x494ef1)){_0x568074=!0x1;break;}if(_0x568074&&'always'!==this['_trackFormatChanges']){const _0x4ed6f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x146442,'accept');return this['forceDefaultExecution'](()=>_0x4ed6f2([_0x10e788],_0x267560,_0x94b190)),null;}let _0xe8be4f=null,_0x45cee4=_0x10e788['start'],_0x51c95b=_0x10e788['end'];for(const {suggestion:_0x1fe0a1,meta:_0x5b09e9}of this['_findSuggestions'](_0x10e788,'formatBlock')){if(!_0x5b09e9['isOwn'])continue;if(_0x5b09e9['isNextTo']||_0x5b09e9['containsRangeInObject']||_0x5b09e9['isInsideObject'])continue;if(_0x1fe0a1['data']['formatGroupId']!=_0x267560['formatGroupId'])continue;if(!zt(_0x1fe0a1,_0x94b190))continue;const _0x23efb0=_0x1fe0a1['getFirstRange']();if(_0x1fe0a1['subType']==_0x146442){if(_0x23efb0['containsRange'](_0x10e788,!0x0))return null;_0x45cee4=_0x45cee4['isBefore'](_0x23efb0['start'])?_0x45cee4:_0x23efb0['start'],_0x51c95b=_0x51c95b['isAfter'](_0x23efb0['end'])?_0x51c95b:_0x23efb0['end'],_0xe8be4f?_0x23efb0['start']['isBefore'](_0xe8be4f['getFirstRange']()['start'])?(_0xe8be4f['removeMarkers'](),_0xe8be4f=_0x1fe0a1):_0x1fe0a1['removeMarkers']():_0xe8be4f=_0x1fe0a1;}else{const _0x947ced=_0x10e788['getIntersection'](_0x23efb0);this['_cutOutSuggestionMarker'](_0x1fe0a1,_0x947ced);}}const _0xc16e5d=this['editor']['plugins']['get']('Users')['me'],_0x31a7e6=_0xb9e80(),_0x3c65a3=_0xc16e5d['id'];if(_0xe8be4f)return this['_setSuggestionRange'](_0xe8be4f,this['_model']['createRange'](_0x45cee4,_0x51c95b)),_0xe8be4f;{const _0x5d1f56=this['_setSuggestionData']({'id':_0x31a7e6,'type':'formatBlock:'+_0x146442,'data':_0x267560,'createdAt':new Date(),'authorId':_0x3c65a3,'attributes':_0x94b190});return this['_addSuggestionMarker']('formatBlock:'+_0x146442,_0x31a7e6,_0x3c65a3,this['_model']['createRange'](_0x45cee4,_0x51c95b)),_0x5d1f56;}}['markMultiRangeBlockFormat'](_0x36d445,_0x36dd11,_0x43ac73=[],_0x56a57c=null,_0x52f760={}){_0x36dd11['formatGroupId']||(_0x36dd11['formatGroupId']=_0x36dd11['commandName']);const _0x86122e=_0x36d445[0x0];_0x36dd11['multipleBlocks']=_0x86122e['is']('range'),_0x56a57c=_0x56a57c||Gt(_0x36dd11);const _0x54e27d=_0x43ac73['map'](_0x33fe34=>Jt(_0x33fe34,this['_model'])),_0x69c33f=_0x86122e['is']('range')?_0x36d445:_0x36d445['map'](_0x5151ab=>Jt(_0x5151ab,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2e4a0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56a57c,'accept');return this['forceDefaultExecution'](()=>_0x2e4a0d(_0x69c33f,_0x36dd11,_0x52f760)),null;}_0x54e27d['push'](..._0x69c33f);let _0x527fd3=!0x0;for(const _0x43427f of _0x54e27d)if(!this['_rangeIsInLocalUserInsertion'](_0x43427f)){_0x527fd3=!0x1;break;}if(_0x527fd3&&'always'!==this['_trackFormatChanges']){const _0x3913b7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56a57c,'accept');return this['forceDefaultExecution'](()=>_0x3913b7(_0x69c33f,_0x36dd11,_0x52f760)),null;}const _0x5ca16c=this['editor']['plugins']['get']('Users')['me'];for(const _0x202ea9 of this['getSuggestions']()){if(_0x202ea9['author']['id']!=_0x5ca16c['id'])continue;if('formatBlock'!=_0x202ea9['type']||_0x202ea9['data']['formatGroupId']!=_0x36dd11['formatGroupId'])continue;if(!zt(_0x202ea9,_0x52f760))continue;const _0x6cc88a=_0x202ea9['subType']==_0x56a57c;for(let _0x3dcddb=0x0;_0x3dcddb<_0x69c33f['length'];_0x3dcddb++){const _0x4c0bdf=_0x69c33f[_0x3dcddb];for(const _0x5f1cf4 of _0x202ea9['getMarkers']()){const _0x5251b2=_0x5f1cf4['getRange']();if(_0x4c0bdf['isEqual'](_0x5251b2)){_0x6cc88a?(_0x69c33f['splice'](_0x3dcddb,0x1),_0x3dcddb--):_0x202ea9['removeMarker'](_0x5f1cf4['name']);break;}}}}if(0x0==_0x69c33f['length'])return null;const _0x3b5557=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56a57c,'join');for(const _0x5530a5 of this['getSuggestions']())if(_0x5530a5['author']['id']==_0x5ca16c['id']&&'formatBlock'==_0x5530a5['type']&&_0x5530a5['data']['formatGroupId']==_0x36dd11['formatGroupId']&&_0x5530a5['subType']==_0x56a57c&&zt(_0x5530a5,_0x52f760)&&(_0x3b5557(_0x5530a5['getRanges'](),_0x69c33f)||_0x3b5557(_0x69c33f,_0x5530a5['getRanges']()))){for(const _0x1b359d of _0x69c33f)_0x5530a5['addRange'](_0x1b359d);return _0x5530a5;}const _0x48e440=_0xb9e80(),_0x1caa83=_0x5ca16c['id'],_0x50dfd5='formatBlock:'+_0x56a57c,_0x473e68=this['_setSuggestionData']({'id':_0x48e440,'type':_0x50dfd5,'data':_0x36dd11,'createdAt':new Date(),'authorId':_0x1caa83,'attributes':_0x52f760});for(const _0x4baf13 of _0x69c33f)this['_addSuggestionMarker'](_0x50dfd5,_0x48e440,_0x1caa83,_0x4baf13,u['getMultiRangeId']());return _0x473e68;}['markDeletion'](_0x46ce34,_0x2bdab5=null,_0x1f8d99={}){if(_0x46ce34['isCollapsed'])return null;const _0x2484aa=this['editor']['plugins']['get']('Users')['me'],_0x2d28aa=new _0x582953(_0x46ce34['start'],_0x46ce34['end']);for(const {suggestion:_0x1cbd71,meta:_0x10100f}of this['_findSuggestions'](_0x2d28aa,'insertion'))if(_0x10100f['isOwn']&&!_0x10100f['isNextTo']){if(_0x1cbd71['isMultiRange']){const _0x4e5dd7=_0x1cbd71['getRanges']()['filter'](_0x3fa537=>'$graveyard'!=_0x3fa537['root']['rootName']);_0x4e5dd7['every'](_0xac9295=>_0x2d28aa['containsRange'](_0xac9295,!0x0))&&_0x1cbd71['discard']();if(_0x4e5dd7['some'](_0x4dbc58=>_0x4dbc58['containsRange'](_0x2d28aa,!0x0))){const _0x1456c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bdab5,'accept');return this['forceDefaultExecution'](()=>_0x1456c3([_0x2d28aa],null,_0x1f8d99)),null;}}else{const _0xbe4650=_0x2d28aa['getIntersection'](_0x1cbd71['getFirstRange']());null!==_0xbe4650&&_0x1cbd71['_onDiscard']([_0xbe4650],null,_0x1f8d99);}}if(_0x2d28aa['detach'](),_0x2d28aa['isCollapsed']||'$graveyard'==_0x2d28aa['root']['rootName'])return null;let _0x55cff1=null,_0x44e1c5=_0x2d28aa['start'],_0x27eb52=_0x2d28aa['end'];const _0x1f8b43=this['_findSuggestions'](_0x2d28aa,'deletion');for(const {suggestion:_0x138a40,meta:_0xe12380}of _0x1f8b43){const _0x46143c=this['_model']['createRange'](_0x44e1c5,_0x27eb52);if(_0xe12380['isOwn']&&(this['_mergeNestedSuggestions']||!_0xe12380['containsRangeInObject']&&!_0xe12380['isInsideObject'])){if(_0x138a40['isMultiRange']){if(!zt(_0x138a40,_0x1f8d99))continue;let _0x3872eb=!0x0;for(const _0x6d85e7 of _0x138a40['getRanges']()){if(_0x6d85e7['containsRange'](_0x46143c,!0x0))return _0x138a40;_0x46143c['containsRange'](_0x6d85e7)||(_0x3872eb=!0x1);}_0x3872eb&&_0x138a40['discard']();}else{const _0x3629c0=_0x138a40['getFirstRange']();if(_0x3629c0['containsRange'](_0x46143c,!0x0))return _0x138a40;if(!zt(_0x138a40,_0x1f8d99)){_0x46143c['containsRange'](_0x3629c0)?_0x138a40['removeMarkers']():_0x3629c0['containsPosition'](_0x44e1c5)?_0x44e1c5=_0x3629c0['end']:_0x3629c0['containsPosition'](_0x27eb52)&&(_0x27eb52=_0x3629c0['start']);continue;}_0x44e1c5=_0x44e1c5['isBefore'](_0x3629c0['start'])?_0x44e1c5:_0x3629c0['start'],_0x27eb52=_0x27eb52['isAfter'](_0x3629c0['end'])?_0x27eb52:_0x3629c0['end'],_0x1f8d99=Object['assign']({},_0x138a40['attributes']),_0x55cff1?_0x3629c0['start']['isBefore'](_0x55cff1['getFirstRange']()['start'])?(_0x55cff1['removeMarkers'](),_0x55cff1=_0x138a40):_0x138a40['removeMarkers']():_0x55cff1=_0x138a40;}}}if(_0x55cff1)return this['_setSuggestionRange'](_0x55cff1,this['_model']['createRange'](_0x44e1c5,_0x27eb52)),_0x55cff1;{const _0x5e5b18=_0xb9e80(),_0x2d2693=this['_model']['createRange'](_0x44e1c5,_0x27eb52),_0x3aabb4=_0x2484aa['id'],_0x7b100b=_0x2bdab5?'deletion:'+_0x2bdab5:'deletion',_0xc4a1d9=this['_setSuggestionData']({'id':_0x5e5b18,'type':_0x7b100b,'createdAt':new Date(),'authorId':_0x3aabb4,'attributes':_0x1f8d99});return this['_addSuggestionMarker'](_0x7b100b,_0x5e5b18,_0x3aabb4,_0x2d2693),_0xc4a1d9;}}['markMultiRangeDeletion'](_0x4cd747,_0x515909='multi',_0x2f3904={}){const _0x3d0cb6=this['editor']['plugins']['get']('Users')['me'],_0x45c6ac=_0x4cd747['map'](_0x15e2b3=>new _0x582953(_0x15e2b3['start'],_0x15e2b3['end'])),_0x1bce74=new Set();for(const {suggestion:_0x4c0aa6,meta:_0x490027}of this['_findSuggestions'](_0x45c6ac,'insertion'))_0x490027['isOwn']&&!_0x490027['isNextTo']&&_0x1bce74['add'](_0x4c0aa6);for(const _0x25129d of _0x1bce74)if(_0x25129d['isMultiRange']){const _0x1d0cf0=_0x25129d['getRanges']();(!_0x25129d['attributes']||!_0x25129d['attributes']['skipNestingCheck'])&&(_0x1d0cf0['every'](_0x1e4e5a=>_0x45c6ac['some'](_0xcb209f=>_0xcb209f['containsRange'](_0x1e4e5a,!0x0)))&&_0x25129d['discard']());if(_0x45c6ac['every'](_0x1de499=>_0x1d0cf0['some'](_0xdf9ade=>_0xdf9ade['containsRange'](_0x1de499,!0x0)))){const _0x46e58f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515909,'accept');return this['forceDefaultExecution'](()=>_0x46e58f(_0x4cd747,null,_0x2f3904)),null;}}else{const _0x8c5376=_0x25129d['getFirstRange']();_0x45c6ac['some'](_0x7ac22b=>_0x7ac22b['containsRange'](_0x8c5376,!0x0))&&_0x25129d['discard']();if(_0x45c6ac['every'](_0xada043=>_0x8c5376['containsRange'](_0xada043,!0x0))){const _0x578bd0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515909,'accept');return this['forceDefaultExecution'](()=>_0x578bd0(_0x45c6ac,null,_0x2f3904)),null;}}const _0x3223cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515909,'join');let _0x4ef038=null;for(const _0x2e0808 of this['getSuggestions']())if(_0x2e0808['author']['id']==_0x3d0cb6['id']&&_0x2e0808['isInContent']&&'deletion'==_0x2e0808['type']&&_0x2e0808['subType']==_0x515909&&zt(_0x2e0808,_0x2f3904)&&(_0x3223cd(_0x2e0808['getRanges'](),_0x45c6ac)||_0x3223cd(_0x45c6ac,_0x2e0808['getRanges']()))){if(_0x4ef038){if(_0x2e0808['commentThread']&&_0x2e0808['commentThread']['length'])continue;for(const _0x467a42 of _0x2e0808['getRanges']())_0x4ef038['isIntersectingWithRange'](_0x467a42)||_0x4ef038['addRange'](_0x467a42);_0x2e0808['removeMarkers']();}else{_0x4ef038=_0x2e0808;for(const _0x4fed6b of _0x45c6ac)_0x2e0808['isIntersectingWithRange'](_0x4fed6b)||_0x2e0808['addRange'](_0x4fed6b);}}if(_0x4ef038)return _0x4ef038;_0x1bce74['clear']();for(const {suggestion:_0x9eee91,meta:_0xad0d3b}of this['_findSuggestions'](_0x45c6ac,'deletion'))_0xad0d3b['isOwn']&&(this['_mergeNestedSuggestions']||!_0xad0d3b['containsRangeInObject']&&!_0xad0d3b['isInsideObject'])&&zt(_0x9eee91,_0x2f3904)&&_0x1bce74['add'](_0x9eee91);for(const _0x1c590b of _0x1bce74){const _0x5e19dc=_0x1c590b['getRanges']();if(!_0x2f3904||!_0x2f3904['skipNestingCheck']){if(_0x45c6ac['every'](_0x40c083=>_0x5e19dc['some'](_0x48506e=>_0x48506e['containsRange'](_0x40c083,!0x0))))return _0x1c590b;}(!_0x1c590b['attributes']||!_0x1c590b['attributes']['skipNestingCheck'])&&(_0x5e19dc['every'](_0x187e47=>_0x45c6ac['some'](_0x1636ce=>_0x1636ce['containsRange'](_0x187e47,!0x0)))&&_0x1c590b['discard']());}const _0x1ca76a=_0xb9e80(),_0x1e49c4=_0x3d0cb6['id'],_0x39f73b='deletion:'+_0x515909,_0x120f6e=this['_setSuggestionData']({'id':_0x1ca76a,'type':_0x39f73b,'createdAt':new Date(),'authorId':_0x1e49c4,'attributes':_0x2f3904});for(const _0x187726 of _0x45c6ac)_0x187726['detach'](),_0x187726['isCollapsed']||'$graveyard'==_0x187726['root']['rootName']||this['_addSuggestionMarker'](_0x39f73b,_0x1ca76a,_0x1e49c4,_0x187726,u['getMultiRangeId']());return _0x120f6e;}['markAttributeChange'](_0x262594,_0x1aa7be,_0x14ddc9,_0x240751,_0x27bbae){if(_0x262594['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8445f4=this['editor']['plugins']['get']('Users')['me']['id'],_0x12109e=Array['from'](this['_suggestions']['values']())['filter'](_0x1e94fe=>'attribute'==_0x1e94fe['type']&&_0x1e94fe['data']['key']==_0x1aa7be&&_0x1e94fe['isIntersectingWithRange'](_0x262594));if('default'===this['_trackFormatChanges']){const _0xbfb22b=this['_findSuggestions'](_0x262594,'insertion')['filter'](({meta:_0x221cf0})=>_0x221cf0['isOwn']&&!_0x221cf0['isInsideObject']&&!_0x221cf0['isNextTo'])['map'](({suggestion:_0x2d1fa9})=>_0x2d1fa9);_0x12109e['unshift'](..._0xbfb22b);}const _0x4e519e=new Map([[_0x262594,_0x14ddc9]]);for(const _0x38919d of _0x12109e){const _0x5cd32c='attribute'==_0x38919d['type']?_0x38919d['data']['oldValue']:void 0x0,_0x31bcce=_0x38919d['getFirstRange'](),_0x1bdcdc=Array['from'](_0x4e519e['keys']())['find'](_0x53997a=>_0x53997a['isIntersecting'](_0x31bcce));if(!_0x1bdcdc)continue;const _0x3a98c5=_0x1bdcdc['getDifference'](_0x31bcce);this['_isBlockAttribute'](_0x1aa7be)&&'insertion'==_0x38919d['type']&&0x0!=_0x3a98c5['length']||(_0x4e519e['delete'](_0x1bdcdc),_0x3a98c5['forEach'](_0xb4b9f1=>{_0x4e519e['set'](_0xb4b9f1,_0x14ddc9);}),'insertion'!=_0x38919d['type']&&_0x5cd32c!=_0x240751&&_0x4e519e['set'](_0x1bdcdc['getIntersection'](_0x31bcce),_0x5cd32c));}const _0x38eef5=[];for(const [_0x46ad88,_0x532ecd]of _0x4e519e){const _0x207374=_0xb9e80(),_0x15d88a={'key':_0x1aa7be,'oldValue':_0x532ecd,'newValue':_0x240751};_0x1aa7be['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':_0x1aa7be});const _0x292199=('attribute:'+(_0x1aa7be+'|'+Gt({'newValue':_0x240751})))['substring'](0x0,0x3c),_0x2fe88e=this['_setSuggestionData']({'id':_0x207374,'type':_0x292199,'data':_0x15d88a,'createdAt':new Date(),'authorId':_0x8445f4,'attributes':_0x27bbae});_0x38eef5['push'](_0x2fe88e),this['_addSuggestionMarker'](_0x292199,_0x207374,_0x8445f4,_0x46ad88);}return _0x38eef5;}['enableDefaultAttributesIntegration'](_0x2751ea){this['enableCommand'](_0x2751ea,(_0xbc7a12,..._0xbe6a29)=>{this['_recordAttributeChanges'](()=>{_0xbc7a12(..._0xbe6a29);});});}['registerBlockAttribute'](_0x58dc27){this['_blockAttributeKeys']['add'](_0x58dc27);}['registerInlineAttribute'](_0x25a79e){this['_inlineAttributeKeys']['add'](_0x25a79e);}['_getAttributeKey'](_0x85a089){return'attribute'==_0x85a089['type']?_0x85a089['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2f7f01,_0x23f4f3){const _0x4e3ebb=_0x2f7f01['getFirstMarker']();this['_model']['change'](_0x114818=>{_0x114818['updateMarker'](_0x4e3ebb,{'range':_0x23f4f3});});}['_addThreadToSuggestion'](_0x10caf4){const _0x1ac476=_0x10caf4['id'],_0x22ec79=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1ac476)||this['_commentsRepository']['addCommentThread']({'channelId':_0x22ec79,'threadId':_0x1ac476,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c9b7c=this['_commentsRepository']['getCommentThread'](_0x1ac476);_0x5c9b7c['unbind']('isRemovable'),_0x5c9b7c['isRemovable']=!0x1,_0x10caf4['commentThread']=_0x5c9b7c;}['_checkSuggestionCorrectness'](_0x139ba2,_0x4950ab,_0x2e6ee2,_0xf58cca){if(_0x139ba2['type']!=_0x4950ab||_0x139ba2['subType']!=_0x2e6ee2||_0x139ba2['creator']['id']!=_0xf58cca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ac58c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a3365,_0xca2416){const _0x113b38=_0x1a3365['getFirstRange']();if(_0xca2416['isEqual'](_0x113b38))_0x1a3365['removeMarkers']();else{if(_0x113b38['containsRange'](_0xca2416)){const _0x103d37=this['_model']['createPositionAt'](_0xca2416['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a3365,this['_model']['createRange'](_0x113b38['start'],_0x103d37));const _0x5009b1=_0xb9e80(),_0x5ddfcc=_0x1a3365['creator']['id'],_0x13548f=_0x1a3365['type']+':'+_0x1a3365['subType'];this['_setSuggestionData']({'id':_0x5009b1,'type':_0x13548f,'createdAt':new Date(),'authorId':_0x5ddfcc,'data':_0x1a3365['data'],'attributes':_0x1a3365['attributes']});const _0x45cd32=this['_model']['createPositionAt'](_0xca2416['end']['parent'],'after'),_0x30deed=this['_model']['createRange'](_0x45cd32,_0x113b38['end']);this['_addSuggestionMarker'](_0x13548f,_0x5009b1,_0x5ddfcc,_0x30deed);}else{if(_0x113b38['containsPosition'](_0xca2416['start'])){const _0x458a5d=this['_model']['createPositionAt'](_0xca2416['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a3365,this['_model']['createRange'](_0x113b38['start'],_0x458a5d));}else{const _0x306e8d=this['_model']['createPositionAt'](_0xca2416['end']['parent'],'after');this['_setSuggestionRange'](_0x1a3365,this['_model']['createRange'](_0x306e8d,_0x113b38['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x6da2d3){for(const {suggestion:_0x4a60c4,meta:_0x1c4a29}of this['_findSuggestions'](_0x6da2d3,'insertion')){if(!_0x1c4a29['isOwn'])continue;const _0x54ed9a=_0x4a60c4['getRanges']();for(const _0x3a819e of _0x54ed9a)if(!_0x6da2d3['getDifference'](_0x3a819e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x190f0b){const _0xed6c00=this['editor']['plugins']['get']('Users')['getUser'](_0x190f0b);if(!_0xed6c00)throw new _0x1ac58c('track-changes-user-not-found',this);return _0xed6c00;}['_getExternalAuthor'](_0x49a0db){const _0x90cf67=this['editor']['plugins']['get']('Users'),_0x23a824=_0x3d1978('external:'+_0x49a0db),_0x22170b=_0x90cf67['getUser'](_0x23a824);return _0x22170b||_0x90cf67['addUser']({'id':_0x23a824,'name':_0x49a0db});}['_createSuggestion'](_0x323883,_0x354952,_0x28c231,_0x233cf5,_0x431707){const _0x4ff951=this['_getAuthorFromId'](_0x233cf5),_0x4de63e=this['_suggestionFactory']['buildSuggestion'](_0x323883,_0x354952,_0x28c231,_0x4ff951,_0x431707,_0x3cadae=>{this['_updateSuggestionData'](_0x28c231,{'attributes':_0x3cadae});const _0x111f60=this['getSuggestion'](_0x28c231);this['_joinWithAdjacentSuggestions'](new Set([_0x111f60])),this['_refreshSuggestionsChain'](new Set([_0x111f60]));});return this['listenTo'](_0x4de63e,'accept',()=>{this['_updateSuggestionData'](_0x28c231,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4de63e,'discard',()=>{this['_updateSuggestionData'](_0x28c231,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x28c231,_0x4de63e),this['_suggestionState']['set'](_0x4de63e,'notReady'),_0x4de63e;}['_splitMarkerName'](_0x38a47f){const _0x149e96=_0x38a47f['split'](':');return{'group':_0x149e96[0x0],'type':_0x149e96[0x1],'subType':_0x149e96['length']>=0x5?_0x149e96[0x2]:null,'id':_0x149e96['length']<0x5?_0x149e96[0x2]:_0x149e96[0x3],'authorId':_0x149e96['length']<0x5?_0x149e96[0x3]:_0x149e96[0x4],'markerCount':0x6==_0x149e96['length']?_0x149e96[0x5]:null};}['_breakSuggestionMarker'](_0x127d8e,_0x2b44ce,_0x2e7243){const _0x118536=_0x127d8e['getFirstRange'](),_0x4b891b=_0x118536['start'],_0x2ded0b=_0x118536['end'];this['_setSuggestionRange'](_0x127d8e,this['_model']['createRange'](_0x4b891b,_0x2b44ce));const _0x2f550f=_0xb9e80(),_0x19cd06=_0x127d8e['creator']['id'],_0x38c0a2=_0x127d8e['type']+(_0x127d8e['subType']?':'+_0x127d8e['subType']:'');this['_setSuggestionData']({'id':_0x2f550f,'type':_0x38c0a2,'createdAt':new Date(),'authorId':_0x19cd06,'originalSuggestionId':_0x127d8e['id'],'attributes':_0x127d8e['attributes'],'data':_0x127d8e['data']});const _0x3dea7b=this['_getAttributeKey'](_0x127d8e);('formatBlock'==_0x127d8e['type']||_0x3dea7b&&this['_isBlockAttribute'](_0x3dea7b))&&(_0x2e7243=this['_model']['createPositionBefore'](_0x2e7243['parent'])),this['_addSuggestionMarker'](_0x38c0a2,_0x2f550f,_0x19cd06,this['_model']['createRange'](_0x2e7243,_0x2ded0b));}['_findSuggestions'](_0x531294,_0x261ed8=null){const _0x2ec77f=[],_0x52d728=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x531294)||(_0x531294=[_0x531294]);for(const _0x22137b of this['getSuggestions']()){if(!_0x22137b['isInContent'])continue;if(_0x261ed8&&_0x22137b['type']!=_0x261ed8)continue;let _0x319fa2=!0x1;for(const _0x1af4c4 of _0x22137b['getRanges']()){for(const _0x5407fe of _0x531294){const _0x139001=_0x5407fe['start']['isEqual'](_0x1af4c4['end'])||_0x5407fe['end']['isEqual'](_0x1af4c4['start']);if(_0x139001||_0x5407fe['getIntersection'](_0x1af4c4)){const _0x2df442=_0x5407fe['containsRange'](_0x1af4c4)&&Ut(this['_model']['schema'],_0x1af4c4['start'],_0x5407fe),_0x2afd44=_0x1af4c4['containsRange'](_0x5407fe)&&Ut(this['_model']['schema'],_0x5407fe['start'],_0x1af4c4);_0x2ec77f['push']({'suggestion':_0x22137b,'meta':{'isOwn':_0x52d728==_0x22137b['author'],'isNextTo':_0x139001,'isInsideObject':_0x2df442,'containsRangeInObject':_0x2afd44}}),_0x319fa2=!0x0;break;}}if(_0x319fa2)break;}}return _0x2ec77f;}['_addSuggestionMarker'](_0x5cf1eb,_0x5418f2,_0x1a619c,_0x54d742,_0x3bef08){this['_model']['change'](_0x479e1d=>{let _0x101d91='suggestion:'+_0x5cf1eb+':'+_0x5418f2+':'+_0x1a619c;_0x3bef08&&(_0x101d91=_0x101d91+':'+_0x3bef08),_0x479e1d['addMarker'](_0x101d91,{'range':_0x54d742,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x45183a){const _0x516105=_0x45183a['previous'],_0xf7ffff=_0x45183a['next'];_0x45183a['previous']=null,_0x45183a['next']=null,null!=_0x516105&&_0x516105['next']==_0x45183a&&(_0x516105['next']=_0xf7ffff),null!=_0xf7ffff&&_0xf7ffff['previous']==_0x45183a&&(_0xf7ffff['previous']=_0x516105),'ready'==this['_suggestionState']['get'](_0x45183a)&&(this['_suggestionState']['set'](_0x45183a,'removed'),this['fire']('suggestionUnloaded',_0x45183a,_0x516105,_0xf7ffff));}['_setSuggestionData'](_0x11d8ba){const _0x5a9a55=_0x11d8ba['id'],_0x3877c4=this['addSuggestionData'](_0x11d8ba);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x53f4a2=this['editor']['plugins']['get']('PendingActions'),_0x28a477=_0x3877c4['hasComments'],_0x111824=_0x3877c4['subType']?_0x3877c4['type']+':'+_0x3877c4['subType']:_0x3877c4['type'],_0xa88fcf=this['editor']['locale'],_0x13280f=_0x53f4a2['add'](o(_0xa88fcf,'PENDING_ACTION_SUGGESTION')),_0x33c904={'id':_0x5a9a55,'type':_0x111824,'hasComments':_0x28a477,'data':_0x11d8ba['data']||null,'originalSuggestionId':_0x11d8ba['originalSuggestionId']||null,'attributes':_0x3877c4['attributes']};this['_adapter']['addSuggestion'](_0x33c904)['then'](_0x271afe=>{_0x3877c4['_saved']=!0x0,_0x53f4a2['remove'](_0x13280f),_0x271afe&&_0x271afe['createdAt']&&(this['_suggestions']['get'](_0x5a9a55)['createdAt']=_0x271afe['createdAt']);})['catch'](_0x53dbf7=>{throw _0x42f00c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3877c4['discard']();}),_0x3877c4['stopListening'](),this['_suggestions']['delete'](_0x3877c4['id']),this['_suggestionState']['delete'](_0x3877c4),_0x53dbf7;});}return _0x3877c4;}['_isBlockAttribute'](_0x24b1c4){return this['_blockAttributeKeys']['has'](_0x24b1c4);}['_updateSuggestionData'](_0x3738a4,_0x41c610){const _0xc9d91f=this['editor']['plugins']['get']('PendingActions'),_0x12e4c=this['getSuggestion'](_0x3738a4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x12e4c['_saved']){const _0x48825c=_0xc9d91f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3738a4,_0x41c610)['then'](()=>{_0xc9d91f['remove'](_0x48825c);});}else _0x12e4c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3738a4,_0x41c610);});}}['_getSuggestionData'](_0x2549fe){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ac58c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2549fe);}['_handleNewSuggestionMarker'](_0x317926){const {id:_0x28c70f,type:_0x139bb3,subType:_0x41d4f1,authorId:_0x26f04c}=this['_splitMarkerName'](_0x317926),_0x1bf65e=this['_suggestions']['get'](_0x28c70f)||this['_createSuggestion'](_0x139bb3,_0x41d4f1,_0x28c70f,_0x26f04c,{});switch(this['_checkSuggestionCorrectness'](_0x1bf65e,_0x139bb3,_0x41d4f1,_0x26f04c),this['_suggestionState']['get'](_0x1bf65e)){case'notReady':this['_getSuggestionData'](_0x28c70f)['then'](_0x246069=>{let _0x21c703=Promise['resolve']();_0x246069['hasComments']&&(_0x21c703=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x28c70f})),_0x21c703['then'](()=>{this['addSuggestionData'](_0x246069)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1bf65e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x28c70f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1bf65e,'ready'),this['fire']('suggestionLoaded',_0x1bf65e);break;case'ready':this['fire']('suggestionChanged',_0x1bf65e);}return _0x1bf65e['addMarkerName'](_0x317926),_0x1bf65e;}['_refreshSuggestionsChain'](_0x28fc0b){const _0x2fcb17=Array['from'](_0x28fc0b),_0x36255e=_0x2fcb17['filter'](_0x3cd65e=>'attribute'==_0x3cd65e['type']);this['_refreshAttributeSuggestionsChain'](_0x36255e);const _0x225107=_0x2fcb17['filter'](_0x3b90fe=>!_0x3b90fe['isMultiRange']&&'attribute'!=_0x3b90fe['type']),_0x46ea70=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xaf788f=>!_0xaf788f['isMultiRange']&&'attribute'!=_0xaf788f['type']),_0x7f1b9e=_0x46ea70['filter'](_0x45afca=>!_0x28fc0b['has'](_0x45afca)),_0x4d4242=new Map(_0x46ea70['map'](_0x42a63a=>[_0x42a63a,this['_suggestionFactory']['getSuggestionCallback'](_0x42a63a['type'],_0x42a63a['subType'],'chain')])),_0x85156b=new Map(_0x46ea70['map'](_0x429fb1=>[_0x429fb1,_0x429fb1['getFirstRange']()])),_0x562fa8=new Set(),_0x3a34cd=new Set();for(let _0x463701=0x0;_0x463701<_0x225107['length'];_0x463701++)_0x57d9b8(_0x225107[_0x463701],_0x225107,_0x463701+0x1);for(let _0x266c05=0x0;_0x266c05<_0x225107['length'];_0x266c05++)_0x57d9b8(_0x225107[_0x266c05],_0x7f1b9e,0x0);const _0x481dcd=new Set();for(let _0x66495f=0x0;_0x66495f<_0x225107['length'];_0x66495f++){const _0x523d54=_0x225107[_0x66495f];!_0x3a34cd['has'](_0x523d54)&&_0x523d54['previous']&&(_0x481dcd['add'](_0x523d54['previous']),_0x523d54['previous']['next']===_0x523d54&&(_0x523d54['previous']['next']=null),_0x523d54['previous']=null),!_0x562fa8['has'](_0x523d54)&&_0x523d54['next']&&(_0x481dcd['add'](_0x523d54['next']),_0x523d54['next']['previous']===_0x523d54&&(_0x523d54['next']['previous']=null),_0x523d54['next']=null);}function _0x57d9b8(_0x554596,_0x3db827,_0x3bf8b2){for(let _0x298d03=_0x3bf8b2;_0x298d03<_0x3db827['length'];_0x298d03++){const _0x38041a=_0x35c050(_0x554596,_0x3db827[_0x298d03]);_0x38041a&&(_0x38041a[0x0]['next']=_0x38041a[0x1],_0x38041a[0x1]['previous']=_0x38041a[0x0],_0x562fa8['add'](_0x38041a[0x0]),_0x3a34cd['add'](_0x38041a[0x1]));}}function _0x35c050(_0x242b35,_0x2bbb98){if(_0x242b35['author']['id']!==_0x2bbb98['author']['id'])return null;const _0x499191=_0x4d4242['get'](_0x242b35)(_0x242b35,_0x2bbb98,_0x85156b['get'](_0x242b35),_0x85156b['get'](_0x2bbb98));if(!_0x499191)return null;return _0x4d4242['get'](_0x2bbb98)(_0x242b35,_0x2bbb98,_0x85156b['get'](_0x242b35),_0x85156b['get'](_0x2bbb98))?_0x499191[0x1]['commentThread']&&_0x499191[0x1]['commentThread']['length']?null:_0x499191:null;}_0x481dcd['size']&&this['_refreshSuggestionsChain'](_0x481dcd);}['_refreshAttributeSuggestionsChain'](_0x5e172f){if(0x0==_0x5e172f['length'])return;const _0x457454=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40de3d=>'attribute'==_0x40de3d['type']&&_0x40de3d['_isDataLoaded']),_0x249303=[],_0xd4d5eb=new Map();for(const _0xc73ebf of _0x457454){const _0x2ee849=_0x3d1978(_0xc73ebf['attributes']);_0xd4d5eb['has'](_0x2ee849)||(_0xd4d5eb['set'](_0x2ee849,_0x249303['length']),_0x249303['push']([]));const _0x213c48=_0xd4d5eb['get'](_0x2ee849);_0x249303[_0x213c48]['push'](_0xc73ebf);}!(function(){_0x249303['sort']((_0x219078,_0x1bd12a)=>{const _0x5b21cf=_0x219078[0x0]['createdAt'],_0x276641=_0x1bd12a[0x0]['createdAt'];return _0x5b21cf==_0x276641?_0x219078[0x0]['attributes']['groupId']<_0x1bd12a[0x0]['attributes']['groupId']?-0x1:0x1:_0x5b21cf<_0x276641?-0x1:0x1;});for(const _0x15739c of _0x249303)_0x15739c['sort']((_0x81bc2b,_0x1d468b)=>_0x81bc2b['id']<_0x1d468b['id']?-0x1:0x1);}());for(let _0x45a4a5=0x0;_0x45a4a5<_0x249303['length'];_0x45a4a5++){if(0x0==_0x249303[_0x45a4a5]['length'])continue;const _0x513042=[];for(let _0x1a09c4=_0x45a4a5+0x1;_0x1a09c4<_0x249303['length'];_0x1a09c4++)0x0!=_0x249303[_0x1a09c4]['length']&&_0x34fa19(_0x249303[_0x45a4a5],_0x249303[_0x1a09c4])&&_0x513042['push'](_0x1a09c4);for(const _0x17a8a5 of _0x513042)_0x249303[_0x45a4a5]=_0x249303[_0x45a4a5]['concat'](_0x249303[_0x17a8a5]),_0x249303[_0x17a8a5]=[];}for(const _0x282cd4 of _0x249303)for(let _0x4eeba9=0x0;_0x4eeba9<_0x282cd4['length'];_0x4eeba9++){const _0x29fda9=_0x282cd4[_0x4eeba9+0x1]||null;_0x282cd4[_0x4eeba9]['next']!==_0x29fda9&&(_0x282cd4[_0x4eeba9]['next']=_0x29fda9);}for(const _0x3d805f of _0x249303)for(let _0x516231=0x0;_0x516231<_0x3d805f['length'];_0x516231++){const _0x1c4da5=_0x3d805f[_0x516231-0x1]||null;_0x3d805f[_0x516231]['previous']!==_0x1c4da5&&(_0x3d805f[_0x516231]['previous']=_0x1c4da5);}function _0x34fa19(_0x157b7b,_0x536ce1){if(_0x157b7b[0x0]['attributes']['groupId']!==_0x536ce1[0x0]['attributes']['groupId']&&_0x157b7b[0x0]['author']!==_0x536ce1[0x0]['author'])return!0x1;if(!function(_0x30d6ef,_0x28e925){if(!_0x30d6ef['hasComments']&&!_0x28e925['hasComments'])return!0x0;if(_0x30d6ef['hasComments']&&_0x28e925['hasComments'])return!0x1;if(_0x30d6ef['hasComments']&&_0x28e925['createdAt']<_0x30d6ef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x28e925['hasComments']&&_0x30d6ef['createdAt']<_0x28e925['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x157b7b[0x0],_0x536ce1[0x0]))return!0x1;const _0xdf332a=xt(_0x157b7b[0x0]['attributes'],'groupId'),_0x3e3392=xt(_0x536ce1[0x0]['attributes'],'groupId');if(!_0x4dfac2(_0xdf332a,_0x3e3392))return!0x1;return!!_0x157b7b['every'](_0x2bf6e5=>_0x536ce1['some'](_0x123324=>_0x2bf6e5['getFirstRange']()['isEqual'](_0x123324['getFirstRange']())))&&_0x536ce1['every'](_0x11eeaa=>_0x157b7b['some'](_0x3cab5a=>_0x11eeaa['getFirstRange']()['isEqual'](_0x3cab5a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x30af77){const _0x3f0410=Array['from'](_0x30af77),_0x4c2e48=this['getSuggestions']({'skipNotAttached':!0x0}),_0x28bde1=_0x4c2e48['filter'](_0x2a68a9=>!_0x30af77['has'](_0x2a68a9)),_0x40281f=new Map(_0x3f0410['map'](_0x553bd0=>[_0x553bd0,this['_suggestionFactory']['getSuggestionCallback'](_0x553bd0['type'],_0x553bd0['subType'],'join')])),_0x59efcc=new Map(_0x4c2e48['map'](_0x3e80ff=>[_0x3e80ff,_0x3e80ff['getRanges']()]));for(let _0xa5998a=0x0;_0xa5998a<_0x3f0410['length'];_0xa5998a++){if(_0x3e4847(this,_0x3f0410[_0xa5998a],_0x3f0410,_0xa5998a+0x1))return!0x0;}for(let _0x1fc0eb=0x0;_0x1fc0eb<_0x3f0410['length'];_0x1fc0eb++){if(_0x3e4847(this,_0x3f0410[_0x1fc0eb],_0x28bde1,0x0))return!0x0;}return!0x1;function _0x3e4847(_0x4ae7bc,_0x5d5ad3,_0x3656fd,_0x525fed){for(let _0x558df1=_0x525fed;_0x558df1<_0x3656fd['length'];_0x558df1++){const _0x47c9a7=_0x3656fd[_0x558df1];if(_0x47c9a7['type']!==_0x5d5ad3['type']||_0x47c9a7['author']['id']!==_0x5d5ad3['author']['id']||_0x47c9a7['subType']!==_0x5d5ad3['subType'])continue;if(!qt(_0x5d5ad3,_0x47c9a7))continue;if('attribute'==_0x5d5ad3['type']&&_0x5d5ad3['data']['oldValue']!=_0x47c9a7['data']['oldValue'])continue;if('attribute'==_0x5d5ad3['type']&&_0x4ae7bc['_isBlockAttribute'](_0x5d5ad3['data']['key']))continue;if('formatBlock'==_0x5d5ad3['type']){const _0x1fedc1=_0x4ae7bc['editor']['model'],_0x2d5416=_0x5d5ad3['getContainedElement']();if(_0x2d5416&&(_0x1fedc1['schema']['isObject'](_0x2d5416)||_0x1fedc1['schema']['isLimit'](_0x2d5416)))continue;}const _0x45b0e0=_0x40281f['get'](_0x5d5ad3),_0x4c30e3=_0x59efcc['get'](_0x5d5ad3),_0x552598=_0x59efcc['get'](_0x47c9a7),_0x5528ae=_0x5d5ad3['commentThread']&&_0x5d5ad3['commentThread']['length'],_0x1eb156=_0x47c9a7['commentThread']&&_0x47c9a7['commentThread']['length'];if(!_0x5528ae&&_0x45b0e0(_0x552598,_0x4c30e3))return _0x4ae7bc['_joinSuggestions'](_0x47c9a7,_0x5d5ad3),_0x59efcc['delete'](_0x5d5ad3),!0x0;if(!_0x1eb156&&_0x45b0e0(_0x4c30e3,_0x552598))return _0x4ae7bc['_joinSuggestions'](_0x5d5ad3,_0x47c9a7),_0x59efcc['delete'](_0x47c9a7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x15c1d8,_0x2e3b66){if(_0x15c1d8['isMultiRange']){for(const _0x47e52a of _0x2e3b66['getRanges']())_0x15c1d8['addRange'](_0x47e52a);}else{const _0x565d8e=_0x2e3b66['getFirstRange']()['end'];this['_setSuggestionRange'](_0x15c1d8,this['_model']['createRange'](_0x15c1d8['getFirstRange']()['start'],_0x565d8e));}_0x2e3b66['removeMarkers']();}['_getMarkerAnnouncementText'](_0x275551,_0x4ff2d9,_0x4b8e27){const _0x55f434=_0x275551['startsWith']('format')||_0x275551['startsWith']('attribute')?'FORMATTING':_0x275551['toUpperCase']();return o(this['editor']['locale'],_0x4ff2d9+'_'+_0x55f434+'_SUGGESTION_ANNOUNCEMENT',_0x4b8e27);}['_initAriaMarkerChangeAnnouncements'](){const _0x2a6d83=this['editor'];if(!_0x2a6d83['ui'])return;const {ariaLiveAnnouncer:_0x58b1c1}=_0x2a6d83['ui'];_0x487918(this['_model'],({left:_0x1cddb7,entered:_0x480a1e})=>{for(const _0x2a0f01 of _0x1cddb7){const {group:_0x420dac,type:_0x18423f}=this['_splitMarkerName'](_0x2a0f01['name']);if('suggestion'===_0x420dac){_0x58b1c1['announce'](this['_getMarkerAnnouncementText'](_0x18423f,'LEAVE'));break;}}for(const _0x9cf40e of _0x480a1e){const {group:_0x47e449,type:_0x3ca8af}=this['_splitMarkerName'](_0x9cf40e['name']);if('suggestion'===_0x47e449){_0x58b1c1['announce'](this['_getMarkerAnnouncementText'](_0x3ca8af,'ENTER',_0xfda364(_0x218fe9)));break;}}});}['_processAttributeChanges'](_0x4ad0a1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e4228=this['editor'],_0x248c8c=_0x2e4228['model']['document']['differ']['getChanges']();if(0x0==_0x248c8c['length'])return!0x1;const _0x2c5859=[],_0x347e6b=_0x248c8c['filter'](_0x3a4c85=>'attribute'==_0x3a4c85['type']),_0x3a2f61=_0x248c8c['filter'](_0x343151=>'insert'==_0x343151['type']&&'$text'!=_0x343151['name']),_0x8f6cf4=_0x248c8c['filter'](_0x18281e=>'remove'==_0x18281e['type']&&'$text'!=_0x18281e['name']);for(const _0x49739c of _0x347e6b)_0x2c5859['push']({'key':_0x49739c['attributeKey'],'newValue':_0x49739c['attributeNewValue'],'oldValue':_0x49739c['attributeOldValue'],'range':Lt(_0x49739c['range'],_0x2e4228['model'])});for(const _0xc83bee of _0x3a2f61){const _0x5a1e24=_0x8f6cf4['find'](_0x364741=>_0x364741['position']['isEqual'](_0xc83bee['position']));_0x5a1e24&&_0x2c5859['push']({'key':m,'newValue':_0xc83bee['name'],'oldValue':_0x5a1e24['name'],'range':_0x2e4228['model']['createRangeOn'](_0xc83bee['position']['nodeAfter'])});}return 0x0!=_0x2c5859['length']&&this['_reduceExistingSuggestions'](_0x4ad0a1,_0x2c5859);}['_processAttributeSuggestions'](_0xd03e5e){let _0x315acb=!0x1;const _0x1ecda3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ff037=>_0x3ff037['data']['newRange']&&_0x3ff037['name']['startsWith']('suggestion:attribute:'));for(const _0x2d5499 of _0x1ecda3){const {subType:_0x109ab7,id:_0x30931b}=this['_splitMarkerName'](_0x2d5499['name']),_0x35afb9=_0x109ab7['split']('|')[0x0];for(const _0x410d0d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x410d0d['id']!=_0x30931b&&'attribute'==_0x410d0d['type']&&_0x410d0d['data']&&_0x410d0d['data']['key']==_0x35afb9&&_0x410d0d['getFirstRange']()['isIntersecting'](_0x2d5499['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x410d0d,_0x2d5499['data']['newRange'],_0xd03e5e),_0x315acb=!0x0);}return _0x315acb;}['_recordAttributeChanges'](_0x41bc7d){this['_recordAttributeSuggestions']=!0x0,_0x41bc7d();}['_isRegisteredAttribute'](_0x1bc441){const _0x507459=this['_isBlockAttribute'](_0x1bc441),_0x5a8443=this['_inlineAttributeKeys']['has'](_0x1bc441);return _0x507459||_0x5a8443;}['_reduceExistingSuggestions'](_0x45fb41,_0x227705){if(0x0==_0x227705['length'])return!0x1;let _0x531894=!0x1;for(const _0xdeb8e4 of _0x227705){const _0x10944a=this['_findSuggestions'](_0xdeb8e4['range'],'attribute')['filter'](_0x36f29f=>!_0x36f29f['meta']['isNextTo'])['map'](_0x2b1373=>_0x2b1373['suggestion']),_0x47901d=_0x3d1978({'newValue':_0xdeb8e4['newValue']});_0x10944a['filter'](_0x19318f=>{const [_0x211272,_0x418327]=_0x19318f['subType']['split']('|');return _0x211272==_0xdeb8e4['key']&&_0x418327!=_0x47901d;})['forEach'](_0x1fdff1=>{this['_reduceSuggestionAttributeRange'](_0x1fdff1,_0xdeb8e4['range'],_0x45fb41),_0x531894=!0x0;});}return _0x531894;}['_reduceSuggestionAttributeRange'](_0x436e3c,_0xc9ff42,_0x181617){const _0x7c0a36=_0x436e3c['getFirstRange']()['getDifference'](_0xc9ff42);0x0!==_0x7c0a36['length']?0x1!==_0x7c0a36['length']?this['_breakSuggestionMarker'](_0x436e3c,_0xc9ff42['start'],_0xc9ff42['end']):this['_setSuggestionRange'](_0x436e3c,_0x7c0a36[0x0]):_0x181617['removeMarker'](_0x436e3c['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x527ebf){this['_editor']=_0x527ebf,this['_model']=_0x527ebf['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4773af,_0x139d70,_0x55ef83,_0x246f89,_0x1672ec,_0x26e18e){return new u(this['_model'],{'type':_0x4773af,'subType':_0x139d70,'id':_0x55ef83,'author':_0x246f89,'creator':_0x246f89,'attributes':_0x1672ec,'onAttributesChange':_0x26e18e,'onAccept':(..._0x210812)=>this['getSuggestionCallback'](_0x4773af,_0x139d70,'accept')(..._0x210812),'onDiscard':(..._0x1c7b31)=>this['getSuggestionCallback'](_0x4773af,_0x139d70,'discard')(..._0x1c7b31)});}['registerCustomCallback'](_0x235484,_0x24e595,_0x7e2814,_0x957de8){const _0x518499=_0x235484+':'+_0x24e595+':'+_0x7e2814;this['_customCallbacks']['set'](_0x518499,_0x957de8);}['getSuggestionCallback'](_0x4ebdc4,_0x4b3b98,_0x4e6cd3){const _0x52ee4e=_0x4ebdc4+':'+_0x4b3b98+':'+_0x4e6cd3;return this['_customCallbacks']['get'](_0x52ee4e)||this['_defaultCallbacks']['get'](_0x4ebdc4+':'+_0x4e6cd3);}['_registerDefaultCallbacks'](){const _0xfc48c3=()=>!0x1,_0x1077e7=_0x540a4b=>{_0x540a4b['sort']((_0x130930,_0x2495dd)=>_0x130930['start']['isBefore'](_0x2495dd['start'])?0x1:-0x1),this['_model']['change'](_0x265d12=>{for(const _0x2cd345 of _0x540a4b){let _0x486faa;_0x486faa=_0x2cd345['end']['isAtEnd']&&_0x2cd345['end']['parent']==_0x2cd345['start']['nodeAfter']?_0x265d12['createSelection'](_0x2cd345['start']['nodeAfter'],'on'):_0x265d12['createSelection'](_0x2cd345),this['_model']['deleteContent'](_0x486faa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x25c6a6=(_0x121e65,_0x28649a)=>{_0x28649a&&this['_model']['change'](_0x381a9e=>{const {commandName:_0x392463,commandParams:_0x4949a9=[]}=_0x28649a,_0x511fee=_0x121e65['map'](_0x239f91=>(Vt(_0x239f91)&&(_0x239f91=this['_model']['createRange'](_0x239f91['end'])),_0x239f91))['filter'](_0x2273e4=>'$graveyard'!==_0x2273e4['root']['rootName']);if(_0x511fee['length']<0x1)return;const _0x5bf83c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f7cdb=>_0x582953['fromRange'](_0x1f7cdb));_0x381a9e['setSelection'](_0x511fee);for(const _0x321d6b of this['_editor']['commands']['commands']())_0x321d6b['refresh']();_0x4949a9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x392463,..._0x4949a9);const _0x56b8fa=_0x5bf83c['filter'](_0x48ff19=>'$graveyard'!=_0x48ff19['root']['rootName']);_0x56b8fa['length']>0x0&&_0x381a9e['setSelection'](_0x56b8fa);for(const _0x5467a8 of _0x5bf83c)_0x5467a8['detach']();});},_0x3d61d0=(_0x1700e0,_0xb900ab)=>0x1==_0x1700e0['length']&&0x1==_0xb900ab['length']&&_0x1700e0[0x0]['end']['isEqual'](_0xb900ab[0x0]['start']),_0x3da956=(_0x3397a4,_0x4b3801,_0x13feb3,_0x354aad)=>Ht(_0x3397a4,_0x4b3801,_0x13feb3,_0x354aad)?[_0x3397a4,_0x4b3801]:Ht(_0x4b3801,_0x3397a4,_0x354aad,_0x13feb3)?[_0x4b3801,_0x3397a4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xfc48c3),this['_defaultCallbacks']['set']('insertion:discard',_0x1077e7),this['_defaultCallbacks']['set']('insertion:join',_0x3d61d0),this['_defaultCallbacks']['set']('insertion:chain',_0x3da956),this['_defaultCallbacks']['set']('deletion:accept',_0x1077e7),this['_defaultCallbacks']['set']('deletion:discard',_0xfc48c3),this['_defaultCallbacks']['set']('deletion:join',_0x3d61d0),this['_defaultCallbacks']['set']('deletion:chain',_0x3da956),this['_defaultCallbacks']['set']('formatInline:accept',_0x25c6a6),this['_defaultCallbacks']['set']('formatInline:discard',_0xfc48c3),this['_defaultCallbacks']['set']('formatInline:join',_0x3d61d0),this['_defaultCallbacks']['set']('formatInline:chain',_0xfc48c3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x25c6a6),this['_defaultCallbacks']['set']('formatBlock:discard',_0xfc48c3),this['_defaultCallbacks']['set']('formatBlock:join',_0x3d61d0),this['_defaultCallbacks']['set']('formatBlock:chain',_0xfc48c3),this['_defaultCallbacks']['set']('attribute:accept',_0xfc48c3),this['_defaultCallbacks']['set']('attribute:discard',(_0x6626b0,_0x4b21e1)=>{if(!_0x4b21e1)return;const _0x54f616=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4d644c=>{if(_0x4b21e1['key']==m)for(const _0x3f8c13 of _0x6626b0){const _0x182487=_0x3f8c13['start']['nodeAfter'],_0x214160=_0x4b21e1['oldValue'];_0x4d644c['rename'](_0x182487,_0x214160);}else{if(_0x54f616['_isBlockAttribute'](_0x4b21e1['key'])){for(const _0x40d202 of _0x6626b0)void 0x0!==_0x4b21e1['oldValue']?_0x4d644c['setAttribute'](_0x4b21e1['key'],_0x4b21e1['oldValue'],_0x40d202['start']['nodeAfter']):_0x4d644c['removeAttribute'](_0x4b21e1['key'],_0x40d202['start']['nodeAfter']);}else{for(const _0xa1a6a9 of _0x6626b0)_0x4b21e1['oldValue']?_0x4d644c['setAttribute'](_0x4b21e1['key'],_0x4b21e1['oldValue'],_0xa1a6a9):_0x4d644c['removeAttribute'](_0x4b21e1['key'],_0xa1a6a9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3d61d0);}}function Ut(_0x2ef4a7,_0x5486d1,_0x43503f){for(const _0x3c51a6 of _0x5486d1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c51a6['root']==_0x3c51a6)return!0x1;if(!_0x43503f['containsItem'](_0x3c51a6))return!0x1;if(_0x2ef4a7['isObject'](_0x3c51a6)||_0x2ef4a7['isLimit'](_0x3c51a6))return!0x0;}return!0x1;}function Vt(_0x26c14f){return _0x26c14f['end']['parent']==_0x26c14f['start']['nodeAfter']&&_0x26c14f['end']['isAtStart'];}function Pt(_0x5a7c12,_0x2802d5,_0x27cd67,_0x43ff97){const _0x4f62ca=_0x53fe09=>!_0x53fe09['item']['is']('$textProxy')&&!_0x43ff97['isObject'](_0x53fe09['item']),_0x1ebc2d=_0x5a7c12['start']['getLastMatchingPosition'](_0x4f62ca),_0x2abf13=_0x5a7c12['end']['getLastMatchingPosition'](_0x4f62ca,{'direction':'backward'});return(!_0x5a7c12['start']['isEqual'](_0x1ebc2d)||!_0x5a7c12['end']['isEqual'](_0x2abf13))&&(_0x1ebc2d['isBefore'](_0x2abf13)?_0x27cd67['updateMarker'](_0x2802d5,{'range':_0x27cd67['createRange'](_0x1ebc2d,_0x2abf13)}):_0x27cd67['removeMarker'](_0x2802d5),!0x0);}function Gt(_0x1e2b81){return _0x3d1978(_0x1e2b81);}function Ft(_0x32aded){const _0x44f804=_0x32aded['start']['nodeAfter'];return _0x44f804&&_0x44f804['is']('element');}function Lt(_0x351bd6,_0x25e870){return null==_0x351bd6['end']['nodeBefore']&&_0x351bd6['end']['parent']==_0x351bd6['start']['nodeAfter']?Jt(_0x351bd6['start']['nodeAfter'],_0x25e870):_0x351bd6;}function Jt(_0x5b954d,_0x20050b){const _0x3500a6=_0x20050b['schema']['isObject'](_0x5b954d)||_0x20050b['schema']['isSelectable'](_0x5b954d);return _0x20050b['createRange'](_0x20050b['createPositionAt'](_0x5b954d,'before'),_0x3500a6?_0x20050b['createPositionAfter'](_0x5b954d):_0x20050b['createPositionAt'](_0x5b954d,'end'));}function Ht(_0x3afca0,_0x55aba5,_0x12809d,_0x89c882){return!!qt(_0x3afca0,_0x55aba5)&&_0x12809d['end']['isEqual'](_0x89c882['start']);}function qt(_0x8d3787,_0x5d9a43){if(!_0x8d3787['_isDataLoaded']||!_0x5d9a43['_isDataLoaded'])return!0x1;const _0x240874=new Set(Object['keys'](_0x8d3787['attributes'])),_0x4fdcbe=new Set(Object['keys'](_0x5d9a43['attributes']));if(_0x240874['delete']('groupId'),_0x4fdcbe['delete']('groupId'),0x0==_0x240874['size']&&0x0==_0x4fdcbe['size'])return!0x0;if(_0x240874['size']!=_0x4fdcbe['size'])return!0x1;const _0x41a310={..._0x8d3787['attributes']},_0x56e319={..._0x5d9a43['attributes']};return delete _0x41a310['groupId'],delete _0x56e319['groupId'],JSON['stringify'](_0x41a310)==JSON['stringify'](_0x56e319);}function zt(_0x372a1a,_0x43c3f8){const _0x5edf59=Kt(_0x372a1a['attributes']),_0x1fa517=Kt(_0x43c3f8);if(!_0x372a1a['_isDataLoaded'])return!0x1;for(const _0x14d82e of Object['keys'](_0x1fa517))if(!_0x4dfac2(_0x5edf59[_0x14d82e],_0x1fa517[_0x14d82e]))return!0x1;return!0x0;}function Kt(_0x53a1ea){const _0x2e6548=Object['assign']({},_0x53a1ea);return delete _0x2e6548['skipNestingCheck'],delete _0x2e6548['tablePasteChainId'],_0x2e6548;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5de982(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x129475,_0x16b91f,_0x37ae2d,_0x24d691){super(),this['model']=_0x16b91f,this['view']=_0x37ae2d,this['commentThreadController']=_0x24d691,this['_editor']=_0x129475,this['_acceptCommand']=_0x129475['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x129475['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x433813,_0xdc168f)=>_0x433813||_0xdc168f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x45402e=>_0x45402e&&this['_editor']['model']['canEditAt'](_0x16b91f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xf064f3=>_0xf064f3&&this['_editor']['model']['canEditAt'](_0x16b91f['getRanges']())),this['_pendingAction']=null,_0x37ae2d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x37ae2d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x37ae2d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x37ae2d,'change:isDirty',()=>{_0x37ae2d['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 _0x2f83d5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f83d5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x37fcbe{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x24c36a,_0x4fe0c1,_0x2ae5d6,_0x54f1af){super(_0x24c36a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x229945(_0x24c36a,o(_0x24c36a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4fe0c1['authoredAt']),this['bind']('authoredAt')['to'](_0x4fe0c1),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',_0x4fe0c1,'authoredAt',this,'descriptionParts',(_0x4f52ab,_0x3b1cc4,_0x10c19e)=>{const _0x10a0d3=_0x10c19e['map'](_0x4e969f=>ns(_0x4e969f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f52ab-0x1,_0x4fe0c1['author']['name'],_0x3b1cc4?_0x54f1af['formatDateTime'](_0x3b1cc4):'',new DOMParser()['parseFromString'](_0x10a0d3,'text/html')['body']['textContent']]);}),this['focusables']=new _0x53b401(),this['focusTracker']=new _0x5756c4(),this['keystrokes']=new _0x15b293(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x383255=>_0x383255['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4fe0c1,this['_localUser']=_0x2ae5d6,this['_config']=_0x54f1af,_0x54f1af['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x14e6ed(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2c95a4}=this['_config'];this['commentsListView']=new _0x2c95a4(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',_0x3ff27f=>_0x3ff27f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x157330,_0x402263)=>_0x157330||!!_0x402263);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x427241}=this['_config'],_0x1ba024=new _0x427241(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xafbb5a=_0x1ba024['commentInputView'];return _0x1ba024['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xafbb5a,'value',(_0x17777a,_0x541c39,_0x10795f)=>!!_0x10795f||_0x17777a&&!_0x541c39),_0xafbb5a['on']('submit',(_0x10b992,_0x56b577)=>{this['fire']('addComment',_0x56b577),_0xafbb5a['editor']['setData']('');}),_0xafbb5a['on']('cancel',()=>this['focus']()),_0xafbb5a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1ba024;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3502cc,_0x701c55,_0x535cbb,_0x3ea77a){super(_0x3502cc,_0x701c55,_0x535cbb,_0x3ea77a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x51143d=>_0x51143d&&_0x51143d[0x0]?_0x51143d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x172164,_0x4bc1bd)=>{let _0x58d29a='';for(const _0x2edecc of _0x172164)_0x58d29a+='<p>'+ns(_0x2edecc['content'],_0x2edecc['color'])+'</p>';return _0x4bc1bd?_0x58d29a:ti(_0x58d29a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3ea77a['SuggestionView'](_0x3502cc,_0x701c55,{'formatDateTime':_0x3ea77a['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 _0x3c851e=this['bindTemplate'],_0xb663fe=[this['suggestionView']];return this['commentsListView']&&_0xb663fe['push'](this['commentsListView']),this['commentThreadInputView']&&_0xb663fe['push'](this['commentThreadInputView']),_0xb663fe['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3c851e['if']('isActive','ck-suggestion-wrapper--active'),_0x3c851e['to']('type',_0x2a9e8a=>'ck-suggestion-'+_0x2a9e8a),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':_0x3c851e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xb663fe};}['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 ue extends _0x37fcbe{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5368ce,_0x4478e4,_0x46be33){super(_0x5368ce),this['_model']=_0x4478e4,this['_config']=_0x46be33,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4478e4),this['acceptButton']=this['_createButton'](o(_0x5368ce,'Accept\x20suggestion'),_0xa3c9d2['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5368ce,'Discard\x20suggestion'),_0xa3c9d2['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x24bd63(_0x5368ce,_0x4478e4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x53b401([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5756c4(),this['keystrokes']=new _0x15b293(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x39decc=>_0x39decc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x218994=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x218994['innerHTML']=this['description'],this['on']('change:description',(_0x432d37,_0xe29eeb,_0x39939e)=>{_0x218994['innerHTML']=_0x39939e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x57897c=this['bindTemplate'],_0x5eab43=[{'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']}},{'tag':'time','attributes':{'datetime':_0x57897c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57897c['to']('authoredAt',_0x4e81e7=>this['_config']['formatDateTime'](_0x4e81e7))}]}]},{'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']&&_0x5eab43['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':_0x5eab43}]};}['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'](_0xe2b937,_0x2d0cd7,_0x1bae04,_0x1cbce6,_0x3d826b){const _0xa1e777=new _0x14c4a1(this['locale']);return _0xa1e777['set']({'label':_0xe2b937,'icon':_0x2d0cd7,'tooltip':!0x0,'tooltipPosition':_0x3d826b}),_0xa1e777['extendTemplate']({'attributes':{'class':_0x1bae04}}),_0xa1e777['on']('execute',()=>{this['fire'](_0x1cbce6,this['_model']['id']);}),_0xa1e777;}['_setupKeyboardNavigation'](){const _0x2fd3fb=this['element'];this['keystrokes']['listenTo'](_0x2fd3fb);for(const _0xd6bf3a of this['focusables'])this['focusTracker']['add'](_0xd6bf3a['element']),this['keystrokes']['listenTo'](_0xd6bf3a['element']);this['keystrokes']['set']('enter',(_0x302349,_0x38e3d2)=>{_0x2fd3fb===_0x302349['target']&&(this['focusCycler']['focusFirst'](),_0x38e3d2());}),this['keystrokes']['set']('esc',(_0x4ed42b,_0x532b84)=>{_0x2fd3fb!==_0x4ed42b['target']&&(this['focus'](),_0x532b84());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x522036{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x32d02e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x221386){super(_0x221386),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x269f6d=this['editor']['config'];_0x269f6d['define']('trackChanges.SuggestionThreadView',de),_0x269f6d['define']('trackChanges.SuggestionView',ue),_0x269f6d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x269f6d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2dc481,_0x45c61b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5389af,_0x42abad]of this['_handleControllerBuffer']){const _0x236b41=this['_suggestionToController']['has'](_0x5389af);_0x236b41||_0x42abad?_0x236b41&&_0x42abad&&this['_destroyController'](_0x5389af):this['_initializeController'](_0x5389af);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2dc481,_0x45c61b);}['init'](){const _0x532118=this['editor'],_0x53155f=_0x532118['plugins']['get']('TrackChangesEditing'),_0x3a225e=_0x532118['plugins']['get']('Annotations'),_0x3c3c61=_0x532118['plugins']['get']('EditorAnnotations'),_0x599ca7=_0x532118['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3c3c61['addSourceCollector'](()=>{const _0x42dbb2=[];for(const [_0xf0b3cf,_0x47c655]of Array['from'](this['_suggestionToController'])){const _0x675071=_0xf0b3cf['getAllAdjacentSuggestions'](),_0x1958fa=[];for(const _0x10fd79 of _0x675071){if(!_0x10fd79['isInContent'])continue;if(_0x10fd79['isMultiRange']){_0x1958fa['push'](..._0x10fd79['getRanges']());continue;}const _0xe7272d=_0x10fd79['getFirstRange']();if(_0x1958fa['length']>0x0){const _0x5e2c1c=_0x1958fa[0x0]['getJoined'](_0xe7272d);if(_0x5e2c1c){_0x1958fa[0x0]=_0x5e2c1c;continue;}}_0x1958fa['push'](_0xe7272d);}_0x42dbb2['push']([_0x47c655['view'],_0x1958fa]);}return _0x42dbb2;}),this['listenTo'](_0x53155f,'suggestionLoaded',(_0x593751,_0x2bde1b)=>{this['listenTo'](_0x2bde1b,'change:previous',(_0x5098b3,_0x388d0a,_0x222f01,_0x2af0da)=>{_0x2bde1b['isInContent']&&(null==_0x222f01?(this['_updateController'](_0x2af0da['head']),this['_handleSuggestionControllerDelayed'](_0x2bde1b,!0x1)):(this['_updateController'](_0x222f01['head']),null==_0x2af0da&&this['_handleSuggestionControllerDelayed'](_0x2bde1b,!0x0)));}),null!==_0x2bde1b['previous']?this['_updateController'](_0x2bde1b['head']):this['_handleSuggestionControllerDelayed'](_0x2bde1b,!0x1);}),this['listenTo'](_0x53155f,'suggestionUnloaded',(_0x39ebff,_0xaacd3e,_0x37256b)=>{this['stopListening'](_0xaacd3e,'change:previous'),this['_handleControllerBuffer']['delete'](_0xaacd3e),this['_suggestionToController']['has'](_0xaacd3e)&&this['_destroyController'](_0xaacd3e),_0x37256b&&this['_updateController'](_0x37256b['head']);}),this['listenTo'](_0x53155f,'suggestionChanged',(_0x45ef98,_0x44ac02)=>{this['_updateController'](_0x44ac02);}),this['listenTo'](_0x3a225e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x599ca7,'addComment',(_0x8f3813,{threadId:_0x33210a,isFromAdapter:_0x1f0a71})=>{if(_0x1f0a71||!_0x53155f['hasSuggestion'](_0x33210a))return;const _0x11a0f2=_0x53155f['getSuggestion'](_0x33210a);this['_suggestionToController']['get'](_0x11a0f2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a2c83=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41dc33;for(const _0x3a1b85 in _0x3a2c83){const _0x449ee5=_0x3a1b85,_0xe47f66=_0x3a2c83[_0x449ee5];if('trackChangesLicenseKeyValid'==_0xe47f66||'trackChangesLicenseKeyInvalid'==_0xe47f66||'trackChangesLicenseKeyExpired'==_0xe47f66||'trackChangesLicenseKeyDomainLimit'==_0xe47f66||'trackChangesLicenseKeyNotAllowed'==_0xe47f66||'trackChangesLicenseKeyEvaluationLimit'==_0xe47f66||'trackChangesLicenseKeyTrialLimit'==_0xe47f66||'trackChangesLicenseKeyDevelopmentLimit'==_0xe47f66||'trackChangesLicenseKeyUsageLimit'==_0xe47f66){delete _0x3a2c83[_0x449ee5],_0x41dc33=_0xe47f66,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x41dc33&&_0x3a2c83['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x41dc33&&_0x3a2c83['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x41dc33&&_0x3a2c83['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5e9442=this['editor']['plugins']['get']('Annotations'),_0x30df3e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c6bf8=Array['from'](_0x5e9442['activeAnnotations'],_0xf5037b=>_0xf5037b['innerView'])['filter'](_0x372fef=>this['_viewToController']['has'](_0x372fef)),_0x2dc5c3=[];for(const _0x53e38c of _0x2c6bf8){const _0x19589d=this['_viewToController']['get'](_0x53e38c)['model']['getAllAdjacentSuggestions']();_0x2dc5c3['push'](..._0x19589d['reduce']((_0x118a1c,_0x300a4c)=>[..._0x118a1c,..._0x300a4c['getMarkerNames']()],[]));}_0x30df3e['activeMarkers']=_0x2dc5c3;}['_addUIComponentsToFactory'](){const _0x57b30d=this['editor'],_0xaf744e=_0x57b30d['locale'],_0x472119=o(_0xaf744e,'Track\x20changes'),_0x32bd0d=new _0x248b58([{'type':'switchbutton','model':new _0x579f53({'withText':!0x0,'isToggleable':!0x0,'label':_0x472119,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x137b07 of _0x32bd0d)if(pe(_0x137b07)){const _0x5ded11=_0x57b30d['commands']['get'](_0x137b07['model']['commandName']);_0x137b07['model']['bind']('isOn','isEnabled')['to'](_0x5ded11,'value','isEnabled');}_0x57b30d['ui']['componentFactory']['add']('trackChanges',_0x4ff5f3=>this['_createToolbarButton'](_0x4ff5f3,_0x32bd0d,_0x472119)),_0x57b30d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e691f=>this['_createMenuBarMenu'](_0x1e691f,_0x32bd0d,_0x472119));}['_createToolbarButton'](_0xebc93c,_0x5306fe,_0x13fee2){const _0x4e64b9=_0x361bdb(_0xebc93c,_0x303ad8),_0xd6eb02=this['editor']['commands']['get']('trackChanges');_0x4e64b9['buttonView']['set']({'tooltip':_0x13fee2,'label':_0x13fee2,'icon':Ce}),_0x4e64b9['buttonView']['bind']('isOn')['to'](_0xd6eb02,'value'),_0x4e64b9['buttonView']['on']('execute',()=>{_0xd6eb02['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4e64b9,_0x5306fe,{'role':'menu'});const _0x556f39=[];for(const _0x2437ed of _0x5306fe)pe(_0x2437ed)&&_0x556f39['push'](this['editor']['commands']['get'](_0x2437ed['model']['commandName']));const _0x9df6e9=_0x4e64b9['buttonView'];return _0x9df6e9['actionView']['unbind']('isEnabled'),_0x9df6e9['arrowView']['unbind']('isEnabled'),_0x9df6e9['actionView']['bind']('isEnabled')['to'](_0xd6eb02,'isEnabled'),_0x9df6e9['arrowView']['bind']('isEnabled')['toMany'](_0x556f39,'isEnabled',(..._0x252ab1)=>_0x252ab1['some'](_0x2e5340=>_0x2e5340)),_0x4e64b9['on']('execute',_0x51757a=>{this['editor']['execute'](_0x51757a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e64b9;}['_createMenuBarMenu'](_0x503525,_0x4bf694,_0x7065b7){const _0x436580=new _0x510e7f(_0x503525),_0x439659=this['editor']['commands']['get']('trackChanges');_0x436580['buttonView']['set']({'label':_0x7065b7,'icon':Ce});const _0x27bc22=new _0x960e20(_0x503525);for(const _0x3d6a57 of _0x4bf694){if('separator'==_0x3d6a57['type']){_0x27bc22['items']['add'](new _0x4b7899(_0x503525));continue;}const _0x470223=new _0x2c05e2(_0x503525,_0x436580),_0x46d0de=new _0x49a471(_0x503525),_0x506bb3=_0x3d6a57['model'];_0x46d0de['bind'](...Object['keys'](_0x506bb3))['to'](_0x506bb3),_0x46d0de['delegate']('execute')['to'](_0x436580),_0x46d0de['on']('execute',()=>{this['editor']['execute'](_0x506bb3['commandName']),this['editor']['editing']['view']['focus']();}),_0x470223['children']['add'](_0x46d0de),_0x27bc22['items']['add'](_0x470223);}return _0x436580['bind']('isEnabled')['to'](_0x439659,'isEnabled'),_0x436580['panelView']['children']['add'](_0x27bc22),_0x436580;}['_initializeController'](_0x3b4f8b){const _0x225ee6=this['editor'],_0x48ed55=_0x225ee6['config'],_0x480e9b=_0x225ee6['plugins']['get']('Annotations'),_0xd60fd5=_0x225ee6['plugins']['get']('CommentsRepository'),_0x10e7ab=_0x225ee6['plugins']['get']('EditorAnnotations'),_0x32fd1b=_0x225ee6['plugins']['get'](_0x32d02e)['me'],_0x5587e9=_0x48ed55['get']('trackChanges')['SuggestionThreadView'],_0x39f937=_0x48ed55['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4331f2,CommentThreadInputView:_0x9363f0}=_0x225ee6['plugins']['get']('CommentsUI');let _0x41bacf,_0x50a4d3,_0x2e043e;this['_annotationViews']['has'](_0x3b4f8b['id'])?(_0x50a4d3=this['_annotationViews']['get'](_0x3b4f8b['id']),_0x41bacf=_0x50a4d3['mainView']):(_0x41bacf=new _0x5587e9(_0x225ee6['locale'],_0x3b4f8b,_0x32fd1b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x48ed55['get']('comments.editorConfig'),'licenseKey':_0x48ed55['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x48ed55['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x48ed55['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x48ed55['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5006a4(_0x48ed55['get']('locale')),'CommentView':_0x48ed55['get']('comments')['CommentView'],'CommentsListView':_0x4331f2,'CommentThreadInputView':_0x9363f0,'SuggestionView':_0x39f937}),_0x41bacf['suggestionView']['acceptButton']['on']('execute',()=>{_0x225ee6['editing']['view']['focus']();}),_0x41bacf['suggestionView']['discardButton']['on']('execute',()=>{_0x225ee6['editing']['view']['focus']();}),_0x50a4d3=_0x480e9b['createAnnotationView'](this['editor']['locale'],_0x41bacf),_0x50a4d3['bind']('isDirty')['to'](_0x41bacf,'isDirty'),_0x50a4d3['bind']('length')['to'](_0x41bacf),_0x50a4d3['bind']('type')['to'](_0x41bacf,'type',_0x1939ac=>'suggestion-'+_0x1939ac),_0x41bacf['on']('escape',()=>{_0x2e043e['fire']('escape');}),this['_annotationViews']['set'](_0x3b4f8b['id'],_0x50a4d3));const _0x1ab86b=_0xd60fd5['createCommentThreadController'](_0x3b4f8b['commentThread'],_0x41bacf),_0x13db53=new ge(_0x225ee6,_0x3b4f8b,_0x41bacf,_0x1ab86b),_0x4b1230=_0x3b4f8b['getAllAdjacentSuggestions']()['filter'](_0x3ea84a=>_0x3ea84a['isInContent']);_0x41bacf['descriptionParts']=_0x225ee6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4b1230),this['_suggestionToController']['set'](_0x3b4f8b,_0x13db53),this['_viewToController']['set'](_0x41bacf,_0x13db53),_0x2e043e=_0x480e9b['createAnnotation']({'view':_0x50a4d3,'target':()=>{const _0x3207b6=[],_0x1bf600=_0x3b4f8b['getAllAdjacentSuggestions']()['filter'](_0x2ce6b8=>_0x2ce6b8['isInContent']);for(const _0x41f54a of _0x1bf600)_0x3207b6['push'](..._0x41f54a['getMarkers']());return _0x44803c(_0x225ee6['editing'],_0x3207b6);},'type':()=>'suggestion-'+_0x13db53['view']['type']}),_0xd60fd5['_bindAnnotationToEditors'](_0x41bacf,_0x2e043e),_0x480e9b['add'](_0x2e043e),_0x10e7ab['registerAnnotation'](_0x2e043e);}['_destroyController'](_0x388005){const _0x52cbab=this['editor']['plugins']['get']('CommentsRepository'),_0x16dcf9=this['editor']['plugins']['get']('Annotations'),_0x5f523a=this['_suggestionToController']['get'](_0x388005),_0x409172=_0x5f523a['view'],_0x3e3c3d=_0x16dcf9['getByInnerView'](_0x409172);_0x52cbab['_unbindEditors'](_0x409172),_0x3e3c3d&&_0x16dcf9['remove'](_0x3e3c3d),this['_suggestionToController']['delete'](_0x388005),this['_viewToController']['delete'](_0x409172),_0x5f523a['destroy']();}['_updateController'](_0x42e225){if(!_0x42e225['isInContent']||!this['_suggestionToController']['has'](_0x42e225))return;const _0x16d66a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b4c77=this['_suggestionToController']['get'](_0x42e225),_0x2a54a3=_0x42e225['getAllAdjacentSuggestions']();_0x4b4c77['view']['descriptionParts']=_0x16d66a['descriptionFactory']['getDescriptions'](_0x2a54a3);}['destroy'](){for(const _0xf9c510 of this['_suggestionToController']['keys']())this['_destroyController'](_0xf9c510);for(const _0xe15380 of this['_annotationViews']['values']())_0xe15380['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x31f9a4){return'model'in _0x31f9a4;}class k extends _0x522036{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x56b4bd){this['editor']['plugins']['get'](p)['adapter']=_0x56b4bd;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2ad9d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2ad9d4);}['getSuggestions']({skipNotAttached:_0x4c7124=!0x1,toJSON:_0x327ba2=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c7124,'toJSON':_0x327ba2});}['getSuggestion'](_0x4900d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4900d2);}}const w=['Pagination'];class T extends _0x522036{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x45008e=this['editor'];if(_0x45008e['config']['define']('trackChangesData.editorCreator',_0x478a58=>{const _0x4dd320=_0x45008e['model']['document']['getRootNames']()['reduce']((_0x542e74,_0x4ce5c1)=>(_0x542e74[_0x4ce5c1]='',_0x542e74),{});return _0x45008e['constructor']['create'](_0x4dd320,_0x478a58);}),'function'!=typeof _0x45008e['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ac58c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x418b34){return N(this['editor'],!0x0,_0x418b34);}['getDataWithDiscardedSuggestions'](_0x2f2048){return N(this['editor'],!0x1,_0x2f2048);}}class D extends _0x522036{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b1cd5){function _0x1c9dee(_0x58f1cf){return _0x58f1cf['map'](_0x8a1ba6=>String['fromCharCode'](_0x8a1ba6))['join']('');}super(_0x4b1cd5),this['result']='end',_0x4b1cd5[_0x1c9dee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9dee([0x76,0x69,0x65,0x77])][_0x1c9dee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c9dee([0x61,0x75,0x74,0x6f]),_0x4b1cd5[_0x1c9dee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c9dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c9dee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c9dee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c9dee([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 v(_0xa4997c){return void 0x0!==_0xa4997c['getRootsAttributes'];}async function N(_0x332acb,_0x24adaf,_0x32dcba){const _0x5a580d=_0x57fa87(_0x332acb,w);_0x5a580d['plugins']['push'](p,D),_0x5a580d['rootsAttributes']=v(_0x332acb)?_0x332acb['getRootsAttributes']():void 0x0;const _0xd1ab4c=document['createDocumentFragment'](),_0x2aa054=_0x332acb['config']['get']('trackChangesData')['editorCreator'],_0x1086a5=await _0x2aa054(_0x5a580d,()=>function(_0x4e5c6f){const _0x315339=document['createElement']('div');return _0x4e5c6f['appendChild'](_0x315339),_0x315339;}(_0xd1ab4c));!function(_0x12dab4,_0x1e15e1){const _0x3fe744=_0x12dab4['model']['document']['getRootNames']()['reduce']((_0x164ff2,_0x48ab92)=>(_0x164ff2[_0x48ab92]=_0x12dab4['data']['get']({'rootName':_0x48ab92}),_0x164ff2),{}),_0x2a58b2=_0x12dab4['plugins']['get']('Users')['users']['map'](_0x315566=>({'id':_0x315566['id'],'name':_0x315566['name']})),_0x4dd14c=_0x12dab4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x182c9b=_0x12dab4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1d2845=_0x1e15e1['plugins']['get']('Users'),_0x3b2fbe=_0x1e15e1['plugins']['get']('TrackChangesEditing'),_0x38d168=_0x1e15e1['plugins']['get']('CommentsRepository');for(const _0x3c19d2 of _0x38d168['getCommentThreads']())_0x3c19d2['remove']();for(const _0x337cf6 of _0x2a58b2)_0x1d2845['getUser'](_0x337cf6['id'])||_0x1d2845['addUser'](_0x337cf6);_0x1d2845['me']||_0x1d2845['useAnonymousUser']();for(const _0x5aafd9 of _0x182c9b)_0x38d168['addCommentThread'](_0x5aafd9);for(const _0x4ee006 of _0x4dd14c)_0x3b2fbe['addSuggestionData'](_0x4ee006);_0x1e15e1['data']['set'](_0x3fe744);}(_0x332acb,_0x1086a5),_0x1086a5['execute'](_0x24adaf?'acceptAllSuggestions':'discardAllSuggestions');const _0x424628=v(_0x1086a5)?_0x1086a5['getFullData'](_0x32dcba):_0x1086a5['data']['get'](_0x32dcba);return await _0x1086a5['destroy'](),_0x424628;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as Qt,Plugin as _0x579de7,PendingActions as _0x47000f,icons as _0x4e9ebb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c1a8a,ObservableMixin as _0x40aa80,uid as _0x303cc5,insertToPriorityArray as _0x2d8e7b,priorities as _0x4f4b43,logWarning as _0x2add20,getEnvKeystrokeText as _0x2b5fa3,FocusTracker as _0x5993dc,KeystrokeHandler as _0x5d4bbe,Collection as _0x209e7b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x19c35e,View as _0x288dc8,ViewCollection as _0x292df9,FocusCycler as ts,ViewModel as _0x50aa22,createDropdown as _0xdbafde,SplitButtonView as _0x8c5030,addListToDropdown as te,MenuBarMenuView as _0x2f6eef,MenuBarMenuListView as _0x42666e,ListSeparatorView as _0x144664,MenuBarMenuListItemView as _0x359136,MenuBarMenuListItemButtonView as _0x5753fa}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x21ad1e,hashObject as _0x30c346,surroundingMarkersDetector as _0x4cdbd7,FOCUS_ANNOTATION_KEYSTROKE as _0x23baf2,AriaDescriptionView as _0x59ecc7,setupThreadKeyboardNavigation as _0x57f41d,trimHtml as ti,UserView as _0x3a9542,LateFocusButtonView as _0x520a67,getDateTimeFormatter as _0x4b27af,getAllMarkersDomElementsSorted as _0x4f030e,sanitizeEditorConfig as _0x3ec0dd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1ee362,LiveRange as _0x5e91cd,LivePosition as _0x3d6a4a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x53ac15,toWidget as _0x5d2810}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x371996,set as _0x145654,isEqual as _0x3b7fb8,unset as _0x221600,omit as xt}from'lodash-es';import{Delete as _0x4862bc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x19ffea,ShiftEnter as _0x22c03a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x28ed3d,_0x486726){super(_0x28ed3d),this['_enabledCommands']=_0x486726,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 _0x598ff9 of this['editor']['commands']['commands']())_0x598ff9['affectsData']&&!this['_enabledCommands']['has'](_0x598ff9)&&_0x598ff9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x27f969 of this['editor']['commands']['commands']())_0x27f969['affectsData']&&!this['_enabledCommands']['has'](_0x27f969)&&_0x27f969['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x23ff02,_0x3ace0e){super(_0x23ff02),this['_suggestions']=_0x3ace0e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x194e3e){const _0x147330=this['_suggestions']['get'](_0x194e3e);if(!_0x147330)throw new _0x1c1a8a('track-changes-accept-suggestion-not-found',this);const _0x2effa5=_0x147330['getRanges']();this['editor']['model']['canEditAt'](_0x2effa5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x147330);}}class R extends Qt{['_suggestions'];constructor(_0x1b47d9,_0x31e633){super(_0x1b47d9),this['_suggestions']=_0x31e633,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x38456f){const _0x311904=this['_suggestions']['get'](_0x38456f);if(!_0x311904)throw new _0x1c1a8a('track-changes-discard-suggestion-not-found',this);const _0x10a73a=_0x311904['getRanges']();this['editor']['model']['canEditAt'](_0x10a73a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x311904);}}function ns(_0x3540a4,_0x1a4e11){let _0x12a399='';return _0x12a399+=_0x3540a4['split']('*')['map']((_0x4e6eda,_0x1de4d5)=>_0x1de4d5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4e6eda)+'</span>':nn(_0x4e6eda))['join'](''),_0x1a4e11&&(_0x12a399+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1a4e11['value']+'\x22\x20title=\x22'+_0x1a4e11['title']+'\x22></span>'),_0x12a399;}function nn(_0x14a7c4){const _0x2c9bbf=document['createElement']('span');return _0x2c9bbf['innerText']=_0x14a7c4,_0x2c9bbf['innerHTML'];}function Wt(_0x4cfc4f){return _0x4cfc4f['sort']((_0x1b8da6,_0x43dbaa)=>'deletion'==_0x1b8da6['type']&&'deletion'!=_0x43dbaa['type']?-0x1:'deletion'!=_0x1b8da6['type']&&'deletion'==_0x43dbaa['type']?0x1:0x0);}function to(_0x4701fb,_0x397e08){let _0x49a4ca,_0x43e92b=0x0;const _0x69ff1f=[],_0x974bec=_0x397e08['schema'];for(;_0x43e92b<_0x4701fb['length'];){const _0x359d02=_0x4701fb[_0x43e92b],_0x116e7b=_0x4701fb[_0x43e92b+0x1];_0x49a4ca||(_0x49a4ca=_0x397e08['createPositionBefore'](_0x359d02)),on(_0x397e08,_0x359d02,_0x116e7b)||(_0x69ff1f['push'](_0x397e08['createRange'](_0x49a4ca,_0x974bec['isObject'](_0x359d02)?_0x397e08['createPositionAfter'](_0x359d02):_0x397e08['createPositionAt'](_0x359d02,'end'))),_0x49a4ca=null),_0x43e92b++;}return _0x69ff1f;}function on(_0x5aac5d,_0x4b0a55,_0x38fb60){if(!_0x38fb60)return!0x1;const _0x4bdf0b=_0x5aac5d['createPositionAfter'](_0x4b0a55),_0x1feed9=_0x5aac5d['createPositionBefore'](_0x38fb60);return _0x4bdf0b['isTouching'](_0x1feed9);}function Xt(_0x43d7d6,_0x53c26a,_0x23f52b){for(;_0x23f52b['length'];){const _0x13541c=_0x23f52b['splice'](0x0,0x64);_0x43d7d6['change'](()=>{for(const _0x2043d4 of _0x13541c)_0x2043d4['isInContent']&&_0x53c26a['execute'](_0x2043d4['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x551046,_0x1b5041,_0x1fd516){super(_0x551046),this['_command']=_0x1b5041,this['_suggestions']=_0x1fd516,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1477aa=Array['from'](this['_suggestions']['values']())['some'](_0x59282b=>_0x59282b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1477aa;}['execute'](){const _0x304f85=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x21ed10 of _0x304f85){const _0x20bde2=_0x21ed10['getRanges']();if(!this['editor']['model']['canEditAt'](_0x20bde2))return;}Xt(this['editor']['model'],this['_command'],_0x304f85);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x232bac,_0x439ae7,_0x592949){super(_0x232bac),this['_command']=_0x439ae7,this['_suggestions']=_0x592949,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ac740=this['editor']['model']['document']['selection'],_0x23a8c1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x347dff,_0x70808f){const _0xbf3e02=Array['from'](_0x347dff['getRanges']()),_0x4ecf13=new Set();for(const _0x4f7c0a of _0x70808f)if(_0x4f7c0a['isInContent']){for(const _0x26a80f of _0xbf3e02)for(const _0x23236d of _0x4f7c0a['getRanges']())(_0x26a80f['isIntersecting'](_0x23236d)||_0x347dff['isCollapsed']&&!_0x4f7c0a['isMultiRange']&&_0x4f7c0a['next']&&_0x23236d['end']['isTouching'](_0x26a80f['start']))&&_0x4ecf13['add'](_0x4f7c0a);}return _0x4ecf13;}(_0x3ac740,_0x23a8c1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x139ee4=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x276433 of _0x139ee4){const _0x5e2c46=_0x276433['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e2c46))return;}Xt(this['editor']['model'],this['_command'],_0x139ee4);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x40aa80(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x582874,_0x32037d){super(),this['id']=_0x32037d['id'],this['type']=_0x32037d['type'],this['subType']=_0x32037d['subType']||null,this['author']=_0x32037d['author'],this['creator']=_0x32037d['creator']||_0x32037d['author'],this['isExternal']=Boolean(_0x32037d['attributes']&&_0x32037d['attributes']['@external']),this['data']=null,this['_model']=_0x582874,this['_onAccept']=_0x32037d['onAccept'],this['_onDiscard']=_0x32037d['onDiscard'],this['_onAttributesChange']=_0x32037d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x32037d['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 _0x2a732a=this;for(;_0x2a732a['previous'];)_0x2a732a=_0x2a732a['previous'];return _0x2a732a;}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'](_0x1aa853){this['_markerNames']['add'](_0x1aa853);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b62cf=>this['_model']['markers']['get'](_0x2b62cf))['filter'](_0x1082be=>_0x1082be);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34661b=>{for(const _0x30346f of this['getMarkers']())_0x34661b['removeMarker'](_0x30346f);}),this['_markerNames']['clear']();}['removeMarker'](_0x183a66){this['_model']['change'](_0x2138d8=>{_0x2138d8['removeMarker'](_0x183a66);}),this['_markerNames']['delete'](_0x183a66);}['addRange'](_0x36cf89){const _0x6d48bd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x6d48bd),this['_model']['change'](_0x28c6d9=>{_0x28c6d9['addMarker'](_0x6d48bd,{'range':_0x36cf89,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2315e2){for(const _0x252378 of this['getRanges']())if(_0x252378['isIntersecting'](_0x2315e2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47934b=>_0x47934b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42e532,_0x116100)=>[..._0x42e532,..._0x116100['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1f7125=this['getRanges']();if(0x1!=_0x1f7125['length'])return null;const _0x27337f=_0x1f7125[0x0],_0xfe1157=_0x27337f['start']['nodeAfter'],_0x1778db=_0x27337f['end']['nodeBefore'];return _0xfe1157 instanceof _0x1ee362?_0xfe1157!=_0x1778db?null:_0xfe1157: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 _0x4340cd=[];let _0x2dfa9c=this['head'];for(;_0x2dfa9c;)_0x4340cd['push'](_0x2dfa9c),_0x2dfa9c=_0x2dfa9c['next'];return _0x4340cd;}['setAttribute'](_0x4f0a17,_0x2d2623){const _0x1a57e7=_0x371996(this['attributes']);_0x145654(_0x1a57e7,_0x4f0a17,_0x2d2623),_0x3b7fb8(_0x1a57e7,this['attributes'])||(this['attributes']=_0x1a57e7,this['_onAttributesChange'](_0x1a57e7));}['removeAttribute'](_0x167c51){const _0x4dd43c=_0x371996(this['attributes']);_0x221600(_0x4dd43c,_0x167c51),_0x3b7fb8(_0x4dd43c,this['attributes'])||(this['attributes']=_0x4dd43c,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 _0x303cc5()['substr'](0x1,0x5);}}function o(_0x5d1b38,_0x3ae5be,_0x5b1d95){const _0x3fdbd8=_0x5d1b38['t'],t=_0x5d1b38['t'];switch(_0x3ae5be){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'*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',_0x5b1d95);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5b1d95);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5b1d95);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5b1d95);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5b1d95);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',_0x5b1d95);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5b1d95);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x5b1d95);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5b1d95);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5b1d95);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5b1d95);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5b1d95);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5b1d95);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5b1d95);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5b1d95);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5b1d95);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5b1d95);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5b1d95);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5b1d95);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5b1d95);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5b1d95);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5b1d95);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5b1d95);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5b1d95);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5b1d95);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5b1d95);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5b1d95);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5b1d95);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5b1d95);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5b1d95);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5b1d95);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'},_0x5b1d95);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'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'},_0x5b1d95);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5b1d95);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5b1d95);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 _0x3fdbd8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5b1d95);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3fdbd8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5b1d95);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5b1d95);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'},_0x5b1d95);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'},_0x5b1d95);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'},_0x5b1d95);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3ae5be;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x35074d,_0x41d229){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35074d,this['_locale']=_0x41d229;}['getDescriptions'](_0x866129){const _0x237729=[],_0x2c76f2=new Set(),_0x3e662f=new Set();for(let _0x6e95ea=0x0;_0x6e95ea<_0x866129['length'];_0x6e95ea++){const _0x20332e=_0x866129[_0x6e95ea];if(!_0x20332e['isInContent'])continue;const _0x39f68e=this['_handleCustomCallbackDescription'](_0x20332e);if(_0x39f68e){if(null!=_0x20332e['subType']){if(_0x2c76f2['has'](_0x20332e['subType']))continue;_0x2c76f2['add'](_0x20332e['subType']);}_0x237729['push'](_0x39f68e);}else{if('attribute'!=_0x20332e['type'])'insertion'!=_0x20332e['type']&&'deletion'!=_0x20332e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x237729,_0x20332e,_0x866129[_0x6e95ea+0x1]);else{const _0x2db7f8=_0x20332e['data']['key'];if(_0x3e662f['has'](_0x2db7f8))continue;_0x3e662f['add'](_0x20332e['data']['key']),_0x2db7f8==m?this['_handleRenameSuggestionDescription'](_0x237729,_0x20332e):this['_handleAttributeSuggestionDescription'](_0x237729,_0x20332e);}}}return this['_resolveDescriptionItems'](_0x237729);}['registerDescriptionCallback'](_0x109d01){this['_customCallbacks']['push'](_0x109d01);}['registerElementLabel'](_0x4cea08,_0x42c4fe,_0x3ef430=_0x4f4b43['normal']){'function'==typeof _0x4cea08?_0x2d8e7b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4cea08,'label':_0x42c4fe,'priority':_0x3ef430}):this['_itemLabels']['set'](_0x4cea08,_0x42c4fe);}['registerAttributeLabel'](_0x15661d,_0x3af10f){this['_attributeLabels']['set'](_0x15661d,_0x3af10f);}['getItemLabel'](_0x110b7f,_0x117caa=0x1){let _0x5f9acf;for(const _0x3fe90a of this['_itemLabelsCallbacks'])if(_0x3fe90a['matchingCallback'](_0x110b7f)){_0x5f9acf=_0x3fe90a['label'];break;}return _0x5f9acf||(_0x5f9acf=this['_itemLabels']['get'](_0x110b7f['name'])),_0x5f9acf?_0x5f9acf(_0x117caa):0x1!==_0x117caa?_0x117caa+'\x20'+_0x110b7f['name']+'s':''+_0x110b7f['name'];}['_addDescriptionItems'](_0x3bfd5e,_0x186cee){const _0x2acf3a=_0x186cee['getFirstRange']()['getWalker'](),_0x573a3e='insertion'==_0x186cee['type']?'add':'remove';for(const _0x59f281 of _0x2acf3a){const _0x5a7229=_0x59f281['item'],_0x234e0a=_0x3bfd5e[_0x3bfd5e['length']-0x1];if(_0x5a7229['is']('$textProxy'))_0x234e0a&&_0x234e0a['type']['indexOf']('Container')>-0x1&&_0x3bfd5e['pop'](),_0x234e0a&&'text'==_0x234e0a['type']?_0x234e0a[_0x573a3e]+=_0x5a7229['data']:_0x3bfd5e['push']({'type':'text','add':'add'==_0x573a3e?_0x5a7229['data']:'','remove':'remove'==_0x573a3e?_0x5a7229['data']:''});else{if(this['_schema']['isObject'](_0x5a7229)){const _0x22fcc3=_0x5a7229;if(_0x234e0a&&_0x234e0a['type']['indexOf']('Container')>-0x1&&_0x3bfd5e['pop'](),'elementEnd'==_0x59f281['type'])continue;_0x234e0a&&_0x234e0a['type']==_0x573a3e+'Object'&&_0x234e0a['element']['name']==_0x22fcc3['name']?_0x234e0a['quantity']++:_0x3bfd5e['push']({'type':_0x573a3e+'Object','element':_0x22fcc3,'quantity':0x1}),_0x2acf3a['skip'](_0x101833=>!('elementEnd'==_0x101833['type']&&_0x101833['item']==_0x5a7229));}else{if(this['_schema']['checkChild'](_0x5a7229,'$text')||_0x5a7229['is']('element','softBreak')){const _0x512332=_0x5a7229;if('add'==_0x573a3e&&'elementStart'==_0x59f281['type']||'remove'==_0x573a3e&&'elementEnd'==_0x59f281['type'])continue;if(_0x234e0a&&-0x1==_0x234e0a['type']['indexOf']('Container')){'text'==_0x234e0a['type']&&(_0x234e0a[_0x573a3e]+='\x0a');continue;}let _0x40190a;if(_0x40190a='add'==_0x573a3e?_0x512332['nextSibling']&&!this['_schema']['isObject'](_0x512332['nextSibling'])?_0x512332['nextSibling']:null:_0x512332['previousSibling']&&!this['_schema']['isObject'](_0x512332['previousSibling'])?_0x512332['previousSibling']:null,_0x512332['isEmpty']||_0x40190a&&_0x40190a['isEmpty']){const _0x1d6f51=_0x40190a&&_0x40190a['isEmpty']?_0x40190a:_0x512332;_0x234e0a&&_0x234e0a['type']==_0x573a3e+'EmptyContainer'&&_0x234e0a['element']['name']==_0x1d6f51['name']?_0x234e0a['quantity']++:_0x3bfd5e['push']({'type':_0x573a3e+'EmptyContainer','element':_0x1d6f51,'quantity':0x1});}else _0x3bfd5e['push']({'type':_0x573a3e+'Container','element':_0x512332});}}}}}['_resolveDescriptionItems'](_0x27757f){const _0x57dd07=this['_locale'],_0x3a303b=[],_0xd74e24=[],_0x510c71=[];for(const _0x4f45ed of _0x27757f)switch(_0x4f45ed['type']){case'text':if(_0x4f45ed['add']=_0x4f45ed['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f45ed['remove']=_0x4f45ed['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f45ed['add']&&''!=_0x4f45ed['remove']){_0x3a303b['push']({'type':'replace','content':o(_0x57dd07,'REPLACE_TEXT',['\x22'+_0x4f45ed['remove']+'\x22','\x22'+_0x4f45ed['add']+'\x22'])});continue;}if(null!=_0x4f45ed['add']['match'](/^ +$/)){_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Insert:*\x20%0',o(_0x57dd07,'ELEMENT_SPACE',_0x4f45ed['add']['length']))});continue;}if(null!=_0x4f45ed['remove']['match'](/^ +$/)){_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Remove:*\x20%0',o(_0x57dd07,'ELEMENT_SPACE',_0x4f45ed['remove']['length']))});continue;}if(''!=_0x4f45ed['add']){_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Insert:*\x20%0','\x22'+_0x4f45ed['add']+'\x22')});continue;}_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Remove:*\x20%0','\x22'+_0x4f45ed['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Insert:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Remove:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'addContainer':_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Split:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'removeContainer':_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Merge:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'addFormat':_0xd74e24['push'](_0x4f45ed['key']);continue;case'removeFormat':_0x510c71['push'](_0x4f45ed['key']);continue;default:_0x3a303b['push'](_0x4f45ed);}if(_0xd74e24['length']){const _0x559c75=_0xd74e24['map'](_0x4bf19f=>this['_attributeLabels']['has'](_0x4bf19f)?this['_attributeLabels']['get'](_0x4bf19f):_0x4bf19f)['join'](',\x20');_0x3a303b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x559c75)});}if(_0x510c71['length']){const _0x3a1f4f=_0x510c71['map'](_0x1f86be=>this['_attributeLabels']['has'](_0x1f86be)?this['_attributeLabels']['get'](_0x1f86be):_0x1f86be)['join'](',\x20');_0x3a303b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3a1f4f)});}return _0x3a303b;}['_handleCustomCallbackDescription'](_0x9f33c9){for(const _0x56772a of this['_customCallbacks']){const _0x569bb7=_0x56772a(_0x9f33c9);if(_0x569bb7&&'type'in _0x569bb7)return _0x569bb7;}}['_handleAttributeSuggestionDescription'](_0xa0d25,_0x135da1){const _0xe09d83=_0x135da1['data'],_0x45bbb3=void 0x0===_0xe09d83['newValue']?'removeFormat':'addFormat';_0xa0d25['push']({'type':_0x45bbb3,'key':_0xe09d83['key']});}['_handleRenameSuggestionDescription'](_0x49f32b,_0x465d9b){_0x49f32b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x465d9b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x555ed0,_0x3d1aa3,_0x3a5e59){if(this['_addDescriptionItems'](_0x555ed0,_0x3d1aa3),_0x3a5e59&&_0x3a5e59['getFirstRange']()&&!_0x3d1aa3['getFirstRange']()['end']['isEqual'](_0x3a5e59['getFirstRange']()['start'])){const _0x1e16bc=_0x555ed0[_0x555ed0['length']-0x1],_0x42947b='insertion'==_0x3d1aa3['type']?'add':'remove';_0x1e16bc&&'text'==_0x1e16bc['type']&&(_0x1e16bc[_0x42947b]+='\x0a');}}}class U extends _0x579de7{['afterInit'](){const _0x2cd68e=this['editor'],_0x5cf3dd=_0x2cd68e['plugins']['get']('TrackChangesEditing');_0x2cd68e['commands']['get']('showAIAssistant')&&_0x5cf3dd['enableCommand']('showAIAssistant');}}class V extends _0x579de7{['afterInit'](){const _0x3bcca2=this['editor'],_0x14211c=_0x3bcca2['locale'];if(!_0x3bcca2['plugins']['has']('AlignmentEditing'))return;const _0x2a2b61=_0x3bcca2['plugins']['get']('TrackChangesEditing');_0x2a2b61['enableDefaultAttributesIntegration']('alignment'),_0x2a2b61['registerBlockAttribute']('alignment'),_0x2a2b61['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x14211c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3abc0c=this['editor'],_0x52028f=_0x3abc0c['locale'];_0x3abc0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f26ef=>{if('formatBlock'!=_0x5f26ef['type'])return;const {data:_0x2fa891}=_0x5f26ef;if(_0x2fa891&&'alignment'==_0x2fa891['commandName']){const _0x23502b=_0x2fa891['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x52028f,'*Format:*\x20%0',function(_0x67cb6e){switch(_0x67cb6e){case'left':return o(_0x52028f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x52028f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x52028f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x52028f,'FORMAT_JUSTIFY_TEXT');}}(_0x23502b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x579de7{['afterInit'](){const _0x42ef5b=this['editor'],_0x187e9d=_0x42ef5b['plugins']['get']('TrackChangesEditing'),_0x1f45fe=_0x42ef5b['locale'];for(const _0xb6d5e2 of Zt){if(!_0x42ef5b['plugins']['has'](_0xb6d5e2))continue;const _0x43bf50=_0xb6d5e2['slice'](0x0,-0x7)['toLowerCase'](),_0x5f03d7='FORMAT_'+_0x43bf50['toUpperCase']();_0x187e9d['enableDefaultAttributesIntegration'](_0x43bf50),_0x187e9d['registerInlineAttribute'](_0x43bf50),_0x187e9d['descriptionFactory']['registerAttributeLabel'](_0x43bf50,o(_0x1f45fe,_0x5f03d7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44c9de=this['editor'],_0x903730=_0x44c9de['locale'],_0x35d122=_0x44c9de['plugins']['get']('TrackChangesEditing');function _0x4408f4(_0x10beca,_0x198441){_0x35d122['descriptionFactory']['registerDescriptionCallback'](_0x509023=>{if('formatInline'!=_0x509023['type'])return;const {data:_0x3483c2}=_0x509023;return _0x3483c2&&_0x3483c2['commandName']===_0x10beca?_0x3483c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x903730,'*Format:*\x20%0',_0x198441)}:{'type':'format','content':o(_0x903730,'*Remove\x20format:*\x20%0',_0x198441)}:void 0x0;});}_0x4408f4('bold',o(_0x903730,'FORMAT_BOLD')),_0x4408f4('italic',o(_0x903730,'FORMAT_ITALIC')),_0x4408f4('underline',o(_0x903730,'FORMAT_UNDERLINE')),_0x4408f4('code',o(_0x903730,'FORMAT_CODE')),_0x4408f4('strikethrough',o(_0x903730,'FORMAT_STRIKETHROUGH')),_0x4408f4('subscript',o(_0x903730,'FORMAT_SUBSCRIPT')),_0x4408f4('superscript',o(_0x903730,'FORMAT_SUPERSCRIPT'));}}class F extends _0x579de7{['afterInit'](){const _0x2e3d4e=this['editor'],_0x47522d=_0x2e3d4e['locale'];if(!_0x2e3d4e['plugins']['has']('BlockQuoteEditing'))return;const _0x19013b=_0x2e3d4e['plugins']['get']('TrackChangesEditing'),_0xc83881=this['editor']['commands']['get']('blockQuote');_0x19013b['enableCommand']('blockQuote',(_0x1bdd5c,_0x462a93={})=>{const _0x45e32b=this['editor']['model']['document']['selection'],_0x5efc76=_0x462a93&&void 0x0!==_0x462a93['forceValue']?_0x462a93['forceValue']:!_0xc83881['value'];let _0x2b1a26=[];if(_0x5efc76){const _0x2ca7a4=Array['from'](_0x45e32b['getSelectedBlocks']())['filter'](_0x27a8de=>oo(_0x27a8de)||function(_0x13135f,_0x251a45){const _0x4a8cb8=_0x251a45['checkChild'](_0x13135f['parent'],'blockQuote'),_0x5245d9=_0x251a45['checkChild'](['$root','blockQuote'],_0x13135f);return _0x4a8cb8&&_0x5245d9;}(_0x27a8de,this['editor']['model']['schema']));_0x2b1a26=to(_0x2ca7a4,_0x2e3d4e['model']);}else{const _0x8a0dec=Array['from'](_0x45e32b['getSelectedBlocks']())['filter'](_0x21e2a1=>oo(_0x21e2a1));_0x2b1a26=to(_0x8a0dec,_0x2e3d4e['model']);}_0x2e3d4e['model']['change'](()=>{for(const _0x9f6e6f of _0x2b1a26)_0x19013b['markBlockFormat'](_0x9f6e6f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5efc76}]});});}),_0x19013b['descriptionFactory']['registerDescriptionCallback'](_0x50bcde=>{const {data:_0x13faf0}=_0x50bcde;if(_0x13faf0&&'blockQuote'==_0x13faf0['commandName']){const _0x10662d=o(_0x47522d,'ELEMENT_BLOCK_QUOTE');return _0x13faf0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47522d,'*Set\x20format:*\x20%0',_0x10662d)}:{'type':'format','content':o(_0x47522d,'*Remove\x20format:*\x20%0',_0x10662d)};}});}}function oo(_0x3a6ca7){return'blockQuote'==_0x3a6ca7['parent']['name'];}class L extends _0x579de7{['afterInit'](){const _0x4a3814=this['editor'],_0x29ef2c=_0x4a3814['locale'],_0x57ee97=_0x4a3814['plugins']['get']('TrackChangesEditing');_0x4a3814['plugins']['has']('BookmarkEditing')&&(_0x57ee97['enableCommand']('insertBookmark'),_0x57ee97['enableDefaultAttributesIntegration']('updateBookmark'),_0x57ee97['registerBlockAttribute']('bookmarkId'),_0x57ee97['descriptionFactory']['registerDescriptionCallback'](_0x4afb7a=>{if('insertion'!=_0x4afb7a['type']&&'deletion'!=_0x4afb7a['type']&&'attribute'!=_0x4afb7a['type'])return;const _0x344afc=_0x4afb7a['getContainedElement']();if(null==_0x344afc)return;if(!_0x344afc['is']('element','bookmark'))return;const _0x1ce6a5=_0x344afc['getAttribute']('bookmarkId');if('insertion'==_0x4afb7a['type'])return{'type':'insertion','content':o(_0x29ef2c,'*Insert:*\x20%0','\x22'+_0x1ce6a5+'\x22\x20'+o(_0x29ef2c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4afb7a['type'])return{'type':'deletion','content':o(_0x29ef2c,'*Remove:*\x20%0','\x22'+_0x1ce6a5+'\x22\x20'+o(_0x29ef2c,'ELEMENT_BOOKMARK'))};const {data:_0x26f706}=_0x4afb7a;if(!_0x26f706||'bookmarkId'!=_0x26f706['key'])return;return{'type':'format','content':o(_0x29ef2c,'*Set\x20bookmark:*\x20%0','\x22'+_0x26f706['newValue']+'\x22')};}));}}class J extends _0x579de7{['afterInit'](){const _0x5d49e9=this['editor'];_0x5d49e9['plugins']['has']('CaseChange')&&(_0x5d49e9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5d49e9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5d49e9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x579de7{['afterInit'](){const _0x47c39b=this['editor'];_0x47c39b['commands']['get']('ckbox')&&_0x47c39b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x579de7{['afterInit'](){const _0x3004cb=this['editor'];if(!_0x3004cb['plugins']['has']('CodeBlock'))return;const _0x3f8988=_0x3004cb['plugins']['get']('TrackChangesEditing'),_0x4d39c4=_0x3004cb['locale'],_0x3816ce=_0x3004cb['config']['get']('codeBlock')['languages'],_0x5b16d2=_0x3004cb['commands']['get']('codeBlock');_0x3f8988['enableCommand']('indentCodeBlock'),_0x3f8988['enableCommand']('outdentCodeBlock'),_0x3f8988['enableCommand']('codeBlock',(_0x1976a0,_0x1986d7={})=>{const _0x527cca=_0x3004cb['model'],_0x224be6=_0x3004cb['model']['document']['selection'],_0xeb176b=_0x1986d7&&void 0x0!==_0x1986d7['forceValue']?_0x1986d7['forceValue']:!_0x5b16d2['value'];let _0x2a66e1;_0x1986d7['language']||(_0x1986d7['language']=_0x3816ce[0x0]['language']),_0x2a66e1=_0xeb176b?Array['from'](_0x224be6['getSelectedBlocks']())['filter'](_0x2bb76d=>eo(_0x2bb76d)||function(_0x235cb6,_0xb0f900){if(_0x235cb6['is']('rootElement')||_0xb0f900['isLimit'](_0x235cb6))return!0x1;return _0xb0f900['checkChild'](_0x235cb6['parent'],'codeBlock');}(_0x2bb76d,_0x527cca['schema'])):Array['from'](_0x224be6['getSelectedBlocks']())['filter'](_0x382011=>eo(_0x382011));const _0x226bfb=to(_0x2a66e1,_0x527cca);_0x527cca['change'](()=>{for(const _0x472764 of _0x226bfb)_0x3f8988['markBlockFormat'](_0x472764,{'commandName':'codeBlock','commandParams':[{..._0x1986d7,'forceValue':_0xeb176b}],'formatGroupId':'blockName'});});}),(_0x3f8988['descriptionFactory']['registerElementLabel']('codeBlock',_0x224db9=>o(_0x4d39c4,'ELEMENT_CODE_BLOCK',_0x224db9)),_0x3f8988['descriptionFactory']['registerDescriptionCallback'](_0x4d2b42=>{if('formatBlock'!=_0x4d2b42['type'])return;const _0x252268=_0x4d39c4['t'],{data:_0x62e45c}=_0x4d2b42;if(!_0x62e45c||'codeBlock'!=_0x62e45c['commandName'])return;const _0x281d3e=_0x62e45c['commandParams'][0x0]['language'],_0x37b749=_0x252268(_0x3816ce['find'](_0x5de346=>_0x5de346['language']===_0x281d3e)['label'])['toLowerCase']();return _0x62e45c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d39c4,'*Set\x20format:*\x20%0',o(_0x4d39c4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37b749+')')}:{'type':'format','content':o(_0x4d39c4,'*Remove\x20format:*\x20%0',o(_0x4d39c4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x58dccd){return'codeBlock'==_0x58dccd['name'];}class z extends _0x579de7{['afterInit'](){const _0x229656=this['editor'];if(!_0x229656['plugins']['has']('CommentsEditing'))return;_0x229656['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5a8cd0,_0x19fc7b,_0x5f1434){const _0x397f4c=[];for(const _0x1c8fc8 of _0x19fc7b['getItems']())_0x1c8fc8['hasAttribute'](_0x5a8cd0)&&_0x397f4c['push'](_0x5f1434['createRangeOn'](_0x1c8fc8));return _0x397f4c;}function Ne(_0x35fb9e,_0x470897,{showActiveMarker:_0x1abe54=!0x0}={}){const _0x2de2d9=_0x35fb9e['plugins']['get']('TrackChangesEditing');return(_0x4816ab,_0x28b33c,_0xb9d4e6)=>{if(!_0xb9d4e6['consumable']['test'](_0x28b33c['markerRange'],_0x4816ab['name']))return;const _0xdfc31a=_0x28b33c['markerRange']['getWalker'](),_0x1b2eed=_0x28b33c['markerRange']['start'],_0x468d50=_0x35fb9e['model']['schema'];let _0x26ac90=null,_0x3db11e=null,_0x5846fa=!0x1,_0x2f6d6a=!0x1;for(const _0x5dd96f of _0xdfc31a){const _0x9bbe10=_0x5dd96f['item'];_0x5846fa=_0x5846fa||_0x468d50['isContent'](_0x9bbe10);const _0x24a087=_0xb9d4e6['mapper']['toViewElement'](_0x9bbe10);if(_0x24a087&&_0x24a087['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5dd96f['type']&&(_0x468d50['isBlock'](_0x9bbe10)&&!_0x468d50['isLimit'](_0x9bbe10)&&(_0x9bbe10['nextSibling']||_0x1b2eed['isAtEnd']?_0x26ac90&&_0x26ac90['parent']==_0x9bbe10||(_0x26ac90=_0x9bbe10,_0x175bc0(_0x5dd96f['previousPosition']),_0x2f6d6a=!0x0):_0x3db11e=_0x3db11e||_0x5dd96f['previousPosition']));}function _0x175bc0(_0x76bde0){const {authorId:_0x37cff0}=_0x2de2d9['_splitMarkerName'](_0x28b33c['markerName']),_0x4e07ba=_0xb9d4e6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x470897,'data-author-id':_0x37cff0}),_0x269a93=_0xb9d4e6['mapper']['toViewPosition'](_0x76bde0);_0x1abe54&&_0x2de2d9['activeMarkers']['includes'](_0x28b33c['markerName'])&&_0xb9d4e6['writer']['addClass']('ck-suggestion-marker--active',_0x4e07ba),_0xb9d4e6['writer']['insert'](_0x269a93,_0x4e07ba),_0xb9d4e6['mapper']['bindElementToMarker'](_0x4e07ba,_0x28b33c['markerName']);}_0x5846fa||_0x2f6d6a||!_0x3db11e||_0x175bc0(_0x3db11e);};}class K extends _0x579de7{static get['requires'](){return[_0x4862bc];}['init'](){const _0x4d1a21=this['editor'],_0x11105b=_0x4d1a21['plugins']['get']('TrackChangesEditing');_0x11105b['enableCommand']('delete');const _0x1a9edc=_0x4d1a21['commands']['get']('deleteForward');_0x11105b['enableCommand']('deleteForward',(_0x45c24a,_0x18d943={})=>{const _0x1195ae=_0x4d1a21['model']['createSelection'](_0x4d1a21['model']['document']['selection']);_0x1195ae['isCollapsed']&&_0x4d1a21['model']['modifySelection'](_0x1195ae,{'direction':'forward','unit':_0x18d943['unit']});const _0x1df52a=_0x1195ae['getFirstRange'](),_0x18414b=_0x5e91cd['fromRange'](_0x1df52a);let _0x5026ef;_0x45c24a(_0x18d943),_0x5026ef='$graveyard'==_0x18414b['root']['rootName']?_0x4d1a21['model']['createRange'](_0x1df52a['start']):_0x4d1a21['model']['createRange'](_0x18414b['start'],_0x18414b['end']),_0x18414b['detach'](),_0x4d1a21['model']['enqueueChange'](_0x1a9edc['buffer']['batch'],_0x381ef8=>{_0x1a9edc['buffer']['lock'](),_0x381ef8['setSelection'](_0x381ef8['createRange'](_0x5026ef['end'])),_0x1a9edc['buffer']['unlock']();});}),_0x4d1a21['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x4d1a21,'merge'),{'priority':'high'}),_0x4d1a21['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x445af1,_0x24b1dc,_0x1a6c50)=>{_0x1a6c50['options']['showSuggestionHighlights']&&Ne(_0x4d1a21,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x445af1,_0x24b1dc,_0x1a6c50);},{'priority':'high'}),_0x4d1a21['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x20262d,_0x4b14e9,_0x205b50)=>{const _0x4fd84f=_0x205b50['mapper']['markerNameToElements'](_0x4b14e9['markerName']);if(_0x4fd84f){for(const _0x53db1a of _0x4fd84f)_0x53db1a['is']('uiElement')&&(_0x205b50['mapper']['unbindElementFromMarkerName'](_0x53db1a,_0x4b14e9['markerName']),_0x205b50['writer']['remove'](_0x53db1a));}},{'priority':'high'});}}class W extends _0x579de7{['afterInit'](){const _0x1bd2c7=this['editor'];if(!_0x1bd2c7['plugins']['has']('ListEditing'))return;const _0x33c53b=_0x1bd2c7['locale'],_0x3daed7=_0x1bd2c7['plugins']['get']('TrackChangesEditing'),_0xaf266f=_0x1bd2c7['plugins']['has']('TodoListEditing'),_0x1a7592=!!_0x1bd2c7['config']['get']('list.multiBlock');function _0x5d0258(_0x4a7e67){return{'type':'format','content':''+o(_0x33c53b,'*Set\x20format:*\x20%0',_0x4a7e67)};}function _0x435383(_0x10fc55){return{'type':'format','content':''+o(_0x33c53b,'*Remove\x20format:*\x20%0',_0x10fc55)};}_0x3daed7['enableDefaultAttributesIntegration']('numberedList'),_0x3daed7['enableDefaultAttributesIntegration']('bulletedList'),_0x3daed7['enableDefaultAttributesIntegration']('customNumberedList'),_0x3daed7['enableDefaultAttributesIntegration']('customBulletedList'),_0x3daed7['enableDefaultAttributesIntegration']('indentList'),_0x3daed7['enableDefaultAttributesIntegration']('outdentList'),_0x3daed7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3daed7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3daed7['registerBlockAttribute']('listItemId'),_0x3daed7['registerBlockAttribute']('listType'),_0x3daed7['registerBlockAttribute']('listIndent'),_0x1a7592&&(_0x3daed7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3daed7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xaf266f&&(_0x3daed7['enableDefaultAttributesIntegration']('todoList'),_0x3daed7['enableDefaultAttributesIntegration']('checkTodoList'),_0x3daed7['registerBlockAttribute']('todoListChecked'),_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0xa2dc21=>{const {data:_0x36cbc6}=_0xa2dc21;if(_0x36cbc6&&'todoListChecked'==_0x36cbc6['key'])return{'type':'format','content':_0x36cbc6['newValue']?o(_0x33c53b,'*Check\x20item*'):o(_0x33c53b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ff359=>{if(_0x2ff359['batch']['isUndo'])return!0x1;let _0x1da922=!0x1;const _0x52a90b=_0x3daed7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e47df=>'todoListChecked'===_0x3daed7['_getAttributeKey'](_0x4e47df));for(const _0x407aa5 of _0x52a90b){'todo'!=_0x407aa5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3daed7['_findSuggestions'](_0x407aa5['getFirstRange'](),'attribute')['find'](_0x36b7cb=>'listType'===_0x3daed7['_getAttributeKey'](_0x36b7cb['suggestion']))||(_0x2ff359['removeMarker'](_0x407aa5['getFirstMarker']()),_0x1da922=!0x0));}return _0x1da922;})),_0x3daed7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x33c53b,'FORMAT_INDENT'));const _0x449c12={'type':'format','content':''};_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0x5bee1d=>{const {data:_0x498ea1}=_0x5bee1d;if(!_0x498ea1||'listType'!=_0x498ea1['key'])return;let _0x13b265=_0x5bee1d['head'];for(;_0x13b265;){if(_0x13b265['data']&&(('listStyle'==_0x13b265['data']['key']||'listMarkerStyle'==_0x13b265['data']['key'])&&(_0x13b265['data']['newValue']&&'default'!=_0x13b265['data']['newValue']||'default'!=_0x13b265['data']['oldValue']&&!_0x498ea1['newValue'])||!_0x1a7592&&_0x13b265['data']['key']==m))return _0x449c12;_0x13b265=_0x13b265['next'];}if(null==_0x498ea1['newValue'])switch(_0x498ea1['oldValue']){case'bulleted':return _0x435383(o(_0x33c53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x435383(o(_0x33c53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x435383(o(_0x33c53b,'ELEMENT_TODO_LIST'));}switch(_0x498ea1['newValue']){case'bulleted':return _0x5d0258(o(_0x33c53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d0258(o(_0x33c53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d0258(o(_0x33c53b,'ELEMENT_TODO_LIST'));}}),_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0x311532=>{const {data:_0x2ecac0}=_0x311532;if(_0x2ecac0&&'listIndent'==_0x2ecac0['key'])return null==_0x2ecac0['newValue']||null==_0x2ecac0['oldValue']&&0x0==_0x2ecac0['newValue']?_0x449c12:void 0x0;}),_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0x55f55f=>{if('attribute'!=_0x55f55f['type'])return;const {data:_0x28ede8}=_0x55f55f;if(!_0x28ede8||'listItemId'!=_0x28ede8['key'])return;const _0x598d54=Te(_0x55f55f);return'newValue'==_0x598d54?{'type':'format','content':o(_0x33c53b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x598d54?{'type':'format','content':o(_0x33c53b,'*Split:*\x20list\x20item')}:_0x449c12;}),_0x1bd2c7['model']['document']['registerPostFixer'](_0x495dc8=>this['listItemIdFixer'](_0x495dc8)),_0x1bd2c7['model']['document']['registerPostFixer'](_0x34ec1d=>this['noTrackChangesFixer'](_0x34ec1d)),_0x1bd2c7['model']['document']['on']('change:data',(_0x2fa89d,_0x2c25e8)=>{if(_0x2c25e8['isUndo']||!_0x2c25e8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2ddf16){if(_0x2ddf16['batch']['isUndo']||!_0x2ddf16['batch']['isLocal'])return!0x1;let _0x3c2be0=!0x1;const _0x110014=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x566ad5=>_0x566ad5['data']&&'listItemId'==_0x566ad5['data']['key'])['filter'](_0xd42f21=>_0xd42f21['data']['newValue']&&_0xd42f21['data']['oldValue']);for(const _0x46c704 of _0x110014)Te(_0x46c704)||(_0x2ddf16['removeMarker'](_0x46c704['getFirstMarker']()),_0x3c2be0=!0x0);return _0x3c2be0;}['noTrackChangesFixer'](_0x575c1f){if(_0x575c1f['batch']['isUndo']||!_0x575c1f['batch']['isLocal'])return!0x1;const _0x25da56=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x25da56['trackChangesCommand']['value'])return!0x1;let _0x4dd85c=!0x1;const _0x454934=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x58985d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x515b4f=>'attribute'==_0x515b4f['type'])['filter'](_0x35acf8=>_0x454934['includes'](_0x35acf8['attributeKey']));if(0x0==_0x58985d['length'])return _0x4dd85c;for(const _0x48cc37 of _0x58985d){const _0x1dd54a=_0x25da56['_findSuggestions'](_0x48cc37['range'],'attribute')['filter'](_0x337de9=>!_0x337de9['meta']['isNextTo'])['map'](_0x49211d=>_0x49211d['suggestion'])['filter'](_0x157d70=>{const _0x463f29=_0x25da56['_getAttributeKey'](_0x157d70);return _0x454934['includes'](_0x463f29);});if(_0x1dd54a['length']){for(const _0x2bddb6 of _0x1dd54a)_0x575c1f['removeMarker'](_0x2bddb6['getFirstMarker']());_0x4dd85c=!0x0;}}return _0x4dd85c;}['assureChains'](){const _0x181fb1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13aa60=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4fbd13;const _0x2a4ad8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x117cf9=>{if(_0x117cf9['data']['oldRange']||!_0x117cf9['data']['newRange'])return null;if(!_0x117cf9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x591cf8}=_0x181fb1['_splitMarkerName'](_0x117cf9['name']);if(!_0x181fb1['hasSuggestion'](_0x591cf8))return null;const _0x287800=_0x181fb1['getSuggestion'](_0x591cf8);return _0x13aa60['includes'](_0x287800['data']['key']);})['map'](_0x392b89=>{const {id:_0x29e646}=_0x181fb1['_splitMarkerName'](_0x392b89['name']),_0x49cf78=_0x181fb1['getSuggestion'](_0x29e646);return _0x4fbd13=_0x49cf78['attributes']['groupId'],_0x49cf78['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a4ad8['size'])return;const _0x21e700=_0x181fb1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x278c5d=>'attribute'==_0x278c5d['type']&&_0x278c5d['data']&&_0x13aa60['includes'](_0x278c5d['data']['key'])&&_0x278c5d['attributes']['groupId']!=_0x4fbd13)['map'](_0x2d69d0=>({'listItem':_0x2d69d0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2d69d0['attributes']['groupId']})),_0xa89d49=new Set();for(const {groupId:_0xe96c29,listItem:_0x168e62}of _0x21e700)_0x2a4ad8['has'](_0x168e62)&&_0xa89d49['add'](_0xe96c29);for(const _0x1dc22b of _0x181fb1['getSuggestions']())_0xa89d49['has'](_0x1dc22b['attributes']['groupId'])&&_0x1dc22b['setAttribute']('groupId',_0x4fbd13);}['_supportLegacySuggestions'](){const _0x8d0dfa=this['editor'],_0x19e48d=_0x8d0dfa['locale'],_0x1e96ba=_0x8d0dfa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e96ba['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x45f7e3,_0xbfd3d1){const _0x2e4362=[];for(let _0x173f98 of _0x45f7e3)_0x173f98['start']['nodeAfter']===_0x173f98['end']['parent']&&(_0x173f98=_0x8d0dfa['model']['createRange'](_0x8d0dfa['model']['createPositionAt'](_0x173f98['start']['nodeAfter'],0x0))),_0x2e4362['push'](_0x173f98);_0x8d0dfa['model']['change'](_0x17a8ef=>{const _0x259b7c=_0x8d0dfa['model']['document']['selection'],_0x141c65=Array['from'](_0x259b7c['getRanges']())['map'](_0x2d4555=>_0x5e91cd['fromRange'](_0x2d4555));_0x17a8ef['setSelection'](_0x2e4362),_0x8d0dfa['commands']['get'](_0xbfd3d1['commandName'])['refresh'](),_0xbfd3d1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x8d0dfa['execute'](_0xbfd3d1['commandName'],..._0xbfd3d1['commandParams']),_0x17a8ef['setSelection'](_0x141c65);for(const _0x23e071 of _0x141c65)_0x23e071['detach']();});}),_0x1e96ba['descriptionFactory']['registerElementLabel'](function(_0x365dc2){const _0x2e9e10=!_0x8d0dfa['model']['schema']['isObject'](_0x365dc2),_0x8478de=_0x365dc2['previousSibling'],_0x196afb=_0x365dc2['nextSibling'],_0x3fddaa=_0x365dc2['getAttribute']('listItemId'),_0xa91497=!_0x8478de||_0x8478de['getAttribute']('listItemId')!==_0x3fddaa,_0x3e5fc2=!_0x196afb||_0x196afb['getAttribute']('listItemId')!==_0x3fddaa;return _0x2e9e10&&Boolean(_0x3fddaa)&&_0xa91497&&_0x3e5fc2;},_0x173b5c=>o(_0x19e48d,'ELEMENT_LIST_ITEM',_0x173b5c));}['_registerLegacyDescription'](){const _0x3115de=this['editor'],_0x1a0413=_0x3115de['locale'];function _0x5a8d72(_0x244a6a){const _0x54b399=_0x3115de['commands']['get']('bulletedList')['value'],_0x457957=_0x3115de['commands']['get']('numberedList')['value'];return'numberedList'===_0x244a6a?_0x54b399:_0x457957;}_0x3115de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2552a5){if('formatBlock'!=_0x2552a5['type'])return;const {data:_0x159e23}=_0x2552a5;if(!_0x159e23)return;let _0x150dd1,_0x34a259,_0x18ee3c,_0x3c69d3;switch(_0x159e23['commandName']){case'bulletedList':_0x18ee3c=_0x159e23['commandParams'][0x0]['forceValue'],_0x3c69d3=_0x5a8d72(_0x159e23['commandName']),_0x150dd1=_0x18ee3c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c69d3&&_0x3115de['config']['get']('list.multiBlock')||(_0x150dd1='*Change\x20to:*\x20%0'),_0x34a259={'type':'format','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x18ee3c=_0x159e23['commandParams'][0x0]['forceValue'],_0x3c69d3=_0x5a8d72(_0x159e23['commandName']),_0x150dd1=_0x18ee3c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c69d3&&_0x3115de['config']['get']('list.multiBlock')||(_0x150dd1='*Change\x20to:*\x20%0'),_0x34a259={'type':'format','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x150dd1='*Indent:*\x20%0',_0x34a259={'type':'format','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x150dd1=function(_0x14a313){const _0x3edcb7=_0x14a313['getFirstRange']();let _0x385ef5=_0x3edcb7['start']['nodeAfter'];for(;_0x385ef5&&_0x3edcb7['containsItem'](_0x385ef5);){if(_0x385ef5['getAttribute']('listIndent')>0x0)return!0x1;_0x385ef5=_0x385ef5['nextSibling'];}return!0x0;}(_0x2552a5)?o(_0x1a0413,'*Format:*\x20remove\x20from\x20%0',o(_0x1a0413,function(_0xac488e){return'ELEMENT_'+_0xac488e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2552a5))):o(_0x1a0413,'*Outdent:*\x20%0',o(_0x1a0413,'ELEMENT_LIST_ITEM')),_0x34a259={'type':'format','content':_0x150dd1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x159e23['multipleBlocks']&&(_0x150dd1='*Merge:*\x20%0',_0x34a259={'type':'deletion','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_LIST_ITEM'))});}return _0x34a259;});}}function Te(_0x5211f4){let _0x33ad89=_0x5211f4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x33ad89;){const _0x258164=_0x33ad89['getAttribute']('listItemId');if(!_0x258164)return!0x1;if(_0x258164==_0x5211f4['data']['newValue'])return'newValue';if(_0x258164==_0x5211f4['data']['oldValue'])return'oldValue';_0x33ad89=_0x33ad89['previousSibling'];}return!0x1;}class ye extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3148c5=this['editor']['config']['get']('list.properties'),_0x1ce606=this['editor']['plugins']['get']('TrackChangesEditing');_0x3148c5['styles']&&(_0x1ce606['enableDefaultAttributesIntegration']('listStyle'),_0x1ce606['registerBlockAttribute']('listStyle')),_0x3148c5['reversed']&&(_0x1ce606['enableDefaultAttributesIntegration']('listReversed'),_0x1ce606['registerBlockAttribute']('listReversed')),_0x3148c5['startIndex']&&(_0x1ce606['enableDefaultAttributesIntegration']('listStart'),_0x1ce606['registerBlockAttribute']('listStart'));const _0x2ada55={'type':'format','content':''};_0x1ce606['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b7fc9=this['editor']['locale'];_0x1ce606['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b7fc9,'FORMAT_LIST_REVERSED')),_0x1ce606['descriptionFactory']['registerDescriptionCallback'](_0x54ad5e=>{const {data:_0x338e2b}=_0x54ad5e;if(_0x338e2b&&'listReversed'==_0x338e2b['key'])return null==_0x338e2b['newValue']||0x0==_0x338e2b['newValue']&&null==_0x338e2b['oldValue']?_0x2ada55:void 0x0;}),_0x1ce606['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b7fc9,'FORMAT_LIST_START')),_0x1ce606['descriptionFactory']['registerDescriptionCallback'](_0x2ffefe=>{const {data:_0x44071b}=_0x2ffefe;if(_0x44071b&&'listStart'==_0x44071b['key'])return null==_0x44071b['newValue']||0x1==_0x44071b['newValue']&&null==_0x44071b['oldValue']?_0x2ada55:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x332206=>{if(_0x332206['batch']['isUndo'])return!0x1;let _0x2fe870=!0x1;const _0x303236=_0x1ce606['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c4502=>{const _0x1b5c16=_0x1ce606['_getAttributeKey'](_0x3c4502);return'listStart'==_0x1b5c16||'listReversed'==_0x1b5c16;});for(const _0x384ff9 of _0x303236){const _0x12f7c8=_0x384ff9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x12f7c8||'customNumbered'==_0x12f7c8)continue;_0x1ce606['_findSuggestions'](_0x384ff9['getFirstRange'](),'attribute')['find'](_0x57edbf=>'listType'==_0x1ce606['_getAttributeKey'](_0x57edbf['suggestion']))||(_0x332206['removeMarker'](_0x384ff9['getFirstMarker']()),_0x2fe870=!0x0);}return _0x2fe870;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5b4b95){const _0x1f07d8=this['editor']['locale'],{data:_0x25089d}=_0x5b4b95,_0x2cb4ab={'type':'format','content':''};if(!_0x25089d||'listStyle'!=_0x25089d['key'])return;if(!_0x25089d['oldValue'])return'default'==_0x25089d['newValue']?_0x2cb4ab:{'type':'format','content':''+o(_0x1f07d8,'*Set\x20format:*\x20%0',o(_0x1f07d8,this['_getTranslationKeyForListStyle'](_0x25089d['newValue'])))};if(!_0x25089d['newValue']){if('default'==_0x25089d['oldValue'])return _0x2cb4ab;let _0x163a3c=_0x5b4b95['head'];for(;_0x163a3c;){if(_0x163a3c['data']&&'listType'==_0x163a3c['data']['key']&&_0x163a3c['data']['newValue'])return _0x2cb4ab;_0x163a3c=_0x163a3c['next'];}return{'type':'format','content':''+o(_0x1f07d8,'*Remove\x20format:*\x20%0',o(_0x1f07d8,this['_getTranslationKeyForListStyle'](_0x25089d['oldValue'])))};}if('default'!=_0x25089d['newValue'])return{'type':'format','content':''+o(_0x1f07d8,'*Set\x20format:*\x20%0',o(_0x1f07d8,this['_getTranslationKeyForListStyle'](_0x25089d['newValue'])))};let _0x501eff=_0x5b4b95['head'];for(;_0x501eff;){if(_0x501eff['data']&&'listType'==_0x501eff['data']['key']&&_0x501eff['data']['newValue']&&_0x501eff['data']['oldValue'])return _0x2cb4ab;_0x501eff=_0x501eff['next'];}return{'type':'format','content':o(_0x1f07d8,'*Set\x20format:*\x20%0',o(_0x1f07d8,'ELEMENT_'+_0x5b4b95['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x239a18=this['editor'],_0x1ede25=_0x239a18['locale'];_0x239a18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7e2095=>{if('formatBlock'!=_0x7e2095['type'])return;const {data:_0x35e6a5}=_0x7e2095;if(!_0x35e6a5)return;let _0x152961,_0x24713c;switch(_0x35e6a5['commandName']){case'listStyle':_0x152961='*Change\x20to:*\x20%0',_0x24713c={'type':'format','content':o(_0x1ede25,_0x152961,o(_0x1ede25,this['_getTranslationKeyForListStyle'](_0x35e6a5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x152961=_0x35e6a5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24713c={'type':'format','content':o(_0x1ede25,_0x152961)};break;case'listStart':_0x152961='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24713c={'type':'format','content':o(_0x1ede25,_0x152961,_0x35e6a5['commandParams'][0x0]['startIndex'])};}return _0x24713c;});}['_getTranslationKeyForListStyle'](_0x340a96){return'ELEMENT_'+function(_0x29b636){if(Se['includes'](_0x29b636))return'bulleted';if(_e['includes'](_0x29b636))return'numbered';return null;}(_0x340a96)['toUpperCase']()+'_LIST_'+_0x340a96['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x579de7{static get['requires'](){return[_0x19ffea];}['init'](){const _0x2d3b61=this['editor'],_0x42e11e=_0x2d3b61['plugins']['get']('TrackChangesEditing'),_0x9dcf9a=_0x2d3b61['commands']['get']('enter');_0x42e11e['enableCommand']('enter',()=>{_0x2d3b61['model']['change'](_0x473e51=>{const _0x1886ce=_0x2d3b61['model']['document']['selection'],_0x3dbc85=_0x1886ce['getFirstPosition'](),_0x251bc4=_0x5e91cd['fromRange'](_0x1886ce['getFirstRange']());if(_0x9dcf9a['enterBlock'](_0x473e51)){const _0x564c4b=_0x2d3b61['model']['createPositionAt'](_0x3dbc85['parent']['nextSibling'],0x0),_0x25a893=_0x473e51['createRange'](_0x3dbc85,_0x564c4b);_0x42e11e['markInsertion'](_0x25a893);}else _0x473e51['setSelection'](_0x473e51['createRange'](_0x251bc4['end']));_0x251bc4['detach'](),_0x9dcf9a['fire']('afterExecute',{'writer':_0x473e51});});}),_0x2d3b61['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x2d3b61,'split'),{'priority':'high'}),_0x2d3b61['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b8a11,_0x232e09,_0x39b06d)=>{const _0x365870=_0x39b06d['mapper']['markerNameToElements'](_0x232e09['markerName']);if(_0x365870){for(const _0x3a8fc5 of _0x365870)_0x3a8fc5['hasClass']('ck-suggestion-marker-split')&&(_0x39b06d['mapper']['unbindElementFromMarkerName'](_0x3a8fc5,_0x232e09['markerName']),_0x39b06d['writer']['remove'](_0x3a8fc5));}},{'priority':'high'}),_0x2d3b61['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e20c8,_0x1c7768,_0x44e8e0)=>{_0x44e8e0['options']['showSuggestionHighlights']&&Ne(_0x2d3b61,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4e20c8,_0x1c7768,_0x44e8e0);},{'priority':'high'});}}class Y extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x229717=this['editor']['plugins']['get']('TrackChangesEditing');_0x229717['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x229717['enableCommand']('findNext'),_0x229717['enableCommand']('findPrevious'),_0x229717['enableCommand']('replace'),_0x229717['enableCommand']('replaceAll');}['handleFindCommand'](_0x424299,_0x8acb70,_0x5da707={}){const _0x4f8207=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x424299(_0x337b1a=>{let _0x459488=('string'==typeof _0x8acb70?_0x4f8207['findByTextCallback'](_0x8acb70,_0x5da707):_0x8acb70)(_0x337b1a);Array['isArray'](_0x459488)&&(_0x459488={'results':_0x459488,'searchText':'string'==typeof _0x8acb70?_0x8acb70:''});const _0x45bbff=_0x459488['results']['filter'](_0x3acfa8=>!0x1===this['_isInDeletionRange'](_0x3acfa8,_0x337b1a['item']));return{..._0x459488,'results':_0x45bbff};},_0x5da707);}['_isInDeletionRange'](_0x41eef6,_0x38328c){const _0x2acd0f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38328c,_0x41eef6['start']),this['editor']['model']['createPositionAt'](_0x38328c,_0x41eef6['end']));for(const _0x11bbe7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2acd0f['getIntersection'](_0x11bbe7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x579de7{['afterInit'](){const _0x11fa92=this['editor']['locale'],_0x4a7a85=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ca2fa,commandName:_0x1e6121}of ro)this['editor']['plugins']['has'](_0x2ca2fa)&&(_0x4a7a85['enableDefaultAttributesIntegration'](_0x1e6121),_0x4a7a85['registerInlineAttribute'](_0x1e6121));_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11fa92,'FORMAT_FONT_SIZE')),_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11fa92,'FORMAT_FONT_FAMILY')),_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11fa92,'FORMAT_FONT_COLOR')),_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11fa92,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a49b2=this['editor'],_0x4d4e48=_0x4a49b2['locale'];_0x4a49b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329c96=>{const _0x528b9e=_0x4d4e48['t'];if('formatInline'!=_0x329c96['type'])return;const {data:_0x385ef2}=_0x329c96;if(null!=_0x385ef2){if('fontSize'==_0x385ef2['commandName']){const _0xb738f9=_0x385ef2['commandParams'][0x0]['value'];if(_0xb738f9){const _0x1986e0=_0x528b9e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4732e0=>_0x4732e0['model']==_0xb738f9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20size:*\x20%0',_0x1986e0)};}return{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x385ef2['commandName']){const _0x352b69=_0x385ef2['commandParams'][0x0]['value'];return _0x352b69?{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20family:*\x20%0',_0x352b69)}:{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20family*')};}if('fontColor'==_0x385ef2['commandName']){const _0x547be4=_0x385ef2['commandParams'][0x0]['value'];if(_0x547be4){const _0x132a85=_0x19c35e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5dc76e=>_0x5dc76e['model']==_0x547be4);let _0x30d899=_0x547be4,_0x1af5a5='';return _0x132a85&&(_0x30d899=_0x132a85['label'],_0x1af5a5=_0x528b9e(_0x30d899)['toLowerCase']()),{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20color:*\x20%0',_0x1af5a5)['trim'](),'color':{'value':_0x547be4,'title':_0x1af5a5||_0x30d899}};}return{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x385ef2['commandName']){const _0x4b102b=_0x385ef2['commandParams'][0x0]['value'];if(_0x4b102b){const _0x552b23=_0x19c35e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xa0ba13=>_0xa0ba13['model']==_0x4b102b);let _0x547e1b=_0x4b102b,_0x4283cb='';return _0x552b23&&(_0x547e1b=_0x552b23['label'],_0x4283cb=_0x528b9e(_0x547e1b)['toLowerCase']()),{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20background\x20color:*\x20%0',_0x4283cb)['trim'](),'color':{'value':_0x4b102b,'title':_0x4283cb||_0x547e1b}};}return{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x579de7{['afterInit'](){const _0x57ffe7=this['editor'],_0x27fa79=_0x57ffe7['plugins']['get']('TrackChangesEditing'),_0x4411ad=_0x57ffe7['commands']['get']('copyFormat'),_0x1668fc=_0x57ffe7['commands']['get']('pasteFormat');_0x4411ad&&_0x1668fc&&(_0x27fa79['enableDefaultAttributesIntegration']('pasteFormat'),_0x27fa79['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3d9953=this['editor'],_0x280be2=_0x3d9953['locale'];_0x3d9953['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31523a=>{if('formatBlock'!=_0x31523a['type']&&'formatInline'!=_0x31523a['type'])return;const {data:_0x2cb1ee}=_0x31523a;if(_0x2cb1ee&&'pasteFormat'===_0x2cb1ee['commandName']){const _0x5ea53d=[],_0x12ceb8=_0x2cb1ee['commandParams'][0x0];for(const [_0x263ff0,_0x9a6a38]of Object['entries'](_0x12ceb8))_0x5ea53d['push'](so(_0x3d9953,_0x263ff0,_0x9a6a38));return _0x5ea53d['length']?{'type':'format','content':o(_0x280be2,'*Set\x20format\x20to:*\x20%0',_0x5ea53d['join'](',\x20'))}:{'type':'format','content':o(_0x280be2,'*Remove\x20all\x20formatting*')};}});}}function so(_0x31c6ae,_0x462388,_0x1f523f){const _0x3fe8d1=_0x31c6ae['locale']['t'],_0x27f141=_0x462388['split'](/(?=[A-Z])/)['join']('\x20'),_0x429810=_0x3fe8d1(_0x27f141['charAt'](0x0)['toUpperCase']()+_0x27f141['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1f523f)return _0x429810;if('fontColor'===_0x462388||'fontBackgroundColor'===_0x462388){const _0x254cee=_0x19c35e(_0x31c6ae['config']['get']('fontColor.colors'))['find'](_0x3635fb=>_0x3635fb['model']==_0x1f523f);return _0x429810+'\x20('+(_0x254cee?_0x3fe8d1(_0x254cee['label'])['toLowerCase']():_0x1f523f)+')';}if('fontSize'===_0x462388&&isNaN(parseFloat(_0x1f523f))){const _0x360f00=_0x31c6ae['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x31c6ae['config']['get']('fontSize.options'))['find'](_0x5ed066=>_0x5ed066['model']==_0x1f523f);return _0x429810+'\x20('+(_0x360f00?_0x3fe8d1(_0x360f00['title'])['toLowerCase']():_0x1f523f)+')';}return _0x429810+'\x20('+_0x1f523f+')';}class nt extends _0x579de7{['_headingOptions'];['afterInit'](){const _0x5d65d3=this['editor'];if(!_0x5d65d3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5d65d3['config']['get']('heading.options');const _0x2e63d=_0x5d65d3['locale'],_0x2f0316=_0x5d65d3['plugins']['get']('TrackChangesEditing');_0x2f0316['enableDefaultAttributesIntegration']('heading');for(const _0x46386e of this['_headingOptions'])'paragraph'!=_0x46386e['model']&&_0x2f0316['descriptionFactory']['registerElementLabel'](_0x46386e['model'],_0x410448=>{const _0x1a38ef=this['_getHeadingLevel'](_0x46386e['model']);return null!==_0x1a38ef?_0x4f0e97(_0x410448,_0x1a38ef):_0x514086(_0x410448,_0x46386e['title']);});function _0x4f0e97(_0x47ea47,_0x235224){return o(_0x2e63d,'ELEMENT_HEADING',[_0x47ea47,_0x235224]);}function _0x514086(_0x2e44b6,_0x204a99){return o(_0x2e63d,'ELEMENT_HEADING_CUSTOM',[_0x2e44b6,_0x204a99]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2734=this['editor'],_0x41f600=_0x3f2734['locale'];function _0x50df12(_0x399af6,_0x2ae914){return o(_0x41f600,'ELEMENT_HEADING_CUSTOM',[_0x399af6,_0x2ae914]);}_0x3f2734['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4abc6b=>{if('formatBlock'!=_0x4abc6b['type'])return;const {data:_0x29780f}=_0x4abc6b;if(_0x29780f&&'heading'==_0x29780f['commandName']){const _0x416293=_0x29780f['commandParams'][0x0]['value'],_0x2022ad=this['_getHeadingLevel'](_0x416293);if(null!==_0x2022ad)return{'type':'format','content':o(_0x41f600,'*Change\x20to:*\x20%0',(_0x3b15cd=0x1,_0x30ae11=_0x2022ad,o(_0x41f600,'ELEMENT_HEADING',[_0x3b15cd,_0x30ae11])))};const _0x2600e4=this['_headingOptions']['find'](_0x10ee86=>_0x10ee86['model']===_0x416293)['title'];return{'type':'format','content':o(_0x41f600,'*Change\x20to:*\x20%0',_0x50df12(0x1,_0x2600e4))};}var _0x3b15cd,_0x30ae11;});}['_getHeadingLevel'](_0x316cb5){const _0x877eda=_0x316cb5['match'](/^heading(\d+)/);if(_0x877eda)return _0x877eda[0x1];const _0x10f41f=this['_headingOptions']?.['find'](_0x426a47=>_0x426a47['model']==_0x316cb5);if(_0x10f41f&&_0x10f41f['view']){const _0x8270a5=_0x10f41f['view'],_0x526e56=(_0x8270a5['name']??_0x8270a5)['match'](/^h(\d+)/);if(_0x526e56)return _0x526e56[0x1];}return null;}}class it extends _0x579de7{['afterInit'](){const _0x2f0dcc=this['editor'];if(!_0x2f0dcc['plugins']['has']('HighlightEditing'))return;const _0x13a7c4=_0x2f0dcc['plugins']['get']('TrackChangesEditing'),_0x32dd9a=_0x2f0dcc['locale'];_0x13a7c4['enableDefaultAttributesIntegration']('highlight'),_0x13a7c4['registerInlineAttribute']('highlight'),_0x13a7c4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x32dd9a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x485e7e=this['editor'],_0x4c459e=_0x485e7e['locale'];_0x485e7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc65612=>{if('formatInline'!=_0xc65612['type'])return;const {data:_0x21823e}=_0xc65612;if(_0x21823e&&'highlight'==_0x21823e['commandName']){const _0x5b9ac9=_0x4c459e['t'],_0x181372=_0x21823e['commandParams'][0x0]['value'];if(_0x181372){const _0x9e41ff=_0x485e7e['config']['get']('highlight.options')['find'](_0x279915=>_0x279915['model']==_0x181372),_0x2a96ff=_0x5b9ac9(_0x9e41ff['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c459e,'*Set\x20highlight:*\x20%0',_0x2a96ff),'color':{'value':_0x9e41ff['color'],'title':_0x9e41ff['title']}};}return{'type':'format','content':o(_0x4c459e,'*Remove\x20highlight*',o(_0x4c459e,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x579de7{['afterInit'](){const _0x2943da=this['editor'];if(!_0x2943da['plugins']['has']('HorizontalLineEditing'))return;_0x2943da['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1ea714=_0x2943da['plugins']['get']('TrackChangesEditing'),_0x41a33f=_0x2943da['locale'];_0x1ea714['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d4302=>o(_0x41a33f,'ELEMENT_HORIZONTAL_LINE',_0x4d4302)),_0x2943da['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1f01fe,{writer:_0x262222,options:_0x54c6a7})=>{if(!_0x54c6a7['showSuggestionHighlights'])return null;const _0x2c9c56=_0x262222['createContainerElement']('div'),_0x3452af=_0x262222['createEmptyElement']('hr');return _0x262222['addClass']('ck-horizontal-line',_0x2c9c56),_0x262222['insert'](_0x262222['createPositionAt'](_0x2c9c56,0x0),_0x3452af),_0x2c9c56;},'converterPriority':'high'});}}class st extends _0x579de7{['afterInit'](){const _0x5b705a=this['editor'];if(!_0x5b705a['plugins']['has']('HtmlEmbed'))return;const _0x422a1f=_0x5b705a['plugins']['get']('TrackChangesEditing'),_0x3682a6=_0x5b705a['locale'];_0x422a1f['descriptionFactory']['registerElementLabel']('rawHtml',_0x523681=>o(_0x3682a6,'ELEMENT_HTML_EMBED',_0x523681)),_0x422a1f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x422a1f['registerBlockAttribute']('value'),_0x422a1f['descriptionFactory']['registerDescriptionCallback'](_0x4ef504=>{if('attribute'!=_0x4ef504['type'])return;const {data:_0x5e6fd4}=_0x4ef504;if(_0x5e6fd4&&'value'==_0x5e6fd4['key']&&_0x4ef504['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x9391f4=o(_0x3682a6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3682a6,'*Change\x20%0\x20content*',_0x9391f4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x326bfd=this['editor'],_0x20a465=_0x326bfd['locale'];_0x326bfd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d0cda=>{if('formatBlock'!=_0x6d0cda['type'])return;const {data:_0x3c43c5}=_0x6d0cda;if(_0x3c43c5&&'htmlEmbed'==_0x3c43c5['commandName']){const _0xef5d97=o(_0x20a465,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x20a465,'*Change\x20%0\x20content*',_0xef5d97)};}});}}class ot extends _0x579de7{['afterInit'](){const _0x2102be=this['editor'];if(!_0x2102be['plugins']['has']('ImageEditing'))return;const _0x248b20=_0x2102be['plugins']['get']('TrackChangesEditing'),_0x2801aa=_0x2102be['plugins']['get']('ImageUtils'),_0x301877=_0x2102be['locale'];_0x248b20['enableCommand']('insertImage'),_0x248b20['descriptionFactory']['registerElementLabel']('imageBlock',_0x31f36c=>o(_0x301877,'ELEMENT_IMAGE',_0x31f36c)),_0x248b20['descriptionFactory']['registerElementLabel']('imageInline',_0xdf206d=>o(_0x301877,'ELEMENT_INLINE_IMAGE',_0xdf206d)),_0x248b20['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x301877,'ELEMENT_CAPTION')),_0x2102be['plugins']['has']('ImageUploadEditing')&&_0x248b20['enableCommand']('uploadImage'),_0x2102be['plugins']['has']('ImageBlockEditing')&&_0x2102be['plugins']['has']('ImageInlineEditing')&&(_0x248b20['enableCommand']('imageTypeInline',(_0x59d0de,_0x3f8db2)=>{const _0x17deb7=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']);_0x2102be['model']['change'](()=>{_0x248b20['markBlockFormat'](_0x17deb7,{'commandName':'imageTypeInline','commandParams':[_0x3f8db2]},[],'convertBlockImageToInline');});}),_0x248b20['enableCommand']('imageTypeBlock',(_0x17ea9e,_0x56646f)=>{_0x2102be['model']['change'](_0x539881=>{let _0x7f91db=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x4011b4=_0x539881['createRangeOn'](_0x7f91db);const _0x3f40fe=_0x3d6a4a['fromPosition'](_0x4011b4['start'],'toPrevious'),_0x15153f=_0x3d6a4a['fromPosition'](_0x4011b4['end'],'toNext');_0x248b20['forceDefaultExecution'](()=>_0x17ea9e(_0x56646f)),_0x7f91db=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x4011b4=_0x539881['createRangeOn'](_0x7f91db);const _0x4e7f32=_0x539881['createRange'](_0x3f40fe,_0x15153f);_0x3f40fe['detach'](),_0x15153f['detach'](),_0x248b20['markBlockFormat'](_0x7f91db,{'commandName':'imageTypeInline','commandParams':[_0x56646f]},[],'convertInlineImageToBlock'),_0x4e7f32['start']['isBefore'](_0x4011b4['start'])&&_0x248b20['markInsertion'](_0x539881['createRange'](_0x4e7f32['start'],_0x4011b4['start']),'convertInlineImageToBlock'),_0x4011b4['end']['isBefore'](_0x4e7f32['end'])&&_0x248b20['markInsertion'](_0x539881['createRange'](_0x4011b4['end'],_0x4e7f32['end']),'convertInlineImageToBlock');});}),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x248b20['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5242c2])=>{const _0x3ded7b=_0x248b20['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x57eae2=_0x5242c2['start'],_0x31caf2=_0x5242c2['end'];const _0x1c85b1=_0x2102be['model']['schema']['getNearestSelectionRange'](_0x57eae2,'backward'),_0x4a9c9c=_0x2102be['model']['schema']['getNearestSelectionRange'](_0x31caf2,'forward');_0x1c85b1['isCollapsed']&&(_0x57eae2=_0x1c85b1['start']),_0x4a9c9c['isCollapsed']&&(_0x31caf2=_0x4a9c9c['end']),_0x3ded7b([_0x2102be['model']['createRange'](_0x57eae2,_0x31caf2)]);}),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x289a89),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x289a89)),_0x2102be['plugins']['has']('ImageCaptionEditing')&&(_0x248b20['enableCommand']('toggleImageCaption',(_0x4a9a90,_0x14e04e)=>{const _0x4d66a1=_0x2102be['plugins']['get']('ImageCaptionUtils');let _0x3922e2=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x217c82=_0x4d66a1['getCaptionFromImageModelElement'](_0x3922e2);_0x2102be['model']['change'](()=>{if(_0x217c82)return void _0x248b20['markDeletion'](_0x2102be['model']['createRangeOn'](_0x217c82));const _0x4cc84a=_0x2801aa['isBlockImage'](_0x3922e2);_0x4a9a90(_0x14e04e),_0x3922e2=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x217c82=_0x4d66a1['getCaptionFromImageModelElement'](_0x3922e2),_0x248b20['markInsertion'](_0x2102be['model']['createRangeOn'](_0x217c82),_0x4cc84a?null:'imageCaption');});}),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x289a89));const _0x593ee7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3eb4d5(_0x48a97d,_0x5dd9e5){const _0x30a056=_0x593ee7['findIndex'](({type:_0x49af06,subType:_0x183986})=>_0x48a97d['type']==_0x49af06&&_0x48a97d['subType']==_0x183986),_0x5cac49=_0x593ee7['findIndex'](({type:_0x4ccffd,subType:_0x5c2acf})=>_0x5dd9e5['type']==_0x4ccffd&&_0x5dd9e5['subType']==_0x5c2acf);if(_0x30a056<0x0||_0x5cac49<0x0)return!0x1;const _0x470858=_0x48a97d['getFirstRange'](),_0xb1a9ce=_0x5dd9e5['getFirstRange']();if((0x0==_0x30a056||0x1==_0x30a056)&&0x2==_0x5cac49&&_0x470858['isIntersecting'](_0xb1a9ce))return!0x0;if(0x2==_0x30a056&&0x3==_0x5cac49){const _0x1d5dce=_0x248b20['_findSuggestions'](_0x470858,'insertion')['filter'](({suggestion:_0x112fbe,meta:_0x215cc3})=>_0x215cc3['isOwn']&&'convertInlineImageToBlock'==_0x112fbe['subType']);if(_0x1d5dce['length']>0x1&&_0xb1a9ce['end']['isEqual'](_0x470858['start']))return!0x0;if(0x1==_0x1d5dce['length']&&(_0x470858['start']['isEqual'](_0xb1a9ce['end'])||_0x470858['end']['isEqual'](_0xb1a9ce['start'])))return!0x0;}if(0x3==_0x30a056&&0x3==_0x5cac49&&_0x470858['start']['isBefore'](_0xb1a9ce['start'])){const _0x136769=_0x470858['end']['nodeAfter'],_0x2e4b4b=_0xb1a9ce['start']['nodeBefore'];return _0x2801aa['isBlockImage'](_0x136769)&&_0x136769===_0x2e4b4b;}return!0x1;}function _0x289a89(_0x19a5b7,_0x332326){return _0x3eb4d5(_0x19a5b7,_0x332326)?[_0x19a5b7,_0x332326]:_0x3eb4d5(_0x332326,_0x19a5b7)?[_0x332326,_0x19a5b7]:null;}_0x2102be['plugins']['has']('ImageResize')&&(_0x248b20['enableDefaultAttributesIntegration']('resizeImage'),_0x248b20['registerBlockAttribute']('resizedWidth'),_0x248b20['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x301877,'FORMAT_IMAGE_SIZE'))),_0x2102be['plugins']['has']('ImageTextAlternativeEditing')&&(_0x248b20['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x248b20['registerBlockAttribute']('alt')),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0xa96711=>{if(!!_0x593ee7['find'](({type:_0x3a991d,subType:_0x11f9ce})=>_0xa96711['type']==_0x3a991d&&_0xa96711['subType']==_0x11f9ce))return _0xa96711['previous']?{}:void 0x0;}),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0x542e47=>{if('insertion'==_0x542e47['type']||'deletion'==_0x542e47['type']){const _0x3e4bc6=_0x542e47['getContainedElement']();if(_0x3e4bc6&&_0x3e4bc6['is']('element','caption'))return{'type':'insertion'==_0x542e47['type']?'addObject':'removeObject','element':_0x3e4bc6,'quantity':0x1};}}),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0x450651=>'formatBlock'==_0x450651['type']&&'convertInlineImageToBlock'==_0x450651['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x450651['type']&&'convertBlockImageToInline'==_0x450651['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0x4e7809=>{if('attribute'!=_0x4e7809['type'])return;const {data:_0x10c3c3}=_0x4e7809;if(!_0x10c3c3||'alt'!=_0x10c3c3['key'])return;const _0x1134e8=_0x10c3c3['newValue'];return _0x1134e8?{'type':'format','content':o(_0x301877,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1134e8+'\x22')}:{'type':'format','content':o(_0x301877,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cf59d=this['editor'],_0x3c12c4=_0x4cf59d['locale'];_0x4cf59d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a9171=>{if('formatBlock'!=_0x2a9171['type']&&'formatInline'!=_0x2a9171['type'])return;const {data:_0x372021}=_0x2a9171;if(_0x372021){if('imageTextAlternative'==_0x372021['commandName']){const _0x33f862=_0x372021['commandParams'][0x0]['newValue'];return _0x33f862?{'type':'format','content':o(_0x3c12c4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33f862+'\x22')}:{'type':'format','content':o(_0x3c12c4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x372021['commandName']){const _0x33bdf6=_0x372021['commandParams'][0x0]['width'];return _0x33bdf6?{'type':'format','content':o(_0x3c12c4,'*Set\x20image\x20width:*\x20%0',_0x33bdf6)}:{'type':'format','content':o(_0x3c12c4,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x482312=this['editor']['locale'],_0x4c0091=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c0091['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c0091['registerBlockAttribute']('src'),_0x4c0091['descriptionFactory']['registerDescriptionCallback'](_0x51d7eb=>{if('attribute'!=_0x51d7eb['type'])return;const {data:_0x38e045}=_0x51d7eb;return _0x38e045&&'src'==_0x38e045['key']?_0x38e045['newValue']&&_0x38e045['oldValue']?{'type':'format','content':o(_0x482312,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32fc8b=this['editor']['plugins']['get']('TrackChangesEditing');_0x32fc8b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x32fc8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32fc8b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x32fc8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3195d5=this['editor'],_0xaca96f=_0x3195d5['locale'];_0x3195d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414ce2=>{if('formatBlock'!=_0x414ce2['type']&&'formatInline'!=_0x414ce2['type'])return;const {data:_0x351f18}=_0x414ce2;if(!_0x351f18||'replaceImageSource'!=_0x351f18['commandName'])return;return{'type':'format','content':o(_0xaca96f,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x579de7{['afterInit'](){const _0x519672=this['editor'];if(!_0x519672['plugins']['has']('ImageStyleEditing'))return;const _0x169c8b=_0x519672['plugins']['get']('TrackChangesEditing'),_0x21b507=_0x519672['plugins']['get']('ImageUtils'),_0x36355b={};_0x169c8b['enableCommand']('imageStyle',(_0x2d363b,_0x4a10fc)=>{const _0x4e7493=_0x519672['plugins']['get']('Users')['me'],_0x37e13a=_0x519672['commands']['get']('imageStyle');let _0x267c08=_0x21b507['getClosestSelectedImageElement'](_0x519672['model']['document']['selection']),_0x30beff=_0x519672['model']['createRangeOn'](_0x267c08),_0x26a249=_0x37e13a['value'];if(_0x26a249==_0x4a10fc['value'])return;const _0x1e5531={'commandName':'imageStyle','commandParams':[_0x4a10fc],'formatGroupId':_0x303cc5()};_0x519672['model']['change'](()=>{if(_0x169c8b['getSuggestions']()['filter'](_0x1508d1=>_0x1508d1['isInContent']&&_0x4e7493==_0x1508d1['author']&&('formatBlock'==_0x1508d1['type']||'formatInline'==_0x1508d1['type'])&&('imageStylePreApply'==_0x1508d1['subType']||'imageStylePostApply'==_0x1508d1['subType'])&&_0x1508d1['getFirstRange']()['isEqual'](_0x30beff))['forEach'](_0x15fd5d=>_0x169c8b['discardSuggestion'](_0x15fd5d['head'])),_0x267c08=_0x21b507['getClosestSelectedImageElement'](_0x519672['model']['document']['selection']),_0x30beff=_0x519672['model']['createRangeOn'](_0x267c08),_0x37e13a['refresh'](),_0x519672['commands']['get']('imageTypeInline')['refresh'](),_0x519672['commands']['get']('imageTypeBlock')['refresh'](),_0x26a249=_0x37e13a['value'],_0x26a249!=_0x4a10fc['value'])return _0x21b507['isInlineImage'](_0x267c08)&&_0x37e13a['shouldConvertImageType'](_0x4a10fc['value'],_0x267c08)?(_0x2d363b({..._0x4a10fc,'setImageSizes':!0x1}),_0x267c08=_0x21b507['getClosestSelectedImageElement'](_0x519672['model']['document']['selection']),void _0x169c8b['markBlockFormat'](_0x267c08,{..._0x1e5531,'commandReversedParams':[{'value':_0x26a249||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21b507['isBlockImage'](_0x267c08)?_0x169c8b['markBlockFormat'](_0x267c08,_0x1e5531,[],'imageStylePostApply'):_0x169c8b['markInlineFormat'](_0x30beff,_0x1e5531,'imageStylePostApply'));});});for(const _0x403f76 of _0x519672['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x36355b[_0x403f76['name']]=_0x403f76['title']['toLowerCase']();_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x47f4aa])=>{_0x21b507['setImageNaturalSizeAttributes'](_0x47f4aa['getContainedElement']());}),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b56a8,_0x2750f4)=>{_0x169c8b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b56a8,{'commandName':_0x2750f4['commandName'],'commandParams':_0x2750f4['commandReversedParams']});}),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2d5c8d,_0x328667){if(_0x2e0689(_0x2d5c8d,_0x328667))return[_0x2d5c8d,_0x328667];if(_0x2e0689(_0x328667,_0x2d5c8d))return[_0x328667,_0x2d5c8d];return null;});const _0x424232=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e0689(_0x38522,_0x1784f5){const _0x5b6fd4=_0x424232['findIndex'](({type:_0x5b3d16,subType:_0x353ef3})=>_0x38522['type']==_0x5b3d16&&_0x38522['subType']==_0x353ef3),_0x8828d5=_0x424232['findIndex'](({type:_0x36c766,subType:_0xd66c83})=>_0x1784f5['type']==_0x36c766&&_0x1784f5['subType']==_0xd66c83);if(_0x5b6fd4<0x0||_0x8828d5<0x0)return!0x1;const _0x11e368=_0x38522['getFirstRange'](),_0x2b9c7d=_0x1784f5['getFirstRange']();if((0x0==_0x5b6fd4||0x1==_0x5b6fd4)&&0x2==_0x8828d5&&_0x11e368['isIntersecting'](_0x2b9c7d))return!0x0;if(0x2==_0x5b6fd4&&0x3==_0x8828d5){const _0x163847=_0x169c8b['_findSuggestions'](_0x11e368,'insertion')['filter'](({suggestion:_0x5b9e31,meta:_0x566b97})=>_0x566b97['isOwn']&&'convertInlineImageToBlock'==_0x5b9e31['subType']);if(_0x163847['length']>0x1&&_0x2b9c7d['end']['isEqual'](_0x11e368['start']))return!0x0;if(0x1==_0x163847['length']&&(_0x11e368['start']['isEqual'](_0x2b9c7d['end'])||_0x11e368['end']['isEqual'](_0x2b9c7d['start'])))return!0x0;}if(0x3==_0x5b6fd4&&0x3==_0x8828d5&&_0x11e368['start']['isBefore'](_0x2b9c7d['start'])){const _0xdff2d7=_0x11e368['end']['nodeAfter'],_0x410c28=_0x2b9c7d['start']['nodeBefore'];return _0x21b507['isBlockImage'](_0xdff2d7)&&_0xdff2d7===_0x410c28;}return!0x1;}_0x519672['model']['document']['registerPostFixer'](()=>{let _0x5bbbb3=!0x1;const _0x2f940d=Array['from'](_0x519672['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d7cd2,data:_0x1a78fd}of _0x2f940d){const {group:_0x42fe9b,type:_0x33acca,subType:_0x573591,id:_0x7f717d}=_0x169c8b['_splitMarkerName'](_0x4d7cd2);if('suggestion'==_0x42fe9b&&_0x169c8b['hasSuggestion'](_0x7f717d)){if('formatBlock'==_0x33acca&&('imageStylePreApply'==_0x573591||'imageStylePostApply'==_0x573591)){const _0x2ad58f=_0x169c8b['getSuggestion'](_0x7f717d);if(_0x1a78fd['newRange']){const _0x215565=_0x2ad58f['getFirstRange']()['getContainedElement']();if(_0x21b507['isBlockImage'](_0x215565))continue;_0x169c8b['discardSuggestion'](_0x2ad58f),_0x5bbbb3=!0x0;}}if('insertion'==_0x33acca&&'imageCaption'==_0x573591&&!_0x1a78fd['newRange']){const _0x19bda7=_0x169c8b['getSuggestion'](_0x7f717d);_0x19bda7['next']&&_0x19bda7['next']['isInContent']&&(_0x169c8b['discardSuggestion'](_0x19bda7['next']),_0x5bbbb3=!0x0);}}}return _0x5bbbb3;}),this['_registerLegacyDescription'](_0x36355b);}['_registerLegacyDescription'](_0x1398e7){const _0x5d3261=this['editor'],_0x306652=_0x5d3261['locale'];_0x5d3261['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2e09=>{if('formatBlock'!=_0x1b2e09['type']&&'formatInline'!=_0x1b2e09['type'])return;const {data:_0x3c7e49}=_0x1b2e09;if(!_0x3c7e49||'imageStyle'!=_0x3c7e49['commandName'])return;const _0x46b3a6=_0x3c7e49['commandParams'][0x0]['value'];return _0x3f76cc('side'===_0x46b3a6?o(_0x306652,'FORMAT_SIDE_IMAGE'):_0x1398e7[_0x46b3a6]||_0x46b3a6);function _0x3f76cc(_0x1763f4){return{'type':'format','content':o(_0x306652,'*Format:*\x20%0',_0x1763f4)};}});}}class ct extends _0x579de7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x36c340){super(_0x36c340),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2bf7d2=this['editor'],_0x10d2e8=_0x2bf7d2['commands']['get']('importWord'),_0xbd0568=_0x2bf7d2['commands']['get']('trackChanges');_0x10d2e8&&(_0x10d2e8['on']('execute',(_0x449ad4,[,_0x4e04ff])=>{this['_trackChangesValueDuringImport']=_0xbd0568['value'],_0x4e04ff['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x10d2e8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x10d2e8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xbd0568['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2bf7d2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x400444,_0x4f9b6a){const {suggestions:_0x35e1cd}=_0x4f9b6a,_0x25f720=this['editor']['commands']['get']('trackChanges'),_0xbf0392=_0x25f720['value'];this['_trackChangesValueDuringImport']!==_0xbf0392&&(_0x25f720['execute'](),this['_trackChangesExecuted']=!0x0),_0x35e1cd&&_0x35e1cd['forEach'](({id:_0x991ff2,type:_0x1aa074,author:_0x156909,created_at:_0x120051})=>{const _0x3cf88c={'id':_0x991ff2,'type':_0x1aa074,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x156909,'createdAt':_0x120051?new Date(_0x120051):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3cf88c);});}}class ut extends _0x579de7{['afterInit'](){const _0x2b90a0=this['editor'],_0x1fdb29=_0x2b90a0['plugins']['get']('TrackChangesEditing');if(_0x2b90a0['plugins']['has']('IndentEditing')&&(_0x1fdb29['enableCommand']('indent'),_0x1fdb29['enableCommand']('outdent')),_0x2b90a0['plugins']['has']('IndentBlock')){for(const _0x4b7147 of['indentBlock','outdentBlock'])_0x1fdb29['enableDefaultAttributesIntegration'](_0x4b7147);}const _0x5bbc0d=_0x2b90a0['locale'];_0x1fdb29['registerBlockAttribute']('blockIndent'),_0x1fdb29['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5bbc0d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x412cdf=this['editor'],_0x346a2c=_0x412cdf['locale'],_0x1743a2=_0x412cdf['plugins']['get']('TrackChangesEditing');_0x1743a2['descriptionFactory']['registerDescriptionCallback'](_0x56cf1a=>{if('formatBlock'!=_0x56cf1a['type'])return;const {data:_0x3c7ba0}=_0x56cf1a;if(!_0x3c7ba0)return;if('indentBlock'!=_0x3c7ba0['commandName']&&'outdentBlock'!=_0x3c7ba0['commandName'])return;const _0x2ef085=_0x56cf1a['getItems']()[0x0],_0x2fbdae=_0x1743a2['descriptionFactory']['getItemLabel'](_0x2ef085);return'indentBlock'==_0x3c7ba0['commandName']?{'type':'format','content':o(_0x346a2c,'*Indent:*\x20%0',_0x2fbdae)}:'outdentBlock'==_0x3c7ba0['commandName']?{'type':'format','content':o(_0x346a2c,'*Outdent:*\x20%0',_0x2fbdae)}:void 0x0;});}}class ft extends _0x579de7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x579de7{['afterInit'](){const _0x5c651c=this['editor'];if(!_0x5c651c['plugins']['has']('LinkEditing'))return;const _0x52f964=_0x5c651c['plugins']['get']('TrackChangesEditing'),_0x768c9b=_0x5c651c['commands']['get']('link');_0x52f964['enableDefaultAttributesIntegration']('link'),_0x52f964['enableDefaultAttributesIntegration']('unlink'),_0x52f964['registerInlineAttribute']('linkHref');for(const _0x340d8b of _0x768c9b['manualDecorators'])_0x52f964['registerInlineAttribute'](_0x340d8b['id']),_0x52f964['descriptionFactory']['registerAttributeLabel'](_0x340d8b['id'],'link\x20('+_0x340d8b['label']['toLowerCase']()+')');_0x52f964['descriptionFactory']['registerDescriptionCallback'](_0x48fd8e=>{if('attribute'!=_0x48fd8e['type'])return;const {data:_0x14aec5}=_0x48fd8e;if(!_0x14aec5||'linkHref'!=_0x14aec5['key'])return;const _0x183d32=_0x14aec5['newValue'],_0x3892e3=_0x5c651c['locale'];return{'type':'format','content':null==_0x183d32?o(_0x3892e3,'*Remove\x20link*'):o(_0x3892e3,'*Set\x20link:*\x20%0','\x22'+_0x183d32+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f1558=this['editor'],_0x2a7830=_0x1f1558['locale'];_0x1f1558['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cae48=>{if('formatInline'!=_0x2cae48['type'])return;const {data:_0x4d617c}=_0x2cae48;if(_0x4d617c){if('link'==_0x4d617c['commandName']){const _0x3d9db4=_0x4d617c['commandParams'][0x0];return{'type':'format','content':o(_0x2a7830,'*Set\x20link:*\x20%0','\x22'+_0x3d9db4+'\x22')};}return'unlink'==_0x4d617c['commandName']?{'type':'format','content':o(_0x2a7830,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x579de7{['afterInit'](){const _0x59fcea=this['editor'],_0x51fd13=_0x59fcea['locale'];if(!_0x59fcea['plugins']['has']('LegacyListEditing'))return;const _0x5c554a=_0x59fcea['plugins']['get']('TrackChangesEditing'),_0x8b7950=_0x59fcea['plugins']['has']('LegacyTodoListEditing');function _0x599c4e(_0xdb7136){return()=>{const _0x583baf=_0x59fcea['model']['document']['selection'],_0x5c3de1=_0x59fcea['commands']['get'](_0xdb7136);if(_0x5c3de1['value'])return void _0x59fcea['execute']('paragraph',{});const _0x31a3ae=_0xdb7136['slice'](0x0,-0x4),_0x58c688=function(_0x13e1e9,_0x5a7d11,_0x58776c){let _0x2f1f35=Array['from'](_0x13e1e9)['filter'](_0x4b313d=>function(_0xb16c31,_0xd0b87){return _0xd0b87['checkChild'](_0xb16c31['parent'],'listItem')&&!_0xd0b87['isObject'](_0xb16c31);}(_0x4b313d,_0x58776c));_0x2f1f35=_0x2f1f35['filter'](_0x31ebee=>!_0x31ebee['is']('element','listItem')||_0x31ebee['getAttribute']('listType')!=_0x5a7d11);const _0x35028a=new Set();for(const _0xe2fce5 of _0x2f1f35)_0xe2fce5['is']('element','listItem')?_0x35028a['add'](Le(_0xe2fce5)):_0x35028a['add'](_0xe2fce5);return Array['from'](_0x35028a);}(_0x583baf['getSelectedBlocks'](),_0x31a3ae,_0x59fcea['model']['schema']);_0x59fcea['model']['change'](()=>{for(const _0x2b5557 of _0x58c688)_0x5c554a['markBlockFormat'](_0x2b5557,{'commandName':_0xdb7136,'commandParams':[{'forceValue':!_0x5c3de1['value']}],'formatGroupId':'blockName'},Ee(_0x2b5557));});};}function _0x506f43(_0x104503){return()=>{const _0xee33b6=function(_0x38e3d9){let _0x2263fe=Array['from'](_0x38e3d9);const _0x1dfae3=_0x2263fe['findIndex'](_0x32e7a1=>'listItem'!=_0x32e7a1['name']);return _0x1dfae3>-0x1&&(_0x2263fe=_0x2263fe['slice'](0x0,_0x1dfae3)),_0x2263fe;}(_0x59fcea['model']['document']['selection']['getSelectedBlocks']()),_0x465e36=_0x59fcea['model']['createRange'](_0x59fcea['model']['createPositionAt'](_0xee33b6[0x0],'before'),_0x59fcea['model']['createPositionAt'](_0xee33b6[_0xee33b6['length']-0x1],'end'));_0x59fcea['model']['change'](()=>{_0x5c554a['markBlockFormat'](_0x465e36,{'commandName':_0x104503,'commandParams':[],'formatGroupId':'listIndent'},function(_0x58f541){const _0x3cdb49=new Set();for(const _0x5e4227 of _0x58f541){let _0x5ae8c7=_0x5e4227['nextSibling'];for(;_0x5ae8c7&&_0x5ae8c7['getAttribute']('listIndent')>_0x5e4227['getAttribute']('listIndent');)_0x3cdb49['add'](_0x5ae8c7),_0x5ae8c7=_0x5ae8c7['nextSibling'];}return Array['from'](_0x3cdb49);}(_0xee33b6));});};}_0x5c554a['enableCommand']('numberedList',_0x599c4e('numberedList')),_0x5c554a['enableCommand']('bulletedList',_0x599c4e('bulletedList')),_0x8b7950&&_0x5c554a['enableCommand']('todoList',_0x599c4e('todoList')),_0x5c554a['enableCommand']('indentList',_0x506f43('indentList')),_0x5c554a['enableCommand']('outdentList',_0x506f43('outdentList')),_0x8b7950&&_0x5c554a['enableCommand']('checkTodoList',()=>{const _0x36d1d0=_0x59fcea['commands']['get']('checkTodoList'),_0x1fcec7=Array['from'](_0x36d1d0['_selectedElements']);_0x1fcec7['filter'](_0x2217a2=>_0x2217a2['getAttribute']('todoListChecked')!=_0x36d1d0['value']),_0x59fcea['model']['change'](()=>{for(const _0x235cc1 of _0x1fcec7)_0x5c554a['markBlockFormat'](_0x235cc1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x36d1d0['value']}]});});}),_0x5c554a['descriptionFactory']['registerElementLabel']('listItem',_0x3296d3=>o(_0x51fd13,'ELEMENT_LIST_ITEM',_0x3296d3)),_0x5c554a['descriptionFactory']['registerDescriptionCallback'](_0x2db6c5=>{if('formatBlock'!=_0x2db6c5['type']&&'formatInline'!=_0x2db6c5['type'])return;const {data:_0x406f1f}=_0x2db6c5;if(_0x406f1f){if('numberedList'==_0x406f1f['commandName']||'bulletedList'==_0x406f1f['commandName']||'todoList'==_0x406f1f['commandName'])switch(_0x406f1f['commandName']['replace']('List','')){case'bulleted':return _0x15b245(o(_0x51fd13,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15b245(o(_0x51fd13,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15b245(o(_0x51fd13,'ELEMENT_TODO_LIST'));}if('indentList'==_0x406f1f['commandName'])return{'type':'format','content':o(_0x51fd13,'*Indent:*\x20%0',o(_0x51fd13,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x406f1f['commandName'])return{'type':'format','content':o(_0x51fd13,'*Outdent:*\x20%0',o(_0x51fd13,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x406f1f['commandName'])return _0x406f1f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51fd13,'*Check\x20item*')}:{'type':'format','content':o(_0x51fd13,'*Uncheck\x20item*')};}function _0x15b245(_0x555919){return{'type':'format','content':o(_0x51fd13,'*Change\x20to:*\x20%0',_0x555919)};}});}}function Le(_0x30c070){const _0x116b7e=_0x30c070['getAttribute']('listIndent');if(0x0==_0x116b7e)return _0x30c070;let _0x467458=_0x30c070;for(;_0x30c070['previousSibling']&&_0x30c070['previousSibling']['is']('element','listItem');){const _0x5d7683=_0x30c070['previousSibling']['getAttribute']('listIndent');if(_0x5d7683==_0x116b7e)_0x467458=_0x30c070['previousSibling'];else{if(_0x5d7683<_0x116b7e)break;}_0x30c070=_0x30c070['previousSibling'];}return _0x467458;}function Ee(_0x1e22a2){const _0x5d86e9=[];if(_0x1e22a2['is']('element','listItem')&&_0x1e22a2['getAttribute']('listIndent')>0x0){let _0x4ff374=_0x1e22a2['nextSibling'];for(;_0x4ff374&&'listItem'==_0x4ff374['name']&&_0x4ff374['getAttribute']('listIndent')==_0x1e22a2['getAttribute']('listIndent');)_0x5d86e9['push'](_0x4ff374),_0x4ff374=_0x4ff374['nextSibling'];}return _0x5d86e9;}class Q extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f0f69=this['editor']['config']['get']('list.properties'),_0x38d82e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f0f69['styles']&&_0x38d82e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f0f69['reversed']&&_0x38d82e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f0f69['startIndex']&&_0x38d82e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x38d82e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xe9e919,_0x53b177={}){const _0x953a9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c7f41=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x953a9b['markMultiRangeBlockFormat'](_0x3c7f41,{'commandName':'listStyle','commandParams':[{'type':_0x53b177['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x386826,_0x5c153d={}){const _0x3a6cf1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x180253=this['_getSuggestionBlocks'](_0x50f82e=>_0x50f82e['is']('element','listItem')&&'numbered'===_0x50f82e['getAttribute']('listType'));if(_0x180253['length']<0x1)return;const _0x185495=_0x180253['map'](_0x103cb5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x103cb5,'before'),this['editor']['model']['createPositionAt'](_0x103cb5,0x0)));this['editor']['model']['change'](()=>{_0x3a6cf1['markMultiRangeBlockFormat'](_0x185495,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c153d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x147301,_0x211ba3={}){const _0x4c13e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5357ab=this['_getSuggestionBlocks'](_0x3af212=>_0x3af212['is']('element','listItem')&&'numbered'===_0x3af212['getAttribute']('listType'));if(_0x5357ab['length']<0x1)return;const _0x4dade7=_0x5357ab['map'](_0x596902=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x596902,'before'),this['editor']['model']['createPositionAt'](_0x596902,0x0)));this['editor']['model']['change'](()=>{_0x4c13e0['markMultiRangeBlockFormat'](_0x4dade7,{'commandName':'listStart','commandParams':[{'startIndex':_0x211ba3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3348cf){if('formatBlock'!=_0x3348cf['type']&&'formatInline'!=_0x3348cf['type'])return;const _0x43eb73=this['editor']['locale'],{data:_0x206116}=_0x3348cf;if(!_0x206116)return;let _0x388c29,_0x3db304;switch(_0x206116['commandName']){case'listStyle':_0x388c29='*Change\x20to:*\x20%0',_0x3db304={'type':'format','content':o(_0x43eb73,_0x388c29,o(_0x43eb73,this['_getTranslationKeyForListStyle'](_0x206116['commandParams'][0x0]['type'])))};break;case'listReversed':_0x388c29=_0x206116['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3db304={'type':'format','content':o(_0x43eb73,_0x388c29)};break;case'listStart':_0x388c29='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3db304={'type':'format','content':o(_0x43eb73,_0x388c29,_0x206116['commandParams'][0x0]['startIndex'])};}return _0x3db304;}['_getSuggestionBlocksForListStyle'](){const _0xa70435=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c9cb8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c9cb8[0x0]?.['is']('element','listItem')&&_0x3c9cb8['unshift'](..._0xa70435['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c9cb8[_0x3c9cb8['length']-0x1]?.['is']('element','listItem')&&_0x3c9cb8['push'](..._0xa70435['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c9cb8=[...new Set(_0x3c9cb8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c9cb8=_0x3c9cb8['filter'](_0x443088=>_0x443088['is']('element','listItem'))),_0x3c9cb8;}['_getSuggestionBlocks'](_0x1e32ab){const _0x34ccd6=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ae9b6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1e32ab)['map'](_0x1dc088=>{const _0x45a248=this['editor']['model']['createPositionAt'](_0x1dc088,0x0);return[..._0x34ccd6['getSiblingNodes'](_0x45a248,'backward'),..._0x34ccd6['getSiblingNodes'](_0x45a248,'forward')];})['flat']();return _0x3ae9b6=[...new Set(_0x3ae9b6)],_0x3ae9b6;}['_getTranslationKeyForListStyle'](_0x5d2f18){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d2f18)||'default')['toUpperCase']()+'_LIST_'+_0x5d2f18['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x579de7{['afterInit'](){const _0x336a28=this['editor'];if(!_0x336a28['plugins']['has']('MediaEmbedEditing'))return;const _0x5702a5=_0x336a28['plugins']['get']('TrackChangesEditing'),_0x5b6d2a=_0x336a28['locale'];_0x5702a5['enableCommand']('mediaEmbed'),_0x5702a5['descriptionFactory']['registerElementLabel']('media',_0x3c52e8=>o(_0x5b6d2a,'ELEMENT_MEDIA',_0x3c52e8)),_0x336a28['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24ef61,{writer:_0x4b2a2c,options:_0xba7f54})=>{if(_0xba7f54['showSuggestionHighlights'])return _0x4b2a2c['createEmptyElement']('div');},'converterPriority':'high'}),_0x336a28['data']['downcastDispatcher']['on']('attribute:url:media',(_0x493282,_0x1917d8,_0x36d695)=>{_0x36d695['options']['showSuggestionHighlights']&&_0x493282['stop']();},{'priority':'high'});}}class mt extends _0x579de7{['afterInit'](){const _0xfb6099=this['editor'];_0xfb6099['plugins']['has']('MentionEditing')&&_0xfb6099['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x579de7{['afterInit'](){const _0x8bb664=this['editor'];if(!_0x8bb664['plugins']['has']('MergeFieldsEditing'))return;_0x8bb664['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x8bb664['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x8b2ecb=_0x8bb664['plugins']['get']('TrackChangesEditing'),_0x4c6bd9=_0x8bb664['locale'];_0x8b2ecb['descriptionFactory']['registerElementLabel']('mergeField',_0x284cf1=>o(_0x4c6bd9,'ELEMENT_MERGE_FIELD',_0x284cf1)),_0x8b2ecb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xd20855=>o(_0x4c6bd9,'ELEMENT_MERGE_FIELD',_0xd20855)),_0x8b2ecb['descriptionFactory']['registerDescriptionCallback'](_0x3bdf99=>{if('insertion'!=_0x3bdf99['type']&&'deletion'!=_0x3bdf99['type'])return;const _0xe1b437=_0x3bdf99['getContainedElement']();if(null==_0xe1b437)return;if(!_0xe1b437['is']('element','mergeField')&&!_0xe1b437['is']('element','mergeFieldBlock'))return;const _0x274b2d=_0x8bb664['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xe1b437['getAttribute']('id'));return'insertion'==_0x3bdf99['type']?{'type':'insertion','content':o(_0x4c6bd9,'*Insert:*\x20%0','\x22'+_0x274b2d+'\x22\x20'+o(_0x4c6bd9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4c6bd9,'*Remove:*\x20%0','\x22'+_0x274b2d+'\x22\x20'+o(_0x4c6bd9,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x579de7{['afterInit'](){const _0x3a58eb=this['editor'],_0xdd43bc=_0x3a58eb['plugins']['get']('TrackChangesEditing');_0x3a58eb['plugins']['has']('MultiLevelList')&&(_0xdd43bc['enableDefaultAttributesIntegration']('multiLevelList'),_0xdd43bc['registerBlockAttribute']('listMarkerStyle'),_0xdd43bc['descriptionFactory']['registerDescriptionCallback'](_0x54f44a=>this['handleDescriptions'](_0x54f44a)));}['handleDescriptions'](_0x32f6b3){const _0x21e605=this['editor']['locale'],{data:_0x3f9963}=_0x32f6b3,_0x1edbdf={'type':'format','content':''};if(_0x3f9963&&'listMarkerStyle'==_0x3f9963['key']){if(!_0x3f9963['oldValue'])return{'type':'format','content':o(_0x21e605,'*Set\x20format:*\x20%0',o(_0x21e605,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f9963['newValue']+')'};if(!_0x3f9963['newValue']){let _0x3589df=_0x32f6b3['head'];for(;_0x3589df;){if(_0x3589df['data']&&'listType'==_0x3589df['data']['key']&&_0x3589df['data']['newValue'])return _0x1edbdf;_0x3589df=_0x3589df['next'];}return{'type':'format','content':o(_0x21e605,'*Remove\x20format:*\x20%0',o(_0x21e605,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f9963['oldValue']+')'};}}}}class kt extends _0x579de7{['afterInit'](){const _0x499214=this['editor'];if(!_0x499214['plugins']['has']('PageBreakEditing'))return;_0x499214['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x219d6c=_0x499214['plugins']['get']('TrackChangesEditing'),_0x3855e9=_0x499214['locale'];_0x219d6c['descriptionFactory']['registerElementLabel']('pageBreak',_0x51a81d=>o(_0x3855e9,'ELEMENT_PAGE_BREAK',_0x51a81d));}}class bt extends _0x579de7{['afterInit'](){const _0x5f3331=this['editor'];if(!_0x5f3331['plugins']['has']('Paragraph'))return;const _0x44bc37=_0x5f3331['locale'],_0x90bafb=_0x5f3331['plugins']['get']('TrackChangesEditing');_0x90bafb['descriptionFactory']['registerElementLabel']('paragraph',_0x123ae6=>o(_0x44bc37,'ELEMENT_PARAGRAPH',_0x123ae6)),_0x90bafb['enableDefaultAttributesIntegration']('paragraph'),_0x90bafb['enableCommand']('insertParagraph'),_0x5f3331['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5f3331),{'priority':'highest'}),_0x5f3331['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ce722,_0x590488,_0x2e8af4)=>{_0x2e8af4['options']['showSuggestionHighlights']&&nr(_0x5f3331,{'showActiveMarker':!0x1})(_0x3ce722,_0x590488,_0x2e8af4);},{'priority':'highest'});const _0x5f58d0=_0x90bafb['descriptionFactory'];_0x5f58d0['registerDescriptionCallback'](_0xabcd2c=>{if('insertion'!==_0xabcd2c['type'])return;const {start:_0x1f6a77,end:_0x503ab0}=_0xabcd2c['getFirstRange']();if(!_0x1f6a77['isTouching'](_0x503ab0)||!_0x1f6a77['nodeAfter'])return;const _0x50d0f9=_0x5f3331['model']['schema'],_0x23c647=_0x1f6a77['nodeAfter'];return _0x50d0f9['isBlock'](_0x23c647)&&!_0x50d0f9['isLimit'](_0x23c647)&&_0x50d0f9['checkChild'](_0x23c647,'$text')?{'type':'insertion','content':o(_0x44bc37,'*Insert:*\x20%0',_0x5f58d0['getItemLabel'](_0x23c647,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbf5f8=this['editor'],_0x1209df=_0xbf5f8['locale'];_0xbf5f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400a07=>{if('formatBlock'!=_0x400a07['type'])return;const {data:_0x60d3bd}=_0x400a07;return _0x60d3bd&&'paragraph'==_0x60d3bd['commandName']?{'type':'format','content':o(_0x1209df,'*Change\x20to:*\x20%0',o(_0x1209df,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1da0a1,{showActiveMarker:_0x245988=!0x0}={}){return(_0x35273d,_0x4607b1,_0x39d7d0)=>{const _0x4a5242=_0x1da0a1['plugins']['get']('TrackChangesEditing'),_0x43d290=_0x4607b1['markerRange']['start'],_0x453c95=_0x4607b1['markerRange']['end'],_0x908d6b=_0x1da0a1['model']['schema'];if(!_0x43d290['isTouching'](_0x453c95)||!_0x43d290['nodeAfter'])return;const _0xc6dd17=_0x43d290['nodeAfter'];if(_0x908d6b['isBlock'](_0xc6dd17)&&!_0x908d6b['isLimit'](_0xc6dd17)&&_0x908d6b['checkChild'](_0xc6dd17,'$text')){if(!_0x39d7d0['consumable']['consume'](_0x4607b1['markerRange'],_0x35273d['name']))return;const {authorId:_0x5c8c3b}=_0x4a5242['_splitMarkerName'](_0x4607b1['markerName']),_0x4809fb=_0x39d7d0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5c8c3b}),_0x103b79=_0x39d7d0['mapper']['toViewPosition'](_0x453c95);_0x245988&&_0x4a5242['activeMarkers']['includes'](_0x4607b1['markerName'])&&_0x39d7d0['writer']['addClass']('ck-suggestion-marker--active',_0x4809fb),_0x39d7d0['writer']['insert'](_0x103b79,_0x4809fb),_0x39d7d0['mapper']['bindElementToMarker'](_0x4809fb,_0x4607b1['markerName']);}};}class yt extends _0x579de7{['afterInit'](){const _0x434d17=this['editor'];if(!_0x434d17['plugins']['has']('RemoveFormatEditing'))return;_0x434d17['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x526b24=this['editor'];_0x526b24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x156130=>{if('formatBlock'!=_0x156130['type']&&'formatInline'!=_0x156130['type'])return;const {data:_0x109ea9}=_0x156130;return _0x109ea9&&'removeFormat'==_0x109ea9['commandName']?{'type':'format','content':o(_0x526b24['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x579de7{['afterInit'](){const _0x1b6ea0=this['editor'];if(!_0x1b6ea0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x42a2c6=_0x1b6ea0['plugins']['get']('TrackChangesEditing');_0x42a2c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x42a2c6['enableCommand']('goToNextRestrictedEditingException');const _0x2ae19d=_0x1b6ea0['plugins']['get']('RestrictedEditingModeEditing');_0x2ae19d['enableCommand']('trackChanges'),_0x2ae19d['enableCommand']('acceptSuggestion'),_0x2ae19d['enableCommand']('discardSuggestion'),_0x2ae19d['enableCommand']('acceptAllSuggestions'),_0x2ae19d['enableCommand']('discardAllSuggestions'),_0x2ae19d['enableCommand']('acceptSelectedSuggestions'),_0x2ae19d['enableCommand']('discardSelectedSuggestions');}}class St extends _0x579de7{static get['requires'](){return[_0x22c03a];}['init'](){const _0x1d1618=this['editor'],_0x23e71a=_0x1d1618['plugins']['get']('TrackChangesEditing');_0x23e71a['enableCommand']('shiftEnter'),_0x1d1618['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x1d1618),{'priority':'high'}),_0x1d1618['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x1d1618),{'priority':'high'}),_0x1d1618['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xed1b59,_0x5d5bd4,_0xf131ce)=>{_0xf131ce['options']['showSuggestionHighlights']&&ke(_0x1d1618,{'showActiveMarker':!0x1})(_0xed1b59,_0x5d5bd4,_0xf131ce);}),_0x23e71a['descriptionFactory']['registerElementLabel']('softBreak',_0x4ddfab=>o(_0x1d1618['locale'],'ELEMENT_LINE_BREAK',_0x4ddfab));}}function ke(_0x33997d,{showActiveMarker:_0x1b0e02=!0x0}={}){return(_0xf82f32,_0x5e4266,_0x1295e5)=>{const _0x5377aa=_0x33997d['plugins']['get']('TrackChangesEditing');if(!_0x1295e5['consumable']['test'](_0x5e4266['markerRange'],_0xf82f32['name']))return;const _0x1edc46=_0x33997d['model'];for(const _0x493c5f of _0x5e4266['markerRange']['getItems']()){if(!_0x493c5f['is']('element','softBreak'))continue;const _0x1c8c0b='deletion'==_0x5e4266['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2aa59a}=_0x5377aa['_splitMarkerName'](_0x5e4266['markerName']),_0x224abe=_0x1295e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c8c0b,'data-author-id':_0x2aa59a}),_0x3e916b=_0x1295e5['mapper']['toViewPosition'](_0x1edc46['createPositionBefore'](_0x493c5f));_0x1b0e02&&_0x5377aa['activeMarkers']['includes'](_0x5e4266['markerName'])&&_0x1295e5['writer']['addClass']('ck-suggestion-marker--active',_0x224abe),_0x1295e5['writer']['insert'](_0x3e916b,_0x224abe),_0x1295e5['mapper']['bindElementToMarker'](_0x224abe,_0x5e4266['markerName']);}};}class At extends _0x579de7{['afterInit'](){const _0x2bf44c=this['editor'],_0x5df169=_0x2bf44c['model'],_0x4f6a9d=_0x2bf44c['locale'];if(!_0x2bf44c['plugins']['has']('StandardEditingModeEditing'))return;const _0xf64fd9=_0x2bf44c['plugins']['get']('TrackChangesEditing'),_0x56b4ca='restrictedEditingException',_0x37e464=_0x2bf44c['commands']['get'](_0x56b4ca);_0xf64fd9['enableCommand'](_0x56b4ca,(_0x38c611,_0xde7152={})=>{const _0x442326=_0x5df169['document']['selection'];if(_0x442326['isCollapsed'])return void _0x38c611(_0xde7152);const _0x5f1b55=void 0x0!==_0xde7152['forceValue']?_0xde7152['forceValue']:!_0x37e464['value'];_0x5df169['change'](()=>{const _0x128b1a=Array['from'](_0x442326['getRanges']());for(const _0x5d311f of _0x128b1a){const _0xa62f49=_0x5f1b55?[_0x5d311f]:io(_0x56b4ca,_0x5d311f,_0x5df169);for(const _0x425863 of _0xa62f49)_0xf64fd9['markInlineFormat'](_0x425863,{'commandName':_0x56b4ca,'commandParams':[{'forceValue':_0x5f1b55}]});}});}),_0xf64fd9['descriptionFactory']['registerDescriptionCallback'](_0x481c53=>{if('formatBlock'!=_0x481c53['type']&&'formatInline'!=_0x481c53['type'])return;const {data:_0x1edc3e}=_0x481c53;return _0x1edc3e&&_0x1edc3e['commandName']==_0x56b4ca?_0x1edc3e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f6a9d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4f6a9d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x579de7{['afterInit'](){const _0x1c4746=this['editor'];if(!_0x1c4746['plugins']['has']('Style')||!_0x1c4746['plugins']['has']('DataSchema'))return;const _0x5094a4=_0x1c4746['plugins']['get']('TrackChangesEditing'),_0x381117=_0x1c4746['locale'],_0x17f3cd=_0x1c4746['config']['get']('style')||{},_0xae34d9=_0x1c4746['plugins']['get']('GeneralHtmlSupport'),_0x5a7b45=_0x1c4746['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1c4746['plugins']['get']('DataSchema'),_0x17f3cd['definitions']);_0x5094a4['enableDefaultAttributesIntegration']('style');const _0x15180b=new Set();for(const _0x531023 of _0x5a7b45['block']){const _0x1721ea=_0xae34d9['getGhsAttributeNameForElement'](_0x531023['element']);_0x15180b['add'](_0x1721ea);}const _0x52a060=new Set();for(const _0x2b1fc2 of _0x5a7b45['inline']){const _0x527399=_0xae34d9['getGhsAttributeNameForElement'](_0x2b1fc2['element']);_0x52a060['add'](_0x527399);for(const _0x5b48b of _0x2b1fc2['ghsAttributes'])_0x52a060['add'](_0x5b48b);}for(const _0xea4a31 of _0x15180b)_0x5094a4['registerBlockAttribute'](_0xea4a31),_0x5094a4['descriptionFactory']['registerAttributeLabel'](_0xea4a31,o(_0x381117,'FORMAT_STYLE'));for(const _0x17c6e6 of _0x52a060)_0x5094a4['registerInlineAttribute'](_0x17c6e6),_0x5094a4['descriptionFactory']['registerAttributeLabel'](_0x17c6e6,o(_0x381117,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40416d=this['editor'],_0x7b744=_0x40416d['locale'];_0x40416d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41f768=>{if('formatBlock'!=_0x41f768['type']&&'formatInline'!=_0x41f768['type'])return;const {data:_0x3b4e76}=_0x41f768;return _0x3b4e76&&'style'===_0x3b4e76['commandName']?_0x3b4e76['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7b744,'*Set\x20format:*\x20%0',_0x3b4e76['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x7b744,'*Remove\x20format:*\x20%0',_0x3b4e76['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x579de7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x58fbc0){super(_0x58fbc0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ed3da=this['editor'],_0x3fddad=_0x3ed3da['model']['document']['selection'];if(!_0x3ed3da['plugins']['has']('TableEditing'))return;const _0x18fa71=_0x3ed3da['locale'],_0xb179ac=_0x3ed3da['plugins']['get']('TrackChangesEditing'),_0x152084=_0x3ed3da['plugins']['get']('TableUtils');_0xb179ac['descriptionFactory']['registerElementLabel']('table',_0x562469=>o(_0x18fa71,'ELEMENT_TABLE',_0x562469)),this['_setupColumnsRowsFixing'](),_0xb179ac['enableCommand']('insertTable'),_0xb179ac['enableCommand']('selectTableRow'),_0xb179ac['enableCommand']('selectTableColumn');for(const _0x6546e3 of['insertTableRowAbove','insertTableRowBelow']){const _0x78e2a7=_0x3ed3da['commands']['get'](_0x6546e3);_0xb179ac['enableCommand'](_0x6546e3,_0x24f782=>{_0x3ed3da['model']['change'](_0x4e776e=>{_0x24f782();const _0x492d68='above'===_0x78e2a7['order'],_0x269140=_0x152084['getSelectionAffectedTableCells'](_0x3fddad),_0x39b496=_0x152084['getRowIndexes'](_0x269140),_0x3b6bcc=_0x492d68?_0x39b496['first']-0x1:_0x39b496['last']+0x1,_0xd2f2c3=_0x269140[0x0]['findAncestor']('table'),_0x4162c3=_0x152084['createTableWalker'](_0xd2f2c3,{'startRow':_0x3b6bcc,'endRow':_0x3b6bcc}),_0x388ed1=Array['from'](_0x4162c3)['map'](_0x479a1f=>_0x4e776e['createRangeOn'](_0x479a1f['cell']));_0xb179ac['markMultiRangeInsertion'](_0x388ed1,'tableRow');});});}for(const _0xc75344 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3d8e11=_0x3ed3da['commands']['get'](_0xc75344);_0xb179ac['enableCommand'](_0xc75344,_0x4d1f26=>{_0x3ed3da['model']['change'](_0x991893=>{_0x4d1f26();const _0x4bc485='left'===_0x3d8e11['order'],_0x550070=_0x152084['getSelectionAffectedTableCells'](_0x3fddad),_0x550972=_0x152084['getColumnIndexes'](_0x550070),_0xa52ee0=_0x4bc485?_0x550972['first']-0x1:_0x550972['last']+0x1,_0x281cac=_0x550070[0x0]['findAncestor']('table'),_0x6a16f7=_0x152084['createTableWalker'](_0x281cac,{'startRow':0x0,'column':_0xa52ee0,'includeAllSlots':!0x1}),_0x3ff68a=Array['from'](_0x6a16f7)['map'](_0xff83f6=>_0x991893['createRangeOn'](_0xff83f6['cell']));_0xb179ac['markMultiRangeInsertion'](_0x3ff68a,'tableColumn');});});}for(const _0x24f37c of['removeTableRow','removeTableColumn']){const _0x5652e6=_0x24f37c['substr'](0xb),_0x5df17a=_0x5652e6['toLowerCase'](),_0x3bafa9=_0x5df17a['substr'](0x0,0x3)+'span',_0x45e58a='table'+_0x5652e6,_0x449bd2='min'+_0x5652e6,_0x54ca8c='max'+_0x5652e6;_0xb179ac['enableCommand'](_0x24f37c,()=>{_0x3ed3da['model']['change'](_0x18d837=>{const _0x18a2b1=_0x152084['getSelectionAffectedTableCells'](_0x3fddad),_0x2d86a2=_0x18a2b1[0x0]['findAncestor']('table');let _0x170e3c;if('removeTableRow'==_0x24f37c){const _0x34f665=_0x152084['getRowIndexes'](_0x18a2b1);_0x170e3c={'startRow':_0x34f665['first'],'endRow':_0x34f665['last'],'includeAllSlots':!0x0};}else{const _0x4740bb=_0x152084['getColumnIndexes'](_0x18a2b1);_0x170e3c={'startColumn':_0x4740bb['first'],'endColumn':_0x4740bb['last'],'includeAllSlots':!0x0};}const _0x472f46=_0x152084['createTableWalker'](_0x2d86a2,_0x170e3c),_0x7edb66=Array['from'](_0x472f46)['map'](({cell:_0x3dbb13})=>_0x3dbb13),_0x525d34=Re(_0x7edb66['filter'](_0x3707e2=>_0x3707e2['hasAttribute'](_0x3bafa9))),_0x403028=Re(_0x7edb66['filter'](_0x391681=>!_0x391681['hasAttribute'](_0x3bafa9)))['map'](_0x36188a=>_0x18d837['createRangeOn'](_0x36188a)),_0x551ee2=_0xb179ac['markMultiRangeDeletion'](_0x403028,_0x45e58a);if(_0x551ee2&&('tableRow'==_0x551ee2['subType']||'tableColumn'==_0x551ee2['subType'])){const _0x25e4de=this['_getSuggestionCoords'](_0x551ee2);for(const _0x437294 of _0x525d34){const _0x2d75b6=_0x18d837['createRangeOn'](_0x437294),_0x41d487=_0x152084['getCellLocation'](_0x437294),_0x5d54f8=_0x437294['getAttribute'](_0x3bafa9)-0x1,_0x70fa9c=_0x25e4de[_0x449bd2],_0x493004=_0x25e4de[_0x54ca8c];_0x70fa9c<=_0x41d487[_0x5df17a]&&_0x41d487[_0x5df17a]+_0x5d54f8<=_0x493004&&_0x551ee2['addRange'](_0x2d75b6);}}});});}function _0x5ba5cd(_0x39a239){const _0x596d48=Array['from'](_0x3fddad['getRanges']())['map'](_0xd780f9=>_0x5e91cd['fromRange'](_0xd780f9));_0x3ed3da['model']['change'](_0x2013f1=>{const _0x59d744=_0x2013f1['batch'];_0x39a239=_0x39a239['filter'](_0x35bbee=>'$graveyard'!=_0x35bbee['root']['rootName']),_0x2013f1['setSelection'](_0x39a239),_0x3ed3da['commands']['get']('removeTableRow')['refresh'](),_0x3ed3da['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ed3da['model']['enqueueChange'](()=>{_0x3ed3da['model']['enqueueChange'](_0x59d744,_0x4358b8=>{const _0x402e90=_0x596d48['filter'](_0xa1120b=>'$graveyard'!=_0xa1120b['root']['rootName']);_0x402e90['length']>0x0&&_0x4358b8['setSelection'](_0x402e90);for(const _0x15ffb7 of _0x596d48)_0x15ffb7['detach']();});});});}function _0x414c38(_0xc2eeab){_0x3ed3da['model']['change'](_0x1bd99b=>{const _0x4c297f=Array['from'](_0x3fddad['getRanges']())['map'](_0x54d0bf=>_0x5e91cd['fromRange'](_0x54d0bf)),_0x2915f4=[];for(const _0x380e84 of _0xc2eeab)for(const _0x490814 of _0x380e84['getItems']({'shallow':!0x0}))_0x2915f4['push'](_0x490814);for(const _0x56942d of _0x2915f4)'$graveyard'!=_0x56942d['root']['rootName']&&(_0x1bd99b['setSelection'](_0x1bd99b['createPositionAt'](_0x56942d,0x0)),_0x3ed3da['commands']['get']('removeTableColumn')['refresh'](),_0x3ed3da['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5656b5=_0x4c297f['filter'](_0x2a8773=>'$graveyard'!=_0x2a8773['root']['rootName']);_0x5656b5['length']>0x0&&_0x1bd99b['setSelection'](_0x5656b5);for(const _0x112677 of _0x4c297f)_0x112677['detach']();});}function _0x59ecd7(_0x88d009,_0x1ece6c){return _0x1ece6c['every'](_0xe1dd73=>_0x88d009['some'](_0x15eb90=>_0x15eb90['end']['isEqual'](_0xe1dd73['start'])||_0xe1dd73['end']['isEqual'](_0x15eb90['start'])));}function _0x196789(_0x4cb7e1,_0x40e6eb){return!_0x4cb7e1['some'](_0x1f821d=>_0x40e6eb['some'](_0x293342=>_0x1f821d['isIntersecting'](_0x293342)))&&_0x4cb7e1['some'](_0x2c8157=>_0x40e6eb['some'](_0x52555f=>_0x2c8157['end']['isTouching'](_0x52555f['start'])));}_0x3ed3da['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x589fc0,_0x4cd6c0,_0x2dc74a)=>{if(!_0x2dc74a['options']['showSuggestionHighlights'])return;const _0x2e9b15=_0x4cd6c0['item'];if(!_0x2e9b15)return;const _0x4885fc=_0x2dc74a['mapper']['toViewElement'](_0x2e9b15);function _0x5b27bb(_0x2c1bdb){return Array['isArray'](_0x2c1bdb)?_0x2c1bdb:[_0x2c1bdb];}_0x4885fc&&'tableCell'===_0x2e9b15['name']&&_0x53ac15(_0x4885fc,_0x2dc74a['writer'],(_0x13062e,_0x184c87,_0x231f47)=>_0x231f47['addClass'](_0x5b27bb(_0x184c87['classes']),_0x13062e),(_0x163013,_0x3cec07,_0x522470)=>_0x522470['removeClass'](_0x5b27bb(_0x3cec07['classes']),_0x163013));},{'priority':'highest'}),_0xb179ac['descriptionFactory']['registerDescriptionCallback'](_0x34f90=>{if('insertion'!=_0x34f90['type']&&'deletion'!=_0x34f90['type'])return;const _0xfbaabc=_0x34f90['getContainedElement']();if(null!=_0xfbaabc&&_0xfbaabc['is']('element','table')){if('insertion'==_0x34f90['type']){const _0x12d109=_0x34f90['getItems']()['filter'](_0x11af87=>_0x11af87['is']('$textProxy'))['map'](_0x42575c=>_0x42575c['data']);if(_0x12d109['length'])return{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12d109['join']('\x20')+'\x22'))};}if('deletion'==_0x34f90['type']){const _0x3a172c=_0x34f90['getItems']()['filter'](_0x4d7efa=>_0x4d7efa['is']('$textProxy'))['map'](_0x162b77=>_0x162b77['data']);if(_0x3a172c['length'])return{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a172c['join']('\x20')+'\x22'))};}}}),_0xb179ac['descriptionFactory']['registerDescriptionCallback'](_0x4b6838=>{if('tableRow'==_0x4b6838['subType']){const _0x3de8c1=_0x4b6838['getItems']()['filter'](_0x3a1771=>_0x3a1771['is']('$textProxy'))['map'](_0x52a8f0=>_0x52a8f0['data']),_0x22733e=this['_getSuggestionCoords'](_0x4b6838),_0x8bbf8a=_0x22733e['maxRow']-_0x22733e['minRow']+0x1;if('insertion'==_0x4b6838['type'])return _0x3de8c1['length']?{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x8bbf8a,'\x22'+_0x3de8c1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW',_0x8bbf8a))};if('deletion'==_0x4b6838['type'])return _0x3de8c1['length']?{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x8bbf8a,'\x22'+_0x3de8c1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW',_0x8bbf8a))};}if('tableColumn'==_0x4b6838['subType']){const _0xc54752=_0x4b6838['getItems']()['filter'](_0x592cec=>_0x592cec['is']('$textProxy'))['map'](_0x5457d4=>_0x5457d4['data']),_0x5483a1=this['_getSuggestionCoords'](_0x4b6838),_0x34ad2b=_0x5483a1['maxColumn']-_0x5483a1['minColumn']+0x1;if('insertion'==_0x4b6838['type'])return _0xc54752['length']?{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ad2b,'\x22'+_0xc54752['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN',_0x34ad2b))};if('deletion'==_0x4b6838['type'])return _0xc54752['length']?{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ad2b,'\x22'+_0xc54752['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN',_0x34ad2b))};}}),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ba5cd),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ba5cd),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x414c38),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x414c38),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x59ecd7),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x59ecd7),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x196789),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x196789);}['_acceptFormatSuggestionCallbackFactory'](){const _0x38e915=this['editor'],_0x1858a3=_0x38e915['model']['document']['selection'];return(_0x1f4b88,_0x42661a)=>{_0x38e915['model']['change'](_0x36e197=>{const {commandName:_0x53ca97,commandParams:_0xb5f735}=_0x42661a;let _0xf9c213=_0x1f4b88[0x0]['end']['nodeBefore'];_0xb5f735&&_0xb5f735[0x0]&&!0x1===_0xb5f735[0x0]['forceValue']&&(_0xf9c213=_0x1f4b88[0x0]['start']['nodeAfter']);const _0x2d479a=_0x36e197['createRangeIn'](_0xf9c213);if('$graveyard'==_0x2d479a['root']['rootName'])return;const _0x573a40=Array['from'](_0x1858a3['getRanges']())['map'](_0x3b4257=>_0x5e91cd['fromRange'](_0x3b4257));_0x36e197['setSelection'](_0x2d479a),_0x38e915['commands']['get'](_0x53ca97)['refresh'](),_0xb5f735['push']({'forceDefaultExecution':!0x0}),_0x38e915['execute'](_0x53ca97,..._0xb5f735);const _0x48fb82=_0x573a40['filter'](_0x1ea063=>'$graveyard'!=_0x1ea063['root']['rootName']);_0x48fb82['length']>0x0&&_0x36e197['setSelection'](_0x48fb82);for(const _0x294051 of _0x573a40)_0x294051['detach']();});};}['_getCoordsForCells'](_0x5b8751){const _0xfdf0ea=this['editor']['plugins']['get']('TableUtils');let _0x446710=Number['MAX_SAFE_INTEGER'],_0x4d27c5=Number['MIN_SAFE_INTEGER'],_0x2f4843=Number['MAX_SAFE_INTEGER'],_0x5923f4=Number['MIN_SAFE_INTEGER'];for(const _0x299a0a of _0x5b8751){if('$graveyard'==_0x299a0a['root']['rootName'])continue;const {row:_0x2ca9a1,column:_0x31464e}=_0xfdf0ea['getCellLocation'](_0x299a0a),_0x534431=_0x299a0a['hasAttribute']('rowspan')?_0x299a0a['getAttribute']('rowspan')-0x1:0x0,_0x97b6a0=_0x299a0a['hasAttribute']('colspan')?_0x299a0a['getAttribute']('colspan')-0x1:0x0;_0x446710=_0x2ca9a1<_0x446710?_0x2ca9a1:_0x446710,_0x4d27c5=_0x2ca9a1+_0x534431>_0x4d27c5?_0x2ca9a1+_0x534431:_0x4d27c5,_0x2f4843=_0x31464e<_0x2f4843?_0x31464e:_0x2f4843,_0x5923f4=_0x31464e+_0x97b6a0>_0x5923f4?_0x31464e+_0x97b6a0:_0x5923f4;}return{'minRow':_0x446710,'maxRow':_0x4d27c5,'minColumn':_0x2f4843,'maxColumn':_0x5923f4};}['_setupColumnsRowsFixing'](){const _0x1edf8a=this['editor'],_0x5aa5c9=_0x1edf8a['plugins']['get']('TrackChangesEditing'),_0x4b3e8b=_0x1edf8a['plugins']['get']('TableUtils');_0x1edf8a['model']['document']['on']('change:data',()=>{const _0x12ba7d=Array['from'](_0x1edf8a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x465bd6,data:_0x18fd12}of _0x12ba7d){const {group:_0x35e217,id:_0x4324d0,subType:_0x53b820}=_0x5aa5c9['_splitMarkerName'](_0x465bd6);if('suggestion'!=_0x35e217)continue;if(null!=_0x18fd12['oldRange'])continue;const _0x531423=_0x5aa5c9['getSuggestion'](_0x4324d0);this['_tablePostFixingSubtypes']['includes'](_0x53b820)&&this['_tableSuggestions']['add'](_0x531423);}},{'priority':'low'});const _0x9e42b7=(_0x89cd2b,_0x44a2ce)=>{let _0x5cf122=!0x1;const _0x4d85f7=_0x44a2ce['createRangeOn'](_0x89cd2b),_0x443ecd=_0x89cd2b['findAncestor']('table'),_0x1cf3e2=_0x4b3e8b['getCellLocation'](_0x89cd2b);for(const _0x363d70 of this['_tableSuggestions']){const _0x5dae6c=_0x363d70['subType'],_0x1ba0ca=_0x5dae6c['startsWith']('tablePaste'),_0x1d1ad5=_0x5dae6c['substr'](_0x1ba0ca?0xa:0x5),_0x552887=_0x1d1ad5['toLowerCase'](),_0x991b3a=_0x552887['substr'](0x0,0x3)+'span',_0x1937d5='min'+_0x1d1ad5,_0x526a66='max'+_0x1d1ad5;if(!_0x363d70['isInContent'])continue;if(_0x443ecd!=_0x363d70['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x363d70['isIntersectingWithRange'](_0x4d85f7))continue;const _0x3ed9f7=_0x89cd2b['hasAttribute'](_0x991b3a)?_0x89cd2b['getAttribute'](_0x991b3a)-0x1:0x0,_0x449661=this['_getSuggestionCoords'](_0x363d70),_0x570708=_0x449661[_0x1937d5],_0x4fed15=_0x449661[_0x526a66];_0x570708<=_0x1cf3e2[_0x552887]&&_0x1cf3e2[_0x552887]+_0x3ed9f7<=_0x4fed15&&(_0x363d70['addRange'](_0x4d85f7),_0x5cf122=!0x0);}return _0x5cf122;};_0x1edf8a['model']['document']['registerPostFixer'](_0x273854=>{let _0x15bfdf=!0x1;for(const _0x2ff640 of _0x1edf8a['model']['document']['differ']['getChanges']())if('insert'==_0x2ff640['type']){if('tableRow'==_0x2ff640['name']){for(const _0x129893 of _0x2ff640['position']['nodeAfter']['getChildren']())_0x15bfdf=_0x15bfdf||_0x9e42b7(_0x129893,_0x273854);}else'tableCell'==_0x2ff640['name']&&(_0x15bfdf=_0x15bfdf||_0x9e42b7(_0x2ff640['position']['nodeAfter'],_0x273854));}return _0x15bfdf;});}['_getSuggestionCoords'](_0x11bf20){return this['_getCoordsForCells'](_0x11bf20['getRanges']()['map'](_0x212a66=>_0x212a66['start']['nodeAfter']));}}function Re(_0x5e61d3){return Array['from'](new Set(_0x5e61d3)['values']());}class _t extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x5afe80=this['editor'],_0x43f61e=_0x5afe80['model']['document']['selection'],_0xc2e28c=_0x5afe80['locale'];if(!_0x5afe80['plugins']['has']('TableEditing'))return;const _0x5a0022=_0x5afe80['plugins']['get']('TrackChangesEditing'),_0x59fc43=_0x5afe80['plugins']['get']('TableUtils'),_0x513e4a=_0x5afe80['plugins']['get'](vt);_0x513e4a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5a0022['enableCommand']('mergeTableCells',()=>{const _0x408770=_0x59fc43['getSelectionAffectedTableCells'](_0x5afe80['model']['document']['selection']);_0x5afe80['model']['change'](()=>{_0x5a0022['markMultiRangeBlockFormat'](_0x408770,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5afe80['commands']['get']('mergeTableCells')['on']('execute',(_0x2f5ac7,_0x9ef97d)=>{_0x5afe80['commands']['get']('trackChanges')['value']&&(_0x9ef97d['length']>0x0&&_0x9ef97d[_0x9ef97d['length']-0x1]&&_0x9ef97d[_0x9ef97d['length']-0x1]['forceDefaultExecution']||_0x5a0022['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2f5ac7['stop']());},{'priority':'highest'});for(const _0x89bf86 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x14f209=_0x5afe80['commands']['get'](_0x89bf86);_0x5a0022['enableCommand'](_0x89bf86,()=>{const _0xb52a3b=_0x5afe80['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbf65fa=>_0xbf65fa['is']('element','tableCell')),_0x149cd8=_0x14f209['value'];_0x5afe80['model']['change'](()=>{_0x5a0022['markMultiRangeBlockFormat']([_0xb52a3b,_0x149cd8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2f9289 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2a3d13=_0x5afe80['commands']['get'](_0x2f9289);_0x5a0022['enableCommand'](_0x2f9289,()=>{const _0x594e3a=_0x59fc43['getSelectionAffectedTableCells'](_0x5afe80['model']['document']['selection'])[0x0],_0x3976d1=_0x594e3a['findAncestor']('table'),{column:_0x35c07a,row:_0x17d8e6}=_0x59fc43['getCellLocation'](_0x594e3a);let _0x152dbd=[];if('horizontally'==_0x2a3d13['direction']){const _0x38fe65=_0x59fc43['createTableWalker'](_0x3976d1,{'startRow':_0x17d8e6,'endRow':_0x17d8e6,'includeAllSlots':!0x0});_0x152dbd=Array['from'](_0x38fe65)['map'](_0x32a223=>_0x32a223['cell']);}else{const _0x399faa=_0x59fc43['createTableWalker'](_0x3976d1,{'column':_0x35c07a,'includeAllSlots':!0x0});_0x152dbd=Array['from'](_0x399faa)['map'](_0x2bd892=>_0x2bd892['cell']);}_0x5afe80['model']['change'](_0x1c1c7=>{_0x5a0022['markBlockFormat'](_0x1c1c7['createRangeOn'](_0x594e3a),{'commandName':_0x2f9289,'commandParams':[]},_0x152dbd,_0x2f9289);});});}_0x5a0022['descriptionFactory']['registerDescriptionCallback'](_0x3c1bcc=>{if('formatBlock'!=_0x3c1bcc['type']&&'formatInline'!=_0x3c1bcc['type'])return;const {data:_0x48123e}=_0x3c1bcc;return _0x48123e&&'mergeTableCells'==_0x48123e['commandName']?{'type':'format','content':o(_0xc2e28c,'*Merge\x20cells*')}:void 0x0;}),_0x5a0022['descriptionFactory']['registerDescriptionCallback'](_0xbfc9e1=>{if('formatBlock'!=_0xbfc9e1['type']&&'formatInline'!=_0xbfc9e1['type'])return;const {data:_0x314a00}=_0xbfc9e1;return _0x314a00?'splitTableCellVertically'==_0x314a00['commandName']?{'type':'format','content':o(_0xc2e28c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x314a00['commandName']?{'type':'format','content':o(_0xc2e28c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xba5b61=_0x513e4a['_acceptFormatSuggestionCallbackFactory']();for(const _0x42f0fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5a0022['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42f0fd,'accept',_0xba5b61);for(const _0xba88dd of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a0022['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xba88dd,'accept',_0xba5b61);_0x5a0022['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3bc351=>{_0x5afe80['model']['change'](_0x3d141e=>{const _0xe54810=Array['from'](_0x43f61e['getRanges']())['map'](_0x501b5d=>_0x5e91cd['fromRange'](_0x501b5d));_0x3d141e['setSelection'](_0x3bc351),_0x5afe80['commands']['get']('mergeTableCells')['refresh'](),_0x5afe80['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x40517f=_0xe54810['filter'](_0x27ae36=>'$graveyard'!=_0x27ae36['root']['rootName']);_0x40517f['length']>0x0&&_0x3d141e['setSelection'](_0x40517f);for(const _0x52bb48 of _0xe54810)_0x52bb48['detach']();});});for(const _0x2c4f87 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x49b28f=_0x5afe80['commands']['get'](_0x2c4f87);_0x49b28f['on']('set:isEnabled',(_0x1d5cee,_0x54f662,_0xc83353)=>{if(_0xc83353){const _0x5298d6=_0x5afe80['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x188635=>_0x188635['is']('element','tableCell'));this['_areMergableCells'](_0x49b28f['value'],_0x5298d6)||(_0x1d5cee['return']=!0x1,_0x1d5cee['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf2faab=this['editor']['commands']['get']('mergeTableCells'),_0x52b01a=this['editor']['plugins']['get']('TableUtils');if(!_0xf2faab['isEnabled'])return!0x1;const _0x473385=_0x52b01a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4666e4 of _0x473385)for(const _0x5dde2c of _0x473385)if(_0x4666e4!=_0x5dde2c&&!this['_areMergableCells'](_0x4666e4,_0x5dde2c))return!0x1;return!0x0;}['_areMergableCells'](_0x376f3a,_0x50e41f){const _0x10ab3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x592a8d=this['editor']['model']['createRangeOn'](_0x376f3a),_0x5ada4a=this['editor']['model']['createRangeOn'](_0x50e41f),_0x3c48d9=new Set(),_0xb7b1e=new Set();for(const _0x254c36 of _0x10ab3d['getSuggestions']())if(('insertion'==_0x254c36['type']||'deletion'==_0x254c36['type']||'mergeTableCells'==_0x254c36['subType'])&&_0x254c36['isInContent']){for(const _0x4ef340 of _0x254c36['getRanges']())_0x4ef340['containsRange'](_0x592a8d,!0x0)&&_0x3c48d9['add'](_0x254c36['type']+':'+_0x254c36['author']['id']),_0x4ef340['containsRange'](_0x5ada4a,!0x0)&&_0xb7b1e['add'](_0x254c36['type']+':'+_0x254c36['author']['id']);}if(_0x3c48d9['size']!=_0xb7b1e['size'])return!0x1;for(const _0x50f95c of _0x3c48d9)if(!_0xb7b1e['has'](_0x50f95c))return!0x1;return!0x0;}}class Ct extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x5db61a=this['editor'];if(!_0x5db61a['plugins']['has']('TableEditing'))return;const _0x405d75=_0x5db61a['locale'],_0x1f41b6=_0x5db61a['plugins']['get']('TrackChangesEditing');_0x1f41b6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1f41b6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1f41b6['registerBlockAttribute']('headingRows'),_0x1f41b6['registerBlockAttribute']('headingColumns'),_0x1f41b6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x405d75,'FORMAT_HEADER_ROW')),_0x1f41b6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x405d75,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d99bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x131e03=this['editor']['plugins']['get']('TableUtils'),_0x502afc=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x29cdc9({showActiveMarker:_0x213ef7=!0x0,setDataAttribute:_0xe52ad1=!0x0}={}){return(_0x1f497a,_0x3515e2,_0x31052d)=>{const {type:_0x55d958,id:_0x27e447}=_0x1d99bf['_splitMarkerName'](_0x3515e2['markerName']),_0x51bf1c=_0x1d99bf['getSuggestion'](_0x27e447),_0x2ff4f2=_0x51bf1c['data'];if('formatBlock'!=_0x51bf1c['type']||!_0x2ff4f2||'setTableColumnHeader'!=_0x2ff4f2['commandName'])return;if(_0x3515e2['item'])return void _0x1f497a['stop']();if(!_0x31052d['consumable']['consume'](_0x3515e2['markerRange'],_0x1f497a['name']))return;const _0x9daf0=_0x3515e2['markerRange']['start']['nodeAfter'],_0xff5198=_0x3515e2['markerRange']['end']['nodeBefore'],_0x177ea1=_0x9daf0['parent']['parent'],{column:_0x196df8}=_0x131e03['getCellLocation'](_0x9daf0),{column:_0x4a7460}=_0x131e03['getCellLocation'](_0xff5198);for(let _0x158f40=_0x196df8;_0x158f40<=_0x4a7460;_0x158f40++){const _0x2fc26c=_0x131e03['createTableWalker'](_0x177ea1,{'column':_0x158f40,'includeAllSlots':!0x1});for(const _0x33f248 of _0x2fc26c){const _0x2b9e72=_0x33f248['cell'],_0x3d2ae3=_0x31052d['mapper']['toViewElement'](_0x2b9e72);_0x31052d['writer']['addClass']('ck-suggestion-marker-'+_0x55d958,_0x3d2ae3),_0xe52ad1&&_0x31052d['writer']['setAttribute']('data-suggestion',_0x27e447,_0x3d2ae3),_0x31052d['mapper']['bindElementToMarker'](_0x3d2ae3,_0x3515e2['markerName']),_0x213ef7&&(_0x1d99bf['activeMarkers']['includes'](_0x3515e2['markerName'])?_0x31052d['writer']['addClass']('ck-suggestion-marker--active',_0x3d2ae3):_0x31052d['writer']['removeClass']('ck-suggestion-marker--active',_0x3d2ae3));}}};}_0x1d99bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x502afc),_0x1d99bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x502afc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x29cdc9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a7624,_0x3ba538,_0x4308cc)=>{_0x4308cc['options']['showSuggestionHighlights']&&_0x29cdc9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a7624,_0x3ba538,_0x4308cc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x363a46,_0x29eab8,_0xa37025)=>{const {type:_0x5ea44b,id:_0x4fa48e}=_0x1d99bf['_splitMarkerName'](_0x29eab8['markerName']),_0x208390=_0x1d99bf['getSuggestion'](_0x4fa48e),_0x1d63da=_0x208390['data'];if('formatBlock'!=_0x208390['type']||!_0x1d63da||'setTableColumnHeader'!=_0x1d63da['commandName'])return;const _0x43247a=_0xa37025['mapper']['markerNameToElements'](_0x29eab8['markerName']);if(_0x43247a){for(const _0x111c3f of _0x43247a)_0xa37025['writer']['removeClass']('ck-suggestion-marker-'+_0x5ea44b,_0x111c3f),_0xa37025['writer']['removeClass']('ck-suggestion-marker--active',_0x111c3f),_0xa37025['writer']['removeAttribute']('data-suggestion',_0x111c3f),_0xa37025['mapper']['unbindElementFromMarkerName'](_0x111c3f,_0x29eab8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2539ae=this['editor'],_0xad06e5=_0x2539ae['locale'];function _0x5ed0fe(_0x1c94d1){return{'type':'format','content':o(_0xad06e5,'*Format:*\x20%0',_0x1c94d1)};}_0x2539ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c44cf=>{if('formatBlock'!=_0x2c44cf['type'])return;const {data:_0x330c41}=_0x2c44cf;if(_0x330c41){if('setTableRowHeader'==_0x330c41['commandName']){const _0x434ff8=_0x330c41['commandParams'][0x0]['forceValue'];return _0x5ed0fe(o(_0xad06e5,_0x434ff8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x330c41['commandName']){const _0x5b702b=_0x330c41['commandParams'][0x0]['forceValue'];return _0x5ed0fe(o(_0xad06e5,_0x5b702b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x52ca71=>[_0x52ca71,null]));class Nt extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x2ff07=this['editor'];if(!_0x2ff07['plugins']['has']('TableClipboard'))return;const _0x16cb15=_0x2ff07['plugins']['get']('TrackChangesEditing'),_0x2eae8=_0x2ff07['plugins']['get']('TableUtils'),_0x964c88=_0x2ff07['plugins']['get'](vt),_0x2201cc=_0x2ff07['plugins']['get']('TableClipboard');_0x964c88['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2ff07['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2ff07['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x452eb9=null;_0x2ff07['model']['on']('insertContent',(_0x457050,_0x44f0e4)=>{const [_0x2fe519,_0x3ac89b]=_0x44f0e4,_0x3241d2=_0x44f0e4[_0x44f0e4['length']-0x1];_0x3241d2&&_0x3241d2['forceDefaultExecution']||_0x16cb15['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5a8b20,_0x542aa4,_0x58f834,_0x43f5a7,_0x2eea1d){if(_0x542aa4&&!_0x542aa4['is']('documentSelection'))return!0x1;const _0xc5e2f=_0x2eea1d['getTableIfOnlyTableInContent'](_0x5a8b20,_0x58f834);if(!_0xc5e2f||!Ae(_0xc5e2f,void 0x0,_0x43f5a7))return!0x1;const _0x58d4d5=_0x43f5a7['getSelectionAffectedTableCells'](_0x58f834['document']['selection']);if(!_0x58d4d5['length'])return!0x1;const _0x5b6b03=_0x58d4d5[0x0]['findAncestor']('table'),_0x4ba231=_0x43f5a7['getRowIndexes'](_0x58d4d5),_0x5df624=_0x43f5a7['getColumnIndexes'](_0x58d4d5),_0x37d296={'startRow':_0x4ba231['first'],'endRow':_0x4ba231['last'],'startColumn':_0x5df624['first'],'endColumn':_0x5df624['last']};return 0x1==_0x58d4d5['length']&&(_0x37d296['endRow']+=_0x43f5a7['getRows'](_0xc5e2f)-0x1,_0x37d296['endColumn']+=_0x43f5a7['getColumns'](_0xc5e2f)-0x1),Ae(_0x5b6b03,_0x37d296,_0x43f5a7);}(_0x2fe519,_0x3ac89b,_0x2ff07['model'],_0x2eae8,_0x2201cc)&&(_0x457050['stop'](),_0x452eb9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2ff07['model']['change'](()=>{_0x2ff07['model']['insertContent'](_0x44f0e4[0x0],_0x44f0e4[0x1],_0x44f0e4[0x2],{'forceDefaultExecution':!0x0});const _0x4f2613=_0x303cc5(),{rowInsertionRanges:_0x968b6b,columnInsertionRanges:_0x315f93,insertionRanges:_0x3ca6f2,deletionRanges:_0x43bb67,cells:_0xc3f5e9}=_0x452eb9;_0x968b6b['length']&&_0x16cb15['markMultiRangeInsertion'](_0x968b6b,'tablePasteRow',{'tablePasteChainId':_0x4f2613}),_0x315f93['length']&&_0x16cb15['markMultiRangeInsertion'](_0x315f93,'tablePasteColumn',{'tablePasteChainId':_0x4f2613}),_0x3ca6f2['length']&&(_0x16cb15['markMultiRangeInsertion'](_0x3ca6f2,'tablePaste',{'tablePasteChainId':_0x4f2613,'skipNestingCheck':!0x0}),_0x3ca6f2['forEach'](_0x780fe8=>_0x780fe8['detach']?.())),_0x43bb67['length']&&(_0x16cb15['markMultiRangeDeletion'](_0x43bb67,'tablePaste',{'tablePasteChainId':_0x4f2613,'skipNestingCheck':!0x0}),_0x43bb67['forEach'](_0x5b1b73=>_0x5b1b73['detach']?.()));const _0x54751a=_0x16cb15['markMultiRangeBlockFormat'](_0xc3f5e9['map'](({element:_0x2206aa})=>_0x2206aa),{'formatGroupId':_0x303cc5()},[],'tablePasteCell',{'tablePasteChainId':_0x4f2613});if(_0x54751a){const _0x5bbe5c=_0x54751a['getMarkers'](),_0x64d063=[];for(const {element:_0x4c180d,attributes:_0xb8617b}of _0xc3f5e9){if(!_0xb8617b)continue;const _0x1841d2=_0x2ff07['model']['createRangeOn'](_0x4c180d),_0x557aa9=_0x5bbe5c['find'](_0x27e3b4=>_0x27e3b4['getRange']()['isEqual'](_0x1841d2));_0x557aa9&&_0x64d063['push']([_0x557aa9['name'],_0xb8617b]);}_0x64d063['length']&&_0x54751a['setAttribute']('markerAttributes',Object['fromEntries'](_0x64d063));}_0x452eb9=null;}));},{'priority':_0x4f4b43['high']+0xa}),_0x2ff07['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf6859f,_0x47b543)=>{const [_0x14dd7d,_0x3c69b,,_0x3168ee]=_0x47b543;if(!_0x452eb9)return;_0xf6859f['stop']();const _0xb0ba80=_0x14dd7d['cell'],_0x5b67e4=_0x3c69b,_0x5488a6=je(_0xb0ba80),_0x3263dc=je(_0x5b67e4);_0xf6859f['return']=_0xb0ba80;let _0x7bd035=null,_0x1b55c1=null;if(_0x3263dc||_0x5488a6){if(_0x5488a6&&!_0x3263dc){_0x3168ee['remove'](_0xb0ba80['getChild'](0x0));for(const _0x167556 of Array['from'](_0x5b67e4['getChildren']()))_0x3168ee['insert'](_0x167556,_0xb0ba80,'end');const _0x213b1e=_0x452eb9['rowInsertionIndexes']['includes'](_0x14dd7d['row']),_0x26dc2d=_0x452eb9['columnInsertionIndexes']['includes'](_0x14dd7d['column']);_0x213b1e||_0x26dc2d||(_0x7bd035=_0x5e91cd['fromRange'](_0x3168ee['createRangeIn'](_0xb0ba80)));}else _0x3263dc&&!_0x5488a6&&(_0x1b55c1=_0x3168ee['createRangeIn'](_0xb0ba80));}else{const _0x389170=_0x3168ee['createElement']('tableCellSuggestion'),_0x42b744=_0x3168ee['createElement']('tableCellSuggestion');_0x3168ee['wrap'](_0x3168ee['createRangeIn'](_0xb0ba80),_0x42b744),_0x3168ee['insert'](_0x389170,_0xb0ba80,0x0);for(const _0x364872 of Array['from'](_0x5b67e4['getChildren']()))_0x3168ee['insert'](_0x364872,_0x389170,'end');_0x7bd035=_0x5e91cd['fromRange'](_0x3168ee['createRangeOn'](_0x389170)),_0x1b55c1=_0x5e91cd['fromRange'](_0x3168ee['createRangeOn'](_0x42b744));}const _0x319968=Array['from'](_0x5b67e4['getAttributes']())['filter'](([_0xa5805])=>we['includes'](_0xa5805));_0x452eb9['cells']['push']({'element':_0xb0ba80,'attributes':_0x319968['length']?Object['fromEntries'](_0x319968):null}),_0x7bd035&&_0x452eb9['insertionRanges']['push'](_0x7bd035),_0x1b55c1&&_0x452eb9['deletionRanges']['push'](_0x1b55c1);},{'priority':'high'}),_0x2eae8['on']('insertColumns',(_0x1197d7,_0x5f987a)=>{const [_0x2d4e1f,_0x25b441={}]=_0x5f987a;if(!_0x452eb9)return;const _0x27c8a8=_0x25b441['at']||0x0,_0x23e3cd=_0x25b441['columns']||0x1;_0x452eb9['columnInsertionIndexes']=new Array(_0x23e3cd)['fill'](_0x27c8a8)['map']((_0x63e090,_0xc73252)=>_0x63e090+_0xc73252);for(const {cell:_0x10f9f2}of _0x2eae8['createTableWalker'](_0x2d4e1f,{'startColumn':_0x27c8a8,'endColumn':_0x27c8a8+_0x23e3cd-0x1}))_0x452eb9['columnInsertionRanges']['push'](_0x2ff07['model']['createRangeOn'](_0x10f9f2));},{'priority':'low'}),_0x2eae8['on']('insertRows',(_0x11288b,_0x7d7f53)=>{const [_0x13800d,_0x5d4af2={}]=_0x7d7f53;if(!_0x452eb9)return;const _0x21ffe2=_0x5d4af2['at']||0x0,_0x1027e3=_0x5d4af2['rows']||0x1;_0x452eb9['rowInsertionIndexes']=new Array(_0x1027e3)['fill'](_0x21ffe2)['map']((_0x457eda,_0x5f3835)=>_0x457eda+_0x5f3835);for(const {cell:_0x2d0706}of _0x2eae8['createTableWalker'](_0x13800d,{'startRow':_0x21ffe2,'endRow':_0x21ffe2+_0x1027e3-0x1}))_0x452eb9['rowInsertionRanges']['push'](_0x2ff07['model']['createRangeOn'](_0x2d0706));},{'priority':'low'}),_0x16cb15['descriptionFactory']['registerDescriptionCallback'](_0x4d31c8=>{if(_0x4d31c8['subType']&&_0x4d31c8['subType']['startsWith']('tablePaste'))return _0x4d31c8['previous']?{}:{'type':'insertion','content':o(_0x2ff07['locale'],'*Replace\x20table\x20cells*')};});const _0x4e5093=()=>!0x1;for(const _0x13b68f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x16cb15['_suggestionFactory']['registerCustomCallback']('insertion',_0x13b68f,'join',_0x4e5093),_0x16cb15['_suggestionFactory']['registerCustomCallback']('deletion',_0x13b68f,'join',_0x4e5093),_0x16cb15['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13b68f,'join',_0x4e5093);_0x16cb15['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4e5093),_0x16cb15['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x36a19f,_0xb2bc09,_0x49846a)=>{const _0x56deaf=_0x36a19f['map'](_0x490f7e=>_0x490f7e['getContainedElement']())['filter'](_0x3deb06=>_0x3deb06),_0xd2b7ec=new Map(_0x56deaf['map'](_0x1a8b87=>[_0x1a8b87,null]));if(_0x452eb9){for(const {element:_0x49f4c1,attributes:_0x13e4c7}of _0x452eb9['cells'])_0x13e4c7&&_0xd2b7ec['set'](_0x49f4c1,_0x13e4c7);}else{if(_0x49846a&&_0x49846a['markerAttributes'])for(const [_0x4ef9bf,_0x14fc00]of Object['entries'](_0x49846a['markerAttributes'])){const _0x4471fa=_0x2ff07['model']['markers']['get'](_0x4ef9bf),_0x515fb8=_0x4471fa?_0x4471fa['getRange']()['getContainedElement']():null;_0x515fb8&&_0xd2b7ec['set'](_0x515fb8,_0x14fc00);}}_0x2ff07['model']['change'](_0x45bb4d=>{for(const [_0x23779e,_0x3c1bf0]of _0xd2b7ec)_0x45bb4d['setAttributes']({...ve,..._0x3c1bf0},_0x23779e);});});const _0x220e3f=(_0x4f5a76,_0x54825)=>{_0x16cb15['_suggestionFactory']['registerCustomCallback'](_0x4f5a76,'tablePaste',_0x54825,(_0x36fcb8,_0x329b0a,_0x27cd02)=>{_0x2ff07['model']['change'](_0xcf9b31=>{const _0x269bdf=[];for(const _0x1e7166 of _0x36fcb8){const _0x8f800=_0x1e7166['start']['nodeAfter'];_0x8f800['is']('element','tableCellSuggestion')&&_0x269bdf['push'](_0x8f800);}_0x16cb15['_suggestionFactory']['getSuggestionCallback'](_0x4f5a76,null,_0x54825)(_0x36fcb8,_0x329b0a,_0x27cd02);for(const _0x4e4058 of _0x269bdf)'$graveyard'!=_0x4e4058['root']['rootName']&&_0xcf9b31['unwrap'](_0x4e4058);});});};_0x220e3f('insertion','accept'),_0x220e3f('insertion','discard'),_0x220e3f('deletion','accept'),_0x220e3f('deletion','discard'),_0x16cb15['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55f06d=>{const _0x5a333f=_0x55f06d['map'](_0x32cdce=>_0x32cdce['getContainedElement']()),_0x515bad=_0x5a333f[0x0]['findAncestor']('table'),{minRow:_0x40c009,maxRow:_0x3a3eb4}=_0x964c88['_getCoordsForCells'](_0x5a333f);_0x2eae8['removeRows'](_0x515bad,{'at':_0x40c009,'rows':_0x3a3eb4-_0x40c009+0x1});}),_0x16cb15['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x14681f=>{const _0x2a5fe6=_0x14681f['map'](_0xcbff80=>_0xcbff80['getContainedElement']()),_0x14833c=_0x2a5fe6[0x0]['findAncestor']('table'),{minColumn:_0x40732c,maxColumn:_0xf345ad}=_0x964c88['_getCoordsForCells'](_0x2a5fe6);_0x2eae8['removeColumns'](_0x14833c,{'at':_0x40732c,'columns':_0xf345ad-_0x40732c+0x1});});const _0xe5b99e=(_0x2bb387,_0x4ab027)=>{if(!_0x4ab027['subType']||!_0x4ab027['subType']['startsWith']('tablePaste'))return;const _0x38763b=_0x4ab027['attributes']['tablePasteChainId'],_0x3471d3=_0x16cb15['getSuggestions']()['filter'](_0x1370e8=>_0x1370e8['isInContent']&&_0x1370e8['attributes']&&_0x1370e8['attributes']['tablePasteChainId']==_0x38763b);_0x3471d3['length']&&_0x4ab027['getAllAdjacentSuggestions']()['length']!=_0x3471d3['length']&&_0x3471d3['reduce']((_0x1295b8,_0x3f97db)=>(_0x1295b8['next']=_0x3f97db,_0x3f97db['previous']=_0x1295b8,_0x3f97db));};function _0x3246bf(_0x5140a6,_0x33a5cf=!0x0){const {id:_0x1f7c8b,authorId:_0x152a09}=_0x16cb15['_splitMarkerName'](_0x5140a6['markerName']),_0x8b14b0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d321e=_0x16cb15['activeMarkers']['includes'](_0x5140a6['markerName']);return _0x2d321e&&_0x8b14b0['push']('ck-suggestion-marker--active'),{'classes':_0x8b14b0,'attributes':{'data-suggestion':_0x1f7c8b,'data-author-id':_0x152a09},'priority':_0x2d321e&&_0x33a5cf?0xbc2:0xbb8};}_0x16cb15['on']('suggestionLoaded',_0xe5b99e,{'priority':'high'}),_0x16cb15['on']('suggestionUnloaded',_0xe5b99e,{'priority':'high'}),_0x2ff07['model']['document']['registerPostFixer'](()=>{let _0x34830c=!0x1;const _0x31b780=Array['from'](_0x2ff07['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x559c40,data:_0x51aa0f}of _0x31b780){const {group:_0x14d9fd,type:_0x1b6d11,id:_0x1ba9b7}=_0x16cb15['_splitMarkerName'](_0x559c40);if('suggestion'!=_0x14d9fd||'deletion'!=_0x1b6d11||_0x51aa0f['oldRange'])continue;if(!_0x16cb15['hasSuggestion'](_0x1ba9b7))continue;const _0x3d1822=_0x16cb15['getSuggestion'](_0x1ba9b7)['getRanges'](),_0x48bab8=_0x2ff07['plugins']['get']('Users')['me'];for(const _0x16db4a of _0x16cb15['getSuggestions']()){if(!_0x16db4a['isInContent']||_0x16db4a['author']!=_0x48bab8)continue;if('formatBlock'!=_0x16db4a['type']||'tablePasteCell'!=_0x16db4a['subType'])continue;if(_0x16db4a['getRanges']()['every'](_0x59f345=>_0x3d1822['some'](_0x3bed05=>_0x3bed05['containsRange'](_0x59f345,!0x0)))){for(const _0x59f09f of _0x16db4a['getAllAdjacentSuggestions']())_0x59f09f['isInContent']&&(_0x59f09f['discard'](),_0x34830c=!0x0);}}}return _0x34830c;}),_0x2ff07['model']['document']['registerPostFixer'](_0x299001=>{const _0x2ba28c=_0x2ff07['commands']['get']('redo');if(!_0x2ba28c||!_0x2ba28c['_createdBatches']['has'](_0x299001['batch']))return!0x1;let _0x56d9eb=!0x1;const _0xdf7d4f=_0x2ff07['plugins']['get']('Users')['me'],_0x516892=_0x2ff07['model']['document']['differ']['getChanges'](),_0x10774d=Array['from'](_0x2ff07['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x57ba6c,data:_0x3f6e66})=>{const {group:_0x5bcd19,subType:_0x57d999,authorId:_0x7c53a5}=_0x16cb15['_splitMarkerName'](_0x57ba6c);return'suggestion'==_0x5bcd19&&'tablePaste'==_0x57d999&&_0x7c53a5==_0xdf7d4f['id']&&!_0x3f6e66['oldRange'];});for(const _0x1bbc35 of _0x516892){if('insert'!=_0x1bbc35['type']||'tableCellSuggestion'!=_0x1bbc35['name']||0x1!=_0x1bbc35['length'])continue;const _0x25a1ba=_0x299001['createRange'](_0x1bbc35['position'],_0x1bbc35['position']['getShiftedBy'](0x1));if(!_0x10774d['find'](({data:_0x29c696})=>_0x29c696['newRange']['isEqual'](_0x25a1ba))){for(const {name:_0x18e83,data:_0xfece87}of _0x10774d)if(_0x25a1ba['containsRange'](_0xfece87['newRange'])){_0x299001['updateMarker'](_0x18e83,{'range':_0x25a1ba}),_0x56d9eb=!0x0;break;}}}return _0x56d9eb;}),_0x2ff07['model']['document']['registerPostFixer'](_0x5aa028=>{let _0x369b61=!0x1;const _0x2bc5e8=_0x2ff07['plugins']['get']('Users')['me'],_0x249a42=_0x16cb15['getSuggestions']()['filter'](_0x3c3992=>_0x3c3992['isInContent']&&_0x3c3992['author']==_0x2bc5e8),_0x376d33=new Set(),_0x2159b4=new Set();for(const _0x1ecd58 of _0x249a42)if('tablePaste'==_0x1ecd58['subType'])for(const _0x2d571b of _0x1ecd58['getMarkers']()){const _0x59d2a0=_0x2d571b['getRange']()['getContainedElement']();if(_0x59d2a0){if(_0x59d2a0['is']('element','tableCellSuggestion')&&je(_0x59d2a0)){_0x1ecd58['removeMarker'](_0x2d571b['name']),_0x376d33['add'](_0x59d2a0),_0x369b61=!0x0;const _0x20e930=_0x59d2a0['nextSibling'],_0x2b6677=_0x59d2a0['previousSibling'],_0x3cf813=_0x20e930&&_0x20e930['is']('element','tableCellSuggestion'),_0x5df4c2=_0x2b6677&&_0x2b6677['is']('element','tableCellSuggestion');_0x3cf813&&!_0x376d33['has'](_0x20e930)&&_0x2159b4['add'](_0x20e930),_0x5df4c2&&!_0x376d33['has'](_0x2b6677)&&_0x2159b4['add'](_0x2b6677);}else _0x59d2a0['is']('element','paragraph')&&_0x59d2a0['isEmpty']&&(_0x1ecd58['removeMarker'](_0x2d571b['name']),_0x369b61=!0x0);}}else{if('tablePasteCell'==_0x1ecd58['subType']){if(!_0x1ecd58['attributes']||!_0x1ecd58['attributes']['tablePasteChainId'])continue;const _0x3a156c=_0x1ecd58['attributes']['markerAttributes'];if(_0x3a156c&&Object['keys'](_0x3a156c)['length'])continue;const _0x5d0c51=_0x1ecd58['attributes']['tablePasteChainId'];let _0x2b30ed=!0x0,_0x115058=!0x0;for(const _0x10e3e1 of _0x249a42)if(_0x10e3e1['subType']&&_0x10e3e1['subType']['startsWith']('tablePaste')){if(!_0x10e3e1['attributes']['tablePasteChainId']){_0x115058=!0x1;break;}if(_0x10e3e1['id']!=_0x1ecd58['id']&&_0x10e3e1['attributes']['tablePasteChainId']==_0x5d0c51){_0x2b30ed=!0x1;break;}}_0x115058&&_0x2b30ed&&(_0x1ecd58['removeMarkers'](),_0x369b61=!0x0);}}for(const _0x1708b6 of _0x376d33)_0x5aa028['remove'](_0x1708b6);for(const _0x23f46c of _0x2159b4)_0x5aa028['unwrap'](_0x23f46c);return _0x369b61;}),_0x2ff07['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x48c8d4=>_0x3246bf(_0x48c8d4),'converterPriority':'high'}),_0x2ff07['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x456e6f,_0x2808e2)=>_0x2808e2['options']['showSuggestionHighlights']?_0x3246bf(_0x456e6f,!0x1):null,'converterPriority':'high'});const _0x2780db=_0x2ff07['editing']['view'];this['listenTo'](_0x2780db['document'],'clipboardOutput',(_0x5446a5,_0x187c58)=>{const _0x521c7e=[];for(const _0x1ad5cb of _0x2780db['createRangeIn'](_0x187c58['content'])['getItems']())_0x1ad5cb['is']('element','suggestion-td')&&_0x521c7e['push'](_0x1ad5cb);_0x2780db['change'](_0x393b4a=>{for(const _0x49000d of _0x521c7e)_0x393b4a['move'](_0x393b4a['createRangeIn'](_0x49000d),_0x393b4a['createPositionBefore'](_0x49000d)),_0x393b4a['remove'](_0x49000d);});});}}function je(_0x5f4e4a){if(_0x5f4e4a['isEmpty'])return!0x0;const _0x426dc0=_0x5f4e4a['getChild'](0x0);return _0x426dc0['is']('element','paragraph')&&_0x426dc0['isEmpty'];}function Ae(_0x2e3de2,_0x261c51={},_0x1ab246){for(const {isAnchor:_0x2ca3d6,cellHeight:_0x29a25d,cellWidth:_0x10f401}of _0x1ab246['createTableWalker'](_0x2e3de2,{'includeAllSlots':!0x0,..._0x261c51}))if(!_0x2ca3d6||0x1!=_0x29a25d||0x1!=_0x10f401)return!0x1;return!0x0;}class Dt extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1ebd39=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ebd39['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1ebd39['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1ebd39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ebd39['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1ebd39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1ebd39['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x34f205,_0x342152){const _0x54be6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x464f8e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x87fc5e=_0x342152['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x443e6f=_0x464f8e['getColumnGroupElement'](_0x87fc5e);let _0x53be65=_0x443e6f?_0x464f8e['getTableColumnsWidths'](_0x443e6f):null,_0x4b3056=_0x87fc5e['getAttribute']('tableWidth')||null;const _0x1619b1=_0x342152['tableWidth']||_0x4b3056,_0x12a38b=_0x342152['columnWidths']||_0x53be65,_0x295dce=this['editor']['plugins']['get']('Users')['me'];for(const _0x50d9e0 of _0x54be6f['getSuggestions']()){const _0x5daf03=_0x50d9e0['getContainedElement']();if('resizeTable'===_0x50d9e0['subType']&&_0x5daf03===_0x87fc5e){_0x50d9e0['author']!==_0x295dce&&_0x50d9e0['discard']();const _0x5c5f62=_0x50d9e0['data']['commandParams'];_0x4b3056=_0x5c5f62[0x0]['tableWidth'],_0x53be65=_0x5c5f62[0x0]['columnWidths'];break;}}_0x34f205({'table':_0x87fc5e,'tableWidth':_0x1619b1,'columnWidths':_0x12a38b}),_0x54be6f['markBlockFormat'](_0x87fc5e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b3056,'columnWidths':_0x53be65}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x10e042){if('formatBlock'!=_0x10e042['type']&&'formatInline'!=_0x10e042['type'])return;const {data:_0x31dc5f}=_0x10e042;if(_0x31dc5f&&'resizeTable'===_0x31dc5f['formatGroupId']){const _0x4e1275='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4e1275)};}}}class Mt extends _0x579de7{['afterInit'](){const _0x1e8a54=this['editor'];_0x1e8a54['plugins']['has']('Template')&&_0x1e8a54['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x579de7{['afterInit'](){const _0xd319e4=this['editor'];if(!_0xd319e4['commands']['get']('insertTableOfContents'))return;_0xd319e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x462713=_0xd319e4['plugins']['get']('TrackChangesEditing'),_0x2f16a0=_0xd319e4['locale'];_0x462713['descriptionFactory']['registerElementLabel']('tableOfContents',_0x66a682=>o(_0x2f16a0,'ELEMENT_TABLE_OF_CONTENTS',_0x66a682));}}class Bt extends _0x579de7{['afterInit'](){const _0x208662=this['editor'];if(!_0x208662['plugins']['has']('Title'))return;const _0x20ab25=_0x208662['plugins']['get']('TrackChangesEditing');_0x20ab25['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x208662['locale'],'ELEMENT_TITLE')),_0x208662['model']['document']['registerPostFixer'](_0x1fdf03=>{let _0x418480=!0x1;const _0x2fa859=Array['from'](_0x208662['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58566f,data:_0x20477c}of _0x2fa859){const {group:_0x52a76c}=_0x20ab25['_splitMarkerName'](_0x58566f);if('suggestion'!==_0x52a76c||!_0x20477c['newRange'])continue;const _0x4066ef=_0x20477c['newRange'],_0x22dc7b=_0x4066ef['end']['nodeBefore'];if(!_0x22dc7b||!_0x22dc7b['is']('element','title-content'))continue;if(!_0x4066ef['start']['isTouching'](_0x4066ef['end']))continue;const _0x2b6c34=_0x208662['model']['schema']['getNearestSelectionRange'](_0x4066ef['end'],'forward');if(_0x2b6c34&&_0x2b6c34['isCollapsed']){const _0x7bb82=_0x1fdf03['createRange'](_0x4066ef['start'],_0x2b6c34['start']);_0x7bb82['isEqual'](_0x4066ef)||(_0x1fdf03['updateMarker'](_0x58566f,{'range':_0x7bb82}),_0x418480=!0x0);}_0x418480||(_0x1fdf03['removeMarker'](_0x58566f),_0x418480=!0x0);}return _0x418480;});}}class Ot extends _0x579de7{['afterInit'](){const _0x248e3e=this['editor'],_0x33224a=_0x248e3e['plugins']['get']('TrackChangesEditing');_0x248e3e['plugins']['has']('UndoEditing')&&(_0x33224a['enableCommand']('undo'),_0x33224a['enableCommand']('redo'));}}class Rt extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x512ace=this['editor'];if(!_0x512ace['plugins']['has']('TableCaptionEditing'))return;_0x512ace['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x579de7{['tableProperties'];['tableCellProperties'];constructor(_0x11dc8b){super(_0x11dc8b),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 _0x4c0ca0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x190d97 of this['tableProperties'])_0x4c0ca0['enableCommand'](_0x190d97,(_0x385db4,_0x3d3812)=>{const _0x4e6e93=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x190d97,[_0x4e6e93],this['tableProperties'],'tableProperties',_0x385db4,_0x3d3812);});_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4c0ca0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x15a8ed,_0x1bbe6c)=>this['handleDiscardAction'](this['tableProperties'],_0x15a8ed,_0x1bbe6c)),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa483dd of this['tableCellProperties'])_0x4c0ca0['enableCommand'](_0xa483dd,(_0x17f002,_0x198ff5)=>{const _0x62d20f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa483dd,_0x62d20f,this['tableCellProperties'],'tableCellProperties',_0x17f002,_0x198ff5);});_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4c0ca0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x12c592,_0x5599e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x12c592,_0x5599e4)),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4c0ca0['descriptionFactory']['registerDescriptionCallback'](_0x1b2c81=>this['handleSuggestionDescription'](_0x1b2c81));}['_handlePropertyChange'](_0x2d1c8e,_0x4dc0dd,_0x40587f,_0x3136ab,_0x214a5f,_0x33b4f0){const _0x1dee1e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x33b4f0['batch'],()=>{for(const _0x272976 of _0x4dc0dd){if(this['_getSuggestion'](_0x272976,_0x3136ab))_0x214a5f(_0x33b4f0);else{const _0x1d9f3c={};for(const _0x5074ef of _0x40587f){const _0x12d2a3=_0x272976['getAttribute'](_0x5074ef);void 0x0!==_0x12d2a3&&(_0x1d9f3c[_0x5074ef]=_0x12d2a3);}_0x214a5f(_0x33b4f0),_0x1dee1e['markBlockFormat'](_0x272976,{'commandParams':[_0x1d9f3c]},[],_0x3136ab);}}});}['handleDiscardAction'](_0x2679ca,_0x339d93,_0x53182d){const _0xed8f8a=_0x339d93[0x0]['start']['nodeAfter'],_0x4c264a=_0x53182d['commandParams'][0x0];this['editor']['model']['change'](_0x3b1bd4=>{for(const _0x5d25bc of _0x2679ca)void 0x0!==_0x4c264a[_0x5d25bc]?_0x3b1bd4['setAttribute'](_0x5d25bc,_0x4c264a[_0x5d25bc],_0xed8f8a):_0x3b1bd4['removeAttribute'](_0x5d25bc,_0xed8f8a);});}['handleSuggestionDescription'](_0xd00a3){if(_0xd00a3['data'])switch(_0xd00a3['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'](_0x46d81d,_0x2d9b30){const _0x1fc257=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x575ee5 of _0x1fc257['getSuggestions']({'skipNotAttached':!0x0})){const _0xcbc798=_0x575ee5['getContainedElement']();if(_0x575ee5['subType']===_0x2d9b30&&_0xcbc798===_0x46d81d)return _0x575ee5;}return null;}}const m='$elementName';class p extends _0x579de7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x21ad1e,_0x47000f,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb363a){super(_0xeb363a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x331b60,_0x1e1f2f,_0x583b9a,_0x21db5a)=>{this['_model']['change'](()=>{for(const _0x75392e of[..._0x21db5a,..._0x583b9a])this['_model']['markers']['has'](_0x75392e)&&_0xeb363a['editing']['reconvertMarker'](_0x75392e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xeb363a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0xeb363a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xeb363a['config']['get']('trackChanges.trackFormatChanges'),_0xeb363a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xeb363a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xeb363a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4e4709=this['editor'],_0x42220d=(_0x5ab193,_0x21073c)=>{if('attribute'!=_0x5ab193)return'ck-suggestion-marker-'+_0x5ab193;const _0x57d788=_0x21073c['split']('|')[0x0];return this['_isBlockAttribute'](_0x57d788)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e4709['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5c934f=>{const {id:_0x1b2097,authorId:_0xee52c1,type:_0x418d74,subType:_0x5b060a}=this['_splitMarkerName'](_0x5c934f['markerName']),_0x1a0bbd=['ck-suggestion-marker',_0x42220d(_0x418d74,_0x5b060a)];let _0x2ffbf1=0xbb8;return this['activeMarkers']['includes'](_0x5c934f['markerName'])&&(_0x1a0bbd['push']('ck-suggestion-marker--active'),_0x2ffbf1=0xbc2),'deletion'==_0x418d74&&(_0x2ffbf1+=0x5),{'classes':_0x1a0bbd,'attributes':{'data-suggestion':_0x1b2097,'data-author-id':_0xee52c1},'priority':_0x2ffbf1};}}),_0x4e4709['conversion']['for']('dataDowncast')['add'](_0x2ae98b=>{_0x2ae98b['on']('addMarker:suggestion',(_0x229431,_0x12698a,_0x630c53)=>{if(!_0x630c53['options']['showSuggestionHighlights'])return;const _0x342454=_0x12698a['item'];if(!_0x342454)return;const _0x1e6809=_0x630c53['mapper']['toViewElement'](_0x342454);_0x4e4709['model']['schema']['isObject'](_0x342454)&&_0x1e6809&&!_0x1e6809['getCustomProperty']('widget')&&_0x1e6809['is']('containerElement')&&_0x5d2810(_0x1e6809,_0x630c53['writer']);},{'priority':'high'});}),_0x4e4709['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x313694,_0x189867)=>{if(!_0x189867['options']['showSuggestionHighlights'])return null;const {type:_0x5471d4,subType:_0x566719}=this['_splitMarkerName'](_0x313694['markerName']);return{'classes':['ck-suggestion-marker',_0x42220d(_0x5471d4,_0x566719)],'priority':0xbb8};}});const _0x41d6e4=({showActiveMarkers:_0x2084f8=!0x0,isAttributeSuggestion:_0x242203=!0x1}={})=>(_0x54cec0,_0x45329f,_0x578b6d)=>{if(!_0x45329f['item'])return;const {id:_0x9deffe,authorId:_0x431d7c}=this['_splitMarkerName'](_0x45329f['markerName']);if(_0x242203){const _0x117cc3=this['_suggestions']['get'](_0x9deffe),_0x513bf7=this['_getAttributeKey'](_0x117cc3);if(!this['_isBlockAttribute'](_0x513bf7))return;}if(_0x45329f['item']['is']('selection'))return void _0x578b6d['consumable']['consume'](_0x45329f['item'],_0x54cec0['name']);const _0x2782c7=_0x578b6d['mapper']['toViewElement'](_0x45329f['item']);if(_0x45329f['item']['is']('element')&&_0x4e4709['model']['schema']['isBlock'](_0x45329f['item'])&&!_0x2782c7['getCustomProperty']('addHighlight')){_0x578b6d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2782c7),_0x578b6d['writer']['setAttribute']('data-suggestion',_0x9deffe,_0x2782c7),_0x578b6d['writer']['setAttribute']('data-author-id',_0x431d7c,_0x2782c7),_0x578b6d['mapper']['bindElementToMarker'](_0x2782c7,_0x45329f['markerName']),_0x2084f8&&(this['activeMarkers']['includes'](_0x45329f['markerName'])?_0x578b6d['writer']['addClass']('ck-suggestion-marker--active',_0x2782c7):_0x578b6d['writer']['removeClass']('ck-suggestion-marker--active',_0x2782c7));for(const _0x471e5b of _0x4e4709['model']['createRangeIn'](_0x45329f['item'])['getItems']())_0x578b6d['consumable']['consume'](_0x471e5b,_0x54cec0['name']);_0x578b6d['consumable']['consume'](_0x45329f['item'],_0x54cec0['name']);}};_0x4e4709['conversion']['for']('dataDowncast')['add'](_0x290238=>{_0x290238['on']('addMarker:suggestion:formatBlock',(_0x236e71,_0x51c182,_0x220f90)=>{_0x220f90['options']['showSuggestionHighlights']&&_0x41d6e4({'showActiveMarkers':!0x1})(_0x236e71,_0x51c182,_0x220f90);},{'priority':'highest'});}),_0x4e4709['conversion']['for']('dataDowncast')['add'](_0x532a70=>{_0x532a70['on']('addMarker:suggestion:attribute',(_0x2b9816,_0x5591b4,_0x910a16)=>{_0x910a16['options']['showSuggestionHighlights']&&_0x41d6e4({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2b9816,_0x5591b4,_0x910a16);},{'priority':'highest'});}),_0x4e4709['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e0bdc,_0xdd943b)=>_0xdd943b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e0bdc['substr'](0xb)}}),_0x4e4709['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5144fd,{writer:_0x60e8b4})=>{let _0x2f7bf2='suggestion:'+_0x5144fd['getAttribute']('suggestion-type')+':'+_0x5144fd['getAttribute']('id');return _0x5144fd['getAttribute']('marker-count')&&(_0x2f7bf2+=':'+_0x5144fd['getAttribute']('marker-count')),_0x60e8b4['createElement']('$marker',{'data-name':_0x2f7bf2});}}),_0x4e4709['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x4c6bb2=>{_0x4c6bb2['on']('addMarker:suggestion:formatBlock',_0x41d6e4(),{'priority':'high'});}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x27df63=>{_0x27df63['on']('addMarker:suggestion:attribute',_0x41d6e4({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x1e7c15=>{_0x1e7c15['on']('removeMarker:suggestion:formatBlock',(_0x1ebe77,_0x37d548,_0x2e4590)=>{const _0x35e839=_0x2e4590['mapper']['markerNameToElements'](_0x37d548['markerName']);if(_0x35e839){for(const _0x19cea8 of _0x35e839)_0x19cea8['getCustomProperty']('addHighlight')||(_0x2e4590['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19cea8),_0x2e4590['writer']['removeAttribute']('data-suggestion',_0x19cea8),_0x2e4590['writer']['removeAttribute']('data-author-id',_0x19cea8),_0x2e4590['mapper']['unbindElementFromMarkerName'](_0x19cea8,_0x37d548['markerName']));}},{'priority':'high'});}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x1b768c=>{_0x1b768c['on']('removeMarker:suggestion:attribute',(_0x1252f1,_0x5a67cd,_0x18eeab)=>{const _0xc46ff3=_0x18eeab['mapper']['markerNameToElements'](_0x5a67cd['markerName']);if(!_0xc46ff3)return;const {id:_0x49c41a}=this['_splitMarkerName'](_0x5a67cd['markerName']),_0x509435=this['_suggestions']['get'](_0x49c41a),_0x4e39c8=this['_getAttributeKey'](_0x509435);if(this['_isBlockAttribute'](_0x4e39c8)){for(const _0x1e63cf of _0xc46ff3)_0x1e63cf['getCustomProperty']('addHighlight')||(_0x18eeab['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e63cf),_0x18eeab['writer']['removeAttribute']('data-suggestion',_0x1e63cf),_0x18eeab['writer']['removeAttribute']('data-author-id',_0x1e63cf),_0x18eeab['mapper']['unbindElementFromMarkerName'](_0x1e63cf,_0x5a67cd['markerName']));}},{'priority':'high'});}),_0x4e4709['model']['document']['registerPostFixer'](_0x24d553=>{let _0x19e657=!0x1;const _0xb128a0=Array['from'](_0x4e4709['model']['document']['differ']['getChangedMarkers']()),_0x389bdf=new Set();for(const {name:_0x37f6a8,data:_0x1dd7c8}of _0xb128a0){const {group:_0x2be0bb,type:_0x1878f4,subType:_0x4bbeac,id:_0x48925e}=this['_splitMarkerName'](_0x37f6a8);if('suggestion'!==_0x2be0bb)continue;const _0x531242=this['_suggestions']['get'](_0x48925e);if(null!=_0x1dd7c8['newRange']){'formatInline'==_0x1878f4&&(_0x19e657=_0x19e657||Pt(_0x1dd7c8['newRange'],_0x37f6a8,_0x24d553,_0x4e4709['model']['schema']));const _0x5d03fa='attribute'==_0x1878f4&&this['_isBlockAttribute'](_0x4bbeac['split']('|')[0x0]);if(_0x1dd7c8['newRange']['isCollapsed']||'$graveyard'==_0x1dd7c8['newRange']['root']['rootName']||'formatBlock'==_0x1878f4&&!Ft(_0x1dd7c8['newRange'])||_0x5d03fa&&!Ft(_0x1dd7c8['newRange'])||'deletion'==_0x1878f4&&!(!Vt(_0x48d9db=_0x1dd7c8['newRange'])&&!function(_0x21ca12){return _0x21ca12['start']['parent']==_0x21ca12['end']['nodeBefore']&&_0x21ca12['start']['isAtEnd'];}(_0x48d9db)))_0x24d553['removeMarker'](_0x37f6a8),_0x19e657=!0x0;else{if(!_0x531242||!_0x531242['isInContent'])continue;if(_0x1dd7c8['newRange']&&_0x1dd7c8['oldRange']&&_0x1dd7c8['newRange']['isEqual'](_0x1dd7c8['oldRange']))continue;_0x389bdf['add'](_0x531242);}}}var _0x48d9db;return _0x389bdf['size']>0x0&&(_0x19e657=!!this['_joinWithAdjacentSuggestions'](_0x389bdf)||_0x19e657),_0x19e657;}),_0x4e4709['model']['document']['registerPostFixer'](_0x343648=>{let _0xf70457=!0x1;for(const _0x38a75b of _0x4e4709['model']['document']['differ']['getChanges']())if('insert'==_0x38a75b['type'])for(const _0x5d6222 of this['_suggestions']['values']()){if(_0x5d6222['isMultiRange']||!_0x5d6222['isInContent'])continue;const _0x78dda9='formatBlock'==_0x5d6222['type'],_0x4911f9=this['_getAttributeKey'](_0x5d6222),_0x4f6adf=_0x4911f9&&this['_isBlockAttribute'](_0x4911f9);if(!_0x78dda9&&!_0x4f6adf)continue;const _0x510293=_0x5d6222['getFirstRange']();if(_0x510293['start']['parent']!=_0x510293['end']['parent']&&!_0x510293['end']['isAtEnd']){const _0x55e509=_0x4e4709['model']['createPositionAt'](_0x510293['start']['nodeAfter'],'end'),_0x327599=_0x4e4709['model']['createRange'](_0x510293['start'],_0x55e509);_0x343648['updateMarker'](_0x5d6222['getFirstMarker'](),{'range':_0x327599}),_0xf70457=!0x0;}}return _0xf70457;}),_0x4e4709['model']['document']['registerPostFixer'](_0x1cbe14=>this['_processAttributeChanges'](_0x1cbe14)),_0x4e4709['model']['document']['registerPostFixer'](_0x56b0cd=>!_0x56b0cd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56b0cd)),_0x4e4709['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e4709['model']['document']['on']('change:data',(_0x4da6ff,_0x5e1c10)=>{if(!_0x5e1c10['isLocal']||_0x5e1c10['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x282b06=_0x4e4709['model']['document']['differ']['getChanges']();if(0x0==_0x282b06['length'])return;const _0x9b837c=[],_0x192005=_0x282b06['filter'](_0x286432=>'attribute'==_0x286432['type']),_0x5a1635=_0x282b06['filter'](_0x2e2616=>'insert'==_0x2e2616['type']&&'$text'!=_0x2e2616['name']);for(const _0xd006d4 of _0x192005)this['_isRegisteredAttribute'](_0xd006d4['attributeKey'])&&_0x9b837c['push']({'key':_0xd006d4['attributeKey'],'newValue':_0xd006d4['attributeNewValue'],'oldValue':_0xd006d4['attributeOldValue'],'range':Lt(_0xd006d4['range'],_0x4e4709['model'])});for(const _0x4acffa of _0x5a1635){if('rename'!=_0x4acffa['action']&&'refresh'!=_0x4acffa['action'])continue;const _0x13b445=Jt(_0x4acffa['position']['nodeAfter'],_0x4e4709['model']),_0x2b29a8=_0x4acffa['before'];'rename'==_0x4acffa['action']&&_0x9b837c['push']({'key':m,'newValue':_0x4acffa['name'],'oldValue':_0x2b29a8['name'],'range':_0x13b445});for(const [_0x513077,_0x35363d]of _0x2b29a8['attributes']){if(!this['_isRegisteredAttribute'](_0x513077))continue;const _0x47cb11=_0x4acffa['attributes']['get'](_0x513077);_0x35363d!==_0x47cb11&&_0x9b837c['push']({'key':_0x513077,'newValue':_0x47cb11,'oldValue':_0x35363d,'range':_0x13b445});}for(const [_0xbf99fc,_0x2b10f3]of _0x4acffa['attributes'])this['_isRegisteredAttribute'](_0xbf99fc)&&(_0x2b29a8['attributes']['has'](_0xbf99fc)||_0x9b837c['push']({'key':_0xbf99fc,'newValue':_0x2b10f3,'oldValue':null,'range':_0x13b445}));}0x0!=_0x9b837c['length']&&_0x4e4709['model']['enqueueChange'](_0x5e1c10,_0x184c8e=>{const _0x2c9faa=_0x303cc5();for(const {range:_0x445d91,key:_0x4eae64,oldValue:_0x4281e8,newValue:_0x540b2d}of _0x9b837c)this['markAttributeChange'](_0x445d91,_0x4eae64,_0x4281e8,_0x540b2d,{'groupId':_0x2c9faa});this['_reduceExistingSuggestions'](_0x184c8e,_0x9b837c);});},{'priority':'lowest'}),_0x4e4709['model']['markers']['on']('update:suggestion',(_0x243910,_0x1d06bc,_0x3d1085)=>{if(null==_0x3d1085){const {id:_0x415ac2}=this['_splitMarkerName'](_0x1d06bc['name']),_0x37349c=this['_suggestions']['get'](_0x415ac2);_0x37349c&&_0x37349c['addMarkerName'](_0x1d06bc['name']);}}),_0x4e4709['model']['document']['on']('change:data',()=>{const _0x1af29c=Array['from'](_0x4e4709['model']['document']['differ']['getChangedMarkers']())['filter'](_0x373835=>'suggestion'===this['_splitMarkerName'](_0x373835['name'])['group']);if(0x0===_0x1af29c['length'])return;_0x1af29c['sort']((_0x5400a4,_0x49238e)=>{const _0x171fa0=_0x5400a4['data']['oldRange'],_0x4594cb=_0x49238e['data']['oldRange'];return null===_0x171fa0&&null===_0x4594cb?0x0:null===_0x171fa0&&null!==_0x4594cb?-0x1:null!==_0x171fa0&&null===_0x4594cb?0x1:_0x171fa0['start']['isBefore'](_0x4594cb['start'])?-0x1:0x1;});const _0x41e0c1=new Set(),_0x4a4d7f=new Set();for(const {name:_0x117d8d,data:_0x1bcb8f}of _0x1af29c){const {id:_0x5e057b}=this['_splitMarkerName'](_0x117d8d);if(null===_0x1bcb8f['oldRange']){const _0x47b8b6=this['_handleNewSuggestionMarker'](_0x117d8d);_0x4a4d7f['add'](_0x47b8b6);}else{const _0x2d1195=this['_suggestions']['get'](_0x5e057b);null!==_0x1bcb8f['newRange']||_0x2d1195['isInContent']?(_0x41e0c1['add'](_0x2d1195['head']),_0x4a4d7f['add'](_0x2d1195)):this['_removeSuggestion'](_0x2d1195);}}_0x4a4d7f['size']>0x0&&this['_refreshSuggestionsChain'](_0x4a4d7f);for(const _0x53c08c of _0x41e0c1)this['fire']('suggestionChanged',_0x53c08c);}),_0x4e4709['model']['on']('applyOperation',(_0x481ba2,_0x25746a)=>{const _0x3c5f46=_0x25746a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3c5f46['isDocumentOperation'])return;if(_0x3c5f46['batch']['isUndo']||!_0x3c5f46['batch']['isLocal'])return;let _0x2e7ad2,_0x41f401;switch(_0x3c5f46['type']){case'insert':_0x2e7ad2=_0x4e4709['model']['createPositionAt'](_0x3c5f46['position']),_0x41f401=_0x2e7ad2['getShiftedBy'](_0x3c5f46['howMany']);break;case'split':_0x2e7ad2=_0x4e4709['model']['createPositionAt'](_0x3c5f46['splitPosition']),_0x41f401=_0x4e4709['model']['createPositionAt'](_0x3c5f46['moveTargetPosition']);break;case'move':_0x2e7ad2=_0x4e4709['model']['createPositionAt'](_0x3c5f46['targetPosition']),_0x41f401=_0x2e7ad2['getShiftedBy'](_0x3c5f46['howMany']);break;default:return;}const _0x5af75f=_0x4e4709['model']['createRange'](_0x2e7ad2,_0x41f401);_0x4e4709['model']['change'](()=>{for(const {suggestion:_0x28737b,meta:_0x2a8b50}of this['_findSuggestions'](_0x5af75f)){if(_0x28737b['isMultiRange'])continue;if('formatInline'==_0x28737b['type'])continue;const _0x4411f4=this['_getAttributeKey'](_0x28737b);if(_0x4411f4&&this['_isBlockAttribute'](_0x4411f4)&&'split'!=_0x3c5f46['type'])continue;const _0x558a91=_0x28737b['data']&&_0x28737b['data']['multipleBlocks'];('formatBlock'!=_0x28737b['type']||'split'==_0x3c5f46['type']&&!_0x558a91)&&(_0x2a8b50['containsRangeInObject']||'insertion'==_0x28737b['type']&&_0x2a8b50['isOwn']||_0x28737b['getFirstRange']()['containsRange'](_0x5af75f)&&this['_breakSuggestionMarker'](_0x28737b,_0x2e7ad2,_0x41f401));}});},{'priority':'lowest'}),_0x4e4709['model']['on']('deleteContent',(_0x50e776,_0x2c0c6f)=>{const _0x26cb72=_0x2c0c6f[0x0],_0x221d8c=_0x2c0c6f[0x1];if(_0x221d8c&&_0x221d8c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x26cb72['isCollapsed'])return;const _0x56c902=_0x4e4709['model']['schema'],{start:_0x1ae96b,end:_0x50f3dc}=_0x26cb72['getFirstRange'](),_0x1d7cb3=_0x1ae96b['nodeAfter']&&_0x56c902['isLimit'](_0x1ae96b['nodeAfter'])?null:_0x56c902['getNearestSelectionRange'](_0x1ae96b,'forward'),_0x2e849c=_0x50f3dc['nodeBefore']&&_0x56c902['isLimit'](_0x50f3dc['nodeBefore'])?null:_0x56c902['getNearestSelectionRange'](_0x50f3dc,'backward'),_0x1753cd=_0x4e4709['model']['createRange'](_0x1d7cb3?_0x1d7cb3['start']:_0x1ae96b,_0x2e849c?_0x2e849c['end']:_0x50f3dc);_0x4e4709['model']['change'](_0x1ef78d=>{this['markDeletion'](_0x1753cd);const _0x3a297a=_0x4e4709['model']['schema']['getNearestSelectionRange'](_0x1753cd['start']);_0x26cb72['is']('documentSelection')?_0x1ef78d['setSelection'](_0x3a297a):_0x26cb72['setTo'](_0x3a297a);}),_0x50e776['stop']();},{'priority':_0x4f4b43['normal']+0xa}),_0x4e4709['model']['on']('insertContent',(_0x2d1139,_0x1e9390)=>{const _0x1877a1=_0x1e9390[_0x1e9390['length']-0x1];_0x1877a1&&_0x1877a1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e4709['model']['change'](()=>{let _0x1dbb04=_0x4e4709['model']['insertContent'](_0x1e9390[0x0],_0x1e9390[0x1],_0x1e9390[0x2],{'forceDefaultExecution':!0x0});if(!_0x1dbb04)return;_0x2d1139['return']=_0x1dbb04['clone']();const _0xbbf45b=_0x1dbb04['end']['nodeBefore'],_0x336291=_0x4e4709['model']['schema'];_0xbbf45b&&_0x336291['isBlock'](_0xbbf45b)&&!_0x336291['isObject'](_0xbbf45b)&&(_0x1dbb04=_0x4e4709['model']['createRange'](_0x1dbb04['start'],_0x4e4709['model']['createPositionAt'](_0xbbf45b,'end'))),this['markInsertion'](_0x1dbb04);}),_0x2d1139['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1949d7=new O(_0x4e4709,this['_suggestions']);_0x4e4709['commands']['add']('acceptSuggestion',_0x1949d7),this['enableCommand']('acceptSuggestion');const _0x4117c4=new R(_0x4e4709,this['_suggestions']);_0x4e4709['commands']['add']('discardSuggestion',_0x4117c4),this['enableCommand']('discardSuggestion'),_0x4e4709['commands']['add']('acceptAllSuggestions',new x(_0x4e4709,_0x1949d7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e4709['commands']['add']('discardAllSuggestions',new x(_0x4e4709,_0x4117c4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e4709['commands']['add']('acceptSelectedSuggestions',new E(_0x4e4709,_0x1949d7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e4709['commands']['add']('discardSelectedSuggestions',new E(_0x4e4709,_0x4117c4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b2851=_0x4e4709['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b2851,'addComment',(_0x5190c5,{threadId:_0x2fbbb1})=>{const _0x13c042=this['_suggestions']['get'](_0x2fbbb1);_0x13c042&&_0x13c042['commentThread']&&0x1===_0x13c042['commentThread']['length']&&this['_updateSuggestionData'](_0x2fbbb1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b2851,'removeComment',(_0x2575e0,{threadId:_0x31e9ec})=>{const _0x534f7e=this['_suggestions']['get'](_0x31e9ec);_0x534f7e&&_0x534f7e['commentThread']&&!_0x534f7e['commentThread']['length']&&this['_updateSuggestionData'](_0x31e9ec,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4cfc1a){const _0x45c7a5=_0x5eaa86([0x62,0x4e,0x6d,0x6a,0x68,0x5a,0x6f,0x6b,0x42,0x53,0x4d,0x56,0x4f,0x4c,0x70,0x49,0x36,0x51,0x41,0x34,0x7a,0x52,0x71,0x69,0x44,0x30,0x75,0x6c,0x32,0x74,0x45,0x72,0x55,0x59,0x46,0x57,0x43,0x4b,0x78,0x58,0x48,0x31,0x50,0x73,0x67,0x76,0x33,0x37,0x4a,0x47,0x66,0x39,0x77,0x35,0x65,0x61,0x6e,0x63,0x38,0x64,0x54,0x79]),_0x5ffedb=0x573cc558,_0x4fe33a=0x573b9d70^_0x5ffedb,_0x3d83fa=window[_0x5eaa86([0x44,0x61,0x74,0x65])][_0x5eaa86([0x6e,0x6f,0x77])](),_0x517ac0=_0x4cfc1a[_0x5eaa86([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x585472=new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187813=>{_0x517ac0[_0x5eaa86([0x6f,0x6e,0x63,0x65])](_0x5eaa86([0x72,0x65,0x61,0x64,0x79]),_0x187813);}),_0x48b267={[_0x5eaa86([0x6b,0x74,0x79])]:_0x5eaa86([0x45,0x43]),[_0x5eaa86([0x75,0x73,0x65])]:_0x5eaa86([0x73,0x69,0x67]),[_0x5eaa86([0x63,0x72,0x76])]:_0x5eaa86([0x50,0x2d,0x32,0x35,0x36]),[_0x5eaa86([0x78])]:_0x5eaa86([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]),[_0x5eaa86([0x79])]:_0x5eaa86([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]),[_0x5eaa86([0x61,0x6c,0x67])]:_0x5eaa86([0x45,0x53,0x32,0x35,0x36])},_0x3f4835=_0x517ac0[_0x5eaa86([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5eaa86([0x67,0x65,0x74])](_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41f207(){let _0x33acb0,_0x236490=null,_0x137fb1=null;try{if(_0x3f4835==_0x5eaa86([0x47,0x50,0x4c]))return _0x5eaa86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33acb0=_0x5410d1(),!_0x33acb0)return _0x5eaa86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33acb0[_0x5eaa86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x137fb1=_0x591869(_0x33acb0[_0x5eaa86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33acb0[_0x5eaa86([0x6a,0x74,0x69])])),await _0x27a884()?_0x519ff6()?_0x58263d()?_0x5eaa86([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26b6d3()?(_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eaa86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x236490=_0x35a924(_0x5eaa86([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eaa86([0x74,0x72,0x69,0x61,0x6c])&&(_0x236490=_0x35a924(_0x5eaa86([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eaa86([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x236490=_0x35a924(_0x5eaa86([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36d0c1()):_0x5eaa86([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5eaa86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5eaa86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5b71c1){return _0x5eaa86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58263d(){const _0x409d0e=[_0x5eaa86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5eaa86([0x74,0x72,0x69,0x61,0x6c])][_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d83fa/0x3e8:0xe10*_0x4fe33a;return _0x33acb0[_0x5eaa86([0x65,0x78,0x70])]<_0x409d0e;}function _0x519ff6(){const _0x5a09c4=_0x33acb0[_0x5eaa86([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5a09c4&&(!!_0x5a09c4[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x2a]))||(!!_0x5a09c4[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x54,0x43]))||!(!_0x5a09c4[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x52,0x54,0x43]))||!_0x28c48d())));}function _0x26b6d3(){const _0x31ff6d=_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31ff6d||0x0==_0x31ff6d[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x71ab3e}=new URL(window[_0x5eaa86([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31ff6d[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71ab3e))return!0x0;const _0x4f835a=_0x71ab3e[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e]));return _0x31ff6d[_0x5eaa86([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33c632=>_0x33c632[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x2a])))[_0x5eaa86([0x6d,0x61,0x70])](_0x4622dd=>_0x4622dd[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e])))[_0x5eaa86([0x73,0x6f,0x6d,0x65])](_0x292f5a=>_0x4f835a[_0x5eaa86([0x65,0x76,0x65,0x72,0x79])]((_0x355606,_0x33d10e)=>_0x292f5a[_0x33d10e]===_0x355606||_0x292f5a[_0x33d10e]===_0x5eaa86([0x2a])));}function _0x36d0c1(){return _0x236490&&_0x137fb1?new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b71ce,_0x30018e)=>{_0x236490[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x5b71ce,_0x30018e),_0x137fb1[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x548132=>{_0x548132!=_0x5eaa86([0x56,0x61,0x6c,0x69,0x64])&&_0x5b71ce(_0x548132);},_0x30018e);}):_0x236490||_0x137fb1||_0x5eaa86([0x56,0x61,0x6c,0x69,0x64]);}}function _0x591869(_0x49b147,_0x1fda81){return new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x484c25=>{if(_0x4ad6d7())return _0x484c25(_0x5eaa86([0x56,0x61,0x6c,0x69,0x64]));_0x523624(),_0x517ac0[_0x5eaa86([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5eaa86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4645e5=!0x1;const _0x552dd1=_0x303cc5();function _0x21babc(_0x51595e){return!!_0x51595e&&(typeof _0x51595e===_0x5eaa86([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51595e===_0x5eaa86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51595e[_0x5eaa86([0x74,0x68,0x65,0x6e])]===_0x5eaa86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51595e[_0x5eaa86([0x63,0x61,0x74,0x63,0x68])]===_0x5eaa86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5db7a0(_0x83f634){_0x279937(_0x83f634)[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x2ce63f=>{if(!_0x2ce63f||_0x2ce63f[_0x5eaa86([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5eaa86([0x6f,0x6b]))return _0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x109f22(_0x51bd56(_0x552dd1+_0x1fda81))!=_0x2ce63f[_0x5eaa86([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5eaa86([0x56,0x61,0x6c,0x69,0x64]);})[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x2c9565=>(_0x49e575(),_0x2c9565),()=>{const _0x552a81=_0x2504f5();return null==_0x552a81?(_0x49e575(),_0x5eaa86([0x56,0x61,0x6c,0x69,0x64])):_0x5eaa86(_0x3d83fa-_0x552a81>(0x73304158^_0x5ffedb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x484c25)[_0x5eaa86([0x63,0x61,0x74,0x63,0x68])](()=>{_0x484c25(_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37efa4=0x570a2bd8^_0x5ffedb;function _0x49e575(){const _0x4bdf19=_0x5eaa86([0x6c,0x6c,0x63,0x74,0x2d])+_0x109f22(_0x51bd56(_0x49b147)),_0x376355=_0x3dd064(_0x109f22(window[_0x5eaa86([0x4d,0x61,0x74,0x68])][_0x5eaa86([0x63,0x65,0x69,0x6c])](_0x3d83fa/_0x37efa4)));window[_0x5eaa86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eaa86([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bdf19,_0x376355);}function _0x2504f5(){const _0xeb875a=_0x5eaa86([0x6c,0x6c,0x63,0x74,0x2d])+_0x109f22(_0x51bd56(_0x49b147)),_0x44a46d=window[_0x5eaa86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eaa86([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeb875a);return _0x44a46d?window[_0x5eaa86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd064(_0x44a46d),0x10)*_0x37efa4:null;}function _0x279937(_0x15f7be){return new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c50a3,_0x2a06bd)=>{_0x15f7be[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x2c50a3,_0x2a06bd),window[_0x5eaa86([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a06bd,0x573d1198^_0x5ffedb);});}}_0x517ac0[_0x5eaa86([0x6f,0x6e])](_0x5eaa86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a16df,_0x35f885)=>{if(_0x35f885[0x0]!=_0x49b147)return _0x484c25(_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35f885[0x1]={..._0x35f885[0x1],[_0x5eaa86([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x552dd1};},{[_0x5eaa86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eaa86([0x68,0x69,0x67,0x68])}),_0x517ac0[_0x5eaa86([0x6f,0x6e])](_0x5eaa86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a69bc=>{_0x21babc(_0x1a69bc[_0x5eaa86([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4645e5=!0x0,_0x5db7a0(_0x1a69bc[_0x5eaa86([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5eaa86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eaa86([0x6c,0x6f,0x77])}),_0x585472[_0x5eaa86([0x74,0x68,0x65,0x6e])](()=>{_0x4645e5||_0x484c25(_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ad6d7(){return _0x517ac0[_0x5eaa86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eaa86([0x76,0x69,0x65,0x77])][_0x5eaa86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5eaa86([0x61,0x75,0x74,0x6f]);}function _0x523624(){_0x517ac0[_0x5eaa86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eaa86([0x76,0x69,0x65,0x77])][_0x5eaa86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5eaa86([0x61,0x75,0x74,0x6f]);}}function _0x35a924(_0x5d3978){const _0x5bdec2=[new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x414009=>setTimeout(_0x414009,0x5735fb94^_0x5ffedb)),_0x585472[_0x5eaa86([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e67c0=>{let _0x14c192=0x0;_0x517ac0[_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eaa86([0x6f,0x6e])](_0x5eaa86([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd65dc2,_0x5c8de3)=>{_0x5c8de3[0x0][_0x5eaa86([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14c192++,_0x14c192==(0x573cc4a0^_0x5ffedb)&&(_0x3e67c0(),_0xd65dc2[_0x5eaa86([0x6f,0x66,0x66])]());});}))];return window[_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5eaa86([0x72,0x61,0x63,0x65])](_0x5bdec2)[_0x5eaa86([0x74,0x68,0x65,0x6e])](()=>_0x5d3978);}async function _0x57dcf5(){await _0x585472,_0x517ac0[_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eaa86([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x307c0f,_0x517ac0[_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eaa86([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x307c0f,_0x517ac0[_0x5eaa86([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28c48d(){return _0x4b6f58(_0x5eaa86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29a8e6(_0x5eaa86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5eaa86([0x73,0x74,0x61,0x74,0x65])]==_0x5eaa86([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x923eff(_0xe95e6){const _0x2d11b7=_0x63ce69();_0x517ac0[_0x2d11b7]=_0x5eaa86([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe95e6,_0xe95e6!=_0x5eaa86([0x56,0x61,0x6c,0x69,0x64])&&_0x57dcf5();}function _0x63ce69(){const _0x290245=window[_0x5eaa86([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5eaa86([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5eaa86([0x6e,0x6f,0x77])]())[_0x5eaa86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5eaa86([0x2e]),'');let _0x2da454=_0x5eaa86([0x62]);for(let _0x99fc36=0x0;_0x99fc36<_0x290245[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x99fc36+=0x2){let _0x40867e=window[_0x5eaa86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x290245[_0x5eaa86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x99fc36,_0x99fc36+0x2));_0x40867e>=_0x45c7a5[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40867e-=_0x45c7a5[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2da454+=_0x45c7a5[_0x40867e];}return _0x2da454;}function _0x5410d1(){const _0x586b31=_0x3f4835[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e]));if(0x3!=_0x586b31[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8149a4(_0x586b31[0x1]);function _0x8149a4(_0x2d1be9){const _0x5b5890=_0x58463a(_0x2d1be9);return _0x5b5890&&_0x1da8f0()?_0x5b5890:null;function _0x1da8f0(){const _0x22a06d=_0x5b5890[_0x5eaa86([0x6a,0x74,0x69])],_0x329f9f=window[_0x5eaa86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22a06d[_0x5eaa86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22a06d[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5571db={..._0x5b5890,[_0x5eaa86([0x6a,0x74,0x69])]:_0x22a06d[_0x5eaa86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22a06d[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5571db[_0x5eaa86([0x76,0x63])],_0x51bd56(_0x5571db)==_0x329f9f;}}}async function _0x27a884(){let _0x296544=!0x0;try{const _0x473e4=_0x3f4835[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e])),[_0x59b872,_0x260457,_0x3f22f1]=_0x473e4;return _0x2dcb7f(_0x59b872),await _0x1b397a(_0x59b872,_0x260457,_0x3f22f1),_0x296544;}catch(_0x531f1f){return!0x1;}function _0x2dcb7f(_0x12e27a){const _0x353863=_0x58463a(_0x12e27a);_0x353863&&_0x353863[_0x5eaa86([0x61,0x6c,0x67])]==_0x5eaa86([0x45,0x53,0x32,0x35,0x36])||(_0x296544=!0x1);}async function _0x1b397a(_0x392b4d,_0x219cfe,_0x346e7c){const _0xf94005=window[_0x5eaa86([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5eaa86([0x66,0x72,0x6f,0x6d])](_0x154722(_0x346e7c),_0x3a8a7c=>_0x3a8a7c[_0x5eaa86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b9455=new window[(_0x5eaa86([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5eaa86([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x392b4d+_0x5eaa86([0x2e])+_0x219cfe),_0x4887b2=window[_0x5eaa86([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5eaa86([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4887b2)return;const _0x70cba3=await _0x4887b2[_0x5eaa86([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5eaa86([0x6a,0x77,0x6b]),_0x48b267,{[_0x5eaa86([0x6e,0x61,0x6d,0x65])]:_0x5eaa86([0x45,0x43,0x44,0x53,0x41]),[_0x5eaa86([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5eaa86([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5eaa86([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4887b2[_0x5eaa86([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5eaa86([0x6e,0x61,0x6d,0x65])]:_0x5eaa86([0x45,0x43,0x44,0x53,0x41]),[_0x5eaa86([0x68,0x61,0x73,0x68])]:{[_0x5eaa86([0x6e,0x61,0x6d,0x65])]:_0x5eaa86([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x70cba3,_0xf94005,_0x5b9455)||(_0x296544=!0x1);}}function _0x58463a(_0x2bfc7c){return _0x2bfc7c[_0x5eaa86([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5eaa86([0x65,0x79]))?JSON[_0x5eaa86([0x70,0x61,0x72,0x73,0x65])](_0x154722(_0x2bfc7c)):null;}function _0x154722(_0x3e4157){return window[_0x5eaa86([0x61,0x74,0x6f,0x62])](_0x3e4157[_0x5eaa86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5eaa86([0x2b]))[_0x5eaa86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5eaa86([0x2f])));}function _0x51bd56(_0x4b01ef){let _0x15ed66=0x1505;function _0x51fd92(_0x228901){for(let _0x19d45e=0x0;_0x19d45e<_0x228901[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19d45e++){const _0x576daa=_0x228901[_0x5eaa86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19d45e);_0x15ed66=(_0x15ed66<<0x5)+_0x15ed66+_0x576daa,_0x15ed66&=_0x15ed66;}}function _0xfc89ec(_0x48a1fb){Array[_0x5eaa86([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48a1fb)?_0x48a1fb[_0x5eaa86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xfc89ec):_0x48a1fb&&typeof _0x48a1fb==_0x5eaa86([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5eaa86([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48a1fb)[_0x5eaa86([0x73,0x6f,0x72,0x74])]()[_0x5eaa86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa70a5e,_0x2aa9ce])=>{_0x51fd92(_0xa70a5e),_0xfc89ec(_0x2aa9ce);}):_0x51fd92(window[_0x5eaa86([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48a1fb));}return _0xfc89ec(_0x4b01ef),_0x15ed66>>>0x0;}function _0x109f22(_0x2b05d1){return _0x2b05d1[_0x5eaa86([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5eaa86([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5eaa86([0x30]));}function _0x3dd064(_0x872270){return _0x872270[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5eaa86([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5eaa86([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b6f58(_0x31c026){return _0x517ac0[_0x5eaa86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5eaa86([0x68,0x61,0x73])](_0x31c026);}function _0x29a8e6(_0x163951){return _0x517ac0[_0x5eaa86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5eaa86([0x67,0x65,0x74])](_0x163951);}function _0x307c0f(){}function _0x5eaa86(_0x4be25e){return _0x4be25e['map'](_0x346184=>String['fromCharCode'](_0x346184))['join']('');}_0x923eff(await _0x41f207());}(this);}set['adapter'](_0x1f4a03){if(this['_adapter'])throw new _0x1c1a8a('track-changes-adapter-already-set',this);this['_adapter']=_0x1f4a03;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3652eb=!0x1,toJSON:_0x3bfd6b=!0x1}={}){const _0x4d3c8c=[];for(const _0x3326c3 of this['_suggestions']['values']())_0x3652eb&&!_0x3326c3['isInContent']||_0x4d3c8c['push'](_0x3326c3);return _0x3bfd6b?_0x4d3c8c['map'](_0x16b8ad=>_0x16b8ad['toJSON']()):_0x4d3c8c;}['getSuggestion'](_0xc2d820){const _0x1c8873=this['_suggestions']['get'](_0xc2d820);if(!_0x1c8873)throw new _0x1c1a8a('track-changes-suggestion-not-found',this);return _0x1c8873;}['hasSuggestion'](_0x2e0f2e){return this['_suggestions']['has'](_0x2e0f2e);}['addSuggestionData'](_0x3b9b54){const {authorId:_0x7df99f,id:_0x18abce,attributes:_0x293089}=_0x3b9b54,[_0xb219ca,_0x1af11f]=_0x3b9b54['type']['split'](':'),_0x16798b=this['_suggestions']['get'](_0x18abce)||this['_createSuggestion'](_0xb219ca,_0x1af11f,_0x18abce,_0x7df99f,_0x293089);if(this['_addThreadToSuggestion'](_0x16798b),this['_checkSuggestionCorrectness'](_0x16798b,_0xb219ca,_0x1af11f||null,_0x7df99f),_0x16798b['createdAt']=_0x3b9b54['createdAt'],_0x16798b['_isDataLoaded']=!0x0,_0x293089&&_0x293089['@external']){const _0x59fe25=_0x293089['@external'],_0x7eb034=this['_getExternalAuthor'](_0x59fe25['authorName']);_0x16798b['authoredAt']=_0x59fe25['createdAt'],_0x16798b['author']=_0x7eb034,_0x16798b['isExternal']=!0x0;}else _0x16798b['authoredAt']=_0x3b9b54['createdAt'];switch(_0x3b9b54['data']&&(_0x16798b['data']=_0x3b9b54['data']),_0x3b9b54['attributes']&&(_0x16798b['attributes']=_0x3b9b54['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x16798b['_saved']=!0x0),this['_suggestionState']['get'](_0x16798b)){case'notReady':this['_suggestionState']['set'](_0x16798b,'dataReady');break;case'markerReady':_0x16798b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x16798b])),this['_refreshSuggestionsChain'](new Set([_0x16798b])),this['_suggestionState']['set'](_0x16798b,'ready'),this['fire']('suggestionLoaded',_0x16798b)):this['_suggestionState']['set'](_0x16798b,'removed');}return _0x16798b;}['acceptSuggestion'](_0x4a299a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12cfa6 of _0x4a299a['getAllAdjacentSuggestions']())_0x12cfa6['accept']();});});}['discardSuggestion'](_0x58478f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4822dc of _0x58478f['getAllAdjacentSuggestions']())_0x4822dc['discard']();});});}['enableCommand'](_0x4b7d3c,_0x5d0248){const _0x1408d3=this['editor']['commands']['get'](_0x4b7d3c);if(!_0x1408d3)throw new _0x1c1a8a('track-changes-command-not-found',this,{'commandName':_0x4b7d3c});if(this['_enabledCommands']['has'](_0x1408d3))throw new _0x1c1a8a('track-changes-enable-command-twice',this,{'commandName':_0x4b7d3c});this['_enabledCommands']['add'](_0x1408d3),_0x5d0248&&_0x1408d3['on']('execute',(_0x295deb,_0x57ba70)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x57ba70['length']>0x0&&_0x57ba70[_0x57ba70['length']-0x1]&&_0x57ba70[_0x57ba70['length']-0x1]['forceDefaultExecution']?_0x57ba70['pop']():(_0x295deb['return']=_0x5d0248((..._0x272a75)=>_0x1408d3['execute'](..._0x272a75,{'forceDefaultExecution':!0x0}),..._0x57ba70),_0x295deb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x524073){let _0x33e355,_0x560821;const _0x22addd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33e355=_0x524073();}catch(_0x4dcf63){_0x560821=_0x4dcf63;}return _0x22addd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x560821&&_0x1c1a8a['rethrowUnexpectedError'](_0x560821,this),_0x33e355;}['markInsertion'](_0x268fd9,_0x2c8e7d=null,_0x33da49={}){if(_0x268fd9['isCollapsed'])return null;const _0x15536a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xc7db73,meta:_0x20c61b}of this['_findSuggestions'](_0x268fd9,'insertion'))if(_0x20c61b['isOwn']){if(!_0x20c61b['isNextTo']){if(_0x20c61b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xc7db73,_0x33da49))continue;return _0xc7db73;}if(zt(_0xc7db73,_0x33da49))return _0xc7db73;this['_breakSuggestionMarker'](_0xc7db73,_0x268fd9['start'],_0x268fd9['end']);break;}if(_0x2c8e7d==_0xc7db73['subType']&&zt(_0xc7db73,_0x33da49)){const _0x253961=_0xc7db73['getFirstRange']();return _0x253961['start']['isEqual'](_0x268fd9['end'])?this['_setSuggestionRange'](_0xc7db73,this['_model']['createRange'](_0x268fd9['start'],_0x253961['end'])):this['_setSuggestionRange'](_0xc7db73,this['_model']['createRange'](_0x253961['start'],_0x268fd9['end'])),_0xc7db73;}}const _0x5a8877=_0x303cc5(),_0x4f65c5=_0x15536a['id'],_0x51884d=_0x2c8e7d?'insertion:'+_0x2c8e7d:'insertion',_0x29de19=this['_setSuggestionData']({'id':_0x5a8877,'type':_0x51884d,'createdAt':new Date(),'authorId':_0x4f65c5,'attributes':_0x33da49});return this['_addSuggestionMarker'](_0x51884d,_0x5a8877,_0x4f65c5,_0x268fd9),_0x29de19;}['markMultiRangeInsertion'](_0x2ecb2e,_0xae2eeb='multi',_0x25145d={}){const _0x102422=this['editor']['plugins']['get']('Users')['me'],_0x41ce2c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xae2eeb,'join');for(const _0x23de7f of this['getSuggestions']())if(_0x23de7f['author']['id']==_0x102422['id']&&'insertion'==_0x23de7f['type']&&_0x23de7f['subType']==_0xae2eeb&&zt(_0x23de7f,_0x25145d)&&(_0x41ce2c(_0x23de7f['getRanges'](),_0x2ecb2e)||_0x41ce2c(_0x2ecb2e,_0x23de7f['getRanges']()))){for(const _0x312bfe of _0x2ecb2e)_0x23de7f['addRange'](_0x312bfe);return _0x23de7f;}for(const {suggestion:_0x1ec8f0,meta:_0x590db9}of this['_findSuggestions'](_0x2ecb2e,'insertion')){if(!_0x590db9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x590db9['containsRangeInObject'])continue;if(!zt(_0x1ec8f0,_0x25145d))continue;let _0x1ad5bf=!0x0;for(const _0x7c105e of _0x1ec8f0['getRanges']())for(const _0x481913 of _0x2ecb2e)if(!_0x7c105e['containsRange'](_0x481913)){_0x1ad5bf=!0x1;break;}if(_0x1ad5bf)return _0x1ec8f0;}const _0x350f86=_0x303cc5(),_0x22ff73=_0x102422['id'],_0x2de18c='insertion:'+_0xae2eeb,_0x19a14f=this['_setSuggestionData']({'id':_0x350f86,'type':_0x2de18c,'createdAt':new Date(),'authorId':_0x22ff73,'attributes':_0x25145d});for(const _0x2ee494 of _0x2ecb2e)this['_addSuggestionMarker'](_0x2de18c,_0x350f86,_0x22ff73,_0x2ee494,u['getMultiRangeId']());return _0x19a14f;}['markInlineFormat'](_0x293454,_0x402297,_0x141f04=null,_0x365e56={}){if(_0x141f04=_0x141f04||Gt(_0x402297),_0x293454['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3d3239=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x141f04,'accept');return this['forceDefaultExecution'](()=>_0x3d3239([_0x293454],_0x402297,_0x365e56)),null;}const _0x1a843d=this['editor']['plugins']['get']('Users')['me'],_0x2f0fbe=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x128637,meta:_0x5b2411}of this['_findSuggestions'](_0x293454,'insertion'))_0x5b2411['isOwn']&&!_0x5b2411['isInsideObject']&&_0x2f0fbe['push'](..._0x128637['getRanges']());}const _0x3a8de5=function(_0x3b08e1,_0x15c062){const _0x514a4b=[];for(const _0x45222b of _0x15c062){const _0x21c5f5=_0x3b08e1['getIntersection'](_0x45222b);_0x21c5f5&&_0x514a4b['push'](_0x21c5f5);}return _0x514a4b;}(_0x293454,_0x2f0fbe),_0x5e8b57=function(_0x549221,_0x73e337){const _0x5edd48=[_0x549221];for(const _0x1eb194 of _0x73e337){let _0x5a793f=0x0;for(;_0x5a793f<_0x5edd48['length'];){const _0x51f6fe=_0x5edd48[_0x5a793f]['getDifference'](_0x1eb194);_0x5edd48['splice'](_0x5a793f,0x1,..._0x51f6fe),_0x5a793f+=_0x51f6fe['length'];}}return _0x5edd48;}(_0x293454,_0x2f0fbe);_0x3a8de5['length']&&this['_model']['change'](()=>{for(const _0x25cd2b of _0x3a8de5){const _0x4979a7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x141f04,'accept');this['forceDefaultExecution'](()=>_0x4979a7([_0x25cd2b],_0x402297,_0x365e56));}});for(const _0x1d6286 of _0x5e8b57){let _0x229f72=null,_0x3ffdfd=_0x1d6286['start'],_0x9e03e3=_0x1d6286['end'];for(const {suggestion:_0x326a70,meta:_0x4d89ba}of this['_findSuggestions'](_0x1d6286,'formatInline')){if(!_0x4d89ba['isOwn'])continue;if(_0x326a70['subType']!=_0x141f04)continue;if(!zt(_0x326a70,_0x365e56))continue;const _0x1ae497=_0x326a70['getFirstRange']();if(_0x1ae497['containsRange'](_0x1d6286,!0x0))return null;_0x3ffdfd=_0x3ffdfd['isBefore'](_0x1ae497['start'])?_0x3ffdfd:_0x1ae497['start'],_0x9e03e3=_0x9e03e3['isAfter'](_0x1ae497['end'])?_0x9e03e3:_0x1ae497['end'],_0x229f72?_0x1ae497['start']['isBefore'](_0x229f72['getFirstRange']()['start'])?(_0x229f72['removeMarkers'](),_0x229f72=_0x326a70):_0x326a70['removeMarkers']():_0x229f72=_0x326a70;}const _0xc5c01f=this['_model']['createRange'](_0x3ffdfd,_0x9e03e3);if(_0x229f72)this['_setSuggestionRange'](_0x229f72,_0xc5c01f);else{const _0x363f3f=_0x303cc5(),_0xa3ab3a=_0x1a843d['id'];this['_setSuggestionData']({'id':_0x363f3f,'type':'formatInline:'+_0x141f04,'data':_0x402297,'createdAt':new Date(),'authorId':_0xa3ab3a,'attributes':_0x365e56}),this['_addSuggestionMarker']('formatInline:'+_0x141f04,_0x363f3f,_0xa3ab3a,_0xc5c01f);}}return null;}['markBlockFormat'](_0xfbaa62,_0x2f5836,_0xd1f3b3=[],_0x1b977b=null,_0x3f334a={}){_0x2f5836['formatGroupId']||(_0x2f5836['formatGroupId']=_0x2f5836['commandName']),_0x2f5836['multipleBlocks']=_0xfbaa62['is']('range'),_0x1b977b=_0x1b977b||Gt(_0x2f5836);const _0x2a435f=_0xd1f3b3['map'](_0xdc8a87=>Jt(_0xdc8a87,this['_model'])),_0x13f349=_0xfbaa62['is']('range')?_0xfbaa62:Jt(_0xfbaa62,this['_model']);if('never'===this['_trackFormatChanges']){const _0xa10d0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b977b,'accept');return this['forceDefaultExecution'](()=>_0xa10d0b([_0x13f349],_0x2f5836,_0x3f334a)),null;}_0x2a435f['push'](_0x13f349);let _0x289f1a=!0x0;for(const _0x286c28 of _0x2a435f)if(!this['_rangeIsInLocalUserInsertion'](_0x286c28)){_0x289f1a=!0x1;break;}if(_0x289f1a&&'always'!==this['_trackFormatChanges']){const _0x142c80=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b977b,'accept');return this['forceDefaultExecution'](()=>_0x142c80([_0x13f349],_0x2f5836,_0x3f334a)),null;}let _0x378191=null,_0x5b280c=_0x13f349['start'],_0x4695f0=_0x13f349['end'];for(const {suggestion:_0x68b2c9,meta:_0x59e8ef}of this['_findSuggestions'](_0x13f349,'formatBlock')){if(!_0x59e8ef['isOwn'])continue;if(_0x59e8ef['isNextTo']||_0x59e8ef['containsRangeInObject']||_0x59e8ef['isInsideObject'])continue;if(_0x68b2c9['data']['formatGroupId']!=_0x2f5836['formatGroupId'])continue;if(!zt(_0x68b2c9,_0x3f334a))continue;const _0x115e55=_0x68b2c9['getFirstRange']();if(_0x68b2c9['subType']==_0x1b977b){if(_0x115e55['containsRange'](_0x13f349,!0x0))return null;_0x5b280c=_0x5b280c['isBefore'](_0x115e55['start'])?_0x5b280c:_0x115e55['start'],_0x4695f0=_0x4695f0['isAfter'](_0x115e55['end'])?_0x4695f0:_0x115e55['end'],_0x378191?_0x115e55['start']['isBefore'](_0x378191['getFirstRange']()['start'])?(_0x378191['removeMarkers'](),_0x378191=_0x68b2c9):_0x68b2c9['removeMarkers']():_0x378191=_0x68b2c9;}else{const _0xae7753=_0x13f349['getIntersection'](_0x115e55);this['_cutOutSuggestionMarker'](_0x68b2c9,_0xae7753);}}const _0x375820=this['editor']['plugins']['get']('Users')['me'],_0x4505d3=_0x303cc5(),_0x1dc4b0=_0x375820['id'];if(_0x378191)return this['_setSuggestionRange'](_0x378191,this['_model']['createRange'](_0x5b280c,_0x4695f0)),_0x378191;{const _0x45ed2f=this['_setSuggestionData']({'id':_0x4505d3,'type':'formatBlock:'+_0x1b977b,'data':_0x2f5836,'createdAt':new Date(),'authorId':_0x1dc4b0,'attributes':_0x3f334a});return this['_addSuggestionMarker']('formatBlock:'+_0x1b977b,_0x4505d3,_0x1dc4b0,this['_model']['createRange'](_0x5b280c,_0x4695f0)),_0x45ed2f;}}['markMultiRangeBlockFormat'](_0x5e2390,_0x20b138,_0xbbf4a6=[],_0x1fab1b=null,_0x421b16={}){_0x20b138['formatGroupId']||(_0x20b138['formatGroupId']=_0x20b138['commandName']);const _0x23c6ec=_0x5e2390[0x0];_0x20b138['multipleBlocks']=_0x23c6ec['is']('range'),_0x1fab1b=_0x1fab1b||Gt(_0x20b138);const _0x566a9e=_0xbbf4a6['map'](_0x366d5c=>Jt(_0x366d5c,this['_model'])),_0x471608=_0x23c6ec['is']('range')?_0x5e2390:_0x5e2390['map'](_0x9cbd17=>Jt(_0x9cbd17,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2f936b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fab1b,'accept');return this['forceDefaultExecution'](()=>_0x2f936b(_0x471608,_0x20b138,_0x421b16)),null;}_0x566a9e['push'](..._0x471608);let _0x2100c5=!0x0;for(const _0xf26024 of _0x566a9e)if(!this['_rangeIsInLocalUserInsertion'](_0xf26024)){_0x2100c5=!0x1;break;}if(_0x2100c5&&'always'!==this['_trackFormatChanges']){const _0xc239b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fab1b,'accept');return this['forceDefaultExecution'](()=>_0xc239b(_0x471608,_0x20b138,_0x421b16)),null;}const _0x3d21d9=this['editor']['plugins']['get']('Users')['me'];for(const _0x1615c5 of this['getSuggestions']()){if(_0x1615c5['author']['id']!=_0x3d21d9['id'])continue;if('formatBlock'!=_0x1615c5['type']||_0x1615c5['data']['formatGroupId']!=_0x20b138['formatGroupId'])continue;if(!zt(_0x1615c5,_0x421b16))continue;const _0x18b62a=_0x1615c5['subType']==_0x1fab1b;for(let _0x36b9d1=0x0;_0x36b9d1<_0x471608['length'];_0x36b9d1++){const _0x4a03f4=_0x471608[_0x36b9d1];for(const _0x4c1551 of _0x1615c5['getMarkers']()){const _0x796d88=_0x4c1551['getRange']();if(_0x4a03f4['isEqual'](_0x796d88)){_0x18b62a?(_0x471608['splice'](_0x36b9d1,0x1),_0x36b9d1--):_0x1615c5['removeMarker'](_0x4c1551['name']);break;}}}}if(0x0==_0x471608['length'])return null;const _0x460728=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fab1b,'join');for(const _0x509719 of this['getSuggestions']())if(_0x509719['author']['id']==_0x3d21d9['id']&&'formatBlock'==_0x509719['type']&&_0x509719['data']['formatGroupId']==_0x20b138['formatGroupId']&&_0x509719['subType']==_0x1fab1b&&zt(_0x509719,_0x421b16)&&(_0x460728(_0x509719['getRanges'](),_0x471608)||_0x460728(_0x471608,_0x509719['getRanges']()))){for(const _0x2e9455 of _0x471608)_0x509719['addRange'](_0x2e9455);return _0x509719;}const _0x1152a1=_0x303cc5(),_0x28465f=_0x3d21d9['id'],_0x4bae26='formatBlock:'+_0x1fab1b,_0xe3b58=this['_setSuggestionData']({'id':_0x1152a1,'type':_0x4bae26,'data':_0x20b138,'createdAt':new Date(),'authorId':_0x28465f,'attributes':_0x421b16});for(const _0x396e07 of _0x471608)this['_addSuggestionMarker'](_0x4bae26,_0x1152a1,_0x28465f,_0x396e07,u['getMultiRangeId']());return _0xe3b58;}['markDeletion'](_0x6a2a4,_0x375844=null,_0x487f89={}){if(_0x6a2a4['isCollapsed'])return null;const _0x546e2b=this['editor']['plugins']['get']('Users')['me'],_0x5cb099=new _0x5e91cd(_0x6a2a4['start'],_0x6a2a4['end']);for(const {suggestion:_0xe0b775,meta:_0x2ea8fc}of this['_findSuggestions'](_0x5cb099,'insertion'))if(_0x2ea8fc['isOwn']&&!_0x2ea8fc['isNextTo']){if(_0xe0b775['isMultiRange']){const _0x4cfe01=_0xe0b775['getRanges']()['filter'](_0x13dbae=>'$graveyard'!=_0x13dbae['root']['rootName']);_0x4cfe01['every'](_0xa4cd68=>_0x5cb099['containsRange'](_0xa4cd68,!0x0))&&_0xe0b775['discard']();if(_0x4cfe01['some'](_0x4676c0=>_0x4676c0['containsRange'](_0x5cb099,!0x0))){const _0x3c3e68=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x375844,'accept');return this['forceDefaultExecution'](()=>_0x3c3e68([_0x5cb099],null,_0x487f89)),null;}}else{const _0x436166=_0x5cb099['getIntersection'](_0xe0b775['getFirstRange']());null!==_0x436166&&_0xe0b775['_onDiscard']([_0x436166],null,_0x487f89);}}if(_0x5cb099['detach'](),_0x5cb099['isCollapsed']||'$graveyard'==_0x5cb099['root']['rootName'])return null;let _0x375357=null,_0x186c94=_0x5cb099['start'],_0x2d314a=_0x5cb099['end'];const _0x43f240=this['_findSuggestions'](_0x5cb099,'deletion');for(const {suggestion:_0x44fda8,meta:_0x9b7a9d}of _0x43f240){const _0x1fd49f=this['_model']['createRange'](_0x186c94,_0x2d314a);if(_0x9b7a9d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9b7a9d['containsRangeInObject']&&!_0x9b7a9d['isInsideObject'])){if(_0x44fda8['isMultiRange']){if(!zt(_0x44fda8,_0x487f89))continue;let _0x1f627d=!0x0;for(const _0x4eb49b of _0x44fda8['getRanges']()){if(_0x4eb49b['containsRange'](_0x1fd49f,!0x0))return _0x44fda8;_0x1fd49f['containsRange'](_0x4eb49b)||(_0x1f627d=!0x1);}_0x1f627d&&_0x44fda8['discard']();}else{const _0x51edbc=_0x44fda8['getFirstRange']();if(_0x51edbc['containsRange'](_0x1fd49f,!0x0))return _0x44fda8;if(!zt(_0x44fda8,_0x487f89)){_0x1fd49f['containsRange'](_0x51edbc)?_0x44fda8['removeMarkers']():_0x51edbc['containsPosition'](_0x186c94)?_0x186c94=_0x51edbc['end']:_0x51edbc['containsPosition'](_0x2d314a)&&(_0x2d314a=_0x51edbc['start']);continue;}_0x186c94=_0x186c94['isBefore'](_0x51edbc['start'])?_0x186c94:_0x51edbc['start'],_0x2d314a=_0x2d314a['isAfter'](_0x51edbc['end'])?_0x2d314a:_0x51edbc['end'],_0x487f89=Object['assign']({},_0x44fda8['attributes']),_0x375357?_0x51edbc['start']['isBefore'](_0x375357['getFirstRange']()['start'])?(_0x375357['removeMarkers'](),_0x375357=_0x44fda8):_0x44fda8['removeMarkers']():_0x375357=_0x44fda8;}}}if(_0x375357)return this['_setSuggestionRange'](_0x375357,this['_model']['createRange'](_0x186c94,_0x2d314a)),_0x375357;{const _0x543f06=_0x303cc5(),_0x1f5391=this['_model']['createRange'](_0x186c94,_0x2d314a),_0x50382e=_0x546e2b['id'],_0x353e3b=_0x375844?'deletion:'+_0x375844:'deletion',_0x3c391f=this['_setSuggestionData']({'id':_0x543f06,'type':_0x353e3b,'createdAt':new Date(),'authorId':_0x50382e,'attributes':_0x487f89});return this['_addSuggestionMarker'](_0x353e3b,_0x543f06,_0x50382e,_0x1f5391),_0x3c391f;}}['markMultiRangeDeletion'](_0x161c18,_0x528a62='multi',_0x3c0502={}){const _0xb93c3c=this['editor']['plugins']['get']('Users')['me'],_0x416fc2=_0x161c18['map'](_0x175f56=>new _0x5e91cd(_0x175f56['start'],_0x175f56['end'])),_0x369f09=new Set();for(const {suggestion:_0x205d16,meta:_0x3cfced}of this['_findSuggestions'](_0x416fc2,'insertion'))_0x3cfced['isOwn']&&!_0x3cfced['isNextTo']&&_0x369f09['add'](_0x205d16);for(const _0x2e3a1e of _0x369f09)if(_0x2e3a1e['isMultiRange']){const _0x469ac3=_0x2e3a1e['getRanges']();(!_0x2e3a1e['attributes']||!_0x2e3a1e['attributes']['skipNestingCheck'])&&(_0x469ac3['every'](_0x3a6c18=>_0x416fc2['some'](_0x2537ca=>_0x2537ca['containsRange'](_0x3a6c18,!0x0)))&&_0x2e3a1e['discard']());if(_0x416fc2['every'](_0x52f16c=>_0x469ac3['some'](_0xe53eb1=>_0xe53eb1['containsRange'](_0x52f16c,!0x0)))){const _0x2681f0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x528a62,'accept');return this['forceDefaultExecution'](()=>_0x2681f0(_0x161c18,null,_0x3c0502)),null;}}else{const _0x157161=_0x2e3a1e['getFirstRange']();_0x416fc2['some'](_0x1790c2=>_0x1790c2['containsRange'](_0x157161,!0x0))&&_0x2e3a1e['discard']();if(_0x416fc2['every'](_0x378148=>_0x157161['containsRange'](_0x378148,!0x0))){const _0x55d098=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x528a62,'accept');return this['forceDefaultExecution'](()=>_0x55d098(_0x416fc2,null,_0x3c0502)),null;}}const _0x337a14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x528a62,'join');let _0x5cbdb4=null;for(const _0x53ebdf of this['getSuggestions']())if(_0x53ebdf['author']['id']==_0xb93c3c['id']&&_0x53ebdf['isInContent']&&'deletion'==_0x53ebdf['type']&&_0x53ebdf['subType']==_0x528a62&&zt(_0x53ebdf,_0x3c0502)&&(_0x337a14(_0x53ebdf['getRanges'](),_0x416fc2)||_0x337a14(_0x416fc2,_0x53ebdf['getRanges']()))){if(_0x5cbdb4){if(_0x53ebdf['commentThread']&&_0x53ebdf['commentThread']['length'])continue;for(const _0x2b1532 of _0x53ebdf['getRanges']())_0x5cbdb4['isIntersectingWithRange'](_0x2b1532)||_0x5cbdb4['addRange'](_0x2b1532);_0x53ebdf['removeMarkers']();}else{_0x5cbdb4=_0x53ebdf;for(const _0x1a422f of _0x416fc2)_0x53ebdf['isIntersectingWithRange'](_0x1a422f)||_0x53ebdf['addRange'](_0x1a422f);}}if(_0x5cbdb4)return _0x5cbdb4;_0x369f09['clear']();for(const {suggestion:_0x1a11be,meta:_0x5cbb46}of this['_findSuggestions'](_0x416fc2,'deletion'))_0x5cbb46['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cbb46['containsRangeInObject']&&!_0x5cbb46['isInsideObject'])&&zt(_0x1a11be,_0x3c0502)&&_0x369f09['add'](_0x1a11be);for(const _0x3be8fc of _0x369f09){const _0x211176=_0x3be8fc['getRanges']();if(!_0x3c0502||!_0x3c0502['skipNestingCheck']){if(_0x416fc2['every'](_0x3eea41=>_0x211176['some'](_0x384f33=>_0x384f33['containsRange'](_0x3eea41,!0x0))))return _0x3be8fc;}(!_0x3be8fc['attributes']||!_0x3be8fc['attributes']['skipNestingCheck'])&&(_0x211176['every'](_0x35bfd4=>_0x416fc2['some'](_0x90fa52=>_0x90fa52['containsRange'](_0x35bfd4,!0x0)))&&_0x3be8fc['discard']());}const _0x209f97=_0x303cc5(),_0x16cb42=_0xb93c3c['id'],_0x59f637='deletion:'+_0x528a62,_0x598dff=this['_setSuggestionData']({'id':_0x209f97,'type':_0x59f637,'createdAt':new Date(),'authorId':_0x16cb42,'attributes':_0x3c0502});for(const _0x44030a of _0x416fc2)_0x44030a['detach'](),_0x44030a['isCollapsed']||'$graveyard'==_0x44030a['root']['rootName']||this['_addSuggestionMarker'](_0x59f637,_0x209f97,_0x16cb42,_0x44030a,u['getMultiRangeId']());return _0x598dff;}['markAttributeChange'](_0x3fcdbd,_0x5e3cb8,_0x53fc3c,_0x4f4993,_0x27ccf0){if(_0x3fcdbd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x483264=this['editor']['plugins']['get']('Users')['me']['id'],_0x27f416=Array['from'](this['_suggestions']['values']())['filter'](_0x3131d5=>'attribute'==_0x3131d5['type']&&_0x3131d5['data']['key']==_0x5e3cb8&&_0x3131d5['isIntersectingWithRange'](_0x3fcdbd));if('default'===this['_trackFormatChanges']){const _0x4e1416=this['_findSuggestions'](_0x3fcdbd,'insertion')['filter'](({meta:_0x4e43c9})=>_0x4e43c9['isOwn']&&!_0x4e43c9['isInsideObject']&&!_0x4e43c9['isNextTo'])['map'](({suggestion:_0x39792d})=>_0x39792d);_0x27f416['unshift'](..._0x4e1416);}const _0x1da76e=new Map([[_0x3fcdbd,_0x53fc3c]]);for(const _0x3228f1 of _0x27f416){const _0x20978c='attribute'==_0x3228f1['type']?_0x3228f1['data']['oldValue']:void 0x0,_0x132aac=_0x3228f1['getFirstRange'](),_0x54010a=Array['from'](_0x1da76e['keys']())['find'](_0x3c612a=>_0x3c612a['isIntersecting'](_0x132aac));if(!_0x54010a)continue;const _0x61f48e=_0x54010a['getDifference'](_0x132aac);this['_isBlockAttribute'](_0x5e3cb8)&&'insertion'==_0x3228f1['type']&&0x0!=_0x61f48e['length']||(_0x1da76e['delete'](_0x54010a),_0x61f48e['forEach'](_0x2813a4=>{_0x1da76e['set'](_0x2813a4,_0x53fc3c);}),'insertion'!=_0x3228f1['type']&&_0x20978c!=_0x4f4993&&_0x1da76e['set'](_0x54010a['getIntersection'](_0x132aac),_0x20978c));}const _0x3323d6=[];for(const [_0x1844e3,_0x506cc4]of _0x1da76e){const _0x3d0d00=_0x303cc5(),_0x53022f={'key':_0x5e3cb8,'oldValue':_0x506cc4,'newValue':_0x4f4993};_0x5e3cb8['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':_0x5e3cb8});const _0x561bbd=('attribute:'+(_0x5e3cb8+'|'+Gt({'newValue':_0x4f4993})))['substring'](0x0,0x3c),_0x1c849e=this['_setSuggestionData']({'id':_0x3d0d00,'type':_0x561bbd,'data':_0x53022f,'createdAt':new Date(),'authorId':_0x483264,'attributes':_0x27ccf0});_0x3323d6['push'](_0x1c849e),this['_addSuggestionMarker'](_0x561bbd,_0x3d0d00,_0x483264,_0x1844e3);}return _0x3323d6;}['enableDefaultAttributesIntegration'](_0x77bc13){this['enableCommand'](_0x77bc13,(_0x253236,..._0x58101d)=>{this['_recordAttributeChanges'](()=>{_0x253236(..._0x58101d);});});}['registerBlockAttribute'](_0x237040){this['_blockAttributeKeys']['add'](_0x237040);}['registerInlineAttribute'](_0x32601d){this['_inlineAttributeKeys']['add'](_0x32601d);}['_getAttributeKey'](_0x25eaca){return'attribute'==_0x25eaca['type']?_0x25eaca['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x255c15,_0x2fdda1){const _0xf44b07=_0x255c15['getFirstMarker']();this['_model']['change'](_0x172400=>{_0x172400['updateMarker'](_0xf44b07,{'range':_0x2fdda1});});}['_addThreadToSuggestion'](_0x550331){const _0x4c5e88=_0x550331['id'],_0x12eb82=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4c5e88)||this['_commentsRepository']['addCommentThread']({'channelId':_0x12eb82,'threadId':_0x4c5e88,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x314b69=this['_commentsRepository']['getCommentThread'](_0x4c5e88);_0x314b69['unbind']('isRemovable'),_0x314b69['isRemovable']=!0x1,_0x550331['commentThread']=_0x314b69;}['_checkSuggestionCorrectness'](_0x225a3e,_0x489e52,_0x220602,_0x571154){if(_0x225a3e['type']!=_0x489e52||_0x225a3e['subType']!=_0x220602||_0x225a3e['creator']['id']!=_0x571154)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c1a8a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x47191d,_0x502993){const _0x579b81=_0x47191d['getFirstRange']();if(_0x502993['isEqual'](_0x579b81))_0x47191d['removeMarkers']();else{if(_0x579b81['containsRange'](_0x502993)){const _0x54cfa9=this['_model']['createPositionAt'](_0x502993['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47191d,this['_model']['createRange'](_0x579b81['start'],_0x54cfa9));const _0x1d0fd5=_0x303cc5(),_0x1ba61d=_0x47191d['creator']['id'],_0x2488fb=_0x47191d['type']+':'+_0x47191d['subType'];this['_setSuggestionData']({'id':_0x1d0fd5,'type':_0x2488fb,'createdAt':new Date(),'authorId':_0x1ba61d,'data':_0x47191d['data'],'attributes':_0x47191d['attributes']});const _0x5207b8=this['_model']['createPositionAt'](_0x502993['end']['parent'],'after'),_0x270d28=this['_model']['createRange'](_0x5207b8,_0x579b81['end']);this['_addSuggestionMarker'](_0x2488fb,_0x1d0fd5,_0x1ba61d,_0x270d28);}else{if(_0x579b81['containsPosition'](_0x502993['start'])){const _0x341d87=this['_model']['createPositionAt'](_0x502993['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47191d,this['_model']['createRange'](_0x579b81['start'],_0x341d87));}else{const _0x219546=this['_model']['createPositionAt'](_0x502993['end']['parent'],'after');this['_setSuggestionRange'](_0x47191d,this['_model']['createRange'](_0x219546,_0x579b81['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1472c5){for(const {suggestion:_0x6e06c,meta:_0x39e880}of this['_findSuggestions'](_0x1472c5,'insertion')){if(!_0x39e880['isOwn'])continue;const _0xb9cf5a=_0x6e06c['getRanges']();for(const _0x30ba91 of _0xb9cf5a)if(!_0x1472c5['getDifference'](_0x30ba91)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x40220a){const _0x3ef0ff=this['editor']['plugins']['get']('Users')['getUser'](_0x40220a);if(!_0x3ef0ff)throw new _0x1c1a8a('track-changes-user-not-found',this);return _0x3ef0ff;}['_getExternalAuthor'](_0x5328e5){const _0x565fec=this['editor']['plugins']['get']('Users'),_0x49a06a=_0x30c346('external:'+_0x5328e5),_0x4ec1d8=_0x565fec['getUser'](_0x49a06a);return _0x4ec1d8||_0x565fec['addUser']({'id':_0x49a06a,'name':_0x5328e5});}['_createSuggestion'](_0x4f5fda,_0x50fc36,_0x1e85ba,_0x22cb6a,_0x339c7a){const _0x3c006f=this['_getAuthorFromId'](_0x22cb6a),_0x4484ae=this['_suggestionFactory']['buildSuggestion'](_0x4f5fda,_0x50fc36,_0x1e85ba,_0x3c006f,_0x339c7a,_0x496cb7=>{this['_updateSuggestionData'](_0x1e85ba,{'attributes':_0x496cb7});const _0x583cd3=this['getSuggestion'](_0x1e85ba);this['_joinWithAdjacentSuggestions'](new Set([_0x583cd3])),this['_refreshSuggestionsChain'](new Set([_0x583cd3]));});return this['listenTo'](_0x4484ae,'accept',()=>{this['_updateSuggestionData'](_0x1e85ba,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4484ae,'discard',()=>{this['_updateSuggestionData'](_0x1e85ba,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e85ba,_0x4484ae),this['_suggestionState']['set'](_0x4484ae,'notReady'),_0x4484ae;}['_splitMarkerName'](_0x3b76f0){const _0x3fc975=_0x3b76f0['split'](':');return{'group':_0x3fc975[0x0],'type':_0x3fc975[0x1],'subType':_0x3fc975['length']>=0x5?_0x3fc975[0x2]:null,'id':_0x3fc975['length']<0x5?_0x3fc975[0x2]:_0x3fc975[0x3],'authorId':_0x3fc975['length']<0x5?_0x3fc975[0x3]:_0x3fc975[0x4],'markerCount':0x6==_0x3fc975['length']?_0x3fc975[0x5]:null};}['_breakSuggestionMarker'](_0x1c7ef6,_0x246592,_0x2e6143){const _0x3392ed=_0x1c7ef6['getFirstRange'](),_0x234adc=_0x3392ed['start'],_0x2984f0=_0x3392ed['end'];this['_setSuggestionRange'](_0x1c7ef6,this['_model']['createRange'](_0x234adc,_0x246592));const _0x59f52d=_0x303cc5(),_0x2af2aa=_0x1c7ef6['creator']['id'],_0x515df9=_0x1c7ef6['type']+(_0x1c7ef6['subType']?':'+_0x1c7ef6['subType']:'');this['_setSuggestionData']({'id':_0x59f52d,'type':_0x515df9,'createdAt':new Date(),'authorId':_0x2af2aa,'originalSuggestionId':_0x1c7ef6['id'],'attributes':_0x1c7ef6['attributes'],'data':_0x1c7ef6['data']});const _0x3404fa=this['_getAttributeKey'](_0x1c7ef6);('formatBlock'==_0x1c7ef6['type']||_0x3404fa&&this['_isBlockAttribute'](_0x3404fa))&&(_0x2e6143=this['_model']['createPositionBefore'](_0x2e6143['parent'])),this['_addSuggestionMarker'](_0x515df9,_0x59f52d,_0x2af2aa,this['_model']['createRange'](_0x2e6143,_0x2984f0));}['_findSuggestions'](_0x540aa4,_0x431807=null){const _0x3278ef=[],_0x21fd03=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x540aa4)||(_0x540aa4=[_0x540aa4]);for(const _0x5d2db9 of this['getSuggestions']()){if(!_0x5d2db9['isInContent'])continue;if(_0x431807&&_0x5d2db9['type']!=_0x431807)continue;let _0x11b354=!0x1;for(const _0x50ec51 of _0x5d2db9['getRanges']()){for(const _0x15fccf of _0x540aa4){const _0x33ba88=_0x15fccf['start']['isEqual'](_0x50ec51['end'])||_0x15fccf['end']['isEqual'](_0x50ec51['start']);if(_0x33ba88||_0x15fccf['getIntersection'](_0x50ec51)){const _0x1dbd1d=_0x15fccf['containsRange'](_0x50ec51)&&Ut(this['_model']['schema'],_0x50ec51['start'],_0x15fccf),_0x3ff314=_0x50ec51['containsRange'](_0x15fccf)&&Ut(this['_model']['schema'],_0x15fccf['start'],_0x50ec51);_0x3278ef['push']({'suggestion':_0x5d2db9,'meta':{'isOwn':_0x21fd03==_0x5d2db9['author'],'isNextTo':_0x33ba88,'isInsideObject':_0x1dbd1d,'containsRangeInObject':_0x3ff314}}),_0x11b354=!0x0;break;}}if(_0x11b354)break;}}return _0x3278ef;}['_addSuggestionMarker'](_0x38960a,_0xdc3210,_0x1b118f,_0x37aa32,_0x74e42f){this['_model']['change'](_0x4d0496=>{let _0xd15000='suggestion:'+_0x38960a+':'+_0xdc3210+':'+_0x1b118f;_0x74e42f&&(_0xd15000=_0xd15000+':'+_0x74e42f),_0x4d0496['addMarker'](_0xd15000,{'range':_0x37aa32,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x46e7b2){const _0x470f26=_0x46e7b2['previous'],_0xcf9b=_0x46e7b2['next'];_0x46e7b2['previous']=null,_0x46e7b2['next']=null,null!=_0x470f26&&_0x470f26['next']==_0x46e7b2&&(_0x470f26['next']=_0xcf9b),null!=_0xcf9b&&_0xcf9b['previous']==_0x46e7b2&&(_0xcf9b['previous']=_0x470f26),'ready'==this['_suggestionState']['get'](_0x46e7b2)&&(this['_suggestionState']['set'](_0x46e7b2,'removed'),this['fire']('suggestionUnloaded',_0x46e7b2,_0x470f26,_0xcf9b));}['_setSuggestionData'](_0x46e24f){const _0x68094=_0x46e24f['id'],_0x39a2a3=this['addSuggestionData'](_0x46e24f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xef4bb1=this['editor']['plugins']['get']('PendingActions'),_0x50f268=_0x39a2a3['hasComments'],_0x5e5b11=_0x39a2a3['subType']?_0x39a2a3['type']+':'+_0x39a2a3['subType']:_0x39a2a3['type'],_0x13672b=this['editor']['locale'],_0x19fdc4=_0xef4bb1['add'](o(_0x13672b,'PENDING_ACTION_SUGGESTION')),_0x5870f9={'id':_0x68094,'type':_0x5e5b11,'hasComments':_0x50f268,'data':_0x46e24f['data']||null,'originalSuggestionId':_0x46e24f['originalSuggestionId']||null,'attributes':_0x39a2a3['attributes']};this['_adapter']['addSuggestion'](_0x5870f9)['then'](_0x19203d=>{_0x39a2a3['_saved']=!0x0,_0xef4bb1['remove'](_0x19fdc4),_0x19203d&&_0x19203d['createdAt']&&(this['_suggestions']['get'](_0x68094)['createdAt']=_0x19203d['createdAt']);})['catch'](_0x410053=>{throw _0x2add20('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x39a2a3['discard']();}),_0x39a2a3['stopListening'](),this['_suggestions']['delete'](_0x39a2a3['id']),this['_suggestionState']['delete'](_0x39a2a3),_0x410053;});}return _0x39a2a3;}['_isBlockAttribute'](_0x4d4cea){return this['_blockAttributeKeys']['has'](_0x4d4cea);}['_updateSuggestionData'](_0x184958,_0x27c3a7){const _0x20d089=this['editor']['plugins']['get']('PendingActions'),_0xefc78=this['getSuggestion'](_0x184958);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xefc78['_saved']){const _0x5e280a=_0x20d089['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x184958,_0x27c3a7)['then'](()=>{_0x20d089['remove'](_0x5e280a);});}else _0xefc78['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x184958,_0x27c3a7);});}}['_getSuggestionData'](_0x488f63){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c1a8a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x488f63);}['_handleNewSuggestionMarker'](_0x18c58e){const {id:_0x244ee,type:_0x38b33c,subType:_0x5c1371,authorId:_0x20f6ca}=this['_splitMarkerName'](_0x18c58e),_0x3cd73f=this['_suggestions']['get'](_0x244ee)||this['_createSuggestion'](_0x38b33c,_0x5c1371,_0x244ee,_0x20f6ca,{});switch(this['_checkSuggestionCorrectness'](_0x3cd73f,_0x38b33c,_0x5c1371,_0x20f6ca),this['_suggestionState']['get'](_0x3cd73f)){case'notReady':this['_getSuggestionData'](_0x244ee)['then'](_0x5d355f=>{let _0x5aa099=Promise['resolve']();_0x5d355f['hasComments']&&(_0x5aa099=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x244ee})),_0x5aa099['then'](()=>{this['addSuggestionData'](_0x5d355f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3cd73f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x244ee,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3cd73f,'ready'),this['fire']('suggestionLoaded',_0x3cd73f);break;case'ready':this['fire']('suggestionChanged',_0x3cd73f);}return _0x3cd73f['addMarkerName'](_0x18c58e),_0x3cd73f;}['_refreshSuggestionsChain'](_0x2f3b15){const _0x677b80=Array['from'](_0x2f3b15),_0x377aa1=_0x677b80['filter'](_0x50bb66=>'attribute'==_0x50bb66['type']);this['_refreshAttributeSuggestionsChain'](_0x377aa1);const _0x45c26a=_0x677b80['filter'](_0x4d395b=>!_0x4d395b['isMultiRange']&&'attribute'!=_0x4d395b['type']),_0xec3125=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f4686=>!_0x4f4686['isMultiRange']&&'attribute'!=_0x4f4686['type']),_0x11586e=_0xec3125['filter'](_0x3094e4=>!_0x2f3b15['has'](_0x3094e4)),_0x13caf1=new Map(_0xec3125['map'](_0x590d43=>[_0x590d43,this['_suggestionFactory']['getSuggestionCallback'](_0x590d43['type'],_0x590d43['subType'],'chain')])),_0x3bcdf2=new Map(_0xec3125['map'](_0x50eb1f=>[_0x50eb1f,_0x50eb1f['getFirstRange']()])),_0x1fddba=new Set(),_0x592c6b=new Set();for(let _0x5756b6=0x0;_0x5756b6<_0x45c26a['length'];_0x5756b6++)_0x54be8d(_0x45c26a[_0x5756b6],_0x45c26a,_0x5756b6+0x1);for(let _0x51dcee=0x0;_0x51dcee<_0x45c26a['length'];_0x51dcee++)_0x54be8d(_0x45c26a[_0x51dcee],_0x11586e,0x0);const _0x2512d4=new Set();for(let _0x5f2a10=0x0;_0x5f2a10<_0x45c26a['length'];_0x5f2a10++){const _0x35e286=_0x45c26a[_0x5f2a10];!_0x592c6b['has'](_0x35e286)&&_0x35e286['previous']&&(_0x2512d4['add'](_0x35e286['previous']),_0x35e286['previous']['next']===_0x35e286&&(_0x35e286['previous']['next']=null),_0x35e286['previous']=null),!_0x1fddba['has'](_0x35e286)&&_0x35e286['next']&&(_0x2512d4['add'](_0x35e286['next']),_0x35e286['next']['previous']===_0x35e286&&(_0x35e286['next']['previous']=null),_0x35e286['next']=null);}function _0x54be8d(_0x447aaa,_0x41c654,_0x2fe755){for(let _0x5cf8d3=_0x2fe755;_0x5cf8d3<_0x41c654['length'];_0x5cf8d3++){const _0x31ef02=_0x20f49e(_0x447aaa,_0x41c654[_0x5cf8d3]);_0x31ef02&&(_0x31ef02[0x0]['next']=_0x31ef02[0x1],_0x31ef02[0x1]['previous']=_0x31ef02[0x0],_0x1fddba['add'](_0x31ef02[0x0]),_0x592c6b['add'](_0x31ef02[0x1]));}}function _0x20f49e(_0x447e74,_0x22a928){if(_0x447e74['author']['id']!==_0x22a928['author']['id'])return null;const _0x1a6ff3=_0x13caf1['get'](_0x447e74)(_0x447e74,_0x22a928,_0x3bcdf2['get'](_0x447e74),_0x3bcdf2['get'](_0x22a928));if(!_0x1a6ff3)return null;return _0x13caf1['get'](_0x22a928)(_0x447e74,_0x22a928,_0x3bcdf2['get'](_0x447e74),_0x3bcdf2['get'](_0x22a928))?_0x1a6ff3[0x1]['commentThread']&&_0x1a6ff3[0x1]['commentThread']['length']?null:_0x1a6ff3:null;}_0x2512d4['size']&&this['_refreshSuggestionsChain'](_0x2512d4);}['_refreshAttributeSuggestionsChain'](_0x98a4da){if(0x0==_0x98a4da['length'])return;const _0x169941=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8f5438=>'attribute'==_0x8f5438['type']&&_0x8f5438['_isDataLoaded']),_0x29d7b8=[],_0x59b0a3=new Map();for(const _0x257484 of _0x169941){const _0x45f2ec=_0x30c346(_0x257484['attributes']);_0x59b0a3['has'](_0x45f2ec)||(_0x59b0a3['set'](_0x45f2ec,_0x29d7b8['length']),_0x29d7b8['push']([]));const _0x111d33=_0x59b0a3['get'](_0x45f2ec);_0x29d7b8[_0x111d33]['push'](_0x257484);}!(function(){_0x29d7b8['sort']((_0x17ad19,_0x868187)=>{const _0x10a8fa=_0x17ad19[0x0]['createdAt'],_0x3059ee=_0x868187[0x0]['createdAt'];return _0x10a8fa==_0x3059ee?_0x17ad19[0x0]['attributes']['groupId']<_0x868187[0x0]['attributes']['groupId']?-0x1:0x1:_0x10a8fa<_0x3059ee?-0x1:0x1;});for(const _0x125836 of _0x29d7b8)_0x125836['sort']((_0x136eb6,_0x29ba12)=>_0x136eb6['id']<_0x29ba12['id']?-0x1:0x1);}());for(let _0x10dfaa=0x0;_0x10dfaa<_0x29d7b8['length'];_0x10dfaa++){if(0x0==_0x29d7b8[_0x10dfaa]['length'])continue;const _0x408805=[];for(let _0x36a7e3=_0x10dfaa+0x1;_0x36a7e3<_0x29d7b8['length'];_0x36a7e3++)0x0!=_0x29d7b8[_0x36a7e3]['length']&&_0xccf100(_0x29d7b8[_0x10dfaa],_0x29d7b8[_0x36a7e3])&&_0x408805['push'](_0x36a7e3);for(const _0x25e77a of _0x408805)_0x29d7b8[_0x10dfaa]=_0x29d7b8[_0x10dfaa]['concat'](_0x29d7b8[_0x25e77a]),_0x29d7b8[_0x25e77a]=[];}for(const _0x404f66 of _0x29d7b8)for(let _0x57db4a=0x0;_0x57db4a<_0x404f66['length'];_0x57db4a++){const _0x5bb7b7=_0x404f66[_0x57db4a+0x1]||null;_0x404f66[_0x57db4a]['next']!==_0x5bb7b7&&(_0x404f66[_0x57db4a]['next']=_0x5bb7b7);}for(const _0x31e0bf of _0x29d7b8)for(let _0x20d7ce=0x0;_0x20d7ce<_0x31e0bf['length'];_0x20d7ce++){const _0x39bcb8=_0x31e0bf[_0x20d7ce-0x1]||null;_0x31e0bf[_0x20d7ce]['previous']!==_0x39bcb8&&(_0x31e0bf[_0x20d7ce]['previous']=_0x39bcb8);}function _0xccf100(_0x2d5014,_0x1771f5){if(_0x2d5014[0x0]['attributes']['groupId']!==_0x1771f5[0x0]['attributes']['groupId']&&_0x2d5014[0x0]['author']!==_0x1771f5[0x0]['author'])return!0x1;if(!function(_0x1013a5,_0x5c5bf5){if(!_0x1013a5['hasComments']&&!_0x5c5bf5['hasComments'])return!0x0;if(_0x1013a5['hasComments']&&_0x5c5bf5['hasComments'])return!0x1;if(_0x1013a5['hasComments']&&_0x5c5bf5['createdAt']<_0x1013a5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5c5bf5['hasComments']&&_0x1013a5['createdAt']<_0x5c5bf5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d5014[0x0],_0x1771f5[0x0]))return!0x1;const _0x5c23e7=xt(_0x2d5014[0x0]['attributes'],'groupId'),_0x111f2d=xt(_0x1771f5[0x0]['attributes'],'groupId');if(!_0x3b7fb8(_0x5c23e7,_0x111f2d))return!0x1;return!!_0x2d5014['every'](_0x542d15=>_0x1771f5['some'](_0x3405d2=>_0x542d15['getFirstRange']()['isEqual'](_0x3405d2['getFirstRange']())))&&_0x1771f5['every'](_0x367fca=>_0x2d5014['some'](_0x441a6d=>_0x367fca['getFirstRange']()['isEqual'](_0x441a6d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x18a082){const _0x5bdbc4=Array['from'](_0x18a082),_0x39448f=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe49bd5=_0x39448f['filter'](_0x36387b=>!_0x18a082['has'](_0x36387b)),_0x5b406a=new Map(_0x5bdbc4['map'](_0x5efd8f=>[_0x5efd8f,this['_suggestionFactory']['getSuggestionCallback'](_0x5efd8f['type'],_0x5efd8f['subType'],'join')])),_0x4c6599=new Map(_0x39448f['map'](_0x535660=>[_0x535660,_0x535660['getRanges']()]));for(let _0x5bef11=0x0;_0x5bef11<_0x5bdbc4['length'];_0x5bef11++){if(_0x5f28ea(this,_0x5bdbc4[_0x5bef11],_0x5bdbc4,_0x5bef11+0x1))return!0x0;}for(let _0x473ff3=0x0;_0x473ff3<_0x5bdbc4['length'];_0x473ff3++){if(_0x5f28ea(this,_0x5bdbc4[_0x473ff3],_0xe49bd5,0x0))return!0x0;}return!0x1;function _0x5f28ea(_0xc1154c,_0x9521dd,_0x59b7af,_0x1a9d4f){for(let _0x21c614=_0x1a9d4f;_0x21c614<_0x59b7af['length'];_0x21c614++){const _0x5b4696=_0x59b7af[_0x21c614];if(_0x5b4696['type']!==_0x9521dd['type']||_0x5b4696['author']['id']!==_0x9521dd['author']['id']||_0x5b4696['subType']!==_0x9521dd['subType'])continue;if(!qt(_0x9521dd,_0x5b4696))continue;if('attribute'==_0x9521dd['type']&&_0x9521dd['data']['oldValue']!=_0x5b4696['data']['oldValue'])continue;if('attribute'==_0x9521dd['type']&&_0xc1154c['_isBlockAttribute'](_0x9521dd['data']['key']))continue;if('formatBlock'==_0x9521dd['type']){const _0x5acbaf=_0xc1154c['editor']['model'],_0x17c75d=_0x9521dd['getContainedElement']();if(_0x17c75d&&(_0x5acbaf['schema']['isObject'](_0x17c75d)||_0x5acbaf['schema']['isLimit'](_0x17c75d)))continue;}const _0x3e02b2=_0x5b406a['get'](_0x9521dd),_0x1dcfb0=_0x4c6599['get'](_0x9521dd),_0x2e546e=_0x4c6599['get'](_0x5b4696),_0x217708=_0x9521dd['commentThread']&&_0x9521dd['commentThread']['length'],_0x23fb8c=_0x5b4696['commentThread']&&_0x5b4696['commentThread']['length'];if(!_0x217708&&_0x3e02b2(_0x2e546e,_0x1dcfb0))return _0xc1154c['_joinSuggestions'](_0x5b4696,_0x9521dd),_0x4c6599['delete'](_0x9521dd),!0x0;if(!_0x23fb8c&&_0x3e02b2(_0x1dcfb0,_0x2e546e))return _0xc1154c['_joinSuggestions'](_0x9521dd,_0x5b4696),_0x4c6599['delete'](_0x5b4696),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5813d9,_0x5a133a){if(_0x5813d9['isMultiRange']){for(const _0x133254 of _0x5a133a['getRanges']())_0x5813d9['addRange'](_0x133254);}else{const _0x3ef56d=_0x5a133a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5813d9,this['_model']['createRange'](_0x5813d9['getFirstRange']()['start'],_0x3ef56d));}_0x5a133a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11cb49,_0x4d7af0,_0x45dc3b){const _0x1fac75=_0x11cb49['startsWith']('format')||_0x11cb49['startsWith']('attribute')?'FORMATTING':_0x11cb49['toUpperCase']();return o(this['editor']['locale'],_0x4d7af0+'_'+_0x1fac75+'_SUGGESTION_ANNOUNCEMENT',_0x45dc3b);}['_initAriaMarkerChangeAnnouncements'](){const _0x54e792=this['editor'];if(!_0x54e792['ui'])return;const {ariaLiveAnnouncer:_0x4377c6}=_0x54e792['ui'];_0x4cdbd7(this['_model'],({left:_0x63b50,entered:_0x32957f})=>{for(const _0x27b580 of _0x63b50){const {group:_0x17d3ab,type:_0x191d29}=this['_splitMarkerName'](_0x27b580['name']);if('suggestion'===_0x17d3ab){_0x4377c6['announce'](this['_getMarkerAnnouncementText'](_0x191d29,'LEAVE'));break;}}for(const _0xcff1ee of _0x32957f){const {group:_0x367792,type:_0x3b225b}=this['_splitMarkerName'](_0xcff1ee['name']);if('suggestion'===_0x367792){_0x4377c6['announce'](this['_getMarkerAnnouncementText'](_0x3b225b,'ENTER',_0x2b5fa3(_0x23baf2)));break;}}});}['_processAttributeChanges'](_0x1c5088){if(this['_recordAttributeSuggestions'])return!0x1;const _0x463c83=this['editor'],_0x3fd4e9=_0x463c83['model']['document']['differ']['getChanges']();if(0x0==_0x3fd4e9['length'])return!0x1;const _0x42f1d5=[],_0x40a125=_0x3fd4e9['filter'](_0x2fdbc0=>'attribute'==_0x2fdbc0['type']),_0x4e99a0=_0x3fd4e9['filter'](_0x1bb376=>'insert'==_0x1bb376['type']&&'$text'!=_0x1bb376['name']),_0x57c852=_0x3fd4e9['filter'](_0x1d6644=>'remove'==_0x1d6644['type']&&'$text'!=_0x1d6644['name']);for(const _0x13f22f of _0x40a125)_0x42f1d5['push']({'key':_0x13f22f['attributeKey'],'newValue':_0x13f22f['attributeNewValue'],'oldValue':_0x13f22f['attributeOldValue'],'range':Lt(_0x13f22f['range'],_0x463c83['model'])});for(const _0x54a57c of _0x4e99a0){const _0x513edb=_0x57c852['find'](_0x21ff28=>_0x21ff28['position']['isEqual'](_0x54a57c['position']));_0x513edb&&_0x42f1d5['push']({'key':m,'newValue':_0x54a57c['name'],'oldValue':_0x513edb['name'],'range':_0x463c83['model']['createRangeOn'](_0x54a57c['position']['nodeAfter'])});}return 0x0!=_0x42f1d5['length']&&this['_reduceExistingSuggestions'](_0x1c5088,_0x42f1d5);}['_processAttributeSuggestions'](_0x38d837){let _0x2d5008=!0x1;const _0x48a5e0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x836783=>_0x836783['data']['newRange']&&_0x836783['name']['startsWith']('suggestion:attribute:'));for(const _0x33d4f5 of _0x48a5e0){const {subType:_0x499f15,id:_0x1c0f96}=this['_splitMarkerName'](_0x33d4f5['name']),_0x8cbab=_0x499f15['split']('|')[0x0];for(const _0x120b4e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x120b4e['id']!=_0x1c0f96&&'attribute'==_0x120b4e['type']&&_0x120b4e['data']&&_0x120b4e['data']['key']==_0x8cbab&&_0x120b4e['getFirstRange']()['isIntersecting'](_0x33d4f5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x120b4e,_0x33d4f5['data']['newRange'],_0x38d837),_0x2d5008=!0x0);}return _0x2d5008;}['_recordAttributeChanges'](_0x1adcfc){this['_recordAttributeSuggestions']=!0x0,_0x1adcfc();}['_isRegisteredAttribute'](_0x130aa4){const _0x23df11=this['_isBlockAttribute'](_0x130aa4),_0x4d35c8=this['_inlineAttributeKeys']['has'](_0x130aa4);return _0x23df11||_0x4d35c8;}['_reduceExistingSuggestions'](_0xe16ed8,_0xb05a84){if(0x0==_0xb05a84['length'])return!0x1;let _0x15c41f=!0x1;for(const _0x2461a6 of _0xb05a84){const _0x429661=this['_findSuggestions'](_0x2461a6['range'],'attribute')['filter'](_0x5e51d9=>!_0x5e51d9['meta']['isNextTo'])['map'](_0x5d345a=>_0x5d345a['suggestion']),_0x4b87e2=_0x30c346({'newValue':_0x2461a6['newValue']});_0x429661['filter'](_0x9ee793=>{const [_0x27225b,_0x18a3ef]=_0x9ee793['subType']['split']('|');return _0x27225b==_0x2461a6['key']&&_0x18a3ef!=_0x4b87e2;})['forEach'](_0x44b8c5=>{this['_reduceSuggestionAttributeRange'](_0x44b8c5,_0x2461a6['range'],_0xe16ed8),_0x15c41f=!0x0;});}return _0x15c41f;}['_reduceSuggestionAttributeRange'](_0x5b7063,_0x196eaf,_0x49a149){const _0x2b8105=_0x5b7063['getFirstRange']()['getDifference'](_0x196eaf);0x0!==_0x2b8105['length']?0x1!==_0x2b8105['length']?this['_breakSuggestionMarker'](_0x5b7063,_0x196eaf['start'],_0x196eaf['end']):this['_setSuggestionRange'](_0x5b7063,_0x2b8105[0x0]):_0x49a149['removeMarker'](_0x5b7063['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x296201){this['_editor']=_0x296201,this['_model']=_0x296201['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57265a,_0x3396a0,_0x19418b,_0x59d019,_0x59bb3d,_0x24582e){return new u(this['_model'],{'type':_0x57265a,'subType':_0x3396a0,'id':_0x19418b,'author':_0x59d019,'creator':_0x59d019,'attributes':_0x59bb3d,'onAttributesChange':_0x24582e,'onAccept':(..._0x436656)=>this['getSuggestionCallback'](_0x57265a,_0x3396a0,'accept')(..._0x436656),'onDiscard':(..._0x47a2cf)=>this['getSuggestionCallback'](_0x57265a,_0x3396a0,'discard')(..._0x47a2cf)});}['registerCustomCallback'](_0x11c02d,_0x3167e6,_0x3728d9,_0x4eb4ac){const _0x4597b0=_0x11c02d+':'+_0x3167e6+':'+_0x3728d9;this['_customCallbacks']['set'](_0x4597b0,_0x4eb4ac);}['getSuggestionCallback'](_0x6882ee,_0x5c215c,_0x1e8fe2){const _0x4d42c5=_0x6882ee+':'+_0x5c215c+':'+_0x1e8fe2;return this['_customCallbacks']['get'](_0x4d42c5)||this['_defaultCallbacks']['get'](_0x6882ee+':'+_0x1e8fe2);}['_registerDefaultCallbacks'](){const _0xd4176c=()=>!0x1,_0x1435e6=_0x502b06=>{_0x502b06['sort']((_0x10f723,_0x2c77a3)=>_0x10f723['start']['isBefore'](_0x2c77a3['start'])?0x1:-0x1),this['_model']['change'](_0x2a6294=>{for(const _0x455357 of _0x502b06){let _0x5ac3ed;_0x5ac3ed=_0x455357['end']['isAtEnd']&&_0x455357['end']['parent']==_0x455357['start']['nodeAfter']?_0x2a6294['createSelection'](_0x455357['start']['nodeAfter'],'on'):_0x2a6294['createSelection'](_0x455357),this['_model']['deleteContent'](_0x5ac3ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x480f66=(_0x2a9b51,_0x2be70d)=>{_0x2be70d&&this['_model']['change'](_0x170aa8=>{const {commandName:_0x58c684,commandParams:_0x1f6272=[]}=_0x2be70d,_0x48ea2c=_0x2a9b51['map'](_0xea4515=>(Vt(_0xea4515)&&(_0xea4515=this['_model']['createRange'](_0xea4515['end'])),_0xea4515))['filter'](_0x5d4565=>'$graveyard'!==_0x5d4565['root']['rootName']);if(_0x48ea2c['length']<0x1)return;const _0x34aea1=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5b8dab=>_0x5e91cd['fromRange'](_0x5b8dab));_0x170aa8['setSelection'](_0x48ea2c);for(const _0x38314a of this['_editor']['commands']['commands']())_0x38314a['refresh']();_0x1f6272['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x58c684,..._0x1f6272);const _0x171fd6=_0x34aea1['filter'](_0x557c97=>'$graveyard'!=_0x557c97['root']['rootName']);_0x171fd6['length']>0x0&&_0x170aa8['setSelection'](_0x171fd6);for(const _0x11dfc9 of _0x34aea1)_0x11dfc9['detach']();});},_0x4e4d01=(_0x4f640f,_0x5ef2fc)=>0x1==_0x4f640f['length']&&0x1==_0x5ef2fc['length']&&_0x4f640f[0x0]['end']['isEqual'](_0x5ef2fc[0x0]['start']),_0x5f8216=(_0x37027b,_0x27ee06,_0x4bfdc3,_0x107574)=>Ht(_0x37027b,_0x27ee06,_0x4bfdc3,_0x107574)?[_0x37027b,_0x27ee06]:Ht(_0x27ee06,_0x37027b,_0x107574,_0x4bfdc3)?[_0x27ee06,_0x37027b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd4176c),this['_defaultCallbacks']['set']('insertion:discard',_0x1435e6),this['_defaultCallbacks']['set']('insertion:join',_0x4e4d01),this['_defaultCallbacks']['set']('insertion:chain',_0x5f8216),this['_defaultCallbacks']['set']('deletion:accept',_0x1435e6),this['_defaultCallbacks']['set']('deletion:discard',_0xd4176c),this['_defaultCallbacks']['set']('deletion:join',_0x4e4d01),this['_defaultCallbacks']['set']('deletion:chain',_0x5f8216),this['_defaultCallbacks']['set']('formatInline:accept',_0x480f66),this['_defaultCallbacks']['set']('formatInline:discard',_0xd4176c),this['_defaultCallbacks']['set']('formatInline:join',_0x4e4d01),this['_defaultCallbacks']['set']('formatInline:chain',_0xd4176c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x480f66),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd4176c),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e4d01),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd4176c),this['_defaultCallbacks']['set']('attribute:accept',_0xd4176c),this['_defaultCallbacks']['set']('attribute:discard',(_0x2ef649,_0x2fe196)=>{if(!_0x2fe196)return;const _0xaf9941=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x289194=>{if(_0x2fe196['key']==m)for(const _0x23e18a of _0x2ef649){const _0x5b1582=_0x23e18a['start']['nodeAfter'],_0x3dea74=_0x2fe196['oldValue'];_0x289194['rename'](_0x5b1582,_0x3dea74);}else{if(_0xaf9941['_isBlockAttribute'](_0x2fe196['key'])){for(const _0x5a9e81 of _0x2ef649)void 0x0!==_0x2fe196['oldValue']?_0x289194['setAttribute'](_0x2fe196['key'],_0x2fe196['oldValue'],_0x5a9e81['start']['nodeAfter']):_0x289194['removeAttribute'](_0x2fe196['key'],_0x5a9e81['start']['nodeAfter']);}else{for(const _0x546bcb of _0x2ef649)_0x2fe196['oldValue']?_0x289194['setAttribute'](_0x2fe196['key'],_0x2fe196['oldValue'],_0x546bcb):_0x289194['removeAttribute'](_0x2fe196['key'],_0x546bcb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e4d01);}}function Ut(_0x469699,_0xb30f4,_0x52424b){for(const _0x123a2f of _0xb30f4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x123a2f['root']==_0x123a2f)return!0x1;if(!_0x52424b['containsItem'](_0x123a2f))return!0x1;if(_0x469699['isObject'](_0x123a2f)||_0x469699['isLimit'](_0x123a2f))return!0x0;}return!0x1;}function Vt(_0x157836){return _0x157836['end']['parent']==_0x157836['start']['nodeAfter']&&_0x157836['end']['isAtStart'];}function Pt(_0x2b030b,_0x548c93,_0x575122,_0xa83b35){const _0x1425c4=_0x25c982=>!_0x25c982['item']['is']('$textProxy')&&!_0xa83b35['isObject'](_0x25c982['item']),_0x1bf51e=_0x2b030b['start']['getLastMatchingPosition'](_0x1425c4),_0x45746d=_0x2b030b['end']['getLastMatchingPosition'](_0x1425c4,{'direction':'backward'});return(!_0x2b030b['start']['isEqual'](_0x1bf51e)||!_0x2b030b['end']['isEqual'](_0x45746d))&&(_0x1bf51e['isBefore'](_0x45746d)?_0x575122['updateMarker'](_0x548c93,{'range':_0x575122['createRange'](_0x1bf51e,_0x45746d)}):_0x575122['removeMarker'](_0x548c93),!0x0);}function Gt(_0x530f42){return _0x30c346(_0x530f42);}function Ft(_0x8e6b64){const _0x14f4d1=_0x8e6b64['start']['nodeAfter'];return _0x14f4d1&&_0x14f4d1['is']('element');}function Lt(_0x4d2ee8,_0x2c36f2){return null==_0x4d2ee8['end']['nodeBefore']&&_0x4d2ee8['end']['parent']==_0x4d2ee8['start']['nodeAfter']?Jt(_0x4d2ee8['start']['nodeAfter'],_0x2c36f2):_0x4d2ee8;}function Jt(_0x1387f7,_0x1cdfc5){const _0x56d5c8=_0x1cdfc5['schema']['isObject'](_0x1387f7)||_0x1cdfc5['schema']['isSelectable'](_0x1387f7);return _0x1cdfc5['createRange'](_0x1cdfc5['createPositionAt'](_0x1387f7,'before'),_0x56d5c8?_0x1cdfc5['createPositionAfter'](_0x1387f7):_0x1cdfc5['createPositionAt'](_0x1387f7,'end'));}function Ht(_0x361c05,_0x3e50c2,_0x4712b3,_0x4bf8a9){return!!qt(_0x361c05,_0x3e50c2)&&_0x4712b3['end']['isEqual'](_0x4bf8a9['start']);}function qt(_0x401545,_0x418fc5){if(!_0x401545['_isDataLoaded']||!_0x418fc5['_isDataLoaded'])return!0x1;const _0x30f871=new Set(Object['keys'](_0x401545['attributes'])),_0x33c534=new Set(Object['keys'](_0x418fc5['attributes']));if(_0x30f871['delete']('groupId'),_0x33c534['delete']('groupId'),0x0==_0x30f871['size']&&0x0==_0x33c534['size'])return!0x0;if(_0x30f871['size']!=_0x33c534['size'])return!0x1;const _0x2860f6={..._0x401545['attributes']},_0x15e7de={..._0x418fc5['attributes']};return delete _0x2860f6['groupId'],delete _0x15e7de['groupId'],JSON['stringify'](_0x2860f6)==JSON['stringify'](_0x15e7de);}function zt(_0x37b126,_0x203d8f){const _0x2d12c6=Kt(_0x37b126['attributes']),_0x133e85=Kt(_0x203d8f);if(!_0x37b126['_isDataLoaded'])return!0x1;for(const _0x4d2662 of Object['keys'](_0x133e85))if(!_0x3b7fb8(_0x2d12c6[_0x4d2662],_0x133e85[_0x4d2662]))return!0x1;return!0x0;}function Kt(_0x456d61){const _0x759648=Object['assign']({},_0x456d61);return delete _0x759648['skipNestingCheck'],delete _0x759648['tablePasteChainId'],_0x759648;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x40aa80(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x135ba5,_0x302a21,_0x3aab80,_0x310a52){super(),this['model']=_0x302a21,this['view']=_0x3aab80,this['commentThreadController']=_0x310a52,this['_editor']=_0x135ba5,this['_acceptCommand']=_0x135ba5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x135ba5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x34b0bf,_0x6449b6)=>_0x34b0bf||_0x6449b6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x51b8db=>_0x51b8db&&this['_editor']['model']['canEditAt'](_0x302a21['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x159d75=>_0x159d75&&this['_editor']['model']['canEditAt'](_0x302a21['getRanges']())),this['_pendingAction']=null,_0x3aab80['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3aab80,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3aab80,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3aab80,'change:isDirty',()=>{_0x3aab80['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 _0x58e37c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58e37c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x288dc8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x432273,_0x51b78b,_0x49f5bb,_0x49b8f2){super(_0x432273),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x59ecc7(_0x432273,o(_0x432273,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51b78b['authoredAt']),this['bind']('authoredAt')['to'](_0x51b78b),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',_0x51b78b,'authoredAt',this,'descriptionParts',(_0x5bf165,_0x2fd39b,_0x13419c)=>{const _0x1253c2=_0x13419c['map'](_0x105fa8=>ns(_0x105fa8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5bf165-0x1,_0x51b78b['author']['name'],_0x2fd39b?_0x49b8f2['formatDateTime'](_0x2fd39b):'',new DOMParser()['parseFromString'](_0x1253c2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x292df9(),this['focusTracker']=new _0x5993dc(),this['keystrokes']=new _0x5d4bbe(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x376390=>_0x376390['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51b78b,this['_localUser']=_0x49f5bb,this['_config']=_0x49b8f2,_0x49b8f2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x57f41d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2014ab}=this['_config'];this['commentsListView']=new _0x2014ab(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',_0x12b1a7=>_0x12b1a7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x410d95,_0x1fe980)=>_0x410d95||!!_0x1fe980);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x36a41a}=this['_config'],_0x2c9b29=new _0x36a41a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x366766=_0x2c9b29['commentInputView'];return _0x2c9b29['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x366766,'value',(_0x461294,_0x2e9fca,_0x5467e2)=>!!_0x5467e2||_0x461294&&!_0x2e9fca),_0x366766['on']('submit',(_0xf60dc4,_0x37bd79)=>{this['fire']('addComment',_0x37bd79),_0x366766['editor']['setData']('');}),_0x366766['on']('cancel',()=>this['focus']()),_0x366766['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2c9b29;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0xcd70cd,_0x14132e,_0x237b62,_0x260b6b){super(_0xcd70cd,_0x14132e,_0x237b62,_0x260b6b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48b46b=>_0x48b46b&&_0x48b46b[0x0]?_0x48b46b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4870f5,_0x41d721)=>{let _0x89869e='';for(const _0x4d0c6e of _0x4870f5)_0x89869e+='<p>'+ns(_0x4d0c6e['content'],_0x4d0c6e['color'])+'</p>';return _0x41d721?_0x89869e:ti(_0x89869e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x260b6b['SuggestionView'](_0xcd70cd,_0x14132e,{'formatDateTime':_0x260b6b['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 _0x236ded=this['bindTemplate'],_0x1cc75e=[this['suggestionView']];return this['commentsListView']&&_0x1cc75e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1cc75e['push'](this['commentThreadInputView']),_0x1cc75e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x236ded['if']('isActive','ck-suggestion-wrapper--active'),_0x236ded['to']('type',_0xd48bc5=>'ck-suggestion-'+_0xd48bc5),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':_0x236ded['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1cc75e};}['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 ue extends _0x288dc8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa499df,_0x563bd7,_0x21f711){super(_0xa499df),this['_model']=_0x563bd7,this['_config']=_0x21f711,this['set']('description',''),this['bind']('authoredAt')['to'](_0x563bd7),this['acceptButton']=this['_createButton'](o(_0xa499df,'Accept\x20suggestion'),_0x4e9ebb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa499df,'Discard\x20suggestion'),_0x4e9ebb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3a9542(_0xa499df,_0x563bd7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x292df9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5993dc(),this['keystrokes']=new _0x5d4bbe(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ab69e=>_0x1ab69e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x503f30=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x503f30['innerHTML']=this['description'],this['on']('change:description',(_0x53086b,_0x3191c2,_0x3c9e23)=>{_0x503f30['innerHTML']=_0x3c9e23;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1d8e3d=this['bindTemplate'],_0x3e1730=[{'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']}},{'tag':'time','attributes':{'datetime':_0x1d8e3d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1d8e3d['to']('authoredAt',_0x466250=>this['_config']['formatDateTime'](_0x466250))}]}]},{'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']&&_0x3e1730['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':_0x3e1730}]};}['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'](_0x5a740b,_0x33073d,_0x2a5719,_0x592428,_0x414e8c){const _0x5b6580=new _0x520a67(this['locale']);return _0x5b6580['set']({'label':_0x5a740b,'icon':_0x33073d,'tooltip':!0x0,'tooltipPosition':_0x414e8c}),_0x5b6580['extendTemplate']({'attributes':{'class':_0x2a5719}}),_0x5b6580['on']('execute',()=>{this['fire'](_0x592428,this['_model']['id']);}),_0x5b6580;}['_setupKeyboardNavigation'](){const _0x5c024f=this['element'];this['keystrokes']['listenTo'](_0x5c024f);for(const _0x3b2518 of this['focusables'])this['focusTracker']['add'](_0x3b2518['element']),this['keystrokes']['listenTo'](_0x3b2518['element']);this['keystrokes']['set']('enter',(_0x14fb7f,_0xe86c05)=>{_0x5c024f===_0x14fb7f['target']&&(this['focusCycler']['focusFirst'](),_0xe86c05());}),this['keystrokes']['set']('esc',(_0xa5a268,_0xfd9fb4)=>{_0x5c024f!==_0xa5a268['target']&&(this['focus'](),_0xfd9fb4());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x579de7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x21ad1e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x366c27){super(_0x366c27),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2919b3=this['editor']['config'];_0x2919b3['define']('trackChanges.SuggestionThreadView',de),_0x2919b3['define']('trackChanges.SuggestionView',ue),_0x2919b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2919b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x110fa2,_0x2f3e0f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1aace0,_0x25d945]of this['_handleControllerBuffer']){const _0x342555=this['_suggestionToController']['has'](_0x1aace0);_0x342555||_0x25d945?_0x342555&&_0x25d945&&this['_destroyController'](_0x1aace0):this['_initializeController'](_0x1aace0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x110fa2,_0x2f3e0f);}['init'](){const _0x263ce3=this['editor'],_0x2b9842=_0x263ce3['plugins']['get']('TrackChangesEditing'),_0x4cbd02=_0x263ce3['plugins']['get']('Annotations'),_0x1950be=_0x263ce3['plugins']['get']('EditorAnnotations'),_0x50cf52=_0x263ce3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1950be['addSourceCollector'](()=>{const _0x135297=[];for(const [_0x454a5d,_0x362b4c]of Array['from'](this['_suggestionToController'])){const _0x1ab78a=_0x454a5d['getAllAdjacentSuggestions'](),_0xeb3329=[];for(const _0x38c371 of _0x1ab78a){if(!_0x38c371['isInContent'])continue;if(_0x38c371['isMultiRange']){_0xeb3329['push'](..._0x38c371['getRanges']());continue;}const _0x54e488=_0x38c371['getFirstRange']();if(_0xeb3329['length']>0x0){const _0x34101e=_0xeb3329[0x0]['getJoined'](_0x54e488);if(_0x34101e){_0xeb3329[0x0]=_0x34101e;continue;}}_0xeb3329['push'](_0x54e488);}_0x135297['push']([_0x362b4c['view'],_0xeb3329]);}return _0x135297;}),this['listenTo'](_0x2b9842,'suggestionLoaded',(_0x585567,_0x2ce596)=>{this['listenTo'](_0x2ce596,'change:previous',(_0x299e9e,_0x3419e2,_0x3223f1,_0x2ab6b6)=>{_0x2ce596['isInContent']&&(null==_0x3223f1?(this['_updateController'](_0x2ab6b6['head']),this['_handleSuggestionControllerDelayed'](_0x2ce596,!0x1)):(this['_updateController'](_0x3223f1['head']),null==_0x2ab6b6&&this['_handleSuggestionControllerDelayed'](_0x2ce596,!0x0)));}),null!==_0x2ce596['previous']?this['_updateController'](_0x2ce596['head']):this['_handleSuggestionControllerDelayed'](_0x2ce596,!0x1);}),this['listenTo'](_0x2b9842,'suggestionUnloaded',(_0x2acc4d,_0x399482,_0x1c4ed4)=>{this['stopListening'](_0x399482,'change:previous'),this['_handleControllerBuffer']['delete'](_0x399482),this['_suggestionToController']['has'](_0x399482)&&this['_destroyController'](_0x399482),_0x1c4ed4&&this['_updateController'](_0x1c4ed4['head']);}),this['listenTo'](_0x2b9842,'suggestionChanged',(_0x2191c9,_0x19cc45)=>{this['_updateController'](_0x19cc45);}),this['listenTo'](_0x4cbd02,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50cf52,'addComment',(_0x195090,{threadId:_0x3c1604,isFromAdapter:_0x4dfb4f})=>{if(_0x4dfb4f||!_0x2b9842['hasSuggestion'](_0x3c1604))return;const _0x201962=_0x2b9842['getSuggestion'](_0x3c1604);this['_suggestionToController']['get'](_0x201962)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x24620f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24d8d2;for(const _0x451609 in _0x24620f){const _0x1a293e=_0x451609,_0x56535c=_0x24620f[_0x1a293e];if('trackChangesLicenseKeyValid'==_0x56535c||'trackChangesLicenseKeyInvalid'==_0x56535c||'trackChangesLicenseKeyExpired'==_0x56535c||'trackChangesLicenseKeyDomainLimit'==_0x56535c||'trackChangesLicenseKeyNotAllowed'==_0x56535c||'trackChangesLicenseKeyEvaluationLimit'==_0x56535c||'trackChangesLicenseKeyTrialLimit'==_0x56535c||'trackChangesLicenseKeyDevelopmentLimit'==_0x56535c||'trackChangesLicenseKeyUsageLimit'==_0x56535c){delete _0x24620f[_0x1a293e],_0x24d8d2=_0x56535c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x24d8d2&&_0x24620f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x24d8d2&&_0x24620f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x24d8d2&&_0x24620f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x322e15=this['editor']['plugins']['get']('Annotations'),_0x11367d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x209d41=Array['from'](_0x322e15['activeAnnotations'],_0xc99b9b=>_0xc99b9b['innerView'])['filter'](_0x2d5494=>this['_viewToController']['has'](_0x2d5494)),_0xe95d9f=[];for(const _0x26d9de of _0x209d41){const _0x1914e6=this['_viewToController']['get'](_0x26d9de)['model']['getAllAdjacentSuggestions']();_0xe95d9f['push'](..._0x1914e6['reduce']((_0x3129eb,_0x39bb3a)=>[..._0x3129eb,..._0x39bb3a['getMarkerNames']()],[]));}_0x11367d['activeMarkers']=_0xe95d9f;}['_addUIComponentsToFactory'](){const _0x3b34bb=this['editor'],_0x346c33=_0x3b34bb['locale'],_0x8eb13a=o(_0x346c33,'Track\x20changes'),_0x4e6784=new _0x209e7b([{'type':'switchbutton','model':new _0x50aa22({'withText':!0x0,'isToggleable':!0x0,'label':_0x8eb13a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x13c3cd of _0x4e6784)if(pe(_0x13c3cd)){const _0x5cc2ed=_0x3b34bb['commands']['get'](_0x13c3cd['model']['commandName']);_0x13c3cd['model']['bind']('isOn','isEnabled')['to'](_0x5cc2ed,'value','isEnabled');}_0x3b34bb['ui']['componentFactory']['add']('trackChanges',_0x36946e=>this['_createToolbarButton'](_0x36946e,_0x4e6784,_0x8eb13a)),_0x3b34bb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x16b177=>this['_createMenuBarMenu'](_0x16b177,_0x4e6784,_0x8eb13a));}['_createToolbarButton'](_0x9666bb,_0x452ae5,_0x2b27fc){const _0x124523=_0xdbafde(_0x9666bb,_0x8c5030),_0x35a889=this['editor']['commands']['get']('trackChanges');_0x124523['buttonView']['set']({'tooltip':_0x2b27fc,'label':_0x2b27fc,'icon':Ce}),_0x124523['buttonView']['bind']('isOn')['to'](_0x35a889,'value'),_0x124523['buttonView']['on']('execute',()=>{_0x35a889['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x124523,_0x452ae5,{'role':'menu'});const _0x4a66d1=[];for(const _0x4b760e of _0x452ae5)pe(_0x4b760e)&&_0x4a66d1['push'](this['editor']['commands']['get'](_0x4b760e['model']['commandName']));const _0x3dc9e3=_0x124523['buttonView'];return _0x3dc9e3['actionView']['unbind']('isEnabled'),_0x3dc9e3['arrowView']['unbind']('isEnabled'),_0x3dc9e3['actionView']['bind']('isEnabled')['to'](_0x35a889,'isEnabled'),_0x3dc9e3['arrowView']['bind']('isEnabled')['toMany'](_0x4a66d1,'isEnabled',(..._0x180689)=>_0x180689['some'](_0x4311e4=>_0x4311e4)),_0x124523['on']('execute',_0x22e0da=>{this['editor']['execute'](_0x22e0da['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x124523;}['_createMenuBarMenu'](_0x402cbe,_0x4ddd16,_0x2442a9){const _0xcc28b6=new _0x2f6eef(_0x402cbe),_0x3515ee=this['editor']['commands']['get']('trackChanges');_0xcc28b6['buttonView']['set']({'label':_0x2442a9,'icon':Ce});const _0x44c349=new _0x42666e(_0x402cbe);for(const _0x218f21 of _0x4ddd16){if('separator'==_0x218f21['type']){_0x44c349['items']['add'](new _0x144664(_0x402cbe));continue;}const _0x145262=new _0x359136(_0x402cbe,_0xcc28b6),_0x32fc09=new _0x5753fa(_0x402cbe),_0x4f4df5=_0x218f21['model'];_0x32fc09['bind'](...Object['keys'](_0x4f4df5))['to'](_0x4f4df5),_0x32fc09['delegate']('execute')['to'](_0xcc28b6),_0x32fc09['on']('execute',()=>{this['editor']['execute'](_0x4f4df5['commandName']),this['editor']['editing']['view']['focus']();}),_0x145262['children']['add'](_0x32fc09),_0x44c349['items']['add'](_0x145262);}return _0xcc28b6['bind']('isEnabled')['to'](_0x3515ee,'isEnabled'),_0xcc28b6['panelView']['children']['add'](_0x44c349),_0xcc28b6;}['_initializeController'](_0x2dab2f){const _0x15f9b3=this['editor'],_0x52f0e1=_0x15f9b3['config'],_0x93fdb5=_0x15f9b3['plugins']['get']('Annotations'),_0xa568b5=_0x15f9b3['plugins']['get']('CommentsRepository'),_0x2cbe32=_0x15f9b3['plugins']['get']('EditorAnnotations'),_0x4f3b50=_0x15f9b3['plugins']['get'](_0x21ad1e)['me'],_0x257487=_0x52f0e1['get']('trackChanges')['SuggestionThreadView'],_0x58ca1c=_0x52f0e1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x591086,CommentThreadInputView:_0x19882e}=_0x15f9b3['plugins']['get']('CommentsUI');let _0x48e185,_0x1a112c,_0x573e72;this['_annotationViews']['has'](_0x2dab2f['id'])?(_0x1a112c=this['_annotationViews']['get'](_0x2dab2f['id']),_0x48e185=_0x1a112c['mainView']):(_0x48e185=new _0x257487(_0x15f9b3['locale'],_0x2dab2f,_0x4f3b50,{'disableComments':this['_disableComments'],'editorConfig':{..._0x52f0e1['get']('comments.editorConfig'),'licenseKey':_0x52f0e1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x52f0e1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52f0e1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52f0e1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b27af(_0x52f0e1['get']('locale')),'CommentView':_0x52f0e1['get']('comments')['CommentView'],'CommentsListView':_0x591086,'CommentThreadInputView':_0x19882e,'SuggestionView':_0x58ca1c}),_0x48e185['suggestionView']['acceptButton']['on']('execute',()=>{_0x15f9b3['editing']['view']['focus']();}),_0x48e185['suggestionView']['discardButton']['on']('execute',()=>{_0x15f9b3['editing']['view']['focus']();}),_0x1a112c=_0x93fdb5['createAnnotationView'](this['editor']['locale'],_0x48e185),_0x1a112c['bind']('isDirty')['to'](_0x48e185,'isDirty'),_0x1a112c['bind']('length')['to'](_0x48e185),_0x1a112c['bind']('type')['to'](_0x48e185,'type',_0x5a10c9=>'suggestion-'+_0x5a10c9),_0x48e185['on']('escape',()=>{_0x573e72['fire']('escape');}),this['_annotationViews']['set'](_0x2dab2f['id'],_0x1a112c));const _0x26399b=_0xa568b5['createCommentThreadController'](_0x2dab2f['commentThread'],_0x48e185),_0x946a02=new ge(_0x15f9b3,_0x2dab2f,_0x48e185,_0x26399b),_0x3cfb0b=_0x2dab2f['getAllAdjacentSuggestions']()['filter'](_0x37e70e=>_0x37e70e['isInContent']);_0x48e185['descriptionParts']=_0x15f9b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3cfb0b),this['_suggestionToController']['set'](_0x2dab2f,_0x946a02),this['_viewToController']['set'](_0x48e185,_0x946a02),_0x573e72=_0x93fdb5['createAnnotation']({'view':_0x1a112c,'target':()=>{const _0x2a6ce5=[],_0x18100a=_0x2dab2f['getAllAdjacentSuggestions']()['filter'](_0x14a519=>_0x14a519['isInContent']);for(const _0x36144e of _0x18100a)_0x2a6ce5['push'](..._0x36144e['getMarkers']());return _0x4f030e(_0x15f9b3['editing'],_0x2a6ce5);},'type':()=>'suggestion-'+_0x946a02['view']['type']}),_0xa568b5['_bindAnnotationToEditors'](_0x48e185,_0x573e72),_0x93fdb5['add'](_0x573e72),_0x2cbe32['registerAnnotation'](_0x573e72);}['_destroyController'](_0xb812a8){const _0x343b8e=this['editor']['plugins']['get']('CommentsRepository'),_0x402be9=this['editor']['plugins']['get']('Annotations'),_0x5c9689=this['_suggestionToController']['get'](_0xb812a8),_0x136f6e=_0x5c9689['view'],_0x6ac019=_0x402be9['getByInnerView'](_0x136f6e);_0x343b8e['_unbindEditors'](_0x136f6e),_0x6ac019&&_0x402be9['remove'](_0x6ac019),this['_suggestionToController']['delete'](_0xb812a8),this['_viewToController']['delete'](_0x136f6e),_0x5c9689['destroy']();}['_updateController'](_0x10f4fc){if(!_0x10f4fc['isInContent']||!this['_suggestionToController']['has'](_0x10f4fc))return;const _0x3754ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44614c=this['_suggestionToController']['get'](_0x10f4fc),_0x1ef12e=_0x10f4fc['getAllAdjacentSuggestions']();_0x44614c['view']['descriptionParts']=_0x3754ba['descriptionFactory']['getDescriptions'](_0x1ef12e);}['destroy'](){for(const _0x42a887 of this['_suggestionToController']['keys']())this['_destroyController'](_0x42a887);for(const _0x4d0538 of this['_annotationViews']['values']())_0x4d0538['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x3a06ac){return'model'in _0x3a06ac;}class k extends _0x579de7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7610aa){this['editor']['plugins']['get'](p)['adapter']=_0x7610aa;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xa8572e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xa8572e);}['getSuggestions']({skipNotAttached:_0x3f52af=!0x1,toJSON:_0x111947=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3f52af,'toJSON':_0x111947});}['getSuggestion'](_0x87f548){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x87f548);}}const w=['Pagination'];class T extends _0x579de7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x50a9f7=this['editor'];if(_0x50a9f7['config']['define']('trackChangesData.editorCreator',_0x5c938c=>{const _0x31c62f=_0x50a9f7['model']['document']['getRootNames']()['reduce']((_0x139bb4,_0x4a6417)=>(_0x139bb4[_0x4a6417]='',_0x139bb4),{});return _0x50a9f7['constructor']['create'](_0x31c62f,_0x5c938c);}),'function'!=typeof _0x50a9f7['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c1a8a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x29961b){return N(this['editor'],!0x0,_0x29961b);}['getDataWithDiscardedSuggestions'](_0x14791d){return N(this['editor'],!0x1,_0x14791d);}}class D extends _0x579de7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3040ae){function _0x5fbf8f(_0x1229ac){return _0x1229ac['map'](_0x25a852=>String['fromCharCode'](_0x25a852))['join']('');}super(_0x3040ae),this['result']='end',_0x3040ae[_0x5fbf8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5fbf8f([0x76,0x69,0x65,0x77])][_0x5fbf8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5fbf8f([0x61,0x75,0x74,0x6f]),_0x3040ae[_0x5fbf8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5fbf8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5fbf8f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5fbf8f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5fbf8f([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 v(_0x4cf350){return void 0x0!==_0x4cf350['getRootsAttributes'];}async function N(_0x3a38ce,_0x1e6af8,_0xdadf3a){const _0x4bc1d3=_0x3ec0dd(_0x3a38ce,w);_0x4bc1d3['plugins']['push'](p,D),_0x4bc1d3['rootsAttributes']=v(_0x3a38ce)?_0x3a38ce['getRootsAttributes']():void 0x0;const _0x4c9708=document['createDocumentFragment'](),_0x3b0306=_0x3a38ce['config']['get']('trackChangesData')['editorCreator'],_0x2d3b6b=await _0x3b0306(_0x4bc1d3,()=>function(_0x16e0b0){const _0x8bc12f=document['createElement']('div');return _0x16e0b0['appendChild'](_0x8bc12f),_0x8bc12f;}(_0x4c9708));!function(_0x5a29c8,_0x58db1c){const _0x1783a2=_0x5a29c8['model']['document']['getRootNames']()['reduce']((_0x22a1fb,_0x3a87cc)=>(_0x22a1fb[_0x3a87cc]=_0x5a29c8['data']['get']({'rootName':_0x3a87cc}),_0x22a1fb),{}),_0x215b23=_0x5a29c8['plugins']['get']('Users')['users']['map'](_0x569816=>({'id':_0x569816['id'],'name':_0x569816['name']})),_0x101866=_0x5a29c8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b763c=_0x5a29c8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55c369=_0x58db1c['plugins']['get']('Users'),_0x44479a=_0x58db1c['plugins']['get']('TrackChangesEditing'),_0x266a7b=_0x58db1c['plugins']['get']('CommentsRepository');for(const _0x5a5879 of _0x266a7b['getCommentThreads']())_0x5a5879['remove']();for(const _0x299e06 of _0x215b23)_0x55c369['getUser'](_0x299e06['id'])||_0x55c369['addUser'](_0x299e06);_0x55c369['me']||_0x55c369['useAnonymousUser']();for(const _0x4211be of _0x1b763c)_0x266a7b['addCommentThread'](_0x4211be);for(const _0x416098 of _0x101866)_0x44479a['addSuggestionData'](_0x416098);_0x58db1c['data']['set'](_0x1783a2);}(_0x3a38ce,_0x2d3b6b),_0x2d3b6b['execute'](_0x1e6af8?'acceptAllSuggestions':'discardAllSuggestions');const _0x3f37f2=v(_0x2d3b6b)?_0x2d3b6b['getFullData'](_0xdadf3a):_0x2d3b6b['data']['get'](_0xdadf3a);return await _0x2d3b6b['destroy'](),_0x3f37f2;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|