@ckeditor/ckeditor5-track-changes 46.0.1 → 46.0.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/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/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4ffc3b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3a0bb6,_0x85b230){super(),this['id']=_0x85b230['id'],this['type']=_0x85b230['type'],this['subType']=_0x85b230['subType']||null,this['author']=_0x85b230['author'],this['creator']=_0x85b230['creator']||_0x85b230['author'],this['isExternal']=Boolean(_0x85b230['attributes']&&_0x85b230['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x85b230['originalSuggestionId']||null,this['_model']=_0x3a0bb6,this['_onAccept']=_0x85b230['onAccept'],this['_onDiscard']=_0x85b230['onDiscard'],this['_onAttributesChange']=_0x85b230['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x85b230['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 _0x18dea5=this;for(;_0x18dea5['previous'];)_0x18dea5=_0x18dea5['previous'];return _0x18dea5;}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'](_0x14da3e){this['_markerNames']['add'](_0x14da3e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2ae201=>this['_model']['markers']['get'](_0x2ae201))['filter'](_0x29a7f9=>_0x29a7f9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb379c=>{for(const _0x36533d of this['getMarkers']())_0xb379c['removeMarker'](_0x36533d);}),this['_markerNames']['clear']();}['removeMarker'](_0x2cbbe3){this['_model']['change'](_0x4c0411=>{_0x4c0411['removeMarker'](_0x2cbbe3);}),this['_markerNames']['delete'](_0x2cbbe3);}['addRange'](_0x3e887a){const _0x1f0d08='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1f0d08),this['_model']['change'](_0x9b645a=>{_0x9b645a['addMarker'](_0x1f0d08,{'range':_0x3e887a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x519250){for(const _0x526259 of this['getRanges']())if(_0x526259['isIntersecting'](_0x519250))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e8bed=>_0x4e8bed['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x317b12,_0x5318d5)=>[..._0x317b12,..._0x5318d5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e3669=this['getRanges']();if(0x1!=_0x2e3669['length'])return null;const _0x10038b=_0x2e3669[0x0],_0x286043=_0x10038b['start']['nodeAfter'],_0x5b8c6b=_0x10038b['end']['nodeBefore'];return _0x286043 instanceof _0x5deae5?_0x286043!=_0x5b8c6b?null:_0x286043: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 _0x257a37=[];let _0x44cf80=this['head'];for(;_0x44cf80;)_0x257a37['push'](_0x44cf80),_0x44cf80=_0x44cf80['next'];return _0x257a37;}['setAttribute'](_0x1cd08f,_0x362a97){const _0x1ed974=_0xd3c28b(this['attributes']);_0x5b6213(_0x1ed974,_0x1cd08f,_0x362a97),_0x3f9778(_0x1ed974,this['attributes'])||(this['attributes']=_0x1ed974,this['_onAttributesChange'](_0x1ed974));}['removeAttribute'](_0x35fb1b){const _0x21477b=_0xd3c28b(this['attributes']);_0x21df6e(_0x21477b,_0x35fb1b),_0x3f9778(_0x21477b,this['attributes'])||(this['attributes']=_0x21477b,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 _0x110ca2()['substr'](0x1,0x5);}}function o(_0x4cafdf,_0x1e766c,_0x5f171b){const _0x5417a0=_0x4cafdf['t'],t=_0x4cafdf['t'];switch(_0x1e766c){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5f171b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5f171b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5f171b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5f171b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5f171b);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',_0x5f171b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5f171b);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f171b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5f171b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5f171b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5f171b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5f171b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5f171b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5f171b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5f171b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5f171b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5f171b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5f171b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5f171b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5f171b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5f171b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5f171b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5f171b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5f171b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5f171b);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'},_0x5f171b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5f171b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5f171b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5f171b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5f171b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5f171b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5f171b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5f171b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5f171b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5f171b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5f171b);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'},_0x5f171b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x5f171b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5f171b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5f171b);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 _0x5417a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5f171b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5417a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5f171b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5f171b);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'},_0x5f171b);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'},_0x5f171b);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'},_0x5f171b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1e766c;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x59dede,_0x4dbdb5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x59dede,this['_locale']=_0x4dbdb5;}['getDescriptions'](_0x1c65e1){const _0x1cf7c3=[],_0x8fc0aa=new Set(),_0x52b958=new Set();for(let _0x1efd5a=0x0;_0x1efd5a<_0x1c65e1['length'];_0x1efd5a++){const _0x590a51=_0x1c65e1[_0x1efd5a];if(!_0x590a51['isInContent'])continue;const _0x493be8=this['_handleCustomCallbackDescription'](_0x590a51);if(_0x493be8){if(null!=_0x590a51['subType']){if(_0x8fc0aa['has'](_0x590a51['subType']))continue;_0x8fc0aa['add'](_0x590a51['subType']);}_0x1cf7c3['push'](_0x493be8);}else{if('attribute'==_0x590a51['type']){const _0x41d1f3=_0x590a51['data']['key'];if(_0x52b958['has'](_0x41d1f3))continue;_0x52b958['add'](_0x590a51['data']['key']),_0x41d1f3==m?this['_handleRenameSuggestionDescription'](_0x1cf7c3,_0x590a51):this['_handleAttributeSuggestionDescription'](_0x1cf7c3,_0x590a51);continue;}'insertion'!=_0x590a51['type']&&'deletion'!=_0x590a51['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1cf7c3,_0x590a51,_0x1c65e1[_0x1efd5a+0x1]);}}return this['_resolveDescriptionItems'](_0x1cf7c3);}['registerDescriptionCallback'](_0x5e352f){this['_customCallbacks']['push'](_0x5e352f);}['registerElementLabel'](_0x18c800,_0x1da527,_0x4787e4=_0x533dca['normal']){'function'==typeof _0x18c800?_0x32f2d5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18c800,'label':_0x1da527,'priority':_0x4787e4}):this['_itemLabels']['set'](_0x18c800,_0x1da527);}['registerAttributeLabel'](_0x134ae1,_0x226ade){this['_attributeLabels']['set'](_0x134ae1,_0x226ade);}['getItemLabel'](_0x5d9650,_0x468870=0x1){let _0x3268bd;for(const _0x3e1c6f of this['_itemLabelsCallbacks'])if(_0x3e1c6f['matchingCallback'](_0x5d9650)){_0x3268bd=_0x3e1c6f['label'];break;}return _0x3268bd||(_0x3268bd=this['_itemLabels']['get'](_0x5d9650['name'])),_0x3268bd?_0x3268bd(_0x468870):0x1!==_0x468870?_0x468870+'\x20'+_0x5d9650['name']+'s':''+_0x5d9650['name'];}['_addDescriptionItems'](_0xc27aaa,_0x7066a4){const _0x47c0f2=_0x7066a4['getFirstRange']()['getWalker'](),_0x45f05e='insertion'==_0x7066a4['type']?'add':'remove';for(const _0x48b203 of _0x47c0f2){const _0x348cae=_0x48b203['item'],_0x55528d=_0xc27aaa[_0xc27aaa['length']-0x1];if(_0x348cae['is']('$textProxy'))_0x55528d&&_0x55528d['type']['indexOf']('Container')>-0x1&&_0xc27aaa['pop'](),_0x55528d&&'text'==_0x55528d['type']?_0x55528d[_0x45f05e]+=_0x348cae['data']:_0xc27aaa['push']({'type':'text','add':'add'==_0x45f05e?_0x348cae['data']:'','remove':'remove'==_0x45f05e?_0x348cae['data']:''});else{if(this['_schema']['isObject'](_0x348cae)){const _0x1b10d1=_0x348cae;if(_0x55528d&&_0x55528d['type']['indexOf']('Container')>-0x1&&_0xc27aaa['pop'](),'elementEnd'==_0x48b203['type'])continue;_0x55528d&&_0x55528d['type']==_0x45f05e+'Object'&&_0x55528d['element']['name']==_0x1b10d1['name']?_0x55528d['quantity']++:_0xc27aaa['push']({'type':_0x45f05e+'Object','element':_0x1b10d1,'quantity':0x1}),_0x47c0f2['skip'](_0x1c4fbe=>!('elementEnd'==_0x1c4fbe['type']&&_0x1c4fbe['item']==_0x348cae));}else{if(this['_schema']['checkChild'](_0x348cae,'$text')||_0x348cae['is']('element','softBreak')){const _0x5d4dc9=_0x348cae;if('add'==_0x45f05e&&'elementStart'==_0x48b203['type']||'remove'==_0x45f05e&&'elementEnd'==_0x48b203['type'])continue;if(_0x55528d&&-0x1==_0x55528d['type']['indexOf']('Container')){'text'==_0x55528d['type']&&(_0x55528d[_0x45f05e]+='\x0a');continue;}let _0x23414a;if(_0x23414a='add'==_0x45f05e?_0x5d4dc9['nextSibling']&&!this['_schema']['isObject'](_0x5d4dc9['nextSibling'])?_0x5d4dc9['nextSibling']:null:_0x5d4dc9['previousSibling']&&!this['_schema']['isObject'](_0x5d4dc9['previousSibling'])?_0x5d4dc9['previousSibling']:null,_0x5d4dc9['isEmpty']||_0x23414a&&_0x23414a['isEmpty']){const _0x330a05=_0x23414a&&_0x23414a['isEmpty']?_0x23414a:_0x5d4dc9;_0x55528d&&_0x55528d['type']==_0x45f05e+'EmptyContainer'&&_0x55528d['element']['name']==_0x330a05['name']?_0x55528d['quantity']++:_0xc27aaa['push']({'type':_0x45f05e+'EmptyContainer','element':_0x330a05,'quantity':0x1});}else _0xc27aaa['push']({'type':_0x45f05e+'Container','element':_0x5d4dc9});}}}}}['_resolveDescriptionItems'](_0xf60b05){const _0x5526d4=this['_locale'],_0x2906a6=[],_0x32590f=[],_0x525277=[];for(const _0x26fae1 of _0xf60b05)switch(_0x26fae1['type']){case'text':if(_0x26fae1['add']=_0x26fae1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x26fae1['remove']=_0x26fae1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x26fae1['add']&&''!=_0x26fae1['remove']){_0x2906a6['push']({'type':'replace','content':o(_0x5526d4,'REPLACE_TEXT',['\x22'+_0x26fae1['remove']+'\x22','\x22'+_0x26fae1['add']+'\x22'])});continue;}if(null!=_0x26fae1['add']['match'](/^ +$/)){_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0',o(_0x5526d4,'ELEMENT_SPACE',_0x26fae1['add']['length']))});continue;}if(null!=_0x26fae1['remove']['match'](/^ +$/)){_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0',o(_0x5526d4,'ELEMENT_SPACE',_0x26fae1['remove']['length']))});continue;}if(''!=_0x26fae1['add']){_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0','\x22'+_0x26fae1['add']+'\x22')});continue;}_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0','\x22'+_0x26fae1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'addContainer':_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Split:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'removeContainer':_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Merge:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'addFormat':_0x32590f['push'](_0x26fae1['key']);continue;case'removeFormat':_0x525277['push'](_0x26fae1['key']);continue;default:_0x2906a6['push'](_0x26fae1);}if(_0x32590f['length']){const _0x3b0692=_0x32590f['map'](_0x45db00=>this['_attributeLabels']['has'](_0x45db00)?this['_attributeLabels']['get'](_0x45db00):_0x45db00)['join'](',\x20');_0x2906a6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3b0692)});}if(_0x525277['length']){const _0xf7d9d4=_0x525277['map'](_0xf5fe2=>this['_attributeLabels']['has'](_0xf5fe2)?this['_attributeLabels']['get'](_0xf5fe2):_0xf5fe2)['join'](',\x20');_0x2906a6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xf7d9d4)});}return _0x2906a6;}['_handleCustomCallbackDescription'](_0x197929){for(const _0x4da164 of this['_customCallbacks']){const _0x4c3b31=_0x4da164(_0x197929);if(_0x4c3b31&&'type'in _0x4c3b31)return _0x4c3b31;}}['_handleAttributeSuggestionDescription'](_0x1b52e7,_0x5b1b52){const _0xa4927b=_0x5b1b52['data'],_0x271cdd=void 0x0===_0xa4927b['newValue']?'removeFormat':'addFormat';_0x1b52e7['push']({'type':_0x271cdd,'key':_0xa4927b['key']});}['_handleRenameSuggestionDescription'](_0x44be82,_0x937098){_0x44be82['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x937098['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x395743,_0x27c675,_0x4eb815){if(this['_addDescriptionItems'](_0x395743,_0x27c675),_0x4eb815&&_0x4eb815['getFirstRange']()&&!_0x27c675['getFirstRange']()['end']['isEqual'](_0x4eb815['getFirstRange']()['start'])){const _0xd176a=_0x395743[_0x395743['length']-0x1],_0x101aa0='insertion'==_0x27c675['type']?'add':'remove';_0xd176a&&'text'==_0xd176a['type']&&(_0xd176a[_0x101aa0]+='\x0a');}}}class O extends _0xfd4522{['afterInit'](){const _0x392133=this['editor'],_0x44c088=_0x392133['plugins']['get']('TrackChangesEditing');_0x392133['commands']['get']('showAIAssistant')&&_0x44c088['enableCommand']('showAIAssistant');}}class E extends _0xfd4522{['afterInit'](){const _0x865105=this['editor'],_0x9190df=_0x865105['locale'];if(!_0x865105['plugins']['has']('AlignmentEditing'))return;const _0x59a02e=_0x865105['plugins']['get']('TrackChangesEditing');_0x59a02e['enableDefaultAttributesIntegration']('alignment'),_0x59a02e['registerBlockAttribute']('alignment'),_0x59a02e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x9190df,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4434e7=this['editor'],_0x40dfe9=_0x4434e7['locale'];_0x4434e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf7ffa1=>{if('formatBlock'!=_0xf7ffa1['type'])return;const {data:_0x4aaff0}=_0xf7ffa1;if(_0x4aaff0&&'alignment'==_0x4aaff0['commandName']){const _0x2a5739=_0x4aaff0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x40dfe9,'*Format:*\x20%0',function(_0x21c5f7){switch(_0x21c5f7){case'left':return o(_0x40dfe9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x40dfe9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x40dfe9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x40dfe9,'FORMAT_JUSTIFY_TEXT');}}(_0x2a5739))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xfd4522{['afterInit'](){const _0x51b86d=this['editor'],_0x1a9424=_0x51b86d['plugins']['get']('TrackChangesEditing'),_0x2ae23c=_0x51b86d['locale'];for(const _0x55e9ce of ti){if(!_0x51b86d['plugins']['has'](_0x55e9ce))continue;const _0x303d06=_0x55e9ce['slice'](0x0,-0x7)['toLowerCase'](),_0x22ab5e='FORMAT_'+_0x303d06['toUpperCase']();_0x1a9424['enableDefaultAttributesIntegration'](_0x303d06),_0x1a9424['registerInlineAttribute'](_0x303d06),_0x1a9424['descriptionFactory']['registerAttributeLabel'](_0x303d06,o(_0x2ae23c,_0x22ab5e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377260=this['editor'],_0x58b275=_0x377260['locale'],_0x1b2598=_0x377260['plugins']['get']('TrackChangesEditing');function _0x1338f1(_0x2caa63,_0x5310bc){_0x1b2598['descriptionFactory']['registerDescriptionCallback'](_0x11ee69=>{if('formatInline'!=_0x11ee69['type'])return;const {data:_0x5acf83}=_0x11ee69;return _0x5acf83&&_0x5acf83['commandName']===_0x2caa63?_0x5acf83['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b275,'*Format:*\x20%0',_0x5310bc)}:{'type':'format','content':o(_0x58b275,'*Remove\x20format:*\x20%0',_0x5310bc)}:void 0x0;});}_0x1338f1('bold',o(_0x58b275,'FORMAT_BOLD')),_0x1338f1('italic',o(_0x58b275,'FORMAT_ITALIC')),_0x1338f1('underline',o(_0x58b275,'FORMAT_UNDERLINE')),_0x1338f1('code',o(_0x58b275,'FORMAT_CODE')),_0x1338f1('strikethrough',o(_0x58b275,'FORMAT_STRIKETHROUGH')),_0x1338f1('subscript',o(_0x58b275,'FORMAT_SUBSCRIPT')),_0x1338f1('superscript',o(_0x58b275,'FORMAT_SUPERSCRIPT'));}}class U extends _0xfd4522{['afterInit'](){const _0x50c5cb=this['editor'],_0x50c5a2=_0x50c5cb['locale'];if(!_0x50c5cb['plugins']['has']('BlockQuoteEditing'))return;const _0x5dfa87=_0x50c5cb['plugins']['get']('TrackChangesEditing'),_0x23bd79=this['editor']['commands']['get']('blockQuote');_0x5dfa87['enableCommand']('blockQuote',(_0x10a94f,_0x49a74f={})=>{const _0x21f05e=this['editor']['model']['document']['selection'],_0x62d13e=_0x49a74f&&void 0x0!==_0x49a74f['forceValue']?_0x49a74f['forceValue']:!_0x23bd79['value'];let _0x534301=[];if(_0x62d13e){const _0x1f6c4d=Array['from'](_0x21f05e['getSelectedBlocks']())['filter'](_0x311834=>oo(_0x311834)||function(_0x24b0d2,_0x22ddbf){const _0x536532=_0x22ddbf['checkChild'](_0x24b0d2['parent'],'blockQuote'),_0x2eef7e=_0x22ddbf['checkChild'](['$root','blockQuote'],_0x24b0d2);return _0x536532&&_0x2eef7e;}(_0x311834,this['editor']['model']['schema']));_0x534301=to(_0x1f6c4d,_0x50c5cb['model']);}else{const _0x5000d0=Array['from'](_0x21f05e['getSelectedBlocks']())['filter'](_0x23cd2a=>oo(_0x23cd2a));_0x534301=to(_0x5000d0,_0x50c5cb['model']);}_0x50c5cb['model']['change'](()=>{for(const _0x451ff1 of _0x534301)_0x5dfa87['markBlockFormat'](_0x451ff1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x62d13e}]});});}),_0x5dfa87['descriptionFactory']['registerDescriptionCallback'](_0xd4e8ae=>{const {data:_0x402d3c}=_0xd4e8ae;if(_0x402d3c&&'blockQuote'==_0x402d3c['commandName']){const _0x54b2a0=o(_0x50c5a2,'ELEMENT_BLOCK_QUOTE');return _0x402d3c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50c5a2,'*Set\x20format:*\x20%0',_0x54b2a0)}:{'type':'format','content':o(_0x50c5a2,'*Remove\x20format:*\x20%0',_0x54b2a0)};}});}}function oo(_0x4c31f7){return'blockQuote'==_0x4c31f7['parent']['name'];}class V extends _0xfd4522{['afterInit'](){const _0x3c8d2f=this['editor'],_0x524f1b=_0x3c8d2f['locale'],_0x1cf6ee=_0x3c8d2f['plugins']['get']('TrackChangesEditing');_0x3c8d2f['plugins']['has']('BookmarkEditing')&&(_0x1cf6ee['enableCommand']('insertBookmark'),_0x1cf6ee['enableDefaultAttributesIntegration']('updateBookmark'),_0x1cf6ee['registerBlockAttribute']('bookmarkId'),_0x1cf6ee['descriptionFactory']['registerDescriptionCallback'](_0x40c17d=>{if('insertion'!=_0x40c17d['type']&&'deletion'!=_0x40c17d['type']&&'attribute'!=_0x40c17d['type'])return;const _0x3e561b=_0x40c17d['getContainedElement']();if(null==_0x3e561b)return;if(!_0x3e561b['is']('element','bookmark'))return;const _0x3361ec=_0x3e561b['getAttribute']('bookmarkId');if('insertion'==_0x40c17d['type'])return{'type':'insertion','content':o(_0x524f1b,'*Insert:*\x20%0','\x22'+_0x3361ec+'\x22\x20'+o(_0x524f1b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x40c17d['type'])return{'type':'deletion','content':o(_0x524f1b,'*Remove:*\x20%0','\x22'+_0x3361ec+'\x22\x20'+o(_0x524f1b,'ELEMENT_BOOKMARK'))};const {data:_0x2d3d14}=_0x40c17d;if(!_0x2d3d14||'bookmarkId'!=_0x2d3d14['key'])return;return{'type':'format','content':o(_0x524f1b,'*Set\x20bookmark:*\x20%0','\x22'+_0x2d3d14['newValue']+'\x22')};}));}}class F extends _0xfd4522{['afterInit'](){const _0xa85e41=this['editor'];_0xa85e41['plugins']['has']('CaseChange')&&(_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xfd4522{['afterInit'](){const _0x2237ea=this['editor'];_0x2237ea['commands']['get']('ckbox')&&_0x2237ea['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xfd4522{['afterInit'](){const _0x12ee37=this['editor'];if(!_0x12ee37['plugins']['has']('CodeBlock'))return;const _0x1a5676=_0x12ee37['plugins']['get']('TrackChangesEditing'),_0x3cd68c=_0x12ee37['locale'],_0x34f742=_0x12ee37['config']['get']('codeBlock')['languages'],_0x5b467b=_0x12ee37['commands']['get']('codeBlock');_0x1a5676['enableCommand']('indentCodeBlock'),_0x1a5676['enableCommand']('outdentCodeBlock'),_0x1a5676['enableCommand']('codeBlock',(_0x123719,_0x313566={})=>{const _0x40ac68=_0x12ee37['model'],_0x4a0147=_0x12ee37['model']['document']['selection'],_0x2c1cb9=_0x313566&&void 0x0!==_0x313566['forceValue']?_0x313566['forceValue']:!_0x5b467b['value'];let _0x3a53ee;_0x313566['language']||(_0x313566['language']=_0x34f742[0x0]['language']),_0x3a53ee=_0x2c1cb9?Array['from'](_0x4a0147['getSelectedBlocks']())['filter'](_0x4da71f=>co(_0x4da71f)||function(_0x1eaf13,_0x321ee0){if(_0x1eaf13['is']('rootElement')||_0x321ee0['isLimit'](_0x1eaf13))return!0x1;return _0x321ee0['checkChild'](_0x1eaf13['parent'],'codeBlock');}(_0x4da71f,_0x40ac68['schema'])):Array['from'](_0x4a0147['getSelectedBlocks']())['filter'](_0x55e18c=>co(_0x55e18c));const _0x45eb78=to(_0x3a53ee,_0x40ac68);_0x40ac68['change'](()=>{for(const _0x38fb02 of _0x45eb78)_0x1a5676['markBlockFormat'](_0x38fb02,{'commandName':'codeBlock','commandParams':[{..._0x313566,'forceValue':_0x2c1cb9}],'formatGroupId':'blockName'});});}),(_0x1a5676['descriptionFactory']['registerElementLabel']('codeBlock',_0x9847b2=>o(_0x3cd68c,'ELEMENT_CODE_BLOCK',_0x9847b2)),_0x1a5676['descriptionFactory']['registerDescriptionCallback'](_0xe12fb4=>{if('formatBlock'!=_0xe12fb4['type'])return;const _0x22a874=_0x3cd68c['t'],{data:_0x14e7bd}=_0xe12fb4;if(!_0x14e7bd||'codeBlock'!=_0x14e7bd['commandName'])return;const _0x2bc9e0=_0x14e7bd['commandParams'][0x0]['language'],_0x45c21b=_0x22a874(_0x34f742['find'](_0x2462b1=>_0x2462b1['language']===_0x2bc9e0)['label'])['toLowerCase']();return _0x14e7bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cd68c,'*Set\x20format:*\x20%0',o(_0x3cd68c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x45c21b+')')}:{'type':'format','content':o(_0x3cd68c,'*Remove\x20format:*\x20%0',o(_0x3cd68c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1d74cb){return'codeBlock'==_0x1d74cb['name'];}class J extends _0xfd4522{['afterInit'](){const _0x5120d3=this['editor'];if(!_0x5120d3['plugins']['has']('CommentsEditing'))return;_0x5120d3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3efc77,_0x1f5050,_0x22e153){const _0x54d935=[];for(const _0x2665b5 of _0x1f5050['getItems']())_0x2665b5['hasAttribute'](_0x3efc77)&&_0x54d935['push'](_0x22e153['createRangeOn'](_0x2665b5));return _0x54d935;}function De(_0xa7c930,_0x613dda,{showActiveMarker:_0x14b20a=!0x0}={}){const _0xed5c81=_0xa7c930['plugins']['get']('TrackChangesEditing');return(_0x7eabfe,_0x5bd0bc,_0x169f71)=>{if(!_0x169f71['consumable']['test'](_0x5bd0bc['markerRange'],_0x7eabfe['name']))return;const _0x1e5901=_0x5bd0bc['markerRange']['getWalker'](),_0x10825e=_0x5bd0bc['markerRange']['start'],_0x711ef0=_0xa7c930['model']['schema'];let _0xb177e3=null,_0x30b21d=null,_0xbe84dd=!0x1,_0x500414=!0x1;for(const _0x57a4d4 of _0x1e5901){const _0xf66ccc=_0x57a4d4['item'];_0xbe84dd=_0xbe84dd||_0x711ef0['isContent'](_0xf66ccc);const _0x59119c=_0x169f71['mapper']['toViewElement'](_0xf66ccc);if(_0x59119c&&_0x59119c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57a4d4['type']&&(_0x711ef0['isBlock'](_0xf66ccc)&&!_0x711ef0['isLimit'](_0xf66ccc)&&(_0xf66ccc['nextSibling']||_0x10825e['isAtEnd']?_0xb177e3&&_0xb177e3['parent']==_0xf66ccc||(_0xb177e3=_0xf66ccc,_0x47f2f7(_0x57a4d4['previousPosition']),_0x500414=!0x0):_0x30b21d=_0x30b21d||_0x57a4d4['previousPosition']));}function _0x47f2f7(_0x3754c9){const {id:_0x34bac5,authorId:_0x5f4c29}=_0xed5c81['_splitMarkerName'](_0x5bd0bc['markerName']),_0x3dded1=_0x169f71['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x613dda,'data-suggestion':_0x34bac5,'data-author-id':_0x5f4c29}),_0x512e9c=_0x169f71['mapper']['toViewPosition'](_0x3754c9);_0x14b20a&&_0xed5c81['activeMarkers']['includes'](_0x5bd0bc['markerName'])&&_0x169f71['writer']['addClass']('ck-suggestion-marker--active',_0x3dded1),_0x169f71['writer']['insert'](_0x512e9c,_0x3dded1),_0x169f71['mapper']['bindElementToMarker'](_0x3dded1,_0x5bd0bc['markerName']);}_0xbe84dd||_0x500414||!_0x30b21d||_0x47f2f7(_0x30b21d);};}class K extends _0xfd4522{static get['requires'](){return[_0x2796f0];}['init'](){const _0x3159a4=this['editor'],_0x4b6177=_0x3159a4['plugins']['get']('TrackChangesEditing');_0x4b6177['enableCommand']('delete');const _0xb368f8=_0x3159a4['commands']['get']('deleteForward');_0x4b6177['enableCommand']('deleteForward',(_0x1746a7,_0x3122ae={})=>{const _0x1dd7d1=_0x3159a4['model']['createSelection'](_0x3159a4['model']['document']['selection']);_0x1dd7d1['isCollapsed']&&_0x3159a4['model']['modifySelection'](_0x1dd7d1,{'direction':'forward','unit':_0x3122ae['unit']});const _0x2182fc=_0x1dd7d1['getFirstRange'](),_0x415760=_0x217d71['fromRange'](_0x2182fc);let _0x57fb39;_0x1746a7(_0x3122ae),_0x57fb39='$graveyard'==_0x415760['root']['rootName']?_0x3159a4['model']['createRange'](_0x2182fc['start']):_0x3159a4['model']['createRange'](_0x415760['start'],_0x415760['end']),_0x415760['detach'](),_0x3159a4['model']['enqueueChange'](_0xb368f8['buffer']['batch'],_0x1ab30a=>{_0xb368f8['buffer']['lock'](),_0x1ab30a['setSelection'](_0x1ab30a['createRange'](_0x57fb39['end'])),_0xb368f8['buffer']['unlock']();});}),_0x3159a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3159a4,'merge'),{'priority':'high'}),_0x3159a4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x8ee296,_0x23b2fd,_0x237227)=>{_0x237227['options']['showSuggestionHighlights']&&De(_0x3159a4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x8ee296,_0x23b2fd,_0x237227);},{'priority':'high'}),_0x3159a4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x391378,_0x4d5b8e,_0x3c2b86)=>{const _0x1e6c33=_0x3c2b86['mapper']['markerNameToElements'](_0x4d5b8e['markerName']);if(_0x1e6c33){for(const _0x217b0c of _0x1e6c33)_0x217b0c['is']('uiElement')&&(_0x3c2b86['mapper']['unbindElementFromMarkerName'](_0x217b0c,_0x4d5b8e['markerName']),_0x3c2b86['writer']['remove'](_0x217b0c));}},{'priority':'high'});}}class H extends _0xfd4522{['afterInit'](){const _0x10ee9f=this['editor'];if(!_0x10ee9f['plugins']['has']('ListEditing'))return;const _0xc291de=_0x10ee9f['locale'],_0xfd954a=_0x10ee9f['plugins']['get']('TrackChangesEditing'),_0x4962f8=_0x10ee9f['plugins']['has']('TodoListEditing'),_0x2fc2a3=!!_0x10ee9f['config']['get']('list.multiBlock');function _0x44831b(_0x44ad39){return{'type':'format','content':''+o(_0xc291de,'*Set\x20format:*\x20%0',_0x44ad39)};}function _0x9a4ff8(_0x11cda9){return{'type':'format','content':''+o(_0xc291de,'*Remove\x20format:*\x20%0',_0x11cda9)};}_0xfd954a['enableDefaultAttributesIntegration']('numberedList'),_0xfd954a['enableDefaultAttributesIntegration']('bulletedList'),_0xfd954a['enableDefaultAttributesIntegration']('customNumberedList'),_0xfd954a['enableDefaultAttributesIntegration']('customBulletedList'),_0xfd954a['enableDefaultAttributesIntegration']('indentList'),_0xfd954a['enableDefaultAttributesIntegration']('outdentList'),_0xfd954a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xfd954a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xfd954a['registerBlockAttribute']('listItemId'),_0xfd954a['registerBlockAttribute']('listType'),_0xfd954a['registerBlockAttribute']('listIndent'),_0x2fc2a3&&(_0xfd954a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xfd954a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4962f8&&(_0xfd954a['enableDefaultAttributesIntegration']('todoList'),_0xfd954a['enableDefaultAttributesIntegration']('checkTodoList'),_0xfd954a['registerBlockAttribute']('todoListChecked'),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0xc4f3ce=>{const {data:_0x47cfbc}=_0xc4f3ce;if(_0x47cfbc&&'todoListChecked'==_0x47cfbc['key'])return{'type':'format','content':_0x47cfbc['newValue']?o(_0xc291de,'*Check\x20item*'):o(_0xc291de,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36f5e7=>{if(_0x36f5e7['batch']['isUndo'])return!0x1;let _0x178035=!0x1;const _0x14c3d3=_0xfd954a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e9344=>'todoListChecked'===_0xfd954a['_getAttributeKey'](_0x3e9344));for(const _0x41cd9e of _0x14c3d3){'todo'!=_0x41cd9e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xfd954a['_findSuggestions'](_0x41cd9e['getFirstRange'](),'attribute')['find'](_0x3cbc7b=>'listType'===_0xfd954a['_getAttributeKey'](_0x3cbc7b['suggestion']))||(_0x36f5e7['removeMarker'](_0x41cd9e['getFirstMarker']()),_0x178035=!0x0));}return _0x178035;})),_0xfd954a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xc291de,'FORMAT_INDENT'));const _0xf688ea={'type':'format','content':''};_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x785f74=>{const {data:_0xe3ec95}=_0x785f74;if(!_0xe3ec95||'listType'!=_0xe3ec95['key'])return;let _0x3fe112=_0x785f74['head'];for(;_0x3fe112;){if(_0x3fe112['data']&&(('listStyle'==_0x3fe112['data']['key']||'listMarkerStyle'==_0x3fe112['data']['key'])&&(_0x3fe112['data']['newValue']&&'default'!=_0x3fe112['data']['newValue']||'default'!=_0x3fe112['data']['oldValue']&&!_0xe3ec95['newValue'])||!_0x2fc2a3&&_0x3fe112['data']['key']==m))return _0xf688ea;_0x3fe112=_0x3fe112['next'];}if(null==_0xe3ec95['newValue'])switch(_0xe3ec95['oldValue']){case'bulleted':return _0x9a4ff8(o(_0xc291de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9a4ff8(o(_0xc291de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9a4ff8(o(_0xc291de,'ELEMENT_TODO_LIST'));}switch(_0xe3ec95['newValue']){case'bulleted':return _0x44831b(o(_0xc291de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x44831b(o(_0xc291de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x44831b(o(_0xc291de,'ELEMENT_TODO_LIST'));}}),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x4ce792=>{const {data:_0x18cb4c}=_0x4ce792;if(_0x18cb4c&&'listIndent'==_0x18cb4c['key'])return null==_0x18cb4c['newValue']||null==_0x18cb4c['oldValue']&&0x0==_0x18cb4c['newValue']?_0xf688ea:void 0x0;}),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x321ad5=>{if('attribute'!=_0x321ad5['type'])return;const {data:_0xaa2329}=_0x321ad5;if(!_0xaa2329||'listItemId'!=_0xaa2329['key'])return;const _0x69db=Te(_0x321ad5);return'newValue'==_0x69db?{'type':'format','content':o(_0xc291de,'*Merge:*\x20list\x20item')}:'oldValue'==_0x69db?{'type':'format','content':o(_0xc291de,'*Split:*\x20list\x20item')}:_0xf688ea;}),_0x10ee9f['model']['document']['registerPostFixer'](_0x7843e=>this['listItemIdFixer'](_0x7843e)),_0x10ee9f['model']['document']['registerPostFixer'](_0x4db15c=>this['noTrackChangesFixer'](_0x4db15c)),_0x10ee9f['model']['document']['on']('change:data',(_0x4f2333,_0x319b2b)=>{if(_0x319b2b['isUndo']||!_0x319b2b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x277262){if(_0x277262['batch']['isUndo']||!_0x277262['batch']['isLocal'])return!0x1;let _0xa1f947=!0x1;const _0x65d9a7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5846a8=>_0x5846a8['data']&&'listItemId'==_0x5846a8['data']['key'])['filter'](_0x6be0ab=>_0x6be0ab['data']['newValue']&&_0x6be0ab['data']['oldValue']);for(const _0x507a0f of _0x65d9a7)Te(_0x507a0f)||(_0x277262['removeMarker'](_0x507a0f['getFirstMarker']()),_0xa1f947=!0x0);return _0xa1f947;}['noTrackChangesFixer'](_0x4c3629){if(_0x4c3629['batch']['isUndo']||!_0x4c3629['batch']['isLocal'])return!0x1;const _0x409362=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x409362['trackChangesCommand']['value'])return!0x1;let _0x2d2873=!0x1;const _0x261d8a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c1658=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf1ead6=>'attribute'==_0xf1ead6['type'])['filter'](_0x1b65cc=>_0x261d8a['includes'](_0x1b65cc['attributeKey']));if(0x0==_0x4c1658['length'])return _0x2d2873;for(const _0x29612e of _0x4c1658){const _0x1ef2b1=_0x409362['_findSuggestions'](_0x29612e['range'],'attribute')['filter'](_0x287df6=>!_0x287df6['meta']['isNextTo'])['map'](_0x425ae6=>_0x425ae6['suggestion'])['filter'](_0x3aa016=>{const _0x48570f=_0x409362['_getAttributeKey'](_0x3aa016);return _0x261d8a['includes'](_0x48570f);});if(_0x1ef2b1['length']){for(const _0x32052c of _0x1ef2b1)_0x4c3629['removeMarker'](_0x32052c['getFirstMarker']());_0x2d2873=!0x0;}}return _0x2d2873;}['assureChains'](){const _0x24483a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f7db5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x57e229;const _0x29b7f7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43f6ef=>{if(_0x43f6ef['data']['oldRange']||!_0x43f6ef['data']['newRange'])return null;if(!_0x43f6ef['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x11f91c}=_0x24483a['_splitMarkerName'](_0x43f6ef['name']);if(!_0x24483a['hasSuggestion'](_0x11f91c))return null;const _0x23c5d0=_0x24483a['getSuggestion'](_0x11f91c);return _0x3f7db5['includes'](_0x23c5d0['data']['key']);})['map'](_0x27171e=>{const {id:_0x28a304}=_0x24483a['_splitMarkerName'](_0x27171e['name']),_0x1f3bf1=_0x24483a['getSuggestion'](_0x28a304);return _0x57e229=_0x1f3bf1['attributes']['groupId'],_0x1f3bf1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x29b7f7['size'])return;const _0x5380cd=_0x24483a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50e53a=>'attribute'==_0x50e53a['type']&&_0x50e53a['data']&&_0x3f7db5['includes'](_0x50e53a['data']['key'])&&_0x50e53a['attributes']['groupId']!=_0x57e229)['map'](_0x41a742=>({'listItem':_0x41a742['getFirstRange']()['start']['nodeAfter'],'groupId':_0x41a742['attributes']['groupId']})),_0x47b035=new Set();for(const {groupId:_0x2b8260,listItem:_0xd1bcfb}of _0x5380cd)_0x29b7f7['has'](_0xd1bcfb)&&_0x47b035['add'](_0x2b8260);for(const _0x40e10b of _0x24483a['getSuggestions']())_0x47b035['has'](_0x40e10b['attributes']['groupId'])&&_0x40e10b['setAttribute']('groupId',_0x57e229);}['_supportLegacySuggestions'](){const _0x311858=this['editor'],_0x18f1f8=_0x311858['locale'],_0x473913=_0x311858['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x473913['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x319ff6,_0x3cda78){const _0x538c15=[];for(let _0x21646e of _0x319ff6)_0x21646e['start']['nodeAfter']===_0x21646e['end']['parent']&&(_0x21646e=_0x311858['model']['createRange'](_0x311858['model']['createPositionAt'](_0x21646e['start']['nodeAfter'],0x0))),_0x538c15['push'](_0x21646e);_0x311858['model']['change'](_0x59af67=>{const _0x203439=_0x311858['model']['document']['selection'],_0xf6d445=Array['from'](_0x203439['getRanges']())['map'](_0x4936c1=>_0x217d71['fromRange'](_0x4936c1));_0x59af67['setSelection'](_0x538c15),_0x311858['commands']['get'](_0x3cda78['commandName'])['refresh'](),_0x3cda78['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x311858['execute'](_0x3cda78['commandName'],..._0x3cda78['commandParams']),_0x59af67['setSelection'](_0xf6d445);for(const _0x734c3f of _0xf6d445)_0x734c3f['detach']();});}),_0x473913['descriptionFactory']['registerElementLabel'](function(_0x19541d){const _0x5f27f2=!_0x311858['model']['schema']['isObject'](_0x19541d),_0x4fbe55=_0x19541d['previousSibling'],_0x5e5603=_0x19541d['nextSibling'],_0x5950c8=_0x19541d['getAttribute']('listItemId'),_0x2b86f9=!_0x4fbe55||_0x4fbe55['getAttribute']('listItemId')!==_0x5950c8,_0x11056a=!_0x5e5603||_0x5e5603['getAttribute']('listItemId')!==_0x5950c8;return _0x5f27f2&&Boolean(_0x5950c8)&&_0x2b86f9&&_0x11056a;},_0x56e829=>o(_0x18f1f8,'ELEMENT_LIST_ITEM',_0x56e829));}['_registerLegacyDescription'](){const _0xdb2ec5=this['editor'],_0x37b5d7=_0xdb2ec5['locale'];function _0x2a0282(_0x3af705){const _0x449010=_0xdb2ec5['commands']['get']('bulletedList')['value'],_0x2fe7a1=_0xdb2ec5['commands']['get']('numberedList')['value'];return'numberedList'===_0x3af705?_0x449010:_0x2fe7a1;}_0xdb2ec5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5aa69a){if('formatBlock'!=_0x5aa69a['type'])return;const {data:_0x2134dd}=_0x5aa69a;if(!_0x2134dd)return;let _0x4160ff,_0xc3ee3b,_0x24a711,_0x1f2432;switch(_0x2134dd['commandName']){case'bulletedList':_0x24a711=_0x2134dd['commandParams'][0x0]['forceValue'],_0x1f2432=_0x2a0282(_0x2134dd['commandName']),_0x4160ff=_0x24a711?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f2432&&_0xdb2ec5['config']['get']('list.multiBlock')||(_0x4160ff='*Change\x20to:*\x20%0'),_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24a711=_0x2134dd['commandParams'][0x0]['forceValue'],_0x1f2432=_0x2a0282(_0x2134dd['commandName']),_0x4160ff=_0x24a711?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f2432&&_0xdb2ec5['config']['get']('list.multiBlock')||(_0x4160ff='*Change\x20to:*\x20%0'),_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4160ff='*Indent:*\x20%0',_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4160ff=function(_0x4c9b4e){const _0x594be7=_0x4c9b4e['getFirstRange']();let _0x4f36e6=_0x594be7['start']['nodeAfter'];for(;_0x4f36e6&&_0x594be7['containsItem'](_0x4f36e6);){if(_0x4f36e6['getAttribute']('listIndent')>0x0)return!0x1;_0x4f36e6=_0x4f36e6['nextSibling'];}return!0x0;}(_0x5aa69a)?o(_0x37b5d7,'*Format:*\x20remove\x20from\x20%0',o(_0x37b5d7,function(_0x1c12af){return'ELEMENT_'+_0x1c12af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5aa69a))):o(_0x37b5d7,'*Outdent:*\x20%0',o(_0x37b5d7,'ELEMENT_LIST_ITEM')),_0xc3ee3b={'type':'format','content':_0x4160ff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2134dd['multipleBlocks']&&(_0x4160ff='*Merge:*\x20%0',_0xc3ee3b={'type':'deletion','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_LIST_ITEM'))});}return _0xc3ee3b;});}}function Te(_0x284d90){let _0x224694=_0x284d90['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x224694;){const _0x562138=_0x224694['getAttribute']('listItemId');if(!_0x562138)return!0x1;if(_0x562138==_0x284d90['data']['newValue'])return'newValue';if(_0x562138==_0x284d90['data']['oldValue'])return'oldValue';_0x224694=_0x224694['previousSibling'];}return!0x1;}class q extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc4702c=this['editor']['config']['get']('list.properties'),_0x42066d=this['editor']['plugins']['get']('TrackChangesEditing');_0xc4702c['styles']&&(_0x42066d['enableDefaultAttributesIntegration']('listStyle'),_0x42066d['registerBlockAttribute']('listStyle')),_0xc4702c['reversed']&&(_0x42066d['enableDefaultAttributesIntegration']('listReversed'),_0x42066d['registerBlockAttribute']('listReversed')),_0xc4702c['startIndex']&&(_0x42066d['enableDefaultAttributesIntegration']('listStart'),_0x42066d['registerBlockAttribute']('listStart'));const _0x8483da={'type':'format','content':''};_0x42066d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3522d2=this['editor']['locale'];_0x42066d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3522d2,'FORMAT_LIST_REVERSED')),_0x42066d['descriptionFactory']['registerDescriptionCallback'](_0x40a432=>{const {data:_0x324a95}=_0x40a432;if(_0x324a95&&'listReversed'==_0x324a95['key'])return null==_0x324a95['newValue']||0x0==_0x324a95['newValue']&&null==_0x324a95['oldValue']?_0x8483da:void 0x0;}),_0x42066d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3522d2,'FORMAT_LIST_START')),_0x42066d['descriptionFactory']['registerDescriptionCallback'](_0xa149b5=>{const {data:_0x4f77e7}=_0xa149b5;if(_0x4f77e7&&'listStart'==_0x4f77e7['key'])return null==_0x4f77e7['newValue']||0x1==_0x4f77e7['newValue']&&null==_0x4f77e7['oldValue']?_0x8483da:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4dc4d3=>{if(_0x4dc4d3['batch']['isUndo'])return!0x1;let _0x5c1bfd=!0x1;const _0x4a9298=_0x42066d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30b4c4=>{const _0x1d2621=_0x42066d['_getAttributeKey'](_0x30b4c4);return'listStart'==_0x1d2621||'listReversed'==_0x1d2621;});for(const _0xa33863 of _0x4a9298){const _0x46e79e=_0xa33863['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46e79e||'customNumbered'==_0x46e79e)continue;_0x42066d['_findSuggestions'](_0xa33863['getFirstRange'](),'attribute')['find'](_0x2e734b=>'listType'==_0x42066d['_getAttributeKey'](_0x2e734b['suggestion']))||(_0x4dc4d3['removeMarker'](_0xa33863['getFirstMarker']()),_0x5c1bfd=!0x0);}return _0x5c1bfd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2d5f73){const _0x1f086c=this['editor']['locale'],{data:_0x31b05d}=_0x2d5f73,_0x13da54={'type':'format','content':''};if(!_0x31b05d||'listStyle'!=_0x31b05d['key'])return;if(!_0x31b05d['oldValue'])return'default'==_0x31b05d['newValue']?_0x13da54:{'type':'format','content':''+o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['newValue'])))};if(!_0x31b05d['newValue']){if('default'==_0x31b05d['oldValue'])return _0x13da54;let _0x21e2b7=_0x2d5f73['head'];for(;_0x21e2b7;){if(_0x21e2b7['data']&&'listType'==_0x21e2b7['data']['key']&&_0x21e2b7['data']['newValue'])return _0x13da54;_0x21e2b7=_0x21e2b7['next'];}return{'type':'format','content':''+o(_0x1f086c,'*Remove\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['oldValue'])))};}if('default'!=_0x31b05d['newValue'])return{'type':'format','content':''+o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['newValue'])))};let _0x394691=_0x2d5f73['head'];for(;_0x394691;){if(_0x394691['data']&&'listType'==_0x394691['data']['key']&&_0x394691['data']['newValue']&&_0x394691['data']['oldValue'])return _0x13da54;_0x394691=_0x394691['next'];}return{'type':'format','content':o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,'ELEMENT_'+_0x2d5f73['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3f99f8=this['editor'],_0x275b9a=_0x3f99f8['locale'];_0x3f99f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x90def=>{if('formatBlock'!=_0x90def['type'])return;const {data:_0x5e2f02}=_0x90def;if(!_0x5e2f02)return;let _0x47674,_0x157be6;switch(_0x5e2f02['commandName']){case'listStyle':_0x47674='*Change\x20to:*\x20%0',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674,o(_0x275b9a,this['_getTranslationKeyForListStyle'](_0x5e2f02['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47674=_0x5e2f02['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674)};break;case'listStart':_0x47674='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674,_0x5e2f02['commandParams'][0x0]['startIndex'])};}return _0x157be6;});}['_getTranslationKeyForListStyle'](_0xe8bb9f){return'ELEMENT_'+function(_0x268b16){if(Se['includes'](_0x268b16))return'bulleted';if(_e['includes'](_0x268b16))return'numbered';return null;}(_0xe8bb9f)['toUpperCase']()+'_LIST_'+_0xe8bb9f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xfd4522{['afterInit'](){const _0x5c225a=this['editor'];_0x5c225a['commands']['get']('emoji')&&_0x5c225a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xfd4522{static get['requires'](){return[_0x501db2];}['init'](){const _0x26352b=this['editor'],_0x3c0c0c=_0x26352b['plugins']['get']('TrackChangesEditing'),_0x1dc0d2=_0x26352b['commands']['get']('enter');_0x3c0c0c['enableCommand']('enter',()=>{_0x26352b['model']['change'](_0x1ac712=>{const _0x11b41e=_0x26352b['model']['document']['selection'],_0x3f4c09=_0x11b41e['getFirstPosition'](),_0x2499a6=_0x217d71['fromRange'](_0x11b41e['getFirstRange']());if(_0x1dc0d2['enterBlock'](_0x1ac712)){const _0x2afa02=_0x26352b['model']['createPositionAt'](_0x3f4c09['parent']['nextSibling'],0x0),_0x5c3172=_0x1ac712['createRange'](_0x3f4c09,_0x2afa02);_0x3c0c0c['markInsertion'](_0x5c3172);}else _0x1ac712['setSelection'](_0x1ac712['createRange'](_0x2499a6['end']));_0x2499a6['detach'](),_0x1dc0d2['fire']('afterExecute',{'writer':_0x1ac712});});}),_0x26352b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x26352b,'split'),{'priority':'high'}),_0x26352b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5f3e41,_0x5202ea,_0x1c68f0)=>{const _0x1e394d=_0x1c68f0['mapper']['markerNameToElements'](_0x5202ea['markerName']);if(_0x1e394d){for(const _0x4776fe of _0x1e394d)_0x4776fe['hasClass']('ck-suggestion-marker-split')&&(_0x1c68f0['mapper']['unbindElementFromMarkerName'](_0x4776fe,_0x5202ea['markerName']),_0x1c68f0['writer']['remove'](_0x4776fe));}},{'priority':'high'}),_0x26352b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5283bc,_0x4752b5,_0x25c779)=>{_0x25c779['options']['showSuggestionHighlights']&&De(_0x26352b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5283bc,_0x4752b5,_0x25c779);},{'priority':'high'});}}class Q extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x501d53=this['editor']['plugins']['get']('TrackChangesEditing');_0x501d53['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x501d53['enableCommand']('findNext'),_0x501d53['enableCommand']('findPrevious'),_0x501d53['enableCommand']('replace'),_0x501d53['enableCommand']('replaceAll');}['handleFindCommand'](_0x5dbb7d,_0x37c49a,_0x495451={}){const _0xda2af4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5dbb7d(_0x1d9fd5=>{let _0x4fe2f8=('string'==typeof _0x37c49a?_0xda2af4['findByTextCallback'](_0x37c49a,_0x495451):_0x37c49a)(_0x1d9fd5);Array['isArray'](_0x4fe2f8)&&(_0x4fe2f8={'results':_0x4fe2f8,'searchText':'string'==typeof _0x37c49a?_0x37c49a:''});const _0x1c9aa4=_0x4fe2f8['results']['filter'](_0x529786=>!0x1===this['_isInDeletionRange'](_0x529786,_0x1d9fd5['item']));return{..._0x4fe2f8,'results':_0x1c9aa4};},_0x495451);}['_isInDeletionRange'](_0x10eab3,_0x31c1fa){const _0x1cdeaa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31c1fa,_0x10eab3['start']),this['editor']['model']['createPositionAt'](_0x31c1fa,_0x10eab3['end']));for(const _0x4201aa of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1cdeaa['getIntersection'](_0x4201aa['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xfd4522{['afterInit'](){const _0x29721d=this['editor']['locale'],_0x29f717=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x376996,commandName:_0x51d99}of eo)this['editor']['plugins']['has'](_0x376996)&&(_0x29f717['enableDefaultAttributesIntegration'](_0x51d99),_0x29f717['registerInlineAttribute'](_0x51d99));_0x29f717['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x29721d,'FORMAT_FONT_SIZE')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x29721d,'FORMAT_FONT_FAMILY')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x29721d,'FORMAT_FONT_COLOR')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x29721d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c12be=this['editor'],_0x53d32e=_0x5c12be['locale'];_0x5c12be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e3455=>{const _0x6c3fa7=_0x53d32e['t'];if('formatInline'!=_0x3e3455['type'])return;const {data:_0x2a525d}=_0x3e3455;if(null!=_0x2a525d){if('fontSize'==_0x2a525d['commandName']){const _0x27f61e=_0x2a525d['commandParams'][0x0]['value'];if(_0x27f61e){const _0x4a348d=_0x6c3fa7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x46db45=>_0x46db45['model']==_0x27f61e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20size:*\x20%0',_0x4a348d)};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2a525d['commandName']){const _0xd80733=_0x2a525d['commandParams'][0x0]['value'];return _0xd80733?{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20family:*\x20%0',_0xd80733)}:{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2a525d['commandName']){const _0x4df71e=_0x2a525d['commandParams'][0x0]['value'];if(_0x4df71e){const _0x7c12d7=_0x986404(this['editor']['config']['get']('fontColor.colors'))['find'](_0x38f524=>_0x38f524['model']==_0x4df71e);let _0x51eeca=_0x4df71e,_0x1c8cfe='';return _0x7c12d7&&(_0x51eeca=_0x7c12d7['label'],_0x1c8cfe=_0x6c3fa7(_0x51eeca)['toLowerCase']()),{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20color:*\x20%0',_0x1c8cfe)['trim'](),'color':{'value':_0x4df71e,'title':_0x1c8cfe||_0x51eeca}};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2a525d['commandName']){const _0x245fa7=_0x2a525d['commandParams'][0x0]['value'];if(_0x245fa7){const _0x3be796=_0x986404(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xb03c70=>_0xb03c70['model']==_0x245fa7);let _0x325171=_0x245fa7,_0x212615='';return _0x3be796&&(_0x325171=_0x3be796['label'],_0x212615=_0x6c3fa7(_0x325171)['toLowerCase']()),{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20background\x20color:*\x20%0',_0x212615)['trim'](),'color':{'value':_0x245fa7,'title':_0x212615||_0x325171}};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xfd4522{['afterInit'](){const _0x1ac14c=this['editor'],_0x1607de=_0x1ac14c['plugins']['get']('TrackChangesEditing'),_0x696694=_0x1ac14c['commands']['get']('copyFormat'),_0x4e4a28=_0x1ac14c['commands']['get']('pasteFormat');_0x696694&&_0x4e4a28&&(_0x1607de['enableDefaultAttributesIntegration']('pasteFormat'),_0x1607de['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23577a=this['editor'],_0x2763b5=_0x23577a['locale'];_0x23577a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2c3d=>{if('formatBlock'!=_0xd2c3d['type']&&'formatInline'!=_0xd2c3d['type'])return;const {data:_0x5d19ca}=_0xd2c3d;if(_0x5d19ca&&'pasteFormat'===_0x5d19ca['commandName']){const _0x3df29d=[],_0x177b05=_0x5d19ca['commandParams'][0x0];for(const [_0x2a7d4a,_0x3aea77]of Object['entries'](_0x177b05))_0x3df29d['push'](ro(_0x23577a,_0x2a7d4a,_0x3aea77));return _0x3df29d['length']?{'type':'format','content':o(_0x2763b5,'*Set\x20format\x20to:*\x20%0',_0x3df29d['join'](',\x20'))}:{'type':'format','content':o(_0x2763b5,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3cd184,_0x3efed2,_0x372db4){const _0x1df7c7=_0x3cd184['locale']['t'],_0x20a3f2=_0x3efed2['split'](/(?=[A-Z])/)['join']('\x20'),_0x130eb0=_0x1df7c7(_0x20a3f2['charAt'](0x0)['toUpperCase']()+_0x20a3f2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x372db4)return _0x130eb0;if('fontColor'===_0x3efed2||'fontBackgroundColor'===_0x3efed2){const _0x4deffc=_0x986404(_0x3cd184['config']['get']('fontColor.colors'))['find'](_0x133352=>_0x133352['model']==_0x372db4);return _0x130eb0+'\x20('+(_0x4deffc?_0x1df7c7(_0x4deffc['label'])['toLowerCase']():_0x372db4)+')';}if('fontSize'===_0x3efed2&&isNaN(parseFloat(_0x372db4))){const _0x3a755e=_0x3cd184['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3cd184['config']['get']('fontSize.options'))['find'](_0x49bcae=>_0x49bcae['model']==_0x372db4);return _0x130eb0+'\x20('+(_0x3a755e?_0x1df7c7(_0x3a755e['title'])['toLowerCase']():_0x372db4)+')';}return _0x130eb0+'\x20('+_0x372db4+')';}class Z extends _0xfd4522{['_headingOptions'];['afterInit'](){const _0x5f221b=this['editor'];if(!_0x5f221b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f221b['config']['get']('heading.options');const _0x224ca6=_0x5f221b['locale'],_0x2d0425=_0x5f221b['plugins']['get']('TrackChangesEditing');_0x2d0425['enableDefaultAttributesIntegration']('heading');for(const _0x397fe6 of this['_headingOptions'])'paragraph'!=_0x397fe6['model']&&_0x2d0425['descriptionFactory']['registerElementLabel'](_0x397fe6['model'],_0x4a337d=>{const _0x498f1c=this['_getHeadingLevel'](_0x397fe6['model']);return null!==_0x498f1c?_0x1f94cc(_0x4a337d,_0x498f1c):_0x231a54(_0x4a337d,_0x397fe6['title']);});function _0x1f94cc(_0x3b91f5,_0x2ec575){return o(_0x224ca6,'ELEMENT_HEADING',[_0x3b91f5,_0x2ec575]);}function _0x231a54(_0x1e30ec,_0x23044c){return o(_0x224ca6,'ELEMENT_HEADING_CUSTOM',[_0x1e30ec,_0x23044c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86ce84=this['editor'],_0x1f771e=_0x86ce84['locale'];function _0x1cdd12(_0x46d842,_0xa680e9){return o(_0x1f771e,'ELEMENT_HEADING_CUSTOM',[_0x46d842,_0xa680e9]);}_0x86ce84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ec7de=>{if('formatBlock'!=_0x3ec7de['type'])return;const {data:_0x41fff7}=_0x3ec7de;if(_0x41fff7&&'heading'==_0x41fff7['commandName']){const _0x3c2cac=_0x41fff7['commandParams'][0x0]['value'],_0x1d31e2=this['_getHeadingLevel'](_0x3c2cac);if(null!==_0x1d31e2)return{'type':'format','content':o(_0x1f771e,'*Change\x20to:*\x20%0',(_0x2f511b=0x1,_0x22782c=_0x1d31e2,o(_0x1f771e,'ELEMENT_HEADING',[_0x2f511b,_0x22782c])))};const _0x27f6bb=this['_headingOptions']['find'](_0x3e3bfd=>_0x3e3bfd['model']===_0x3c2cac)['title'];return{'type':'format','content':o(_0x1f771e,'*Change\x20to:*\x20%0',_0x1cdd12(0x1,_0x27f6bb))};}var _0x2f511b,_0x22782c;});}['_getHeadingLevel'](_0x1208cb){const _0x5d138a=_0x1208cb['match'](/^heading(\d+)/);if(_0x5d138a)return _0x5d138a[0x1];const _0x5d871f=this['_headingOptions']?.['find'](_0x59560f=>_0x59560f['model']==_0x1208cb);if(_0x5d871f&&_0x5d871f['view']){const _0x1036cb=_0x5d871f['view'],_0x5eb611=(_0x1036cb['name']??_0x1036cb)['match'](/^h(\d+)/);if(_0x5eb611)return _0x5eb611[0x1];}return null;}}class tt extends _0xfd4522{['afterInit'](){const _0x1d8a80=this['editor'];if(!_0x1d8a80['plugins']['has']('HighlightEditing'))return;const _0x404eb7=_0x1d8a80['plugins']['get']('TrackChangesEditing'),_0x298063=_0x1d8a80['locale'];_0x404eb7['enableDefaultAttributesIntegration']('highlight'),_0x404eb7['registerInlineAttribute']('highlight'),_0x404eb7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x298063,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf3935b=this['editor'],_0x5c58d3=_0xf3935b['locale'];_0xf3935b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bcb5f=>{if('formatInline'!=_0x5bcb5f['type'])return;const {data:_0x5c2236}=_0x5bcb5f;if(_0x5c2236&&'highlight'==_0x5c2236['commandName']){const _0x3fdbac=_0x5c58d3['t'],_0x50d1f1=_0x5c2236['commandParams'][0x0]['value'];if(_0x50d1f1){const _0xb9f57a=_0xf3935b['config']['get']('highlight.options')['find'](_0x19a168=>_0x19a168['model']==_0x50d1f1),_0x1969cc=_0x3fdbac(_0xb9f57a['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c58d3,'*Set\x20highlight:*\x20%0',_0x1969cc),'color':{'value':_0xb9f57a['color'],'title':_0xb9f57a['title']}};}return{'type':'format','content':o(_0x5c58d3,'*Remove\x20highlight*',o(_0x5c58d3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xfd4522{['afterInit'](){const _0x2211de=this['editor'];if(!_0x2211de['plugins']['has']('HorizontalLineEditing'))return;_0x2211de['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3833b3=_0x2211de['plugins']['get']('TrackChangesEditing'),_0x430d4e=_0x2211de['locale'];_0x3833b3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18f769=>o(_0x430d4e,'ELEMENT_HORIZONTAL_LINE',_0x18f769)),_0x2211de['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4c841d,{writer:_0x1671f2,options:_0x3f089a})=>{if(!_0x3f089a['showSuggestionHighlights'])return null;const _0x1800b8=_0x1671f2['createContainerElement']('div'),_0x3cf486=_0x1671f2['createEmptyElement']('hr');return _0x1671f2['addClass']('ck-horizontal-line',_0x1800b8),_0x1671f2['insert'](_0x1671f2['createPositionAt'](_0x1800b8,0x0),_0x3cf486),_0x1800b8;},'converterPriority':'high'});}}class nt extends _0xfd4522{['afterInit'](){const _0x46f42c=this['editor'];if(!_0x46f42c['plugins']['has']('HtmlEmbed'))return;const _0x5d7a12=_0x46f42c['plugins']['get']('TrackChangesEditing'),_0x122f29=_0x46f42c['locale'];_0x5d7a12['descriptionFactory']['registerElementLabel']('rawHtml',_0x96fafc=>o(_0x122f29,'ELEMENT_HTML_EMBED',_0x96fafc)),_0x5d7a12['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d7a12['registerBlockAttribute']('value'),_0x5d7a12['descriptionFactory']['registerDescriptionCallback'](_0x4d0e81=>{if('attribute'!=_0x4d0e81['type'])return;const {data:_0x344b7c}=_0x4d0e81;if(_0x344b7c&&'value'==_0x344b7c['key']&&_0x4d0e81['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2929d9=o(_0x122f29,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x122f29,'*Change\x20%0\x20content*',_0x2929d9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b2403=this['editor'],_0x2b67d5=_0x1b2403['locale'];_0x1b2403['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e0f8e=>{if('formatBlock'!=_0x1e0f8e['type'])return;const {data:_0x202d01}=_0x1e0f8e;if(_0x202d01&&'htmlEmbed'==_0x202d01['commandName']){const _0x1cb4bd=o(_0x2b67d5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b67d5,'*Change\x20%0\x20content*',_0x1cb4bd)};}});}}class et extends _0xfd4522{['afterInit'](){const _0x1ed39d=this['editor'];if(!_0x1ed39d['plugins']['has']('ImageEditing'))return;const _0x511c62=_0x1ed39d['plugins']['get']('TrackChangesEditing'),_0x33d9c3=_0x1ed39d['plugins']['get']('ImageUtils'),_0x2db01b=_0x1ed39d['locale'];_0x511c62['enableCommand']('insertImage'),_0x511c62['descriptionFactory']['registerElementLabel']('imageBlock',_0x5ab132=>o(_0x2db01b,'ELEMENT_IMAGE',_0x5ab132)),_0x511c62['descriptionFactory']['registerElementLabel']('imageInline',_0x1e83c6=>o(_0x2db01b,'ELEMENT_INLINE_IMAGE',_0x1e83c6)),_0x511c62['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2db01b,'ELEMENT_CAPTION')),_0x1ed39d['plugins']['has']('ImageUploadEditing')&&_0x511c62['enableCommand']('uploadImage'),_0x1ed39d['plugins']['has']('ImageBlockEditing')&&_0x1ed39d['plugins']['has']('ImageInlineEditing')&&(_0x511c62['enableCommand']('imageTypeInline',(_0x5611b9,_0x238220)=>{const _0x499b51=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']);_0x1ed39d['model']['change'](()=>{_0x511c62['markBlockFormat'](_0x499b51,{'commandName':'imageTypeInline','commandParams':[_0x238220]},[],'convertBlockImageToInline');});}),_0x511c62['enableCommand']('imageTypeBlock',(_0x354907,_0x11b1a5)=>{_0x1ed39d['model']['change'](_0x683f26=>{let _0x41e520=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x105a89=_0x683f26['createRangeOn'](_0x41e520);const _0x32fdca=_0xa59888['fromPosition'](_0x105a89['start'],'toPrevious'),_0x5764ee=_0xa59888['fromPosition'](_0x105a89['end'],'toNext');_0x511c62['forceDefaultExecution'](()=>_0x354907(_0x11b1a5)),_0x41e520=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x105a89=_0x683f26['createRangeOn'](_0x41e520);const _0x53b8d0=_0x683f26['createRange'](_0x32fdca,_0x5764ee);_0x32fdca['detach'](),_0x5764ee['detach'](),_0x511c62['markBlockFormat'](_0x41e520,{'commandName':'imageTypeInline','commandParams':[_0x11b1a5]},[],'convertInlineImageToBlock'),_0x53b8d0['start']['isBefore'](_0x105a89['start'])&&_0x511c62['markInsertion'](_0x683f26['createRange'](_0x53b8d0['start'],_0x105a89['start']),'convertInlineImageToBlock'),_0x105a89['end']['isBefore'](_0x53b8d0['end'])&&_0x511c62['markInsertion'](_0x683f26['createRange'](_0x105a89['end'],_0x53b8d0['end']),'convertInlineImageToBlock');});}),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x511c62['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x377519])=>{const _0x2768b1=_0x511c62['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44c69f=_0x377519['start'],_0x487e1c=_0x377519['end'];const _0xaa4681=_0x1ed39d['model']['schema']['getNearestSelectionRange'](_0x44c69f,'backward'),_0x3bc55a=_0x1ed39d['model']['schema']['getNearestSelectionRange'](_0x487e1c,'forward');_0xaa4681['isCollapsed']&&(_0x44c69f=_0xaa4681['start']),_0x3bc55a['isCollapsed']&&(_0x487e1c=_0x3bc55a['end']),_0x2768b1([_0x1ed39d['model']['createRange'](_0x44c69f,_0x487e1c)]);}),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3a422b),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3a422b)),_0x1ed39d['plugins']['has']('ImageCaptionEditing')&&(_0x511c62['enableCommand']('toggleImageCaption',(_0x1e872e,_0x4ec55a)=>{const _0x4d4a9e=_0x1ed39d['plugins']['get']('ImageCaptionUtils');let _0x2a2872=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x2b8cc6=_0x4d4a9e['getCaptionFromImageModelElement'](_0x2a2872);_0x1ed39d['model']['change'](()=>{if(_0x2b8cc6)return void _0x511c62['markDeletion'](_0x1ed39d['model']['createRangeOn'](_0x2b8cc6));const _0xa2208b=_0x33d9c3['isBlockImage'](_0x2a2872);_0x1e872e(_0x4ec55a),_0x2a2872=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x2b8cc6=_0x4d4a9e['getCaptionFromImageModelElement'](_0x2a2872),_0x511c62['markInsertion'](_0x1ed39d['model']['createRangeOn'](_0x2b8cc6),_0xa2208b?null:'imageCaption');});}),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3a422b));const _0xaca0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31a827(_0x21a884,_0x3194ff){const _0x15c17a=_0xaca0['findIndex'](({type:_0x566d4b,subType:_0x3b84cf})=>_0x21a884['type']==_0x566d4b&&_0x21a884['subType']==_0x3b84cf),_0x17b824=_0xaca0['findIndex'](({type:_0x4f688d,subType:_0x25b5a2})=>_0x3194ff['type']==_0x4f688d&&_0x3194ff['subType']==_0x25b5a2);if(_0x15c17a<0x0||_0x17b824<0x0)return!0x1;const _0x4404b2=_0x21a884['getFirstRange'](),_0x17c6b9=_0x3194ff['getFirstRange']();if((0x0==_0x15c17a||0x1==_0x15c17a)&&0x2==_0x17b824&&_0x4404b2['isIntersecting'](_0x17c6b9))return!0x0;if(0x2==_0x15c17a&&0x3==_0x17b824){const _0x4cd1bc=_0x511c62['_findSuggestions'](_0x4404b2,'insertion')['filter'](({suggestion:_0x111e89,meta:_0x1f1a5d})=>_0x1f1a5d['isOwn']&&'convertInlineImageToBlock'==_0x111e89['subType']);if(_0x4cd1bc['length']>0x1&&_0x17c6b9['end']['isEqual'](_0x4404b2['start']))return!0x0;if(0x1==_0x4cd1bc['length']&&(_0x4404b2['start']['isEqual'](_0x17c6b9['end'])||_0x4404b2['end']['isEqual'](_0x17c6b9['start'])))return!0x0;}if(0x3==_0x15c17a&&0x3==_0x17b824&&_0x4404b2['start']['isBefore'](_0x17c6b9['start'])){const _0x336f21=_0x4404b2['end']['nodeAfter'],_0x3aa276=_0x17c6b9['start']['nodeBefore'];return _0x33d9c3['isBlockImage'](_0x336f21)&&_0x336f21===_0x3aa276;}return!0x1;}function _0x3a422b(_0x141d26,_0x53f948){return _0x31a827(_0x141d26,_0x53f948)?[_0x141d26,_0x53f948]:_0x31a827(_0x53f948,_0x141d26)?[_0x53f948,_0x141d26]:null;}_0x1ed39d['plugins']['has']('ImageResize')&&(_0x511c62['enableDefaultAttributesIntegration']('resizeImage'),_0x511c62['registerBlockAttribute']('resizedWidth'),_0x511c62['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2db01b,'FORMAT_IMAGE_SIZE'))),_0x1ed39d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x511c62['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x511c62['registerBlockAttribute']('alt')),_0x1ed39d['plugins']['has']('PictureEditing')&&(_0x511c62['registerBlockAttribute']('sources'),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x239916=>{if('attribute'!=_0x239916['type'])return;const {data:_0x1c041e}=_0x239916;return _0x1c041e&&'sources'==_0x1c041e['key']?{'type':'format','content':''}:void 0x0;})),_0x1ed39d['plugins']['has']('ImageSizeAttributes')&&(_0x511c62['registerBlockAttribute']('width'),_0x511c62['registerBlockAttribute']('height'),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x3632bb=>{if('attribute'!=_0x3632bb['type'])return;const {data:_0x590056}=_0x3632bb;return!_0x590056||'width'!=_0x590056['key']&&'height'!=_0x590056['key']?void 0x0:{'type':'format','content':''};})),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x3ba83b=>{if(!!_0xaca0['find'](({type:_0x46b1fb,subType:_0x3ca100})=>_0x3ba83b['type']==_0x46b1fb&&_0x3ba83b['subType']==_0x3ca100))return _0x3ba83b['previous']?{}:void 0x0;}),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x55ef98=>{if('insertion'==_0x55ef98['type']||'deletion'==_0x55ef98['type']){const _0x244ae3=_0x55ef98['getContainedElement']();if(_0x244ae3&&_0x244ae3['is']('element','caption'))return{'type':'insertion'==_0x55ef98['type']?'addObject':'removeObject','element':_0x244ae3,'quantity':0x1};}}),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0xc9f768=>'formatBlock'==_0xc9f768['type']&&'convertInlineImageToBlock'==_0xc9f768['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xc9f768['type']&&'convertBlockImageToInline'==_0xc9f768['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x5f44ef=>{if('attribute'!=_0x5f44ef['type'])return;const {data:_0x5933cc}=_0x5f44ef;if(!_0x5933cc||'alt'!=_0x5933cc['key'])return;const _0x9d3323=_0x5933cc['newValue'];return _0x9d3323?{'type':'format','content':o(_0x2db01b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9d3323+'\x22')}:{'type':'format','content':o(_0x2db01b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491a89=this['editor'],_0x51f385=_0x491a89['locale'];_0x491a89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593621=>{if('formatBlock'!=_0x593621['type']&&'formatInline'!=_0x593621['type'])return;const {data:_0x309cd9}=_0x593621;if(_0x309cd9){if('imageTextAlternative'==_0x309cd9['commandName']){const _0x1291dd=_0x309cd9['commandParams'][0x0]['newValue'];return _0x1291dd?{'type':'format','content':o(_0x51f385,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1291dd+'\x22')}:{'type':'format','content':o(_0x51f385,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x309cd9['commandName']){const _0x3726f7=_0x309cd9['commandParams'][0x0]['width'];return _0x3726f7?{'type':'format','content':o(_0x51f385,'*Set\x20image\x20width:*\x20%0',_0x3726f7)}:{'type':'format','content':o(_0x51f385,'*Reset\x20image\x20width*')};}}});}}class st extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x535335=this['editor']['locale'],_0x593c88=this['editor']['plugins']['get']('TrackChangesEditing');_0x593c88['enableDefaultAttributesIntegration']('replaceImageSource'),_0x593c88['registerBlockAttribute']('src'),_0x593c88['descriptionFactory']['registerDescriptionCallback'](_0x2d2393=>{if('attribute'!=_0x2d2393['type'])return;const {data:_0xb59c69}=_0x2d2393;return _0xb59c69&&'src'==_0xb59c69['key']?_0xb59c69['newValue']&&_0xb59c69['oldValue']?{'type':'format','content':o(_0x535335,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x378a05=this['editor']['plugins']['get']('TrackChangesEditing');_0x378a05['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x378a05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x378a05['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x378a05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543d1b=this['editor'],_0x4a64c9=_0x543d1b['locale'];_0x543d1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbf30bf=>{if('formatBlock'!=_0xbf30bf['type']&&'formatInline'!=_0xbf30bf['type'])return;const {data:_0x4e5873}=_0xbf30bf;if(!_0x4e5873||'replaceImageSource'!=_0x4e5873['commandName'])return;return{'type':'format','content':o(_0x4a64c9,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xfd4522{['afterInit'](){const _0x143650=this['editor'];if(!_0x143650['plugins']['has']('ImageStyleEditing'))return;const _0x2aace6=_0x143650['plugins']['get']('TrackChangesEditing'),_0x12407c=_0x143650['plugins']['get']('ImageUtils'),_0x304fbc={};_0x2aace6['enableCommand']('imageStyle',(_0x433b31,_0x3e729f)=>{const _0x44a423=_0x143650['plugins']['get']('Users')['me'],_0x1e389e=_0x143650['commands']['get']('imageStyle');let _0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),_0x1fa2cc=_0x143650['model']['createRangeOn'](_0x1844d7),_0x6447a3=_0x1e389e['value'];if(_0x6447a3==_0x3e729f['value'])return;const _0x3eff7a={'commandName':'imageStyle','commandParams':[_0x3e729f],'formatGroupId':_0x110ca2()};_0x143650['model']['change'](()=>{if(_0x2aace6['getSuggestions']()['filter'](_0xd920f5=>_0xd920f5['isInContent']&&_0x44a423==_0xd920f5['author']&&('formatBlock'==_0xd920f5['type']||'formatInline'==_0xd920f5['type'])&&('imageStylePreApply'==_0xd920f5['subType']||'imageStylePostApply'==_0xd920f5['subType'])&&_0xd920f5['getFirstRange']()['isEqual'](_0x1fa2cc))['forEach'](_0x2a5cbd=>_0x2aace6['discardSuggestion'](_0x2a5cbd['head'])),_0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),_0x1fa2cc=_0x143650['model']['createRangeOn'](_0x1844d7),_0x1e389e['refresh'](),_0x143650['commands']['get']('imageTypeInline')['refresh'](),_0x143650['commands']['get']('imageTypeBlock')['refresh'](),_0x6447a3=_0x1e389e['value'],_0x6447a3!=_0x3e729f['value'])return _0x12407c['isInlineImage'](_0x1844d7)&&_0x1e389e['shouldConvertImageType'](_0x3e729f['value'],_0x1844d7)?(_0x433b31({..._0x3e729f,'setImageSizes':!0x1}),_0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),void _0x2aace6['markBlockFormat'](_0x1844d7,{..._0x3eff7a,'commandReversedParams':[{'value':_0x6447a3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x12407c['isBlockImage'](_0x1844d7)?_0x2aace6['markBlockFormat'](_0x1844d7,_0x3eff7a,[],'imageStylePostApply'):_0x2aace6['markInlineFormat'](_0x1fa2cc,_0x3eff7a,'imageStylePostApply'));});});for(const _0x5bc4ed of _0x143650['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x304fbc[_0x5bc4ed['name']]=_0x5bc4ed['title']['toLowerCase']();_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x46b393])=>{_0x12407c['setImageNaturalSizeAttributes'](_0x46b393['getContainedElement']());}),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x547708,_0x193bbd)=>{_0x2aace6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x547708,{'commandName':_0x193bbd['commandName'],'commandParams':_0x193bbd['commandReversedParams']});}),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3a8c06,_0xbfac21){if(_0x25b308(_0x3a8c06,_0xbfac21))return[_0x3a8c06,_0xbfac21];if(_0x25b308(_0xbfac21,_0x3a8c06))return[_0xbfac21,_0x3a8c06];return null;});const _0x458cd0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25b308(_0x4500dd,_0x3ce3d9){const _0xf96559=_0x458cd0['findIndex'](({type:_0x128e2a,subType:_0x21b658})=>_0x4500dd['type']==_0x128e2a&&_0x4500dd['subType']==_0x21b658),_0x17eda6=_0x458cd0['findIndex'](({type:_0xfe39f1,subType:_0x192e47})=>_0x3ce3d9['type']==_0xfe39f1&&_0x3ce3d9['subType']==_0x192e47);if(_0xf96559<0x0||_0x17eda6<0x0)return!0x1;const _0xfe7afa=_0x4500dd['getFirstRange'](),_0x48384b=_0x3ce3d9['getFirstRange']();if((0x0==_0xf96559||0x1==_0xf96559)&&0x2==_0x17eda6&&_0xfe7afa['isIntersecting'](_0x48384b))return!0x0;if(0x2==_0xf96559&&0x3==_0x17eda6){const _0x54b6bf=_0x2aace6['_findSuggestions'](_0xfe7afa,'insertion')['filter'](({suggestion:_0x2105f6,meta:_0x235c22})=>_0x235c22['isOwn']&&'convertInlineImageToBlock'==_0x2105f6['subType']);if(_0x54b6bf['length']>0x1&&_0x48384b['end']['isEqual'](_0xfe7afa['start']))return!0x0;if(0x1==_0x54b6bf['length']&&(_0xfe7afa['start']['isEqual'](_0x48384b['end'])||_0xfe7afa['end']['isEqual'](_0x48384b['start'])))return!0x0;}if(0x3==_0xf96559&&0x3==_0x17eda6&&_0xfe7afa['start']['isBefore'](_0x48384b['start'])){const _0x19d8c7=_0xfe7afa['end']['nodeAfter'],_0x471613=_0x48384b['start']['nodeBefore'];return _0x12407c['isBlockImage'](_0x19d8c7)&&_0x19d8c7===_0x471613;}return!0x1;}_0x143650['model']['document']['registerPostFixer'](()=>{let _0x3848bd=!0x1;const _0x2c3ad8=Array['from'](_0x143650['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7b878d,data:_0x12636f}of _0x2c3ad8){const {group:_0x50bcf6,type:_0x362c2b,subType:_0x51ce07,id:_0x33b169}=_0x2aace6['_splitMarkerName'](_0x7b878d);if('suggestion'==_0x50bcf6&&_0x2aace6['hasSuggestion'](_0x33b169)){if('formatBlock'==_0x362c2b&&('imageStylePreApply'==_0x51ce07||'imageStylePostApply'==_0x51ce07)){const _0x26d867=_0x2aace6['getSuggestion'](_0x33b169);if(_0x12636f['newRange']){const _0x28d64b=_0x26d867['getFirstRange']()['getContainedElement']();if(_0x12407c['isBlockImage'](_0x28d64b))continue;_0x2aace6['discardSuggestion'](_0x26d867),_0x3848bd=!0x0;}}if('insertion'==_0x362c2b&&'imageCaption'==_0x51ce07&&!_0x12636f['newRange']){const _0xb3808a=_0x2aace6['getSuggestion'](_0x33b169);_0xb3808a['next']&&_0xb3808a['next']['isInContent']&&(_0x2aace6['discardSuggestion'](_0xb3808a['next']),_0x3848bd=!0x0);}}}return _0x3848bd;}),this['_registerLegacyDescription'](_0x304fbc);}['_registerLegacyDescription'](_0x5aaff0){const _0x537a35=this['editor'],_0x403bf3=_0x537a35['locale'];_0x537a35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5092cb=>{if('formatBlock'!=_0x5092cb['type']&&'formatInline'!=_0x5092cb['type'])return;const {data:_0x8138c5}=_0x5092cb;if(!_0x8138c5||'imageStyle'!=_0x8138c5['commandName'])return;const _0x4665d2=_0x8138c5['commandParams'][0x0]['value'];return _0xa0bc99('side'===_0x4665d2?o(_0x403bf3,'FORMAT_SIDE_IMAGE'):_0x5aaff0[_0x4665d2]||_0x4665d2);function _0xa0bc99(_0x29ae05){return{'type':'format','content':o(_0x403bf3,'*Format:*\x20%0',_0x29ae05)};}});}}class rt extends _0xfd4522{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x458067){super(_0x458067),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x56ec77=this['editor'],_0x408ee7=_0x56ec77['commands']['get']('importWord'),_0x11b1b8=_0x56ec77['commands']['get']('trackChanges');_0x408ee7&&(_0x408ee7['on']('execute',(_0x5a00f5,[,_0x10469f])=>{this['_trackChangesValueDuringImport']=_0x11b1b8['value'],_0x10469f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x408ee7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x408ee7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11b1b8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x56ec77['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xa1e09f,_0xa0d80c){const {suggestions:_0x10ee7e}=_0xa0d80c,_0x58d67b=this['editor']['commands']['get']('trackChanges'),_0xaaef38=_0x58d67b['value'];this['_trackChangesValueDuringImport']!==_0xaaef38&&(_0x58d67b['execute'](),this['_trackChangesExecuted']=!0x0),_0x10ee7e&&_0x10ee7e['forEach'](({id:_0x2e3197,type:_0x422190,author:_0x2131d4,created_at:_0x57559d})=>{const _0x4baf7e={'id':_0x2e3197,'type':_0x422190,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2131d4,'createdAt':_0x57559d?new Date(_0x57559d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4baf7e);});}}class at extends _0xfd4522{['afterInit'](){const _0x301270=this['editor'],_0x229edd=_0x301270['plugins']['get']('TrackChangesEditing');if(_0x301270['plugins']['has']('IndentEditing')&&(_0x229edd['enableCommand']('indent'),_0x229edd['enableCommand']('outdent')),_0x301270['plugins']['has']('IndentBlock')){for(const _0xa6e619 of['indentBlock','outdentBlock'])_0x229edd['enableDefaultAttributesIntegration'](_0xa6e619);}const _0x137fa4=_0x301270['locale'];_0x229edd['registerBlockAttribute']('blockIndent'),_0x229edd['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x137fa4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c5755=this['editor'],_0x44ddd4=_0x5c5755['locale'],_0x5cb3f9=_0x5c5755['plugins']['get']('TrackChangesEditing');_0x5cb3f9['descriptionFactory']['registerDescriptionCallback'](_0xc83977=>{if('formatBlock'!=_0xc83977['type'])return;const {data:_0x28d03b}=_0xc83977;if(!_0x28d03b)return;if('indentBlock'!=_0x28d03b['commandName']&&'outdentBlock'!=_0x28d03b['commandName'])return;const _0x153bb4=_0xc83977['getItems']()[0x0],_0x3df568=_0x5cb3f9['descriptionFactory']['getItemLabel'](_0x153bb4);return'indentBlock'==_0x28d03b['commandName']?{'type':'format','content':o(_0x44ddd4,'*Indent:*\x20%0',_0x3df568)}:'outdentBlock'==_0x28d03b['commandName']?{'type':'format','content':o(_0x44ddd4,'*Outdent:*\x20%0',_0x3df568)}:void 0x0;});}}class ct extends _0xfd4522{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xfd4522{['afterInit'](){const _0x578204=this['editor'];if(!_0x578204['plugins']['has']('LinkEditing'))return;const _0x2396ed=_0x578204['plugins']['get']('TrackChangesEditing'),_0x3e5d42=_0x578204['commands']['get']('link');_0x2396ed['enableDefaultAttributesIntegration']('link'),_0x2396ed['enableDefaultAttributesIntegration']('unlink'),_0x2396ed['registerInlineAttribute']('linkHref');for(const _0x17cc47 of _0x3e5d42['manualDecorators'])_0x2396ed['registerInlineAttribute'](_0x17cc47['id']),_0x2396ed['descriptionFactory']['registerAttributeLabel'](_0x17cc47['id'],'link\x20('+_0x17cc47['label']['toLowerCase']()+')');_0x2396ed['descriptionFactory']['registerDescriptionCallback'](_0x42f7d7=>{if('attribute'!=_0x42f7d7['type'])return;const {data:_0x4c0edc}=_0x42f7d7;if(!_0x4c0edc||'linkHref'!=_0x4c0edc['key'])return;const _0x9bf67=_0x4c0edc['newValue'],_0x18fe9f=_0x578204['locale'];return{'type':'format','content':null==_0x9bf67?o(_0x18fe9f,'*Remove\x20link*'):o(_0x18fe9f,'*Set\x20link:*\x20%0','\x22'+_0x9bf67+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd0f5=this['editor'],_0x2821ab=_0x4cd0f5['locale'];_0x4cd0f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38257e=>{if('formatInline'!=_0x38257e['type'])return;const {data:_0x4fe1d1}=_0x38257e;if(_0x4fe1d1){if('link'==_0x4fe1d1['commandName']){const _0x59bd50=_0x4fe1d1['commandParams'][0x0];return{'type':'format','content':o(_0x2821ab,'*Set\x20link:*\x20%0','\x22'+_0x59bd50+'\x22')};}return'unlink'==_0x4fe1d1['commandName']?{'type':'format','content':o(_0x2821ab,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xfd4522{['afterInit'](){const _0x493b89=this['editor'],_0x56b342=_0x493b89['locale'];if(!_0x493b89['plugins']['has']('LegacyListEditing'))return;const _0x5f1912=_0x493b89['plugins']['get']('TrackChangesEditing'),_0x166e0a=_0x493b89['plugins']['has']('LegacyTodoListEditing');function _0x3507fc(_0x40cc50){return()=>{const _0x31a13e=_0x493b89['model']['document']['selection'],_0xc2593f=_0x493b89['commands']['get'](_0x40cc50);if(_0xc2593f['value'])return void _0x493b89['execute']('paragraph',{});const _0x287d92=_0x40cc50['slice'](0x0,-0x4),_0x3f361c=function(_0x5bd1b8,_0x39689e,_0x4025d3){let _0x2f4a43=Array['from'](_0x5bd1b8)['filter'](_0x47bb4c=>function(_0x278a21,_0x232e41){return _0x232e41['checkChild'](_0x278a21['parent'],'listItem')&&!_0x232e41['isObject'](_0x278a21);}(_0x47bb4c,_0x4025d3));_0x2f4a43=_0x2f4a43['filter'](_0x304e32=>!_0x304e32['is']('element','listItem')||_0x304e32['getAttribute']('listType')!=_0x39689e);const _0x47c191=new Set();for(const _0x344c63 of _0x2f4a43)_0x344c63['is']('element','listItem')?_0x47c191['add'](Le(_0x344c63)):_0x47c191['add'](_0x344c63);return Array['from'](_0x47c191);}(_0x31a13e['getSelectedBlocks'](),_0x287d92,_0x493b89['model']['schema']);_0x493b89['model']['change'](()=>{for(const _0x5f004c of _0x3f361c)_0x5f1912['markBlockFormat'](_0x5f004c,{'commandName':_0x40cc50,'commandParams':[{'forceValue':!_0xc2593f['value']}],'formatGroupId':'blockName'},Ee(_0x5f004c));});};}function _0x369b65(_0xfbc6e8){return()=>{const _0xda0fa3=function(_0x3801c6){let _0x2eb2e0=Array['from'](_0x3801c6);const _0x4971d4=_0x2eb2e0['findIndex'](_0x6514eb=>'listItem'!=_0x6514eb['name']);return _0x4971d4>-0x1&&(_0x2eb2e0=_0x2eb2e0['slice'](0x0,_0x4971d4)),_0x2eb2e0;}(_0x493b89['model']['document']['selection']['getSelectedBlocks']()),_0x227ea7=_0x493b89['model']['createRange'](_0x493b89['model']['createPositionAt'](_0xda0fa3[0x0],'before'),_0x493b89['model']['createPositionAt'](_0xda0fa3[_0xda0fa3['length']-0x1],'end'));_0x493b89['model']['change'](()=>{_0x5f1912['markBlockFormat'](_0x227ea7,{'commandName':_0xfbc6e8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4b4f3d){const _0x1c13c5=new Set();for(const _0x5eb76a of _0x4b4f3d){let _0x5511ed=_0x5eb76a['nextSibling'];for(;_0x5511ed&&_0x5511ed['getAttribute']('listIndent')>_0x5eb76a['getAttribute']('listIndent');)_0x1c13c5['add'](_0x5511ed),_0x5511ed=_0x5511ed['nextSibling'];}return Array['from'](_0x1c13c5);}(_0xda0fa3));});};}_0x5f1912['enableCommand']('numberedList',_0x3507fc('numberedList')),_0x5f1912['enableCommand']('bulletedList',_0x3507fc('bulletedList')),_0x166e0a&&_0x5f1912['enableCommand']('todoList',_0x3507fc('todoList')),_0x5f1912['enableCommand']('indentList',_0x369b65('indentList')),_0x5f1912['enableCommand']('outdentList',_0x369b65('outdentList')),_0x166e0a&&_0x5f1912['enableCommand']('checkTodoList',()=>{const _0x255e07=_0x493b89['commands']['get']('checkTodoList'),_0x10ff9b=Array['from'](_0x255e07['_selectedElements']);_0x10ff9b['filter'](_0x239905=>_0x239905['getAttribute']('todoListChecked')!=_0x255e07['value']),_0x493b89['model']['change'](()=>{for(const _0x3ea1be of _0x10ff9b)_0x5f1912['markBlockFormat'](_0x3ea1be,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x255e07['value']}]});});}),_0x5f1912['descriptionFactory']['registerElementLabel']('listItem',_0xee93ac=>o(_0x56b342,'ELEMENT_LIST_ITEM',_0xee93ac)),_0x5f1912['descriptionFactory']['registerDescriptionCallback'](_0x5a5737=>{if('formatBlock'!=_0x5a5737['type']&&'formatInline'!=_0x5a5737['type'])return;const {data:_0x4df814}=_0x5a5737;if(_0x4df814){if('numberedList'==_0x4df814['commandName']||'bulletedList'==_0x4df814['commandName']||'todoList'==_0x4df814['commandName'])switch(_0x4df814['commandName']['replace']('List','')){case'bulleted':return _0x4c9761(o(_0x56b342,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c9761(o(_0x56b342,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c9761(o(_0x56b342,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4df814['commandName'])return{'type':'format','content':o(_0x56b342,'*Indent:*\x20%0',o(_0x56b342,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4df814['commandName'])return{'type':'format','content':o(_0x56b342,'*Outdent:*\x20%0',o(_0x56b342,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4df814['commandName'])return _0x4df814['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56b342,'*Check\x20item*')}:{'type':'format','content':o(_0x56b342,'*Uncheck\x20item*')};}function _0x4c9761(_0x17ffbf){return{'type':'format','content':o(_0x56b342,'*Change\x20to:*\x20%0',_0x17ffbf)};}});}}function Le(_0x20a0a4){const _0x59864a=_0x20a0a4['getAttribute']('listIndent');if(0x0==_0x59864a)return _0x20a0a4;let _0x6340d0=_0x20a0a4;for(;_0x20a0a4['previousSibling']&&_0x20a0a4['previousSibling']['is']('element','listItem');){const _0x393e74=_0x20a0a4['previousSibling']['getAttribute']('listIndent');if(_0x393e74==_0x59864a)_0x6340d0=_0x20a0a4['previousSibling'];else{if(_0x393e74<_0x59864a)break;}_0x20a0a4=_0x20a0a4['previousSibling'];}return _0x6340d0;}function Ee(_0x208a89){const _0xb51103=[];if(_0x208a89['is']('element','listItem')&&_0x208a89['getAttribute']('listIndent')>0x0){let _0x2763db=_0x208a89['nextSibling'];for(;_0x2763db&&'listItem'==_0x2763db['name']&&_0x2763db['getAttribute']('listIndent')==_0x208a89['getAttribute']('listIndent');)_0xb51103['push'](_0x2763db),_0x2763db=_0x2763db['nextSibling'];}return _0xb51103;}class ht extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3dd649=this['editor']['config']['get']('list.properties'),_0x49fd29=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd649['styles']&&_0x49fd29['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3dd649['reversed']&&_0x49fd29['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3dd649['startIndex']&&_0x49fd29['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x49fd29['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1cb434,_0x3d5bf8={}){const _0x336e6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd91a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x336e6e['markMultiRangeBlockFormat'](_0x1dd91a,{'commandName':'listStyle','commandParams':[{'type':_0x3d5bf8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x325117,_0x7fac0c={}){const _0x23b5cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23d3b0=this['_getSuggestionBlocks'](_0x10dbca=>_0x10dbca['is']('element','listItem')&&'numbered'===_0x10dbca['getAttribute']('listType'));if(_0x23d3b0['length']<0x1)return;const _0x415859=_0x23d3b0['map'](_0x479bf4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x479bf4,'before'),this['editor']['model']['createPositionAt'](_0x479bf4,0x0)));this['editor']['model']['change'](()=>{_0x23b5cf['markMultiRangeBlockFormat'](_0x415859,{'commandName':'listReversed','commandParams':[{'reversed':_0x7fac0c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x796fe,_0x578a22={}){const _0x2523fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c10fb=this['_getSuggestionBlocks'](_0x27e609=>_0x27e609['is']('element','listItem')&&'numbered'===_0x27e609['getAttribute']('listType'));if(_0x2c10fb['length']<0x1)return;const _0x2f0e7e=_0x2c10fb['map'](_0x53eefb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53eefb,'before'),this['editor']['model']['createPositionAt'](_0x53eefb,0x0)));this['editor']['model']['change'](()=>{_0x2523fe['markMultiRangeBlockFormat'](_0x2f0e7e,{'commandName':'listStart','commandParams':[{'startIndex':_0x578a22['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x598cf5){if('formatBlock'!=_0x598cf5['type']&&'formatInline'!=_0x598cf5['type'])return;const _0x2522dd=this['editor']['locale'],{data:_0x1e3cde}=_0x598cf5;if(!_0x1e3cde)return;let _0x6b3806,_0x80458c;switch(_0x1e3cde['commandName']){case'listStyle':_0x6b3806='*Change\x20to:*\x20%0',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806,o(_0x2522dd,this['_getTranslationKeyForListStyle'](_0x1e3cde['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6b3806=_0x1e3cde['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806)};break;case'listStart':_0x6b3806='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806,_0x1e3cde['commandParams'][0x0]['startIndex'])};}return _0x80458c;}['_getSuggestionBlocksForListStyle'](){const _0x403319=this['editor']['plugins']['get']('LegacyListUtils');let _0x400b62=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x400b62[0x0]?.['is']('element','listItem')&&_0x400b62['unshift'](..._0x403319['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x400b62[_0x400b62['length']-0x1]?.['is']('element','listItem')&&_0x400b62['push'](..._0x403319['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x400b62=[...new Set(_0x400b62)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x400b62=_0x400b62['filter'](_0x39834f=>_0x39834f['is']('element','listItem'))),_0x400b62;}['_getSuggestionBlocks'](_0xc3cd1){const _0x438eb5=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c2b89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc3cd1)['map'](_0x46a1a3=>{const _0x12b5c3=this['editor']['model']['createPositionAt'](_0x46a1a3,0x0);return[..._0x438eb5['getSiblingNodes'](_0x12b5c3,'backward'),..._0x438eb5['getSiblingNodes'](_0x12b5c3,'forward')];})['flat']();return _0x5c2b89=[...new Set(_0x5c2b89)],_0x5c2b89;}['_getTranslationKeyForListStyle'](_0x53fb3e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x53fb3e)||'default')['toUpperCase']()+'_LIST_'+_0x53fb3e['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xfd4522{['afterInit'](){const _0x5d87d0=this['editor'];if(!_0x5d87d0['plugins']['has']('MediaEmbedEditing'))return;const _0x23c36e=_0x5d87d0['plugins']['get']('TrackChangesEditing'),_0x387bf4=_0x5d87d0['locale'];_0x23c36e['enableCommand']('mediaEmbed'),_0x23c36e['descriptionFactory']['registerElementLabel']('media',_0x4bba14=>o(_0x387bf4,'ELEMENT_MEDIA',_0x4bba14)),_0x5d87d0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x372a5f,{writer:_0x319a51,options:_0x58e4ba})=>{if(_0x58e4ba['showSuggestionHighlights'])return _0x319a51['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d87d0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2db39c,_0x8b3017,_0x27e35c)=>{_0x27e35c['options']['showSuggestionHighlights']&&_0x2db39c['stop']();},{'priority':'high'});}}class lt extends _0xfd4522{['afterInit'](){const _0x4242bb=this['editor'];_0x4242bb['plugins']['has']('MentionEditing')&&_0x4242bb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xfd4522{['afterInit'](){const _0x35be38=this['editor'];if(!_0x35be38['plugins']['has']('MergeFieldsEditing'))return;const _0x219e4d=_0x35be38['plugins']['get']('TrackChangesEditing'),_0x3a17bb=_0x35be38['locale'];_0x219e4d['enableCommand']('insertMergeField'),_0x219e4d['enableCommand']('insertMergeFieldBlock'),_0x219e4d['enableCommand']('insertMergeFieldImage'),_0x219e4d['descriptionFactory']['registerElementLabel']('mergeField',_0x735578=>o(_0x3a17bb,'ELEMENT_MERGE_FIELD',_0x735578)),_0x219e4d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3d1b21=>o(_0x3a17bb,'ELEMENT_MERGE_FIELD',_0x3d1b21)),_0x219e4d['descriptionFactory']['registerDescriptionCallback'](_0x3d862c=>{if('insertion'!=_0x3d862c['type']&&'deletion'!=_0x3d862c['type'])return;const _0x1e97e0=_0x3d862c['getContainedElement']();if(null==_0x1e97e0)return;const _0x521c4a=_0x35be38['plugins']['get']('MergeFieldsEditing');let _0x5db1cb;switch(_0x521c4a['getMergeFieldType'](_0x1e97e0)){case null:return;case'image':{const _0x5bf504=_0x521c4a['unwrapAffixes'](_0x1e97e0['getAttribute']('src'));_0x5db1cb=_0x521c4a['getLabel'](_0x5bf504)||_0x5bf504;break;}default:{const _0x3401fc=_0x1e97e0['getAttribute']('id');_0x5db1cb=_0x521c4a['getLabel'](_0x3401fc)||_0x3401fc;break;}}return'insertion'==_0x3d862c['type']?{'type':'insertion','content':o(_0x3a17bb,'*Insert:*\x20%0','\x22'+_0x5db1cb+'\x22\x20'+o(_0x3a17bb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3a17bb,'*Remove:*\x20%0','\x22'+_0x5db1cb+'\x22\x20'+o(_0x3a17bb,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xfd4522{['afterInit'](){const _0x3061d4=this['editor'],_0x2aa4ca=_0x3061d4['plugins']['get']('TrackChangesEditing');_0x3061d4['plugins']['has']('MultiLevelList')&&(_0x2aa4ca['enableDefaultAttributesIntegration']('multiLevelList'),_0x2aa4ca['registerBlockAttribute']('listMarkerStyle'),_0x2aa4ca['descriptionFactory']['registerDescriptionCallback'](_0x3466e6=>this['handleDescriptions'](_0x3466e6)));}['handleDescriptions'](_0x5dd804){const _0x17a401=this['editor']['locale'],{data:_0x3cf270}=_0x5dd804,_0x2a22d8={'type':'format','content':''};if(_0x3cf270&&'listMarkerStyle'==_0x3cf270['key']){if(!_0x3cf270['oldValue'])return{'type':'format','content':o(_0x17a401,'*Set\x20format:*\x20%0',o(_0x17a401,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cf270['newValue']+')'};if(!_0x3cf270['newValue']){let _0x553beb=_0x5dd804['head'];for(;_0x553beb;){if(_0x553beb['data']&&'listType'==_0x553beb['data']['key']&&_0x553beb['data']['newValue'])return _0x2a22d8;_0x553beb=_0x553beb['next'];}return{'type':'format','content':o(_0x17a401,'*Remove\x20format:*\x20%0',o(_0x17a401,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cf270['oldValue']+')'};}}}}class pt extends _0xfd4522{['afterInit'](){const _0x26d9da=this['editor'];if(!_0x26d9da['plugins']['has']('PageBreakEditing'))return;_0x26d9da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c6132=_0x26d9da['plugins']['get']('TrackChangesEditing'),_0x39a67b=_0x26d9da['locale'];_0x4c6132['descriptionFactory']['registerElementLabel']('pageBreak',_0x58e448=>o(_0x39a67b,'ELEMENT_PAGE_BREAK',_0x58e448));}}class kt extends _0xfd4522{['afterInit'](){const _0x15b996=this['editor'];if(!_0x15b996['plugins']['has']('Paragraph'))return;const _0x4c07fb=_0x15b996['locale'],_0x5c3e3e=_0x15b996['plugins']['get']('TrackChangesEditing');_0x5c3e3e['descriptionFactory']['registerElementLabel']('paragraph',_0x5758c8=>o(_0x4c07fb,'ELEMENT_PARAGRAPH',_0x5758c8)),_0x5c3e3e['enableDefaultAttributesIntegration']('paragraph'),_0x5c3e3e['enableCommand']('insertParagraph'),_0x15b996['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x15b996),{'priority':'highest'}),_0x15b996['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ad657,_0x471db4,_0x2481ed)=>{_0x2481ed['options']['showSuggestionHighlights']&&nr(_0x15b996,{'showActiveMarker':!0x1})(_0x5ad657,_0x471db4,_0x2481ed);},{'priority':'highest'});const _0x588399=_0x5c3e3e['descriptionFactory'];_0x588399['registerDescriptionCallback'](_0x44823f=>{if('insertion'!==_0x44823f['type'])return;const {start:_0x1666ff,end:_0x2cba15}=_0x44823f['getFirstRange']();if(!_0x1666ff['isTouching'](_0x2cba15)||!_0x1666ff['nodeAfter'])return;const _0x2c5de9=_0x15b996['model']['schema'],_0x48ddcd=_0x1666ff['nodeAfter'];return _0x2c5de9['isBlock'](_0x48ddcd)&&!_0x2c5de9['isLimit'](_0x48ddcd)&&_0x2c5de9['checkChild'](_0x48ddcd,'$text')?{'type':'insertion','content':o(_0x4c07fb,'*Insert:*\x20%0',_0x588399['getItemLabel'](_0x48ddcd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20081b=this['editor'],_0x394fad=_0x20081b['locale'];_0x20081b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e7d50=>{if('formatBlock'!=_0x1e7d50['type'])return;const {data:_0x51664f}=_0x1e7d50;return _0x51664f&&'paragraph'==_0x51664f['commandName']?{'type':'format','content':o(_0x394fad,'*Change\x20to:*\x20%0',o(_0x394fad,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x41a788,{showActiveMarker:_0x239be4=!0x0}={}){return(_0x493c1e,_0x1c9e37,_0x235c41)=>{const _0x3203fc=_0x41a788['plugins']['get']('TrackChangesEditing'),_0x2bc607=_0x1c9e37['markerRange']['start'],_0x264412=_0x1c9e37['markerRange']['end'],_0x5b7943=_0x41a788['model']['schema'];if(!_0x2bc607['isTouching'](_0x264412)||!_0x2bc607['nodeAfter'])return;const _0x45215e=_0x2bc607['nodeAfter'];if(_0x5b7943['isBlock'](_0x45215e)&&!_0x5b7943['isLimit'](_0x45215e)&&_0x5b7943['checkChild'](_0x45215e,'$text')){if(!_0x235c41['consumable']['consume'](_0x1c9e37['markerRange'],_0x493c1e['name']))return;const {id:_0x5ce44a,authorId:_0x4137b2}=_0x3203fc['_splitMarkerName'](_0x1c9e37['markerName']),_0x4297f1=_0x235c41['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5ce44a,'data-author-id':_0x4137b2}),_0x1c54b0=_0x235c41['mapper']['toViewPosition'](_0x264412);_0x239be4&&_0x3203fc['activeMarkers']['includes'](_0x1c9e37['markerName'])&&_0x235c41['writer']['addClass']('ck-suggestion-marker--active',_0x4297f1),_0x235c41['writer']['insert'](_0x1c54b0,_0x4297f1),_0x235c41['mapper']['bindElementToMarker'](_0x4297f1,_0x1c9e37['markerName']);}};}class wt extends _0xfd4522{['afterInit'](){const _0x2e8e3e=this['editor'];_0x2e8e3e['commands']['get']('replaceSource')&&_0x2e8e3e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xfd4522{['afterInit'](){const _0x3b6192=this['editor'];if(!_0x3b6192['plugins']['has']('RemoveFormatEditing'))return;_0x3b6192['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234848=this['editor'];_0x234848['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dc75c=>{if('formatBlock'!=_0x5dc75c['type']&&'formatInline'!=_0x5dc75c['type'])return;const {data:_0x328145}=_0x5dc75c;return _0x328145&&'removeFormat'==_0x328145['commandName']?{'type':'format','content':o(_0x234848['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xfd4522{['afterInit'](){const _0x1fc420=this['editor'];if(!_0x1fc420['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2460be=_0x1fc420['plugins']['get']('TrackChangesEditing');_0x2460be['enableCommand']('goToPreviousRestrictedEditingException'),_0x2460be['enableCommand']('goToNextRestrictedEditingException');const _0x69ee74=_0x1fc420['plugins']['get']('RestrictedEditingModeEditing');_0x69ee74['enableCommand']('trackChanges'),_0x69ee74['enableCommand']('acceptSuggestion'),_0x69ee74['enableCommand']('discardSuggestion'),_0x69ee74['enableCommand']('acceptAllSuggestions'),_0x69ee74['enableCommand']('discardAllSuggestions'),_0x69ee74['enableCommand']('acceptSelectedSuggestions'),_0x69ee74['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xfd4522{['afterInit'](){const _0x46b8b7=this['editor'];if(!_0x46b8b7['plugins']['has']('ShiftEnter'))return;const _0x54b851=_0x46b8b7['plugins']['get']('TrackChangesEditing');_0x54b851['enableCommand']('shiftEnter'),_0x46b8b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x46b8b7),{'priority':'high'}),_0x46b8b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x46b8b7),{'priority':'high'}),_0x46b8b7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54707e,_0x56cfbb,_0x298180)=>{_0x298180['options']['showSuggestionHighlights']&&je(_0x46b8b7,{'showActiveMarker':!0x1})(_0x54707e,_0x56cfbb,_0x298180);}),_0x54b851['descriptionFactory']['registerElementLabel']('softBreak',_0x58a064=>o(_0x46b8b7['locale'],'ELEMENT_LINE_BREAK',_0x58a064));}}function je(_0x391295,{showActiveMarker:_0x181037=!0x0}={}){return(_0x1ca27b,_0x5524b2,_0x441ea6)=>{const _0x38b8cc=_0x391295['plugins']['get']('TrackChangesEditing');if(!_0x441ea6['consumable']['test'](_0x5524b2['markerRange'],_0x1ca27b['name']))return;const _0x31b4f6=_0x391295['model'];for(const _0x465903 of _0x5524b2['markerRange']['getItems']()){if(!_0x465903['is']('element','softBreak'))continue;const _0x536504='deletion'==_0x5524b2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2deafd,authorId:_0x4525fa}=_0x38b8cc['_splitMarkerName'](_0x5524b2['markerName']),_0x4e90f7=_0x441ea6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x536504,'data-suggestion':_0x2deafd,'data-author-id':_0x4525fa}),_0x8e239c=_0x441ea6['mapper']['toViewPosition'](_0x31b4f6['createPositionBefore'](_0x465903));_0x181037&&_0x38b8cc['activeMarkers']['includes'](_0x5524b2['markerName'])&&_0x441ea6['writer']['addClass']('ck-suggestion-marker--active',_0x4e90f7),_0x441ea6['writer']['insert'](_0x8e239c,_0x4e90f7),_0x441ea6['mapper']['bindElementToMarker'](_0x4e90f7,_0x5524b2['markerName']);}};}class St extends _0xfd4522{['afterInit'](){const _0x510055=this['editor'],_0x1f54a4=_0x510055['model'],_0x11f0b5=_0x510055['locale'];if(!_0x510055['plugins']['has']('StandardEditingModeEditing'))return;const _0x107fe6=_0x510055['plugins']['get']('TrackChangesEditing'),_0x340952='restrictedEditingException',_0x4fbf1f=_0x510055['commands']['get'](_0x340952);_0x107fe6['enableCommand'](_0x340952,(_0x4ed4b3,_0x5a91f0={})=>{const _0x11ef21=_0x1f54a4['document']['selection'];if(_0x11ef21['isCollapsed'])return void _0x4ed4b3(_0x5a91f0);const _0x114705=void 0x0!==_0x5a91f0['forceValue']?_0x5a91f0['forceValue']:!_0x4fbf1f['value'];_0x1f54a4['change'](()=>{const _0x500210=Array['from'](_0x11ef21['getRanges']());for(const _0x2cc65d of _0x500210){const _0x558ad3=_0x114705?[_0x2cc65d]:io(_0x340952,_0x2cc65d,_0x1f54a4);for(const _0x3513a2 of _0x558ad3)_0x107fe6['markInlineFormat'](_0x3513a2,{'commandName':_0x340952,'commandParams':[{'forceValue':_0x114705}]});}});}),_0x107fe6['descriptionFactory']['registerDescriptionCallback'](_0xe7b925=>{if('formatBlock'!=_0xe7b925['type']&&'formatInline'!=_0xe7b925['type'])return;const {data:_0x39dd4c}=_0xe7b925;return _0x39dd4c&&_0x39dd4c['commandName']==_0x340952?_0x39dd4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11f0b5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x11f0b5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xfd4522{['afterInit'](){const _0x10cce7=this['editor'];if(!_0x10cce7['plugins']['has']('Style')||!_0x10cce7['plugins']['has']('DataSchema'))return;const _0x25d2cc=_0x10cce7['plugins']['get']('TrackChangesEditing'),_0x24f0eb=_0x10cce7['locale'],_0x4d47c5=_0x10cce7['config']['get']('style')||{},_0x5c70d3=_0x10cce7['plugins']['get']('GeneralHtmlSupport'),_0x227773=_0x10cce7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10cce7['plugins']['get']('DataSchema'),_0x4d47c5['definitions']);_0x25d2cc['enableDefaultAttributesIntegration']('style');const _0x125320=new Set();for(const _0x226177 of _0x227773['block']){const _0x17d348=_0x5c70d3['getGhsAttributeNameForElement'](_0x226177['element']);_0x125320['add'](_0x17d348);}const _0x2bcde0=new Set();for(const _0x57da05 of _0x227773['inline']){const _0x487eab=_0x5c70d3['getGhsAttributeNameForElement'](_0x57da05['element']);_0x2bcde0['add'](_0x487eab);for(const _0x545fc1 of _0x57da05['ghsAttributes'])_0x2bcde0['add'](_0x545fc1);}for(const _0x75e48c of _0x125320)_0x25d2cc['registerBlockAttribute'](_0x75e48c),_0x25d2cc['descriptionFactory']['registerAttributeLabel'](_0x75e48c,o(_0x24f0eb,'FORMAT_STYLE'));for(const _0x16c0fb of _0x2bcde0)_0x25d2cc['registerInlineAttribute'](_0x16c0fb),_0x25d2cc['descriptionFactory']['registerAttributeLabel'](_0x16c0fb,o(_0x24f0eb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35fcad=this['editor'],_0x39325b=_0x35fcad['locale'];_0x35fcad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5156ed=>{if('formatBlock'!=_0x5156ed['type']&&'formatInline'!=_0x5156ed['type'])return;const {data:_0x13cab6}=_0x5156ed;return _0x13cab6&&'style'===_0x13cab6['commandName']?_0x13cab6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39325b,'*Set\x20format:*\x20%0',_0x13cab6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39325b,'*Remove\x20format:*\x20%0',_0x13cab6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xfd4522{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x580611){super(_0x580611),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x15de90=this['editor'],_0x14dbdb=_0x15de90['model']['document']['selection'];if(!_0x15de90['plugins']['has']('TableEditing'))return;const _0x54213a=_0x15de90['locale'],_0x5a7f8c=_0x15de90['plugins']['get']('TrackChangesEditing'),_0x1cd652=_0x15de90['plugins']['get']('TableUtils');_0x5a7f8c['descriptionFactory']['registerElementLabel']('table',_0xb404a0=>o(_0x54213a,'ELEMENT_TABLE',_0xb404a0)),this['_setupColumnsRowsFixing'](),_0x5a7f8c['enableCommand']('insertTable'),_0x5a7f8c['enableCommand']('selectTableRow'),_0x5a7f8c['enableCommand']('selectTableColumn');for(const _0x44bf70 of['insertTableRowAbove','insertTableRowBelow']){const _0x3627b9=_0x15de90['commands']['get'](_0x44bf70);_0x5a7f8c['enableCommand'](_0x44bf70,_0x2fc8fc=>{_0x15de90['model']['change'](_0x36709b=>{_0x2fc8fc();const _0x299f4a='above'===_0x3627b9['order'],_0x1e7e1c=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x131cfa=_0x1cd652['getRowIndexes'](_0x1e7e1c),_0x599adb=_0x299f4a?_0x131cfa['first']-0x1:_0x131cfa['last']+0x1,_0x304ee4=_0x1e7e1c[0x0]['findAncestor']('table'),_0x46f737=_0x1cd652['createTableWalker'](_0x304ee4,{'startRow':_0x599adb,'endRow':_0x599adb}),_0x5a99ed=Array['from'](_0x46f737)['map'](_0x1ecfd4=>_0x36709b['createRangeOn'](_0x1ecfd4['cell']));_0x5a7f8c['markMultiRangeInsertion'](_0x5a99ed,'tableRow');});});}for(const _0x50a3e6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5182ac=_0x15de90['commands']['get'](_0x50a3e6);_0x5a7f8c['enableCommand'](_0x50a3e6,_0x1903b9=>{_0x15de90['model']['change'](_0x5824a4=>{_0x1903b9();const _0x5e368a='left'===_0x5182ac['order'],_0x54f798=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x1221bf=_0x1cd652['getColumnIndexes'](_0x54f798),_0x35edbb=_0x5e368a?_0x1221bf['first']-0x1:_0x1221bf['last']+0x1,_0x49cf0f=_0x54f798[0x0]['findAncestor']('table'),_0x168958=_0x1cd652['createTableWalker'](_0x49cf0f,{'startRow':0x0,'column':_0x35edbb,'includeAllSlots':!0x1}),_0x5e3fe0=Array['from'](_0x168958)['map'](_0x2982d3=>_0x5824a4['createRangeOn'](_0x2982d3['cell']));_0x5a7f8c['markMultiRangeInsertion'](_0x5e3fe0,'tableColumn');});});}for(const _0x4a59f5 of['removeTableRow','removeTableColumn']){const _0x2be7d1=_0x4a59f5['substr'](0xb),_0x5765f9=_0x2be7d1['toLowerCase'](),_0x22c34b=_0x5765f9['substr'](0x0,0x3)+'span',_0x15d40b='table'+_0x2be7d1,_0xf8e69='min'+_0x2be7d1,_0x59d82a='max'+_0x2be7d1;_0x5a7f8c['enableCommand'](_0x4a59f5,()=>{_0x15de90['model']['change'](_0x69d832=>{const _0x2f7b74=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x2d32fc=_0x2f7b74[0x0]['findAncestor']('table');let _0x55ac7c;if('removeTableRow'==_0x4a59f5){const _0x41c0e8=_0x1cd652['getRowIndexes'](_0x2f7b74);_0x55ac7c={'startRow':_0x41c0e8['first'],'endRow':_0x41c0e8['last'],'includeAllSlots':!0x0};}else{const _0x540bbc=_0x1cd652['getColumnIndexes'](_0x2f7b74);_0x55ac7c={'startColumn':_0x540bbc['first'],'endColumn':_0x540bbc['last'],'includeAllSlots':!0x0};}const _0x495a5e=_0x1cd652['createTableWalker'](_0x2d32fc,_0x55ac7c),_0x5a593d=Array['from'](_0x495a5e)['map'](({cell:_0xb9daaa})=>_0xb9daaa),_0x122ef8=Ne(_0x5a593d['filter'](_0x59eb47=>_0x59eb47['hasAttribute'](_0x22c34b))),_0x310b3b=Ne(_0x5a593d['filter'](_0x4d8937=>!_0x4d8937['hasAttribute'](_0x22c34b)))['map'](_0x242134=>_0x69d832['createRangeOn'](_0x242134)),_0x34845b=_0x5a7f8c['markMultiRangeDeletion'](_0x310b3b,_0x15d40b);if(_0x34845b&&('tableRow'==_0x34845b['subType']||'tableColumn'==_0x34845b['subType'])){const _0x42d2ab=this['_getSuggestionCoords'](_0x34845b);for(const _0x432754 of _0x122ef8){const _0x9e5ffa=_0x69d832['createRangeOn'](_0x432754),_0x4970cf=_0x1cd652['getCellLocation'](_0x432754),_0x3b6a90=_0x432754['getAttribute'](_0x22c34b)-0x1,_0x22fa5d=_0x42d2ab[_0xf8e69],_0x436037=_0x42d2ab[_0x59d82a];_0x22fa5d<=_0x4970cf[_0x5765f9]&&_0x4970cf[_0x5765f9]+_0x3b6a90<=_0x436037&&_0x34845b['addRange'](_0x9e5ffa);}}});});}function _0x5e38be(_0x2bd501){const _0x54e855=Array['from'](_0x14dbdb['getRanges']())['map'](_0x253bd7=>_0x217d71['fromRange'](_0x253bd7));_0x15de90['model']['change'](_0x8c7e11=>{const _0x5d44d7=_0x8c7e11['batch'];_0x2bd501=_0x2bd501['filter'](_0x51289a=>'$graveyard'!=_0x51289a['root']['rootName']),_0x8c7e11['setSelection'](_0x2bd501),_0x15de90['commands']['get']('removeTableRow')['refresh'](),_0x15de90['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x15de90['model']['enqueueChange'](()=>{_0x15de90['model']['enqueueChange'](_0x5d44d7,_0x56d1b1=>{const _0x51005d=_0x54e855['filter'](_0x55c1fa=>'$graveyard'!=_0x55c1fa['root']['rootName']);_0x51005d['length']>0x0&&_0x56d1b1['setSelection'](_0x51005d);for(const _0x4a50db of _0x54e855)_0x4a50db['detach']();});});});}function _0x128f0f(_0x519120){_0x15de90['model']['change'](_0x50da0f=>{const _0x50fe25=Array['from'](_0x14dbdb['getRanges']())['map'](_0x44dfd0=>_0x217d71['fromRange'](_0x44dfd0)),_0x41fd05=[];for(const _0x3b56fe of _0x519120)for(const _0x491eb0 of _0x3b56fe['getItems']({'shallow':!0x0}))_0x41fd05['push'](_0x491eb0);for(const _0x49e775 of _0x41fd05)'$graveyard'!=_0x49e775['root']['rootName']&&(_0x50da0f['setSelection'](_0x50da0f['createPositionAt'](_0x49e775,0x0)),_0x15de90['commands']['get']('removeTableColumn')['refresh'](),_0x15de90['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1c2238=_0x50fe25['filter'](_0x5c1c22=>'$graveyard'!=_0x5c1c22['root']['rootName']);_0x1c2238['length']>0x0&&_0x50da0f['setSelection'](_0x1c2238);for(const _0x2a2223 of _0x50fe25)_0x2a2223['detach']();});}function _0x3de3a7(_0x1a2610,_0x453a54){return _0x453a54['every'](_0xa4a9b6=>_0x1a2610['some'](_0x21767d=>_0x21767d['end']['isEqual'](_0xa4a9b6['start'])||_0xa4a9b6['end']['isEqual'](_0x21767d['start'])));}function _0x12378f(_0x562e9e,_0x220320){return!_0x562e9e['some'](_0xfb0bde=>_0x220320['some'](_0x1f25ab=>_0xfb0bde['isIntersecting'](_0x1f25ab)))&&_0x562e9e['some'](_0x498fd7=>_0x220320['some'](_0x52cce0=>_0x498fd7['end']['isTouching'](_0x52cce0['start'])));}_0x15de90['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x399785,_0x52c81a,_0x47ea63)=>{if(!_0x47ea63['options']['showSuggestionHighlights'])return;const _0x1596ed=_0x52c81a['item'];if(!_0x1596ed||!_0x1596ed['is']('element','tableCell'))return;const _0x3e560f=_0x47ea63['mapper']['toViewElement'](_0x1596ed);if(_0x3e560f){const {id:_0x245e59,authorId:_0xa5c063}=_0x5a7f8c['_splitMarkerName'](_0x52c81a['markerName']);_0x352865(_0x3e560f,_0x47ea63['writer'],(_0x4ccae9,_0x48bdcd,_0x36aa9c)=>{_0x36aa9c['addClass'](_0xd850df(_0x48bdcd['classes']),_0x4ccae9),_0x36aa9c['setAttribute']('data-suggestion-id',_0x245e59,_0x4ccae9),_0x36aa9c['setAttribute']('data-author-id',_0xa5c063,_0x4ccae9);},(_0x66e40b,_0x392b64,_0x32af8f)=>{_0x32af8f['removeClass'](_0xd850df(_0x392b64['classes']),_0x66e40b),_0x32af8f['removeAttribute']('data-suggestion-id',_0x66e40b),_0x32af8f['removeAttribute']('data-author-id',_0x66e40b);});}},{'priority':'highest'}),_0x5a7f8c['descriptionFactory']['registerDescriptionCallback'](_0x2fce72=>{if('insertion'!=_0x2fce72['type']&&'deletion'!=_0x2fce72['type'])return;const _0x14b817=_0x2fce72['getContainedElement']();if(null!=_0x14b817&&_0x14b817['is']('element','table')){if('insertion'==_0x2fce72['type']){const _0x259d5e=_0x2fce72['getItems']()['filter'](_0x2514c3=>_0x2514c3['is']('$textProxy'))['map'](_0x18a8d2=>_0x18a8d2['data']);if(_0x259d5e['length'])return{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x259d5e['join']('\x20')+'\x22'))};}if('deletion'==_0x2fce72['type']){const _0x28839e=_0x2fce72['getItems']()['filter'](_0x5b8eaf=>_0x5b8eaf['is']('$textProxy'))['map'](_0x3a4701=>_0x3a4701['data']);if(_0x28839e['length'])return{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28839e['join']('\x20')+'\x22'))};}}}),_0x5a7f8c['descriptionFactory']['registerDescriptionCallback'](_0x4da785=>{if('tableRow'==_0x4da785['subType']){const _0x271425=_0x4da785['getItems']()['filter'](_0x332909=>_0x332909['is']('$textProxy'))['map'](_0x5438f0=>_0x5438f0['data']),_0x5c5429=this['_getSuggestionCoords'](_0x4da785),_0x54d4b9=_0x5c5429['maxRow']-_0x5c5429['minRow']+0x1;if('insertion'==_0x4da785['type'])return _0x271425['length']?{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d4b9,'\x22'+_0x271425['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW',_0x54d4b9))};if('deletion'==_0x4da785['type'])return _0x271425['length']?{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d4b9,'\x22'+_0x271425['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW',_0x54d4b9))};}if('tableColumn'==_0x4da785['subType']){const _0x146546=_0x4da785['getItems']()['filter'](_0x46a20e=>_0x46a20e['is']('$textProxy'))['map'](_0x13f715=>_0x13f715['data']),_0x4c336a=this['_getSuggestionCoords'](_0x4da785),_0x5d183b=_0x4c336a['maxColumn']-_0x4c336a['minColumn']+0x1;if('insertion'==_0x4da785['type'])return _0x146546['length']?{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d183b,'\x22'+_0x146546['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN',_0x5d183b))};if('deletion'==_0x4da785['type'])return _0x146546['length']?{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d183b,'\x22'+_0x146546['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN',_0x5d183b))};}}),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e38be),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e38be),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x128f0f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x128f0f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3de3a7),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3de3a7),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12378f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12378f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x44accc=this['editor'],_0x14d562=_0x44accc['model']['document']['selection'];return(_0x20bb59,_0x1f89dd)=>{_0x44accc['model']['change'](_0x55c642=>{const {commandName:_0x3c0f0c,commandParams:_0x29a5b3}=_0x1f89dd;let _0x4cf339=_0x20bb59[0x0]['end']['nodeBefore'];_0x29a5b3&&_0x29a5b3[0x0]&&!0x1===_0x29a5b3[0x0]['forceValue']&&(_0x4cf339=_0x20bb59[0x0]['start']['nodeAfter']);const _0x3c3feb=_0x55c642['createRangeIn'](_0x4cf339);if('$graveyard'==_0x3c3feb['root']['rootName'])return;const _0x15cbf7=Array['from'](_0x14d562['getRanges']())['map'](_0x131137=>_0x217d71['fromRange'](_0x131137));_0x55c642['setSelection'](_0x3c3feb),_0x44accc['commands']['get'](_0x3c0f0c)['refresh'](),_0x29a5b3['push']({'forceDefaultExecution':!0x0}),_0x44accc['execute'](_0x3c0f0c,..._0x29a5b3);const _0x362391=_0x15cbf7['filter'](_0x3f0e53=>'$graveyard'!=_0x3f0e53['root']['rootName']);_0x362391['length']>0x0&&_0x55c642['setSelection'](_0x362391);for(const _0x1edee9 of _0x15cbf7)_0x1edee9['detach']();});};}['_getCoordsForCells'](_0x194739){const _0x361a3c=this['editor']['plugins']['get']('TableUtils');let _0x464d35=Number['MAX_SAFE_INTEGER'],_0x205592=Number['MIN_SAFE_INTEGER'],_0x7c7fbb=Number['MAX_SAFE_INTEGER'],_0x50fad=Number['MIN_SAFE_INTEGER'];for(const _0x4e936d of _0x194739){if('$graveyard'==_0x4e936d['root']['rootName'])continue;const {row:_0x1c472a,column:_0x54b9c2}=_0x361a3c['getCellLocation'](_0x4e936d),_0x4470e7=_0x4e936d['hasAttribute']('rowspan')?_0x4e936d['getAttribute']('rowspan')-0x1:0x0,_0x402044=_0x4e936d['hasAttribute']('colspan')?_0x4e936d['getAttribute']('colspan')-0x1:0x0;_0x464d35=_0x1c472a<_0x464d35?_0x1c472a:_0x464d35,_0x205592=_0x1c472a+_0x4470e7>_0x205592?_0x1c472a+_0x4470e7:_0x205592,_0x7c7fbb=_0x54b9c2<_0x7c7fbb?_0x54b9c2:_0x7c7fbb,_0x50fad=_0x54b9c2+_0x402044>_0x50fad?_0x54b9c2+_0x402044:_0x50fad;}return{'minRow':_0x464d35,'maxRow':_0x205592,'minColumn':_0x7c7fbb,'maxColumn':_0x50fad};}['_setupColumnsRowsFixing'](){const _0x3e8e72=this['editor'],_0x1411fa=_0x3e8e72['plugins']['get']('TrackChangesEditing'),_0x239ab2=_0x3e8e72['plugins']['get']('TableUtils');_0x3e8e72['model']['document']['on']('change:data',()=>{const _0x4c67f1=Array['from'](_0x3e8e72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x260fe2,data:_0x5ed05a}of _0x4c67f1){const {group:_0x304797,id:_0x554dfe,subType:_0x3d4824}=_0x1411fa['_splitMarkerName'](_0x260fe2);if('suggestion'!=_0x304797)continue;if(null!=_0x5ed05a['oldRange'])continue;const _0x46f196=_0x1411fa['getSuggestion'](_0x554dfe);this['_tablePostFixingSubtypes']['includes'](_0x3d4824)&&this['_tableSuggestions']['add'](_0x46f196);}},{'priority':'low'});const _0x36a835=(_0x1ed602,_0x476a95)=>{let _0x58e449=!0x1;const _0x330ada=_0x476a95['createRangeOn'](_0x1ed602),_0x2fa34b=_0x1ed602['findAncestor']('table'),_0x36480c=_0x239ab2['getCellLocation'](_0x1ed602);for(const _0x53ddb8 of this['_tableSuggestions']){const _0x2121c5=_0x53ddb8['subType'],_0x14dab7=_0x2121c5['startsWith']('tablePaste'),_0x105cc6=_0x2121c5['substr'](_0x14dab7?0xa:0x5),_0x1086c3=_0x105cc6['toLowerCase'](),_0x40c04d=_0x1086c3['substr'](0x0,0x3)+'span',_0x425da6='min'+_0x105cc6,_0x5c699f='max'+_0x105cc6;if(!_0x53ddb8['isInContent'])continue;if(_0x2fa34b!=_0x53ddb8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x53ddb8['isIntersectingWithRange'](_0x330ada))continue;const _0x1a2014=_0x1ed602['hasAttribute'](_0x40c04d)?_0x1ed602['getAttribute'](_0x40c04d)-0x1:0x0,_0x6663c0=this['_getSuggestionCoords'](_0x53ddb8),_0x34ae79=_0x6663c0[_0x425da6],_0x198a11=_0x6663c0[_0x5c699f];_0x34ae79<=_0x36480c[_0x1086c3]&&_0x36480c[_0x1086c3]+_0x1a2014<=_0x198a11&&(_0x53ddb8['addRange'](_0x330ada),_0x58e449=!0x0);}return _0x58e449;};_0x3e8e72['model']['document']['registerPostFixer'](_0x444006=>{let _0x5bf1a1=!0x1;for(const _0x3192ea of _0x3e8e72['model']['document']['differ']['getChanges']())if('insert'==_0x3192ea['type']){if('tableRow'==_0x3192ea['name']){for(const _0x2b6642 of _0x3192ea['position']['nodeAfter']['getChildren']())_0x5bf1a1=_0x5bf1a1||_0x36a835(_0x2b6642,_0x444006);}else'tableCell'==_0x3192ea['name']&&(_0x5bf1a1=_0x5bf1a1||_0x36a835(_0x3192ea['position']['nodeAfter'],_0x444006));}return _0x5bf1a1;});}['_getSuggestionCoords'](_0x2720af){return this['_getCoordsForCells'](_0x2720af['getRanges']()['map'](_0x415c51=>_0x415c51['start']['nodeAfter']));}}function Ne(_0x549a2f){return Array['from'](new Set(_0x549a2f)['values']());}class _t extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x4f7c5f=this['editor'],_0x5843bb=_0x4f7c5f['model']['document']['selection'],_0x3de2e0=_0x4f7c5f['locale'];if(!_0x4f7c5f['plugins']['has']('TableEditing'))return;const _0x179a39=_0x4f7c5f['plugins']['get']('TrackChangesEditing'),_0x2c7687=_0x4f7c5f['plugins']['get']('TableUtils'),_0x235e76=_0x4f7c5f['plugins']['get'](At);_0x235e76['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x179a39['enableCommand']('mergeTableCells',()=>{const _0x40dc3e=_0x2c7687['getSelectionAffectedTableCells'](_0x4f7c5f['model']['document']['selection']);_0x4f7c5f['model']['change'](()=>{_0x179a39['markMultiRangeBlockFormat'](_0x40dc3e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f7c5f['commands']['get']('mergeTableCells')['on']('execute',(_0x102e27,_0x4c474c)=>{_0x4f7c5f['commands']['get']('trackChanges')['value']&&(_0x4c474c['length']>0x0&&_0x4c474c[_0x4c474c['length']-0x1]&&_0x4c474c[_0x4c474c['length']-0x1]['forceDefaultExecution']||_0x179a39['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x102e27['stop']());},{'priority':'highest'});for(const _0x4e777e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x590e92=_0x4f7c5f['commands']['get'](_0x4e777e);_0x179a39['enableCommand'](_0x4e777e,()=>{const _0x22edd6=_0x4f7c5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13a1e5=>_0x13a1e5['is']('element','tableCell')),_0x1f9529=_0x590e92['value'];_0x4f7c5f['model']['change'](()=>{_0x179a39['markMultiRangeBlockFormat']([_0x22edd6,_0x1f9529],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5366c2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x26fe14=_0x4f7c5f['commands']['get'](_0x5366c2);_0x179a39['enableCommand'](_0x5366c2,()=>{const _0x53acc6=_0x2c7687['getSelectionAffectedTableCells'](_0x4f7c5f['model']['document']['selection'])[0x0],_0x2c24a4=_0x53acc6['findAncestor']('table'),{column:_0x303665,row:_0x215b14}=_0x2c7687['getCellLocation'](_0x53acc6);let _0xb07462=[];if('horizontally'==_0x26fe14['direction']){const _0x2ed02b=_0x2c7687['createTableWalker'](_0x2c24a4,{'startRow':_0x215b14,'endRow':_0x215b14,'includeAllSlots':!0x0});_0xb07462=Array['from'](_0x2ed02b)['map'](_0x5398e5=>_0x5398e5['cell']);}else{const _0x22d5c8=_0x2c7687['createTableWalker'](_0x2c24a4,{'column':_0x303665,'includeAllSlots':!0x0});_0xb07462=Array['from'](_0x22d5c8)['map'](_0x10ff66=>_0x10ff66['cell']);}_0x4f7c5f['model']['change'](_0x18b7b0=>{_0x179a39['markBlockFormat'](_0x18b7b0['createRangeOn'](_0x53acc6),{'commandName':_0x5366c2,'commandParams':[]},_0xb07462,_0x5366c2);});});}_0x179a39['descriptionFactory']['registerDescriptionCallback'](_0x1c65e2=>{if('formatBlock'!=_0x1c65e2['type']&&'formatInline'!=_0x1c65e2['type'])return;const {data:_0x3a8b1f}=_0x1c65e2;return _0x3a8b1f&&'mergeTableCells'==_0x3a8b1f['commandName']?{'type':'format','content':o(_0x3de2e0,'*Merge\x20cells*')}:void 0x0;}),_0x179a39['descriptionFactory']['registerDescriptionCallback'](_0x546fd6=>{if('formatBlock'!=_0x546fd6['type']&&'formatInline'!=_0x546fd6['type'])return;const {data:_0x341e53}=_0x546fd6;return _0x341e53?'splitTableCellVertically'==_0x341e53['commandName']?{'type':'format','content':o(_0x3de2e0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x341e53['commandName']?{'type':'format','content':o(_0x3de2e0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x53110b=_0x235e76['_acceptFormatSuggestionCallbackFactory']();for(const _0x5d0655 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d0655,'accept',_0x53110b);for(const _0xdc2d4e of['splitTableCellVertically','splitTableCellHorizontally'])_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdc2d4e,'accept',_0x53110b);_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7925fb=>{_0x4f7c5f['model']['change'](_0x3caf43=>{const _0x2a4b3d=Array['from'](_0x5843bb['getRanges']())['map'](_0x4d3fcf=>_0x217d71['fromRange'](_0x4d3fcf));_0x3caf43['setSelection'](_0x7925fb),_0x4f7c5f['commands']['get']('mergeTableCells')['refresh'](),_0x4f7c5f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ee677=_0x2a4b3d['filter'](_0x2c0b32=>'$graveyard'!=_0x2c0b32['root']['rootName']);_0x4ee677['length']>0x0&&_0x3caf43['setSelection'](_0x4ee677);for(const _0x273532 of _0x2a4b3d)_0x273532['detach']();});});for(const _0x50917b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbd24b4=_0x4f7c5f['commands']['get'](_0x50917b);_0xbd24b4['on']('set:isEnabled',(_0x49eed5,_0x181d54,_0x250779)=>{if(_0x250779){const _0x3397e1=_0x4f7c5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x44302e=>_0x44302e['is']('element','tableCell'));this['_areMergableCells'](_0xbd24b4['value'],_0x3397e1)||(_0x49eed5['return']=!0x1,_0x49eed5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1d867d=this['editor']['commands']['get']('mergeTableCells'),_0x47b420=this['editor']['plugins']['get']('TableUtils');if(!_0x1d867d['isEnabled'])return!0x1;const _0x1e019f=_0x47b420['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3194ea of _0x1e019f)for(const _0x1062e5 of _0x1e019f)if(_0x3194ea!=_0x1062e5&&!this['_areMergableCells'](_0x3194ea,_0x1062e5))return!0x1;return!0x0;}['_areMergableCells'](_0x36ee85,_0x2f33df){const _0xa3a5a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x514176=this['editor']['model']['createRangeOn'](_0x36ee85),_0x1ce2b4=this['editor']['model']['createRangeOn'](_0x2f33df),_0x5c6cd2=new Set(),_0x284c05=new Set();for(const _0x375fef of _0xa3a5a3['getSuggestions']())if(('insertion'==_0x375fef['type']||'deletion'==_0x375fef['type']||'mergeTableCells'==_0x375fef['subType'])&&_0x375fef['isInContent']){for(const _0x4179dc of _0x375fef['getRanges']())_0x4179dc['containsRange'](_0x514176,!0x0)&&_0x5c6cd2['add'](_0x375fef['type']+':'+_0x375fef['author']['id']),_0x4179dc['containsRange'](_0x1ce2b4,!0x0)&&_0x284c05['add'](_0x375fef['type']+':'+_0x375fef['author']['id']);}if(_0x5c6cd2['size']!=_0x284c05['size'])return!0x1;for(const _0x302d58 of _0x5c6cd2)if(!_0x284c05['has'](_0x302d58))return!0x1;return!0x0;}}class Ct extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x1b7b98=this['editor'];if(!_0x1b7b98['plugins']['has']('TableEditing'))return;const _0x5c3588=_0x1b7b98['locale'],_0x8543d=_0x1b7b98['plugins']['get']('TrackChangesEditing');_0x8543d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8543d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8543d['registerBlockAttribute']('headingRows'),_0x8543d['registerBlockAttribute']('headingColumns'),_0x8543d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5c3588,'FORMAT_HEADER_ROW')),_0x8543d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5c3588,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30f482=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24a3cd=this['editor']['plugins']['get']('TableUtils'),_0x41c49a=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x3d00ed({showActiveMarker:_0x36ad7d=!0x0,setDataAttribute:_0x5a5159=!0x0}={}){return(_0x5afd23,_0x4d51a2,_0xe01c1d)=>{const {type:_0x4c2896,id:_0x4125a1}=_0x30f482['_splitMarkerName'](_0x4d51a2['markerName']),_0x5ba9e5=_0x30f482['getSuggestion'](_0x4125a1),_0x3e12bb=_0x5ba9e5['data'];if('formatBlock'!=_0x5ba9e5['type']||!_0x3e12bb||'setTableColumnHeader'!=_0x3e12bb['commandName'])return;if(_0x4d51a2['item'])return void _0x5afd23['stop']();if(!_0xe01c1d['consumable']['consume'](_0x4d51a2['markerRange'],_0x5afd23['name']))return;const _0xd949d4=_0x4d51a2['markerRange']['start']['nodeAfter'],_0x2e589b=_0x4d51a2['markerRange']['end']['nodeBefore'],_0x123bdc=_0xd949d4['parent']['parent'],{column:_0x3071d5}=_0x24a3cd['getCellLocation'](_0xd949d4),{column:_0x143a61}=_0x24a3cd['getCellLocation'](_0x2e589b);for(let _0x36bf33=_0x3071d5;_0x36bf33<=_0x143a61;_0x36bf33++){const _0x4271f8=_0x24a3cd['createTableWalker'](_0x123bdc,{'column':_0x36bf33,'includeAllSlots':!0x1});for(const _0x52e3c7 of _0x4271f8){const _0x2ca216=_0x52e3c7['cell'],_0x2947de=_0xe01c1d['mapper']['toViewElement'](_0x2ca216);_0xe01c1d['writer']['addClass']('ck-suggestion-marker-'+_0x4c2896,_0x2947de),_0x5a5159&&_0xe01c1d['writer']['setAttribute']('data-suggestion',_0x4125a1,_0x2947de),_0xe01c1d['mapper']['bindElementToMarker'](_0x2947de,_0x4d51a2['markerName']),_0x36ad7d&&(_0x30f482['activeMarkers']['includes'](_0x4d51a2['markerName'])?_0xe01c1d['writer']['addClass']('ck-suggestion-marker--active',_0x2947de):_0xe01c1d['writer']['removeClass']('ck-suggestion-marker--active',_0x2947de));}}};}_0x30f482['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x41c49a),_0x30f482['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x41c49a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d00ed(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f4ced,_0xe57634,_0x36b119)=>{_0x36b119['options']['showSuggestionHighlights']&&_0x3d00ed({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f4ced,_0xe57634,_0x36b119);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x413c75,_0x516ae1,_0x31d0fb)=>{const {type:_0x32b89d,id:_0x2737bd}=_0x30f482['_splitMarkerName'](_0x516ae1['markerName']),_0xcb89b3=_0x30f482['getSuggestion'](_0x2737bd),_0x4dcda2=_0xcb89b3['data'];if('formatBlock'!=_0xcb89b3['type']||!_0x4dcda2||'setTableColumnHeader'!=_0x4dcda2['commandName'])return;const _0x4ba9f8=_0x31d0fb['mapper']['markerNameToElements'](_0x516ae1['markerName']);if(_0x4ba9f8){for(const _0x1f4c1e of _0x4ba9f8)_0x31d0fb['writer']['removeClass']('ck-suggestion-marker-'+_0x32b89d,_0x1f4c1e),_0x31d0fb['writer']['removeClass']('ck-suggestion-marker--active',_0x1f4c1e),_0x31d0fb['writer']['removeAttribute']('data-suggestion',_0x1f4c1e),_0x31d0fb['mapper']['unbindElementFromMarkerName'](_0x1f4c1e,_0x516ae1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe77ccc=this['editor'],_0x93c9d3=_0xe77ccc['locale'];function _0x5338e5(_0x382e63){return{'type':'format','content':o(_0x93c9d3,'*Format:*\x20%0',_0x382e63)};}_0xe77ccc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251ae7=>{if('formatBlock'!=_0x251ae7['type'])return;const {data:_0x226f24}=_0x251ae7;if(_0x226f24){if('setTableRowHeader'==_0x226f24['commandName']){const _0x4b1f86=_0x226f24['commandParams'][0x0]['forceValue'];return _0x5338e5(o(_0x93c9d3,_0x4b1f86?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x226f24['commandName']){const _0x5baeb9=_0x226f24['commandParams'][0x0]['forceValue'];return _0x5338e5(o(_0x93c9d3,_0x5baeb9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xfd4522{['afterInit'](){const _0x27f941=this['editor'],_0x2b4366=_0x27f941['locale'],_0x49b143=_0x27f941['plugins']['get']('TrackChangesEditing');function _0x3a8d6b(_0xccbe2){return{'type':'format','content':''+o(_0x2b4366,'*Set\x20table\x20type:*\x20%0',_0xccbe2)};}_0x27f941['plugins']['has']('TableLayout')&&(_0x49b143['enableCommand']('insertTableLayout'),_0x49b143['enableDefaultAttributesIntegration']('tableType'),_0x49b143['registerBlockAttribute']('tableType'),_0x49b143['descriptionFactory']['registerElementLabel'](_0x35fb1f=>_0x35fb1f['is']('element','table')&&'layout'===_0x35fb1f['getAttribute']('tableType'),_0x165b72=>o(_0x2b4366,'ELEMENT_LAYOUT_TABLE',_0x165b72)),_0x49b143['descriptionFactory']['registerDescriptionCallback'](_0x3461e1=>{const {data:_0x453695}=_0x3461e1;if(_0x453695&&'tableType'==_0x453695['key'])switch(_0x453695['newValue']){case'layout':return _0x3a8d6b(o(_0x2b4366,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3a8d6b(o(_0x2b4366,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x26de5f=>[_0x26de5f,null]));class Nt extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x3e59a9=this['editor'];if(!_0x3e59a9['plugins']['has']('TableClipboard'))return;const _0x4c3cf0=_0x3e59a9['plugins']['get']('TrackChangesEditing'),_0x676550=_0x3e59a9['plugins']['get']('TableUtils'),_0x38824b=_0x3e59a9['plugins']['get'](At),_0x35c71f=_0x3e59a9['plugins']['get']('TableClipboard'),_0x1566f=_0x3e59a9['plugins']['get']('TableSelection'),_0x16ecd2=_0x3e59a9['plugins']['get'](_0x3dd587);_0x38824b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3e59a9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3e59a9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ac59f=null,_0x1e5fc4=!0x1;_0x16ecd2['on']('contentInsertion',(_0x1e55ab,_0x3becc6)=>{_0x1e5fc4='paste'===_0x3becc6['method'];}),_0x3e59a9['model']['on']('insertContent',(_0x1e8f8b,_0x12d603)=>{if(!_0x1e5fc4&&null===_0x1566f['getSelectedTableCells']())return;const [_0x2f20d4,_0x421d98]=_0x12d603,_0x442cd0=_0x12d603[_0x12d603['length']-0x1];_0x442cd0&&_0x442cd0['forceDefaultExecution']||_0x4c3cf0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c3b13,_0x13d715,_0x52d40b,_0x58d823,_0x56a98b){if(_0x13d715&&!_0x13d715['is']('documentSelection'))return!0x1;const _0x539099=_0x56a98b['getTableIfOnlyTableInContent'](_0x4c3b13,_0x52d40b);if(!_0x539099||!Ue(_0x539099,void 0x0,_0x58d823))return!0x1;const _0x1d364b=_0x58d823['getSelectionAffectedTableCells'](_0x52d40b['document']['selection']);if(!_0x1d364b['length'])return!0x1;const _0x5dc262=_0x1d364b[0x0]['findAncestor']('table'),_0x3c3dfa=_0x58d823['getRowIndexes'](_0x1d364b),_0x19e7d8=_0x58d823['getColumnIndexes'](_0x1d364b),_0xc9b548={'startRow':_0x3c3dfa['first'],'endRow':_0x3c3dfa['last'],'startColumn':_0x19e7d8['first'],'endColumn':_0x19e7d8['last']};return 0x1==_0x1d364b['length']&&(_0xc9b548['endRow']+=_0x58d823['getRows'](_0x539099)-0x1,_0xc9b548['endColumn']+=_0x58d823['getColumns'](_0x539099)-0x1),Ue(_0x5dc262,_0xc9b548,_0x58d823);}(_0x2f20d4,_0x421d98,_0x3e59a9['model'],_0x676550,_0x35c71f)&&(_0x1e8f8b['stop'](),_0x2ac59f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e59a9['model']['change'](()=>{_0x3e59a9['model']['insertContent'](_0x12d603[0x0],_0x12d603[0x1],_0x12d603[0x2],{'forceDefaultExecution':!0x0});const _0x297998=_0x110ca2(),{rowInsertionRanges:_0x16a7c7,columnInsertionRanges:_0x5365ee,insertionRanges:_0x5b1ab2,deletionRanges:_0x40a98b,cells:_0x260635}=_0x2ac59f;_0x16a7c7['length']&&_0x4c3cf0['markMultiRangeInsertion'](_0x16a7c7,'tablePasteRow',{'tablePasteChainId':_0x297998}),_0x5365ee['length']&&_0x4c3cf0['markMultiRangeInsertion'](_0x5365ee,'tablePasteColumn',{'tablePasteChainId':_0x297998}),_0x5b1ab2['length']&&(_0x4c3cf0['markMultiRangeInsertion'](_0x5b1ab2,'tablePaste',{'tablePasteChainId':_0x297998,'skipNestingCheck':!0x0}),_0x5b1ab2['forEach'](_0x22bcb7=>_0x22bcb7['detach']?.())),_0x40a98b['length']&&(_0x4c3cf0['markMultiRangeDeletion'](_0x40a98b,'tablePaste',{'tablePasteChainId':_0x297998,'skipNestingCheck':!0x0}),_0x40a98b['forEach'](_0x26d0ab=>_0x26d0ab['detach']?.()));const _0x24abbb=_0x4c3cf0['markMultiRangeBlockFormat'](_0x260635['map'](({element:_0x1025ad})=>_0x1025ad),{'formatGroupId':_0x110ca2()},[],'tablePasteCell',{'tablePasteChainId':_0x297998});if(_0x24abbb){const _0x12bc47=_0x24abbb['getMarkers'](),_0x2280e=[];for(const {element:_0x280916,attributes:_0x362dd2}of _0x260635){if(!_0x362dd2)continue;const _0x58d989=_0x3e59a9['model']['createRangeOn'](_0x280916),_0x108422=_0x12bc47['find'](_0x4056d8=>_0x4056d8['getRange']()['isEqual'](_0x58d989));_0x108422&&_0x2280e['push']([_0x108422['name'],_0x362dd2]);}_0x2280e['length']&&_0x24abbb['setAttribute']('markerAttributes',Object['fromEntries'](_0x2280e));}_0x2ac59f=null;}));},{'priority':_0x533dca['high']+0xa}),_0x16ecd2['on']('contentInsertion',()=>{_0x1e5fc4=!0x1;},{'priority':'lowest'}),_0x3e59a9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x29f96b,_0x3d5924)=>{const [_0x45dd1f,_0x1c64f6,,_0x55d9ff]=_0x3d5924;if(!_0x2ac59f)return;_0x29f96b['stop']();const _0x372148=_0x45dd1f['cell'],_0x301cf2=_0x1c64f6,_0x57b874=Oe(_0x372148),_0x2bc012=Oe(_0x301cf2);_0x29f96b['return']=_0x372148;let _0x16f0c7=null,_0x2ca549=null;if(_0x2bc012||_0x57b874){if(_0x57b874&&!_0x2bc012){_0x55d9ff['remove'](_0x372148['getChild'](0x0));for(const _0x19e49a of Array['from'](_0x301cf2['getChildren']()))_0x55d9ff['insert'](_0x19e49a,_0x372148,'end');const _0x170063=_0x2ac59f['rowInsertionIndexes']['includes'](_0x45dd1f['row']),_0x3c7e2a=_0x2ac59f['columnInsertionIndexes']['includes'](_0x45dd1f['column']);_0x170063||_0x3c7e2a||(_0x16f0c7=_0x217d71['fromRange'](_0x55d9ff['createRangeIn'](_0x372148)));}else _0x2bc012&&!_0x57b874&&(_0x2ca549=_0x55d9ff['createRangeIn'](_0x372148));}else{const _0x470bf2=_0x55d9ff['createElement']('tableCellSuggestion'),_0x259490=_0x55d9ff['createElement']('tableCellSuggestion');_0x55d9ff['wrap'](_0x55d9ff['createRangeIn'](_0x372148),_0x259490),_0x55d9ff['insert'](_0x470bf2,_0x372148,0x0);for(const _0x13f8b8 of Array['from'](_0x301cf2['getChildren']()))_0x55d9ff['insert'](_0x13f8b8,_0x470bf2,'end');_0x16f0c7=_0x217d71['fromRange'](_0x55d9ff['createRangeOn'](_0x470bf2)),_0x2ca549=_0x217d71['fromRange'](_0x55d9ff['createRangeOn'](_0x259490));}const _0x384d9d=Array['from'](_0x301cf2['getAttributes']())['filter'](([_0x5a5b19])=>Be['includes'](_0x5a5b19));_0x2ac59f['cells']['push']({'element':_0x372148,'attributes':_0x384d9d['length']?Object['fromEntries'](_0x384d9d):null}),_0x16f0c7&&_0x2ac59f['insertionRanges']['push'](_0x16f0c7),_0x2ca549&&_0x2ac59f['deletionRanges']['push'](_0x2ca549);},{'priority':'high'}),_0x676550['on']('insertColumns',(_0x35c11b,_0x421b00)=>{const [_0x232f17,_0xe1c57={}]=_0x421b00;if(!_0x2ac59f)return;const _0x33ff68=_0xe1c57['at']||0x0,_0x88ca63=_0xe1c57['columns']||0x1;_0x2ac59f['columnInsertionIndexes']=new Array(_0x88ca63)['fill'](_0x33ff68)['map']((_0x2ae9bb,_0x1377f3)=>_0x2ae9bb+_0x1377f3);for(const {cell:_0x2b9298}of _0x676550['createTableWalker'](_0x232f17,{'startColumn':_0x33ff68,'endColumn':_0x33ff68+_0x88ca63-0x1}))_0x2ac59f['columnInsertionRanges']['push'](_0x3e59a9['model']['createRangeOn'](_0x2b9298));},{'priority':'low'}),_0x676550['on']('insertRows',(_0x49767e,_0x545488)=>{const [_0x26cccf,_0x21cb24={}]=_0x545488;if(!_0x2ac59f)return;const _0x8ddde3=_0x21cb24['at']||0x0,_0x71f998=_0x21cb24['rows']||0x1;_0x2ac59f['rowInsertionIndexes']=new Array(_0x71f998)['fill'](_0x8ddde3)['map']((_0xf5fdc0,_0x13be90)=>_0xf5fdc0+_0x13be90);for(const {cell:_0x43f46b}of _0x676550['createTableWalker'](_0x26cccf,{'startRow':_0x8ddde3,'endRow':_0x8ddde3+_0x71f998-0x1}))_0x2ac59f['rowInsertionRanges']['push'](_0x3e59a9['model']['createRangeOn'](_0x43f46b));},{'priority':'low'}),_0x4c3cf0['descriptionFactory']['registerDescriptionCallback'](_0x1a7134=>{if(_0x1a7134['subType']&&_0x1a7134['subType']['startsWith']('tablePaste'))return _0x1a7134['previous']?{}:{'type':'insertion','content':o(_0x3e59a9['locale'],'*Replace\x20table\x20cells*')};});const _0x448336=()=>!0x1;for(const _0x3a34f8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion',_0x3a34f8,'join',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('deletion',_0x3a34f8,'join',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a34f8,'join',_0x448336);_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49c899,_0x33d0e9,_0x413c7a)=>{const _0x4e5df0=_0x49c899['map'](_0x592fbb=>_0x592fbb['getContainedElement']())['filter'](_0x37d9a7=>_0x37d9a7),_0x3a8461=new Map(_0x4e5df0['map'](_0x5eaf38=>[_0x5eaf38,null]));if(_0x2ac59f){for(const {element:_0x1aa204,attributes:_0x343b07}of _0x2ac59f['cells'])_0x343b07&&_0x3a8461['set'](_0x1aa204,_0x343b07);}else{if(_0x413c7a&&_0x413c7a['markerAttributes'])for(const [_0x1fca96,_0x1a08d5]of Object['entries'](_0x413c7a['markerAttributes'])){const _0x19d55d=_0x3e59a9['model']['markers']['get'](_0x1fca96),_0x12f4ab=_0x19d55d?_0x19d55d['getRange']()['getContainedElement']():null;_0x12f4ab&&_0x3a8461['set'](_0x12f4ab,_0x1a08d5);}}_0x3e59a9['model']['change'](_0x1c5158=>{for(const [_0x22bda7,_0x4b5fe1]of _0x3a8461)_0x1c5158['setAttributes']({...xe,..._0x4b5fe1},_0x22bda7);});});const _0x5c82b0=(_0x48f817,_0x37c9e3)=>{_0x4c3cf0['_suggestionFactory']['registerCustomCallback'](_0x48f817,'tablePaste',_0x37c9e3,(_0x1b8b49,_0xb2db4d,_0x51ee5f)=>{_0x3e59a9['model']['change'](_0x3ff765=>{const _0x28851a=[];for(const _0x363328 of _0x1b8b49){const _0x53dbd3=_0x363328['start']['nodeAfter'];_0x53dbd3['is']('element','tableCellSuggestion')&&_0x28851a['push'](_0x53dbd3);}_0x4c3cf0['_suggestionFactory']['getSuggestionCallback'](_0x48f817,null,_0x37c9e3)(_0x1b8b49,_0xb2db4d,_0x51ee5f);for(const _0x3da037 of _0x28851a)'$graveyard'!=_0x3da037['root']['rootName']&&_0x3ff765['unwrap'](_0x3da037);});});};_0x5c82b0('insertion','accept'),_0x5c82b0('insertion','discard'),_0x5c82b0('deletion','accept'),_0x5c82b0('deletion','discard'),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x558149=>{const _0x12531b=_0x558149['map'](_0x556cf2=>_0x556cf2['getContainedElement']()),_0x46b6d6=_0x12531b[0x0]['findAncestor']('table'),{minRow:_0x5d849f,maxRow:_0x4322fa}=_0x38824b['_getCoordsForCells'](_0x12531b);_0x676550['removeRows'](_0x46b6d6,{'at':_0x5d849f,'rows':_0x4322fa-_0x5d849f+0x1});}),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x403aa5=>{const _0x111f77=_0x403aa5['map'](_0x46540c=>_0x46540c['getContainedElement']()),_0x2336af=_0x111f77[0x0]['findAncestor']('table'),{minColumn:_0x525a21,maxColumn:_0x5cb79d}=_0x38824b['_getCoordsForCells'](_0x111f77);_0x676550['removeColumns'](_0x2336af,{'at':_0x525a21,'columns':_0x5cb79d-_0x525a21+0x1});});const _0x11541f=(_0x418991,_0x6e6ae1)=>{if(!_0x6e6ae1['subType']||!_0x6e6ae1['subType']['startsWith']('tablePaste'))return;const _0x143698=_0x6e6ae1['attributes']['tablePasteChainId'],_0x42aba5=_0x4c3cf0['getSuggestions']()['filter'](_0xa59864=>_0xa59864['isInContent']&&_0xa59864['attributes']&&_0xa59864['attributes']['tablePasteChainId']==_0x143698);_0x42aba5['length']&&_0x6e6ae1['getAllAdjacentSuggestions']()['length']!=_0x42aba5['length']&&_0x42aba5['reduce']((_0x539bb1,_0x179454)=>(_0x539bb1['next']=_0x179454,_0x179454['previous']=_0x539bb1,_0x179454));};function _0x115b46(_0x4b57bf,_0x457a89=!0x0){const {id:_0x91e262,authorId:_0x43d165}=_0x4c3cf0['_splitMarkerName'](_0x4b57bf['markerName']),_0x6321da=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4476d5=_0x4c3cf0['activeMarkers']['includes'](_0x4b57bf['markerName']);return _0x4476d5&&_0x6321da['push']('ck-suggestion-marker--active'),{'classes':_0x6321da,'attributes':{'data-suggestion':_0x91e262,'data-author-id':_0x43d165},'priority':_0x4476d5&&_0x457a89?0xbc2:0xbb8};}_0x4c3cf0['on']('suggestionLoaded',_0x11541f,{'priority':'high'}),_0x4c3cf0['on']('suggestionUnloaded',_0x11541f,{'priority':'high'}),_0x3e59a9['model']['document']['registerPostFixer'](()=>{let _0x56dd1b=!0x1;const _0x1601fb=Array['from'](_0x3e59a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7aea1,data:_0x2fa005}of _0x1601fb){const {group:_0xee2c1e,type:_0x485760,id:_0x1dedae}=_0x4c3cf0['_splitMarkerName'](_0x7aea1);if('suggestion'!=_0xee2c1e||'deletion'!=_0x485760||_0x2fa005['oldRange'])continue;if(!_0x4c3cf0['hasSuggestion'](_0x1dedae))continue;const _0x1f63e9=_0x4c3cf0['getSuggestion'](_0x1dedae)['getRanges'](),_0xe0c651=_0x3e59a9['plugins']['get']('Users')['me'];for(const _0x4201fa of _0x4c3cf0['getSuggestions']()){if(!_0x4201fa['isInContent']||_0x4201fa['author']!=_0xe0c651)continue;if('formatBlock'!=_0x4201fa['type']||'tablePasteCell'!=_0x4201fa['subType'])continue;if(_0x4201fa['getRanges']()['every'](_0xe00abc=>_0x1f63e9['some'](_0x137f2a=>_0x137f2a['containsRange'](_0xe00abc,!0x0)))){for(const _0x4986c6 of _0x4201fa['getAllAdjacentSuggestions']())_0x4986c6['isInContent']&&(_0x4986c6['discard'](),_0x56dd1b=!0x0);}}}return _0x56dd1b;}),_0x3e59a9['model']['document']['registerPostFixer'](_0x4f0ca6=>{const _0xc50e1=_0x3e59a9['commands']['get']('redo');if(!_0xc50e1||!_0xc50e1['_createdBatches']['has'](_0x4f0ca6['batch']))return!0x1;let _0x3c6c03=!0x1;const _0x277394=_0x3e59a9['plugins']['get']('Users')['me'],_0x2e7176=_0x3e59a9['model']['document']['differ']['getChanges'](),_0x2cf0c3=Array['from'](_0x3e59a9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4bef40,data:_0x462b1f})=>{const {group:_0x4494d5,subType:_0x1452e1,authorId:_0x2f7ea4}=_0x4c3cf0['_splitMarkerName'](_0x4bef40);return'suggestion'==_0x4494d5&&'tablePaste'==_0x1452e1&&_0x2f7ea4==_0x277394['id']&&!_0x462b1f['oldRange'];});for(const _0x25d902 of _0x2e7176){if('insert'!=_0x25d902['type']||'tableCellSuggestion'!=_0x25d902['name']||0x1!=_0x25d902['length'])continue;const _0x488efd=_0x4f0ca6['createRange'](_0x25d902['position'],_0x25d902['position']['getShiftedBy'](0x1));if(!_0x2cf0c3['find'](({data:_0x33e614})=>_0x33e614['newRange']['isEqual'](_0x488efd))){for(const {name:_0x26b326,data:_0x300973}of _0x2cf0c3)if(_0x488efd['containsRange'](_0x300973['newRange'])){_0x4f0ca6['updateMarker'](_0x26b326,{'range':_0x488efd}),_0x3c6c03=!0x0;break;}}}return _0x3c6c03;}),_0x3e59a9['model']['document']['registerPostFixer'](_0x57a6fd=>{let _0x1a6479=!0x1;const _0x2bd04f=_0x3e59a9['plugins']['get']('Users')['me'],_0x5f5688=_0x4c3cf0['getSuggestions']()['filter'](_0x578072=>_0x578072['isInContent']&&_0x578072['author']==_0x2bd04f),_0x16c782=new Set(),_0x10feff=new Set();for(const _0x269077 of _0x5f5688)if('tablePaste'==_0x269077['subType'])for(const _0x22c3fd of _0x269077['getMarkers']()){const _0x47c2d9=_0x22c3fd['getRange']()['getContainedElement']();if(_0x47c2d9){if(_0x47c2d9['is']('element','tableCellSuggestion')&&Oe(_0x47c2d9)){_0x269077['removeMarker'](_0x22c3fd['name']),_0x16c782['add'](_0x47c2d9),_0x1a6479=!0x0;const _0x2bcfbe=_0x47c2d9['nextSibling'],_0x590d27=_0x47c2d9['previousSibling'],_0xe6abce=_0x2bcfbe&&_0x2bcfbe['is']('element','tableCellSuggestion'),_0x25d1b4=_0x590d27&&_0x590d27['is']('element','tableCellSuggestion');_0xe6abce&&!_0x16c782['has'](_0x2bcfbe)&&_0x10feff['add'](_0x2bcfbe),_0x25d1b4&&!_0x16c782['has'](_0x590d27)&&_0x10feff['add'](_0x590d27);}else _0x47c2d9['is']('element','paragraph')&&_0x47c2d9['isEmpty']&&(_0x269077['removeMarker'](_0x22c3fd['name']),_0x1a6479=!0x0);}}else{if('tablePasteCell'==_0x269077['subType']){if(!_0x269077['attributes']||!_0x269077['attributes']['tablePasteChainId'])continue;const _0x10e7eb=_0x269077['attributes']['markerAttributes'];if(_0x10e7eb&&Object['keys'](_0x10e7eb)['length'])continue;const _0x51bf4e=_0x269077['attributes']['tablePasteChainId'];let _0x1f7e5d=!0x0,_0x2dec9b=!0x0;for(const _0x3c520d of _0x5f5688)if(_0x3c520d['subType']&&_0x3c520d['subType']['startsWith']('tablePaste')){if(!_0x3c520d['attributes']['tablePasteChainId']){_0x2dec9b=!0x1;break;}if(_0x3c520d['id']!=_0x269077['id']&&_0x3c520d['attributes']['tablePasteChainId']==_0x51bf4e){_0x1f7e5d=!0x1;break;}}_0x2dec9b&&_0x1f7e5d&&(_0x269077['removeMarkers'](),_0x1a6479=!0x0);}}for(const _0x171448 of _0x16c782)_0x57a6fd['remove'](_0x171448);for(const _0x2b2a88 of _0x10feff)_0x57a6fd['unwrap'](_0x2b2a88);return _0x1a6479;}),_0x3e59a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3628f8=>_0x115b46(_0x3628f8),'converterPriority':'high'}),_0x3e59a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e3be6,_0x31aed1)=>_0x31aed1['options']['showSuggestionHighlights']?_0x115b46(_0x5e3be6,!0x1):null,'converterPriority':'high'});const _0x363747=_0x3e59a9['editing']['view'];this['listenTo'](_0x363747['document'],'clipboardOutput',(_0x1e07c8,_0x148ccb)=>{const _0x503bd8=[];for(const _0x21987a of _0x363747['createRangeIn'](_0x148ccb['content'])['getItems']())_0x21987a['is']('element','suggestion-td')&&_0x503bd8['push'](_0x21987a);_0x363747['change'](_0x27d01a=>{for(const _0x1a7eaa of _0x503bd8)_0x27d01a['move'](_0x27d01a['createRangeIn'](_0x1a7eaa),_0x27d01a['createPositionBefore'](_0x1a7eaa)),_0x27d01a['remove'](_0x1a7eaa);});});}}function Oe(_0x40bd51){if(_0x40bd51['isEmpty'])return!0x0;const _0x4cb8da=_0x40bd51['getChild'](0x0);return _0x4cb8da['is']('element','paragraph')&&_0x4cb8da['isEmpty'];}function Ue(_0x30d725,_0x4ab0a4={},_0x5b6fbe){for(const {isAnchor:_0x39b1b2,cellHeight:_0x481f9e,cellWidth:_0x4c918c}of _0x5b6fbe['createTableWalker'](_0x30d725,{'includeAllSlots':!0x0,..._0x4ab0a4}))if(!_0x39b1b2||0x1!=_0x481f9e||0x1!=_0x4c918c)return!0x1;return!0x0;}class Dt extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2b96a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b96a2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2b96a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2b96a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b96a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2b96a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2b96a2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xf80747,_0x429315){const _0x4b2d56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a414c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e2f0f=_0x429315['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3911f9=_0x2a414c['getColumnGroupElement'](_0x3e2f0f);let _0x15c6c2=_0x3911f9?_0x2a414c['getTableColumnsWidths'](_0x3911f9):null,_0x3bb549=_0x3e2f0f['getAttribute']('tableWidth')||null;const _0x527188=_0x429315['tableWidth']||_0x3bb549,_0x4ee313=_0x429315['columnWidths']||_0x15c6c2,_0x395c66=this['editor']['plugins']['get']('Users')['me'];for(const _0x289e74 of _0x4b2d56['getSuggestions']()){const _0x527595=_0x289e74['getContainedElement']();if('resizeTable'===_0x289e74['subType']&&_0x527595===_0x3e2f0f){_0x289e74['author']!==_0x395c66&&_0x289e74['discard']();const _0x24d616=_0x289e74['data']['commandParams'];_0x3bb549=_0x24d616[0x0]['tableWidth'],_0x15c6c2=_0x24d616[0x0]['columnWidths'];break;}}_0xf80747({'table':_0x3e2f0f,'tableWidth':_0x527188,'columnWidths':_0x4ee313}),_0x4b2d56['markBlockFormat'](_0x3e2f0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bb549,'columnWidths':_0x15c6c2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x25a437){if('formatBlock'!=_0x25a437['type']&&'formatInline'!=_0x25a437['type'])return;const {data:_0x277656}=_0x25a437;if(_0x277656&&'resizeTable'===_0x277656['formatGroupId']){const _0x484f8f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x484f8f)};}}}class $t extends _0xfd4522{['afterInit'](){const _0x34531f=this['editor'];_0x34531f['plugins']['has']('Template')&&_0x34531f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xfd4522{['afterInit'](){const _0x336fa0=this['editor'];if(!_0x336fa0['commands']['get']('insertTableOfContents'))return;_0x336fa0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x19bb59=_0x336fa0['plugins']['get']('TrackChangesEditing'),_0x559e23=_0x336fa0['locale'];_0x19bb59['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12e8d9=>o(_0x559e23,'ELEMENT_TABLE_OF_CONTENTS',_0x12e8d9));}}class Bt extends _0xfd4522{['afterInit'](){const _0x4cc075=this['editor'];if(!_0x4cc075['plugins']['has']('Title'))return;const _0x4eb1c6=_0x4cc075['plugins']['get']('TrackChangesEditing');_0x4eb1c6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4cc075['locale'],'ELEMENT_TITLE')),_0x4cc075['model']['document']['registerPostFixer'](_0x4108cb=>{let _0x4e1b76=!0x1;const _0x5bfb=Array['from'](_0x4cc075['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e8b52,data:_0x276a59}of _0x5bfb){const {group:_0x3dbc21}=_0x4eb1c6['_splitMarkerName'](_0x4e8b52);if('suggestion'!==_0x3dbc21||!_0x276a59['newRange'])continue;const _0x371b98=_0x276a59['newRange'],_0x29c361=_0x371b98['end']['nodeBefore'];if(!_0x29c361||!_0x29c361['is']('element','title-content'))continue;if(!_0x371b98['start']['isTouching'](_0x371b98['end']))continue;const _0x436c69=_0x4cc075['model']['schema']['getNearestSelectionRange'](_0x371b98['end'],'forward');if(_0x436c69&&_0x436c69['isCollapsed']){const _0x41f847=_0x4108cb['createRange'](_0x371b98['start'],_0x436c69['start']);_0x41f847['isEqual'](_0x371b98)||(_0x4108cb['updateMarker'](_0x4e8b52,{'range':_0x41f847}),_0x4e1b76=!0x0);}_0x4e1b76||(_0x4108cb['removeMarker'](_0x4e8b52),_0x4e1b76=!0x0);}return _0x4e1b76;});}}class Tt extends _0xfd4522{['afterInit'](){const _0x4fba91=this['editor'],_0xb6f916=_0x4fba91['plugins']['get']('TrackChangesEditing');_0x4fba91['plugins']['has']('Uploadcare')&&(_0xb6f916['enableCommand']('uploadcare'),_0x4fba91['plugins']['has']('UploadcareImageEdit')&&(_0xb6f916['enableCommand']('uploadcareImageEdit'),_0xb6f916['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xb6f916['registerBlockAttribute']('uploadcareImageId'),_0xb6f916['descriptionFactory']['registerDescriptionCallback'](_0x4ad485=>{if('attribute'!=_0x4ad485['type'])return;const {data:_0x174f3e}=_0x4ad485;return _0x174f3e&&'uploadcareImageId'==_0x174f3e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xfd4522{['afterInit'](){const _0x5d5d78=this['editor'],_0x38d472=_0x5d5d78['plugins']['get']('TrackChangesEditing');_0x5d5d78['plugins']['has']('UndoEditing')&&(_0x38d472['enableCommand']('undo'),_0x38d472['enableCommand']('redo'));}}class Ot extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x26046a=this['editor'];if(!_0x26046a['plugins']['has']('TableCaptionEditing'))return;_0x26046a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xfd4522{['tableProperties'];['tableCellProperties'];constructor(_0x4d0824){super(_0x4d0824),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 _0x5e35a5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x355b5a of this['tableProperties'])_0x5e35a5['enableCommand'](_0x355b5a,(_0x5e8968,_0x3f0fff)=>{const _0x9059d8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x355b5a,[_0x9059d8],this['tableProperties'],'tableProperties',_0x5e8968,_0x3f0fff);});_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e35a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x32f8b4,_0x10a9c2)=>this['handleDiscardAction'](this['tableProperties'],_0x32f8b4,_0x10a9c2)),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f79bc of this['tableCellProperties'])_0x5e35a5['enableCommand'](_0x1f79bc,(_0x1e4a96,_0x29bda2)=>{const _0x514213=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f79bc,_0x514213,this['tableCellProperties'],'tableCellProperties',_0x1e4a96,_0x29bda2);});_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e35a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc94a91,_0x24f24c)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc94a91,_0x24f24c)),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e35a5['descriptionFactory']['registerDescriptionCallback'](_0xef7e5c=>this['handleSuggestionDescription'](_0xef7e5c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x311d80,_0x2ee88f,_0x1a0049,_0x35a389,_0x15bb0c,_0x3caa2a){const _0x9e80c5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3caa2a['batch'],()=>{for(const _0x461283 of _0x2ee88f){if(this['_getSuggestion'](_0x461283,_0x35a389))_0x15bb0c(_0x3caa2a);else{const _0x2042a3={};for(const _0x4446f3 of _0x1a0049){const _0x1e2cca=_0x461283['getAttribute'](_0x4446f3);void 0x0!==_0x1e2cca&&(_0x2042a3[_0x4446f3]=_0x1e2cca);}_0x15bb0c(_0x3caa2a),_0x9e80c5['markBlockFormat'](_0x461283,{'commandParams':[_0x2042a3]},[],_0x35a389);}}});}['handleDiscardAction'](_0x42c0c0,_0x24ff9b,_0x29c0db){const _0x53c10f=_0x24ff9b[0x0]['start']['nodeAfter'],_0x5e4d8f=_0x29c0db['commandParams'][0x0];this['editor']['model']['change'](_0x40a8c6=>{for(const _0x23111d of _0x42c0c0)void 0x0!==_0x5e4d8f[_0x23111d]?_0x40a8c6['setAttribute'](_0x23111d,_0x5e4d8f[_0x23111d],_0x53c10f):_0x40a8c6['removeAttribute'](_0x23111d,_0x53c10f);});}['handleSuggestionDescription'](_0x5cd901){if(_0x5cd901['data'])switch(_0x5cd901['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'](_0x1b2434,_0x35eedc){const _0xae96f0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x77d50a of _0xae96f0['getSuggestions']({'skipNotAttached':!0x0})){const _0xbcf187=_0x77d50a['getContainedElement']();if(_0x77d50a['subType']===_0x35eedc&&_0xbcf187===_0x1b2434)return _0x77d50a;}return null;}['_registerTablePropertiesAttributes'](){const _0x1b0b59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a1d31=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4cb173 of _0x3a1d31){const _0x170589=_0x4cb173['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1b0b59['registerBlockAttribute'](_0x4cb173),_0x1b0b59['descriptionFactory']['registerAttributeLabel'](_0x4cb173,o(this['editor']['locale'],'FORMAT_'+_0x170589));}}}class Rt extends _0xfd4522{['afterInit'](){const _0x3cea4e=this['editor'];if(!_0x3cea4e['plugins']['has']('LineHeight'))return;const _0x41e1cb=_0x3cea4e['plugins']['get']('TrackChangesEditing'),_0x3bfddd=_0x3cea4e['locale'];_0x41e1cb['enableDefaultAttributesIntegration']('lineHeight'),_0x41e1cb['registerBlockAttribute']('lineHeight'),_0x41e1cb['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3bfddd,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xfd4522{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x41af33,_0x19387b,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x398874){super(_0x398874),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4958ec,_0x3c0471,_0x43a0e0,_0x2c74d2)=>{this['_model']['change'](()=>{for(const _0x281d92 of[..._0x2c74d2,..._0x43a0e0])this['_model']['markers']['has'](_0x281d92)&&_0x398874['editing']['reconvertMarker'](_0x281d92);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x398874['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(),_0x398874['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x398874['config']['get']('trackChanges.trackFormatChanges'),_0x398874['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x398874['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x398874,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2aa042=this['editor'],_0x389462=(_0x3143ae,_0x41a692)=>{if('attribute'!=_0x3143ae)return'ck-suggestion-marker-'+_0x3143ae;const _0xc34306=_0x41a692['split']('|')[0x0];return this['_isBlockAttribute'](_0xc34306)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2aa042['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x33f0f9=>{const {id:_0x536c13,authorId:_0x2b5f66,type:_0x320796,subType:_0x511a2d}=this['_splitMarkerName'](_0x33f0f9['markerName']),_0x834dcf=['ck-suggestion-marker',_0x389462(_0x320796,_0x511a2d)];let _0x20b923=0xbb8;return this['activeMarkers']['includes'](_0x33f0f9['markerName'])&&(_0x834dcf['push']('ck-suggestion-marker--active'),_0x20b923=0xbc2),'deletion'==_0x320796&&(_0x20b923+=0x5),{'classes':_0x834dcf,'attributes':{'data-suggestion':_0x536c13,'data-author-id':_0x2b5f66},'priority':_0x20b923};}}),_0x2aa042['conversion']['for']('dataDowncast')['add'](_0x4fdca6=>{_0x4fdca6['on']('addMarker:suggestion',(_0x35215f,_0x4bd657,_0x436e75)=>{if(!_0x436e75['options']['showSuggestionHighlights'])return;const _0x32e2e8=_0x4bd657['item'];if(!_0x32e2e8)return;const _0x82bf7f=_0x436e75['mapper']['toViewElement'](_0x32e2e8);_0x2aa042['model']['schema']['isObject'](_0x32e2e8)&&_0x82bf7f&&!_0x82bf7f['getCustomProperty']('widget')&&_0x82bf7f['is']('containerElement')&&_0x20ea6f(_0x82bf7f,_0x436e75['writer']);},{'priority':'high'});}),_0x2aa042['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4c2e76,_0x2fa861)=>{if(!_0x2fa861['options']['showSuggestionHighlights'])return null;const {id:_0x137545,authorId:_0x2dd3fd,type:_0x38b434,subType:_0x203034}=this['_splitMarkerName'](_0x4c2e76['markerName']);return{'classes':['ck-suggestion-marker',_0x389462(_0x38b434,_0x203034)],'priority':0xbb8,'attributes':{'data-suggestion':_0x137545,'data-author-id':_0x2dd3fd}};}});const _0x14dcd6=({showActiveMarkers:_0x126665=!0x0,isAttributeSuggestion:_0x271ad5=!0x1}={})=>(_0x3ccd65,_0x30cefb,_0x48822e)=>{if(!_0x30cefb['item'])return;const {id:_0x393e4e,authorId:_0x5bb0b6}=this['_splitMarkerName'](_0x30cefb['markerName']);if(_0x271ad5){const _0x13f2a5=this['_suggestions']['get'](_0x393e4e),_0xf68ed2=this['_getAttributeKey'](_0x13f2a5);if(!this['_isBlockAttribute'](_0xf68ed2))return;}if(_0x30cefb['item']['is']('selection'))return void _0x48822e['consumable']['consume'](_0x30cefb['item'],_0x3ccd65['name']);const _0x384c0e=_0x48822e['mapper']['toViewElement'](_0x30cefb['item']);if(_0x30cefb['item']['is']('element')&&_0x2aa042['model']['schema']['isBlock'](_0x30cefb['item'])&&!_0x384c0e['getCustomProperty']('addHighlight')){_0x48822e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x384c0e),_0x48822e['writer']['setAttribute']('data-suggestion',_0x393e4e,_0x384c0e),_0x48822e['writer']['setAttribute']('data-author-id',_0x5bb0b6,_0x384c0e),_0x48822e['mapper']['bindElementToMarker'](_0x384c0e,_0x30cefb['markerName']),_0x126665&&(this['activeMarkers']['includes'](_0x30cefb['markerName'])?_0x48822e['writer']['addClass']('ck-suggestion-marker--active',_0x384c0e):_0x48822e['writer']['removeClass']('ck-suggestion-marker--active',_0x384c0e));for(const _0x4e6583 of _0x2aa042['model']['createRangeIn'](_0x30cefb['item'])['getItems']())_0x48822e['consumable']['consume'](_0x4e6583,_0x3ccd65['name']);_0x48822e['consumable']['consume'](_0x30cefb['item'],_0x3ccd65['name']);}};_0x2aa042['conversion']['for']('dataDowncast')['add'](_0xc43b38=>{_0xc43b38['on']('addMarker:suggestion:formatBlock',(_0x48e568,_0x5af26f,_0x4aeb37)=>{_0x4aeb37['options']['showSuggestionHighlights']&&_0x14dcd6({'showActiveMarkers':!0x1})(_0x48e568,_0x5af26f,_0x4aeb37);},{'priority':'highest'});}),_0x2aa042['conversion']['for']('dataDowncast')['add'](_0x94a59d=>{_0x94a59d['on']('addMarker:suggestion:attribute',(_0x58bc75,_0x4dcaca,_0x51354c)=>{_0x51354c['options']['showSuggestionHighlights']&&_0x14dcd6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x58bc75,_0x4dcaca,_0x51354c);},{'priority':'highest'});}),_0x2aa042['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1700a7,_0x28162e)=>{if(_0x28162e['options']['showSuggestionHighlights']){const {id:_0x1ac74e,authorId:_0x1ccf20}=this['_splitMarkerName'](_0x1700a7);return _0x1700a7['includes'](':split')||_0x1700a7['includes'](':merge')?{'group':'suggestion','name':_0x1700a7['substr'](0xb),'attributes':{'data-suggestion':_0x1ac74e,'data-author-id':_0x1ccf20}}:null;}return{'group':'suggestion','name':_0x1700a7['substr'](0xb)};}}),_0x2aa042['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1972e3,{writer:_0x40de9f})=>{let _0x141350='suggestion:'+_0x1972e3['getAttribute']('suggestion-type')+':'+_0x1972e3['getAttribute']('id');return _0x1972e3['getAttribute']('marker-count')&&(_0x141350+=':'+_0x1972e3['getAttribute']('marker-count')),_0x40de9f['createElement']('$marker',{'data-name':_0x141350});}}),_0x2aa042['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x26246c=>{_0x26246c['on']('addMarker:suggestion:formatBlock',_0x14dcd6(),{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x1e5a71=>{_0x1e5a71['on']('addMarker:suggestion:attribute',_0x14dcd6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x3138ad=>{_0x3138ad['on']('removeMarker:suggestion:formatBlock',(_0x42885d,_0x4e9ded,_0x5a1c58)=>{const _0x44aa01=_0x5a1c58['mapper']['markerNameToElements'](_0x4e9ded['markerName']);if(_0x44aa01){for(const _0x1a95a0 of _0x44aa01)_0x1a95a0['getCustomProperty']('addHighlight')||(_0x5a1c58['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a95a0),_0x5a1c58['writer']['removeAttribute']('data-suggestion',_0x1a95a0),_0x5a1c58['writer']['removeAttribute']('data-author-id',_0x1a95a0),_0x5a1c58['mapper']['unbindElementFromMarkerName'](_0x1a95a0,_0x4e9ded['markerName']));}},{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x4ec6e2=>{_0x4ec6e2['on']('removeMarker:suggestion:attribute',(_0x13f0a3,_0x446ef8,_0x971d7c)=>{const _0x1c7881=_0x971d7c['mapper']['markerNameToElements'](_0x446ef8['markerName']);if(!_0x1c7881)return;const {id:_0x5eeb01}=this['_splitMarkerName'](_0x446ef8['markerName']),_0x530feb=this['_suggestions']['get'](_0x5eeb01),_0x54eebd=this['_getAttributeKey'](_0x530feb);if(this['_isBlockAttribute'](_0x54eebd)){for(const _0x2f880b of _0x1c7881)_0x2f880b['getCustomProperty']('addHighlight')||(_0x971d7c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f880b),_0x971d7c['writer']['removeAttribute']('data-suggestion',_0x2f880b),_0x971d7c['writer']['removeAttribute']('data-author-id',_0x2f880b),_0x971d7c['mapper']['unbindElementFromMarkerName'](_0x2f880b,_0x446ef8['markerName']));}},{'priority':'high'});}),_0x2aa042['model']['document']['registerPostFixer'](_0x53cf5a=>{let _0x42fb64=!0x1;const _0x520ac8=Array['from'](_0x2aa042['model']['document']['differ']['getChangedMarkers']()),_0x5926de=new Set();for(const {name:_0x9b14c2,data:_0x52280a}of _0x520ac8){const {group:_0x4adc5b,type:_0x1e6450,subType:_0x4dbba3,id:_0x24af82}=this['_splitMarkerName'](_0x9b14c2);if('suggestion'!==_0x4adc5b)continue;const _0x412525=_0x4dbba3?'suggestion:'+_0x1e6450+':'+_0x4dbba3+':'+_0x24af82:'suggestion:'+_0x1e6450+':'+_0x24af82,_0x3ecca9=_0x2aa042['model']['markers']['getMarkersGroup'](_0x412525),_0x4e0dbc=_0x2aa042['model']['markers']['get'](_0x9b14c2),_0x49f8ce=this['_suggestions']['get'](_0x24af82);if(null!=_0x52280a['newRange']){'formatInline'==_0x1e6450&&(_0x42fb64=_0x42fb64||Gt(_0x52280a['newRange'],_0x9b14c2,_0x53cf5a,_0x2aa042['model']['schema']));const _0x381f1d='attribute'==_0x1e6450&&this['_isBlockAttribute'](_0x4dbba3['split']('|')[0x0]),_0x2c01d0='attribute'==_0x1e6450&&this['_isInlineAttribute'](_0x4dbba3['split']('|')[0x0]);if(_0x52280a['newRange']['isCollapsed']||'$graveyard'==_0x52280a['newRange']['root']['rootName']||'formatBlock'==_0x1e6450&&!Jt(_0x52280a['newRange'])||_0x381f1d&&!Jt(_0x52280a['newRange'])||_0x2c01d0&&Kt(_0x52280a['newRange'])||'deletion'==_0x1e6450&&Kt(_0x52280a['newRange'])||_0x4e0dbc&&Ht(_0x4e0dbc,_0x3ecca9))_0x53cf5a['removeMarker'](_0x9b14c2),_0x42fb64=!0x0;else{if(!_0x49f8ce||!_0x49f8ce['isInContent'])continue;if(_0x52280a['newRange']&&_0x52280a['oldRange']&&_0x52280a['newRange']['isEqual'](_0x52280a['oldRange']))continue;_0x5926de['add'](_0x49f8ce);}}}return _0x5926de['size']>0x0&&(_0x42fb64=!!this['_joinWithAdjacentSuggestions'](_0x5926de)||_0x42fb64),_0x42fb64;}),_0x2aa042['model']['document']['registerPostFixer'](_0x2bd434=>{let _0x5d80fd=!0x1;for(const _0x190d1e of _0x2aa042['model']['document']['differ']['getChanges']())if('insert'==_0x190d1e['type'])for(const _0x32f3b3 of this['_suggestions']['values']()){if(_0x32f3b3['isMultiRange']||!_0x32f3b3['isInContent'])continue;const _0x2dd90c='formatBlock'==_0x32f3b3['type'],_0xdf3121=this['_getAttributeKey'](_0x32f3b3),_0x45ebd3=_0xdf3121&&this['_isBlockAttribute'](_0xdf3121);if(!_0x2dd90c&&!_0x45ebd3)continue;const _0x191374=_0x32f3b3['getFirstRange']();if(_0x191374['start']['parent']!=_0x191374['end']['parent']&&!_0x191374['end']['isAtEnd']){const _0x1fc764=_0x2aa042['model']['createPositionAt'](_0x191374['start']['nodeAfter'],'end'),_0x4b47eb=_0x2aa042['model']['createRange'](_0x191374['start'],_0x1fc764);_0x2bd434['updateMarker'](_0x32f3b3['getFirstMarker'](),{'range':_0x4b47eb}),_0x5d80fd=!0x0;}}return _0x5d80fd;}),_0x2aa042['model']['document']['registerPostFixer'](_0x5cb87c=>this['_processAttributeChanges'](_0x5cb87c)),_0x2aa042['model']['document']['registerPostFixer'](_0x39834c=>!_0x39834c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39834c)),_0x2aa042['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2aa042['model']['document']['on']('change:data',(_0x100772,_0x54532e)=>{if(!_0x54532e['isLocal']||_0x54532e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ae324=_0x2aa042['model']['document']['differ']['getChanges']();if(0x0==_0x3ae324['length'])return;const _0x33dbdc=[],_0x474742=_0x3ae324['filter'](_0xe220ca=>'attribute'==_0xe220ca['type']),_0x4f438c=_0x3ae324['filter'](_0x3a181=>'insert'==_0x3a181['type']&&'$text'!=_0x3a181['name']);for(const _0x454382 of _0x474742)this['_isRegisteredAttribute'](_0x454382['attributeKey'])&&_0x33dbdc['push']({'key':_0x454382['attributeKey'],'newValue':_0x454382['attributeNewValue'],'oldValue':_0x454382['attributeOldValue'],'range':qt(_0x454382['range'],_0x2aa042['model'])});for(const _0x45fcf5 of _0x4f438c){if('rename'!=_0x45fcf5['action']&&'refresh'!=_0x45fcf5['action'])continue;const _0x18a467=zt(_0x45fcf5['position']['nodeAfter'],_0x2aa042['model']),_0x4b2da9=_0x45fcf5['before'];'rename'==_0x45fcf5['action']&&_0x33dbdc['push']({'key':m,'newValue':_0x45fcf5['name'],'oldValue':_0x4b2da9['name'],'range':_0x18a467});for(const [_0x25d003,_0x5edb43]of _0x4b2da9['attributes']){if(!this['_isRegisteredAttribute'](_0x25d003))continue;const _0x192259=_0x45fcf5['attributes']['get'](_0x25d003);_0x5edb43!==_0x192259&&_0x33dbdc['push']({'key':_0x25d003,'newValue':_0x192259,'oldValue':_0x5edb43,'range':_0x18a467});}for(const [_0x48498c,_0x58de60]of _0x45fcf5['attributes'])this['_isRegisteredAttribute'](_0x48498c)&&(_0x4b2da9['attributes']['has'](_0x48498c)||_0x33dbdc['push']({'key':_0x48498c,'newValue':_0x58de60,'oldValue':null,'range':_0x18a467}));}0x0!=_0x33dbdc['length']&&_0x2aa042['model']['enqueueChange'](_0x54532e,_0x1f5360=>{const _0x4699e6=_0x110ca2();for(const {range:_0x596b5b,key:_0x5a0f04,oldValue:_0xcb6984,newValue:_0x50e83e}of _0x33dbdc)this['markAttributeChange'](_0x596b5b,_0x5a0f04,_0xcb6984,_0x50e83e,{'groupId':_0x4699e6});this['_reduceExistingSuggestions'](_0x1f5360,_0x33dbdc);});},{'priority':'lowest'}),_0x2aa042['model']['markers']['on']('update:suggestion',(_0x2d4288,_0x3915bc,_0x15cbfd)=>{if(null==_0x15cbfd){const {id:_0x2cb415}=this['_splitMarkerName'](_0x3915bc['name']),_0x2746bd=this['_suggestions']['get'](_0x2cb415);_0x2746bd&&_0x2746bd['addMarkerName'](_0x3915bc['name']);}}),_0x2aa042['model']['document']['on']('change:data',()=>{const _0x3ba66d=Array['from'](_0x2aa042['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4e5c23=>'suggestion'===this['_splitMarkerName'](_0x4e5c23['name'])['group']);if(0x0===_0x3ba66d['length'])return;_0x3ba66d['sort']((_0x302071,_0x32e649)=>{const _0x21063b=_0x302071['data']['oldRange'],_0x136c01=_0x32e649['data']['oldRange'];return null===_0x21063b&&null===_0x136c01?0x0:null===_0x21063b&&null!==_0x136c01?-0x1:null!==_0x21063b&&null===_0x136c01?0x1:_0x21063b['start']['isBefore'](_0x136c01['start'])?-0x1:0x1;});const _0x17e211=new Set(),_0x1189aa=new Set();for(const {name:_0x38cd80,data:_0x2d18e4}of _0x3ba66d){const {id:_0x2d5e93}=this['_splitMarkerName'](_0x38cd80);if(null===_0x2d18e4['oldRange']){const _0x4e5d2a=this['_handleNewSuggestionMarker'](_0x38cd80);_0x1189aa['add'](_0x4e5d2a);}else{const _0x4db940=this['_suggestions']['get'](_0x2d5e93);null!==_0x2d18e4['newRange']||_0x4db940['isInContent']?(_0x17e211['add'](_0x4db940['head']),_0x1189aa['add'](_0x4db940)):this['_removeSuggestion'](_0x4db940);}}_0x1189aa['size']>0x0&&this['_refreshSuggestionsChain'](_0x1189aa);for(const _0x14c258 of _0x17e211)this['fire']('suggestionChanged',_0x14c258);}),_0x2aa042['model']['on']('applyOperation',(_0x233894,_0x312b72)=>{const _0x274db5=_0x312b72[0x0];if(!this['_suggestions']['size'])return;if(!_0x274db5['isDocumentOperation'])return;if(_0x274db5['batch']['isUndo']||!_0x274db5['batch']['isLocal'])return;let _0x52915a,_0x571fb4;switch(_0x274db5['type']){case'insert':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['position']),_0x571fb4=_0x52915a['getShiftedBy'](_0x274db5['howMany']);break;case'split':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['splitPosition']),_0x571fb4=_0x2aa042['model']['createPositionAt'](_0x274db5['moveTargetPosition']);break;case'move':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['targetPosition']),_0x571fb4=_0x52915a['getShiftedBy'](_0x274db5['howMany']);break;default:return;}const _0x10c074=_0x2aa042['model']['createRange'](_0x52915a,_0x571fb4);_0x2aa042['model']['change'](()=>{for(const {suggestion:_0x5d648b,meta:_0x53c1ed}of this['_findSuggestions'](_0x10c074)){if(_0x5d648b['isMultiRange'])continue;if('formatInline'==_0x5d648b['type'])continue;const _0x4c0465=this['_getAttributeKey'](_0x5d648b);if(_0x4c0465&&this['_isBlockAttribute'](_0x4c0465)&&'split'!=_0x274db5['type'])continue;const _0x52c606=_0x5d648b['data']&&_0x5d648b['data']['multipleBlocks'];('formatBlock'!=_0x5d648b['type']||'split'==_0x274db5['type']&&!_0x52c606)&&(_0x53c1ed['containsRangeInObject']||'insertion'==_0x5d648b['type']&&_0x53c1ed['isOwn']||_0x5d648b['getFirstRange']()['containsRange'](_0x10c074)&&this['_breakSuggestionMarker'](_0x5d648b,_0x52915a,_0x571fb4));}});},{'priority':'lowest'}),_0x2aa042['model']['on']('deleteContent',(_0x2876f3,_0x4653aa)=>{const _0x16b93b=_0x4653aa[0x0],_0x451cdc=_0x4653aa[0x1];if(_0x451cdc&&_0x451cdc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x16b93b['isCollapsed'])return;const _0x5c90e5=_0x2aa042['model']['schema'],{start:_0x1b93e6,end:_0x2275a5}=_0x16b93b['getFirstRange'](),_0x21d7eb=_0x1b93e6['nodeAfter']&&_0x5c90e5['isLimit'](_0x1b93e6['nodeAfter'])?null:_0x5c90e5['getNearestSelectionRange'](_0x1b93e6,'forward'),_0x28a79b=_0x2275a5['nodeBefore']&&_0x5c90e5['isLimit'](_0x2275a5['nodeBefore'])?null:_0x5c90e5['getNearestSelectionRange'](_0x2275a5,'backward'),_0x48be86=_0x2aa042['model']['createRange'](_0x21d7eb?_0x21d7eb['start']:_0x1b93e6,_0x28a79b?_0x28a79b['end']:_0x2275a5);_0x2aa042['model']['change'](_0x56d34f=>{this['markDeletion'](_0x48be86);const _0x5e6eb9=_0x2aa042['model']['schema']['getNearestSelectionRange'](_0x48be86['start']);_0x16b93b['is']('documentSelection')?_0x56d34f['setSelection'](_0x5e6eb9):_0x16b93b['setTo'](_0x5e6eb9);}),_0x2876f3['stop']();},{'priority':_0x533dca['normal']+0xa}),_0x2aa042['model']['on']('insertContent',(_0x218485,_0x4831aa)=>{const _0x32fd37=_0x4831aa[_0x4831aa['length']-0x1];_0x32fd37&&_0x32fd37['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2aa042['model']['change'](()=>{let _0x393e30=_0x2aa042['model']['insertContent'](_0x4831aa[0x0],_0x4831aa[0x1],_0x4831aa[0x2],{'forceDefaultExecution':!0x0});if(!_0x393e30)return;_0x218485['return']=_0x393e30['clone']();const _0x356654=_0x393e30['end']['nodeBefore'],_0x49e3c7=_0x2aa042['model']['schema'];_0x356654&&_0x49e3c7['isBlock'](_0x356654)&&!_0x49e3c7['isObject'](_0x356654)&&(_0x393e30=_0x2aa042['model']['createRange'](_0x393e30['start'],_0x2aa042['model']['createPositionAt'](_0x356654,'end'))),this['markInsertion'](_0x393e30);}),_0x218485['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c1478=new D(_0x2aa042,this['_suggestions']);_0x2aa042['commands']['add']('acceptSuggestion',_0x4c1478),this['enableCommand']('acceptSuggestion');const _0x1bb857=new $(_0x2aa042,this['_suggestions']);_0x2aa042['commands']['add']('discardSuggestion',_0x1bb857),this['enableCommand']('discardSuggestion'),_0x2aa042['commands']['add']('acceptAllSuggestions',new M(_0x2aa042,_0x4c1478,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2aa042['commands']['add']('discardAllSuggestions',new M(_0x2aa042,_0x1bb857,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2aa042['commands']['add']('acceptSelectedSuggestions',new B(_0x2aa042,_0x4c1478,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2aa042['commands']['add']('discardSelectedSuggestions',new B(_0x2aa042,_0x1bb857,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x375b08=_0x2aa042['plugins']['get']('CommentsRepository');this['listenTo'](_0x375b08,'addComment',(_0x1fbd6d,{threadId:_0x2c3674})=>{const _0x56da43=this['_suggestions']['get'](_0x2c3674);_0x56da43&&_0x56da43['commentThread']&&0x1===_0x56da43['commentThread']['length']&&this['_updateSuggestionData'](_0x2c3674,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x375b08,'removeComment',(_0x19d664,{threadId:_0x136fd5})=>{const _0x54ca59=this['_suggestions']['get'](_0x136fd5);_0x54ca59&&_0x54ca59['commentThread']&&!_0x54ca59['commentThread']['length']&&this['_updateSuggestionData'](_0x136fd5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ed00d){const _0x117464=_0x5990df([0x69,0x71,0x43,0x49,0x6e,0x59,0x52,0x63,0x34,0x68,0x64,0x79,0x48,0x6f,0x6a,0x66,0x32,0x58,0x77,0x61,0x55,0x4c,0x72,0x76,0x4b,0x4d,0x4a,0x42,0x41,0x50,0x7a,0x67,0x6c,0x30,0x47,0x38,0x51,0x70,0x75,0x46,0x31,0x54,0x36,0x73,0x33,0x74,0x53,0x37,0x56,0x57,0x62,0x6d,0x4f,0x78,0x65,0x5a,0x39,0x45,0x44,0x35,0x4e,0x6b]),_0x327cd4=0x1d416b54,_0x3e5dfe=0x1d461b7c^_0x327cd4,_0xa5b1b3=window[_0x5990df([0x44,0x61,0x74,0x65])][_0x5990df([0x6e,0x6f,0x77])](),_0x507a5a=_0x4ed00d[_0x5990df([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x337740=new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52012e=>{_0x507a5a[_0x5990df([0x6f,0x6e,0x63,0x65])](_0x5990df([0x72,0x65,0x61,0x64,0x79]),_0x52012e);}),_0x12aba2={[_0x5990df([0x6b,0x74,0x79])]:_0x5990df([0x45,0x43]),[_0x5990df([0x75,0x73,0x65])]:_0x5990df([0x73,0x69,0x67]),[_0x5990df([0x63,0x72,0x76])]:_0x5990df([0x50,0x2d,0x32,0x35,0x36]),[_0x5990df([0x78])]:_0x5990df([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]),[_0x5990df([0x79])]:_0x5990df([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]),[_0x5990df([0x61,0x6c,0x67])]:_0x5990df([0x45,0x53,0x32,0x35,0x36])},_0x705aba=_0x507a5a[_0x5990df([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5990df([0x67,0x65,0x74])](_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ef1b4(){let _0x4c96d8,_0x10156c=null,_0x43e954=null;try{if(_0x705aba==_0x5990df([0x47,0x50,0x4c]))return _0x5990df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c96d8=_0x18ae4e(),!_0x4c96d8)return _0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c96d8[_0x5990df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43e954=_0x1e2475(_0x4c96d8[_0x5990df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c96d8[_0x5990df([0x6a,0x74,0x69])])),await _0x2ff198()?_0x4c7c76()?_0x192a3a()?_0x5990df([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fa157()?(_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5990df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10156c=_0x2c2e23(_0x5990df([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5990df([0x74,0x72,0x69,0x61,0x6c])&&(_0x10156c=_0x2c2e23(_0x5990df([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49aefa()):_0x5990df([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5990df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x192a3a(){const _0x295d3d=[_0x5990df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5990df([0x74,0x72,0x69,0x61,0x6c])][_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa5b1b3/0x3e8:0xe10*_0x3e5dfe;return _0x4c96d8[_0x5990df([0x65,0x78,0x70])]<_0x295d3d;}function _0x4c7c76(){const _0x356b6d=_0x4c96d8[_0x5990df([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x356b6d)return!0x1;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x2a])))return!0x0;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x54,0x43])))return!0x0;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x52,0x54,0x43]))){if(_0x381e67())return!0x0;if(_0x5a1a11()||_0x16403f())return!0x0;}return!0x1;}function _0x3fa157(){const _0x1a02e3=_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a02e3||0x0==_0x1a02e3[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e83db}=new URL(window[_0x5990df([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a02e3[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e83db))return!0x0;const _0x275a13=_0x4e83db[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e]));return _0x1a02e3[_0x5990df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15de72=>_0x15de72[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x2a])))[_0x5990df([0x6d,0x61,0x70])](_0x59cb8f=>_0x59cb8f[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e])))[_0x5990df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x921cb7=>_0x921cb7[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x275a13[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5990df([0x6d,0x61,0x70])](_0x462228=>Array(_0x275a13[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x462228[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5990df([0x66,0x69,0x6c,0x6c])](_0x462228[0x0]===_0x5990df([0x2a])?_0x5990df([0x2a]):'')[_0x5990df([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x462228))[_0x5990df([0x73,0x6f,0x6d,0x65])](_0x433180=>_0x275a13[_0x5990df([0x65,0x76,0x65,0x72,0x79])]((_0x2e9e05,_0x135b26)=>_0x433180[_0x135b26]===_0x2e9e05||_0x433180[_0x135b26]===_0x5990df([0x2a])));}function _0x49aefa(){return _0x10156c&&_0x43e954?new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6ade,_0x380dc1)=>{_0x10156c[_0x5990df([0x74,0x68,0x65,0x6e])](_0x5e6ade,_0x380dc1),_0x43e954[_0x5990df([0x74,0x68,0x65,0x6e])](_0x4b96cb=>{_0x4b96cb!=_0x5990df([0x56,0x61,0x6c,0x69,0x64])&&_0x5e6ade(_0x4b96cb);},_0x380dc1);}):_0x10156c||_0x43e954||_0x5990df([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e2475(_0x4e1352,_0xf933b5){return new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bc416=>{if(_0x2e9c80())return _0x2bc416(_0x5990df([0x56,0x61,0x6c,0x69,0x64]));_0x531b9b(),_0x507a5a[_0x5990df([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fd9fc=!0x1;const _0x1f2a21=_0x110ca2();function _0x516523(_0x166260){return!!_0x166260&&(typeof _0x166260===_0x5990df([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x166260===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x166260[_0x5990df([0x74,0x68,0x65,0x6e])]===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x166260[_0x5990df([0x63,0x61,0x74,0x63,0x68])]===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f23a7(_0x3de3cb){_0x5730a8(_0x3de3cb)[_0x5990df([0x74,0x68,0x65,0x6e])](_0x2428ce=>{if(!_0x2428ce||_0x2428ce[_0x5990df([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5990df([0x6f,0x6b]))return _0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9d994(_0x2a6672(_0x1f2a21+_0xf933b5))!=_0x2428ce[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5990df([0x56,0x61,0x6c,0x69,0x64]);})[_0x5990df([0x74,0x68,0x65,0x6e])](_0x3f889a=>(_0x6fcc91(),_0x3f889a),()=>{const _0x287113=_0x1843b9();return null==_0x287113?(_0x6fcc91(),_0x5990df([0x56,0x61,0x6c,0x69,0x64])):_0x5990df(_0xa5b1b3-_0x287113>(0x394def54^_0x327cd4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5990df([0x74,0x68,0x65,0x6e])](_0x2bc416)[_0x5990df([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b3291=0x1d7785d4^_0x327cd4;function _0x6fcc91(){const _0x127937=_0x5990df([0x6c,0x6c,0x63,0x74,0x2d])+_0x9d994(_0x2a6672(_0x4e1352)),_0x88a76f=_0x41eb0e(_0x9d994(window[_0x5990df([0x4d,0x61,0x74,0x68])][_0x5990df([0x63,0x65,0x69,0x6c])](_0xa5b1b3/_0x5b3291)));window[_0x5990df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5990df([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x127937,_0x88a76f);}function _0x1843b9(){const _0xc39e93=_0x5990df([0x6c,0x6c,0x63,0x74,0x2d])+_0x9d994(_0x2a6672(_0x4e1352)),_0x3ea760=window[_0x5990df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5990df([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc39e93);return _0x3ea760?window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41eb0e(_0x3ea760),0x10)*_0x5b3291:null;}function _0x5730a8(_0x5edcb2){return new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xecc135,_0x56f155)=>{_0x5edcb2[_0x5990df([0x74,0x68,0x65,0x6e])](_0xecc135,_0x56f155),window[_0x5990df([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56f155,0x1d40bf94^_0x327cd4);});}}_0x507a5a[_0x5990df([0x6f,0x6e])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3973b7,_0x28fa5b)=>{if(_0x28fa5b[0x0]!=_0x4e1352)return _0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28fa5b[0x1]={..._0x28fa5b[0x1],[_0x5990df([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f2a21};},{[_0x5990df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5990df([0x68,0x69,0x67,0x68])}),_0x507a5a[_0x5990df([0x6f,0x6e])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2eab35=>{_0x516523(_0x2eab35[_0x5990df([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fd9fc=!0x0,_0x2f23a7(_0x2eab35[_0x5990df([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5990df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5990df([0x6c,0x6f,0x77])}),_0x337740[_0x5990df([0x74,0x68,0x65,0x6e])](()=>{_0x4fd9fc||_0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e9c80(){return _0x507a5a[_0x5990df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5990df([0x76,0x69,0x65,0x77])][_0x5990df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5990df([0x61,0x75,0x74,0x6f]);}function _0x531b9b(){_0x507a5a[_0x5990df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5990df([0x76,0x69,0x65,0x77])][_0x5990df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5990df([0x61,0x75,0x74,0x6f]);}}function _0x2c2e23(_0x3b51df){const _0x44dd6a=[new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16badd=>setTimeout(_0x16badd,0x1d485598^_0x327cd4)),_0x337740[_0x5990df([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29fecc=>{let _0x49948a=0x0;_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x6f,0x6e])](_0x5990df([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x505c8d,_0x2fbfeb)=>{_0x2fbfeb[0x0][_0x5990df([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49948a++,_0x49948a==(0x1d416aac^_0x327cd4)&&(_0x29fecc(),_0x505c8d[_0x5990df([0x6f,0x66,0x66])]());});}))];return window[_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5990df([0x72,0x61,0x63,0x65])](_0x44dd6a)[_0x5990df([0x74,0x68,0x65,0x6e])](()=>_0x3b51df);}async function _0x7c6ad7(){await _0x337740,_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fec57,_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fec57,_0x507a5a[_0x5990df([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5990df([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x381e67(){return _0x7b3608(_0x5990df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5e812d(_0x5990df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5990df([0x73,0x74,0x61,0x74,0x65])]==_0x5990df([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a1a11(){return _0x7b3608(_0x5990df([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x16403f(){return _0x7b3608(_0x5990df([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9b01fc(_0x4cdcb6){const _0x18da73=_0x4d12b4();_0x507a5a[_0x18da73]=_0x5990df([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4cdcb6,_0x4cdcb6!=_0x5990df([0x56,0x61,0x6c,0x69,0x64])&&_0x7c6ad7();}function _0x4d12b4(){const _0x57988b=window[_0x5990df([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5990df([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5990df([0x6e,0x6f,0x77])]())[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5990df([0x2e]),'');let _0x204b7b=_0x5990df([0x69]);for(let _0x29f444=0x0;_0x29f444<_0x57988b[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29f444+=0x2){let _0x58fbad=window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57988b[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29f444,_0x29f444+0x2));_0x58fbad>=_0x117464[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58fbad-=_0x117464[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x204b7b+=_0x117464[_0x58fbad];}return _0x204b7b;}function _0x18ae4e(){const _0x1027cf=_0x705aba[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e]));if(0x3!=_0x1027cf[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe3c135(_0x1027cf[0x1]);function _0xe3c135(_0x2ea70f){const _0x2b6aae=_0x1edac2(_0x2ea70f);return _0x2b6aae&&_0x46150a()?_0x2b6aae:null;function _0x46150a(){const _0x8352c0=_0x2b6aae[_0x5990df([0x6a,0x74,0x69])],_0x3ee699=window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8352c0[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8352c0[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3349e7={..._0x2b6aae,[_0x5990df([0x6a,0x74,0x69])]:_0x8352c0[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8352c0[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3349e7[_0x5990df([0x76,0x63])],_0x2a6672(_0x3349e7)==_0x3ee699;}}}async function _0x2ff198(){let _0x45e68e=!0x0;try{const _0x2d2db7=_0x705aba[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e])),[_0x44c978,_0x1b36e2,_0x21971c]=_0x2d2db7;return _0x110979(_0x44c978),await _0x49c3e5(_0x44c978,_0x1b36e2,_0x21971c),_0x45e68e;}catch{return!0x1;}function _0x110979(_0x5b1c5a){const _0x245e24=_0x1edac2(_0x5b1c5a);_0x245e24&&_0x245e24[_0x5990df([0x61,0x6c,0x67])]==_0x5990df([0x45,0x53,0x32,0x35,0x36])||(_0x45e68e=!0x1);}async function _0x49c3e5(_0x1015b7,_0x5267c5,_0x4f6b51){const _0x231c7a=window[_0x5990df([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5990df([0x66,0x72,0x6f,0x6d])](_0x5a22a3(_0x4f6b51),_0xf90d00=>_0xf90d00[_0x5990df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31c159=new window[(_0x5990df([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5990df([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1015b7+_0x5990df([0x2e])+_0x5267c5),_0x48881c=window[_0x5990df([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5990df([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48881c)return;const _0x271afd=await _0x48881c[_0x5990df([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5990df([0x6a,0x77,0x6b]),_0x12aba2,{[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x45,0x43,0x44,0x53,0x41]),[_0x5990df([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5990df([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48881c[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x45,0x43,0x44,0x53,0x41]),[_0x5990df([0x68,0x61,0x73,0x68])]:{[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x271afd,_0x231c7a,_0x31c159)||(_0x45e68e=!0x1);}}function _0x1edac2(_0x4e785f){return _0x4e785f[_0x5990df([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5990df([0x65,0x79]))?JSON[_0x5990df([0x70,0x61,0x72,0x73,0x65])](_0x5a22a3(_0x4e785f)):null;}function _0x5a22a3(_0x4e27ce){return window[_0x5990df([0x61,0x74,0x6f,0x62])](_0x4e27ce[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5990df([0x2b]))[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5990df([0x2f])));}function _0x2a6672(_0x231c2a){let _0x24546d=0x1505;function _0x55dd35(_0x65b312){for(let _0x123e8d=0x0;_0x123e8d<_0x65b312[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123e8d++){const _0x285a36=_0x65b312[_0x5990df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x123e8d);_0x24546d=(_0x24546d<<0x5)+_0x24546d+_0x285a36,_0x24546d&=_0x24546d;}}function _0x594999(_0xbb9e45){Array[_0x5990df([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbb9e45)?_0xbb9e45[_0x5990df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x594999):_0xbb9e45&&typeof _0xbb9e45==_0x5990df([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5990df([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbb9e45)[_0x5990df([0x73,0x6f,0x72,0x74])]()[_0x5990df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x548695,_0x1a254e])=>{_0x55dd35(_0x548695),_0x594999(_0x1a254e);}):_0x55dd35(window[_0x5990df([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbb9e45));}return _0x594999(_0x231c2a),_0x24546d>>>0x0;}function _0x9d994(_0x3628b2){return _0x3628b2[_0x5990df([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5990df([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5990df([0x30]));}function _0x41eb0e(_0xaf7e96){return _0xaf7e96[_0x5990df([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5990df([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5990df([0x6a,0x6f,0x69,0x6e])]('');}function _0x7b3608(_0x59fe4c){return _0x507a5a[_0x5990df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5990df([0x68,0x61,0x73])](_0x59fe4c);}function _0x5e812d(_0x3853d5){return _0x507a5a[_0x5990df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5990df([0x67,0x65,0x74])](_0x3853d5);}function _0x3fec57(){}function _0x5990df(_0xe82f81){return _0xe82f81['map'](_0x14a2ee=>String['fromCharCode'](_0x14a2ee))['join']('');}_0x9b01fc(await _0x2ef1b4());}(this);}set['adapter'](_0x54398d){if(this['_adapter'])throw new _0x5d208c('track-changes-adapter-already-set',this);this['_adapter']=_0x54398d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe9ecde=!0x1,toJSON:_0x441df4=!0x1}={}){const _0x502b0d=[];for(const _0x4fcb45 of this['_suggestions']['values']())_0xe9ecde&&!_0x4fcb45['isInContent']||_0x502b0d['push'](_0x4fcb45);return _0x441df4?_0x502b0d['map'](_0xabc6d2=>_0xabc6d2['toJSON']()):_0x502b0d;}['getSuggestion'](_0x392693){const _0x4e0310=this['_suggestions']['get'](_0x392693);if(!_0x4e0310)throw new _0x5d208c('track-changes-suggestion-not-found',this);return _0x4e0310;}['hasSuggestion'](_0x2dc78d){return this['_suggestions']['has'](_0x2dc78d);}['addSuggestionData'](_0x3a9f3f){const {authorId:_0x4c8b05,id:_0x2b6d75,originalSuggestionId:_0xbc07cc,attributes:_0x53d0b0}=_0x3a9f3f,[_0x5af4f4,_0x49ddae]=_0x3a9f3f['type']['split'](':'),_0xa56ba1=this['_suggestions']['get'](_0x2b6d75)||this['_createSuggestion'](_0x5af4f4,_0x49ddae,_0x2b6d75,_0x4c8b05,_0x53d0b0,_0xbc07cc);if(this['_addThreadToSuggestion'](_0xa56ba1),this['_checkSuggestionCorrectness'](_0xa56ba1,_0x5af4f4,_0x49ddae||null,_0x4c8b05),_0xa56ba1['createdAt']=_0x3a9f3f['createdAt'],_0xa56ba1['_isDataLoaded']=!0x0,_0x53d0b0&&_0x53d0b0['@external']){const _0x17d267=_0x53d0b0['@external'],_0x5552f8=this['_getExternalAuthor'](_0x17d267['authorName']);_0xa56ba1['authoredAt']=_0x17d267['createdAt'],_0xa56ba1['author']=_0x5552f8,_0xa56ba1['isExternal']=!0x0;}else _0xa56ba1['authoredAt']=_0x3a9f3f['createdAt'];switch(_0x3a9f3f['data']&&(_0xa56ba1['data']=_0x3a9f3f['data']),_0x3a9f3f['attributes']&&(_0xa56ba1['attributes']=_0x3a9f3f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xa56ba1['_saved']=!0x0),this['_suggestionState']['get'](_0xa56ba1)){case'notReady':this['_suggestionState']['set'](_0xa56ba1,'dataReady');break;case'markerReady':_0xa56ba1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xa56ba1])),this['_refreshSuggestionsChain'](new Set([_0xa56ba1])),this['_suggestionState']['set'](_0xa56ba1,'ready'),this['fire']('suggestionLoaded',_0xa56ba1)):this['_suggestionState']['set'](_0xa56ba1,'removed');}return _0xa56ba1;}['acceptSuggestion'](_0xeceed4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x110661 of _0xeceed4['getAllAdjacentSuggestions']())_0x110661['accept']();});});}['discardSuggestion'](_0x6465fc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x175ec8 of _0x6465fc['getAllAdjacentSuggestions']())_0x175ec8['discard']();});});}['enableCommand'](_0x4513c4,_0x5510d6){const _0x2b152b=this['editor']['commands']['get'](_0x4513c4);if(!_0x2b152b)throw new _0x5d208c('track-changes-command-not-found',this,{'commandName':_0x4513c4});if(this['_enabledCommands']['has'](_0x2b152b))throw new _0x5d208c('track-changes-enable-command-twice',this,{'commandName':_0x4513c4});this['_enabledCommands']['add'](_0x2b152b),_0x5510d6&&_0x2b152b['on']('execute',(_0x165ad8,_0x35d0b9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x35d0b9['length']>0x0&&_0x35d0b9[_0x35d0b9['length']-0x1]&&_0x35d0b9[_0x35d0b9['length']-0x1]['forceDefaultExecution']?_0x35d0b9['pop']():(_0x165ad8['return']=_0x5510d6((..._0x5acec3)=>_0x2b152b['execute'](..._0x5acec3,{'forceDefaultExecution':!0x0}),..._0x35d0b9),_0x165ad8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x23fe44){let _0x4858a6,_0x408f67;const _0x4983df=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4858a6=_0x23fe44();}catch(_0x270362){_0x408f67=_0x270362;}return _0x4983df||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x408f67&&_0x5d208c['rethrowUnexpectedError'](_0x408f67,this),_0x4858a6;}['markInsertion'](_0x8f83a,_0x32b450=null,_0xc2507c={}){if(_0x8f83a['isCollapsed'])return null;const _0x59b570=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xc2507c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28df3a,meta:_0x2bf824}of this['_findSuggestions'](_0x8f83a,'insertion'))if(_0x2bf824['isOwn']){if(!_0x2bf824['isNextTo']){if(_0x2bf824['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x28df3a,_0xc2507c))continue;return _0x28df3a;}if(Xt(_0x28df3a,_0xc2507c))return _0x28df3a;this['_breakSuggestionMarker'](_0x28df3a,_0x8f83a['start'],_0x8f83a['end']);break;}if(_0x32b450==_0x28df3a['subType']&&Xt(_0x28df3a,_0xc2507c)){const _0x87553a=_0x28df3a['getFirstRange']();return _0x87553a['start']['isEqual'](_0x8f83a['end'])?this['_setSuggestionRange'](_0x28df3a,this['_model']['createRange'](_0x8f83a['start'],_0x87553a['end'])):this['_setSuggestionRange'](_0x28df3a,this['_model']['createRange'](_0x87553a['start'],_0x8f83a['end'])),_0x28df3a;}}const _0x67fff4=_0x110ca2(),_0x1adff4=_0x59b570['id'],_0x52ed23=_0x32b450?'insertion:'+_0x32b450:'insertion',_0x4b8d34=this['_setSuggestionData']({'id':_0x67fff4,'type':_0x52ed23,'createdAt':new Date(),'authorId':_0x1adff4,'attributes':_0xc2507c});return this['_addSuggestionMarker'](_0x52ed23,_0x67fff4,_0x1adff4,_0x8f83a),_0x4b8d34;}['markMultiRangeInsertion'](_0x41f632,_0x2b572a='multi',_0x3c1d24={}){const _0x5d4144=this['editor']['plugins']['get']('Users')['me'],_0x1051e6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2b572a,'join');this['_trackingSessionId']&&(_0x3c1d24['trackingSessionId']=this['_trackingSessionId']);for(const _0x213811 of this['getSuggestions']())if(_0x213811['author']['id']==_0x5d4144['id']&&'insertion'==_0x213811['type']&&_0x213811['subType']==_0x2b572a&&Xt(_0x213811,_0x3c1d24)&&(_0x1051e6(_0x213811['getRanges'](),_0x41f632)||_0x1051e6(_0x41f632,_0x213811['getRanges']()))){for(const _0x2d0cd5 of _0x41f632)_0x213811['addRange'](_0x2d0cd5);return _0x213811;}for(const {suggestion:_0x2cd5e2,meta:_0x28444c}of this['_findSuggestions'](_0x41f632,'insertion')){if(!_0x28444c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x28444c['containsRangeInObject'])continue;if(!Xt(_0x2cd5e2,_0x3c1d24))continue;let _0x79a56e=!0x0;for(const _0x2c6516 of _0x2cd5e2['getRanges']())for(const _0x1cb33a of _0x41f632)if(!_0x2c6516['containsRange'](_0x1cb33a)){_0x79a56e=!0x1;break;}if(_0x79a56e)return _0x2cd5e2;}const _0x5a25f0=_0x110ca2(),_0x4f6f62=_0x5d4144['id'],_0x3d108a='insertion:'+_0x2b572a,_0x30eab1=this['_setSuggestionData']({'id':_0x5a25f0,'type':_0x3d108a,'createdAt':new Date(),'authorId':_0x4f6f62,'attributes':_0x3c1d24});for(const _0x58cf82 of _0x41f632)this['_addSuggestionMarker'](_0x3d108a,_0x5a25f0,_0x4f6f62,_0x58cf82,T['getMultiRangeId']());return _0x30eab1;}['markInlineFormat'](_0x1f527a,_0x5d6ae6,_0x13f22b=null,_0x44ee51={}){if(_0x13f22b=_0x13f22b||Lt(_0x5d6ae6),_0x1f527a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x44ee51['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d921b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13f22b,'accept');return this['forceDefaultExecution'](()=>_0x1d921b([_0x1f527a],_0x5d6ae6,_0x44ee51)),null;}const _0x1acd1c=this['editor']['plugins']['get']('Users')['me'],_0x44d9b1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xdc1b1d,meta:_0x26fa89}of this['_findSuggestions'](_0x1f527a,'insertion'))_0x26fa89['isOwn']&&!_0x26fa89['isInsideObject']&&_0x44d9b1['push'](..._0xdc1b1d['getRanges']());}const _0x4c2e04=function(_0x583efd,_0x1268cc){const _0x44ccbc=[];for(const _0x5e2821 of _0x1268cc){const _0x2f3343=_0x583efd['getIntersection'](_0x5e2821);_0x2f3343&&_0x44ccbc['push'](_0x2f3343);}return _0x44ccbc;}(_0x1f527a,_0x44d9b1),_0x275818=function(_0x4c156e,_0x95df54){const _0x5947ec=[_0x4c156e];for(const _0x4adf04 of _0x95df54){let _0x1418da=0x0;for(;_0x1418da<_0x5947ec['length'];){const _0x547135=_0x5947ec[_0x1418da]['getDifference'](_0x4adf04);_0x5947ec['splice'](_0x1418da,0x1,..._0x547135),_0x1418da+=_0x547135['length'];}}return _0x5947ec;}(_0x1f527a,_0x44d9b1);_0x4c2e04['length']&&this['_model']['change'](()=>{for(const _0x5cd637 of _0x4c2e04){const _0x170498=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13f22b,'accept');this['forceDefaultExecution'](()=>_0x170498([_0x5cd637],_0x5d6ae6,_0x44ee51));}});for(const _0x5c7c33 of _0x275818){let _0x3e3751=null,_0x4eb421=_0x5c7c33['start'],_0x39b08c=_0x5c7c33['end'];for(const {suggestion:_0x25e866,meta:_0x242741}of this['_findSuggestions'](_0x5c7c33,'formatInline')){if(!_0x242741['isOwn'])continue;if(_0x25e866['subType']!=_0x13f22b)continue;if(!Xt(_0x25e866,_0x44ee51))continue;const _0x221ef6=_0x25e866['getFirstRange']();if(_0x221ef6['containsRange'](_0x5c7c33,!0x0))return null;_0x4eb421=_0x4eb421['isBefore'](_0x221ef6['start'])?_0x4eb421:_0x221ef6['start'],_0x39b08c=_0x39b08c['isAfter'](_0x221ef6['end'])?_0x39b08c:_0x221ef6['end'],_0x3e3751?_0x221ef6['start']['isBefore'](_0x3e3751['getFirstRange']()['start'])?(_0x3e3751['removeMarkers'](),_0x3e3751=_0x25e866):_0x25e866['removeMarkers']():_0x3e3751=_0x25e866;}const _0x24204e=this['_model']['createRange'](_0x4eb421,_0x39b08c);if(_0x3e3751)this['_setSuggestionRange'](_0x3e3751,_0x24204e);else{const _0x25d0d4=_0x110ca2(),_0x4738c5=_0x1acd1c['id'];this['_setSuggestionData']({'id':_0x25d0d4,'type':'formatInline:'+_0x13f22b,'data':_0x5d6ae6,'createdAt':new Date(),'authorId':_0x4738c5,'attributes':_0x44ee51}),this['_addSuggestionMarker']('formatInline:'+_0x13f22b,_0x25d0d4,_0x4738c5,_0x24204e);}}return null;}['markBlockFormat'](_0x521226,_0x244117,_0x1464bc=[],_0x43180d=null,_0x502438={}){_0x244117['formatGroupId']||(_0x244117['formatGroupId']=_0x244117['commandName']),_0x244117['multipleBlocks']=_0x521226['is']('range'),_0x43180d=_0x43180d||Lt(_0x244117);const _0x13f943=_0x1464bc['map'](_0x15d77b=>zt(_0x15d77b,this['_model'])),_0xb23ba7=_0x521226['is']('range')?_0x521226:zt(_0x521226,this['_model']);if(this['_trackingSessionId']&&(_0x502438['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x272ed6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43180d,'accept');return this['forceDefaultExecution'](()=>_0x272ed6([_0xb23ba7],_0x244117,_0x502438)),null;}_0x13f943['push'](_0xb23ba7);let _0x3ef608=!0x0;for(const _0x73ef0b of _0x13f943)if(!this['_rangeIsInLocalUserInsertion'](_0x73ef0b)){_0x3ef608=!0x1;break;}if(_0x3ef608&&'always'!==this['_trackFormatChanges']){const _0x1ec31d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43180d,'accept');return this['forceDefaultExecution'](()=>_0x1ec31d([_0xb23ba7],_0x244117,_0x502438)),null;}let _0x58dd26=null,_0x2bc82e=_0xb23ba7['start'],_0x51c849=_0xb23ba7['end'];for(const {suggestion:_0x489f23,meta:_0x2d6ebd}of this['_findSuggestions'](_0xb23ba7,'formatBlock')){if(!_0x2d6ebd['isOwn'])continue;if(_0x2d6ebd['isNextTo']||_0x2d6ebd['containsRangeInObject']||_0x2d6ebd['isInsideObject'])continue;if(_0x489f23['data']['formatGroupId']!=_0x244117['formatGroupId'])continue;if(!Xt(_0x489f23,_0x502438))continue;const _0x2e7b66=_0x489f23['getFirstRange']();if(_0x489f23['subType']==_0x43180d){if(_0x2e7b66['containsRange'](_0xb23ba7,!0x0))return null;_0x2bc82e=_0x2bc82e['isBefore'](_0x2e7b66['start'])?_0x2bc82e:_0x2e7b66['start'],_0x51c849=_0x51c849['isAfter'](_0x2e7b66['end'])?_0x51c849:_0x2e7b66['end'],_0x58dd26?_0x2e7b66['start']['isBefore'](_0x58dd26['getFirstRange']()['start'])?(_0x58dd26['removeMarkers'](),_0x58dd26=_0x489f23):_0x489f23['removeMarkers']():_0x58dd26=_0x489f23;}else{const _0x54cc03=_0xb23ba7['getIntersection'](_0x2e7b66);this['_cutOutSuggestionMarker'](_0x489f23,_0x54cc03);}}const _0xde5f24=this['editor']['plugins']['get']('Users')['me'],_0x587a72=_0x110ca2(),_0x3e984e=_0xde5f24['id'];if(_0x58dd26)return this['_setSuggestionRange'](_0x58dd26,this['_model']['createRange'](_0x2bc82e,_0x51c849)),_0x58dd26;{const _0x40d9f1=this['_setSuggestionData']({'id':_0x587a72,'type':'formatBlock:'+_0x43180d,'data':_0x244117,'createdAt':new Date(),'authorId':_0x3e984e,'attributes':_0x502438});return this['_addSuggestionMarker']('formatBlock:'+_0x43180d,_0x587a72,_0x3e984e,this['_model']['createRange'](_0x2bc82e,_0x51c849)),_0x40d9f1;}}['markMultiRangeBlockFormat'](_0x1be585,_0x100261,_0x1b8f2a=[],_0x364aa8=null,_0x194242={}){_0x100261['formatGroupId']||(_0x100261['formatGroupId']=_0x100261['commandName']);const _0x5139b4=_0x1be585[0x0];_0x100261['multipleBlocks']=_0x5139b4['is']('range'),_0x364aa8=_0x364aa8||Lt(_0x100261);const _0x33c89b=_0x1b8f2a['map'](_0x15227c=>zt(_0x15227c,this['_model'])),_0x134647=_0x5139b4['is']('range')?_0x1be585:_0x1be585['map'](_0x5009cb=>zt(_0x5009cb,this['_model']));if(this['_trackingSessionId']&&(_0x194242['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d3320=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'accept');return this['forceDefaultExecution'](()=>_0x1d3320(_0x134647,_0x100261,_0x194242)),null;}_0x33c89b['push'](..._0x134647);let _0x59e3b6=!0x0;for(const _0x25c53d of _0x33c89b)if(!this['_rangeIsInLocalUserInsertion'](_0x25c53d)){_0x59e3b6=!0x1;break;}if(_0x59e3b6&&'always'!==this['_trackFormatChanges']){const _0x34cc41=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'accept');return this['forceDefaultExecution'](()=>_0x34cc41(_0x134647,_0x100261,_0x194242)),null;}const _0x2d587f=this['editor']['plugins']['get']('Users')['me'];for(const _0x56029d of this['getSuggestions']()){const _0x412ee7=_0x56029d['data'];if(_0x56029d['author']['id']!=_0x2d587f['id'])continue;if('formatBlock'!=_0x56029d['type']||_0x412ee7['formatGroupId']!=_0x100261['formatGroupId'])continue;if(!Xt(_0x56029d,_0x194242))continue;const _0x1e02fd=_0x56029d['subType']==_0x364aa8;for(let _0x54ca76=0x0;_0x54ca76<_0x134647['length'];_0x54ca76++){const _0x206f53=_0x134647[_0x54ca76];for(const _0x39a69a of _0x56029d['getMarkers']()){const _0x2b9f28=_0x39a69a['getRange']();if(_0x206f53['isEqual'](_0x2b9f28)){_0x1e02fd?(_0x134647['splice'](_0x54ca76,0x1),_0x54ca76--):_0x56029d['removeMarker'](_0x39a69a['name']);break;}}}}if(0x0==_0x134647['length'])return null;const _0x4d5622=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'join');for(const _0x5927b3 of this['getSuggestions']()){const _0x2bb05e=_0x5927b3['data'];if(_0x5927b3['author']['id']==_0x2d587f['id']&&('formatBlock'==_0x5927b3['type']&&_0x2bb05e['formatGroupId']==_0x100261['formatGroupId']&&_0x5927b3['subType']==_0x364aa8&&Xt(_0x5927b3,_0x194242)&&(_0x4d5622(_0x5927b3['getRanges'](),_0x134647)||_0x4d5622(_0x134647,_0x5927b3['getRanges']())))){for(const _0x496358 of _0x134647)_0x5927b3['addRange'](_0x496358);return _0x5927b3;}}const _0x1ece76=_0x110ca2(),_0x326f65=_0x2d587f['id'],_0x54a849='formatBlock:'+_0x364aa8,_0x411d8c=this['_setSuggestionData']({'id':_0x1ece76,'type':_0x54a849,'data':_0x100261,'createdAt':new Date(),'authorId':_0x326f65,'attributes':_0x194242});for(const _0x37613a of _0x134647)this['_addSuggestionMarker'](_0x54a849,_0x1ece76,_0x326f65,_0x37613a,T['getMultiRangeId']());return _0x411d8c;}['markDeletion'](_0x2b46e1,_0x53239b=null,_0x38234c={}){if(_0x2b46e1['isCollapsed'])return null;const _0x5bb93a=this['editor']['plugins']['get']('Users')['me'],_0x2345a6=new _0x217d71(_0x2b46e1['start'],_0x2b46e1['end']);this['_trackingSessionId']&&(_0x38234c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x26c178,meta:_0x1fdff7}of this['_findSuggestions'](_0x2345a6,'insertion'))if(_0x1fdff7['isOwn']&&!_0x1fdff7['isNextTo']){if(_0x26c178['isMultiRange']){const _0x50c4ec=_0x26c178['getRanges']()['filter'](_0x2340a5=>'$graveyard'!=_0x2340a5['root']['rootName']);_0x50c4ec['every'](_0x449822=>_0x2345a6['containsRange'](_0x449822,!0x0))&&_0x26c178['discard']();if(_0x50c4ec['some'](_0x29d3d6=>_0x29d3d6['containsRange'](_0x2345a6,!0x0))){const _0x568110=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53239b,'accept');return this['forceDefaultExecution'](()=>_0x568110([_0x2345a6],null,_0x38234c)),null;}}else{const _0x253a1c=_0x2345a6['getIntersection'](_0x26c178['getFirstRange']());null!==_0x253a1c&&_0x26c178['_onDiscard']([_0x253a1c],null,_0x38234c);}}if(_0x2345a6['detach'](),_0x2345a6['isCollapsed']||'$graveyard'==_0x2345a6['root']['rootName'])return null;let _0x3bde10=null,_0x1e05ff=_0x2345a6['start'],_0x123a9b=_0x2345a6['end'];const _0x405c79=this['_findSuggestions'](_0x2345a6,'deletion');for(const {suggestion:_0x332880,meta:_0x15431a}of _0x405c79){const _0x5e3cc0=this['_model']['createRange'](_0x1e05ff,_0x123a9b);if(_0x15431a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15431a['containsRangeInObject']&&!_0x15431a['isInsideObject'])){if(_0x332880['isMultiRange']){if(!Xt(_0x332880,_0x38234c))continue;let _0x8d6db9=!0x0;for(const _0x356305 of _0x332880['getRanges']()){if(_0x356305['containsRange'](_0x5e3cc0,!0x0))return _0x332880;_0x5e3cc0['containsRange'](_0x356305)||(_0x8d6db9=!0x1);}_0x8d6db9&&_0x332880['discard']();}else{const _0x53caea=_0x332880['getFirstRange']();if(_0x53caea['containsRange'](_0x5e3cc0,!0x0))return _0x332880;if(!Xt(_0x332880,_0x38234c)){_0x5e3cc0['containsRange'](_0x53caea)?_0x332880['removeMarkers']():_0x53caea['containsPosition'](_0x1e05ff)?_0x1e05ff=_0x53caea['end']:_0x53caea['containsPosition'](_0x123a9b)&&(_0x123a9b=_0x53caea['start']);continue;}_0x1e05ff=_0x1e05ff['isBefore'](_0x53caea['start'])?_0x1e05ff:_0x53caea['start'],_0x123a9b=_0x123a9b['isAfter'](_0x53caea['end'])?_0x123a9b:_0x53caea['end'],_0x38234c=Object['assign']({},_0x332880['attributes']),_0x3bde10?_0x53caea['start']['isBefore'](_0x3bde10['getFirstRange']()['start'])?(_0x3bde10['removeMarkers'](),_0x3bde10=_0x332880):_0x332880['removeMarkers']():_0x3bde10=_0x332880;}}}if(_0x3bde10)return this['_setSuggestionRange'](_0x3bde10,this['_model']['createRange'](_0x1e05ff,_0x123a9b)),_0x3bde10;{const _0x2badf9=_0x110ca2(),_0x2ee32b=this['_model']['createRange'](_0x1e05ff,_0x123a9b),_0x4bb50e=_0x5bb93a['id'],_0x566478=_0x53239b?'deletion:'+_0x53239b:'deletion',_0x3700b8=this['_setSuggestionData']({'id':_0x2badf9,'type':_0x566478,'createdAt':new Date(),'authorId':_0x4bb50e,'attributes':_0x38234c});return this['_addSuggestionMarker'](_0x566478,_0x2badf9,_0x4bb50e,_0x2ee32b),_0x3700b8;}}['markMultiRangeDeletion'](_0x9dd203,_0x538ac5='multi',_0x9df0ba={}){const _0xc12d7b=this['editor']['plugins']['get']('Users')['me'],_0x1008af=_0x9dd203['map'](_0x1de9dd=>new _0x217d71(_0x1de9dd['start'],_0x1de9dd['end'])),_0x5790ee=new Set();this['_trackingSessionId']&&(_0x9df0ba['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x9f3e2a,meta:_0x974e0d}of this['_findSuggestions'](_0x1008af,'insertion'))_0x974e0d['isOwn']&&!_0x974e0d['isNextTo']&&_0x5790ee['add'](_0x9f3e2a);for(const _0x5c19b4 of _0x5790ee)if(_0x5c19b4['isMultiRange']){const _0x1c4056=_0x5c19b4['getRanges']();(!_0x5c19b4['attributes']||!_0x5c19b4['attributes']['skipNestingCheck'])&&(_0x1c4056['every'](_0x580a8c=>_0x1008af['some'](_0xdb60e2=>_0xdb60e2['containsRange'](_0x580a8c,!0x0)))&&_0x5c19b4['discard']());if(_0x1008af['every'](_0x194e1f=>_0x1c4056['some'](_0x25c8a1=>_0x25c8a1['containsRange'](_0x194e1f,!0x0)))){const _0x456bed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'accept');return this['forceDefaultExecution'](()=>_0x456bed(_0x9dd203,null,_0x9df0ba)),null;}}else{const _0x1f5b06=_0x5c19b4['getFirstRange']();_0x1008af['some'](_0x34a0f8=>_0x34a0f8['containsRange'](_0x1f5b06,!0x0))&&_0x5c19b4['discard']();if(_0x1008af['every'](_0x505627=>_0x1f5b06['containsRange'](_0x505627,!0x0))){const _0x175c21=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'accept');return this['forceDefaultExecution'](()=>_0x175c21(_0x1008af,null,_0x9df0ba)),null;}}const _0x31ae9d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'join');let _0x147321=null;for(const _0x275c4f of this['getSuggestions']())if(_0x275c4f['author']['id']==_0xc12d7b['id']&&_0x275c4f['isInContent']&&'deletion'==_0x275c4f['type']&&_0x275c4f['subType']==_0x538ac5&&Xt(_0x275c4f,_0x9df0ba)&&(_0x31ae9d(_0x275c4f['getRanges'](),_0x1008af)||_0x31ae9d(_0x1008af,_0x275c4f['getRanges']()))){if(_0x147321){if(_0x275c4f['commentThread']&&_0x275c4f['commentThread']['length'])continue;for(const _0x43523b of _0x275c4f['getRanges']())_0x147321['isIntersectingWithRange'](_0x43523b)||_0x147321['addRange'](_0x43523b);_0x275c4f['removeMarkers']();}else{_0x147321=_0x275c4f;for(const _0x4c0ae6 of _0x1008af)_0x275c4f['isIntersectingWithRange'](_0x4c0ae6)||_0x275c4f['addRange'](_0x4c0ae6);}}if(_0x147321)return _0x147321;_0x5790ee['clear']();for(const {suggestion:_0x434240,meta:_0x312cf8}of this['_findSuggestions'](_0x1008af,'deletion'))_0x312cf8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x312cf8['containsRangeInObject']&&!_0x312cf8['isInsideObject'])&&Xt(_0x434240,_0x9df0ba)&&_0x5790ee['add'](_0x434240);for(const _0x4534b5 of _0x5790ee){const _0x17a61f=_0x4534b5['getRanges']();if(!_0x9df0ba||!_0x9df0ba['skipNestingCheck']){if(_0x1008af['every'](_0x267efa=>_0x17a61f['some'](_0x504f8e=>_0x504f8e['containsRange'](_0x267efa,!0x0))))return _0x4534b5;}(!_0x4534b5['attributes']||!_0x4534b5['attributes']['skipNestingCheck'])&&(_0x17a61f['every'](_0x48facb=>_0x1008af['some'](_0x2e445e=>_0x2e445e['containsRange'](_0x48facb,!0x0)))&&_0x4534b5['discard']());}const _0x4940fe=_0x110ca2(),_0x891846=_0xc12d7b['id'],_0xd52b45='deletion:'+_0x538ac5,_0x447823=this['_setSuggestionData']({'id':_0x4940fe,'type':_0xd52b45,'createdAt':new Date(),'authorId':_0x891846,'attributes':_0x9df0ba});for(const _0x1db4a5 of _0x1008af)_0x1db4a5['detach'](),_0x1db4a5['isCollapsed']||'$graveyard'==_0x1db4a5['root']['rootName']||this['_addSuggestionMarker'](_0xd52b45,_0x4940fe,_0x891846,_0x1db4a5,T['getMultiRangeId']());return _0x447823;}['markAttributeChange'](_0x4a51d7,_0x3f85d3,_0x1709ff,_0x20f08f,_0x3985f1){if(_0x4a51d7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5f8aea=this['editor']['plugins']['get']('Users')['me']['id'],_0x174981=Array['from'](this['_suggestions']['values']())['filter'](_0x1775d5=>'attribute'==_0x1775d5['type']&&_0x1775d5['data']['key']==_0x3f85d3&&_0x1775d5['isIntersectingWithRange'](_0x4a51d7));if(this['_trackingSessionId']&&(_0x3985f1['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2b6470=this['_findSuggestions'](_0x4a51d7,'insertion')['filter'](({meta:_0x4039a0})=>_0x4039a0['isOwn']&&!_0x4039a0['isInsideObject']&&!_0x4039a0['isNextTo'])['map'](({suggestion:_0x14f153})=>_0x14f153);_0x174981['unshift'](..._0x2b6470);}const _0x1c71b7=new Map([[_0x4a51d7,_0x1709ff]]);for(const _0x5f08fc of _0x174981){const _0x19c885='attribute'==_0x5f08fc['type']?_0x5f08fc['data']['oldValue']:void 0x0,_0x4a9f40=_0x5f08fc['getFirstRange'](),_0xdc5212=Array['from'](_0x1c71b7['keys']())['find'](_0x1cd242=>_0x1cd242['isIntersecting'](_0x4a9f40));if(!_0xdc5212)continue;const _0x176f30=_0xdc5212['getDifference'](_0x4a9f40);this['_isBlockAttribute'](_0x3f85d3)&&'insertion'==_0x5f08fc['type']&&0x0!=_0x176f30['length']||(_0x1c71b7['delete'](_0xdc5212),_0x176f30['forEach'](_0xb85c51=>{_0x1c71b7['set'](_0xb85c51,_0x1709ff);}),'insertion'!=_0x5f08fc['type']&&_0x19c885!=_0x20f08f&&_0x1c71b7['set'](_0xdc5212['getIntersection'](_0x4a9f40),_0x19c885));}const _0x58ae3f=[];for(const [_0x47b3c5,_0x3bcb3e]of _0x1c71b7){const _0x1d70dd=_0x110ca2(),_0x149343={'key':_0x3f85d3,'oldValue':_0x3bcb3e,'newValue':_0x20f08f};_0x3f85d3['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':_0x3f85d3});const _0x37f469=('attribute:'+(_0x3f85d3+'|'+Lt({'newValue':_0x20f08f})))['substring'](0x0,0x3c),_0x2f90da=this['_setSuggestionData']({'id':_0x1d70dd,'type':_0x37f469,'data':_0x149343,'createdAt':new Date(),'authorId':_0x5f8aea,'attributes':_0x3985f1});_0x58ae3f['push'](_0x2f90da),this['_addSuggestionMarker'](_0x37f469,_0x1d70dd,_0x5f8aea,_0x47b3c5);}return _0x58ae3f;}['enableDefaultAttributesIntegration'](_0x323fe4){this['enableCommand'](_0x323fe4,(_0x156c3c,..._0x587a7f)=>{this['recordAttributeChanges'](()=>{_0x156c3c(..._0x587a7f);});});}['registerBlockAttribute'](_0xd67bfc){this['_blockAttributeKeys']['add'](_0xd67bfc);}['registerInlineAttribute'](_0x5b2238){this['_inlineAttributeKeys']['add'](_0x5b2238);}['startTrackingSession'](_0xf76999){return this['_trackingSessionId']=void 0x0!==_0xf76999?_0xf76999:_0x110ca2(),this['_trackingSessionId'];}['_getAttributeKey'](_0x32fb63){return'attribute'==_0x32fb63['type']?_0x32fb63['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31a39b,_0x5c970e){const _0x11f16b=_0x31a39b['getFirstMarker']();this['_model']['change'](_0x530b8e=>{_0x530b8e['updateMarker'](_0x11f16b,{'range':_0x5c970e});});}['_addThreadToSuggestion'](_0x44d1b6){const _0x40ed71=_0x44d1b6['id'],_0x24527b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x40ed71)||this['_commentsRepository']['addCommentThread']({'channelId':_0x24527b,'threadId':_0x40ed71,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18a234=this['_commentsRepository']['getCommentThread'](_0x40ed71);_0x18a234['unbind']('isRemovable'),_0x18a234['isRemovable']=!0x1,_0x44d1b6['commentThread']=_0x18a234;}['_checkSuggestionCorrectness'](_0x504594,_0x34cb22,_0x4de8d8,_0x43c629){if(_0x504594['type']!=_0x34cb22||_0x504594['subType']!=_0x4de8d8||_0x504594['creator']['id']!=_0x43c629)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5d208c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x35f44d,_0x4cd4ff){const _0x1943cd=_0x35f44d['getFirstRange']();if(_0x4cd4ff['isEqual'](_0x1943cd))_0x35f44d['removeMarkers']();else{if(_0x1943cd['containsRange'](_0x4cd4ff)){const _0x48613c=this['_model']['createPositionAt'](_0x4cd4ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1943cd['start'],_0x48613c));const _0x2a4f08=_0x110ca2(),_0x2ea2d5=_0x35f44d['creator']['id'],_0x182b7b=_0x35f44d['type']+':'+_0x35f44d['subType'];this['_setSuggestionData']({'id':_0x2a4f08,'type':_0x182b7b,'createdAt':new Date(),'authorId':_0x2ea2d5,'data':_0x35f44d['data'],'attributes':_0x35f44d['attributes']});const _0x29a4ef=this['_model']['createPositionAt'](_0x4cd4ff['end']['parent'],'after'),_0xc2206a=this['_model']['createRange'](_0x29a4ef,_0x1943cd['end']);this['_addSuggestionMarker'](_0x182b7b,_0x2a4f08,_0x2ea2d5,_0xc2206a);}else{if(_0x1943cd['containsPosition'](_0x4cd4ff['start'])){const _0x37ee05=this['_model']['createPositionAt'](_0x4cd4ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1943cd['start'],_0x37ee05));}else{const _0x1dfb8a=this['_model']['createPositionAt'](_0x4cd4ff['end']['parent'],'after');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1dfb8a,_0x1943cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x76b670){for(const {suggestion:_0x3d3a8e,meta:_0x1ea032}of this['_findSuggestions'](_0x76b670,'insertion')){if(!_0x1ea032['isOwn'])continue;const _0x591bac=_0x3d3a8e['getRanges']();for(const _0x203b73 of _0x591bac)if(!_0x76b670['getDifference'](_0x203b73)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3c458f){const _0x27bc7c=this['editor']['plugins']['get']('Users')['getUser'](_0x3c458f);if(!_0x27bc7c)throw new _0x5d208c('track-changes-user-not-found',this);return _0x27bc7c;}['_getExternalAuthor'](_0x3214ac){const _0x451374=this['editor']['plugins']['get']('Users'),_0xa8323=_0x51422e('external:'+_0x3214ac),_0x2bc351=_0x451374['getUser'](_0xa8323);return _0x2bc351||_0x451374['addUser']({'id':_0xa8323,'name':_0x3214ac});}['_createSuggestion'](_0x7166d4,_0x42fb50,_0x4ed217,_0x308a95,_0x53ee40,_0x2ebc24){const _0x47352e=this['_getAuthorFromId'](_0x308a95),_0x15d994=this['_suggestionFactory']['buildSuggestion'](_0x7166d4,_0x42fb50,_0x4ed217,_0x47352e,_0x53ee40,_0x37f5db=>{this['_updateSuggestionData'](_0x4ed217,{'attributes':_0x37f5db});const _0xdad45f=this['getSuggestion'](_0x4ed217);this['_joinWithAdjacentSuggestions'](new Set([_0xdad45f])),this['_refreshSuggestionsChain'](new Set([_0xdad45f]));},_0x2ebc24);return this['listenTo'](_0x15d994,'accept',()=>{this['_updateSuggestionData'](_0x4ed217,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x15d994,'discard',()=>{this['_updateSuggestionData'](_0x4ed217,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4ed217,_0x15d994),this['_suggestionState']['set'](_0x15d994,'notReady'),_0x15d994;}['_splitMarkerName'](_0x48fd70){const _0x17e6fe=_0x48fd70['split'](':');return{'group':_0x17e6fe[0x0],'type':_0x17e6fe[0x1],'subType':_0x17e6fe['length']>=0x5?_0x17e6fe[0x2]:null,'id':_0x17e6fe['length']<0x5?_0x17e6fe[0x2]:_0x17e6fe[0x3],'authorId':_0x17e6fe['length']<0x5?_0x17e6fe[0x3]:_0x17e6fe[0x4],'markerCount':0x6==_0x17e6fe['length']?_0x17e6fe[0x5]:null};}['_breakSuggestionMarker'](_0x1b8402,_0x381cda,_0x2fffc9){const _0x1f807e=_0x1b8402['getFirstRange'](),_0x454eba=_0x1f807e['start'],_0x48bc1e=_0x1f807e['end'];this['_setSuggestionRange'](_0x1b8402,this['_model']['createRange'](_0x454eba,_0x381cda));const _0x25dbc7=_0x110ca2(),_0xa524d1=_0x1b8402['creator']['id'],_0x396f98=_0x1b8402['type']+(_0x1b8402['subType']?':'+_0x1b8402['subType']:'');this['_setSuggestionData']({'id':_0x25dbc7,'type':_0x396f98,'createdAt':new Date(),'authorId':_0xa524d1,'originalSuggestionId':_0x1b8402['_originalSuggestionId']||_0x1b8402['id'],'attributes':_0x1b8402['attributes'],'data':_0x1b8402['data']});const _0x2f243f=this['_getAttributeKey'](_0x1b8402);('formatBlock'==_0x1b8402['type']||_0x2f243f&&this['_isBlockAttribute'](_0x2f243f))&&(_0x2fffc9=this['_model']['createPositionBefore'](_0x2fffc9['parent'])),this['_addSuggestionMarker'](_0x396f98,_0x25dbc7,_0xa524d1,this['_model']['createRange'](_0x2fffc9,_0x48bc1e));}['_findSuggestions'](_0x27b177,_0x39c7cb=null){const _0x5abeab=[],_0x217b1e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27b177)||(_0x27b177=[_0x27b177]);for(const _0x3313fb of this['getSuggestions']()){if(!_0x3313fb['isInContent'])continue;if(_0x39c7cb&&_0x3313fb['type']!=_0x39c7cb)continue;let _0x56098b=!0x1;for(const _0x1efcf7 of _0x3313fb['getRanges']()){for(const _0x5410d7 of _0x27b177){const _0x27183e=_0x5410d7['start']['isEqual'](_0x1efcf7['end'])||_0x5410d7['end']['isEqual'](_0x1efcf7['start']);if(_0x27183e||_0x5410d7['getIntersection'](_0x1efcf7)){const _0x254da5=_0x5410d7['containsRange'](_0x1efcf7)&&Ft(this['_model']['schema'],_0x1efcf7['start'],_0x5410d7),_0xf47c64=_0x1efcf7['containsRange'](_0x5410d7)&&Ft(this['_model']['schema'],_0x5410d7['start'],_0x1efcf7);_0x5abeab['push']({'suggestion':_0x3313fb,'meta':{'isOwn':_0x217b1e==_0x3313fb['author'],'isNextTo':_0x27183e,'isInsideObject':_0x254da5,'containsRangeInObject':_0xf47c64}}),_0x56098b=!0x0;break;}}if(_0x56098b)break;}}return _0x5abeab;}['_addSuggestionMarker'](_0x423d3c,_0x952bdd,_0x3047a3,_0x1e5071,_0x97f352){this['_model']['change'](_0x5351f1=>{let _0x436938='suggestion:'+_0x423d3c+':'+_0x952bdd+':'+_0x3047a3;_0x97f352&&(_0x436938=_0x436938+':'+_0x97f352),_0x5351f1['addMarker'](_0x436938,{'range':_0x1e5071,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e9d8a){const _0x490e81=_0x1e9d8a['previous'],_0x2714e8=_0x1e9d8a['next'];_0x1e9d8a['previous']=null,_0x1e9d8a['next']=null,null!=_0x490e81&&_0x490e81['next']==_0x1e9d8a&&(_0x490e81['next']=_0x2714e8),null!=_0x2714e8&&_0x2714e8['previous']==_0x1e9d8a&&(_0x2714e8['previous']=_0x490e81),'ready'==this['_suggestionState']['get'](_0x1e9d8a)&&(this['_suggestionState']['set'](_0x1e9d8a,'removed'),this['fire']('suggestionUnloaded',_0x1e9d8a,_0x490e81,_0x2714e8));}['_setSuggestionData'](_0x12c31f){const _0x1a9d65=_0x12c31f['id'],_0x1b8c2b=this['addSuggestionData'](_0x12c31f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4eb66f=this['editor']['plugins']['get']('PendingActions'),_0x34dbe7=_0x1b8c2b['hasComments'],_0x20356f=_0x1b8c2b['subType']?_0x1b8c2b['type']+':'+_0x1b8c2b['subType']:_0x1b8c2b['type'],_0x54e829=this['editor']['locale'],_0x3674eb=_0x4eb66f['add'](o(_0x54e829,'PENDING_ACTION_SUGGESTION')),_0x21c508={'id':_0x1a9d65,'type':_0x20356f,'hasComments':_0x34dbe7,'data':_0x12c31f['data']||null,'originalSuggestionId':_0x12c31f['originalSuggestionId']||null,'attributes':_0x1b8c2b['attributes']};this['_adapter']['addSuggestion'](_0x21c508)['then'](_0x5101d1=>{_0x1b8c2b['_saved']=!0x0,_0x4eb66f['remove'](_0x3674eb),_0x5101d1&&_0x5101d1['createdAt']&&(this['_suggestions']['get'](_0x1a9d65)['createdAt']=_0x5101d1['createdAt']);})['catch'](_0x5d0759=>{throw _0x113fed('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1b8c2b['discard']();}),_0x1b8c2b['stopListening'](),this['_suggestions']['delete'](_0x1b8c2b['id']),this['_suggestionState']['delete'](_0x1b8c2b),_0x5d0759;});}return _0x1b8c2b;}['_isBlockAttribute'](_0x155a5b){return this['_blockAttributeKeys']['has'](_0x155a5b);}['_isInlineAttribute'](_0x5db041){return this['_inlineAttributeKeys']['has'](_0x5db041);}['_updateSuggestionData'](_0x191122,_0x309f95){const _0x438b12=this['editor']['plugins']['get']('PendingActions'),_0x14ecec=this['getSuggestion'](_0x191122);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x14ecec['_saved']){const _0xd7fe20=_0x438b12['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x191122,_0x309f95)['then'](()=>{_0x438b12['remove'](_0xd7fe20);});}else _0x14ecec['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x191122,_0x309f95);});}}['_getSuggestionData'](_0x3a1f13){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5d208c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a1f13);}['_handleNewSuggestionMarker'](_0x3c2a62){const {id:_0x2f74bf,type:_0x226f00,subType:_0x4b6781,authorId:_0xa1a18a}=this['_splitMarkerName'](_0x3c2a62),_0x53af6c=this['_suggestions']['get'](_0x2f74bf)||this['_createSuggestion'](_0x226f00,_0x4b6781,_0x2f74bf,_0xa1a18a,{});switch(this['_checkSuggestionCorrectness'](_0x53af6c,_0x226f00,_0x4b6781,_0xa1a18a),this['_suggestionState']['get'](_0x53af6c)){case'notReady':this['_getSuggestionData'](_0x2f74bf)['then'](_0x4bd3eb=>{let _0x15656d=Promise['resolve']();_0x4bd3eb['hasComments']&&(_0x15656d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2f74bf})),_0x15656d['then'](()=>{this['addSuggestionData'](_0x4bd3eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x53af6c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2f74bf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x53af6c,'ready'),this['fire']('suggestionLoaded',_0x53af6c);break;case'ready':this['fire']('suggestionChanged',_0x53af6c);}return _0x53af6c['addMarkerName'](_0x3c2a62),_0x53af6c;}['_refreshSuggestionsChain'](_0x329df0){const _0x590df7=Array['from'](_0x329df0),_0x2db756=_0x590df7['filter'](_0x548e3c=>'attribute'==_0x548e3c['type']);this['_refreshAttributeSuggestionsChain'](_0x2db756);const _0x1c74a6=_0x590df7['filter'](_0x2218e2=>!_0x2218e2['isMultiRange']&&'attribute'!=_0x2218e2['type']),_0x1a4d26=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33b484=>!_0x33b484['isMultiRange']&&'attribute'!=_0x33b484['type']),_0x4aba7c=_0x1a4d26['filter'](_0x197f01=>!_0x329df0['has'](_0x197f01)),_0x4e54f0=new Map(_0x1a4d26['map'](_0x38df48=>[_0x38df48,this['_suggestionFactory']['getSuggestionCallback'](_0x38df48['type'],_0x38df48['subType'],'chain')])),_0xd0e9a3=new Map(_0x1a4d26['map'](_0x52ae6f=>[_0x52ae6f,_0x52ae6f['getFirstRange']()])),_0xd96e18=new Set(),_0x226442=new Set();for(let _0x9a6191=0x0;_0x9a6191<_0x1c74a6['length'];_0x9a6191++)_0x337307(_0x1c74a6[_0x9a6191],_0x1c74a6,_0x9a6191+0x1);for(let _0x2975fa=0x0;_0x2975fa<_0x1c74a6['length'];_0x2975fa++)_0x337307(_0x1c74a6[_0x2975fa],_0x4aba7c,0x0);const _0x3d7fb2=new Set();for(let _0x2715af=0x0;_0x2715af<_0x1c74a6['length'];_0x2715af++){const _0x12a64b=_0x1c74a6[_0x2715af];!_0x226442['has'](_0x12a64b)&&_0x12a64b['previous']&&(_0x3d7fb2['add'](_0x12a64b['previous']),_0x12a64b['previous']['next']===_0x12a64b&&(_0x12a64b['previous']['next']=null),_0x12a64b['previous']=null),!_0xd96e18['has'](_0x12a64b)&&_0x12a64b['next']&&(_0x3d7fb2['add'](_0x12a64b['next']),_0x12a64b['next']['previous']===_0x12a64b&&(_0x12a64b['next']['previous']=null),_0x12a64b['next']=null);}function _0x337307(_0x1a57c9,_0x6eac54,_0x13df9d){for(let _0x88de85=_0x13df9d;_0x88de85<_0x6eac54['length'];_0x88de85++){const _0x2f0b9b=_0x3d00b9(_0x1a57c9,_0x6eac54[_0x88de85]);_0x2f0b9b&&(_0x2f0b9b[0x0]['next']=_0x2f0b9b[0x1],_0x2f0b9b[0x1]['previous']=_0x2f0b9b[0x0],_0xd96e18['add'](_0x2f0b9b[0x0]),_0x226442['add'](_0x2f0b9b[0x1]));}}function _0x3d00b9(_0x1ae000,_0xd72e55){if(_0x1ae000['author']['id']!==_0xd72e55['author']['id'])return null;const _0x4a8e46=_0x4e54f0['get'](_0x1ae000)(_0x1ae000,_0xd72e55,_0xd0e9a3['get'](_0x1ae000),_0xd0e9a3['get'](_0xd72e55));if(!_0x4a8e46)return null;return _0x4e54f0['get'](_0xd72e55)(_0x1ae000,_0xd72e55,_0xd0e9a3['get'](_0x1ae000),_0xd0e9a3['get'](_0xd72e55))?_0x4a8e46[0x1]['commentThread']&&_0x4a8e46[0x1]['commentThread']['length']?null:_0x4a8e46:null;}_0x3d7fb2['size']&&this['_refreshSuggestionsChain'](_0x3d7fb2);}['_refreshAttributeSuggestionsChain'](_0x33f85f){if(0x0==_0x33f85f['length'])return;const _0x7dd33f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x543e76=>'attribute'==_0x543e76['type']&&_0x543e76['_isDataLoaded']),_0x5cd89d=[],_0x4758f3=new Map();for(const _0x58f9fe of _0x7dd33f){const _0x484f77=_0x51422e(_0x58f9fe['attributes']);_0x4758f3['has'](_0x484f77)||(_0x4758f3['set'](_0x484f77,_0x5cd89d['length']),_0x5cd89d['push']([]));const _0x1aff7d=_0x4758f3['get'](_0x484f77);_0x5cd89d[_0x1aff7d]['push'](_0x58f9fe);}!(function(){_0x5cd89d['sort']((_0x55c948,_0xd78155)=>{const _0x5280c9=_0x55c948[0x0]['createdAt'],_0x5bc297=_0xd78155[0x0]['createdAt'];return _0x5280c9==_0x5bc297?_0x55c948[0x0]['attributes']['groupId']<_0xd78155[0x0]['attributes']['groupId']?-0x1:0x1:_0x5280c9<_0x5bc297?-0x1:0x1;});for(const _0x54e035 of _0x5cd89d)_0x54e035['sort']((_0x3c2a4d,_0x46f5ac)=>_0x3c2a4d['id']<_0x46f5ac['id']?-0x1:0x1);}());for(let _0x5bd2eb=0x0;_0x5bd2eb<_0x5cd89d['length'];_0x5bd2eb++){if(0x0==_0x5cd89d[_0x5bd2eb]['length'])continue;const _0x42ab79=[];for(let _0x433fcf=_0x5bd2eb+0x1;_0x433fcf<_0x5cd89d['length'];_0x433fcf++)0x0!=_0x5cd89d[_0x433fcf]['length']&&_0xe78087(_0x5cd89d[_0x5bd2eb],_0x5cd89d[_0x433fcf])&&_0x42ab79['push'](_0x433fcf);for(const _0x42b90b of _0x42ab79)_0x5cd89d[_0x5bd2eb]=_0x5cd89d[_0x5bd2eb]['concat'](_0x5cd89d[_0x42b90b]),_0x5cd89d[_0x42b90b]=[];}for(const _0x1b7a76 of _0x5cd89d)for(let _0xab7fd7=0x0;_0xab7fd7<_0x1b7a76['length'];_0xab7fd7++){const _0x5f57fa=_0x1b7a76[_0xab7fd7+0x1]||null;_0x1b7a76[_0xab7fd7]['next']!==_0x5f57fa&&(_0x1b7a76[_0xab7fd7]['next']=_0x5f57fa);}for(const _0x19c53b of _0x5cd89d)for(let _0x5464a7=0x0;_0x5464a7<_0x19c53b['length'];_0x5464a7++){const _0x569374=_0x19c53b[_0x5464a7-0x1]||null;_0x19c53b[_0x5464a7]['previous']!==_0x569374&&(_0x19c53b[_0x5464a7]['previous']=_0x569374);}function _0xe78087(_0xe51f6c,_0x49550a){if(_0xe51f6c[0x0]['attributes']['groupId']!==_0x49550a[0x0]['attributes']['groupId']&&_0xe51f6c[0x0]['author']!==_0x49550a[0x0]['author'])return!0x1;if(!function(_0x145e24,_0x57ce61){if(!_0x145e24['hasComments']&&!_0x57ce61['hasComments'])return!0x0;if(_0x145e24['hasComments']&&_0x57ce61['hasComments'])return!0x1;if(_0x145e24['hasComments']&&_0x57ce61['createdAt']<_0x145e24['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x57ce61['hasComments']&&_0x145e24['createdAt']<_0x57ce61['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xe51f6c[0x0],_0x49550a[0x0]))return!0x1;const _0x25b81d=Ut(_0xe51f6c[0x0]['attributes'],['groupId','trackingSessionId']),_0x815e13=Ut(_0x49550a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3f9778(_0x25b81d,_0x815e13))return!0x1;if(_0xe51f6c[0x0]['attributes']['groupId']==_0x49550a[0x0]['attributes']['groupId'])return!0x0;if(_0xe51f6c[0x0]['attributes']['trackingSessionId']!==_0x49550a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xe51f6c['every'](_0x88b521=>_0x49550a['some'](_0x29455d=>_0x88b521['getFirstRange']()['isEqual'](_0x29455d['getFirstRange']())))&&_0x49550a['every'](_0x32a839=>_0xe51f6c['some'](_0x1e3bef=>_0x32a839['getFirstRange']()['isEqual'](_0x1e3bef['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2868ff){const _0x41d071=Array['from'](_0x2868ff),_0x5bdff1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2b635f=_0x5bdff1['filter'](_0x3f1785=>!_0x2868ff['has'](_0x3f1785)),_0x5ef4da=new Map(_0x41d071['map'](_0x39d105=>[_0x39d105,this['_suggestionFactory']['getSuggestionCallback'](_0x39d105['type'],_0x39d105['subType'],'join')])),_0xdf6ab6=new Map(_0x5bdff1['map'](_0x73f811=>[_0x73f811,_0x73f811['getRanges']()]));for(let _0x6c5f4b=0x0;_0x6c5f4b<_0x41d071['length'];_0x6c5f4b++){if(_0x546a1f(this,_0x41d071[_0x6c5f4b],_0x41d071,_0x6c5f4b+0x1))return!0x0;}for(let _0x43a044=0x0;_0x43a044<_0x41d071['length'];_0x43a044++){if(_0x546a1f(this,_0x41d071[_0x43a044],_0x2b635f,0x0))return!0x0;}return!0x1;function _0x546a1f(_0x3f014f,_0x215b5e,_0x52f60f,_0x4f1995){for(let _0x4ebf2c=_0x4f1995;_0x4ebf2c<_0x52f60f['length'];_0x4ebf2c++){const _0x4bb198=_0x52f60f[_0x4ebf2c];if(_0x4bb198['type']!==_0x215b5e['type']||_0x4bb198['author']['id']!==_0x215b5e['author']['id']||_0x4bb198['subType']!==_0x215b5e['subType'])continue;if(!Qt(_0x215b5e,_0x4bb198))continue;if('attribute'==_0x215b5e['type']&&_0x215b5e['data']['oldValue']!=_0x4bb198['data']['oldValue'])continue;if('attribute'==_0x215b5e['type']&&_0x3f014f['_isBlockAttribute'](_0x215b5e['data']['key']))continue;if('formatBlock'==_0x215b5e['type']){const _0x1b34f4=_0x3f014f['editor']['model'],_0x51ba70=_0x215b5e['getContainedElement']();if(_0x51ba70&&(_0x1b34f4['schema']['isObject'](_0x51ba70)||_0x1b34f4['schema']['isLimit'](_0x51ba70)))continue;}const _0x142d45=_0x5ef4da['get'](_0x215b5e),_0x177f18=_0xdf6ab6['get'](_0x215b5e),_0x40c99d=_0xdf6ab6['get'](_0x4bb198),_0x3d978c=_0x215b5e['commentThread']&&_0x215b5e['commentThread']['length'],_0x287cd3=_0x4bb198['commentThread']&&_0x4bb198['commentThread']['length'];if(!_0x3d978c&&_0x142d45(_0x40c99d,_0x177f18))return _0x3f014f['_joinSuggestions'](_0x4bb198,_0x215b5e),_0xdf6ab6['delete'](_0x215b5e),!0x0;if(!_0x287cd3&&_0x142d45(_0x177f18,_0x40c99d))return _0x3f014f['_joinSuggestions'](_0x215b5e,_0x4bb198),_0xdf6ab6['delete'](_0x4bb198),!0x0;}return!0x1;}}['_joinSuggestions'](_0x92348c,_0x363f42){if(_0x92348c['isMultiRange']){for(const _0x523a62 of _0x363f42['getRanges']())_0x92348c['addRange'](_0x523a62);}else{const _0x59dc84=_0x363f42['getFirstRange']()['end'];this['_setSuggestionRange'](_0x92348c,this['_model']['createRange'](_0x92348c['getFirstRange']()['start'],_0x59dc84));}_0x363f42['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfde489,_0x1fb1fd,_0x524144){const _0x3303c5=_0xfde489['startsWith']('format')||_0xfde489['startsWith']('attribute')?'FORMATTING':_0xfde489['toUpperCase']();return o(this['editor']['locale'],_0x1fb1fd+'_'+_0x3303c5+'_SUGGESTION_ANNOUNCEMENT',_0x524144);}['_initAriaMarkerChangeAnnouncements'](){const _0x32a9d2=this['editor'];if(!_0x32a9d2['ui'])return;const {ariaLiveAnnouncer:_0x543ecc}=_0x32a9d2['ui'];_0x4126be(this['_model'],({left:_0x10a803,entered:_0x4c0b0f})=>{for(const _0x4a36dd of _0x10a803){const {group:_0x3f2a78,type:_0x413ce6}=this['_splitMarkerName'](_0x4a36dd['name']);if('suggestion'===_0x3f2a78){_0x543ecc['announce'](this['_getMarkerAnnouncementText'](_0x413ce6,'LEAVE'));break;}}for(const _0x4e2445 of _0x4c0b0f){const {group:_0x4c4bdf,type:_0x293a0e}=this['_splitMarkerName'](_0x4e2445['name']);if('suggestion'===_0x4c4bdf){_0x543ecc['announce'](this['_getMarkerAnnouncementText'](_0x293a0e,'ENTER',_0x338685(_0x37cb22)));break;}}});}['_processAttributeChanges'](_0xe4bde8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2646f5=this['editor'],_0xf8aa70=_0x2646f5['model']['document']['differ']['getChanges']();if(0x0==_0xf8aa70['length'])return!0x1;const _0x237b68=[],_0x40c17b=_0xf8aa70['filter'](_0x3e38e4=>'attribute'==_0x3e38e4['type']),_0x219248=_0xf8aa70['filter'](_0x3620cc=>'insert'==_0x3620cc['type']&&'$text'!=_0x3620cc['name']),_0x291c7d=_0xf8aa70['filter'](_0x2e5e23=>'remove'==_0x2e5e23['type']&&'$text'!=_0x2e5e23['name']);for(const _0x4cd6b2 of _0x40c17b)_0x237b68['push']({'key':_0x4cd6b2['attributeKey'],'newValue':_0x4cd6b2['attributeNewValue'],'oldValue':_0x4cd6b2['attributeOldValue'],'range':qt(_0x4cd6b2['range'],_0x2646f5['model'])});for(const _0x4f4848 of _0x219248){const _0x3255ad=_0x291c7d['find'](_0x5c81ba=>_0x5c81ba['position']['isEqual'](_0x4f4848['position']));_0x3255ad&&_0x237b68['push']({'key':m,'newValue':_0x4f4848['name'],'oldValue':_0x3255ad['name'],'range':_0x2646f5['model']['createRangeOn'](_0x4f4848['position']['nodeAfter'])});}return 0x0!=_0x237b68['length']&&this['_reduceExistingSuggestions'](_0xe4bde8,_0x237b68);}['_processAttributeSuggestions'](_0xfd2e14){let _0x4d0fae=!0x1;const _0x35f74e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x48c595=>_0x48c595['data']['newRange']&&_0x48c595['name']['startsWith']('suggestion:attribute:'));for(const _0x48601c of _0x35f74e){const {subType:_0x313f52,id:_0x4f4a36}=this['_splitMarkerName'](_0x48601c['name']),_0x3739dc=_0x313f52['split']('|')[0x0];for(const _0x4635b6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4635b6['id']!=_0x4f4a36&&'attribute'==_0x4635b6['type']&&_0x4635b6['data']&&_0x4635b6['data']['key']==_0x3739dc&&_0x4635b6['getFirstRange']()['isIntersecting'](_0x48601c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4635b6,_0x48601c['data']['newRange'],_0xfd2e14),_0x4d0fae=!0x0);}return _0x4d0fae;}['recordAttributeChanges'](_0x3fc728){this['_recordAttributeSuggestions']=!0x0,_0x3fc728();}['_isRegisteredAttribute'](_0x2ffa76){const _0x1c28d2=this['_isBlockAttribute'](_0x2ffa76),_0x100963=this['_isInlineAttribute'](_0x2ffa76);return _0x1c28d2||_0x100963;}['_reduceExistingSuggestions'](_0x1560f3,_0x55e2d3){if(0x0==_0x55e2d3['length'])return!0x1;let _0x545ae4=!0x1;for(const _0x17c778 of _0x55e2d3){const _0x4f9807=this['_findSuggestions'](_0x17c778['range'],'attribute')['filter'](_0x1e32a7=>!_0x1e32a7['meta']['isNextTo'])['map'](_0x3ea4e3=>_0x3ea4e3['suggestion']),_0x490959=_0x51422e({'newValue':_0x17c778['newValue']});_0x4f9807['filter'](_0x509354=>{const [_0xa37047,_0x1adc16]=_0x509354['subType']['split']('|');return _0xa37047==_0x17c778['key']&&_0x1adc16!=_0x490959;})['forEach'](_0x5f11d8=>{this['_reduceSuggestionAttributeRange'](_0x5f11d8,_0x17c778['range'],_0x1560f3),_0x545ae4=!0x0;});}return _0x545ae4;}['_reduceSuggestionAttributeRange'](_0x4135e8,_0x36b868,_0x4b85af){const _0x469e2a=_0x4135e8['getFirstRange']()['getDifference'](_0x36b868);0x0!==_0x469e2a['length']?0x1!==_0x469e2a['length']?this['_breakSuggestionMarker'](_0x4135e8,_0x36b868['start'],_0x36b868['end']):this['_setSuggestionRange'](_0x4135e8,_0x469e2a[0x0]):_0x4b85af['removeMarker'](_0x4135e8['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4100b0){this['_editor']=_0x4100b0,this['_model']=_0x4100b0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x26cb02,_0x10ba82,_0x4a548d,_0x24cbe2,_0x7253b1,_0x23ad4b,_0x15434a){return new T(this['_model'],{'type':_0x26cb02,'subType':_0x10ba82,'id':_0x4a548d,'originalSuggestionId':_0x15434a,'author':_0x24cbe2,'creator':_0x24cbe2,'attributes':_0x7253b1,'onAttributesChange':_0x23ad4b,'onAccept':(..._0x492dda)=>this['getSuggestionCallback'](_0x26cb02,_0x10ba82,'accept')(..._0x492dda),'onDiscard':(..._0x470c42)=>this['getSuggestionCallback'](_0x26cb02,_0x10ba82,'discard')(..._0x470c42)});}['registerCustomCallback'](_0x4129f3,_0x32439f,_0x163a40,_0x39466a){const _0x45aff7=_0x4129f3+':'+_0x32439f+':'+_0x163a40;this['_customCallbacks']['set'](_0x45aff7,_0x39466a);}['getSuggestionCallback'](_0x396e79,_0x324f9b,_0x2b70f5){const _0x16a665=_0x396e79+':'+_0x324f9b+':'+_0x2b70f5;return this['_customCallbacks']['get'](_0x16a665)||this['_defaultCallbacks']['get'](_0x396e79+':'+_0x2b70f5);}['_registerDefaultCallbacks'](){const _0x15b3a1=()=>!0x1,_0x3162af=_0xda6be5=>{_0xda6be5['sort']((_0x2f746a,_0x19eef6)=>_0x2f746a['start']['isBefore'](_0x19eef6['start'])?0x1:-0x1),this['_model']['change'](_0x241f09=>{for(const _0x18e1c2 of _0xda6be5){let _0x3c4fc8;_0x3c4fc8=_0x18e1c2['end']['isAtEnd']&&_0x18e1c2['end']['parent']==_0x18e1c2['start']['nodeAfter']?_0x241f09['createSelection'](_0x18e1c2['start']['nodeAfter'],'on'):_0x241f09['createSelection'](_0x18e1c2),this['_model']['deleteContent'](_0x3c4fc8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x43ab61=(_0x3337ba,_0xa83603)=>{_0xa83603&&this['_model']['change'](_0x4fbf7b=>{const {commandName:_0x2a4dd5,commandParams:_0x5aa739=[]}=_0xa83603,_0x2d5d40=_0x3337ba['map'](_0x32492e=>(Pt(_0x32492e)&&(_0x32492e=this['_model']['createRange'](_0x32492e['end'])),_0x32492e))['filter'](_0x2425b2=>'$graveyard'!==_0x2425b2['root']['rootName']);if(_0x2d5d40['length']<0x1)return;const _0x2364bd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x541ec0=>_0x217d71['fromRange'](_0x541ec0));_0x4fbf7b['setSelection'](_0x2d5d40);for(const _0x30f85a of this['_editor']['commands']['commands']())_0x30f85a['refresh']();_0x5aa739['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2a4dd5,..._0x5aa739);const _0x3fd35a=_0x2364bd['filter'](_0x1cc6c8=>'$graveyard'!=_0x1cc6c8['root']['rootName']);_0x3fd35a['length']>0x0&&_0x4fbf7b['setSelection'](_0x3fd35a);for(const _0x4d1426 of _0x2364bd)_0x4d1426['detach']();});},_0x571feb=(_0x33d503,_0x129559)=>0x1==_0x33d503['length']&&0x1==_0x129559['length']&&_0x33d503[0x0]['end']['isEqual'](_0x129559[0x0]['start']),_0x4378fa=(_0x3a8d57,_0xfbfb31,_0x110cb1,_0x42eeff)=>Wt(_0x3a8d57,_0xfbfb31,_0x110cb1,_0x42eeff)?[_0x3a8d57,_0xfbfb31]:Wt(_0xfbfb31,_0x3a8d57,_0x42eeff,_0x110cb1)?[_0xfbfb31,_0x3a8d57]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x15b3a1),this['_defaultCallbacks']['set']('insertion:discard',_0x3162af),this['_defaultCallbacks']['set']('insertion:join',_0x571feb),this['_defaultCallbacks']['set']('insertion:chain',_0x4378fa),this['_defaultCallbacks']['set']('deletion:accept',_0x3162af),this['_defaultCallbacks']['set']('deletion:discard',_0x15b3a1),this['_defaultCallbacks']['set']('deletion:join',_0x571feb),this['_defaultCallbacks']['set']('deletion:chain',_0x4378fa),this['_defaultCallbacks']['set']('formatInline:accept',_0x43ab61),this['_defaultCallbacks']['set']('formatInline:discard',_0x15b3a1),this['_defaultCallbacks']['set']('formatInline:join',_0x571feb),this['_defaultCallbacks']['set']('formatInline:chain',_0x15b3a1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43ab61),this['_defaultCallbacks']['set']('formatBlock:discard',_0x15b3a1),this['_defaultCallbacks']['set']('formatBlock:join',_0x571feb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x15b3a1),this['_defaultCallbacks']['set']('attribute:accept',_0x15b3a1),this['_defaultCallbacks']['set']('attribute:discard',(_0x3c06a2,_0x5ef89e)=>{if(!_0x5ef89e)return;const _0x5242a6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xdf06a7=>{if(_0x5ef89e['key']==m)for(const _0x84e64f of _0x3c06a2){const _0x426bae=_0x84e64f['start']['nodeAfter'],_0x3342ff=_0x5ef89e['oldValue'];_0xdf06a7['rename'](_0x426bae,_0x3342ff);}else{if(_0x5242a6['_isBlockAttribute'](_0x5ef89e['key'])){for(const _0x21721f of _0x3c06a2)void 0x0!==_0x5ef89e['oldValue']?_0xdf06a7['setAttribute'](_0x5ef89e['key'],_0x5ef89e['oldValue'],_0x21721f['start']['nodeAfter']):_0xdf06a7['removeAttribute'](_0x5ef89e['key'],_0x21721f['start']['nodeAfter']);}else{for(const _0x48631c of _0x3c06a2)_0x5ef89e['oldValue']?_0xdf06a7['setAttribute'](_0x5ef89e['key'],_0x5ef89e['oldValue'],_0x48631c):_0xdf06a7['removeAttribute'](_0x5ef89e['key'],_0x48631c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x571feb);}}function Ft(_0x6262d1,_0x1a2574,_0x36f25b){for(const _0x2c7a62 of _0x1a2574['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c7a62['root']==_0x2c7a62)return!0x1;if(!_0x36f25b['containsItem'](_0x2c7a62))return!0x1;if(_0x6262d1['isObject'](_0x2c7a62)||_0x6262d1['isLimit'](_0x2c7a62))return!0x0;}return!0x1;}function Pt(_0x19b554){return _0x19b554['end']['parent']==_0x19b554['start']['nodeAfter']&&_0x19b554['end']['isAtStart'];}function Gt(_0x11f961,_0x5008b4,_0x20c029,_0x2a736b){const _0xb3627=_0x3fc79f=>!_0x3fc79f['item']['is']('$textProxy')&&!_0x2a736b['isObject'](_0x3fc79f['item']),_0x4f828f=_0x11f961['start']['getLastMatchingPosition'](_0xb3627),_0x35ef9e=_0x11f961['end']['getLastMatchingPosition'](_0xb3627,{'direction':'backward'});return(!_0x11f961['start']['isEqual'](_0x4f828f)||!_0x11f961['end']['isEqual'](_0x35ef9e))&&(_0x4f828f['isBefore'](_0x35ef9e)?_0x20c029['updateMarker'](_0x5008b4,{'range':_0x20c029['createRange'](_0x4f828f,_0x35ef9e)}):_0x20c029['removeMarker'](_0x5008b4),!0x0);}function Lt(_0x3ff2bc){return _0x51422e(_0x3ff2bc);}function Jt(_0x21f5eb){const _0x50c206=_0x21f5eb['start']['nodeAfter'];return _0x50c206&&_0x50c206['is']('element');}function Kt(_0x1fb83c){return Pt(_0x1fb83c)||function(_0x3c0f3d){return _0x3c0f3d['start']['parent']==_0x3c0f3d['end']['nodeBefore']&&_0x3c0f3d['start']['isAtEnd'];}(_0x1fb83c);}function Ht(_0x4181f3,_0x145951){try{const _0x300006=_0x4181f3['getRange']();for(const _0x31fa2d of _0x145951)if(_0x4181f3!==_0x31fa2d&&_0x300006&&_0x300006['isIntersecting'](_0x31fa2d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x3fc991,_0xfc8e0d){return null==_0x3fc991['end']['nodeBefore']&&_0x3fc991['end']['parent']==_0x3fc991['start']['nodeAfter']?zt(_0x3fc991['start']['nodeAfter'],_0xfc8e0d):_0x3fc991;}function zt(_0x42ee3c,_0x2e8dd5){const _0x7ca1aa=_0x2e8dd5['schema']['isObject'](_0x42ee3c)||_0x2e8dd5['schema']['isSelectable'](_0x42ee3c);return _0x2e8dd5['createRange'](_0x2e8dd5['createPositionAt'](_0x42ee3c,'before'),_0x7ca1aa?_0x2e8dd5['createPositionAfter'](_0x42ee3c):_0x2e8dd5['createPositionAt'](_0x42ee3c,'end'));}function Wt(_0x472db1,_0x30e5e0,_0x35fd59,_0x52dc50){return!!Qt(_0x472db1,_0x30e5e0)&&_0x35fd59['end']['isEqual'](_0x52dc50['start']);}function Qt(_0x2688d1,_0x4526f1){if(!_0x2688d1['_isDataLoaded']||!_0x4526f1['_isDataLoaded'])return!0x1;const _0x154a8a=new Set(Object['keys'](_0x2688d1['attributes'])),_0x1f25ea=new Set(Object['keys'](_0x4526f1['attributes']));if(_0x154a8a['delete']('groupId'),_0x1f25ea['delete']('groupId'),0x0==_0x154a8a['size']&&0x0==_0x1f25ea['size'])return!0x0;if(_0x154a8a['size']!=_0x1f25ea['size'])return!0x1;const _0x174d5f={..._0x2688d1['attributes']},_0x189c6e={..._0x4526f1['attributes']};return delete _0x174d5f['groupId'],delete _0x189c6e['groupId'],JSON['stringify'](_0x174d5f)==JSON['stringify'](_0x189c6e);}function Xt(_0x5f960e,_0x69e50e){const _0xbeddfb=Yt(_0x5f960e['attributes']),_0x13d315=Yt(_0x69e50e);if(!_0x5f960e['_isDataLoaded'])return!0x1;for(const _0x72f9b2 of Object['keys'](_0x13d315))if(!_0x3f9778(_0xbeddfb[_0x72f9b2],_0x13d315[_0x72f9b2]))return!0x1;return!0x0;}function Yt(_0x3f45ac){const _0x524a8a=Object['assign']({},_0x3f45ac);return delete _0x524a8a['skipNestingCheck'],delete _0x524a8a['tablePasteChainId'],_0x524a8a;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4ffc3b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33e40f,_0x2d233f,_0x35cd10,_0x450286){super(),this['model']=_0x2d233f,this['view']=_0x35cd10,this['commentThreadController']=_0x450286,this['_editor']=_0x33e40f,this['_acceptCommand']=_0x33e40f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33e40f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x20fcae,_0x20f8b7)=>_0x20fcae||_0x20f8b7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d9494=>_0x4d9494&&this['_editor']['model']['canEditAt'](_0x2d233f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42c6df=>_0x42c6df&&this['_editor']['model']['canEditAt'](_0x2d233f['getRanges']())),this['_pendingAction']=null,_0x35cd10['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x35cd10,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x35cd10,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x35cd10,'change:isDirty',()=>{_0x35cd10['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 _0x1929a2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1929a2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x237d07{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3f4479,_0xb29f7b,_0x4becd9,_0x2b44d9){super(_0x3f4479),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x496d48(_0x3f4479,o(_0x3f4479,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xb29f7b['authoredAt']),this['bind']('authoredAt')['to'](_0xb29f7b),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',_0xb29f7b,'authoredAt',this,'descriptionParts',(_0x1dd4f9,_0x8f74af,_0x122cc8)=>{const _0x54b805=_0x122cc8['map'](_0x10c445=>ls(_0x10c445['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1dd4f9-0x1,_0xb29f7b['author']['name'],_0x8f74af?_0x2b44d9['formatDateTime'](_0x8f74af):'',new DOMParser()['parseFromString'](_0x54b805,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1dcd16(),this['focusTracker']=new _0x2bcccf(),this['keystrokes']=new _0x59df8b(),this['focusCycler']=new _0x4bc59e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5bde4f=>_0x5bde4f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xb29f7b,this['_localUser']=_0x4becd9,this['_config']=_0x2b44d9,_0x2b44d9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2e09af(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a3461}=this['_config'];this['commentsListView']=new _0x5a3461(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',_0x550aa6=>_0x550aa6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x243dff,_0x6389c8)=>_0x243dff||!!_0x6389c8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x38be1d}=this['_config'],_0x1c2e36=new _0x38be1d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x25aa78=_0x1c2e36['commentInputView'];return _0x1c2e36['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x25aa78,'value',(_0x8fe49c,_0x1fce54,_0x1de177)=>!!_0x1de177||_0x8fe49c&&!_0x1fce54),_0x25aa78['on']('submit',(_0x4bdf30,_0x4f298c)=>{this['fire']('addComment',_0x4f298c),_0x25aa78['editor']['setData']('');}),_0x25aa78['on']('cancel',()=>this['focus']()),_0x25aa78['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1c2e36;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xc94c9,_0x51f6dd,_0x2ab1ee,_0x137618){super(_0xc94c9,_0x51f6dd,_0x2ab1ee,_0x137618),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38a33e=>_0x38a33e&&_0x38a33e[0x0]?_0x38a33e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x16a8eb,_0x146dc7)=>{let _0x5a5e3c='';for(const _0x5d7b62 of _0x16a8eb)_0x5a5e3c+='<p>'+ls(_0x5d7b62['content'],_0x5d7b62['color'])+'</p>';return _0x146dc7?_0x5a5e3c:_0x2d6735(_0x5a5e3c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x137618['SuggestionView'](_0xc94c9,_0x51f6dd,{'formatDateTime':_0x137618['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 _0x275ada=this['bindTemplate'],_0x1f0aa9=[this['suggestionView']];return this['commentsListView']&&_0x1f0aa9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f0aa9['push'](this['commentThreadInputView']),_0x1f0aa9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x275ada['if']('isActive','ck-suggestion-wrapper--active'),_0x275ada['to']('type',_0x3d3acc=>'ck-suggestion-'+_0x3d3acc),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':_0x275ada['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f0aa9};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x237d07{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x8a9ed6,_0x4b2b0a,_0x443fcc){super(_0x8a9ed6),this['_model']=_0x4b2b0a,this['_config']=_0x443fcc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4b2b0a),this['acceptButton']=this['_createButton'](o(_0x8a9ed6,'Accept\x20suggestion'),_0x4a5080,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x8a9ed6,'Discard\x20suggestion'),_0x503c9a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a5b3a(_0x8a9ed6,_0x4b2b0a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1dcd16([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2bcccf(),this['keystrokes']=new _0x59df8b(),this['focusCycler']=new _0x4bc59e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f2863=>_0x3f2863['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1534bf=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1534bf['innerHTML']=this['description'],this['on']('change:description',(_0x2b1bee,_0x2b8c90,_0x3b589c)=>{_0x1534bf['innerHTML']=_0x3b589c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x342d81=this['bindTemplate'],_0xfe01b0=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x342d81['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x342d81['to']('authoredAt',_0x3eccb=>this['_config']['formatDateTime'](_0x3eccb))}]}]},{'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']&&_0xfe01b0['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':_0xfe01b0}]};}['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'](_0x4c16c2,_0x50a716,_0x477a2a,_0x36c46b,_0x588956){const _0x471327=new _0x5b4b3e(this['locale']);return _0x471327['set']({'label':_0x4c16c2,'icon':_0x50a716,'tooltip':!0x0,'tooltipPosition':_0x588956}),_0x471327['extendTemplate']({'attributes':{'class':_0x477a2a}}),_0x471327['on']('execute',()=>{this['fire'](_0x36c46b,this['_model']['id']);}),_0x471327;}['_setupKeyboardNavigation'](){const _0x4c00e9=this['element'];this['keystrokes']['listenTo'](_0x4c00e9);for(const _0x42dfec of this['focusables'])this['focusTracker']['add'](_0x42dfec['element']),this['keystrokes']['listenTo'](_0x42dfec['element']);this['keystrokes']['set']('enter',(_0x56cb5d,_0x1980a6)=>{_0x4c00e9===_0x56cb5d['target']&&(this['focusCycler']['focusFirst'](),_0x1980a6());}),this['keystrokes']['set']('esc',(_0x52c0b0,_0x2c0491)=>{_0x4c00e9!==_0x52c0b0['target']&&(this['focus'](),_0x2c0491());});}}class u extends _0xfd4522{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x41af33,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c95bf){super(_0x5c95bf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27d4b3=this['editor']['config'];_0x27d4b3['define']('trackChanges.SuggestionThreadView',fe),_0x27d4b3['define']('trackChanges.SuggestionView',we),_0x27d4b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27d4b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x49be31,_0x2fb487){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4eb746,_0xf36746]of this['_handleControllerBuffer']){const _0x4fb080=this['_suggestionToController']['has'](_0x4eb746);_0x4fb080||_0xf36746?_0x4fb080&&_0xf36746&&this['_destroyController'](_0x4eb746):this['_initializeController'](_0x4eb746);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x49be31,_0x2fb487);}['init'](){const _0x119ae5=this['editor'],_0xec48ab=_0x119ae5['plugins']['get']('TrackChangesEditing'),_0x1cdaf5=_0x119ae5['plugins']['get']('Annotations'),_0x281911=_0x119ae5['plugins']['get']('EditorAnnotations'),_0x39ce4a=_0x119ae5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x281911['addSourceCollector'](()=>{const _0x41c237=[];for(const [_0x1307b2,_0x5ed68a]of Array['from'](this['_suggestionToController'])){const _0x574f66=_0x1307b2['getAllAdjacentSuggestions'](),_0x5e6af1=[];for(const _0x2f3f62 of _0x574f66){if(!_0x2f3f62['isInContent'])continue;if(_0x2f3f62['isMultiRange']){_0x5e6af1['push'](..._0x2f3f62['getRanges']());continue;}const _0x1e48e8=_0x2f3f62['getFirstRange']();if(_0x5e6af1['length']>0x0){const _0x4b8f99=_0x5e6af1[0x0]['getJoined'](_0x1e48e8);if(_0x4b8f99){_0x5e6af1[0x0]=_0x4b8f99;continue;}}_0x5e6af1['push'](_0x1e48e8);}_0x41c237['push']([_0x5ed68a['view'],_0x5e6af1]);}return _0x41c237;}),this['listenTo'](_0xec48ab,'suggestionLoaded',(_0x49484a,_0x23c0cb)=>{this['listenTo'](_0x23c0cb,'change:previous',(_0x500591,_0x5b0d5e,_0x2aee91,_0x56f13e)=>{_0x23c0cb['isInContent']&&(null==_0x2aee91?(this['_updateController'](_0x56f13e['head']),this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x1)):(this['_updateController'](_0x2aee91['head']),null==_0x56f13e&&this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x0)));}),null!==_0x23c0cb['previous']?this['_updateController'](_0x23c0cb['head']):this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x1);}),this['listenTo'](_0xec48ab,'suggestionUnloaded',(_0x1f205f,_0x5e84d8,_0x16e443)=>{this['stopListening'](_0x5e84d8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5e84d8),this['_suggestionToController']['has'](_0x5e84d8)&&this['_destroyController'](_0x5e84d8),_0x16e443&&this['_updateController'](_0x16e443['head']);}),this['listenTo'](_0xec48ab,'suggestionChanged',(_0x354456,_0x1e362c)=>{this['_updateController'](_0x1e362c);}),this['listenTo'](_0x1cdaf5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39ce4a,'addComment',(_0x4dc572,{threadId:_0x156cb2,isFromAdapter:_0x111417})=>{if(_0x111417||!_0xec48ab['hasSuggestion'](_0x156cb2))return;const _0x13b85=_0xec48ab['getSuggestion'](_0x156cb2);this['_suggestionToController']['get'](_0x13b85)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28143a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c2052;for(const _0x57187d in _0x28143a){const _0x309ce5=_0x57187d,_0x336761=_0x28143a[_0x309ce5];if('trackChangesLicenseKeyValid'==_0x336761||'trackChangesLicenseKeyInvalid'==_0x336761||'trackChangesLicenseKeyExpired'==_0x336761||'trackChangesLicenseKeyDomainLimit'==_0x336761||'trackChangesLicenseKeyNotAllowed'==_0x336761||'trackChangesLicenseKeyEvaluationLimit'==_0x336761||'trackChangesLicenseKeyTrialLimit'==_0x336761||'trackChangesLicenseKeyUsageLimit'==_0x336761){delete _0x28143a[_0x309ce5],_0x2c2052=_0x336761,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c2052&&_0x28143a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c2052&&_0x28143a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c2052&&_0x28143a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2aa79b){const _0x3a9bce=this['_suggestionToController']['get'](_0x2aa79b);if(!_0x3a9bce)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3a9bce['view'])||null;}['getSuggestionForAnnotation'](_0x36da0f){const _0x9cbbff=this['_viewToController']['get'](_0x36da0f['innerView']);return _0x9cbbff?_0x9cbbff['model']:null;}['_refreshActiveMarkers'](){const _0x52715a=this['editor']['plugins']['get']('Annotations'),_0x520f92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d70c0=Array['from'](_0x52715a['activeAnnotations'],_0x5d096c=>_0x5d096c['innerView'])['filter'](_0xe201fb=>this['_viewToController']['has'](_0xe201fb)),_0xe04cfb=[];for(const _0x442972 of _0x5d70c0){const _0x10b5c7=this['_viewToController']['get'](_0x442972)['model']['getAllAdjacentSuggestions']();_0xe04cfb['push'](..._0x10b5c7['reduce']((_0x5098db,_0x274368)=>[..._0x5098db,..._0x274368['getMarkerNames']()],[]));}_0x520f92['activeMarkers']=_0xe04cfb;}['_addUIComponentsToFactory'](){const _0x591637=this['editor'],_0x1ee1d7=_0x591637['locale'],_0x198a55=o(_0x1ee1d7,'Track\x20changes'),_0x293821=new _0x49a3a5([{'type':'switchbutton','model':new _0x51ccc6({'withText':!0x0,'isToggleable':!0x0,'label':_0x198a55,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x591637['plugins']['has']('TrackChangesPreview')&&_0x293821['addMany']([{'type':'separator'},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x583ba5 of _0x293821)if(ke(_0x583ba5)){const _0x5ec79c=_0x591637['commands']['get'](_0x583ba5['model']['commandName']);_0x583ba5['model']['bind']('isOn','isEnabled')['to'](_0x5ec79c,'value','isEnabled');}_0x591637['ui']['componentFactory']['add']('trackChanges',_0x2358d9=>this['_createToolbarButton'](_0x2358d9,_0x293821,_0x198a55)),_0x591637['ui']['componentFactory']['add']('menuBar:trackChanges',_0x13731c=>this['_createMenuBarMenu'](_0x13731c,_0x293821,_0x198a55));}['_createToolbarButton'](_0x2fe419,_0x19e7e8,_0x22b65b){const _0x18c9ce=_0x1a7bc1(_0x2fe419,_0x2b4076),_0x516558=this['editor']['commands']['get']('trackChanges');_0x18c9ce['buttonView']['set']({'tooltip':_0x22b65b,'label':_0x22b65b,'icon':_0x549e4c}),_0x18c9ce['buttonView']['bind']('isOn')['to'](_0x516558,'value'),_0x18c9ce['buttonView']['on']('execute',()=>{_0x516558['execute'](),this['editor']['editing']['view']['focus']();}),_0x57c9fb(_0x18c9ce,_0x19e7e8,{'role':'menu'});const _0x477b5d=[];for(const _0x376209 of _0x19e7e8)ke(_0x376209)&&_0x477b5d['push'](this['editor']['commands']['get'](_0x376209['model']['commandName']));const _0x5e388b=_0x18c9ce['buttonView'];return _0x5e388b['actionView']['unbind']('isEnabled'),_0x5e388b['arrowView']['unbind']('isEnabled'),_0x5e388b['actionView']['bind']('isEnabled')['to'](_0x516558,'isEnabled'),_0x5e388b['arrowView']['bind']('isEnabled')['toMany'](_0x477b5d,'isEnabled',(..._0x70b5a7)=>_0x70b5a7['some'](_0x16e18f=>_0x16e18f)),_0x18c9ce['on']('execute',_0x408dd5=>{this['editor']['execute'](_0x408dd5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18c9ce;}['_createMenuBarMenu'](_0x58282a,_0x379858,_0xc98ffc){const _0x27643f=new _0x2025e3(_0x58282a),_0x2b4d77=this['editor']['commands']['get']('trackChanges');_0x27643f['buttonView']['set']({'label':_0xc98ffc,'icon':_0x549e4c});const _0x8ddbd8=new _0x39e983(_0x58282a);for(const _0x4959c2 of _0x379858){if('separator'==_0x4959c2['type']){_0x8ddbd8['items']['add'](new _0x20cbf3(_0x58282a));continue;}const _0x236427=new _0x4d7d8a(_0x58282a,_0x27643f),_0x44938c=new _0x351920(_0x58282a),_0x4e30c6=_0x4959c2['model'];_0x44938c['bind'](...Object['keys'](_0x4e30c6))['to'](_0x4e30c6),_0x44938c['delegate']('execute')['to'](_0x27643f),_0x44938c['on']('execute',()=>{this['editor']['execute'](_0x4e30c6['commandName']),this['editor']['editing']['view']['focus']();}),_0x236427['children']['add'](_0x44938c),_0x8ddbd8['items']['add'](_0x236427);}return _0x27643f['bind']('isEnabled')['to'](_0x2b4d77,'isEnabled'),_0x27643f['panelView']['children']['add'](_0x8ddbd8),_0x27643f;}['_initializeController'](_0xe04006){const _0x3a20af=this['editor'],_0x4e8e87=_0x3a20af['config'],_0x46b87e=_0x3a20af['plugins']['get']('Annotations'),_0x1b483c=_0x3a20af['plugins']['get']('CommentsRepository'),_0x2d4599=_0x3a20af['plugins']['get']('EditorAnnotations'),_0x54e4fe=_0x3a20af['plugins']['get'](_0x41af33)['me'],_0x2ea5e2=_0x4e8e87['get']('trackChanges')['SuggestionThreadView'],_0x4eea80=_0x4e8e87['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5e0275,CommentThreadInputView:_0x5c945c}=_0x3a20af['plugins']['get']('CommentsUI');let _0x49ed52,_0x666ca7,_0xc50f9;this['_annotationViews']['has'](_0xe04006['id'])?(_0x666ca7=this['_annotationViews']['get'](_0xe04006['id']),_0x49ed52=_0x666ca7['mainView']):(_0x49ed52=new _0x2ea5e2(_0x3a20af['locale'],_0xe04006,_0x54e4fe,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4e8e87['get']('comments.editorConfig'),'licenseKey':_0x4e8e87['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4e8e87['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e8e87['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4e8e87['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x204812(_0x4e8e87['get']('locale'),_0x3a20af['locale']),'CommentView':_0x4e8e87['get']('comments')['CommentView'],'CommentsListView':_0x5e0275,'CommentThreadInputView':_0x5c945c,'SuggestionView':_0x4eea80}),_0x49ed52['suggestionView']['acceptButton']['on']('execute',()=>{_0x3a20af['editing']['view']['focus']();}),_0x49ed52['suggestionView']['discardButton']['on']('execute',()=>{_0x3a20af['editing']['view']['focus']();}),_0x666ca7=_0x46b87e['createAnnotationView'](this['editor']['locale'],_0x49ed52),_0x666ca7['bind']('isDirty')['to'](_0x49ed52,'isDirty'),_0x666ca7['bind']('length')['to'](_0x49ed52),_0x666ca7['bind']('type')['to'](_0x49ed52,'type',_0x2828dc=>'suggestion-'+_0x2828dc),_0x49ed52['on']('escape',()=>{_0xc50f9['fire']('escape');}),this['_annotationViews']['set'](_0xe04006['id'],_0x666ca7));const _0xbbe4a0=_0x1b483c['createCommentThreadController'](_0xe04006['commentThread'],_0x49ed52),_0x3293d5=new pe(_0x3a20af,_0xe04006,_0x49ed52,_0xbbe4a0),_0x16d5cb=_0xe04006['getAllAdjacentSuggestions']()['filter'](_0x24a523=>_0x24a523['isInContent']);_0x49ed52['descriptionParts']=_0x3a20af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16d5cb),this['_suggestionToController']['set'](_0xe04006,_0x3293d5),this['_viewToController']['set'](_0x49ed52,_0x3293d5);const _0xa48a3f=()=>{const _0xfec470=[],_0x542c52=_0xe04006['getAllAdjacentSuggestions']()['filter'](_0x36d6ea=>_0x36d6ea['isInContent']);for(const _0x8e968c of _0x542c52)_0xfec470['push'](..._0x8e968c['getMarkers']());return _0x49b990(_0x3a20af['editing'],_0xfec470);};_0xc50f9=_0x46b87e['createAnnotation']({'view':_0x666ca7,'target':_0xa48a3f,'type':()=>'suggestion-'+_0x3293d5['view']['type'],'isVisible':!!_0xa48a3f()}),_0x1b483c['_bindAnnotationToEditors'](_0x49ed52,_0xc50f9),_0x46b87e['add'](_0xc50f9),_0x2d4599['registerAnnotation'](_0xc50f9);}['_destroyController'](_0x56ebbd){const _0x35ba8f=this['editor']['plugins']['get']('CommentsRepository'),_0x45fbbd=this['editor']['plugins']['get']('Annotations'),_0x34e6eb=this['_suggestionToController']['get'](_0x56ebbd),_0x16c436=_0x34e6eb['view'],_0x464d6f=_0x45fbbd['getByInnerView'](_0x16c436);_0x35ba8f['_unbindEditors'](_0x16c436),_0x464d6f&&_0x45fbbd['remove'](_0x464d6f),this['_suggestionToController']['delete'](_0x56ebbd),this['_viewToController']['delete'](_0x16c436),_0x34e6eb['destroy']();}['_updateController'](_0xc61aa8){if(!_0xc61aa8['isInContent']||!this['_suggestionToController']['has'](_0xc61aa8))return;const _0x52e8bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a270=this['_suggestionToController']['get'](_0xc61aa8),_0x4605dd=_0xc61aa8['getAllAdjacentSuggestions']();_0x17a270['view']['descriptionParts']=_0x52e8bd['descriptionFactory']['getDescriptions'](_0x4605dd);}['destroy'](){for(const _0x1c84ce of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c84ce);for(const _0x1094cf of this['_annotationViews']['values']())_0x1094cf['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xc79cf5){return'model'in _0xc79cf5;}class Fe extends _0xfd4522{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x265461){this['editor']['plugins']['get'](d)['adapter']=_0x265461;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1f5d8f){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1f5d8f);}['getSuggestions']({skipNotAttached:_0x5e5e3c=!0x1,toJSON:_0x4b0144=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5e5e3c,'toJSON':_0x4b0144});}['getSuggestion'](_0xa45c9b){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xa45c9b);}}const p=['Pagination'];class re extends _0xfd4522{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xb315f8=this['editor'];if(_0xb315f8['config']['define']('trackChangesData.editorCreator',_0x13d06b=>{const _0x16d539=_0xb315f8['model']['document']['getRootNames']()['reduce']((_0x38290d,_0x2c1477)=>(_0x38290d[_0x2c1477]='',_0x38290d),{});return _0xb315f8['constructor']['create'](_0x16d539,_0x13d06b);}),'function'!=typeof _0xb315f8['config']['get']('trackChangesData')['editorCreator'])throw new _0x5d208c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44684e){return P(this['editor'],!0x0,_0x44684e);}['getDataWithDiscardedSuggestions'](_0x4f8bcb){return P(this['editor'],!0x1,_0x4f8bcb);}}class Ge extends _0xfd4522{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x402f8c){function _0x419dcc(_0x37590e){return _0x37590e['map'](_0x12bc54=>String['fromCharCode'](_0x12bc54))['join']('');}super(_0x402f8c),this['result']='end',_0x402f8c[_0x419dcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x419dcc([0x76,0x69,0x65,0x77])][_0x419dcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x419dcc([0x61,0x75,0x74,0x6f]),_0x402f8c[_0x419dcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x419dcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x419dcc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x419dcc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x419dcc([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 He(_0x15ae77){return void 0x0!==_0x15ae77['getRootsAttributes'];}async function P(_0x262b44,_0x430175,_0x1f274b){const _0x8c7a49=_0x518498(_0x262b44,p);_0x8c7a49['plugins']['push'](d,Ge),_0x8c7a49['rootsAttributes']=He(_0x262b44)?_0x262b44['getRootsAttributes']():void 0x0;const _0xd77f13=document['createDocumentFragment'](),_0x1114a9=_0x262b44['config']['get']('trackChangesData')['editorCreator'],_0x57f0f4=await _0x1114a9(_0x8c7a49,()=>function(_0x6c78af){const _0x3a1a41=document['createElement']('div');return _0x6c78af['appendChild'](_0x3a1a41),_0x3a1a41;}(_0xd77f13));!function(_0xced8dd,_0x374de0){const _0x518f0c=_0xced8dd['model']['document']['getRootNames']()['reduce']((_0x10f4f5,_0x3d993b)=>(_0x10f4f5[_0x3d993b]=_0xced8dd['data']['get']({'rootName':_0x3d993b}),_0x10f4f5),{}),_0x5b65ea=_0xced8dd['plugins']['get']('Users')['users']['map'](_0x44ce8b=>({'id':_0x44ce8b['id'],'name':_0x44ce8b['name']})),_0x15733e=_0xced8dd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x262e7b=_0xced8dd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd3003d=_0x374de0['plugins']['get']('Users'),_0x1cebfe=_0x374de0['plugins']['get']('TrackChangesEditing'),_0x1a1dd9=_0x374de0['plugins']['get']('CommentsRepository');for(const _0x419c91 of _0x1a1dd9['getCommentThreads']())_0x419c91['remove']();for(const _0x5e79fb of _0x5b65ea)_0xd3003d['getUser'](_0x5e79fb['id'])||_0xd3003d['addUser'](_0x5e79fb);_0xd3003d['me']||_0xd3003d['useAnonymousUser']();for(const _0x57e186 of _0x262e7b)_0x1a1dd9['addCommentThread'](_0x57e186);for(const _0xae43b0 of _0x15733e)_0x1cebfe['addSuggestionData'](_0xae43b0);_0x374de0['data']['set'](_0x518f0c);}(_0x262b44,_0x57f0f4),_0x57f0f4['execute'](_0x430175?'acceptAllSuggestions':'discardAllSuggestions');const _0x32847d=He(_0x57f0f4)?_0x57f0f4['getFullData'](_0x1f274b):_0x57f0f4['data']['get'](_0x1f274b);return await _0x57f0f4['destroy'](),_0x32847d;}class Me extends _0x237d07{['options'];constructor(_0x4ca29,_0x32f80d){super(_0x4ca29),this['options']=_0x32f80d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x436724,_0x3cb2ac){if(!this['element'])return;const _0x52e010=[];for(const [_0xaeaffa,_0xb5e0ea]of _0x436724){const _0x2c1d3a=document['createElement']('div');_0x2c1d3a['setAttribute']('data-ck-root-name',_0xaeaffa),_0x2c1d3a['className']=_0xb5e0ea['classes']+'\x20ck-track-changes-preview__root-container',_0x2c1d3a['innerHTML']=_0xb5e0ea['content'],_0x52e010['push'](_0x2c1d3a);}_0x3cb2ac(this['element'],_0x52e010),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1366e1{constructor(_0x26810a){super(_0x26810a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17844e=this['editor'],_0xd4583c=_0x17844e['locale'],_0x26d086=_0x17844e['plugins']['get']('Dialog');let _0x37716b;const _0x351a53=function(_0x51bac1){const _0x1b3460={};if('editables'in _0x51bac1['ui']['view']){for(const [_0x4b0f9b,_0x18f329]of Object['entries'](_0x51bac1['ui']['view']['editables']))_0x1b3460[_0x4b0f9b]=_0x18f329['element'];}else _0x1b3460[_0x51bac1['model']['document']['getRootNames']()[0x0]]=_0x51bac1['ui']['view']['editable']['element'];return _0x1b3460;}(_0x17844e),_0x2e73da=function(_0x5ed8e7){let _0x4ca3cc=0x0;for(const _0x1c0c13 of Object['values'](_0x5ed8e7))_0x4ca3cc=Math['max'](_0x4ca3cc,_0x1c0c13['getBoundingClientRect']()['width']);let _0xd73d07=0x0;for(const _0x25ba8f of Object['values'](_0x5ed8e7))_0xd73d07+=_0x25ba8f['getBoundingClientRect']()['height'];const _0x9edf9d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x233106=Math['min'](_0xd73d07,_0x9edf9d);return{'width':_0x4ca3cc,'height':_0x233106};}(_0x351a53);_0x26d086['show']({'id':'finalContentPreview','title':o(_0xd4583c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xd4583c,{'dialogRects':_0x2e73da}),'onHide':()=>{_0x37716b['detachFromDom']();},'onShow':()=>{_0x17844e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1d15da=>{const _0x53a1aa=this['_standarizeRootsData'](_0x1d15da,_0x17844e,_0x351a53);_0x26d086['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x53a1aa,_0x17844e['config']['get']('trackChanges.preview.renderFunction'));}),_0x37716b=new _0x3f81a3(_0xd4583c,[_0x26d086['view']]),_0x37716b['attachToDom'](),_0x37716b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17844e['once']('destroy',()=>{_0x37716b['detachFromDom']();});const _0x239b39=_0x26d086['view']['headerView']['class'];_0x26d086['view']['headerView']['class']=_0x239b39?_0x239b39+'\x20ck-reset_all':'ck-reset_all',_0x26d086['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x26d086['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x559a61=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4ae116=_0x559a61['previewMode'],_0x349e4d={};if('$labels'===_0x4ae116){for(const _0x2e9e53 of _0x559a61['getMergeFieldsIds']())_0x349e4d[_0x2e9e53]=_0x559a61['getLabel'](_0x2e9e53)||_0x2e9e53;}else{const _0x46109a='$defaultValues'===_0x4ae116?_0x559a61['getDefaultValues']():_0x559a61['getDataSetValues'](_0x4ae116,!0x0);for(const _0x2ab319 of Object['entries'](_0x46109a)){const [_0x45a786,_0x472b30]=_0x2ab319;_0x349e4d[_0x45a786]=null!==_0x472b30?_0x472b30:_0x559a61['getLabel'](_0x45a786)||_0x45a786;}}return{'mergeFieldsData':_0x349e4d};}['_standarizeRootsData'](_0x3add9f,_0xf0cb5a,_0x3cd084){let _0x3edff5;if('string'==typeof _0x3add9f){const _0x47e880=_0xf0cb5a['model']['document']['getRootNames']()[0x0];_0x3edff5={[_0x47e880]:_0x3add9f};}else _0x3edff5=_0x3add9f;const _0x5583f9=this['_fixMediaEmbeds'](_0x3edff5,_0xf0cb5a),_0x10f0d3=function(_0x15abb0,_0x4998e1){for(const [_0x817542,_0x2378d7]of _0x15abb0)_0x2378d7['classes']=_0x4998e1[_0x817542]['classList']['value']['replace']('ck-focused','');return _0x15abb0;}(this['_sortRoots'](_0xf0cb5a)['reduce']((_0x342d94,_0x3bd123)=>(_0x342d94['push']([_0x3bd123,{'content':_0x5583f9[_0x3bd123],'classes':''}]),_0x342d94),[]),_0x3cd084);return _0x10f0d3;}['_fixMediaEmbeds'](_0x1d258c,_0x33fc77){if(!_0x33fc77['plugins']['has']('MediaEmbedEditing'))return _0x1d258c;const _0x916ca=_0x33fc77['plugins']['get']('MediaEmbedEditing');for(const [_0x573830,_0x451ae5]of Object['entries'](_0x1d258c)){const _0x5e7972=document['createElement']('div');_0x5e7972['innerHTML']=_0x451ae5,(_0x5e7972['querySelectorAll']('figure.media')['forEach'](_0x84925c=>{const _0x2b4844=_0x84925c['querySelector']('oembed');if(_0x2b4844){const _0x283be6=_0x2b4844['getAttribute']('url');if(_0x283be6){const _0x5e24dc=_0x916ca['registry']['getMediaViewElement'](new _0x21e70c(_0x33fc77['editing']['view']['document']),_0x283be6,{'elementName':'','renderForEditingView':!0x0}),_0x108b61=document['createElement']('div');_0x108b61['classList']['add']('ck-media__wrapper'),_0x5e24dc['render'](_0x108b61,_0x33fc77['editing']['view']['domConverter']),_0x2b4844['replaceWith'](_0x108b61);}}}),_0x1d258c[_0x573830]=_0x5e7972['innerHTML']);}return _0x1d258c;}['_sortRoots'](_0x43ea68){if(!function(_0x2cebfd){return void 0x0!==_0x2cebfd['getRootsAttributes'];}(_0x43ea68))return _0x43ea68['model']['document']['getRootNames']();const _0x3ebdfb=[],_0x22c6aa=new Map();for(const _0x2d790a of _0x43ea68['model']['document']['getRootNames']()){const _0x1cfd36=_0x43ea68['editing']['view']['getDomRoot'](_0x2d790a)['getClientRects']()['item'](0x0);_0x3ebdfb['push'](_0x2d790a),_0x22c6aa['set'](_0x2d790a,_0x1cfd36);}return _0x3ebdfb['sort']((_0xf15354,_0x4ccf2b)=>{const _0x26f986=_0x22c6aa['get'](_0xf15354),_0x2547e1=_0x22c6aa['get'](_0x4ccf2b);return _0x26f986['y']-_0x2547e1['y']||_0x26f986['x']-_0x2547e1['x'];}),_0x3ebdfb;}}class $e extends _0xfd4522{static get['requires'](){return[re,_0x5914c5];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46b3df){super(_0x46b3df),_0x46b3df['commands']['add']('previewFinalContent',new te(this['editor'])),_0x46b3df['config']['define']('trackChanges.preview.renderFunction',(_0x24226b,_0x40f45a)=>{for(const _0x392e89 of _0x40f45a)_0x24226b['appendChild'](_0x392e89);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0xfbc864,Plugin as _0x4540bb,PendingActions as _0x5c1ee4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x193da4,ObservableMixin as _0xc4e805,uid as _0x25e25c,priorities as _0x513be7,insertToPriorityArray as _0x343f95,toArray as _0x25b920,logWarning as _0x19ff43,getEnvKeystrokeText as _0x125686,FocusTracker as _0xb0f338,KeystrokeHandler as _0x68ee90,Collection as _0x46d9b6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2acf8e,IconCancel as _0xd21ebd,IconTrackChanges as _0x34d623}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x27e203,View as _0x570be4,ViewCollection as _0x2ad58a,FocusCycler as _0x2e7fb5,UIModel as _0x4f1cfe,createDropdown as _0x4c3137,SplitButtonView as _0x331a62,addListToDropdown as _0x1074de,MenuBarMenuView as _0x1c17e8,MenuBarMenuListView as _0x1d8891,ListSeparatorView as _0xbe467e,MenuBarMenuListItemView as _0x131968,MenuBarMenuListItemButtonView as _0x1e3329,BodyCollection as _0x4482d2,Dialog as _0x498133}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3654ac,hashObject as _0x3e714e,surroundingMarkersDetector as _0x35da99,FOCUS_ANNOTATION_KEYSTROKE as _0x2470ef,AriaDescriptionView as _0x26f3a9,setupThreadKeyboardNavigation as _0x562313,trimHtml as _0x44b494,UserView as _0x56a9f8,LateFocusButtonView as _0x410427,getDateTimeFormatter as _0x4b2720,getAllMarkersDomElementsSorted as _0x4af161,sanitizeEditorConfig as _0x25bd24}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x7a680a,ModelLiveRange as _0x2e6917,ModelLivePosition as _0x1c570c,ViewDowncastWriter as _0x5557c0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x257ea1,toWidget as _0x255e2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3931ab,set as _0x2bf2ef,isEqual as _0x5da56d,unset as _0x4804ed,omit as Ut}from'es-toolkit/compat';import{Delete as _0x55c447,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x520bbe}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xb86953}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0xfbc864{['_enabledCommands'];constructor(_0x2c115a,_0x2d605b){super(_0x2c115a),this['_enabledCommands']=_0x2d605b,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 _0x43826c of this['editor']['commands']['commands']())_0x43826c['affectsData']&&!this['_enabledCommands']['has'](_0x43826c)&&_0x43826c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe166fd of this['editor']['commands']['commands']())_0xe166fd['affectsData']&&!this['_enabledCommands']['has'](_0xe166fd)&&_0xe166fd['clearForceDisabled']('TrackChangesCommand');}}class D extends _0xfbc864{['_suggestions'];constructor(_0xf40678,_0x109a6e){super(_0xf40678),this['_suggestions']=_0x109a6e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x27566c){const _0x13144e=this['_suggestions']['get'](_0x27566c);if(!_0x13144e)throw new _0x193da4('track-changes-accept-suggestion-not-found',this);const _0x1f35b7=_0x13144e['getRanges']();this['editor']['model']['canEditAt'](_0x1f35b7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x13144e);}}class $ extends _0xfbc864{['_suggestions'];constructor(_0x1e2ab8,_0x566776){super(_0x1e2ab8),this['_suggestions']=_0x566776,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x588558){const _0x3ddaa1=this['_suggestions']['get'](_0x588558);if(!_0x3ddaa1)throw new _0x193da4('track-changes-discard-suggestion-not-found',this);const _0x147fca=_0x3ddaa1['getRanges']();this['editor']['model']['canEditAt'](_0x147fca)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3ddaa1);}}function ls(_0x181810,_0x5590ee){let _0x5f6cd2='';return _0x5f6cd2+=_0x181810['split']('*')['map']((_0xf34006,_0x355988)=>_0x355988%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0xf34006)+'</span>':Zt(_0xf34006))['join'](''),_0x5590ee&&(_0x5f6cd2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5590ee['value']+'\x22\x20title=\x22'+_0x5590ee['title']+'\x22></span>'),_0x5f6cd2;}function Zt(_0x496e4e){const _0x345cb5=document['createElement']('span');return _0x345cb5['innerText']=_0x496e4e,_0x345cb5['innerHTML'];}function ts(_0x461bc2){return _0x461bc2['sort']((_0x46db88,_0x28e83b)=>'attribute'===_0x46db88['type']&&'attribute'!==_0x28e83b['type']?-0x1:'attribute'!==_0x46db88['type']&&'attribute'===_0x28e83b['type']?0x1:'deletion'==_0x46db88['type']&&'deletion'!=_0x28e83b['type']?-0x1:'deletion'!=_0x46db88['type']&&'deletion'==_0x28e83b['type']?0x1:0x0);}function to(_0x5788b7,_0x43f90b){let _0x52a2ff,_0x20487c=0x0;const _0x450fb8=[],_0x2c06af=_0x43f90b['schema'];for(;_0x20487c<_0x5788b7['length'];){const _0x9c3154=_0x5788b7[_0x20487c],_0x1357bc=_0x5788b7[_0x20487c+0x1];_0x52a2ff||(_0x52a2ff=_0x43f90b['createPositionBefore'](_0x9c3154)),tn(_0x43f90b,_0x9c3154,_0x1357bc)||(_0x450fb8['push'](_0x43f90b['createRange'](_0x52a2ff,_0x2c06af['isObject'](_0x9c3154)?_0x43f90b['createPositionAfter'](_0x9c3154):_0x43f90b['createPositionAt'](_0x9c3154,'end'))),_0x52a2ff=null),_0x20487c++;}return _0x450fb8;}function tn(_0x1f5161,_0xf6a160,_0x2bcd1b){if(!_0x2bcd1b)return!0x1;const _0x1b4126=_0x1f5161['createPositionAfter'](_0xf6a160),_0x2657ef=_0x1f5161['createPositionBefore'](_0x2bcd1b);return _0x1b4126['isTouching'](_0x2657ef);}function rs(_0x5698d4,_0xf51834,_0x43215f){for(;_0x43215f['length'];){const _0x44384c=_0x43215f['splice'](0x0,0x64);_0x5698d4['change'](()=>{for(const _0x5ae265 of _0x44384c)_0x5ae265['isInContent']&&_0xf51834['execute'](_0x5ae265['id']);});}}class M extends _0xfbc864{['_command'];['_suggestions'];constructor(_0xfd66cb,_0x1e07e7,_0x219580){super(_0xfd66cb),this['_command']=_0x1e07e7,this['_suggestions']=_0x219580,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1fe232=Array['from'](this['_suggestions']['values']())['some'](_0x130972=>_0x130972['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1fe232;}['execute'](){const _0x463871=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3fa1cd of _0x463871){const _0x561b93=_0x3fa1cd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x561b93))return;}rs(this['editor']['model'],this['_command'],_0x463871);}}class B extends _0xfbc864{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x40a4f8,_0x220da3,_0x461916){super(_0x40a4f8),this['_command']=_0x220da3,this['_suggestions']=_0x461916,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a8371=this['editor']['model']['document']['selection'],_0xc1cce6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x31096a,_0x501e8d){const _0x2823bf=Array['from'](_0x31096a['getRanges']()),_0x5418ea=new Set();for(const _0x6a3e5c of _0x501e8d)if(_0x6a3e5c['isInContent']){for(const _0x187c68 of _0x2823bf)for(const _0x1cec8c of _0x6a3e5c['getRanges']())(_0x187c68['isIntersecting'](_0x1cec8c)||_0x31096a['isCollapsed']&&!_0x6a3e5c['isMultiRange']&&_0x6a3e5c['next']&&_0x1cec8c['end']['isTouching'](_0x187c68['start']))&&_0x5418ea['add'](_0x6a3e5c);}return _0x5418ea;}(_0x3a8371,_0xc1cce6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4b9c66=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1fa131 of _0x4b9c66){const _0x2f34b6=_0x1fa131['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f34b6))return;}rs(this['editor']['model'],this['_command'],_0x4b9c66);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc4e805(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x6d7b1a,_0xa98d55){super(),this['id']=_0xa98d55['id'],this['type']=_0xa98d55['type'],this['subType']=_0xa98d55['subType']||null,this['author']=_0xa98d55['author'],this['creator']=_0xa98d55['creator']||_0xa98d55['author'],this['isExternal']=Boolean(_0xa98d55['attributes']&&_0xa98d55['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xa98d55['originalSuggestionId']||null,this['_model']=_0x6d7b1a,this['_onAccept']=_0xa98d55['onAccept'],this['_onDiscard']=_0xa98d55['onDiscard'],this['_onAttributesChange']=_0xa98d55['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xa98d55['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 _0x52e51d=this;for(;_0x52e51d['previous'];)_0x52e51d=_0x52e51d['previous'];return _0x52e51d;}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'](_0x3fad73){this['_markerNames']['add'](_0x3fad73);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x47e69a=>this['_model']['markers']['get'](_0x47e69a))['filter'](_0x29c249=>_0x29c249);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5e5ef4=>{for(const _0x3e1f1d of this['getMarkers']())_0x5e5ef4['removeMarker'](_0x3e1f1d);}),this['_markerNames']['clear']();}['removeMarker'](_0x19a63b){this['_model']['change'](_0x546e77=>{_0x546e77['removeMarker'](_0x19a63b);}),this['_markerNames']['delete'](_0x19a63b);}['addRange'](_0x5d34a1){const _0x5df5f6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5df5f6),this['_model']['change'](_0x4a333e=>{_0x4a333e['addMarker'](_0x5df5f6,{'range':_0x5d34a1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x47a096){for(const _0x2c3ad5 of this['getRanges']())if(_0x2c3ad5['isIntersecting'](_0x47a096))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x596c26=>_0x596c26['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d6936,_0x5aa0c)=>[..._0x3d6936,..._0x5aa0c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x351352=this['getRanges']();if(0x1!=_0x351352['length'])return null;const _0x210e9b=_0x351352[0x0],_0x28603f=_0x210e9b['start']['nodeAfter'],_0x4870b0=_0x210e9b['end']['nodeBefore'];return _0x28603f instanceof _0x7a680a?_0x28603f!=_0x4870b0?null:_0x28603f: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 _0x4ccfe0=[];let _0x1efbca=this['head'];for(;_0x1efbca;)_0x4ccfe0['push'](_0x1efbca),_0x1efbca=_0x1efbca['next'];return _0x4ccfe0;}['setAttribute'](_0x2573d3,_0xd061e8){const _0x1d0c5d=_0x3931ab(this['attributes']);_0x2bf2ef(_0x1d0c5d,_0x2573d3,_0xd061e8),_0x5da56d(_0x1d0c5d,this['attributes'])||(this['attributes']=_0x1d0c5d,this['_onAttributesChange'](_0x1d0c5d));}['removeAttribute'](_0x1d0538){const _0x2558f9=_0x3931ab(this['attributes']);_0x4804ed(_0x2558f9,_0x1d0538),_0x5da56d(_0x2558f9,this['attributes'])||(this['attributes']=_0x2558f9,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 _0x25e25c()['substr'](0x1,0x5);}}function o(_0x1cf890,_0x2c4551,_0x3fef2d){const _0x37b4c0=_0x1cf890['t'],t=_0x1cf890['t'];switch(_0x2c4551){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x3fef2d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3fef2d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3fef2d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3fef2d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3fef2d);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',_0x3fef2d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3fef2d);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fef2d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3fef2d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3fef2d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3fef2d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3fef2d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3fef2d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3fef2d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3fef2d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3fef2d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3fef2d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3fef2d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3fef2d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3fef2d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3fef2d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3fef2d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3fef2d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3fef2d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3fef2d);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'},_0x3fef2d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3fef2d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3fef2d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3fef2d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3fef2d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3fef2d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3fef2d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3fef2d);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'},_0x3fef2d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3fef2d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3fef2d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3fef2d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3fef2d);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'},_0x3fef2d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3fef2d);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'},_0x3fef2d);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x3fef2d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3fef2d);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'},_0x3fef2d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3fef2d);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'},_0x3fef2d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3fef2d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3fef2d);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'},_0x3fef2d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3fef2d);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 _0x37b4c0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3fef2d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x37b4c0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3fef2d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3fef2d);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'},_0x3fef2d);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'},_0x3fef2d);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'},_0x3fef2d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2c4551;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x474660,_0x2c6da5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x474660,this['_locale']=_0x2c6da5;}['getDescriptions'](_0x133b2a){const _0x458e5e=[],_0x505b09=new Set(),_0x1f96be=new Set();for(let _0x153193=0x0;_0x153193<_0x133b2a['length'];_0x153193++){const _0x15f8ed=_0x133b2a[_0x153193];if(!_0x15f8ed['isInContent'])continue;const _0x978bc9=this['_handleCustomCallbackDescription'](_0x15f8ed);if(_0x978bc9){if(null!=_0x15f8ed['subType']){if(_0x505b09['has'](_0x15f8ed['subType']))continue;_0x505b09['add'](_0x15f8ed['subType']);}_0x458e5e['push'](_0x978bc9);}else{if('attribute'==_0x15f8ed['type']){const _0x3fb5a1=_0x15f8ed['data']['key'];if(_0x1f96be['has'](_0x3fb5a1))continue;_0x1f96be['add'](_0x15f8ed['data']['key']),_0x3fb5a1==m?this['_handleRenameSuggestionDescription'](_0x458e5e,_0x15f8ed):this['_handleAttributeSuggestionDescription'](_0x458e5e,_0x15f8ed);continue;}'insertion'!=_0x15f8ed['type']&&'deletion'!=_0x15f8ed['type']||this['_handleInsertRemoveSuggestionDescription'](_0x458e5e,_0x15f8ed,_0x133b2a[_0x153193+0x1]);}}return this['_resolveDescriptionItems'](_0x458e5e);}['registerDescriptionCallback'](_0x34e343){this['_customCallbacks']['push'](_0x34e343);}['registerElementLabel'](_0x4b7d4e,_0x409c8e,_0x5d13d6=_0x513be7['normal']){'function'==typeof _0x4b7d4e?_0x343f95(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4b7d4e,'label':_0x409c8e,'priority':_0x5d13d6}):this['_itemLabels']['set'](_0x4b7d4e,_0x409c8e);}['registerAttributeLabel'](_0x5b7c41,_0x479d2f){this['_attributeLabels']['set'](_0x5b7c41,_0x479d2f);}['getItemLabel'](_0xa1d16e,_0x1ae322=0x1){let _0x5d6ccd;for(const _0x45e642 of this['_itemLabelsCallbacks'])if(_0x45e642['matchingCallback'](_0xa1d16e)){_0x5d6ccd=_0x45e642['label'];break;}return _0x5d6ccd||(_0x5d6ccd=this['_itemLabels']['get'](_0xa1d16e['name'])),_0x5d6ccd?_0x5d6ccd(_0x1ae322):0x1!==_0x1ae322?_0x1ae322+'\x20'+_0xa1d16e['name']+'s':''+_0xa1d16e['name'];}['_addDescriptionItems'](_0x2a08fe,_0x502211){const _0x5172e2=_0x502211['getFirstRange']()['getWalker'](),_0x107af9='insertion'==_0x502211['type']?'add':'remove';for(const _0x41e221 of _0x5172e2){const _0x3a2f39=_0x41e221['item'],_0x3ef67c=_0x2a08fe[_0x2a08fe['length']-0x1];if(_0x3a2f39['is']('$textProxy'))_0x3ef67c&&_0x3ef67c['type']['indexOf']('Container')>-0x1&&_0x2a08fe['pop'](),_0x3ef67c&&'text'==_0x3ef67c['type']?_0x3ef67c[_0x107af9]+=_0x3a2f39['data']:_0x2a08fe['push']({'type':'text','add':'add'==_0x107af9?_0x3a2f39['data']:'','remove':'remove'==_0x107af9?_0x3a2f39['data']:''});else{if(this['_schema']['isObject'](_0x3a2f39)){const _0x4169e5=_0x3a2f39;if(_0x3ef67c&&_0x3ef67c['type']['indexOf']('Container')>-0x1&&_0x2a08fe['pop'](),'elementEnd'==_0x41e221['type'])continue;_0x3ef67c&&_0x3ef67c['type']==_0x107af9+'Object'&&_0x3ef67c['element']['name']==_0x4169e5['name']?_0x3ef67c['quantity']++:_0x2a08fe['push']({'type':_0x107af9+'Object','element':_0x4169e5,'quantity':0x1}),_0x5172e2['skip'](_0x53b133=>!('elementEnd'==_0x53b133['type']&&_0x53b133['item']==_0x3a2f39));}else{if(this['_schema']['checkChild'](_0x3a2f39,'$text')||_0x3a2f39['is']('element','softBreak')){const _0x33c4a1=_0x3a2f39;if('add'==_0x107af9&&'elementStart'==_0x41e221['type']||'remove'==_0x107af9&&'elementEnd'==_0x41e221['type'])continue;if(_0x3ef67c&&-0x1==_0x3ef67c['type']['indexOf']('Container')){'text'==_0x3ef67c['type']&&(_0x3ef67c[_0x107af9]+='\x0a');continue;}let _0x409ce8;if(_0x409ce8='add'==_0x107af9?_0x33c4a1['nextSibling']&&!this['_schema']['isObject'](_0x33c4a1['nextSibling'])?_0x33c4a1['nextSibling']:null:_0x33c4a1['previousSibling']&&!this['_schema']['isObject'](_0x33c4a1['previousSibling'])?_0x33c4a1['previousSibling']:null,_0x33c4a1['isEmpty']||_0x409ce8&&_0x409ce8['isEmpty']){const _0x15df74=_0x409ce8&&_0x409ce8['isEmpty']?_0x409ce8:_0x33c4a1;_0x3ef67c&&_0x3ef67c['type']==_0x107af9+'EmptyContainer'&&_0x3ef67c['element']['name']==_0x15df74['name']?_0x3ef67c['quantity']++:_0x2a08fe['push']({'type':_0x107af9+'EmptyContainer','element':_0x15df74,'quantity':0x1});}else _0x2a08fe['push']({'type':_0x107af9+'Container','element':_0x33c4a1});}}}}}['_resolveDescriptionItems'](_0x27fae2){const _0x4e6ca1=this['_locale'],_0x4373ba=[],_0x569a4f=[],_0x29ae91=[];for(const _0x197cc9 of _0x27fae2)switch(_0x197cc9['type']){case'text':if(_0x197cc9['add']=_0x197cc9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x197cc9['remove']=_0x197cc9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x197cc9['add']&&''!=_0x197cc9['remove']){_0x4373ba['push']({'type':'replace','content':o(_0x4e6ca1,'REPLACE_TEXT',['\x22'+_0x197cc9['remove']+'\x22','\x22'+_0x197cc9['add']+'\x22'])});continue;}if(null!=_0x197cc9['add']['match'](/^ +$/)){_0x4373ba['push']({'type':'insertion','content':o(_0x4e6ca1,'*Insert:*\x20%0',o(_0x4e6ca1,'ELEMENT_SPACE',_0x197cc9['add']['length']))});continue;}if(null!=_0x197cc9['remove']['match'](/^ +$/)){_0x4373ba['push']({'type':'deletion','content':o(_0x4e6ca1,'*Remove:*\x20%0',o(_0x4e6ca1,'ELEMENT_SPACE',_0x197cc9['remove']['length']))});continue;}if(''!=_0x197cc9['add']){_0x4373ba['push']({'type':'insertion','content':o(_0x4e6ca1,'*Insert:*\x20%0','\x22'+_0x197cc9['add']+'\x22')});continue;}_0x4373ba['push']({'type':'deletion','content':o(_0x4e6ca1,'*Remove:*\x20%0','\x22'+_0x197cc9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4373ba['push']({'type':'insertion','content':o(_0x4e6ca1,'*Insert:*\x20%0',this['getItemLabel'](_0x197cc9['element'],_0x197cc9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4373ba['push']({'type':'deletion','content':o(_0x4e6ca1,'*Remove:*\x20%0',this['getItemLabel'](_0x197cc9['element'],_0x197cc9['quantity']))});continue;case'addContainer':_0x4373ba['push']({'type':'insertion','content':o(_0x4e6ca1,'*Split:*\x20%0',this['getItemLabel'](_0x197cc9['element'],_0x197cc9['quantity']))});continue;case'removeContainer':_0x4373ba['push']({'type':'deletion','content':o(_0x4e6ca1,'*Merge:*\x20%0',this['getItemLabel'](_0x197cc9['element'],_0x197cc9['quantity']))});continue;case'addFormat':_0x569a4f['push'](_0x197cc9['key']);continue;case'removeFormat':_0x29ae91['push'](_0x197cc9['key']);continue;default:_0x4373ba['push'](_0x197cc9);}if(_0x569a4f['length']){const _0x1d68af=_0x569a4f['map'](_0x26d7b2=>this['_attributeLabels']['has'](_0x26d7b2)?this['_attributeLabels']['get'](_0x26d7b2):_0x26d7b2)['join'](',\x20');_0x4373ba['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1d68af)});}if(_0x29ae91['length']){const _0x25887c=_0x29ae91['map'](_0x18625f=>this['_attributeLabels']['has'](_0x18625f)?this['_attributeLabels']['get'](_0x18625f):_0x18625f)['join'](',\x20');_0x4373ba['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x25887c)});}return _0x4373ba;}['_handleCustomCallbackDescription'](_0x3c1283){for(const _0x3775cb of this['_customCallbacks']){const _0x4d20e3=_0x3775cb(_0x3c1283);if(_0x4d20e3&&'type'in _0x4d20e3)return _0x4d20e3;}}['_handleAttributeSuggestionDescription'](_0x4488e9,_0x16b04e){const _0xce5d6b=_0x16b04e['data'],_0x26aae0=void 0x0===_0xce5d6b['newValue']?'removeFormat':'addFormat';_0x4488e9['push']({'type':_0x26aae0,'key':_0xce5d6b['key']});}['_handleRenameSuggestionDescription'](_0x5a8973,_0x1bc32a){_0x5a8973['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1bc32a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x41db86,_0x39aa7b,_0x577314){if(this['_addDescriptionItems'](_0x41db86,_0x39aa7b),_0x577314&&_0x577314['getFirstRange']()&&!_0x39aa7b['getFirstRange']()['end']['isEqual'](_0x577314['getFirstRange']()['start'])){const _0x196810=_0x41db86[_0x41db86['length']-0x1],_0x533a88='insertion'==_0x39aa7b['type']?'add':'remove';_0x196810&&'text'==_0x196810['type']&&(_0x196810[_0x533a88]+='\x0a');}}}class O extends _0x4540bb{['afterInit'](){const _0x314483=this['editor'],_0x704fda=_0x314483['plugins']['get']('TrackChangesEditing');_0x314483['commands']['get']('showAIAssistant')&&_0x704fda['enableCommand']('showAIAssistant');}}class E extends _0x4540bb{['afterInit'](){const _0x342251=this['editor'],_0x4b3b8c=_0x342251['locale'];if(!_0x342251['plugins']['has']('AlignmentEditing'))return;const _0x2ddd67=_0x342251['plugins']['get']('TrackChangesEditing');_0x2ddd67['enableDefaultAttributesIntegration']('alignment'),_0x2ddd67['registerBlockAttribute']('alignment'),_0x2ddd67['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4b3b8c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x511e22=this['editor'],_0x3378c6=_0x511e22['locale'];_0x511e22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x470265=>{if('formatBlock'!=_0x470265['type'])return;const {data:_0x4610af}=_0x470265;if(_0x4610af&&'alignment'==_0x4610af['commandName']){const _0x362796=_0x4610af['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3378c6,'*Format:*\x20%0',function(_0x480f9e){switch(_0x480f9e){case'left':return o(_0x3378c6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3378c6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3378c6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3378c6,'FORMAT_JUSTIFY_TEXT');}}(_0x362796))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x4540bb{['afterInit'](){const _0x1d0513=this['editor'],_0x2eb804=_0x1d0513['plugins']['get']('TrackChangesEditing'),_0xab29bd=_0x1d0513['locale'];for(const _0x350cf6 of ti){if(!_0x1d0513['plugins']['has'](_0x350cf6))continue;const _0x18366b=_0x350cf6['slice'](0x0,-0x7)['toLowerCase'](),_0x184445='FORMAT_'+_0x18366b['toUpperCase']();_0x2eb804['enableDefaultAttributesIntegration'](_0x18366b),_0x2eb804['registerInlineAttribute'](_0x18366b),_0x2eb804['descriptionFactory']['registerAttributeLabel'](_0x18366b,o(_0xab29bd,_0x184445));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8e1f19=this['editor'],_0x4604f7=_0x8e1f19['locale'],_0x5d4c5a=_0x8e1f19['plugins']['get']('TrackChangesEditing');function _0x3be1a6(_0x5f4a97,_0xae802d){_0x5d4c5a['descriptionFactory']['registerDescriptionCallback'](_0x3caf4b=>{if('formatInline'!=_0x3caf4b['type'])return;const {data:_0x2a082b}=_0x3caf4b;return _0x2a082b&&_0x2a082b['commandName']===_0x5f4a97?_0x2a082b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4604f7,'*Format:*\x20%0',_0xae802d)}:{'type':'format','content':o(_0x4604f7,'*Remove\x20format:*\x20%0',_0xae802d)}:void 0x0;});}_0x3be1a6('bold',o(_0x4604f7,'FORMAT_BOLD')),_0x3be1a6('italic',o(_0x4604f7,'FORMAT_ITALIC')),_0x3be1a6('underline',o(_0x4604f7,'FORMAT_UNDERLINE')),_0x3be1a6('code',o(_0x4604f7,'FORMAT_CODE')),_0x3be1a6('strikethrough',o(_0x4604f7,'FORMAT_STRIKETHROUGH')),_0x3be1a6('subscript',o(_0x4604f7,'FORMAT_SUBSCRIPT')),_0x3be1a6('superscript',o(_0x4604f7,'FORMAT_SUPERSCRIPT'));}}class U extends _0x4540bb{['afterInit'](){const _0x5a1cfd=this['editor'],_0x37cfc3=_0x5a1cfd['locale'];if(!_0x5a1cfd['plugins']['has']('BlockQuoteEditing'))return;const _0x4964f9=_0x5a1cfd['plugins']['get']('TrackChangesEditing'),_0x23a12a=this['editor']['commands']['get']('blockQuote');_0x4964f9['enableCommand']('blockQuote',(_0x517a28,_0x8e8085={})=>{const _0x184b2c=this['editor']['model']['document']['selection'],_0x25b059=_0x8e8085&&void 0x0!==_0x8e8085['forceValue']?_0x8e8085['forceValue']:!_0x23a12a['value'];let _0x3e1a7c=[];if(_0x25b059){const _0x5d0842=Array['from'](_0x184b2c['getSelectedBlocks']())['filter'](_0x4ab604=>oo(_0x4ab604)||function(_0x489b98,_0x3f0449){const _0x326143=_0x3f0449['checkChild'](_0x489b98['parent'],'blockQuote'),_0x3bd86e=_0x3f0449['checkChild'](['$root','blockQuote'],_0x489b98);return _0x326143&&_0x3bd86e;}(_0x4ab604,this['editor']['model']['schema']));_0x3e1a7c=to(_0x5d0842,_0x5a1cfd['model']);}else{const _0x5d9d0d=Array['from'](_0x184b2c['getSelectedBlocks']())['filter'](_0xbf34dd=>oo(_0xbf34dd));_0x3e1a7c=to(_0x5d9d0d,_0x5a1cfd['model']);}_0x5a1cfd['model']['change'](()=>{for(const _0xa7c1df of _0x3e1a7c)_0x4964f9['markBlockFormat'](_0xa7c1df,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25b059}]});});}),_0x4964f9['descriptionFactory']['registerDescriptionCallback'](_0x2115c9=>{const {data:_0x232c62}=_0x2115c9;if(_0x232c62&&'blockQuote'==_0x232c62['commandName']){const _0x273e27=o(_0x37cfc3,'ELEMENT_BLOCK_QUOTE');return _0x232c62['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37cfc3,'*Set\x20format:*\x20%0',_0x273e27)}:{'type':'format','content':o(_0x37cfc3,'*Remove\x20format:*\x20%0',_0x273e27)};}});}}function oo(_0x726134){return'blockQuote'==_0x726134['parent']['name'];}class V extends _0x4540bb{['afterInit'](){const _0x583b34=this['editor'],_0x192ce7=_0x583b34['locale'],_0x3b8161=_0x583b34['plugins']['get']('TrackChangesEditing');_0x583b34['plugins']['has']('BookmarkEditing')&&(_0x3b8161['enableCommand']('insertBookmark'),_0x3b8161['enableDefaultAttributesIntegration']('updateBookmark'),_0x3b8161['registerBlockAttribute']('bookmarkId'),_0x3b8161['descriptionFactory']['registerDescriptionCallback'](_0x46f018=>{if('insertion'!=_0x46f018['type']&&'deletion'!=_0x46f018['type']&&'attribute'!=_0x46f018['type'])return;const _0x500673=_0x46f018['getContainedElement']();if(null==_0x500673)return;if(!_0x500673['is']('element','bookmark'))return;const _0x24e256=_0x500673['getAttribute']('bookmarkId');if('insertion'==_0x46f018['type'])return{'type':'insertion','content':o(_0x192ce7,'*Insert:*\x20%0','\x22'+_0x24e256+'\x22\x20'+o(_0x192ce7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x46f018['type'])return{'type':'deletion','content':o(_0x192ce7,'*Remove:*\x20%0','\x22'+_0x24e256+'\x22\x20'+o(_0x192ce7,'ELEMENT_BOOKMARK'))};const {data:_0x262c83}=_0x46f018;if(!_0x262c83||'bookmarkId'!=_0x262c83['key'])return;return{'type':'format','content':o(_0x192ce7,'*Set\x20bookmark:*\x20%0','\x22'+_0x262c83['newValue']+'\x22')};}));}}class F extends _0x4540bb{['afterInit'](){const _0x40d290=this['editor'];_0x40d290['plugins']['has']('CaseChange')&&(_0x40d290['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x40d290['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x40d290['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x4540bb{['afterInit'](){const _0x5a4b0f=this['editor'];_0x5a4b0f['commands']['get']('ckbox')&&_0x5a4b0f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4540bb{['afterInit'](){const _0x3d817d=this['editor'];if(!_0x3d817d['plugins']['has']('CodeBlock'))return;const _0x58c1b6=_0x3d817d['plugins']['get']('TrackChangesEditing'),_0x67b262=_0x3d817d['locale'],_0x2e4d1d=_0x3d817d['config']['get']('codeBlock')['languages'],_0x327f0b=_0x3d817d['commands']['get']('codeBlock');_0x58c1b6['enableCommand']('indentCodeBlock'),_0x58c1b6['enableCommand']('outdentCodeBlock'),_0x58c1b6['enableCommand']('codeBlock',(_0x51ffa9,_0x5f5247={})=>{const _0x1a59ae=_0x3d817d['model'],_0x4e2f3a=_0x3d817d['model']['document']['selection'],_0x3c7e72=_0x5f5247&&void 0x0!==_0x5f5247['forceValue']?_0x5f5247['forceValue']:!_0x327f0b['value'];let _0x17309a;_0x5f5247['language']||(_0x5f5247['language']=_0x2e4d1d[0x0]['language']),_0x17309a=_0x3c7e72?Array['from'](_0x4e2f3a['getSelectedBlocks']())['filter'](_0x573d10=>co(_0x573d10)||function(_0x3d3475,_0x1b3b94){if(_0x3d3475['is']('rootElement')||_0x1b3b94['isLimit'](_0x3d3475))return!0x1;return _0x1b3b94['checkChild'](_0x3d3475['parent'],'codeBlock');}(_0x573d10,_0x1a59ae['schema'])):Array['from'](_0x4e2f3a['getSelectedBlocks']())['filter'](_0x2542c3=>co(_0x2542c3));const _0x23068f=to(_0x17309a,_0x1a59ae);_0x1a59ae['change'](()=>{for(const _0x58c7ed of _0x23068f)_0x58c1b6['markBlockFormat'](_0x58c7ed,{'commandName':'codeBlock','commandParams':[{..._0x5f5247,'forceValue':_0x3c7e72}],'formatGroupId':'blockName'});});}),(_0x58c1b6['descriptionFactory']['registerElementLabel']('codeBlock',_0x338cee=>o(_0x67b262,'ELEMENT_CODE_BLOCK',_0x338cee)),_0x58c1b6['descriptionFactory']['registerDescriptionCallback'](_0x56b502=>{if('formatBlock'!=_0x56b502['type'])return;const _0x1fd191=_0x67b262['t'],{data:_0x216cf7}=_0x56b502;if(!_0x216cf7||'codeBlock'!=_0x216cf7['commandName'])return;const _0x227fcc=_0x216cf7['commandParams'][0x0]['language'],_0x207d49=_0x1fd191(_0x2e4d1d['find'](_0x45cd1d=>_0x45cd1d['language']===_0x227fcc)['label'])['toLowerCase']();return _0x216cf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x67b262,'*Set\x20format:*\x20%0',o(_0x67b262,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x207d49+')')}:{'type':'format','content':o(_0x67b262,'*Remove\x20format:*\x20%0',o(_0x67b262,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x2108d8){return'codeBlock'==_0x2108d8['name'];}class J extends _0x4540bb{['afterInit'](){const _0x311599=this['editor'];if(!_0x311599['plugins']['has']('CommentsEditing'))return;_0x311599['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4a4577,_0x5624bf,_0x6fc09){const _0x162ab0=[];for(const _0x3f6eb6 of _0x5624bf['getItems']())_0x3f6eb6['hasAttribute'](_0x4a4577)&&_0x162ab0['push'](_0x6fc09['createRangeOn'](_0x3f6eb6));return _0x162ab0;}function De(_0x1890ee,_0x15a5ea,{showActiveMarker:_0x3b61fa=!0x0}={}){const _0x457ddb=_0x1890ee['plugins']['get']('TrackChangesEditing');return(_0x2cd843,_0x540300,_0x166d27)=>{if(!_0x166d27['consumable']['test'](_0x540300['markerRange'],_0x2cd843['name']))return;const _0x1ef671=_0x540300['markerRange']['getWalker'](),_0x599295=_0x540300['markerRange']['start'],_0xa27d19=_0x1890ee['model']['schema'];let _0x380aaf=null,_0x562c18=null,_0x58d525=!0x1,_0x39e261=!0x1;for(const _0x1db2b9 of _0x1ef671){const _0x301a40=_0x1db2b9['item'];_0x58d525=_0x58d525||_0xa27d19['isContent'](_0x301a40);const _0x5a49a5=_0x166d27['mapper']['toViewElement'](_0x301a40);if(_0x5a49a5&&_0x5a49a5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1db2b9['type']&&(_0xa27d19['isBlock'](_0x301a40)&&!_0xa27d19['isLimit'](_0x301a40)&&(_0x301a40['nextSibling']||_0x599295['isAtEnd']?_0x380aaf&&_0x380aaf['parent']==_0x301a40||(_0x380aaf=_0x301a40,_0x12557e(_0x1db2b9['previousPosition']),_0x39e261=!0x0):_0x562c18=_0x562c18||_0x1db2b9['previousPosition']));}function _0x12557e(_0x144d8b){const {id:_0x2b75ab,authorId:_0x277c9a}=_0x457ddb['_splitMarkerName'](_0x540300['markerName']),_0x1f2d46=_0x166d27['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15a5ea,'data-suggestion':_0x2b75ab,'data-author-id':_0x277c9a}),_0x4225cc=_0x166d27['mapper']['toViewPosition'](_0x144d8b);_0x3b61fa&&_0x457ddb['activeMarkers']['includes'](_0x540300['markerName'])&&_0x166d27['writer']['addClass']('ck-suggestion-marker--active',_0x1f2d46),_0x166d27['writer']['insert'](_0x4225cc,_0x1f2d46),_0x166d27['mapper']['bindElementToMarker'](_0x1f2d46,_0x540300['markerName']);}_0x58d525||_0x39e261||!_0x562c18||_0x12557e(_0x562c18);};}class K extends _0x4540bb{static get['requires'](){return[_0x55c447];}['init'](){const _0xa4a882=this['editor'],_0x327fe2=_0xa4a882['plugins']['get']('TrackChangesEditing');_0x327fe2['enableCommand']('delete');const _0x4d4aad=_0xa4a882['commands']['get']('deleteForward');_0x327fe2['enableCommand']('deleteForward',(_0x5a51e3,_0x56362e={})=>{const _0xa9b110=_0xa4a882['model']['createSelection'](_0xa4a882['model']['document']['selection']);_0xa9b110['isCollapsed']&&_0xa4a882['model']['modifySelection'](_0xa9b110,{'direction':'forward','unit':_0x56362e['unit']});const _0x397a9c=_0xa9b110['getFirstRange'](),_0x3c4a8e=_0x2e6917['fromRange'](_0x397a9c);let _0x4d4772;_0x5a51e3(_0x56362e),_0x4d4772='$graveyard'==_0x3c4a8e['root']['rootName']?_0xa4a882['model']['createRange'](_0x397a9c['start']):_0xa4a882['model']['createRange'](_0x3c4a8e['start'],_0x3c4a8e['end']),_0x3c4a8e['detach'](),_0xa4a882['model']['enqueueChange'](_0x4d4aad['buffer']['batch'],_0x1c769b=>{_0x4d4aad['buffer']['lock'](),_0x1c769b['setSelection'](_0x1c769b['createRange'](_0x4d4772['end'])),_0x4d4aad['buffer']['unlock']();});}),_0xa4a882['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xa4a882,'merge'),{'priority':'high'}),_0xa4a882['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38cd74,_0x73d78f,_0x18ae65)=>{_0x18ae65['options']['showSuggestionHighlights']&&De(_0xa4a882,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38cd74,_0x73d78f,_0x18ae65);},{'priority':'high'}),_0xa4a882['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x43b541,_0x5b53dd,_0x23026e)=>{const _0x481368=_0x23026e['mapper']['markerNameToElements'](_0x5b53dd['markerName']);if(_0x481368){for(const _0x276946 of _0x481368)_0x276946['is']('uiElement')&&(_0x23026e['mapper']['unbindElementFromMarkerName'](_0x276946,_0x5b53dd['markerName']),_0x23026e['writer']['remove'](_0x276946));}},{'priority':'high'});}}class H extends _0x4540bb{['afterInit'](){const _0x4e2efc=this['editor'];if(!_0x4e2efc['plugins']['has']('ListEditing'))return;const _0x4e4c14=_0x4e2efc['locale'],_0x2d8b0f=_0x4e2efc['plugins']['get']('TrackChangesEditing'),_0x112d58=_0x4e2efc['plugins']['has']('TodoListEditing'),_0x4a3bda=!!_0x4e2efc['config']['get']('list.multiBlock');function _0x2a1acd(_0x5d79b6){return{'type':'format','content':''+o(_0x4e4c14,'*Set\x20format:*\x20%0',_0x5d79b6)};}function _0x47a13b(_0x33c603){return{'type':'format','content':''+o(_0x4e4c14,'*Remove\x20format:*\x20%0',_0x33c603)};}_0x2d8b0f['enableDefaultAttributesIntegration']('numberedList'),_0x2d8b0f['enableDefaultAttributesIntegration']('bulletedList'),_0x2d8b0f['enableDefaultAttributesIntegration']('customNumberedList'),_0x2d8b0f['enableDefaultAttributesIntegration']('customBulletedList'),_0x2d8b0f['enableDefaultAttributesIntegration']('indentList'),_0x2d8b0f['enableDefaultAttributesIntegration']('outdentList'),_0x2d8b0f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2d8b0f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2d8b0f['registerBlockAttribute']('listItemId'),_0x2d8b0f['registerBlockAttribute']('listType'),_0x2d8b0f['registerBlockAttribute']('listIndent'),_0x4a3bda&&(_0x2d8b0f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2d8b0f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x112d58&&(_0x2d8b0f['enableDefaultAttributesIntegration']('todoList'),_0x2d8b0f['enableDefaultAttributesIntegration']('checkTodoList'),_0x2d8b0f['registerBlockAttribute']('todoListChecked'),_0x2d8b0f['descriptionFactory']['registerDescriptionCallback'](_0x3cc88a=>{const {data:_0x13e32d}=_0x3cc88a;if(_0x13e32d&&'todoListChecked'==_0x13e32d['key'])return{'type':'format','content':_0x13e32d['newValue']?o(_0x4e4c14,'*Check\x20item*'):o(_0x4e4c14,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x496ba1=>{if(_0x496ba1['batch']['isUndo'])return!0x1;let _0x1bb43c=!0x1;const _0x3bdbf2=_0x2d8b0f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x152266=>'todoListChecked'===_0x2d8b0f['_getAttributeKey'](_0x152266));for(const _0x5f5293 of _0x3bdbf2){'todo'!=_0x5f5293['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2d8b0f['_findSuggestions'](_0x5f5293['getFirstRange'](),'attribute')['find'](_0x105f22=>'listType'===_0x2d8b0f['_getAttributeKey'](_0x105f22['suggestion']))||(_0x496ba1['removeMarker'](_0x5f5293['getFirstMarker']()),_0x1bb43c=!0x0));}return _0x1bb43c;})),_0x2d8b0f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4e4c14,'FORMAT_INDENT'));const _0x2224db={'type':'format','content':''};_0x2d8b0f['descriptionFactory']['registerDescriptionCallback'](_0x3c5883=>{const {data:_0x394a28}=_0x3c5883;if(!_0x394a28||'listType'!=_0x394a28['key'])return;let _0x56babc=_0x3c5883['head'];for(;_0x56babc;){if(_0x56babc['data']&&(('listStyle'==_0x56babc['data']['key']||'listMarkerStyle'==_0x56babc['data']['key'])&&(_0x56babc['data']['newValue']&&'default'!=_0x56babc['data']['newValue']||'default'!=_0x56babc['data']['oldValue']&&!_0x394a28['newValue'])||!_0x4a3bda&&_0x56babc['data']['key']==m))return _0x2224db;_0x56babc=_0x56babc['next'];}if(null==_0x394a28['newValue'])switch(_0x394a28['oldValue']){case'bulleted':return _0x47a13b(o(_0x4e4c14,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47a13b(o(_0x4e4c14,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47a13b(o(_0x4e4c14,'ELEMENT_TODO_LIST'));}switch(_0x394a28['newValue']){case'bulleted':return _0x2a1acd(o(_0x4e4c14,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a1acd(o(_0x4e4c14,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a1acd(o(_0x4e4c14,'ELEMENT_TODO_LIST'));}}),_0x2d8b0f['descriptionFactory']['registerDescriptionCallback'](_0x3edd55=>{const {data:_0x3c1156}=_0x3edd55;if(_0x3c1156&&'listIndent'==_0x3c1156['key'])return null==_0x3c1156['newValue']||null==_0x3c1156['oldValue']&&0x0==_0x3c1156['newValue']?_0x2224db:void 0x0;}),_0x2d8b0f['descriptionFactory']['registerDescriptionCallback'](_0x4f5f7f=>{if('attribute'!=_0x4f5f7f['type'])return;const {data:_0x823b81}=_0x4f5f7f;if(!_0x823b81||'listItemId'!=_0x823b81['key'])return;const _0x510682=Te(_0x4f5f7f);return'newValue'==_0x510682?{'type':'format','content':o(_0x4e4c14,'*Merge:*\x20list\x20item')}:'oldValue'==_0x510682?{'type':'format','content':o(_0x4e4c14,'*Split:*\x20list\x20item')}:_0x2224db;}),_0x4e2efc['model']['document']['registerPostFixer'](_0x217239=>this['listItemIdFixer'](_0x217239)),_0x4e2efc['model']['document']['registerPostFixer'](_0x1cffd7=>this['noTrackChangesFixer'](_0x1cffd7)),_0x4e2efc['model']['document']['on']('change:data',(_0x42967a,_0x3c3371)=>{if(_0x3c3371['isUndo']||!_0x3c3371['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4ee82c){if(_0x4ee82c['batch']['isUndo']||!_0x4ee82c['batch']['isLocal'])return!0x1;let _0x5c6f4e=!0x1;const _0x247d40=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35bdab=>_0x35bdab['data']&&'listItemId'==_0x35bdab['data']['key'])['filter'](_0x181a34=>_0x181a34['data']['newValue']&&_0x181a34['data']['oldValue']);for(const _0x355350 of _0x247d40)Te(_0x355350)||(_0x4ee82c['removeMarker'](_0x355350['getFirstMarker']()),_0x5c6f4e=!0x0);return _0x5c6f4e;}['noTrackChangesFixer'](_0x139ddb){if(_0x139ddb['batch']['isUndo']||!_0x139ddb['batch']['isLocal'])return!0x1;const _0x3f0e47=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3f0e47['trackChangesCommand']['value'])return!0x1;let _0x19dbfe=!0x1;const _0x42267f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2d07f4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5e9d4d=>'attribute'==_0x5e9d4d['type'])['filter'](_0x6a2da7=>_0x42267f['includes'](_0x6a2da7['attributeKey']));if(0x0==_0x2d07f4['length'])return _0x19dbfe;for(const _0x301c91 of _0x2d07f4){const _0x3b5275=_0x3f0e47['_findSuggestions'](_0x301c91['range'],'attribute')['filter'](_0x4ccd91=>!_0x4ccd91['meta']['isNextTo'])['map'](_0x2f2a81=>_0x2f2a81['suggestion'])['filter'](_0x104836=>{const _0x3b7fc5=_0x3f0e47['_getAttributeKey'](_0x104836);return _0x42267f['includes'](_0x3b7fc5);});if(_0x3b5275['length']){for(const _0x68c700 of _0x3b5275)_0x139ddb['removeMarker'](_0x68c700['getFirstMarker']());_0x19dbfe=!0x0;}}return _0x19dbfe;}['assureChains'](){const _0x2fc824=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113bd7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4ca794;const _0x25a25a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x470e76=>{if(_0x470e76['data']['oldRange']||!_0x470e76['data']['newRange'])return null;if(!_0x470e76['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x14e0bf}=_0x2fc824['_splitMarkerName'](_0x470e76['name']);if(!_0x2fc824['hasSuggestion'](_0x14e0bf))return null;const _0x561bf2=_0x2fc824['getSuggestion'](_0x14e0bf);return _0x113bd7['includes'](_0x561bf2['data']['key']);})['map'](_0x4e8a6c=>{const {id:_0x23a829}=_0x2fc824['_splitMarkerName'](_0x4e8a6c['name']),_0x280c4c=_0x2fc824['getSuggestion'](_0x23a829);return _0x4ca794=_0x280c4c['attributes']['groupId'],_0x280c4c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x25a25a['size'])return;const _0x1a3d7e=_0x2fc824['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23c98b=>'attribute'==_0x23c98b['type']&&_0x23c98b['data']&&_0x113bd7['includes'](_0x23c98b['data']['key'])&&_0x23c98b['attributes']['groupId']!=_0x4ca794)['map'](_0x4e0d9c=>({'listItem':_0x4e0d9c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4e0d9c['attributes']['groupId']})),_0x4e66d7=new Set();for(const {groupId:_0x54cf00,listItem:_0x212bb1}of _0x1a3d7e)_0x25a25a['has'](_0x212bb1)&&_0x4e66d7['add'](_0x54cf00);for(const _0x26d3ea of _0x2fc824['getSuggestions']())_0x4e66d7['has'](_0x26d3ea['attributes']['groupId'])&&_0x26d3ea['setAttribute']('groupId',_0x4ca794);}['_supportLegacySuggestions'](){const _0x199a2e=this['editor'],_0x50f416=_0x199a2e['locale'],_0x12cc12=_0x199a2e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x12cc12['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xbf8d04,_0xb57ba8){const _0x35d124=[];for(let _0x44359a of _0xbf8d04)_0x44359a['start']['nodeAfter']===_0x44359a['end']['parent']&&(_0x44359a=_0x199a2e['model']['createRange'](_0x199a2e['model']['createPositionAt'](_0x44359a['start']['nodeAfter'],0x0))),_0x35d124['push'](_0x44359a);_0x199a2e['model']['change'](_0x438dbf=>{const _0xbcd127=_0x199a2e['model']['document']['selection'],_0x24f597=Array['from'](_0xbcd127['getRanges']())['map'](_0x47911f=>_0x2e6917['fromRange'](_0x47911f));_0x438dbf['setSelection'](_0x35d124),_0x199a2e['commands']['get'](_0xb57ba8['commandName'])['refresh'](),_0xb57ba8['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x199a2e['execute'](_0xb57ba8['commandName'],..._0xb57ba8['commandParams']),_0x438dbf['setSelection'](_0x24f597);for(const _0x3cbd9e of _0x24f597)_0x3cbd9e['detach']();});}),_0x12cc12['descriptionFactory']['registerElementLabel'](function(_0x4d4c9b){const _0x5309fd=!_0x199a2e['model']['schema']['isObject'](_0x4d4c9b),_0x53c381=_0x4d4c9b['previousSibling'],_0x335449=_0x4d4c9b['nextSibling'],_0x1b58a6=_0x4d4c9b['getAttribute']('listItemId'),_0x120a8d=!_0x53c381||_0x53c381['getAttribute']('listItemId')!==_0x1b58a6,_0x52c031=!_0x335449||_0x335449['getAttribute']('listItemId')!==_0x1b58a6;return _0x5309fd&&Boolean(_0x1b58a6)&&_0x120a8d&&_0x52c031;},_0x2b5e25=>o(_0x50f416,'ELEMENT_LIST_ITEM',_0x2b5e25));}['_registerLegacyDescription'](){const _0x11b159=this['editor'],_0x5286b9=_0x11b159['locale'];function _0x5e4927(_0x331714){const _0x5e09c2=_0x11b159['commands']['get']('bulletedList')['value'],_0x3c75af=_0x11b159['commands']['get']('numberedList')['value'];return'numberedList'===_0x331714?_0x5e09c2:_0x3c75af;}_0x11b159['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x28f133){if('formatBlock'!=_0x28f133['type'])return;const {data:_0x29aab6}=_0x28f133;if(!_0x29aab6)return;let _0xd0f4c9,_0x58646e,_0x14e490,_0x519f65;switch(_0x29aab6['commandName']){case'bulletedList':_0x14e490=_0x29aab6['commandParams'][0x0]['forceValue'],_0x519f65=_0x5e4927(_0x29aab6['commandName']),_0xd0f4c9=_0x14e490?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x519f65&&_0x11b159['config']['get']('list.multiBlock')||(_0xd0f4c9='*Change\x20to:*\x20%0'),_0x58646e={'type':'format','content':o(_0x5286b9,_0xd0f4c9,o(_0x5286b9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x14e490=_0x29aab6['commandParams'][0x0]['forceValue'],_0x519f65=_0x5e4927(_0x29aab6['commandName']),_0xd0f4c9=_0x14e490?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x519f65&&_0x11b159['config']['get']('list.multiBlock')||(_0xd0f4c9='*Change\x20to:*\x20%0'),_0x58646e={'type':'format','content':o(_0x5286b9,_0xd0f4c9,o(_0x5286b9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xd0f4c9='*Indent:*\x20%0',_0x58646e={'type':'format','content':o(_0x5286b9,_0xd0f4c9,o(_0x5286b9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xd0f4c9=function(_0x4b0a9f){const _0x3b866d=_0x4b0a9f['getFirstRange']();let _0x174821=_0x3b866d['start']['nodeAfter'];for(;_0x174821&&_0x3b866d['containsItem'](_0x174821);){if(_0x174821['getAttribute']('listIndent')>0x0)return!0x1;_0x174821=_0x174821['nextSibling'];}return!0x0;}(_0x28f133)?o(_0x5286b9,'*Format:*\x20remove\x20from\x20%0',o(_0x5286b9,function(_0xbf2472){return'ELEMENT_'+_0xbf2472['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x28f133))):o(_0x5286b9,'*Outdent:*\x20%0',o(_0x5286b9,'ELEMENT_LIST_ITEM')),_0x58646e={'type':'format','content':_0xd0f4c9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x29aab6['multipleBlocks']&&(_0xd0f4c9='*Merge:*\x20%0',_0x58646e={'type':'deletion','content':o(_0x5286b9,_0xd0f4c9,o(_0x5286b9,'ELEMENT_LIST_ITEM'))});}return _0x58646e;});}}function Te(_0x4ad500){let _0x287a26=_0x4ad500['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x287a26;){const _0x4fe4f1=_0x287a26['getAttribute']('listItemId');if(!_0x4fe4f1)return!0x1;if(_0x4fe4f1==_0x4ad500['data']['newValue'])return'newValue';if(_0x4fe4f1==_0x4ad500['data']['oldValue'])return'oldValue';_0x287a26=_0x287a26['previousSibling'];}return!0x1;}class q extends _0x4540bb{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x313b58=this['editor']['config']['get']('list.properties'),_0x4b8ea7=this['editor']['plugins']['get']('TrackChangesEditing');_0x313b58['styles']&&(_0x4b8ea7['enableDefaultAttributesIntegration']('listStyle'),_0x4b8ea7['registerBlockAttribute']('listStyle')),_0x313b58['reversed']&&(_0x4b8ea7['enableDefaultAttributesIntegration']('listReversed'),_0x4b8ea7['registerBlockAttribute']('listReversed')),_0x313b58['startIndex']&&(_0x4b8ea7['enableDefaultAttributesIntegration']('listStart'),_0x4b8ea7['registerBlockAttribute']('listStart'));const _0x2a604a={'type':'format','content':''};_0x4b8ea7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53180a=this['editor']['locale'];_0x4b8ea7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x53180a,'FORMAT_LIST_REVERSED')),_0x4b8ea7['descriptionFactory']['registerDescriptionCallback'](_0xbda981=>{const {data:_0x52e530}=_0xbda981;if(_0x52e530&&'listReversed'==_0x52e530['key'])return null==_0x52e530['newValue']||0x0==_0x52e530['newValue']&&null==_0x52e530['oldValue']?_0x2a604a:void 0x0;}),_0x4b8ea7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x53180a,'FORMAT_LIST_START')),_0x4b8ea7['descriptionFactory']['registerDescriptionCallback'](_0x1e8caa=>{const {data:_0x4c766a}=_0x1e8caa;if(_0x4c766a&&'listStart'==_0x4c766a['key'])return null==_0x4c766a['newValue']||0x1==_0x4c766a['newValue']&&null==_0x4c766a['oldValue']?_0x2a604a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a7f15=>{if(_0x3a7f15['batch']['isUndo'])return!0x1;let _0x190ca7=!0x1;const _0x1d96fa=_0x4b8ea7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a9ca9=>{const _0x20bcd1=_0x4b8ea7['_getAttributeKey'](_0x1a9ca9);return'listStart'==_0x20bcd1||'listReversed'==_0x20bcd1;});for(const _0x109739 of _0x1d96fa){const _0x268b9f=_0x109739['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x268b9f||'customNumbered'==_0x268b9f)continue;_0x4b8ea7['_findSuggestions'](_0x109739['getFirstRange'](),'attribute')['find'](_0x1c747f=>'listType'==_0x4b8ea7['_getAttributeKey'](_0x1c747f['suggestion']))||(_0x3a7f15['removeMarker'](_0x109739['getFirstMarker']()),_0x190ca7=!0x0);}return _0x190ca7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x39183f){const _0x5e4bf0=this['editor']['locale'],{data:_0x5992bf}=_0x39183f,_0x2e26de={'type':'format','content':''};if(!_0x5992bf||'listStyle'!=_0x5992bf['key'])return;if(!_0x5992bf['oldValue'])return'default'==_0x5992bf['newValue']?_0x2e26de:{'type':'format','content':''+o(_0x5e4bf0,'*Set\x20format:*\x20%0',o(_0x5e4bf0,this['_getTranslationKeyForListStyle'](_0x5992bf['newValue'])))};if(!_0x5992bf['newValue']){if('default'==_0x5992bf['oldValue'])return _0x2e26de;let _0x597ebf=_0x39183f['head'];for(;_0x597ebf;){if(_0x597ebf['data']&&'listType'==_0x597ebf['data']['key']&&_0x597ebf['data']['newValue'])return _0x2e26de;_0x597ebf=_0x597ebf['next'];}return{'type':'format','content':''+o(_0x5e4bf0,'*Remove\x20format:*\x20%0',o(_0x5e4bf0,this['_getTranslationKeyForListStyle'](_0x5992bf['oldValue'])))};}if('default'!=_0x5992bf['newValue'])return{'type':'format','content':''+o(_0x5e4bf0,'*Set\x20format:*\x20%0',o(_0x5e4bf0,this['_getTranslationKeyForListStyle'](_0x5992bf['newValue'])))};let _0x2538c5=_0x39183f['head'];for(;_0x2538c5;){if(_0x2538c5['data']&&'listType'==_0x2538c5['data']['key']&&_0x2538c5['data']['newValue']&&_0x2538c5['data']['oldValue'])return _0x2e26de;_0x2538c5=_0x2538c5['next'];}return{'type':'format','content':o(_0x5e4bf0,'*Set\x20format:*\x20%0',o(_0x5e4bf0,'ELEMENT_'+_0x39183f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x52d169=this['editor'],_0x1f6335=_0x52d169['locale'];_0x52d169['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5be486=>{if('formatBlock'!=_0x5be486['type'])return;const {data:_0x2c8e34}=_0x5be486;if(!_0x2c8e34)return;let _0x4c7c1e,_0x363624;switch(_0x2c8e34['commandName']){case'listStyle':_0x4c7c1e='*Change\x20to:*\x20%0',_0x363624={'type':'format','content':o(_0x1f6335,_0x4c7c1e,o(_0x1f6335,this['_getTranslationKeyForListStyle'](_0x2c8e34['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c7c1e=_0x2c8e34['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x363624={'type':'format','content':o(_0x1f6335,_0x4c7c1e)};break;case'listStart':_0x4c7c1e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x363624={'type':'format','content':o(_0x1f6335,_0x4c7c1e,_0x2c8e34['commandParams'][0x0]['startIndex'])};}return _0x363624;});}['_getTranslationKeyForListStyle'](_0x20c8a0){return'ELEMENT_'+function(_0x2805ae){if(Se['includes'](_0x2805ae))return'bulleted';if(_e['includes'](_0x2805ae))return'numbered';return null;}(_0x20c8a0)['toUpperCase']()+'_LIST_'+_0x20c8a0['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x4540bb{['afterInit'](){const _0xd0d4e7=this['editor'];_0xd0d4e7['commands']['get']('emoji')&&_0xd0d4e7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x4540bb{static get['requires'](){return[_0x520bbe];}['init'](){const _0x54ef55=this['editor'],_0x3868df=_0x54ef55['plugins']['get']('TrackChangesEditing'),_0x3259d9=_0x54ef55['commands']['get']('enter');_0x3868df['enableCommand']('enter',()=>{_0x54ef55['model']['change'](_0x4725d3=>{const _0x598f03=_0x54ef55['model']['document']['selection'],_0x5cbc80=_0x598f03['getFirstPosition'](),_0x2ac0f8=_0x2e6917['fromRange'](_0x598f03['getFirstRange']());if(_0x3259d9['enterBlock'](_0x4725d3)){const _0x3741b6=_0x54ef55['model']['createPositionAt'](_0x5cbc80['parent']['nextSibling'],0x0),_0x1eba35=_0x4725d3['createRange'](_0x5cbc80,_0x3741b6);_0x3868df['markInsertion'](_0x1eba35);}else _0x4725d3['setSelection'](_0x4725d3['createRange'](_0x2ac0f8['end']));_0x2ac0f8['detach'](),_0x3259d9['fire']('afterExecute',{'writer':_0x4725d3});});}),_0x54ef55['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x54ef55,'split'),{'priority':'high'}),_0x54ef55['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x317268,_0x584047,_0x2d18a3)=>{const _0x3d92d4=_0x2d18a3['mapper']['markerNameToElements'](_0x584047['markerName']);if(_0x3d92d4){for(const _0x2f7cd6 of _0x3d92d4)_0x2f7cd6['hasClass']('ck-suggestion-marker-split')&&(_0x2d18a3['mapper']['unbindElementFromMarkerName'](_0x2f7cd6,_0x584047['markerName']),_0x2d18a3['writer']['remove'](_0x2f7cd6));}},{'priority':'high'}),_0x54ef55['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38b1a9,_0x1508ea,_0x47cf67)=>{_0x47cf67['options']['showSuggestionHighlights']&&De(_0x54ef55,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x38b1a9,_0x1508ea,_0x47cf67);},{'priority':'high'});}}class Q extends _0x4540bb{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x44aabe=this['editor']['plugins']['get']('TrackChangesEditing');_0x44aabe['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x44aabe['enableCommand']('findNext'),_0x44aabe['enableCommand']('findPrevious'),_0x44aabe['enableCommand']('replace'),_0x44aabe['enableCommand']('replaceAll');}['handleFindCommand'](_0x54b8d6,_0x304fd0,_0x4b1642={}){const _0x43d791=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x54b8d6(_0x1be1e3=>{let _0x31b56d=('string'==typeof _0x304fd0?_0x43d791['findByTextCallback'](_0x304fd0,_0x4b1642):_0x304fd0)(_0x1be1e3);Array['isArray'](_0x31b56d)&&(_0x31b56d={'results':_0x31b56d,'searchText':'string'==typeof _0x304fd0?_0x304fd0:''});const _0x30b5b3=_0x31b56d['results']['filter'](_0x99eb97=>!0x1===this['_isInDeletionRange'](_0x99eb97,_0x1be1e3['item']));return{..._0x31b56d,'results':_0x30b5b3};},_0x4b1642);}['_isInDeletionRange'](_0x4173c7,_0x1a880c){const _0x5e99ce=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a880c,_0x4173c7['start']),this['editor']['model']['createPositionAt'](_0x1a880c,_0x4173c7['end']));for(const _0x1aa719 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5e99ce['getIntersection'](_0x1aa719['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x4540bb{['afterInit'](){const _0x3476db=this['editor']['locale'],_0x545f62=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xc32884,commandName:_0x58e893}of eo)this['editor']['plugins']['has'](_0xc32884)&&(_0x545f62['enableDefaultAttributesIntegration'](_0x58e893),_0x545f62['registerInlineAttribute'](_0x58e893));_0x545f62['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3476db,'FORMAT_FONT_SIZE')),_0x545f62['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3476db,'FORMAT_FONT_FAMILY')),_0x545f62['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3476db,'FORMAT_FONT_COLOR')),_0x545f62['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3476db,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26b683=this['editor'],_0x169a7f=_0x26b683['locale'];_0x26b683['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x182eec=>{const _0x5050a9=_0x169a7f['t'];if('formatInline'!=_0x182eec['type'])return;const {data:_0x4d78f2}=_0x182eec;if(null!=_0x4d78f2){if('fontSize'==_0x4d78f2['commandName']){const _0x5209f9=_0x4d78f2['commandParams'][0x0]['value'];if(_0x5209f9){const _0x5c3cf1=_0x5050a9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x34cb0b=>_0x34cb0b['model']==_0x5209f9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x169a7f,'*Set\x20font\x20size:*\x20%0',_0x5c3cf1)};}return{'type':'format','content':o(_0x169a7f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4d78f2['commandName']){const _0x19f687=_0x4d78f2['commandParams'][0x0]['value'];return _0x19f687?{'type':'format','content':o(_0x169a7f,'*Set\x20font\x20family:*\x20%0',_0x19f687)}:{'type':'format','content':o(_0x169a7f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4d78f2['commandName']){const _0x3d36ff=_0x4d78f2['commandParams'][0x0]['value'];if(_0x3d36ff){const _0x2f7857=_0x27e203(this['editor']['config']['get']('fontColor.colors'))['find'](_0x258f74=>_0x258f74['model']==_0x3d36ff);let _0x3bf904=_0x3d36ff,_0x41b0c4='';return _0x2f7857&&(_0x3bf904=_0x2f7857['label'],_0x41b0c4=_0x5050a9(_0x3bf904)['toLowerCase']()),{'type':'format','content':o(_0x169a7f,'*Set\x20font\x20color:*\x20%0',_0x41b0c4)['trim'](),'color':{'value':_0x3d36ff,'title':_0x41b0c4||_0x3bf904}};}return{'type':'format','content':o(_0x169a7f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4d78f2['commandName']){const _0x216053=_0x4d78f2['commandParams'][0x0]['value'];if(_0x216053){const _0x1eb2ad=_0x27e203(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3cf60c=>_0x3cf60c['model']==_0x216053);let _0x19122f=_0x216053,_0x2bd8a6='';return _0x1eb2ad&&(_0x19122f=_0x1eb2ad['label'],_0x2bd8a6=_0x5050a9(_0x19122f)['toLowerCase']()),{'type':'format','content':o(_0x169a7f,'*Set\x20font\x20background\x20color:*\x20%0',_0x2bd8a6)['trim'](),'color':{'value':_0x216053,'title':_0x2bd8a6||_0x19122f}};}return{'type':'format','content':o(_0x169a7f,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x4540bb{['afterInit'](){const _0x283bd5=this['editor'],_0x5808ee=_0x283bd5['plugins']['get']('TrackChangesEditing'),_0x1af2cf=_0x283bd5['commands']['get']('copyFormat'),_0x57923a=_0x283bd5['commands']['get']('pasteFormat');_0x1af2cf&&_0x57923a&&(_0x5808ee['enableDefaultAttributesIntegration']('pasteFormat'),_0x5808ee['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x468405=this['editor'],_0x336726=_0x468405['locale'];_0x468405['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x275f1a=>{if('formatBlock'!=_0x275f1a['type']&&'formatInline'!=_0x275f1a['type'])return;const {data:_0x2f0fa5}=_0x275f1a;if(_0x2f0fa5&&'pasteFormat'===_0x2f0fa5['commandName']){const _0x36b5f6=[],_0x16d6b5=_0x2f0fa5['commandParams'][0x0];for(const [_0x13e0d6,_0x3cfc35]of Object['entries'](_0x16d6b5))_0x36b5f6['push'](ro(_0x468405,_0x13e0d6,_0x3cfc35));return _0x36b5f6['length']?{'type':'format','content':o(_0x336726,'*Set\x20format\x20to:*\x20%0',_0x36b5f6['join'](',\x20'))}:{'type':'format','content':o(_0x336726,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1c138a,_0x11e229,_0x21c36a){const _0x310028=_0x1c138a['locale']['t'],_0x1ceb69=_0x11e229['split'](/(?=[A-Z])/)['join']('\x20'),_0x5d8443=_0x310028(_0x1ceb69['charAt'](0x0)['toUpperCase']()+_0x1ceb69['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x21c36a)return _0x5d8443;if('fontColor'===_0x11e229||'fontBackgroundColor'===_0x11e229){const _0x17be7e=_0x27e203(_0x1c138a['config']['get']('fontColor.colors'))['find'](_0x25c91f=>_0x25c91f['model']==_0x21c36a);return _0x5d8443+'\x20('+(_0x17be7e?_0x310028(_0x17be7e['label'])['toLowerCase']():_0x21c36a)+')';}if('fontSize'===_0x11e229&&isNaN(parseFloat(_0x21c36a))){const _0x5d39c2=_0x1c138a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1c138a['config']['get']('fontSize.options'))['find'](_0x957549=>_0x957549['model']==_0x21c36a);return _0x5d8443+'\x20('+(_0x5d39c2?_0x310028(_0x5d39c2['title'])['toLowerCase']():_0x21c36a)+')';}return _0x5d8443+'\x20('+_0x21c36a+')';}class Z extends _0x4540bb{['_headingOptions'];['afterInit'](){const _0x40681c=this['editor'];if(!_0x40681c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x40681c['config']['get']('heading.options');const _0x258562=_0x40681c['locale'],_0x4f844a=_0x40681c['plugins']['get']('TrackChangesEditing');_0x4f844a['enableDefaultAttributesIntegration']('heading');for(const _0x39fe78 of this['_headingOptions'])'paragraph'!=_0x39fe78['model']&&_0x4f844a['descriptionFactory']['registerElementLabel'](_0x39fe78['model'],_0x49ecb3=>{const _0x2fd4e3=this['_getHeadingLevel'](_0x39fe78['model']);return null!==_0x2fd4e3?_0xfabe70(_0x49ecb3,_0x2fd4e3):_0x54b2c5(_0x49ecb3,_0x39fe78['title']);});function _0xfabe70(_0x48765e,_0x2b9b1b){return o(_0x258562,'ELEMENT_HEADING',[_0x48765e,_0x2b9b1b]);}function _0x54b2c5(_0x189152,_0x5ca807){return o(_0x258562,'ELEMENT_HEADING_CUSTOM',[_0x189152,_0x5ca807]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a1e9a=this['editor'],_0x4cd730=_0x2a1e9a['locale'];function _0x2f3839(_0x1a8ba1,_0x2e364f){return o(_0x4cd730,'ELEMENT_HEADING_CUSTOM',[_0x1a8ba1,_0x2e364f]);}_0x2a1e9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34e75c=>{if('formatBlock'!=_0x34e75c['type'])return;const {data:_0x98262a}=_0x34e75c;if(_0x98262a&&'heading'==_0x98262a['commandName']){const _0x2205ab=_0x98262a['commandParams'][0x0]['value'],_0x59b5ab=this['_getHeadingLevel'](_0x2205ab);if(null!==_0x59b5ab)return{'type':'format','content':o(_0x4cd730,'*Change\x20to:*\x20%0',(_0x1deb54=0x1,_0x13ab25=_0x59b5ab,o(_0x4cd730,'ELEMENT_HEADING',[_0x1deb54,_0x13ab25])))};const _0x15cb2f=this['_headingOptions']['find'](_0x3a5472=>_0x3a5472['model']===_0x2205ab)['title'];return{'type':'format','content':o(_0x4cd730,'*Change\x20to:*\x20%0',_0x2f3839(0x1,_0x15cb2f))};}var _0x1deb54,_0x13ab25;});}['_getHeadingLevel'](_0x3cac93){const _0x241ad6=_0x3cac93['match'](/^heading(\d+)/);if(_0x241ad6)return _0x241ad6[0x1];const _0x3f3b3f=this['_headingOptions']?.['find'](_0x32a056=>_0x32a056['model']==_0x3cac93);if(_0x3f3b3f&&_0x3f3b3f['view']){const _0x577af9=_0x3f3b3f['view'],_0x45eefd=(_0x577af9['name']??_0x577af9)['match'](/^h(\d+)/);if(_0x45eefd)return _0x45eefd[0x1];}return null;}}class tt extends _0x4540bb{['afterInit'](){const _0x1d594f=this['editor'];if(!_0x1d594f['plugins']['has']('HighlightEditing'))return;const _0x1098a6=_0x1d594f['plugins']['get']('TrackChangesEditing'),_0x2570ba=_0x1d594f['locale'];_0x1098a6['enableDefaultAttributesIntegration']('highlight'),_0x1098a6['registerInlineAttribute']('highlight'),_0x1098a6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2570ba,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf2c1=this['editor'],_0x1857bd=_0x4bf2c1['locale'];_0x4bf2c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26fcc1=>{if('formatInline'!=_0x26fcc1['type'])return;const {data:_0x21f8c0}=_0x26fcc1;if(_0x21f8c0&&'highlight'==_0x21f8c0['commandName']){const _0x1e6be0=_0x1857bd['t'],_0x373ea1=_0x21f8c0['commandParams'][0x0]['value'];if(_0x373ea1){const _0x57b451=_0x4bf2c1['config']['get']('highlight.options')['find'](_0x157a6a=>_0x157a6a['model']==_0x373ea1),_0x4ae836=_0x1e6be0(_0x57b451['title'])['toLowerCase']();return{'type':'format','content':o(_0x1857bd,'*Set\x20highlight:*\x20%0',_0x4ae836),'color':{'value':_0x57b451['color'],'title':_0x57b451['title']}};}return{'type':'format','content':o(_0x1857bd,'*Remove\x20highlight*',o(_0x1857bd,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4540bb{['afterInit'](){const _0xef47b6=this['editor'];if(!_0xef47b6['plugins']['has']('HorizontalLineEditing'))return;_0xef47b6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3af1f0=_0xef47b6['plugins']['get']('TrackChangesEditing'),_0x30b58e=_0xef47b6['locale'];_0x3af1f0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1189a5=>o(_0x30b58e,'ELEMENT_HORIZONTAL_LINE',_0x1189a5)),_0xef47b6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xf6b392,{writer:_0xb561c8,options:_0x207541})=>{if(!_0x207541['showSuggestionHighlights'])return null;const _0x10f3a8=_0xb561c8['createContainerElement']('div'),_0x186602=_0xb561c8['createEmptyElement']('hr');return _0xb561c8['addClass']('ck-horizontal-line',_0x10f3a8),_0xb561c8['insert'](_0xb561c8['createPositionAt'](_0x10f3a8,0x0),_0x186602),_0x10f3a8;},'converterPriority':'high'});}}class nt extends _0x4540bb{['afterInit'](){const _0x43c55e=this['editor'];if(!_0x43c55e['plugins']['has']('HtmlEmbed'))return;const _0x4552e4=_0x43c55e['plugins']['get']('TrackChangesEditing'),_0x26037a=_0x43c55e['locale'];_0x4552e4['descriptionFactory']['registerElementLabel']('rawHtml',_0x2e76d2=>o(_0x26037a,'ELEMENT_HTML_EMBED',_0x2e76d2)),_0x4552e4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4552e4['registerBlockAttribute']('value'),_0x4552e4['descriptionFactory']['registerDescriptionCallback'](_0x4b9587=>{if('attribute'!=_0x4b9587['type'])return;const {data:_0x4755f2}=_0x4b9587;if(_0x4755f2&&'value'==_0x4755f2['key']&&_0x4b9587['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x381d55=o(_0x26037a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x26037a,'*Change\x20%0\x20content*',_0x381d55)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x172072=this['editor'],_0x41d1b8=_0x172072['locale'];_0x172072['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3581f8=>{if('formatBlock'!=_0x3581f8['type'])return;const {data:_0x260034}=_0x3581f8;if(_0x260034&&'htmlEmbed'==_0x260034['commandName']){const _0x34dd0e=o(_0x41d1b8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41d1b8,'*Change\x20%0\x20content*',_0x34dd0e)};}});}}class et extends _0x4540bb{['afterInit'](){const _0x4ea0fd=this['editor'];if(!_0x4ea0fd['plugins']['has']('ImageEditing'))return;const _0xa41e93=_0x4ea0fd['plugins']['get']('TrackChangesEditing'),_0x5066a3=_0x4ea0fd['plugins']['get']('ImageUtils'),_0x410474=_0x4ea0fd['locale'];_0xa41e93['enableCommand']('insertImage'),_0xa41e93['descriptionFactory']['registerElementLabel']('imageBlock',_0x47723b=>o(_0x410474,'ELEMENT_IMAGE',_0x47723b)),_0xa41e93['descriptionFactory']['registerElementLabel']('imageInline',_0x163b14=>o(_0x410474,'ELEMENT_INLINE_IMAGE',_0x163b14)),_0xa41e93['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x410474,'ELEMENT_CAPTION')),_0x4ea0fd['plugins']['has']('ImageUploadEditing')&&_0xa41e93['enableCommand']('uploadImage'),_0x4ea0fd['plugins']['has']('ImageBlockEditing')&&_0x4ea0fd['plugins']['has']('ImageInlineEditing')&&(_0xa41e93['enableCommand']('imageTypeInline',(_0x21756c,_0x6bcb2a)=>{const _0xcd25d2=_0x5066a3['getClosestSelectedImageElement'](_0x4ea0fd['model']['document']['selection']);_0x4ea0fd['model']['change'](()=>{_0xa41e93['markBlockFormat'](_0xcd25d2,{'commandName':'imageTypeInline','commandParams':[_0x6bcb2a]},[],'convertBlockImageToInline');});}),_0xa41e93['enableCommand']('imageTypeBlock',(_0x1c3f7f,_0x4a2e32)=>{_0x4ea0fd['model']['change'](_0x46f15b=>{let _0x5b1cb7=_0x5066a3['getClosestSelectedImageElement'](_0x4ea0fd['model']['document']['selection']),_0x43a2dc=_0x46f15b['createRangeOn'](_0x5b1cb7);const _0x192d8d=_0x1c570c['fromPosition'](_0x43a2dc['start'],'toPrevious'),_0x49ef9b=_0x1c570c['fromPosition'](_0x43a2dc['end'],'toNext');_0xa41e93['forceDefaultExecution'](()=>_0x1c3f7f(_0x4a2e32)),_0x5b1cb7=_0x5066a3['getClosestSelectedImageElement'](_0x4ea0fd['model']['document']['selection']),_0x43a2dc=_0x46f15b['createRangeOn'](_0x5b1cb7);const _0xd5d34b=_0x46f15b['createRange'](_0x192d8d,_0x49ef9b);_0x192d8d['detach'](),_0x49ef9b['detach'](),_0xa41e93['markBlockFormat'](_0x5b1cb7,{'commandName':'imageTypeInline','commandParams':[_0x4a2e32]},[],'convertInlineImageToBlock'),_0xd5d34b['start']['isBefore'](_0x43a2dc['start'])&&_0xa41e93['markInsertion'](_0x46f15b['createRange'](_0xd5d34b['start'],_0x43a2dc['start']),'convertInlineImageToBlock'),_0x43a2dc['end']['isBefore'](_0xd5d34b['end'])&&_0xa41e93['markInsertion'](_0x46f15b['createRange'](_0x43a2dc['end'],_0xd5d34b['end']),'convertInlineImageToBlock');});}),_0xa41e93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xa41e93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xa41e93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xa41e93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xa41e93['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xa41e93['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4881d9])=>{const _0x113896=_0xa41e93['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x218bf0=_0x4881d9['start'],_0x1a03a4=_0x4881d9['end'];const _0x28b609=_0x4ea0fd['model']['schema']['getNearestSelectionRange'](_0x218bf0,'backward'),_0x3be74a=_0x4ea0fd['model']['schema']['getNearestSelectionRange'](_0x1a03a4,'forward');_0x28b609['isCollapsed']&&(_0x218bf0=_0x28b609['start']),_0x3be74a['isCollapsed']&&(_0x1a03a4=_0x3be74a['end']),_0x113896([_0x4ea0fd['model']['createRange'](_0x218bf0,_0x1a03a4)]);}),_0xa41e93['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x583cd2),_0xa41e93['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x583cd2)),_0x4ea0fd['plugins']['has']('ImageCaptionEditing')&&(_0xa41e93['enableCommand']('toggleImageCaption',(_0x398f70,_0x27caaa)=>{const _0x28c883=_0x4ea0fd['plugins']['get']('ImageCaptionUtils');let _0x38b12e=_0x5066a3['getClosestSelectedImageElement'](_0x4ea0fd['model']['document']['selection']),_0x285ac4=_0x28c883['getCaptionFromImageModelElement'](_0x38b12e);_0x4ea0fd['model']['change'](()=>{if(_0x285ac4)return void _0xa41e93['markDeletion'](_0x4ea0fd['model']['createRangeOn'](_0x285ac4));const _0x863367=_0x5066a3['isBlockImage'](_0x38b12e);_0x398f70(_0x27caaa),_0x38b12e=_0x5066a3['getClosestSelectedImageElement'](_0x4ea0fd['model']['document']['selection']),_0x285ac4=_0x28c883['getCaptionFromImageModelElement'](_0x38b12e),_0xa41e93['markInsertion'](_0x4ea0fd['model']['createRangeOn'](_0x285ac4),_0x863367?null:'imageCaption');});}),_0xa41e93['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x583cd2));const _0x53cc63=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32f867(_0x12d802,_0x368d9b){const _0x16e7c2=_0x53cc63['findIndex'](({type:_0x5f16af,subType:_0x5a7b41})=>_0x12d802['type']==_0x5f16af&&_0x12d802['subType']==_0x5a7b41),_0x327353=_0x53cc63['findIndex'](({type:_0xe829df,subType:_0x22cb49})=>_0x368d9b['type']==_0xe829df&&_0x368d9b['subType']==_0x22cb49);if(_0x16e7c2<0x0||_0x327353<0x0)return!0x1;const _0x37d0cb=_0x12d802['getFirstRange'](),_0x15d1f2=_0x368d9b['getFirstRange']();if((0x0==_0x16e7c2||0x1==_0x16e7c2)&&0x2==_0x327353&&_0x37d0cb['isIntersecting'](_0x15d1f2))return!0x0;if(0x2==_0x16e7c2&&0x3==_0x327353){const _0x5e01b7=_0xa41e93['_findSuggestions'](_0x37d0cb,'insertion')['filter'](({suggestion:_0x2abb73,meta:_0x39b7c8})=>_0x39b7c8['isOwn']&&'convertInlineImageToBlock'==_0x2abb73['subType']);if(_0x5e01b7['length']>0x1&&_0x15d1f2['end']['isEqual'](_0x37d0cb['start']))return!0x0;if(0x1==_0x5e01b7['length']&&(_0x37d0cb['start']['isEqual'](_0x15d1f2['end'])||_0x37d0cb['end']['isEqual'](_0x15d1f2['start'])))return!0x0;}if(0x3==_0x16e7c2&&0x3==_0x327353&&_0x37d0cb['start']['isBefore'](_0x15d1f2['start'])){const _0x4b122c=_0x37d0cb['end']['nodeAfter'],_0x51eac1=_0x15d1f2['start']['nodeBefore'];return _0x5066a3['isBlockImage'](_0x4b122c)&&_0x4b122c===_0x51eac1;}return!0x1;}function _0x583cd2(_0xdfcf8f,_0x3fa5f5){return _0x32f867(_0xdfcf8f,_0x3fa5f5)?[_0xdfcf8f,_0x3fa5f5]:_0x32f867(_0x3fa5f5,_0xdfcf8f)?[_0x3fa5f5,_0xdfcf8f]:null;}_0x4ea0fd['plugins']['has']('ImageResize')&&(_0xa41e93['enableDefaultAttributesIntegration']('resizeImage'),_0xa41e93['registerBlockAttribute']('resizedWidth'),_0xa41e93['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x410474,'FORMAT_IMAGE_SIZE'))),_0x4ea0fd['plugins']['has']('ImageTextAlternativeEditing')&&(_0xa41e93['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xa41e93['registerBlockAttribute']('alt')),_0x4ea0fd['plugins']['has']('PictureEditing')&&(_0xa41e93['registerBlockAttribute']('sources'),_0xa41e93['descriptionFactory']['registerDescriptionCallback'](_0x3d8ca7=>{if('attribute'!=_0x3d8ca7['type'])return;const {data:_0xc222b3}=_0x3d8ca7;return _0xc222b3&&'sources'==_0xc222b3['key']?{'type':'format','content':''}:void 0x0;})),_0x4ea0fd['plugins']['has']('ImageSizeAttributes')&&(_0xa41e93['registerBlockAttribute']('width'),_0xa41e93['registerBlockAttribute']('height'),_0xa41e93['descriptionFactory']['registerDescriptionCallback'](_0x3a6792=>{if('attribute'!=_0x3a6792['type'])return;const {data:_0xf2af3e}=_0x3a6792;return!_0xf2af3e||'width'!=_0xf2af3e['key']&&'height'!=_0xf2af3e['key']?void 0x0:{'type':'format','content':''};})),_0xa41e93['descriptionFactory']['registerDescriptionCallback'](_0x139abd=>{if(!!_0x53cc63['find'](({type:_0x446fa9,subType:_0x406f89})=>_0x139abd['type']==_0x446fa9&&_0x139abd['subType']==_0x406f89))return _0x139abd['previous']?{}:void 0x0;}),_0xa41e93['descriptionFactory']['registerDescriptionCallback'](_0x3a8f92=>{if('insertion'==_0x3a8f92['type']||'deletion'==_0x3a8f92['type']){const _0x1c3bfe=_0x3a8f92['getContainedElement']();if(_0x1c3bfe&&_0x1c3bfe['is']('element','caption'))return{'type':'insertion'==_0x3a8f92['type']?'addObject':'removeObject','element':_0x1c3bfe,'quantity':0x1};}}),_0xa41e93['descriptionFactory']['registerDescriptionCallback'](_0x37d32b=>'formatBlock'==_0x37d32b['type']&&'convertInlineImageToBlock'==_0x37d32b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x37d32b['type']&&'convertBlockImageToInline'==_0x37d32b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xa41e93['descriptionFactory']['registerDescriptionCallback'](_0x36aa1f=>{if('attribute'!=_0x36aa1f['type'])return;const {data:_0x3d8751}=_0x36aa1f;if(!_0x3d8751||'alt'!=_0x3d8751['key'])return;const _0x37ae3e=_0x3d8751['newValue'];return _0x37ae3e?{'type':'format','content':o(_0x410474,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x37ae3e+'\x22')}:{'type':'format','content':o(_0x410474,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b8107=this['editor'],_0x271897=_0x1b8107['locale'];_0x1b8107['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36e221=>{if('formatBlock'!=_0x36e221['type']&&'formatInline'!=_0x36e221['type'])return;const {data:_0x427404}=_0x36e221;if(_0x427404){if('imageTextAlternative'==_0x427404['commandName']){const _0x46fdf4=_0x427404['commandParams'][0x0]['newValue'];return _0x46fdf4?{'type':'format','content':o(_0x271897,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46fdf4+'\x22')}:{'type':'format','content':o(_0x271897,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x427404['commandName']){const _0x133c67=_0x427404['commandParams'][0x0]['width'];return _0x133c67?{'type':'format','content':o(_0x271897,'*Set\x20image\x20width:*\x20%0',_0x133c67)}:{'type':'format','content':o(_0x271897,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4540bb{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5b02d4=this['editor']['locale'],_0x232164=this['editor']['plugins']['get']('TrackChangesEditing');_0x232164['enableDefaultAttributesIntegration']('replaceImageSource'),_0x232164['registerBlockAttribute']('src'),_0x232164['descriptionFactory']['registerDescriptionCallback'](_0x301560=>{if('attribute'!=_0x301560['type'])return;const {data:_0x556d7e}=_0x301560;return _0x556d7e&&'src'==_0x556d7e['key']?_0x556d7e['newValue']&&_0x556d7e['oldValue']?{'type':'format','content':o(_0x5b02d4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2892c9=this['editor']['plugins']['get']('TrackChangesEditing');_0x2892c9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2892c9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2892c9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2892c9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x413eaf=this['editor'],_0xad83c1=_0x413eaf['locale'];_0x413eaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2abf7c=>{if('formatBlock'!=_0x2abf7c['type']&&'formatInline'!=_0x2abf7c['type'])return;const {data:_0x35f702}=_0x2abf7c;if(!_0x35f702||'replaceImageSource'!=_0x35f702['commandName'])return;return{'type':'format','content':o(_0xad83c1,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x4540bb{['afterInit'](){const _0x934ce=this['editor'];if(!_0x934ce['plugins']['has']('ImageStyleEditing'))return;const _0x27d702=_0x934ce['plugins']['get']('TrackChangesEditing'),_0x1e19df=_0x934ce['plugins']['get']('ImageUtils'),_0x1b69ea={};_0x27d702['enableCommand']('imageStyle',(_0x533989,_0x3a35b9)=>{const _0x385abe=_0x934ce['plugins']['get']('Users')['me'],_0x169da3=_0x934ce['commands']['get']('imageStyle');let _0x40ea08=_0x1e19df['getClosestSelectedImageElement'](_0x934ce['model']['document']['selection']),_0x3c5fbb=_0x934ce['model']['createRangeOn'](_0x40ea08),_0x488849=_0x169da3['value'];if(_0x488849==_0x3a35b9['value'])return;const _0x4554a2={'commandName':'imageStyle','commandParams':[_0x3a35b9],'formatGroupId':_0x25e25c()};_0x934ce['model']['change'](()=>{if(_0x27d702['getSuggestions']()['filter'](_0x1f73b8=>_0x1f73b8['isInContent']&&_0x385abe==_0x1f73b8['author']&&('formatBlock'==_0x1f73b8['type']||'formatInline'==_0x1f73b8['type'])&&('imageStylePreApply'==_0x1f73b8['subType']||'imageStylePostApply'==_0x1f73b8['subType'])&&_0x1f73b8['getFirstRange']()['isEqual'](_0x3c5fbb))['forEach'](_0x14fd19=>_0x27d702['discardSuggestion'](_0x14fd19['head'])),_0x40ea08=_0x1e19df['getClosestSelectedImageElement'](_0x934ce['model']['document']['selection']),_0x3c5fbb=_0x934ce['model']['createRangeOn'](_0x40ea08),_0x169da3['refresh'](),_0x934ce['commands']['get']('imageTypeInline')['refresh'](),_0x934ce['commands']['get']('imageTypeBlock')['refresh'](),_0x488849=_0x169da3['value'],_0x488849!=_0x3a35b9['value'])return _0x1e19df['isInlineImage'](_0x40ea08)&&_0x169da3['shouldConvertImageType'](_0x3a35b9['value'],_0x40ea08)?(_0x533989({..._0x3a35b9,'setImageSizes':!0x1}),_0x40ea08=_0x1e19df['getClosestSelectedImageElement'](_0x934ce['model']['document']['selection']),void _0x27d702['markBlockFormat'](_0x40ea08,{..._0x4554a2,'commandReversedParams':[{'value':_0x488849||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e19df['isBlockImage'](_0x40ea08)?_0x27d702['markBlockFormat'](_0x40ea08,_0x4554a2,[],'imageStylePostApply'):_0x27d702['markInlineFormat'](_0x3c5fbb,_0x4554a2,'imageStylePostApply'));});});for(const _0x20018f of _0x934ce['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1b69ea[_0x20018f['name']]=_0x20018f['title']['toLowerCase']();_0x27d702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x27d702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x27d702['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x27d702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x564f5b])=>{_0x1e19df['setImageNaturalSizeAttributes'](_0x564f5b['getContainedElement']());}),_0x27d702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x40274f,_0x3229e0)=>{_0x27d702['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x40274f,{'commandName':_0x3229e0['commandName'],'commandParams':_0x3229e0['commandReversedParams']});}),_0x27d702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4a680b,_0x12f9b6){if(_0x74cb5b(_0x4a680b,_0x12f9b6))return[_0x4a680b,_0x12f9b6];if(_0x74cb5b(_0x12f9b6,_0x4a680b))return[_0x12f9b6,_0x4a680b];return null;});const _0x415c49=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x74cb5b(_0x3e92e7,_0xc46292){const _0x3eff63=_0x415c49['findIndex'](({type:_0x28ce80,subType:_0x1a1854})=>_0x3e92e7['type']==_0x28ce80&&_0x3e92e7['subType']==_0x1a1854),_0x2df655=_0x415c49['findIndex'](({type:_0x386aa1,subType:_0x31382f})=>_0xc46292['type']==_0x386aa1&&_0xc46292['subType']==_0x31382f);if(_0x3eff63<0x0||_0x2df655<0x0)return!0x1;const _0x6c111=_0x3e92e7['getFirstRange'](),_0x2cac38=_0xc46292['getFirstRange']();if((0x0==_0x3eff63||0x1==_0x3eff63)&&0x2==_0x2df655&&_0x6c111['isIntersecting'](_0x2cac38))return!0x0;if(0x2==_0x3eff63&&0x3==_0x2df655){const _0x177ac4=_0x27d702['_findSuggestions'](_0x6c111,'insertion')['filter'](({suggestion:_0x49e0a,meta:_0x22ff0c})=>_0x22ff0c['isOwn']&&'convertInlineImageToBlock'==_0x49e0a['subType']);if(_0x177ac4['length']>0x1&&_0x2cac38['end']['isEqual'](_0x6c111['start']))return!0x0;if(0x1==_0x177ac4['length']&&(_0x6c111['start']['isEqual'](_0x2cac38['end'])||_0x6c111['end']['isEqual'](_0x2cac38['start'])))return!0x0;}if(0x3==_0x3eff63&&0x3==_0x2df655&&_0x6c111['start']['isBefore'](_0x2cac38['start'])){const _0x3469a3=_0x6c111['end']['nodeAfter'],_0x399076=_0x2cac38['start']['nodeBefore'];return _0x1e19df['isBlockImage'](_0x3469a3)&&_0x3469a3===_0x399076;}return!0x1;}_0x934ce['model']['document']['registerPostFixer'](()=>{let _0x433a7b=!0x1;const _0x343b37=Array['from'](_0x934ce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f119b,data:_0xfeb56d}of _0x343b37){const {group:_0x123a0d,type:_0x554d22,subType:_0x3107d4,id:_0x3b5279}=_0x27d702['_splitMarkerName'](_0x4f119b);if('suggestion'==_0x123a0d&&_0x27d702['hasSuggestion'](_0x3b5279)){if('formatBlock'==_0x554d22&&('imageStylePreApply'==_0x3107d4||'imageStylePostApply'==_0x3107d4)){const _0x315895=_0x27d702['getSuggestion'](_0x3b5279);if(_0xfeb56d['newRange']){const _0x5b2295=_0x315895['getFirstRange']()['getContainedElement']();if(_0x1e19df['isBlockImage'](_0x5b2295))continue;_0x27d702['discardSuggestion'](_0x315895),_0x433a7b=!0x0;}}if('insertion'==_0x554d22&&'imageCaption'==_0x3107d4&&!_0xfeb56d['newRange']){const _0x939af2=_0x27d702['getSuggestion'](_0x3b5279);_0x939af2['next']&&_0x939af2['next']['isInContent']&&(_0x27d702['discardSuggestion'](_0x939af2['next']),_0x433a7b=!0x0);}}}return _0x433a7b;}),this['_registerLegacyDescription'](_0x1b69ea);}['_registerLegacyDescription'](_0x5ac659){const _0x554b31=this['editor'],_0x25ef5a=_0x554b31['locale'];_0x554b31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10f1ae=>{if('formatBlock'!=_0x10f1ae['type']&&'formatInline'!=_0x10f1ae['type'])return;const {data:_0x29798f}=_0x10f1ae;if(!_0x29798f||'imageStyle'!=_0x29798f['commandName'])return;const _0x219ec2=_0x29798f['commandParams'][0x0]['value'];return _0x1c9dfc('side'===_0x219ec2?o(_0x25ef5a,'FORMAT_SIDE_IMAGE'):_0x5ac659[_0x219ec2]||_0x219ec2);function _0x1c9dfc(_0x5991e0){return{'type':'format','content':o(_0x25ef5a,'*Format:*\x20%0',_0x5991e0)};}});}}class rt extends _0x4540bb{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5492b7){super(_0x5492b7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x25b20f=this['editor'],_0x3d707a=_0x25b20f['commands']['get']('importWord'),_0x6fb936=_0x25b20f['commands']['get']('trackChanges');_0x3d707a&&(_0x3d707a['on']('execute',(_0x2432cc,[,_0x523a55])=>{this['_trackChangesValueDuringImport']=_0x6fb936['value'],_0x523a55['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3d707a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3d707a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x6fb936['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x25b20f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25a24d,_0x18386d){const {suggestions:_0xaa2673}=_0x18386d,_0xa5cae4=this['editor']['commands']['get']('trackChanges'),_0x34555f=_0xa5cae4['value'];this['_trackChangesValueDuringImport']!==_0x34555f&&(_0xa5cae4['execute'](),this['_trackChangesExecuted']=!0x0),_0xaa2673&&_0xaa2673['forEach'](({id:_0x38d773,type:_0x27c7d5,author:_0x445f6e,created_at:_0xbd4faf})=>{const _0x593ef1={'id':_0x38d773,'type':_0x27c7d5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x445f6e,'createdAt':_0xbd4faf?new Date(_0xbd4faf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x593ef1);});}}class at extends _0x4540bb{['afterInit'](){const _0x36bbab=this['editor'],_0x39d48a=_0x36bbab['plugins']['get']('TrackChangesEditing');if(_0x36bbab['plugins']['has']('IndentEditing')&&(_0x39d48a['enableCommand']('indent'),_0x39d48a['enableCommand']('outdent')),_0x36bbab['plugins']['has']('IndentBlock')){for(const _0x5cd769 of['indentBlock','outdentBlock'])_0x39d48a['enableDefaultAttributesIntegration'](_0x5cd769);}const _0x495954=_0x36bbab['locale'];_0x39d48a['registerBlockAttribute']('blockIndent'),_0x39d48a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x495954,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42a9b7=this['editor'],_0x5ac6cd=_0x42a9b7['locale'],_0x352339=_0x42a9b7['plugins']['get']('TrackChangesEditing');_0x352339['descriptionFactory']['registerDescriptionCallback'](_0x2126e5=>{if('formatBlock'!=_0x2126e5['type'])return;const {data:_0x305a03}=_0x2126e5;if(!_0x305a03)return;if('indentBlock'!=_0x305a03['commandName']&&'outdentBlock'!=_0x305a03['commandName'])return;const _0x374e72=_0x2126e5['getItems']()[0x0],_0x498736=_0x352339['descriptionFactory']['getItemLabel'](_0x374e72);return'indentBlock'==_0x305a03['commandName']?{'type':'format','content':o(_0x5ac6cd,'*Indent:*\x20%0',_0x498736)}:'outdentBlock'==_0x305a03['commandName']?{'type':'format','content':o(_0x5ac6cd,'*Outdent:*\x20%0',_0x498736)}:void 0x0;});}}class ct extends _0x4540bb{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x4540bb{['afterInit'](){const _0x325c4=this['editor'];if(!_0x325c4['plugins']['has']('LinkEditing'))return;const _0x4d6cd2=_0x325c4['plugins']['get']('TrackChangesEditing'),_0x24003e=_0x325c4['commands']['get']('link');_0x4d6cd2['enableDefaultAttributesIntegration']('link'),_0x4d6cd2['enableDefaultAttributesIntegration']('unlink'),_0x4d6cd2['registerInlineAttribute']('linkHref');for(const _0xb261e7 of _0x24003e['manualDecorators'])_0x4d6cd2['registerInlineAttribute'](_0xb261e7['id']),_0x4d6cd2['descriptionFactory']['registerAttributeLabel'](_0xb261e7['id'],'link\x20('+_0xb261e7['label']['toLowerCase']()+')');_0x4d6cd2['descriptionFactory']['registerDescriptionCallback'](_0x41130e=>{if('attribute'!=_0x41130e['type'])return;const {data:_0x1fe0b0}=_0x41130e;if(!_0x1fe0b0||'linkHref'!=_0x1fe0b0['key'])return;const _0x3163d6=_0x1fe0b0['newValue'],_0x168fb7=_0x325c4['locale'];return{'type':'format','content':null==_0x3163d6?o(_0x168fb7,'*Remove\x20link*'):o(_0x168fb7,'*Set\x20link:*\x20%0','\x22'+_0x3163d6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47c013=this['editor'],_0x46c88f=_0x47c013['locale'];_0x47c013['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20b356=>{if('formatInline'!=_0x20b356['type'])return;const {data:_0x384a5e}=_0x20b356;if(_0x384a5e){if('link'==_0x384a5e['commandName']){const _0x23bdef=_0x384a5e['commandParams'][0x0];return{'type':'format','content':o(_0x46c88f,'*Set\x20link:*\x20%0','\x22'+_0x23bdef+'\x22')};}return'unlink'==_0x384a5e['commandName']?{'type':'format','content':o(_0x46c88f,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4540bb{['afterInit'](){const _0x989cff=this['editor'],_0x4294c9=_0x989cff['locale'];if(!_0x989cff['plugins']['has']('LegacyListEditing'))return;const _0x3ebbca=_0x989cff['plugins']['get']('TrackChangesEditing'),_0x292fda=_0x989cff['plugins']['has']('LegacyTodoListEditing');function _0x1831b0(_0x1f7445){return()=>{const _0x283b8b=_0x989cff['model']['document']['selection'],_0x45304b=_0x989cff['commands']['get'](_0x1f7445);if(_0x45304b['value'])return void _0x989cff['execute']('paragraph',{});const _0x1b0f0c=_0x1f7445['slice'](0x0,-0x4),_0x556075=function(_0x3c39cd,_0x3200bc,_0x265d8c){let _0xbbb809=Array['from'](_0x3c39cd)['filter'](_0x5a6cf0=>function(_0x30654b,_0x46877d){return _0x46877d['checkChild'](_0x30654b['parent'],'listItem')&&!_0x46877d['isObject'](_0x30654b);}(_0x5a6cf0,_0x265d8c));_0xbbb809=_0xbbb809['filter'](_0x35907e=>!_0x35907e['is']('element','listItem')||_0x35907e['getAttribute']('listType')!=_0x3200bc);const _0x4d1f7f=new Set();for(const _0xc1c2f1 of _0xbbb809)_0xc1c2f1['is']('element','listItem')?_0x4d1f7f['add'](Le(_0xc1c2f1)):_0x4d1f7f['add'](_0xc1c2f1);return Array['from'](_0x4d1f7f);}(_0x283b8b['getSelectedBlocks'](),_0x1b0f0c,_0x989cff['model']['schema']);_0x989cff['model']['change'](()=>{for(const _0x9c0e06 of _0x556075)_0x3ebbca['markBlockFormat'](_0x9c0e06,{'commandName':_0x1f7445,'commandParams':[{'forceValue':!_0x45304b['value']}],'formatGroupId':'blockName'},Ee(_0x9c0e06));});};}function _0x439f9b(_0x20dbff){return()=>{const _0x395e80=function(_0x5af7c8){let _0x3f4fff=Array['from'](_0x5af7c8);const _0x41d6a6=_0x3f4fff['findIndex'](_0x53c393=>'listItem'!=_0x53c393['name']);return _0x41d6a6>-0x1&&(_0x3f4fff=_0x3f4fff['slice'](0x0,_0x41d6a6)),_0x3f4fff;}(_0x989cff['model']['document']['selection']['getSelectedBlocks']()),_0xb5354e=_0x989cff['model']['createRange'](_0x989cff['model']['createPositionAt'](_0x395e80[0x0],'before'),_0x989cff['model']['createPositionAt'](_0x395e80[_0x395e80['length']-0x1],'end'));_0x989cff['model']['change'](()=>{_0x3ebbca['markBlockFormat'](_0xb5354e,{'commandName':_0x20dbff,'commandParams':[],'formatGroupId':'listIndent'},function(_0x523585){const _0x35e7bf=new Set();for(const _0x2ee435 of _0x523585){let _0x1edf97=_0x2ee435['nextSibling'];for(;_0x1edf97&&_0x1edf97['getAttribute']('listIndent')>_0x2ee435['getAttribute']('listIndent');)_0x35e7bf['add'](_0x1edf97),_0x1edf97=_0x1edf97['nextSibling'];}return Array['from'](_0x35e7bf);}(_0x395e80));});};}_0x3ebbca['enableCommand']('numberedList',_0x1831b0('numberedList')),_0x3ebbca['enableCommand']('bulletedList',_0x1831b0('bulletedList')),_0x292fda&&_0x3ebbca['enableCommand']('todoList',_0x1831b0('todoList')),_0x3ebbca['enableCommand']('indentList',_0x439f9b('indentList')),_0x3ebbca['enableCommand']('outdentList',_0x439f9b('outdentList')),_0x292fda&&_0x3ebbca['enableCommand']('checkTodoList',()=>{const _0x1671dc=_0x989cff['commands']['get']('checkTodoList'),_0x16d61f=Array['from'](_0x1671dc['_selectedElements']);_0x16d61f['filter'](_0x84c468=>_0x84c468['getAttribute']('todoListChecked')!=_0x1671dc['value']),_0x989cff['model']['change'](()=>{for(const _0x455373 of _0x16d61f)_0x3ebbca['markBlockFormat'](_0x455373,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1671dc['value']}]});});}),_0x3ebbca['descriptionFactory']['registerElementLabel']('listItem',_0x1b9523=>o(_0x4294c9,'ELEMENT_LIST_ITEM',_0x1b9523)),_0x3ebbca['descriptionFactory']['registerDescriptionCallback'](_0x44f797=>{if('formatBlock'!=_0x44f797['type']&&'formatInline'!=_0x44f797['type'])return;const {data:_0x2e52df}=_0x44f797;if(_0x2e52df){if('numberedList'==_0x2e52df['commandName']||'bulletedList'==_0x2e52df['commandName']||'todoList'==_0x2e52df['commandName'])switch(_0x2e52df['commandName']['replace']('List','')){case'bulleted':return _0x42406e(o(_0x4294c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x42406e(o(_0x4294c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x42406e(o(_0x4294c9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2e52df['commandName'])return{'type':'format','content':o(_0x4294c9,'*Indent:*\x20%0',o(_0x4294c9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2e52df['commandName'])return{'type':'format','content':o(_0x4294c9,'*Outdent:*\x20%0',o(_0x4294c9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2e52df['commandName'])return _0x2e52df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4294c9,'*Check\x20item*')}:{'type':'format','content':o(_0x4294c9,'*Uncheck\x20item*')};}function _0x42406e(_0x47858b){return{'type':'format','content':o(_0x4294c9,'*Change\x20to:*\x20%0',_0x47858b)};}});}}function Le(_0x36be17){const _0x31cd33=_0x36be17['getAttribute']('listIndent');if(0x0==_0x31cd33)return _0x36be17;let _0x4c7d1d=_0x36be17;for(;_0x36be17['previousSibling']&&_0x36be17['previousSibling']['is']('element','listItem');){const _0x501f48=_0x36be17['previousSibling']['getAttribute']('listIndent');if(_0x501f48==_0x31cd33)_0x4c7d1d=_0x36be17['previousSibling'];else{if(_0x501f48<_0x31cd33)break;}_0x36be17=_0x36be17['previousSibling'];}return _0x4c7d1d;}function Ee(_0x30ce48){const _0x351aa8=[];if(_0x30ce48['is']('element','listItem')&&_0x30ce48['getAttribute']('listIndent')>0x0){let _0x519418=_0x30ce48['nextSibling'];for(;_0x519418&&'listItem'==_0x519418['name']&&_0x519418['getAttribute']('listIndent')==_0x30ce48['getAttribute']('listIndent');)_0x351aa8['push'](_0x519418),_0x519418=_0x519418['nextSibling'];}return _0x351aa8;}class ht extends _0x4540bb{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x335211=this['editor']['config']['get']('list.properties'),_0x2ca588=this['editor']['plugins']['get']('TrackChangesEditing');_0x335211['styles']&&_0x2ca588['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x335211['reversed']&&_0x2ca588['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x335211['startIndex']&&_0x2ca588['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2ca588['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xea4bc,_0x41e3c8={}){const _0xed727c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe923d4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xed727c['markMultiRangeBlockFormat'](_0xe923d4,{'commandName':'listStyle','commandParams':[{'type':_0x41e3c8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15d2af,_0x4b5a59={}){const _0x454305=this['editor']['plugins']['get']('TrackChangesEditing'),_0x78f454=this['_getSuggestionBlocks'](_0x5babee=>_0x5babee['is']('element','listItem')&&'numbered'===_0x5babee['getAttribute']('listType'));if(_0x78f454['length']<0x1)return;const _0x524527=_0x78f454['map'](_0x33bed9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33bed9,'before'),this['editor']['model']['createPositionAt'](_0x33bed9,0x0)));this['editor']['model']['change'](()=>{_0x454305['markMultiRangeBlockFormat'](_0x524527,{'commandName':'listReversed','commandParams':[{'reversed':_0x4b5a59['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x206a00,_0x38cbf7={}){const _0x1aca61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x413bbd=this['_getSuggestionBlocks'](_0x515e11=>_0x515e11['is']('element','listItem')&&'numbered'===_0x515e11['getAttribute']('listType'));if(_0x413bbd['length']<0x1)return;const _0xa6e4d1=_0x413bbd['map'](_0x2d6d4c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d6d4c,'before'),this['editor']['model']['createPositionAt'](_0x2d6d4c,0x0)));this['editor']['model']['change'](()=>{_0x1aca61['markMultiRangeBlockFormat'](_0xa6e4d1,{'commandName':'listStart','commandParams':[{'startIndex':_0x38cbf7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1ab57f){if('formatBlock'!=_0x1ab57f['type']&&'formatInline'!=_0x1ab57f['type'])return;const _0x31ebce=this['editor']['locale'],{data:_0x5e5a7c}=_0x1ab57f;if(!_0x5e5a7c)return;let _0x1d2b6e,_0x360610;switch(_0x5e5a7c['commandName']){case'listStyle':_0x1d2b6e='*Change\x20to:*\x20%0',_0x360610={'type':'format','content':o(_0x31ebce,_0x1d2b6e,o(_0x31ebce,this['_getTranslationKeyForListStyle'](_0x5e5a7c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d2b6e=_0x5e5a7c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x360610={'type':'format','content':o(_0x31ebce,_0x1d2b6e)};break;case'listStart':_0x1d2b6e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x360610={'type':'format','content':o(_0x31ebce,_0x1d2b6e,_0x5e5a7c['commandParams'][0x0]['startIndex'])};}return _0x360610;}['_getSuggestionBlocksForListStyle'](){const _0x142f0a=this['editor']['plugins']['get']('LegacyListUtils');let _0x28bee5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x28bee5[0x0]?.['is']('element','listItem')&&_0x28bee5['unshift'](..._0x142f0a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x28bee5[_0x28bee5['length']-0x1]?.['is']('element','listItem')&&_0x28bee5['push'](..._0x142f0a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x28bee5=[...new Set(_0x28bee5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x28bee5=_0x28bee5['filter'](_0x1bf7d5=>_0x1bf7d5['is']('element','listItem'))),_0x28bee5;}['_getSuggestionBlocks'](_0x56bd18){const _0x5065cd=this['editor']['plugins']['get']('LegacyListUtils');let _0x1c2bcb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x56bd18)['map'](_0x47b4f4=>{const _0x407f76=this['editor']['model']['createPositionAt'](_0x47b4f4,0x0);return[..._0x5065cd['getSiblingNodes'](_0x407f76,'backward'),..._0x5065cd['getSiblingNodes'](_0x407f76,'forward')];})['flat']();return _0x1c2bcb=[...new Set(_0x1c2bcb)],_0x1c2bcb;}['_getTranslationKeyForListStyle'](_0x510e56){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x510e56)||'default')['toUpperCase']()+'_LIST_'+_0x510e56['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x4540bb{['afterInit'](){const _0x143558=this['editor'];if(!_0x143558['plugins']['has']('MediaEmbedEditing'))return;const _0x28927c=_0x143558['plugins']['get']('TrackChangesEditing'),_0x3583d3=_0x143558['locale'];_0x28927c['enableCommand']('mediaEmbed'),_0x28927c['descriptionFactory']['registerElementLabel']('media',_0x221edd=>o(_0x3583d3,'ELEMENT_MEDIA',_0x221edd)),_0x143558['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x10f3c5,{writer:_0x1916bc,options:_0x3b45be})=>{if(_0x3b45be['showSuggestionHighlights'])return _0x1916bc['createEmptyElement']('div');},'converterPriority':'high'}),_0x143558['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2909f9,_0x290086,_0x279f8e)=>{_0x279f8e['options']['showSuggestionHighlights']&&_0x2909f9['stop']();},{'priority':'high'});}}class lt extends _0x4540bb{['afterInit'](){const _0x44e204=this['editor'];_0x44e204['plugins']['has']('MentionEditing')&&_0x44e204['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4540bb{['afterInit'](){const _0x3b3143=this['editor'];if(!_0x3b3143['plugins']['has']('MergeFieldsEditing'))return;const _0x5eaebf=_0x3b3143['plugins']['get']('TrackChangesEditing'),_0x447ed6=_0x3b3143['locale'];_0x5eaebf['enableCommand']('insertMergeField'),_0x5eaebf['enableCommand']('insertMergeFieldBlock'),_0x5eaebf['enableCommand']('insertMergeFieldImage'),_0x5eaebf['descriptionFactory']['registerElementLabel']('mergeField',_0x2ebcbe=>o(_0x447ed6,'ELEMENT_MERGE_FIELD',_0x2ebcbe)),_0x5eaebf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bd235=>o(_0x447ed6,'ELEMENT_MERGE_FIELD',_0x2bd235)),_0x5eaebf['descriptionFactory']['registerDescriptionCallback'](_0x5978c6=>{if('insertion'!=_0x5978c6['type']&&'deletion'!=_0x5978c6['type'])return;const _0x12fb8d=_0x5978c6['getContainedElement']();if(null==_0x12fb8d)return;const _0x41f586=_0x3b3143['plugins']['get']('MergeFieldsEditing');let _0x523142;switch(_0x41f586['getMergeFieldType'](_0x12fb8d)){case null:return;case'image':{const _0x262fd9=_0x41f586['unwrapAffixes'](_0x12fb8d['getAttribute']('src'));_0x523142=_0x41f586['getLabel'](_0x262fd9)||_0x262fd9;break;}default:{const _0x4f838e=_0x12fb8d['getAttribute']('id');_0x523142=_0x41f586['getLabel'](_0x4f838e)||_0x4f838e;break;}}return'insertion'==_0x5978c6['type']?{'type':'insertion','content':o(_0x447ed6,'*Insert:*\x20%0','\x22'+_0x523142+'\x22\x20'+o(_0x447ed6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x447ed6,'*Remove:*\x20%0','\x22'+_0x523142+'\x22\x20'+o(_0x447ed6,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x4540bb{['afterInit'](){const _0x131d20=this['editor'],_0x41ff17=_0x131d20['plugins']['get']('TrackChangesEditing');_0x131d20['plugins']['has']('MultiLevelList')&&(_0x41ff17['enableDefaultAttributesIntegration']('multiLevelList'),_0x41ff17['registerBlockAttribute']('listMarkerStyle'),_0x41ff17['descriptionFactory']['registerDescriptionCallback'](_0x186bd2=>this['handleDescriptions'](_0x186bd2)));}['handleDescriptions'](_0xa2804){const _0x123e8f=this['editor']['locale'],{data:_0x57a557}=_0xa2804,_0x45e6b0={'type':'format','content':''};if(_0x57a557&&'listMarkerStyle'==_0x57a557['key']){if(!_0x57a557['oldValue'])return{'type':'format','content':o(_0x123e8f,'*Set\x20format:*\x20%0',o(_0x123e8f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57a557['newValue']+')'};if(!_0x57a557['newValue']){let _0x4b6400=_0xa2804['head'];for(;_0x4b6400;){if(_0x4b6400['data']&&'listType'==_0x4b6400['data']['key']&&_0x4b6400['data']['newValue'])return _0x45e6b0;_0x4b6400=_0x4b6400['next'];}return{'type':'format','content':o(_0x123e8f,'*Remove\x20format:*\x20%0',o(_0x123e8f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57a557['oldValue']+')'};}}}}class pt extends _0x4540bb{['afterInit'](){const _0x3bf052=this['editor'];if(!_0x3bf052['plugins']['has']('PageBreakEditing'))return;_0x3bf052['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x176f15=_0x3bf052['plugins']['get']('TrackChangesEditing'),_0x3069e4=_0x3bf052['locale'];_0x176f15['descriptionFactory']['registerElementLabel']('pageBreak',_0x218dab=>o(_0x3069e4,'ELEMENT_PAGE_BREAK',_0x218dab));}}class kt extends _0x4540bb{['afterInit'](){const _0x92b4a6=this['editor'];if(!_0x92b4a6['plugins']['has']('Paragraph'))return;const _0x250c9b=_0x92b4a6['locale'],_0xa5537d=_0x92b4a6['plugins']['get']('TrackChangesEditing');_0xa5537d['descriptionFactory']['registerElementLabel']('paragraph',_0x544242=>o(_0x250c9b,'ELEMENT_PARAGRAPH',_0x544242)),_0xa5537d['enableDefaultAttributesIntegration']('paragraph'),_0xa5537d['enableCommand']('insertParagraph'),_0x92b4a6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x92b4a6),{'priority':'highest'}),_0x92b4a6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x419173,_0x6f7fbc,_0x4afc97)=>{_0x4afc97['options']['showSuggestionHighlights']&&nr(_0x92b4a6,{'showActiveMarker':!0x1})(_0x419173,_0x6f7fbc,_0x4afc97);},{'priority':'highest'});const _0x2d675b=_0xa5537d['descriptionFactory'];_0x2d675b['registerDescriptionCallback'](_0x419936=>{if('insertion'!==_0x419936['type'])return;const {start:_0x5e4f25,end:_0x11f1e4}=_0x419936['getFirstRange']();if(!_0x5e4f25['isTouching'](_0x11f1e4)||!_0x5e4f25['nodeAfter'])return;const _0x51507f=_0x92b4a6['model']['schema'],_0x365e19=_0x5e4f25['nodeAfter'];return _0x51507f['isBlock'](_0x365e19)&&!_0x51507f['isLimit'](_0x365e19)&&_0x51507f['checkChild'](_0x365e19,'$text')?{'type':'insertion','content':o(_0x250c9b,'*Insert:*\x20%0',_0x2d675b['getItemLabel'](_0x365e19,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36fb63=this['editor'],_0x18db2c=_0x36fb63['locale'];_0x36fb63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cfbac=>{if('formatBlock'!=_0x3cfbac['type'])return;const {data:_0x1e27d2}=_0x3cfbac;return _0x1e27d2&&'paragraph'==_0x1e27d2['commandName']?{'type':'format','content':o(_0x18db2c,'*Change\x20to:*\x20%0',o(_0x18db2c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x254cb7,{showActiveMarker:_0x6cc313=!0x0}={}){return(_0x2c7aca,_0xc29b3e,_0x269eba)=>{const _0x3e13b9=_0x254cb7['plugins']['get']('TrackChangesEditing'),_0x5e79ba=_0xc29b3e['markerRange']['start'],_0x2eadec=_0xc29b3e['markerRange']['end'],_0x309a89=_0x254cb7['model']['schema'];if(!_0x5e79ba['isTouching'](_0x2eadec)||!_0x5e79ba['nodeAfter'])return;const _0xde3ecf=_0x5e79ba['nodeAfter'];if(_0x309a89['isBlock'](_0xde3ecf)&&!_0x309a89['isLimit'](_0xde3ecf)&&_0x309a89['checkChild'](_0xde3ecf,'$text')){if(!_0x269eba['consumable']['consume'](_0xc29b3e['markerRange'],_0x2c7aca['name']))return;const {id:_0x4eb298,authorId:_0x44ab46}=_0x3e13b9['_splitMarkerName'](_0xc29b3e['markerName']),_0x2d092f=_0x269eba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4eb298,'data-author-id':_0x44ab46}),_0x511feb=_0x269eba['mapper']['toViewPosition'](_0x2eadec);_0x6cc313&&_0x3e13b9['activeMarkers']['includes'](_0xc29b3e['markerName'])&&_0x269eba['writer']['addClass']('ck-suggestion-marker--active',_0x2d092f),_0x269eba['writer']['insert'](_0x511feb,_0x2d092f),_0x269eba['mapper']['bindElementToMarker'](_0x2d092f,_0xc29b3e['markerName']);}};}class wt extends _0x4540bb{['afterInit'](){const _0x3b6eea=this['editor'];_0x3b6eea['commands']['get']('replaceSource')&&_0x3b6eea['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x4540bb{['afterInit'](){const _0x4ecd9f=this['editor'];if(!_0x4ecd9f['plugins']['has']('RemoveFormatEditing'))return;_0x4ecd9f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x372c31=this['editor'];_0x372c31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x306d4c=>{if('formatBlock'!=_0x306d4c['type']&&'formatInline'!=_0x306d4c['type'])return;const {data:_0x3a9fd7}=_0x306d4c;return _0x3a9fd7&&'removeFormat'==_0x3a9fd7['commandName']?{'type':'format','content':o(_0x372c31['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4540bb{['afterInit'](){const _0x1404e7=this['editor'];if(!_0x1404e7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x519985=_0x1404e7['plugins']['get']('TrackChangesEditing');_0x519985['enableCommand']('goToPreviousRestrictedEditingException'),_0x519985['enableCommand']('goToNextRestrictedEditingException');const _0x44fd4a=_0x1404e7['plugins']['get']('RestrictedEditingModeEditing');_0x44fd4a['enableCommand']('trackChanges'),_0x44fd4a['enableCommand']('acceptSuggestion'),_0x44fd4a['enableCommand']('discardSuggestion'),_0x44fd4a['enableCommand']('acceptAllSuggestions'),_0x44fd4a['enableCommand']('discardAllSuggestions'),_0x44fd4a['enableCommand']('acceptSelectedSuggestions'),_0x44fd4a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4540bb{['afterInit'](){const _0x77a069=this['editor'];if(!_0x77a069['plugins']['has']('ShiftEnter'))return;const _0x150604=_0x77a069['plugins']['get']('TrackChangesEditing');_0x150604['enableCommand']('shiftEnter'),_0x77a069['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x77a069),{'priority':'high'}),_0x77a069['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x77a069),{'priority':'high'}),_0x77a069['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3eb417,_0x3959d3,_0x42f75a)=>{_0x42f75a['options']['showSuggestionHighlights']&&je(_0x77a069,{'showActiveMarker':!0x1})(_0x3eb417,_0x3959d3,_0x42f75a);}),_0x150604['descriptionFactory']['registerElementLabel']('softBreak',_0x13516a=>o(_0x77a069['locale'],'ELEMENT_LINE_BREAK',_0x13516a));}}function je(_0x40a887,{showActiveMarker:_0x376ba2=!0x0}={}){return(_0x5b8f48,_0x453c7e,_0x15f7f5)=>{const _0x5a456a=_0x40a887['plugins']['get']('TrackChangesEditing');if(!_0x15f7f5['consumable']['test'](_0x453c7e['markerRange'],_0x5b8f48['name']))return;const _0x23036b=_0x40a887['model'];for(const _0x26187e of _0x453c7e['markerRange']['getItems']()){if(!_0x26187e['is']('element','softBreak'))continue;const _0x17d23a='deletion'==_0x453c7e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3170d1,authorId:_0x521b8b}=_0x5a456a['_splitMarkerName'](_0x453c7e['markerName']),_0x3aef89=_0x15f7f5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x17d23a,'data-suggestion':_0x3170d1,'data-author-id':_0x521b8b}),_0x44f81e=_0x15f7f5['mapper']['toViewPosition'](_0x23036b['createPositionBefore'](_0x26187e));_0x376ba2&&_0x5a456a['activeMarkers']['includes'](_0x453c7e['markerName'])&&_0x15f7f5['writer']['addClass']('ck-suggestion-marker--active',_0x3aef89),_0x15f7f5['writer']['insert'](_0x44f81e,_0x3aef89),_0x15f7f5['mapper']['bindElementToMarker'](_0x3aef89,_0x453c7e['markerName']);}};}class St extends _0x4540bb{['afterInit'](){const _0x254978=this['editor'],_0x5ce74c=_0x254978['model'],_0x4ebed4=_0x254978['locale'];if(!_0x254978['plugins']['has']('StandardEditingModeEditing'))return;const _0x5a0248=_0x254978['plugins']['get']('TrackChangesEditing'),_0x4d68f2='restrictedEditingException',_0x32ddd8=_0x254978['commands']['get'](_0x4d68f2);_0x5a0248['enableCommand'](_0x4d68f2,(_0x4475a3,_0x5bd7cf={})=>{const _0x2f8998=_0x5ce74c['document']['selection'];if(_0x2f8998['isCollapsed'])return void _0x4475a3(_0x5bd7cf);const _0x2215ba=void 0x0!==_0x5bd7cf['forceValue']?_0x5bd7cf['forceValue']:!_0x32ddd8['value'];_0x5ce74c['change'](()=>{const _0x4d2404=Array['from'](_0x2f8998['getRanges']());for(const _0x3b104d of _0x4d2404){const _0x56a509=_0x2215ba?[_0x3b104d]:io(_0x4d68f2,_0x3b104d,_0x5ce74c);for(const _0xe061cc of _0x56a509)_0x5a0248['markInlineFormat'](_0xe061cc,{'commandName':_0x4d68f2,'commandParams':[{'forceValue':_0x2215ba}]});}});}),_0x5a0248['descriptionFactory']['registerDescriptionCallback'](_0x570324=>{if('formatBlock'!=_0x570324['type']&&'formatInline'!=_0x570324['type'])return;const {data:_0x26ecab}=_0x570324;return _0x26ecab&&_0x26ecab['commandName']==_0x4d68f2?_0x26ecab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ebed4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4ebed4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x4540bb{['afterInit'](){const _0x202d8d=this['editor'];if(!_0x202d8d['plugins']['has']('Style')||!_0x202d8d['plugins']['has']('DataSchema'))return;const _0x3f3bce=_0x202d8d['plugins']['get']('TrackChangesEditing'),_0x3d43de=_0x202d8d['locale'],_0x56a6f4=_0x202d8d['config']['get']('style')||{},_0x4b1333=_0x202d8d['plugins']['get']('GeneralHtmlSupport'),_0x22ab75=_0x202d8d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x202d8d['plugins']['get']('DataSchema'),_0x56a6f4['definitions']);_0x3f3bce['enableDefaultAttributesIntegration']('style');const _0x18aa04=new Set();for(const _0x33694c of _0x22ab75['block']){const _0x5395d9=_0x4b1333['getGhsAttributeNameForElement'](_0x33694c['element']);_0x18aa04['add'](_0x5395d9);}const _0x564dba=new Set();for(const _0x6e405f of _0x22ab75['inline']){const _0x41b5fc=_0x4b1333['getGhsAttributeNameForElement'](_0x6e405f['element']);_0x564dba['add'](_0x41b5fc);for(const _0x1e8ac6 of _0x6e405f['ghsAttributes'])_0x564dba['add'](_0x1e8ac6);}for(const _0x34388a of _0x18aa04)_0x3f3bce['registerBlockAttribute'](_0x34388a),_0x3f3bce['descriptionFactory']['registerAttributeLabel'](_0x34388a,o(_0x3d43de,'FORMAT_STYLE'));for(const _0xdcc034 of _0x564dba)_0x3f3bce['registerInlineAttribute'](_0xdcc034),_0x3f3bce['descriptionFactory']['registerAttributeLabel'](_0xdcc034,o(_0x3d43de,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x69a862=this['editor'],_0xa2918a=_0x69a862['locale'];_0x69a862['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a079=>{if('formatBlock'!=_0x34a079['type']&&'formatInline'!=_0x34a079['type'])return;const {data:_0xcab53f}=_0x34a079;return _0xcab53f&&'style'===_0xcab53f['commandName']?_0xcab53f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa2918a,'*Set\x20format:*\x20%0',_0xcab53f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xa2918a,'*Remove\x20format:*\x20%0',_0xcab53f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x4540bb{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x29a5aa){super(_0x29a5aa),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x597ab2=this['editor'],_0x804255=_0x597ab2['model']['document']['selection'];if(!_0x597ab2['plugins']['has']('TableEditing'))return;const _0x2f7b5f=_0x597ab2['locale'],_0x4ef044=_0x597ab2['plugins']['get']('TrackChangesEditing'),_0x448dcd=_0x597ab2['plugins']['get']('TableUtils');_0x4ef044['descriptionFactory']['registerElementLabel']('table',_0x229a2e=>o(_0x2f7b5f,'ELEMENT_TABLE',_0x229a2e)),this['_setupColumnsRowsFixing'](),_0x4ef044['enableCommand']('insertTable'),_0x4ef044['enableCommand']('selectTableRow'),_0x4ef044['enableCommand']('selectTableColumn');for(const _0x4b81c0 of['insertTableRowAbove','insertTableRowBelow']){const _0x3d19e6=_0x597ab2['commands']['get'](_0x4b81c0);_0x4ef044['enableCommand'](_0x4b81c0,_0x5baa95=>{_0x597ab2['model']['change'](_0x152d28=>{_0x5baa95();const _0x2ed5f2='above'===_0x3d19e6['order'],_0x4866fc=_0x448dcd['getSelectionAffectedTableCells'](_0x804255),_0xc7cbe8=_0x448dcd['getRowIndexes'](_0x4866fc),_0x3d5db8=_0x2ed5f2?_0xc7cbe8['first']-0x1:_0xc7cbe8['last']+0x1,_0xb8f45b=_0x4866fc[0x0]['findAncestor']('table'),_0x107357=_0x448dcd['createTableWalker'](_0xb8f45b,{'startRow':_0x3d5db8,'endRow':_0x3d5db8}),_0x5eb639=Array['from'](_0x107357)['map'](_0x7c2983=>_0x152d28['createRangeOn'](_0x7c2983['cell']));_0x4ef044['markMultiRangeInsertion'](_0x5eb639,'tableRow');});});}for(const _0x5eedd1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4f4cc5=_0x597ab2['commands']['get'](_0x5eedd1);_0x4ef044['enableCommand'](_0x5eedd1,_0x30bc41=>{_0x597ab2['model']['change'](_0x4c490b=>{_0x30bc41();const _0x2bb3f6='left'===_0x4f4cc5['order'],_0x467693=_0x448dcd['getSelectionAffectedTableCells'](_0x804255),_0x1f7e97=_0x448dcd['getColumnIndexes'](_0x467693),_0x2008a8=_0x2bb3f6?_0x1f7e97['first']-0x1:_0x1f7e97['last']+0x1,_0x5f4dc7=_0x467693[0x0]['findAncestor']('table'),_0x234c2e=_0x448dcd['createTableWalker'](_0x5f4dc7,{'startRow':0x0,'column':_0x2008a8,'includeAllSlots':!0x1}),_0x2b2767=Array['from'](_0x234c2e)['map'](_0xf60719=>_0x4c490b['createRangeOn'](_0xf60719['cell']));_0x4ef044['markMultiRangeInsertion'](_0x2b2767,'tableColumn');});});}for(const _0x527580 of['removeTableRow','removeTableColumn']){const _0x50436d=_0x527580['substr'](0xb),_0x2b7dc0=_0x50436d['toLowerCase'](),_0x5dbf00=_0x2b7dc0['substr'](0x0,0x3)+'span',_0x449386='table'+_0x50436d,_0x2d517f='min'+_0x50436d,_0x25dc35='max'+_0x50436d;_0x4ef044['enableCommand'](_0x527580,()=>{_0x597ab2['model']['change'](_0x17686c=>{const _0x313e9e=_0x448dcd['getSelectionAffectedTableCells'](_0x804255),_0x4f351e=_0x313e9e[0x0]['findAncestor']('table');let _0x4455ed;if('removeTableRow'==_0x527580){const _0x49d027=_0x448dcd['getRowIndexes'](_0x313e9e);_0x4455ed={'startRow':_0x49d027['first'],'endRow':_0x49d027['last'],'includeAllSlots':!0x0};}else{const _0x5f2d47=_0x448dcd['getColumnIndexes'](_0x313e9e);_0x4455ed={'startColumn':_0x5f2d47['first'],'endColumn':_0x5f2d47['last'],'includeAllSlots':!0x0};}const _0x2181cb=_0x448dcd['createTableWalker'](_0x4f351e,_0x4455ed),_0x5c2700=Array['from'](_0x2181cb)['map'](({cell:_0x20f729})=>_0x20f729),_0x503c4c=Ne(_0x5c2700['filter'](_0x210e2f=>_0x210e2f['hasAttribute'](_0x5dbf00))),_0x19baf0=Ne(_0x5c2700['filter'](_0x21a221=>!_0x21a221['hasAttribute'](_0x5dbf00)))['map'](_0x57c4c2=>_0x17686c['createRangeOn'](_0x57c4c2)),_0x37fd5f=_0x4ef044['markMultiRangeDeletion'](_0x19baf0,_0x449386);if(_0x37fd5f&&('tableRow'==_0x37fd5f['subType']||'tableColumn'==_0x37fd5f['subType'])){const _0x36aff7=this['_getSuggestionCoords'](_0x37fd5f);for(const _0x59284e of _0x503c4c){const _0x5b04b5=_0x17686c['createRangeOn'](_0x59284e),_0xb0a730=_0x448dcd['getCellLocation'](_0x59284e),_0x4a678f=_0x59284e['getAttribute'](_0x5dbf00)-0x1,_0x1bb6c1=_0x36aff7[_0x2d517f],_0x81053f=_0x36aff7[_0x25dc35];_0x1bb6c1<=_0xb0a730[_0x2b7dc0]&&_0xb0a730[_0x2b7dc0]+_0x4a678f<=_0x81053f&&_0x37fd5f['addRange'](_0x5b04b5);}}});});}function _0x5f40e7(_0x5f551a){const _0x56f097=Array['from'](_0x804255['getRanges']())['map'](_0x292e86=>_0x2e6917['fromRange'](_0x292e86));_0x597ab2['model']['change'](_0x3c316f=>{const _0x27af08=_0x3c316f['batch'];_0x5f551a=_0x5f551a['filter'](_0x2f3b87=>'$graveyard'!=_0x2f3b87['root']['rootName']),_0x3c316f['setSelection'](_0x5f551a),_0x597ab2['commands']['get']('removeTableRow')['refresh'](),_0x597ab2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x597ab2['model']['enqueueChange'](()=>{_0x597ab2['model']['enqueueChange'](_0x27af08,_0x5ece69=>{const _0x386fb2=_0x56f097['filter'](_0x3d3238=>'$graveyard'!=_0x3d3238['root']['rootName']);_0x386fb2['length']>0x0&&_0x5ece69['setSelection'](_0x386fb2);for(const _0x2d1567 of _0x56f097)_0x2d1567['detach']();});});});}function _0x40a932(_0x388b05){_0x597ab2['model']['change'](_0x30b20f=>{const _0x190c2e=Array['from'](_0x804255['getRanges']())['map'](_0x12ae46=>_0x2e6917['fromRange'](_0x12ae46)),_0xf06a58=[];for(const _0x20ef67 of _0x388b05)for(const _0x1896cd of _0x20ef67['getItems']({'shallow':!0x0}))_0xf06a58['push'](_0x1896cd);for(const _0x328080 of _0xf06a58)'$graveyard'!=_0x328080['root']['rootName']&&(_0x30b20f['setSelection'](_0x30b20f['createPositionAt'](_0x328080,0x0)),_0x597ab2['commands']['get']('removeTableColumn')['refresh'](),_0x597ab2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x46fe46=_0x190c2e['filter'](_0x4dac51=>'$graveyard'!=_0x4dac51['root']['rootName']);_0x46fe46['length']>0x0&&_0x30b20f['setSelection'](_0x46fe46);for(const _0x24b023 of _0x190c2e)_0x24b023['detach']();});}function _0x4d8382(_0x3269e1,_0x308961){return _0x308961['every'](_0x556ecc=>_0x3269e1['some'](_0x35276a=>_0x35276a['end']['isEqual'](_0x556ecc['start'])||_0x556ecc['end']['isEqual'](_0x35276a['start'])));}function _0x27ace9(_0x200f03,_0x43077e){return!_0x200f03['some'](_0x739489=>_0x43077e['some'](_0x210db3=>_0x739489['isIntersecting'](_0x210db3)))&&_0x200f03['some'](_0x5d8ef2=>_0x43077e['some'](_0x52172e=>_0x5d8ef2['end']['isTouching'](_0x52172e['start'])));}_0x597ab2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x343cc2,_0x415023,_0xb74703)=>{if(!_0xb74703['options']['showSuggestionHighlights'])return;const _0x5aa3b5=_0x415023['item'];if(!_0x5aa3b5||!_0x5aa3b5['is']('element','tableCell'))return;const _0x4dc1b3=_0xb74703['mapper']['toViewElement'](_0x5aa3b5);if(_0x4dc1b3){const {id:_0x19f8c1,authorId:_0x4ab766}=_0x4ef044['_splitMarkerName'](_0x415023['markerName']);_0x257ea1(_0x4dc1b3,_0xb74703['writer'],(_0x570eee,_0xacb007,_0x22d9e8)=>{_0x22d9e8['addClass'](_0x25b920(_0xacb007['classes']),_0x570eee),_0x22d9e8['setAttribute']('data-suggestion-id',_0x19f8c1,_0x570eee),_0x22d9e8['setAttribute']('data-author-id',_0x4ab766,_0x570eee);},(_0x27fde7,_0x52c937,_0x2ab752)=>{_0x2ab752['removeClass'](_0x25b920(_0x52c937['classes']),_0x27fde7),_0x2ab752['removeAttribute']('data-suggestion-id',_0x27fde7),_0x2ab752['removeAttribute']('data-author-id',_0x27fde7);});}},{'priority':'highest'}),_0x4ef044['descriptionFactory']['registerDescriptionCallback'](_0x22088c=>{if('insertion'!=_0x22088c['type']&&'deletion'!=_0x22088c['type'])return;const _0x509237=_0x22088c['getContainedElement']();if(null!=_0x509237&&_0x509237['is']('element','table')){if('insertion'==_0x22088c['type']){const _0x5a5f12=_0x22088c['getItems']()['filter'](_0x3c5572=>_0x3c5572['is']('$textProxy'))['map'](_0x44b3ce=>_0x44b3ce['data']);if(_0x5a5f12['length'])return{'type':'insertion','content':o(_0x2f7b5f,'*Insert:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a5f12['join']('\x20')+'\x22'))};}if('deletion'==_0x22088c['type']){const _0x365561=_0x22088c['getItems']()['filter'](_0x4f43b9=>_0x4f43b9['is']('$textProxy'))['map'](_0x6c6e83=>_0x6c6e83['data']);if(_0x365561['length'])return{'type':'deletion','content':o(_0x2f7b5f,'*Remove:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x365561['join']('\x20')+'\x22'))};}}}),_0x4ef044['descriptionFactory']['registerDescriptionCallback'](_0x32fe3a=>{if('tableRow'==_0x32fe3a['subType']){const _0x20ca48=_0x32fe3a['getItems']()['filter'](_0xa06ea8=>_0xa06ea8['is']('$textProxy'))['map'](_0x441a67=>_0x441a67['data']),_0x28d645=this['_getSuggestionCoords'](_0x32fe3a),_0x31cf44=_0x28d645['maxRow']-_0x28d645['minRow']+0x1;if('insertion'==_0x32fe3a['type'])return _0x20ca48['length']?{'type':'insertion','content':o(_0x2f7b5f,'*Insert:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31cf44,'\x22'+_0x20ca48['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f7b5f,'*Insert:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_ROW',_0x31cf44))};if('deletion'==_0x32fe3a['type'])return _0x20ca48['length']?{'type':'deletion','content':o(_0x2f7b5f,'*Remove:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31cf44,'\x22'+_0x20ca48['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f7b5f,'*Remove:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_ROW',_0x31cf44))};}if('tableColumn'==_0x32fe3a['subType']){const _0xb0e42f=_0x32fe3a['getItems']()['filter'](_0x9fef67=>_0x9fef67['is']('$textProxy'))['map'](_0xf49b40=>_0xf49b40['data']),_0x4976a4=this['_getSuggestionCoords'](_0x32fe3a),_0x2fb7fe=_0x4976a4['maxColumn']-_0x4976a4['minColumn']+0x1;if('insertion'==_0x32fe3a['type'])return _0xb0e42f['length']?{'type':'insertion','content':o(_0x2f7b5f,'*Insert:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2fb7fe,'\x22'+_0xb0e42f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f7b5f,'*Insert:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_COLUMN',_0x2fb7fe))};if('deletion'==_0x32fe3a['type'])return _0xb0e42f['length']?{'type':'deletion','content':o(_0x2f7b5f,'*Remove:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2fb7fe,'\x22'+_0xb0e42f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f7b5f,'*Remove:*\x20%0',o(_0x2f7b5f,'ELEMENT_TABLE_COLUMN',_0x2fb7fe))};}}),_0x4ef044['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5f40e7),_0x4ef044['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5f40e7),_0x4ef044['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x40a932),_0x4ef044['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x40a932),_0x4ef044['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4d8382),_0x4ef044['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4d8382),_0x4ef044['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x27ace9),_0x4ef044['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x27ace9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x52d251=this['editor'],_0x2f9060=_0x52d251['model']['document']['selection'];return(_0x301585,_0x1b2dd6)=>{_0x52d251['model']['change'](_0x4e6c94=>{const {commandName:_0x4e444,commandParams:_0x1c080d}=_0x1b2dd6;let _0x371dc2=_0x301585[0x0]['end']['nodeBefore'];_0x1c080d&&_0x1c080d[0x0]&&!0x1===_0x1c080d[0x0]['forceValue']&&(_0x371dc2=_0x301585[0x0]['start']['nodeAfter']);const _0x148751=_0x4e6c94['createRangeIn'](_0x371dc2);if('$graveyard'==_0x148751['root']['rootName'])return;const _0x536580=Array['from'](_0x2f9060['getRanges']())['map'](_0x409b76=>_0x2e6917['fromRange'](_0x409b76));_0x4e6c94['setSelection'](_0x148751),_0x52d251['commands']['get'](_0x4e444)['refresh'](),_0x1c080d['push']({'forceDefaultExecution':!0x0}),_0x52d251['execute'](_0x4e444,..._0x1c080d);const _0x576c03=_0x536580['filter'](_0xdefb4b=>'$graveyard'!=_0xdefb4b['root']['rootName']);_0x576c03['length']>0x0&&_0x4e6c94['setSelection'](_0x576c03);for(const _0x1b10e0 of _0x536580)_0x1b10e0['detach']();});};}['_getCoordsForCells'](_0x32bb64){const _0x5795c1=this['editor']['plugins']['get']('TableUtils');let _0x3fe278=Number['MAX_SAFE_INTEGER'],_0x19707f=Number['MIN_SAFE_INTEGER'],_0x255516=Number['MAX_SAFE_INTEGER'],_0x3acc1c=Number['MIN_SAFE_INTEGER'];for(const _0x2c6fe7 of _0x32bb64){if('$graveyard'==_0x2c6fe7['root']['rootName'])continue;const {row:_0x1fc879,column:_0x4a38b0}=_0x5795c1['getCellLocation'](_0x2c6fe7),_0x4aa1eb=_0x2c6fe7['hasAttribute']('rowspan')?_0x2c6fe7['getAttribute']('rowspan')-0x1:0x0,_0xa22283=_0x2c6fe7['hasAttribute']('colspan')?_0x2c6fe7['getAttribute']('colspan')-0x1:0x0;_0x3fe278=_0x1fc879<_0x3fe278?_0x1fc879:_0x3fe278,_0x19707f=_0x1fc879+_0x4aa1eb>_0x19707f?_0x1fc879+_0x4aa1eb:_0x19707f,_0x255516=_0x4a38b0<_0x255516?_0x4a38b0:_0x255516,_0x3acc1c=_0x4a38b0+_0xa22283>_0x3acc1c?_0x4a38b0+_0xa22283:_0x3acc1c;}return{'minRow':_0x3fe278,'maxRow':_0x19707f,'minColumn':_0x255516,'maxColumn':_0x3acc1c};}['_setupColumnsRowsFixing'](){const _0x382f00=this['editor'],_0x2f9ac2=_0x382f00['plugins']['get']('TrackChangesEditing'),_0x670797=_0x382f00['plugins']['get']('TableUtils');_0x382f00['model']['document']['on']('change:data',()=>{const _0xfd4848=Array['from'](_0x382f00['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b6053,data:_0x22b9f8}of _0xfd4848){const {group:_0x26a5ef,id:_0x55b9f5,subType:_0x38a0f5}=_0x2f9ac2['_splitMarkerName'](_0x4b6053);if('suggestion'!=_0x26a5ef)continue;if(null!=_0x22b9f8['oldRange'])continue;const _0x4502f7=_0x2f9ac2['getSuggestion'](_0x55b9f5);this['_tablePostFixingSubtypes']['includes'](_0x38a0f5)&&this['_tableSuggestions']['add'](_0x4502f7);}},{'priority':'low'});const _0x407333=(_0x1dafa3,_0x583bf1)=>{let _0x5e8f8b=!0x1;const _0x3356ae=_0x583bf1['createRangeOn'](_0x1dafa3),_0x37e411=_0x1dafa3['findAncestor']('table'),_0x433410=_0x670797['getCellLocation'](_0x1dafa3);for(const _0x3733a0 of this['_tableSuggestions']){const _0x62d7dc=_0x3733a0['subType'],_0x1a9ef4=_0x62d7dc['startsWith']('tablePaste'),_0x5adafa=_0x62d7dc['substr'](_0x1a9ef4?0xa:0x5),_0x2f44b3=_0x5adafa['toLowerCase'](),_0x5f03a4=_0x2f44b3['substr'](0x0,0x3)+'span',_0x5abcc6='min'+_0x5adafa,_0x51a7fe='max'+_0x5adafa;if(!_0x3733a0['isInContent'])continue;if(_0x37e411!=_0x3733a0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3733a0['isIntersectingWithRange'](_0x3356ae))continue;const _0x35f300=_0x1dafa3['hasAttribute'](_0x5f03a4)?_0x1dafa3['getAttribute'](_0x5f03a4)-0x1:0x0,_0x4dfb07=this['_getSuggestionCoords'](_0x3733a0),_0x41f3eb=_0x4dfb07[_0x5abcc6],_0x48e4ba=_0x4dfb07[_0x51a7fe];_0x41f3eb<=_0x433410[_0x2f44b3]&&_0x433410[_0x2f44b3]+_0x35f300<=_0x48e4ba&&(_0x3733a0['addRange'](_0x3356ae),_0x5e8f8b=!0x0);}return _0x5e8f8b;};_0x382f00['model']['document']['registerPostFixer'](_0x2e4f1e=>{let _0x126531=!0x1;for(const _0x323b22 of _0x382f00['model']['document']['differ']['getChanges']())if('insert'==_0x323b22['type']){if('tableRow'==_0x323b22['name']){for(const _0xbedc9e of _0x323b22['position']['nodeAfter']['getChildren']())_0x126531=_0x126531||_0x407333(_0xbedc9e,_0x2e4f1e);}else'tableCell'==_0x323b22['name']&&(_0x126531=_0x126531||_0x407333(_0x323b22['position']['nodeAfter'],_0x2e4f1e));}return _0x126531;});}['_getSuggestionCoords'](_0x2bc8d5){return this['_getCoordsForCells'](_0x2bc8d5['getRanges']()['map'](_0x5a4c02=>_0x5a4c02['start']['nodeAfter']));}}function Ne(_0x453116){return Array['from'](new Set(_0x453116)['values']());}class _t extends _0x4540bb{static get['requires'](){return[At];}['afterInit'](){const _0x1117da=this['editor'],_0x3de94c=_0x1117da['model']['document']['selection'],_0x25b0f0=_0x1117da['locale'];if(!_0x1117da['plugins']['has']('TableEditing'))return;const _0x179adb=_0x1117da['plugins']['get']('TrackChangesEditing'),_0x3d57c1=_0x1117da['plugins']['get']('TableUtils'),_0x318186=_0x1117da['plugins']['get'](At);_0x318186['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x179adb['enableCommand']('mergeTableCells',()=>{const _0x4f5e0b=_0x3d57c1['getSelectionAffectedTableCells'](_0x1117da['model']['document']['selection']);_0x1117da['model']['change'](()=>{_0x179adb['markMultiRangeBlockFormat'](_0x4f5e0b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1117da['commands']['get']('mergeTableCells')['on']('execute',(_0x1f2cbc,_0x148d75)=>{_0x1117da['commands']['get']('trackChanges')['value']&&(_0x148d75['length']>0x0&&_0x148d75[_0x148d75['length']-0x1]&&_0x148d75[_0x148d75['length']-0x1]['forceDefaultExecution']||_0x179adb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f2cbc['stop']());},{'priority':'highest'});for(const _0x41b152 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x71bd7c=_0x1117da['commands']['get'](_0x41b152);_0x179adb['enableCommand'](_0x41b152,()=>{const _0x39bd5f=_0x1117da['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x205697=>_0x205697['is']('element','tableCell')),_0x723f62=_0x71bd7c['value'];_0x1117da['model']['change'](()=>{_0x179adb['markMultiRangeBlockFormat']([_0x39bd5f,_0x723f62],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2e3c89 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2d3527=_0x1117da['commands']['get'](_0x2e3c89);_0x179adb['enableCommand'](_0x2e3c89,()=>{const _0x2298ea=_0x3d57c1['getSelectionAffectedTableCells'](_0x1117da['model']['document']['selection'])[0x0],_0x78db45=_0x2298ea['findAncestor']('table'),{column:_0xfe8d11,row:_0x39931c}=_0x3d57c1['getCellLocation'](_0x2298ea);let _0x291295=[];if('horizontally'==_0x2d3527['direction']){const _0x4596a2=_0x3d57c1['createTableWalker'](_0x78db45,{'startRow':_0x39931c,'endRow':_0x39931c,'includeAllSlots':!0x0});_0x291295=Array['from'](_0x4596a2)['map'](_0x253f1f=>_0x253f1f['cell']);}else{const _0xa6b333=_0x3d57c1['createTableWalker'](_0x78db45,{'column':_0xfe8d11,'includeAllSlots':!0x0});_0x291295=Array['from'](_0xa6b333)['map'](_0x310b46=>_0x310b46['cell']);}_0x1117da['model']['change'](_0x1add6a=>{_0x179adb['markBlockFormat'](_0x1add6a['createRangeOn'](_0x2298ea),{'commandName':_0x2e3c89,'commandParams':[]},_0x291295,_0x2e3c89);});});}_0x179adb['descriptionFactory']['registerDescriptionCallback'](_0x72fa2a=>{if('formatBlock'!=_0x72fa2a['type']&&'formatInline'!=_0x72fa2a['type'])return;const {data:_0x4aaf9f}=_0x72fa2a;return _0x4aaf9f&&'mergeTableCells'==_0x4aaf9f['commandName']?{'type':'format','content':o(_0x25b0f0,'*Merge\x20cells*')}:void 0x0;}),_0x179adb['descriptionFactory']['registerDescriptionCallback'](_0x5080e3=>{if('formatBlock'!=_0x5080e3['type']&&'formatInline'!=_0x5080e3['type'])return;const {data:_0x1b7218}=_0x5080e3;return _0x1b7218?'splitTableCellVertically'==_0x1b7218['commandName']?{'type':'format','content':o(_0x25b0f0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1b7218['commandName']?{'type':'format','content':o(_0x25b0f0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x44be42=_0x318186['_acceptFormatSuggestionCallbackFactory']();for(const _0x47fc4c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x179adb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47fc4c,'accept',_0x44be42);for(const _0x44ab3e of['splitTableCellVertically','splitTableCellHorizontally'])_0x179adb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44ab3e,'accept',_0x44be42);_0x179adb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x403554=>{_0x1117da['model']['change'](_0x33bf3c=>{const _0xb888bb=Array['from'](_0x3de94c['getRanges']())['map'](_0x492523=>_0x2e6917['fromRange'](_0x492523));_0x33bf3c['setSelection'](_0x403554),_0x1117da['commands']['get']('mergeTableCells')['refresh'](),_0x1117da['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x546f78=_0xb888bb['filter'](_0x1ce0af=>'$graveyard'!=_0x1ce0af['root']['rootName']);_0x546f78['length']>0x0&&_0x33bf3c['setSelection'](_0x546f78);for(const _0x1aacec of _0xb888bb)_0x1aacec['detach']();});});for(const _0x2dc581 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xf93e4=_0x1117da['commands']['get'](_0x2dc581);_0xf93e4['on']('set:isEnabled',(_0x35ccb1,_0x32a743,_0x3c8abf)=>{if(_0x3c8abf){const _0xc7030d=_0x1117da['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x34807b=>_0x34807b['is']('element','tableCell'));this['_areMergableCells'](_0xf93e4['value'],_0xc7030d)||(_0x35ccb1['return']=!0x1,_0x35ccb1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25cf56=this['editor']['commands']['get']('mergeTableCells'),_0x38bb37=this['editor']['plugins']['get']('TableUtils');if(!_0x25cf56['isEnabled'])return!0x1;const _0x1ea98b=_0x38bb37['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3c70d4 of _0x1ea98b)for(const _0x455eba of _0x1ea98b)if(_0x3c70d4!=_0x455eba&&!this['_areMergableCells'](_0x3c70d4,_0x455eba))return!0x1;return!0x0;}['_areMergableCells'](_0x1c509e,_0x2b13b0){const _0x5a42a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x271488=this['editor']['model']['createRangeOn'](_0x1c509e),_0x1d8ae4=this['editor']['model']['createRangeOn'](_0x2b13b0),_0x1a8d0b=new Set(),_0x15f292=new Set();for(const _0x1a363a of _0x5a42a8['getSuggestions']())if(('insertion'==_0x1a363a['type']||'deletion'==_0x1a363a['type']||'mergeTableCells'==_0x1a363a['subType'])&&_0x1a363a['isInContent']){for(const _0x370a9e of _0x1a363a['getRanges']())_0x370a9e['containsRange'](_0x271488,!0x0)&&_0x1a8d0b['add'](_0x1a363a['type']+':'+_0x1a363a['author']['id']),_0x370a9e['containsRange'](_0x1d8ae4,!0x0)&&_0x15f292['add'](_0x1a363a['type']+':'+_0x1a363a['author']['id']);}if(_0x1a8d0b['size']!=_0x15f292['size'])return!0x1;for(const _0x271fa2 of _0x1a8d0b)if(!_0x15f292['has'](_0x271fa2))return!0x1;return!0x0;}}class Ct extends _0x4540bb{static get['requires'](){return[At];}['afterInit'](){const _0x373831=this['editor'];if(!_0x373831['plugins']['has']('TableEditing'))return;const _0x2a4af3=_0x373831['locale'],_0x4a7ff9=_0x373831['plugins']['get']('TrackChangesEditing');_0x4a7ff9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4a7ff9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4a7ff9['registerBlockAttribute']('headingRows'),_0x4a7ff9['registerBlockAttribute']('headingColumns'),_0x4a7ff9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2a4af3,'FORMAT_HEADER_ROW')),_0x4a7ff9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2a4af3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4954ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34e386=this['editor']['plugins']['get']('TableUtils'),_0x410dc3=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x37e62a({showActiveMarker:_0x6edf12=!0x0,setDataAttribute:_0x5a0d47=!0x0}={}){return(_0x2f7797,_0x1c8e65,_0x4ee20a)=>{const {type:_0x3b3131,id:_0x317829}=_0x4954ed['_splitMarkerName'](_0x1c8e65['markerName']),_0x38d355=_0x4954ed['getSuggestion'](_0x317829),_0x47ab89=_0x38d355['data'];if('formatBlock'!=_0x38d355['type']||!_0x47ab89||'setTableColumnHeader'!=_0x47ab89['commandName'])return;if(_0x1c8e65['item'])return void _0x2f7797['stop']();if(!_0x4ee20a['consumable']['consume'](_0x1c8e65['markerRange'],_0x2f7797['name']))return;const _0xea5c72=_0x1c8e65['markerRange']['start']['nodeAfter'],_0x3445e7=_0x1c8e65['markerRange']['end']['nodeBefore'],_0x4eb4a1=_0xea5c72['parent']['parent'],{column:_0x4b8bed}=_0x34e386['getCellLocation'](_0xea5c72),{column:_0x2f0370}=_0x34e386['getCellLocation'](_0x3445e7);for(let _0x45ce79=_0x4b8bed;_0x45ce79<=_0x2f0370;_0x45ce79++){const _0xddac88=_0x34e386['createTableWalker'](_0x4eb4a1,{'column':_0x45ce79,'includeAllSlots':!0x1});for(const _0x1ed334 of _0xddac88){const _0x2d6c70=_0x1ed334['cell'],_0x514b1d=_0x4ee20a['mapper']['toViewElement'](_0x2d6c70);_0x4ee20a['writer']['addClass']('ck-suggestion-marker-'+_0x3b3131,_0x514b1d),_0x5a0d47&&_0x4ee20a['writer']['setAttribute']('data-suggestion',_0x317829,_0x514b1d),_0x4ee20a['mapper']['bindElementToMarker'](_0x514b1d,_0x1c8e65['markerName']),_0x6edf12&&(_0x4954ed['activeMarkers']['includes'](_0x1c8e65['markerName'])?_0x4ee20a['writer']['addClass']('ck-suggestion-marker--active',_0x514b1d):_0x4ee20a['writer']['removeClass']('ck-suggestion-marker--active',_0x514b1d));}}};}_0x4954ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x410dc3),_0x4954ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x410dc3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x37e62a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50eac5,_0x5c06b0,_0x3faeca)=>{_0x3faeca['options']['showSuggestionHighlights']&&_0x37e62a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x50eac5,_0x5c06b0,_0x3faeca);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x22131f,_0x2671cf,_0x32e328)=>{const {type:_0x2372bf,id:_0x22a7fb}=_0x4954ed['_splitMarkerName'](_0x2671cf['markerName']),_0x14b2ea=_0x4954ed['getSuggestion'](_0x22a7fb),_0x4e8e40=_0x14b2ea['data'];if('formatBlock'!=_0x14b2ea['type']||!_0x4e8e40||'setTableColumnHeader'!=_0x4e8e40['commandName'])return;const _0x40f308=_0x32e328['mapper']['markerNameToElements'](_0x2671cf['markerName']);if(_0x40f308){for(const _0x3a15ad of _0x40f308)_0x32e328['writer']['removeClass']('ck-suggestion-marker-'+_0x2372bf,_0x3a15ad),_0x32e328['writer']['removeClass']('ck-suggestion-marker--active',_0x3a15ad),_0x32e328['writer']['removeAttribute']('data-suggestion',_0x3a15ad),_0x32e328['mapper']['unbindElementFromMarkerName'](_0x3a15ad,_0x2671cf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bf7ac=this['editor'],_0xcabc95=_0x3bf7ac['locale'];function _0x1a11f0(_0x11fdbe){return{'type':'format','content':o(_0xcabc95,'*Format:*\x20%0',_0x11fdbe)};}_0x3bf7ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13fc26=>{if('formatBlock'!=_0x13fc26['type'])return;const {data:_0x50bc20}=_0x13fc26;if(_0x50bc20){if('setTableRowHeader'==_0x50bc20['commandName']){const _0x537c47=_0x50bc20['commandParams'][0x0]['forceValue'];return _0x1a11f0(o(_0xcabc95,_0x537c47?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50bc20['commandName']){const _0x4c2f29=_0x50bc20['commandParams'][0x0]['forceValue'];return _0x1a11f0(o(_0xcabc95,_0x4c2f29?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x4540bb{['afterInit'](){const _0x309f85=this['editor'],_0x19940=_0x309f85['locale'],_0x50a0ae=_0x309f85['plugins']['get']('TrackChangesEditing');function _0x248857(_0x427617){return{'type':'format','content':''+o(_0x19940,'*Set\x20table\x20type:*\x20%0',_0x427617)};}_0x309f85['plugins']['has']('TableLayout')&&(_0x50a0ae['enableCommand']('insertTableLayout'),_0x50a0ae['enableDefaultAttributesIntegration']('tableType'),_0x50a0ae['registerBlockAttribute']('tableType'),_0x50a0ae['descriptionFactory']['registerElementLabel'](_0x299894=>_0x299894['is']('element','table')&&'layout'===_0x299894['getAttribute']('tableType'),_0x352a22=>o(_0x19940,'ELEMENT_LAYOUT_TABLE',_0x352a22)),_0x50a0ae['descriptionFactory']['registerDescriptionCallback'](_0x3df1e7=>{const {data:_0x23ccc9}=_0x3df1e7;if(_0x23ccc9&&'tableType'==_0x23ccc9['key'])switch(_0x23ccc9['newValue']){case'layout':return _0x248857(o(_0x19940,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x248857(o(_0x19940,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x4b9ea3=>[_0x4b9ea3,null]));class Nt extends _0x4540bb{static get['requires'](){return[At];}['afterInit'](){const _0x1aa6f3=this['editor'];if(!_0x1aa6f3['plugins']['has']('TableClipboard'))return;const _0x51383f=_0x1aa6f3['plugins']['get']('TrackChangesEditing'),_0xcbe90=_0x1aa6f3['plugins']['get']('TableUtils'),_0x3fcddb=_0x1aa6f3['plugins']['get'](At),_0x5d7b24=_0x1aa6f3['plugins']['get']('TableClipboard'),_0x529897=_0x1aa6f3['plugins']['get']('TableSelection'),_0x336838=_0x1aa6f3['plugins']['get'](_0xb86953);_0x3fcddb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1aa6f3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1aa6f3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x749b42=null,_0x553dca=!0x1;_0x336838['on']('contentInsertion',(_0x3eacc8,_0x5557a0)=>{_0x553dca='paste'===_0x5557a0['method'];}),_0x1aa6f3['model']['on']('insertContent',(_0x3f3e66,_0xa04eb3)=>{if(!_0x553dca&&null===_0x529897['getSelectedTableCells']())return;const [_0x74f47e,_0x489639]=_0xa04eb3,_0x2f8fec=_0xa04eb3[_0xa04eb3['length']-0x1];_0x2f8fec&&_0x2f8fec['forceDefaultExecution']||_0x51383f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x30bbb3,_0x599cbe,_0x3cafef,_0x4d5bab,_0x1d950a){if(_0x599cbe&&!_0x599cbe['is']('documentSelection'))return!0x1;const _0x1a5758=_0x1d950a['getTableIfOnlyTableInContent'](_0x30bbb3,_0x3cafef);if(!_0x1a5758||!Ue(_0x1a5758,void 0x0,_0x4d5bab))return!0x1;const _0x42c39f=_0x4d5bab['getSelectionAffectedTableCells'](_0x3cafef['document']['selection']);if(!_0x42c39f['length'])return!0x1;const _0x48bda1=_0x42c39f[0x0]['findAncestor']('table'),_0xb1017e=_0x4d5bab['getRowIndexes'](_0x42c39f),_0x1ef2f4=_0x4d5bab['getColumnIndexes'](_0x42c39f),_0x486fee={'startRow':_0xb1017e['first'],'endRow':_0xb1017e['last'],'startColumn':_0x1ef2f4['first'],'endColumn':_0x1ef2f4['last']};return 0x1==_0x42c39f['length']&&(_0x486fee['endRow']+=_0x4d5bab['getRows'](_0x1a5758)-0x1,_0x486fee['endColumn']+=_0x4d5bab['getColumns'](_0x1a5758)-0x1),Ue(_0x48bda1,_0x486fee,_0x4d5bab);}(_0x74f47e,_0x489639,_0x1aa6f3['model'],_0xcbe90,_0x5d7b24)&&(_0x3f3e66['stop'](),_0x749b42={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1aa6f3['model']['change'](()=>{_0x1aa6f3['model']['insertContent'](_0xa04eb3[0x0],_0xa04eb3[0x1],_0xa04eb3[0x2],{'forceDefaultExecution':!0x0});const _0x5a3f3b=_0x25e25c(),{rowInsertionRanges:_0x70e626,columnInsertionRanges:_0x56208b,insertionRanges:_0x3fa010,deletionRanges:_0x51b4cf,cells:_0x2bc588}=_0x749b42;_0x70e626['length']&&_0x51383f['markMultiRangeInsertion'](_0x70e626,'tablePasteRow',{'tablePasteChainId':_0x5a3f3b}),_0x56208b['length']&&_0x51383f['markMultiRangeInsertion'](_0x56208b,'tablePasteColumn',{'tablePasteChainId':_0x5a3f3b}),_0x3fa010['length']&&(_0x51383f['markMultiRangeInsertion'](_0x3fa010,'tablePaste',{'tablePasteChainId':_0x5a3f3b,'skipNestingCheck':!0x0}),_0x3fa010['forEach'](_0x10991d=>_0x10991d['detach']?.())),_0x51b4cf['length']&&(_0x51383f['markMultiRangeDeletion'](_0x51b4cf,'tablePaste',{'tablePasteChainId':_0x5a3f3b,'skipNestingCheck':!0x0}),_0x51b4cf['forEach'](_0x3e4f79=>_0x3e4f79['detach']?.()));const _0x2d0e65=_0x51383f['markMultiRangeBlockFormat'](_0x2bc588['map'](({element:_0x596369})=>_0x596369),{'formatGroupId':_0x25e25c()},[],'tablePasteCell',{'tablePasteChainId':_0x5a3f3b});if(_0x2d0e65){const _0x1c4629=_0x2d0e65['getMarkers'](),_0x45d84d=[];for(const {element:_0x170c00,attributes:_0x83a213}of _0x2bc588){if(!_0x83a213)continue;const _0xc8c265=_0x1aa6f3['model']['createRangeOn'](_0x170c00),_0x1ddfeb=_0x1c4629['find'](_0x528205=>_0x528205['getRange']()['isEqual'](_0xc8c265));_0x1ddfeb&&_0x45d84d['push']([_0x1ddfeb['name'],_0x83a213]);}_0x45d84d['length']&&_0x2d0e65['setAttribute']('markerAttributes',Object['fromEntries'](_0x45d84d));}_0x749b42=null;}));},{'priority':_0x513be7['high']+0xa}),_0x336838['on']('contentInsertion',()=>{_0x553dca=!0x1;},{'priority':'lowest'}),_0x1aa6f3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4175dc,_0x2156d8)=>{const [_0x1692c6,_0x278042,,_0x438544]=_0x2156d8;if(!_0x749b42)return;_0x4175dc['stop']();const _0x4f32ab=_0x1692c6['cell'],_0x28bb40=_0x278042,_0x564deb=Oe(_0x4f32ab),_0x21c651=Oe(_0x28bb40);_0x4175dc['return']=_0x4f32ab;let _0x5dfa58=null,_0x9bcfac=null;if(_0x21c651||_0x564deb){if(_0x564deb&&!_0x21c651){_0x438544['remove'](_0x4f32ab['getChild'](0x0));for(const _0x2fd40f of Array['from'](_0x28bb40['getChildren']()))_0x438544['insert'](_0x2fd40f,_0x4f32ab,'end');const _0x5361a8=_0x749b42['rowInsertionIndexes']['includes'](_0x1692c6['row']),_0x192e3f=_0x749b42['columnInsertionIndexes']['includes'](_0x1692c6['column']);_0x5361a8||_0x192e3f||(_0x5dfa58=_0x2e6917['fromRange'](_0x438544['createRangeIn'](_0x4f32ab)));}else _0x21c651&&!_0x564deb&&(_0x9bcfac=_0x438544['createRangeIn'](_0x4f32ab));}else{const _0x4d43f0=_0x438544['createElement']('tableCellSuggestion'),_0x394c07=_0x438544['createElement']('tableCellSuggestion');_0x438544['wrap'](_0x438544['createRangeIn'](_0x4f32ab),_0x394c07),_0x438544['insert'](_0x4d43f0,_0x4f32ab,0x0);for(const _0x3eb386 of Array['from'](_0x28bb40['getChildren']()))_0x438544['insert'](_0x3eb386,_0x4d43f0,'end');_0x5dfa58=_0x2e6917['fromRange'](_0x438544['createRangeOn'](_0x4d43f0)),_0x9bcfac=_0x2e6917['fromRange'](_0x438544['createRangeOn'](_0x394c07));}const _0x4ab844=Array['from'](_0x28bb40['getAttributes']())['filter'](([_0x4374fe])=>Be['includes'](_0x4374fe));_0x749b42['cells']['push']({'element':_0x4f32ab,'attributes':_0x4ab844['length']?Object['fromEntries'](_0x4ab844):null}),_0x5dfa58&&_0x749b42['insertionRanges']['push'](_0x5dfa58),_0x9bcfac&&_0x749b42['deletionRanges']['push'](_0x9bcfac);},{'priority':'high'}),_0xcbe90['on']('insertColumns',(_0x2d7d59,_0x1708f2)=>{const [_0x44a0c3,_0x424003={}]=_0x1708f2;if(!_0x749b42)return;const _0x1f9105=_0x424003['at']||0x0,_0x39396b=_0x424003['columns']||0x1;_0x749b42['columnInsertionIndexes']=new Array(_0x39396b)['fill'](_0x1f9105)['map']((_0x1833a7,_0x336c3b)=>_0x1833a7+_0x336c3b);for(const {cell:_0x283d15}of _0xcbe90['createTableWalker'](_0x44a0c3,{'startColumn':_0x1f9105,'endColumn':_0x1f9105+_0x39396b-0x1}))_0x749b42['columnInsertionRanges']['push'](_0x1aa6f3['model']['createRangeOn'](_0x283d15));},{'priority':'low'}),_0xcbe90['on']('insertRows',(_0x2b6a56,_0x58e342)=>{const [_0x591e99,_0x1b7002={}]=_0x58e342;if(!_0x749b42)return;const _0x3a24b2=_0x1b7002['at']||0x0,_0x204d44=_0x1b7002['rows']||0x1;_0x749b42['rowInsertionIndexes']=new Array(_0x204d44)['fill'](_0x3a24b2)['map']((_0x160702,_0x3ac73d)=>_0x160702+_0x3ac73d);for(const {cell:_0x47d4dc}of _0xcbe90['createTableWalker'](_0x591e99,{'startRow':_0x3a24b2,'endRow':_0x3a24b2+_0x204d44-0x1}))_0x749b42['rowInsertionRanges']['push'](_0x1aa6f3['model']['createRangeOn'](_0x47d4dc));},{'priority':'low'}),_0x51383f['descriptionFactory']['registerDescriptionCallback'](_0x241784=>{if(_0x241784['subType']&&_0x241784['subType']['startsWith']('tablePaste'))return _0x241784['previous']?{}:{'type':'insertion','content':o(_0x1aa6f3['locale'],'*Replace\x20table\x20cells*')};});const _0x7a55cc=()=>!0x1;for(const _0x540792 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x51383f['_suggestionFactory']['registerCustomCallback']('insertion',_0x540792,'join',_0x7a55cc),_0x51383f['_suggestionFactory']['registerCustomCallback']('deletion',_0x540792,'join',_0x7a55cc),_0x51383f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x540792,'join',_0x7a55cc);_0x51383f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x7a55cc),_0x51383f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x370365,_0x106e42,_0x1c043e)=>{const _0x2e6f68=_0x370365['map'](_0x26db36=>_0x26db36['getContainedElement']())['filter'](_0x384c95=>_0x384c95),_0x5c5a27=new Map(_0x2e6f68['map'](_0x35dae3=>[_0x35dae3,null]));if(_0x749b42){for(const {element:_0xad3402,attributes:_0xa1482b}of _0x749b42['cells'])_0xa1482b&&_0x5c5a27['set'](_0xad3402,_0xa1482b);}else{if(_0x1c043e&&_0x1c043e['markerAttributes'])for(const [_0x266b9d,_0x2bbda1]of Object['entries'](_0x1c043e['markerAttributes'])){const _0x56d610=_0x1aa6f3['model']['markers']['get'](_0x266b9d),_0x1d7788=_0x56d610?_0x56d610['getRange']()['getContainedElement']():null;_0x1d7788&&_0x5c5a27['set'](_0x1d7788,_0x2bbda1);}}_0x1aa6f3['model']['change'](_0x24ac15=>{for(const [_0x2c98e4,_0x4f30ec]of _0x5c5a27)_0x24ac15['setAttributes']({...xe,..._0x4f30ec},_0x2c98e4);});});const _0x482305=(_0x9b85d6,_0x24a238)=>{_0x51383f['_suggestionFactory']['registerCustomCallback'](_0x9b85d6,'tablePaste',_0x24a238,(_0x4d2e24,_0x2d6daf,_0x47f28e)=>{_0x1aa6f3['model']['change'](_0x3b7386=>{const _0x430e43=[];for(const _0xabaf72 of _0x4d2e24){const _0x285a28=_0xabaf72['start']['nodeAfter'];_0x285a28['is']('element','tableCellSuggestion')&&_0x430e43['push'](_0x285a28);}_0x51383f['_suggestionFactory']['getSuggestionCallback'](_0x9b85d6,null,_0x24a238)(_0x4d2e24,_0x2d6daf,_0x47f28e);for(const _0x23250b of _0x430e43)'$graveyard'!=_0x23250b['root']['rootName']&&_0x3b7386['unwrap'](_0x23250b);});});};_0x482305('insertion','accept'),_0x482305('insertion','discard'),_0x482305('deletion','accept'),_0x482305('deletion','discard'),_0x51383f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x433c11=>{const _0x34b498=_0x433c11['map'](_0x217cec=>_0x217cec['getContainedElement']()),_0x31c103=_0x34b498[0x0]['findAncestor']('table'),{minRow:_0x296c4b,maxRow:_0x511be8}=_0x3fcddb['_getCoordsForCells'](_0x34b498);_0xcbe90['removeRows'](_0x31c103,{'at':_0x296c4b,'rows':_0x511be8-_0x296c4b+0x1});}),_0x51383f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2fddf9=>{const _0x3a7d38=_0x2fddf9['map'](_0x3ce8c7=>_0x3ce8c7['getContainedElement']()),_0x2c38a8=_0x3a7d38[0x0]['findAncestor']('table'),{minColumn:_0x2f4c48,maxColumn:_0x4a64d5}=_0x3fcddb['_getCoordsForCells'](_0x3a7d38);_0xcbe90['removeColumns'](_0x2c38a8,{'at':_0x2f4c48,'columns':_0x4a64d5-_0x2f4c48+0x1});});const _0x35ddc0=(_0x2924bc,_0x34f914)=>{if(!_0x34f914['subType']||!_0x34f914['subType']['startsWith']('tablePaste'))return;const _0x5e72e5=_0x34f914['attributes']['tablePasteChainId'],_0x42173c=_0x51383f['getSuggestions']()['filter'](_0x34cb42=>_0x34cb42['isInContent']&&_0x34cb42['attributes']&&_0x34cb42['attributes']['tablePasteChainId']==_0x5e72e5);_0x42173c['length']&&_0x34f914['getAllAdjacentSuggestions']()['length']!=_0x42173c['length']&&_0x42173c['reduce']((_0x30ef1e,_0x372555)=>(_0x30ef1e['next']=_0x372555,_0x372555['previous']=_0x30ef1e,_0x372555));};function _0x5cf4f8(_0x4eb9ca,_0x2097ca=!0x0){const {id:_0x162d4f,authorId:_0x53eae4}=_0x51383f['_splitMarkerName'](_0x4eb9ca['markerName']),_0x3a5fce=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x48c09a=_0x51383f['activeMarkers']['includes'](_0x4eb9ca['markerName']);return _0x48c09a&&_0x3a5fce['push']('ck-suggestion-marker--active'),{'classes':_0x3a5fce,'attributes':{'data-suggestion':_0x162d4f,'data-author-id':_0x53eae4},'priority':_0x48c09a&&_0x2097ca?0xbc2:0xbb8};}_0x51383f['on']('suggestionLoaded',_0x35ddc0,{'priority':'high'}),_0x51383f['on']('suggestionUnloaded',_0x35ddc0,{'priority':'high'}),_0x1aa6f3['model']['document']['registerPostFixer'](()=>{let _0x296d5c=!0x1;const _0x30473f=Array['from'](_0x1aa6f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4abbfc,data:_0x30a0a3}of _0x30473f){const {group:_0x226abc,type:_0x50e9f4,id:_0x2547c0}=_0x51383f['_splitMarkerName'](_0x4abbfc);if('suggestion'!=_0x226abc||'deletion'!=_0x50e9f4||_0x30a0a3['oldRange'])continue;if(!_0x51383f['hasSuggestion'](_0x2547c0))continue;const _0x4fd721=_0x51383f['getSuggestion'](_0x2547c0)['getRanges'](),_0x474939=_0x1aa6f3['plugins']['get']('Users')['me'];for(const _0x447bc1 of _0x51383f['getSuggestions']()){if(!_0x447bc1['isInContent']||_0x447bc1['author']!=_0x474939)continue;if('formatBlock'!=_0x447bc1['type']||'tablePasteCell'!=_0x447bc1['subType'])continue;if(_0x447bc1['getRanges']()['every'](_0x540c4a=>_0x4fd721['some'](_0x15b31f=>_0x15b31f['containsRange'](_0x540c4a,!0x0)))){for(const _0xb7e388 of _0x447bc1['getAllAdjacentSuggestions']())_0xb7e388['isInContent']&&(_0xb7e388['discard'](),_0x296d5c=!0x0);}}}return _0x296d5c;}),_0x1aa6f3['model']['document']['registerPostFixer'](_0x37c9fe=>{const _0x157836=_0x1aa6f3['commands']['get']('redo');if(!_0x157836||!_0x157836['_createdBatches']['has'](_0x37c9fe['batch']))return!0x1;let _0x445e81=!0x1;const _0x2e1260=_0x1aa6f3['plugins']['get']('Users')['me'],_0x41bb1f=_0x1aa6f3['model']['document']['differ']['getChanges'](),_0x52d3f8=Array['from'](_0x1aa6f3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4843bd,data:_0x40801b})=>{const {group:_0x150cda,subType:_0x4e40e6,authorId:_0x4f983a}=_0x51383f['_splitMarkerName'](_0x4843bd);return'suggestion'==_0x150cda&&'tablePaste'==_0x4e40e6&&_0x4f983a==_0x2e1260['id']&&!_0x40801b['oldRange'];});for(const _0x592d43 of _0x41bb1f){if('insert'!=_0x592d43['type']||'tableCellSuggestion'!=_0x592d43['name']||0x1!=_0x592d43['length'])continue;const _0x43e3cd=_0x37c9fe['createRange'](_0x592d43['position'],_0x592d43['position']['getShiftedBy'](0x1));if(!_0x52d3f8['find'](({data:_0x8bdf20})=>_0x8bdf20['newRange']['isEqual'](_0x43e3cd))){for(const {name:_0x2ac013,data:_0x39e3b7}of _0x52d3f8)if(_0x43e3cd['containsRange'](_0x39e3b7['newRange'])){_0x37c9fe['updateMarker'](_0x2ac013,{'range':_0x43e3cd}),_0x445e81=!0x0;break;}}}return _0x445e81;}),_0x1aa6f3['model']['document']['registerPostFixer'](_0x4e9f20=>{let _0x2f4e77=!0x1;const _0x6641cc=_0x1aa6f3['plugins']['get']('Users')['me'],_0x4ee7f6=_0x51383f['getSuggestions']()['filter'](_0x293507=>_0x293507['isInContent']&&_0x293507['author']==_0x6641cc),_0xcb4932=new Set(),_0x3e48f6=new Set();for(const _0x4cf719 of _0x4ee7f6)if('tablePaste'==_0x4cf719['subType'])for(const _0x10bd09 of _0x4cf719['getMarkers']()){const _0x38c0b2=_0x10bd09['getRange']()['getContainedElement']();if(_0x38c0b2){if(_0x38c0b2['is']('element','tableCellSuggestion')&&Oe(_0x38c0b2)){_0x4cf719['removeMarker'](_0x10bd09['name']),_0xcb4932['add'](_0x38c0b2),_0x2f4e77=!0x0;const _0x46dfb7=_0x38c0b2['nextSibling'],_0x529a00=_0x38c0b2['previousSibling'],_0x1d1ee4=_0x46dfb7&&_0x46dfb7['is']('element','tableCellSuggestion'),_0x5ab4e6=_0x529a00&&_0x529a00['is']('element','tableCellSuggestion');_0x1d1ee4&&!_0xcb4932['has'](_0x46dfb7)&&_0x3e48f6['add'](_0x46dfb7),_0x5ab4e6&&!_0xcb4932['has'](_0x529a00)&&_0x3e48f6['add'](_0x529a00);}else _0x38c0b2['is']('element','paragraph')&&_0x38c0b2['isEmpty']&&(_0x4cf719['removeMarker'](_0x10bd09['name']),_0x2f4e77=!0x0);}}else{if('tablePasteCell'==_0x4cf719['subType']){if(!_0x4cf719['attributes']||!_0x4cf719['attributes']['tablePasteChainId'])continue;const _0x585eae=_0x4cf719['attributes']['markerAttributes'];if(_0x585eae&&Object['keys'](_0x585eae)['length'])continue;const _0x3a4587=_0x4cf719['attributes']['tablePasteChainId'];let _0x55537a=!0x0,_0xa842a7=!0x0;for(const _0x30fafb of _0x4ee7f6)if(_0x30fafb['subType']&&_0x30fafb['subType']['startsWith']('tablePaste')){if(!_0x30fafb['attributes']['tablePasteChainId']){_0xa842a7=!0x1;break;}if(_0x30fafb['id']!=_0x4cf719['id']&&_0x30fafb['attributes']['tablePasteChainId']==_0x3a4587){_0x55537a=!0x1;break;}}_0xa842a7&&_0x55537a&&(_0x4cf719['removeMarkers'](),_0x2f4e77=!0x0);}}for(const _0x160113 of _0xcb4932)_0x4e9f20['remove'](_0x160113);for(const _0x75aa8b of _0x3e48f6)_0x4e9f20['unwrap'](_0x75aa8b);return _0x2f4e77;}),_0x1aa6f3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x449dc0=>_0x5cf4f8(_0x449dc0),'converterPriority':'high'}),_0x1aa6f3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x568d75,_0x5beee7)=>_0x5beee7['options']['showSuggestionHighlights']?_0x5cf4f8(_0x568d75,!0x1):null,'converterPriority':'high'});const _0x5c055a=_0x1aa6f3['editing']['view'];this['listenTo'](_0x5c055a['document'],'clipboardOutput',(_0x5b150d,_0x17a79b)=>{const _0x19bf32=[];for(const _0x47bbfd of _0x5c055a['createRangeIn'](_0x17a79b['content'])['getItems']())_0x47bbfd['is']('element','suggestion-td')&&_0x19bf32['push'](_0x47bbfd);_0x5c055a['change'](_0x267b43=>{for(const _0x34a921 of _0x19bf32)_0x267b43['move'](_0x267b43['createRangeIn'](_0x34a921),_0x267b43['createPositionBefore'](_0x34a921)),_0x267b43['remove'](_0x34a921);});});}}function Oe(_0x2f94f2){if(_0x2f94f2['isEmpty'])return!0x0;const _0xd63771=_0x2f94f2['getChild'](0x0);return _0xd63771['is']('element','paragraph')&&_0xd63771['isEmpty'];}function Ue(_0x9de177,_0x3ed1b4={},_0x359822){for(const {isAnchor:_0x2649e4,cellHeight:_0x39558f,cellWidth:_0x7f3e1f}of _0x359822['createTableWalker'](_0x9de177,{'includeAllSlots':!0x0,..._0x3ed1b4}))if(!_0x2649e4||0x1!=_0x39558f||0x1!=_0x7f3e1f)return!0x1;return!0x0;}class Dt extends _0x4540bb{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x55158f=this['editor']['plugins']['get']('TrackChangesEditing');_0x55158f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x55158f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x55158f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55158f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x55158f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x55158f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3e917e,_0x481837){const _0x3a5e0c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5121dd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x15fbce=_0x481837['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xc18a98=_0x5121dd['getColumnGroupElement'](_0x15fbce);let _0x43181f=_0xc18a98?_0x5121dd['getTableColumnsWidths'](_0xc18a98):null,_0xb7934=_0x15fbce['getAttribute']('tableWidth')||null;const _0x6828eb=_0x481837['tableWidth']||_0xb7934,_0x5a53b9=_0x481837['columnWidths']||_0x43181f,_0xf8fdc8=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a601d of _0x3a5e0c['getSuggestions']()){const _0x45f85a=_0x4a601d['getContainedElement']();if('resizeTable'===_0x4a601d['subType']&&_0x45f85a===_0x15fbce){_0x4a601d['author']!==_0xf8fdc8&&_0x4a601d['discard']();const _0xaed0bc=_0x4a601d['data']['commandParams'];_0xb7934=_0xaed0bc[0x0]['tableWidth'],_0x43181f=_0xaed0bc[0x0]['columnWidths'];break;}}_0x3e917e({'table':_0x15fbce,'tableWidth':_0x6828eb,'columnWidths':_0x5a53b9}),_0x3a5e0c['markBlockFormat'](_0x15fbce,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xb7934,'columnWidths':_0x43181f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4ac10c){if('formatBlock'!=_0x4ac10c['type']&&'formatInline'!=_0x4ac10c['type'])return;const {data:_0x256c2b}=_0x4ac10c;if(_0x256c2b&&'resizeTable'===_0x256c2b['formatGroupId']){const _0x84c9ad='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x84c9ad)};}}}class $t extends _0x4540bb{['afterInit'](){const _0x253c82=this['editor'];_0x253c82['plugins']['has']('Template')&&_0x253c82['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4540bb{['afterInit'](){const _0x2c9dff=this['editor'];if(!_0x2c9dff['commands']['get']('insertTableOfContents'))return;_0x2c9dff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3a4e7a=_0x2c9dff['plugins']['get']('TrackChangesEditing'),_0x1e7450=_0x2c9dff['locale'];_0x3a4e7a['descriptionFactory']['registerElementLabel']('tableOfContents',_0xe61f87=>o(_0x1e7450,'ELEMENT_TABLE_OF_CONTENTS',_0xe61f87));}}class Bt extends _0x4540bb{['afterInit'](){const _0x2c2de7=this['editor'];if(!_0x2c2de7['plugins']['has']('Title'))return;const _0x359e0d=_0x2c2de7['plugins']['get']('TrackChangesEditing');_0x359e0d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2c2de7['locale'],'ELEMENT_TITLE')),_0x2c2de7['model']['document']['registerPostFixer'](_0x5d588d=>{let _0xed8183=!0x1;const _0x11fb96=Array['from'](_0x2c2de7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x385ffa,data:_0xcd5e96}of _0x11fb96){const {group:_0x3917af}=_0x359e0d['_splitMarkerName'](_0x385ffa);if('suggestion'!==_0x3917af||!_0xcd5e96['newRange'])continue;const _0x139a50=_0xcd5e96['newRange'],_0x2e6de2=_0x139a50['end']['nodeBefore'];if(!_0x2e6de2||!_0x2e6de2['is']('element','title-content'))continue;if(!_0x139a50['start']['isTouching'](_0x139a50['end']))continue;const _0x26eca8=_0x2c2de7['model']['schema']['getNearestSelectionRange'](_0x139a50['end'],'forward');if(_0x26eca8&&_0x26eca8['isCollapsed']){const _0x5606d1=_0x5d588d['createRange'](_0x139a50['start'],_0x26eca8['start']);_0x5606d1['isEqual'](_0x139a50)||(_0x5d588d['updateMarker'](_0x385ffa,{'range':_0x5606d1}),_0xed8183=!0x0);}_0xed8183||(_0x5d588d['removeMarker'](_0x385ffa),_0xed8183=!0x0);}return _0xed8183;});}}class Tt extends _0x4540bb{['afterInit'](){const _0x3bfde1=this['editor'],_0x48bc77=_0x3bfde1['plugins']['get']('TrackChangesEditing');_0x3bfde1['plugins']['has']('Uploadcare')&&(_0x48bc77['enableCommand']('uploadcare'),_0x3bfde1['plugins']['has']('UploadcareImageEdit')&&(_0x48bc77['enableCommand']('uploadcareImageEdit'),_0x48bc77['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x48bc77['registerBlockAttribute']('uploadcareImageId'),_0x48bc77['descriptionFactory']['registerDescriptionCallback'](_0x23c125=>{if('attribute'!=_0x23c125['type'])return;const {data:_0x5531f6}=_0x23c125;return _0x5531f6&&'uploadcareImageId'==_0x5531f6['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x4540bb{['afterInit'](){const _0x17bb03=this['editor'],_0x2e11fc=_0x17bb03['plugins']['get']('TrackChangesEditing');_0x17bb03['plugins']['has']('UndoEditing')&&(_0x2e11fc['enableCommand']('undo'),_0x2e11fc['enableCommand']('redo'));}}class Ot extends _0x4540bb{static get['requires'](){return[At];}['afterInit'](){const _0x4856fb=this['editor'];if(!_0x4856fb['plugins']['has']('TableCaptionEditing'))return;_0x4856fb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x4540bb{['tableProperties'];['tableCellProperties'];constructor(_0x50fd89){super(_0x50fd89),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 _0x21475a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2db2c7 of this['tableProperties'])_0x21475a['enableCommand'](_0x2db2c7,(_0x27b926,_0x27198f)=>{const _0x357be6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2db2c7,[_0x357be6],this['tableProperties'],'tableProperties',_0x27b926,_0x27198f);});_0x21475a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x21475a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x21475a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ebe23,_0x2d9f7a)=>this['handleDiscardAction'](this['tableProperties'],_0x2ebe23,_0x2d9f7a)),_0x21475a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x76ea3e of this['tableCellProperties'])_0x21475a['enableCommand'](_0x76ea3e,(_0x3f738e,_0x48f079)=>{const _0x23b717=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x76ea3e,_0x23b717,this['tableCellProperties'],'tableCellProperties',_0x3f738e,_0x48f079);});_0x21475a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x21475a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x21475a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xee8b1b,_0x549ec8)=>this['handleDiscardAction'](this['tableCellProperties'],_0xee8b1b,_0x549ec8)),_0x21475a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x21475a['descriptionFactory']['registerDescriptionCallback'](_0x6de1c2=>this['handleSuggestionDescription'](_0x6de1c2)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3243bf,_0x2bd1c2,_0x5e60b6,_0x5732df,_0x1ac4d0,_0x2c7d00){const _0x4c6aa9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c7d00['batch'],()=>{for(const _0x59c6ae of _0x2bd1c2){if(this['_getSuggestion'](_0x59c6ae,_0x5732df))_0x1ac4d0(_0x2c7d00);else{const _0x1ba1b3={};for(const _0x3e7006 of _0x5e60b6){const _0x502d0e=_0x59c6ae['getAttribute'](_0x3e7006);void 0x0!==_0x502d0e&&(_0x1ba1b3[_0x3e7006]=_0x502d0e);}_0x1ac4d0(_0x2c7d00),_0x4c6aa9['markBlockFormat'](_0x59c6ae,{'commandParams':[_0x1ba1b3]},[],_0x5732df);}}});}['handleDiscardAction'](_0x291340,_0x341693,_0x5f47dc){const _0x348e1b=_0x341693[0x0]['start']['nodeAfter'],_0x2b8ecc=_0x5f47dc['commandParams'][0x0];this['editor']['model']['change'](_0x2f2169=>{for(const _0x18d619 of _0x291340)void 0x0!==_0x2b8ecc[_0x18d619]?_0x2f2169['setAttribute'](_0x18d619,_0x2b8ecc[_0x18d619],_0x348e1b):_0x2f2169['removeAttribute'](_0x18d619,_0x348e1b);});}['handleSuggestionDescription'](_0x436a3a){if(_0x436a3a['data'])switch(_0x436a3a['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'](_0x2ffb62,_0x2f2ea6){const _0x17dfba=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x240940 of _0x17dfba['getSuggestions']({'skipNotAttached':!0x0})){const _0x286c2b=_0x240940['getContainedElement']();if(_0x240940['subType']===_0x2f2ea6&&_0x286c2b===_0x2ffb62)return _0x240940;}return null;}['_registerTablePropertiesAttributes'](){const _0x51387a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55c891=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x19ff9c of _0x55c891){const _0x3d97f3=_0x19ff9c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x51387a['registerBlockAttribute'](_0x19ff9c),_0x51387a['descriptionFactory']['registerAttributeLabel'](_0x19ff9c,o(this['editor']['locale'],'FORMAT_'+_0x3d97f3));}}}class Rt extends _0x4540bb{['afterInit'](){const _0x57c57a=this['editor'];if(!_0x57c57a['plugins']['has']('LineHeight'))return;const _0x1a6fd8=_0x57c57a['plugins']['get']('TrackChangesEditing'),_0x32c98c=_0x57c57a['locale'];_0x1a6fd8['enableDefaultAttributesIntegration']('lineHeight'),_0x1a6fd8['registerBlockAttribute']('lineHeight'),_0x1a6fd8['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x32c98c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4540bb{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3654ac,_0x5c1ee4,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e7d5e){super(_0x4e7d5e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x45b5bf,_0x4532f6,_0x26001b,_0x12fa06)=>{this['_model']['change'](()=>{for(const _0x2328a3 of[..._0x12fa06,..._0x26001b])this['_model']['markers']['has'](_0x2328a3)&&_0x4e7d5e['editing']['reconvertMarker'](_0x2328a3);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4e7d5e['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(),_0x4e7d5e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4e7d5e['config']['get']('trackChanges.trackFormatChanges'),_0x4e7d5e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4e7d5e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4e7d5e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x40abf5=this['editor'],_0x77e476=(_0x56481d,_0x471bf3)=>{if('attribute'!=_0x56481d)return'ck-suggestion-marker-'+_0x56481d;const _0x561b3a=_0x471bf3['split']('|')[0x0];return this['_isBlockAttribute'](_0x561b3a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x40abf5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x24af5f=>{const {id:_0x52cf6b,authorId:_0x32f38c,type:_0x5d8283,subType:_0x36c3be}=this['_splitMarkerName'](_0x24af5f['markerName']),_0x259733=['ck-suggestion-marker',_0x77e476(_0x5d8283,_0x36c3be)];let _0x2e3bef=0xbb8;return this['activeMarkers']['includes'](_0x24af5f['markerName'])&&(_0x259733['push']('ck-suggestion-marker--active'),_0x2e3bef=0xbc2),'deletion'==_0x5d8283&&(_0x2e3bef+=0x5),{'classes':_0x259733,'attributes':{'data-suggestion':_0x52cf6b,'data-author-id':_0x32f38c},'priority':_0x2e3bef};}}),_0x40abf5['conversion']['for']('dataDowncast')['add'](_0x3d2202=>{_0x3d2202['on']('addMarker:suggestion',(_0x1557e1,_0x1fda1f,_0x3b35c3)=>{if(!_0x3b35c3['options']['showSuggestionHighlights'])return;const _0x5a3939=_0x1fda1f['item'];if(!_0x5a3939)return;const _0x3c216a=_0x3b35c3['mapper']['toViewElement'](_0x5a3939);_0x40abf5['model']['schema']['isObject'](_0x5a3939)&&_0x3c216a&&!_0x3c216a['getCustomProperty']('widget')&&_0x3c216a['is']('containerElement')&&_0x255e2(_0x3c216a,_0x3b35c3['writer']);},{'priority':'high'});}),_0x40abf5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x11dbb9,_0x23c919)=>{if(!_0x23c919['options']['showSuggestionHighlights'])return null;const {id:_0x51255b,authorId:_0xdde5ae,type:_0x3773cd,subType:_0x561651}=this['_splitMarkerName'](_0x11dbb9['markerName']);return{'classes':['ck-suggestion-marker',_0x77e476(_0x3773cd,_0x561651)],'priority':0xbb8,'attributes':{'data-suggestion':_0x51255b,'data-author-id':_0xdde5ae}};}});const _0x2b6ed7=({showActiveMarkers:_0x52905b=!0x0,isAttributeSuggestion:_0xd8187e=!0x1}={})=>(_0x43f8e8,_0x217e56,_0x5ab5cf)=>{if(!_0x217e56['item'])return;const {id:_0x20c8a6,authorId:_0x4fe94b}=this['_splitMarkerName'](_0x217e56['markerName']);if(_0xd8187e){const _0xfb648c=this['_suggestions']['get'](_0x20c8a6),_0x3db2d2=this['_getAttributeKey'](_0xfb648c);if(!this['_isBlockAttribute'](_0x3db2d2))return;}if(_0x217e56['item']['is']('selection'))return void _0x5ab5cf['consumable']['consume'](_0x217e56['item'],_0x43f8e8['name']);const _0x3889f5=_0x5ab5cf['mapper']['toViewElement'](_0x217e56['item']);if(_0x217e56['item']['is']('element')&&_0x40abf5['model']['schema']['isBlock'](_0x217e56['item'])&&!_0x3889f5['getCustomProperty']('addHighlight')){_0x5ab5cf['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3889f5),_0x5ab5cf['writer']['setAttribute']('data-suggestion',_0x20c8a6,_0x3889f5),_0x5ab5cf['writer']['setAttribute']('data-author-id',_0x4fe94b,_0x3889f5),_0x5ab5cf['mapper']['bindElementToMarker'](_0x3889f5,_0x217e56['markerName']),_0x52905b&&(this['activeMarkers']['includes'](_0x217e56['markerName'])?_0x5ab5cf['writer']['addClass']('ck-suggestion-marker--active',_0x3889f5):_0x5ab5cf['writer']['removeClass']('ck-suggestion-marker--active',_0x3889f5));for(const _0x848f52 of _0x40abf5['model']['createRangeIn'](_0x217e56['item'])['getItems']())_0x5ab5cf['consumable']['consume'](_0x848f52,_0x43f8e8['name']);_0x5ab5cf['consumable']['consume'](_0x217e56['item'],_0x43f8e8['name']);}};_0x40abf5['conversion']['for']('dataDowncast')['add'](_0x22f5bd=>{_0x22f5bd['on']('addMarker:suggestion:formatBlock',(_0x4fc8fc,_0x13d03b,_0x21f413)=>{_0x21f413['options']['showSuggestionHighlights']&&_0x2b6ed7({'showActiveMarkers':!0x1})(_0x4fc8fc,_0x13d03b,_0x21f413);},{'priority':'highest'});}),_0x40abf5['conversion']['for']('dataDowncast')['add'](_0xb75458=>{_0xb75458['on']('addMarker:suggestion:attribute',(_0x397b27,_0x4cce17,_0x24472f)=>{_0x24472f['options']['showSuggestionHighlights']&&_0x2b6ed7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x397b27,_0x4cce17,_0x24472f);},{'priority':'highest'});}),_0x40abf5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5cb563,_0x5e9dc6)=>{if(_0x5e9dc6['options']['showSuggestionHighlights']){const {id:_0x57774c,authorId:_0xb7b144}=this['_splitMarkerName'](_0x5cb563);return _0x5cb563['includes'](':split')||_0x5cb563['includes'](':merge')?{'group':'suggestion','name':_0x5cb563['substr'](0xb),'attributes':{'data-suggestion':_0x57774c,'data-author-id':_0xb7b144}}:null;}return{'group':'suggestion','name':_0x5cb563['substr'](0xb)};}}),_0x40abf5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ea71c,{writer:_0x1fb872})=>{let _0x35d1d8='suggestion:'+_0x4ea71c['getAttribute']('suggestion-type')+':'+_0x4ea71c['getAttribute']('id');return _0x4ea71c['getAttribute']('marker-count')&&(_0x35d1d8+=':'+_0x4ea71c['getAttribute']('marker-count')),_0x1fb872['createElement']('$marker',{'data-name':_0x35d1d8});}}),_0x40abf5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x40abf5['conversion']['for']('editingDowncast')['add'](_0x203d9c=>{_0x203d9c['on']('addMarker:suggestion:formatBlock',_0x2b6ed7(),{'priority':'high'});}),_0x40abf5['conversion']['for']('editingDowncast')['add'](_0x51ca15=>{_0x51ca15['on']('addMarker:suggestion:attribute',_0x2b6ed7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x40abf5['conversion']['for']('editingDowncast')['add'](_0x5b9ea6=>{_0x5b9ea6['on']('removeMarker:suggestion:formatBlock',(_0x24d6e5,_0x5be223,_0x3fe72)=>{const _0x216d02=_0x3fe72['mapper']['markerNameToElements'](_0x5be223['markerName']);if(_0x216d02){for(const _0x123da5 of _0x216d02)_0x123da5['getCustomProperty']('addHighlight')||(_0x3fe72['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x123da5),_0x3fe72['writer']['removeAttribute']('data-suggestion',_0x123da5),_0x3fe72['writer']['removeAttribute']('data-author-id',_0x123da5),_0x3fe72['mapper']['unbindElementFromMarkerName'](_0x123da5,_0x5be223['markerName']));}},{'priority':'high'});}),_0x40abf5['conversion']['for']('editingDowncast')['add'](_0x51c346=>{_0x51c346['on']('removeMarker:suggestion:attribute',(_0x10c32a,_0x536ca7,_0x25cee0)=>{const _0x321323=_0x25cee0['mapper']['markerNameToElements'](_0x536ca7['markerName']);if(!_0x321323)return;const {id:_0x2249ae}=this['_splitMarkerName'](_0x536ca7['markerName']),_0x177688=this['_suggestions']['get'](_0x2249ae),_0x5aabe8=this['_getAttributeKey'](_0x177688);if(this['_isBlockAttribute'](_0x5aabe8)){for(const _0x369e1b of _0x321323)_0x369e1b['getCustomProperty']('addHighlight')||(_0x25cee0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x369e1b),_0x25cee0['writer']['removeAttribute']('data-suggestion',_0x369e1b),_0x25cee0['writer']['removeAttribute']('data-author-id',_0x369e1b),_0x25cee0['mapper']['unbindElementFromMarkerName'](_0x369e1b,_0x536ca7['markerName']));}},{'priority':'high'});}),_0x40abf5['model']['document']['registerPostFixer'](_0x4f703b=>{let _0x3d19d7=!0x1;const _0x318de3=Array['from'](_0x40abf5['model']['document']['differ']['getChangedMarkers']()),_0x96f1d6=new Set();for(const {name:_0x14ac58,data:_0x49a120}of _0x318de3){const {group:_0x1968b0,type:_0x592453,subType:_0x19ac5a,id:_0x5a8db0}=this['_splitMarkerName'](_0x14ac58);if('suggestion'!==_0x1968b0)continue;const _0x3f5df3=_0x19ac5a?'suggestion:'+_0x592453+':'+_0x19ac5a+':'+_0x5a8db0:'suggestion:'+_0x592453+':'+_0x5a8db0,_0x273e60=_0x40abf5['model']['markers']['getMarkersGroup'](_0x3f5df3),_0x47a8ad=_0x40abf5['model']['markers']['get'](_0x14ac58),_0x205e5a=this['_suggestions']['get'](_0x5a8db0);if(null!=_0x49a120['newRange']){'formatInline'==_0x592453&&(_0x3d19d7=_0x3d19d7||Gt(_0x49a120['newRange'],_0x14ac58,_0x4f703b,_0x40abf5['model']['schema']));const _0xd367e0='attribute'==_0x592453&&this['_isBlockAttribute'](_0x19ac5a['split']('|')[0x0]),_0x4560e8='attribute'==_0x592453&&this['_isInlineAttribute'](_0x19ac5a['split']('|')[0x0]);if(_0x49a120['newRange']['isCollapsed']||'$graveyard'==_0x49a120['newRange']['root']['rootName']||'formatBlock'==_0x592453&&!Jt(_0x49a120['newRange'])||_0xd367e0&&!Jt(_0x49a120['newRange'])||_0x4560e8&&Kt(_0x49a120['newRange'])||'deletion'==_0x592453&&Kt(_0x49a120['newRange'])||_0x47a8ad&&Ht(_0x47a8ad,_0x273e60))_0x4f703b['removeMarker'](_0x14ac58),_0x3d19d7=!0x0;else{if(!_0x205e5a||!_0x205e5a['isInContent'])continue;if(_0x49a120['newRange']&&_0x49a120['oldRange']&&_0x49a120['newRange']['isEqual'](_0x49a120['oldRange']))continue;_0x96f1d6['add'](_0x205e5a);}}}return _0x96f1d6['size']>0x0&&(_0x3d19d7=!!this['_joinWithAdjacentSuggestions'](_0x96f1d6)||_0x3d19d7),_0x3d19d7;}),_0x40abf5['model']['document']['registerPostFixer'](_0x3942ee=>{let _0x1d0c23=!0x1;for(const _0xfa6494 of _0x40abf5['model']['document']['differ']['getChanges']())if('insert'==_0xfa6494['type'])for(const _0x74133c of this['_suggestions']['values']()){if(_0x74133c['isMultiRange']||!_0x74133c['isInContent'])continue;const _0x2fce3e='formatBlock'==_0x74133c['type'],_0x3afb20=this['_getAttributeKey'](_0x74133c),_0x2d9b7b=_0x3afb20&&this['_isBlockAttribute'](_0x3afb20);if(!_0x2fce3e&&!_0x2d9b7b)continue;const _0x537acb=_0x74133c['getFirstRange']();if(_0x537acb['start']['parent']!=_0x537acb['end']['parent']&&!_0x537acb['end']['isAtEnd']){const _0x37f4d2=_0x40abf5['model']['createPositionAt'](_0x537acb['start']['nodeAfter'],'end'),_0x3133d8=_0x40abf5['model']['createRange'](_0x537acb['start'],_0x37f4d2);_0x3942ee['updateMarker'](_0x74133c['getFirstMarker'](),{'range':_0x3133d8}),_0x1d0c23=!0x0;}}return _0x1d0c23;}),_0x40abf5['model']['document']['registerPostFixer'](_0x5a5d55=>this['_processAttributeChanges'](_0x5a5d55)),_0x40abf5['model']['document']['registerPostFixer'](_0x2956e6=>!_0x2956e6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2956e6)),_0x40abf5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x40abf5['model']['document']['on']('change:data',(_0x204a7d,_0x117744)=>{if(!_0x117744['isLocal']||_0x117744['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x26055f=_0x40abf5['model']['document']['differ']['getChanges']();if(0x0==_0x26055f['length'])return;const _0x1a172c=[],_0x5d9bda=_0x26055f['filter'](_0x598604=>'attribute'==_0x598604['type']),_0x2bda25=_0x26055f['filter'](_0x56c069=>'insert'==_0x56c069['type']&&'$text'!=_0x56c069['name']);for(const _0x530e4f of _0x5d9bda)this['_isRegisteredAttribute'](_0x530e4f['attributeKey'])&&_0x1a172c['push']({'key':_0x530e4f['attributeKey'],'newValue':_0x530e4f['attributeNewValue'],'oldValue':_0x530e4f['attributeOldValue'],'range':qt(_0x530e4f['range'],_0x40abf5['model'])});for(const _0x408fc6 of _0x2bda25){if('rename'!=_0x408fc6['action']&&'refresh'!=_0x408fc6['action'])continue;const _0x48a51f=zt(_0x408fc6['position']['nodeAfter'],_0x40abf5['model']),_0x3b1690=_0x408fc6['before'];'rename'==_0x408fc6['action']&&_0x1a172c['push']({'key':m,'newValue':_0x408fc6['name'],'oldValue':_0x3b1690['name'],'range':_0x48a51f});for(const [_0x4a24fa,_0xb7630a]of _0x3b1690['attributes']){if(!this['_isRegisteredAttribute'](_0x4a24fa))continue;const _0xd54f96=_0x408fc6['attributes']['get'](_0x4a24fa);_0xb7630a!==_0xd54f96&&_0x1a172c['push']({'key':_0x4a24fa,'newValue':_0xd54f96,'oldValue':_0xb7630a,'range':_0x48a51f});}for(const [_0x16beb3,_0x363cba]of _0x408fc6['attributes'])this['_isRegisteredAttribute'](_0x16beb3)&&(_0x3b1690['attributes']['has'](_0x16beb3)||_0x1a172c['push']({'key':_0x16beb3,'newValue':_0x363cba,'oldValue':null,'range':_0x48a51f}));}0x0!=_0x1a172c['length']&&_0x40abf5['model']['enqueueChange'](_0x117744,_0x459de2=>{const _0x48c419=_0x25e25c();for(const {range:_0x55db77,key:_0x456c82,oldValue:_0x5e1af6,newValue:_0x4fba5c}of _0x1a172c)this['markAttributeChange'](_0x55db77,_0x456c82,_0x5e1af6,_0x4fba5c,{'groupId':_0x48c419});this['_reduceExistingSuggestions'](_0x459de2,_0x1a172c);});},{'priority':'lowest'}),_0x40abf5['model']['markers']['on']('update:suggestion',(_0x5eff04,_0x5c49a6,_0xb8275a)=>{if(null==_0xb8275a){const {id:_0xf6b4f2}=this['_splitMarkerName'](_0x5c49a6['name']),_0x4a6bd1=this['_suggestions']['get'](_0xf6b4f2);_0x4a6bd1&&_0x4a6bd1['addMarkerName'](_0x5c49a6['name']);}}),_0x40abf5['model']['document']['on']('change:data',()=>{const _0x4c3df8=Array['from'](_0x40abf5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5576a1=>'suggestion'===this['_splitMarkerName'](_0x5576a1['name'])['group']);if(0x0===_0x4c3df8['length'])return;_0x4c3df8['sort']((_0x27664e,_0x3c38be)=>{const _0x4f5f37=_0x27664e['data']['oldRange'],_0x3f97a2=_0x3c38be['data']['oldRange'];return null===_0x4f5f37&&null===_0x3f97a2?0x0:null===_0x4f5f37&&null!==_0x3f97a2?-0x1:null!==_0x4f5f37&&null===_0x3f97a2?0x1:_0x4f5f37['start']['isBefore'](_0x3f97a2['start'])?-0x1:0x1;});const _0x3abbed=new Set(),_0x3b44fa=new Set();for(const {name:_0x358a0e,data:_0x398467}of _0x4c3df8){const {id:_0x1e88fc}=this['_splitMarkerName'](_0x358a0e);if(null===_0x398467['oldRange']){const _0x25cd06=this['_handleNewSuggestionMarker'](_0x358a0e);_0x3b44fa['add'](_0x25cd06);}else{const _0x55bc07=this['_suggestions']['get'](_0x1e88fc);null!==_0x398467['newRange']||_0x55bc07['isInContent']?(_0x3abbed['add'](_0x55bc07['head']),_0x3b44fa['add'](_0x55bc07)):this['_removeSuggestion'](_0x55bc07);}}_0x3b44fa['size']>0x0&&this['_refreshSuggestionsChain'](_0x3b44fa);for(const _0x34b369 of _0x3abbed)this['fire']('suggestionChanged',_0x34b369);}),_0x40abf5['model']['on']('applyOperation',(_0x3e42f9,_0x424cc2)=>{const _0x49577f=_0x424cc2[0x0];if(!this['_suggestions']['size'])return;if(!_0x49577f['isDocumentOperation'])return;if(_0x49577f['batch']['isUndo']||!_0x49577f['batch']['isLocal'])return;let _0x21a61d,_0x43b640;switch(_0x49577f['type']){case'insert':_0x21a61d=_0x40abf5['model']['createPositionAt'](_0x49577f['position']),_0x43b640=_0x21a61d['getShiftedBy'](_0x49577f['howMany']);break;case'split':_0x21a61d=_0x40abf5['model']['createPositionAt'](_0x49577f['splitPosition']),_0x43b640=_0x40abf5['model']['createPositionAt'](_0x49577f['moveTargetPosition']);break;case'move':_0x21a61d=_0x40abf5['model']['createPositionAt'](_0x49577f['targetPosition']),_0x43b640=_0x21a61d['getShiftedBy'](_0x49577f['howMany']);break;default:return;}const _0x42c92a=_0x40abf5['model']['createRange'](_0x21a61d,_0x43b640);_0x40abf5['model']['change'](()=>{for(const {suggestion:_0x2a592b,meta:_0x38b361}of this['_findSuggestions'](_0x42c92a)){if(_0x2a592b['isMultiRange'])continue;if('formatInline'==_0x2a592b['type'])continue;const _0xe28c0=this['_getAttributeKey'](_0x2a592b);if(_0xe28c0&&this['_isBlockAttribute'](_0xe28c0)&&'split'!=_0x49577f['type'])continue;const _0x3cfbb8=_0x2a592b['data']&&_0x2a592b['data']['multipleBlocks'];('formatBlock'!=_0x2a592b['type']||'split'==_0x49577f['type']&&!_0x3cfbb8)&&(_0x38b361['containsRangeInObject']||'insertion'==_0x2a592b['type']&&_0x38b361['isOwn']||_0x2a592b['getFirstRange']()['containsRange'](_0x42c92a)&&this['_breakSuggestionMarker'](_0x2a592b,_0x21a61d,_0x43b640));}});},{'priority':'lowest'}),_0x40abf5['model']['on']('deleteContent',(_0x5a0f86,_0x5dfabe)=>{const _0x109ef5=_0x5dfabe[0x0],_0x89077d=_0x5dfabe[0x1];if(_0x89077d&&_0x89077d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x109ef5['isCollapsed'])return;const _0x37c4a7=_0x40abf5['model']['schema'],{start:_0x1a93a4,end:_0x133aeb}=_0x109ef5['getFirstRange'](),_0x5495e0=_0x1a93a4['nodeAfter']&&_0x37c4a7['isLimit'](_0x1a93a4['nodeAfter'])?null:_0x37c4a7['getNearestSelectionRange'](_0x1a93a4,'forward'),_0x4395d0=_0x133aeb['nodeBefore']&&_0x37c4a7['isLimit'](_0x133aeb['nodeBefore'])?null:_0x37c4a7['getNearestSelectionRange'](_0x133aeb,'backward'),_0x2878dd=_0x40abf5['model']['createRange'](_0x5495e0?_0x5495e0['start']:_0x1a93a4,_0x4395d0?_0x4395d0['end']:_0x133aeb);_0x40abf5['model']['change'](_0x17a6c0=>{this['markDeletion'](_0x2878dd);const _0x35ba76=_0x40abf5['model']['schema']['getNearestSelectionRange'](_0x2878dd['start']);_0x109ef5['is']('documentSelection')?_0x17a6c0['setSelection'](_0x35ba76):_0x109ef5['setTo'](_0x35ba76);}),_0x5a0f86['stop']();},{'priority':_0x513be7['normal']+0xa}),_0x40abf5['model']['on']('insertContent',(_0x19a136,_0x2fbc84)=>{const _0x58dbb4=_0x2fbc84[_0x2fbc84['length']-0x1];_0x58dbb4&&_0x58dbb4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x40abf5['model']['change'](()=>{let _0x7a6e9=_0x40abf5['model']['insertContent'](_0x2fbc84[0x0],_0x2fbc84[0x1],_0x2fbc84[0x2],{'forceDefaultExecution':!0x0});if(!_0x7a6e9)return;_0x19a136['return']=_0x7a6e9['clone']();const _0x83862a=_0x7a6e9['end']['nodeBefore'],_0x316cee=_0x40abf5['model']['schema'];_0x83862a&&_0x316cee['isBlock'](_0x83862a)&&!_0x316cee['isObject'](_0x83862a)&&(_0x7a6e9=_0x40abf5['model']['createRange'](_0x7a6e9['start'],_0x40abf5['model']['createPositionAt'](_0x83862a,'end'))),this['markInsertion'](_0x7a6e9);}),_0x19a136['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3f9984=new D(_0x40abf5,this['_suggestions']);_0x40abf5['commands']['add']('acceptSuggestion',_0x3f9984),this['enableCommand']('acceptSuggestion');const _0x180b3b=new $(_0x40abf5,this['_suggestions']);_0x40abf5['commands']['add']('discardSuggestion',_0x180b3b),this['enableCommand']('discardSuggestion'),_0x40abf5['commands']['add']('acceptAllSuggestions',new M(_0x40abf5,_0x3f9984,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x40abf5['commands']['add']('discardAllSuggestions',new M(_0x40abf5,_0x180b3b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x40abf5['commands']['add']('acceptSelectedSuggestions',new B(_0x40abf5,_0x3f9984,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x40abf5['commands']['add']('discardSelectedSuggestions',new B(_0x40abf5,_0x180b3b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1751c0=_0x40abf5['plugins']['get']('CommentsRepository');this['listenTo'](_0x1751c0,'addComment',(_0x1720b8,{threadId:_0x2e9e57})=>{const _0x24f170=this['_suggestions']['get'](_0x2e9e57);_0x24f170&&_0x24f170['commentThread']&&0x1===_0x24f170['commentThread']['length']&&this['_updateSuggestionData'](_0x2e9e57,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1751c0,'removeComment',(_0x4a1f94,{threadId:_0x14fe3f})=>{const _0x46f175=this['_suggestions']['get'](_0x14fe3f);_0x46f175&&_0x46f175['commentThread']&&!_0x46f175['commentThread']['length']&&this['_updateSuggestionData'](_0x14fe3f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2c126b){const _0x26e917=_0x3ff3a2([0x30,0x73,0x47,0x78,0x68,0x51,0x31,0x36,0x6b,0x4e,0x6d,0x74,0x6c,0x56,0x49,0x5a,0x70,0x53,0x4c,0x4d,0x65,0x52,0x48,0x54,0x6e,0x4a,0x45,0x44,0x77,0x33,0x55,0x50,0x79,0x38,0x4f,0x69,0x35,0x72,0x6a,0x59,0x7a,0x6f,0x62,0x71,0x42,0x66,0x61,0x63,0x58,0x4b,0x41,0x75,0x39,0x64,0x43,0x34,0x37,0x67,0x76,0x32,0x46,0x57]),_0x20b750=0x5ac69dd9,_0x99aac=0x5ac1ed09^_0x20b750,_0xf9b81e=window[_0x3ff3a2([0x44,0x61,0x74,0x65])][_0x3ff3a2([0x6e,0x6f,0x77])](),_0x26ee65=_0x2c126b[_0x3ff3a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36cefd=new window[(_0x3ff3a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e1cbb=>{_0x26ee65[_0x3ff3a2([0x6f,0x6e,0x63,0x65])](_0x3ff3a2([0x72,0x65,0x61,0x64,0x79]),_0x2e1cbb);}),_0x4bf8ec={[_0x3ff3a2([0x6b,0x74,0x79])]:_0x3ff3a2([0x45,0x43]),[_0x3ff3a2([0x75,0x73,0x65])]:_0x3ff3a2([0x73,0x69,0x67]),[_0x3ff3a2([0x63,0x72,0x76])]:_0x3ff3a2([0x50,0x2d,0x32,0x35,0x36]),[_0x3ff3a2([0x78])]:_0x3ff3a2([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]),[_0x3ff3a2([0x79])]:_0x3ff3a2([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]),[_0x3ff3a2([0x61,0x6c,0x67])]:_0x3ff3a2([0x45,0x53,0x32,0x35,0x36])},_0x51eab5=_0x26ee65[_0x3ff3a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ff3a2([0x67,0x65,0x74])](_0x3ff3a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34204a(){let _0x5acc05,_0x25e25a=null,_0x1f0f58=null;try{if(_0x51eab5==_0x3ff3a2([0x47,0x50,0x4c]))return _0x3ff3a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5acc05=_0x389c56(),!_0x5acc05)return _0x3ff3a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5acc05[_0x3ff3a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f0f58=_0x5debf1(_0x5acc05[_0x3ff3a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5acc05[_0x3ff3a2([0x6a,0x74,0x69])])),await _0x8a421b()?_0x36b9a8()?_0x239888()?_0x3ff3a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1110bd()?(_0x5acc05[_0x3ff3a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ff3a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25e25a=_0x33593a(_0x3ff3a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5acc05[_0x3ff3a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ff3a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x25e25a=_0x33593a(_0x3ff3a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40f910()):_0x3ff3a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ff3a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ff3a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ff3a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x239888(){const _0x30e3b7=[_0x3ff3a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ff3a2([0x74,0x72,0x69,0x61,0x6c])][_0x3ff3a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5acc05[_0x3ff3a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf9b81e/0x3e8:0xe10*_0x99aac;return _0x5acc05[_0x3ff3a2([0x65,0x78,0x70])]<_0x30e3b7;}function _0x36b9a8(){const _0x15fc25=_0x5acc05[_0x3ff3a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x15fc25)return!0x1;if(_0x15fc25[_0x3ff3a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ff3a2([0x2a])))return!0x0;if(_0x15fc25[_0x3ff3a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ff3a2([0x54,0x43])))return!0x0;if(_0x15fc25[_0x3ff3a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ff3a2([0x52,0x54,0x43]))){if(_0x52ece1())return!0x0;if(_0x12a92e()||_0x5a2828())return!0x0;}return!0x1;}function _0x1110bd(){const _0x19e54f=_0x5acc05[_0x3ff3a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x19e54f||0x0==_0x19e54f[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dbb1b}=new URL(window[_0x3ff3a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x19e54f[_0x3ff3a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dbb1b))return!0x0;const _0x13317a=_0x5dbb1b[_0x3ff3a2([0x73,0x70,0x6c,0x69,0x74])](_0x3ff3a2([0x2e]));return _0x19e54f[_0x3ff3a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b836e=>_0x1b836e[_0x3ff3a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ff3a2([0x2a])))[_0x3ff3a2([0x6d,0x61,0x70])](_0x589600=>_0x589600[_0x3ff3a2([0x73,0x70,0x6c,0x69,0x74])](_0x3ff3a2([0x2e])))[_0x3ff3a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ff5be=>_0x1ff5be[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x13317a[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ff3a2([0x6d,0x61,0x70])](_0x2b5625=>Array(_0x13317a[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b5625[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ff3a2([0x66,0x69,0x6c,0x6c])](_0x2b5625[0x0]===_0x3ff3a2([0x2a])?_0x3ff3a2([0x2a]):'')[_0x3ff3a2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b5625))[_0x3ff3a2([0x73,0x6f,0x6d,0x65])](_0x320542=>_0x13317a[_0x3ff3a2([0x65,0x76,0x65,0x72,0x79])]((_0x3742c2,_0x1085d5)=>_0x320542[_0x1085d5]===_0x3742c2||_0x320542[_0x1085d5]===_0x3ff3a2([0x2a])));}function _0x40f910(){return _0x25e25a&&_0x1f0f58?new window[(_0x3ff3a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e6286,_0x2c8a05)=>{_0x25e25a[_0x3ff3a2([0x74,0x68,0x65,0x6e])](_0x2e6286,_0x2c8a05),_0x1f0f58[_0x3ff3a2([0x74,0x68,0x65,0x6e])](_0x3a6238=>{_0x3a6238!=_0x3ff3a2([0x56,0x61,0x6c,0x69,0x64])&&_0x2e6286(_0x3a6238);},_0x2c8a05);}):_0x25e25a||_0x1f0f58||_0x3ff3a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5debf1(_0x33ef06,_0x367940){return new window[(_0x3ff3a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4656e6=>{if(_0x565881())return _0x4656e6(_0x3ff3a2([0x56,0x61,0x6c,0x69,0x64]));_0x19a2ec(),_0x26ee65[_0x3ff3a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ff3a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25fd4e=!0x1;const _0x2e58d9=_0x25e25c();function _0x200a0b(_0x343f3c){return!!_0x343f3c&&(typeof _0x343f3c===_0x3ff3a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x343f3c===_0x3ff3a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x343f3c[_0x3ff3a2([0x74,0x68,0x65,0x6e])]===_0x3ff3a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x343f3c[_0x3ff3a2([0x63,0x61,0x74,0x63,0x68])]===_0x3ff3a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b51aa(_0x40e035){_0xd9f08(_0x40e035)[_0x3ff3a2([0x74,0x68,0x65,0x6e])](_0x244346=>{if(!_0x244346||_0x244346[_0x3ff3a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ff3a2([0x6f,0x6b]))return _0x3ff3a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ec23b(_0x5d0503(_0x2e58d9+_0x367940))!=_0x244346[_0x3ff3a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ff3a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ff3a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ff3a2([0x74,0x68,0x65,0x6e])](_0x2936c8=>(_0x1ec004(),_0x2936c8),()=>{const _0xfeb334=_0x2c341e();return null==_0xfeb334?(_0x1ec004(),_0x3ff3a2([0x56,0x61,0x6c,0x69,0x64])):_0x3ff3a2(_0xf9b81e-_0xfeb334>(0x7eca19d9^_0x20b750)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ff3a2([0x74,0x68,0x65,0x6e])](_0x4656e6)[_0x3ff3a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4656e6(_0x3ff3a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x391473=0x5af07359^_0x20b750;function _0x1ec004(){const _0x48c4d9=_0x3ff3a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ec23b(_0x5d0503(_0x33ef06)),_0xcaf8a6=_0x5a873e(_0x1ec23b(window[_0x3ff3a2([0x4d,0x61,0x74,0x68])][_0x3ff3a2([0x63,0x65,0x69,0x6c])](_0xf9b81e/_0x391473)));window[_0x3ff3a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ff3a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48c4d9,_0xcaf8a6);}function _0x2c341e(){const _0x1a1aff=_0x3ff3a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ec23b(_0x5d0503(_0x33ef06)),_0x53fafe=window[_0x3ff3a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ff3a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a1aff);return _0x53fafe?window[_0x3ff3a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a873e(_0x53fafe),0x10)*_0x391473:null;}function _0xd9f08(_0x1207c8){return new window[(_0x3ff3a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50a858,_0x5dc4e8)=>{_0x1207c8[_0x3ff3a2([0x74,0x68,0x65,0x6e])](_0x50a858,_0x5dc4e8),window[_0x3ff3a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dc4e8,0x5ac74919^_0x20b750);});}}_0x26ee65[_0x3ff3a2([0x6f,0x6e])](_0x3ff3a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35116b,_0x53751e)=>{if(_0x53751e[0x0]!=_0x33ef06)return _0x4656e6(_0x3ff3a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53751e[0x1]={..._0x53751e[0x1],[_0x3ff3a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e58d9};},{[_0x3ff3a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ff3a2([0x68,0x69,0x67,0x68])}),_0x26ee65[_0x3ff3a2([0x6f,0x6e])](_0x3ff3a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44243e=>{_0x200a0b(_0x44243e[_0x3ff3a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25fd4e=!0x0,_0x3b51aa(_0x44243e[_0x3ff3a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ff3a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ff3a2([0x6c,0x6f,0x77])}),_0x36cefd[_0x3ff3a2([0x74,0x68,0x65,0x6e])](()=>{_0x25fd4e||_0x4656e6(_0x3ff3a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x565881(){return _0x26ee65[_0x3ff3a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ff3a2([0x76,0x69,0x65,0x77])][_0x3ff3a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ff3a2([0x61,0x75,0x74,0x6f]);}function _0x19a2ec(){_0x26ee65[_0x3ff3a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ff3a2([0x76,0x69,0x65,0x77])][_0x3ff3a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ff3a2([0x61,0x75,0x74,0x6f]);}}function _0x33593a(_0x58b35e){const _0x57fb3d=[new window[(_0x3ff3a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22d7c6=>setTimeout(_0x22d7c6,0x5acfa315^_0x20b750)),_0x36cefd[_0x3ff3a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ff3a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115d73=>{let _0x443c63=0x0;_0x26ee65[_0x3ff3a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ff3a2([0x6f,0x6e])](_0x3ff3a2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x289a64,_0x4060e5)=>{_0x4060e5[0x0][_0x3ff3a2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x443c63++,_0x443c63==(0x5ac69c21^_0x20b750)&&(_0x115d73(),_0x289a64[_0x3ff3a2([0x6f,0x66,0x66])]());});}))];return window[_0x3ff3a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ff3a2([0x72,0x61,0x63,0x65])](_0x57fb3d)[_0x3ff3a2([0x74,0x68,0x65,0x6e])](()=>_0x58b35e);}async function _0x41acb4(){await _0x36cefd,_0x26ee65[_0x3ff3a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ff3a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1671,_0x26ee65[_0x3ff3a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ff3a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1671,_0x26ee65[_0x3ff3a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ff3a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52ece1(){return _0x4c2ae4(_0x3ff3a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x42ba38(_0x3ff3a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ff3a2([0x73,0x74,0x61,0x74,0x65])]==_0x3ff3a2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x12a92e(){return _0x4c2ae4(_0x3ff3a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x5a2828(){return _0x4c2ae4(_0x3ff3a2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2fbb72(_0x31fe84){const _0x2df852=_0x19b6ed();_0x26ee65[_0x2df852]=_0x3ff3a2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31fe84,_0x31fe84!=_0x3ff3a2([0x56,0x61,0x6c,0x69,0x64])&&_0x41acb4();}function _0x19b6ed(){const _0x4bd781=window[_0x3ff3a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ff3a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ff3a2([0x6e,0x6f,0x77])]())[_0x3ff3a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ff3a2([0x2e]),'');let _0x45a093=_0x3ff3a2([0x73]);for(let _0x45af18=0x0;_0x45af18<_0x4bd781[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45af18+=0x2){let _0x99d2f3=window[_0x3ff3a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bd781[_0x3ff3a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45af18,_0x45af18+0x2));_0x99d2f3>=_0x26e917[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x99d2f3-=_0x26e917[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45a093+=_0x26e917[_0x99d2f3];}return _0x45a093;}function _0x389c56(){const _0x29470b=_0x51eab5[_0x3ff3a2([0x73,0x70,0x6c,0x69,0x74])](_0x3ff3a2([0x2e]));if(0x3!=_0x29470b[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x387176(_0x29470b[0x1]);function _0x387176(_0x2f9a52){const _0x2f284d=_0x5659fa(_0x2f9a52);return _0x2f284d&&_0x174297()?_0x2f284d:null;function _0x174297(){const _0xc1d5be=_0x2f284d[_0x3ff3a2([0x6a,0x74,0x69])],_0x44a77f=window[_0x3ff3a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc1d5be[_0x3ff3a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc1d5be[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x312a6b={..._0x2f284d,[_0x3ff3a2([0x6a,0x74,0x69])]:_0xc1d5be[_0x3ff3a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc1d5be[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x312a6b[_0x3ff3a2([0x76,0x63])],_0x5d0503(_0x312a6b)==_0x44a77f;}}}async function _0x8a421b(){let _0x46d59c=!0x0;try{const _0x2ecf06=_0x51eab5[_0x3ff3a2([0x73,0x70,0x6c,0x69,0x74])](_0x3ff3a2([0x2e])),[_0x1de073,_0x5179dc,_0x9c4e14]=_0x2ecf06;return _0x20fcf1(_0x1de073),await _0xda50c9(_0x1de073,_0x5179dc,_0x9c4e14),_0x46d59c;}catch{return!0x1;}function _0x20fcf1(_0x2218c7){const _0x2efe8f=_0x5659fa(_0x2218c7);_0x2efe8f&&_0x2efe8f[_0x3ff3a2([0x61,0x6c,0x67])]==_0x3ff3a2([0x45,0x53,0x32,0x35,0x36])||(_0x46d59c=!0x1);}async function _0xda50c9(_0x546c3a,_0x21827f,_0x9b36c8){const _0x6e713e=window[_0x3ff3a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ff3a2([0x66,0x72,0x6f,0x6d])](_0x39b6c4(_0x9b36c8),_0x12d598=>_0x12d598[_0x3ff3a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xaf7f5e=new window[(_0x3ff3a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ff3a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x546c3a+_0x3ff3a2([0x2e])+_0x21827f),_0xc2b1b2=window[_0x3ff3a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ff3a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc2b1b2)return;const _0x4a3a19=await _0xc2b1b2[_0x3ff3a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ff3a2([0x6a,0x77,0x6b]),_0x4bf8ec,{[_0x3ff3a2([0x6e,0x61,0x6d,0x65])]:_0x3ff3a2([0x45,0x43,0x44,0x53,0x41]),[_0x3ff3a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ff3a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ff3a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc2b1b2[_0x3ff3a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ff3a2([0x6e,0x61,0x6d,0x65])]:_0x3ff3a2([0x45,0x43,0x44,0x53,0x41]),[_0x3ff3a2([0x68,0x61,0x73,0x68])]:{[_0x3ff3a2([0x6e,0x61,0x6d,0x65])]:_0x3ff3a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a3a19,_0x6e713e,_0xaf7f5e)||(_0x46d59c=!0x1);}}function _0x5659fa(_0x54ca85){return _0x54ca85[_0x3ff3a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ff3a2([0x65,0x79]))?JSON[_0x3ff3a2([0x70,0x61,0x72,0x73,0x65])](_0x39b6c4(_0x54ca85)):null;}function _0x39b6c4(_0x3afd0a){return window[_0x3ff3a2([0x61,0x74,0x6f,0x62])](_0x3afd0a[_0x3ff3a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ff3a2([0x2b]))[_0x3ff3a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ff3a2([0x2f])));}function _0x5d0503(_0x416dad){let _0x252ac9=0x1505;function _0x14a485(_0x3b1db6){for(let _0x4b12b8=0x0;_0x4b12b8<_0x3b1db6[_0x3ff3a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b12b8++){const _0x2befbd=_0x3b1db6[_0x3ff3a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b12b8);_0x252ac9=(_0x252ac9<<0x5)+_0x252ac9+_0x2befbd,_0x252ac9&=_0x252ac9;}}function _0x6171a7(_0x2914a5){Array[_0x3ff3a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2914a5)?_0x2914a5[_0x3ff3a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x6171a7):_0x2914a5&&typeof _0x2914a5==_0x3ff3a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ff3a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2914a5)[_0x3ff3a2([0x73,0x6f,0x72,0x74])]()[_0x3ff3a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39653d,_0x113412])=>{_0x14a485(_0x39653d),_0x6171a7(_0x113412);}):_0x14a485(window[_0x3ff3a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2914a5));}return _0x6171a7(_0x416dad),_0x252ac9>>>0x0;}function _0x1ec23b(_0x1dfc0a){return _0x1dfc0a[_0x3ff3a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ff3a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ff3a2([0x30]));}function _0x5a873e(_0x2323fb){return _0x2323fb[_0x3ff3a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ff3a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ff3a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c2ae4(_0x575a6f){return _0x26ee65[_0x3ff3a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ff3a2([0x68,0x61,0x73])](_0x575a6f);}function _0x42ba38(_0x955394){return _0x26ee65[_0x3ff3a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ff3a2([0x67,0x65,0x74])](_0x955394);}function _0x3f1671(){}function _0x3ff3a2(_0x1df4ca){return _0x1df4ca['map'](_0xde0abb=>String['fromCharCode'](_0xde0abb))['join']('');}_0x2fbb72(await _0x34204a());}(this);}set['adapter'](_0x5b70f2){if(this['_adapter'])throw new _0x193da4('track-changes-adapter-already-set',this);this['_adapter']=_0x5b70f2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x25d7ad=!0x1,toJSON:_0x268d29=!0x1}={}){const _0x38958a=[];for(const _0x5758ab of this['_suggestions']['values']())_0x25d7ad&&!_0x5758ab['isInContent']||_0x38958a['push'](_0x5758ab);return _0x268d29?_0x38958a['map'](_0x10e9ed=>_0x10e9ed['toJSON']()):_0x38958a;}['getSuggestion'](_0x19199c){const _0xca11ee=this['_suggestions']['get'](_0x19199c);if(!_0xca11ee)throw new _0x193da4('track-changes-suggestion-not-found',this);return _0xca11ee;}['hasSuggestion'](_0x56b421){return this['_suggestions']['has'](_0x56b421);}['addSuggestionData'](_0x539edc){const {authorId:_0x25e32b,id:_0x12e97a,originalSuggestionId:_0x2469e9,attributes:_0x2bd1bf}=_0x539edc,[_0x41b0a1,_0x291954]=_0x539edc['type']['split'](':'),_0x2196cd=this['_suggestions']['get'](_0x12e97a)||this['_createSuggestion'](_0x41b0a1,_0x291954,_0x12e97a,_0x25e32b,_0x2bd1bf,_0x2469e9);if(this['_addThreadToSuggestion'](_0x2196cd),this['_checkSuggestionCorrectness'](_0x2196cd,_0x41b0a1,_0x291954||null,_0x25e32b),_0x2196cd['createdAt']=_0x539edc['createdAt'],_0x2196cd['_isDataLoaded']=!0x0,_0x2bd1bf&&_0x2bd1bf['@external']){const _0x19476c=_0x2bd1bf['@external'],_0x3e3344=this['_getExternalAuthor'](_0x19476c['authorName']);_0x2196cd['authoredAt']=_0x19476c['createdAt'],_0x2196cd['author']=_0x3e3344,_0x2196cd['isExternal']=!0x0;}else _0x2196cd['authoredAt']=_0x539edc['createdAt'];switch(_0x539edc['data']&&(_0x2196cd['data']=_0x539edc['data']),_0x539edc['attributes']&&(_0x2196cd['attributes']=_0x539edc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2196cd['_saved']=!0x0),this['_suggestionState']['get'](_0x2196cd)){case'notReady':this['_suggestionState']['set'](_0x2196cd,'dataReady');break;case'markerReady':_0x2196cd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2196cd])),this['_refreshSuggestionsChain'](new Set([_0x2196cd])),this['_suggestionState']['set'](_0x2196cd,'ready'),this['fire']('suggestionLoaded',_0x2196cd)):this['_suggestionState']['set'](_0x2196cd,'removed');}return _0x2196cd;}['acceptSuggestion'](_0x2fc7ca){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x405d90 of _0x2fc7ca['getAllAdjacentSuggestions']())_0x405d90['accept']();});});}['discardSuggestion'](_0x4eab2a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x310c92 of _0x4eab2a['getAllAdjacentSuggestions']())_0x310c92['discard']();});});}['enableCommand'](_0x1cdb6c,_0x342946){const _0x3f612f=this['editor']['commands']['get'](_0x1cdb6c);if(!_0x3f612f)throw new _0x193da4('track-changes-command-not-found',this,{'commandName':_0x1cdb6c});if(this['_enabledCommands']['has'](_0x3f612f))throw new _0x193da4('track-changes-enable-command-twice',this,{'commandName':_0x1cdb6c});this['_enabledCommands']['add'](_0x3f612f),_0x342946&&_0x3f612f['on']('execute',(_0x13b86b,_0x491e19)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x491e19['length']>0x0&&_0x491e19[_0x491e19['length']-0x1]&&_0x491e19[_0x491e19['length']-0x1]['forceDefaultExecution']?_0x491e19['pop']():(_0x13b86b['return']=_0x342946((..._0x3c691c)=>_0x3f612f['execute'](..._0x3c691c,{'forceDefaultExecution':!0x0}),..._0x491e19),_0x13b86b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3aa22d){let _0x27721f,_0x7c8b49;const _0x4e1c31=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x27721f=_0x3aa22d();}catch(_0x1789e8){_0x7c8b49=_0x1789e8;}return _0x4e1c31||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x7c8b49&&_0x193da4['rethrowUnexpectedError'](_0x7c8b49,this),_0x27721f;}['markInsertion'](_0x438661,_0x46d14c=null,_0x169da1={}){if(_0x438661['isCollapsed'])return null;const _0x5725c8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x169da1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x546220,meta:_0x522b81}of this['_findSuggestions'](_0x438661,'insertion'))if(_0x522b81['isOwn']){if(!_0x522b81['isNextTo']){if(_0x522b81['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x546220,_0x169da1))continue;return _0x546220;}if(Xt(_0x546220,_0x169da1))return _0x546220;this['_breakSuggestionMarker'](_0x546220,_0x438661['start'],_0x438661['end']);break;}if(_0x46d14c==_0x546220['subType']&&Xt(_0x546220,_0x169da1)){const _0x4c7725=_0x546220['getFirstRange']();return _0x4c7725['start']['isEqual'](_0x438661['end'])?this['_setSuggestionRange'](_0x546220,this['_model']['createRange'](_0x438661['start'],_0x4c7725['end'])):this['_setSuggestionRange'](_0x546220,this['_model']['createRange'](_0x4c7725['start'],_0x438661['end'])),_0x546220;}}const _0x53b212=_0x25e25c(),_0x56b52a=_0x5725c8['id'],_0x4d623b=_0x46d14c?'insertion:'+_0x46d14c:'insertion',_0x434f70=this['_setSuggestionData']({'id':_0x53b212,'type':_0x4d623b,'createdAt':new Date(),'authorId':_0x56b52a,'attributes':_0x169da1});return this['_addSuggestionMarker'](_0x4d623b,_0x53b212,_0x56b52a,_0x438661),_0x434f70;}['markMultiRangeInsertion'](_0xe943da,_0x1960f8='multi',_0x431ad1={}){const _0x22920c=this['editor']['plugins']['get']('Users')['me'],_0x1d1cbe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1960f8,'join');this['_trackingSessionId']&&(_0x431ad1['trackingSessionId']=this['_trackingSessionId']);for(const _0x1f0ed2 of this['getSuggestions']())if(_0x1f0ed2['author']['id']==_0x22920c['id']&&'insertion'==_0x1f0ed2['type']&&_0x1f0ed2['subType']==_0x1960f8&&Xt(_0x1f0ed2,_0x431ad1)&&(_0x1d1cbe(_0x1f0ed2['getRanges'](),_0xe943da)||_0x1d1cbe(_0xe943da,_0x1f0ed2['getRanges']()))){for(const _0x506855 of _0xe943da)_0x1f0ed2['addRange'](_0x506855);return _0x1f0ed2;}for(const {suggestion:_0x487ab7,meta:_0x5c7592}of this['_findSuggestions'](_0xe943da,'insertion')){if(!_0x5c7592['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5c7592['containsRangeInObject'])continue;if(!Xt(_0x487ab7,_0x431ad1))continue;let _0x59d140=!0x0;for(const _0x5b4768 of _0x487ab7['getRanges']())for(const _0x2d1a5c of _0xe943da)if(!_0x5b4768['containsRange'](_0x2d1a5c)){_0x59d140=!0x1;break;}if(_0x59d140)return _0x487ab7;}const _0x5bef85=_0x25e25c(),_0x3af031=_0x22920c['id'],_0x208969='insertion:'+_0x1960f8,_0x5205e6=this['_setSuggestionData']({'id':_0x5bef85,'type':_0x208969,'createdAt':new Date(),'authorId':_0x3af031,'attributes':_0x431ad1});for(const _0x182224 of _0xe943da)this['_addSuggestionMarker'](_0x208969,_0x5bef85,_0x3af031,_0x182224,T['getMultiRangeId']());return _0x5205e6;}['markInlineFormat'](_0x41d7bc,_0x275d51,_0x16cd80=null,_0x51b1d1={}){if(_0x16cd80=_0x16cd80||Lt(_0x275d51),_0x41d7bc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x51b1d1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x163154=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16cd80,'accept');return this['forceDefaultExecution'](()=>_0x163154([_0x41d7bc],_0x275d51,_0x51b1d1)),null;}const _0x54f57a=this['editor']['plugins']['get']('Users')['me'],_0x10dfe0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x570e75,meta:_0x210b45}of this['_findSuggestions'](_0x41d7bc,'insertion'))_0x210b45['isOwn']&&!_0x210b45['isInsideObject']&&_0x10dfe0['push'](..._0x570e75['getRanges']());}const _0x1b12f3=function(_0x2f076b,_0x154d17){const _0x156351=[];for(const _0x547c97 of _0x154d17){const _0x25a2fd=_0x2f076b['getIntersection'](_0x547c97);_0x25a2fd&&_0x156351['push'](_0x25a2fd);}return _0x156351;}(_0x41d7bc,_0x10dfe0),_0x38186f=function(_0x2fe601,_0x21aef9){const _0x54924a=[_0x2fe601];for(const _0x3b5b6d of _0x21aef9){let _0xc3ce44=0x0;for(;_0xc3ce44<_0x54924a['length'];){const _0x23e0f8=_0x54924a[_0xc3ce44]['getDifference'](_0x3b5b6d);_0x54924a['splice'](_0xc3ce44,0x1,..._0x23e0f8),_0xc3ce44+=_0x23e0f8['length'];}}return _0x54924a;}(_0x41d7bc,_0x10dfe0);_0x1b12f3['length']&&this['_model']['change'](()=>{for(const _0x38d031 of _0x1b12f3){const _0x216500=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16cd80,'accept');this['forceDefaultExecution'](()=>_0x216500([_0x38d031],_0x275d51,_0x51b1d1));}});for(const _0x267e8f of _0x38186f){let _0x2be837=null,_0x24ae5a=_0x267e8f['start'],_0x300108=_0x267e8f['end'];for(const {suggestion:_0x381276,meta:_0x10c420}of this['_findSuggestions'](_0x267e8f,'formatInline')){if(!_0x10c420['isOwn'])continue;if(_0x381276['subType']!=_0x16cd80)continue;if(!Xt(_0x381276,_0x51b1d1))continue;const _0x349c23=_0x381276['getFirstRange']();if(_0x349c23['containsRange'](_0x267e8f,!0x0))return null;_0x24ae5a=_0x24ae5a['isBefore'](_0x349c23['start'])?_0x24ae5a:_0x349c23['start'],_0x300108=_0x300108['isAfter'](_0x349c23['end'])?_0x300108:_0x349c23['end'],_0x2be837?_0x349c23['start']['isBefore'](_0x2be837['getFirstRange']()['start'])?(_0x2be837['removeMarkers'](),_0x2be837=_0x381276):_0x381276['removeMarkers']():_0x2be837=_0x381276;}const _0x5a842b=this['_model']['createRange'](_0x24ae5a,_0x300108);if(_0x2be837)this['_setSuggestionRange'](_0x2be837,_0x5a842b);else{const _0x3f2c05=_0x25e25c(),_0xb7465f=_0x54f57a['id'];this['_setSuggestionData']({'id':_0x3f2c05,'type':'formatInline:'+_0x16cd80,'data':_0x275d51,'createdAt':new Date(),'authorId':_0xb7465f,'attributes':_0x51b1d1}),this['_addSuggestionMarker']('formatInline:'+_0x16cd80,_0x3f2c05,_0xb7465f,_0x5a842b);}}return null;}['markBlockFormat'](_0x21701,_0x135cc0,_0x13a63a=[],_0x223dac=null,_0x5bcbf1={}){_0x135cc0['formatGroupId']||(_0x135cc0['formatGroupId']=_0x135cc0['commandName']),_0x135cc0['multipleBlocks']=_0x21701['is']('range'),_0x223dac=_0x223dac||Lt(_0x135cc0);const _0x185432=_0x13a63a['map'](_0x3e12b2=>zt(_0x3e12b2,this['_model'])),_0x598a19=_0x21701['is']('range')?_0x21701:zt(_0x21701,this['_model']);if(this['_trackingSessionId']&&(_0x5bcbf1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x530dd4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x223dac,'accept');return this['forceDefaultExecution'](()=>_0x530dd4([_0x598a19],_0x135cc0,_0x5bcbf1)),null;}_0x185432['push'](_0x598a19);let _0x4ef539=!0x0;for(const _0x21bd6f of _0x185432)if(!this['_rangeIsInLocalUserInsertion'](_0x21bd6f)){_0x4ef539=!0x1;break;}if(_0x4ef539&&'always'!==this['_trackFormatChanges']){const _0x26ffd5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x223dac,'accept');return this['forceDefaultExecution'](()=>_0x26ffd5([_0x598a19],_0x135cc0,_0x5bcbf1)),null;}let _0x2a1a16=null,_0x1747c7=_0x598a19['start'],_0x164c9a=_0x598a19['end'];for(const {suggestion:_0x32875f,meta:_0x440f89}of this['_findSuggestions'](_0x598a19,'formatBlock')){if(!_0x440f89['isOwn'])continue;if(_0x440f89['isNextTo']||_0x440f89['containsRangeInObject']||_0x440f89['isInsideObject'])continue;if(_0x32875f['data']['formatGroupId']!=_0x135cc0['formatGroupId'])continue;if(!Xt(_0x32875f,_0x5bcbf1))continue;const _0x3ffd7d=_0x32875f['getFirstRange']();if(_0x32875f['subType']==_0x223dac){if(_0x3ffd7d['containsRange'](_0x598a19,!0x0))return null;_0x1747c7=_0x1747c7['isBefore'](_0x3ffd7d['start'])?_0x1747c7:_0x3ffd7d['start'],_0x164c9a=_0x164c9a['isAfter'](_0x3ffd7d['end'])?_0x164c9a:_0x3ffd7d['end'],_0x2a1a16?_0x3ffd7d['start']['isBefore'](_0x2a1a16['getFirstRange']()['start'])?(_0x2a1a16['removeMarkers'](),_0x2a1a16=_0x32875f):_0x32875f['removeMarkers']():_0x2a1a16=_0x32875f;}else{const _0x5d50e6=_0x598a19['getIntersection'](_0x3ffd7d);this['_cutOutSuggestionMarker'](_0x32875f,_0x5d50e6);}}const _0x14e7e4=this['editor']['plugins']['get']('Users')['me'],_0x47d2a6=_0x25e25c(),_0x1b0899=_0x14e7e4['id'];if(_0x2a1a16)return this['_setSuggestionRange'](_0x2a1a16,this['_model']['createRange'](_0x1747c7,_0x164c9a)),_0x2a1a16;{const _0x5328b7=this['_setSuggestionData']({'id':_0x47d2a6,'type':'formatBlock:'+_0x223dac,'data':_0x135cc0,'createdAt':new Date(),'authorId':_0x1b0899,'attributes':_0x5bcbf1});return this['_addSuggestionMarker']('formatBlock:'+_0x223dac,_0x47d2a6,_0x1b0899,this['_model']['createRange'](_0x1747c7,_0x164c9a)),_0x5328b7;}}['markMultiRangeBlockFormat'](_0x26e64b,_0x50ad0a,_0x433d65=[],_0x3988f6=null,_0x5c2267={}){_0x50ad0a['formatGroupId']||(_0x50ad0a['formatGroupId']=_0x50ad0a['commandName']);const _0x47adec=_0x26e64b[0x0];_0x50ad0a['multipleBlocks']=_0x47adec['is']('range'),_0x3988f6=_0x3988f6||Lt(_0x50ad0a);const _0x5e51b1=_0x433d65['map'](_0x5ee71a=>zt(_0x5ee71a,this['_model'])),_0x3d8479=_0x47adec['is']('range')?_0x26e64b:_0x26e64b['map'](_0x2943bb=>zt(_0x2943bb,this['_model']));if(this['_trackingSessionId']&&(_0x5c2267['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3ae0cf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3988f6,'accept');return this['forceDefaultExecution'](()=>_0x3ae0cf(_0x3d8479,_0x50ad0a,_0x5c2267)),null;}_0x5e51b1['push'](..._0x3d8479);let _0x3eddd8=!0x0;for(const _0x1c7607 of _0x5e51b1)if(!this['_rangeIsInLocalUserInsertion'](_0x1c7607)){_0x3eddd8=!0x1;break;}if(_0x3eddd8&&'always'!==this['_trackFormatChanges']){const _0x54ac9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3988f6,'accept');return this['forceDefaultExecution'](()=>_0x54ac9e(_0x3d8479,_0x50ad0a,_0x5c2267)),null;}const _0x1e0763=this['editor']['plugins']['get']('Users')['me'];for(const _0x20d1b6 of this['getSuggestions']()){const _0x2d24d6=_0x20d1b6['data'];if(_0x20d1b6['author']['id']!=_0x1e0763['id'])continue;if('formatBlock'!=_0x20d1b6['type']||_0x2d24d6['formatGroupId']!=_0x50ad0a['formatGroupId'])continue;if(!Xt(_0x20d1b6,_0x5c2267))continue;const _0x5ac55c=_0x20d1b6['subType']==_0x3988f6;for(let _0x9ebadc=0x0;_0x9ebadc<_0x3d8479['length'];_0x9ebadc++){const _0x5923f2=_0x3d8479[_0x9ebadc];for(const _0xd2545f of _0x20d1b6['getMarkers']()){const _0x2a3521=_0xd2545f['getRange']();if(_0x5923f2['isEqual'](_0x2a3521)){_0x5ac55c?(_0x3d8479['splice'](_0x9ebadc,0x1),_0x9ebadc--):_0x20d1b6['removeMarker'](_0xd2545f['name']);break;}}}}if(0x0==_0x3d8479['length'])return null;const _0x188a83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3988f6,'join');for(const _0x566159 of this['getSuggestions']()){const _0x36445b=_0x566159['data'];if(_0x566159['author']['id']==_0x1e0763['id']&&('formatBlock'==_0x566159['type']&&_0x36445b['formatGroupId']==_0x50ad0a['formatGroupId']&&_0x566159['subType']==_0x3988f6&&Xt(_0x566159,_0x5c2267)&&(_0x188a83(_0x566159['getRanges'](),_0x3d8479)||_0x188a83(_0x3d8479,_0x566159['getRanges']())))){for(const _0x3e43ee of _0x3d8479)_0x566159['addRange'](_0x3e43ee);return _0x566159;}}const _0x5cb98b=_0x25e25c(),_0x48aefb=_0x1e0763['id'],_0x5d1039='formatBlock:'+_0x3988f6,_0x28f56d=this['_setSuggestionData']({'id':_0x5cb98b,'type':_0x5d1039,'data':_0x50ad0a,'createdAt':new Date(),'authorId':_0x48aefb,'attributes':_0x5c2267});for(const _0x26facf of _0x3d8479)this['_addSuggestionMarker'](_0x5d1039,_0x5cb98b,_0x48aefb,_0x26facf,T['getMultiRangeId']());return _0x28f56d;}['markDeletion'](_0x90d908,_0x330e0b=null,_0x95c689={}){if(_0x90d908['isCollapsed'])return null;const _0xdf8e06=this['editor']['plugins']['get']('Users')['me'],_0x4a57ac=new _0x2e6917(_0x90d908['start'],_0x90d908['end']);this['_trackingSessionId']&&(_0x95c689['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4825a2,meta:_0x11c049}of this['_findSuggestions'](_0x4a57ac,'insertion'))if(_0x11c049['isOwn']&&!_0x11c049['isNextTo']){if(_0x4825a2['isMultiRange']){const _0x314c74=_0x4825a2['getRanges']()['filter'](_0x5d6f39=>'$graveyard'!=_0x5d6f39['root']['rootName']);_0x314c74['every'](_0xc7726=>_0x4a57ac['containsRange'](_0xc7726,!0x0))&&_0x4825a2['discard']();if(_0x314c74['some'](_0x5e9d1d=>_0x5e9d1d['containsRange'](_0x4a57ac,!0x0))){const _0x1ff07d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x330e0b,'accept');return this['forceDefaultExecution'](()=>_0x1ff07d([_0x4a57ac],null,_0x95c689)),null;}}else{const _0x22f749=_0x4a57ac['getIntersection'](_0x4825a2['getFirstRange']());null!==_0x22f749&&_0x4825a2['_onDiscard']([_0x22f749],null,_0x95c689);}}if(_0x4a57ac['detach'](),_0x4a57ac['isCollapsed']||'$graveyard'==_0x4a57ac['root']['rootName'])return null;let _0xae9d26=null,_0x36f817=_0x4a57ac['start'],_0x334776=_0x4a57ac['end'];const _0x4593ba=this['_findSuggestions'](_0x4a57ac,'deletion');for(const {suggestion:_0x2c723e,meta:_0x32eecc}of _0x4593ba){const _0x9cb21b=this['_model']['createRange'](_0x36f817,_0x334776);if(_0x32eecc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x32eecc['containsRangeInObject']&&!_0x32eecc['isInsideObject'])){if(_0x2c723e['isMultiRange']){if(!Xt(_0x2c723e,_0x95c689))continue;let _0x391514=!0x0;for(const _0x4df978 of _0x2c723e['getRanges']()){if(_0x4df978['containsRange'](_0x9cb21b,!0x0))return _0x2c723e;_0x9cb21b['containsRange'](_0x4df978)||(_0x391514=!0x1);}_0x391514&&_0x2c723e['discard']();}else{const _0x4af3d3=_0x2c723e['getFirstRange']();if(_0x4af3d3['containsRange'](_0x9cb21b,!0x0))return _0x2c723e;if(!Xt(_0x2c723e,_0x95c689)){_0x9cb21b['containsRange'](_0x4af3d3)?_0x2c723e['removeMarkers']():_0x4af3d3['containsPosition'](_0x36f817)?_0x36f817=_0x4af3d3['end']:_0x4af3d3['containsPosition'](_0x334776)&&(_0x334776=_0x4af3d3['start']);continue;}_0x36f817=_0x36f817['isBefore'](_0x4af3d3['start'])?_0x36f817:_0x4af3d3['start'],_0x334776=_0x334776['isAfter'](_0x4af3d3['end'])?_0x334776:_0x4af3d3['end'],_0x95c689=Object['assign']({},_0x2c723e['attributes']),_0xae9d26?_0x4af3d3['start']['isBefore'](_0xae9d26['getFirstRange']()['start'])?(_0xae9d26['removeMarkers'](),_0xae9d26=_0x2c723e):_0x2c723e['removeMarkers']():_0xae9d26=_0x2c723e;}}}if(_0xae9d26)return this['_setSuggestionRange'](_0xae9d26,this['_model']['createRange'](_0x36f817,_0x334776)),_0xae9d26;{const _0x162021=_0x25e25c(),_0x1e10b8=this['_model']['createRange'](_0x36f817,_0x334776),_0x5dc853=_0xdf8e06['id'],_0x11c523=_0x330e0b?'deletion:'+_0x330e0b:'deletion',_0xd55d92=this['_setSuggestionData']({'id':_0x162021,'type':_0x11c523,'createdAt':new Date(),'authorId':_0x5dc853,'attributes':_0x95c689});return this['_addSuggestionMarker'](_0x11c523,_0x162021,_0x5dc853,_0x1e10b8),_0xd55d92;}}['markMultiRangeDeletion'](_0x27b3db,_0x57a39f='multi',_0x53a85b={}){const _0xe644a2=this['editor']['plugins']['get']('Users')['me'],_0xa2633a=_0x27b3db['map'](_0x73c347=>new _0x2e6917(_0x73c347['start'],_0x73c347['end'])),_0x16f776=new Set();this['_trackingSessionId']&&(_0x53a85b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4f4e4b,meta:_0x387402}of this['_findSuggestions'](_0xa2633a,'insertion'))_0x387402['isOwn']&&!_0x387402['isNextTo']&&_0x16f776['add'](_0x4f4e4b);for(const _0x55b0dc of _0x16f776)if(_0x55b0dc['isMultiRange']){const _0x73a0ba=_0x55b0dc['getRanges']();(!_0x55b0dc['attributes']||!_0x55b0dc['attributes']['skipNestingCheck'])&&(_0x73a0ba['every'](_0x11c9dc=>_0xa2633a['some'](_0x2d690f=>_0x2d690f['containsRange'](_0x11c9dc,!0x0)))&&_0x55b0dc['discard']());if(_0xa2633a['every'](_0x14e7eb=>_0x73a0ba['some'](_0x32c395=>_0x32c395['containsRange'](_0x14e7eb,!0x0)))){const _0x15d463=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x57a39f,'accept');return this['forceDefaultExecution'](()=>_0x15d463(_0x27b3db,null,_0x53a85b)),null;}}else{const _0x2f0a7f=_0x55b0dc['getFirstRange']();_0xa2633a['some'](_0x4ef9d7=>_0x4ef9d7['containsRange'](_0x2f0a7f,!0x0))&&_0x55b0dc['discard']();if(_0xa2633a['every'](_0x26d849=>_0x2f0a7f['containsRange'](_0x26d849,!0x0))){const _0x3e6b23=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x57a39f,'accept');return this['forceDefaultExecution'](()=>_0x3e6b23(_0xa2633a,null,_0x53a85b)),null;}}const _0x2c94c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x57a39f,'join');let _0x1c23ec=null;for(const _0x164690 of this['getSuggestions']())if(_0x164690['author']['id']==_0xe644a2['id']&&_0x164690['isInContent']&&'deletion'==_0x164690['type']&&_0x164690['subType']==_0x57a39f&&Xt(_0x164690,_0x53a85b)&&(_0x2c94c3(_0x164690['getRanges'](),_0xa2633a)||_0x2c94c3(_0xa2633a,_0x164690['getRanges']()))){if(_0x1c23ec){if(_0x164690['commentThread']&&_0x164690['commentThread']['length'])continue;for(const _0x5a14e3 of _0x164690['getRanges']())_0x1c23ec['isIntersectingWithRange'](_0x5a14e3)||_0x1c23ec['addRange'](_0x5a14e3);_0x164690['removeMarkers']();}else{_0x1c23ec=_0x164690;for(const _0x1cadf3 of _0xa2633a)_0x164690['isIntersectingWithRange'](_0x1cadf3)||_0x164690['addRange'](_0x1cadf3);}}if(_0x1c23ec)return _0x1c23ec;_0x16f776['clear']();for(const {suggestion:_0x4e9b6e,meta:_0x268638}of this['_findSuggestions'](_0xa2633a,'deletion'))_0x268638['isOwn']&&(this['_mergeNestedSuggestions']||!_0x268638['containsRangeInObject']&&!_0x268638['isInsideObject'])&&Xt(_0x4e9b6e,_0x53a85b)&&_0x16f776['add'](_0x4e9b6e);for(const _0x3f7b9e of _0x16f776){const _0x1d4b15=_0x3f7b9e['getRanges']();if(!_0x53a85b||!_0x53a85b['skipNestingCheck']){if(_0xa2633a['every'](_0x113602=>_0x1d4b15['some'](_0x2d8aa4=>_0x2d8aa4['containsRange'](_0x113602,!0x0))))return _0x3f7b9e;}(!_0x3f7b9e['attributes']||!_0x3f7b9e['attributes']['skipNestingCheck'])&&(_0x1d4b15['every'](_0x6c850f=>_0xa2633a['some'](_0x3fcbd1=>_0x3fcbd1['containsRange'](_0x6c850f,!0x0)))&&_0x3f7b9e['discard']());}const _0x1be88c=_0x25e25c(),_0x2c902b=_0xe644a2['id'],_0x4dc28f='deletion:'+_0x57a39f,_0x554fa2=this['_setSuggestionData']({'id':_0x1be88c,'type':_0x4dc28f,'createdAt':new Date(),'authorId':_0x2c902b,'attributes':_0x53a85b});for(const _0x132047 of _0xa2633a)_0x132047['detach'](),_0x132047['isCollapsed']||'$graveyard'==_0x132047['root']['rootName']||this['_addSuggestionMarker'](_0x4dc28f,_0x1be88c,_0x2c902b,_0x132047,T['getMultiRangeId']());return _0x554fa2;}['markAttributeChange'](_0x1a72ca,_0x5ddb04,_0x120a8f,_0x4b8c49,_0x1c175b){if(_0x1a72ca['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5c1ea0=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d4db2=Array['from'](this['_suggestions']['values']())['filter'](_0x349eaa=>'attribute'==_0x349eaa['type']&&_0x349eaa['data']['key']==_0x5ddb04&&_0x349eaa['isIntersectingWithRange'](_0x1a72ca));if(this['_trackingSessionId']&&(_0x1c175b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4b9594=this['_findSuggestions'](_0x1a72ca,'insertion')['filter'](({meta:_0x279068})=>_0x279068['isOwn']&&!_0x279068['isInsideObject']&&!_0x279068['isNextTo'])['map'](({suggestion:_0x35c23b})=>_0x35c23b);_0x3d4db2['unshift'](..._0x4b9594);}const _0x531e1d=new Map([[_0x1a72ca,_0x120a8f]]);for(const _0x2e1b63 of _0x3d4db2){const _0x4716cd='attribute'==_0x2e1b63['type']?_0x2e1b63['data']['oldValue']:void 0x0,_0x178de3=_0x2e1b63['getFirstRange'](),_0x5c7309=Array['from'](_0x531e1d['keys']())['find'](_0x2526c1=>_0x2526c1['isIntersecting'](_0x178de3));if(!_0x5c7309)continue;const _0x5cd2c1=_0x5c7309['getDifference'](_0x178de3);this['_isBlockAttribute'](_0x5ddb04)&&'insertion'==_0x2e1b63['type']&&0x0!=_0x5cd2c1['length']||(_0x531e1d['delete'](_0x5c7309),_0x5cd2c1['forEach'](_0x47ec15=>{_0x531e1d['set'](_0x47ec15,_0x120a8f);}),'insertion'!=_0x2e1b63['type']&&_0x4716cd!=_0x4b8c49&&_0x531e1d['set'](_0x5c7309['getIntersection'](_0x178de3),_0x4716cd));}const _0x56b82b=[];for(const [_0xfd46b7,_0x59fdd0]of _0x531e1d){const _0xe6d9c7=_0x25e25c(),_0x3fa60e={'key':_0x5ddb04,'oldValue':_0x59fdd0,'newValue':_0x4b8c49};_0x5ddb04['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':_0x5ddb04});const _0x53b27b=('attribute:'+(_0x5ddb04+'|'+Lt({'newValue':_0x4b8c49})))['substring'](0x0,0x3c),_0x2a3eed=this['_setSuggestionData']({'id':_0xe6d9c7,'type':_0x53b27b,'data':_0x3fa60e,'createdAt':new Date(),'authorId':_0x5c1ea0,'attributes':_0x1c175b});_0x56b82b['push'](_0x2a3eed),this['_addSuggestionMarker'](_0x53b27b,_0xe6d9c7,_0x5c1ea0,_0xfd46b7);}return _0x56b82b;}['enableDefaultAttributesIntegration'](_0x3f41a8){this['enableCommand'](_0x3f41a8,(_0x3a1308,..._0x20e452)=>{this['recordAttributeChanges'](()=>{_0x3a1308(..._0x20e452);});});}['registerBlockAttribute'](_0x53b454){this['_blockAttributeKeys']['add'](_0x53b454);}['registerInlineAttribute'](_0x2de081){this['_inlineAttributeKeys']['add'](_0x2de081);}['startTrackingSession'](_0x332fd8){return this['_trackingSessionId']=void 0x0!==_0x332fd8?_0x332fd8:_0x25e25c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3c4f29){return'attribute'==_0x3c4f29['type']?_0x3c4f29['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x421618,_0x344612){const _0x25f45b=_0x421618['getFirstMarker']();this['_model']['change'](_0x3e679b=>{_0x3e679b['updateMarker'](_0x25f45b,{'range':_0x344612});});}['_addThreadToSuggestion'](_0x395f3b){const _0x23828b=_0x395f3b['id'],_0x1f265a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x23828b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1f265a,'threadId':_0x23828b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x21a615=this['_commentsRepository']['getCommentThread'](_0x23828b);_0x21a615['unbind']('isRemovable'),_0x21a615['isRemovable']=!0x1,_0x395f3b['commentThread']=_0x21a615;}['_checkSuggestionCorrectness'](_0x397d6c,_0x5ccae5,_0x147e7e,_0x5b5838){if(_0x397d6c['type']!=_0x5ccae5||_0x397d6c['subType']!=_0x147e7e||_0x397d6c['creator']['id']!=_0x5b5838)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x193da4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2dcf48,_0x146098){const _0xf041bc=_0x2dcf48['getFirstRange']();if(_0x146098['isEqual'](_0xf041bc))_0x2dcf48['removeMarkers']();else{if(_0xf041bc['containsRange'](_0x146098)){const _0x599067=this['_model']['createPositionAt'](_0x146098['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2dcf48,this['_model']['createRange'](_0xf041bc['start'],_0x599067));const _0x3c02fe=_0x25e25c(),_0x242c9e=_0x2dcf48['creator']['id'],_0xba33f8=_0x2dcf48['type']+':'+_0x2dcf48['subType'];this['_setSuggestionData']({'id':_0x3c02fe,'type':_0xba33f8,'createdAt':new Date(),'authorId':_0x242c9e,'data':_0x2dcf48['data'],'attributes':_0x2dcf48['attributes']});const _0x2f4c85=this['_model']['createPositionAt'](_0x146098['end']['parent'],'after'),_0x4cec1d=this['_model']['createRange'](_0x2f4c85,_0xf041bc['end']);this['_addSuggestionMarker'](_0xba33f8,_0x3c02fe,_0x242c9e,_0x4cec1d);}else{if(_0xf041bc['containsPosition'](_0x146098['start'])){const _0x76fbf9=this['_model']['createPositionAt'](_0x146098['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2dcf48,this['_model']['createRange'](_0xf041bc['start'],_0x76fbf9));}else{const _0xf3016a=this['_model']['createPositionAt'](_0x146098['end']['parent'],'after');this['_setSuggestionRange'](_0x2dcf48,this['_model']['createRange'](_0xf3016a,_0xf041bc['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x238561){for(const {suggestion:_0x38911e,meta:_0x2ad98e}of this['_findSuggestions'](_0x238561,'insertion')){if(!_0x2ad98e['isOwn'])continue;const _0xfe34ee=_0x38911e['getRanges']();for(const _0xaaf838 of _0xfe34ee)if(!_0x238561['getDifference'](_0xaaf838)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2d0745){const _0x25f07b=this['editor']['plugins']['get']('Users')['getUser'](_0x2d0745);if(!_0x25f07b)throw new _0x193da4('track-changes-user-not-found',this);return _0x25f07b;}['_getExternalAuthor'](_0x2d2c6e){const _0x76b859=this['editor']['plugins']['get']('Users'),_0x57d8b0=_0x3e714e('external:'+_0x2d2c6e),_0x4a84fc=_0x76b859['getUser'](_0x57d8b0);return _0x4a84fc||_0x76b859['addUser']({'id':_0x57d8b0,'name':_0x2d2c6e});}['_createSuggestion'](_0x1072d6,_0xdff9ac,_0x4b2263,_0x4aee68,_0x29cbf1,_0x39366d){const _0x23ca09=this['_getAuthorFromId'](_0x4aee68),_0x2e9d72=this['_suggestionFactory']['buildSuggestion'](_0x1072d6,_0xdff9ac,_0x4b2263,_0x23ca09,_0x29cbf1,_0xe47cb1=>{this['_updateSuggestionData'](_0x4b2263,{'attributes':_0xe47cb1});const _0x362c76=this['getSuggestion'](_0x4b2263);this['_joinWithAdjacentSuggestions'](new Set([_0x362c76])),this['_refreshSuggestionsChain'](new Set([_0x362c76]));},_0x39366d);return this['listenTo'](_0x2e9d72,'accept',()=>{this['_updateSuggestionData'](_0x4b2263,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2e9d72,'discard',()=>{this['_updateSuggestionData'](_0x4b2263,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4b2263,_0x2e9d72),this['_suggestionState']['set'](_0x2e9d72,'notReady'),_0x2e9d72;}['_splitMarkerName'](_0x5f2d4a){const _0x56a3c7=_0x5f2d4a['split'](':');return{'group':_0x56a3c7[0x0],'type':_0x56a3c7[0x1],'subType':_0x56a3c7['length']>=0x5?_0x56a3c7[0x2]:null,'id':_0x56a3c7['length']<0x5?_0x56a3c7[0x2]:_0x56a3c7[0x3],'authorId':_0x56a3c7['length']<0x5?_0x56a3c7[0x3]:_0x56a3c7[0x4],'markerCount':0x6==_0x56a3c7['length']?_0x56a3c7[0x5]:null};}['_breakSuggestionMarker'](_0x20e2c8,_0x5a7506,_0x2fdebe){const _0x424b42=_0x20e2c8['getFirstRange'](),_0x365248=_0x424b42['start'],_0x303c5b=_0x424b42['end'];this['_setSuggestionRange'](_0x20e2c8,this['_model']['createRange'](_0x365248,_0x5a7506));const _0xee8fc1=_0x25e25c(),_0x3e69ce=_0x20e2c8['creator']['id'],_0x1e9501=_0x20e2c8['type']+(_0x20e2c8['subType']?':'+_0x20e2c8['subType']:'');this['_setSuggestionData']({'id':_0xee8fc1,'type':_0x1e9501,'createdAt':new Date(),'authorId':_0x3e69ce,'originalSuggestionId':_0x20e2c8['_originalSuggestionId']||_0x20e2c8['id'],'attributes':_0x20e2c8['attributes'],'data':_0x20e2c8['data']});const _0x38d6b7=this['_getAttributeKey'](_0x20e2c8);('formatBlock'==_0x20e2c8['type']||_0x38d6b7&&this['_isBlockAttribute'](_0x38d6b7))&&(_0x2fdebe=this['_model']['createPositionBefore'](_0x2fdebe['parent'])),this['_addSuggestionMarker'](_0x1e9501,_0xee8fc1,_0x3e69ce,this['_model']['createRange'](_0x2fdebe,_0x303c5b));}['_findSuggestions'](_0x548996,_0x598776=null){const _0x582922=[],_0x82a6d6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x548996)||(_0x548996=[_0x548996]);for(const _0x4148fd of this['getSuggestions']()){if(!_0x4148fd['isInContent'])continue;if(_0x598776&&_0x4148fd['type']!=_0x598776)continue;let _0x309904=!0x1;for(const _0x2c2082 of _0x4148fd['getRanges']()){for(const _0x578176 of _0x548996){const _0x1a7f05=_0x578176['start']['isEqual'](_0x2c2082['end'])||_0x578176['end']['isEqual'](_0x2c2082['start']);if(_0x1a7f05||_0x578176['getIntersection'](_0x2c2082)){const _0xbadb57=_0x578176['containsRange'](_0x2c2082)&&Ft(this['_model']['schema'],_0x2c2082['start'],_0x578176),_0x347064=_0x2c2082['containsRange'](_0x578176)&&Ft(this['_model']['schema'],_0x578176['start'],_0x2c2082);_0x582922['push']({'suggestion':_0x4148fd,'meta':{'isOwn':_0x82a6d6==_0x4148fd['author'],'isNextTo':_0x1a7f05,'isInsideObject':_0xbadb57,'containsRangeInObject':_0x347064}}),_0x309904=!0x0;break;}}if(_0x309904)break;}}return _0x582922;}['_addSuggestionMarker'](_0x32fbae,_0x2827b8,_0x133995,_0x99358d,_0x59f4c3){this['_model']['change'](_0x24f943=>{let _0x583a51='suggestion:'+_0x32fbae+':'+_0x2827b8+':'+_0x133995;_0x59f4c3&&(_0x583a51=_0x583a51+':'+_0x59f4c3),_0x24f943['addMarker'](_0x583a51,{'range':_0x99358d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2a71d6){const _0x42562c=_0x2a71d6['previous'],_0x5db36b=_0x2a71d6['next'];_0x2a71d6['previous']=null,_0x2a71d6['next']=null,null!=_0x42562c&&_0x42562c['next']==_0x2a71d6&&(_0x42562c['next']=_0x5db36b),null!=_0x5db36b&&_0x5db36b['previous']==_0x2a71d6&&(_0x5db36b['previous']=_0x42562c),'ready'==this['_suggestionState']['get'](_0x2a71d6)&&(this['_suggestionState']['set'](_0x2a71d6,'removed'),this['fire']('suggestionUnloaded',_0x2a71d6,_0x42562c,_0x5db36b));}['_setSuggestionData'](_0x21f6ff){const _0x48c2ff=_0x21f6ff['id'],_0x15101f=this['addSuggestionData'](_0x21f6ff);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2001b1=this['editor']['plugins']['get']('PendingActions'),_0x29e28a=_0x15101f['hasComments'],_0x3df2d=_0x15101f['subType']?_0x15101f['type']+':'+_0x15101f['subType']:_0x15101f['type'],_0x4de259=this['editor']['locale'],_0x376a88=_0x2001b1['add'](o(_0x4de259,'PENDING_ACTION_SUGGESTION')),_0x4a25cb={'id':_0x48c2ff,'type':_0x3df2d,'hasComments':_0x29e28a,'data':_0x21f6ff['data']||null,'originalSuggestionId':_0x21f6ff['originalSuggestionId']||null,'attributes':_0x15101f['attributes']};this['_adapter']['addSuggestion'](_0x4a25cb)['then'](_0x176458=>{_0x15101f['_saved']=!0x0,_0x2001b1['remove'](_0x376a88),_0x176458&&_0x176458['createdAt']&&(this['_suggestions']['get'](_0x48c2ff)['createdAt']=_0x176458['createdAt']);})['catch'](_0x14433a=>{throw _0x19ff43('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x15101f['discard']();}),_0x15101f['stopListening'](),this['_suggestions']['delete'](_0x15101f['id']),this['_suggestionState']['delete'](_0x15101f),_0x14433a;});}return _0x15101f;}['_isBlockAttribute'](_0x1a4e95){return this['_blockAttributeKeys']['has'](_0x1a4e95);}['_isInlineAttribute'](_0x5df6f2){return this['_inlineAttributeKeys']['has'](_0x5df6f2);}['_updateSuggestionData'](_0x438e4c,_0x5347ad){const _0x75b9e3=this['editor']['plugins']['get']('PendingActions'),_0x87a731=this['getSuggestion'](_0x438e4c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x87a731['_saved']){const _0x21a5ec=_0x75b9e3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x438e4c,_0x5347ad)['then'](()=>{_0x75b9e3['remove'](_0x21a5ec);});}else _0x87a731['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x438e4c,_0x5347ad);});}}['_getSuggestionData'](_0x4842f5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x193da4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4842f5);}['_handleNewSuggestionMarker'](_0x1b14e4){const {id:_0x5a5071,type:_0x87835a,subType:_0x300438,authorId:_0x53e418}=this['_splitMarkerName'](_0x1b14e4),_0x429755=this['_suggestions']['get'](_0x5a5071)||this['_createSuggestion'](_0x87835a,_0x300438,_0x5a5071,_0x53e418,{});switch(this['_checkSuggestionCorrectness'](_0x429755,_0x87835a,_0x300438,_0x53e418),this['_suggestionState']['get'](_0x429755)){case'notReady':this['_getSuggestionData'](_0x5a5071)['then'](_0x9ca957=>{let _0x14203a=Promise['resolve']();_0x9ca957['hasComments']&&(_0x14203a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a5071})),_0x14203a['then'](()=>{this['addSuggestionData'](_0x9ca957)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x429755,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a5071,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x429755,'ready'),this['fire']('suggestionLoaded',_0x429755);break;case'ready':this['fire']('suggestionChanged',_0x429755);}return _0x429755['addMarkerName'](_0x1b14e4),_0x429755;}['_refreshSuggestionsChain'](_0x16bcd5){const _0x218dc2=Array['from'](_0x16bcd5),_0x4b4a46=_0x218dc2['filter'](_0x44ca44=>'attribute'==_0x44ca44['type']);this['_refreshAttributeSuggestionsChain'](_0x4b4a46);const _0x152929=_0x218dc2['filter'](_0x9d5b77=>!_0x9d5b77['isMultiRange']&&'attribute'!=_0x9d5b77['type']),_0x58fd27=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e4410=>!_0x2e4410['isMultiRange']&&'attribute'!=_0x2e4410['type']),_0x1f665c=_0x58fd27['filter'](_0x597db5=>!_0x16bcd5['has'](_0x597db5)),_0x132e0d=new Map(_0x58fd27['map'](_0x1615ea=>[_0x1615ea,this['_suggestionFactory']['getSuggestionCallback'](_0x1615ea['type'],_0x1615ea['subType'],'chain')])),_0x32c031=new Map(_0x58fd27['map'](_0x62f206=>[_0x62f206,_0x62f206['getFirstRange']()])),_0x252239=new Set(),_0x3ef647=new Set();for(let _0x411954=0x0;_0x411954<_0x152929['length'];_0x411954++)_0x4c5e70(_0x152929[_0x411954],_0x152929,_0x411954+0x1);for(let _0x205257=0x0;_0x205257<_0x152929['length'];_0x205257++)_0x4c5e70(_0x152929[_0x205257],_0x1f665c,0x0);const _0x569584=new Set();for(let _0x6624de=0x0;_0x6624de<_0x152929['length'];_0x6624de++){const _0xcd2efc=_0x152929[_0x6624de];!_0x3ef647['has'](_0xcd2efc)&&_0xcd2efc['previous']&&(_0x569584['add'](_0xcd2efc['previous']),_0xcd2efc['previous']['next']===_0xcd2efc&&(_0xcd2efc['previous']['next']=null),_0xcd2efc['previous']=null),!_0x252239['has'](_0xcd2efc)&&_0xcd2efc['next']&&(_0x569584['add'](_0xcd2efc['next']),_0xcd2efc['next']['previous']===_0xcd2efc&&(_0xcd2efc['next']['previous']=null),_0xcd2efc['next']=null);}function _0x4c5e70(_0x12f159,_0x31cf2c,_0x41fe89){for(let _0x1ccf8f=_0x41fe89;_0x1ccf8f<_0x31cf2c['length'];_0x1ccf8f++){const _0x1d78df=_0x350a0f(_0x12f159,_0x31cf2c[_0x1ccf8f]);_0x1d78df&&(_0x1d78df[0x0]['next']=_0x1d78df[0x1],_0x1d78df[0x1]['previous']=_0x1d78df[0x0],_0x252239['add'](_0x1d78df[0x0]),_0x3ef647['add'](_0x1d78df[0x1]));}}function _0x350a0f(_0x42e1a6,_0x54d107){if(_0x42e1a6['author']['id']!==_0x54d107['author']['id'])return null;const _0x18518c=_0x132e0d['get'](_0x42e1a6)(_0x42e1a6,_0x54d107,_0x32c031['get'](_0x42e1a6),_0x32c031['get'](_0x54d107));if(!_0x18518c)return null;return _0x132e0d['get'](_0x54d107)(_0x42e1a6,_0x54d107,_0x32c031['get'](_0x42e1a6),_0x32c031['get'](_0x54d107))?_0x18518c[0x1]['commentThread']&&_0x18518c[0x1]['commentThread']['length']?null:_0x18518c:null;}_0x569584['size']&&this['_refreshSuggestionsChain'](_0x569584);}['_refreshAttributeSuggestionsChain'](_0x49f626){if(0x0==_0x49f626['length'])return;const _0x315ab7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf469c8=>'attribute'==_0xf469c8['type']&&_0xf469c8['_isDataLoaded']),_0x5091cf=[],_0x4c70a5=new Map();for(const _0x5a3606 of _0x315ab7){const _0x4eabe3=_0x3e714e(_0x5a3606['attributes']);_0x4c70a5['has'](_0x4eabe3)||(_0x4c70a5['set'](_0x4eabe3,_0x5091cf['length']),_0x5091cf['push']([]));const _0x55ffe1=_0x4c70a5['get'](_0x4eabe3);_0x5091cf[_0x55ffe1]['push'](_0x5a3606);}!(function(){_0x5091cf['sort']((_0x1c7ba6,_0xd556e)=>{const _0x2663f8=_0x1c7ba6[0x0]['createdAt'],_0x38ed24=_0xd556e[0x0]['createdAt'];return _0x2663f8==_0x38ed24?_0x1c7ba6[0x0]['attributes']['groupId']<_0xd556e[0x0]['attributes']['groupId']?-0x1:0x1:_0x2663f8<_0x38ed24?-0x1:0x1;});for(const _0x44ad98 of _0x5091cf)_0x44ad98['sort']((_0x3ea2d5,_0x519936)=>_0x3ea2d5['id']<_0x519936['id']?-0x1:0x1);}());for(let _0xe37e8e=0x0;_0xe37e8e<_0x5091cf['length'];_0xe37e8e++){if(0x0==_0x5091cf[_0xe37e8e]['length'])continue;const _0x169ffa=[];for(let _0x4a78df=_0xe37e8e+0x1;_0x4a78df<_0x5091cf['length'];_0x4a78df++)0x0!=_0x5091cf[_0x4a78df]['length']&&_0x19a6cb(_0x5091cf[_0xe37e8e],_0x5091cf[_0x4a78df])&&_0x169ffa['push'](_0x4a78df);for(const _0x45b09b of _0x169ffa)_0x5091cf[_0xe37e8e]=_0x5091cf[_0xe37e8e]['concat'](_0x5091cf[_0x45b09b]),_0x5091cf[_0x45b09b]=[];}for(const _0x317ba2 of _0x5091cf)for(let _0x51efbb=0x0;_0x51efbb<_0x317ba2['length'];_0x51efbb++){const _0x1582fc=_0x317ba2[_0x51efbb+0x1]||null;_0x317ba2[_0x51efbb]['next']!==_0x1582fc&&(_0x317ba2[_0x51efbb]['next']=_0x1582fc);}for(const _0x414d06 of _0x5091cf)for(let _0x4c4063=0x0;_0x4c4063<_0x414d06['length'];_0x4c4063++){const _0x6e5244=_0x414d06[_0x4c4063-0x1]||null;_0x414d06[_0x4c4063]['previous']!==_0x6e5244&&(_0x414d06[_0x4c4063]['previous']=_0x6e5244);}function _0x19a6cb(_0x3abf22,_0x2012b3){if(_0x3abf22[0x0]['attributes']['groupId']!==_0x2012b3[0x0]['attributes']['groupId']&&_0x3abf22[0x0]['author']!==_0x2012b3[0x0]['author'])return!0x1;if(!function(_0x1545eb,_0x38ac2e){if(!_0x1545eb['hasComments']&&!_0x38ac2e['hasComments'])return!0x0;if(_0x1545eb['hasComments']&&_0x38ac2e['hasComments'])return!0x1;if(_0x1545eb['hasComments']&&_0x38ac2e['createdAt']<_0x1545eb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x38ac2e['hasComments']&&_0x1545eb['createdAt']<_0x38ac2e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3abf22[0x0],_0x2012b3[0x0]))return!0x1;const _0x34bc54=Ut(_0x3abf22[0x0]['attributes'],['groupId','trackingSessionId']),_0x3b0d56=Ut(_0x2012b3[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5da56d(_0x34bc54,_0x3b0d56))return!0x1;if(_0x3abf22[0x0]['attributes']['groupId']==_0x2012b3[0x0]['attributes']['groupId'])return!0x0;if(_0x3abf22[0x0]['attributes']['trackingSessionId']!==_0x2012b3[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3abf22['every'](_0xa34f3c=>_0x2012b3['some'](_0xd7f572=>_0xa34f3c['getFirstRange']()['isEqual'](_0xd7f572['getFirstRange']())))&&_0x2012b3['every'](_0x40b590=>_0x3abf22['some'](_0x3438db=>_0x40b590['getFirstRange']()['isEqual'](_0x3438db['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xab0112){const _0x189814=Array['from'](_0xab0112),_0x439acf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5ae894=_0x439acf['filter'](_0x4543b5=>!_0xab0112['has'](_0x4543b5)),_0x5c1be1=new Map(_0x189814['map'](_0x1e7e92=>[_0x1e7e92,this['_suggestionFactory']['getSuggestionCallback'](_0x1e7e92['type'],_0x1e7e92['subType'],'join')])),_0x25d6bf=new Map(_0x439acf['map'](_0x2819f8=>[_0x2819f8,_0x2819f8['getRanges']()]));for(let _0x5dbfb8=0x0;_0x5dbfb8<_0x189814['length'];_0x5dbfb8++){if(_0x7e4e76(this,_0x189814[_0x5dbfb8],_0x189814,_0x5dbfb8+0x1))return!0x0;}for(let _0xc3b259=0x0;_0xc3b259<_0x189814['length'];_0xc3b259++){if(_0x7e4e76(this,_0x189814[_0xc3b259],_0x5ae894,0x0))return!0x0;}return!0x1;function _0x7e4e76(_0x168d74,_0x32c4fa,_0x520d59,_0x46e4c7){for(let _0x1ac6fc=_0x46e4c7;_0x1ac6fc<_0x520d59['length'];_0x1ac6fc++){const _0x27cece=_0x520d59[_0x1ac6fc];if(_0x27cece['type']!==_0x32c4fa['type']||_0x27cece['author']['id']!==_0x32c4fa['author']['id']||_0x27cece['subType']!==_0x32c4fa['subType'])continue;if(!Qt(_0x32c4fa,_0x27cece))continue;if('attribute'==_0x32c4fa['type']&&_0x32c4fa['data']['oldValue']!=_0x27cece['data']['oldValue'])continue;if('attribute'==_0x32c4fa['type']&&_0x168d74['_isBlockAttribute'](_0x32c4fa['data']['key']))continue;if('formatBlock'==_0x32c4fa['type']){const _0x2fd587=_0x168d74['editor']['model'],_0x33dc9a=_0x32c4fa['getContainedElement']();if(_0x33dc9a&&(_0x2fd587['schema']['isObject'](_0x33dc9a)||_0x2fd587['schema']['isLimit'](_0x33dc9a)))continue;}const _0x1a46a0=_0x5c1be1['get'](_0x32c4fa),_0x43b204=_0x25d6bf['get'](_0x32c4fa),_0x4cbf6a=_0x25d6bf['get'](_0x27cece),_0x102e8f=_0x32c4fa['commentThread']&&_0x32c4fa['commentThread']['length'],_0x49bde9=_0x27cece['commentThread']&&_0x27cece['commentThread']['length'];if(!_0x102e8f&&_0x1a46a0(_0x4cbf6a,_0x43b204))return _0x168d74['_joinSuggestions'](_0x27cece,_0x32c4fa),_0x25d6bf['delete'](_0x32c4fa),!0x0;if(!_0x49bde9&&_0x1a46a0(_0x43b204,_0x4cbf6a))return _0x168d74['_joinSuggestions'](_0x32c4fa,_0x27cece),_0x25d6bf['delete'](_0x27cece),!0x0;}return!0x1;}}['_joinSuggestions'](_0x500b22,_0x304869){if(_0x500b22['isMultiRange']){for(const _0x5e676d of _0x304869['getRanges']())_0x500b22['addRange'](_0x5e676d);}else{const _0x4cc208=_0x304869['getFirstRange']()['end'];this['_setSuggestionRange'](_0x500b22,this['_model']['createRange'](_0x500b22['getFirstRange']()['start'],_0x4cc208));}_0x304869['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3d3005,_0x39b0cd,_0x3aebb2){const _0xf674a4=_0x3d3005['startsWith']('format')||_0x3d3005['startsWith']('attribute')?'FORMATTING':_0x3d3005['toUpperCase']();return o(this['editor']['locale'],_0x39b0cd+'_'+_0xf674a4+'_SUGGESTION_ANNOUNCEMENT',_0x3aebb2);}['_initAriaMarkerChangeAnnouncements'](){const _0x37768b=this['editor'];if(!_0x37768b['ui'])return;const {ariaLiveAnnouncer:_0x350597}=_0x37768b['ui'];_0x35da99(this['_model'],({left:_0x652407,entered:_0x3237a6})=>{for(const _0x389a8b of _0x652407){const {group:_0x7263bd,type:_0x3d5f35}=this['_splitMarkerName'](_0x389a8b['name']);if('suggestion'===_0x7263bd){_0x350597['announce'](this['_getMarkerAnnouncementText'](_0x3d5f35,'LEAVE'));break;}}for(const _0x4b5cf9 of _0x3237a6){const {group:_0xcd55d5,type:_0x5d4c34}=this['_splitMarkerName'](_0x4b5cf9['name']);if('suggestion'===_0xcd55d5){_0x350597['announce'](this['_getMarkerAnnouncementText'](_0x5d4c34,'ENTER',_0x125686(_0x2470ef)));break;}}});}['_processAttributeChanges'](_0x3d9e20){if(this['_recordAttributeSuggestions'])return!0x1;const _0x56adbe=this['editor'],_0x28f6c0=_0x56adbe['model']['document']['differ']['getChanges']();if(0x0==_0x28f6c0['length'])return!0x1;const _0x143b81=[],_0x1880e3=_0x28f6c0['filter'](_0x55bdb3=>'attribute'==_0x55bdb3['type']),_0x31f8b5=_0x28f6c0['filter'](_0x10913f=>'insert'==_0x10913f['type']&&'$text'!=_0x10913f['name']),_0x2d4858=_0x28f6c0['filter'](_0x4c542f=>'remove'==_0x4c542f['type']&&'$text'!=_0x4c542f['name']);for(const _0xca3615 of _0x1880e3)_0x143b81['push']({'key':_0xca3615['attributeKey'],'newValue':_0xca3615['attributeNewValue'],'oldValue':_0xca3615['attributeOldValue'],'range':qt(_0xca3615['range'],_0x56adbe['model'])});for(const _0x1fe666 of _0x31f8b5){const _0x34518f=_0x2d4858['find'](_0x155213=>_0x155213['position']['isEqual'](_0x1fe666['position']));_0x34518f&&_0x143b81['push']({'key':m,'newValue':_0x1fe666['name'],'oldValue':_0x34518f['name'],'range':_0x56adbe['model']['createRangeOn'](_0x1fe666['position']['nodeAfter'])});}return 0x0!=_0x143b81['length']&&this['_reduceExistingSuggestions'](_0x3d9e20,_0x143b81);}['_processAttributeSuggestions'](_0x5c20de){let _0x107261=!0x1;const _0x1ed5d5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56360f=>_0x56360f['data']['newRange']&&_0x56360f['name']['startsWith']('suggestion:attribute:'));for(const _0x2497bb of _0x1ed5d5){const {subType:_0x5d2a6f,id:_0x580b19}=this['_splitMarkerName'](_0x2497bb['name']),_0x54b8a7=_0x5d2a6f['split']('|')[0x0];for(const _0x1d387e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1d387e['id']!=_0x580b19&&'attribute'==_0x1d387e['type']&&_0x1d387e['data']&&_0x1d387e['data']['key']==_0x54b8a7&&_0x1d387e['getFirstRange']()['isIntersecting'](_0x2497bb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1d387e,_0x2497bb['data']['newRange'],_0x5c20de),_0x107261=!0x0);}return _0x107261;}['recordAttributeChanges'](_0x2250c4){this['_recordAttributeSuggestions']=!0x0,_0x2250c4();}['_isRegisteredAttribute'](_0x17212e){const _0x4e444a=this['_isBlockAttribute'](_0x17212e),_0x3b82c4=this['_isInlineAttribute'](_0x17212e);return _0x4e444a||_0x3b82c4;}['_reduceExistingSuggestions'](_0x16d8b3,_0x431796){if(0x0==_0x431796['length'])return!0x1;let _0x12b7c4=!0x1;for(const _0x45fb93 of _0x431796){const _0x27aa93=this['_findSuggestions'](_0x45fb93['range'],'attribute')['filter'](_0x27e256=>!_0x27e256['meta']['isNextTo'])['map'](_0x3ac8c0=>_0x3ac8c0['suggestion']),_0x4196c6=_0x3e714e({'newValue':_0x45fb93['newValue']});_0x27aa93['filter'](_0x503962=>{const [_0x56e9ac,_0x1bf8be]=_0x503962['subType']['split']('|');return _0x56e9ac==_0x45fb93['key']&&_0x1bf8be!=_0x4196c6;})['forEach'](_0x318c9c=>{this['_reduceSuggestionAttributeRange'](_0x318c9c,_0x45fb93['range'],_0x16d8b3),_0x12b7c4=!0x0;});}return _0x12b7c4;}['_reduceSuggestionAttributeRange'](_0x33ae1e,_0x5c8d56,_0x41801c){const _0x57a165=_0x33ae1e['getFirstRange']()['getDifference'](_0x5c8d56);0x0!==_0x57a165['length']?0x1!==_0x57a165['length']?this['_breakSuggestionMarker'](_0x33ae1e,_0x5c8d56['start'],_0x5c8d56['end']):this['_setSuggestionRange'](_0x33ae1e,_0x57a165[0x0]):_0x41801c['removeMarker'](_0x33ae1e['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5a0a95){this['_editor']=_0x5a0a95,this['_model']=_0x5a0a95['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5297c1,_0x45f27a,_0x599b2b,_0x2d1c11,_0x2ba6f3,_0x1aab83,_0x31780b){return new T(this['_model'],{'type':_0x5297c1,'subType':_0x45f27a,'id':_0x599b2b,'originalSuggestionId':_0x31780b,'author':_0x2d1c11,'creator':_0x2d1c11,'attributes':_0x2ba6f3,'onAttributesChange':_0x1aab83,'onAccept':(..._0x4ebec7)=>this['getSuggestionCallback'](_0x5297c1,_0x45f27a,'accept')(..._0x4ebec7),'onDiscard':(..._0x4239c3)=>this['getSuggestionCallback'](_0x5297c1,_0x45f27a,'discard')(..._0x4239c3)});}['registerCustomCallback'](_0x317916,_0x5aaf29,_0x4b6678,_0x4cde79){const _0x2dd815=_0x317916+':'+_0x5aaf29+':'+_0x4b6678;this['_customCallbacks']['set'](_0x2dd815,_0x4cde79);}['getSuggestionCallback'](_0x4166e3,_0x262faa,_0x5a9a3b){const _0x161673=_0x4166e3+':'+_0x262faa+':'+_0x5a9a3b;return this['_customCallbacks']['get'](_0x161673)||this['_defaultCallbacks']['get'](_0x4166e3+':'+_0x5a9a3b);}['_registerDefaultCallbacks'](){const _0x1e2d0a=()=>!0x1,_0x1a5d37=_0x1a60ce=>{_0x1a60ce['sort']((_0x13a866,_0x2d1356)=>_0x13a866['start']['isBefore'](_0x2d1356['start'])?0x1:-0x1),this['_model']['change'](_0x31589c=>{for(const _0x3cd1dc of _0x1a60ce){let _0x4e714d;_0x4e714d=_0x3cd1dc['end']['isAtEnd']&&_0x3cd1dc['end']['parent']==_0x3cd1dc['start']['nodeAfter']?_0x31589c['createSelection'](_0x3cd1dc['start']['nodeAfter'],'on'):_0x31589c['createSelection'](_0x3cd1dc),this['_model']['deleteContent'](_0x4e714d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1bb50a=(_0x584f68,_0x3979bb)=>{_0x3979bb&&this['_model']['change'](_0x342129=>{const {commandName:_0x20923f,commandParams:_0x4b12e3=[]}=_0x3979bb,_0x55e931=_0x584f68['map'](_0x4cc3d8=>(Pt(_0x4cc3d8)&&(_0x4cc3d8=this['_model']['createRange'](_0x4cc3d8['end'])),_0x4cc3d8))['filter'](_0x368c9f=>'$graveyard'!==_0x368c9f['root']['rootName']);if(_0x55e931['length']<0x1)return;const _0x328de5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1efd4d=>_0x2e6917['fromRange'](_0x1efd4d));_0x342129['setSelection'](_0x55e931);for(const _0x4725ae of this['_editor']['commands']['commands']())_0x4725ae['refresh']();_0x4b12e3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x20923f,..._0x4b12e3);const _0xc047c8=_0x328de5['filter'](_0x474032=>'$graveyard'!=_0x474032['root']['rootName']);_0xc047c8['length']>0x0&&_0x342129['setSelection'](_0xc047c8);for(const _0x105b67 of _0x328de5)_0x105b67['detach']();});},_0x13e374=(_0x5e59fb,_0x1ec3e6)=>0x1==_0x5e59fb['length']&&0x1==_0x1ec3e6['length']&&_0x5e59fb[0x0]['end']['isEqual'](_0x1ec3e6[0x0]['start']),_0x1186ac=(_0x587f90,_0x51e131,_0x1c4ef9,_0xc37ec5)=>Wt(_0x587f90,_0x51e131,_0x1c4ef9,_0xc37ec5)?[_0x587f90,_0x51e131]:Wt(_0x51e131,_0x587f90,_0xc37ec5,_0x1c4ef9)?[_0x51e131,_0x587f90]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1e2d0a),this['_defaultCallbacks']['set']('insertion:discard',_0x1a5d37),this['_defaultCallbacks']['set']('insertion:join',_0x13e374),this['_defaultCallbacks']['set']('insertion:chain',_0x1186ac),this['_defaultCallbacks']['set']('deletion:accept',_0x1a5d37),this['_defaultCallbacks']['set']('deletion:discard',_0x1e2d0a),this['_defaultCallbacks']['set']('deletion:join',_0x13e374),this['_defaultCallbacks']['set']('deletion:chain',_0x1186ac),this['_defaultCallbacks']['set']('formatInline:accept',_0x1bb50a),this['_defaultCallbacks']['set']('formatInline:discard',_0x1e2d0a),this['_defaultCallbacks']['set']('formatInline:join',_0x13e374),this['_defaultCallbacks']['set']('formatInline:chain',_0x1e2d0a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1bb50a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1e2d0a),this['_defaultCallbacks']['set']('formatBlock:join',_0x13e374),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1e2d0a),this['_defaultCallbacks']['set']('attribute:accept',_0x1e2d0a),this['_defaultCallbacks']['set']('attribute:discard',(_0x453ff7,_0x3b558e)=>{if(!_0x3b558e)return;const _0x4df59a=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x484635=>{if(_0x3b558e['key']==m)for(const _0x5f4c29 of _0x453ff7){const _0x1406dd=_0x5f4c29['start']['nodeAfter'],_0x43ff2b=_0x3b558e['oldValue'];_0x484635['rename'](_0x1406dd,_0x43ff2b);}else{if(_0x4df59a['_isBlockAttribute'](_0x3b558e['key'])){for(const _0x35f606 of _0x453ff7)void 0x0!==_0x3b558e['oldValue']?_0x484635['setAttribute'](_0x3b558e['key'],_0x3b558e['oldValue'],_0x35f606['start']['nodeAfter']):_0x484635['removeAttribute'](_0x3b558e['key'],_0x35f606['start']['nodeAfter']);}else{for(const _0x5acda7 of _0x453ff7)_0x3b558e['oldValue']?_0x484635['setAttribute'](_0x3b558e['key'],_0x3b558e['oldValue'],_0x5acda7):_0x484635['removeAttribute'](_0x3b558e['key'],_0x5acda7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x13e374);}}function Ft(_0x1cc40d,_0x87133e,_0x4f2b36){for(const _0x4628df of _0x87133e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4628df['root']==_0x4628df)return!0x1;if(!_0x4f2b36['containsItem'](_0x4628df))return!0x1;if(_0x1cc40d['isObject'](_0x4628df)||_0x1cc40d['isLimit'](_0x4628df))return!0x0;}return!0x1;}function Pt(_0x49c6d0){return _0x49c6d0['end']['parent']==_0x49c6d0['start']['nodeAfter']&&_0x49c6d0['end']['isAtStart'];}function Gt(_0x573b68,_0x2afb3b,_0x2dce9f,_0x1723d7){const _0x17de72=_0x1303ac=>!_0x1303ac['item']['is']('$textProxy')&&!_0x1723d7['isObject'](_0x1303ac['item']),_0x3b19cd=_0x573b68['start']['getLastMatchingPosition'](_0x17de72),_0x4ae4e5=_0x573b68['end']['getLastMatchingPosition'](_0x17de72,{'direction':'backward'});return(!_0x573b68['start']['isEqual'](_0x3b19cd)||!_0x573b68['end']['isEqual'](_0x4ae4e5))&&(_0x3b19cd['isBefore'](_0x4ae4e5)?_0x2dce9f['updateMarker'](_0x2afb3b,{'range':_0x2dce9f['createRange'](_0x3b19cd,_0x4ae4e5)}):_0x2dce9f['removeMarker'](_0x2afb3b),!0x0);}function Lt(_0xe93e50){return _0x3e714e(_0xe93e50);}function Jt(_0x45fd3a){const _0x8a1ce3=_0x45fd3a['start']['nodeAfter'];return _0x8a1ce3&&_0x8a1ce3['is']('element');}function Kt(_0x588ba7){return Pt(_0x588ba7)||function(_0x5949d9){return _0x5949d9['start']['parent']==_0x5949d9['end']['nodeBefore']&&_0x5949d9['start']['isAtEnd'];}(_0x588ba7);}function Ht(_0x5a1adb,_0x2ef29a){try{const _0x4e2b1e=_0x5a1adb['getRange']();for(const _0x4d6711 of _0x2ef29a)if(_0x5a1adb!==_0x4d6711&&_0x4e2b1e&&_0x4e2b1e['isIntersecting'](_0x4d6711['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x4f5e2e,_0x3a1759){return null==_0x4f5e2e['end']['nodeBefore']&&_0x4f5e2e['end']['parent']==_0x4f5e2e['start']['nodeAfter']?zt(_0x4f5e2e['start']['nodeAfter'],_0x3a1759):_0x4f5e2e;}function zt(_0x2e1e84,_0x280e1d){const _0x1ffabe=_0x280e1d['schema']['isObject'](_0x2e1e84)||_0x280e1d['schema']['isSelectable'](_0x2e1e84);return _0x280e1d['createRange'](_0x280e1d['createPositionAt'](_0x2e1e84,'before'),_0x1ffabe?_0x280e1d['createPositionAfter'](_0x2e1e84):_0x280e1d['createPositionAt'](_0x2e1e84,'end'));}function Wt(_0x1a782e,_0x6d1849,_0xa876ae,_0x4966fd){return!!Qt(_0x1a782e,_0x6d1849)&&_0xa876ae['end']['isEqual'](_0x4966fd['start']);}function Qt(_0x1fb86b,_0x5bba1b){if(!_0x1fb86b['_isDataLoaded']||!_0x5bba1b['_isDataLoaded'])return!0x1;const _0x1e2dd5=new Set(Object['keys'](_0x1fb86b['attributes'])),_0x1e4c3e=new Set(Object['keys'](_0x5bba1b['attributes']));if(_0x1e2dd5['delete']('groupId'),_0x1e4c3e['delete']('groupId'),0x0==_0x1e2dd5['size']&&0x0==_0x1e4c3e['size'])return!0x0;if(_0x1e2dd5['size']!=_0x1e4c3e['size'])return!0x1;const _0x4ecbea={..._0x1fb86b['attributes']},_0x206176={..._0x5bba1b['attributes']};return delete _0x4ecbea['groupId'],delete _0x206176['groupId'],JSON['stringify'](_0x4ecbea)==JSON['stringify'](_0x206176);}function Xt(_0x1aaae5,_0x36f3e6){const _0x2c0cda=Yt(_0x1aaae5['attributes']),_0x5af57f=Yt(_0x36f3e6);if(!_0x1aaae5['_isDataLoaded'])return!0x1;for(const _0x243b35 of Object['keys'](_0x5af57f))if(!_0x5da56d(_0x2c0cda[_0x243b35],_0x5af57f[_0x243b35]))return!0x1;return!0x0;}function Yt(_0x488a3c){const _0x1f5f80=Object['assign']({},_0x488a3c);return delete _0x1f5f80['skipNestingCheck'],delete _0x1f5f80['tablePasteChainId'],_0x1f5f80;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xc4e805(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x411fdf,_0x481811,_0x214306,_0x5a89ed){super(),this['model']=_0x481811,this['view']=_0x214306,this['commentThreadController']=_0x5a89ed,this['_editor']=_0x411fdf,this['_acceptCommand']=_0x411fdf['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x411fdf['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xfeaf0,_0x5c91d0)=>_0xfeaf0||_0x5c91d0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x512d7f=>_0x512d7f&&this['_editor']['model']['canEditAt'](_0x481811['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5cb268=>_0x5cb268&&this['_editor']['model']['canEditAt'](_0x481811['getRanges']())),this['_pendingAction']=null,_0x214306['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x214306,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x214306,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x214306,'change:isDirty',()=>{_0x214306['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 _0x494d2e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x494d2e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x570be4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x135817,_0x241879,_0x5ed4fa,_0x2b0c64){super(_0x135817),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x26f3a9(_0x135817,o(_0x135817,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x241879['authoredAt']),this['bind']('authoredAt')['to'](_0x241879),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',_0x241879,'authoredAt',this,'descriptionParts',(_0x44efe2,_0x3da240,_0xc962a6)=>{const _0x16ab75=_0xc962a6['map'](_0x1c651c=>ls(_0x1c651c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x44efe2-0x1,_0x241879['author']['name'],_0x3da240?_0x2b0c64['formatDateTime'](_0x3da240):'',new DOMParser()['parseFromString'](_0x16ab75,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2ad58a(),this['focusTracker']=new _0xb0f338(),this['keystrokes']=new _0x68ee90(),this['focusCycler']=new _0x2e7fb5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x41ccf8=>_0x41ccf8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x241879,this['_localUser']=_0x5ed4fa,this['_config']=_0x2b0c64,_0x2b0c64['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x562313(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x43a559}=this['_config'];this['commentsListView']=new _0x43a559(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',_0x3d7730=>_0x3d7730+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1735bd,_0x5f4261)=>_0x1735bd||!!_0x5f4261);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x15c33c}=this['_config'],_0x2d870a=new _0x15c33c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4d203f=_0x2d870a['commentInputView'];return _0x2d870a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4d203f,'value',(_0x647c5b,_0x233713,_0x304e1c)=>!!_0x304e1c||_0x647c5b&&!_0x233713),_0x4d203f['on']('submit',(_0x4c6b41,_0x3c4c14)=>{this['fire']('addComment',_0x3c4c14),_0x4d203f['editor']['setData']('');}),_0x4d203f['on']('cancel',()=>this['focus']()),_0x4d203f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2d870a;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x93ba1b,_0x1bc464,_0x1e5ecc,_0x3cf587){super(_0x93ba1b,_0x1bc464,_0x1e5ecc,_0x3cf587),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x195a4e=>_0x195a4e&&_0x195a4e[0x0]?_0x195a4e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x522b4a,_0x1916fe)=>{let _0x77f224='';for(const _0x2f6ab0 of _0x522b4a)_0x77f224+='<p>'+ls(_0x2f6ab0['content'],_0x2f6ab0['color'])+'</p>';return _0x1916fe?_0x77f224:_0x44b494(_0x77f224,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3cf587['SuggestionView'](_0x93ba1b,_0x1bc464,{'formatDateTime':_0x3cf587['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 _0x3c8625=this['bindTemplate'],_0x5f34d7=[this['suggestionView']];return this['commentsListView']&&_0x5f34d7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5f34d7['push'](this['commentThreadInputView']),_0x5f34d7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3c8625['if']('isActive','ck-suggestion-wrapper--active'),_0x3c8625['to']('type',_0xd63891=>'ck-suggestion-'+_0xd63891),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':_0x3c8625['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5f34d7};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x570be4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x250ed4,_0xc7dca1,_0x1564e2){super(_0x250ed4),this['_model']=_0xc7dca1,this['_config']=_0x1564e2,this['set']('description',''),this['bind']('authoredAt')['to'](_0xc7dca1),this['acceptButton']=this['_createButton'](o(_0x250ed4,'Accept\x20suggestion'),_0x2acf8e,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x250ed4,'Discard\x20suggestion'),_0xd21ebd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x56a9f8(_0x250ed4,_0xc7dca1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2ad58a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xb0f338(),this['keystrokes']=new _0x68ee90(),this['focusCycler']=new _0x2e7fb5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x579979=>_0x579979['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4d7a78=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4d7a78['innerHTML']=this['description'],this['on']('change:description',(_0x2bce09,_0x7de983,_0x41ff31)=>{_0x4d7a78['innerHTML']=_0x41ff31;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xff590a=this['bindTemplate'],_0x5dcaf2=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0xff590a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xff590a['to']('authoredAt',_0x395ea7=>this['_config']['formatDateTime'](_0x395ea7))}]}]},{'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']&&_0x5dcaf2['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':_0x5dcaf2}]};}['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'](_0x565d05,_0x4d54be,_0xc7bf2f,_0x2d3103,_0x6e7f28){const _0x231f5b=new _0x410427(this['locale']);return _0x231f5b['set']({'label':_0x565d05,'icon':_0x4d54be,'tooltip':!0x0,'tooltipPosition':_0x6e7f28}),_0x231f5b['extendTemplate']({'attributes':{'class':_0xc7bf2f}}),_0x231f5b['on']('execute',()=>{this['fire'](_0x2d3103,this['_model']['id']);}),_0x231f5b;}['_setupKeyboardNavigation'](){const _0x26e143=this['element'];this['keystrokes']['listenTo'](_0x26e143);for(const _0x135f8a of this['focusables'])this['focusTracker']['add'](_0x135f8a['element']),this['keystrokes']['listenTo'](_0x135f8a['element']);this['keystrokes']['set']('enter',(_0x28fe76,_0x43511d)=>{_0x26e143===_0x28fe76['target']&&(this['focusCycler']['focusFirst'](),_0x43511d());}),this['keystrokes']['set']('esc',(_0x4794a6,_0x18f816)=>{_0x26e143!==_0x4794a6['target']&&(this['focus'](),_0x18f816());});}}class u extends _0x4540bb{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3654ac,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x516b49){super(_0x516b49),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x10d9cd=this['editor']['config'];_0x10d9cd['define']('trackChanges.SuggestionThreadView',fe),_0x10d9cd['define']('trackChanges.SuggestionView',we),_0x10d9cd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x10d9cd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x420f3b,_0x675156){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2340c2,_0x864b00]of this['_handleControllerBuffer']){const _0x32d733=this['_suggestionToController']['has'](_0x2340c2);_0x32d733||_0x864b00?_0x32d733&&_0x864b00&&this['_destroyController'](_0x2340c2):this['_initializeController'](_0x2340c2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x420f3b,_0x675156);}['init'](){const _0x4f2d92=this['editor'],_0xb42b49=_0x4f2d92['plugins']['get']('TrackChangesEditing'),_0x1da822=_0x4f2d92['plugins']['get']('Annotations'),_0x3a67b1=_0x4f2d92['plugins']['get']('EditorAnnotations'),_0x387fe9=_0x4f2d92['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3a67b1['addSourceCollector'](()=>{const _0x5153d3=[];for(const [_0x40830b,_0x3a8104]of Array['from'](this['_suggestionToController'])){const _0x366c95=_0x40830b['getAllAdjacentSuggestions'](),_0x9a50bd=[];for(const _0xd647f2 of _0x366c95){if(!_0xd647f2['isInContent'])continue;if(_0xd647f2['isMultiRange']){_0x9a50bd['push'](..._0xd647f2['getRanges']());continue;}const _0x464e00=_0xd647f2['getFirstRange']();if(_0x9a50bd['length']>0x0){const _0x54b652=_0x9a50bd[0x0]['getJoined'](_0x464e00);if(_0x54b652){_0x9a50bd[0x0]=_0x54b652;continue;}}_0x9a50bd['push'](_0x464e00);}_0x5153d3['push']([_0x3a8104['view'],_0x9a50bd]);}return _0x5153d3;}),this['listenTo'](_0xb42b49,'suggestionLoaded',(_0x2f069d,_0x441063)=>{this['listenTo'](_0x441063,'change:previous',(_0x3d22ff,_0x23e4fd,_0xc37898,_0x3b8087)=>{_0x441063['isInContent']&&(null==_0xc37898?(this['_updateController'](_0x3b8087['head']),this['_handleSuggestionControllerDelayed'](_0x441063,!0x1)):(this['_updateController'](_0xc37898['head']),null==_0x3b8087&&this['_handleSuggestionControllerDelayed'](_0x441063,!0x0)));}),null!==_0x441063['previous']?this['_updateController'](_0x441063['head']):this['_handleSuggestionControllerDelayed'](_0x441063,!0x1);}),this['listenTo'](_0xb42b49,'suggestionUnloaded',(_0x1063ba,_0x2d5364,_0x4eaa4e)=>{this['stopListening'](_0x2d5364,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2d5364),this['_suggestionToController']['has'](_0x2d5364)&&this['_destroyController'](_0x2d5364),_0x4eaa4e&&this['_updateController'](_0x4eaa4e['head']);}),this['listenTo'](_0xb42b49,'suggestionChanged',(_0x1ec1b2,_0x12c009)=>{this['_updateController'](_0x12c009);}),this['listenTo'](_0x1da822,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x387fe9,'addComment',(_0x1fba7c,{threadId:_0x356ced,isFromAdapter:_0x33563f})=>{if(_0x33563f||!_0xb42b49['hasSuggestion'](_0x356ced))return;const _0x4035e9=_0xb42b49['getSuggestion'](_0x356ced);this['_suggestionToController']['get'](_0x4035e9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x10491a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a4a1d;for(const _0x230584 in _0x10491a){const _0x43b881=_0x230584,_0x466b0d=_0x10491a[_0x43b881];if('trackChangesLicenseKeyValid'==_0x466b0d||'trackChangesLicenseKeyInvalid'==_0x466b0d||'trackChangesLicenseKeyExpired'==_0x466b0d||'trackChangesLicenseKeyDomainLimit'==_0x466b0d||'trackChangesLicenseKeyNotAllowed'==_0x466b0d||'trackChangesLicenseKeyEvaluationLimit'==_0x466b0d||'trackChangesLicenseKeyTrialLimit'==_0x466b0d||'trackChangesLicenseKeyUsageLimit'==_0x466b0d){delete _0x10491a[_0x43b881],_0x5a4a1d=_0x466b0d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5a4a1d&&_0x10491a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5a4a1d&&_0x10491a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5a4a1d&&_0x10491a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5a4a1d&&_0x10491a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5a4a1d&&_0x10491a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5a4a1d&&_0x10491a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5a4a1d&&_0x10491a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x127755){const _0x2ecd28=this['_suggestionToController']['get'](_0x127755);if(!_0x2ecd28)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2ecd28['view'])||null;}['getSuggestionForAnnotation'](_0x23d2a3){const _0x56a4ae=this['_viewToController']['get'](_0x23d2a3['innerView']);return _0x56a4ae?_0x56a4ae['model']:null;}['_refreshActiveMarkers'](){const _0x48ab41=this['editor']['plugins']['get']('Annotations'),_0x5e3c15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3649b9=Array['from'](_0x48ab41['activeAnnotations'],_0x51ee2a=>_0x51ee2a['innerView'])['filter'](_0x12fde6=>this['_viewToController']['has'](_0x12fde6)),_0x35db1d=[];for(const _0x505f55 of _0x3649b9){const _0x4fd6fa=this['_viewToController']['get'](_0x505f55)['model']['getAllAdjacentSuggestions']();_0x35db1d['push'](..._0x4fd6fa['reduce']((_0x45a777,_0x1fea9e)=>[..._0x45a777,..._0x1fea9e['getMarkerNames']()],[]));}_0x5e3c15['activeMarkers']=_0x35db1d;}['_addUIComponentsToFactory'](){const _0x230b30=this['editor'],_0xc922da=_0x230b30['locale'],_0xb8d244=o(_0xc922da,'Track\x20changes'),_0x20f56f=new _0x46d9b6([{'type':'switchbutton','model':new _0x4f1cfe({'withText':!0x0,'isToggleable':!0x0,'label':_0xb8d244,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4f1cfe({'withText':!0x0,'label':o(_0xc922da,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f1cfe({'withText':!0x0,'label':o(_0xc922da,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f1cfe({'withText':!0x0,'label':o(_0xc922da,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f1cfe({'withText':!0x0,'label':o(_0xc922da,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x230b30['plugins']['has']('TrackChangesPreview')&&_0x20f56f['addMany']([{'type':'separator'},{'type':'button','model':new _0x4f1cfe({'withText':!0x0,'label':o(_0xc922da,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5144cd of _0x20f56f)if(ke(_0x5144cd)){const _0x576c99=_0x230b30['commands']['get'](_0x5144cd['model']['commandName']);_0x5144cd['model']['bind']('isOn','isEnabled')['to'](_0x576c99,'value','isEnabled');}_0x230b30['ui']['componentFactory']['add']('trackChanges',_0x4bc610=>this['_createToolbarButton'](_0x4bc610,_0x20f56f,_0xb8d244)),_0x230b30['ui']['componentFactory']['add']('menuBar:trackChanges',_0x38b42a=>this['_createMenuBarMenu'](_0x38b42a,_0x20f56f,_0xb8d244));}['_createToolbarButton'](_0x23dfc5,_0x264c28,_0x4873ae){const _0x16084c=_0x4c3137(_0x23dfc5,_0x331a62),_0xd64f3e=this['editor']['commands']['get']('trackChanges');_0x16084c['buttonView']['set']({'tooltip':_0x4873ae,'label':_0x4873ae,'icon':_0x34d623}),_0x16084c['buttonView']['bind']('isOn')['to'](_0xd64f3e,'value'),_0x16084c['buttonView']['on']('execute',()=>{_0xd64f3e['execute'](),this['editor']['editing']['view']['focus']();}),_0x1074de(_0x16084c,_0x264c28,{'role':'menu'});const _0xcbe9a7=[];for(const _0x504b27 of _0x264c28)ke(_0x504b27)&&_0xcbe9a7['push'](this['editor']['commands']['get'](_0x504b27['model']['commandName']));const _0x3d1aff=_0x16084c['buttonView'];return _0x3d1aff['actionView']['unbind']('isEnabled'),_0x3d1aff['arrowView']['unbind']('isEnabled'),_0x3d1aff['actionView']['bind']('isEnabled')['to'](_0xd64f3e,'isEnabled'),_0x3d1aff['arrowView']['bind']('isEnabled')['toMany'](_0xcbe9a7,'isEnabled',(..._0x4a5afe)=>_0x4a5afe['some'](_0x337135=>_0x337135)),_0x16084c['on']('execute',_0x1274d1=>{this['editor']['execute'](_0x1274d1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x16084c;}['_createMenuBarMenu'](_0x2507bf,_0x22baa6,_0x99bccf){const _0x35836a=new _0x1c17e8(_0x2507bf),_0x1f945e=this['editor']['commands']['get']('trackChanges');_0x35836a['buttonView']['set']({'label':_0x99bccf,'icon':_0x34d623});const _0x32d902=new _0x1d8891(_0x2507bf);for(const _0x2c07ad of _0x22baa6){if('separator'==_0x2c07ad['type']){_0x32d902['items']['add'](new _0xbe467e(_0x2507bf));continue;}const _0x12ae9e=new _0x131968(_0x2507bf,_0x35836a),_0x1bbd11=new _0x1e3329(_0x2507bf),_0x3718fe=_0x2c07ad['model'];_0x1bbd11['bind'](...Object['keys'](_0x3718fe))['to'](_0x3718fe),_0x1bbd11['delegate']('execute')['to'](_0x35836a),_0x1bbd11['on']('execute',()=>{this['editor']['execute'](_0x3718fe['commandName']),this['editor']['editing']['view']['focus']();}),_0x12ae9e['children']['add'](_0x1bbd11),_0x32d902['items']['add'](_0x12ae9e);}return _0x35836a['bind']('isEnabled')['to'](_0x1f945e,'isEnabled'),_0x35836a['panelView']['children']['add'](_0x32d902),_0x35836a;}['_initializeController'](_0x3c7c3a){const _0x371be0=this['editor'],_0x332996=_0x371be0['config'],_0x41f401=_0x371be0['plugins']['get']('Annotations'),_0x1fd2d2=_0x371be0['plugins']['get']('CommentsRepository'),_0x205f64=_0x371be0['plugins']['get']('EditorAnnotations'),_0x5462db=_0x371be0['plugins']['get'](_0x3654ac)['me'],_0x2e7e1c=_0x332996['get']('trackChanges')['SuggestionThreadView'],_0x182b53=_0x332996['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4757a4,CommentThreadInputView:_0x574059}=_0x371be0['plugins']['get']('CommentsUI');let _0xffccbc,_0x35e11d,_0x4acaec;this['_annotationViews']['has'](_0x3c7c3a['id'])?(_0x35e11d=this['_annotationViews']['get'](_0x3c7c3a['id']),_0xffccbc=_0x35e11d['mainView']):(_0xffccbc=new _0x2e7e1c(_0x371be0['locale'],_0x3c7c3a,_0x5462db,{'disableComments':this['_disableComments'],'editorConfig':{..._0x332996['get']('comments.editorConfig'),'licenseKey':_0x332996['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x332996['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x332996['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x332996['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b2720(_0x332996['get']('locale'),_0x371be0['locale']),'CommentView':_0x332996['get']('comments')['CommentView'],'CommentsListView':_0x4757a4,'CommentThreadInputView':_0x574059,'SuggestionView':_0x182b53}),_0xffccbc['suggestionView']['acceptButton']['on']('execute',()=>{_0x371be0['editing']['view']['focus']();}),_0xffccbc['suggestionView']['discardButton']['on']('execute',()=>{_0x371be0['editing']['view']['focus']();}),_0x35e11d=_0x41f401['createAnnotationView'](this['editor']['locale'],_0xffccbc),_0x35e11d['bind']('isDirty')['to'](_0xffccbc,'isDirty'),_0x35e11d['bind']('length')['to'](_0xffccbc),_0x35e11d['bind']('type')['to'](_0xffccbc,'type',_0x57e823=>'suggestion-'+_0x57e823),_0xffccbc['on']('escape',()=>{_0x4acaec['fire']('escape');}),this['_annotationViews']['set'](_0x3c7c3a['id'],_0x35e11d));const _0x80f23e=_0x1fd2d2['createCommentThreadController'](_0x3c7c3a['commentThread'],_0xffccbc),_0x34f81e=new pe(_0x371be0,_0x3c7c3a,_0xffccbc,_0x80f23e),_0x2710ea=_0x3c7c3a['getAllAdjacentSuggestions']()['filter'](_0x74f537=>_0x74f537['isInContent']);_0xffccbc['descriptionParts']=_0x371be0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2710ea),this['_suggestionToController']['set'](_0x3c7c3a,_0x34f81e),this['_viewToController']['set'](_0xffccbc,_0x34f81e);const _0x5013df=()=>{const _0x1bb74d=[],_0x490dbe=_0x3c7c3a['getAllAdjacentSuggestions']()['filter'](_0xd57250=>_0xd57250['isInContent']);for(const _0x380ad7 of _0x490dbe)_0x1bb74d['push'](..._0x380ad7['getMarkers']());return _0x4af161(_0x371be0['editing'],_0x1bb74d);};_0x4acaec=_0x41f401['createAnnotation']({'view':_0x35e11d,'target':_0x5013df,'type':()=>'suggestion-'+_0x34f81e['view']['type'],'isVisible':!!_0x5013df()}),_0x1fd2d2['_bindAnnotationToEditors'](_0xffccbc,_0x4acaec),_0x41f401['add'](_0x4acaec),_0x205f64['registerAnnotation'](_0x4acaec);}['_destroyController'](_0x96347){const _0x54c2b9=this['editor']['plugins']['get']('CommentsRepository'),_0xcf7b5f=this['editor']['plugins']['get']('Annotations'),_0x354fee=this['_suggestionToController']['get'](_0x96347),_0x5414ca=_0x354fee['view'],_0x7704f1=_0xcf7b5f['getByInnerView'](_0x5414ca);_0x54c2b9['_unbindEditors'](_0x5414ca),_0x7704f1&&_0xcf7b5f['remove'](_0x7704f1),this['_suggestionToController']['delete'](_0x96347),this['_viewToController']['delete'](_0x5414ca),_0x354fee['destroy']();}['_updateController'](_0x1ec408){if(!_0x1ec408['isInContent']||!this['_suggestionToController']['has'](_0x1ec408))return;const _0x14afe6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ddcf7=this['_suggestionToController']['get'](_0x1ec408),_0x30c437=_0x1ec408['getAllAdjacentSuggestions']();_0x3ddcf7['view']['descriptionParts']=_0x14afe6['descriptionFactory']['getDescriptions'](_0x30c437);}['destroy'](){for(const _0x1a8243 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a8243);for(const _0x150f8b of this['_annotationViews']['values']())_0x150f8b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3a1925){return'model'in _0x3a1925;}class Fe extends _0x4540bb{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4efc2b){this['editor']['plugins']['get'](d)['adapter']=_0x4efc2b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2257f6){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2257f6);}['getSuggestions']({skipNotAttached:_0x4d9cc2=!0x1,toJSON:_0x548370=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4d9cc2,'toJSON':_0x548370});}['getSuggestion'](_0x4714e0){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4714e0);}}const p=['Pagination'];class re extends _0x4540bb{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xdffa59=this['editor'];if(_0xdffa59['config']['define']('trackChangesData.editorCreator',_0x294ae0=>{const _0x3673b8=_0xdffa59['model']['document']['getRootNames']()['reduce']((_0x1ffa47,_0x167b01)=>(_0x1ffa47[_0x167b01]='',_0x1ffa47),{});return _0xdffa59['constructor']['create'](_0x3673b8,_0x294ae0);}),'function'!=typeof _0xdffa59['config']['get']('trackChangesData')['editorCreator'])throw new _0x193da4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4137ff){return P(this['editor'],!0x0,_0x4137ff);}['getDataWithDiscardedSuggestions'](_0x216f12){return P(this['editor'],!0x1,_0x216f12);}}class Ge extends _0x4540bb{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2042cb){function _0x24a95c(_0x342bb5){return _0x342bb5['map'](_0x41ec4b=>String['fromCharCode'](_0x41ec4b))['join']('');}super(_0x2042cb),this['result']='end',_0x2042cb[_0x24a95c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24a95c([0x76,0x69,0x65,0x77])][_0x24a95c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24a95c([0x61,0x75,0x74,0x6f]),_0x2042cb[_0x24a95c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x24a95c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24a95c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x24a95c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x24a95c([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 He(_0x4dc7e4){return void 0x0!==_0x4dc7e4['getRootsAttributes'];}async function P(_0x184961,_0x146b24,_0x215834){const _0x5eecea=_0x25bd24(_0x184961,p);_0x5eecea['plugins']['push'](d,Ge),_0x5eecea['rootsAttributes']=He(_0x184961)?_0x184961['getRootsAttributes']():void 0x0;const _0x5a16d2=document['createDocumentFragment'](),_0x45cf49=_0x184961['config']['get']('trackChangesData')['editorCreator'],_0x4cf81d=await _0x45cf49(_0x5eecea,()=>function(_0x4c51db){const _0x1c8449=document['createElement']('div');return _0x4c51db['appendChild'](_0x1c8449),_0x1c8449;}(_0x5a16d2));!function(_0x2c12bd,_0x33ea1f){const _0x448d11=_0x2c12bd['model']['document']['getRootNames']()['reduce']((_0x314873,_0x4d78d6)=>(_0x314873[_0x4d78d6]=_0x2c12bd['data']['get']({'rootName':_0x4d78d6}),_0x314873),{}),_0x2cae45=_0x2c12bd['plugins']['get']('Users')['users']['map'](_0x18bb84=>({'id':_0x18bb84['id'],'name':_0x18bb84['name']})),_0x15f359=_0x2c12bd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x23907d=_0x2c12bd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1005c9=_0x33ea1f['plugins']['get']('Users'),_0xdc246e=_0x33ea1f['plugins']['get']('TrackChangesEditing'),_0x6cd7d1=_0x33ea1f['plugins']['get']('CommentsRepository');for(const _0x3c1261 of _0x6cd7d1['getCommentThreads']())_0x3c1261['remove']();for(const _0x398b8a of _0x2cae45)_0x1005c9['getUser'](_0x398b8a['id'])||_0x1005c9['addUser'](_0x398b8a);_0x1005c9['me']||_0x1005c9['useAnonymousUser']();for(const _0x4a080f of _0x23907d)_0x6cd7d1['addCommentThread'](_0x4a080f);for(const _0x114656 of _0x15f359)_0xdc246e['addSuggestionData'](_0x114656);_0x33ea1f['data']['set'](_0x448d11);}(_0x184961,_0x4cf81d),_0x4cf81d['execute'](_0x146b24?'acceptAllSuggestions':'discardAllSuggestions');const _0x53dcb2=He(_0x4cf81d)?_0x4cf81d['getFullData'](_0x215834):_0x4cf81d['data']['get'](_0x215834);return await _0x4cf81d['destroy'](),_0x53dcb2;}class Me extends _0x570be4{['options'];constructor(_0x23e61e,_0x4f9bc9){super(_0x23e61e),this['options']=_0x4f9bc9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0xdc8c0e,_0x3f5cd8){if(!this['element'])return;const _0x599078=[];for(const [_0x24a90a,_0x1b561e]of _0xdc8c0e){const _0x3872af=document['createElement']('div');_0x3872af['setAttribute']('data-ck-root-name',_0x24a90a),_0x3872af['className']=_0x1b561e['classes']+'\x20ck-track-changes-preview__root-container',_0x3872af['innerHTML']=_0x1b561e['content'],_0x599078['push'](_0x3872af);}_0x3f5cd8(this['element'],_0x599078),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0xfbc864{constructor(_0xd374a3){super(_0xd374a3),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x80b997=this['editor'],_0x634431=_0x80b997['locale'],_0xf67880=_0x80b997['plugins']['get']('Dialog');let _0x52ab36;const _0x18353f=function(_0x25842d){const _0x7d4d3d={};if('editables'in _0x25842d['ui']['view']){for(const [_0x15e242,_0x5847d4]of Object['entries'](_0x25842d['ui']['view']['editables']))_0x7d4d3d[_0x15e242]=_0x5847d4['element'];}else _0x7d4d3d[_0x25842d['model']['document']['getRootNames']()[0x0]]=_0x25842d['ui']['view']['editable']['element'];return _0x7d4d3d;}(_0x80b997),_0x543175=function(_0x445b04){let _0x28cd1f=0x0;for(const _0x1fb426 of Object['values'](_0x445b04))_0x28cd1f=Math['max'](_0x28cd1f,_0x1fb426['getBoundingClientRect']()['width']);let _0x414c48=0x0;for(const _0x5aeb8d of Object['values'](_0x445b04))_0x414c48+=_0x5aeb8d['getBoundingClientRect']()['height'];const _0x463c14=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x484dcc=Math['min'](_0x414c48,_0x463c14);return{'width':_0x28cd1f,'height':_0x484dcc};}(_0x18353f);_0xf67880['show']({'id':'finalContentPreview','title':o(_0x634431,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x634431,{'dialogRects':_0x543175}),'onHide':()=>{_0x52ab36['detachFromDom']();},'onShow':()=>{_0x80b997['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3e0f73=>{const _0x369599=this['_standarizeRootsData'](_0x3e0f73,_0x80b997,_0x18353f);_0xf67880['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x369599,_0x80b997['config']['get']('trackChanges.preview.renderFunction'));}),_0x52ab36=new _0x4482d2(_0x634431,[_0xf67880['view']]),_0x52ab36['attachToDom'](),_0x52ab36['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x80b997['once']('destroy',()=>{_0x52ab36['detachFromDom']();});const _0x5cea5c=_0xf67880['view']['headerView']['class'];_0xf67880['view']['headerView']['class']=_0x5cea5c?_0x5cea5c+'\x20ck-reset_all':'ck-reset_all',_0xf67880['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xf67880['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x13d880=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4d0a5d=_0x13d880['previewMode'],_0x3ca62a={};if('$labels'===_0x4d0a5d){for(const _0x57f3a1 of _0x13d880['getMergeFieldsIds']())_0x3ca62a[_0x57f3a1]=_0x13d880['getLabel'](_0x57f3a1)||_0x57f3a1;}else{const _0x51bcee='$defaultValues'===_0x4d0a5d?_0x13d880['getDefaultValues']():_0x13d880['getDataSetValues'](_0x4d0a5d,!0x0);for(const _0x102332 of Object['entries'](_0x51bcee)){const [_0x340ba3,_0x35c123]=_0x102332;_0x3ca62a[_0x340ba3]=null!==_0x35c123?_0x35c123:_0x13d880['getLabel'](_0x340ba3)||_0x340ba3;}}return{'mergeFieldsData':_0x3ca62a};}['_standarizeRootsData'](_0x29fcbd,_0x2a1059,_0x503fcf){let _0x5ecf67;if('string'==typeof _0x29fcbd){const _0x55a812=_0x2a1059['model']['document']['getRootNames']()[0x0];_0x5ecf67={[_0x55a812]:_0x29fcbd};}else _0x5ecf67=_0x29fcbd;const _0x356127=this['_fixMediaEmbeds'](_0x5ecf67,_0x2a1059),_0x165d61=function(_0x311231,_0x1106c9){for(const [_0x182122,_0x44ebb0]of _0x311231)_0x44ebb0['classes']=_0x1106c9[_0x182122]['classList']['value']['replace']('ck-focused','');return _0x311231;}(this['_sortRoots'](_0x2a1059)['reduce']((_0x3c538a,_0x3db4b7)=>(_0x3c538a['push']([_0x3db4b7,{'content':_0x356127[_0x3db4b7],'classes':''}]),_0x3c538a),[]),_0x503fcf);return _0x165d61;}['_fixMediaEmbeds'](_0x5c2768,_0x49d2f9){if(!_0x49d2f9['plugins']['has']('MediaEmbedEditing'))return _0x5c2768;const _0x2d8ab6=_0x49d2f9['plugins']['get']('MediaEmbedEditing');for(const [_0x282ba3,_0x3227ef]of Object['entries'](_0x5c2768)){const _0x1c5ec3=document['createElement']('div');_0x1c5ec3['innerHTML']=_0x3227ef,(_0x1c5ec3['querySelectorAll']('figure.media')['forEach'](_0x4caaa8=>{const _0x154044=_0x4caaa8['querySelector']('oembed');if(_0x154044){const _0x4dbe56=_0x154044['getAttribute']('url');if(_0x4dbe56){const _0x2e12b2=_0x2d8ab6['registry']['getMediaViewElement'](new _0x5557c0(_0x49d2f9['editing']['view']['document']),_0x4dbe56,{'elementName':'','renderForEditingView':!0x0}),_0x131244=document['createElement']('div');_0x131244['classList']['add']('ck-media__wrapper'),_0x2e12b2['render'](_0x131244,_0x49d2f9['editing']['view']['domConverter']),_0x154044['replaceWith'](_0x131244);}}}),_0x5c2768[_0x282ba3]=_0x1c5ec3['innerHTML']);}return _0x5c2768;}['_sortRoots'](_0x58b0ff){if(!function(_0x5def58){return void 0x0!==_0x5def58['getRootsAttributes'];}(_0x58b0ff))return _0x58b0ff['model']['document']['getRootNames']();const _0x2f7dd7=[],_0x25ee92=new Map();for(const _0x41d955 of _0x58b0ff['model']['document']['getRootNames']()){const _0x26b760=_0x58b0ff['editing']['view']['getDomRoot'](_0x41d955)['getClientRects']()['item'](0x0);_0x2f7dd7['push'](_0x41d955),_0x25ee92['set'](_0x41d955,_0x26b760);}return _0x2f7dd7['sort']((_0x1d8e64,_0x42edc2)=>{const _0x17d403=_0x25ee92['get'](_0x1d8e64),_0x47df0b=_0x25ee92['get'](_0x42edc2);return _0x17d403['y']-_0x47df0b['y']||_0x17d403['x']-_0x47df0b['x'];}),_0x2f7dd7;}}class $e extends _0x4540bb{static get['requires'](){return[re,_0x498133];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x277b5e){super(_0x277b5e),_0x277b5e['commands']['add']('previewFinalContent',new te(this['editor'])),_0x277b5e['config']['define']('trackChanges.preview.renderFunction',(_0x36762c,_0xcbfef7)=>{for(const _0x29eacd of _0xcbfef7)_0x36762c['appendChild'](_0x29eacd);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|