@ckeditor/ckeditor5-track-changes 44.2.0-alpha.2 → 44.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
- 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/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/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,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x260a3a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2033d5,_0x3d5c00){super(),this['id']=_0x3d5c00['id'],this['type']=_0x3d5c00['type'],this['subType']=_0x3d5c00['subType']||null,this['author']=_0x3d5c00['author'],this['creator']=_0x3d5c00['creator']||_0x3d5c00['author'],this['isExternal']=Boolean(_0x3d5c00['attributes']&&_0x3d5c00['attributes']['@external']),this['data']=null,this['_model']=_0x2033d5,this['_onAccept']=_0x3d5c00['onAccept'],this['_onDiscard']=_0x3d5c00['onDiscard'],this['_onAttributesChange']=_0x3d5c00['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3d5c00['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 _0x5175b3=this;for(;_0x5175b3['previous'];)_0x5175b3=_0x5175b3['previous'];return _0x5175b3;}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'](_0x57d809){this['_markerNames']['add'](_0x57d809);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x425cbd=>this['_model']['markers']['get'](_0x425cbd))['filter'](_0x2e4d42=>_0x2e4d42);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1cc059=>{for(const _0x5b6389 of this['getMarkers']())_0x1cc059['removeMarker'](_0x5b6389);}),this['_markerNames']['clear']();}['removeMarker'](_0x4e0335){this['_model']['change'](_0x455cd2=>{_0x455cd2['removeMarker'](_0x4e0335);}),this['_markerNames']['delete'](_0x4e0335);}['addRange'](_0x1ab70d){const _0x23b820='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x23b820),this['_model']['change'](_0x70cdd7=>{_0x70cdd7['addMarker'](_0x23b820,{'range':_0x1ab70d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a2f05){for(const _0x2685a7 of this['getRanges']())if(_0x2685a7['isIntersecting'](_0x3a2f05))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x538680=>_0x538680['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2f2978,_0x1d8a97)=>[..._0x2f2978,..._0x1d8a97['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x526f7c=this['getRanges']();if(0x1!=_0x526f7c['length'])return null;const _0x4e748e=_0x526f7c[0x0],_0x335a64=_0x4e748e['start']['nodeAfter'],_0x151820=_0x4e748e['end']['nodeBefore'];return _0x335a64 instanceof _0x11c608?_0x335a64!=_0x151820?null:_0x335a64: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 _0x5b019e=[];let _0x151800=this['head'];for(;_0x151800;)_0x5b019e['push'](_0x151800),_0x151800=_0x151800['next'];return _0x5b019e;}['setAttribute'](_0x4a9a6f,_0x4ccc32){const _0x5ad5d=_0x2d5436(this['attributes']);_0x9fb260(_0x5ad5d,_0x4a9a6f,_0x4ccc32),_0x22a75d(_0x5ad5d,this['attributes'])||(this['attributes']=_0x5ad5d,this['_onAttributesChange'](_0x5ad5d));}['removeAttribute'](_0x3f3884){const _0x11eedc=_0x2d5436(this['attributes']);_0x2a44e0(_0x11eedc,_0x3f3884),_0x22a75d(_0x11eedc,this['attributes'])||(this['attributes']=_0x11eedc,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 _0x30b629()['substr'](0x1,0x5);}}function o(_0x585b73,_0x48c539,_0x2267e0){const _0x3753ea=_0x585b73['t'],t=_0x585b73['t'];switch(_0x48c539){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',_0x2267e0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2267e0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2267e0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2267e0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2267e0);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',_0x2267e0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2267e0);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',_0x2267e0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2267e0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2267e0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2267e0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2267e0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2267e0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2267e0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2267e0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2267e0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2267e0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2267e0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2267e0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2267e0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2267e0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2267e0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2267e0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2267e0);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'},_0x2267e0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2267e0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2267e0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2267e0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2267e0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2267e0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2267e0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2267e0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2267e0);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'},_0x2267e0);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2267e0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2267e0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2267e0);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 _0x3753ea({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2267e0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3753ea({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2267e0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2267e0);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'},_0x2267e0);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'},_0x2267e0);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'},_0x2267e0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x48c539;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x28b6e3,_0x389e49){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x28b6e3,this['_locale']=_0x389e49;}['getDescriptions'](_0x4f3678){const _0x380595=[],_0x3ed076=new Set(),_0x566590=new Set();for(let _0x90cf53=0x0;_0x90cf53<_0x4f3678['length'];_0x90cf53++){const _0x25d707=_0x4f3678[_0x90cf53];if(!_0x25d707['isInContent'])continue;const _0x40d1a4=this['_handleCustomCallbackDescription'](_0x25d707);if(_0x40d1a4){if(null!=_0x25d707['subType']){if(_0x3ed076['has'](_0x25d707['subType']))continue;_0x3ed076['add'](_0x25d707['subType']);}_0x380595['push'](_0x40d1a4);}else{if('attribute'!=_0x25d707['type'])'insertion'!=_0x25d707['type']&&'deletion'!=_0x25d707['type']||this['_handleInsertRemoveSuggestionDescription'](_0x380595,_0x25d707,_0x4f3678[_0x90cf53+0x1]);else{const _0x1ffb72=_0x25d707['data']['key'];if(_0x566590['has'](_0x1ffb72))continue;_0x566590['add'](_0x25d707['data']['key']),_0x1ffb72==m?this['_handleRenameSuggestionDescription'](_0x380595,_0x25d707):this['_handleAttributeSuggestionDescription'](_0x380595,_0x25d707);}}}return this['_resolveDescriptionItems'](_0x380595);}['registerDescriptionCallback'](_0x17d90b){this['_customCallbacks']['push'](_0x17d90b);}['registerElementLabel'](_0x27ad7f,_0x30c18c,_0x28a7a8=_0x5b63b3['normal']){'function'==typeof _0x27ad7f?_0x5af240(this['_itemLabelsCallbacks'],{'matchingCallback':_0x27ad7f,'label':_0x30c18c,'priority':_0x28a7a8}):this['_itemLabels']['set'](_0x27ad7f,_0x30c18c);}['registerAttributeLabel'](_0xc5927b,_0x4d03b2){this['_attributeLabels']['set'](_0xc5927b,_0x4d03b2);}['getItemLabel'](_0x3798a4,_0x489579=0x1){let _0x5daf44;for(const _0x4dbfc3 of this['_itemLabelsCallbacks'])if(_0x4dbfc3['matchingCallback'](_0x3798a4)){_0x5daf44=_0x4dbfc3['label'];break;}return _0x5daf44||(_0x5daf44=this['_itemLabels']['get'](_0x3798a4['name'])),_0x5daf44?_0x5daf44(_0x489579):0x1!==_0x489579?_0x489579+'\x20'+_0x3798a4['name']+'s':''+_0x3798a4['name'];}['_addDescriptionItems'](_0x57fe05,_0x1f3db0){const _0x37d6f3=_0x1f3db0['getFirstRange']()['getWalker'](),_0x39451e='insertion'==_0x1f3db0['type']?'add':'remove';for(const _0x3b30c0 of _0x37d6f3){const _0x25b6f4=_0x3b30c0['item'],_0x3c3d82=_0x57fe05[_0x57fe05['length']-0x1];if(_0x25b6f4['is']('$textProxy'))_0x3c3d82&&_0x3c3d82['type']['indexOf']('Container')>-0x1&&_0x57fe05['pop'](),_0x3c3d82&&'text'==_0x3c3d82['type']?_0x3c3d82[_0x39451e]+=_0x25b6f4['data']:_0x57fe05['push']({'type':'text','add':'add'==_0x39451e?_0x25b6f4['data']:'','remove':'remove'==_0x39451e?_0x25b6f4['data']:''});else{if(this['_schema']['isObject'](_0x25b6f4)){const _0x3be7eb=_0x25b6f4;if(_0x3c3d82&&_0x3c3d82['type']['indexOf']('Container')>-0x1&&_0x57fe05['pop'](),'elementEnd'==_0x3b30c0['type'])continue;_0x3c3d82&&_0x3c3d82['type']==_0x39451e+'Object'&&_0x3c3d82['element']['name']==_0x3be7eb['name']?_0x3c3d82['quantity']++:_0x57fe05['push']({'type':_0x39451e+'Object','element':_0x3be7eb,'quantity':0x1}),_0x37d6f3['skip'](_0x388ecf=>!('elementEnd'==_0x388ecf['type']&&_0x388ecf['item']==_0x25b6f4));}else{if(this['_schema']['checkChild'](_0x25b6f4,'$text')||_0x25b6f4['is']('element','softBreak')){const _0x36c8b6=_0x25b6f4;if('add'==_0x39451e&&'elementStart'==_0x3b30c0['type']||'remove'==_0x39451e&&'elementEnd'==_0x3b30c0['type'])continue;if(_0x3c3d82&&-0x1==_0x3c3d82['type']['indexOf']('Container')){'text'==_0x3c3d82['type']&&(_0x3c3d82[_0x39451e]+='\x0a');continue;}let _0x237333;if(_0x237333='add'==_0x39451e?_0x36c8b6['nextSibling']&&!this['_schema']['isObject'](_0x36c8b6['nextSibling'])?_0x36c8b6['nextSibling']:null:_0x36c8b6['previousSibling']&&!this['_schema']['isObject'](_0x36c8b6['previousSibling'])?_0x36c8b6['previousSibling']:null,_0x36c8b6['isEmpty']||_0x237333&&_0x237333['isEmpty']){const _0x32a77f=_0x237333&&_0x237333['isEmpty']?_0x237333:_0x36c8b6;_0x3c3d82&&_0x3c3d82['type']==_0x39451e+'EmptyContainer'&&_0x3c3d82['element']['name']==_0x32a77f['name']?_0x3c3d82['quantity']++:_0x57fe05['push']({'type':_0x39451e+'EmptyContainer','element':_0x32a77f,'quantity':0x1});}else _0x57fe05['push']({'type':_0x39451e+'Container','element':_0x36c8b6});}}}}}['_resolveDescriptionItems'](_0x588dd8){const _0x23c192=this['_locale'],_0x309d0d=[],_0x346bd2=[],_0x5d948b=[];for(const _0x3cb789 of _0x588dd8)switch(_0x3cb789['type']){case'text':if(_0x3cb789['add']=_0x3cb789['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cb789['remove']=_0x3cb789['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cb789['add']&&''!=_0x3cb789['remove']){_0x309d0d['push']({'type':'replace','content':o(_0x23c192,'REPLACE_TEXT',['\x22'+_0x3cb789['remove']+'\x22','\x22'+_0x3cb789['add']+'\x22'])});continue;}if(null!=_0x3cb789['add']['match'](/^ +$/)){_0x309d0d['push']({'type':'insertion','content':o(_0x23c192,'*Insert:*\x20%0',o(_0x23c192,'ELEMENT_SPACE',_0x3cb789['add']['length']))});continue;}if(null!=_0x3cb789['remove']['match'](/^ +$/)){_0x309d0d['push']({'type':'deletion','content':o(_0x23c192,'*Remove:*\x20%0',o(_0x23c192,'ELEMENT_SPACE',_0x3cb789['remove']['length']))});continue;}if(''!=_0x3cb789['add']){_0x309d0d['push']({'type':'insertion','content':o(_0x23c192,'*Insert:*\x20%0','\x22'+_0x3cb789['add']+'\x22')});continue;}_0x309d0d['push']({'type':'deletion','content':o(_0x23c192,'*Remove:*\x20%0','\x22'+_0x3cb789['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x309d0d['push']({'type':'insertion','content':o(_0x23c192,'*Insert:*\x20%0',this['getItemLabel'](_0x3cb789['element'],_0x3cb789['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x309d0d['push']({'type':'deletion','content':o(_0x23c192,'*Remove:*\x20%0',this['getItemLabel'](_0x3cb789['element'],_0x3cb789['quantity']))});continue;case'addContainer':_0x309d0d['push']({'type':'insertion','content':o(_0x23c192,'*Split:*\x20%0',this['getItemLabel'](_0x3cb789['element'],_0x3cb789['quantity']))});continue;case'removeContainer':_0x309d0d['push']({'type':'deletion','content':o(_0x23c192,'*Merge:*\x20%0',this['getItemLabel'](_0x3cb789['element'],_0x3cb789['quantity']))});continue;case'addFormat':_0x346bd2['push'](_0x3cb789['key']);continue;case'removeFormat':_0x5d948b['push'](_0x3cb789['key']);continue;default:_0x309d0d['push'](_0x3cb789);}if(_0x346bd2['length']){const _0x2cf4ff=_0x346bd2['map'](_0x1f8251=>this['_attributeLabels']['has'](_0x1f8251)?this['_attributeLabels']['get'](_0x1f8251):_0x1f8251)['join'](',\x20');_0x309d0d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2cf4ff)});}if(_0x5d948b['length']){const _0x212a9a=_0x5d948b['map'](_0x373674=>this['_attributeLabels']['has'](_0x373674)?this['_attributeLabels']['get'](_0x373674):_0x373674)['join'](',\x20');_0x309d0d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x212a9a)});}return _0x309d0d;}['_handleCustomCallbackDescription'](_0x259e0d){for(const _0xed23ad of this['_customCallbacks']){const _0x55b9b3=_0xed23ad(_0x259e0d);if(_0x55b9b3&&'type'in _0x55b9b3)return _0x55b9b3;}}['_handleAttributeSuggestionDescription'](_0x65062a,_0x5b4650){const _0x42ec2a=_0x5b4650['data'],_0x39aa68=void 0x0===_0x42ec2a['newValue']?'removeFormat':'addFormat';_0x65062a['push']({'type':_0x39aa68,'key':_0x42ec2a['key']});}['_handleRenameSuggestionDescription'](_0x2d7e68,_0x22cab5){_0x2d7e68['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x22cab5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2e58c1,_0xbb619b,_0x5e7cd5){if(this['_addDescriptionItems'](_0x2e58c1,_0xbb619b),_0x5e7cd5&&_0x5e7cd5['getFirstRange']()&&!_0xbb619b['getFirstRange']()['end']['isEqual'](_0x5e7cd5['getFirstRange']()['start'])){const _0x406fce=_0x2e58c1[_0x2e58c1['length']-0x1],_0x9c8d15='insertion'==_0xbb619b['type']?'add':'remove';_0x406fce&&'text'==_0x406fce['type']&&(_0x406fce[_0x9c8d15]+='\x0a');}}}class U extends _0x538eb2{['afterInit'](){const _0x2ea933=this['editor'],_0x34ea6d=_0x2ea933['plugins']['get']('TrackChangesEditing');_0x2ea933['commands']['get']('showAIAssistant')&&_0x34ea6d['enableCommand']('showAIAssistant');}}class V extends _0x538eb2{['afterInit'](){const _0x1efc57=this['editor'],_0x14f9cb=_0x1efc57['locale'];if(!_0x1efc57['plugins']['has']('AlignmentEditing'))return;const _0x323aac=_0x1efc57['plugins']['get']('TrackChangesEditing');_0x323aac['enableDefaultAttributesIntegration']('alignment'),_0x323aac['registerBlockAttribute']('alignment'),_0x323aac['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x14f9cb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56ac71=this['editor'],_0x4049ec=_0x56ac71['locale'];_0x56ac71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295dad=>{if('formatBlock'!=_0x295dad['type'])return;const {data:_0x141a8c}=_0x295dad;if(_0x141a8c&&'alignment'==_0x141a8c['commandName']){const _0x162a65=_0x141a8c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4049ec,'*Format:*\x20%0',function(_0x4b6f9c){switch(_0x4b6f9c){case'left':return o(_0x4049ec,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4049ec,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4049ec,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4049ec,'FORMAT_JUSTIFY_TEXT');}}(_0x162a65))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x538eb2{['afterInit'](){const _0x90c611=this['editor'],_0x42047c=_0x90c611['plugins']['get']('TrackChangesEditing'),_0x3a093b=_0x90c611['locale'];for(const _0x11d56a of ti){if(!_0x90c611['plugins']['has'](_0x11d56a))continue;const _0x36fb66=_0x11d56a['slice'](0x0,-0x7)['toLowerCase'](),_0x390bd4='FORMAT_'+_0x36fb66['toUpperCase']();_0x42047c['enableDefaultAttributesIntegration'](_0x36fb66),_0x42047c['registerInlineAttribute'](_0x36fb66),_0x42047c['descriptionFactory']['registerAttributeLabel'](_0x36fb66,o(_0x3a093b,_0x390bd4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x249d9e=this['editor'],_0x548691=_0x249d9e['locale'],_0x14b331=_0x249d9e['plugins']['get']('TrackChangesEditing');function _0x36e9a8(_0xa6f502,_0x200c42){_0x14b331['descriptionFactory']['registerDescriptionCallback'](_0x195be3=>{if('formatInline'!=_0x195be3['type'])return;const {data:_0x8750fe}=_0x195be3;return _0x8750fe&&_0x8750fe['commandName']===_0xa6f502?_0x8750fe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x548691,'*Format:*\x20%0',_0x200c42)}:{'type':'format','content':o(_0x548691,'*Remove\x20format:*\x20%0',_0x200c42)}:void 0x0;});}_0x36e9a8('bold',o(_0x548691,'FORMAT_BOLD')),_0x36e9a8('italic',o(_0x548691,'FORMAT_ITALIC')),_0x36e9a8('underline',o(_0x548691,'FORMAT_UNDERLINE')),_0x36e9a8('code',o(_0x548691,'FORMAT_CODE')),_0x36e9a8('strikethrough',o(_0x548691,'FORMAT_STRIKETHROUGH')),_0x36e9a8('subscript',o(_0x548691,'FORMAT_SUBSCRIPT')),_0x36e9a8('superscript',o(_0x548691,'FORMAT_SUPERSCRIPT'));}}class F extends _0x538eb2{['afterInit'](){const _0x22f077=this['editor'],_0x860270=_0x22f077['locale'];if(!_0x22f077['plugins']['has']('BlockQuoteEditing'))return;const _0x51a9c1=_0x22f077['plugins']['get']('TrackChangesEditing'),_0x266bb7=this['editor']['commands']['get']('blockQuote');_0x51a9c1['enableCommand']('blockQuote',(_0x4baaae,_0x151873={})=>{const _0x30cc63=this['editor']['model']['document']['selection'],_0x55c5aa=_0x151873&&void 0x0!==_0x151873['forceValue']?_0x151873['forceValue']:!_0x266bb7['value'];let _0x1a3773=[];if(_0x55c5aa){const _0x52cd23=Array['from'](_0x30cc63['getSelectedBlocks']())['filter'](_0x30150a=>oo(_0x30150a)||function(_0x138eec,_0x296692){const _0x9e875e=_0x296692['checkChild'](_0x138eec['parent'],'blockQuote'),_0x298a7c=_0x296692['checkChild'](['$root','blockQuote'],_0x138eec);return _0x9e875e&&_0x298a7c;}(_0x30150a,this['editor']['model']['schema']));_0x1a3773=to(_0x52cd23,_0x22f077['model']);}else{const _0x224876=Array['from'](_0x30cc63['getSelectedBlocks']())['filter'](_0x3d6e52=>oo(_0x3d6e52));_0x1a3773=to(_0x224876,_0x22f077['model']);}_0x22f077['model']['change'](()=>{for(const _0x16f709 of _0x1a3773)_0x51a9c1['markBlockFormat'](_0x16f709,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x55c5aa}]});});}),_0x51a9c1['descriptionFactory']['registerDescriptionCallback'](_0x58b57e=>{const {data:_0x408f91}=_0x58b57e;if(_0x408f91&&'blockQuote'==_0x408f91['commandName']){const _0x42ef20=o(_0x860270,'ELEMENT_BLOCK_QUOTE');return _0x408f91['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x860270,'*Set\x20format:*\x20%0',_0x42ef20)}:{'type':'format','content':o(_0x860270,'*Remove\x20format:*\x20%0',_0x42ef20)};}});}}function oo(_0x4d09b7){return'blockQuote'==_0x4d09b7['parent']['name'];}class L extends _0x538eb2{['afterInit'](){const _0x3344aa=this['editor'],_0x23e5fb=_0x3344aa['locale'],_0x1611ba=_0x3344aa['plugins']['get']('TrackChangesEditing');_0x3344aa['plugins']['has']('BookmarkEditing')&&(_0x1611ba['enableCommand']('insertBookmark'),_0x1611ba['enableDefaultAttributesIntegration']('updateBookmark'),_0x1611ba['registerBlockAttribute']('bookmarkId'),_0x1611ba['descriptionFactory']['registerDescriptionCallback'](_0x558cde=>{if('insertion'!=_0x558cde['type']&&'deletion'!=_0x558cde['type']&&'attribute'!=_0x558cde['type'])return;const _0x225c85=_0x558cde['getContainedElement']();if(null==_0x225c85)return;if(!_0x225c85['is']('element','bookmark'))return;const _0x5d3f9e=_0x225c85['getAttribute']('bookmarkId');if('insertion'==_0x558cde['type'])return{'type':'insertion','content':o(_0x23e5fb,'*Insert:*\x20%0','\x22'+_0x5d3f9e+'\x22\x20'+o(_0x23e5fb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x558cde['type'])return{'type':'deletion','content':o(_0x23e5fb,'*Remove:*\x20%0','\x22'+_0x5d3f9e+'\x22\x20'+o(_0x23e5fb,'ELEMENT_BOOKMARK'))};const {data:_0x337af8}=_0x558cde;if(!_0x337af8||'bookmarkId'!=_0x337af8['key'])return;return{'type':'format','content':o(_0x23e5fb,'*Set\x20bookmark:*\x20%0','\x22'+_0x337af8['newValue']+'\x22')};}));}}class J extends _0x538eb2{['afterInit'](){const _0x12f196=this['editor'];_0x12f196['plugins']['has']('CaseChange')&&(_0x12f196['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12f196['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12f196['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x538eb2{['afterInit'](){const _0x2336c8=this['editor'];_0x2336c8['commands']['get']('ckbox')&&_0x2336c8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x538eb2{['afterInit'](){const _0x2b6793=this['editor'];if(!_0x2b6793['plugins']['has']('CodeBlock'))return;const _0x3b3ca9=_0x2b6793['plugins']['get']('TrackChangesEditing'),_0x4b7e8e=_0x2b6793['locale'],_0x268bd0=_0x2b6793['config']['get']('codeBlock')['languages'],_0x40004f=_0x2b6793['commands']['get']('codeBlock');_0x3b3ca9['enableCommand']('indentCodeBlock'),_0x3b3ca9['enableCommand']('outdentCodeBlock'),_0x3b3ca9['enableCommand']('codeBlock',(_0x25eef3,_0x495fcb={})=>{const _0x5d0aff=_0x2b6793['model'],_0x128883=_0x2b6793['model']['document']['selection'],_0x165724=_0x495fcb&&void 0x0!==_0x495fcb['forceValue']?_0x495fcb['forceValue']:!_0x40004f['value'];let _0xeeb9fc;_0x495fcb['language']||(_0x495fcb['language']=_0x268bd0[0x0]['language']),_0xeeb9fc=_0x165724?Array['from'](_0x128883['getSelectedBlocks']())['filter'](_0x346b0d=>eo(_0x346b0d)||function(_0x51d9ce,_0x938e4b){if(_0x51d9ce['is']('rootElement')||_0x938e4b['isLimit'](_0x51d9ce))return!0x1;return _0x938e4b['checkChild'](_0x51d9ce['parent'],'codeBlock');}(_0x346b0d,_0x5d0aff['schema'])):Array['from'](_0x128883['getSelectedBlocks']())['filter'](_0x489c10=>eo(_0x489c10));const _0x4aef69=to(_0xeeb9fc,_0x5d0aff);_0x5d0aff['change'](()=>{for(const _0x3a1d33 of _0x4aef69)_0x3b3ca9['markBlockFormat'](_0x3a1d33,{'commandName':'codeBlock','commandParams':[{..._0x495fcb,'forceValue':_0x165724}],'formatGroupId':'blockName'});});}),(_0x3b3ca9['descriptionFactory']['registerElementLabel']('codeBlock',_0x2cfc67=>o(_0x4b7e8e,'ELEMENT_CODE_BLOCK',_0x2cfc67)),_0x3b3ca9['descriptionFactory']['registerDescriptionCallback'](_0x3d2806=>{if('formatBlock'!=_0x3d2806['type'])return;const _0x4dcd0c=_0x4b7e8e['t'],{data:_0x783578}=_0x3d2806;if(!_0x783578||'codeBlock'!=_0x783578['commandName'])return;const _0x1e37b0=_0x783578['commandParams'][0x0]['language'],_0x3778ff=_0x4dcd0c(_0x268bd0['find'](_0x2842a8=>_0x2842a8['language']===_0x1e37b0)['label'])['toLowerCase']();return _0x783578['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b7e8e,'*Set\x20format:*\x20%0',o(_0x4b7e8e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3778ff+')')}:{'type':'format','content':o(_0x4b7e8e,'*Remove\x20format:*\x20%0',o(_0x4b7e8e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2a7265){return'codeBlock'==_0x2a7265['name'];}class z extends _0x538eb2{['afterInit'](){const _0x5bfbde=this['editor'];if(!_0x5bfbde['plugins']['has']('CommentsEditing'))return;_0x5bfbde['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x263d62,_0x237f64,_0x37ae28){const _0x39ba74=[];for(const _0x26d7af of _0x237f64['getItems']())_0x26d7af['hasAttribute'](_0x263d62)&&_0x39ba74['push'](_0x37ae28['createRangeOn'](_0x26d7af));return _0x39ba74;}function De(_0x460d75,_0x2b7592,{showActiveMarker:_0x233581=!0x0}={}){const _0x100db1=_0x460d75['plugins']['get']('TrackChangesEditing');return(_0x49abe5,_0x41dbd8,_0x53ea97)=>{if(!_0x53ea97['consumable']['test'](_0x41dbd8['markerRange'],_0x49abe5['name']))return;const _0x124f8c=_0x41dbd8['markerRange']['getWalker'](),_0x3f743c=_0x41dbd8['markerRange']['start'],_0x477e06=_0x460d75['model']['schema'];let _0x2f5758=null,_0x45e4f9=null,_0x14aee4=!0x1,_0x5b2984=!0x1;for(const _0x136090 of _0x124f8c){const _0x1e027c=_0x136090['item'];_0x14aee4=_0x14aee4||_0x477e06['isContent'](_0x1e027c);const _0x1c9d8b=_0x53ea97['mapper']['toViewElement'](_0x1e027c);if(_0x1c9d8b&&_0x1c9d8b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x136090['type']&&(_0x477e06['isBlock'](_0x1e027c)&&!_0x477e06['isLimit'](_0x1e027c)&&(_0x1e027c['nextSibling']||_0x3f743c['isAtEnd']?_0x2f5758&&_0x2f5758['parent']==_0x1e027c||(_0x2f5758=_0x1e027c,_0x4fb65f(_0x136090['previousPosition']),_0x5b2984=!0x0):_0x45e4f9=_0x45e4f9||_0x136090['previousPosition']));}function _0x4fb65f(_0x2d8629){const {authorId:_0x1b9b4d}=_0x100db1['_splitMarkerName'](_0x41dbd8['markerName']),_0x27046a=_0x53ea97['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b7592,'data-author-id':_0x1b9b4d}),_0x4f96dd=_0x53ea97['mapper']['toViewPosition'](_0x2d8629);_0x233581&&_0x100db1['activeMarkers']['includes'](_0x41dbd8['markerName'])&&_0x53ea97['writer']['addClass']('ck-suggestion-marker--active',_0x27046a),_0x53ea97['writer']['insert'](_0x4f96dd,_0x27046a),_0x53ea97['mapper']['bindElementToMarker'](_0x27046a,_0x41dbd8['markerName']);}_0x14aee4||_0x5b2984||!_0x45e4f9||_0x4fb65f(_0x45e4f9);};}class K extends _0x538eb2{static get['requires'](){return[_0xcab87];}['init'](){const _0x48bbce=this['editor'],_0x3cb871=_0x48bbce['plugins']['get']('TrackChangesEditing');_0x3cb871['enableCommand']('delete');const _0x190dd2=_0x48bbce['commands']['get']('deleteForward');_0x3cb871['enableCommand']('deleteForward',(_0x50ea61,_0x41d0e0={})=>{const _0x4ac017=_0x48bbce['model']['createSelection'](_0x48bbce['model']['document']['selection']);_0x4ac017['isCollapsed']&&_0x48bbce['model']['modifySelection'](_0x4ac017,{'direction':'forward','unit':_0x41d0e0['unit']});const _0x5776b0=_0x4ac017['getFirstRange'](),_0x5574a6=_0x531fcc['fromRange'](_0x5776b0);let _0x390bfe;_0x50ea61(_0x41d0e0),_0x390bfe='$graveyard'==_0x5574a6['root']['rootName']?_0x48bbce['model']['createRange'](_0x5776b0['start']):_0x48bbce['model']['createRange'](_0x5574a6['start'],_0x5574a6['end']),_0x5574a6['detach'](),_0x48bbce['model']['enqueueChange'](_0x190dd2['buffer']['batch'],_0xb92d0=>{_0x190dd2['buffer']['lock'](),_0xb92d0['setSelection'](_0xb92d0['createRange'](_0x390bfe['end'])),_0x190dd2['buffer']['unlock']();});}),_0x48bbce['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x48bbce,'merge'),{'priority':'high'}),_0x48bbce['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x490a38,_0x3cd1fc,_0x2418ee)=>{_0x2418ee['options']['showSuggestionHighlights']&&De(_0x48bbce,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x490a38,_0x3cd1fc,_0x2418ee);},{'priority':'high'}),_0x48bbce['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3b86eb,_0x11a6bf,_0x3e90b9)=>{const _0x3d3dcd=_0x3e90b9['mapper']['markerNameToElements'](_0x11a6bf['markerName']);if(_0x3d3dcd){for(const _0x993c16 of _0x3d3dcd)_0x993c16['is']('uiElement')&&(_0x3e90b9['mapper']['unbindElementFromMarkerName'](_0x993c16,_0x11a6bf['markerName']),_0x3e90b9['writer']['remove'](_0x993c16));}},{'priority':'high'});}}class W extends _0x538eb2{['afterInit'](){const _0x4bc9d3=this['editor'];if(!_0x4bc9d3['plugins']['has']('ListEditing'))return;const _0x299d31=_0x4bc9d3['locale'],_0x4b2729=_0x4bc9d3['plugins']['get']('TrackChangesEditing'),_0x22abea=_0x4bc9d3['plugins']['has']('TodoListEditing'),_0x1030c3=!!_0x4bc9d3['config']['get']('list.multiBlock');function _0x2b7f73(_0x559597){return{'type':'format','content':''+o(_0x299d31,'*Set\x20format:*\x20%0',_0x559597)};}function _0x4ad99d(_0x291e3a){return{'type':'format','content':''+o(_0x299d31,'*Remove\x20format:*\x20%0',_0x291e3a)};}_0x4b2729['enableDefaultAttributesIntegration']('numberedList'),_0x4b2729['enableDefaultAttributesIntegration']('bulletedList'),_0x4b2729['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b2729['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b2729['enableDefaultAttributesIntegration']('indentList'),_0x4b2729['enableDefaultAttributesIntegration']('outdentList'),_0x4b2729['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b2729['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b2729['registerBlockAttribute']('listItemId'),_0x4b2729['registerBlockAttribute']('listType'),_0x4b2729['registerBlockAttribute']('listIndent'),_0x1030c3&&(_0x4b2729['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b2729['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x22abea&&(_0x4b2729['enableDefaultAttributesIntegration']('todoList'),_0x4b2729['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b2729['registerBlockAttribute']('todoListChecked'),_0x4b2729['descriptionFactory']['registerDescriptionCallback'](_0x35338f=>{const {data:_0x208094}=_0x35338f;if(_0x208094&&'todoListChecked'==_0x208094['key'])return{'type':'format','content':_0x208094['newValue']?o(_0x299d31,'*Check\x20item*'):o(_0x299d31,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x383997=>{if(_0x383997['batch']['isUndo'])return!0x1;let _0x4cd882=!0x1;const _0xe2f14b=_0x4b2729['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55a469=>'todoListChecked'===_0x4b2729['_getAttributeKey'](_0x55a469));for(const _0x53b164 of _0xe2f14b){'todo'!=_0x53b164['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b2729['_findSuggestions'](_0x53b164['getFirstRange'](),'attribute')['find'](_0x195e99=>'listType'===_0x4b2729['_getAttributeKey'](_0x195e99['suggestion']))||(_0x383997['removeMarker'](_0x53b164['getFirstMarker']()),_0x4cd882=!0x0));}return _0x4cd882;})),_0x4b2729['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x299d31,'FORMAT_INDENT'));const _0x5ab72c={'type':'format','content':''};_0x4b2729['descriptionFactory']['registerDescriptionCallback'](_0x11c442=>{const {data:_0x23177a}=_0x11c442;if(!_0x23177a||'listType'!=_0x23177a['key'])return;let _0x21ea87=_0x11c442['head'];for(;_0x21ea87;){if(_0x21ea87['data']&&(('listStyle'==_0x21ea87['data']['key']||'listMarkerStyle'==_0x21ea87['data']['key'])&&(_0x21ea87['data']['newValue']&&'default'!=_0x21ea87['data']['newValue']||'default'!=_0x21ea87['data']['oldValue']&&!_0x23177a['newValue'])||!_0x1030c3&&_0x21ea87['data']['key']==m))return _0x5ab72c;_0x21ea87=_0x21ea87['next'];}if(null==_0x23177a['newValue'])switch(_0x23177a['oldValue']){case'bulleted':return _0x4ad99d(o(_0x299d31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ad99d(o(_0x299d31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ad99d(o(_0x299d31,'ELEMENT_TODO_LIST'));}switch(_0x23177a['newValue']){case'bulleted':return _0x2b7f73(o(_0x299d31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b7f73(o(_0x299d31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b7f73(o(_0x299d31,'ELEMENT_TODO_LIST'));}}),_0x4b2729['descriptionFactory']['registerDescriptionCallback'](_0x412354=>{const {data:_0x483cfd}=_0x412354;if(_0x483cfd&&'listIndent'==_0x483cfd['key'])return null==_0x483cfd['newValue']||null==_0x483cfd['oldValue']&&0x0==_0x483cfd['newValue']?_0x5ab72c:void 0x0;}),_0x4b2729['descriptionFactory']['registerDescriptionCallback'](_0x5d1e9a=>{if('attribute'!=_0x5d1e9a['type'])return;const {data:_0x342d9a}=_0x5d1e9a;if(!_0x342d9a||'listItemId'!=_0x342d9a['key'])return;const _0x4fb674=Te(_0x5d1e9a);return'newValue'==_0x4fb674?{'type':'format','content':o(_0x299d31,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4fb674?{'type':'format','content':o(_0x299d31,'*Split:*\x20list\x20item')}:_0x5ab72c;}),_0x4bc9d3['model']['document']['registerPostFixer'](_0x3a9776=>this['listItemIdFixer'](_0x3a9776)),_0x4bc9d3['model']['document']['registerPostFixer'](_0x47e7b6=>this['noTrackChangesFixer'](_0x47e7b6)),_0x4bc9d3['model']['document']['on']('change:data',(_0xabbd2f,_0x24f31f)=>{if(_0x24f31f['isUndo']||!_0x24f31f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1927f2){if(_0x1927f2['batch']['isUndo']||!_0x1927f2['batch']['isLocal'])return!0x1;let _0x2c53e3=!0x1;const _0x49eb87=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14db3b=>_0x14db3b['data']&&'listItemId'==_0x14db3b['data']['key'])['filter'](_0x402e9e=>_0x402e9e['data']['newValue']&&_0x402e9e['data']['oldValue']);for(const _0x5cf72e of _0x49eb87)Te(_0x5cf72e)||(_0x1927f2['removeMarker'](_0x5cf72e['getFirstMarker']()),_0x2c53e3=!0x0);return _0x2c53e3;}['noTrackChangesFixer'](_0x502b4b){if(_0x502b4b['batch']['isUndo']||!_0x502b4b['batch']['isLocal'])return!0x1;const _0x6cdce6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6cdce6['trackChangesCommand']['value'])return!0x1;let _0x31d15a=!0x1;const _0x184912=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5ea12b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4217d3=>'attribute'==_0x4217d3['type'])['filter'](_0x47180a=>_0x184912['includes'](_0x47180a['attributeKey']));if(0x0==_0x5ea12b['length'])return _0x31d15a;for(const _0x263794 of _0x5ea12b){const _0x55933a=_0x6cdce6['_findSuggestions'](_0x263794['range'],'attribute')['filter'](_0x11944a=>!_0x11944a['meta']['isNextTo'])['map'](_0x53aa98=>_0x53aa98['suggestion'])['filter'](_0x51fa4f=>{const _0x309a47=_0x6cdce6['_getAttributeKey'](_0x51fa4f);return _0x184912['includes'](_0x309a47);});if(_0x55933a['length']){for(const _0x5d5dc2 of _0x55933a)_0x502b4b['removeMarker'](_0x5d5dc2['getFirstMarker']());_0x31d15a=!0x0;}}return _0x31d15a;}['assureChains'](){const _0x190c0c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13f3db=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c99d1;const _0x6fc0c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x967c93=>{if(_0x967c93['data']['oldRange']||!_0x967c93['data']['newRange'])return null;if(!_0x967c93['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x443ea8}=_0x190c0c['_splitMarkerName'](_0x967c93['name']);if(!_0x190c0c['hasSuggestion'](_0x443ea8))return null;const _0x55780b=_0x190c0c['getSuggestion'](_0x443ea8);return _0x13f3db['includes'](_0x55780b['data']['key']);})['map'](_0x374d20=>{const {id:_0x3be776}=_0x190c0c['_splitMarkerName'](_0x374d20['name']),_0x4bdcd7=_0x190c0c['getSuggestion'](_0x3be776);return _0x2c99d1=_0x4bdcd7['attributes']['groupId'],_0x4bdcd7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x6fc0c['size'])return;const _0x259fec=_0x190c0c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x533125=>'attribute'==_0x533125['type']&&_0x533125['data']&&_0x13f3db['includes'](_0x533125['data']['key'])&&_0x533125['attributes']['groupId']!=_0x2c99d1)['map'](_0x59305e=>({'listItem':_0x59305e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x59305e['attributes']['groupId']})),_0x447c05=new Set();for(const {groupId:_0x41cc49,listItem:_0x2caec8}of _0x259fec)_0x6fc0c['has'](_0x2caec8)&&_0x447c05['add'](_0x41cc49);for(const _0xb7a6a of _0x190c0c['getSuggestions']())_0x447c05['has'](_0xb7a6a['attributes']['groupId'])&&_0xb7a6a['setAttribute']('groupId',_0x2c99d1);}['_supportLegacySuggestions'](){const _0x2c3698=this['editor'],_0xb792fc=_0x2c3698['locale'],_0x14ecef=_0x2c3698['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14ecef['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x132d62,_0x356f74){const _0x471702=[];for(let _0x115686 of _0x132d62)_0x115686['start']['nodeAfter']===_0x115686['end']['parent']&&(_0x115686=_0x2c3698['model']['createRange'](_0x2c3698['model']['createPositionAt'](_0x115686['start']['nodeAfter'],0x0))),_0x471702['push'](_0x115686);_0x2c3698['model']['change'](_0x3eabd8=>{const _0x16ac86=_0x2c3698['model']['document']['selection'],_0x5a5bd8=Array['from'](_0x16ac86['getRanges']())['map'](_0x2a1a78=>_0x531fcc['fromRange'](_0x2a1a78));_0x3eabd8['setSelection'](_0x471702),_0x2c3698['commands']['get'](_0x356f74['commandName'])['refresh'](),_0x356f74['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2c3698['execute'](_0x356f74['commandName'],..._0x356f74['commandParams']),_0x3eabd8['setSelection'](_0x5a5bd8);for(const _0x3d0f05 of _0x5a5bd8)_0x3d0f05['detach']();});}),_0x14ecef['descriptionFactory']['registerElementLabel'](function(_0x12ff61){const _0x561874=!_0x2c3698['model']['schema']['isObject'](_0x12ff61),_0xa83e85=_0x12ff61['previousSibling'],_0x230344=_0x12ff61['nextSibling'],_0x5e6678=_0x12ff61['getAttribute']('listItemId'),_0x426063=!_0xa83e85||_0xa83e85['getAttribute']('listItemId')!==_0x5e6678,_0xcfaa4a=!_0x230344||_0x230344['getAttribute']('listItemId')!==_0x5e6678;return _0x561874&&Boolean(_0x5e6678)&&_0x426063&&_0xcfaa4a;},_0x2676e3=>o(_0xb792fc,'ELEMENT_LIST_ITEM',_0x2676e3));}['_registerLegacyDescription'](){const _0x5a400f=this['editor'],_0x1748e7=_0x5a400f['locale'];function _0x484f91(_0x28d9a3){const _0x4945a8=_0x5a400f['commands']['get']('bulletedList')['value'],_0x1c7500=_0x5a400f['commands']['get']('numberedList')['value'];return'numberedList'===_0x28d9a3?_0x4945a8:_0x1c7500;}_0x5a400f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2ecd93){if('formatBlock'!=_0x2ecd93['type'])return;const {data:_0x449fd7}=_0x2ecd93;if(!_0x449fd7)return;let _0x23a750,_0x56e994,_0x4c7deb,_0x4ad34a;switch(_0x449fd7['commandName']){case'bulletedList':_0x4c7deb=_0x449fd7['commandParams'][0x0]['forceValue'],_0x4ad34a=_0x484f91(_0x449fd7['commandName']),_0x23a750=_0x4c7deb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ad34a&&_0x5a400f['config']['get']('list.multiBlock')||(_0x23a750='*Change\x20to:*\x20%0'),_0x56e994={'type':'format','content':o(_0x1748e7,_0x23a750,o(_0x1748e7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c7deb=_0x449fd7['commandParams'][0x0]['forceValue'],_0x4ad34a=_0x484f91(_0x449fd7['commandName']),_0x23a750=_0x4c7deb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ad34a&&_0x5a400f['config']['get']('list.multiBlock')||(_0x23a750='*Change\x20to:*\x20%0'),_0x56e994={'type':'format','content':o(_0x1748e7,_0x23a750,o(_0x1748e7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x23a750='*Indent:*\x20%0',_0x56e994={'type':'format','content':o(_0x1748e7,_0x23a750,o(_0x1748e7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x23a750=function(_0x5da57f){const _0x2dd3f9=_0x5da57f['getFirstRange']();let _0x45f8b4=_0x2dd3f9['start']['nodeAfter'];for(;_0x45f8b4&&_0x2dd3f9['containsItem'](_0x45f8b4);){if(_0x45f8b4['getAttribute']('listIndent')>0x0)return!0x1;_0x45f8b4=_0x45f8b4['nextSibling'];}return!0x0;}(_0x2ecd93)?o(_0x1748e7,'*Format:*\x20remove\x20from\x20%0',o(_0x1748e7,function(_0x4f73ce){return'ELEMENT_'+_0x4f73ce['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2ecd93))):o(_0x1748e7,'*Outdent:*\x20%0',o(_0x1748e7,'ELEMENT_LIST_ITEM')),_0x56e994={'type':'format','content':_0x23a750};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x449fd7['multipleBlocks']&&(_0x23a750='*Merge:*\x20%0',_0x56e994={'type':'deletion','content':o(_0x1748e7,_0x23a750,o(_0x1748e7,'ELEMENT_LIST_ITEM'))});}return _0x56e994;});}}function Te(_0x3ca05e){let _0x4e19f1=_0x3ca05e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4e19f1;){const _0x673428=_0x4e19f1['getAttribute']('listItemId');if(!_0x673428)return!0x1;if(_0x673428==_0x3ca05e['data']['newValue'])return'newValue';if(_0x673428==_0x3ca05e['data']['oldValue'])return'oldValue';_0x4e19f1=_0x4e19f1['previousSibling'];}return!0x1;}class Se extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c6370=this['editor']['config']['get']('list.properties'),_0x3ed17f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c6370['styles']&&(_0x3ed17f['enableDefaultAttributesIntegration']('listStyle'),_0x3ed17f['registerBlockAttribute']('listStyle')),_0x4c6370['reversed']&&(_0x3ed17f['enableDefaultAttributesIntegration']('listReversed'),_0x3ed17f['registerBlockAttribute']('listReversed')),_0x4c6370['startIndex']&&(_0x3ed17f['enableDefaultAttributesIntegration']('listStart'),_0x3ed17f['registerBlockAttribute']('listStart'));const _0x5d8634={'type':'format','content':''};_0x3ed17f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4dac86=this['editor']['locale'];_0x3ed17f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4dac86,'FORMAT_LIST_REVERSED')),_0x3ed17f['descriptionFactory']['registerDescriptionCallback'](_0xb1d591=>{const {data:_0xabc166}=_0xb1d591;if(_0xabc166&&'listReversed'==_0xabc166['key'])return null==_0xabc166['newValue']||0x0==_0xabc166['newValue']&&null==_0xabc166['oldValue']?_0x5d8634:void 0x0;}),_0x3ed17f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4dac86,'FORMAT_LIST_START')),_0x3ed17f['descriptionFactory']['registerDescriptionCallback'](_0x530257=>{const {data:_0x1888cd}=_0x530257;if(_0x1888cd&&'listStart'==_0x1888cd['key'])return null==_0x1888cd['newValue']||0x1==_0x1888cd['newValue']&&null==_0x1888cd['oldValue']?_0x5d8634:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3afab7=>{if(_0x3afab7['batch']['isUndo'])return!0x1;let _0x339c79=!0x1;const _0x624d31=_0x3ed17f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e8a78=>{const _0x261844=_0x3ed17f['_getAttributeKey'](_0x2e8a78);return'listStart'==_0x261844||'listReversed'==_0x261844;});for(const _0x97820b of _0x624d31){const _0x19d8a0=_0x97820b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x19d8a0||'customNumbered'==_0x19d8a0)continue;_0x3ed17f['_findSuggestions'](_0x97820b['getFirstRange'](),'attribute')['find'](_0xad9093=>'listType'==_0x3ed17f['_getAttributeKey'](_0xad9093['suggestion']))||(_0x3afab7['removeMarker'](_0x97820b['getFirstMarker']()),_0x339c79=!0x0);}return _0x339c79;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x390cf3){const _0x5402c9=this['editor']['locale'],{data:_0x485d84}=_0x390cf3,_0x379f65={'type':'format','content':''};if(!_0x485d84||'listStyle'!=_0x485d84['key'])return;if(!_0x485d84['oldValue'])return'default'==_0x485d84['newValue']?_0x379f65:{'type':'format','content':''+o(_0x5402c9,'*Set\x20format:*\x20%0',o(_0x5402c9,this['_getTranslationKeyForListStyle'](_0x485d84['newValue'])))};if(!_0x485d84['newValue']){if('default'==_0x485d84['oldValue'])return _0x379f65;let _0x599725=_0x390cf3['head'];for(;_0x599725;){if(_0x599725['data']&&'listType'==_0x599725['data']['key']&&_0x599725['data']['newValue'])return _0x379f65;_0x599725=_0x599725['next'];}return{'type':'format','content':''+o(_0x5402c9,'*Remove\x20format:*\x20%0',o(_0x5402c9,this['_getTranslationKeyForListStyle'](_0x485d84['oldValue'])))};}if('default'!=_0x485d84['newValue'])return{'type':'format','content':''+o(_0x5402c9,'*Set\x20format:*\x20%0',o(_0x5402c9,this['_getTranslationKeyForListStyle'](_0x485d84['newValue'])))};let _0x1907a2=_0x390cf3['head'];for(;_0x1907a2;){if(_0x1907a2['data']&&'listType'==_0x1907a2['data']['key']&&_0x1907a2['data']['newValue']&&_0x1907a2['data']['oldValue'])return _0x379f65;_0x1907a2=_0x1907a2['next'];}return{'type':'format','content':o(_0x5402c9,'*Set\x20format:*\x20%0',o(_0x5402c9,'ELEMENT_'+_0x390cf3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xc0997a=this['editor'],_0x323b0c=_0xc0997a['locale'];_0xc0997a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3470b6=>{if('formatBlock'!=_0x3470b6['type'])return;const {data:_0x4c4513}=_0x3470b6;if(!_0x4c4513)return;let _0x5136b8,_0x3cbf97;switch(_0x4c4513['commandName']){case'listStyle':_0x5136b8='*Change\x20to:*\x20%0',_0x3cbf97={'type':'format','content':o(_0x323b0c,_0x5136b8,o(_0x323b0c,this['_getTranslationKeyForListStyle'](_0x4c4513['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5136b8=_0x4c4513['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cbf97={'type':'format','content':o(_0x323b0c,_0x5136b8)};break;case'listStart':_0x5136b8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cbf97={'type':'format','content':o(_0x323b0c,_0x5136b8,_0x4c4513['commandParams'][0x0]['startIndex'])};}return _0x3cbf97;});}['_getTranslationKeyForListStyle'](_0x5123e4){return'ELEMENT_'+function(_0x1c2741){if(_e['includes'](_0x1c2741))return'bulleted';if(Re['includes'](_0x1c2741))return'numbered';return null;}(_0x5123e4)['toUpperCase']()+'_LIST_'+_0x5123e4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x538eb2{static get['requires'](){return[_0x3a4cff];}['init'](){const _0x10950=this['editor'],_0x598b6b=_0x10950['plugins']['get']('TrackChangesEditing'),_0x342e34=_0x10950['commands']['get']('enter');_0x598b6b['enableCommand']('enter',()=>{_0x10950['model']['change'](_0x378eeb=>{const _0x1b13eb=_0x10950['model']['document']['selection'],_0x5f5ca9=_0x1b13eb['getFirstPosition'](),_0x39e698=_0x531fcc['fromRange'](_0x1b13eb['getFirstRange']());if(_0x342e34['enterBlock'](_0x378eeb)){const _0x2faa98=_0x10950['model']['createPositionAt'](_0x5f5ca9['parent']['nextSibling'],0x0),_0x2173e6=_0x378eeb['createRange'](_0x5f5ca9,_0x2faa98);_0x598b6b['markInsertion'](_0x2173e6);}else _0x378eeb['setSelection'](_0x378eeb['createRange'](_0x39e698['end']));_0x39e698['detach'](),_0x342e34['fire']('afterExecute',{'writer':_0x378eeb});});}),_0x10950['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x10950,'split'),{'priority':'high'}),_0x10950['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x14ebfd,_0x7b7542,_0x4af7b6)=>{const _0x5ae4d0=_0x4af7b6['mapper']['markerNameToElements'](_0x7b7542['markerName']);if(_0x5ae4d0){for(const _0x1c1937 of _0x5ae4d0)_0x1c1937['hasClass']('ck-suggestion-marker-split')&&(_0x4af7b6['mapper']['unbindElementFromMarkerName'](_0x1c1937,_0x7b7542['markerName']),_0x4af7b6['writer']['remove'](_0x1c1937));}},{'priority':'high'}),_0x10950['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x17ddec,_0x3ac548,_0x5ecd97)=>{_0x5ecd97['options']['showSuggestionHighlights']&&De(_0x10950,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x17ddec,_0x3ac548,_0x5ecd97);},{'priority':'high'});}}class Y extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3d1bee=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d1bee['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3d1bee['enableCommand']('findNext'),_0x3d1bee['enableCommand']('findPrevious'),_0x3d1bee['enableCommand']('replace'),_0x3d1bee['enableCommand']('replaceAll');}['handleFindCommand'](_0x2fb163,_0x2c2991,_0x47a999={}){const _0x225500=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2fb163(_0x15d570=>{let _0x21cc86=('string'==typeof _0x2c2991?_0x225500['findByTextCallback'](_0x2c2991,_0x47a999):_0x2c2991)(_0x15d570);Array['isArray'](_0x21cc86)&&(_0x21cc86={'results':_0x21cc86,'searchText':'string'==typeof _0x2c2991?_0x2c2991:''});const _0x3d93aa=_0x21cc86['results']['filter'](_0x8e4f2a=>!0x1===this['_isInDeletionRange'](_0x8e4f2a,_0x15d570['item']));return{..._0x21cc86,'results':_0x3d93aa};},_0x47a999);}['_isInDeletionRange'](_0x4de275,_0x355ea6){const _0x25bcbe=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x355ea6,_0x4de275['start']),this['editor']['model']['createPositionAt'](_0x355ea6,_0x4de275['end']));for(const _0x1743cc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25bcbe['getIntersection'](_0x1743cc['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x538eb2{['afterInit'](){const _0x37bb1a=this['editor']['locale'],_0x32c206=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x34512f,commandName:_0x5d7193}of ro)this['editor']['plugins']['has'](_0x34512f)&&(_0x32c206['enableDefaultAttributesIntegration'](_0x5d7193),_0x32c206['registerInlineAttribute'](_0x5d7193));_0x32c206['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x37bb1a,'FORMAT_FONT_SIZE')),_0x32c206['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x37bb1a,'FORMAT_FONT_FAMILY')),_0x32c206['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x37bb1a,'FORMAT_FONT_COLOR')),_0x32c206['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x37bb1a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10db27=this['editor'],_0x4042bb=_0x10db27['locale'];_0x10db27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d3642=>{const _0x3254b0=_0x4042bb['t'];if('formatInline'!=_0x3d3642['type'])return;const {data:_0x9c71a9}=_0x3d3642;if(null!=_0x9c71a9){if('fontSize'==_0x9c71a9['commandName']){const _0x4b8b2f=_0x9c71a9['commandParams'][0x0]['value'];if(_0x4b8b2f){const _0x2a0be2=_0x3254b0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xd436bf=>_0xd436bf['model']==_0x4b8b2f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4042bb,'*Set\x20font\x20size:*\x20%0',_0x2a0be2)};}return{'type':'format','content':o(_0x4042bb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x9c71a9['commandName']){const _0x52d267=_0x9c71a9['commandParams'][0x0]['value'];return _0x52d267?{'type':'format','content':o(_0x4042bb,'*Set\x20font\x20family:*\x20%0',_0x52d267)}:{'type':'format','content':o(_0x4042bb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x9c71a9['commandName']){const _0x5307ec=_0x9c71a9['commandParams'][0x0]['value'];if(_0x5307ec){const _0x448cc8=_0x1a7c2f(this['editor']['config']['get']('fontColor.colors'))['find'](_0xd47cb=>_0xd47cb['model']==_0x5307ec);let _0x8ccd9e=_0x5307ec,_0x3d6792='';return _0x448cc8&&(_0x8ccd9e=_0x448cc8['label'],_0x3d6792=_0x3254b0(_0x8ccd9e)['toLowerCase']()),{'type':'format','content':o(_0x4042bb,'*Set\x20font\x20color:*\x20%0',_0x3d6792)['trim'](),'color':{'value':_0x5307ec,'title':_0x3d6792||_0x8ccd9e}};}return{'type':'format','content':o(_0x4042bb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x9c71a9['commandName']){const _0x8df0fd=_0x9c71a9['commandParams'][0x0]['value'];if(_0x8df0fd){const _0x552851=_0x1a7c2f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x238934=>_0x238934['model']==_0x8df0fd);let _0x407522=_0x8df0fd,_0x4df103='';return _0x552851&&(_0x407522=_0x552851['label'],_0x4df103=_0x3254b0(_0x407522)['toLowerCase']()),{'type':'format','content':o(_0x4042bb,'*Set\x20font\x20background\x20color:*\x20%0',_0x4df103)['trim'](),'color':{'value':_0x8df0fd,'title':_0x4df103||_0x407522}};}return{'type':'format','content':o(_0x4042bb,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x538eb2{['afterInit'](){const _0x41d1dc=this['editor'],_0x5f2180=_0x41d1dc['plugins']['get']('TrackChangesEditing'),_0x28f855=_0x41d1dc['commands']['get']('copyFormat'),_0x5bd925=_0x41d1dc['commands']['get']('pasteFormat');_0x28f855&&_0x5bd925&&(_0x5f2180['enableDefaultAttributesIntegration']('pasteFormat'),_0x5f2180['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x467637=this['editor'],_0x519ccc=_0x467637['locale'];_0x467637['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a9fd=>{if('formatBlock'!=_0x21a9fd['type']&&'formatInline'!=_0x21a9fd['type'])return;const {data:_0x28f28a}=_0x21a9fd;if(_0x28f28a&&'pasteFormat'===_0x28f28a['commandName']){const _0x1bb724=[],_0x56c034=_0x28f28a['commandParams'][0x0];for(const [_0x208363,_0x5e9868]of Object['entries'](_0x56c034))_0x1bb724['push'](so(_0x467637,_0x208363,_0x5e9868));return _0x1bb724['length']?{'type':'format','content':o(_0x519ccc,'*Set\x20format\x20to:*\x20%0',_0x1bb724['join'](',\x20'))}:{'type':'format','content':o(_0x519ccc,'*Remove\x20all\x20formatting*')};}});}}function so(_0x35b70e,_0xa27779,_0x512ab3){const _0xb12515=_0x35b70e['locale']['t'],_0x2aeef4=_0xa27779['split'](/(?=[A-Z])/)['join']('\x20'),_0x3f0059=_0xb12515(_0x2aeef4['charAt'](0x0)['toUpperCase']()+_0x2aeef4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x512ab3)return _0x3f0059;if('fontColor'===_0xa27779||'fontBackgroundColor'===_0xa27779){const _0x30f1fe=_0x1a7c2f(_0x35b70e['config']['get']('fontColor.colors'))['find'](_0x2a5d6b=>_0x2a5d6b['model']==_0x512ab3);return _0x3f0059+'\x20('+(_0x30f1fe?_0xb12515(_0x30f1fe['label'])['toLowerCase']():_0x512ab3)+')';}if('fontSize'===_0xa27779&&isNaN(parseFloat(_0x512ab3))){const _0x4b6f81=_0x35b70e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x35b70e['config']['get']('fontSize.options'))['find'](_0x224dda=>_0x224dda['model']==_0x512ab3);return _0x3f0059+'\x20('+(_0x4b6f81?_0xb12515(_0x4b6f81['title'])['toLowerCase']():_0x512ab3)+')';}return _0x3f0059+'\x20('+_0x512ab3+')';}class nt extends _0x538eb2{['_headingOptions'];['afterInit'](){const _0x422788=this['editor'];if(!_0x422788['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x422788['config']['get']('heading.options');const _0x506038=_0x422788['locale'],_0xee060d=_0x422788['plugins']['get']('TrackChangesEditing');_0xee060d['enableDefaultAttributesIntegration']('heading');for(const _0x45f8c0 of this['_headingOptions'])'paragraph'!=_0x45f8c0['model']&&_0xee060d['descriptionFactory']['registerElementLabel'](_0x45f8c0['model'],_0xae6f47=>{const _0x2960b3=this['_getHeadingLevel'](_0x45f8c0['model']);return null!==_0x2960b3?_0x580079(_0xae6f47,_0x2960b3):_0x2e5b36(_0xae6f47,_0x45f8c0['title']);});function _0x580079(_0x381b01,_0x4d5543){return o(_0x506038,'ELEMENT_HEADING',[_0x381b01,_0x4d5543]);}function _0x2e5b36(_0x1684ca,_0x14b5fa){return o(_0x506038,'ELEMENT_HEADING_CUSTOM',[_0x1684ca,_0x14b5fa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38b3da=this['editor'],_0x25116a=_0x38b3da['locale'];function _0xbe5dbd(_0x10d3ec,_0xf0bb7){return o(_0x25116a,'ELEMENT_HEADING_CUSTOM',[_0x10d3ec,_0xf0bb7]);}_0x38b3da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ce3ed=>{if('formatBlock'!=_0x1ce3ed['type'])return;const {data:_0x3cc7a8}=_0x1ce3ed;if(_0x3cc7a8&&'heading'==_0x3cc7a8['commandName']){const _0x11886d=_0x3cc7a8['commandParams'][0x0]['value'],_0x3d6f49=this['_getHeadingLevel'](_0x11886d);if(null!==_0x3d6f49)return{'type':'format','content':o(_0x25116a,'*Change\x20to:*\x20%0',(_0x4e38f1=0x1,_0x9d4ace=_0x3d6f49,o(_0x25116a,'ELEMENT_HEADING',[_0x4e38f1,_0x9d4ace])))};const _0x574a07=this['_headingOptions']['find'](_0x34ca5d=>_0x34ca5d['model']===_0x11886d)['title'];return{'type':'format','content':o(_0x25116a,'*Change\x20to:*\x20%0',_0xbe5dbd(0x1,_0x574a07))};}var _0x4e38f1,_0x9d4ace;});}['_getHeadingLevel'](_0x1b02b8){const _0x2b9071=_0x1b02b8['match'](/^heading(\d+)/);if(_0x2b9071)return _0x2b9071[0x1];const _0xe5bfb=this['_headingOptions']?.['find'](_0x2d2a99=>_0x2d2a99['model']==_0x1b02b8);if(_0xe5bfb&&_0xe5bfb['view']){const _0x53f151=_0xe5bfb['view'],_0x414bb1=(_0x53f151['name']??_0x53f151)['match'](/^h(\d+)/);if(_0x414bb1)return _0x414bb1[0x1];}return null;}}class it extends _0x538eb2{['afterInit'](){const _0x309450=this['editor'];if(!_0x309450['plugins']['has']('HighlightEditing'))return;const _0x261abf=_0x309450['plugins']['get']('TrackChangesEditing'),_0x277576=_0x309450['locale'];_0x261abf['enableDefaultAttributesIntegration']('highlight'),_0x261abf['registerInlineAttribute']('highlight'),_0x261abf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x277576,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x314c03=this['editor'],_0x3246bb=_0x314c03['locale'];_0x314c03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5297d4=>{if('formatInline'!=_0x5297d4['type'])return;const {data:_0x512161}=_0x5297d4;if(_0x512161&&'highlight'==_0x512161['commandName']){const _0x363b09=_0x3246bb['t'],_0x50dbc0=_0x512161['commandParams'][0x0]['value'];if(_0x50dbc0){const _0x357e67=_0x314c03['config']['get']('highlight.options')['find'](_0x5db407=>_0x5db407['model']==_0x50dbc0),_0x11a865=_0x363b09(_0x357e67['title'])['toLowerCase']();return{'type':'format','content':o(_0x3246bb,'*Set\x20highlight:*\x20%0',_0x11a865),'color':{'value':_0x357e67['color'],'title':_0x357e67['title']}};}return{'type':'format','content':o(_0x3246bb,'*Remove\x20highlight*',o(_0x3246bb,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x538eb2{['afterInit'](){const _0x14ad6c=this['editor'];if(!_0x14ad6c['plugins']['has']('HorizontalLineEditing'))return;_0x14ad6c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xbdb12f=_0x14ad6c['plugins']['get']('TrackChangesEditing'),_0x799f5a=_0x14ad6c['locale'];_0xbdb12f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2ebcb0=>o(_0x799f5a,'ELEMENT_HORIZONTAL_LINE',_0x2ebcb0)),_0x14ad6c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ef308,{writer:_0x1e3d1e,options:_0x13a0c1})=>{if(!_0x13a0c1['showSuggestionHighlights'])return null;const _0x20598a=_0x1e3d1e['createContainerElement']('div'),_0x401221=_0x1e3d1e['createEmptyElement']('hr');return _0x1e3d1e['addClass']('ck-horizontal-line',_0x20598a),_0x1e3d1e['insert'](_0x1e3d1e['createPositionAt'](_0x20598a,0x0),_0x401221),_0x20598a;},'converterPriority':'high'});}}class st extends _0x538eb2{['afterInit'](){const _0x4950d3=this['editor'];if(!_0x4950d3['plugins']['has']('HtmlEmbed'))return;const _0x1a3e6e=_0x4950d3['plugins']['get']('TrackChangesEditing'),_0x3f4241=_0x4950d3['locale'];_0x1a3e6e['descriptionFactory']['registerElementLabel']('rawHtml',_0x161036=>o(_0x3f4241,'ELEMENT_HTML_EMBED',_0x161036)),_0x1a3e6e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1a3e6e['registerBlockAttribute']('value'),_0x1a3e6e['descriptionFactory']['registerDescriptionCallback'](_0x19c04a=>{if('attribute'!=_0x19c04a['type'])return;const {data:_0x25118a}=_0x19c04a;if(_0x25118a&&'value'==_0x25118a['key']&&_0x19c04a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x92977e=o(_0x3f4241,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f4241,'*Change\x20%0\x20content*',_0x92977e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490f9f=this['editor'],_0x4804fd=_0x490f9f['locale'];_0x490f9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40291f=>{if('formatBlock'!=_0x40291f['type'])return;const {data:_0x2c7e99}=_0x40291f;if(_0x2c7e99&&'htmlEmbed'==_0x2c7e99['commandName']){const _0x15a12b=o(_0x4804fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4804fd,'*Change\x20%0\x20content*',_0x15a12b)};}});}}class ot extends _0x538eb2{['afterInit'](){const _0x59d305=this['editor'];if(!_0x59d305['plugins']['has']('ImageEditing'))return;const _0x4bdadf=_0x59d305['plugins']['get']('TrackChangesEditing'),_0x5a5522=_0x59d305['plugins']['get']('ImageUtils'),_0x717bd1=_0x59d305['locale'];_0x4bdadf['enableCommand']('insertImage'),_0x4bdadf['descriptionFactory']['registerElementLabel']('imageBlock',_0x422e68=>o(_0x717bd1,'ELEMENT_IMAGE',_0x422e68)),_0x4bdadf['descriptionFactory']['registerElementLabel']('imageInline',_0x1adbef=>o(_0x717bd1,'ELEMENT_INLINE_IMAGE',_0x1adbef)),_0x4bdadf['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x717bd1,'ELEMENT_CAPTION')),_0x59d305['plugins']['has']('ImageUploadEditing')&&_0x4bdadf['enableCommand']('uploadImage'),_0x59d305['plugins']['has']('ImageBlockEditing')&&_0x59d305['plugins']['has']('ImageInlineEditing')&&(_0x4bdadf['enableCommand']('imageTypeInline',(_0x115cc1,_0x40afaf)=>{const _0x6422a7=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']);_0x59d305['model']['change'](()=>{_0x4bdadf['markBlockFormat'](_0x6422a7,{'commandName':'imageTypeInline','commandParams':[_0x40afaf]},[],'convertBlockImageToInline');});}),_0x4bdadf['enableCommand']('imageTypeBlock',(_0x2434a4,_0x3b35d1)=>{_0x59d305['model']['change'](_0x45f28b=>{let _0x33a8d5=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']),_0x45e374=_0x45f28b['createRangeOn'](_0x33a8d5);const _0x446a76=_0x375802['fromPosition'](_0x45e374['start'],'toPrevious'),_0x1703e9=_0x375802['fromPosition'](_0x45e374['end'],'toNext');_0x4bdadf['forceDefaultExecution'](()=>_0x2434a4(_0x3b35d1)),_0x33a8d5=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']),_0x45e374=_0x45f28b['createRangeOn'](_0x33a8d5);const _0xc4a231=_0x45f28b['createRange'](_0x446a76,_0x1703e9);_0x446a76['detach'](),_0x1703e9['detach'](),_0x4bdadf['markBlockFormat'](_0x33a8d5,{'commandName':'imageTypeInline','commandParams':[_0x3b35d1]},[],'convertInlineImageToBlock'),_0xc4a231['start']['isBefore'](_0x45e374['start'])&&_0x4bdadf['markInsertion'](_0x45f28b['createRange'](_0xc4a231['start'],_0x45e374['start']),'convertInlineImageToBlock'),_0x45e374['end']['isBefore'](_0xc4a231['end'])&&_0x4bdadf['markInsertion'](_0x45f28b['createRange'](_0x45e374['end'],_0xc4a231['end']),'convertInlineImageToBlock');});}),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4bdadf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2c745c])=>{const _0x3b053e=_0x4bdadf['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3af4f7=_0x2c745c['start'],_0x573ca1=_0x2c745c['end'];const _0x383f86=_0x59d305['model']['schema']['getNearestSelectionRange'](_0x3af4f7,'backward'),_0x3f12bc=_0x59d305['model']['schema']['getNearestSelectionRange'](_0x573ca1,'forward');_0x383f86['isCollapsed']&&(_0x3af4f7=_0x383f86['start']),_0x3f12bc['isCollapsed']&&(_0x573ca1=_0x3f12bc['end']),_0x3b053e([_0x59d305['model']['createRange'](_0x3af4f7,_0x573ca1)]);}),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x518e66),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x518e66)),_0x59d305['plugins']['has']('ImageCaptionEditing')&&(_0x4bdadf['enableCommand']('toggleImageCaption',(_0x31bf1c,_0x244a41)=>{const _0xbd3fcc=_0x59d305['plugins']['get']('ImageCaptionUtils');let _0x30064f=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']),_0x5e7192=_0xbd3fcc['getCaptionFromImageModelElement'](_0x30064f);_0x59d305['model']['change'](()=>{if(_0x5e7192)return void _0x4bdadf['markDeletion'](_0x59d305['model']['createRangeOn'](_0x5e7192));const _0x354aa6=_0x5a5522['isBlockImage'](_0x30064f);_0x31bf1c(_0x244a41),_0x30064f=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']),_0x5e7192=_0xbd3fcc['getCaptionFromImageModelElement'](_0x30064f),_0x4bdadf['markInsertion'](_0x59d305['model']['createRangeOn'](_0x5e7192),_0x354aa6?null:'imageCaption');});}),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x518e66));const _0x50b50d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d2bd8(_0x2b7ee6,_0x475d3c){const _0x46ce62=_0x50b50d['findIndex'](({type:_0x4a2a90,subType:_0x200063})=>_0x2b7ee6['type']==_0x4a2a90&&_0x2b7ee6['subType']==_0x200063),_0x34f5df=_0x50b50d['findIndex'](({type:_0x2f578d,subType:_0x2f5439})=>_0x475d3c['type']==_0x2f578d&&_0x475d3c['subType']==_0x2f5439);if(_0x46ce62<0x0||_0x34f5df<0x0)return!0x1;const _0x241e15=_0x2b7ee6['getFirstRange'](),_0x4d9fa5=_0x475d3c['getFirstRange']();if((0x0==_0x46ce62||0x1==_0x46ce62)&&0x2==_0x34f5df&&_0x241e15['isIntersecting'](_0x4d9fa5))return!0x0;if(0x2==_0x46ce62&&0x3==_0x34f5df){const _0x412514=_0x4bdadf['_findSuggestions'](_0x241e15,'insertion')['filter'](({suggestion:_0x1d6f83,meta:_0xb798e3})=>_0xb798e3['isOwn']&&'convertInlineImageToBlock'==_0x1d6f83['subType']);if(_0x412514['length']>0x1&&_0x4d9fa5['end']['isEqual'](_0x241e15['start']))return!0x0;if(0x1==_0x412514['length']&&(_0x241e15['start']['isEqual'](_0x4d9fa5['end'])||_0x241e15['end']['isEqual'](_0x4d9fa5['start'])))return!0x0;}if(0x3==_0x46ce62&&0x3==_0x34f5df&&_0x241e15['start']['isBefore'](_0x4d9fa5['start'])){const _0x2f48b6=_0x241e15['end']['nodeAfter'],_0x50575b=_0x4d9fa5['start']['nodeBefore'];return _0x5a5522['isBlockImage'](_0x2f48b6)&&_0x2f48b6===_0x50575b;}return!0x1;}function _0x518e66(_0x14e1e2,_0x1fd2c0){return _0x5d2bd8(_0x14e1e2,_0x1fd2c0)?[_0x14e1e2,_0x1fd2c0]:_0x5d2bd8(_0x1fd2c0,_0x14e1e2)?[_0x1fd2c0,_0x14e1e2]:null;}_0x59d305['plugins']['has']('ImageResize')&&(_0x4bdadf['enableDefaultAttributesIntegration']('resizeImage'),_0x4bdadf['registerBlockAttribute']('resizedWidth'),_0x4bdadf['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x717bd1,'FORMAT_IMAGE_SIZE'))),_0x59d305['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4bdadf['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4bdadf['registerBlockAttribute']('alt')),_0x59d305['plugins']['has']('PictureEditing')&&(_0x4bdadf['registerBlockAttribute']('sources'),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0xbba7d8=>{if('attribute'!=_0xbba7d8['type'])return;const {data:_0x13298b}=_0xbba7d8;return _0x13298b&&'sources'==_0x13298b['key']?{'type':'format','content':''}:void 0x0;})),_0x59d305['plugins']['has']('ImageSizeAttributes')&&(_0x4bdadf['registerBlockAttribute']('width'),_0x4bdadf['registerBlockAttribute']('height'),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0x2a9458=>{if('attribute'!=_0x2a9458['type'])return;const {data:_0x286f75}=_0x2a9458;return!_0x286f75||'width'!=_0x286f75['key']&&'height'!=_0x286f75['key']?void 0x0:{'type':'format','content':''};})),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0x1253a3=>{if(!!_0x50b50d['find'](({type:_0x35ccb3,subType:_0x17c2b2})=>_0x1253a3['type']==_0x35ccb3&&_0x1253a3['subType']==_0x17c2b2))return _0x1253a3['previous']?{}:void 0x0;}),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0x512eb1=>{if('insertion'==_0x512eb1['type']||'deletion'==_0x512eb1['type']){const _0x582ef8=_0x512eb1['getContainedElement']();if(_0x582ef8&&_0x582ef8['is']('element','caption'))return{'type':'insertion'==_0x512eb1['type']?'addObject':'removeObject','element':_0x582ef8,'quantity':0x1};}}),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0x356e9b=>'formatBlock'==_0x356e9b['type']&&'convertInlineImageToBlock'==_0x356e9b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x356e9b['type']&&'convertBlockImageToInline'==_0x356e9b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0xbe05ce=>{if('attribute'!=_0xbe05ce['type'])return;const {data:_0x406641}=_0xbe05ce;if(!_0x406641||'alt'!=_0x406641['key'])return;const _0x44673b=_0x406641['newValue'];return _0x44673b?{'type':'format','content':o(_0x717bd1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44673b+'\x22')}:{'type':'format','content':o(_0x717bd1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b1fa1=this['editor'],_0x2d4e50=_0x5b1fa1['locale'];_0x5b1fa1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3702cf=>{if('formatBlock'!=_0x3702cf['type']&&'formatInline'!=_0x3702cf['type'])return;const {data:_0x473b58}=_0x3702cf;if(_0x473b58){if('imageTextAlternative'==_0x473b58['commandName']){const _0x426163=_0x473b58['commandParams'][0x0]['newValue'];return _0x426163?{'type':'format','content':o(_0x2d4e50,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x426163+'\x22')}:{'type':'format','content':o(_0x2d4e50,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x473b58['commandName']){const _0x1f201e=_0x473b58['commandParams'][0x0]['width'];return _0x1f201e?{'type':'format','content':o(_0x2d4e50,'*Set\x20image\x20width:*\x20%0',_0x1f201e)}:{'type':'format','content':o(_0x2d4e50,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x246589=this['editor']['locale'],_0x4476d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4476d7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4476d7['registerBlockAttribute']('src'),_0x4476d7['descriptionFactory']['registerDescriptionCallback'](_0xd021aa=>{if('attribute'!=_0xd021aa['type'])return;const {data:_0x22ead7}=_0xd021aa;return _0x22ead7&&'src'==_0x22ead7['key']?_0x22ead7['newValue']&&_0x22ead7['oldValue']?{'type':'format','content':o(_0x246589,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54628b=this['editor']['plugins']['get']('TrackChangesEditing');_0x54628b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x54628b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54628b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x54628b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ce19a=this['editor'],_0x1b2e8b=_0x3ce19a['locale'];_0x3ce19a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5891e6=>{if('formatBlock'!=_0x5891e6['type']&&'formatInline'!=_0x5891e6['type'])return;const {data:_0x569a98}=_0x5891e6;if(!_0x569a98||'replaceImageSource'!=_0x569a98['commandName'])return;return{'type':'format','content':o(_0x1b2e8b,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x538eb2{['afterInit'](){const _0x509aa7=this['editor'];if(!_0x509aa7['plugins']['has']('ImageStyleEditing'))return;const _0x1bf153=_0x509aa7['plugins']['get']('TrackChangesEditing'),_0x3ce9fd=_0x509aa7['plugins']['get']('ImageUtils'),_0x1d1389={};_0x1bf153['enableCommand']('imageStyle',(_0x5ef6aa,_0x34e407)=>{const _0x2cdc68=_0x509aa7['plugins']['get']('Users')['me'],_0x3c1d66=_0x509aa7['commands']['get']('imageStyle');let _0x6895da=_0x3ce9fd['getClosestSelectedImageElement'](_0x509aa7['model']['document']['selection']),_0x28e176=_0x509aa7['model']['createRangeOn'](_0x6895da),_0x1462e5=_0x3c1d66['value'];if(_0x1462e5==_0x34e407['value'])return;const _0x5603ba={'commandName':'imageStyle','commandParams':[_0x34e407],'formatGroupId':_0x30b629()};_0x509aa7['model']['change'](()=>{if(_0x1bf153['getSuggestions']()['filter'](_0x50ffe5=>_0x50ffe5['isInContent']&&_0x2cdc68==_0x50ffe5['author']&&('formatBlock'==_0x50ffe5['type']||'formatInline'==_0x50ffe5['type'])&&('imageStylePreApply'==_0x50ffe5['subType']||'imageStylePostApply'==_0x50ffe5['subType'])&&_0x50ffe5['getFirstRange']()['isEqual'](_0x28e176))['forEach'](_0x5ba68c=>_0x1bf153['discardSuggestion'](_0x5ba68c['head'])),_0x6895da=_0x3ce9fd['getClosestSelectedImageElement'](_0x509aa7['model']['document']['selection']),_0x28e176=_0x509aa7['model']['createRangeOn'](_0x6895da),_0x3c1d66['refresh'](),_0x509aa7['commands']['get']('imageTypeInline')['refresh'](),_0x509aa7['commands']['get']('imageTypeBlock')['refresh'](),_0x1462e5=_0x3c1d66['value'],_0x1462e5!=_0x34e407['value'])return _0x3ce9fd['isInlineImage'](_0x6895da)&&_0x3c1d66['shouldConvertImageType'](_0x34e407['value'],_0x6895da)?(_0x5ef6aa({..._0x34e407,'setImageSizes':!0x1}),_0x6895da=_0x3ce9fd['getClosestSelectedImageElement'](_0x509aa7['model']['document']['selection']),void _0x1bf153['markBlockFormat'](_0x6895da,{..._0x5603ba,'commandReversedParams':[{'value':_0x1462e5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3ce9fd['isBlockImage'](_0x6895da)?_0x1bf153['markBlockFormat'](_0x6895da,_0x5603ba,[],'imageStylePostApply'):_0x1bf153['markInlineFormat'](_0x28e176,_0x5603ba,'imageStylePostApply'));});});for(const _0x3c6a0f of _0x509aa7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1d1389[_0x3c6a0f['name']]=_0x3c6a0f['title']['toLowerCase']();_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x19d779])=>{_0x3ce9fd['setImageNaturalSizeAttributes'](_0x19d779['getContainedElement']());}),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3684f4,_0xca3025)=>{_0x1bf153['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3684f4,{'commandName':_0xca3025['commandName'],'commandParams':_0xca3025['commandReversedParams']});}),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5eff5e,_0x348030){if(_0x515ad9(_0x5eff5e,_0x348030))return[_0x5eff5e,_0x348030];if(_0x515ad9(_0x348030,_0x5eff5e))return[_0x348030,_0x5eff5e];return null;});const _0x19de3e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x515ad9(_0x3a246c,_0x128ff9){const _0x871ad5=_0x19de3e['findIndex'](({type:_0x4689db,subType:_0xf18c56})=>_0x3a246c['type']==_0x4689db&&_0x3a246c['subType']==_0xf18c56),_0x4a6577=_0x19de3e['findIndex'](({type:_0x49dfe2,subType:_0xafb854})=>_0x128ff9['type']==_0x49dfe2&&_0x128ff9['subType']==_0xafb854);if(_0x871ad5<0x0||_0x4a6577<0x0)return!0x1;const _0x60e386=_0x3a246c['getFirstRange'](),_0x47d13b=_0x128ff9['getFirstRange']();if((0x0==_0x871ad5||0x1==_0x871ad5)&&0x2==_0x4a6577&&_0x60e386['isIntersecting'](_0x47d13b))return!0x0;if(0x2==_0x871ad5&&0x3==_0x4a6577){const _0x256898=_0x1bf153['_findSuggestions'](_0x60e386,'insertion')['filter'](({suggestion:_0x4c9457,meta:_0x4753a3})=>_0x4753a3['isOwn']&&'convertInlineImageToBlock'==_0x4c9457['subType']);if(_0x256898['length']>0x1&&_0x47d13b['end']['isEqual'](_0x60e386['start']))return!0x0;if(0x1==_0x256898['length']&&(_0x60e386['start']['isEqual'](_0x47d13b['end'])||_0x60e386['end']['isEqual'](_0x47d13b['start'])))return!0x0;}if(0x3==_0x871ad5&&0x3==_0x4a6577&&_0x60e386['start']['isBefore'](_0x47d13b['start'])){const _0x394102=_0x60e386['end']['nodeAfter'],_0x4df9c9=_0x47d13b['start']['nodeBefore'];return _0x3ce9fd['isBlockImage'](_0x394102)&&_0x394102===_0x4df9c9;}return!0x1;}_0x509aa7['model']['document']['registerPostFixer'](()=>{let _0x43a184=!0x1;const _0x458b75=Array['from'](_0x509aa7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d3817,data:_0x89a3eb}of _0x458b75){const {group:_0x3c43a8,type:_0x395ef6,subType:_0x5c595f,id:_0x476b65}=_0x1bf153['_splitMarkerName'](_0x5d3817);if('suggestion'==_0x3c43a8&&_0x1bf153['hasSuggestion'](_0x476b65)){if('formatBlock'==_0x395ef6&&('imageStylePreApply'==_0x5c595f||'imageStylePostApply'==_0x5c595f)){const _0x412532=_0x1bf153['getSuggestion'](_0x476b65);if(_0x89a3eb['newRange']){const _0x10c258=_0x412532['getFirstRange']()['getContainedElement']();if(_0x3ce9fd['isBlockImage'](_0x10c258))continue;_0x1bf153['discardSuggestion'](_0x412532),_0x43a184=!0x0;}}if('insertion'==_0x395ef6&&'imageCaption'==_0x5c595f&&!_0x89a3eb['newRange']){const _0x500011=_0x1bf153['getSuggestion'](_0x476b65);_0x500011['next']&&_0x500011['next']['isInContent']&&(_0x1bf153['discardSuggestion'](_0x500011['next']),_0x43a184=!0x0);}}}return _0x43a184;}),this['_registerLegacyDescription'](_0x1d1389);}['_registerLegacyDescription'](_0xac338e){const _0xf5bbf=this['editor'],_0x3e1711=_0xf5bbf['locale'];_0xf5bbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e7fcd=>{if('formatBlock'!=_0x3e7fcd['type']&&'formatInline'!=_0x3e7fcd['type'])return;const {data:_0x40486b}=_0x3e7fcd;if(!_0x40486b||'imageStyle'!=_0x40486b['commandName'])return;const _0x145f70=_0x40486b['commandParams'][0x0]['value'];return _0x1cab9b('side'===_0x145f70?o(_0x3e1711,'FORMAT_SIDE_IMAGE'):_0xac338e[_0x145f70]||_0x145f70);function _0x1cab9b(_0x3a3e3d){return{'type':'format','content':o(_0x3e1711,'*Format:*\x20%0',_0x3a3e3d)};}});}}class ct extends _0x538eb2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xb52bb3){super(_0xb52bb3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d330c=this['editor'],_0x14cfbe=_0x4d330c['commands']['get']('importWord'),_0x4c68dd=_0x4d330c['commands']['get']('trackChanges');_0x14cfbe&&(_0x14cfbe['on']('execute',(_0xe6105a,[,_0x1c7f68])=>{this['_trackChangesValueDuringImport']=_0x4c68dd['value'],_0x1c7f68['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x14cfbe,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x14cfbe,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c68dd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d330c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5e3d07,_0x3e1db0){const {suggestions:_0x5efe25}=_0x3e1db0,_0x57ffea=this['editor']['commands']['get']('trackChanges'),_0x55b072=_0x57ffea['value'];this['_trackChangesValueDuringImport']!==_0x55b072&&(_0x57ffea['execute'](),this['_trackChangesExecuted']=!0x0),_0x5efe25&&_0x5efe25['forEach'](({id:_0x3fcbd0,type:_0x538ae7,author:_0x3482fd,created_at:_0x2027a8})=>{const _0x3228f1={'id':_0x3fcbd0,'type':_0x538ae7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3482fd,'createdAt':_0x2027a8?new Date(_0x2027a8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3228f1);});}}class ut extends _0x538eb2{['afterInit'](){const _0x35d0c2=this['editor'],_0x17157c=_0x35d0c2['plugins']['get']('TrackChangesEditing');if(_0x35d0c2['plugins']['has']('IndentEditing')&&(_0x17157c['enableCommand']('indent'),_0x17157c['enableCommand']('outdent')),_0x35d0c2['plugins']['has']('IndentBlock')){for(const _0x5bd202 of['indentBlock','outdentBlock'])_0x17157c['enableDefaultAttributesIntegration'](_0x5bd202);}const _0x49ec24=_0x35d0c2['locale'];_0x17157c['registerBlockAttribute']('blockIndent'),_0x17157c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x49ec24,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x820d0b=this['editor'],_0x4bb04b=_0x820d0b['locale'],_0x1ad7fe=_0x820d0b['plugins']['get']('TrackChangesEditing');_0x1ad7fe['descriptionFactory']['registerDescriptionCallback'](_0x23ced4=>{if('formatBlock'!=_0x23ced4['type'])return;const {data:_0x2d7dac}=_0x23ced4;if(!_0x2d7dac)return;if('indentBlock'!=_0x2d7dac['commandName']&&'outdentBlock'!=_0x2d7dac['commandName'])return;const _0x29a94f=_0x23ced4['getItems']()[0x0],_0x9b3de8=_0x1ad7fe['descriptionFactory']['getItemLabel'](_0x29a94f);return'indentBlock'==_0x2d7dac['commandName']?{'type':'format','content':o(_0x4bb04b,'*Indent:*\x20%0',_0x9b3de8)}:'outdentBlock'==_0x2d7dac['commandName']?{'type':'format','content':o(_0x4bb04b,'*Outdent:*\x20%0',_0x9b3de8)}:void 0x0;});}}class ft extends _0x538eb2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x538eb2{['afterInit'](){const _0x493d66=this['editor'];if(!_0x493d66['plugins']['has']('LinkEditing'))return;const _0x4bab2f=_0x493d66['plugins']['get']('TrackChangesEditing'),_0x51d042=_0x493d66['commands']['get']('link');_0x4bab2f['enableDefaultAttributesIntegration']('link'),_0x4bab2f['enableDefaultAttributesIntegration']('unlink'),_0x4bab2f['registerInlineAttribute']('linkHref');for(const _0x2fa139 of _0x51d042['manualDecorators'])_0x4bab2f['registerInlineAttribute'](_0x2fa139['id']),_0x4bab2f['descriptionFactory']['registerAttributeLabel'](_0x2fa139['id'],'link\x20('+_0x2fa139['label']['toLowerCase']()+')');_0x4bab2f['descriptionFactory']['registerDescriptionCallback'](_0x2a2540=>{if('attribute'!=_0x2a2540['type'])return;const {data:_0x2abe33}=_0x2a2540;if(!_0x2abe33||'linkHref'!=_0x2abe33['key'])return;const _0x127119=_0x2abe33['newValue'],_0x45774e=_0x493d66['locale'];return{'type':'format','content':null==_0x127119?o(_0x45774e,'*Remove\x20link*'):o(_0x45774e,'*Set\x20link:*\x20%0','\x22'+_0x127119+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c945f=this['editor'],_0x23a562=_0x2c945f['locale'];_0x2c945f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27c83f=>{if('formatInline'!=_0x27c83f['type'])return;const {data:_0xace739}=_0x27c83f;if(_0xace739){if('link'==_0xace739['commandName']){const _0x3ce123=_0xace739['commandParams'][0x0];return{'type':'format','content':o(_0x23a562,'*Set\x20link:*\x20%0','\x22'+_0x3ce123+'\x22')};}return'unlink'==_0xace739['commandName']?{'type':'format','content':o(_0x23a562,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x538eb2{['afterInit'](){const _0x158624=this['editor'],_0x93d2a3=_0x158624['locale'];if(!_0x158624['plugins']['has']('LegacyListEditing'))return;const _0xf34dd7=_0x158624['plugins']['get']('TrackChangesEditing'),_0x5c710a=_0x158624['plugins']['has']('LegacyTodoListEditing');function _0x3b0bee(_0x28f611){return()=>{const _0x2b9bb6=_0x158624['model']['document']['selection'],_0x11641c=_0x158624['commands']['get'](_0x28f611);if(_0x11641c['value'])return void _0x158624['execute']('paragraph',{});const _0x376dad=_0x28f611['slice'](0x0,-0x4),_0x2c11fd=function(_0x5a33c2,_0x4eea23,_0x2cc07b){let _0x539582=Array['from'](_0x5a33c2)['filter'](_0x2ba18c=>function(_0x46fa97,_0x5eefb4){return _0x5eefb4['checkChild'](_0x46fa97['parent'],'listItem')&&!_0x5eefb4['isObject'](_0x46fa97);}(_0x2ba18c,_0x2cc07b));_0x539582=_0x539582['filter'](_0x2df826=>!_0x2df826['is']('element','listItem')||_0x2df826['getAttribute']('listType')!=_0x4eea23);const _0x424257=new Set();for(const _0x2bd8ba of _0x539582)_0x2bd8ba['is']('element','listItem')?_0x424257['add'](Le(_0x2bd8ba)):_0x424257['add'](_0x2bd8ba);return Array['from'](_0x424257);}(_0x2b9bb6['getSelectedBlocks'](),_0x376dad,_0x158624['model']['schema']);_0x158624['model']['change'](()=>{for(const _0xaeb35b of _0x2c11fd)_0xf34dd7['markBlockFormat'](_0xaeb35b,{'commandName':_0x28f611,'commandParams':[{'forceValue':!_0x11641c['value']}],'formatGroupId':'blockName'},Ee(_0xaeb35b));});};}function _0x187ab8(_0x39410e){return()=>{const _0x4b659b=function(_0x518a68){let _0xa110bb=Array['from'](_0x518a68);const _0x43c3fe=_0xa110bb['findIndex'](_0x213906=>'listItem'!=_0x213906['name']);return _0x43c3fe>-0x1&&(_0xa110bb=_0xa110bb['slice'](0x0,_0x43c3fe)),_0xa110bb;}(_0x158624['model']['document']['selection']['getSelectedBlocks']()),_0x67a30b=_0x158624['model']['createRange'](_0x158624['model']['createPositionAt'](_0x4b659b[0x0],'before'),_0x158624['model']['createPositionAt'](_0x4b659b[_0x4b659b['length']-0x1],'end'));_0x158624['model']['change'](()=>{_0xf34dd7['markBlockFormat'](_0x67a30b,{'commandName':_0x39410e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28ba7a){const _0x202785=new Set();for(const _0x5ef6d4 of _0x28ba7a){let _0x7b4ceb=_0x5ef6d4['nextSibling'];for(;_0x7b4ceb&&_0x7b4ceb['getAttribute']('listIndent')>_0x5ef6d4['getAttribute']('listIndent');)_0x202785['add'](_0x7b4ceb),_0x7b4ceb=_0x7b4ceb['nextSibling'];}return Array['from'](_0x202785);}(_0x4b659b));});};}_0xf34dd7['enableCommand']('numberedList',_0x3b0bee('numberedList')),_0xf34dd7['enableCommand']('bulletedList',_0x3b0bee('bulletedList')),_0x5c710a&&_0xf34dd7['enableCommand']('todoList',_0x3b0bee('todoList')),_0xf34dd7['enableCommand']('indentList',_0x187ab8('indentList')),_0xf34dd7['enableCommand']('outdentList',_0x187ab8('outdentList')),_0x5c710a&&_0xf34dd7['enableCommand']('checkTodoList',()=>{const _0x1e86e5=_0x158624['commands']['get']('checkTodoList'),_0x49eea2=Array['from'](_0x1e86e5['_selectedElements']);_0x49eea2['filter'](_0x241a56=>_0x241a56['getAttribute']('todoListChecked')!=_0x1e86e5['value']),_0x158624['model']['change'](()=>{for(const _0x24b01f of _0x49eea2)_0xf34dd7['markBlockFormat'](_0x24b01f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1e86e5['value']}]});});}),_0xf34dd7['descriptionFactory']['registerElementLabel']('listItem',_0x85290a=>o(_0x93d2a3,'ELEMENT_LIST_ITEM',_0x85290a)),_0xf34dd7['descriptionFactory']['registerDescriptionCallback'](_0x1380a2=>{if('formatBlock'!=_0x1380a2['type']&&'formatInline'!=_0x1380a2['type'])return;const {data:_0x5538bb}=_0x1380a2;if(_0x5538bb){if('numberedList'==_0x5538bb['commandName']||'bulletedList'==_0x5538bb['commandName']||'todoList'==_0x5538bb['commandName'])switch(_0x5538bb['commandName']['replace']('List','')){case'bulleted':return _0x574aa8(o(_0x93d2a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x574aa8(o(_0x93d2a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x574aa8(o(_0x93d2a3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5538bb['commandName'])return{'type':'format','content':o(_0x93d2a3,'*Indent:*\x20%0',o(_0x93d2a3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5538bb['commandName'])return{'type':'format','content':o(_0x93d2a3,'*Outdent:*\x20%0',o(_0x93d2a3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5538bb['commandName'])return _0x5538bb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x93d2a3,'*Check\x20item*')}:{'type':'format','content':o(_0x93d2a3,'*Uncheck\x20item*')};}function _0x574aa8(_0x2184d0){return{'type':'format','content':o(_0x93d2a3,'*Change\x20to:*\x20%0',_0x2184d0)};}});}}function Le(_0x4fc359){const _0x302c13=_0x4fc359['getAttribute']('listIndent');if(0x0==_0x302c13)return _0x4fc359;let _0xe765fe=_0x4fc359;for(;_0x4fc359['previousSibling']&&_0x4fc359['previousSibling']['is']('element','listItem');){const _0x32b2b2=_0x4fc359['previousSibling']['getAttribute']('listIndent');if(_0x32b2b2==_0x302c13)_0xe765fe=_0x4fc359['previousSibling'];else{if(_0x32b2b2<_0x302c13)break;}_0x4fc359=_0x4fc359['previousSibling'];}return _0xe765fe;}function Ee(_0x3fa135){const _0x224928=[];if(_0x3fa135['is']('element','listItem')&&_0x3fa135['getAttribute']('listIndent')>0x0){let _0x537dc6=_0x3fa135['nextSibling'];for(;_0x537dc6&&'listItem'==_0x537dc6['name']&&_0x537dc6['getAttribute']('listIndent')==_0x3fa135['getAttribute']('listIndent');)_0x224928['push'](_0x537dc6),_0x537dc6=_0x537dc6['nextSibling'];}return _0x224928;}class Q extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x28b070=this['editor']['config']['get']('list.properties'),_0x1e0ebb=this['editor']['plugins']['get']('TrackChangesEditing');_0x28b070['styles']&&_0x1e0ebb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x28b070['reversed']&&_0x1e0ebb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x28b070['startIndex']&&_0x1e0ebb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1e0ebb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5be22f,_0x2c5532={}){const _0x1dc9b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b8ae3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1dc9b2['markMultiRangeBlockFormat'](_0x2b8ae3,{'commandName':'listStyle','commandParams':[{'type':_0x2c5532['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2c1601,_0x3e6ced={}){const _0xb9f88d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ddb7f=this['_getSuggestionBlocks'](_0x46e6a5=>_0x46e6a5['is']('element','listItem')&&'numbered'===_0x46e6a5['getAttribute']('listType'));if(_0x4ddb7f['length']<0x1)return;const _0x16b73b=_0x4ddb7f['map'](_0x242e9a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x242e9a,'before'),this['editor']['model']['createPositionAt'](_0x242e9a,0x0)));this['editor']['model']['change'](()=>{_0xb9f88d['markMultiRangeBlockFormat'](_0x16b73b,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e6ced['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x314ff3,_0x26d706={}){const _0x7e82d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x423d34=this['_getSuggestionBlocks'](_0x8212bb=>_0x8212bb['is']('element','listItem')&&'numbered'===_0x8212bb['getAttribute']('listType'));if(_0x423d34['length']<0x1)return;const _0x520c5d=_0x423d34['map'](_0x20edac=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20edac,'before'),this['editor']['model']['createPositionAt'](_0x20edac,0x0)));this['editor']['model']['change'](()=>{_0x7e82d1['markMultiRangeBlockFormat'](_0x520c5d,{'commandName':'listStart','commandParams':[{'startIndex':_0x26d706['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x36652b){if('formatBlock'!=_0x36652b['type']&&'formatInline'!=_0x36652b['type'])return;const _0x3a18f2=this['editor']['locale'],{data:_0x40765c}=_0x36652b;if(!_0x40765c)return;let _0xcc8a3d,_0x5ac8f6;switch(_0x40765c['commandName']){case'listStyle':_0xcc8a3d='*Change\x20to:*\x20%0',_0x5ac8f6={'type':'format','content':o(_0x3a18f2,_0xcc8a3d,o(_0x3a18f2,this['_getTranslationKeyForListStyle'](_0x40765c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcc8a3d=_0x40765c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ac8f6={'type':'format','content':o(_0x3a18f2,_0xcc8a3d)};break;case'listStart':_0xcc8a3d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ac8f6={'type':'format','content':o(_0x3a18f2,_0xcc8a3d,_0x40765c['commandParams'][0x0]['startIndex'])};}return _0x5ac8f6;}['_getSuggestionBlocksForListStyle'](){const _0x10e21e=this['editor']['plugins']['get']('LegacyListUtils');let _0x43a847=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43a847[0x0]?.['is']('element','listItem')&&_0x43a847['unshift'](..._0x10e21e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43a847[_0x43a847['length']-0x1]?.['is']('element','listItem')&&_0x43a847['push'](..._0x10e21e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43a847=[...new Set(_0x43a847)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43a847=_0x43a847['filter'](_0x392576=>_0x392576['is']('element','listItem'))),_0x43a847;}['_getSuggestionBlocks'](_0x2ca9f9){const _0x1fd853=this['editor']['plugins']['get']('LegacyListUtils');let _0x45e8a7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ca9f9)['map'](_0xac7fcc=>{const _0x3a0b3e=this['editor']['model']['createPositionAt'](_0xac7fcc,0x0);return[..._0x1fd853['getSiblingNodes'](_0x3a0b3e,'backward'),..._0x1fd853['getSiblingNodes'](_0x3a0b3e,'forward')];})['flat']();return _0x45e8a7=[...new Set(_0x45e8a7)],_0x45e8a7;}['_getTranslationKeyForListStyle'](_0x265ab9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x265ab9)||'default')['toUpperCase']()+'_LIST_'+_0x265ab9['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x538eb2{['afterInit'](){const _0x276815=this['editor'];if(!_0x276815['plugins']['has']('MediaEmbedEditing'))return;const _0x4b9c23=_0x276815['plugins']['get']('TrackChangesEditing'),_0x30723e=_0x276815['locale'];_0x4b9c23['enableCommand']('mediaEmbed'),_0x4b9c23['descriptionFactory']['registerElementLabel']('media',_0xf60b79=>o(_0x30723e,'ELEMENT_MEDIA',_0xf60b79)),_0x276815['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xa12da7,{writer:_0x5e92fc,options:_0x5d7d60})=>{if(_0x5d7d60['showSuggestionHighlights'])return _0x5e92fc['createEmptyElement']('div');},'converterPriority':'high'}),_0x276815['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2bb856,_0x16c6d8,_0x5cf4e9)=>{_0x5cf4e9['options']['showSuggestionHighlights']&&_0x2bb856['stop']();},{'priority':'high'});}}class mt extends _0x538eb2{['afterInit'](){const _0x59c2b6=this['editor'];_0x59c2b6['plugins']['has']('MentionEditing')&&_0x59c2b6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x538eb2{['afterInit'](){const _0x2160a7=this['editor'];if(!_0x2160a7['plugins']['has']('MergeFieldsEditing'))return;const _0x4e6aea=_0x2160a7['plugins']['get']('TrackChangesEditing'),_0x1e8502=_0x2160a7['locale'];_0x4e6aea['enableCommand']('insertMergeField'),_0x4e6aea['enableCommand']('insertMergeFieldBlock'),_0x4e6aea['enableCommand']('insertMergeFieldImage'),_0x4e6aea['descriptionFactory']['registerElementLabel']('mergeField',_0x1fcfb3=>o(_0x1e8502,'ELEMENT_MERGE_FIELD',_0x1fcfb3)),_0x4e6aea['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x388b2b=>o(_0x1e8502,'ELEMENT_MERGE_FIELD',_0x388b2b)),_0x4e6aea['descriptionFactory']['registerDescriptionCallback'](_0x201719=>{if('insertion'!=_0x201719['type']&&'deletion'!=_0x201719['type'])return;const _0x1cf2fd=_0x201719['getContainedElement']();if(null==_0x1cf2fd)return;const _0x4174ac=_0x2160a7['plugins']['get']('MergeFieldsEditing');let _0xd2f3e3;switch(_0x4174ac['getMergeFieldType'](_0x1cf2fd)){case null:return;case'image':{const _0x18d59b=_0x4174ac['unwrapAffixes'](_0x1cf2fd['getAttribute']('src'));_0xd2f3e3=_0x4174ac['getLabel'](_0x18d59b)||_0x18d59b;break;}default:{const _0x34b5f7=_0x1cf2fd['getAttribute']('id');_0xd2f3e3=_0x4174ac['getLabel'](_0x34b5f7)||_0x34b5f7;break;}}return'insertion'==_0x201719['type']?{'type':'insertion','content':o(_0x1e8502,'*Insert:*\x20%0','\x22'+_0xd2f3e3+'\x22\x20'+o(_0x1e8502,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1e8502,'*Remove:*\x20%0','\x22'+_0xd2f3e3+'\x22\x20'+o(_0x1e8502,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x538eb2{['afterInit'](){const _0x229168=this['editor'],_0x50193f=_0x229168['plugins']['get']('TrackChangesEditing');_0x229168['plugins']['has']('MultiLevelList')&&(_0x50193f['enableDefaultAttributesIntegration']('multiLevelList'),_0x50193f['registerBlockAttribute']('listMarkerStyle'),_0x50193f['descriptionFactory']['registerDescriptionCallback'](_0x2b4cd5=>this['handleDescriptions'](_0x2b4cd5)));}['handleDescriptions'](_0x2fc12e){const _0x3c15f0=this['editor']['locale'],{data:_0x2948af}=_0x2fc12e,_0x15085d={'type':'format','content':''};if(_0x2948af&&'listMarkerStyle'==_0x2948af['key']){if(!_0x2948af['oldValue'])return{'type':'format','content':o(_0x3c15f0,'*Set\x20format:*\x20%0',o(_0x3c15f0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2948af['newValue']+')'};if(!_0x2948af['newValue']){let _0x3b5cc2=_0x2fc12e['head'];for(;_0x3b5cc2;){if(_0x3b5cc2['data']&&'listType'==_0x3b5cc2['data']['key']&&_0x3b5cc2['data']['newValue'])return _0x15085d;_0x3b5cc2=_0x3b5cc2['next'];}return{'type':'format','content':o(_0x3c15f0,'*Remove\x20format:*\x20%0',o(_0x3c15f0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2948af['oldValue']+')'};}}}}class kt extends _0x538eb2{['afterInit'](){const _0x1d3bce=this['editor'];if(!_0x1d3bce['plugins']['has']('PageBreakEditing'))return;_0x1d3bce['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5e4ef4=_0x1d3bce['plugins']['get']('TrackChangesEditing'),_0x5d58de=_0x1d3bce['locale'];_0x5e4ef4['descriptionFactory']['registerElementLabel']('pageBreak',_0x203156=>o(_0x5d58de,'ELEMENT_PAGE_BREAK',_0x203156));}}class bt extends _0x538eb2{['afterInit'](){const _0x3d882d=this['editor'];if(!_0x3d882d['plugins']['has']('Paragraph'))return;const _0x98fe48=_0x3d882d['locale'],_0x308bc1=_0x3d882d['plugins']['get']('TrackChangesEditing');_0x308bc1['descriptionFactory']['registerElementLabel']('paragraph',_0x2fec75=>o(_0x98fe48,'ELEMENT_PARAGRAPH',_0x2fec75)),_0x308bc1['enableDefaultAttributesIntegration']('paragraph'),_0x308bc1['enableCommand']('insertParagraph'),_0x3d882d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3d882d),{'priority':'highest'}),_0x3d882d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x189b76,_0x22ccbd,_0x5bcb5e)=>{_0x5bcb5e['options']['showSuggestionHighlights']&&nr(_0x3d882d,{'showActiveMarker':!0x1})(_0x189b76,_0x22ccbd,_0x5bcb5e);},{'priority':'highest'});const _0x34d3e6=_0x308bc1['descriptionFactory'];_0x34d3e6['registerDescriptionCallback'](_0x242c30=>{if('insertion'!==_0x242c30['type'])return;const {start:_0x3686f9,end:_0x331ae7}=_0x242c30['getFirstRange']();if(!_0x3686f9['isTouching'](_0x331ae7)||!_0x3686f9['nodeAfter'])return;const _0x36238a=_0x3d882d['model']['schema'],_0x4c76b4=_0x3686f9['nodeAfter'];return _0x36238a['isBlock'](_0x4c76b4)&&!_0x36238a['isLimit'](_0x4c76b4)&&_0x36238a['checkChild'](_0x4c76b4,'$text')?{'type':'insertion','content':o(_0x98fe48,'*Insert:*\x20%0',_0x34d3e6['getItemLabel'](_0x4c76b4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117b15=this['editor'],_0x4d8729=_0x117b15['locale'];_0x117b15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2420ab=>{if('formatBlock'!=_0x2420ab['type'])return;const {data:_0x414150}=_0x2420ab;return _0x414150&&'paragraph'==_0x414150['commandName']?{'type':'format','content':o(_0x4d8729,'*Change\x20to:*\x20%0',o(_0x4d8729,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1efe36,{showActiveMarker:_0x410baf=!0x0}={}){return(_0x5c4e98,_0x16c4ca,_0x120c1a)=>{const _0x5256b1=_0x1efe36['plugins']['get']('TrackChangesEditing'),_0x39a5bb=_0x16c4ca['markerRange']['start'],_0x22a45a=_0x16c4ca['markerRange']['end'],_0x557661=_0x1efe36['model']['schema'];if(!_0x39a5bb['isTouching'](_0x22a45a)||!_0x39a5bb['nodeAfter'])return;const _0x266e4a=_0x39a5bb['nodeAfter'];if(_0x557661['isBlock'](_0x266e4a)&&!_0x557661['isLimit'](_0x266e4a)&&_0x557661['checkChild'](_0x266e4a,'$text')){if(!_0x120c1a['consumable']['consume'](_0x16c4ca['markerRange'],_0x5c4e98['name']))return;const {authorId:_0x285f68}=_0x5256b1['_splitMarkerName'](_0x16c4ca['markerName']),_0x2e73b5=_0x120c1a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x285f68}),_0x174dbc=_0x120c1a['mapper']['toViewPosition'](_0x22a45a);_0x410baf&&_0x5256b1['activeMarkers']['includes'](_0x16c4ca['markerName'])&&_0x120c1a['writer']['addClass']('ck-suggestion-marker--active',_0x2e73b5),_0x120c1a['writer']['insert'](_0x174dbc,_0x2e73b5),_0x120c1a['mapper']['bindElementToMarker'](_0x2e73b5,_0x16c4ca['markerName']);}};}class yt extends _0x538eb2{['afterInit'](){const _0x541cd4=this['editor'];if(!_0x541cd4['plugins']['has']('RemoveFormatEditing'))return;_0x541cd4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x251524=this['editor'];_0x251524['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31e6ac=>{if('formatBlock'!=_0x31e6ac['type']&&'formatInline'!=_0x31e6ac['type'])return;const {data:_0x15ed15}=_0x31e6ac;return _0x15ed15&&'removeFormat'==_0x15ed15['commandName']?{'type':'format','content':o(_0x251524['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x538eb2{['afterInit'](){const _0x3b4e01=this['editor'];if(!_0x3b4e01['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x6b85de=_0x3b4e01['plugins']['get']('TrackChangesEditing');_0x6b85de['enableCommand']('goToPreviousRestrictedEditingException'),_0x6b85de['enableCommand']('goToNextRestrictedEditingException');const _0x5b8778=_0x3b4e01['plugins']['get']('RestrictedEditingModeEditing');_0x5b8778['enableCommand']('trackChanges'),_0x5b8778['enableCommand']('acceptSuggestion'),_0x5b8778['enableCommand']('discardSuggestion'),_0x5b8778['enableCommand']('acceptAllSuggestions'),_0x5b8778['enableCommand']('discardAllSuggestions'),_0x5b8778['enableCommand']('acceptSelectedSuggestions'),_0x5b8778['enableCommand']('discardSelectedSuggestions');}}class St extends _0x538eb2{static get['requires'](){return[_0x5cf5b9];}['init'](){const _0x508f61=this['editor'],_0x12a580=_0x508f61['plugins']['get']('TrackChangesEditing');_0x12a580['enableCommand']('shiftEnter'),_0x508f61['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x508f61),{'priority':'high'}),_0x508f61['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x508f61),{'priority':'high'}),_0x508f61['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51ce4b,_0x123553,_0x55e4fd)=>{_0x55e4fd['options']['showSuggestionHighlights']&&je(_0x508f61,{'showActiveMarker':!0x1})(_0x51ce4b,_0x123553,_0x55e4fd);}),_0x12a580['descriptionFactory']['registerElementLabel']('softBreak',_0x510899=>o(_0x508f61['locale'],'ELEMENT_LINE_BREAK',_0x510899));}}function je(_0x4afcc5,{showActiveMarker:_0x1deeca=!0x0}={}){return(_0x2f992d,_0x2a6707,_0x16c3a9)=>{const _0x571572=_0x4afcc5['plugins']['get']('TrackChangesEditing');if(!_0x16c3a9['consumable']['test'](_0x2a6707['markerRange'],_0x2f992d['name']))return;const _0x55b00a=_0x4afcc5['model'];for(const _0x253f33 of _0x2a6707['markerRange']['getItems']()){if(!_0x253f33['is']('element','softBreak'))continue;const _0x185418='deletion'==_0x2a6707['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x44e5c9}=_0x571572['_splitMarkerName'](_0x2a6707['markerName']),_0x451b1f=_0x16c3a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x185418,'data-author-id':_0x44e5c9}),_0x98d3b2=_0x16c3a9['mapper']['toViewPosition'](_0x55b00a['createPositionBefore'](_0x253f33));_0x1deeca&&_0x571572['activeMarkers']['includes'](_0x2a6707['markerName'])&&_0x16c3a9['writer']['addClass']('ck-suggestion-marker--active',_0x451b1f),_0x16c3a9['writer']['insert'](_0x98d3b2,_0x451b1f),_0x16c3a9['mapper']['bindElementToMarker'](_0x451b1f,_0x2a6707['markerName']);}};}class At extends _0x538eb2{['afterInit'](){const _0x33554a=this['editor'],_0x271360=_0x33554a['model'],_0x8c16f5=_0x33554a['locale'];if(!_0x33554a['plugins']['has']('StandardEditingModeEditing'))return;const _0x1babff=_0x33554a['plugins']['get']('TrackChangesEditing'),_0x6d203e='restrictedEditingException',_0x3e105c=_0x33554a['commands']['get'](_0x6d203e);_0x1babff['enableCommand'](_0x6d203e,(_0x412de3,_0x3b347f={})=>{const _0x10afb9=_0x271360['document']['selection'];if(_0x10afb9['isCollapsed'])return void _0x412de3(_0x3b347f);const _0x32d95a=void 0x0!==_0x3b347f['forceValue']?_0x3b347f['forceValue']:!_0x3e105c['value'];_0x271360['change'](()=>{const _0x57126e=Array['from'](_0x10afb9['getRanges']());for(const _0x3d7daf of _0x57126e){const _0x41b3c8=_0x32d95a?[_0x3d7daf]:io(_0x6d203e,_0x3d7daf,_0x271360);for(const _0x1041db of _0x41b3c8)_0x1babff['markInlineFormat'](_0x1041db,{'commandName':_0x6d203e,'commandParams':[{'forceValue':_0x32d95a}]});}});}),_0x1babff['descriptionFactory']['registerDescriptionCallback'](_0x3b7acb=>{if('formatBlock'!=_0x3b7acb['type']&&'formatInline'!=_0x3b7acb['type'])return;const {data:_0x413aed}=_0x3b7acb;return _0x413aed&&_0x413aed['commandName']==_0x6d203e?_0x413aed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8c16f5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x8c16f5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x538eb2{['afterInit'](){const _0x5e483b=this['editor'];if(!_0x5e483b['plugins']['has']('Style')||!_0x5e483b['plugins']['has']('DataSchema'))return;const _0x546f10=_0x5e483b['plugins']['get']('TrackChangesEditing'),_0x57f70c=_0x5e483b['locale'],_0x123ce0=_0x5e483b['config']['get']('style')||{},_0x34fb0d=_0x5e483b['plugins']['get']('GeneralHtmlSupport'),_0x2aa8b7=_0x5e483b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5e483b['plugins']['get']('DataSchema'),_0x123ce0['definitions']);_0x546f10['enableDefaultAttributesIntegration']('style');const _0x355eea=new Set();for(const _0x10efc4 of _0x2aa8b7['block']){const _0x200f03=_0x34fb0d['getGhsAttributeNameForElement'](_0x10efc4['element']);_0x355eea['add'](_0x200f03);}const _0x5b3af1=new Set();for(const _0x5b1320 of _0x2aa8b7['inline']){const _0x313df4=_0x34fb0d['getGhsAttributeNameForElement'](_0x5b1320['element']);_0x5b3af1['add'](_0x313df4);for(const _0x27aad2 of _0x5b1320['ghsAttributes'])_0x5b3af1['add'](_0x27aad2);}for(const _0x656c74 of _0x355eea)_0x546f10['registerBlockAttribute'](_0x656c74),_0x546f10['descriptionFactory']['registerAttributeLabel'](_0x656c74,o(_0x57f70c,'FORMAT_STYLE'));for(const _0x653d93 of _0x5b3af1)_0x546f10['registerInlineAttribute'](_0x653d93),_0x546f10['descriptionFactory']['registerAttributeLabel'](_0x653d93,o(_0x57f70c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x415051=this['editor'],_0x28b105=_0x415051['locale'];_0x415051['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22bd71=>{if('formatBlock'!=_0x22bd71['type']&&'formatInline'!=_0x22bd71['type'])return;const {data:_0x3cd13d}=_0x22bd71;return _0x3cd13d&&'style'===_0x3cd13d['commandName']?_0x3cd13d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28b105,'*Set\x20format:*\x20%0',_0x3cd13d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x28b105,'*Remove\x20format:*\x20%0',_0x3cd13d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x538eb2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x47b7cd){super(_0x47b7cd),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3038df=this['editor'],_0x6bd462=_0x3038df['model']['document']['selection'];if(!_0x3038df['plugins']['has']('TableEditing'))return;const _0x4e46c2=_0x3038df['locale'],_0x35c894=_0x3038df['plugins']['get']('TrackChangesEditing'),_0x12b70d=_0x3038df['plugins']['get']('TableUtils');_0x35c894['descriptionFactory']['registerElementLabel']('table',_0x265d17=>o(_0x4e46c2,'ELEMENT_TABLE',_0x265d17)),this['_setupColumnsRowsFixing'](),_0x35c894['enableCommand']('insertTable'),_0x35c894['enableCommand']('selectTableRow'),_0x35c894['enableCommand']('selectTableColumn');for(const _0x46f528 of['insertTableRowAbove','insertTableRowBelow']){const _0x10e5c7=_0x3038df['commands']['get'](_0x46f528);_0x35c894['enableCommand'](_0x46f528,_0x3fcb19=>{_0x3038df['model']['change'](_0x3f0306=>{_0x3fcb19();const _0x96ec15='above'===_0x10e5c7['order'],_0x1af79d=_0x12b70d['getSelectionAffectedTableCells'](_0x6bd462),_0x404c6c=_0x12b70d['getRowIndexes'](_0x1af79d),_0x12328c=_0x96ec15?_0x404c6c['first']-0x1:_0x404c6c['last']+0x1,_0x3eaf08=_0x1af79d[0x0]['findAncestor']('table'),_0x40edbd=_0x12b70d['createTableWalker'](_0x3eaf08,{'startRow':_0x12328c,'endRow':_0x12328c}),_0x2afcb2=Array['from'](_0x40edbd)['map'](_0x2292a1=>_0x3f0306['createRangeOn'](_0x2292a1['cell']));_0x35c894['markMultiRangeInsertion'](_0x2afcb2,'tableRow');});});}for(const _0x2d0e71 of['insertTableColumnLeft','insertTableColumnRight']){const _0x43a6cb=_0x3038df['commands']['get'](_0x2d0e71);_0x35c894['enableCommand'](_0x2d0e71,_0xe6ecad=>{_0x3038df['model']['change'](_0x554cc2=>{_0xe6ecad();const _0x174b84='left'===_0x43a6cb['order'],_0x263737=_0x12b70d['getSelectionAffectedTableCells'](_0x6bd462),_0x325399=_0x12b70d['getColumnIndexes'](_0x263737),_0x3e8347=_0x174b84?_0x325399['first']-0x1:_0x325399['last']+0x1,_0x3ce086=_0x263737[0x0]['findAncestor']('table'),_0x39acaa=_0x12b70d['createTableWalker'](_0x3ce086,{'startRow':0x0,'column':_0x3e8347,'includeAllSlots':!0x1}),_0x43303f=Array['from'](_0x39acaa)['map'](_0x19a99b=>_0x554cc2['createRangeOn'](_0x19a99b['cell']));_0x35c894['markMultiRangeInsertion'](_0x43303f,'tableColumn');});});}for(const _0x636fca of['removeTableRow','removeTableColumn']){const _0x5ac91b=_0x636fca['substr'](0xb),_0x3df473=_0x5ac91b['toLowerCase'](),_0x58fad9=_0x3df473['substr'](0x0,0x3)+'span',_0x3b5335='table'+_0x5ac91b,_0x4b2acc='min'+_0x5ac91b,_0x222376='max'+_0x5ac91b;_0x35c894['enableCommand'](_0x636fca,()=>{_0x3038df['model']['change'](_0x23ad89=>{const _0x29237e=_0x12b70d['getSelectionAffectedTableCells'](_0x6bd462),_0x3ae3f2=_0x29237e[0x0]['findAncestor']('table');let _0x461cfd;if('removeTableRow'==_0x636fca){const _0x4271e9=_0x12b70d['getRowIndexes'](_0x29237e);_0x461cfd={'startRow':_0x4271e9['first'],'endRow':_0x4271e9['last'],'includeAllSlots':!0x0};}else{const _0x158e23=_0x12b70d['getColumnIndexes'](_0x29237e);_0x461cfd={'startColumn':_0x158e23['first'],'endColumn':_0x158e23['last'],'includeAllSlots':!0x0};}const _0x5dd8e7=_0x12b70d['createTableWalker'](_0x3ae3f2,_0x461cfd),_0x116acd=Array['from'](_0x5dd8e7)['map'](({cell:_0x4b66f5})=>_0x4b66f5),_0x1357df=Ne(_0x116acd['filter'](_0x16323b=>_0x16323b['hasAttribute'](_0x58fad9))),_0x2a4375=Ne(_0x116acd['filter'](_0x3e2d80=>!_0x3e2d80['hasAttribute'](_0x58fad9)))['map'](_0x5b3727=>_0x23ad89['createRangeOn'](_0x5b3727)),_0x158375=_0x35c894['markMultiRangeDeletion'](_0x2a4375,_0x3b5335);if(_0x158375&&('tableRow'==_0x158375['subType']||'tableColumn'==_0x158375['subType'])){const _0x4924f3=this['_getSuggestionCoords'](_0x158375);for(const _0x7aa0c0 of _0x1357df){const _0x4ff96f=_0x23ad89['createRangeOn'](_0x7aa0c0),_0x182173=_0x12b70d['getCellLocation'](_0x7aa0c0),_0x3d4ec9=_0x7aa0c0['getAttribute'](_0x58fad9)-0x1,_0x3f2c73=_0x4924f3[_0x4b2acc],_0x1e351a=_0x4924f3[_0x222376];_0x3f2c73<=_0x182173[_0x3df473]&&_0x182173[_0x3df473]+_0x3d4ec9<=_0x1e351a&&_0x158375['addRange'](_0x4ff96f);}}});});}function _0x3dd0b3(_0x2eb297){const _0x212021=Array['from'](_0x6bd462['getRanges']())['map'](_0x2eff90=>_0x531fcc['fromRange'](_0x2eff90));_0x3038df['model']['change'](_0x4d4eb8=>{const _0x535798=_0x4d4eb8['batch'];_0x2eb297=_0x2eb297['filter'](_0x2cb4a7=>'$graveyard'!=_0x2cb4a7['root']['rootName']),_0x4d4eb8['setSelection'](_0x2eb297),_0x3038df['commands']['get']('removeTableRow')['refresh'](),_0x3038df['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3038df['model']['enqueueChange'](()=>{_0x3038df['model']['enqueueChange'](_0x535798,_0x1823ba=>{const _0x2f0ce9=_0x212021['filter'](_0x3259fb=>'$graveyard'!=_0x3259fb['root']['rootName']);_0x2f0ce9['length']>0x0&&_0x1823ba['setSelection'](_0x2f0ce9);for(const _0x3a1a14 of _0x212021)_0x3a1a14['detach']();});});});}function _0x1b6327(_0x434928){_0x3038df['model']['change'](_0x40f8fb=>{const _0x35aeca=Array['from'](_0x6bd462['getRanges']())['map'](_0x1215f6=>_0x531fcc['fromRange'](_0x1215f6)),_0x340117=[];for(const _0x262dda of _0x434928)for(const _0x32e9c2 of _0x262dda['getItems']({'shallow':!0x0}))_0x340117['push'](_0x32e9c2);for(const _0x1db9e4 of _0x340117)'$graveyard'!=_0x1db9e4['root']['rootName']&&(_0x40f8fb['setSelection'](_0x40f8fb['createPositionAt'](_0x1db9e4,0x0)),_0x3038df['commands']['get']('removeTableColumn')['refresh'](),_0x3038df['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1e0082=_0x35aeca['filter'](_0x128a9d=>'$graveyard'!=_0x128a9d['root']['rootName']);_0x1e0082['length']>0x0&&_0x40f8fb['setSelection'](_0x1e0082);for(const _0x4aeeb6 of _0x35aeca)_0x4aeeb6['detach']();});}function _0x4bd6a6(_0x4d544e,_0x506d61){return _0x506d61['every'](_0x452611=>_0x4d544e['some'](_0x5a1bc5=>_0x5a1bc5['end']['isEqual'](_0x452611['start'])||_0x452611['end']['isEqual'](_0x5a1bc5['start'])));}function _0x2c7eed(_0x3535eb,_0x5697bb){return!_0x3535eb['some'](_0x30b7a6=>_0x5697bb['some'](_0x553773=>_0x30b7a6['isIntersecting'](_0x553773)))&&_0x3535eb['some'](_0x1b1150=>_0x5697bb['some'](_0x3c1151=>_0x1b1150['end']['isTouching'](_0x3c1151['start'])));}_0x3038df['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3433f1,_0x143a2a,_0x2961d6)=>{if(!_0x2961d6['options']['showSuggestionHighlights'])return;const _0x1873a3=_0x143a2a['item'];if(!_0x1873a3)return;const _0x5ecdfa=_0x2961d6['mapper']['toViewElement'](_0x1873a3);function _0x181781(_0x427614){return Array['isArray'](_0x427614)?_0x427614:[_0x427614];}_0x5ecdfa&&'tableCell'===_0x1873a3['name']&&_0x27d1b4(_0x5ecdfa,_0x2961d6['writer'],(_0x281d93,_0x268460,_0x394ea3)=>_0x394ea3['addClass'](_0x181781(_0x268460['classes']),_0x281d93),(_0x4394c2,_0x2d31e2,_0x52bf3f)=>_0x52bf3f['removeClass'](_0x181781(_0x2d31e2['classes']),_0x4394c2));},{'priority':'highest'}),_0x35c894['descriptionFactory']['registerDescriptionCallback'](_0x6fb66e=>{if('insertion'!=_0x6fb66e['type']&&'deletion'!=_0x6fb66e['type'])return;const _0x759c13=_0x6fb66e['getContainedElement']();if(null!=_0x759c13&&_0x759c13['is']('element','table')){if('insertion'==_0x6fb66e['type']){const _0x1026cc=_0x6fb66e['getItems']()['filter'](_0x505a0a=>_0x505a0a['is']('$textProxy'))['map'](_0x5c99ef=>_0x5c99ef['data']);if(_0x1026cc['length'])return{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1026cc['join']('\x20')+'\x22'))};}if('deletion'==_0x6fb66e['type']){const _0xce1b2e=_0x6fb66e['getItems']()['filter'](_0x18cdf7=>_0x18cdf7['is']('$textProxy'))['map'](_0x34ab2c=>_0x34ab2c['data']);if(_0xce1b2e['length'])return{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xce1b2e['join']('\x20')+'\x22'))};}}}),_0x35c894['descriptionFactory']['registerDescriptionCallback'](_0x38146d=>{if('tableRow'==_0x38146d['subType']){const _0x484a33=_0x38146d['getItems']()['filter'](_0x39b7f3=>_0x39b7f3['is']('$textProxy'))['map'](_0x437087=>_0x437087['data']),_0x42eec4=this['_getSuggestionCoords'](_0x38146d),_0x4a9047=_0x42eec4['maxRow']-_0x42eec4['minRow']+0x1;if('insertion'==_0x38146d['type'])return _0x484a33['length']?{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a9047,'\x22'+_0x484a33['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_ROW',_0x4a9047))};if('deletion'==_0x38146d['type'])return _0x484a33['length']?{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a9047,'\x22'+_0x484a33['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_ROW',_0x4a9047))};}if('tableColumn'==_0x38146d['subType']){const _0x194262=_0x38146d['getItems']()['filter'](_0x49f405=>_0x49f405['is']('$textProxy'))['map'](_0x5ba02d=>_0x5ba02d['data']),_0x40ba46=this['_getSuggestionCoords'](_0x38146d),_0x45e3bf=_0x40ba46['maxColumn']-_0x40ba46['minColumn']+0x1;if('insertion'==_0x38146d['type'])return _0x194262['length']?{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x45e3bf,'\x22'+_0x194262['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_COLUMN',_0x45e3bf))};if('deletion'==_0x38146d['type'])return _0x194262['length']?{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x45e3bf,'\x22'+_0x194262['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_COLUMN',_0x45e3bf))};}}),_0x35c894['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3dd0b3),_0x35c894['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3dd0b3),_0x35c894['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1b6327),_0x35c894['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1b6327),_0x35c894['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4bd6a6),_0x35c894['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4bd6a6),_0x35c894['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2c7eed),_0x35c894['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2c7eed);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4e1ba4=this['editor'],_0x1b4728=_0x4e1ba4['model']['document']['selection'];return(_0x24a1bb,_0x2f6d02)=>{_0x4e1ba4['model']['change'](_0x205638=>{const {commandName:_0x355676,commandParams:_0x2a26ee}=_0x2f6d02;let _0x586848=_0x24a1bb[0x0]['end']['nodeBefore'];_0x2a26ee&&_0x2a26ee[0x0]&&!0x1===_0x2a26ee[0x0]['forceValue']&&(_0x586848=_0x24a1bb[0x0]['start']['nodeAfter']);const _0x5ac57f=_0x205638['createRangeIn'](_0x586848);if('$graveyard'==_0x5ac57f['root']['rootName'])return;const _0x1db5e5=Array['from'](_0x1b4728['getRanges']())['map'](_0x419f2f=>_0x531fcc['fromRange'](_0x419f2f));_0x205638['setSelection'](_0x5ac57f),_0x4e1ba4['commands']['get'](_0x355676)['refresh'](),_0x2a26ee['push']({'forceDefaultExecution':!0x0}),_0x4e1ba4['execute'](_0x355676,..._0x2a26ee);const _0x2ba3e1=_0x1db5e5['filter'](_0x3fac7c=>'$graveyard'!=_0x3fac7c['root']['rootName']);_0x2ba3e1['length']>0x0&&_0x205638['setSelection'](_0x2ba3e1);for(const _0x4f63c8 of _0x1db5e5)_0x4f63c8['detach']();});};}['_getCoordsForCells'](_0x35cadd){const _0x12e051=this['editor']['plugins']['get']('TableUtils');let _0x455184=Number['MAX_SAFE_INTEGER'],_0x10183b=Number['MIN_SAFE_INTEGER'],_0x4b7d49=Number['MAX_SAFE_INTEGER'],_0x114d0e=Number['MIN_SAFE_INTEGER'];for(const _0x76190d of _0x35cadd){if('$graveyard'==_0x76190d['root']['rootName'])continue;const {row:_0x199f1d,column:_0x1c0e62}=_0x12e051['getCellLocation'](_0x76190d),_0x4f9951=_0x76190d['hasAttribute']('rowspan')?_0x76190d['getAttribute']('rowspan')-0x1:0x0,_0x48a507=_0x76190d['hasAttribute']('colspan')?_0x76190d['getAttribute']('colspan')-0x1:0x0;_0x455184=_0x199f1d<_0x455184?_0x199f1d:_0x455184,_0x10183b=_0x199f1d+_0x4f9951>_0x10183b?_0x199f1d+_0x4f9951:_0x10183b,_0x4b7d49=_0x1c0e62<_0x4b7d49?_0x1c0e62:_0x4b7d49,_0x114d0e=_0x1c0e62+_0x48a507>_0x114d0e?_0x1c0e62+_0x48a507:_0x114d0e;}return{'minRow':_0x455184,'maxRow':_0x10183b,'minColumn':_0x4b7d49,'maxColumn':_0x114d0e};}['_setupColumnsRowsFixing'](){const _0x55d88f=this['editor'],_0x4cae49=_0x55d88f['plugins']['get']('TrackChangesEditing'),_0x418ab4=_0x55d88f['plugins']['get']('TableUtils');_0x55d88f['model']['document']['on']('change:data',()=>{const _0x2f3156=Array['from'](_0x55d88f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc34048,data:_0x532d36}of _0x2f3156){const {group:_0xc2d694,id:_0x538b78,subType:_0x4c4c96}=_0x4cae49['_splitMarkerName'](_0xc34048);if('suggestion'!=_0xc2d694)continue;if(null!=_0x532d36['oldRange'])continue;const _0x1f627a=_0x4cae49['getSuggestion'](_0x538b78);this['_tablePostFixingSubtypes']['includes'](_0x4c4c96)&&this['_tableSuggestions']['add'](_0x1f627a);}},{'priority':'low'});const _0x16d9be=(_0x207d02,_0x4ede0e)=>{let _0x19a95a=!0x1;const _0x110b5d=_0x4ede0e['createRangeOn'](_0x207d02),_0x18b054=_0x207d02['findAncestor']('table'),_0x539ed4=_0x418ab4['getCellLocation'](_0x207d02);for(const _0x3251a7 of this['_tableSuggestions']){const _0x2c3a0e=_0x3251a7['subType'],_0x494395=_0x2c3a0e['startsWith']('tablePaste'),_0x1ea28e=_0x2c3a0e['substr'](_0x494395?0xa:0x5),_0x5a3262=_0x1ea28e['toLowerCase'](),_0x34f719=_0x5a3262['substr'](0x0,0x3)+'span',_0x193f6a='min'+_0x1ea28e,_0x14fa7d='max'+_0x1ea28e;if(!_0x3251a7['isInContent'])continue;if(_0x18b054!=_0x3251a7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3251a7['isIntersectingWithRange'](_0x110b5d))continue;const _0x136316=_0x207d02['hasAttribute'](_0x34f719)?_0x207d02['getAttribute'](_0x34f719)-0x1:0x0,_0x582d54=this['_getSuggestionCoords'](_0x3251a7),_0x3ed025=_0x582d54[_0x193f6a],_0x5e7be9=_0x582d54[_0x14fa7d];_0x3ed025<=_0x539ed4[_0x5a3262]&&_0x539ed4[_0x5a3262]+_0x136316<=_0x5e7be9&&(_0x3251a7['addRange'](_0x110b5d),_0x19a95a=!0x0);}return _0x19a95a;};_0x55d88f['model']['document']['registerPostFixer'](_0x5da9f6=>{let _0x1b80a4=!0x1;for(const _0x35d54c of _0x55d88f['model']['document']['differ']['getChanges']())if('insert'==_0x35d54c['type']){if('tableRow'==_0x35d54c['name']){for(const _0x2e31c4 of _0x35d54c['position']['nodeAfter']['getChildren']())_0x1b80a4=_0x1b80a4||_0x16d9be(_0x2e31c4,_0x5da9f6);}else'tableCell'==_0x35d54c['name']&&(_0x1b80a4=_0x1b80a4||_0x16d9be(_0x35d54c['position']['nodeAfter'],_0x5da9f6));}return _0x1b80a4;});}['_getSuggestionCoords'](_0xad453b){return this['_getCoordsForCells'](_0xad453b['getRanges']()['map'](_0x1055c0=>_0x1055c0['start']['nodeAfter']));}}function Ne(_0x5ac8f5){return Array['from'](new Set(_0x5ac8f5)['values']());}class _t extends _0x538eb2{static get['requires'](){return[vt];}['afterInit'](){const _0x374bd1=this['editor'],_0x226550=_0x374bd1['model']['document']['selection'],_0x2e34eb=_0x374bd1['locale'];if(!_0x374bd1['plugins']['has']('TableEditing'))return;const _0x1be3c1=_0x374bd1['plugins']['get']('TrackChangesEditing'),_0x6b0542=_0x374bd1['plugins']['get']('TableUtils'),_0x515160=_0x374bd1['plugins']['get'](vt);_0x515160['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1be3c1['enableCommand']('mergeTableCells',()=>{const _0x26c8c3=_0x6b0542['getSelectionAffectedTableCells'](_0x374bd1['model']['document']['selection']);_0x374bd1['model']['change'](()=>{_0x1be3c1['markMultiRangeBlockFormat'](_0x26c8c3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x374bd1['commands']['get']('mergeTableCells')['on']('execute',(_0x4e3a06,_0x291230)=>{_0x374bd1['commands']['get']('trackChanges')['value']&&(_0x291230['length']>0x0&&_0x291230[_0x291230['length']-0x1]&&_0x291230[_0x291230['length']-0x1]['forceDefaultExecution']||_0x1be3c1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4e3a06['stop']());},{'priority':'highest'});for(const _0xe56a64 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x390186=_0x374bd1['commands']['get'](_0xe56a64);_0x1be3c1['enableCommand'](_0xe56a64,()=>{const _0x2eda70=_0x374bd1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x84f519=>_0x84f519['is']('element','tableCell')),_0x18b4ca=_0x390186['value'];_0x374bd1['model']['change'](()=>{_0x1be3c1['markMultiRangeBlockFormat']([_0x2eda70,_0x18b4ca],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x217073 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2eda33=_0x374bd1['commands']['get'](_0x217073);_0x1be3c1['enableCommand'](_0x217073,()=>{const _0x19d852=_0x6b0542['getSelectionAffectedTableCells'](_0x374bd1['model']['document']['selection'])[0x0],_0x578854=_0x19d852['findAncestor']('table'),{column:_0x5e64c6,row:_0x3b7c71}=_0x6b0542['getCellLocation'](_0x19d852);let _0x5e8a96=[];if('horizontally'==_0x2eda33['direction']){const _0x524333=_0x6b0542['createTableWalker'](_0x578854,{'startRow':_0x3b7c71,'endRow':_0x3b7c71,'includeAllSlots':!0x0});_0x5e8a96=Array['from'](_0x524333)['map'](_0x178337=>_0x178337['cell']);}else{const _0x1a233c=_0x6b0542['createTableWalker'](_0x578854,{'column':_0x5e64c6,'includeAllSlots':!0x0});_0x5e8a96=Array['from'](_0x1a233c)['map'](_0x39780b=>_0x39780b['cell']);}_0x374bd1['model']['change'](_0x45de8a=>{_0x1be3c1['markBlockFormat'](_0x45de8a['createRangeOn'](_0x19d852),{'commandName':_0x217073,'commandParams':[]},_0x5e8a96,_0x217073);});});}_0x1be3c1['descriptionFactory']['registerDescriptionCallback'](_0x3859fd=>{if('formatBlock'!=_0x3859fd['type']&&'formatInline'!=_0x3859fd['type'])return;const {data:_0x3bf99b}=_0x3859fd;return _0x3bf99b&&'mergeTableCells'==_0x3bf99b['commandName']?{'type':'format','content':o(_0x2e34eb,'*Merge\x20cells*')}:void 0x0;}),_0x1be3c1['descriptionFactory']['registerDescriptionCallback'](_0x3e953b=>{if('formatBlock'!=_0x3e953b['type']&&'formatInline'!=_0x3e953b['type'])return;const {data:_0x17c0c8}=_0x3e953b;return _0x17c0c8?'splitTableCellVertically'==_0x17c0c8['commandName']?{'type':'format','content':o(_0x2e34eb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x17c0c8['commandName']?{'type':'format','content':o(_0x2e34eb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20724f=_0x515160['_acceptFormatSuggestionCallbackFactory']();for(const _0x1d9067 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1be3c1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d9067,'accept',_0x20724f);for(const _0x32f7bc of['splitTableCellVertically','splitTableCellHorizontally'])_0x1be3c1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32f7bc,'accept',_0x20724f);_0x1be3c1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x39b01a=>{_0x374bd1['model']['change'](_0x576c3d=>{const _0x5720da=Array['from'](_0x226550['getRanges']())['map'](_0x344e2d=>_0x531fcc['fromRange'](_0x344e2d));_0x576c3d['setSelection'](_0x39b01a),_0x374bd1['commands']['get']('mergeTableCells')['refresh'](),_0x374bd1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x51b4f0=_0x5720da['filter'](_0x455e5f=>'$graveyard'!=_0x455e5f['root']['rootName']);_0x51b4f0['length']>0x0&&_0x576c3d['setSelection'](_0x51b4f0);for(const _0x57e8b7 of _0x5720da)_0x57e8b7['detach']();});});for(const _0x9ce19d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2e8fa4=_0x374bd1['commands']['get'](_0x9ce19d);_0x2e8fa4['on']('set:isEnabled',(_0x489eee,_0x3cc2f5,_0x26c96c)=>{if(_0x26c96c){const _0x5ace03=_0x374bd1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23d3bd=>_0x23d3bd['is']('element','tableCell'));this['_areMergableCells'](_0x2e8fa4['value'],_0x5ace03)||(_0x489eee['return']=!0x1,_0x489eee['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xad77a2=this['editor']['commands']['get']('mergeTableCells'),_0x2af6a2=this['editor']['plugins']['get']('TableUtils');if(!_0xad77a2['isEnabled'])return!0x1;const _0x5f1d5c=_0x2af6a2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b39a4 of _0x5f1d5c)for(const _0x4d7587 of _0x5f1d5c)if(_0x2b39a4!=_0x4d7587&&!this['_areMergableCells'](_0x2b39a4,_0x4d7587))return!0x1;return!0x0;}['_areMergableCells'](_0x5ccb36,_0x676690){const _0xca53ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fb686=this['editor']['model']['createRangeOn'](_0x5ccb36),_0x131677=this['editor']['model']['createRangeOn'](_0x676690),_0x2fca70=new Set(),_0x530ce2=new Set();for(const _0x5054cd of _0xca53ac['getSuggestions']())if(('insertion'==_0x5054cd['type']||'deletion'==_0x5054cd['type']||'mergeTableCells'==_0x5054cd['subType'])&&_0x5054cd['isInContent']){for(const _0x29304a of _0x5054cd['getRanges']())_0x29304a['containsRange'](_0x3fb686,!0x0)&&_0x2fca70['add'](_0x5054cd['type']+':'+_0x5054cd['author']['id']),_0x29304a['containsRange'](_0x131677,!0x0)&&_0x530ce2['add'](_0x5054cd['type']+':'+_0x5054cd['author']['id']);}if(_0x2fca70['size']!=_0x530ce2['size'])return!0x1;for(const _0x42618b of _0x2fca70)if(!_0x530ce2['has'](_0x42618b))return!0x1;return!0x0;}}class Ct extends _0x538eb2{static get['requires'](){return[vt];}['afterInit'](){const _0x3066e9=this['editor'];if(!_0x3066e9['plugins']['has']('TableEditing'))return;const _0x206187=_0x3066e9['locale'],_0x773054=_0x3066e9['plugins']['get']('TrackChangesEditing');_0x773054['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x773054['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x773054['registerBlockAttribute']('headingRows'),_0x773054['registerBlockAttribute']('headingColumns'),_0x773054['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x206187,'FORMAT_HEADER_ROW')),_0x773054['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x206187,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cb1e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4090e3=this['editor']['plugins']['get']('TableUtils'),_0x334b5f=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x38cd5e({showActiveMarker:_0x28ea68=!0x0,setDataAttribute:_0x7db405=!0x0}={}){return(_0x3fea17,_0xdf1fc8,_0x463f99)=>{const {type:_0x1685b8,id:_0x8c03ce}=_0x1cb1e1['_splitMarkerName'](_0xdf1fc8['markerName']),_0x246344=_0x1cb1e1['getSuggestion'](_0x8c03ce),_0x346ae7=_0x246344['data'];if('formatBlock'!=_0x246344['type']||!_0x346ae7||'setTableColumnHeader'!=_0x346ae7['commandName'])return;if(_0xdf1fc8['item'])return void _0x3fea17['stop']();if(!_0x463f99['consumable']['consume'](_0xdf1fc8['markerRange'],_0x3fea17['name']))return;const _0x9b99df=_0xdf1fc8['markerRange']['start']['nodeAfter'],_0x50bb21=_0xdf1fc8['markerRange']['end']['nodeBefore'],_0x61662b=_0x9b99df['parent']['parent'],{column:_0x18e747}=_0x4090e3['getCellLocation'](_0x9b99df),{column:_0x191e0f}=_0x4090e3['getCellLocation'](_0x50bb21);for(let _0x2098a7=_0x18e747;_0x2098a7<=_0x191e0f;_0x2098a7++){const _0x481bf7=_0x4090e3['createTableWalker'](_0x61662b,{'column':_0x2098a7,'includeAllSlots':!0x1});for(const _0x2a563a of _0x481bf7){const _0x36b211=_0x2a563a['cell'],_0xbbea6=_0x463f99['mapper']['toViewElement'](_0x36b211);_0x463f99['writer']['addClass']('ck-suggestion-marker-'+_0x1685b8,_0xbbea6),_0x7db405&&_0x463f99['writer']['setAttribute']('data-suggestion',_0x8c03ce,_0xbbea6),_0x463f99['mapper']['bindElementToMarker'](_0xbbea6,_0xdf1fc8['markerName']),_0x28ea68&&(_0x1cb1e1['activeMarkers']['includes'](_0xdf1fc8['markerName'])?_0x463f99['writer']['addClass']('ck-suggestion-marker--active',_0xbbea6):_0x463f99['writer']['removeClass']('ck-suggestion-marker--active',_0xbbea6));}}};}_0x1cb1e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x334b5f),_0x1cb1e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x334b5f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38cd5e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x239b21,_0x473362,_0x537daf)=>{_0x537daf['options']['showSuggestionHighlights']&&_0x38cd5e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x239b21,_0x473362,_0x537daf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x155b4a,_0x475a5a,_0x2fc678)=>{const {type:_0x82b719,id:_0x457e32}=_0x1cb1e1['_splitMarkerName'](_0x475a5a['markerName']),_0x3a3286=_0x1cb1e1['getSuggestion'](_0x457e32),_0x2d6350=_0x3a3286['data'];if('formatBlock'!=_0x3a3286['type']||!_0x2d6350||'setTableColumnHeader'!=_0x2d6350['commandName'])return;const _0x261883=_0x2fc678['mapper']['markerNameToElements'](_0x475a5a['markerName']);if(_0x261883){for(const _0x2d2f97 of _0x261883)_0x2fc678['writer']['removeClass']('ck-suggestion-marker-'+_0x82b719,_0x2d2f97),_0x2fc678['writer']['removeClass']('ck-suggestion-marker--active',_0x2d2f97),_0x2fc678['writer']['removeAttribute']('data-suggestion',_0x2d2f97),_0x2fc678['mapper']['unbindElementFromMarkerName'](_0x2d2f97,_0x475a5a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21f158=this['editor'],_0x4177cc=_0x21f158['locale'];function _0x8b845b(_0x1a2cc9){return{'type':'format','content':o(_0x4177cc,'*Format:*\x20%0',_0x1a2cc9)};}_0x21f158['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17b5f6=>{if('formatBlock'!=_0x17b5f6['type'])return;const {data:_0x5a7305}=_0x17b5f6;if(_0x5a7305){if('setTableRowHeader'==_0x5a7305['commandName']){const _0x488b9e=_0x5a7305['commandParams'][0x0]['forceValue'];return _0x8b845b(o(_0x4177cc,_0x488b9e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5a7305['commandName']){const _0x3c2de8=_0x5a7305['commandParams'][0x0]['forceValue'];return _0x8b845b(o(_0x4177cc,_0x3c2de8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x12c80d=>[_0x12c80d,null]));class Nt extends _0x538eb2{static get['requires'](){return[vt];}['afterInit'](){const _0x42ea9f=this['editor'];if(!_0x42ea9f['plugins']['has']('TableClipboard'))return;const _0x4333a9=_0x42ea9f['plugins']['get']('TrackChangesEditing'),_0x3ad433=_0x42ea9f['plugins']['get']('TableUtils'),_0x7a8ada=_0x42ea9f['plugins']['get'](vt),_0x1c650c=_0x42ea9f['plugins']['get']('TableClipboard');_0x7a8ada['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42ea9f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42ea9f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x576ab3=null;_0x42ea9f['model']['on']('insertContent',(_0x110f3b,_0x1031b2)=>{const [_0x13c9b7,_0x303740]=_0x1031b2,_0xe6630b=_0x1031b2[_0x1031b2['length']-0x1];_0xe6630b&&_0xe6630b['forceDefaultExecution']||_0x4333a9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3db2df,_0x3924c4,_0xe116cd,_0x4b4582,_0x47b653){if(_0x3924c4&&!_0x3924c4['is']('documentSelection'))return!0x1;const _0x2f0377=_0x47b653['getTableIfOnlyTableInContent'](_0x3db2df,_0xe116cd);if(!_0x2f0377||!Ue(_0x2f0377,void 0x0,_0x4b4582))return!0x1;const _0xe5e4d4=_0x4b4582['getSelectionAffectedTableCells'](_0xe116cd['document']['selection']);if(!_0xe5e4d4['length'])return!0x1;const _0x1b0c5c=_0xe5e4d4[0x0]['findAncestor']('table'),_0x5c303e=_0x4b4582['getRowIndexes'](_0xe5e4d4),_0x47f720=_0x4b4582['getColumnIndexes'](_0xe5e4d4),_0x58c7be={'startRow':_0x5c303e['first'],'endRow':_0x5c303e['last'],'startColumn':_0x47f720['first'],'endColumn':_0x47f720['last']};return 0x1==_0xe5e4d4['length']&&(_0x58c7be['endRow']+=_0x4b4582['getRows'](_0x2f0377)-0x1,_0x58c7be['endColumn']+=_0x4b4582['getColumns'](_0x2f0377)-0x1),Ue(_0x1b0c5c,_0x58c7be,_0x4b4582);}(_0x13c9b7,_0x303740,_0x42ea9f['model'],_0x3ad433,_0x1c650c)&&(_0x110f3b['stop'](),_0x576ab3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42ea9f['model']['change'](()=>{_0x42ea9f['model']['insertContent'](_0x1031b2[0x0],_0x1031b2[0x1],_0x1031b2[0x2],{'forceDefaultExecution':!0x0});const _0x4c8355=_0x30b629(),{rowInsertionRanges:_0x549196,columnInsertionRanges:_0x22aaba,insertionRanges:_0x198e0e,deletionRanges:_0x53841b,cells:_0xc4cd66}=_0x576ab3;_0x549196['length']&&_0x4333a9['markMultiRangeInsertion'](_0x549196,'tablePasteRow',{'tablePasteChainId':_0x4c8355}),_0x22aaba['length']&&_0x4333a9['markMultiRangeInsertion'](_0x22aaba,'tablePasteColumn',{'tablePasteChainId':_0x4c8355}),_0x198e0e['length']&&(_0x4333a9['markMultiRangeInsertion'](_0x198e0e,'tablePaste',{'tablePasteChainId':_0x4c8355,'skipNestingCheck':!0x0}),_0x198e0e['forEach'](_0x5c1371=>_0x5c1371['detach']?.())),_0x53841b['length']&&(_0x4333a9['markMultiRangeDeletion'](_0x53841b,'tablePaste',{'tablePasteChainId':_0x4c8355,'skipNestingCheck':!0x0}),_0x53841b['forEach'](_0x3bd43d=>_0x3bd43d['detach']?.()));const _0xbf0657=_0x4333a9['markMultiRangeBlockFormat'](_0xc4cd66['map'](({element:_0x44b50a})=>_0x44b50a),{'formatGroupId':_0x30b629()},[],'tablePasteCell',{'tablePasteChainId':_0x4c8355});if(_0xbf0657){const _0x57b96d=_0xbf0657['getMarkers'](),_0x388503=[];for(const {element:_0x31f399,attributes:_0x50616c}of _0xc4cd66){if(!_0x50616c)continue;const _0x4f9db9=_0x42ea9f['model']['createRangeOn'](_0x31f399),_0x2cbf90=_0x57b96d['find'](_0x3e0438=>_0x3e0438['getRange']()['isEqual'](_0x4f9db9));_0x2cbf90&&_0x388503['push']([_0x2cbf90['name'],_0x50616c]);}_0x388503['length']&&_0xbf0657['setAttribute']('markerAttributes',Object['fromEntries'](_0x388503));}_0x576ab3=null;}));},{'priority':_0x5b63b3['high']+0xa}),_0x42ea9f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3825bd,_0x234ca4)=>{const [_0x139608,_0x4d2de4,,_0x58b44f]=_0x234ca4;if(!_0x576ab3)return;_0x3825bd['stop']();const _0x5c3acc=_0x139608['cell'],_0x358c2f=_0x4d2de4,_0x4eaa1f=Oe(_0x5c3acc),_0x1b150b=Oe(_0x358c2f);_0x3825bd['return']=_0x5c3acc;let _0x397deb=null,_0x578d9b=null;if(_0x1b150b||_0x4eaa1f){if(_0x4eaa1f&&!_0x1b150b){_0x58b44f['remove'](_0x5c3acc['getChild'](0x0));for(const _0xd6f4e4 of Array['from'](_0x358c2f['getChildren']()))_0x58b44f['insert'](_0xd6f4e4,_0x5c3acc,'end');const _0x18f567=_0x576ab3['rowInsertionIndexes']['includes'](_0x139608['row']),_0xa40b54=_0x576ab3['columnInsertionIndexes']['includes'](_0x139608['column']);_0x18f567||_0xa40b54||(_0x397deb=_0x531fcc['fromRange'](_0x58b44f['createRangeIn'](_0x5c3acc)));}else _0x1b150b&&!_0x4eaa1f&&(_0x578d9b=_0x58b44f['createRangeIn'](_0x5c3acc));}else{const _0x56be76=_0x58b44f['createElement']('tableCellSuggestion'),_0x237d0f=_0x58b44f['createElement']('tableCellSuggestion');_0x58b44f['wrap'](_0x58b44f['createRangeIn'](_0x5c3acc),_0x237d0f),_0x58b44f['insert'](_0x56be76,_0x5c3acc,0x0);for(const _0x364e37 of Array['from'](_0x358c2f['getChildren']()))_0x58b44f['insert'](_0x364e37,_0x56be76,'end');_0x397deb=_0x531fcc['fromRange'](_0x58b44f['createRangeOn'](_0x56be76)),_0x578d9b=_0x531fcc['fromRange'](_0x58b44f['createRangeOn'](_0x237d0f));}const _0x2555da=Array['from'](_0x358c2f['getAttributes']())['filter'](([_0x530ad2])=>Be['includes'](_0x530ad2));_0x576ab3['cells']['push']({'element':_0x5c3acc,'attributes':_0x2555da['length']?Object['fromEntries'](_0x2555da):null}),_0x397deb&&_0x576ab3['insertionRanges']['push'](_0x397deb),_0x578d9b&&_0x576ab3['deletionRanges']['push'](_0x578d9b);},{'priority':'high'}),_0x3ad433['on']('insertColumns',(_0x22ef2e,_0x50b836)=>{const [_0x51ce1b,_0x450a71={}]=_0x50b836;if(!_0x576ab3)return;const _0x5a4092=_0x450a71['at']||0x0,_0x35b2b2=_0x450a71['columns']||0x1;_0x576ab3['columnInsertionIndexes']=new Array(_0x35b2b2)['fill'](_0x5a4092)['map']((_0x19ca3f,_0x4484fd)=>_0x19ca3f+_0x4484fd);for(const {cell:_0x2552ec}of _0x3ad433['createTableWalker'](_0x51ce1b,{'startColumn':_0x5a4092,'endColumn':_0x5a4092+_0x35b2b2-0x1}))_0x576ab3['columnInsertionRanges']['push'](_0x42ea9f['model']['createRangeOn'](_0x2552ec));},{'priority':'low'}),_0x3ad433['on']('insertRows',(_0x220395,_0x1ed0f8)=>{const [_0x2623e7,_0x88104e={}]=_0x1ed0f8;if(!_0x576ab3)return;const _0x453303=_0x88104e['at']||0x0,_0x10ee4c=_0x88104e['rows']||0x1;_0x576ab3['rowInsertionIndexes']=new Array(_0x10ee4c)['fill'](_0x453303)['map']((_0x2dcb2c,_0x43ba67)=>_0x2dcb2c+_0x43ba67);for(const {cell:_0x4c9dac}of _0x3ad433['createTableWalker'](_0x2623e7,{'startRow':_0x453303,'endRow':_0x453303+_0x10ee4c-0x1}))_0x576ab3['rowInsertionRanges']['push'](_0x42ea9f['model']['createRangeOn'](_0x4c9dac));},{'priority':'low'}),_0x4333a9['descriptionFactory']['registerDescriptionCallback'](_0x40a931=>{if(_0x40a931['subType']&&_0x40a931['subType']['startsWith']('tablePaste'))return _0x40a931['previous']?{}:{'type':'insertion','content':o(_0x42ea9f['locale'],'*Replace\x20table\x20cells*')};});const _0x4284b7=()=>!0x1;for(const _0x1d4bc7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4333a9['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d4bc7,'join',_0x4284b7),_0x4333a9['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d4bc7,'join',_0x4284b7),_0x4333a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d4bc7,'join',_0x4284b7);_0x4333a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4284b7),_0x4333a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x10d0b2,_0x4a0f5c,_0x4e4f4b)=>{const _0x479ff8=_0x10d0b2['map'](_0x5e03ea=>_0x5e03ea['getContainedElement']())['filter'](_0x174f61=>_0x174f61),_0x3b19e4=new Map(_0x479ff8['map'](_0x28e757=>[_0x28e757,null]));if(_0x576ab3){for(const {element:_0x27d8be,attributes:_0x493bfc}of _0x576ab3['cells'])_0x493bfc&&_0x3b19e4['set'](_0x27d8be,_0x493bfc);}else{if(_0x4e4f4b&&_0x4e4f4b['markerAttributes'])for(const [_0x108ee5,_0x376a2b]of Object['entries'](_0x4e4f4b['markerAttributes'])){const _0x35dd97=_0x42ea9f['model']['markers']['get'](_0x108ee5),_0x65f9e9=_0x35dd97?_0x35dd97['getRange']()['getContainedElement']():null;_0x65f9e9&&_0x3b19e4['set'](_0x65f9e9,_0x376a2b);}}_0x42ea9f['model']['change'](_0x1928a4=>{for(const [_0x155c1c,_0x4cb152]of _0x3b19e4)_0x1928a4['setAttributes']({...xe,..._0x4cb152},_0x155c1c);});});const _0x2e1d1b=(_0x48c241,_0x4e3acb)=>{_0x4333a9['_suggestionFactory']['registerCustomCallback'](_0x48c241,'tablePaste',_0x4e3acb,(_0x53b2a8,_0x170ff7,_0x5d05c6)=>{_0x42ea9f['model']['change'](_0x347ffd=>{const _0x3926b3=[];for(const _0x1eb7f1 of _0x53b2a8){const _0x5f5689=_0x1eb7f1['start']['nodeAfter'];_0x5f5689['is']('element','tableCellSuggestion')&&_0x3926b3['push'](_0x5f5689);}_0x4333a9['_suggestionFactory']['getSuggestionCallback'](_0x48c241,null,_0x4e3acb)(_0x53b2a8,_0x170ff7,_0x5d05c6);for(const _0x5aa54e of _0x3926b3)'$graveyard'!=_0x5aa54e['root']['rootName']&&_0x347ffd['unwrap'](_0x5aa54e);});});};_0x2e1d1b('insertion','accept'),_0x2e1d1b('insertion','discard'),_0x2e1d1b('deletion','accept'),_0x2e1d1b('deletion','discard'),_0x4333a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5036f9=>{const _0x44c40b=_0x5036f9['map'](_0x1fde8a=>_0x1fde8a['getContainedElement']()),_0xb01615=_0x44c40b[0x0]['findAncestor']('table'),{minRow:_0x43b922,maxRow:_0x5cc28d}=_0x7a8ada['_getCoordsForCells'](_0x44c40b);_0x3ad433['removeRows'](_0xb01615,{'at':_0x43b922,'rows':_0x5cc28d-_0x43b922+0x1});}),_0x4333a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x403026=>{const _0x1d2d8f=_0x403026['map'](_0x402582=>_0x402582['getContainedElement']()),_0xfda83b=_0x1d2d8f[0x0]['findAncestor']('table'),{minColumn:_0x3b18b8,maxColumn:_0x370541}=_0x7a8ada['_getCoordsForCells'](_0x1d2d8f);_0x3ad433['removeColumns'](_0xfda83b,{'at':_0x3b18b8,'columns':_0x370541-_0x3b18b8+0x1});});const _0x129cc1=(_0x58eff4,_0x1b2cff)=>{if(!_0x1b2cff['subType']||!_0x1b2cff['subType']['startsWith']('tablePaste'))return;const _0x285cb1=_0x1b2cff['attributes']['tablePasteChainId'],_0x488fab=_0x4333a9['getSuggestions']()['filter'](_0x1ddfd2=>_0x1ddfd2['isInContent']&&_0x1ddfd2['attributes']&&_0x1ddfd2['attributes']['tablePasteChainId']==_0x285cb1);_0x488fab['length']&&_0x1b2cff['getAllAdjacentSuggestions']()['length']!=_0x488fab['length']&&_0x488fab['reduce']((_0x2b5adc,_0x396c90)=>(_0x2b5adc['next']=_0x396c90,_0x396c90['previous']=_0x2b5adc,_0x396c90));};function _0x9404a0(_0x5de6a9,_0xc33312=!0x0){const {id:_0x21c3e2,authorId:_0x3ffab5}=_0x4333a9['_splitMarkerName'](_0x5de6a9['markerName']),_0x43eff2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x20c381=_0x4333a9['activeMarkers']['includes'](_0x5de6a9['markerName']);return _0x20c381&&_0x43eff2['push']('ck-suggestion-marker--active'),{'classes':_0x43eff2,'attributes':{'data-suggestion':_0x21c3e2,'data-author-id':_0x3ffab5},'priority':_0x20c381&&_0xc33312?0xbc2:0xbb8};}_0x4333a9['on']('suggestionLoaded',_0x129cc1,{'priority':'high'}),_0x4333a9['on']('suggestionUnloaded',_0x129cc1,{'priority':'high'}),_0x42ea9f['model']['document']['registerPostFixer'](()=>{let _0x34e9ea=!0x1;const _0x14385d=Array['from'](_0x42ea9f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f0347,data:_0x140509}of _0x14385d){const {group:_0x582d87,type:_0x56aed0,id:_0x274d8b}=_0x4333a9['_splitMarkerName'](_0x4f0347);if('suggestion'!=_0x582d87||'deletion'!=_0x56aed0||_0x140509['oldRange'])continue;if(!_0x4333a9['hasSuggestion'](_0x274d8b))continue;const _0x566764=_0x4333a9['getSuggestion'](_0x274d8b)['getRanges'](),_0x17dd4e=_0x42ea9f['plugins']['get']('Users')['me'];for(const _0x177097 of _0x4333a9['getSuggestions']()){if(!_0x177097['isInContent']||_0x177097['author']!=_0x17dd4e)continue;if('formatBlock'!=_0x177097['type']||'tablePasteCell'!=_0x177097['subType'])continue;if(_0x177097['getRanges']()['every'](_0x17b3de=>_0x566764['some'](_0x3a3196=>_0x3a3196['containsRange'](_0x17b3de,!0x0)))){for(const _0x314c36 of _0x177097['getAllAdjacentSuggestions']())_0x314c36['isInContent']&&(_0x314c36['discard'](),_0x34e9ea=!0x0);}}}return _0x34e9ea;}),_0x42ea9f['model']['document']['registerPostFixer'](_0x7616b9=>{const _0x151d7c=_0x42ea9f['commands']['get']('redo');if(!_0x151d7c||!_0x151d7c['_createdBatches']['has'](_0x7616b9['batch']))return!0x1;let _0x513147=!0x1;const _0x58330d=_0x42ea9f['plugins']['get']('Users')['me'],_0x961bd9=_0x42ea9f['model']['document']['differ']['getChanges'](),_0x493fa6=Array['from'](_0x42ea9f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x371283,data:_0x21a1ae})=>{const {group:_0x229f8d,subType:_0x5a0e38,authorId:_0x471e62}=_0x4333a9['_splitMarkerName'](_0x371283);return'suggestion'==_0x229f8d&&'tablePaste'==_0x5a0e38&&_0x471e62==_0x58330d['id']&&!_0x21a1ae['oldRange'];});for(const _0x1a967a of _0x961bd9){if('insert'!=_0x1a967a['type']||'tableCellSuggestion'!=_0x1a967a['name']||0x1!=_0x1a967a['length'])continue;const _0x1a6b98=_0x7616b9['createRange'](_0x1a967a['position'],_0x1a967a['position']['getShiftedBy'](0x1));if(!_0x493fa6['find'](({data:_0x4f29e6})=>_0x4f29e6['newRange']['isEqual'](_0x1a6b98))){for(const {name:_0x73db40,data:_0x3257e0}of _0x493fa6)if(_0x1a6b98['containsRange'](_0x3257e0['newRange'])){_0x7616b9['updateMarker'](_0x73db40,{'range':_0x1a6b98}),_0x513147=!0x0;break;}}}return _0x513147;}),_0x42ea9f['model']['document']['registerPostFixer'](_0x1bd118=>{let _0xa74190=!0x1;const _0x26d1c6=_0x42ea9f['plugins']['get']('Users')['me'],_0x13d66d=_0x4333a9['getSuggestions']()['filter'](_0x1fcf9d=>_0x1fcf9d['isInContent']&&_0x1fcf9d['author']==_0x26d1c6),_0x944575=new Set(),_0x20c0f4=new Set();for(const _0x23e658 of _0x13d66d)if('tablePaste'==_0x23e658['subType'])for(const _0x6291cf of _0x23e658['getMarkers']()){const _0x453f7e=_0x6291cf['getRange']()['getContainedElement']();if(_0x453f7e){if(_0x453f7e['is']('element','tableCellSuggestion')&&Oe(_0x453f7e)){_0x23e658['removeMarker'](_0x6291cf['name']),_0x944575['add'](_0x453f7e),_0xa74190=!0x0;const _0x177eb6=_0x453f7e['nextSibling'],_0x5f2b4f=_0x453f7e['previousSibling'],_0x5878a2=_0x177eb6&&_0x177eb6['is']('element','tableCellSuggestion'),_0x42ff32=_0x5f2b4f&&_0x5f2b4f['is']('element','tableCellSuggestion');_0x5878a2&&!_0x944575['has'](_0x177eb6)&&_0x20c0f4['add'](_0x177eb6),_0x42ff32&&!_0x944575['has'](_0x5f2b4f)&&_0x20c0f4['add'](_0x5f2b4f);}else _0x453f7e['is']('element','paragraph')&&_0x453f7e['isEmpty']&&(_0x23e658['removeMarker'](_0x6291cf['name']),_0xa74190=!0x0);}}else{if('tablePasteCell'==_0x23e658['subType']){if(!_0x23e658['attributes']||!_0x23e658['attributes']['tablePasteChainId'])continue;const _0x5a3342=_0x23e658['attributes']['markerAttributes'];if(_0x5a3342&&Object['keys'](_0x5a3342)['length'])continue;const _0x20c21c=_0x23e658['attributes']['tablePasteChainId'];let _0x413d53=!0x0,_0x2f2b25=!0x0;for(const _0x5ecf59 of _0x13d66d)if(_0x5ecf59['subType']&&_0x5ecf59['subType']['startsWith']('tablePaste')){if(!_0x5ecf59['attributes']['tablePasteChainId']){_0x2f2b25=!0x1;break;}if(_0x5ecf59['id']!=_0x23e658['id']&&_0x5ecf59['attributes']['tablePasteChainId']==_0x20c21c){_0x413d53=!0x1;break;}}_0x2f2b25&&_0x413d53&&(_0x23e658['removeMarkers'](),_0xa74190=!0x0);}}for(const _0x3b7bc3 of _0x944575)_0x1bd118['remove'](_0x3b7bc3);for(const _0x12ef68 of _0x20c0f4)_0x1bd118['unwrap'](_0x12ef68);return _0xa74190;}),_0x42ea9f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x145bf8=>_0x9404a0(_0x145bf8),'converterPriority':'high'}),_0x42ea9f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x43b2d6,_0x2b4493)=>_0x2b4493['options']['showSuggestionHighlights']?_0x9404a0(_0x43b2d6,!0x1):null,'converterPriority':'high'});const _0x2caa6f=_0x42ea9f['editing']['view'];this['listenTo'](_0x2caa6f['document'],'clipboardOutput',(_0xcae83b,_0x5e3ca8)=>{const _0x43743f=[];for(const _0x46272b of _0x2caa6f['createRangeIn'](_0x5e3ca8['content'])['getItems']())_0x46272b['is']('element','suggestion-td')&&_0x43743f['push'](_0x46272b);_0x2caa6f['change'](_0x599961=>{for(const _0x13215c of _0x43743f)_0x599961['move'](_0x599961['createRangeIn'](_0x13215c),_0x599961['createPositionBefore'](_0x13215c)),_0x599961['remove'](_0x13215c);});});}}function Oe(_0x9adf48){if(_0x9adf48['isEmpty'])return!0x0;const _0x17e78a=_0x9adf48['getChild'](0x0);return _0x17e78a['is']('element','paragraph')&&_0x17e78a['isEmpty'];}function Ue(_0x3c0058,_0x407be3={},_0x2e4688){for(const {isAnchor:_0x47a360,cellHeight:_0x2a0c4a,cellWidth:_0x19dbf0}of _0x2e4688['createTableWalker'](_0x3c0058,{'includeAllSlots':!0x0,..._0x407be3}))if(!_0x47a360||0x1!=_0x2a0c4a||0x1!=_0x19dbf0)return!0x1;return!0x0;}class Dt extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x192ab9=this['editor']['plugins']['get']('TrackChangesEditing');_0x192ab9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x192ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x192ab9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x192ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x192ab9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x192ab9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x215437,_0x518034){const _0x426a9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47c96f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xe43091=_0x518034['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28bc92=_0x47c96f['getColumnGroupElement'](_0xe43091);let _0x418592=_0x28bc92?_0x47c96f['getTableColumnsWidths'](_0x28bc92):null,_0x2d93fe=_0xe43091['getAttribute']('tableWidth')||null;const _0x135327=_0x518034['tableWidth']||_0x2d93fe,_0x13d514=_0x518034['columnWidths']||_0x418592,_0x125500=this['editor']['plugins']['get']('Users')['me'];for(const _0x4893f8 of _0x426a9a['getSuggestions']()){const _0x2561b7=_0x4893f8['getContainedElement']();if('resizeTable'===_0x4893f8['subType']&&_0x2561b7===_0xe43091){_0x4893f8['author']!==_0x125500&&_0x4893f8['discard']();const _0x3c9e3b=_0x4893f8['data']['commandParams'];_0x2d93fe=_0x3c9e3b[0x0]['tableWidth'],_0x418592=_0x3c9e3b[0x0]['columnWidths'];break;}}_0x215437({'table':_0xe43091,'tableWidth':_0x135327,'columnWidths':_0x13d514}),_0x426a9a['markBlockFormat'](_0xe43091,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2d93fe,'columnWidths':_0x418592}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x588a4e){if('formatBlock'!=_0x588a4e['type']&&'formatInline'!=_0x588a4e['type'])return;const {data:_0x27f5ab}=_0x588a4e;if(_0x27f5ab&&'resizeTable'===_0x27f5ab['formatGroupId']){const _0x275232='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x275232)};}}}class Mt extends _0x538eb2{['afterInit'](){const _0xb85d1b=this['editor'];_0xb85d1b['plugins']['has']('Template')&&_0xb85d1b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x538eb2{['afterInit'](){const _0x2d7b68=this['editor'];if(!_0x2d7b68['commands']['get']('insertTableOfContents'))return;_0x2d7b68['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28aabb=_0x2d7b68['plugins']['get']('TrackChangesEditing'),_0x94f89c=_0x2d7b68['locale'];_0x28aabb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x303cc5=>o(_0x94f89c,'ELEMENT_TABLE_OF_CONTENTS',_0x303cc5));}}class Bt extends _0x538eb2{['afterInit'](){const _0x138987=this['editor'];if(!_0x138987['plugins']['has']('Title'))return;const _0x4d58af=_0x138987['plugins']['get']('TrackChangesEditing');_0x4d58af['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x138987['locale'],'ELEMENT_TITLE')),_0x138987['model']['document']['registerPostFixer'](_0x245eb3=>{let _0x4f223e=!0x1;const _0x1c11a4=Array['from'](_0x138987['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bd0ca,data:_0xd93846}of _0x1c11a4){const {group:_0x1299b7}=_0x4d58af['_splitMarkerName'](_0x1bd0ca);if('suggestion'!==_0x1299b7||!_0xd93846['newRange'])continue;const _0x1c3951=_0xd93846['newRange'],_0x53a646=_0x1c3951['end']['nodeBefore'];if(!_0x53a646||!_0x53a646['is']('element','title-content'))continue;if(!_0x1c3951['start']['isTouching'](_0x1c3951['end']))continue;const _0x17ff5c=_0x138987['model']['schema']['getNearestSelectionRange'](_0x1c3951['end'],'forward');if(_0x17ff5c&&_0x17ff5c['isCollapsed']){const _0x456a8a=_0x245eb3['createRange'](_0x1c3951['start'],_0x17ff5c['start']);_0x456a8a['isEqual'](_0x1c3951)||(_0x245eb3['updateMarker'](_0x1bd0ca,{'range':_0x456a8a}),_0x4f223e=!0x0);}_0x4f223e||(_0x245eb3['removeMarker'](_0x1bd0ca),_0x4f223e=!0x0);}return _0x4f223e;});}}class Ot extends _0x538eb2{['afterInit'](){const _0x52c588=this['editor'],_0x4b9972=_0x52c588['plugins']['get']('TrackChangesEditing');_0x52c588['plugins']['has']('Uploadcare')&&(_0x4b9972['enableCommand']('uploadcare'),_0x52c588['plugins']['has']('UploadcareImageEdit')&&(_0x4b9972['enableCommand']('uploadcareImageEdit'),_0x4b9972['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4b9972['registerBlockAttribute']('uploadcareImageId'),_0x4b9972['descriptionFactory']['registerDescriptionCallback'](_0x9e317e=>{if('attribute'!=_0x9e317e['type'])return;const {data:_0x3df016}=_0x9e317e;return _0x3df016&&'uploadcareImageId'==_0x3df016['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x538eb2{['afterInit'](){const _0x184892=this['editor'],_0x570fe1=_0x184892['plugins']['get']('TrackChangesEditing');_0x184892['plugins']['has']('UndoEditing')&&(_0x570fe1['enableCommand']('undo'),_0x570fe1['enableCommand']('redo'));}}class Tt extends _0x538eb2{static get['requires'](){return[vt];}['afterInit'](){const _0x51d8b2=this['editor'];if(!_0x51d8b2['plugins']['has']('TableCaptionEditing'))return;_0x51d8b2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x538eb2{['tableProperties'];['tableCellProperties'];constructor(_0x45529a){super(_0x45529a),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 _0x3df4a9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x22c3f7 of this['tableProperties'])_0x3df4a9['enableCommand'](_0x22c3f7,(_0x17c449,_0x1c79bf)=>{const _0x5df397=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x22c3f7,[_0x5df397],this['tableProperties'],'tableProperties',_0x17c449,_0x1c79bf);});_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3df4a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x18c29d,_0x51fa4e)=>this['handleDiscardAction'](this['tableProperties'],_0x18c29d,_0x51fa4e)),_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2fd7d8 of this['tableCellProperties'])_0x3df4a9['enableCommand'](_0x2fd7d8,(_0x81aa1b,_0xaf3bf6)=>{const _0x58f9d1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2fd7d8,_0x58f9d1,this['tableCellProperties'],'tableCellProperties',_0x81aa1b,_0xaf3bf6);});_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3df4a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5bb586,_0x1e957e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5bb586,_0x1e957e)),_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3df4a9['descriptionFactory']['registerDescriptionCallback'](_0x29e19c=>this['handleSuggestionDescription'](_0x29e19c));}['_handlePropertyChange'](_0x5c4e3e,_0x460c0d,_0x14ac62,_0x5cf3b1,_0x5ea792,_0x1a86f0){const _0x4f200b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1a86f0['batch'],()=>{for(const _0x1693db of _0x460c0d){if(this['_getSuggestion'](_0x1693db,_0x5cf3b1))_0x5ea792(_0x1a86f0);else{const _0x1ce3b6={};for(const _0x65389e of _0x14ac62){const _0x34e0f6=_0x1693db['getAttribute'](_0x65389e);void 0x0!==_0x34e0f6&&(_0x1ce3b6[_0x65389e]=_0x34e0f6);}_0x5ea792(_0x1a86f0),_0x4f200b['markBlockFormat'](_0x1693db,{'commandParams':[_0x1ce3b6]},[],_0x5cf3b1);}}});}['handleDiscardAction'](_0x18198a,_0x1c4b80,_0x4f4bf9){const _0x265a23=_0x1c4b80[0x0]['start']['nodeAfter'],_0x13a47e=_0x4f4bf9['commandParams'][0x0];this['editor']['model']['change'](_0xc746a2=>{for(const _0x5b9ec9 of _0x18198a)void 0x0!==_0x13a47e[_0x5b9ec9]?_0xc746a2['setAttribute'](_0x5b9ec9,_0x13a47e[_0x5b9ec9],_0x265a23):_0xc746a2['removeAttribute'](_0x5b9ec9,_0x265a23);});}['handleSuggestionDescription'](_0x4d8b55){if(_0x4d8b55['data'])switch(_0x4d8b55['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'](_0x166674,_0x188cf4){const _0x232340=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x404286 of _0x232340['getSuggestions']({'skipNotAttached':!0x0})){const _0x535c77=_0x404286['getContainedElement']();if(_0x404286['subType']===_0x188cf4&&_0x535c77===_0x166674)return _0x404286;}return null;}}const m='$elementName';class p extends _0x538eb2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2bda33,_0x36bc6d,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x368a7b){super(_0x368a7b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x7d8adf,_0x1f4109,_0x4573c0,_0x5f15de)=>{this['_model']['change'](()=>{for(const _0x15878e of[..._0x5f15de,..._0x4573c0])this['_model']['markers']['has'](_0x15878e)&&_0x368a7b['editing']['reconvertMarker'](_0x15878e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x368a7b['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(),_0x368a7b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x368a7b['config']['get']('trackChanges.trackFormatChanges'),_0x368a7b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x368a7b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x368a7b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4b077b=this['editor'],_0x2dcb29=(_0x5206de,_0x272078)=>{if('attribute'!=_0x5206de)return'ck-suggestion-marker-'+_0x5206de;const _0x29b323=_0x272078['split']('|')[0x0];return this['_isBlockAttribute'](_0x29b323)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4b077b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x22b49d=>{const {id:_0x3c8298,authorId:_0x4bf1c5,type:_0x3ad957,subType:_0x244013}=this['_splitMarkerName'](_0x22b49d['markerName']),_0x3b5a86=['ck-suggestion-marker',_0x2dcb29(_0x3ad957,_0x244013)];let _0x25397a=0xbb8;return this['activeMarkers']['includes'](_0x22b49d['markerName'])&&(_0x3b5a86['push']('ck-suggestion-marker--active'),_0x25397a=0xbc2),'deletion'==_0x3ad957&&(_0x25397a+=0x5),{'classes':_0x3b5a86,'attributes':{'data-suggestion':_0x3c8298,'data-author-id':_0x4bf1c5},'priority':_0x25397a};}}),_0x4b077b['conversion']['for']('dataDowncast')['add'](_0x5d5bc1=>{_0x5d5bc1['on']('addMarker:suggestion',(_0x2d3277,_0x3ad921,_0x3041a4)=>{if(!_0x3041a4['options']['showSuggestionHighlights'])return;const _0x32973c=_0x3ad921['item'];if(!_0x32973c)return;const _0x247742=_0x3041a4['mapper']['toViewElement'](_0x32973c);_0x4b077b['model']['schema']['isObject'](_0x32973c)&&_0x247742&&!_0x247742['getCustomProperty']('widget')&&_0x247742['is']('containerElement')&&_0x35e6a0(_0x247742,_0x3041a4['writer']);},{'priority':'high'});}),_0x4b077b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x75d382,_0x619f72)=>{if(!_0x619f72['options']['showSuggestionHighlights'])return null;const {type:_0x38dfd2,subType:_0xb4b33a}=this['_splitMarkerName'](_0x75d382['markerName']);return{'classes':['ck-suggestion-marker',_0x2dcb29(_0x38dfd2,_0xb4b33a)],'priority':0xbb8};}});const _0x398ea5=({showActiveMarkers:_0xec7a67=!0x0,isAttributeSuggestion:_0x29496d=!0x1}={})=>(_0x22cafc,_0x37765e,_0x275b3e)=>{if(!_0x37765e['item'])return;const {id:_0x165e0e,authorId:_0x2406c2}=this['_splitMarkerName'](_0x37765e['markerName']);if(_0x29496d){const _0xf0b366=this['_suggestions']['get'](_0x165e0e),_0x596600=this['_getAttributeKey'](_0xf0b366);if(!this['_isBlockAttribute'](_0x596600))return;}if(_0x37765e['item']['is']('selection'))return void _0x275b3e['consumable']['consume'](_0x37765e['item'],_0x22cafc['name']);const _0x2fb8bb=_0x275b3e['mapper']['toViewElement'](_0x37765e['item']);if(_0x37765e['item']['is']('element')&&_0x4b077b['model']['schema']['isBlock'](_0x37765e['item'])&&!_0x2fb8bb['getCustomProperty']('addHighlight')){_0x275b3e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2fb8bb),_0x275b3e['writer']['setAttribute']('data-suggestion',_0x165e0e,_0x2fb8bb),_0x275b3e['writer']['setAttribute']('data-author-id',_0x2406c2,_0x2fb8bb),_0x275b3e['mapper']['bindElementToMarker'](_0x2fb8bb,_0x37765e['markerName']),_0xec7a67&&(this['activeMarkers']['includes'](_0x37765e['markerName'])?_0x275b3e['writer']['addClass']('ck-suggestion-marker--active',_0x2fb8bb):_0x275b3e['writer']['removeClass']('ck-suggestion-marker--active',_0x2fb8bb));for(const _0x4f75e2 of _0x4b077b['model']['createRangeIn'](_0x37765e['item'])['getItems']())_0x275b3e['consumable']['consume'](_0x4f75e2,_0x22cafc['name']);_0x275b3e['consumable']['consume'](_0x37765e['item'],_0x22cafc['name']);}};_0x4b077b['conversion']['for']('dataDowncast')['add'](_0x1c93a8=>{_0x1c93a8['on']('addMarker:suggestion:formatBlock',(_0x179510,_0x582f91,_0x224d53)=>{_0x224d53['options']['showSuggestionHighlights']&&_0x398ea5({'showActiveMarkers':!0x1})(_0x179510,_0x582f91,_0x224d53);},{'priority':'highest'});}),_0x4b077b['conversion']['for']('dataDowncast')['add'](_0x3e9970=>{_0x3e9970['on']('addMarker:suggestion:attribute',(_0x5e0c72,_0x55ff4a,_0x4aa8ec)=>{_0x4aa8ec['options']['showSuggestionHighlights']&&_0x398ea5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5e0c72,_0x55ff4a,_0x4aa8ec);},{'priority':'highest'});}),_0x4b077b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x186f47,_0x2d4cae)=>_0x2d4cae['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x186f47['substr'](0xb)}}),_0x4b077b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x467d5b,{writer:_0x308dae})=>{let _0x49eb2d='suggestion:'+_0x467d5b['getAttribute']('suggestion-type')+':'+_0x467d5b['getAttribute']('id');return _0x467d5b['getAttribute']('marker-count')&&(_0x49eb2d+=':'+_0x467d5b['getAttribute']('marker-count')),_0x308dae['createElement']('$marker',{'data-name':_0x49eb2d});}}),_0x4b077b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4b077b['conversion']['for']('editingDowncast')['add'](_0x53587c=>{_0x53587c['on']('addMarker:suggestion:formatBlock',_0x398ea5(),{'priority':'high'});}),_0x4b077b['conversion']['for']('editingDowncast')['add'](_0x42e076=>{_0x42e076['on']('addMarker:suggestion:attribute',_0x398ea5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4b077b['conversion']['for']('editingDowncast')['add'](_0x8f6500=>{_0x8f6500['on']('removeMarker:suggestion:formatBlock',(_0x5c0ca1,_0x2ab225,_0x46ab4e)=>{const _0xc93381=_0x46ab4e['mapper']['markerNameToElements'](_0x2ab225['markerName']);if(_0xc93381){for(const _0xd7e1fe of _0xc93381)_0xd7e1fe['getCustomProperty']('addHighlight')||(_0x46ab4e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xd7e1fe),_0x46ab4e['writer']['removeAttribute']('data-suggestion',_0xd7e1fe),_0x46ab4e['writer']['removeAttribute']('data-author-id',_0xd7e1fe),_0x46ab4e['mapper']['unbindElementFromMarkerName'](_0xd7e1fe,_0x2ab225['markerName']));}},{'priority':'high'});}),_0x4b077b['conversion']['for']('editingDowncast')['add'](_0x4afc10=>{_0x4afc10['on']('removeMarker:suggestion:attribute',(_0x58ab7b,_0x5e57ed,_0x1b3dfe)=>{const _0x5b341f=_0x1b3dfe['mapper']['markerNameToElements'](_0x5e57ed['markerName']);if(!_0x5b341f)return;const {id:_0x3f11bd}=this['_splitMarkerName'](_0x5e57ed['markerName']),_0x4d2cdf=this['_suggestions']['get'](_0x3f11bd),_0x3991e7=this['_getAttributeKey'](_0x4d2cdf);if(this['_isBlockAttribute'](_0x3991e7)){for(const _0x54a67b of _0x5b341f)_0x54a67b['getCustomProperty']('addHighlight')||(_0x1b3dfe['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x54a67b),_0x1b3dfe['writer']['removeAttribute']('data-suggestion',_0x54a67b),_0x1b3dfe['writer']['removeAttribute']('data-author-id',_0x54a67b),_0x1b3dfe['mapper']['unbindElementFromMarkerName'](_0x54a67b,_0x5e57ed['markerName']));}},{'priority':'high'});}),_0x4b077b['model']['document']['registerPostFixer'](_0x3bfff6=>{let _0x28a91c=!0x1;const _0x1d7565=Array['from'](_0x4b077b['model']['document']['differ']['getChangedMarkers']()),_0x4ed897=new Set();for(const {name:_0x3c8697,data:_0x11f376}of _0x1d7565){const {group:_0x39bd2c,type:_0x19740a,subType:_0x1be293,id:_0x14410c}=this['_splitMarkerName'](_0x3c8697);if('suggestion'!==_0x39bd2c)continue;const _0x557ccd=this['_suggestions']['get'](_0x14410c);if(null!=_0x11f376['newRange']){'formatInline'==_0x19740a&&(_0x28a91c=_0x28a91c||Gt(_0x11f376['newRange'],_0x3c8697,_0x3bfff6,_0x4b077b['model']['schema']));const _0x58b7fc='attribute'==_0x19740a&&this['_isBlockAttribute'](_0x1be293['split']('|')[0x0]);if(_0x11f376['newRange']['isCollapsed']||'$graveyard'==_0x11f376['newRange']['root']['rootName']||'formatBlock'==_0x19740a&&!Lt(_0x11f376['newRange'])||_0x58b7fc&&!Lt(_0x11f376['newRange'])||'deletion'==_0x19740a&&!(!Pt(_0x81ecbc=_0x11f376['newRange'])&&!function(_0x231aba){return _0x231aba['start']['parent']==_0x231aba['end']['nodeBefore']&&_0x231aba['start']['isAtEnd'];}(_0x81ecbc)))_0x3bfff6['removeMarker'](_0x3c8697),_0x28a91c=!0x0;else{if(!_0x557ccd||!_0x557ccd['isInContent'])continue;if(_0x11f376['newRange']&&_0x11f376['oldRange']&&_0x11f376['newRange']['isEqual'](_0x11f376['oldRange']))continue;_0x4ed897['add'](_0x557ccd);}}}var _0x81ecbc;return _0x4ed897['size']>0x0&&(_0x28a91c=!!this['_joinWithAdjacentSuggestions'](_0x4ed897)||_0x28a91c),_0x28a91c;}),_0x4b077b['model']['document']['registerPostFixer'](_0x3b69f8=>{let _0x428901=!0x1;for(const _0x523ba5 of _0x4b077b['model']['document']['differ']['getChanges']())if('insert'==_0x523ba5['type'])for(const _0x59b30e of this['_suggestions']['values']()){if(_0x59b30e['isMultiRange']||!_0x59b30e['isInContent'])continue;const _0x36ec9f='formatBlock'==_0x59b30e['type'],_0x215691=this['_getAttributeKey'](_0x59b30e),_0xa49494=_0x215691&&this['_isBlockAttribute'](_0x215691);if(!_0x36ec9f&&!_0xa49494)continue;const _0x44a82a=_0x59b30e['getFirstRange']();if(_0x44a82a['start']['parent']!=_0x44a82a['end']['parent']&&!_0x44a82a['end']['isAtEnd']){const _0x1745c5=_0x4b077b['model']['createPositionAt'](_0x44a82a['start']['nodeAfter'],'end'),_0x5e2259=_0x4b077b['model']['createRange'](_0x44a82a['start'],_0x1745c5);_0x3b69f8['updateMarker'](_0x59b30e['getFirstMarker'](),{'range':_0x5e2259}),_0x428901=!0x0;}}return _0x428901;}),_0x4b077b['model']['document']['registerPostFixer'](_0x698133=>this['_processAttributeChanges'](_0x698133)),_0x4b077b['model']['document']['registerPostFixer'](_0x4a609e=>!_0x4a609e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4a609e)),_0x4b077b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4b077b['model']['document']['on']('change:data',(_0x26b553,_0xda584e)=>{if(!_0xda584e['isLocal']||_0xda584e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5dbd77=_0x4b077b['model']['document']['differ']['getChanges']();if(0x0==_0x5dbd77['length'])return;const _0x3778e2=[],_0x2ee9e2=_0x5dbd77['filter'](_0x1dd3d9=>'attribute'==_0x1dd3d9['type']),_0xb95286=_0x5dbd77['filter'](_0x2294c8=>'insert'==_0x2294c8['type']&&'$text'!=_0x2294c8['name']);for(const _0x2de9fd of _0x2ee9e2)this['_isRegisteredAttribute'](_0x2de9fd['attributeKey'])&&_0x3778e2['push']({'key':_0x2de9fd['attributeKey'],'newValue':_0x2de9fd['attributeNewValue'],'oldValue':_0x2de9fd['attributeOldValue'],'range':Jt(_0x2de9fd['range'],_0x4b077b['model'])});for(const _0x178591 of _0xb95286){if('rename'!=_0x178591['action']&&'refresh'!=_0x178591['action'])continue;const _0x5e7b1f=Ht(_0x178591['position']['nodeAfter'],_0x4b077b['model']),_0x1344a1=_0x178591['before'];'rename'==_0x178591['action']&&_0x3778e2['push']({'key':m,'newValue':_0x178591['name'],'oldValue':_0x1344a1['name'],'range':_0x5e7b1f});for(const [_0x4647ba,_0x4a72a9]of _0x1344a1['attributes']){if(!this['_isRegisteredAttribute'](_0x4647ba))continue;const _0x2075d1=_0x178591['attributes']['get'](_0x4647ba);_0x4a72a9!==_0x2075d1&&_0x3778e2['push']({'key':_0x4647ba,'newValue':_0x2075d1,'oldValue':_0x4a72a9,'range':_0x5e7b1f});}for(const [_0x768813,_0x4755b5]of _0x178591['attributes'])this['_isRegisteredAttribute'](_0x768813)&&(_0x1344a1['attributes']['has'](_0x768813)||_0x3778e2['push']({'key':_0x768813,'newValue':_0x4755b5,'oldValue':null,'range':_0x5e7b1f}));}0x0!=_0x3778e2['length']&&_0x4b077b['model']['enqueueChange'](_0xda584e,_0x4a4d0e=>{const _0x4fecab=_0x30b629();for(const {range:_0x9da391,key:_0x5c4612,oldValue:_0x315d91,newValue:_0x18730f}of _0x3778e2)this['markAttributeChange'](_0x9da391,_0x5c4612,_0x315d91,_0x18730f,{'groupId':_0x4fecab});this['_reduceExistingSuggestions'](_0x4a4d0e,_0x3778e2);});},{'priority':'lowest'}),_0x4b077b['model']['markers']['on']('update:suggestion',(_0x2c359e,_0x2fedf6,_0x5c4e81)=>{if(null==_0x5c4e81){const {id:_0x41efc8}=this['_splitMarkerName'](_0x2fedf6['name']),_0x562437=this['_suggestions']['get'](_0x41efc8);_0x562437&&_0x562437['addMarkerName'](_0x2fedf6['name']);}}),_0x4b077b['model']['document']['on']('change:data',()=>{const _0x5befc1=Array['from'](_0x4b077b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x33a4ba=>'suggestion'===this['_splitMarkerName'](_0x33a4ba['name'])['group']);if(0x0===_0x5befc1['length'])return;_0x5befc1['sort']((_0x110e01,_0x34ad95)=>{const _0x3aa42c=_0x110e01['data']['oldRange'],_0x1ebee1=_0x34ad95['data']['oldRange'];return null===_0x3aa42c&&null===_0x1ebee1?0x0:null===_0x3aa42c&&null!==_0x1ebee1?-0x1:null!==_0x3aa42c&&null===_0x1ebee1?0x1:_0x3aa42c['start']['isBefore'](_0x1ebee1['start'])?-0x1:0x1;});const _0x5f382a=new Set(),_0x173094=new Set();for(const {name:_0x1df422,data:_0x5def20}of _0x5befc1){const {id:_0x4b2b33}=this['_splitMarkerName'](_0x1df422);if(null===_0x5def20['oldRange']){const _0x56ff90=this['_handleNewSuggestionMarker'](_0x1df422);_0x173094['add'](_0x56ff90);}else{const _0x55532b=this['_suggestions']['get'](_0x4b2b33);null!==_0x5def20['newRange']||_0x55532b['isInContent']?(_0x5f382a['add'](_0x55532b['head']),_0x173094['add'](_0x55532b)):this['_removeSuggestion'](_0x55532b);}}_0x173094['size']>0x0&&this['_refreshSuggestionsChain'](_0x173094);for(const _0x3423d0 of _0x5f382a)this['fire']('suggestionChanged',_0x3423d0);}),_0x4b077b['model']['on']('applyOperation',(_0xcfab83,_0x557fb2)=>{const _0x47b184=_0x557fb2[0x0];if(!this['_suggestions']['size'])return;if(!_0x47b184['isDocumentOperation'])return;if(_0x47b184['batch']['isUndo']||!_0x47b184['batch']['isLocal'])return;let _0x192bb3,_0x362127;switch(_0x47b184['type']){case'insert':_0x192bb3=_0x4b077b['model']['createPositionAt'](_0x47b184['position']),_0x362127=_0x192bb3['getShiftedBy'](_0x47b184['howMany']);break;case'split':_0x192bb3=_0x4b077b['model']['createPositionAt'](_0x47b184['splitPosition']),_0x362127=_0x4b077b['model']['createPositionAt'](_0x47b184['moveTargetPosition']);break;case'move':_0x192bb3=_0x4b077b['model']['createPositionAt'](_0x47b184['targetPosition']),_0x362127=_0x192bb3['getShiftedBy'](_0x47b184['howMany']);break;default:return;}const _0x47d0d8=_0x4b077b['model']['createRange'](_0x192bb3,_0x362127);_0x4b077b['model']['change'](()=>{for(const {suggestion:_0xface94,meta:_0x5bf5fc}of this['_findSuggestions'](_0x47d0d8)){if(_0xface94['isMultiRange'])continue;if('formatInline'==_0xface94['type'])continue;const _0x4aa1ee=this['_getAttributeKey'](_0xface94);if(_0x4aa1ee&&this['_isBlockAttribute'](_0x4aa1ee)&&'split'!=_0x47b184['type'])continue;const _0xc39184=_0xface94['data']&&_0xface94['data']['multipleBlocks'];('formatBlock'!=_0xface94['type']||'split'==_0x47b184['type']&&!_0xc39184)&&(_0x5bf5fc['containsRangeInObject']||'insertion'==_0xface94['type']&&_0x5bf5fc['isOwn']||_0xface94['getFirstRange']()['containsRange'](_0x47d0d8)&&this['_breakSuggestionMarker'](_0xface94,_0x192bb3,_0x362127));}});},{'priority':'lowest'}),_0x4b077b['model']['on']('deleteContent',(_0x38fe56,_0x2befdf)=>{const _0x170089=_0x2befdf[0x0],_0x2646a1=_0x2befdf[0x1];if(_0x2646a1&&_0x2646a1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x170089['isCollapsed'])return;const _0x324c32=_0x4b077b['model']['schema'],{start:_0x4ffd78,end:_0x1cf639}=_0x170089['getFirstRange'](),_0x47801c=_0x4ffd78['nodeAfter']&&_0x324c32['isLimit'](_0x4ffd78['nodeAfter'])?null:_0x324c32['getNearestSelectionRange'](_0x4ffd78,'forward'),_0xbc3f7d=_0x1cf639['nodeBefore']&&_0x324c32['isLimit'](_0x1cf639['nodeBefore'])?null:_0x324c32['getNearestSelectionRange'](_0x1cf639,'backward'),_0x31ac81=_0x4b077b['model']['createRange'](_0x47801c?_0x47801c['start']:_0x4ffd78,_0xbc3f7d?_0xbc3f7d['end']:_0x1cf639);_0x4b077b['model']['change'](_0x35b536=>{this['markDeletion'](_0x31ac81);const _0x15116e=_0x4b077b['model']['schema']['getNearestSelectionRange'](_0x31ac81['start']);_0x170089['is']('documentSelection')?_0x35b536['setSelection'](_0x15116e):_0x170089['setTo'](_0x15116e);}),_0x38fe56['stop']();},{'priority':_0x5b63b3['normal']+0xa}),_0x4b077b['model']['on']('insertContent',(_0x1ff9f6,_0x135ef4)=>{const _0x595725=_0x135ef4[_0x135ef4['length']-0x1];_0x595725&&_0x595725['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4b077b['model']['change'](()=>{let _0x1577f7=_0x4b077b['model']['insertContent'](_0x135ef4[0x0],_0x135ef4[0x1],_0x135ef4[0x2],{'forceDefaultExecution':!0x0});if(!_0x1577f7)return;_0x1ff9f6['return']=_0x1577f7['clone']();const _0x55b7fa=_0x1577f7['end']['nodeBefore'],_0x8f8afa=_0x4b077b['model']['schema'];_0x55b7fa&&_0x8f8afa['isBlock'](_0x55b7fa)&&!_0x8f8afa['isObject'](_0x55b7fa)&&(_0x1577f7=_0x4b077b['model']['createRange'](_0x1577f7['start'],_0x4b077b['model']['createPositionAt'](_0x55b7fa,'end'))),this['markInsertion'](_0x1577f7);}),_0x1ff9f6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d7ec3=new O(_0x4b077b,this['_suggestions']);_0x4b077b['commands']['add']('acceptSuggestion',_0x3d7ec3),this['enableCommand']('acceptSuggestion');const _0x2132da=new R(_0x4b077b,this['_suggestions']);_0x4b077b['commands']['add']('discardSuggestion',_0x2132da),this['enableCommand']('discardSuggestion'),_0x4b077b['commands']['add']('acceptAllSuggestions',new x(_0x4b077b,_0x3d7ec3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4b077b['commands']['add']('discardAllSuggestions',new x(_0x4b077b,_0x2132da,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4b077b['commands']['add']('acceptSelectedSuggestions',new E(_0x4b077b,_0x3d7ec3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4b077b['commands']['add']('discardSelectedSuggestions',new E(_0x4b077b,_0x2132da,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10909e=_0x4b077b['plugins']['get']('CommentsRepository');this['listenTo'](_0x10909e,'addComment',(_0x6d3917,{threadId:_0x110105})=>{const _0x30ba51=this['_suggestions']['get'](_0x110105);_0x30ba51&&_0x30ba51['commentThread']&&0x1===_0x30ba51['commentThread']['length']&&this['_updateSuggestionData'](_0x110105,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10909e,'removeComment',(_0x54542f,{threadId:_0x408968})=>{const _0xc560f1=this['_suggestions']['get'](_0x408968);_0xc560f1&&_0xc560f1['commentThread']&&!_0xc560f1['commentThread']['length']&&this['_updateSuggestionData'](_0x408968,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3e512a){const _0x1b8232=_0x265c34([0x34,0x37,0x77,0x57,0x51,0x78,0x43,0x4a,0x71,0x31,0x55,0x75,0x33,0x56,0x58,0x47,0x6f,0x63,0x4d,0x39,0x4e,0x30,0x65,0x4f,0x35,0x76,0x6a,0x69,0x6d,0x62,0x70,0x46,0x45,0x72,0x41,0x36,0x64,0x48,0x4b,0x66,0x4c,0x52,0x68,0x50,0x7a,0x5a,0x53,0x42,0x79,0x6b,0x6e,0x6c,0x61,0x74,0x73,0x32,0x54,0x49,0x59,0x38,0x44,0x67]),_0x29528c=0x4bdc2bfa,_0x2f125d=0x4bdb75ea^_0x29528c,_0x24c103=window[_0x265c34([0x44,0x61,0x74,0x65])][_0x265c34([0x6e,0x6f,0x77])](),_0xbaae23=_0x3e512a[_0x265c34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fead6=new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ed216=>{_0xbaae23[_0x265c34([0x6f,0x6e,0x63,0x65])](_0x265c34([0x72,0x65,0x61,0x64,0x79]),_0x2ed216);}),_0x5088f8={[_0x265c34([0x6b,0x74,0x79])]:_0x265c34([0x45,0x43]),[_0x265c34([0x75,0x73,0x65])]:_0x265c34([0x73,0x69,0x67]),[_0x265c34([0x63,0x72,0x76])]:_0x265c34([0x50,0x2d,0x32,0x35,0x36]),[_0x265c34([0x78])]:_0x265c34([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]),[_0x265c34([0x79])]:_0x265c34([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]),[_0x265c34([0x61,0x6c,0x67])]:_0x265c34([0x45,0x53,0x32,0x35,0x36])},_0x567a86=_0xbaae23[_0x265c34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x265c34([0x67,0x65,0x74])](_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ca2dd(){let _0x5a395e,_0x5b53a5=null,_0x118f29=null;try{if(_0x567a86==_0x265c34([0x47,0x50,0x4c]))return _0x265c34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a395e=_0x19c2ec(),!_0x5a395e)return _0x265c34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a395e[_0x265c34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x118f29=_0x5dafeb(_0x5a395e[_0x265c34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a395e[_0x265c34([0x6a,0x74,0x69])])),await _0x3e9868()?_0x17af2c()?_0x44212()?_0x265c34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b7aec()?(_0x5a395e[_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x265c34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b53a5=_0x13c18b(_0x265c34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a395e[_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x265c34([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b53a5=_0x13c18b(_0x265c34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4beb88()):_0x265c34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x265c34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x265c34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5335c9){return _0x265c34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x44212(){const _0x459da1=[_0x265c34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x265c34([0x74,0x72,0x69,0x61,0x6c])][_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a395e[_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x24c103/0x3e8:0xe10*_0x2f125d;return _0x5a395e[_0x265c34([0x65,0x78,0x70])]<_0x459da1;}function _0x17af2c(){const _0x12f59c=_0x5a395e[_0x265c34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x12f59c)return!0x1;if(_0x12f59c[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265c34([0x2a])))return!0x0;if(_0x12f59c[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265c34([0x54,0x43])))return!0x0;if(_0x12f59c[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265c34([0x52,0x54,0x43]))){if(_0x53f38f())return!0x0;if(_0xe3e8bf()||_0x52bc3d())return!0x0;}return!0x1;}function _0x1b7aec(){const _0x323a2e=_0x5a395e[_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x323a2e||0x0==_0x323a2e[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5534d9}=new URL(window[_0x265c34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x323a2e[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534d9))return!0x0;const _0x35ecc2=_0x5534d9[_0x265c34([0x73,0x70,0x6c,0x69,0x74])](_0x265c34([0x2e]));return _0x323a2e[_0x265c34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2defcc=>_0x2defcc[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265c34([0x2a])))[_0x265c34([0x6d,0x61,0x70])](_0x31c5d4=>_0x31c5d4[_0x265c34([0x73,0x70,0x6c,0x69,0x74])](_0x265c34([0x2e])))[_0x265c34([0x73,0x6f,0x6d,0x65])](_0x2e8cf3=>_0x35ecc2[_0x265c34([0x65,0x76,0x65,0x72,0x79])]((_0x372f14,_0x3934f3)=>_0x2e8cf3[_0x3934f3]===_0x372f14||_0x2e8cf3[_0x3934f3]===_0x265c34([0x2a])));}function _0x4beb88(){return _0x5b53a5&&_0x118f29?new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x284d3b,_0x59a654)=>{_0x5b53a5[_0x265c34([0x74,0x68,0x65,0x6e])](_0x284d3b,_0x59a654),_0x118f29[_0x265c34([0x74,0x68,0x65,0x6e])](_0x2a744f=>{_0x2a744f!=_0x265c34([0x56,0x61,0x6c,0x69,0x64])&&_0x284d3b(_0x2a744f);},_0x59a654);}):_0x5b53a5||_0x118f29||_0x265c34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5dafeb(_0x3df2d2,_0x21c30b){return new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24225c=>{if(_0x3a42f6())return _0x24225c(_0x265c34([0x56,0x61,0x6c,0x69,0x64]));_0x3a8fe2(),_0xbaae23[_0x265c34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x265c34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5950b4=!0x1;const _0x397e39=_0x30b629();function _0x146428(_0x5da0bf){return!!_0x5da0bf&&(typeof _0x5da0bf===_0x265c34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5da0bf===_0x265c34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5da0bf[_0x265c34([0x74,0x68,0x65,0x6e])]===_0x265c34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5da0bf[_0x265c34([0x63,0x61,0x74,0x63,0x68])]===_0x265c34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12bd8a(_0x1a0ddd){_0x1a6d1a(_0x1a0ddd)[_0x265c34([0x74,0x68,0x65,0x6e])](_0x3c484a=>{if(!_0x3c484a||_0x3c484a[_0x265c34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x265c34([0x6f,0x6b]))return _0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e15c2(_0x5cea94(_0x397e39+_0x21c30b))!=_0x3c484a[_0x265c34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x265c34([0x56,0x61,0x6c,0x69,0x64]);})[_0x265c34([0x74,0x68,0x65,0x6e])](_0x121f58=>(_0x28832d(),_0x121f58),()=>{const _0x14d7b0=_0xa08b73();return null==_0x14d7b0?(_0x28832d(),_0x265c34([0x56,0x61,0x6c,0x69,0x64])):_0x265c34(_0x24c103-_0x14d7b0>(0x6fd0affa^_0x29528c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x265c34([0x74,0x68,0x65,0x6e])](_0x24225c)[_0x265c34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24225c(_0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ea024=0x4beac57a^_0x29528c;function _0x28832d(){const _0x25767b=_0x265c34([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e15c2(_0x5cea94(_0x3df2d2)),_0x398cb9=_0x39edd5(_0x3e15c2(window[_0x265c34([0x4d,0x61,0x74,0x68])][_0x265c34([0x63,0x65,0x69,0x6c])](_0x24c103/_0x4ea024)));window[_0x265c34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x265c34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25767b,_0x398cb9);}function _0xa08b73(){const _0x7323a9=_0x265c34([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e15c2(_0x5cea94(_0x3df2d2)),_0x1ff853=window[_0x265c34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x265c34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7323a9);return _0x1ff853?window[_0x265c34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39edd5(_0x1ff853),0x10)*_0x4ea024:null;}function _0x1a6d1a(_0x15b9c6){return new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf9f64e,_0x3c51f7)=>{_0x15b9c6[_0x265c34([0x74,0x68,0x65,0x6e])](_0xf9f64e,_0x3c51f7),window[_0x265c34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c51f7,0x4bddff3a^_0x29528c);});}}_0xbaae23[_0x265c34([0x6f,0x6e])](_0x265c34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24e954,_0x1a6e9f)=>{if(_0x1a6e9f[0x0]!=_0x3df2d2)return _0x24225c(_0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a6e9f[0x1]={..._0x1a6e9f[0x1],[_0x265c34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x397e39};},{[_0x265c34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x265c34([0x68,0x69,0x67,0x68])}),_0xbaae23[_0x265c34([0x6f,0x6e])](_0x265c34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a7176=>{_0x146428(_0x4a7176[_0x265c34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5950b4=!0x0,_0x12bd8a(_0x4a7176[_0x265c34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x265c34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x265c34([0x6c,0x6f,0x77])}),_0x4fead6[_0x265c34([0x74,0x68,0x65,0x6e])](()=>{_0x5950b4||_0x24225c(_0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a42f6(){return _0xbaae23[_0x265c34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x265c34([0x76,0x69,0x65,0x77])][_0x265c34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x265c34([0x61,0x75,0x74,0x6f]);}function _0x3a8fe2(){_0xbaae23[_0x265c34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x265c34([0x76,0x69,0x65,0x77])][_0x265c34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x265c34([0x61,0x75,0x74,0x6f]);}}function _0x13c18b(_0x386310){const _0x1ea4b0=[new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d365=>setTimeout(_0x46d365,0x4bd51536^_0x29528c)),_0x4fead6[_0x265c34([0x74,0x68,0x65,0x6e])](()=>new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7b0630=>{let _0x1659b1=0x0;_0xbaae23[_0x265c34([0x6d,0x6f,0x64,0x65,0x6c])][_0x265c34([0x6f,0x6e])](_0x265c34([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x102164,_0x36c337)=>{_0x36c337[0x0][_0x265c34([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1659b1++,_0x1659b1==(0x4bdc2a02^_0x29528c)&&(_0x7b0630(),_0x102164[_0x265c34([0x6f,0x66,0x66])]());});}))];return window[_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x265c34([0x72,0x61,0x63,0x65])](_0x1ea4b0)[_0x265c34([0x74,0x68,0x65,0x6e])](()=>_0x386310);}async function _0x2d130c(){await _0x4fead6,_0xbaae23[_0x265c34([0x6d,0x6f,0x64,0x65,0x6c])][_0x265c34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x591d4b,_0xbaae23[_0x265c34([0x6d,0x6f,0x64,0x65,0x6c])][_0x265c34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x591d4b,_0xbaae23[_0x265c34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x265c34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53f38f(){return _0x49158c(_0x265c34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3059ba(_0x265c34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x265c34([0x73,0x74,0x61,0x74,0x65])]==_0x265c34([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe3e8bf(){return _0x49158c(_0x265c34([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 _0x52bc3d(){return _0x49158c(_0x265c34([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x199729(_0x3975ba){const _0x589a1f=_0x2dbe68();_0xbaae23[_0x589a1f]=_0x265c34([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3975ba,_0x3975ba!=_0x265c34([0x56,0x61,0x6c,0x69,0x64])&&_0x2d130c();}function _0x2dbe68(){const _0x41e96e=window[_0x265c34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x265c34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x265c34([0x6e,0x6f,0x77])]())[_0x265c34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x265c34([0x2e]),'');let _0x47ea9c=_0x265c34([0x77]);for(let _0x4d08c5=0x0;_0x4d08c5<_0x41e96e[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d08c5+=0x2){let _0x106a1d=window[_0x265c34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41e96e[_0x265c34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d08c5,_0x4d08c5+0x2));_0x106a1d>=_0x1b8232[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x106a1d-=_0x1b8232[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47ea9c+=_0x1b8232[_0x106a1d];}return _0x47ea9c;}function _0x19c2ec(){const _0x20e01b=_0x567a86[_0x265c34([0x73,0x70,0x6c,0x69,0x74])](_0x265c34([0x2e]));if(0x3!=_0x20e01b[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57f85b(_0x20e01b[0x1]);function _0x57f85b(_0x667833){const _0x3ab823=_0x250e42(_0x667833);return _0x3ab823&&_0x1975c4()?_0x3ab823:null;function _0x1975c4(){const _0x32995b=_0x3ab823[_0x265c34([0x6a,0x74,0x69])],_0x47a8b0=window[_0x265c34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32995b[_0x265c34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32995b[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10c34d={..._0x3ab823,[_0x265c34([0x6a,0x74,0x69])]:_0x32995b[_0x265c34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32995b[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10c34d[_0x265c34([0x76,0x63])],_0x5cea94(_0x10c34d)==_0x47a8b0;}}}async function _0x3e9868(){let _0x44026a=!0x0;try{const _0x34e3f3=_0x567a86[_0x265c34([0x73,0x70,0x6c,0x69,0x74])](_0x265c34([0x2e])),[_0x11f8ce,_0x176453,_0x371c]=_0x34e3f3;return _0x5bee0b(_0x11f8ce),await _0x4dfe09(_0x11f8ce,_0x176453,_0x371c),_0x44026a;}catch(_0x3c14f6){return!0x1;}function _0x5bee0b(_0x28e563){const _0x1b4bd9=_0x250e42(_0x28e563);_0x1b4bd9&&_0x1b4bd9[_0x265c34([0x61,0x6c,0x67])]==_0x265c34([0x45,0x53,0x32,0x35,0x36])||(_0x44026a=!0x1);}async function _0x4dfe09(_0x57795f,_0xf875e1,_0x51804a){const _0x39ba64=window[_0x265c34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x265c34([0x66,0x72,0x6f,0x6d])](_0x446eeb(_0x51804a),_0x2c5f0f=>_0x2c5f0f[_0x265c34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3198f5=new window[(_0x265c34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x265c34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57795f+_0x265c34([0x2e])+_0xf875e1),_0x2a5447=window[_0x265c34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x265c34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a5447)return;const _0x4ab2c4=await _0x2a5447[_0x265c34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x265c34([0x6a,0x77,0x6b]),_0x5088f8,{[_0x265c34([0x6e,0x61,0x6d,0x65])]:_0x265c34([0x45,0x43,0x44,0x53,0x41]),[_0x265c34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x265c34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x265c34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a5447[_0x265c34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x265c34([0x6e,0x61,0x6d,0x65])]:_0x265c34([0x45,0x43,0x44,0x53,0x41]),[_0x265c34([0x68,0x61,0x73,0x68])]:{[_0x265c34([0x6e,0x61,0x6d,0x65])]:_0x265c34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ab2c4,_0x39ba64,_0x3198f5)||(_0x44026a=!0x1);}}function _0x250e42(_0x32cf41){return _0x32cf41[_0x265c34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x265c34([0x65,0x79]))?JSON[_0x265c34([0x70,0x61,0x72,0x73,0x65])](_0x446eeb(_0x32cf41)):null;}function _0x446eeb(_0x1a8774){return window[_0x265c34([0x61,0x74,0x6f,0x62])](_0x1a8774[_0x265c34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x265c34([0x2b]))[_0x265c34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x265c34([0x2f])));}function _0x5cea94(_0x2b556d){let _0x325069=0x1505;function _0x1a82b1(_0x27e34e){for(let _0x662ea3=0x0;_0x662ea3<_0x27e34e[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x662ea3++){const _0x48d437=_0x27e34e[_0x265c34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x662ea3);_0x325069=(_0x325069<<0x5)+_0x325069+_0x48d437,_0x325069&=_0x325069;}}function _0x468073(_0x378198){Array[_0x265c34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x378198)?_0x378198[_0x265c34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x468073):_0x378198&&typeof _0x378198==_0x265c34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x265c34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x378198)[_0x265c34([0x73,0x6f,0x72,0x74])]()[_0x265c34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x523786,_0x36dd94])=>{_0x1a82b1(_0x523786),_0x468073(_0x36dd94);}):_0x1a82b1(window[_0x265c34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x378198));}return _0x468073(_0x2b556d),_0x325069>>>0x0;}function _0x3e15c2(_0x1bef2b){return _0x1bef2b[_0x265c34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x265c34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x265c34([0x30]));}function _0x39edd5(_0x28d664){return _0x28d664[_0x265c34([0x73,0x70,0x6c,0x69,0x74])]('')[_0x265c34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x265c34([0x6a,0x6f,0x69,0x6e])]('');}function _0x49158c(_0x57e0b8){return _0xbaae23[_0x265c34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x265c34([0x68,0x61,0x73])](_0x57e0b8);}function _0x3059ba(_0x34640e){return _0xbaae23[_0x265c34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x265c34([0x67,0x65,0x74])](_0x34640e);}function _0x591d4b(){}function _0x265c34(_0x9d3088){return _0x9d3088['map'](_0x22667e=>String['fromCharCode'](_0x22667e))['join']('');}_0x199729(await _0x4ca2dd());}(this);}set['adapter'](_0x47e9b0){if(this['_adapter'])throw new _0x40d556('track-changes-adapter-already-set',this);this['_adapter']=_0x47e9b0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d77a6=!0x1,toJSON:_0x44cf59=!0x1}={}){const _0x42d33d=[];for(const _0x2b7f11 of this['_suggestions']['values']())_0x3d77a6&&!_0x2b7f11['isInContent']||_0x42d33d['push'](_0x2b7f11);return _0x44cf59?_0x42d33d['map'](_0x238806=>_0x238806['toJSON']()):_0x42d33d;}['getSuggestion'](_0x480e72){const _0x850575=this['_suggestions']['get'](_0x480e72);if(!_0x850575)throw new _0x40d556('track-changes-suggestion-not-found',this);return _0x850575;}['hasSuggestion'](_0x22c72a){return this['_suggestions']['has'](_0x22c72a);}['addSuggestionData'](_0x4256ef){const {authorId:_0x2afd42,id:_0x497f03,attributes:_0x222481}=_0x4256ef,[_0x5992db,_0x51e7c2]=_0x4256ef['type']['split'](':'),_0x57f2e0=this['_suggestions']['get'](_0x497f03)||this['_createSuggestion'](_0x5992db,_0x51e7c2,_0x497f03,_0x2afd42,_0x222481);if(this['_addThreadToSuggestion'](_0x57f2e0),this['_checkSuggestionCorrectness'](_0x57f2e0,_0x5992db,_0x51e7c2||null,_0x2afd42),_0x57f2e0['createdAt']=_0x4256ef['createdAt'],_0x57f2e0['_isDataLoaded']=!0x0,_0x222481&&_0x222481['@external']){const _0x54fa5d=_0x222481['@external'],_0x2408df=this['_getExternalAuthor'](_0x54fa5d['authorName']);_0x57f2e0['authoredAt']=_0x54fa5d['createdAt'],_0x57f2e0['author']=_0x2408df,_0x57f2e0['isExternal']=!0x0;}else _0x57f2e0['authoredAt']=_0x4256ef['createdAt'];switch(_0x4256ef['data']&&(_0x57f2e0['data']=_0x4256ef['data']),_0x4256ef['attributes']&&(_0x57f2e0['attributes']=_0x4256ef['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x57f2e0['_saved']=!0x0),this['_suggestionState']['get'](_0x57f2e0)){case'notReady':this['_suggestionState']['set'](_0x57f2e0,'dataReady');break;case'markerReady':_0x57f2e0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x57f2e0])),this['_refreshSuggestionsChain'](new Set([_0x57f2e0])),this['_suggestionState']['set'](_0x57f2e0,'ready'),this['fire']('suggestionLoaded',_0x57f2e0)):this['_suggestionState']['set'](_0x57f2e0,'removed');}return _0x57f2e0;}['acceptSuggestion'](_0x46489c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3033e8 of _0x46489c['getAllAdjacentSuggestions']())_0x3033e8['accept']();});});}['discardSuggestion'](_0x4264ab){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x434722 of _0x4264ab['getAllAdjacentSuggestions']())_0x434722['discard']();});});}['enableCommand'](_0x36172b,_0x492447){const _0x4179cc=this['editor']['commands']['get'](_0x36172b);if(!_0x4179cc)throw new _0x40d556('track-changes-command-not-found',this,{'commandName':_0x36172b});if(this['_enabledCommands']['has'](_0x4179cc))throw new _0x40d556('track-changes-enable-command-twice',this,{'commandName':_0x36172b});this['_enabledCommands']['add'](_0x4179cc),_0x492447&&_0x4179cc['on']('execute',(_0x3742d9,_0x33cda0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x33cda0['length']>0x0&&_0x33cda0[_0x33cda0['length']-0x1]&&_0x33cda0[_0x33cda0['length']-0x1]['forceDefaultExecution']?_0x33cda0['pop']():(_0x3742d9['return']=_0x492447((..._0x111181)=>_0x4179cc['execute'](..._0x111181,{'forceDefaultExecution':!0x0}),..._0x33cda0),_0x3742d9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1fece7){let _0x488fbe,_0x2642e8;const _0x5a762f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x488fbe=_0x1fece7();}catch(_0x4edf23){_0x2642e8=_0x4edf23;}return _0x5a762f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2642e8&&_0x40d556['rethrowUnexpectedError'](_0x2642e8,this),_0x488fbe;}['markInsertion'](_0xd12cd6,_0x425011=null,_0x800989={}){if(_0xd12cd6['isCollapsed'])return null;const _0x13e27b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4b2d4d,meta:_0x4584ae}of this['_findSuggestions'](_0xd12cd6,'insertion'))if(_0x4584ae['isOwn']){if(!_0x4584ae['isNextTo']){if(_0x4584ae['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x4b2d4d,_0x800989))continue;return _0x4b2d4d;}if(Kt(_0x4b2d4d,_0x800989))return _0x4b2d4d;this['_breakSuggestionMarker'](_0x4b2d4d,_0xd12cd6['start'],_0xd12cd6['end']);break;}if(_0x425011==_0x4b2d4d['subType']&&Kt(_0x4b2d4d,_0x800989)){const _0x5af216=_0x4b2d4d['getFirstRange']();return _0x5af216['start']['isEqual'](_0xd12cd6['end'])?this['_setSuggestionRange'](_0x4b2d4d,this['_model']['createRange'](_0xd12cd6['start'],_0x5af216['end'])):this['_setSuggestionRange'](_0x4b2d4d,this['_model']['createRange'](_0x5af216['start'],_0xd12cd6['end'])),_0x4b2d4d;}}const _0x394a63=_0x30b629(),_0x24b42d=_0x13e27b['id'],_0x1d2e4c=_0x425011?'insertion:'+_0x425011:'insertion',_0xb89ebf=this['_setSuggestionData']({'id':_0x394a63,'type':_0x1d2e4c,'createdAt':new Date(),'authorId':_0x24b42d,'attributes':_0x800989});return this['_addSuggestionMarker'](_0x1d2e4c,_0x394a63,_0x24b42d,_0xd12cd6),_0xb89ebf;}['markMultiRangeInsertion'](_0x29c569,_0x2a2b03='multi',_0x20b068={}){const _0x24be3c=this['editor']['plugins']['get']('Users')['me'],_0x5234e7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2a2b03,'join');for(const _0x393d8f of this['getSuggestions']())if(_0x393d8f['author']['id']==_0x24be3c['id']&&'insertion'==_0x393d8f['type']&&_0x393d8f['subType']==_0x2a2b03&&Kt(_0x393d8f,_0x20b068)&&(_0x5234e7(_0x393d8f['getRanges'](),_0x29c569)||_0x5234e7(_0x29c569,_0x393d8f['getRanges']()))){for(const _0x53d761 of _0x29c569)_0x393d8f['addRange'](_0x53d761);return _0x393d8f;}for(const {suggestion:_0x45be3b,meta:_0x12b317}of this['_findSuggestions'](_0x29c569,'insertion')){if(!_0x12b317['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x12b317['containsRangeInObject'])continue;if(!Kt(_0x45be3b,_0x20b068))continue;let _0x2974ec=!0x0;for(const _0x1a7a21 of _0x45be3b['getRanges']())for(const _0x2d5761 of _0x29c569)if(!_0x1a7a21['containsRange'](_0x2d5761)){_0x2974ec=!0x1;break;}if(_0x2974ec)return _0x45be3b;}const _0x8755b5=_0x30b629(),_0x2ec9f2=_0x24be3c['id'],_0x39f60d='insertion:'+_0x2a2b03,_0x327adb=this['_setSuggestionData']({'id':_0x8755b5,'type':_0x39f60d,'createdAt':new Date(),'authorId':_0x2ec9f2,'attributes':_0x20b068});for(const _0x186296 of _0x29c569)this['_addSuggestionMarker'](_0x39f60d,_0x8755b5,_0x2ec9f2,_0x186296,u['getMultiRangeId']());return _0x327adb;}['markInlineFormat'](_0x1c7107,_0x10988b,_0x21586e=null,_0x3cc067={}){if(_0x21586e=_0x21586e||Ft(_0x10988b),_0x1c7107['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5a10a0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21586e,'accept');return this['forceDefaultExecution'](()=>_0x5a10a0([_0x1c7107],_0x10988b,_0x3cc067)),null;}const _0x425978=this['editor']['plugins']['get']('Users')['me'],_0x2af9e4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4607f7,meta:_0x1f8dcd}of this['_findSuggestions'](_0x1c7107,'insertion'))_0x1f8dcd['isOwn']&&!_0x1f8dcd['isInsideObject']&&_0x2af9e4['push'](..._0x4607f7['getRanges']());}const _0x165332=function(_0x232e4e,_0x3905a3){const _0x59e347=[];for(const _0x5e73ff of _0x3905a3){const _0x5e728d=_0x232e4e['getIntersection'](_0x5e73ff);_0x5e728d&&_0x59e347['push'](_0x5e728d);}return _0x59e347;}(_0x1c7107,_0x2af9e4),_0x533009=function(_0x3fb4b3,_0x5747d5){const _0x2c0470=[_0x3fb4b3];for(const _0x57e1ce of _0x5747d5){let _0x463051=0x0;for(;_0x463051<_0x2c0470['length'];){const _0x44ae0f=_0x2c0470[_0x463051]['getDifference'](_0x57e1ce);_0x2c0470['splice'](_0x463051,0x1,..._0x44ae0f),_0x463051+=_0x44ae0f['length'];}}return _0x2c0470;}(_0x1c7107,_0x2af9e4);_0x165332['length']&&this['_model']['change'](()=>{for(const _0x2afd73 of _0x165332){const _0x4e1b9f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21586e,'accept');this['forceDefaultExecution'](()=>_0x4e1b9f([_0x2afd73],_0x10988b,_0x3cc067));}});for(const _0x45e8a3 of _0x533009){let _0x4a7c7e=null,_0xc59493=_0x45e8a3['start'],_0xd72d4=_0x45e8a3['end'];for(const {suggestion:_0x3ec0cd,meta:_0x10931f}of this['_findSuggestions'](_0x45e8a3,'formatInline')){if(!_0x10931f['isOwn'])continue;if(_0x3ec0cd['subType']!=_0x21586e)continue;if(!Kt(_0x3ec0cd,_0x3cc067))continue;const _0x5e1fd1=_0x3ec0cd['getFirstRange']();if(_0x5e1fd1['containsRange'](_0x45e8a3,!0x0))return null;_0xc59493=_0xc59493['isBefore'](_0x5e1fd1['start'])?_0xc59493:_0x5e1fd1['start'],_0xd72d4=_0xd72d4['isAfter'](_0x5e1fd1['end'])?_0xd72d4:_0x5e1fd1['end'],_0x4a7c7e?_0x5e1fd1['start']['isBefore'](_0x4a7c7e['getFirstRange']()['start'])?(_0x4a7c7e['removeMarkers'](),_0x4a7c7e=_0x3ec0cd):_0x3ec0cd['removeMarkers']():_0x4a7c7e=_0x3ec0cd;}const _0x1d2934=this['_model']['createRange'](_0xc59493,_0xd72d4);if(_0x4a7c7e)this['_setSuggestionRange'](_0x4a7c7e,_0x1d2934);else{const _0x32cd02=_0x30b629(),_0x50b8ef=_0x425978['id'];this['_setSuggestionData']({'id':_0x32cd02,'type':'formatInline:'+_0x21586e,'data':_0x10988b,'createdAt':new Date(),'authorId':_0x50b8ef,'attributes':_0x3cc067}),this['_addSuggestionMarker']('formatInline:'+_0x21586e,_0x32cd02,_0x50b8ef,_0x1d2934);}}return null;}['markBlockFormat'](_0x235290,_0x5851a5,_0x5c694e=[],_0x28c3da=null,_0x5c35f9={}){_0x5851a5['formatGroupId']||(_0x5851a5['formatGroupId']=_0x5851a5['commandName']),_0x5851a5['multipleBlocks']=_0x235290['is']('range'),_0x28c3da=_0x28c3da||Ft(_0x5851a5);const _0x2661d3=_0x5c694e['map'](_0x4012a1=>Ht(_0x4012a1,this['_model'])),_0x4564e5=_0x235290['is']('range')?_0x235290:Ht(_0x235290,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1c46d8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28c3da,'accept');return this['forceDefaultExecution'](()=>_0x1c46d8([_0x4564e5],_0x5851a5,_0x5c35f9)),null;}_0x2661d3['push'](_0x4564e5);let _0x2c312e=!0x0;for(const _0x4caa64 of _0x2661d3)if(!this['_rangeIsInLocalUserInsertion'](_0x4caa64)){_0x2c312e=!0x1;break;}if(_0x2c312e&&'always'!==this['_trackFormatChanges']){const _0x45feaf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28c3da,'accept');return this['forceDefaultExecution'](()=>_0x45feaf([_0x4564e5],_0x5851a5,_0x5c35f9)),null;}let _0x5bd208=null,_0xba8fe7=_0x4564e5['start'],_0x18fd80=_0x4564e5['end'];for(const {suggestion:_0x1514da,meta:_0x10a73f}of this['_findSuggestions'](_0x4564e5,'formatBlock')){if(!_0x10a73f['isOwn'])continue;if(_0x10a73f['isNextTo']||_0x10a73f['containsRangeInObject']||_0x10a73f['isInsideObject'])continue;if(_0x1514da['data']['formatGroupId']!=_0x5851a5['formatGroupId'])continue;if(!Kt(_0x1514da,_0x5c35f9))continue;const _0x273976=_0x1514da['getFirstRange']();if(_0x1514da['subType']==_0x28c3da){if(_0x273976['containsRange'](_0x4564e5,!0x0))return null;_0xba8fe7=_0xba8fe7['isBefore'](_0x273976['start'])?_0xba8fe7:_0x273976['start'],_0x18fd80=_0x18fd80['isAfter'](_0x273976['end'])?_0x18fd80:_0x273976['end'],_0x5bd208?_0x273976['start']['isBefore'](_0x5bd208['getFirstRange']()['start'])?(_0x5bd208['removeMarkers'](),_0x5bd208=_0x1514da):_0x1514da['removeMarkers']():_0x5bd208=_0x1514da;}else{const _0x291ba0=_0x4564e5['getIntersection'](_0x273976);this['_cutOutSuggestionMarker'](_0x1514da,_0x291ba0);}}const _0x198f7e=this['editor']['plugins']['get']('Users')['me'],_0x16fac1=_0x30b629(),_0x2a1145=_0x198f7e['id'];if(_0x5bd208)return this['_setSuggestionRange'](_0x5bd208,this['_model']['createRange'](_0xba8fe7,_0x18fd80)),_0x5bd208;{const _0x404734=this['_setSuggestionData']({'id':_0x16fac1,'type':'formatBlock:'+_0x28c3da,'data':_0x5851a5,'createdAt':new Date(),'authorId':_0x2a1145,'attributes':_0x5c35f9});return this['_addSuggestionMarker']('formatBlock:'+_0x28c3da,_0x16fac1,_0x2a1145,this['_model']['createRange'](_0xba8fe7,_0x18fd80)),_0x404734;}}['markMultiRangeBlockFormat'](_0x5863a6,_0x3f22fc,_0x766ad6=[],_0x4c00ed=null,_0xd63b6e={}){_0x3f22fc['formatGroupId']||(_0x3f22fc['formatGroupId']=_0x3f22fc['commandName']);const _0x505c38=_0x5863a6[0x0];_0x3f22fc['multipleBlocks']=_0x505c38['is']('range'),_0x4c00ed=_0x4c00ed||Ft(_0x3f22fc);const _0x23141e=_0x766ad6['map'](_0x90c8ac=>Ht(_0x90c8ac,this['_model'])),_0x361de9=_0x505c38['is']('range')?_0x5863a6:_0x5863a6['map'](_0x4418e2=>Ht(_0x4418e2,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3b3cc3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c00ed,'accept');return this['forceDefaultExecution'](()=>_0x3b3cc3(_0x361de9,_0x3f22fc,_0xd63b6e)),null;}_0x23141e['push'](..._0x361de9);let _0x2ac19=!0x0;for(const _0x443e6b of _0x23141e)if(!this['_rangeIsInLocalUserInsertion'](_0x443e6b)){_0x2ac19=!0x1;break;}if(_0x2ac19&&'always'!==this['_trackFormatChanges']){const _0x451e2b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c00ed,'accept');return this['forceDefaultExecution'](()=>_0x451e2b(_0x361de9,_0x3f22fc,_0xd63b6e)),null;}const _0x6fcca3=this['editor']['plugins']['get']('Users')['me'];for(const _0x15ac7d of this['getSuggestions']()){if(_0x15ac7d['author']['id']!=_0x6fcca3['id'])continue;if('formatBlock'!=_0x15ac7d['type']||_0x15ac7d['data']['formatGroupId']!=_0x3f22fc['formatGroupId'])continue;if(!Kt(_0x15ac7d,_0xd63b6e))continue;const _0x4af279=_0x15ac7d['subType']==_0x4c00ed;for(let _0x1fe62c=0x0;_0x1fe62c<_0x361de9['length'];_0x1fe62c++){const _0x2acff9=_0x361de9[_0x1fe62c];for(const _0x5a0167 of _0x15ac7d['getMarkers']()){const _0x1e2287=_0x5a0167['getRange']();if(_0x2acff9['isEqual'](_0x1e2287)){_0x4af279?(_0x361de9['splice'](_0x1fe62c,0x1),_0x1fe62c--):_0x15ac7d['removeMarker'](_0x5a0167['name']);break;}}}}if(0x0==_0x361de9['length'])return null;const _0x5e2d1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c00ed,'join');for(const _0x502066 of this['getSuggestions']())if(_0x502066['author']['id']==_0x6fcca3['id']&&'formatBlock'==_0x502066['type']&&_0x502066['data']['formatGroupId']==_0x3f22fc['formatGroupId']&&_0x502066['subType']==_0x4c00ed&&Kt(_0x502066,_0xd63b6e)&&(_0x5e2d1d(_0x502066['getRanges'](),_0x361de9)||_0x5e2d1d(_0x361de9,_0x502066['getRanges']()))){for(const _0x3e933f of _0x361de9)_0x502066['addRange'](_0x3e933f);return _0x502066;}const _0x28742c=_0x30b629(),_0x49fff8=_0x6fcca3['id'],_0x557f16='formatBlock:'+_0x4c00ed,_0x284acf=this['_setSuggestionData']({'id':_0x28742c,'type':_0x557f16,'data':_0x3f22fc,'createdAt':new Date(),'authorId':_0x49fff8,'attributes':_0xd63b6e});for(const _0xd8176e of _0x361de9)this['_addSuggestionMarker'](_0x557f16,_0x28742c,_0x49fff8,_0xd8176e,u['getMultiRangeId']());return _0x284acf;}['markDeletion'](_0x2faad1,_0x7bbcc8=null,_0x57ff0f={}){if(_0x2faad1['isCollapsed'])return null;const _0x539552=this['editor']['plugins']['get']('Users')['me'],_0x1e978c=new _0x531fcc(_0x2faad1['start'],_0x2faad1['end']);for(const {suggestion:_0xfa62d,meta:_0x5f4db9}of this['_findSuggestions'](_0x1e978c,'insertion'))if(_0x5f4db9['isOwn']&&!_0x5f4db9['isNextTo']){if(_0xfa62d['isMultiRange']){const _0x515931=_0xfa62d['getRanges']()['filter'](_0x1e01cd=>'$graveyard'!=_0x1e01cd['root']['rootName']);_0x515931['every'](_0x3c1b38=>_0x1e978c['containsRange'](_0x3c1b38,!0x0))&&_0xfa62d['discard']();if(_0x515931['some'](_0x5eacd2=>_0x5eacd2['containsRange'](_0x1e978c,!0x0))){const _0x227160=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7bbcc8,'accept');return this['forceDefaultExecution'](()=>_0x227160([_0x1e978c],null,_0x57ff0f)),null;}}else{const _0x5a6ae7=_0x1e978c['getIntersection'](_0xfa62d['getFirstRange']());null!==_0x5a6ae7&&_0xfa62d['_onDiscard']([_0x5a6ae7],null,_0x57ff0f);}}if(_0x1e978c['detach'](),_0x1e978c['isCollapsed']||'$graveyard'==_0x1e978c['root']['rootName'])return null;let _0x29ab9c=null,_0x50a811=_0x1e978c['start'],_0x3915b7=_0x1e978c['end'];const _0x22121b=this['_findSuggestions'](_0x1e978c,'deletion');for(const {suggestion:_0x13bda5,meta:_0x4051eb}of _0x22121b){const _0xe71209=this['_model']['createRange'](_0x50a811,_0x3915b7);if(_0x4051eb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4051eb['containsRangeInObject']&&!_0x4051eb['isInsideObject'])){if(_0x13bda5['isMultiRange']){if(!Kt(_0x13bda5,_0x57ff0f))continue;let _0x1f1acd=!0x0;for(const _0x5fd4a1 of _0x13bda5['getRanges']()){if(_0x5fd4a1['containsRange'](_0xe71209,!0x0))return _0x13bda5;_0xe71209['containsRange'](_0x5fd4a1)||(_0x1f1acd=!0x1);}_0x1f1acd&&_0x13bda5['discard']();}else{const _0x47fddb=_0x13bda5['getFirstRange']();if(_0x47fddb['containsRange'](_0xe71209,!0x0))return _0x13bda5;if(!Kt(_0x13bda5,_0x57ff0f)){_0xe71209['containsRange'](_0x47fddb)?_0x13bda5['removeMarkers']():_0x47fddb['containsPosition'](_0x50a811)?_0x50a811=_0x47fddb['end']:_0x47fddb['containsPosition'](_0x3915b7)&&(_0x3915b7=_0x47fddb['start']);continue;}_0x50a811=_0x50a811['isBefore'](_0x47fddb['start'])?_0x50a811:_0x47fddb['start'],_0x3915b7=_0x3915b7['isAfter'](_0x47fddb['end'])?_0x3915b7:_0x47fddb['end'],_0x57ff0f=Object['assign']({},_0x13bda5['attributes']),_0x29ab9c?_0x47fddb['start']['isBefore'](_0x29ab9c['getFirstRange']()['start'])?(_0x29ab9c['removeMarkers'](),_0x29ab9c=_0x13bda5):_0x13bda5['removeMarkers']():_0x29ab9c=_0x13bda5;}}}if(_0x29ab9c)return this['_setSuggestionRange'](_0x29ab9c,this['_model']['createRange'](_0x50a811,_0x3915b7)),_0x29ab9c;{const _0x2c9c83=_0x30b629(),_0x26bd25=this['_model']['createRange'](_0x50a811,_0x3915b7),_0x263b7f=_0x539552['id'],_0xd661d4=_0x7bbcc8?'deletion:'+_0x7bbcc8:'deletion',_0x532263=this['_setSuggestionData']({'id':_0x2c9c83,'type':_0xd661d4,'createdAt':new Date(),'authorId':_0x263b7f,'attributes':_0x57ff0f});return this['_addSuggestionMarker'](_0xd661d4,_0x2c9c83,_0x263b7f,_0x26bd25),_0x532263;}}['markMultiRangeDeletion'](_0x23df14,_0x475679='multi',_0x5a23a5={}){const _0x1c7f04=this['editor']['plugins']['get']('Users')['me'],_0x530872=_0x23df14['map'](_0x46af63=>new _0x531fcc(_0x46af63['start'],_0x46af63['end'])),_0xd3acb8=new Set();for(const {suggestion:_0x4cdff7,meta:_0x297fc7}of this['_findSuggestions'](_0x530872,'insertion'))_0x297fc7['isOwn']&&!_0x297fc7['isNextTo']&&_0xd3acb8['add'](_0x4cdff7);for(const _0x51d6fe of _0xd3acb8)if(_0x51d6fe['isMultiRange']){const _0x578420=_0x51d6fe['getRanges']();(!_0x51d6fe['attributes']||!_0x51d6fe['attributes']['skipNestingCheck'])&&(_0x578420['every'](_0x217e6d=>_0x530872['some'](_0xd78128=>_0xd78128['containsRange'](_0x217e6d,!0x0)))&&_0x51d6fe['discard']());if(_0x530872['every'](_0x367c59=>_0x578420['some'](_0x55a93a=>_0x55a93a['containsRange'](_0x367c59,!0x0)))){const _0x4a44c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475679,'accept');return this['forceDefaultExecution'](()=>_0x4a44c1(_0x23df14,null,_0x5a23a5)),null;}}else{const _0x1e9b76=_0x51d6fe['getFirstRange']();_0x530872['some'](_0x386fd9=>_0x386fd9['containsRange'](_0x1e9b76,!0x0))&&_0x51d6fe['discard']();if(_0x530872['every'](_0x14c0b0=>_0x1e9b76['containsRange'](_0x14c0b0,!0x0))){const _0x10cfc1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475679,'accept');return this['forceDefaultExecution'](()=>_0x10cfc1(_0x530872,null,_0x5a23a5)),null;}}const _0x3beef6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475679,'join');let _0x46e8cb=null;for(const _0x3342d5 of this['getSuggestions']())if(_0x3342d5['author']['id']==_0x1c7f04['id']&&_0x3342d5['isInContent']&&'deletion'==_0x3342d5['type']&&_0x3342d5['subType']==_0x475679&&Kt(_0x3342d5,_0x5a23a5)&&(_0x3beef6(_0x3342d5['getRanges'](),_0x530872)||_0x3beef6(_0x530872,_0x3342d5['getRanges']()))){if(_0x46e8cb){if(_0x3342d5['commentThread']&&_0x3342d5['commentThread']['length'])continue;for(const _0x12389b of _0x3342d5['getRanges']())_0x46e8cb['isIntersectingWithRange'](_0x12389b)||_0x46e8cb['addRange'](_0x12389b);_0x3342d5['removeMarkers']();}else{_0x46e8cb=_0x3342d5;for(const _0x2f094e of _0x530872)_0x3342d5['isIntersectingWithRange'](_0x2f094e)||_0x3342d5['addRange'](_0x2f094e);}}if(_0x46e8cb)return _0x46e8cb;_0xd3acb8['clear']();for(const {suggestion:_0x1b629c,meta:_0x3fb6de}of this['_findSuggestions'](_0x530872,'deletion'))_0x3fb6de['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3fb6de['containsRangeInObject']&&!_0x3fb6de['isInsideObject'])&&Kt(_0x1b629c,_0x5a23a5)&&_0xd3acb8['add'](_0x1b629c);for(const _0x190b3b of _0xd3acb8){const _0xe15632=_0x190b3b['getRanges']();if(!_0x5a23a5||!_0x5a23a5['skipNestingCheck']){if(_0x530872['every'](_0x5a0932=>_0xe15632['some'](_0x57309f=>_0x57309f['containsRange'](_0x5a0932,!0x0))))return _0x190b3b;}(!_0x190b3b['attributes']||!_0x190b3b['attributes']['skipNestingCheck'])&&(_0xe15632['every'](_0x113fe9=>_0x530872['some'](_0x14c1d4=>_0x14c1d4['containsRange'](_0x113fe9,!0x0)))&&_0x190b3b['discard']());}const _0x22c0be=_0x30b629(),_0x3b13be=_0x1c7f04['id'],_0x3cf520='deletion:'+_0x475679,_0x7582bb=this['_setSuggestionData']({'id':_0x22c0be,'type':_0x3cf520,'createdAt':new Date(),'authorId':_0x3b13be,'attributes':_0x5a23a5});for(const _0x1d2f17 of _0x530872)_0x1d2f17['detach'](),_0x1d2f17['isCollapsed']||'$graveyard'==_0x1d2f17['root']['rootName']||this['_addSuggestionMarker'](_0x3cf520,_0x22c0be,_0x3b13be,_0x1d2f17,u['getMultiRangeId']());return _0x7582bb;}['markAttributeChange'](_0x2b939e,_0x27d5f9,_0x878aca,_0x55a3c4,_0x1737c9){if(_0x2b939e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x525acb=this['editor']['plugins']['get']('Users')['me']['id'],_0x532fcd=Array['from'](this['_suggestions']['values']())['filter'](_0x1fde06=>'attribute'==_0x1fde06['type']&&_0x1fde06['data']['key']==_0x27d5f9&&_0x1fde06['isIntersectingWithRange'](_0x2b939e));if('default'===this['_trackFormatChanges']){const _0x1a810a=this['_findSuggestions'](_0x2b939e,'insertion')['filter'](({meta:_0x213c6d})=>_0x213c6d['isOwn']&&!_0x213c6d['isInsideObject']&&!_0x213c6d['isNextTo'])['map'](({suggestion:_0x2378d5})=>_0x2378d5);_0x532fcd['unshift'](..._0x1a810a);}const _0x1c0e0f=new Map([[_0x2b939e,_0x878aca]]);for(const _0x283cdc of _0x532fcd){const _0xf32490='attribute'==_0x283cdc['type']?_0x283cdc['data']['oldValue']:void 0x0,_0x24b2db=_0x283cdc['getFirstRange'](),_0x199035=Array['from'](_0x1c0e0f['keys']())['find'](_0x20e629=>_0x20e629['isIntersecting'](_0x24b2db));if(!_0x199035)continue;const _0x290bbe=_0x199035['getDifference'](_0x24b2db);this['_isBlockAttribute'](_0x27d5f9)&&'insertion'==_0x283cdc['type']&&0x0!=_0x290bbe['length']||(_0x1c0e0f['delete'](_0x199035),_0x290bbe['forEach'](_0xdd6aa1=>{_0x1c0e0f['set'](_0xdd6aa1,_0x878aca);}),'insertion'!=_0x283cdc['type']&&_0xf32490!=_0x55a3c4&&_0x1c0e0f['set'](_0x199035['getIntersection'](_0x24b2db),_0xf32490));}const _0x2cf02e=[];for(const [_0x4eaea5,_0x2807cf]of _0x1c0e0f){const _0xaae879=_0x30b629(),_0x2240bb={'key':_0x27d5f9,'oldValue':_0x2807cf,'newValue':_0x55a3c4};_0x27d5f9['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':_0x27d5f9});const _0x54e97d=('attribute:'+(_0x27d5f9+'|'+Ft({'newValue':_0x55a3c4})))['substring'](0x0,0x3c),_0xc7c5a=this['_setSuggestionData']({'id':_0xaae879,'type':_0x54e97d,'data':_0x2240bb,'createdAt':new Date(),'authorId':_0x525acb,'attributes':_0x1737c9});_0x2cf02e['push'](_0xc7c5a),this['_addSuggestionMarker'](_0x54e97d,_0xaae879,_0x525acb,_0x4eaea5);}return _0x2cf02e;}['enableDefaultAttributesIntegration'](_0x1d203c){this['enableCommand'](_0x1d203c,(_0xe2a67,..._0xd19f4e)=>{this['_recordAttributeChanges'](()=>{_0xe2a67(..._0xd19f4e);});});}['registerBlockAttribute'](_0x10dbd8){this['_blockAttributeKeys']['add'](_0x10dbd8);}['registerInlineAttribute'](_0x13b070){this['_inlineAttributeKeys']['add'](_0x13b070);}['_getAttributeKey'](_0x399358){return'attribute'==_0x399358['type']?_0x399358['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2bbda9,_0x3e7206){const _0x32d600=_0x2bbda9['getFirstMarker']();this['_model']['change'](_0x2fa778=>{_0x2fa778['updateMarker'](_0x32d600,{'range':_0x3e7206});});}['_addThreadToSuggestion'](_0x2c4aed){const _0x23dd18=_0x2c4aed['id'],_0x19b94d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x23dd18)||this['_commentsRepository']['addCommentThread']({'channelId':_0x19b94d,'threadId':_0x23dd18,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e6fbf=this['_commentsRepository']['getCommentThread'](_0x23dd18);_0x4e6fbf['unbind']('isRemovable'),_0x4e6fbf['isRemovable']=!0x1,_0x2c4aed['commentThread']=_0x4e6fbf;}['_checkSuggestionCorrectness'](_0x3fce46,_0x177453,_0xaad87e,_0x181978){if(_0x3fce46['type']!=_0x177453||_0x3fce46['subType']!=_0xaad87e||_0x3fce46['creator']['id']!=_0x181978)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x40d556('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x53badd,_0x234263){const _0x389d3b=_0x53badd['getFirstRange']();if(_0x234263['isEqual'](_0x389d3b))_0x53badd['removeMarkers']();else{if(_0x389d3b['containsRange'](_0x234263)){const _0x1f7100=this['_model']['createPositionAt'](_0x234263['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x53badd,this['_model']['createRange'](_0x389d3b['start'],_0x1f7100));const _0xd00c3f=_0x30b629(),_0x18e356=_0x53badd['creator']['id'],_0x13a963=_0x53badd['type']+':'+_0x53badd['subType'];this['_setSuggestionData']({'id':_0xd00c3f,'type':_0x13a963,'createdAt':new Date(),'authorId':_0x18e356,'data':_0x53badd['data'],'attributes':_0x53badd['attributes']});const _0x84567f=this['_model']['createPositionAt'](_0x234263['end']['parent'],'after'),_0x2d9449=this['_model']['createRange'](_0x84567f,_0x389d3b['end']);this['_addSuggestionMarker'](_0x13a963,_0xd00c3f,_0x18e356,_0x2d9449);}else{if(_0x389d3b['containsPosition'](_0x234263['start'])){const _0x5e9c27=this['_model']['createPositionAt'](_0x234263['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x53badd,this['_model']['createRange'](_0x389d3b['start'],_0x5e9c27));}else{const _0x944cc6=this['_model']['createPositionAt'](_0x234263['end']['parent'],'after');this['_setSuggestionRange'](_0x53badd,this['_model']['createRange'](_0x944cc6,_0x389d3b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c71a1){for(const {suggestion:_0x485cfd,meta:_0x41b698}of this['_findSuggestions'](_0x5c71a1,'insertion')){if(!_0x41b698['isOwn'])continue;const _0x4f47e6=_0x485cfd['getRanges']();for(const _0x223527 of _0x4f47e6)if(!_0x5c71a1['getDifference'](_0x223527)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2b97c3){const _0x52e3d3=this['editor']['plugins']['get']('Users')['getUser'](_0x2b97c3);if(!_0x52e3d3)throw new _0x40d556('track-changes-user-not-found',this);return _0x52e3d3;}['_getExternalAuthor'](_0x430cf7){const _0x2c90b=this['editor']['plugins']['get']('Users'),_0x2da428=_0x26d3d5('external:'+_0x430cf7),_0x38425d=_0x2c90b['getUser'](_0x2da428);return _0x38425d||_0x2c90b['addUser']({'id':_0x2da428,'name':_0x430cf7});}['_createSuggestion'](_0x5a2a42,_0x596967,_0x56acfb,_0x39d048,_0x4ce427){const _0x5f4e21=this['_getAuthorFromId'](_0x39d048),_0x5e9fd3=this['_suggestionFactory']['buildSuggestion'](_0x5a2a42,_0x596967,_0x56acfb,_0x5f4e21,_0x4ce427,_0x11660d=>{this['_updateSuggestionData'](_0x56acfb,{'attributes':_0x11660d});const _0x1ae30c=this['getSuggestion'](_0x56acfb);this['_joinWithAdjacentSuggestions'](new Set([_0x1ae30c])),this['_refreshSuggestionsChain'](new Set([_0x1ae30c]));});return this['listenTo'](_0x5e9fd3,'accept',()=>{this['_updateSuggestionData'](_0x56acfb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e9fd3,'discard',()=>{this['_updateSuggestionData'](_0x56acfb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x56acfb,_0x5e9fd3),this['_suggestionState']['set'](_0x5e9fd3,'notReady'),_0x5e9fd3;}['_splitMarkerName'](_0x22d3c6){const _0x36569e=_0x22d3c6['split'](':');return{'group':_0x36569e[0x0],'type':_0x36569e[0x1],'subType':_0x36569e['length']>=0x5?_0x36569e[0x2]:null,'id':_0x36569e['length']<0x5?_0x36569e[0x2]:_0x36569e[0x3],'authorId':_0x36569e['length']<0x5?_0x36569e[0x3]:_0x36569e[0x4],'markerCount':0x6==_0x36569e['length']?_0x36569e[0x5]:null};}['_breakSuggestionMarker'](_0x41ae9b,_0x5a353a,_0x12e91e){const _0x41e009=_0x41ae9b['getFirstRange'](),_0x4c268e=_0x41e009['start'],_0xc6f39=_0x41e009['end'];this['_setSuggestionRange'](_0x41ae9b,this['_model']['createRange'](_0x4c268e,_0x5a353a));const _0x1a47cf=_0x30b629(),_0x5e8368=_0x41ae9b['creator']['id'],_0x4d137f=_0x41ae9b['type']+(_0x41ae9b['subType']?':'+_0x41ae9b['subType']:'');this['_setSuggestionData']({'id':_0x1a47cf,'type':_0x4d137f,'createdAt':new Date(),'authorId':_0x5e8368,'originalSuggestionId':_0x41ae9b['id'],'attributes':_0x41ae9b['attributes'],'data':_0x41ae9b['data']});const _0x2e1ffd=this['_getAttributeKey'](_0x41ae9b);('formatBlock'==_0x41ae9b['type']||_0x2e1ffd&&this['_isBlockAttribute'](_0x2e1ffd))&&(_0x12e91e=this['_model']['createPositionBefore'](_0x12e91e['parent'])),this['_addSuggestionMarker'](_0x4d137f,_0x1a47cf,_0x5e8368,this['_model']['createRange'](_0x12e91e,_0xc6f39));}['_findSuggestions'](_0x33c279,_0x5c7416=null){const _0x40868e=[],_0xc4cc65=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x33c279)||(_0x33c279=[_0x33c279]);for(const _0x20c835 of this['getSuggestions']()){if(!_0x20c835['isInContent'])continue;if(_0x5c7416&&_0x20c835['type']!=_0x5c7416)continue;let _0x2790dd=!0x1;for(const _0x84bff1 of _0x20c835['getRanges']()){for(const _0x2e0238 of _0x33c279){const _0x1adf1a=_0x2e0238['start']['isEqual'](_0x84bff1['end'])||_0x2e0238['end']['isEqual'](_0x84bff1['start']);if(_0x1adf1a||_0x2e0238['getIntersection'](_0x84bff1)){const _0x4cc2e5=_0x2e0238['containsRange'](_0x84bff1)&&Vt(this['_model']['schema'],_0x84bff1['start'],_0x2e0238),_0x5ad377=_0x84bff1['containsRange'](_0x2e0238)&&Vt(this['_model']['schema'],_0x2e0238['start'],_0x84bff1);_0x40868e['push']({'suggestion':_0x20c835,'meta':{'isOwn':_0xc4cc65==_0x20c835['author'],'isNextTo':_0x1adf1a,'isInsideObject':_0x4cc2e5,'containsRangeInObject':_0x5ad377}}),_0x2790dd=!0x0;break;}}if(_0x2790dd)break;}}return _0x40868e;}['_addSuggestionMarker'](_0x38d6bf,_0x5e7262,_0x3c88d1,_0x1a8989,_0x23894d){this['_model']['change'](_0x47ce77=>{let _0x22bd9e='suggestion:'+_0x38d6bf+':'+_0x5e7262+':'+_0x3c88d1;_0x23894d&&(_0x22bd9e=_0x22bd9e+':'+_0x23894d),_0x47ce77['addMarker'](_0x22bd9e,{'range':_0x1a8989,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xcd4878){const _0x5458a4=_0xcd4878['previous'],_0x331193=_0xcd4878['next'];_0xcd4878['previous']=null,_0xcd4878['next']=null,null!=_0x5458a4&&_0x5458a4['next']==_0xcd4878&&(_0x5458a4['next']=_0x331193),null!=_0x331193&&_0x331193['previous']==_0xcd4878&&(_0x331193['previous']=_0x5458a4),'ready'==this['_suggestionState']['get'](_0xcd4878)&&(this['_suggestionState']['set'](_0xcd4878,'removed'),this['fire']('suggestionUnloaded',_0xcd4878,_0x5458a4,_0x331193));}['_setSuggestionData'](_0x2b37b9){const _0x2685a6=_0x2b37b9['id'],_0x215b5d=this['addSuggestionData'](_0x2b37b9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x104444=this['editor']['plugins']['get']('PendingActions'),_0x1aaa1a=_0x215b5d['hasComments'],_0x29b305=_0x215b5d['subType']?_0x215b5d['type']+':'+_0x215b5d['subType']:_0x215b5d['type'],_0xb6fda1=this['editor']['locale'],_0x723ef8=_0x104444['add'](o(_0xb6fda1,'PENDING_ACTION_SUGGESTION')),_0x32334c={'id':_0x2685a6,'type':_0x29b305,'hasComments':_0x1aaa1a,'data':_0x2b37b9['data']||null,'originalSuggestionId':_0x2b37b9['originalSuggestionId']||null,'attributes':_0x215b5d['attributes']};this['_adapter']['addSuggestion'](_0x32334c)['then'](_0x342f6c=>{_0x215b5d['_saved']=!0x0,_0x104444['remove'](_0x723ef8),_0x342f6c&&_0x342f6c['createdAt']&&(this['_suggestions']['get'](_0x2685a6)['createdAt']=_0x342f6c['createdAt']);})['catch'](_0x3220e6=>{throw _0x278dc8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x215b5d['discard']();}),_0x215b5d['stopListening'](),this['_suggestions']['delete'](_0x215b5d['id']),this['_suggestionState']['delete'](_0x215b5d),_0x3220e6;});}return _0x215b5d;}['_isBlockAttribute'](_0x5872b2){return this['_blockAttributeKeys']['has'](_0x5872b2);}['_updateSuggestionData'](_0x2d65bd,_0x239a34){const _0x1ee66d=this['editor']['plugins']['get']('PendingActions'),_0x3378f3=this['getSuggestion'](_0x2d65bd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3378f3['_saved']){const _0x5efe5a=_0x1ee66d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2d65bd,_0x239a34)['then'](()=>{_0x1ee66d['remove'](_0x5efe5a);});}else _0x3378f3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2d65bd,_0x239a34);});}}['_getSuggestionData'](_0x150e1c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x40d556('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x150e1c);}['_handleNewSuggestionMarker'](_0x46fdc3){const {id:_0x57e6e2,type:_0x331425,subType:_0x5cb89a,authorId:_0xb92e3f}=this['_splitMarkerName'](_0x46fdc3),_0x29f7a5=this['_suggestions']['get'](_0x57e6e2)||this['_createSuggestion'](_0x331425,_0x5cb89a,_0x57e6e2,_0xb92e3f,{});switch(this['_checkSuggestionCorrectness'](_0x29f7a5,_0x331425,_0x5cb89a,_0xb92e3f),this['_suggestionState']['get'](_0x29f7a5)){case'notReady':this['_getSuggestionData'](_0x57e6e2)['then'](_0x4d4f9b=>{let _0x371fad=Promise['resolve']();_0x4d4f9b['hasComments']&&(_0x371fad=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x57e6e2})),_0x371fad['then'](()=>{this['addSuggestionData'](_0x4d4f9b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29f7a5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x57e6e2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29f7a5,'ready'),this['fire']('suggestionLoaded',_0x29f7a5);break;case'ready':this['fire']('suggestionChanged',_0x29f7a5);}return _0x29f7a5['addMarkerName'](_0x46fdc3),_0x29f7a5;}['_refreshSuggestionsChain'](_0x32391e){const _0x281be6=Array['from'](_0x32391e),_0x55c09a=_0x281be6['filter'](_0x1640b9=>'attribute'==_0x1640b9['type']);this['_refreshAttributeSuggestionsChain'](_0x55c09a);const _0x5decfa=_0x281be6['filter'](_0x5bd970=>!_0x5bd970['isMultiRange']&&'attribute'!=_0x5bd970['type']),_0x2bcbac=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4227ca=>!_0x4227ca['isMultiRange']&&'attribute'!=_0x4227ca['type']),_0x4b2a83=_0x2bcbac['filter'](_0x52d130=>!_0x32391e['has'](_0x52d130)),_0x3a4444=new Map(_0x2bcbac['map'](_0x637640=>[_0x637640,this['_suggestionFactory']['getSuggestionCallback'](_0x637640['type'],_0x637640['subType'],'chain')])),_0x3c7acf=new Map(_0x2bcbac['map'](_0x2019ea=>[_0x2019ea,_0x2019ea['getFirstRange']()])),_0x318f06=new Set(),_0x2d9bd7=new Set();for(let _0x4c58d6=0x0;_0x4c58d6<_0x5decfa['length'];_0x4c58d6++)_0x1d667f(_0x5decfa[_0x4c58d6],_0x5decfa,_0x4c58d6+0x1);for(let _0x3f7ee4=0x0;_0x3f7ee4<_0x5decfa['length'];_0x3f7ee4++)_0x1d667f(_0x5decfa[_0x3f7ee4],_0x4b2a83,0x0);const _0x504e9c=new Set();for(let _0x16d159=0x0;_0x16d159<_0x5decfa['length'];_0x16d159++){const _0x543508=_0x5decfa[_0x16d159];!_0x2d9bd7['has'](_0x543508)&&_0x543508['previous']&&(_0x504e9c['add'](_0x543508['previous']),_0x543508['previous']['next']===_0x543508&&(_0x543508['previous']['next']=null),_0x543508['previous']=null),!_0x318f06['has'](_0x543508)&&_0x543508['next']&&(_0x504e9c['add'](_0x543508['next']),_0x543508['next']['previous']===_0x543508&&(_0x543508['next']['previous']=null),_0x543508['next']=null);}function _0x1d667f(_0x24561d,_0x377928,_0x77f960){for(let _0x54480c=_0x77f960;_0x54480c<_0x377928['length'];_0x54480c++){const _0x14a462=_0x5ef154(_0x24561d,_0x377928[_0x54480c]);_0x14a462&&(_0x14a462[0x0]['next']=_0x14a462[0x1],_0x14a462[0x1]['previous']=_0x14a462[0x0],_0x318f06['add'](_0x14a462[0x0]),_0x2d9bd7['add'](_0x14a462[0x1]));}}function _0x5ef154(_0x5dcc08,_0xee9516){if(_0x5dcc08['author']['id']!==_0xee9516['author']['id'])return null;const _0x5352a1=_0x3a4444['get'](_0x5dcc08)(_0x5dcc08,_0xee9516,_0x3c7acf['get'](_0x5dcc08),_0x3c7acf['get'](_0xee9516));if(!_0x5352a1)return null;return _0x3a4444['get'](_0xee9516)(_0x5dcc08,_0xee9516,_0x3c7acf['get'](_0x5dcc08),_0x3c7acf['get'](_0xee9516))?_0x5352a1[0x1]['commentThread']&&_0x5352a1[0x1]['commentThread']['length']?null:_0x5352a1:null;}_0x504e9c['size']&&this['_refreshSuggestionsChain'](_0x504e9c);}['_refreshAttributeSuggestionsChain'](_0x10444e){if(0x0==_0x10444e['length'])return;const _0x4e8085=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x423dd8=>'attribute'==_0x423dd8['type']&&_0x423dd8['_isDataLoaded']),_0x4704cf=[],_0x2f257b=new Map();for(const _0x49a7db of _0x4e8085){const _0x2908fb=_0x26d3d5(_0x49a7db['attributes']);_0x2f257b['has'](_0x2908fb)||(_0x2f257b['set'](_0x2908fb,_0x4704cf['length']),_0x4704cf['push']([]));const _0x1913d3=_0x2f257b['get'](_0x2908fb);_0x4704cf[_0x1913d3]['push'](_0x49a7db);}!(function(){_0x4704cf['sort']((_0x2e62f3,_0x1391d7)=>{const _0x2ebdfc=_0x2e62f3[0x0]['createdAt'],_0x4f788d=_0x1391d7[0x0]['createdAt'];return _0x2ebdfc==_0x4f788d?_0x2e62f3[0x0]['attributes']['groupId']<_0x1391d7[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ebdfc<_0x4f788d?-0x1:0x1;});for(const _0x2d4372 of _0x4704cf)_0x2d4372['sort']((_0x155107,_0x279204)=>_0x155107['id']<_0x279204['id']?-0x1:0x1);}());for(let _0x543951=0x0;_0x543951<_0x4704cf['length'];_0x543951++){if(0x0==_0x4704cf[_0x543951]['length'])continue;const _0x1421c5=[];for(let _0x14e2cd=_0x543951+0x1;_0x14e2cd<_0x4704cf['length'];_0x14e2cd++)0x0!=_0x4704cf[_0x14e2cd]['length']&&_0xe739ec(_0x4704cf[_0x543951],_0x4704cf[_0x14e2cd])&&_0x1421c5['push'](_0x14e2cd);for(const _0x5f14c6 of _0x1421c5)_0x4704cf[_0x543951]=_0x4704cf[_0x543951]['concat'](_0x4704cf[_0x5f14c6]),_0x4704cf[_0x5f14c6]=[];}for(const _0x2716f4 of _0x4704cf)for(let _0xc1ca=0x0;_0xc1ca<_0x2716f4['length'];_0xc1ca++){const _0x41ff4c=_0x2716f4[_0xc1ca+0x1]||null;_0x2716f4[_0xc1ca]['next']!==_0x41ff4c&&(_0x2716f4[_0xc1ca]['next']=_0x41ff4c);}for(const _0x174051 of _0x4704cf)for(let _0x3f5261=0x0;_0x3f5261<_0x174051['length'];_0x3f5261++){const _0xa0e40f=_0x174051[_0x3f5261-0x1]||null;_0x174051[_0x3f5261]['previous']!==_0xa0e40f&&(_0x174051[_0x3f5261]['previous']=_0xa0e40f);}function _0xe739ec(_0x536b0e,_0x2d3107){if(_0x536b0e[0x0]['attributes']['groupId']!==_0x2d3107[0x0]['attributes']['groupId']&&_0x536b0e[0x0]['author']!==_0x2d3107[0x0]['author'])return!0x1;if(!function(_0x178196,_0x3be773){if(!_0x178196['hasComments']&&!_0x3be773['hasComments'])return!0x0;if(_0x178196['hasComments']&&_0x3be773['hasComments'])return!0x1;if(_0x178196['hasComments']&&_0x3be773['createdAt']<_0x178196['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3be773['hasComments']&&_0x178196['createdAt']<_0x3be773['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x536b0e[0x0],_0x2d3107[0x0]))return!0x1;const _0x3bc792=Et(_0x536b0e[0x0]['attributes'],'groupId'),_0xa1ab02=Et(_0x2d3107[0x0]['attributes'],'groupId');if(!_0x22a75d(_0x3bc792,_0xa1ab02))return!0x1;return!!_0x536b0e['every'](_0x4188a4=>_0x2d3107['some'](_0x2c9933=>_0x4188a4['getFirstRange']()['isEqual'](_0x2c9933['getFirstRange']())))&&_0x2d3107['every'](_0x297a04=>_0x536b0e['some'](_0x59b13f=>_0x297a04['getFirstRange']()['isEqual'](_0x59b13f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4bdc9f){const _0x1cd24e=Array['from'](_0x4bdc9f),_0x389302=this['getSuggestions']({'skipNotAttached':!0x0}),_0x33f5af=_0x389302['filter'](_0x585eb3=>!_0x4bdc9f['has'](_0x585eb3)),_0x507a47=new Map(_0x1cd24e['map'](_0x5a514f=>[_0x5a514f,this['_suggestionFactory']['getSuggestionCallback'](_0x5a514f['type'],_0x5a514f['subType'],'join')])),_0x6414e1=new Map(_0x389302['map'](_0x30daac=>[_0x30daac,_0x30daac['getRanges']()]));for(let _0x1002af=0x0;_0x1002af<_0x1cd24e['length'];_0x1002af++){if(_0x535876(this,_0x1cd24e[_0x1002af],_0x1cd24e,_0x1002af+0x1))return!0x0;}for(let _0x59d5c6=0x0;_0x59d5c6<_0x1cd24e['length'];_0x59d5c6++){if(_0x535876(this,_0x1cd24e[_0x59d5c6],_0x33f5af,0x0))return!0x0;}return!0x1;function _0x535876(_0x1cf20a,_0x56146e,_0x338cd5,_0x65aac4){for(let _0x5dbce4=_0x65aac4;_0x5dbce4<_0x338cd5['length'];_0x5dbce4++){const _0x425aa7=_0x338cd5[_0x5dbce4];if(_0x425aa7['type']!==_0x56146e['type']||_0x425aa7['author']['id']!==_0x56146e['author']['id']||_0x425aa7['subType']!==_0x56146e['subType'])continue;if(!zt(_0x56146e,_0x425aa7))continue;if('attribute'==_0x56146e['type']&&_0x56146e['data']['oldValue']!=_0x425aa7['data']['oldValue'])continue;if('attribute'==_0x56146e['type']&&_0x1cf20a['_isBlockAttribute'](_0x56146e['data']['key']))continue;if('formatBlock'==_0x56146e['type']){const _0x5e1853=_0x1cf20a['editor']['model'],_0xad3fb7=_0x56146e['getContainedElement']();if(_0xad3fb7&&(_0x5e1853['schema']['isObject'](_0xad3fb7)||_0x5e1853['schema']['isLimit'](_0xad3fb7)))continue;}const _0x1a40af=_0x507a47['get'](_0x56146e),_0x3c22f8=_0x6414e1['get'](_0x56146e),_0x2a581f=_0x6414e1['get'](_0x425aa7),_0x5322cf=_0x56146e['commentThread']&&_0x56146e['commentThread']['length'],_0x18702d=_0x425aa7['commentThread']&&_0x425aa7['commentThread']['length'];if(!_0x5322cf&&_0x1a40af(_0x2a581f,_0x3c22f8))return _0x1cf20a['_joinSuggestions'](_0x425aa7,_0x56146e),_0x6414e1['delete'](_0x56146e),!0x0;if(!_0x18702d&&_0x1a40af(_0x3c22f8,_0x2a581f))return _0x1cf20a['_joinSuggestions'](_0x56146e,_0x425aa7),_0x6414e1['delete'](_0x425aa7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3b657e,_0xfbd6c7){if(_0x3b657e['isMultiRange']){for(const _0x5946c2 of _0xfbd6c7['getRanges']())_0x3b657e['addRange'](_0x5946c2);}else{const _0x4e6e58=_0xfbd6c7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3b657e,this['_model']['createRange'](_0x3b657e['getFirstRange']()['start'],_0x4e6e58));}_0xfbd6c7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4d692b,_0x5c3c4b,_0x340597){const _0x1847a7=_0x4d692b['startsWith']('format')||_0x4d692b['startsWith']('attribute')?'FORMATTING':_0x4d692b['toUpperCase']();return o(this['editor']['locale'],_0x5c3c4b+'_'+_0x1847a7+'_SUGGESTION_ANNOUNCEMENT',_0x340597);}['_initAriaMarkerChangeAnnouncements'](){const _0x2a677b=this['editor'];if(!_0x2a677b['ui'])return;const {ariaLiveAnnouncer:_0x20b804}=_0x2a677b['ui'];_0x469a23(this['_model'],({left:_0x5275ca,entered:_0x202e3e})=>{for(const _0x5efabf of _0x5275ca){const {group:_0x13390d,type:_0x4a638b}=this['_splitMarkerName'](_0x5efabf['name']);if('suggestion'===_0x13390d){_0x20b804['announce'](this['_getMarkerAnnouncementText'](_0x4a638b,'LEAVE'));break;}}for(const _0x54858d of _0x202e3e){const {group:_0x5de1c8,type:_0x18ede0}=this['_splitMarkerName'](_0x54858d['name']);if('suggestion'===_0x5de1c8){_0x20b804['announce'](this['_getMarkerAnnouncementText'](_0x18ede0,'ENTER',_0x1a649c(_0x382fd8)));break;}}});}['_processAttributeChanges'](_0x1617c8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3eb33a=this['editor'],_0x237e37=_0x3eb33a['model']['document']['differ']['getChanges']();if(0x0==_0x237e37['length'])return!0x1;const _0x2f7ac8=[],_0x3f1984=_0x237e37['filter'](_0x4a841d=>'attribute'==_0x4a841d['type']),_0x5876e=_0x237e37['filter'](_0x3e5bfd=>'insert'==_0x3e5bfd['type']&&'$text'!=_0x3e5bfd['name']),_0x3dbbd1=_0x237e37['filter'](_0x1bf109=>'remove'==_0x1bf109['type']&&'$text'!=_0x1bf109['name']);for(const _0x1e0ad3 of _0x3f1984)_0x2f7ac8['push']({'key':_0x1e0ad3['attributeKey'],'newValue':_0x1e0ad3['attributeNewValue'],'oldValue':_0x1e0ad3['attributeOldValue'],'range':Jt(_0x1e0ad3['range'],_0x3eb33a['model'])});for(const _0x261eb9 of _0x5876e){const _0x46b640=_0x3dbbd1['find'](_0x438d3c=>_0x438d3c['position']['isEqual'](_0x261eb9['position']));_0x46b640&&_0x2f7ac8['push']({'key':m,'newValue':_0x261eb9['name'],'oldValue':_0x46b640['name'],'range':_0x3eb33a['model']['createRangeOn'](_0x261eb9['position']['nodeAfter'])});}return 0x0!=_0x2f7ac8['length']&&this['_reduceExistingSuggestions'](_0x1617c8,_0x2f7ac8);}['_processAttributeSuggestions'](_0x233fa2){let _0x3222b8=!0x1;const _0x3dd4b1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a1c74=>_0x2a1c74['data']['newRange']&&_0x2a1c74['name']['startsWith']('suggestion:attribute:'));for(const _0x1b0f9f of _0x3dd4b1){const {subType:_0x235fcf,id:_0x13f443}=this['_splitMarkerName'](_0x1b0f9f['name']),_0x3554e8=_0x235fcf['split']('|')[0x0];for(const _0x44d27b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x44d27b['id']!=_0x13f443&&'attribute'==_0x44d27b['type']&&_0x44d27b['data']&&_0x44d27b['data']['key']==_0x3554e8&&_0x44d27b['getFirstRange']()['isIntersecting'](_0x1b0f9f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x44d27b,_0x1b0f9f['data']['newRange'],_0x233fa2),_0x3222b8=!0x0);}return _0x3222b8;}['_recordAttributeChanges'](_0x347432){this['_recordAttributeSuggestions']=!0x0,_0x347432();}['_isRegisteredAttribute'](_0x5658bd){const _0x4db72f=this['_isBlockAttribute'](_0x5658bd),_0x272bef=this['_inlineAttributeKeys']['has'](_0x5658bd);return _0x4db72f||_0x272bef;}['_reduceExistingSuggestions'](_0x5cf30b,_0x235bf9){if(0x0==_0x235bf9['length'])return!0x1;let _0x3ed196=!0x1;for(const _0x2678bd of _0x235bf9){const _0x34eeee=this['_findSuggestions'](_0x2678bd['range'],'attribute')['filter'](_0x173dd1=>!_0x173dd1['meta']['isNextTo'])['map'](_0x23e759=>_0x23e759['suggestion']),_0x1f0f90=_0x26d3d5({'newValue':_0x2678bd['newValue']});_0x34eeee['filter'](_0x2c6da8=>{const [_0x9f8467,_0x439cbb]=_0x2c6da8['subType']['split']('|');return _0x9f8467==_0x2678bd['key']&&_0x439cbb!=_0x1f0f90;})['forEach'](_0x44fc2e=>{this['_reduceSuggestionAttributeRange'](_0x44fc2e,_0x2678bd['range'],_0x5cf30b),_0x3ed196=!0x0;});}return _0x3ed196;}['_reduceSuggestionAttributeRange'](_0x32c5d8,_0x44acd8,_0x2ad1eb){const _0x4b5ef5=_0x32c5d8['getFirstRange']()['getDifference'](_0x44acd8);0x0!==_0x4b5ef5['length']?0x1!==_0x4b5ef5['length']?this['_breakSuggestionMarker'](_0x32c5d8,_0x44acd8['start'],_0x44acd8['end']):this['_setSuggestionRange'](_0x32c5d8,_0x4b5ef5[0x0]):_0x2ad1eb['removeMarker'](_0x32c5d8['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x363ca7){this['_editor']=_0x363ca7,this['_model']=_0x363ca7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x96f0b4,_0x3b23a3,_0x837236,_0x30ac49,_0x4a02b4,_0x4ec5f9){return new u(this['_model'],{'type':_0x96f0b4,'subType':_0x3b23a3,'id':_0x837236,'author':_0x30ac49,'creator':_0x30ac49,'attributes':_0x4a02b4,'onAttributesChange':_0x4ec5f9,'onAccept':(..._0x5ce9c0)=>this['getSuggestionCallback'](_0x96f0b4,_0x3b23a3,'accept')(..._0x5ce9c0),'onDiscard':(..._0x3fd25e)=>this['getSuggestionCallback'](_0x96f0b4,_0x3b23a3,'discard')(..._0x3fd25e)});}['registerCustomCallback'](_0x58f4b4,_0x2ff948,_0x234091,_0xe0d943){const _0x958a30=_0x58f4b4+':'+_0x2ff948+':'+_0x234091;this['_customCallbacks']['set'](_0x958a30,_0xe0d943);}['getSuggestionCallback'](_0x2ace2d,_0x37f9a6,_0x346aa6){const _0x34d378=_0x2ace2d+':'+_0x37f9a6+':'+_0x346aa6;return this['_customCallbacks']['get'](_0x34d378)||this['_defaultCallbacks']['get'](_0x2ace2d+':'+_0x346aa6);}['_registerDefaultCallbacks'](){const _0x81005=()=>!0x1,_0x47cf2f=_0xb6ad20=>{_0xb6ad20['sort']((_0x398257,_0x1ef5a9)=>_0x398257['start']['isBefore'](_0x1ef5a9['start'])?0x1:-0x1),this['_model']['change'](_0x4cbb06=>{for(const _0xb673f1 of _0xb6ad20){let _0x56ce01;_0x56ce01=_0xb673f1['end']['isAtEnd']&&_0xb673f1['end']['parent']==_0xb673f1['start']['nodeAfter']?_0x4cbb06['createSelection'](_0xb673f1['start']['nodeAfter'],'on'):_0x4cbb06['createSelection'](_0xb673f1),this['_model']['deleteContent'](_0x56ce01,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5da79b=(_0x283a39,_0x2fe39f)=>{_0x2fe39f&&this['_model']['change'](_0x20de8c=>{const {commandName:_0x544aa6,commandParams:_0x5b68f7=[]}=_0x2fe39f,_0x47cfb6=_0x283a39['map'](_0x160bf6=>(Pt(_0x160bf6)&&(_0x160bf6=this['_model']['createRange'](_0x160bf6['end'])),_0x160bf6))['filter'](_0x55f3d4=>'$graveyard'!==_0x55f3d4['root']['rootName']);if(_0x47cfb6['length']<0x1)return;const _0x2513ee=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1b5f50=>_0x531fcc['fromRange'](_0x1b5f50));_0x20de8c['setSelection'](_0x47cfb6);for(const _0x402e06 of this['_editor']['commands']['commands']())_0x402e06['refresh']();_0x5b68f7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x544aa6,..._0x5b68f7);const _0x191d78=_0x2513ee['filter'](_0x4f6572=>'$graveyard'!=_0x4f6572['root']['rootName']);_0x191d78['length']>0x0&&_0x20de8c['setSelection'](_0x191d78);for(const _0x1ba2ba of _0x2513ee)_0x1ba2ba['detach']();});},_0x139cf0=(_0x4aece1,_0x5ece75)=>0x1==_0x4aece1['length']&&0x1==_0x5ece75['length']&&_0x4aece1[0x0]['end']['isEqual'](_0x5ece75[0x0]['start']),_0x46f57e=(_0x37374b,_0x3398a0,_0x4242ba,_0x376e86)=>qt(_0x37374b,_0x3398a0,_0x4242ba,_0x376e86)?[_0x37374b,_0x3398a0]:qt(_0x3398a0,_0x37374b,_0x376e86,_0x4242ba)?[_0x3398a0,_0x37374b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x81005),this['_defaultCallbacks']['set']('insertion:discard',_0x47cf2f),this['_defaultCallbacks']['set']('insertion:join',_0x139cf0),this['_defaultCallbacks']['set']('insertion:chain',_0x46f57e),this['_defaultCallbacks']['set']('deletion:accept',_0x47cf2f),this['_defaultCallbacks']['set']('deletion:discard',_0x81005),this['_defaultCallbacks']['set']('deletion:join',_0x139cf0),this['_defaultCallbacks']['set']('deletion:chain',_0x46f57e),this['_defaultCallbacks']['set']('formatInline:accept',_0x5da79b),this['_defaultCallbacks']['set']('formatInline:discard',_0x81005),this['_defaultCallbacks']['set']('formatInline:join',_0x139cf0),this['_defaultCallbacks']['set']('formatInline:chain',_0x81005),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5da79b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x81005),this['_defaultCallbacks']['set']('formatBlock:join',_0x139cf0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x81005),this['_defaultCallbacks']['set']('attribute:accept',_0x81005),this['_defaultCallbacks']['set']('attribute:discard',(_0x32215c,_0x18cea4)=>{if(!_0x18cea4)return;const _0x21fe7c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x7f754=>{if(_0x18cea4['key']==m)for(const _0x41b3d4 of _0x32215c){const _0x5c886f=_0x41b3d4['start']['nodeAfter'],_0x127d04=_0x18cea4['oldValue'];_0x7f754['rename'](_0x5c886f,_0x127d04);}else{if(_0x21fe7c['_isBlockAttribute'](_0x18cea4['key'])){for(const _0x211f6a of _0x32215c)void 0x0!==_0x18cea4['oldValue']?_0x7f754['setAttribute'](_0x18cea4['key'],_0x18cea4['oldValue'],_0x211f6a['start']['nodeAfter']):_0x7f754['removeAttribute'](_0x18cea4['key'],_0x211f6a['start']['nodeAfter']);}else{for(const _0x274a0e of _0x32215c)_0x18cea4['oldValue']?_0x7f754['setAttribute'](_0x18cea4['key'],_0x18cea4['oldValue'],_0x274a0e):_0x7f754['removeAttribute'](_0x18cea4['key'],_0x274a0e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x139cf0);}}function Vt(_0x23445e,_0x56625a,_0x363648){for(const _0x50edee of _0x56625a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x50edee['root']==_0x50edee)return!0x1;if(!_0x363648['containsItem'](_0x50edee))return!0x1;if(_0x23445e['isObject'](_0x50edee)||_0x23445e['isLimit'](_0x50edee))return!0x0;}return!0x1;}function Pt(_0x2dbcce){return _0x2dbcce['end']['parent']==_0x2dbcce['start']['nodeAfter']&&_0x2dbcce['end']['isAtStart'];}function Gt(_0x56ff46,_0x5ca8c9,_0x22311e,_0x5b9c46){const _0x29e38d=_0x505577=>!_0x505577['item']['is']('$textProxy')&&!_0x5b9c46['isObject'](_0x505577['item']),_0x1e7167=_0x56ff46['start']['getLastMatchingPosition'](_0x29e38d),_0x41a6f8=_0x56ff46['end']['getLastMatchingPosition'](_0x29e38d,{'direction':'backward'});return(!_0x56ff46['start']['isEqual'](_0x1e7167)||!_0x56ff46['end']['isEqual'](_0x41a6f8))&&(_0x1e7167['isBefore'](_0x41a6f8)?_0x22311e['updateMarker'](_0x5ca8c9,{'range':_0x22311e['createRange'](_0x1e7167,_0x41a6f8)}):_0x22311e['removeMarker'](_0x5ca8c9),!0x0);}function Ft(_0x5e81e4){return _0x26d3d5(_0x5e81e4);}function Lt(_0x2b2f00){const _0x13cc17=_0x2b2f00['start']['nodeAfter'];return _0x13cc17&&_0x13cc17['is']('element');}function Jt(_0x23ba97,_0xab1b75){return null==_0x23ba97['end']['nodeBefore']&&_0x23ba97['end']['parent']==_0x23ba97['start']['nodeAfter']?Ht(_0x23ba97['start']['nodeAfter'],_0xab1b75):_0x23ba97;}function Ht(_0x1de9eb,_0x460200){const _0x1da98d=_0x460200['schema']['isObject'](_0x1de9eb)||_0x460200['schema']['isSelectable'](_0x1de9eb);return _0x460200['createRange'](_0x460200['createPositionAt'](_0x1de9eb,'before'),_0x1da98d?_0x460200['createPositionAfter'](_0x1de9eb):_0x460200['createPositionAt'](_0x1de9eb,'end'));}function qt(_0x351471,_0x269cbb,_0x4060f1,_0x1d295c){return!!zt(_0x351471,_0x269cbb)&&_0x4060f1['end']['isEqual'](_0x1d295c['start']);}function zt(_0x21fd7d,_0x1931be){if(!_0x21fd7d['_isDataLoaded']||!_0x1931be['_isDataLoaded'])return!0x1;const _0x1e91e3=new Set(Object['keys'](_0x21fd7d['attributes'])),_0x4e6b81=new Set(Object['keys'](_0x1931be['attributes']));if(_0x1e91e3['delete']('groupId'),_0x4e6b81['delete']('groupId'),0x0==_0x1e91e3['size']&&0x0==_0x4e6b81['size'])return!0x0;if(_0x1e91e3['size']!=_0x4e6b81['size'])return!0x1;const _0x52f096={..._0x21fd7d['attributes']},_0x553dc6={..._0x1931be['attributes']};return delete _0x52f096['groupId'],delete _0x553dc6['groupId'],JSON['stringify'](_0x52f096)==JSON['stringify'](_0x553dc6);}function Kt(_0x263753,_0x73e3f8){const _0x131bbf=Wt(_0x263753['attributes']),_0x3fdc1e=Wt(_0x73e3f8);if(!_0x263753['_isDataLoaded'])return!0x1;for(const _0x5af67a of Object['keys'](_0x3fdc1e))if(!_0x22a75d(_0x131bbf[_0x5af67a],_0x3fdc1e[_0x5af67a]))return!0x1;return!0x0;}function Wt(_0x410d4f){const _0x109e7f=Object['assign']({},_0x410d4f);return delete _0x109e7f['skipNestingCheck'],delete _0x109e7f['tablePasteChainId'],_0x109e7f;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x260a3a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x41574f,_0x30a0af,_0x38ebeb,_0x121d32){super(),this['model']=_0x30a0af,this['view']=_0x38ebeb,this['commentThreadController']=_0x121d32,this['_editor']=_0x41574f,this['_acceptCommand']=_0x41574f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x41574f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1e3aef,_0x41fcf6)=>_0x1e3aef||_0x41fcf6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2e88b9=>_0x2e88b9&&this['_editor']['model']['canEditAt'](_0x30a0af['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ce33a=>_0x4ce33a&&this['_editor']['model']['canEditAt'](_0x30a0af['getRanges']())),this['_pendingAction']=null,_0x38ebeb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x38ebeb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x38ebeb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x38ebeb,'change:isDirty',()=>{_0x38ebeb['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 _0x28b514=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x28b514);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x418a9f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5d59ea,_0x144136,_0x462e54,_0x14b2d4){super(_0x5d59ea),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x474a2a(_0x5d59ea,o(_0x5d59ea,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x144136['authoredAt']),this['bind']('authoredAt')['to'](_0x144136),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',_0x144136,'authoredAt',this,'descriptionParts',(_0x544ff1,_0x30234e,_0x25f608)=>{const _0x45a875=_0x25f608['map'](_0xedfea0=>ns(_0xedfea0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x544ff1-0x1,_0x144136['author']['name'],_0x30234e?_0x14b2d4['formatDateTime'](_0x30234e):'',new DOMParser()['parseFromString'](_0x45a875,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c8f94(),this['focusTracker']=new _0x1b07ab(),this['keystrokes']=new _0x4472fb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x19a0b4=>_0x19a0b4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x144136,this['_localUser']=_0x462e54,this['_config']=_0x14b2d4,_0x14b2d4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x357426(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1a1497}=this['_config'];this['commentsListView']=new _0x1a1497(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',_0x58862f=>_0x58862f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x21b5f4,_0x49efc8)=>_0x21b5f4||!!_0x49efc8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x15e70b}=this['_config'],_0xfd1255=new _0x15e70b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x18c91c=_0xfd1255['commentInputView'];return _0xfd1255['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x18c91c,'value',(_0x5a8303,_0x59f1ad,_0x2d303c)=>!!_0x2d303c||_0x5a8303&&!_0x59f1ad),_0x18c91c['on']('submit',(_0x136964,_0x1b1a10)=>{this['fire']('addComment',_0x1b1a10),_0x18c91c['editor']['setData']('');}),_0x18c91c['on']('cancel',()=>this['focus']()),_0x18c91c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xfd1255;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0xa0914c,_0x56ca22,_0xfa669f,_0x136623){super(_0xa0914c,_0x56ca22,_0xfa669f,_0x136623),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x58d08c=>_0x58d08c&&_0x58d08c[0x0]?_0x58d08c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x192aef,_0x2eb30e)=>{let _0x3a072a='';for(const _0x39dd37 of _0x192aef)_0x3a072a+='<p>'+ns(_0x39dd37['content'],_0x39dd37['color'])+'</p>';return _0x2eb30e?_0x3a072a:_0x2ad5e3(_0x3a072a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x136623['SuggestionView'](_0xa0914c,_0x56ca22,{'formatDateTime':_0x136623['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 _0x33d0ba=this['bindTemplate'],_0x3f46a7=[this['suggestionView']];return this['commentsListView']&&_0x3f46a7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3f46a7['push'](this['commentThreadInputView']),_0x3f46a7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x33d0ba['if']('isActive','ck-suggestion-wrapper--active'),_0x33d0ba['to']('type',_0x5a2c98=>'ck-suggestion-'+_0x5a2c98),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':_0x33d0ba['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3f46a7};}['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 fe extends _0x418a9f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x348271,_0x447081,_0x382035){super(_0x348271),this['_model']=_0x447081,this['_config']=_0x382035,this['set']('description',''),this['bind']('authoredAt')['to'](_0x447081),this['acceptButton']=this['_createButton'](o(_0x348271,'Accept\x20suggestion'),_0x523211['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x348271,'Discard\x20suggestion'),_0x523211['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5da0e1(_0x348271,_0x447081['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1c8f94([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1b07ab(),this['keystrokes']=new _0x4472fb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x62c3bd=>_0x62c3bd['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x46c9fc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x46c9fc['innerHTML']=this['description'],this['on']('change:description',(_0x18e917,_0x350877,_0x5d3e60)=>{_0x46c9fc['innerHTML']=_0x5d3e60;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x299869=this['bindTemplate'],_0x455f65=[{'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':_0x299869['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x299869['to']('authoredAt',_0x3c9723=>this['_config']['formatDateTime'](_0x3c9723))}]}]},{'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']&&_0x455f65['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':_0x455f65}]};}['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'](_0xfd5653,_0x294c82,_0x4a9381,_0xc07dbb,_0x2ea5b7){const _0x545b19=new _0x58477d(this['locale']);return _0x545b19['set']({'label':_0xfd5653,'icon':_0x294c82,'tooltip':!0x0,'tooltipPosition':_0x2ea5b7}),_0x545b19['extendTemplate']({'attributes':{'class':_0x4a9381}}),_0x545b19['on']('execute',()=>{this['fire'](_0xc07dbb,this['_model']['id']);}),_0x545b19;}['_setupKeyboardNavigation'](){const _0x141541=this['element'];this['keystrokes']['listenTo'](_0x141541);for(const _0x53b523 of this['focusables'])this['focusTracker']['add'](_0x53b523['element']),this['keystrokes']['listenTo'](_0x53b523['element']);this['keystrokes']['set']('enter',(_0x4972fd,_0x8730fe)=>{_0x141541===_0x4972fd['target']&&(this['focusCycler']['focusFirst'](),_0x8730fe());}),this['keystrokes']['set']('esc',(_0x502be5,_0x23a3a8)=>{_0x141541!==_0x502be5['target']&&(this['focus'](),_0x23a3a8());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x538eb2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2bda33,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x493603){super(_0x493603),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x57d075=this['editor']['config'];_0x57d075['define']('trackChanges.SuggestionThreadView',pe),_0x57d075['define']('trackChanges.SuggestionView',fe),_0x57d075['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x57d075['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3c95d4,_0x124b19){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x409429,_0x52dcab]of this['_handleControllerBuffer']){const _0x2735d4=this['_suggestionToController']['has'](_0x409429);_0x2735d4||_0x52dcab?_0x2735d4&&_0x52dcab&&this['_destroyController'](_0x409429):this['_initializeController'](_0x409429);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3c95d4,_0x124b19);}['init'](){const _0x431d3c=this['editor'],_0x21ddec=_0x431d3c['plugins']['get']('TrackChangesEditing'),_0xdc839b=_0x431d3c['plugins']['get']('Annotations'),_0x6ceeab=_0x431d3c['plugins']['get']('EditorAnnotations'),_0x940389=_0x431d3c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x6ceeab['addSourceCollector'](()=>{const _0x599209=[];for(const [_0x212e3e,_0x5ab90f]of Array['from'](this['_suggestionToController'])){const _0x846dfc=_0x212e3e['getAllAdjacentSuggestions'](),_0x2daadb=[];for(const _0x553732 of _0x846dfc){if(!_0x553732['isInContent'])continue;if(_0x553732['isMultiRange']){_0x2daadb['push'](..._0x553732['getRanges']());continue;}const _0x394539=_0x553732['getFirstRange']();if(_0x2daadb['length']>0x0){const _0x349be4=_0x2daadb[0x0]['getJoined'](_0x394539);if(_0x349be4){_0x2daadb[0x0]=_0x349be4;continue;}}_0x2daadb['push'](_0x394539);}_0x599209['push']([_0x5ab90f['view'],_0x2daadb]);}return _0x599209;}),this['listenTo'](_0x21ddec,'suggestionLoaded',(_0x5a03c2,_0x550738)=>{this['listenTo'](_0x550738,'change:previous',(_0x6610d1,_0x56c02f,_0x56fe19,_0x5c2102)=>{_0x550738['isInContent']&&(null==_0x56fe19?(this['_updateController'](_0x5c2102['head']),this['_handleSuggestionControllerDelayed'](_0x550738,!0x1)):(this['_updateController'](_0x56fe19['head']),null==_0x5c2102&&this['_handleSuggestionControllerDelayed'](_0x550738,!0x0)));}),null!==_0x550738['previous']?this['_updateController'](_0x550738['head']):this['_handleSuggestionControllerDelayed'](_0x550738,!0x1);}),this['listenTo'](_0x21ddec,'suggestionUnloaded',(_0x3c88e3,_0x4516aa,_0x3b55b3)=>{this['stopListening'](_0x4516aa,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4516aa),this['_suggestionToController']['has'](_0x4516aa)&&this['_destroyController'](_0x4516aa),_0x3b55b3&&this['_updateController'](_0x3b55b3['head']);}),this['listenTo'](_0x21ddec,'suggestionChanged',(_0x1f2cc6,_0x43f4bb)=>{this['_updateController'](_0x43f4bb);}),this['listenTo'](_0xdc839b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x940389,'addComment',(_0x1ab515,{threadId:_0x2327e9,isFromAdapter:_0x23aac6})=>{if(_0x23aac6||!_0x21ddec['hasSuggestion'](_0x2327e9))return;const _0x1d9411=_0x21ddec['getSuggestion'](_0x2327e9);this['_suggestionToController']['get'](_0x1d9411)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x45417d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe0c611;for(const _0x2cd553 in _0x45417d){const _0x1b9d98=_0x2cd553,_0xc00cf=_0x45417d[_0x1b9d98];if('trackChangesLicenseKeyValid'==_0xc00cf||'trackChangesLicenseKeyInvalid'==_0xc00cf||'trackChangesLicenseKeyExpired'==_0xc00cf||'trackChangesLicenseKeyDomainLimit'==_0xc00cf||'trackChangesLicenseKeyNotAllowed'==_0xc00cf||'trackChangesLicenseKeyEvaluationLimit'==_0xc00cf||'trackChangesLicenseKeyTrialLimit'==_0xc00cf||'trackChangesLicenseKeyUsageLimit'==_0xc00cf){delete _0x45417d[_0x1b9d98],_0xe0c611=_0xc00cf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe0c611&&_0x45417d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe0c611&&_0x45417d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe0c611&&_0x45417d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe0c611&&_0x45417d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe0c611&&_0x45417d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe0c611&&_0x45417d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe0c611&&_0x45417d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x434ec8=this['editor']['plugins']['get']('Annotations'),_0x31b499=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b1e87=Array['from'](_0x434ec8['activeAnnotations'],_0x56ff89=>_0x56ff89['innerView'])['filter'](_0x3ffb54=>this['_viewToController']['has'](_0x3ffb54)),_0x36d72c=[];for(const _0x39f992 of _0x1b1e87){const _0x1402e2=this['_viewToController']['get'](_0x39f992)['model']['getAllAdjacentSuggestions']();_0x36d72c['push'](..._0x1402e2['reduce']((_0x48e149,_0x5b1d8a)=>[..._0x48e149,..._0x5b1d8a['getMarkerNames']()],[]));}_0x31b499['activeMarkers']=_0x36d72c;}['_addUIComponentsToFactory'](){const _0x4c6ca9=this['editor'],_0x42a520=_0x4c6ca9['locale'],_0x5c2bb5=o(_0x42a520,'Track\x20changes'),_0x3161ca=new _0x23f569([{'type':'switchbutton','model':new _0x301a5d({'withText':!0x0,'isToggleable':!0x0,'label':_0x5c2bb5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4c6ca9['plugins']['has']('TrackChangesPreview')&&_0x3161ca['addMany']([{'type':'separator'},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x28420a of _0x3161ca)if(ke(_0x28420a)){const _0x47ccf8=_0x4c6ca9['commands']['get'](_0x28420a['model']['commandName']);_0x28420a['model']['bind']('isOn','isEnabled')['to'](_0x47ccf8,'value','isEnabled');}_0x4c6ca9['ui']['componentFactory']['add']('trackChanges',_0x3b8174=>this['_createToolbarButton'](_0x3b8174,_0x3161ca,_0x5c2bb5)),_0x4c6ca9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3f153f=>this['_createMenuBarMenu'](_0x3f153f,_0x3161ca,_0x5c2bb5));}['_createToolbarButton'](_0x1a03c1,_0x2be13b,_0x2c8122){const _0x374746=_0x9c83ce(_0x1a03c1,_0x3a1cc7),_0x20b278=this['editor']['commands']['get']('trackChanges');_0x374746['buttonView']['set']({'tooltip':_0x2c8122,'label':_0x2c8122,'icon':we}),_0x374746['buttonView']['bind']('isOn')['to'](_0x20b278,'value'),_0x374746['buttonView']['on']('execute',()=>{_0x20b278['execute'](),this['editor']['editing']['view']['focus']();}),_0x4fee6a(_0x374746,_0x2be13b,{'role':'menu'});const _0x56f2a4=[];for(const _0x3cbbe1 of _0x2be13b)ke(_0x3cbbe1)&&_0x56f2a4['push'](this['editor']['commands']['get'](_0x3cbbe1['model']['commandName']));const _0x3e181a=_0x374746['buttonView'];return _0x3e181a['actionView']['unbind']('isEnabled'),_0x3e181a['arrowView']['unbind']('isEnabled'),_0x3e181a['actionView']['bind']('isEnabled')['to'](_0x20b278,'isEnabled'),_0x3e181a['arrowView']['bind']('isEnabled')['toMany'](_0x56f2a4,'isEnabled',(..._0x3a107f)=>_0x3a107f['some'](_0xa5765f=>_0xa5765f)),_0x374746['on']('execute',_0x2720d6=>{this['editor']['execute'](_0x2720d6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x374746;}['_createMenuBarMenu'](_0x391d1d,_0xd26ce9,_0x2edaa3){const _0x265e54=new _0x48c534(_0x391d1d),_0x390181=this['editor']['commands']['get']('trackChanges');_0x265e54['buttonView']['set']({'label':_0x2edaa3,'icon':we});const _0x261df8=new _0x2ed210(_0x391d1d);for(const _0x322a3e of _0xd26ce9){if('separator'==_0x322a3e['type']){_0x261df8['items']['add'](new _0x2d4777(_0x391d1d));continue;}const _0x50b1d3=new _0x861997(_0x391d1d,_0x265e54),_0xb1ee75=new _0x1fd1fb(_0x391d1d),_0x1beca0=_0x322a3e['model'];_0xb1ee75['bind'](...Object['keys'](_0x1beca0))['to'](_0x1beca0),_0xb1ee75['delegate']('execute')['to'](_0x265e54),_0xb1ee75['on']('execute',()=>{this['editor']['execute'](_0x1beca0['commandName']),this['editor']['editing']['view']['focus']();}),_0x50b1d3['children']['add'](_0xb1ee75),_0x261df8['items']['add'](_0x50b1d3);}return _0x265e54['bind']('isEnabled')['to'](_0x390181,'isEnabled'),_0x265e54['panelView']['children']['add'](_0x261df8),_0x265e54;}['_initializeController'](_0x309921){const _0xd692ad=this['editor'],_0x225feb=_0xd692ad['config'],_0x34b5fe=_0xd692ad['plugins']['get']('Annotations'),_0x4e8aa0=_0xd692ad['plugins']['get']('CommentsRepository'),_0x5f1609=_0xd692ad['plugins']['get']('EditorAnnotations'),_0x8eebba=_0xd692ad['plugins']['get'](_0x2bda33)['me'],_0x41d6ac=_0x225feb['get']('trackChanges')['SuggestionThreadView'],_0x287f7c=_0x225feb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x352088,CommentThreadInputView:_0x1c6345}=_0xd692ad['plugins']['get']('CommentsUI');let _0x209f08,_0x47e9dd,_0x557522;this['_annotationViews']['has'](_0x309921['id'])?(_0x47e9dd=this['_annotationViews']['get'](_0x309921['id']),_0x209f08=_0x47e9dd['mainView']):(_0x209f08=new _0x41d6ac(_0xd692ad['locale'],_0x309921,_0x8eebba,{'disableComments':this['_disableComments'],'editorConfig':{..._0x225feb['get']('comments.editorConfig'),'licenseKey':_0x225feb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x225feb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x225feb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x225feb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c943b(_0x225feb['get']('locale')),'CommentView':_0x225feb['get']('comments')['CommentView'],'CommentsListView':_0x352088,'CommentThreadInputView':_0x1c6345,'SuggestionView':_0x287f7c}),_0x209f08['suggestionView']['acceptButton']['on']('execute',()=>{_0xd692ad['editing']['view']['focus']();}),_0x209f08['suggestionView']['discardButton']['on']('execute',()=>{_0xd692ad['editing']['view']['focus']();}),_0x47e9dd=_0x34b5fe['createAnnotationView'](this['editor']['locale'],_0x209f08),_0x47e9dd['bind']('isDirty')['to'](_0x209f08,'isDirty'),_0x47e9dd['bind']('length')['to'](_0x209f08),_0x47e9dd['bind']('type')['to'](_0x209f08,'type',_0x3cf0dc=>'suggestion-'+_0x3cf0dc),_0x209f08['on']('escape',()=>{_0x557522['fire']('escape');}),this['_annotationViews']['set'](_0x309921['id'],_0x47e9dd));const _0x35816d=_0x4e8aa0['createCommentThreadController'](_0x309921['commentThread'],_0x209f08),_0x4c5f35=new Ce(_0xd692ad,_0x309921,_0x209f08,_0x35816d),_0x246abe=_0x309921['getAllAdjacentSuggestions']()['filter'](_0x2596a7=>_0x2596a7['isInContent']);_0x209f08['descriptionParts']=_0xd692ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x246abe),this['_suggestionToController']['set'](_0x309921,_0x4c5f35),this['_viewToController']['set'](_0x209f08,_0x4c5f35),_0x557522=_0x34b5fe['createAnnotation']({'view':_0x47e9dd,'target':()=>{const _0x389f19=[],_0x95e69d=_0x309921['getAllAdjacentSuggestions']()['filter'](_0xc35256=>_0xc35256['isInContent']);for(const _0x5db675 of _0x95e69d)_0x389f19['push'](..._0x5db675['getMarkers']());return _0x5a7558(_0xd692ad['editing'],_0x389f19);},'type':()=>'suggestion-'+_0x4c5f35['view']['type']}),_0x4e8aa0['_bindAnnotationToEditors'](_0x209f08,_0x557522),_0x34b5fe['add'](_0x557522),_0x5f1609['registerAnnotation'](_0x557522);}['_destroyController'](_0x325dab){const _0x350149=this['editor']['plugins']['get']('CommentsRepository'),_0x230e35=this['editor']['plugins']['get']('Annotations'),_0x7bc94f=this['_suggestionToController']['get'](_0x325dab),_0x229776=_0x7bc94f['view'],_0x3e1c52=_0x230e35['getByInnerView'](_0x229776);_0x350149['_unbindEditors'](_0x229776),_0x3e1c52&&_0x230e35['remove'](_0x3e1c52),this['_suggestionToController']['delete'](_0x325dab),this['_viewToController']['delete'](_0x229776),_0x7bc94f['destroy']();}['_updateController'](_0x33f4af){if(!_0x33f4af['isInContent']||!this['_suggestionToController']['has'](_0x33f4af))return;const _0x32af81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa049=this['_suggestionToController']['get'](_0x33f4af),_0xa27448=_0x33f4af['getAllAdjacentSuggestions']();_0x1aa049['view']['descriptionParts']=_0x32af81['descriptionFactory']['getDescriptions'](_0xa27448);}['destroy'](){for(const _0x185ca9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x185ca9);for(const _0x4a6832 of this['_annotationViews']['values']())_0x4a6832['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x535fcc){return'model'in _0x535fcc;}class k extends _0x538eb2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x383171){this['editor']['plugins']['get'](p)['adapter']=_0x383171;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2b8b78){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2b8b78);}['getSuggestions']({skipNotAttached:_0x4e0d67=!0x1,toJSON:_0x5e3b34=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4e0d67,'toJSON':_0x5e3b34});}['getSuggestion'](_0x3033a2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3033a2);}}const w=['Pagination'];class T extends _0x538eb2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x259840=this['editor'];if(_0x259840['config']['define']('trackChangesData.editorCreator',_0x36f2dc=>{const _0x551fb9=_0x259840['model']['document']['getRootNames']()['reduce']((_0x2614c5,_0x267f97)=>(_0x2614c5[_0x267f97]='',_0x2614c5),{});return _0x259840['constructor']['create'](_0x551fb9,_0x36f2dc);}),'function'!=typeof _0x259840['config']['get']('trackChangesData')['editorCreator'])throw new _0x40d556('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x520507){return N(this['editor'],!0x0,_0x520507);}['getDataWithDiscardedSuggestions'](_0x45352a){return N(this['editor'],!0x1,_0x45352a);}}class D extends _0x538eb2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd57a08){function _0x20bc1e(_0x256210){return _0x256210['map'](_0x334d30=>String['fromCharCode'](_0x334d30))['join']('');}super(_0xd57a08),this['result']='end',_0xd57a08[_0x20bc1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20bc1e([0x76,0x69,0x65,0x77])][_0x20bc1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20bc1e([0x61,0x75,0x74,0x6f]),_0xd57a08[_0x20bc1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20bc1e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20bc1e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20bc1e([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 Fe(_0x2685a3){return void 0x0!==_0x2685a3['getRootsAttributes'];}async function N(_0x1e1110,_0x2678f4,_0x26c1ff){const _0x102543=_0x62d4d(_0x1e1110,w);_0x102543['plugins']['push'](p,D),_0x102543['rootsAttributes']=Fe(_0x1e1110)?_0x1e1110['getRootsAttributes']():void 0x0;const _0x347e08=document['createDocumentFragment'](),_0x4aeb86=_0x1e1110['config']['get']('trackChangesData')['editorCreator'],_0x557738=await _0x4aeb86(_0x102543,()=>function(_0x40559f){const _0x332808=document['createElement']('div');return _0x40559f['appendChild'](_0x332808),_0x332808;}(_0x347e08));!function(_0x23ea22,_0x493a60){const _0x31ac90=_0x23ea22['model']['document']['getRootNames']()['reduce']((_0x39a1cd,_0x5a8edd)=>(_0x39a1cd[_0x5a8edd]=_0x23ea22['data']['get']({'rootName':_0x5a8edd}),_0x39a1cd),{}),_0x3d3288=_0x23ea22['plugins']['get']('Users')['users']['map'](_0x10fadf=>({'id':_0x10fadf['id'],'name':_0x10fadf['name']})),_0x23de37=_0x23ea22['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47164b=_0x23ea22['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e1c4c=_0x493a60['plugins']['get']('Users'),_0x2e504f=_0x493a60['plugins']['get']('TrackChangesEditing'),_0x547d4e=_0x493a60['plugins']['get']('CommentsRepository');for(const _0x1a6673 of _0x547d4e['getCommentThreads']())_0x1a6673['remove']();for(const _0x5ab731 of _0x3d3288)_0x3e1c4c['getUser'](_0x5ab731['id'])||_0x3e1c4c['addUser'](_0x5ab731);_0x3e1c4c['me']||_0x3e1c4c['useAnonymousUser']();for(const _0x2a878c of _0x47164b)_0x547d4e['addCommentThread'](_0x2a878c);for(const _0x2d820b of _0x23de37)_0x2e504f['addSuggestionData'](_0x2d820b);_0x493a60['data']['set'](_0x31ac90);}(_0x1e1110,_0x557738),_0x557738['execute'](_0x2678f4?'acceptAllSuggestions':'discardAllSuggestions');const _0x193669=Fe(_0x557738)?_0x557738['getFullData'](_0x26c1ff):_0x557738['data']['get'](_0x26c1ff);return await _0x557738['destroy'](),_0x193669;}class Me extends _0x418a9f{['options'];constructor(_0x1af039,_0x61b8f7){super(_0x1af039),this['options']=_0x61b8f7,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'](_0x871b43,_0x4842c9){if(!this['element'])return;const _0x4cb78e=[];for(const [_0x1aba5c,_0x3401a3]of _0x871b43){const _0x12796b=document['createElement']('div');_0x12796b['setAttribute']('data-ck-root-name',_0x1aba5c),_0x12796b['className']=_0x3401a3['classes']+'\x20ck-track-changes-preview__root-container',_0x12796b['innerHTML']=_0x3401a3['content'],_0x4cb78e['push'](_0x12796b);}_0x4842c9(this['element'],_0x4cb78e),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x5612fc){super(_0x5612fc),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b6324=this['editor'],_0x9785f4=_0x2b6324['locale'],_0x528b3b=_0x2b6324['plugins']['get']('Dialog');let _0x586970;const _0x3858f9=function(_0xecb089){const _0x4b9cee={};if('editables'in _0xecb089['ui']['view']){for(const [_0x547e96,_0x528e3a]of Object['entries'](_0xecb089['ui']['view']['editables']))_0x4b9cee[_0x547e96]=_0x528e3a['element'];}else _0x4b9cee[_0xecb089['model']['document']['getRootNames']()[0x0]]=_0xecb089['ui']['view']['editable']['element'];return _0x4b9cee;}(_0x2b6324),_0x3fe572=function(_0x5d085c){let _0x47d23c=0x0;for(const _0x1dea2a of Object['values'](_0x5d085c))_0x47d23c=Math['max'](_0x47d23c,_0x1dea2a['getBoundingClientRect']()['width']);let _0x14c20f=0x0;for(const _0x1c6674 of Object['values'](_0x5d085c))_0x14c20f+=_0x1c6674['getBoundingClientRect']()['height'];const _0x1b1bfb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x360650=Math['min'](_0x14c20f,_0x1b1bfb);return{'width':_0x47d23c,'height':_0x360650};}(_0x3858f9);_0x528b3b['show']({'id':'finalContentPreview','title':o(_0x9785f4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x9785f4,{'dialogRects':_0x3fe572}),'onHide':()=>{_0x586970['detachFromDom']();},'onShow':()=>{_0x2b6324['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3ba08e=>{const _0x5973bf=this['_standarizeRootsData'](_0x3ba08e,_0x2b6324,_0x3858f9);_0x528b3b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5973bf,_0x2b6324['config']['get']('trackChanges.preview.renderFunction'));}),_0x586970=new _0x52f5f3(_0x9785f4,[_0x528b3b['view']]),_0x586970['attachToDom'](),_0x586970['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2b6324['once']('destroy',()=>{_0x586970['detachFromDom']();});const _0x3158a2=_0x528b3b['view']['headerView']['class'];_0x528b3b['view']['headerView']['class']=_0x3158a2?_0x3158a2+'\x20ck-reset_all':'ck-reset_all',_0x528b3b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x528b3b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x33fb7e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2ce885=_0x33fb7e['previewMode'],_0x490c93={};if('$labels'===_0x2ce885){for(const _0x58b6ff of _0x33fb7e['getMergeFieldsIds']())_0x490c93[_0x58b6ff]=_0x33fb7e['getLabel'](_0x58b6ff)||_0x58b6ff;}else{const _0x166316='$defaultValues'===_0x2ce885?_0x33fb7e['getDefaultValues']():_0x33fb7e['getDataSetValues'](_0x2ce885,!0x0);for(const _0x37229f of Object['entries'](_0x166316)){const [_0x35c84e,_0x10ab56]=_0x37229f;_0x490c93[_0x35c84e]=null!==_0x10ab56?_0x10ab56:_0x33fb7e['getLabel'](_0x35c84e)||_0x35c84e;}}return{'mergeFieldsData':_0x490c93};}['_standarizeRootsData'](_0x46d1e9,_0x28b1ac,_0x52bad2){let _0x4d0b0f;if('string'==typeof _0x46d1e9){const _0x18caac=_0x28b1ac['model']['document']['getRootNames']()[0x0];_0x4d0b0f={[_0x18caac]:_0x46d1e9};}else _0x4d0b0f=_0x46d1e9;const _0x347e07=this['_fixMediaEmbeds'](_0x4d0b0f,_0x28b1ac),_0x5718e9=function(_0x1f823a,_0x589e5f){for(const [_0x16bc37,_0x3a6bc3]of _0x1f823a)_0x3a6bc3['classes']=_0x589e5f[_0x16bc37]['classList']['value']['replace']('ck-focused','');return _0x1f823a;}(this['_sortRoots'](_0x28b1ac)['reduce']((_0x4c9045,_0x5c0799)=>(_0x4c9045['push']([_0x5c0799,{'content':_0x347e07[_0x5c0799],'classes':''}]),_0x4c9045),[]),_0x52bad2);return _0x5718e9;}['_fixMediaEmbeds'](_0x3e9df6,_0x191e1b){if(!_0x191e1b['plugins']['has']('MediaEmbedEditing'))return _0x3e9df6;const _0x3f107a=_0x191e1b['plugins']['get']('MediaEmbedEditing');for(const [_0x55d793,_0x7d6550]of Object['entries'](_0x3e9df6)){const _0x42e510=document['createElement']('div');_0x42e510['innerHTML']=_0x7d6550,(_0x42e510['querySelectorAll']('figure.media')['forEach'](_0x15804a=>{const _0x256011=_0x15804a['querySelector']('oembed');if(_0x256011){const _0x5c3cf3=_0x256011['getAttribute']('url');if(_0x5c3cf3){const _0x1c0cdb=_0x3f107a['registry']['getMediaViewElement'](new _0x1db6be(_0x191e1b['editing']['view']['document']),_0x5c3cf3,{'elementName':'','renderForEditingView':!0x0}),_0x20ef48=document['createElement']('div');_0x20ef48['classList']['add']('ck-media__wrapper'),_0x1c0cdb['render'](_0x20ef48,_0x191e1b['editing']['view']['domConverter']),_0x256011['replaceWith'](_0x20ef48);}}}),_0x3e9df6[_0x55d793]=_0x42e510['innerHTML']);}return _0x3e9df6;}['_sortRoots'](_0x3cbbf0){if(!function(_0x3d653a){return void 0x0!==_0x3d653a['getRootsAttributes'];}(_0x3cbbf0))return _0x3cbbf0['model']['document']['getRootNames']();const _0x49fdf8=[],_0x586ea9=new Map();for(const _0x5c6840 of _0x3cbbf0['model']['document']['getRootNames']()){const _0x500e7f=_0x3cbbf0['editing']['view']['getDomRoot'](_0x5c6840)['getClientRects']()['item'](0x0);_0x49fdf8['push'](_0x5c6840),_0x586ea9['set'](_0x5c6840,_0x500e7f);}return _0x49fdf8['sort']((_0x87171a,_0x7f588d)=>{const _0xdde251=_0x586ea9['get'](_0x87171a),_0x90d422=_0x586ea9['get'](_0x7f588d);return _0xdde251['y']-_0x90d422['y']||_0xdde251['x']-_0x90d422['x'];}),_0x49fdf8;}}class te extends _0x538eb2{static get['requires'](){return[T,_0xeabc38];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x447e1a){super(_0x447e1a),_0x447e1a['commands']['add']('previewFinalContent',new re(this['editor'])),_0x447e1a['config']['define']('trackChanges.preview.renderFunction',(_0x184cbc,_0xe9aaa9)=>{for(const _0x1e62bc of _0xe9aaa9)_0x184cbc['appendChild'](_0x1e62bc);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Qt,Plugin as _0x371cc0,PendingActions as _0x280fa3,icons as _0x1b4e5d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4b8c9f,ObservableMixin as _0xeddb2d,uid as _0x1ecb7a,insertToPriorityArray as _0x41d972,priorities as _0x31c93b,logWarning as _0x2be3bc,getEnvKeystrokeText as _0xdd4d5d,FocusTracker as _0x432ba4,KeystrokeHandler as _0x2efc88,Collection as _0x21cc1a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3c3346,View as _0x3e2fdb,ViewCollection as _0x5c681e,FocusCycler as ts,ViewModel as _0xd6ebae,createDropdown as _0x496487,SplitButtonView as _0x5a3db8,addListToDropdown as _0x51fc2b,MenuBarMenuView as _0x1aade1,MenuBarMenuListView as _0x16dc50,ListSeparatorView as _0x77bb07,MenuBarMenuListItemView as _0x2bc450,MenuBarMenuListItemButtonView as _0x385bae,BodyCollection as _0x1d92a7,Dialog as _0x52827e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x413917,hashObject as _0x2b060e,surroundingMarkersDetector as _0x19891a,FOCUS_ANNOTATION_KEYSTROKE as _0x586e6b,AriaDescriptionView as _0x593dca,setupThreadKeyboardNavigation as _0x1b3cac,trimHtml as _0x16abf5,UserView as _0x44cd4a,LateFocusButtonView as _0x4fbb6f,getDateTimeFormatter as _0x5a324b,getAllMarkersDomElementsSorted as _0x11538f,sanitizeEditorConfig as _0xb4bfd6}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x266b98,LiveRange as _0x4179c1,LivePosition as _0x46f7d2,DowncastWriter as _0x3ff5c4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4a1d37,toWidget as _0x261f58}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x403998,set as _0xa2cba8,isEqual as _0x3dba2e,unset as _0x436f24,omit as Et}from'lodash-es';import{Delete as _0x4aab3c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3b7c67,ShiftEnter as _0x315651}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x1decfc,_0x5c53e3){super(_0x1decfc),this['_enabledCommands']=_0x5c53e3,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 _0x4f1e49 of this['editor']['commands']['commands']())_0x4f1e49['affectsData']&&!this['_enabledCommands']['has'](_0x4f1e49)&&_0x4f1e49['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x537053 of this['editor']['commands']['commands']())_0x537053['affectsData']&&!this['_enabledCommands']['has'](_0x537053)&&_0x537053['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x640bba,_0x2ecb48){super(_0x640bba),this['_suggestions']=_0x2ecb48,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x59f10b){const _0xa6356a=this['_suggestions']['get'](_0x59f10b);if(!_0xa6356a)throw new _0x4b8c9f('track-changes-accept-suggestion-not-found',this);const _0x516c74=_0xa6356a['getRanges']();this['editor']['model']['canEditAt'](_0x516c74)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa6356a);}}class R extends Qt{['_suggestions'];constructor(_0x1ea297,_0x191a71){super(_0x1ea297),this['_suggestions']=_0x191a71,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2d24a5){const _0x1d5429=this['_suggestions']['get'](_0x2d24a5);if(!_0x1d5429)throw new _0x4b8c9f('track-changes-discard-suggestion-not-found',this);const _0x7b8a3d=_0x1d5429['getRanges']();this['editor']['model']['canEditAt'](_0x7b8a3d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1d5429);}}function ns(_0x223008,_0x100c84){let _0x413e31='';return _0x413e31+=_0x223008['split']('*')['map']((_0x402836,_0x54a24e)=>_0x54a24e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x402836)+'</span>':nn(_0x402836))['join'](''),_0x100c84&&(_0x413e31+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x100c84['value']+'\x22\x20title=\x22'+_0x100c84['title']+'\x22></span>'),_0x413e31;}function nn(_0x21418e){const _0x2e3fd0=document['createElement']('span');return _0x2e3fd0['innerText']=_0x21418e,_0x2e3fd0['innerHTML'];}function Xt(_0x1acc9c){return _0x1acc9c['sort']((_0x3391d1,_0x40984a)=>'deletion'==_0x3391d1['type']&&'deletion'!=_0x40984a['type']?-0x1:'deletion'!=_0x3391d1['type']&&'deletion'==_0x40984a['type']?0x1:0x0);}function to(_0x45b7f2,_0x4a86dc){let _0x4ae42d,_0x43bf07=0x0;const _0xa15188=[],_0x4e46a6=_0x4a86dc['schema'];for(;_0x43bf07<_0x45b7f2['length'];){const _0x33b55b=_0x45b7f2[_0x43bf07],_0x1236c4=_0x45b7f2[_0x43bf07+0x1];_0x4ae42d||(_0x4ae42d=_0x4a86dc['createPositionBefore'](_0x33b55b)),on(_0x4a86dc,_0x33b55b,_0x1236c4)||(_0xa15188['push'](_0x4a86dc['createRange'](_0x4ae42d,_0x4e46a6['isObject'](_0x33b55b)?_0x4a86dc['createPositionAfter'](_0x33b55b):_0x4a86dc['createPositionAt'](_0x33b55b,'end'))),_0x4ae42d=null),_0x43bf07++;}return _0xa15188;}function on(_0x1b6288,_0x6a25fc,_0x3b5da4){if(!_0x3b5da4)return!0x1;const _0x16df08=_0x1b6288['createPositionAfter'](_0x6a25fc),_0x28d42f=_0x1b6288['createPositionBefore'](_0x3b5da4);return _0x16df08['isTouching'](_0x28d42f);}function Yt(_0x50d562,_0x27dcff,_0x3bc23f){for(;_0x3bc23f['length'];){const _0x1e8503=_0x3bc23f['splice'](0x0,0x64);_0x50d562['change'](()=>{for(const _0x261f74 of _0x1e8503)_0x261f74['isInContent']&&_0x27dcff['execute'](_0x261f74['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x4c2af4,_0x34e081,_0x233e01){super(_0x4c2af4),this['_command']=_0x34e081,this['_suggestions']=_0x233e01,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2df66=Array['from'](this['_suggestions']['values']())['some'](_0x3d00d7=>_0x3d00d7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2df66;}['execute'](){const _0x29e380=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x5d1370 of _0x29e380){const _0x22cb64=_0x5d1370['getRanges']();if(!this['editor']['model']['canEditAt'](_0x22cb64))return;}Yt(this['editor']['model'],this['_command'],_0x29e380);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3e78a9,_0x168e0d,_0x20373c){super(_0x3e78a9),this['_command']=_0x168e0d,this['_suggestions']=_0x20373c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5c8783=this['editor']['model']['document']['selection'],_0x2d7987=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3eccf0,_0x5ac589){const _0x30e7a3=Array['from'](_0x3eccf0['getRanges']()),_0x275b5b=new Set();for(const _0xb16b7b of _0x5ac589)if(_0xb16b7b['isInContent']){for(const _0x52e7ea of _0x30e7a3)for(const _0x3ddaf0 of _0xb16b7b['getRanges']())(_0x52e7ea['isIntersecting'](_0x3ddaf0)||_0x3eccf0['isCollapsed']&&!_0xb16b7b['isMultiRange']&&_0xb16b7b['next']&&_0x3ddaf0['end']['isTouching'](_0x52e7ea['start']))&&_0x275b5b['add'](_0xb16b7b);}return _0x275b5b;}(_0x5c8783,_0x2d7987),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5f3b9c=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x276819 of _0x5f3b9c){const _0x40975d=_0x276819['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40975d))return;}Yt(this['editor']['model'],this['_command'],_0x5f3b9c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xeddb2d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x538abb,_0x553aee){super(),this['id']=_0x553aee['id'],this['type']=_0x553aee['type'],this['subType']=_0x553aee['subType']||null,this['author']=_0x553aee['author'],this['creator']=_0x553aee['creator']||_0x553aee['author'],this['isExternal']=Boolean(_0x553aee['attributes']&&_0x553aee['attributes']['@external']),this['data']=null,this['_model']=_0x538abb,this['_onAccept']=_0x553aee['onAccept'],this['_onDiscard']=_0x553aee['onDiscard'],this['_onAttributesChange']=_0x553aee['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x553aee['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 _0x22f992=this;for(;_0x22f992['previous'];)_0x22f992=_0x22f992['previous'];return _0x22f992;}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'](_0x106b70){this['_markerNames']['add'](_0x106b70);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c4983=>this['_model']['markers']['get'](_0x1c4983))['filter'](_0x1fa655=>_0x1fa655);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x31e37d=>{for(const _0x2088e3 of this['getMarkers']())_0x31e37d['removeMarker'](_0x2088e3);}),this['_markerNames']['clear']();}['removeMarker'](_0x4dbd19){this['_model']['change'](_0x2fcdb3=>{_0x2fcdb3['removeMarker'](_0x4dbd19);}),this['_markerNames']['delete'](_0x4dbd19);}['addRange'](_0x467221){const _0x4b3523='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4b3523),this['_model']['change'](_0x423ff9=>{_0x423ff9['addMarker'](_0x4b3523,{'range':_0x467221,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x448391){for(const _0x1edda1 of this['getRanges']())if(_0x1edda1['isIntersecting'](_0x448391))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x487b67=>_0x487b67['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1c0b99,_0x3fa77d)=>[..._0x1c0b99,..._0x3fa77d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4d8627=this['getRanges']();if(0x1!=_0x4d8627['length'])return null;const _0x28f1a3=_0x4d8627[0x0],_0x55f1c0=_0x28f1a3['start']['nodeAfter'],_0x4ee119=_0x28f1a3['end']['nodeBefore'];return _0x55f1c0 instanceof _0x266b98?_0x55f1c0!=_0x4ee119?null:_0x55f1c0: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 _0x201914=[];let _0x446d6b=this['head'];for(;_0x446d6b;)_0x201914['push'](_0x446d6b),_0x446d6b=_0x446d6b['next'];return _0x201914;}['setAttribute'](_0x360993,_0x258e42){const _0x22cb7b=_0x403998(this['attributes']);_0xa2cba8(_0x22cb7b,_0x360993,_0x258e42),_0x3dba2e(_0x22cb7b,this['attributes'])||(this['attributes']=_0x22cb7b,this['_onAttributesChange'](_0x22cb7b));}['removeAttribute'](_0x2a66e5){const _0x24c57c=_0x403998(this['attributes']);_0x436f24(_0x24c57c,_0x2a66e5),_0x3dba2e(_0x24c57c,this['attributes'])||(this['attributes']=_0x24c57c,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 _0x1ecb7a()['substr'](0x1,0x5);}}function o(_0x27df76,_0x4e80c4,_0x1ad852){const _0x11be88=_0x27df76['t'],t=_0x27df76['t'];switch(_0x4e80c4){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',_0x1ad852);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1ad852);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1ad852);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1ad852);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1ad852);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',_0x1ad852);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1ad852);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',_0x1ad852);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1ad852);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1ad852);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1ad852);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1ad852);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1ad852);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1ad852);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1ad852);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1ad852);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1ad852);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1ad852);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1ad852);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1ad852);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1ad852);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1ad852);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1ad852);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1ad852);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'},_0x1ad852);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1ad852);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1ad852);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1ad852);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1ad852);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1ad852);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'},_0x1ad852);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1ad852);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1ad852);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1ad852);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1ad852);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'},_0x1ad852);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ad852);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'},_0x1ad852);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1ad852);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1ad852);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'},_0x1ad852);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1ad852);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'},_0x1ad852);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1ad852);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1ad852);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'},_0x1ad852);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1ad852);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 _0x11be88({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1ad852);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x11be88({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1ad852);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1ad852);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'},_0x1ad852);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'},_0x1ad852);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'},_0x1ad852);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4e80c4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1f98fd,_0x2567e7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1f98fd,this['_locale']=_0x2567e7;}['getDescriptions'](_0x2e4e71){const _0x1737d0=[],_0x499d2b=new Set(),_0x252c53=new Set();for(let _0x40c7c2=0x0;_0x40c7c2<_0x2e4e71['length'];_0x40c7c2++){const _0x2798ed=_0x2e4e71[_0x40c7c2];if(!_0x2798ed['isInContent'])continue;const _0x362a9c=this['_handleCustomCallbackDescription'](_0x2798ed);if(_0x362a9c){if(null!=_0x2798ed['subType']){if(_0x499d2b['has'](_0x2798ed['subType']))continue;_0x499d2b['add'](_0x2798ed['subType']);}_0x1737d0['push'](_0x362a9c);}else{if('attribute'!=_0x2798ed['type'])'insertion'!=_0x2798ed['type']&&'deletion'!=_0x2798ed['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1737d0,_0x2798ed,_0x2e4e71[_0x40c7c2+0x1]);else{const _0x2fe9a0=_0x2798ed['data']['key'];if(_0x252c53['has'](_0x2fe9a0))continue;_0x252c53['add'](_0x2798ed['data']['key']),_0x2fe9a0==m?this['_handleRenameSuggestionDescription'](_0x1737d0,_0x2798ed):this['_handleAttributeSuggestionDescription'](_0x1737d0,_0x2798ed);}}}return this['_resolveDescriptionItems'](_0x1737d0);}['registerDescriptionCallback'](_0x8e4384){this['_customCallbacks']['push'](_0x8e4384);}['registerElementLabel'](_0x3481fa,_0x26aa84,_0x260d98=_0x31c93b['normal']){'function'==typeof _0x3481fa?_0x41d972(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3481fa,'label':_0x26aa84,'priority':_0x260d98}):this['_itemLabels']['set'](_0x3481fa,_0x26aa84);}['registerAttributeLabel'](_0x3ee06f,_0x4bde04){this['_attributeLabels']['set'](_0x3ee06f,_0x4bde04);}['getItemLabel'](_0x58f89f,_0x3431bc=0x1){let _0xc559fb;for(const _0x4b87f8 of this['_itemLabelsCallbacks'])if(_0x4b87f8['matchingCallback'](_0x58f89f)){_0xc559fb=_0x4b87f8['label'];break;}return _0xc559fb||(_0xc559fb=this['_itemLabels']['get'](_0x58f89f['name'])),_0xc559fb?_0xc559fb(_0x3431bc):0x1!==_0x3431bc?_0x3431bc+'\x20'+_0x58f89f['name']+'s':''+_0x58f89f['name'];}['_addDescriptionItems'](_0x570397,_0xab84de){const _0x3c7e08=_0xab84de['getFirstRange']()['getWalker'](),_0x55e092='insertion'==_0xab84de['type']?'add':'remove';for(const _0x278938 of _0x3c7e08){const _0x3c4ba3=_0x278938['item'],_0x49c5f6=_0x570397[_0x570397['length']-0x1];if(_0x3c4ba3['is']('$textProxy'))_0x49c5f6&&_0x49c5f6['type']['indexOf']('Container')>-0x1&&_0x570397['pop'](),_0x49c5f6&&'text'==_0x49c5f6['type']?_0x49c5f6[_0x55e092]+=_0x3c4ba3['data']:_0x570397['push']({'type':'text','add':'add'==_0x55e092?_0x3c4ba3['data']:'','remove':'remove'==_0x55e092?_0x3c4ba3['data']:''});else{if(this['_schema']['isObject'](_0x3c4ba3)){const _0x590910=_0x3c4ba3;if(_0x49c5f6&&_0x49c5f6['type']['indexOf']('Container')>-0x1&&_0x570397['pop'](),'elementEnd'==_0x278938['type'])continue;_0x49c5f6&&_0x49c5f6['type']==_0x55e092+'Object'&&_0x49c5f6['element']['name']==_0x590910['name']?_0x49c5f6['quantity']++:_0x570397['push']({'type':_0x55e092+'Object','element':_0x590910,'quantity':0x1}),_0x3c7e08['skip'](_0x483fba=>!('elementEnd'==_0x483fba['type']&&_0x483fba['item']==_0x3c4ba3));}else{if(this['_schema']['checkChild'](_0x3c4ba3,'$text')||_0x3c4ba3['is']('element','softBreak')){const _0x200acd=_0x3c4ba3;if('add'==_0x55e092&&'elementStart'==_0x278938['type']||'remove'==_0x55e092&&'elementEnd'==_0x278938['type'])continue;if(_0x49c5f6&&-0x1==_0x49c5f6['type']['indexOf']('Container')){'text'==_0x49c5f6['type']&&(_0x49c5f6[_0x55e092]+='\x0a');continue;}let _0x2ae131;if(_0x2ae131='add'==_0x55e092?_0x200acd['nextSibling']&&!this['_schema']['isObject'](_0x200acd['nextSibling'])?_0x200acd['nextSibling']:null:_0x200acd['previousSibling']&&!this['_schema']['isObject'](_0x200acd['previousSibling'])?_0x200acd['previousSibling']:null,_0x200acd['isEmpty']||_0x2ae131&&_0x2ae131['isEmpty']){const _0x26070d=_0x2ae131&&_0x2ae131['isEmpty']?_0x2ae131:_0x200acd;_0x49c5f6&&_0x49c5f6['type']==_0x55e092+'EmptyContainer'&&_0x49c5f6['element']['name']==_0x26070d['name']?_0x49c5f6['quantity']++:_0x570397['push']({'type':_0x55e092+'EmptyContainer','element':_0x26070d,'quantity':0x1});}else _0x570397['push']({'type':_0x55e092+'Container','element':_0x200acd});}}}}}['_resolveDescriptionItems'](_0x212abd){const _0x3209aa=this['_locale'],_0x5cb4eb=[],_0x1ea1a4=[],_0x11ddb3=[];for(const _0x1c5729 of _0x212abd)switch(_0x1c5729['type']){case'text':if(_0x1c5729['add']=_0x1c5729['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1c5729['remove']=_0x1c5729['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1c5729['add']&&''!=_0x1c5729['remove']){_0x5cb4eb['push']({'type':'replace','content':o(_0x3209aa,'REPLACE_TEXT',['\x22'+_0x1c5729['remove']+'\x22','\x22'+_0x1c5729['add']+'\x22'])});continue;}if(null!=_0x1c5729['add']['match'](/^ +$/)){_0x5cb4eb['push']({'type':'insertion','content':o(_0x3209aa,'*Insert:*\x20%0',o(_0x3209aa,'ELEMENT_SPACE',_0x1c5729['add']['length']))});continue;}if(null!=_0x1c5729['remove']['match'](/^ +$/)){_0x5cb4eb['push']({'type':'deletion','content':o(_0x3209aa,'*Remove:*\x20%0',o(_0x3209aa,'ELEMENT_SPACE',_0x1c5729['remove']['length']))});continue;}if(''!=_0x1c5729['add']){_0x5cb4eb['push']({'type':'insertion','content':o(_0x3209aa,'*Insert:*\x20%0','\x22'+_0x1c5729['add']+'\x22')});continue;}_0x5cb4eb['push']({'type':'deletion','content':o(_0x3209aa,'*Remove:*\x20%0','\x22'+_0x1c5729['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5cb4eb['push']({'type':'insertion','content':o(_0x3209aa,'*Insert:*\x20%0',this['getItemLabel'](_0x1c5729['element'],_0x1c5729['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5cb4eb['push']({'type':'deletion','content':o(_0x3209aa,'*Remove:*\x20%0',this['getItemLabel'](_0x1c5729['element'],_0x1c5729['quantity']))});continue;case'addContainer':_0x5cb4eb['push']({'type':'insertion','content':o(_0x3209aa,'*Split:*\x20%0',this['getItemLabel'](_0x1c5729['element'],_0x1c5729['quantity']))});continue;case'removeContainer':_0x5cb4eb['push']({'type':'deletion','content':o(_0x3209aa,'*Merge:*\x20%0',this['getItemLabel'](_0x1c5729['element'],_0x1c5729['quantity']))});continue;case'addFormat':_0x1ea1a4['push'](_0x1c5729['key']);continue;case'removeFormat':_0x11ddb3['push'](_0x1c5729['key']);continue;default:_0x5cb4eb['push'](_0x1c5729);}if(_0x1ea1a4['length']){const _0x5b3c75=_0x1ea1a4['map'](_0x150ea1=>this['_attributeLabels']['has'](_0x150ea1)?this['_attributeLabels']['get'](_0x150ea1):_0x150ea1)['join'](',\x20');_0x5cb4eb['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5b3c75)});}if(_0x11ddb3['length']){const _0x356312=_0x11ddb3['map'](_0x2fff77=>this['_attributeLabels']['has'](_0x2fff77)?this['_attributeLabels']['get'](_0x2fff77):_0x2fff77)['join'](',\x20');_0x5cb4eb['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x356312)});}return _0x5cb4eb;}['_handleCustomCallbackDescription'](_0x436ec5){for(const _0x2b287a of this['_customCallbacks']){const _0x4f9aa3=_0x2b287a(_0x436ec5);if(_0x4f9aa3&&'type'in _0x4f9aa3)return _0x4f9aa3;}}['_handleAttributeSuggestionDescription'](_0x8c78ab,_0x539e86){const _0x25b4c2=_0x539e86['data'],_0x529e85=void 0x0===_0x25b4c2['newValue']?'removeFormat':'addFormat';_0x8c78ab['push']({'type':_0x529e85,'key':_0x25b4c2['key']});}['_handleRenameSuggestionDescription'](_0x42a0da,_0x16042c){_0x42a0da['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x16042c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x203903,_0x54bcae,_0x3e413){if(this['_addDescriptionItems'](_0x203903,_0x54bcae),_0x3e413&&_0x3e413['getFirstRange']()&&!_0x54bcae['getFirstRange']()['end']['isEqual'](_0x3e413['getFirstRange']()['start'])){const _0x43884f=_0x203903[_0x203903['length']-0x1],_0x1d6b87='insertion'==_0x54bcae['type']?'add':'remove';_0x43884f&&'text'==_0x43884f['type']&&(_0x43884f[_0x1d6b87]+='\x0a');}}}class U extends _0x371cc0{['afterInit'](){const _0x53bd77=this['editor'],_0x3e4698=_0x53bd77['plugins']['get']('TrackChangesEditing');_0x53bd77['commands']['get']('showAIAssistant')&&_0x3e4698['enableCommand']('showAIAssistant');}}class V extends _0x371cc0{['afterInit'](){const _0x213795=this['editor'],_0x105a8f=_0x213795['locale'];if(!_0x213795['plugins']['has']('AlignmentEditing'))return;const _0xe100ad=_0x213795['plugins']['get']('TrackChangesEditing');_0xe100ad['enableDefaultAttributesIntegration']('alignment'),_0xe100ad['registerBlockAttribute']('alignment'),_0xe100ad['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x105a8f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d2ed9=this['editor'],_0x78a783=_0x4d2ed9['locale'];_0x4d2ed9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a64b=>{if('formatBlock'!=_0x34a64b['type'])return;const {data:_0x290ff4}=_0x34a64b;if(_0x290ff4&&'alignment'==_0x290ff4['commandName']){const _0x366cbe=_0x290ff4['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x78a783,'*Format:*\x20%0',function(_0x45ef61){switch(_0x45ef61){case'left':return o(_0x78a783,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x78a783,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x78a783,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x78a783,'FORMAT_JUSTIFY_TEXT');}}(_0x366cbe))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x371cc0{['afterInit'](){const _0x15ca27=this['editor'],_0x13c0a3=_0x15ca27['plugins']['get']('TrackChangesEditing'),_0x47a4b9=_0x15ca27['locale'];for(const _0x41ad91 of ti){if(!_0x15ca27['plugins']['has'](_0x41ad91))continue;const _0x561ca1=_0x41ad91['slice'](0x0,-0x7)['toLowerCase'](),_0x182b52='FORMAT_'+_0x561ca1['toUpperCase']();_0x13c0a3['enableDefaultAttributesIntegration'](_0x561ca1),_0x13c0a3['registerInlineAttribute'](_0x561ca1),_0x13c0a3['descriptionFactory']['registerAttributeLabel'](_0x561ca1,o(_0x47a4b9,_0x182b52));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30734a=this['editor'],_0x1e70d9=_0x30734a['locale'],_0x20630b=_0x30734a['plugins']['get']('TrackChangesEditing');function _0x173fcc(_0x17337a,_0x2c2753){_0x20630b['descriptionFactory']['registerDescriptionCallback'](_0x35bba0=>{if('formatInline'!=_0x35bba0['type'])return;const {data:_0x57df77}=_0x35bba0;return _0x57df77&&_0x57df77['commandName']===_0x17337a?_0x57df77['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e70d9,'*Format:*\x20%0',_0x2c2753)}:{'type':'format','content':o(_0x1e70d9,'*Remove\x20format:*\x20%0',_0x2c2753)}:void 0x0;});}_0x173fcc('bold',o(_0x1e70d9,'FORMAT_BOLD')),_0x173fcc('italic',o(_0x1e70d9,'FORMAT_ITALIC')),_0x173fcc('underline',o(_0x1e70d9,'FORMAT_UNDERLINE')),_0x173fcc('code',o(_0x1e70d9,'FORMAT_CODE')),_0x173fcc('strikethrough',o(_0x1e70d9,'FORMAT_STRIKETHROUGH')),_0x173fcc('subscript',o(_0x1e70d9,'FORMAT_SUBSCRIPT')),_0x173fcc('superscript',o(_0x1e70d9,'FORMAT_SUPERSCRIPT'));}}class F extends _0x371cc0{['afterInit'](){const _0x58e0f3=this['editor'],_0x534abc=_0x58e0f3['locale'];if(!_0x58e0f3['plugins']['has']('BlockQuoteEditing'))return;const _0x3b3114=_0x58e0f3['plugins']['get']('TrackChangesEditing'),_0x320766=this['editor']['commands']['get']('blockQuote');_0x3b3114['enableCommand']('blockQuote',(_0x3097db,_0x3f5dee={})=>{const _0x49647c=this['editor']['model']['document']['selection'],_0x4e0410=_0x3f5dee&&void 0x0!==_0x3f5dee['forceValue']?_0x3f5dee['forceValue']:!_0x320766['value'];let _0x155bf1=[];if(_0x4e0410){const _0x5afe00=Array['from'](_0x49647c['getSelectedBlocks']())['filter'](_0x196b28=>oo(_0x196b28)||function(_0x1106b2,_0x1b326e){const _0x4f4afd=_0x1b326e['checkChild'](_0x1106b2['parent'],'blockQuote'),_0x30c244=_0x1b326e['checkChild'](['$root','blockQuote'],_0x1106b2);return _0x4f4afd&&_0x30c244;}(_0x196b28,this['editor']['model']['schema']));_0x155bf1=to(_0x5afe00,_0x58e0f3['model']);}else{const _0xd06795=Array['from'](_0x49647c['getSelectedBlocks']())['filter'](_0x262116=>oo(_0x262116));_0x155bf1=to(_0xd06795,_0x58e0f3['model']);}_0x58e0f3['model']['change'](()=>{for(const _0x8c8486 of _0x155bf1)_0x3b3114['markBlockFormat'](_0x8c8486,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4e0410}]});});}),_0x3b3114['descriptionFactory']['registerDescriptionCallback'](_0x4fbbdb=>{const {data:_0x33245b}=_0x4fbbdb;if(_0x33245b&&'blockQuote'==_0x33245b['commandName']){const _0x3a4868=o(_0x534abc,'ELEMENT_BLOCK_QUOTE');return _0x33245b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x534abc,'*Set\x20format:*\x20%0',_0x3a4868)}:{'type':'format','content':o(_0x534abc,'*Remove\x20format:*\x20%0',_0x3a4868)};}});}}function oo(_0x2405b7){return'blockQuote'==_0x2405b7['parent']['name'];}class L extends _0x371cc0{['afterInit'](){const _0x206ca2=this['editor'],_0x56cbcd=_0x206ca2['locale'],_0x292bb5=_0x206ca2['plugins']['get']('TrackChangesEditing');_0x206ca2['plugins']['has']('BookmarkEditing')&&(_0x292bb5['enableCommand']('insertBookmark'),_0x292bb5['enableDefaultAttributesIntegration']('updateBookmark'),_0x292bb5['registerBlockAttribute']('bookmarkId'),_0x292bb5['descriptionFactory']['registerDescriptionCallback'](_0x541763=>{if('insertion'!=_0x541763['type']&&'deletion'!=_0x541763['type']&&'attribute'!=_0x541763['type'])return;const _0x3b5e34=_0x541763['getContainedElement']();if(null==_0x3b5e34)return;if(!_0x3b5e34['is']('element','bookmark'))return;const _0x356c00=_0x3b5e34['getAttribute']('bookmarkId');if('insertion'==_0x541763['type'])return{'type':'insertion','content':o(_0x56cbcd,'*Insert:*\x20%0','\x22'+_0x356c00+'\x22\x20'+o(_0x56cbcd,'ELEMENT_BOOKMARK'))};if('deletion'==_0x541763['type'])return{'type':'deletion','content':o(_0x56cbcd,'*Remove:*\x20%0','\x22'+_0x356c00+'\x22\x20'+o(_0x56cbcd,'ELEMENT_BOOKMARK'))};const {data:_0x39e7e4}=_0x541763;if(!_0x39e7e4||'bookmarkId'!=_0x39e7e4['key'])return;return{'type':'format','content':o(_0x56cbcd,'*Set\x20bookmark:*\x20%0','\x22'+_0x39e7e4['newValue']+'\x22')};}));}}class J extends _0x371cc0{['afterInit'](){const _0x21ad65=this['editor'];_0x21ad65['plugins']['has']('CaseChange')&&(_0x21ad65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x21ad65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x21ad65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x371cc0{['afterInit'](){const _0x587390=this['editor'];_0x587390['commands']['get']('ckbox')&&_0x587390['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x371cc0{['afterInit'](){const _0x5a4992=this['editor'];if(!_0x5a4992['plugins']['has']('CodeBlock'))return;const _0x5124f8=_0x5a4992['plugins']['get']('TrackChangesEditing'),_0x12f11c=_0x5a4992['locale'],_0x44a711=_0x5a4992['config']['get']('codeBlock')['languages'],_0x56ba5d=_0x5a4992['commands']['get']('codeBlock');_0x5124f8['enableCommand']('indentCodeBlock'),_0x5124f8['enableCommand']('outdentCodeBlock'),_0x5124f8['enableCommand']('codeBlock',(_0x3ebf66,_0x1e71a8={})=>{const _0xb55099=_0x5a4992['model'],_0x376242=_0x5a4992['model']['document']['selection'],_0x509d78=_0x1e71a8&&void 0x0!==_0x1e71a8['forceValue']?_0x1e71a8['forceValue']:!_0x56ba5d['value'];let _0x134155;_0x1e71a8['language']||(_0x1e71a8['language']=_0x44a711[0x0]['language']),_0x134155=_0x509d78?Array['from'](_0x376242['getSelectedBlocks']())['filter'](_0x41fd35=>eo(_0x41fd35)||function(_0xfe9a83,_0x1a2483){if(_0xfe9a83['is']('rootElement')||_0x1a2483['isLimit'](_0xfe9a83))return!0x1;return _0x1a2483['checkChild'](_0xfe9a83['parent'],'codeBlock');}(_0x41fd35,_0xb55099['schema'])):Array['from'](_0x376242['getSelectedBlocks']())['filter'](_0x35ec37=>eo(_0x35ec37));const _0x1a4489=to(_0x134155,_0xb55099);_0xb55099['change'](()=>{for(const _0x409512 of _0x1a4489)_0x5124f8['markBlockFormat'](_0x409512,{'commandName':'codeBlock','commandParams':[{..._0x1e71a8,'forceValue':_0x509d78}],'formatGroupId':'blockName'});});}),(_0x5124f8['descriptionFactory']['registerElementLabel']('codeBlock',_0x1309a3=>o(_0x12f11c,'ELEMENT_CODE_BLOCK',_0x1309a3)),_0x5124f8['descriptionFactory']['registerDescriptionCallback'](_0x497f8b=>{if('formatBlock'!=_0x497f8b['type'])return;const _0x510537=_0x12f11c['t'],{data:_0x1f376b}=_0x497f8b;if(!_0x1f376b||'codeBlock'!=_0x1f376b['commandName'])return;const _0x2cf159=_0x1f376b['commandParams'][0x0]['language'],_0x189d5c=_0x510537(_0x44a711['find'](_0x143dbc=>_0x143dbc['language']===_0x2cf159)['label'])['toLowerCase']();return _0x1f376b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12f11c,'*Set\x20format:*\x20%0',o(_0x12f11c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x189d5c+')')}:{'type':'format','content':o(_0x12f11c,'*Remove\x20format:*\x20%0',o(_0x12f11c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x16fff1){return'codeBlock'==_0x16fff1['name'];}class z extends _0x371cc0{['afterInit'](){const _0x553dff=this['editor'];if(!_0x553dff['plugins']['has']('CommentsEditing'))return;_0x553dff['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2fc3c2,_0x51b0b4,_0x254219){const _0x1b8c76=[];for(const _0x54e4ec of _0x51b0b4['getItems']())_0x54e4ec['hasAttribute'](_0x2fc3c2)&&_0x1b8c76['push'](_0x254219['createRangeOn'](_0x54e4ec));return _0x1b8c76;}function De(_0x520ffa,_0x548e69,{showActiveMarker:_0x5ad32e=!0x0}={}){const _0x484ca0=_0x520ffa['plugins']['get']('TrackChangesEditing');return(_0x2f1f8b,_0xe1c384,_0x43a4ef)=>{if(!_0x43a4ef['consumable']['test'](_0xe1c384['markerRange'],_0x2f1f8b['name']))return;const _0x360406=_0xe1c384['markerRange']['getWalker'](),_0x1f1173=_0xe1c384['markerRange']['start'],_0x5c31c9=_0x520ffa['model']['schema'];let _0xd28caf=null,_0x1f3f97=null,_0x5c3b44=!0x1,_0x143888=!0x1;for(const _0x3e90d1 of _0x360406){const _0x17b52e=_0x3e90d1['item'];_0x5c3b44=_0x5c3b44||_0x5c31c9['isContent'](_0x17b52e);const _0x43b573=_0x43a4ef['mapper']['toViewElement'](_0x17b52e);if(_0x43b573&&_0x43b573['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3e90d1['type']&&(_0x5c31c9['isBlock'](_0x17b52e)&&!_0x5c31c9['isLimit'](_0x17b52e)&&(_0x17b52e['nextSibling']||_0x1f1173['isAtEnd']?_0xd28caf&&_0xd28caf['parent']==_0x17b52e||(_0xd28caf=_0x17b52e,_0x52b4b3(_0x3e90d1['previousPosition']),_0x143888=!0x0):_0x1f3f97=_0x1f3f97||_0x3e90d1['previousPosition']));}function _0x52b4b3(_0x5397f7){const {authorId:_0x42df88}=_0x484ca0['_splitMarkerName'](_0xe1c384['markerName']),_0x5d1017=_0x43a4ef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x548e69,'data-author-id':_0x42df88}),_0x38f838=_0x43a4ef['mapper']['toViewPosition'](_0x5397f7);_0x5ad32e&&_0x484ca0['activeMarkers']['includes'](_0xe1c384['markerName'])&&_0x43a4ef['writer']['addClass']('ck-suggestion-marker--active',_0x5d1017),_0x43a4ef['writer']['insert'](_0x38f838,_0x5d1017),_0x43a4ef['mapper']['bindElementToMarker'](_0x5d1017,_0xe1c384['markerName']);}_0x5c3b44||_0x143888||!_0x1f3f97||_0x52b4b3(_0x1f3f97);};}class K extends _0x371cc0{static get['requires'](){return[_0x4aab3c];}['init'](){const _0x190672=this['editor'],_0x246449=_0x190672['plugins']['get']('TrackChangesEditing');_0x246449['enableCommand']('delete');const _0x2bebe3=_0x190672['commands']['get']('deleteForward');_0x246449['enableCommand']('deleteForward',(_0x47c253,_0x1aa4fe={})=>{const _0x4e44ef=_0x190672['model']['createSelection'](_0x190672['model']['document']['selection']);_0x4e44ef['isCollapsed']&&_0x190672['model']['modifySelection'](_0x4e44ef,{'direction':'forward','unit':_0x1aa4fe['unit']});const _0x36214e=_0x4e44ef['getFirstRange'](),_0x2afa41=_0x4179c1['fromRange'](_0x36214e);let _0x4fe0a0;_0x47c253(_0x1aa4fe),_0x4fe0a0='$graveyard'==_0x2afa41['root']['rootName']?_0x190672['model']['createRange'](_0x36214e['start']):_0x190672['model']['createRange'](_0x2afa41['start'],_0x2afa41['end']),_0x2afa41['detach'](),_0x190672['model']['enqueueChange'](_0x2bebe3['buffer']['batch'],_0x44ea2c=>{_0x2bebe3['buffer']['lock'](),_0x44ea2c['setSelection'](_0x44ea2c['createRange'](_0x4fe0a0['end'])),_0x2bebe3['buffer']['unlock']();});}),_0x190672['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x190672,'merge'),{'priority':'high'}),_0x190672['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5a8245,_0xfae2e,_0x529e19)=>{_0x529e19['options']['showSuggestionHighlights']&&De(_0x190672,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5a8245,_0xfae2e,_0x529e19);},{'priority':'high'}),_0x190672['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x295a81,_0x11ac4c,_0x154f23)=>{const _0x193331=_0x154f23['mapper']['markerNameToElements'](_0x11ac4c['markerName']);if(_0x193331){for(const _0x17868e of _0x193331)_0x17868e['is']('uiElement')&&(_0x154f23['mapper']['unbindElementFromMarkerName'](_0x17868e,_0x11ac4c['markerName']),_0x154f23['writer']['remove'](_0x17868e));}},{'priority':'high'});}}class W extends _0x371cc0{['afterInit'](){const _0x4d43b0=this['editor'];if(!_0x4d43b0['plugins']['has']('ListEditing'))return;const _0x17846f=_0x4d43b0['locale'],_0xa44881=_0x4d43b0['plugins']['get']('TrackChangesEditing'),_0x51a548=_0x4d43b0['plugins']['has']('TodoListEditing'),_0x523073=!!_0x4d43b0['config']['get']('list.multiBlock');function _0x186acc(_0x16fff4){return{'type':'format','content':''+o(_0x17846f,'*Set\x20format:*\x20%0',_0x16fff4)};}function _0x339fb8(_0x50c5ec){return{'type':'format','content':''+o(_0x17846f,'*Remove\x20format:*\x20%0',_0x50c5ec)};}_0xa44881['enableDefaultAttributesIntegration']('numberedList'),_0xa44881['enableDefaultAttributesIntegration']('bulletedList'),_0xa44881['enableDefaultAttributesIntegration']('customNumberedList'),_0xa44881['enableDefaultAttributesIntegration']('customBulletedList'),_0xa44881['enableDefaultAttributesIntegration']('indentList'),_0xa44881['enableDefaultAttributesIntegration']('outdentList'),_0xa44881['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xa44881['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xa44881['registerBlockAttribute']('listItemId'),_0xa44881['registerBlockAttribute']('listType'),_0xa44881['registerBlockAttribute']('listIndent'),_0x523073&&(_0xa44881['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xa44881['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x51a548&&(_0xa44881['enableDefaultAttributesIntegration']('todoList'),_0xa44881['enableDefaultAttributesIntegration']('checkTodoList'),_0xa44881['registerBlockAttribute']('todoListChecked'),_0xa44881['descriptionFactory']['registerDescriptionCallback'](_0x13fdcb=>{const {data:_0x156c68}=_0x13fdcb;if(_0x156c68&&'todoListChecked'==_0x156c68['key'])return{'type':'format','content':_0x156c68['newValue']?o(_0x17846f,'*Check\x20item*'):o(_0x17846f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4b7ff6=>{if(_0x4b7ff6['batch']['isUndo'])return!0x1;let _0x2afb54=!0x1;const _0x579e52=_0xa44881['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2358e1=>'todoListChecked'===_0xa44881['_getAttributeKey'](_0x2358e1));for(const _0x5c6747 of _0x579e52){'todo'!=_0x5c6747['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xa44881['_findSuggestions'](_0x5c6747['getFirstRange'](),'attribute')['find'](_0x14bce7=>'listType'===_0xa44881['_getAttributeKey'](_0x14bce7['suggestion']))||(_0x4b7ff6['removeMarker'](_0x5c6747['getFirstMarker']()),_0x2afb54=!0x0));}return _0x2afb54;})),_0xa44881['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x17846f,'FORMAT_INDENT'));const _0x8e8589={'type':'format','content':''};_0xa44881['descriptionFactory']['registerDescriptionCallback'](_0x245b39=>{const {data:_0x36d817}=_0x245b39;if(!_0x36d817||'listType'!=_0x36d817['key'])return;let _0x4de4b1=_0x245b39['head'];for(;_0x4de4b1;){if(_0x4de4b1['data']&&(('listStyle'==_0x4de4b1['data']['key']||'listMarkerStyle'==_0x4de4b1['data']['key'])&&(_0x4de4b1['data']['newValue']&&'default'!=_0x4de4b1['data']['newValue']||'default'!=_0x4de4b1['data']['oldValue']&&!_0x36d817['newValue'])||!_0x523073&&_0x4de4b1['data']['key']==m))return _0x8e8589;_0x4de4b1=_0x4de4b1['next'];}if(null==_0x36d817['newValue'])switch(_0x36d817['oldValue']){case'bulleted':return _0x339fb8(o(_0x17846f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x339fb8(o(_0x17846f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x339fb8(o(_0x17846f,'ELEMENT_TODO_LIST'));}switch(_0x36d817['newValue']){case'bulleted':return _0x186acc(o(_0x17846f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x186acc(o(_0x17846f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x186acc(o(_0x17846f,'ELEMENT_TODO_LIST'));}}),_0xa44881['descriptionFactory']['registerDescriptionCallback'](_0x37e5e0=>{const {data:_0x49721f}=_0x37e5e0;if(_0x49721f&&'listIndent'==_0x49721f['key'])return null==_0x49721f['newValue']||null==_0x49721f['oldValue']&&0x0==_0x49721f['newValue']?_0x8e8589:void 0x0;}),_0xa44881['descriptionFactory']['registerDescriptionCallback'](_0x55494a=>{if('attribute'!=_0x55494a['type'])return;const {data:_0x73bc43}=_0x55494a;if(!_0x73bc43||'listItemId'!=_0x73bc43['key'])return;const _0x116413=Te(_0x55494a);return'newValue'==_0x116413?{'type':'format','content':o(_0x17846f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x116413?{'type':'format','content':o(_0x17846f,'*Split:*\x20list\x20item')}:_0x8e8589;}),_0x4d43b0['model']['document']['registerPostFixer'](_0x1f8cab=>this['listItemIdFixer'](_0x1f8cab)),_0x4d43b0['model']['document']['registerPostFixer'](_0x19f26c=>this['noTrackChangesFixer'](_0x19f26c)),_0x4d43b0['model']['document']['on']('change:data',(_0xf395e4,_0x5e1138)=>{if(_0x5e1138['isUndo']||!_0x5e1138['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x194c64){if(_0x194c64['batch']['isUndo']||!_0x194c64['batch']['isLocal'])return!0x1;let _0x7fae1f=!0x1;const _0x4fafc1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30172c=>_0x30172c['data']&&'listItemId'==_0x30172c['data']['key'])['filter'](_0x12a7e7=>_0x12a7e7['data']['newValue']&&_0x12a7e7['data']['oldValue']);for(const _0x4f4ad of _0x4fafc1)Te(_0x4f4ad)||(_0x194c64['removeMarker'](_0x4f4ad['getFirstMarker']()),_0x7fae1f=!0x0);return _0x7fae1f;}['noTrackChangesFixer'](_0x8287e2){if(_0x8287e2['batch']['isUndo']||!_0x8287e2['batch']['isLocal'])return!0x1;const _0x4f82c7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4f82c7['trackChangesCommand']['value'])return!0x1;let _0x514641=!0x1;const _0x5da5cf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x523901=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x394149=>'attribute'==_0x394149['type'])['filter'](_0x42ad32=>_0x5da5cf['includes'](_0x42ad32['attributeKey']));if(0x0==_0x523901['length'])return _0x514641;for(const _0x25cf7e of _0x523901){const _0x2a3e17=_0x4f82c7['_findSuggestions'](_0x25cf7e['range'],'attribute')['filter'](_0x927329=>!_0x927329['meta']['isNextTo'])['map'](_0x52d273=>_0x52d273['suggestion'])['filter'](_0x4fa290=>{const _0x1df31d=_0x4f82c7['_getAttributeKey'](_0x4fa290);return _0x5da5cf['includes'](_0x1df31d);});if(_0x2a3e17['length']){for(const _0x57744c of _0x2a3e17)_0x8287e2['removeMarker'](_0x57744c['getFirstMarker']());_0x514641=!0x0;}}return _0x514641;}['assureChains'](){const _0x5db2e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdeccb7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4c4f75;const _0x349f7b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45906d=>{if(_0x45906d['data']['oldRange']||!_0x45906d['data']['newRange'])return null;if(!_0x45906d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4902c4}=_0x5db2e6['_splitMarkerName'](_0x45906d['name']);if(!_0x5db2e6['hasSuggestion'](_0x4902c4))return null;const _0x55e780=_0x5db2e6['getSuggestion'](_0x4902c4);return _0xdeccb7['includes'](_0x55e780['data']['key']);})['map'](_0x1412dc=>{const {id:_0x17fecd}=_0x5db2e6['_splitMarkerName'](_0x1412dc['name']),_0x343576=_0x5db2e6['getSuggestion'](_0x17fecd);return _0x4c4f75=_0x343576['attributes']['groupId'],_0x343576['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x349f7b['size'])return;const _0x328cb8=_0x5db2e6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bbb6b=>'attribute'==_0x4bbb6b['type']&&_0x4bbb6b['data']&&_0xdeccb7['includes'](_0x4bbb6b['data']['key'])&&_0x4bbb6b['attributes']['groupId']!=_0x4c4f75)['map'](_0xa53f71=>({'listItem':_0xa53f71['getFirstRange']()['start']['nodeAfter'],'groupId':_0xa53f71['attributes']['groupId']})),_0x54641a=new Set();for(const {groupId:_0xc70c13,listItem:_0x1de46f}of _0x328cb8)_0x349f7b['has'](_0x1de46f)&&_0x54641a['add'](_0xc70c13);for(const _0x59f209 of _0x5db2e6['getSuggestions']())_0x54641a['has'](_0x59f209['attributes']['groupId'])&&_0x59f209['setAttribute']('groupId',_0x4c4f75);}['_supportLegacySuggestions'](){const _0x2075f7=this['editor'],_0x1d0177=_0x2075f7['locale'],_0x4a682b=_0x2075f7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4a682b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1159b4,_0x231345){const _0x64b3aa=[];for(let _0x1bcbe3 of _0x1159b4)_0x1bcbe3['start']['nodeAfter']===_0x1bcbe3['end']['parent']&&(_0x1bcbe3=_0x2075f7['model']['createRange'](_0x2075f7['model']['createPositionAt'](_0x1bcbe3['start']['nodeAfter'],0x0))),_0x64b3aa['push'](_0x1bcbe3);_0x2075f7['model']['change'](_0x3fedd0=>{const _0xb9dc68=_0x2075f7['model']['document']['selection'],_0x2db270=Array['from'](_0xb9dc68['getRanges']())['map'](_0x3d7bad=>_0x4179c1['fromRange'](_0x3d7bad));_0x3fedd0['setSelection'](_0x64b3aa),_0x2075f7['commands']['get'](_0x231345['commandName'])['refresh'](),_0x231345['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2075f7['execute'](_0x231345['commandName'],..._0x231345['commandParams']),_0x3fedd0['setSelection'](_0x2db270);for(const _0x2d9d7d of _0x2db270)_0x2d9d7d['detach']();});}),_0x4a682b['descriptionFactory']['registerElementLabel'](function(_0x1a9f8d){const _0x15d627=!_0x2075f7['model']['schema']['isObject'](_0x1a9f8d),_0x5bc64=_0x1a9f8d['previousSibling'],_0x27833b=_0x1a9f8d['nextSibling'],_0xfd040e=_0x1a9f8d['getAttribute']('listItemId'),_0x3659f7=!_0x5bc64||_0x5bc64['getAttribute']('listItemId')!==_0xfd040e,_0x10eaeb=!_0x27833b||_0x27833b['getAttribute']('listItemId')!==_0xfd040e;return _0x15d627&&Boolean(_0xfd040e)&&_0x3659f7&&_0x10eaeb;},_0x32a358=>o(_0x1d0177,'ELEMENT_LIST_ITEM',_0x32a358));}['_registerLegacyDescription'](){const _0x259eb8=this['editor'],_0x2cc452=_0x259eb8['locale'];function _0xc7cca3(_0x4001){const _0x1e1296=_0x259eb8['commands']['get']('bulletedList')['value'],_0x2f2e6e=_0x259eb8['commands']['get']('numberedList')['value'];return'numberedList'===_0x4001?_0x1e1296:_0x2f2e6e;}_0x259eb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x204dd9){if('formatBlock'!=_0x204dd9['type'])return;const {data:_0x1480b5}=_0x204dd9;if(!_0x1480b5)return;let _0x42fdc6,_0x4e077a,_0x36ebc3,_0x191cd5;switch(_0x1480b5['commandName']){case'bulletedList':_0x36ebc3=_0x1480b5['commandParams'][0x0]['forceValue'],_0x191cd5=_0xc7cca3(_0x1480b5['commandName']),_0x42fdc6=_0x36ebc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x191cd5&&_0x259eb8['config']['get']('list.multiBlock')||(_0x42fdc6='*Change\x20to:*\x20%0'),_0x4e077a={'type':'format','content':o(_0x2cc452,_0x42fdc6,o(_0x2cc452,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x36ebc3=_0x1480b5['commandParams'][0x0]['forceValue'],_0x191cd5=_0xc7cca3(_0x1480b5['commandName']),_0x42fdc6=_0x36ebc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x191cd5&&_0x259eb8['config']['get']('list.multiBlock')||(_0x42fdc6='*Change\x20to:*\x20%0'),_0x4e077a={'type':'format','content':o(_0x2cc452,_0x42fdc6,o(_0x2cc452,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x42fdc6='*Indent:*\x20%0',_0x4e077a={'type':'format','content':o(_0x2cc452,_0x42fdc6,o(_0x2cc452,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x42fdc6=function(_0x49f97a){const _0x3c179f=_0x49f97a['getFirstRange']();let _0x243a62=_0x3c179f['start']['nodeAfter'];for(;_0x243a62&&_0x3c179f['containsItem'](_0x243a62);){if(_0x243a62['getAttribute']('listIndent')>0x0)return!0x1;_0x243a62=_0x243a62['nextSibling'];}return!0x0;}(_0x204dd9)?o(_0x2cc452,'*Format:*\x20remove\x20from\x20%0',o(_0x2cc452,function(_0x4c8097){return'ELEMENT_'+_0x4c8097['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x204dd9))):o(_0x2cc452,'*Outdent:*\x20%0',o(_0x2cc452,'ELEMENT_LIST_ITEM')),_0x4e077a={'type':'format','content':_0x42fdc6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1480b5['multipleBlocks']&&(_0x42fdc6='*Merge:*\x20%0',_0x4e077a={'type':'deletion','content':o(_0x2cc452,_0x42fdc6,o(_0x2cc452,'ELEMENT_LIST_ITEM'))});}return _0x4e077a;});}}function Te(_0x487936){let _0x3fb45e=_0x487936['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3fb45e;){const _0x2c6be0=_0x3fb45e['getAttribute']('listItemId');if(!_0x2c6be0)return!0x1;if(_0x2c6be0==_0x487936['data']['newValue'])return'newValue';if(_0x2c6be0==_0x487936['data']['oldValue'])return'oldValue';_0x3fb45e=_0x3fb45e['previousSibling'];}return!0x1;}class Se extends _0x371cc0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x22c785=this['editor']['config']['get']('list.properties'),_0x171663=this['editor']['plugins']['get']('TrackChangesEditing');_0x22c785['styles']&&(_0x171663['enableDefaultAttributesIntegration']('listStyle'),_0x171663['registerBlockAttribute']('listStyle')),_0x22c785['reversed']&&(_0x171663['enableDefaultAttributesIntegration']('listReversed'),_0x171663['registerBlockAttribute']('listReversed')),_0x22c785['startIndex']&&(_0x171663['enableDefaultAttributesIntegration']('listStart'),_0x171663['registerBlockAttribute']('listStart'));const _0x106134={'type':'format','content':''};_0x171663['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2340d6=this['editor']['locale'];_0x171663['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2340d6,'FORMAT_LIST_REVERSED')),_0x171663['descriptionFactory']['registerDescriptionCallback'](_0x453452=>{const {data:_0x521d9d}=_0x453452;if(_0x521d9d&&'listReversed'==_0x521d9d['key'])return null==_0x521d9d['newValue']||0x0==_0x521d9d['newValue']&&null==_0x521d9d['oldValue']?_0x106134:void 0x0;}),_0x171663['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2340d6,'FORMAT_LIST_START')),_0x171663['descriptionFactory']['registerDescriptionCallback'](_0x2f77de=>{const {data:_0x3cf414}=_0x2f77de;if(_0x3cf414&&'listStart'==_0x3cf414['key'])return null==_0x3cf414['newValue']||0x1==_0x3cf414['newValue']&&null==_0x3cf414['oldValue']?_0x106134:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xd8cbb=>{if(_0xd8cbb['batch']['isUndo'])return!0x1;let _0x4a90cb=!0x1;const _0x3ffafd=_0x171663['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245e30=>{const _0x4d7cef=_0x171663['_getAttributeKey'](_0x245e30);return'listStart'==_0x4d7cef||'listReversed'==_0x4d7cef;});for(const _0x1a71df of _0x3ffafd){const _0x41e363=_0x1a71df['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x41e363||'customNumbered'==_0x41e363)continue;_0x171663['_findSuggestions'](_0x1a71df['getFirstRange'](),'attribute')['find'](_0x427e4a=>'listType'==_0x171663['_getAttributeKey'](_0x427e4a['suggestion']))||(_0xd8cbb['removeMarker'](_0x1a71df['getFirstMarker']()),_0x4a90cb=!0x0);}return _0x4a90cb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1d0839){const _0x5a06e4=this['editor']['locale'],{data:_0x582066}=_0x1d0839,_0x3d36eb={'type':'format','content':''};if(!_0x582066||'listStyle'!=_0x582066['key'])return;if(!_0x582066['oldValue'])return'default'==_0x582066['newValue']?_0x3d36eb:{'type':'format','content':''+o(_0x5a06e4,'*Set\x20format:*\x20%0',o(_0x5a06e4,this['_getTranslationKeyForListStyle'](_0x582066['newValue'])))};if(!_0x582066['newValue']){if('default'==_0x582066['oldValue'])return _0x3d36eb;let _0xfc155=_0x1d0839['head'];for(;_0xfc155;){if(_0xfc155['data']&&'listType'==_0xfc155['data']['key']&&_0xfc155['data']['newValue'])return _0x3d36eb;_0xfc155=_0xfc155['next'];}return{'type':'format','content':''+o(_0x5a06e4,'*Remove\x20format:*\x20%0',o(_0x5a06e4,this['_getTranslationKeyForListStyle'](_0x582066['oldValue'])))};}if('default'!=_0x582066['newValue'])return{'type':'format','content':''+o(_0x5a06e4,'*Set\x20format:*\x20%0',o(_0x5a06e4,this['_getTranslationKeyForListStyle'](_0x582066['newValue'])))};let _0x1eaa5f=_0x1d0839['head'];for(;_0x1eaa5f;){if(_0x1eaa5f['data']&&'listType'==_0x1eaa5f['data']['key']&&_0x1eaa5f['data']['newValue']&&_0x1eaa5f['data']['oldValue'])return _0x3d36eb;_0x1eaa5f=_0x1eaa5f['next'];}return{'type':'format','content':o(_0x5a06e4,'*Set\x20format:*\x20%0',o(_0x5a06e4,'ELEMENT_'+_0x1d0839['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x20a1dc=this['editor'],_0x359620=_0x20a1dc['locale'];_0x20a1dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21304d=>{if('formatBlock'!=_0x21304d['type'])return;const {data:_0x9651e2}=_0x21304d;if(!_0x9651e2)return;let _0x54bd2a,_0x45bd2c;switch(_0x9651e2['commandName']){case'listStyle':_0x54bd2a='*Change\x20to:*\x20%0',_0x45bd2c={'type':'format','content':o(_0x359620,_0x54bd2a,o(_0x359620,this['_getTranslationKeyForListStyle'](_0x9651e2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x54bd2a=_0x9651e2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45bd2c={'type':'format','content':o(_0x359620,_0x54bd2a)};break;case'listStart':_0x54bd2a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45bd2c={'type':'format','content':o(_0x359620,_0x54bd2a,_0x9651e2['commandParams'][0x0]['startIndex'])};}return _0x45bd2c;});}['_getTranslationKeyForListStyle'](_0x58556c){return'ELEMENT_'+function(_0x4dfaca){if(_e['includes'](_0x4dfaca))return'bulleted';if(Re['includes'](_0x4dfaca))return'numbered';return null;}(_0x58556c)['toUpperCase']()+'_LIST_'+_0x58556c['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x371cc0{static get['requires'](){return[_0x3b7c67];}['init'](){const _0x54caa5=this['editor'],_0x45c4fa=_0x54caa5['plugins']['get']('TrackChangesEditing'),_0x2a8711=_0x54caa5['commands']['get']('enter');_0x45c4fa['enableCommand']('enter',()=>{_0x54caa5['model']['change'](_0x5e52f9=>{const _0x30fb8c=_0x54caa5['model']['document']['selection'],_0x53b219=_0x30fb8c['getFirstPosition'](),_0x510dab=_0x4179c1['fromRange'](_0x30fb8c['getFirstRange']());if(_0x2a8711['enterBlock'](_0x5e52f9)){const _0x4a5aee=_0x54caa5['model']['createPositionAt'](_0x53b219['parent']['nextSibling'],0x0),_0x3ca13b=_0x5e52f9['createRange'](_0x53b219,_0x4a5aee);_0x45c4fa['markInsertion'](_0x3ca13b);}else _0x5e52f9['setSelection'](_0x5e52f9['createRange'](_0x510dab['end']));_0x510dab['detach'](),_0x2a8711['fire']('afterExecute',{'writer':_0x5e52f9});});}),_0x54caa5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x54caa5,'split'),{'priority':'high'}),_0x54caa5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x365ba0,_0x3af7fd,_0x353e6b)=>{const _0x1074b4=_0x353e6b['mapper']['markerNameToElements'](_0x3af7fd['markerName']);if(_0x1074b4){for(const _0x2c80d3 of _0x1074b4)_0x2c80d3['hasClass']('ck-suggestion-marker-split')&&(_0x353e6b['mapper']['unbindElementFromMarkerName'](_0x2c80d3,_0x3af7fd['markerName']),_0x353e6b['writer']['remove'](_0x2c80d3));}},{'priority':'high'}),_0x54caa5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b6b02,_0x5f3b57,_0x839c04)=>{_0x839c04['options']['showSuggestionHighlights']&&De(_0x54caa5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b6b02,_0x5f3b57,_0x839c04);},{'priority':'high'});}}class Y extends _0x371cc0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x26a938=this['editor']['plugins']['get']('TrackChangesEditing');_0x26a938['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x26a938['enableCommand']('findNext'),_0x26a938['enableCommand']('findPrevious'),_0x26a938['enableCommand']('replace'),_0x26a938['enableCommand']('replaceAll');}['handleFindCommand'](_0x3e44c6,_0x497b6b,_0x1249f1={}){const _0x419820=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3e44c6(_0x249725=>{let _0x10c252=('string'==typeof _0x497b6b?_0x419820['findByTextCallback'](_0x497b6b,_0x1249f1):_0x497b6b)(_0x249725);Array['isArray'](_0x10c252)&&(_0x10c252={'results':_0x10c252,'searchText':'string'==typeof _0x497b6b?_0x497b6b:''});const _0x4da799=_0x10c252['results']['filter'](_0x349089=>!0x1===this['_isInDeletionRange'](_0x349089,_0x249725['item']));return{..._0x10c252,'results':_0x4da799};},_0x1249f1);}['_isInDeletionRange'](_0x538565,_0x35e408){const _0x1749a8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35e408,_0x538565['start']),this['editor']['model']['createPositionAt'](_0x35e408,_0x538565['end']));for(const _0x1931e4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1749a8['getIntersection'](_0x1931e4['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x371cc0{['afterInit'](){const _0x59adee=this['editor']['locale'],_0x2c29f5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x452ce6,commandName:_0x46c2a3}of ro)this['editor']['plugins']['has'](_0x452ce6)&&(_0x2c29f5['enableDefaultAttributesIntegration'](_0x46c2a3),_0x2c29f5['registerInlineAttribute'](_0x46c2a3));_0x2c29f5['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x59adee,'FORMAT_FONT_SIZE')),_0x2c29f5['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x59adee,'FORMAT_FONT_FAMILY')),_0x2c29f5['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x59adee,'FORMAT_FONT_COLOR')),_0x2c29f5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x59adee,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x320414=this['editor'],_0x20619e=_0x320414['locale'];_0x320414['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda3ad=>{const _0xe0250a=_0x20619e['t'];if('formatInline'!=_0xda3ad['type'])return;const {data:_0x27bc9a}=_0xda3ad;if(null!=_0x27bc9a){if('fontSize'==_0x27bc9a['commandName']){const _0x5e03c9=_0x27bc9a['commandParams'][0x0]['value'];if(_0x5e03c9){const _0x2991b3=_0xe0250a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x34a51d=>_0x34a51d['model']==_0x5e03c9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x20619e,'*Set\x20font\x20size:*\x20%0',_0x2991b3)};}return{'type':'format','content':o(_0x20619e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27bc9a['commandName']){const _0x369968=_0x27bc9a['commandParams'][0x0]['value'];return _0x369968?{'type':'format','content':o(_0x20619e,'*Set\x20font\x20family:*\x20%0',_0x369968)}:{'type':'format','content':o(_0x20619e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27bc9a['commandName']){const _0x528895=_0x27bc9a['commandParams'][0x0]['value'];if(_0x528895){const _0x3daf48=_0x3c3346(this['editor']['config']['get']('fontColor.colors'))['find'](_0xc8046d=>_0xc8046d['model']==_0x528895);let _0x13df36=_0x528895,_0x5586b3='';return _0x3daf48&&(_0x13df36=_0x3daf48['label'],_0x5586b3=_0xe0250a(_0x13df36)['toLowerCase']()),{'type':'format','content':o(_0x20619e,'*Set\x20font\x20color:*\x20%0',_0x5586b3)['trim'](),'color':{'value':_0x528895,'title':_0x5586b3||_0x13df36}};}return{'type':'format','content':o(_0x20619e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27bc9a['commandName']){const _0x4cc445=_0x27bc9a['commandParams'][0x0]['value'];if(_0x4cc445){const _0x5151de=_0x3c3346(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x45d1d7=>_0x45d1d7['model']==_0x4cc445);let _0x2c25f3=_0x4cc445,_0x37293e='';return _0x5151de&&(_0x2c25f3=_0x5151de['label'],_0x37293e=_0xe0250a(_0x2c25f3)['toLowerCase']()),{'type':'format','content':o(_0x20619e,'*Set\x20font\x20background\x20color:*\x20%0',_0x37293e)['trim'](),'color':{'value':_0x4cc445,'title':_0x37293e||_0x2c25f3}};}return{'type':'format','content':o(_0x20619e,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x371cc0{['afterInit'](){const _0xaac556=this['editor'],_0x5b2470=_0xaac556['plugins']['get']('TrackChangesEditing'),_0x2d61ec=_0xaac556['commands']['get']('copyFormat'),_0x501250=_0xaac556['commands']['get']('pasteFormat');_0x2d61ec&&_0x501250&&(_0x5b2470['enableDefaultAttributesIntegration']('pasteFormat'),_0x5b2470['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20398e=this['editor'],_0x1522cc=_0x20398e['locale'];_0x20398e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbe4d91=>{if('formatBlock'!=_0xbe4d91['type']&&'formatInline'!=_0xbe4d91['type'])return;const {data:_0x225e1f}=_0xbe4d91;if(_0x225e1f&&'pasteFormat'===_0x225e1f['commandName']){const _0x47b01f=[],_0x4352e8=_0x225e1f['commandParams'][0x0];for(const [_0x5acfb7,_0x384bd6]of Object['entries'](_0x4352e8))_0x47b01f['push'](so(_0x20398e,_0x5acfb7,_0x384bd6));return _0x47b01f['length']?{'type':'format','content':o(_0x1522cc,'*Set\x20format\x20to:*\x20%0',_0x47b01f['join'](',\x20'))}:{'type':'format','content':o(_0x1522cc,'*Remove\x20all\x20formatting*')};}});}}function so(_0x16a904,_0x468bd5,_0x10d6c0){const _0x53ffeb=_0x16a904['locale']['t'],_0x121177=_0x468bd5['split'](/(?=[A-Z])/)['join']('\x20'),_0x366c61=_0x53ffeb(_0x121177['charAt'](0x0)['toUpperCase']()+_0x121177['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x10d6c0)return _0x366c61;if('fontColor'===_0x468bd5||'fontBackgroundColor'===_0x468bd5){const _0x237c67=_0x3c3346(_0x16a904['config']['get']('fontColor.colors'))['find'](_0x366c28=>_0x366c28['model']==_0x10d6c0);return _0x366c61+'\x20('+(_0x237c67?_0x53ffeb(_0x237c67['label'])['toLowerCase']():_0x10d6c0)+')';}if('fontSize'===_0x468bd5&&isNaN(parseFloat(_0x10d6c0))){const _0x204db6=_0x16a904['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x16a904['config']['get']('fontSize.options'))['find'](_0x4b4dc7=>_0x4b4dc7['model']==_0x10d6c0);return _0x366c61+'\x20('+(_0x204db6?_0x53ffeb(_0x204db6['title'])['toLowerCase']():_0x10d6c0)+')';}return _0x366c61+'\x20('+_0x10d6c0+')';}class nt extends _0x371cc0{['_headingOptions'];['afterInit'](){const _0x20030a=this['editor'];if(!_0x20030a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x20030a['config']['get']('heading.options');const _0x4f7e72=_0x20030a['locale'],_0x183b19=_0x20030a['plugins']['get']('TrackChangesEditing');_0x183b19['enableDefaultAttributesIntegration']('heading');for(const _0x177612 of this['_headingOptions'])'paragraph'!=_0x177612['model']&&_0x183b19['descriptionFactory']['registerElementLabel'](_0x177612['model'],_0x39d8dd=>{const _0x360b8d=this['_getHeadingLevel'](_0x177612['model']);return null!==_0x360b8d?_0x595b17(_0x39d8dd,_0x360b8d):_0x22310a(_0x39d8dd,_0x177612['title']);});function _0x595b17(_0x3cea1b,_0x44d08a){return o(_0x4f7e72,'ELEMENT_HEADING',[_0x3cea1b,_0x44d08a]);}function _0x22310a(_0x150a61,_0x3b1273){return o(_0x4f7e72,'ELEMENT_HEADING_CUSTOM',[_0x150a61,_0x3b1273]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1824a6=this['editor'],_0x330e67=_0x1824a6['locale'];function _0x6d8649(_0x5194e9,_0x114251){return o(_0x330e67,'ELEMENT_HEADING_CUSTOM',[_0x5194e9,_0x114251]);}_0x1824a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1723bc=>{if('formatBlock'!=_0x1723bc['type'])return;const {data:_0x529ef9}=_0x1723bc;if(_0x529ef9&&'heading'==_0x529ef9['commandName']){const _0x4f5644=_0x529ef9['commandParams'][0x0]['value'],_0x557245=this['_getHeadingLevel'](_0x4f5644);if(null!==_0x557245)return{'type':'format','content':o(_0x330e67,'*Change\x20to:*\x20%0',(_0x4346de=0x1,_0x2c16a8=_0x557245,o(_0x330e67,'ELEMENT_HEADING',[_0x4346de,_0x2c16a8])))};const _0x404c53=this['_headingOptions']['find'](_0x4ade75=>_0x4ade75['model']===_0x4f5644)['title'];return{'type':'format','content':o(_0x330e67,'*Change\x20to:*\x20%0',_0x6d8649(0x1,_0x404c53))};}var _0x4346de,_0x2c16a8;});}['_getHeadingLevel'](_0x30a159){const _0x5adc43=_0x30a159['match'](/^heading(\d+)/);if(_0x5adc43)return _0x5adc43[0x1];const _0x125d50=this['_headingOptions']?.['find'](_0x32543a=>_0x32543a['model']==_0x30a159);if(_0x125d50&&_0x125d50['view']){const _0x5b0355=_0x125d50['view'],_0x424e35=(_0x5b0355['name']??_0x5b0355)['match'](/^h(\d+)/);if(_0x424e35)return _0x424e35[0x1];}return null;}}class it extends _0x371cc0{['afterInit'](){const _0x8568fb=this['editor'];if(!_0x8568fb['plugins']['has']('HighlightEditing'))return;const _0x54af2b=_0x8568fb['plugins']['get']('TrackChangesEditing'),_0x4c5223=_0x8568fb['locale'];_0x54af2b['enableDefaultAttributesIntegration']('highlight'),_0x54af2b['registerInlineAttribute']('highlight'),_0x54af2b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4c5223,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20d1a7=this['editor'],_0x5ec196=_0x20d1a7['locale'];_0x20d1a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d3b7d=>{if('formatInline'!=_0x2d3b7d['type'])return;const {data:_0x27aa80}=_0x2d3b7d;if(_0x27aa80&&'highlight'==_0x27aa80['commandName']){const _0x4bea29=_0x5ec196['t'],_0xf689de=_0x27aa80['commandParams'][0x0]['value'];if(_0xf689de){const _0x554c4b=_0x20d1a7['config']['get']('highlight.options')['find'](_0x26ab9d=>_0x26ab9d['model']==_0xf689de),_0x150c45=_0x4bea29(_0x554c4b['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ec196,'*Set\x20highlight:*\x20%0',_0x150c45),'color':{'value':_0x554c4b['color'],'title':_0x554c4b['title']}};}return{'type':'format','content':o(_0x5ec196,'*Remove\x20highlight*',o(_0x5ec196,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x371cc0{['afterInit'](){const _0x39eaa1=this['editor'];if(!_0x39eaa1['plugins']['has']('HorizontalLineEditing'))return;_0x39eaa1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x174da9=_0x39eaa1['plugins']['get']('TrackChangesEditing'),_0x19abe4=_0x39eaa1['locale'];_0x174da9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3efce7=>o(_0x19abe4,'ELEMENT_HORIZONTAL_LINE',_0x3efce7)),_0x39eaa1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x27af3e,{writer:_0x294c10,options:_0x1c8534})=>{if(!_0x1c8534['showSuggestionHighlights'])return null;const _0x250c9a=_0x294c10['createContainerElement']('div'),_0x1aa2e1=_0x294c10['createEmptyElement']('hr');return _0x294c10['addClass']('ck-horizontal-line',_0x250c9a),_0x294c10['insert'](_0x294c10['createPositionAt'](_0x250c9a,0x0),_0x1aa2e1),_0x250c9a;},'converterPriority':'high'});}}class st extends _0x371cc0{['afterInit'](){const _0x4fb525=this['editor'];if(!_0x4fb525['plugins']['has']('HtmlEmbed'))return;const _0x7a3310=_0x4fb525['plugins']['get']('TrackChangesEditing'),_0x334b3a=_0x4fb525['locale'];_0x7a3310['descriptionFactory']['registerElementLabel']('rawHtml',_0x2ce33b=>o(_0x334b3a,'ELEMENT_HTML_EMBED',_0x2ce33b)),_0x7a3310['enableDefaultAttributesIntegration']('htmlEmbed'),_0x7a3310['registerBlockAttribute']('value'),_0x7a3310['descriptionFactory']['registerDescriptionCallback'](_0x4f0e84=>{if('attribute'!=_0x4f0e84['type'])return;const {data:_0x485cf7}=_0x4f0e84;if(_0x485cf7&&'value'==_0x485cf7['key']&&_0x4f0e84['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x571b5c=o(_0x334b3a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x334b3a,'*Change\x20%0\x20content*',_0x571b5c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d6042=this['editor'],_0x23bdd7=_0x1d6042['locale'];_0x1d6042['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44191d=>{if('formatBlock'!=_0x44191d['type'])return;const {data:_0x2fcb07}=_0x44191d;if(_0x2fcb07&&'htmlEmbed'==_0x2fcb07['commandName']){const _0x50ff70=o(_0x23bdd7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x23bdd7,'*Change\x20%0\x20content*',_0x50ff70)};}});}}class ot extends _0x371cc0{['afterInit'](){const _0x3df679=this['editor'];if(!_0x3df679['plugins']['has']('ImageEditing'))return;const _0x58506e=_0x3df679['plugins']['get']('TrackChangesEditing'),_0x35a08d=_0x3df679['plugins']['get']('ImageUtils'),_0x66ecde=_0x3df679['locale'];_0x58506e['enableCommand']('insertImage'),_0x58506e['descriptionFactory']['registerElementLabel']('imageBlock',_0x582833=>o(_0x66ecde,'ELEMENT_IMAGE',_0x582833)),_0x58506e['descriptionFactory']['registerElementLabel']('imageInline',_0x395363=>o(_0x66ecde,'ELEMENT_INLINE_IMAGE',_0x395363)),_0x58506e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x66ecde,'ELEMENT_CAPTION')),_0x3df679['plugins']['has']('ImageUploadEditing')&&_0x58506e['enableCommand']('uploadImage'),_0x3df679['plugins']['has']('ImageBlockEditing')&&_0x3df679['plugins']['has']('ImageInlineEditing')&&(_0x58506e['enableCommand']('imageTypeInline',(_0x455f92,_0x4ffc1b)=>{const _0xf87312=_0x35a08d['getClosestSelectedImageElement'](_0x3df679['model']['document']['selection']);_0x3df679['model']['change'](()=>{_0x58506e['markBlockFormat'](_0xf87312,{'commandName':'imageTypeInline','commandParams':[_0x4ffc1b]},[],'convertBlockImageToInline');});}),_0x58506e['enableCommand']('imageTypeBlock',(_0xe70cdc,_0x4ce344)=>{_0x3df679['model']['change'](_0x24a527=>{let _0x19c3d7=_0x35a08d['getClosestSelectedImageElement'](_0x3df679['model']['document']['selection']),_0x44044d=_0x24a527['createRangeOn'](_0x19c3d7);const _0x242cf3=_0x46f7d2['fromPosition'](_0x44044d['start'],'toPrevious'),_0x318224=_0x46f7d2['fromPosition'](_0x44044d['end'],'toNext');_0x58506e['forceDefaultExecution'](()=>_0xe70cdc(_0x4ce344)),_0x19c3d7=_0x35a08d['getClosestSelectedImageElement'](_0x3df679['model']['document']['selection']),_0x44044d=_0x24a527['createRangeOn'](_0x19c3d7);const _0x32147f=_0x24a527['createRange'](_0x242cf3,_0x318224);_0x242cf3['detach'](),_0x318224['detach'](),_0x58506e['markBlockFormat'](_0x19c3d7,{'commandName':'imageTypeInline','commandParams':[_0x4ce344]},[],'convertInlineImageToBlock'),_0x32147f['start']['isBefore'](_0x44044d['start'])&&_0x58506e['markInsertion'](_0x24a527['createRange'](_0x32147f['start'],_0x44044d['start']),'convertInlineImageToBlock'),_0x44044d['end']['isBefore'](_0x32147f['end'])&&_0x58506e['markInsertion'](_0x24a527['createRange'](_0x44044d['end'],_0x32147f['end']),'convertInlineImageToBlock');});}),_0x58506e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x58506e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x58506e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x58506e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x58506e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x58506e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3cd87c])=>{const _0xa59032=_0x58506e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1aa1a9=_0x3cd87c['start'],_0x1b66b1=_0x3cd87c['end'];const _0x264292=_0x3df679['model']['schema']['getNearestSelectionRange'](_0x1aa1a9,'backward'),_0x555c41=_0x3df679['model']['schema']['getNearestSelectionRange'](_0x1b66b1,'forward');_0x264292['isCollapsed']&&(_0x1aa1a9=_0x264292['start']),_0x555c41['isCollapsed']&&(_0x1b66b1=_0x555c41['end']),_0xa59032([_0x3df679['model']['createRange'](_0x1aa1a9,_0x1b66b1)]);}),_0x58506e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3f3d49),_0x58506e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3f3d49)),_0x3df679['plugins']['has']('ImageCaptionEditing')&&(_0x58506e['enableCommand']('toggleImageCaption',(_0x143bd3,_0x205dc2)=>{const _0x188c3c=_0x3df679['plugins']['get']('ImageCaptionUtils');let _0x15107b=_0x35a08d['getClosestSelectedImageElement'](_0x3df679['model']['document']['selection']),_0x2c1a6c=_0x188c3c['getCaptionFromImageModelElement'](_0x15107b);_0x3df679['model']['change'](()=>{if(_0x2c1a6c)return void _0x58506e['markDeletion'](_0x3df679['model']['createRangeOn'](_0x2c1a6c));const _0x152a12=_0x35a08d['isBlockImage'](_0x15107b);_0x143bd3(_0x205dc2),_0x15107b=_0x35a08d['getClosestSelectedImageElement'](_0x3df679['model']['document']['selection']),_0x2c1a6c=_0x188c3c['getCaptionFromImageModelElement'](_0x15107b),_0x58506e['markInsertion'](_0x3df679['model']['createRangeOn'](_0x2c1a6c),_0x152a12?null:'imageCaption');});}),_0x58506e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3f3d49));const _0x4e722e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32afb6(_0x239f06,_0xa46f1a){const _0x4a4ef3=_0x4e722e['findIndex'](({type:_0x306c92,subType:_0x54223c})=>_0x239f06['type']==_0x306c92&&_0x239f06['subType']==_0x54223c),_0x48e843=_0x4e722e['findIndex'](({type:_0x226787,subType:_0x33a608})=>_0xa46f1a['type']==_0x226787&&_0xa46f1a['subType']==_0x33a608);if(_0x4a4ef3<0x0||_0x48e843<0x0)return!0x1;const _0x4bdc56=_0x239f06['getFirstRange'](),_0x328c0c=_0xa46f1a['getFirstRange']();if((0x0==_0x4a4ef3||0x1==_0x4a4ef3)&&0x2==_0x48e843&&_0x4bdc56['isIntersecting'](_0x328c0c))return!0x0;if(0x2==_0x4a4ef3&&0x3==_0x48e843){const _0x4dc0fc=_0x58506e['_findSuggestions'](_0x4bdc56,'insertion')['filter'](({suggestion:_0x137750,meta:_0x3255d0})=>_0x3255d0['isOwn']&&'convertInlineImageToBlock'==_0x137750['subType']);if(_0x4dc0fc['length']>0x1&&_0x328c0c['end']['isEqual'](_0x4bdc56['start']))return!0x0;if(0x1==_0x4dc0fc['length']&&(_0x4bdc56['start']['isEqual'](_0x328c0c['end'])||_0x4bdc56['end']['isEqual'](_0x328c0c['start'])))return!0x0;}if(0x3==_0x4a4ef3&&0x3==_0x48e843&&_0x4bdc56['start']['isBefore'](_0x328c0c['start'])){const _0x596bcc=_0x4bdc56['end']['nodeAfter'],_0x5c68e1=_0x328c0c['start']['nodeBefore'];return _0x35a08d['isBlockImage'](_0x596bcc)&&_0x596bcc===_0x5c68e1;}return!0x1;}function _0x3f3d49(_0x497e0f,_0x201839){return _0x32afb6(_0x497e0f,_0x201839)?[_0x497e0f,_0x201839]:_0x32afb6(_0x201839,_0x497e0f)?[_0x201839,_0x497e0f]:null;}_0x3df679['plugins']['has']('ImageResize')&&(_0x58506e['enableDefaultAttributesIntegration']('resizeImage'),_0x58506e['registerBlockAttribute']('resizedWidth'),_0x58506e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x66ecde,'FORMAT_IMAGE_SIZE'))),_0x3df679['plugins']['has']('ImageTextAlternativeEditing')&&(_0x58506e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x58506e['registerBlockAttribute']('alt')),_0x3df679['plugins']['has']('PictureEditing')&&(_0x58506e['registerBlockAttribute']('sources'),_0x58506e['descriptionFactory']['registerDescriptionCallback'](_0x1d5875=>{if('attribute'!=_0x1d5875['type'])return;const {data:_0x56bed3}=_0x1d5875;return _0x56bed3&&'sources'==_0x56bed3['key']?{'type':'format','content':''}:void 0x0;})),_0x3df679['plugins']['has']('ImageSizeAttributes')&&(_0x58506e['registerBlockAttribute']('width'),_0x58506e['registerBlockAttribute']('height'),_0x58506e['descriptionFactory']['registerDescriptionCallback'](_0x57c177=>{if('attribute'!=_0x57c177['type'])return;const {data:_0x3ff320}=_0x57c177;return!_0x3ff320||'width'!=_0x3ff320['key']&&'height'!=_0x3ff320['key']?void 0x0:{'type':'format','content':''};})),_0x58506e['descriptionFactory']['registerDescriptionCallback'](_0x45b898=>{if(!!_0x4e722e['find'](({type:_0x5343d8,subType:_0xd37d49})=>_0x45b898['type']==_0x5343d8&&_0x45b898['subType']==_0xd37d49))return _0x45b898['previous']?{}:void 0x0;}),_0x58506e['descriptionFactory']['registerDescriptionCallback'](_0xffce8b=>{if('insertion'==_0xffce8b['type']||'deletion'==_0xffce8b['type']){const _0x5d335e=_0xffce8b['getContainedElement']();if(_0x5d335e&&_0x5d335e['is']('element','caption'))return{'type':'insertion'==_0xffce8b['type']?'addObject':'removeObject','element':_0x5d335e,'quantity':0x1};}}),_0x58506e['descriptionFactory']['registerDescriptionCallback'](_0x478a7e=>'formatBlock'==_0x478a7e['type']&&'convertInlineImageToBlock'==_0x478a7e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x478a7e['type']&&'convertBlockImageToInline'==_0x478a7e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x58506e['descriptionFactory']['registerDescriptionCallback'](_0x125ec0=>{if('attribute'!=_0x125ec0['type'])return;const {data:_0x31c0f7}=_0x125ec0;if(!_0x31c0f7||'alt'!=_0x31c0f7['key'])return;const _0x1377e2=_0x31c0f7['newValue'];return _0x1377e2?{'type':'format','content':o(_0x66ecde,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1377e2+'\x22')}:{'type':'format','content':o(_0x66ecde,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ac9f=this['editor'],_0x582f34=_0x17ac9f['locale'];_0x17ac9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57809b=>{if('formatBlock'!=_0x57809b['type']&&'formatInline'!=_0x57809b['type'])return;const {data:_0x569493}=_0x57809b;if(_0x569493){if('imageTextAlternative'==_0x569493['commandName']){const _0x4da87c=_0x569493['commandParams'][0x0]['newValue'];return _0x4da87c?{'type':'format','content':o(_0x582f34,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4da87c+'\x22')}:{'type':'format','content':o(_0x582f34,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x569493['commandName']){const _0x12cc52=_0x569493['commandParams'][0x0]['width'];return _0x12cc52?{'type':'format','content':o(_0x582f34,'*Set\x20image\x20width:*\x20%0',_0x12cc52)}:{'type':'format','content':o(_0x582f34,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x371cc0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x321a67=this['editor']['locale'],_0x52121e=this['editor']['plugins']['get']('TrackChangesEditing');_0x52121e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x52121e['registerBlockAttribute']('src'),_0x52121e['descriptionFactory']['registerDescriptionCallback'](_0x1c561f=>{if('attribute'!=_0x1c561f['type'])return;const {data:_0x50d05c}=_0x1c561f;return _0x50d05c&&'src'==_0x50d05c['key']?_0x50d05c['newValue']&&_0x50d05c['oldValue']?{'type':'format','content':o(_0x321a67,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e6caf=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e6caf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1e6caf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e6caf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1e6caf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57608f=this['editor'],_0x41065e=_0x57608f['locale'];_0x57608f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2809b3=>{if('formatBlock'!=_0x2809b3['type']&&'formatInline'!=_0x2809b3['type'])return;const {data:_0x989d41}=_0x2809b3;if(!_0x989d41||'replaceImageSource'!=_0x989d41['commandName'])return;return{'type':'format','content':o(_0x41065e,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x371cc0{['afterInit'](){const _0x201eed=this['editor'];if(!_0x201eed['plugins']['has']('ImageStyleEditing'))return;const _0x4eddb0=_0x201eed['plugins']['get']('TrackChangesEditing'),_0x47891e=_0x201eed['plugins']['get']('ImageUtils'),_0x333a3b={};_0x4eddb0['enableCommand']('imageStyle',(_0x327dc2,_0x549570)=>{const _0x46a109=_0x201eed['plugins']['get']('Users')['me'],_0x488f01=_0x201eed['commands']['get']('imageStyle');let _0x2c71e9=_0x47891e['getClosestSelectedImageElement'](_0x201eed['model']['document']['selection']),_0x45106e=_0x201eed['model']['createRangeOn'](_0x2c71e9),_0x86b15=_0x488f01['value'];if(_0x86b15==_0x549570['value'])return;const _0x250f0b={'commandName':'imageStyle','commandParams':[_0x549570],'formatGroupId':_0x1ecb7a()};_0x201eed['model']['change'](()=>{if(_0x4eddb0['getSuggestions']()['filter'](_0x290c5b=>_0x290c5b['isInContent']&&_0x46a109==_0x290c5b['author']&&('formatBlock'==_0x290c5b['type']||'formatInline'==_0x290c5b['type'])&&('imageStylePreApply'==_0x290c5b['subType']||'imageStylePostApply'==_0x290c5b['subType'])&&_0x290c5b['getFirstRange']()['isEqual'](_0x45106e))['forEach'](_0x35e7e8=>_0x4eddb0['discardSuggestion'](_0x35e7e8['head'])),_0x2c71e9=_0x47891e['getClosestSelectedImageElement'](_0x201eed['model']['document']['selection']),_0x45106e=_0x201eed['model']['createRangeOn'](_0x2c71e9),_0x488f01['refresh'](),_0x201eed['commands']['get']('imageTypeInline')['refresh'](),_0x201eed['commands']['get']('imageTypeBlock')['refresh'](),_0x86b15=_0x488f01['value'],_0x86b15!=_0x549570['value'])return _0x47891e['isInlineImage'](_0x2c71e9)&&_0x488f01['shouldConvertImageType'](_0x549570['value'],_0x2c71e9)?(_0x327dc2({..._0x549570,'setImageSizes':!0x1}),_0x2c71e9=_0x47891e['getClosestSelectedImageElement'](_0x201eed['model']['document']['selection']),void _0x4eddb0['markBlockFormat'](_0x2c71e9,{..._0x250f0b,'commandReversedParams':[{'value':_0x86b15||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x47891e['isBlockImage'](_0x2c71e9)?_0x4eddb0['markBlockFormat'](_0x2c71e9,_0x250f0b,[],'imageStylePostApply'):_0x4eddb0['markInlineFormat'](_0x45106e,_0x250f0b,'imageStylePostApply'));});});for(const _0x18c180 of _0x201eed['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x333a3b[_0x18c180['name']]=_0x18c180['title']['toLowerCase']();_0x4eddb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4eddb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4eddb0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4eddb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5721ba])=>{_0x47891e['setImageNaturalSizeAttributes'](_0x5721ba['getContainedElement']());}),_0x4eddb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d5b50,_0x39d85f)=>{_0x4eddb0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d5b50,{'commandName':_0x39d85f['commandName'],'commandParams':_0x39d85f['commandReversedParams']});}),_0x4eddb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x31333b,_0x3c6cbf){if(_0x3d4ac7(_0x31333b,_0x3c6cbf))return[_0x31333b,_0x3c6cbf];if(_0x3d4ac7(_0x3c6cbf,_0x31333b))return[_0x3c6cbf,_0x31333b];return null;});const _0x42b3e9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d4ac7(_0x483c6a,_0x2c27b8){const _0x330848=_0x42b3e9['findIndex'](({type:_0x11bece,subType:_0x9c88ab})=>_0x483c6a['type']==_0x11bece&&_0x483c6a['subType']==_0x9c88ab),_0x11818f=_0x42b3e9['findIndex'](({type:_0x1e92f4,subType:_0x2a44c7})=>_0x2c27b8['type']==_0x1e92f4&&_0x2c27b8['subType']==_0x2a44c7);if(_0x330848<0x0||_0x11818f<0x0)return!0x1;const _0x18467b=_0x483c6a['getFirstRange'](),_0x24d222=_0x2c27b8['getFirstRange']();if((0x0==_0x330848||0x1==_0x330848)&&0x2==_0x11818f&&_0x18467b['isIntersecting'](_0x24d222))return!0x0;if(0x2==_0x330848&&0x3==_0x11818f){const _0x21cdf7=_0x4eddb0['_findSuggestions'](_0x18467b,'insertion')['filter'](({suggestion:_0x2b298e,meta:_0x2f161d})=>_0x2f161d['isOwn']&&'convertInlineImageToBlock'==_0x2b298e['subType']);if(_0x21cdf7['length']>0x1&&_0x24d222['end']['isEqual'](_0x18467b['start']))return!0x0;if(0x1==_0x21cdf7['length']&&(_0x18467b['start']['isEqual'](_0x24d222['end'])||_0x18467b['end']['isEqual'](_0x24d222['start'])))return!0x0;}if(0x3==_0x330848&&0x3==_0x11818f&&_0x18467b['start']['isBefore'](_0x24d222['start'])){const _0x457bd2=_0x18467b['end']['nodeAfter'],_0xd2b877=_0x24d222['start']['nodeBefore'];return _0x47891e['isBlockImage'](_0x457bd2)&&_0x457bd2===_0xd2b877;}return!0x1;}_0x201eed['model']['document']['registerPostFixer'](()=>{let _0xbfa106=!0x1;const _0x187a1b=Array['from'](_0x201eed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4dd508,data:_0x2b79a5}of _0x187a1b){const {group:_0x5df617,type:_0x15f957,subType:_0x5aedb8,id:_0x3c6620}=_0x4eddb0['_splitMarkerName'](_0x4dd508);if('suggestion'==_0x5df617&&_0x4eddb0['hasSuggestion'](_0x3c6620)){if('formatBlock'==_0x15f957&&('imageStylePreApply'==_0x5aedb8||'imageStylePostApply'==_0x5aedb8)){const _0x210100=_0x4eddb0['getSuggestion'](_0x3c6620);if(_0x2b79a5['newRange']){const _0x5b6e3f=_0x210100['getFirstRange']()['getContainedElement']();if(_0x47891e['isBlockImage'](_0x5b6e3f))continue;_0x4eddb0['discardSuggestion'](_0x210100),_0xbfa106=!0x0;}}if('insertion'==_0x15f957&&'imageCaption'==_0x5aedb8&&!_0x2b79a5['newRange']){const _0x17abb7=_0x4eddb0['getSuggestion'](_0x3c6620);_0x17abb7['next']&&_0x17abb7['next']['isInContent']&&(_0x4eddb0['discardSuggestion'](_0x17abb7['next']),_0xbfa106=!0x0);}}}return _0xbfa106;}),this['_registerLegacyDescription'](_0x333a3b);}['_registerLegacyDescription'](_0x4c1308){const _0x505832=this['editor'],_0x286f01=_0x505832['locale'];_0x505832['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9679=>{if('formatBlock'!=_0x1d9679['type']&&'formatInline'!=_0x1d9679['type'])return;const {data:_0x5a4b0a}=_0x1d9679;if(!_0x5a4b0a||'imageStyle'!=_0x5a4b0a['commandName'])return;const _0x2be540=_0x5a4b0a['commandParams'][0x0]['value'];return _0x1220bd('side'===_0x2be540?o(_0x286f01,'FORMAT_SIDE_IMAGE'):_0x4c1308[_0x2be540]||_0x2be540);function _0x1220bd(_0x49588e){return{'type':'format','content':o(_0x286f01,'*Format:*\x20%0',_0x49588e)};}});}}class ct extends _0x371cc0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3fcb3e){super(_0x3fcb3e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x24c3a2=this['editor'],_0x544506=_0x24c3a2['commands']['get']('importWord'),_0x2c64ae=_0x24c3a2['commands']['get']('trackChanges');_0x544506&&(_0x544506['on']('execute',(_0x4f1a7c,[,_0x1d0447])=>{this['_trackChangesValueDuringImport']=_0x2c64ae['value'],_0x1d0447['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x544506,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x544506,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c64ae['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x24c3a2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x7cfe5b,_0x301f35){const {suggestions:_0x334a12}=_0x301f35,_0x1bf9e9=this['editor']['commands']['get']('trackChanges'),_0x31f8df=_0x1bf9e9['value'];this['_trackChangesValueDuringImport']!==_0x31f8df&&(_0x1bf9e9['execute'](),this['_trackChangesExecuted']=!0x0),_0x334a12&&_0x334a12['forEach'](({id:_0x2ec36c,type:_0x84cb75,author:_0x4bec5f,created_at:_0x222fab})=>{const _0x52a447={'id':_0x2ec36c,'type':_0x84cb75,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4bec5f,'createdAt':_0x222fab?new Date(_0x222fab):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x52a447);});}}class ut extends _0x371cc0{['afterInit'](){const _0x5561f9=this['editor'],_0x4fe71=_0x5561f9['plugins']['get']('TrackChangesEditing');if(_0x5561f9['plugins']['has']('IndentEditing')&&(_0x4fe71['enableCommand']('indent'),_0x4fe71['enableCommand']('outdent')),_0x5561f9['plugins']['has']('IndentBlock')){for(const _0x32d6a2 of['indentBlock','outdentBlock'])_0x4fe71['enableDefaultAttributesIntegration'](_0x32d6a2);}const _0x3b832e=_0x5561f9['locale'];_0x4fe71['registerBlockAttribute']('blockIndent'),_0x4fe71['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3b832e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9ffb1b=this['editor'],_0x2ebd55=_0x9ffb1b['locale'],_0x2cb058=_0x9ffb1b['plugins']['get']('TrackChangesEditing');_0x2cb058['descriptionFactory']['registerDescriptionCallback'](_0x40d6c6=>{if('formatBlock'!=_0x40d6c6['type'])return;const {data:_0x21e185}=_0x40d6c6;if(!_0x21e185)return;if('indentBlock'!=_0x21e185['commandName']&&'outdentBlock'!=_0x21e185['commandName'])return;const _0x8a0ec8=_0x40d6c6['getItems']()[0x0],_0x5a59cf=_0x2cb058['descriptionFactory']['getItemLabel'](_0x8a0ec8);return'indentBlock'==_0x21e185['commandName']?{'type':'format','content':o(_0x2ebd55,'*Indent:*\x20%0',_0x5a59cf)}:'outdentBlock'==_0x21e185['commandName']?{'type':'format','content':o(_0x2ebd55,'*Outdent:*\x20%0',_0x5a59cf)}:void 0x0;});}}class ft extends _0x371cc0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x371cc0{['afterInit'](){const _0xf6c559=this['editor'];if(!_0xf6c559['plugins']['has']('LinkEditing'))return;const _0x2d613c=_0xf6c559['plugins']['get']('TrackChangesEditing'),_0x25ab9c=_0xf6c559['commands']['get']('link');_0x2d613c['enableDefaultAttributesIntegration']('link'),_0x2d613c['enableDefaultAttributesIntegration']('unlink'),_0x2d613c['registerInlineAttribute']('linkHref');for(const _0x469fe3 of _0x25ab9c['manualDecorators'])_0x2d613c['registerInlineAttribute'](_0x469fe3['id']),_0x2d613c['descriptionFactory']['registerAttributeLabel'](_0x469fe3['id'],'link\x20('+_0x469fe3['label']['toLowerCase']()+')');_0x2d613c['descriptionFactory']['registerDescriptionCallback'](_0x25193d=>{if('attribute'!=_0x25193d['type'])return;const {data:_0x305fea}=_0x25193d;if(!_0x305fea||'linkHref'!=_0x305fea['key'])return;const _0x5dcde7=_0x305fea['newValue'],_0x368acb=_0xf6c559['locale'];return{'type':'format','content':null==_0x5dcde7?o(_0x368acb,'*Remove\x20link*'):o(_0x368acb,'*Set\x20link:*\x20%0','\x22'+_0x5dcde7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207da0=this['editor'],_0x4f7ab1=_0x207da0['locale'];_0x207da0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x303f3c=>{if('formatInline'!=_0x303f3c['type'])return;const {data:_0x5da22d}=_0x303f3c;if(_0x5da22d){if('link'==_0x5da22d['commandName']){const _0x2ebb7f=_0x5da22d['commandParams'][0x0];return{'type':'format','content':o(_0x4f7ab1,'*Set\x20link:*\x20%0','\x22'+_0x2ebb7f+'\x22')};}return'unlink'==_0x5da22d['commandName']?{'type':'format','content':o(_0x4f7ab1,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x371cc0{['afterInit'](){const _0x3a9d58=this['editor'],_0x114e98=_0x3a9d58['locale'];if(!_0x3a9d58['plugins']['has']('LegacyListEditing'))return;const _0x2bc015=_0x3a9d58['plugins']['get']('TrackChangesEditing'),_0x41dcdc=_0x3a9d58['plugins']['has']('LegacyTodoListEditing');function _0x1c2e27(_0x4141e4){return()=>{const _0xedf6a=_0x3a9d58['model']['document']['selection'],_0x22437d=_0x3a9d58['commands']['get'](_0x4141e4);if(_0x22437d['value'])return void _0x3a9d58['execute']('paragraph',{});const _0x19c502=_0x4141e4['slice'](0x0,-0x4),_0x3333ab=function(_0x47e3bf,_0x2f8cd5,_0x49391c){let _0x258a27=Array['from'](_0x47e3bf)['filter'](_0x347fb1=>function(_0x4178b8,_0x468f6f){return _0x468f6f['checkChild'](_0x4178b8['parent'],'listItem')&&!_0x468f6f['isObject'](_0x4178b8);}(_0x347fb1,_0x49391c));_0x258a27=_0x258a27['filter'](_0x123955=>!_0x123955['is']('element','listItem')||_0x123955['getAttribute']('listType')!=_0x2f8cd5);const _0x7ef80d=new Set();for(const _0x2129d2 of _0x258a27)_0x2129d2['is']('element','listItem')?_0x7ef80d['add'](Le(_0x2129d2)):_0x7ef80d['add'](_0x2129d2);return Array['from'](_0x7ef80d);}(_0xedf6a['getSelectedBlocks'](),_0x19c502,_0x3a9d58['model']['schema']);_0x3a9d58['model']['change'](()=>{for(const _0x36dc90 of _0x3333ab)_0x2bc015['markBlockFormat'](_0x36dc90,{'commandName':_0x4141e4,'commandParams':[{'forceValue':!_0x22437d['value']}],'formatGroupId':'blockName'},Ee(_0x36dc90));});};}function _0xc3363(_0x54ff5f){return()=>{const _0x2383af=function(_0x5983fd){let _0x3aff6a=Array['from'](_0x5983fd);const _0x43b5ca=_0x3aff6a['findIndex'](_0x4b0b15=>'listItem'!=_0x4b0b15['name']);return _0x43b5ca>-0x1&&(_0x3aff6a=_0x3aff6a['slice'](0x0,_0x43b5ca)),_0x3aff6a;}(_0x3a9d58['model']['document']['selection']['getSelectedBlocks']()),_0x143816=_0x3a9d58['model']['createRange'](_0x3a9d58['model']['createPositionAt'](_0x2383af[0x0],'before'),_0x3a9d58['model']['createPositionAt'](_0x2383af[_0x2383af['length']-0x1],'end'));_0x3a9d58['model']['change'](()=>{_0x2bc015['markBlockFormat'](_0x143816,{'commandName':_0x54ff5f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4e55ec){const _0x4d1b95=new Set();for(const _0xcb0b78 of _0x4e55ec){let _0x5c5844=_0xcb0b78['nextSibling'];for(;_0x5c5844&&_0x5c5844['getAttribute']('listIndent')>_0xcb0b78['getAttribute']('listIndent');)_0x4d1b95['add'](_0x5c5844),_0x5c5844=_0x5c5844['nextSibling'];}return Array['from'](_0x4d1b95);}(_0x2383af));});};}_0x2bc015['enableCommand']('numberedList',_0x1c2e27('numberedList')),_0x2bc015['enableCommand']('bulletedList',_0x1c2e27('bulletedList')),_0x41dcdc&&_0x2bc015['enableCommand']('todoList',_0x1c2e27('todoList')),_0x2bc015['enableCommand']('indentList',_0xc3363('indentList')),_0x2bc015['enableCommand']('outdentList',_0xc3363('outdentList')),_0x41dcdc&&_0x2bc015['enableCommand']('checkTodoList',()=>{const _0x30602c=_0x3a9d58['commands']['get']('checkTodoList'),_0x40642b=Array['from'](_0x30602c['_selectedElements']);_0x40642b['filter'](_0x434691=>_0x434691['getAttribute']('todoListChecked')!=_0x30602c['value']),_0x3a9d58['model']['change'](()=>{for(const _0x54feea of _0x40642b)_0x2bc015['markBlockFormat'](_0x54feea,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x30602c['value']}]});});}),_0x2bc015['descriptionFactory']['registerElementLabel']('listItem',_0x55e981=>o(_0x114e98,'ELEMENT_LIST_ITEM',_0x55e981)),_0x2bc015['descriptionFactory']['registerDescriptionCallback'](_0x2f2b37=>{if('formatBlock'!=_0x2f2b37['type']&&'formatInline'!=_0x2f2b37['type'])return;const {data:_0x5ca502}=_0x2f2b37;if(_0x5ca502){if('numberedList'==_0x5ca502['commandName']||'bulletedList'==_0x5ca502['commandName']||'todoList'==_0x5ca502['commandName'])switch(_0x5ca502['commandName']['replace']('List','')){case'bulleted':return _0x434a48(o(_0x114e98,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x434a48(o(_0x114e98,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x434a48(o(_0x114e98,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5ca502['commandName'])return{'type':'format','content':o(_0x114e98,'*Indent:*\x20%0',o(_0x114e98,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5ca502['commandName'])return{'type':'format','content':o(_0x114e98,'*Outdent:*\x20%0',o(_0x114e98,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5ca502['commandName'])return _0x5ca502['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x114e98,'*Check\x20item*')}:{'type':'format','content':o(_0x114e98,'*Uncheck\x20item*')};}function _0x434a48(_0x58ce5a){return{'type':'format','content':o(_0x114e98,'*Change\x20to:*\x20%0',_0x58ce5a)};}});}}function Le(_0x47fae1){const _0xa34d54=_0x47fae1['getAttribute']('listIndent');if(0x0==_0xa34d54)return _0x47fae1;let _0xbfcf3b=_0x47fae1;for(;_0x47fae1['previousSibling']&&_0x47fae1['previousSibling']['is']('element','listItem');){const _0x562d02=_0x47fae1['previousSibling']['getAttribute']('listIndent');if(_0x562d02==_0xa34d54)_0xbfcf3b=_0x47fae1['previousSibling'];else{if(_0x562d02<_0xa34d54)break;}_0x47fae1=_0x47fae1['previousSibling'];}return _0xbfcf3b;}function Ee(_0x512eeb){const _0x4878aa=[];if(_0x512eeb['is']('element','listItem')&&_0x512eeb['getAttribute']('listIndent')>0x0){let _0x374cc9=_0x512eeb['nextSibling'];for(;_0x374cc9&&'listItem'==_0x374cc9['name']&&_0x374cc9['getAttribute']('listIndent')==_0x512eeb['getAttribute']('listIndent');)_0x4878aa['push'](_0x374cc9),_0x374cc9=_0x374cc9['nextSibling'];}return _0x4878aa;}class Q extends _0x371cc0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x14cce7=this['editor']['config']['get']('list.properties'),_0x15b20d=this['editor']['plugins']['get']('TrackChangesEditing');_0x14cce7['styles']&&_0x15b20d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x14cce7['reversed']&&_0x15b20d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x14cce7['startIndex']&&_0x15b20d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x15b20d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xd51ffb,_0x147870={}){const _0x10a085=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39eee7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x10a085['markMultiRangeBlockFormat'](_0x39eee7,{'commandName':'listStyle','commandParams':[{'type':_0x147870['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2e444e,_0x284337={}){const _0x32f308=this['editor']['plugins']['get']('TrackChangesEditing'),_0x272b19=this['_getSuggestionBlocks'](_0x50d496=>_0x50d496['is']('element','listItem')&&'numbered'===_0x50d496['getAttribute']('listType'));if(_0x272b19['length']<0x1)return;const _0x1cb9a4=_0x272b19['map'](_0x1f961b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f961b,'before'),this['editor']['model']['createPositionAt'](_0x1f961b,0x0)));this['editor']['model']['change'](()=>{_0x32f308['markMultiRangeBlockFormat'](_0x1cb9a4,{'commandName':'listReversed','commandParams':[{'reversed':_0x284337['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1ae473,_0x4d30ff={}){const _0x2a7e5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40f356=this['_getSuggestionBlocks'](_0x33d3e2=>_0x33d3e2['is']('element','listItem')&&'numbered'===_0x33d3e2['getAttribute']('listType'));if(_0x40f356['length']<0x1)return;const _0x5b3ba6=_0x40f356['map'](_0x151939=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x151939,'before'),this['editor']['model']['createPositionAt'](_0x151939,0x0)));this['editor']['model']['change'](()=>{_0x2a7e5c['markMultiRangeBlockFormat'](_0x5b3ba6,{'commandName':'listStart','commandParams':[{'startIndex':_0x4d30ff['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2465a8){if('formatBlock'!=_0x2465a8['type']&&'formatInline'!=_0x2465a8['type'])return;const _0xb96ed2=this['editor']['locale'],{data:_0x3fcbc8}=_0x2465a8;if(!_0x3fcbc8)return;let _0xaf173f,_0x423038;switch(_0x3fcbc8['commandName']){case'listStyle':_0xaf173f='*Change\x20to:*\x20%0',_0x423038={'type':'format','content':o(_0xb96ed2,_0xaf173f,o(_0xb96ed2,this['_getTranslationKeyForListStyle'](_0x3fcbc8['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaf173f=_0x3fcbc8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x423038={'type':'format','content':o(_0xb96ed2,_0xaf173f)};break;case'listStart':_0xaf173f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x423038={'type':'format','content':o(_0xb96ed2,_0xaf173f,_0x3fcbc8['commandParams'][0x0]['startIndex'])};}return _0x423038;}['_getSuggestionBlocksForListStyle'](){const _0x50b35c=this['editor']['plugins']['get']('LegacyListUtils');let _0x467bbb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x467bbb[0x0]?.['is']('element','listItem')&&_0x467bbb['unshift'](..._0x50b35c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x467bbb[_0x467bbb['length']-0x1]?.['is']('element','listItem')&&_0x467bbb['push'](..._0x50b35c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x467bbb=[...new Set(_0x467bbb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x467bbb=_0x467bbb['filter'](_0x3e9930=>_0x3e9930['is']('element','listItem'))),_0x467bbb;}['_getSuggestionBlocks'](_0x50f66a){const _0x361378=this['editor']['plugins']['get']('LegacyListUtils');let _0x739247=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x50f66a)['map'](_0x147f44=>{const _0x1f87e4=this['editor']['model']['createPositionAt'](_0x147f44,0x0);return[..._0x361378['getSiblingNodes'](_0x1f87e4,'backward'),..._0x361378['getSiblingNodes'](_0x1f87e4,'forward')];})['flat']();return _0x739247=[...new Set(_0x739247)],_0x739247;}['_getTranslationKeyForListStyle'](_0x17781e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x17781e)||'default')['toUpperCase']()+'_LIST_'+_0x17781e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x371cc0{['afterInit'](){const _0x3084ad=this['editor'];if(!_0x3084ad['plugins']['has']('MediaEmbedEditing'))return;const _0x9c33e0=_0x3084ad['plugins']['get']('TrackChangesEditing'),_0x1840ea=_0x3084ad['locale'];_0x9c33e0['enableCommand']('mediaEmbed'),_0x9c33e0['descriptionFactory']['registerElementLabel']('media',_0x525972=>o(_0x1840ea,'ELEMENT_MEDIA',_0x525972)),_0x3084ad['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x55ec19,{writer:_0x2c9b80,options:_0x4fbf42})=>{if(_0x4fbf42['showSuggestionHighlights'])return _0x2c9b80['createEmptyElement']('div');},'converterPriority':'high'}),_0x3084ad['data']['downcastDispatcher']['on']('attribute:url:media',(_0x6b539f,_0x4e8839,_0x429a39)=>{_0x429a39['options']['showSuggestionHighlights']&&_0x6b539f['stop']();},{'priority':'high'});}}class mt extends _0x371cc0{['afterInit'](){const _0x2f31ed=this['editor'];_0x2f31ed['plugins']['has']('MentionEditing')&&_0x2f31ed['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x371cc0{['afterInit'](){const _0x2715d5=this['editor'];if(!_0x2715d5['plugins']['has']('MergeFieldsEditing'))return;const _0x52db67=_0x2715d5['plugins']['get']('TrackChangesEditing'),_0x2b2aab=_0x2715d5['locale'];_0x52db67['enableCommand']('insertMergeField'),_0x52db67['enableCommand']('insertMergeFieldBlock'),_0x52db67['enableCommand']('insertMergeFieldImage'),_0x52db67['descriptionFactory']['registerElementLabel']('mergeField',_0x3ff126=>o(_0x2b2aab,'ELEMENT_MERGE_FIELD',_0x3ff126)),_0x52db67['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xbbc3be=>o(_0x2b2aab,'ELEMENT_MERGE_FIELD',_0xbbc3be)),_0x52db67['descriptionFactory']['registerDescriptionCallback'](_0x2365f5=>{if('insertion'!=_0x2365f5['type']&&'deletion'!=_0x2365f5['type'])return;const _0x137e14=_0x2365f5['getContainedElement']();if(null==_0x137e14)return;const _0x4a60af=_0x2715d5['plugins']['get']('MergeFieldsEditing');let _0x5caeb0;switch(_0x4a60af['getMergeFieldType'](_0x137e14)){case null:return;case'image':{const _0xf06515=_0x4a60af['unwrapAffixes'](_0x137e14['getAttribute']('src'));_0x5caeb0=_0x4a60af['getLabel'](_0xf06515)||_0xf06515;break;}default:{const _0xac3f2f=_0x137e14['getAttribute']('id');_0x5caeb0=_0x4a60af['getLabel'](_0xac3f2f)||_0xac3f2f;break;}}return'insertion'==_0x2365f5['type']?{'type':'insertion','content':o(_0x2b2aab,'*Insert:*\x20%0','\x22'+_0x5caeb0+'\x22\x20'+o(_0x2b2aab,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2b2aab,'*Remove:*\x20%0','\x22'+_0x5caeb0+'\x22\x20'+o(_0x2b2aab,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x371cc0{['afterInit'](){const _0x4cc85c=this['editor'],_0x543e09=_0x4cc85c['plugins']['get']('TrackChangesEditing');_0x4cc85c['plugins']['has']('MultiLevelList')&&(_0x543e09['enableDefaultAttributesIntegration']('multiLevelList'),_0x543e09['registerBlockAttribute']('listMarkerStyle'),_0x543e09['descriptionFactory']['registerDescriptionCallback'](_0x25e8b3=>this['handleDescriptions'](_0x25e8b3)));}['handleDescriptions'](_0x4682ef){const _0x1946b6=this['editor']['locale'],{data:_0x743724}=_0x4682ef,_0x34d4f1={'type':'format','content':''};if(_0x743724&&'listMarkerStyle'==_0x743724['key']){if(!_0x743724['oldValue'])return{'type':'format','content':o(_0x1946b6,'*Set\x20format:*\x20%0',o(_0x1946b6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x743724['newValue']+')'};if(!_0x743724['newValue']){let _0x3d62b2=_0x4682ef['head'];for(;_0x3d62b2;){if(_0x3d62b2['data']&&'listType'==_0x3d62b2['data']['key']&&_0x3d62b2['data']['newValue'])return _0x34d4f1;_0x3d62b2=_0x3d62b2['next'];}return{'type':'format','content':o(_0x1946b6,'*Remove\x20format:*\x20%0',o(_0x1946b6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x743724['oldValue']+')'};}}}}class kt extends _0x371cc0{['afterInit'](){const _0x5ed964=this['editor'];if(!_0x5ed964['plugins']['has']('PageBreakEditing'))return;_0x5ed964['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x77b3f9=_0x5ed964['plugins']['get']('TrackChangesEditing'),_0x25fe6e=_0x5ed964['locale'];_0x77b3f9['descriptionFactory']['registerElementLabel']('pageBreak',_0x2610b7=>o(_0x25fe6e,'ELEMENT_PAGE_BREAK',_0x2610b7));}}class bt extends _0x371cc0{['afterInit'](){const _0xaa5b08=this['editor'];if(!_0xaa5b08['plugins']['has']('Paragraph'))return;const _0x1c02af=_0xaa5b08['locale'],_0x435cb9=_0xaa5b08['plugins']['get']('TrackChangesEditing');_0x435cb9['descriptionFactory']['registerElementLabel']('paragraph',_0xce726f=>o(_0x1c02af,'ELEMENT_PARAGRAPH',_0xce726f)),_0x435cb9['enableDefaultAttributesIntegration']('paragraph'),_0x435cb9['enableCommand']('insertParagraph'),_0xaa5b08['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xaa5b08),{'priority':'highest'}),_0xaa5b08['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44e974,_0x32ce52,_0xeb17a4)=>{_0xeb17a4['options']['showSuggestionHighlights']&&nr(_0xaa5b08,{'showActiveMarker':!0x1})(_0x44e974,_0x32ce52,_0xeb17a4);},{'priority':'highest'});const _0x4eeaa5=_0x435cb9['descriptionFactory'];_0x4eeaa5['registerDescriptionCallback'](_0xaba2dc=>{if('insertion'!==_0xaba2dc['type'])return;const {start:_0x445c51,end:_0x1475ce}=_0xaba2dc['getFirstRange']();if(!_0x445c51['isTouching'](_0x1475ce)||!_0x445c51['nodeAfter'])return;const _0x3e3a06=_0xaa5b08['model']['schema'],_0x2e741d=_0x445c51['nodeAfter'];return _0x3e3a06['isBlock'](_0x2e741d)&&!_0x3e3a06['isLimit'](_0x2e741d)&&_0x3e3a06['checkChild'](_0x2e741d,'$text')?{'type':'insertion','content':o(_0x1c02af,'*Insert:*\x20%0',_0x4eeaa5['getItemLabel'](_0x2e741d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4505c3=this['editor'],_0x3d67a8=_0x4505c3['locale'];_0x4505c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dcb96=>{if('formatBlock'!=_0x2dcb96['type'])return;const {data:_0x45a31b}=_0x2dcb96;return _0x45a31b&&'paragraph'==_0x45a31b['commandName']?{'type':'format','content':o(_0x3d67a8,'*Change\x20to:*\x20%0',o(_0x3d67a8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x272a0f,{showActiveMarker:_0x503ea7=!0x0}={}){return(_0x26ec58,_0x40f483,_0x5c1cdd)=>{const _0x10eafc=_0x272a0f['plugins']['get']('TrackChangesEditing'),_0x8466f0=_0x40f483['markerRange']['start'],_0x19b6ca=_0x40f483['markerRange']['end'],_0x483128=_0x272a0f['model']['schema'];if(!_0x8466f0['isTouching'](_0x19b6ca)||!_0x8466f0['nodeAfter'])return;const _0x3d463c=_0x8466f0['nodeAfter'];if(_0x483128['isBlock'](_0x3d463c)&&!_0x483128['isLimit'](_0x3d463c)&&_0x483128['checkChild'](_0x3d463c,'$text')){if(!_0x5c1cdd['consumable']['consume'](_0x40f483['markerRange'],_0x26ec58['name']))return;const {authorId:_0x56a24c}=_0x10eafc['_splitMarkerName'](_0x40f483['markerName']),_0x53b604=_0x5c1cdd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x56a24c}),_0x546885=_0x5c1cdd['mapper']['toViewPosition'](_0x19b6ca);_0x503ea7&&_0x10eafc['activeMarkers']['includes'](_0x40f483['markerName'])&&_0x5c1cdd['writer']['addClass']('ck-suggestion-marker--active',_0x53b604),_0x5c1cdd['writer']['insert'](_0x546885,_0x53b604),_0x5c1cdd['mapper']['bindElementToMarker'](_0x53b604,_0x40f483['markerName']);}};}class yt extends _0x371cc0{['afterInit'](){const _0x5e3f09=this['editor'];if(!_0x5e3f09['plugins']['has']('RemoveFormatEditing'))return;_0x5e3f09['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x388196=this['editor'];_0x388196['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe777a4=>{if('formatBlock'!=_0xe777a4['type']&&'formatInline'!=_0xe777a4['type'])return;const {data:_0x274015}=_0xe777a4;return _0x274015&&'removeFormat'==_0x274015['commandName']?{'type':'format','content':o(_0x388196['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x371cc0{['afterInit'](){const _0x105706=this['editor'];if(!_0x105706['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x116271=_0x105706['plugins']['get']('TrackChangesEditing');_0x116271['enableCommand']('goToPreviousRestrictedEditingException'),_0x116271['enableCommand']('goToNextRestrictedEditingException');const _0x2e014a=_0x105706['plugins']['get']('RestrictedEditingModeEditing');_0x2e014a['enableCommand']('trackChanges'),_0x2e014a['enableCommand']('acceptSuggestion'),_0x2e014a['enableCommand']('discardSuggestion'),_0x2e014a['enableCommand']('acceptAllSuggestions'),_0x2e014a['enableCommand']('discardAllSuggestions'),_0x2e014a['enableCommand']('acceptSelectedSuggestions'),_0x2e014a['enableCommand']('discardSelectedSuggestions');}}class St extends _0x371cc0{static get['requires'](){return[_0x315651];}['init'](){const _0x1d4d14=this['editor'],_0x9ed450=_0x1d4d14['plugins']['get']('TrackChangesEditing');_0x9ed450['enableCommand']('shiftEnter'),_0x1d4d14['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1d4d14),{'priority':'high'}),_0x1d4d14['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1d4d14),{'priority':'high'}),_0x1d4d14['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3e425e,_0x2f99eb,_0x53af14)=>{_0x53af14['options']['showSuggestionHighlights']&&je(_0x1d4d14,{'showActiveMarker':!0x1})(_0x3e425e,_0x2f99eb,_0x53af14);}),_0x9ed450['descriptionFactory']['registerElementLabel']('softBreak',_0x1514cd=>o(_0x1d4d14['locale'],'ELEMENT_LINE_BREAK',_0x1514cd));}}function je(_0x1ddad7,{showActiveMarker:_0x21c8e9=!0x0}={}){return(_0x303e7a,_0x4ab7e8,_0x4227fe)=>{const _0x40c390=_0x1ddad7['plugins']['get']('TrackChangesEditing');if(!_0x4227fe['consumable']['test'](_0x4ab7e8['markerRange'],_0x303e7a['name']))return;const _0x33daa5=_0x1ddad7['model'];for(const _0x2c9a48 of _0x4ab7e8['markerRange']['getItems']()){if(!_0x2c9a48['is']('element','softBreak'))continue;const _0x4b1f69='deletion'==_0x4ab7e8['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x53f4fc}=_0x40c390['_splitMarkerName'](_0x4ab7e8['markerName']),_0x13f22=_0x4227fe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b1f69,'data-author-id':_0x53f4fc}),_0x4ca693=_0x4227fe['mapper']['toViewPosition'](_0x33daa5['createPositionBefore'](_0x2c9a48));_0x21c8e9&&_0x40c390['activeMarkers']['includes'](_0x4ab7e8['markerName'])&&_0x4227fe['writer']['addClass']('ck-suggestion-marker--active',_0x13f22),_0x4227fe['writer']['insert'](_0x4ca693,_0x13f22),_0x4227fe['mapper']['bindElementToMarker'](_0x13f22,_0x4ab7e8['markerName']);}};}class At extends _0x371cc0{['afterInit'](){const _0x29751e=this['editor'],_0x4e9857=_0x29751e['model'],_0xa42fa0=_0x29751e['locale'];if(!_0x29751e['plugins']['has']('StandardEditingModeEditing'))return;const _0x10cbb6=_0x29751e['plugins']['get']('TrackChangesEditing'),_0x31ab2f='restrictedEditingException',_0x51ab11=_0x29751e['commands']['get'](_0x31ab2f);_0x10cbb6['enableCommand'](_0x31ab2f,(_0x28bc78,_0x374831={})=>{const _0x203288=_0x4e9857['document']['selection'];if(_0x203288['isCollapsed'])return void _0x28bc78(_0x374831);const _0x13ea33=void 0x0!==_0x374831['forceValue']?_0x374831['forceValue']:!_0x51ab11['value'];_0x4e9857['change'](()=>{const _0x266808=Array['from'](_0x203288['getRanges']());for(const _0x5c4834 of _0x266808){const _0x5c911a=_0x13ea33?[_0x5c4834]:io(_0x31ab2f,_0x5c4834,_0x4e9857);for(const _0x5020ae of _0x5c911a)_0x10cbb6['markInlineFormat'](_0x5020ae,{'commandName':_0x31ab2f,'commandParams':[{'forceValue':_0x13ea33}]});}});}),_0x10cbb6['descriptionFactory']['registerDescriptionCallback'](_0x418c41=>{if('formatBlock'!=_0x418c41['type']&&'formatInline'!=_0x418c41['type'])return;const {data:_0x11cfcd}=_0x418c41;return _0x11cfcd&&_0x11cfcd['commandName']==_0x31ab2f?_0x11cfcd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa42fa0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xa42fa0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x371cc0{['afterInit'](){const _0x407081=this['editor'];if(!_0x407081['plugins']['has']('Style')||!_0x407081['plugins']['has']('DataSchema'))return;const _0x1a4bf9=_0x407081['plugins']['get']('TrackChangesEditing'),_0x392a41=_0x407081['locale'],_0x4b5534=_0x407081['config']['get']('style')||{},_0x2d1e1e=_0x407081['plugins']['get']('GeneralHtmlSupport'),_0x2565a9=_0x407081['plugins']['get']('StyleUtils')['normalizeConfig'](_0x407081['plugins']['get']('DataSchema'),_0x4b5534['definitions']);_0x1a4bf9['enableDefaultAttributesIntegration']('style');const _0x4fc146=new Set();for(const _0x53e9b3 of _0x2565a9['block']){const _0x3414aa=_0x2d1e1e['getGhsAttributeNameForElement'](_0x53e9b3['element']);_0x4fc146['add'](_0x3414aa);}const _0x3940e1=new Set();for(const _0x98f9e3 of _0x2565a9['inline']){const _0x4e4740=_0x2d1e1e['getGhsAttributeNameForElement'](_0x98f9e3['element']);_0x3940e1['add'](_0x4e4740);for(const _0x13b8b1 of _0x98f9e3['ghsAttributes'])_0x3940e1['add'](_0x13b8b1);}for(const _0x3af509 of _0x4fc146)_0x1a4bf9['registerBlockAttribute'](_0x3af509),_0x1a4bf9['descriptionFactory']['registerAttributeLabel'](_0x3af509,o(_0x392a41,'FORMAT_STYLE'));for(const _0x4d0afa of _0x3940e1)_0x1a4bf9['registerInlineAttribute'](_0x4d0afa),_0x1a4bf9['descriptionFactory']['registerAttributeLabel'](_0x4d0afa,o(_0x392a41,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b5abf=this['editor'],_0x4de8bf=_0x3b5abf['locale'];_0x3b5abf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f5791=>{if('formatBlock'!=_0x3f5791['type']&&'formatInline'!=_0x3f5791['type'])return;const {data:_0x145358}=_0x3f5791;return _0x145358&&'style'===_0x145358['commandName']?_0x145358['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4de8bf,'*Set\x20format:*\x20%0',_0x145358['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4de8bf,'*Remove\x20format:*\x20%0',_0x145358['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x371cc0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3cbde9){super(_0x3cbde9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3194e6=this['editor'],_0x59eb15=_0x3194e6['model']['document']['selection'];if(!_0x3194e6['plugins']['has']('TableEditing'))return;const _0x122bd5=_0x3194e6['locale'],_0xa7abeb=_0x3194e6['plugins']['get']('TrackChangesEditing'),_0x5812f7=_0x3194e6['plugins']['get']('TableUtils');_0xa7abeb['descriptionFactory']['registerElementLabel']('table',_0x27ed29=>o(_0x122bd5,'ELEMENT_TABLE',_0x27ed29)),this['_setupColumnsRowsFixing'](),_0xa7abeb['enableCommand']('insertTable'),_0xa7abeb['enableCommand']('selectTableRow'),_0xa7abeb['enableCommand']('selectTableColumn');for(const _0x24428b of['insertTableRowAbove','insertTableRowBelow']){const _0x3b54ac=_0x3194e6['commands']['get'](_0x24428b);_0xa7abeb['enableCommand'](_0x24428b,_0x5f4cbf=>{_0x3194e6['model']['change'](_0x27c670=>{_0x5f4cbf();const _0x514fab='above'===_0x3b54ac['order'],_0xad4845=_0x5812f7['getSelectionAffectedTableCells'](_0x59eb15),_0x22edd2=_0x5812f7['getRowIndexes'](_0xad4845),_0x1288e3=_0x514fab?_0x22edd2['first']-0x1:_0x22edd2['last']+0x1,_0x19ab45=_0xad4845[0x0]['findAncestor']('table'),_0x359bec=_0x5812f7['createTableWalker'](_0x19ab45,{'startRow':_0x1288e3,'endRow':_0x1288e3}),_0x5d9763=Array['from'](_0x359bec)['map'](_0xd676f2=>_0x27c670['createRangeOn'](_0xd676f2['cell']));_0xa7abeb['markMultiRangeInsertion'](_0x5d9763,'tableRow');});});}for(const _0xdc4b70 of['insertTableColumnLeft','insertTableColumnRight']){const _0x54fcb4=_0x3194e6['commands']['get'](_0xdc4b70);_0xa7abeb['enableCommand'](_0xdc4b70,_0x1107bf=>{_0x3194e6['model']['change'](_0x37e6c1=>{_0x1107bf();const _0x283cee='left'===_0x54fcb4['order'],_0x2c7f29=_0x5812f7['getSelectionAffectedTableCells'](_0x59eb15),_0x35aa1c=_0x5812f7['getColumnIndexes'](_0x2c7f29),_0x28e79a=_0x283cee?_0x35aa1c['first']-0x1:_0x35aa1c['last']+0x1,_0x2862a6=_0x2c7f29[0x0]['findAncestor']('table'),_0x4ef3a6=_0x5812f7['createTableWalker'](_0x2862a6,{'startRow':0x0,'column':_0x28e79a,'includeAllSlots':!0x1}),_0x24e149=Array['from'](_0x4ef3a6)['map'](_0x4a002b=>_0x37e6c1['createRangeOn'](_0x4a002b['cell']));_0xa7abeb['markMultiRangeInsertion'](_0x24e149,'tableColumn');});});}for(const _0x4a27a7 of['removeTableRow','removeTableColumn']){const _0x5a4827=_0x4a27a7['substr'](0xb),_0x1f546d=_0x5a4827['toLowerCase'](),_0x4e4fba=_0x1f546d['substr'](0x0,0x3)+'span',_0x3ab933='table'+_0x5a4827,_0x15d7c8='min'+_0x5a4827,_0x35a9fe='max'+_0x5a4827;_0xa7abeb['enableCommand'](_0x4a27a7,()=>{_0x3194e6['model']['change'](_0x439aa0=>{const _0x3b285d=_0x5812f7['getSelectionAffectedTableCells'](_0x59eb15),_0x4ea9ff=_0x3b285d[0x0]['findAncestor']('table');let _0x31ec97;if('removeTableRow'==_0x4a27a7){const _0x1d6aa6=_0x5812f7['getRowIndexes'](_0x3b285d);_0x31ec97={'startRow':_0x1d6aa6['first'],'endRow':_0x1d6aa6['last'],'includeAllSlots':!0x0};}else{const _0x506e8d=_0x5812f7['getColumnIndexes'](_0x3b285d);_0x31ec97={'startColumn':_0x506e8d['first'],'endColumn':_0x506e8d['last'],'includeAllSlots':!0x0};}const _0x4ebd67=_0x5812f7['createTableWalker'](_0x4ea9ff,_0x31ec97),_0x30bb6d=Array['from'](_0x4ebd67)['map'](({cell:_0x86e031})=>_0x86e031),_0x3e3a87=Ne(_0x30bb6d['filter'](_0x5624ed=>_0x5624ed['hasAttribute'](_0x4e4fba))),_0x5ed80c=Ne(_0x30bb6d['filter'](_0x27e013=>!_0x27e013['hasAttribute'](_0x4e4fba)))['map'](_0x376595=>_0x439aa0['createRangeOn'](_0x376595)),_0x266cf3=_0xa7abeb['markMultiRangeDeletion'](_0x5ed80c,_0x3ab933);if(_0x266cf3&&('tableRow'==_0x266cf3['subType']||'tableColumn'==_0x266cf3['subType'])){const _0x1c2a97=this['_getSuggestionCoords'](_0x266cf3);for(const _0x5435f1 of _0x3e3a87){const _0x318b34=_0x439aa0['createRangeOn'](_0x5435f1),_0x59d307=_0x5812f7['getCellLocation'](_0x5435f1),_0x5af1b9=_0x5435f1['getAttribute'](_0x4e4fba)-0x1,_0x5559f6=_0x1c2a97[_0x15d7c8],_0x45d74a=_0x1c2a97[_0x35a9fe];_0x5559f6<=_0x59d307[_0x1f546d]&&_0x59d307[_0x1f546d]+_0x5af1b9<=_0x45d74a&&_0x266cf3['addRange'](_0x318b34);}}});});}function _0x3bf239(_0x182f80){const _0x1298e8=Array['from'](_0x59eb15['getRanges']())['map'](_0x27c8eb=>_0x4179c1['fromRange'](_0x27c8eb));_0x3194e6['model']['change'](_0x2781d8=>{const _0x351201=_0x2781d8['batch'];_0x182f80=_0x182f80['filter'](_0xa1f88d=>'$graveyard'!=_0xa1f88d['root']['rootName']),_0x2781d8['setSelection'](_0x182f80),_0x3194e6['commands']['get']('removeTableRow')['refresh'](),_0x3194e6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3194e6['model']['enqueueChange'](()=>{_0x3194e6['model']['enqueueChange'](_0x351201,_0x55de91=>{const _0x416e44=_0x1298e8['filter'](_0x438c87=>'$graveyard'!=_0x438c87['root']['rootName']);_0x416e44['length']>0x0&&_0x55de91['setSelection'](_0x416e44);for(const _0x3cfdb3 of _0x1298e8)_0x3cfdb3['detach']();});});});}function _0x2e6072(_0xcd176c){_0x3194e6['model']['change'](_0x4d9a0f=>{const _0x3e5432=Array['from'](_0x59eb15['getRanges']())['map'](_0x27ede4=>_0x4179c1['fromRange'](_0x27ede4)),_0x3ba408=[];for(const _0xbdac90 of _0xcd176c)for(const _0x2a1692 of _0xbdac90['getItems']({'shallow':!0x0}))_0x3ba408['push'](_0x2a1692);for(const _0x112eb of _0x3ba408)'$graveyard'!=_0x112eb['root']['rootName']&&(_0x4d9a0f['setSelection'](_0x4d9a0f['createPositionAt'](_0x112eb,0x0)),_0x3194e6['commands']['get']('removeTableColumn')['refresh'](),_0x3194e6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x24987e=_0x3e5432['filter'](_0x75876d=>'$graveyard'!=_0x75876d['root']['rootName']);_0x24987e['length']>0x0&&_0x4d9a0f['setSelection'](_0x24987e);for(const _0x223c65 of _0x3e5432)_0x223c65['detach']();});}function _0x3d220c(_0x333281,_0x64ff78){return _0x64ff78['every'](_0x37f4ce=>_0x333281['some'](_0x38c107=>_0x38c107['end']['isEqual'](_0x37f4ce['start'])||_0x37f4ce['end']['isEqual'](_0x38c107['start'])));}function _0x5cbff3(_0x56c1eb,_0x46222d){return!_0x56c1eb['some'](_0x45dcea=>_0x46222d['some'](_0x1ad1e5=>_0x45dcea['isIntersecting'](_0x1ad1e5)))&&_0x56c1eb['some'](_0x25da49=>_0x46222d['some'](_0x53eb41=>_0x25da49['end']['isTouching'](_0x53eb41['start'])));}_0x3194e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb2adfb,_0x478c46,_0x4c95c5)=>{if(!_0x4c95c5['options']['showSuggestionHighlights'])return;const _0x354e65=_0x478c46['item'];if(!_0x354e65)return;const _0x2a8bce=_0x4c95c5['mapper']['toViewElement'](_0x354e65);function _0xe41c10(_0x41dfb6){return Array['isArray'](_0x41dfb6)?_0x41dfb6:[_0x41dfb6];}_0x2a8bce&&'tableCell'===_0x354e65['name']&&_0x4a1d37(_0x2a8bce,_0x4c95c5['writer'],(_0x3c0dcd,_0x592b8b,_0x53b2f3)=>_0x53b2f3['addClass'](_0xe41c10(_0x592b8b['classes']),_0x3c0dcd),(_0x1a78d8,_0x5b7c42,_0x141711)=>_0x141711['removeClass'](_0xe41c10(_0x5b7c42['classes']),_0x1a78d8));},{'priority':'highest'}),_0xa7abeb['descriptionFactory']['registerDescriptionCallback'](_0x12fd10=>{if('insertion'!=_0x12fd10['type']&&'deletion'!=_0x12fd10['type'])return;const _0x1273f9=_0x12fd10['getContainedElement']();if(null!=_0x1273f9&&_0x1273f9['is']('element','table')){if('insertion'==_0x12fd10['type']){const _0x1f3b47=_0x12fd10['getItems']()['filter'](_0x1a6ea6=>_0x1a6ea6['is']('$textProxy'))['map'](_0x336986=>_0x336986['data']);if(_0x1f3b47['length'])return{'type':'insertion','content':o(_0x122bd5,'*Insert:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1f3b47['join']('\x20')+'\x22'))};}if('deletion'==_0x12fd10['type']){const _0x3b851d=_0x12fd10['getItems']()['filter'](_0x54a40b=>_0x54a40b['is']('$textProxy'))['map'](_0x56e965=>_0x56e965['data']);if(_0x3b851d['length'])return{'type':'deletion','content':o(_0x122bd5,'*Remove:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b851d['join']('\x20')+'\x22'))};}}}),_0xa7abeb['descriptionFactory']['registerDescriptionCallback'](_0x2dace9=>{if('tableRow'==_0x2dace9['subType']){const _0x1111b0=_0x2dace9['getItems']()['filter'](_0x4c0ee3=>_0x4c0ee3['is']('$textProxy'))['map'](_0xa6a824=>_0xa6a824['data']),_0x3d8ff9=this['_getSuggestionCoords'](_0x2dace9),_0xb3b93f=_0x3d8ff9['maxRow']-_0x3d8ff9['minRow']+0x1;if('insertion'==_0x2dace9['type'])return _0x1111b0['length']?{'type':'insertion','content':o(_0x122bd5,'*Insert:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb3b93f,'\x22'+_0x1111b0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x122bd5,'*Insert:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_ROW',_0xb3b93f))};if('deletion'==_0x2dace9['type'])return _0x1111b0['length']?{'type':'deletion','content':o(_0x122bd5,'*Remove:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb3b93f,'\x22'+_0x1111b0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x122bd5,'*Remove:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_ROW',_0xb3b93f))};}if('tableColumn'==_0x2dace9['subType']){const _0x1c7796=_0x2dace9['getItems']()['filter'](_0x36a349=>_0x36a349['is']('$textProxy'))['map'](_0x3f882e=>_0x3f882e['data']),_0x44bb1c=this['_getSuggestionCoords'](_0x2dace9),_0x5ba0d4=_0x44bb1c['maxColumn']-_0x44bb1c['minColumn']+0x1;if('insertion'==_0x2dace9['type'])return _0x1c7796['length']?{'type':'insertion','content':o(_0x122bd5,'*Insert:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5ba0d4,'\x22'+_0x1c7796['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x122bd5,'*Insert:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_COLUMN',_0x5ba0d4))};if('deletion'==_0x2dace9['type'])return _0x1c7796['length']?{'type':'deletion','content':o(_0x122bd5,'*Remove:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5ba0d4,'\x22'+_0x1c7796['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x122bd5,'*Remove:*\x20%0',o(_0x122bd5,'ELEMENT_TABLE_COLUMN',_0x5ba0d4))};}}),_0xa7abeb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3bf239),_0xa7abeb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3bf239),_0xa7abeb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2e6072),_0xa7abeb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2e6072),_0xa7abeb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d220c),_0xa7abeb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d220c),_0xa7abeb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5cbff3),_0xa7abeb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5cbff3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1c80fe=this['editor'],_0x479c3e=_0x1c80fe['model']['document']['selection'];return(_0x549f7b,_0x2b33a5)=>{_0x1c80fe['model']['change'](_0x45ed14=>{const {commandName:_0x3dff6e,commandParams:_0x1aaf58}=_0x2b33a5;let _0x37a313=_0x549f7b[0x0]['end']['nodeBefore'];_0x1aaf58&&_0x1aaf58[0x0]&&!0x1===_0x1aaf58[0x0]['forceValue']&&(_0x37a313=_0x549f7b[0x0]['start']['nodeAfter']);const _0x1b3a66=_0x45ed14['createRangeIn'](_0x37a313);if('$graveyard'==_0x1b3a66['root']['rootName'])return;const _0x7a2e2e=Array['from'](_0x479c3e['getRanges']())['map'](_0x41b3b4=>_0x4179c1['fromRange'](_0x41b3b4));_0x45ed14['setSelection'](_0x1b3a66),_0x1c80fe['commands']['get'](_0x3dff6e)['refresh'](),_0x1aaf58['push']({'forceDefaultExecution':!0x0}),_0x1c80fe['execute'](_0x3dff6e,..._0x1aaf58);const _0x5d0728=_0x7a2e2e['filter'](_0x10d6ed=>'$graveyard'!=_0x10d6ed['root']['rootName']);_0x5d0728['length']>0x0&&_0x45ed14['setSelection'](_0x5d0728);for(const _0x8c6a49 of _0x7a2e2e)_0x8c6a49['detach']();});};}['_getCoordsForCells'](_0x3064a3){const _0x3654c6=this['editor']['plugins']['get']('TableUtils');let _0x4e9380=Number['MAX_SAFE_INTEGER'],_0x474473=Number['MIN_SAFE_INTEGER'],_0x545bcc=Number['MAX_SAFE_INTEGER'],_0x32f961=Number['MIN_SAFE_INTEGER'];for(const _0x4ca06e of _0x3064a3){if('$graveyard'==_0x4ca06e['root']['rootName'])continue;const {row:_0x16427b,column:_0x4f1510}=_0x3654c6['getCellLocation'](_0x4ca06e),_0x2033ab=_0x4ca06e['hasAttribute']('rowspan')?_0x4ca06e['getAttribute']('rowspan')-0x1:0x0,_0x56b501=_0x4ca06e['hasAttribute']('colspan')?_0x4ca06e['getAttribute']('colspan')-0x1:0x0;_0x4e9380=_0x16427b<_0x4e9380?_0x16427b:_0x4e9380,_0x474473=_0x16427b+_0x2033ab>_0x474473?_0x16427b+_0x2033ab:_0x474473,_0x545bcc=_0x4f1510<_0x545bcc?_0x4f1510:_0x545bcc,_0x32f961=_0x4f1510+_0x56b501>_0x32f961?_0x4f1510+_0x56b501:_0x32f961;}return{'minRow':_0x4e9380,'maxRow':_0x474473,'minColumn':_0x545bcc,'maxColumn':_0x32f961};}['_setupColumnsRowsFixing'](){const _0x46a125=this['editor'],_0x365651=_0x46a125['plugins']['get']('TrackChangesEditing'),_0x50acf4=_0x46a125['plugins']['get']('TableUtils');_0x46a125['model']['document']['on']('change:data',()=>{const _0x5cdaa4=Array['from'](_0x46a125['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50139c,data:_0x1ebcc0}of _0x5cdaa4){const {group:_0x199985,id:_0xe305c1,subType:_0x442beb}=_0x365651['_splitMarkerName'](_0x50139c);if('suggestion'!=_0x199985)continue;if(null!=_0x1ebcc0['oldRange'])continue;const _0x5b7099=_0x365651['getSuggestion'](_0xe305c1);this['_tablePostFixingSubtypes']['includes'](_0x442beb)&&this['_tableSuggestions']['add'](_0x5b7099);}},{'priority':'low'});const _0x22598e=(_0x369a5a,_0x2d7d40)=>{let _0x57117a=!0x1;const _0x496642=_0x2d7d40['createRangeOn'](_0x369a5a),_0x14fd4c=_0x369a5a['findAncestor']('table'),_0x373d43=_0x50acf4['getCellLocation'](_0x369a5a);for(const _0x22c245 of this['_tableSuggestions']){const _0x122968=_0x22c245['subType'],_0x5df759=_0x122968['startsWith']('tablePaste'),_0x24c5d1=_0x122968['substr'](_0x5df759?0xa:0x5),_0x4f0b8e=_0x24c5d1['toLowerCase'](),_0x28acbc=_0x4f0b8e['substr'](0x0,0x3)+'span',_0x33e30f='min'+_0x24c5d1,_0x5ed346='max'+_0x24c5d1;if(!_0x22c245['isInContent'])continue;if(_0x14fd4c!=_0x22c245['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x22c245['isIntersectingWithRange'](_0x496642))continue;const _0x12023f=_0x369a5a['hasAttribute'](_0x28acbc)?_0x369a5a['getAttribute'](_0x28acbc)-0x1:0x0,_0x449516=this['_getSuggestionCoords'](_0x22c245),_0xfc3d9f=_0x449516[_0x33e30f],_0x5b6e13=_0x449516[_0x5ed346];_0xfc3d9f<=_0x373d43[_0x4f0b8e]&&_0x373d43[_0x4f0b8e]+_0x12023f<=_0x5b6e13&&(_0x22c245['addRange'](_0x496642),_0x57117a=!0x0);}return _0x57117a;};_0x46a125['model']['document']['registerPostFixer'](_0x19f6e5=>{let _0x1a0e9e=!0x1;for(const _0x3c0dd9 of _0x46a125['model']['document']['differ']['getChanges']())if('insert'==_0x3c0dd9['type']){if('tableRow'==_0x3c0dd9['name']){for(const _0x47a21d of _0x3c0dd9['position']['nodeAfter']['getChildren']())_0x1a0e9e=_0x1a0e9e||_0x22598e(_0x47a21d,_0x19f6e5);}else'tableCell'==_0x3c0dd9['name']&&(_0x1a0e9e=_0x1a0e9e||_0x22598e(_0x3c0dd9['position']['nodeAfter'],_0x19f6e5));}return _0x1a0e9e;});}['_getSuggestionCoords'](_0x1ef430){return this['_getCoordsForCells'](_0x1ef430['getRanges']()['map'](_0x5ae7c8=>_0x5ae7c8['start']['nodeAfter']));}}function Ne(_0x1670c1){return Array['from'](new Set(_0x1670c1)['values']());}class _t extends _0x371cc0{static get['requires'](){return[vt];}['afterInit'](){const _0x27649f=this['editor'],_0x4e6474=_0x27649f['model']['document']['selection'],_0x16be34=_0x27649f['locale'];if(!_0x27649f['plugins']['has']('TableEditing'))return;const _0x157272=_0x27649f['plugins']['get']('TrackChangesEditing'),_0x454a03=_0x27649f['plugins']['get']('TableUtils'),_0x44e934=_0x27649f['plugins']['get'](vt);_0x44e934['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x157272['enableCommand']('mergeTableCells',()=>{const _0x50cd7c=_0x454a03['getSelectionAffectedTableCells'](_0x27649f['model']['document']['selection']);_0x27649f['model']['change'](()=>{_0x157272['markMultiRangeBlockFormat'](_0x50cd7c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x27649f['commands']['get']('mergeTableCells')['on']('execute',(_0x5d118e,_0x211bea)=>{_0x27649f['commands']['get']('trackChanges')['value']&&(_0x211bea['length']>0x0&&_0x211bea[_0x211bea['length']-0x1]&&_0x211bea[_0x211bea['length']-0x1]['forceDefaultExecution']||_0x157272['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5d118e['stop']());},{'priority':'highest'});for(const _0xf78d8b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5d6063=_0x27649f['commands']['get'](_0xf78d8b);_0x157272['enableCommand'](_0xf78d8b,()=>{const _0x1ce268=_0x27649f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3360e4=>_0x3360e4['is']('element','tableCell')),_0x5634da=_0x5d6063['value'];_0x27649f['model']['change'](()=>{_0x157272['markMultiRangeBlockFormat']([_0x1ce268,_0x5634da],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xc5b879 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x842f78=_0x27649f['commands']['get'](_0xc5b879);_0x157272['enableCommand'](_0xc5b879,()=>{const _0x40ae74=_0x454a03['getSelectionAffectedTableCells'](_0x27649f['model']['document']['selection'])[0x0],_0x2c456b=_0x40ae74['findAncestor']('table'),{column:_0x44c7b6,row:_0x72fe27}=_0x454a03['getCellLocation'](_0x40ae74);let _0x3d31a2=[];if('horizontally'==_0x842f78['direction']){const _0x29914a=_0x454a03['createTableWalker'](_0x2c456b,{'startRow':_0x72fe27,'endRow':_0x72fe27,'includeAllSlots':!0x0});_0x3d31a2=Array['from'](_0x29914a)['map'](_0x2deca3=>_0x2deca3['cell']);}else{const _0x1fecd8=_0x454a03['createTableWalker'](_0x2c456b,{'column':_0x44c7b6,'includeAllSlots':!0x0});_0x3d31a2=Array['from'](_0x1fecd8)['map'](_0x421324=>_0x421324['cell']);}_0x27649f['model']['change'](_0x3320d9=>{_0x157272['markBlockFormat'](_0x3320d9['createRangeOn'](_0x40ae74),{'commandName':_0xc5b879,'commandParams':[]},_0x3d31a2,_0xc5b879);});});}_0x157272['descriptionFactory']['registerDescriptionCallback'](_0x10fba2=>{if('formatBlock'!=_0x10fba2['type']&&'formatInline'!=_0x10fba2['type'])return;const {data:_0x37add0}=_0x10fba2;return _0x37add0&&'mergeTableCells'==_0x37add0['commandName']?{'type':'format','content':o(_0x16be34,'*Merge\x20cells*')}:void 0x0;}),_0x157272['descriptionFactory']['registerDescriptionCallback'](_0x4669ee=>{if('formatBlock'!=_0x4669ee['type']&&'formatInline'!=_0x4669ee['type'])return;const {data:_0x3f2dac}=_0x4669ee;return _0x3f2dac?'splitTableCellVertically'==_0x3f2dac['commandName']?{'type':'format','content':o(_0x16be34,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f2dac['commandName']?{'type':'format','content':o(_0x16be34,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x167ab0=_0x44e934['_acceptFormatSuggestionCallbackFactory']();for(const _0x29d032 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x157272['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x29d032,'accept',_0x167ab0);for(const _0x53ac6c of['splitTableCellVertically','splitTableCellHorizontally'])_0x157272['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53ac6c,'accept',_0x167ab0);_0x157272['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x54378a=>{_0x27649f['model']['change'](_0x36d86d=>{const _0x51dded=Array['from'](_0x4e6474['getRanges']())['map'](_0x57ebd1=>_0x4179c1['fromRange'](_0x57ebd1));_0x36d86d['setSelection'](_0x54378a),_0x27649f['commands']['get']('mergeTableCells')['refresh'](),_0x27649f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5a7afe=_0x51dded['filter'](_0x44087a=>'$graveyard'!=_0x44087a['root']['rootName']);_0x5a7afe['length']>0x0&&_0x36d86d['setSelection'](_0x5a7afe);for(const _0x346109 of _0x51dded)_0x346109['detach']();});});for(const _0x59896d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1c8b66=_0x27649f['commands']['get'](_0x59896d);_0x1c8b66['on']('set:isEnabled',(_0x280290,_0x35ced4,_0x345447)=>{if(_0x345447){const _0x14dbc9=_0x27649f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x328c1c=>_0x328c1c['is']('element','tableCell'));this['_areMergableCells'](_0x1c8b66['value'],_0x14dbc9)||(_0x280290['return']=!0x1,_0x280290['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x39d167=this['editor']['commands']['get']('mergeTableCells'),_0x536758=this['editor']['plugins']['get']('TableUtils');if(!_0x39d167['isEnabled'])return!0x1;const _0xafa52c=_0x536758['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x552ff7 of _0xafa52c)for(const _0x2d0fe7 of _0xafa52c)if(_0x552ff7!=_0x2d0fe7&&!this['_areMergableCells'](_0x552ff7,_0x2d0fe7))return!0x1;return!0x0;}['_areMergableCells'](_0x5a9a70,_0x3ff346){const _0x54c448=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c8e8b=this['editor']['model']['createRangeOn'](_0x5a9a70),_0x504dcf=this['editor']['model']['createRangeOn'](_0x3ff346),_0x456bdf=new Set(),_0x1428c7=new Set();for(const _0x279fff of _0x54c448['getSuggestions']())if(('insertion'==_0x279fff['type']||'deletion'==_0x279fff['type']||'mergeTableCells'==_0x279fff['subType'])&&_0x279fff['isInContent']){for(const _0x4b6492 of _0x279fff['getRanges']())_0x4b6492['containsRange'](_0x3c8e8b,!0x0)&&_0x456bdf['add'](_0x279fff['type']+':'+_0x279fff['author']['id']),_0x4b6492['containsRange'](_0x504dcf,!0x0)&&_0x1428c7['add'](_0x279fff['type']+':'+_0x279fff['author']['id']);}if(_0x456bdf['size']!=_0x1428c7['size'])return!0x1;for(const _0x1fe490 of _0x456bdf)if(!_0x1428c7['has'](_0x1fe490))return!0x1;return!0x0;}}class Ct extends _0x371cc0{static get['requires'](){return[vt];}['afterInit'](){const _0x199894=this['editor'];if(!_0x199894['plugins']['has']('TableEditing'))return;const _0x568995=_0x199894['locale'],_0x18b953=_0x199894['plugins']['get']('TrackChangesEditing');_0x18b953['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x18b953['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x18b953['registerBlockAttribute']('headingRows'),_0x18b953['registerBlockAttribute']('headingColumns'),_0x18b953['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x568995,'FORMAT_HEADER_ROW')),_0x18b953['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x568995,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a609e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x506d39=this['editor']['plugins']['get']('TableUtils'),_0x15956c=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x3b8291({showActiveMarker:_0xab9470=!0x0,setDataAttribute:_0x2fd051=!0x0}={}){return(_0x520087,_0x16e94d,_0x3b75ea)=>{const {type:_0x162425,id:_0x235b14}=_0x2a609e['_splitMarkerName'](_0x16e94d['markerName']),_0x55a9cd=_0x2a609e['getSuggestion'](_0x235b14),_0x2f8078=_0x55a9cd['data'];if('formatBlock'!=_0x55a9cd['type']||!_0x2f8078||'setTableColumnHeader'!=_0x2f8078['commandName'])return;if(_0x16e94d['item'])return void _0x520087['stop']();if(!_0x3b75ea['consumable']['consume'](_0x16e94d['markerRange'],_0x520087['name']))return;const _0x5d0ad0=_0x16e94d['markerRange']['start']['nodeAfter'],_0x598596=_0x16e94d['markerRange']['end']['nodeBefore'],_0x4ca72f=_0x5d0ad0['parent']['parent'],{column:_0x5d5f92}=_0x506d39['getCellLocation'](_0x5d0ad0),{column:_0x32be38}=_0x506d39['getCellLocation'](_0x598596);for(let _0x2cbac4=_0x5d5f92;_0x2cbac4<=_0x32be38;_0x2cbac4++){const _0x3928da=_0x506d39['createTableWalker'](_0x4ca72f,{'column':_0x2cbac4,'includeAllSlots':!0x1});for(const _0x374154 of _0x3928da){const _0x4d6670=_0x374154['cell'],_0x1d4258=_0x3b75ea['mapper']['toViewElement'](_0x4d6670);_0x3b75ea['writer']['addClass']('ck-suggestion-marker-'+_0x162425,_0x1d4258),_0x2fd051&&_0x3b75ea['writer']['setAttribute']('data-suggestion',_0x235b14,_0x1d4258),_0x3b75ea['mapper']['bindElementToMarker'](_0x1d4258,_0x16e94d['markerName']),_0xab9470&&(_0x2a609e['activeMarkers']['includes'](_0x16e94d['markerName'])?_0x3b75ea['writer']['addClass']('ck-suggestion-marker--active',_0x1d4258):_0x3b75ea['writer']['removeClass']('ck-suggestion-marker--active',_0x1d4258));}}};}_0x2a609e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x15956c),_0x2a609e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x15956c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3b8291(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f1693,_0x5dc477,_0x164aff)=>{_0x164aff['options']['showSuggestionHighlights']&&_0x3b8291({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1f1693,_0x5dc477,_0x164aff);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x18a625,_0x29b660,_0x35e99b)=>{const {type:_0x9287b6,id:_0x3fd34a}=_0x2a609e['_splitMarkerName'](_0x29b660['markerName']),_0x2fafb5=_0x2a609e['getSuggestion'](_0x3fd34a),_0x571712=_0x2fafb5['data'];if('formatBlock'!=_0x2fafb5['type']||!_0x571712||'setTableColumnHeader'!=_0x571712['commandName'])return;const _0x1ca64e=_0x35e99b['mapper']['markerNameToElements'](_0x29b660['markerName']);if(_0x1ca64e){for(const _0x1ac3cb of _0x1ca64e)_0x35e99b['writer']['removeClass']('ck-suggestion-marker-'+_0x9287b6,_0x1ac3cb),_0x35e99b['writer']['removeClass']('ck-suggestion-marker--active',_0x1ac3cb),_0x35e99b['writer']['removeAttribute']('data-suggestion',_0x1ac3cb),_0x35e99b['mapper']['unbindElementFromMarkerName'](_0x1ac3cb,_0x29b660['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x453e71=this['editor'],_0x2754ec=_0x453e71['locale'];function _0x5793ab(_0x35b08c){return{'type':'format','content':o(_0x2754ec,'*Format:*\x20%0',_0x35b08c)};}_0x453e71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16c6a8=>{if('formatBlock'!=_0x16c6a8['type'])return;const {data:_0xa39591}=_0x16c6a8;if(_0xa39591){if('setTableRowHeader'==_0xa39591['commandName']){const _0x40905d=_0xa39591['commandParams'][0x0]['forceValue'];return _0x5793ab(o(_0x2754ec,_0x40905d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa39591['commandName']){const _0x5ea3ef=_0xa39591['commandParams'][0x0]['forceValue'];return _0x5793ab(o(_0x2754ec,_0x5ea3ef?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x278e57=>[_0x278e57,null]));class Nt extends _0x371cc0{static get['requires'](){return[vt];}['afterInit'](){const _0xc0e908=this['editor'];if(!_0xc0e908['plugins']['has']('TableClipboard'))return;const _0x463d6e=_0xc0e908['plugins']['get']('TrackChangesEditing'),_0x35f963=_0xc0e908['plugins']['get']('TableUtils'),_0x476efb=_0xc0e908['plugins']['get'](vt),_0x2c3d3c=_0xc0e908['plugins']['get']('TableClipboard');_0x476efb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc0e908['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc0e908['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x314c59=null;_0xc0e908['model']['on']('insertContent',(_0x54955e,_0x6f9266)=>{const [_0x49e8ee,_0x36670b]=_0x6f9266,_0xfaf6ce=_0x6f9266[_0x6f9266['length']-0x1];_0xfaf6ce&&_0xfaf6ce['forceDefaultExecution']||_0x463d6e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x42b52c,_0x42768f,_0x32dbf0,_0x340877,_0xc0b1f6){if(_0x42768f&&!_0x42768f['is']('documentSelection'))return!0x1;const _0x36b853=_0xc0b1f6['getTableIfOnlyTableInContent'](_0x42b52c,_0x32dbf0);if(!_0x36b853||!Ue(_0x36b853,void 0x0,_0x340877))return!0x1;const _0xe9b415=_0x340877['getSelectionAffectedTableCells'](_0x32dbf0['document']['selection']);if(!_0xe9b415['length'])return!0x1;const _0x1138e5=_0xe9b415[0x0]['findAncestor']('table'),_0x284727=_0x340877['getRowIndexes'](_0xe9b415),_0x2c1c16=_0x340877['getColumnIndexes'](_0xe9b415),_0x28706a={'startRow':_0x284727['first'],'endRow':_0x284727['last'],'startColumn':_0x2c1c16['first'],'endColumn':_0x2c1c16['last']};return 0x1==_0xe9b415['length']&&(_0x28706a['endRow']+=_0x340877['getRows'](_0x36b853)-0x1,_0x28706a['endColumn']+=_0x340877['getColumns'](_0x36b853)-0x1),Ue(_0x1138e5,_0x28706a,_0x340877);}(_0x49e8ee,_0x36670b,_0xc0e908['model'],_0x35f963,_0x2c3d3c)&&(_0x54955e['stop'](),_0x314c59={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc0e908['model']['change'](()=>{_0xc0e908['model']['insertContent'](_0x6f9266[0x0],_0x6f9266[0x1],_0x6f9266[0x2],{'forceDefaultExecution':!0x0});const _0x9ec63f=_0x1ecb7a(),{rowInsertionRanges:_0x3ed025,columnInsertionRanges:_0x8c8f59,insertionRanges:_0x18ea02,deletionRanges:_0x2d9761,cells:_0x31d254}=_0x314c59;_0x3ed025['length']&&_0x463d6e['markMultiRangeInsertion'](_0x3ed025,'tablePasteRow',{'tablePasteChainId':_0x9ec63f}),_0x8c8f59['length']&&_0x463d6e['markMultiRangeInsertion'](_0x8c8f59,'tablePasteColumn',{'tablePasteChainId':_0x9ec63f}),_0x18ea02['length']&&(_0x463d6e['markMultiRangeInsertion'](_0x18ea02,'tablePaste',{'tablePasteChainId':_0x9ec63f,'skipNestingCheck':!0x0}),_0x18ea02['forEach'](_0x40d699=>_0x40d699['detach']?.())),_0x2d9761['length']&&(_0x463d6e['markMultiRangeDeletion'](_0x2d9761,'tablePaste',{'tablePasteChainId':_0x9ec63f,'skipNestingCheck':!0x0}),_0x2d9761['forEach'](_0x4f9231=>_0x4f9231['detach']?.()));const _0x45ac07=_0x463d6e['markMultiRangeBlockFormat'](_0x31d254['map'](({element:_0x5a36f0})=>_0x5a36f0),{'formatGroupId':_0x1ecb7a()},[],'tablePasteCell',{'tablePasteChainId':_0x9ec63f});if(_0x45ac07){const _0x513062=_0x45ac07['getMarkers'](),_0x5d5eae=[];for(const {element:_0x42f453,attributes:_0x19dcd4}of _0x31d254){if(!_0x19dcd4)continue;const _0x521f4f=_0xc0e908['model']['createRangeOn'](_0x42f453),_0x5dab23=_0x513062['find'](_0x170dae=>_0x170dae['getRange']()['isEqual'](_0x521f4f));_0x5dab23&&_0x5d5eae['push']([_0x5dab23['name'],_0x19dcd4]);}_0x5d5eae['length']&&_0x45ac07['setAttribute']('markerAttributes',Object['fromEntries'](_0x5d5eae));}_0x314c59=null;}));},{'priority':_0x31c93b['high']+0xa}),_0xc0e908['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1634bd,_0xdbc9c8)=>{const [_0x430cd9,_0x1892af,,_0x88f70f]=_0xdbc9c8;if(!_0x314c59)return;_0x1634bd['stop']();const _0x22fa19=_0x430cd9['cell'],_0x29bb0d=_0x1892af,_0x364bc7=Oe(_0x22fa19),_0xfe226b=Oe(_0x29bb0d);_0x1634bd['return']=_0x22fa19;let _0x25aaea=null,_0x2d2b36=null;if(_0xfe226b||_0x364bc7){if(_0x364bc7&&!_0xfe226b){_0x88f70f['remove'](_0x22fa19['getChild'](0x0));for(const _0x2bd963 of Array['from'](_0x29bb0d['getChildren']()))_0x88f70f['insert'](_0x2bd963,_0x22fa19,'end');const _0xba2baa=_0x314c59['rowInsertionIndexes']['includes'](_0x430cd9['row']),_0x2e38ad=_0x314c59['columnInsertionIndexes']['includes'](_0x430cd9['column']);_0xba2baa||_0x2e38ad||(_0x25aaea=_0x4179c1['fromRange'](_0x88f70f['createRangeIn'](_0x22fa19)));}else _0xfe226b&&!_0x364bc7&&(_0x2d2b36=_0x88f70f['createRangeIn'](_0x22fa19));}else{const _0x363cac=_0x88f70f['createElement']('tableCellSuggestion'),_0x1de850=_0x88f70f['createElement']('tableCellSuggestion');_0x88f70f['wrap'](_0x88f70f['createRangeIn'](_0x22fa19),_0x1de850),_0x88f70f['insert'](_0x363cac,_0x22fa19,0x0);for(const _0x24d798 of Array['from'](_0x29bb0d['getChildren']()))_0x88f70f['insert'](_0x24d798,_0x363cac,'end');_0x25aaea=_0x4179c1['fromRange'](_0x88f70f['createRangeOn'](_0x363cac)),_0x2d2b36=_0x4179c1['fromRange'](_0x88f70f['createRangeOn'](_0x1de850));}const _0xa5fa06=Array['from'](_0x29bb0d['getAttributes']())['filter'](([_0x32504d])=>Be['includes'](_0x32504d));_0x314c59['cells']['push']({'element':_0x22fa19,'attributes':_0xa5fa06['length']?Object['fromEntries'](_0xa5fa06):null}),_0x25aaea&&_0x314c59['insertionRanges']['push'](_0x25aaea),_0x2d2b36&&_0x314c59['deletionRanges']['push'](_0x2d2b36);},{'priority':'high'}),_0x35f963['on']('insertColumns',(_0x3ce952,_0x34af7a)=>{const [_0x2f69ea,_0x4b8003={}]=_0x34af7a;if(!_0x314c59)return;const _0x32417a=_0x4b8003['at']||0x0,_0x2a8acf=_0x4b8003['columns']||0x1;_0x314c59['columnInsertionIndexes']=new Array(_0x2a8acf)['fill'](_0x32417a)['map']((_0x252c0f,_0x77cd2c)=>_0x252c0f+_0x77cd2c);for(const {cell:_0x4496fc}of _0x35f963['createTableWalker'](_0x2f69ea,{'startColumn':_0x32417a,'endColumn':_0x32417a+_0x2a8acf-0x1}))_0x314c59['columnInsertionRanges']['push'](_0xc0e908['model']['createRangeOn'](_0x4496fc));},{'priority':'low'}),_0x35f963['on']('insertRows',(_0x52f077,_0x38b849)=>{const [_0x3b2e85,_0x20d539={}]=_0x38b849;if(!_0x314c59)return;const _0x2bfa96=_0x20d539['at']||0x0,_0x2c175e=_0x20d539['rows']||0x1;_0x314c59['rowInsertionIndexes']=new Array(_0x2c175e)['fill'](_0x2bfa96)['map']((_0x692061,_0x336834)=>_0x692061+_0x336834);for(const {cell:_0x15ffcc}of _0x35f963['createTableWalker'](_0x3b2e85,{'startRow':_0x2bfa96,'endRow':_0x2bfa96+_0x2c175e-0x1}))_0x314c59['rowInsertionRanges']['push'](_0xc0e908['model']['createRangeOn'](_0x15ffcc));},{'priority':'low'}),_0x463d6e['descriptionFactory']['registerDescriptionCallback'](_0x5124ae=>{if(_0x5124ae['subType']&&_0x5124ae['subType']['startsWith']('tablePaste'))return _0x5124ae['previous']?{}:{'type':'insertion','content':o(_0xc0e908['locale'],'*Replace\x20table\x20cells*')};});const _0x71c9e6=()=>!0x1;for(const _0x27985d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x463d6e['_suggestionFactory']['registerCustomCallback']('insertion',_0x27985d,'join',_0x71c9e6),_0x463d6e['_suggestionFactory']['registerCustomCallback']('deletion',_0x27985d,'join',_0x71c9e6),_0x463d6e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27985d,'join',_0x71c9e6);_0x463d6e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x71c9e6),_0x463d6e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1ad448,_0x2ddc4d,_0x584839)=>{const _0x314a55=_0x1ad448['map'](_0x30b467=>_0x30b467['getContainedElement']())['filter'](_0x493eb9=>_0x493eb9),_0x5f2aed=new Map(_0x314a55['map'](_0x30ab45=>[_0x30ab45,null]));if(_0x314c59){for(const {element:_0x5084e6,attributes:_0x2e1655}of _0x314c59['cells'])_0x2e1655&&_0x5f2aed['set'](_0x5084e6,_0x2e1655);}else{if(_0x584839&&_0x584839['markerAttributes'])for(const [_0x30b619,_0x27ae2d]of Object['entries'](_0x584839['markerAttributes'])){const _0x2bcdde=_0xc0e908['model']['markers']['get'](_0x30b619),_0x4743c5=_0x2bcdde?_0x2bcdde['getRange']()['getContainedElement']():null;_0x4743c5&&_0x5f2aed['set'](_0x4743c5,_0x27ae2d);}}_0xc0e908['model']['change'](_0x4ea32a=>{for(const [_0x4ebc93,_0x620ec1]of _0x5f2aed)_0x4ea32a['setAttributes']({...xe,..._0x620ec1},_0x4ebc93);});});const _0xd50496=(_0x12d4e9,_0x343170)=>{_0x463d6e['_suggestionFactory']['registerCustomCallback'](_0x12d4e9,'tablePaste',_0x343170,(_0x48ac42,_0x52285a,_0x245bbf)=>{_0xc0e908['model']['change'](_0x3468d1=>{const _0x5cebd5=[];for(const _0x5ebd41 of _0x48ac42){const _0x112194=_0x5ebd41['start']['nodeAfter'];_0x112194['is']('element','tableCellSuggestion')&&_0x5cebd5['push'](_0x112194);}_0x463d6e['_suggestionFactory']['getSuggestionCallback'](_0x12d4e9,null,_0x343170)(_0x48ac42,_0x52285a,_0x245bbf);for(const _0x506b99 of _0x5cebd5)'$graveyard'!=_0x506b99['root']['rootName']&&_0x3468d1['unwrap'](_0x506b99);});});};_0xd50496('insertion','accept'),_0xd50496('insertion','discard'),_0xd50496('deletion','accept'),_0xd50496('deletion','discard'),_0x463d6e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x599a67=>{const _0x447432=_0x599a67['map'](_0x1ee3c7=>_0x1ee3c7['getContainedElement']()),_0xf0065b=_0x447432[0x0]['findAncestor']('table'),{minRow:_0x18abff,maxRow:_0x3529a2}=_0x476efb['_getCoordsForCells'](_0x447432);_0x35f963['removeRows'](_0xf0065b,{'at':_0x18abff,'rows':_0x3529a2-_0x18abff+0x1});}),_0x463d6e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1f4d39=>{const _0x1986bd=_0x1f4d39['map'](_0x509038=>_0x509038['getContainedElement']()),_0x1a9dea=_0x1986bd[0x0]['findAncestor']('table'),{minColumn:_0x149339,maxColumn:_0x4bb47f}=_0x476efb['_getCoordsForCells'](_0x1986bd);_0x35f963['removeColumns'](_0x1a9dea,{'at':_0x149339,'columns':_0x4bb47f-_0x149339+0x1});});const _0x2a8688=(_0x31ebc4,_0x571f21)=>{if(!_0x571f21['subType']||!_0x571f21['subType']['startsWith']('tablePaste'))return;const _0x106c47=_0x571f21['attributes']['tablePasteChainId'],_0x53fe3c=_0x463d6e['getSuggestions']()['filter'](_0x818e3d=>_0x818e3d['isInContent']&&_0x818e3d['attributes']&&_0x818e3d['attributes']['tablePasteChainId']==_0x106c47);_0x53fe3c['length']&&_0x571f21['getAllAdjacentSuggestions']()['length']!=_0x53fe3c['length']&&_0x53fe3c['reduce']((_0x60fdff,_0x16fe14)=>(_0x60fdff['next']=_0x16fe14,_0x16fe14['previous']=_0x60fdff,_0x16fe14));};function _0x15aec7(_0x3dfa9c,_0x50012e=!0x0){const {id:_0x137d3b,authorId:_0x3a51f8}=_0x463d6e['_splitMarkerName'](_0x3dfa9c['markerName']),_0x5c8737=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x34d04e=_0x463d6e['activeMarkers']['includes'](_0x3dfa9c['markerName']);return _0x34d04e&&_0x5c8737['push']('ck-suggestion-marker--active'),{'classes':_0x5c8737,'attributes':{'data-suggestion':_0x137d3b,'data-author-id':_0x3a51f8},'priority':_0x34d04e&&_0x50012e?0xbc2:0xbb8};}_0x463d6e['on']('suggestionLoaded',_0x2a8688,{'priority':'high'}),_0x463d6e['on']('suggestionUnloaded',_0x2a8688,{'priority':'high'}),_0xc0e908['model']['document']['registerPostFixer'](()=>{let _0x36076b=!0x1;const _0x20e3a1=Array['from'](_0xc0e908['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11a126,data:_0x1dbbad}of _0x20e3a1){const {group:_0x56c1ae,type:_0x5c128f,id:_0x12cd4e}=_0x463d6e['_splitMarkerName'](_0x11a126);if('suggestion'!=_0x56c1ae||'deletion'!=_0x5c128f||_0x1dbbad['oldRange'])continue;if(!_0x463d6e['hasSuggestion'](_0x12cd4e))continue;const _0x1abaee=_0x463d6e['getSuggestion'](_0x12cd4e)['getRanges'](),_0x43c9db=_0xc0e908['plugins']['get']('Users')['me'];for(const _0x4563cd of _0x463d6e['getSuggestions']()){if(!_0x4563cd['isInContent']||_0x4563cd['author']!=_0x43c9db)continue;if('formatBlock'!=_0x4563cd['type']||'tablePasteCell'!=_0x4563cd['subType'])continue;if(_0x4563cd['getRanges']()['every'](_0x4a771a=>_0x1abaee['some'](_0xc3232c=>_0xc3232c['containsRange'](_0x4a771a,!0x0)))){for(const _0x472616 of _0x4563cd['getAllAdjacentSuggestions']())_0x472616['isInContent']&&(_0x472616['discard'](),_0x36076b=!0x0);}}}return _0x36076b;}),_0xc0e908['model']['document']['registerPostFixer'](_0x250e4c=>{const _0x46c584=_0xc0e908['commands']['get']('redo');if(!_0x46c584||!_0x46c584['_createdBatches']['has'](_0x250e4c['batch']))return!0x1;let _0x2bf9eb=!0x1;const _0x516818=_0xc0e908['plugins']['get']('Users')['me'],_0x37f5e5=_0xc0e908['model']['document']['differ']['getChanges'](),_0xd4f622=Array['from'](_0xc0e908['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xf7d9e7,data:_0xf4d6d7})=>{const {group:_0xea4ae3,subType:_0x116c8b,authorId:_0x469988}=_0x463d6e['_splitMarkerName'](_0xf7d9e7);return'suggestion'==_0xea4ae3&&'tablePaste'==_0x116c8b&&_0x469988==_0x516818['id']&&!_0xf4d6d7['oldRange'];});for(const _0x5e8a8a of _0x37f5e5){if('insert'!=_0x5e8a8a['type']||'tableCellSuggestion'!=_0x5e8a8a['name']||0x1!=_0x5e8a8a['length'])continue;const _0x2ec5f1=_0x250e4c['createRange'](_0x5e8a8a['position'],_0x5e8a8a['position']['getShiftedBy'](0x1));if(!_0xd4f622['find'](({data:_0x1ce647})=>_0x1ce647['newRange']['isEqual'](_0x2ec5f1))){for(const {name:_0x1c25b0,data:_0x531d00}of _0xd4f622)if(_0x2ec5f1['containsRange'](_0x531d00['newRange'])){_0x250e4c['updateMarker'](_0x1c25b0,{'range':_0x2ec5f1}),_0x2bf9eb=!0x0;break;}}}return _0x2bf9eb;}),_0xc0e908['model']['document']['registerPostFixer'](_0x537115=>{let _0x48a6cc=!0x1;const _0x425f32=_0xc0e908['plugins']['get']('Users')['me'],_0x972701=_0x463d6e['getSuggestions']()['filter'](_0x2ff38f=>_0x2ff38f['isInContent']&&_0x2ff38f['author']==_0x425f32),_0x2c2850=new Set(),_0x310500=new Set();for(const _0x3df24e of _0x972701)if('tablePaste'==_0x3df24e['subType'])for(const _0x32dafe of _0x3df24e['getMarkers']()){const _0xa8521=_0x32dafe['getRange']()['getContainedElement']();if(_0xa8521){if(_0xa8521['is']('element','tableCellSuggestion')&&Oe(_0xa8521)){_0x3df24e['removeMarker'](_0x32dafe['name']),_0x2c2850['add'](_0xa8521),_0x48a6cc=!0x0;const _0x46b844=_0xa8521['nextSibling'],_0x519485=_0xa8521['previousSibling'],_0x327e29=_0x46b844&&_0x46b844['is']('element','tableCellSuggestion'),_0x1bc9d6=_0x519485&&_0x519485['is']('element','tableCellSuggestion');_0x327e29&&!_0x2c2850['has'](_0x46b844)&&_0x310500['add'](_0x46b844),_0x1bc9d6&&!_0x2c2850['has'](_0x519485)&&_0x310500['add'](_0x519485);}else _0xa8521['is']('element','paragraph')&&_0xa8521['isEmpty']&&(_0x3df24e['removeMarker'](_0x32dafe['name']),_0x48a6cc=!0x0);}}else{if('tablePasteCell'==_0x3df24e['subType']){if(!_0x3df24e['attributes']||!_0x3df24e['attributes']['tablePasteChainId'])continue;const _0x338f0d=_0x3df24e['attributes']['markerAttributes'];if(_0x338f0d&&Object['keys'](_0x338f0d)['length'])continue;const _0x38729a=_0x3df24e['attributes']['tablePasteChainId'];let _0x501a7b=!0x0,_0x9276cc=!0x0;for(const _0x42655f of _0x972701)if(_0x42655f['subType']&&_0x42655f['subType']['startsWith']('tablePaste')){if(!_0x42655f['attributes']['tablePasteChainId']){_0x9276cc=!0x1;break;}if(_0x42655f['id']!=_0x3df24e['id']&&_0x42655f['attributes']['tablePasteChainId']==_0x38729a){_0x501a7b=!0x1;break;}}_0x9276cc&&_0x501a7b&&(_0x3df24e['removeMarkers'](),_0x48a6cc=!0x0);}}for(const _0x4c8c1e of _0x2c2850)_0x537115['remove'](_0x4c8c1e);for(const _0x497c88 of _0x310500)_0x537115['unwrap'](_0x497c88);return _0x48a6cc;}),_0xc0e908['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x533fad=>_0x15aec7(_0x533fad),'converterPriority':'high'}),_0xc0e908['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19da2c,_0x237be1)=>_0x237be1['options']['showSuggestionHighlights']?_0x15aec7(_0x19da2c,!0x1):null,'converterPriority':'high'});const _0x214cef=_0xc0e908['editing']['view'];this['listenTo'](_0x214cef['document'],'clipboardOutput',(_0x5cf9f0,_0x2682b2)=>{const _0x562157=[];for(const _0x27c7ad of _0x214cef['createRangeIn'](_0x2682b2['content'])['getItems']())_0x27c7ad['is']('element','suggestion-td')&&_0x562157['push'](_0x27c7ad);_0x214cef['change'](_0x2270c4=>{for(const _0x5e7e48 of _0x562157)_0x2270c4['move'](_0x2270c4['createRangeIn'](_0x5e7e48),_0x2270c4['createPositionBefore'](_0x5e7e48)),_0x2270c4['remove'](_0x5e7e48);});});}}function Oe(_0x38a008){if(_0x38a008['isEmpty'])return!0x0;const _0x12955f=_0x38a008['getChild'](0x0);return _0x12955f['is']('element','paragraph')&&_0x12955f['isEmpty'];}function Ue(_0x5a1dc5,_0x2d5ddb={},_0x2cfb37){for(const {isAnchor:_0x108080,cellHeight:_0x396a6e,cellWidth:_0x5c2248}of _0x2cfb37['createTableWalker'](_0x5a1dc5,{'includeAllSlots':!0x0,..._0x2d5ddb}))if(!_0x108080||0x1!=_0x396a6e||0x1!=_0x5c2248)return!0x1;return!0x0;}class Dt extends _0x371cc0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2af296=this['editor']['plugins']['get']('TrackChangesEditing');_0x2af296['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2af296['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2af296['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2af296['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2af296['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2af296['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1f369b,_0x40fe5d){const _0x38f04f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x906dab=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49fb30=_0x40fe5d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1b6698=_0x906dab['getColumnGroupElement'](_0x49fb30);let _0x334c3a=_0x1b6698?_0x906dab['getTableColumnsWidths'](_0x1b6698):null,_0x1cf97b=_0x49fb30['getAttribute']('tableWidth')||null;const _0x440f36=_0x40fe5d['tableWidth']||_0x1cf97b,_0x946959=_0x40fe5d['columnWidths']||_0x334c3a,_0x26d49a=this['editor']['plugins']['get']('Users')['me'];for(const _0x26f807 of _0x38f04f['getSuggestions']()){const _0x190019=_0x26f807['getContainedElement']();if('resizeTable'===_0x26f807['subType']&&_0x190019===_0x49fb30){_0x26f807['author']!==_0x26d49a&&_0x26f807['discard']();const _0x334f91=_0x26f807['data']['commandParams'];_0x1cf97b=_0x334f91[0x0]['tableWidth'],_0x334c3a=_0x334f91[0x0]['columnWidths'];break;}}_0x1f369b({'table':_0x49fb30,'tableWidth':_0x440f36,'columnWidths':_0x946959}),_0x38f04f['markBlockFormat'](_0x49fb30,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1cf97b,'columnWidths':_0x334c3a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xde39f){if('formatBlock'!=_0xde39f['type']&&'formatInline'!=_0xde39f['type'])return;const {data:_0xe43332}=_0xde39f;if(_0xe43332&&'resizeTable'===_0xe43332['formatGroupId']){const _0x1edd92='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1edd92)};}}}class Mt extends _0x371cc0{['afterInit'](){const _0x55017f=this['editor'];_0x55017f['plugins']['has']('Template')&&_0x55017f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x371cc0{['afterInit'](){const _0xe7d921=this['editor'];if(!_0xe7d921['commands']['get']('insertTableOfContents'))return;_0xe7d921['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x291a98=_0xe7d921['plugins']['get']('TrackChangesEditing'),_0x7a0f6=_0xe7d921['locale'];_0x291a98['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bf50b=>o(_0x7a0f6,'ELEMENT_TABLE_OF_CONTENTS',_0x3bf50b));}}class Bt extends _0x371cc0{['afterInit'](){const _0x33d744=this['editor'];if(!_0x33d744['plugins']['has']('Title'))return;const _0x4ecbd0=_0x33d744['plugins']['get']('TrackChangesEditing');_0x4ecbd0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x33d744['locale'],'ELEMENT_TITLE')),_0x33d744['model']['document']['registerPostFixer'](_0x4e957e=>{let _0x5677b2=!0x1;const _0x12b745=Array['from'](_0x33d744['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15840d,data:_0x101931}of _0x12b745){const {group:_0x44967a}=_0x4ecbd0['_splitMarkerName'](_0x15840d);if('suggestion'!==_0x44967a||!_0x101931['newRange'])continue;const _0x243d25=_0x101931['newRange'],_0xd5091f=_0x243d25['end']['nodeBefore'];if(!_0xd5091f||!_0xd5091f['is']('element','title-content'))continue;if(!_0x243d25['start']['isTouching'](_0x243d25['end']))continue;const _0x525b52=_0x33d744['model']['schema']['getNearestSelectionRange'](_0x243d25['end'],'forward');if(_0x525b52&&_0x525b52['isCollapsed']){const _0x276d01=_0x4e957e['createRange'](_0x243d25['start'],_0x525b52['start']);_0x276d01['isEqual'](_0x243d25)||(_0x4e957e['updateMarker'](_0x15840d,{'range':_0x276d01}),_0x5677b2=!0x0);}_0x5677b2||(_0x4e957e['removeMarker'](_0x15840d),_0x5677b2=!0x0);}return _0x5677b2;});}}class Ot extends _0x371cc0{['afterInit'](){const _0x17f8d0=this['editor'],_0x26986e=_0x17f8d0['plugins']['get']('TrackChangesEditing');_0x17f8d0['plugins']['has']('Uploadcare')&&(_0x26986e['enableCommand']('uploadcare'),_0x17f8d0['plugins']['has']('UploadcareImageEdit')&&(_0x26986e['enableCommand']('uploadcareImageEdit'),_0x26986e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x26986e['registerBlockAttribute']('uploadcareImageId'),_0x26986e['descriptionFactory']['registerDescriptionCallback'](_0x56c6b8=>{if('attribute'!=_0x56c6b8['type'])return;const {data:_0x41c5c0}=_0x56c6b8;return _0x41c5c0&&'uploadcareImageId'==_0x41c5c0['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x371cc0{['afterInit'](){const _0x153efc=this['editor'],_0x582c19=_0x153efc['plugins']['get']('TrackChangesEditing');_0x153efc['plugins']['has']('UndoEditing')&&(_0x582c19['enableCommand']('undo'),_0x582c19['enableCommand']('redo'));}}class Tt extends _0x371cc0{static get['requires'](){return[vt];}['afterInit'](){const _0x48c9f0=this['editor'];if(!_0x48c9f0['plugins']['has']('TableCaptionEditing'))return;_0x48c9f0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x371cc0{['tableProperties'];['tableCellProperties'];constructor(_0x5e8a45){super(_0x5e8a45),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 _0x40932d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xc8ef6a of this['tableProperties'])_0x40932d['enableCommand'](_0xc8ef6a,(_0x188ff9,_0x5b0c30)=>{const _0xded439=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xc8ef6a,[_0xded439],this['tableProperties'],'tableProperties',_0x188ff9,_0x5b0c30);});_0x40932d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x40932d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40932d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x188670,_0x26dc3e)=>this['handleDiscardAction'](this['tableProperties'],_0x188670,_0x26dc3e)),_0x40932d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x518865 of this['tableCellProperties'])_0x40932d['enableCommand'](_0x518865,(_0xd530a3,_0x89f08)=>{const _0x362469=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x518865,_0x362469,this['tableCellProperties'],'tableCellProperties',_0xd530a3,_0x89f08);});_0x40932d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x40932d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40932d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4b8e8d,_0x1d894f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4b8e8d,_0x1d894f)),_0x40932d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x40932d['descriptionFactory']['registerDescriptionCallback'](_0x382c16=>this['handleSuggestionDescription'](_0x382c16));}['_handlePropertyChange'](_0x182349,_0x16e63d,_0x3c377b,_0x3ce367,_0x251329,_0x3c61fb){const _0x583ee0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3c61fb['batch'],()=>{for(const _0x26301d of _0x16e63d){if(this['_getSuggestion'](_0x26301d,_0x3ce367))_0x251329(_0x3c61fb);else{const _0x49a0a6={};for(const _0x1f7cd6 of _0x3c377b){const _0x281d93=_0x26301d['getAttribute'](_0x1f7cd6);void 0x0!==_0x281d93&&(_0x49a0a6[_0x1f7cd6]=_0x281d93);}_0x251329(_0x3c61fb),_0x583ee0['markBlockFormat'](_0x26301d,{'commandParams':[_0x49a0a6]},[],_0x3ce367);}}});}['handleDiscardAction'](_0x161fdf,_0xf14479,_0x17defa){const _0x1c6aac=_0xf14479[0x0]['start']['nodeAfter'],_0x4c9b44=_0x17defa['commandParams'][0x0];this['editor']['model']['change'](_0x173815=>{for(const _0x5f063a of _0x161fdf)void 0x0!==_0x4c9b44[_0x5f063a]?_0x173815['setAttribute'](_0x5f063a,_0x4c9b44[_0x5f063a],_0x1c6aac):_0x173815['removeAttribute'](_0x5f063a,_0x1c6aac);});}['handleSuggestionDescription'](_0x48441a){if(_0x48441a['data'])switch(_0x48441a['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'](_0x3e4213,_0x223c7a){const _0x19eb04=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5d6360 of _0x19eb04['getSuggestions']({'skipNotAttached':!0x0})){const _0x49af1b=_0x5d6360['getContainedElement']();if(_0x5d6360['subType']===_0x223c7a&&_0x49af1b===_0x3e4213)return _0x5d6360;}return null;}}const m='$elementName';class p extends _0x371cc0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x413917,_0x280fa3,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x553160){super(_0x553160),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4c2bf5,_0x4f50d6,_0x2d6960,_0x33628a)=>{this['_model']['change'](()=>{for(const _0x2b75c7 of[..._0x33628a,..._0x2d6960])this['_model']['markers']['has'](_0x2b75c7)&&_0x553160['editing']['reconvertMarker'](_0x2b75c7);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x553160['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(),_0x553160['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x553160['config']['get']('trackChanges.trackFormatChanges'),_0x553160['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x553160['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x553160,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x256cf2=this['editor'],_0x5e69cd=(_0x14fd5b,_0x57cc06)=>{if('attribute'!=_0x14fd5b)return'ck-suggestion-marker-'+_0x14fd5b;const _0x1ea74d=_0x57cc06['split']('|')[0x0];return this['_isBlockAttribute'](_0x1ea74d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x256cf2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2fcab9=>{const {id:_0x2a548a,authorId:_0x1a773a,type:_0x50302e,subType:_0x25ee62}=this['_splitMarkerName'](_0x2fcab9['markerName']),_0x18bde7=['ck-suggestion-marker',_0x5e69cd(_0x50302e,_0x25ee62)];let _0x5292f8=0xbb8;return this['activeMarkers']['includes'](_0x2fcab9['markerName'])&&(_0x18bde7['push']('ck-suggestion-marker--active'),_0x5292f8=0xbc2),'deletion'==_0x50302e&&(_0x5292f8+=0x5),{'classes':_0x18bde7,'attributes':{'data-suggestion':_0x2a548a,'data-author-id':_0x1a773a},'priority':_0x5292f8};}}),_0x256cf2['conversion']['for']('dataDowncast')['add'](_0x5be806=>{_0x5be806['on']('addMarker:suggestion',(_0x5ea558,_0x57fc48,_0x4ecd78)=>{if(!_0x4ecd78['options']['showSuggestionHighlights'])return;const _0x4042f3=_0x57fc48['item'];if(!_0x4042f3)return;const _0xd8fd22=_0x4ecd78['mapper']['toViewElement'](_0x4042f3);_0x256cf2['model']['schema']['isObject'](_0x4042f3)&&_0xd8fd22&&!_0xd8fd22['getCustomProperty']('widget')&&_0xd8fd22['is']('containerElement')&&_0x261f58(_0xd8fd22,_0x4ecd78['writer']);},{'priority':'high'});}),_0x256cf2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3ec401,_0x275d30)=>{if(!_0x275d30['options']['showSuggestionHighlights'])return null;const {type:_0x272cfb,subType:_0x1cceac}=this['_splitMarkerName'](_0x3ec401['markerName']);return{'classes':['ck-suggestion-marker',_0x5e69cd(_0x272cfb,_0x1cceac)],'priority':0xbb8};}});const _0x56d6ad=({showActiveMarkers:_0x54f970=!0x0,isAttributeSuggestion:_0x194c7c=!0x1}={})=>(_0x41c130,_0x51a527,_0x5733ac)=>{if(!_0x51a527['item'])return;const {id:_0x83e0c1,authorId:_0x51050c}=this['_splitMarkerName'](_0x51a527['markerName']);if(_0x194c7c){const _0x2adef1=this['_suggestions']['get'](_0x83e0c1),_0x33fa0a=this['_getAttributeKey'](_0x2adef1);if(!this['_isBlockAttribute'](_0x33fa0a))return;}if(_0x51a527['item']['is']('selection'))return void _0x5733ac['consumable']['consume'](_0x51a527['item'],_0x41c130['name']);const _0x201dcf=_0x5733ac['mapper']['toViewElement'](_0x51a527['item']);if(_0x51a527['item']['is']('element')&&_0x256cf2['model']['schema']['isBlock'](_0x51a527['item'])&&!_0x201dcf['getCustomProperty']('addHighlight')){_0x5733ac['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x201dcf),_0x5733ac['writer']['setAttribute']('data-suggestion',_0x83e0c1,_0x201dcf),_0x5733ac['writer']['setAttribute']('data-author-id',_0x51050c,_0x201dcf),_0x5733ac['mapper']['bindElementToMarker'](_0x201dcf,_0x51a527['markerName']),_0x54f970&&(this['activeMarkers']['includes'](_0x51a527['markerName'])?_0x5733ac['writer']['addClass']('ck-suggestion-marker--active',_0x201dcf):_0x5733ac['writer']['removeClass']('ck-suggestion-marker--active',_0x201dcf));for(const _0x290757 of _0x256cf2['model']['createRangeIn'](_0x51a527['item'])['getItems']())_0x5733ac['consumable']['consume'](_0x290757,_0x41c130['name']);_0x5733ac['consumable']['consume'](_0x51a527['item'],_0x41c130['name']);}};_0x256cf2['conversion']['for']('dataDowncast')['add'](_0x75cc98=>{_0x75cc98['on']('addMarker:suggestion:formatBlock',(_0x1889bf,_0x1805be,_0x132248)=>{_0x132248['options']['showSuggestionHighlights']&&_0x56d6ad({'showActiveMarkers':!0x1})(_0x1889bf,_0x1805be,_0x132248);},{'priority':'highest'});}),_0x256cf2['conversion']['for']('dataDowncast')['add'](_0x3e9d8f=>{_0x3e9d8f['on']('addMarker:suggestion:attribute',(_0x3ce3f9,_0x3a3924,_0x573e24)=>{_0x573e24['options']['showSuggestionHighlights']&&_0x56d6ad({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ce3f9,_0x3a3924,_0x573e24);},{'priority':'highest'});}),_0x256cf2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x33b2af,_0x12835b)=>_0x12835b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33b2af['substr'](0xb)}}),_0x256cf2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x33ea99,{writer:_0x258aa4})=>{let _0x2c5329='suggestion:'+_0x33ea99['getAttribute']('suggestion-type')+':'+_0x33ea99['getAttribute']('id');return _0x33ea99['getAttribute']('marker-count')&&(_0x2c5329+=':'+_0x33ea99['getAttribute']('marker-count')),_0x258aa4['createElement']('$marker',{'data-name':_0x2c5329});}}),_0x256cf2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x256cf2['conversion']['for']('editingDowncast')['add'](_0x4fba3d=>{_0x4fba3d['on']('addMarker:suggestion:formatBlock',_0x56d6ad(),{'priority':'high'});}),_0x256cf2['conversion']['for']('editingDowncast')['add'](_0x2d6a43=>{_0x2d6a43['on']('addMarker:suggestion:attribute',_0x56d6ad({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x256cf2['conversion']['for']('editingDowncast')['add'](_0x39d40c=>{_0x39d40c['on']('removeMarker:suggestion:formatBlock',(_0x122a24,_0xcd8726,_0x4d88a8)=>{const _0x1deec8=_0x4d88a8['mapper']['markerNameToElements'](_0xcd8726['markerName']);if(_0x1deec8){for(const _0x4295f7 of _0x1deec8)_0x4295f7['getCustomProperty']('addHighlight')||(_0x4d88a8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4295f7),_0x4d88a8['writer']['removeAttribute']('data-suggestion',_0x4295f7),_0x4d88a8['writer']['removeAttribute']('data-author-id',_0x4295f7),_0x4d88a8['mapper']['unbindElementFromMarkerName'](_0x4295f7,_0xcd8726['markerName']));}},{'priority':'high'});}),_0x256cf2['conversion']['for']('editingDowncast')['add'](_0x55dcb8=>{_0x55dcb8['on']('removeMarker:suggestion:attribute',(_0x4d1e43,_0xc4bfe,_0x59db04)=>{const _0x30a254=_0x59db04['mapper']['markerNameToElements'](_0xc4bfe['markerName']);if(!_0x30a254)return;const {id:_0x164e9f}=this['_splitMarkerName'](_0xc4bfe['markerName']),_0x4aa766=this['_suggestions']['get'](_0x164e9f),_0xbf005f=this['_getAttributeKey'](_0x4aa766);if(this['_isBlockAttribute'](_0xbf005f)){for(const _0x1d7177 of _0x30a254)_0x1d7177['getCustomProperty']('addHighlight')||(_0x59db04['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1d7177),_0x59db04['writer']['removeAttribute']('data-suggestion',_0x1d7177),_0x59db04['writer']['removeAttribute']('data-author-id',_0x1d7177),_0x59db04['mapper']['unbindElementFromMarkerName'](_0x1d7177,_0xc4bfe['markerName']));}},{'priority':'high'});}),_0x256cf2['model']['document']['registerPostFixer'](_0x5eeac7=>{let _0x2e8995=!0x1;const _0x1a8997=Array['from'](_0x256cf2['model']['document']['differ']['getChangedMarkers']()),_0x1b7d4e=new Set();for(const {name:_0x4c50a8,data:_0x558ee7}of _0x1a8997){const {group:_0x29d1bf,type:_0x95388b,subType:_0x1f0a08,id:_0x314a84}=this['_splitMarkerName'](_0x4c50a8);if('suggestion'!==_0x29d1bf)continue;const _0x2e50c2=this['_suggestions']['get'](_0x314a84);if(null!=_0x558ee7['newRange']){'formatInline'==_0x95388b&&(_0x2e8995=_0x2e8995||Gt(_0x558ee7['newRange'],_0x4c50a8,_0x5eeac7,_0x256cf2['model']['schema']));const _0x5a8902='attribute'==_0x95388b&&this['_isBlockAttribute'](_0x1f0a08['split']('|')[0x0]);if(_0x558ee7['newRange']['isCollapsed']||'$graveyard'==_0x558ee7['newRange']['root']['rootName']||'formatBlock'==_0x95388b&&!Lt(_0x558ee7['newRange'])||_0x5a8902&&!Lt(_0x558ee7['newRange'])||'deletion'==_0x95388b&&!(!Pt(_0xbdaf41=_0x558ee7['newRange'])&&!function(_0x3792d7){return _0x3792d7['start']['parent']==_0x3792d7['end']['nodeBefore']&&_0x3792d7['start']['isAtEnd'];}(_0xbdaf41)))_0x5eeac7['removeMarker'](_0x4c50a8),_0x2e8995=!0x0;else{if(!_0x2e50c2||!_0x2e50c2['isInContent'])continue;if(_0x558ee7['newRange']&&_0x558ee7['oldRange']&&_0x558ee7['newRange']['isEqual'](_0x558ee7['oldRange']))continue;_0x1b7d4e['add'](_0x2e50c2);}}}var _0xbdaf41;return _0x1b7d4e['size']>0x0&&(_0x2e8995=!!this['_joinWithAdjacentSuggestions'](_0x1b7d4e)||_0x2e8995),_0x2e8995;}),_0x256cf2['model']['document']['registerPostFixer'](_0x390876=>{let _0x217137=!0x1;for(const _0x320cc1 of _0x256cf2['model']['document']['differ']['getChanges']())if('insert'==_0x320cc1['type'])for(const _0x3921bd of this['_suggestions']['values']()){if(_0x3921bd['isMultiRange']||!_0x3921bd['isInContent'])continue;const _0x25e9ae='formatBlock'==_0x3921bd['type'],_0x1db68f=this['_getAttributeKey'](_0x3921bd),_0x25ed9f=_0x1db68f&&this['_isBlockAttribute'](_0x1db68f);if(!_0x25e9ae&&!_0x25ed9f)continue;const _0x252eca=_0x3921bd['getFirstRange']();if(_0x252eca['start']['parent']!=_0x252eca['end']['parent']&&!_0x252eca['end']['isAtEnd']){const _0x19094d=_0x256cf2['model']['createPositionAt'](_0x252eca['start']['nodeAfter'],'end'),_0x2063a1=_0x256cf2['model']['createRange'](_0x252eca['start'],_0x19094d);_0x390876['updateMarker'](_0x3921bd['getFirstMarker'](),{'range':_0x2063a1}),_0x217137=!0x0;}}return _0x217137;}),_0x256cf2['model']['document']['registerPostFixer'](_0x56cdfa=>this['_processAttributeChanges'](_0x56cdfa)),_0x256cf2['model']['document']['registerPostFixer'](_0xcbf678=>!_0xcbf678['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xcbf678)),_0x256cf2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x256cf2['model']['document']['on']('change:data',(_0x3058cb,_0x1c104b)=>{if(!_0x1c104b['isLocal']||_0x1c104b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4a545d=_0x256cf2['model']['document']['differ']['getChanges']();if(0x0==_0x4a545d['length'])return;const _0x5a65a9=[],_0x8bf7c3=_0x4a545d['filter'](_0x1e66fa=>'attribute'==_0x1e66fa['type']),_0x4ddbce=_0x4a545d['filter'](_0x5ef843=>'insert'==_0x5ef843['type']&&'$text'!=_0x5ef843['name']);for(const _0x492e7b of _0x8bf7c3)this['_isRegisteredAttribute'](_0x492e7b['attributeKey'])&&_0x5a65a9['push']({'key':_0x492e7b['attributeKey'],'newValue':_0x492e7b['attributeNewValue'],'oldValue':_0x492e7b['attributeOldValue'],'range':Jt(_0x492e7b['range'],_0x256cf2['model'])});for(const _0x20a7ce of _0x4ddbce){if('rename'!=_0x20a7ce['action']&&'refresh'!=_0x20a7ce['action'])continue;const _0x3f3c9a=Ht(_0x20a7ce['position']['nodeAfter'],_0x256cf2['model']),_0x43e41e=_0x20a7ce['before'];'rename'==_0x20a7ce['action']&&_0x5a65a9['push']({'key':m,'newValue':_0x20a7ce['name'],'oldValue':_0x43e41e['name'],'range':_0x3f3c9a});for(const [_0x1566b1,_0x17366c]of _0x43e41e['attributes']){if(!this['_isRegisteredAttribute'](_0x1566b1))continue;const _0x16d740=_0x20a7ce['attributes']['get'](_0x1566b1);_0x17366c!==_0x16d740&&_0x5a65a9['push']({'key':_0x1566b1,'newValue':_0x16d740,'oldValue':_0x17366c,'range':_0x3f3c9a});}for(const [_0x220471,_0x1e0194]of _0x20a7ce['attributes'])this['_isRegisteredAttribute'](_0x220471)&&(_0x43e41e['attributes']['has'](_0x220471)||_0x5a65a9['push']({'key':_0x220471,'newValue':_0x1e0194,'oldValue':null,'range':_0x3f3c9a}));}0x0!=_0x5a65a9['length']&&_0x256cf2['model']['enqueueChange'](_0x1c104b,_0x982d51=>{const _0x2dc1e7=_0x1ecb7a();for(const {range:_0x3d3860,key:_0x4e3f1e,oldValue:_0x84932,newValue:_0x4795f5}of _0x5a65a9)this['markAttributeChange'](_0x3d3860,_0x4e3f1e,_0x84932,_0x4795f5,{'groupId':_0x2dc1e7});this['_reduceExistingSuggestions'](_0x982d51,_0x5a65a9);});},{'priority':'lowest'}),_0x256cf2['model']['markers']['on']('update:suggestion',(_0x8f1703,_0x3aef80,_0x5a20c9)=>{if(null==_0x5a20c9){const {id:_0x19b370}=this['_splitMarkerName'](_0x3aef80['name']),_0x22aa6d=this['_suggestions']['get'](_0x19b370);_0x22aa6d&&_0x22aa6d['addMarkerName'](_0x3aef80['name']);}}),_0x256cf2['model']['document']['on']('change:data',()=>{const _0x5a94e8=Array['from'](_0x256cf2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1107d0=>'suggestion'===this['_splitMarkerName'](_0x1107d0['name'])['group']);if(0x0===_0x5a94e8['length'])return;_0x5a94e8['sort']((_0x4a2520,_0x30ad72)=>{const _0x2f6896=_0x4a2520['data']['oldRange'],_0x116e3f=_0x30ad72['data']['oldRange'];return null===_0x2f6896&&null===_0x116e3f?0x0:null===_0x2f6896&&null!==_0x116e3f?-0x1:null!==_0x2f6896&&null===_0x116e3f?0x1:_0x2f6896['start']['isBefore'](_0x116e3f['start'])?-0x1:0x1;});const _0x4c6afd=new Set(),_0x6cbd36=new Set();for(const {name:_0x5f14f2,data:_0x1cd45b}of _0x5a94e8){const {id:_0x7eab0b}=this['_splitMarkerName'](_0x5f14f2);if(null===_0x1cd45b['oldRange']){const _0x5d1a87=this['_handleNewSuggestionMarker'](_0x5f14f2);_0x6cbd36['add'](_0x5d1a87);}else{const _0x6bc437=this['_suggestions']['get'](_0x7eab0b);null!==_0x1cd45b['newRange']||_0x6bc437['isInContent']?(_0x4c6afd['add'](_0x6bc437['head']),_0x6cbd36['add'](_0x6bc437)):this['_removeSuggestion'](_0x6bc437);}}_0x6cbd36['size']>0x0&&this['_refreshSuggestionsChain'](_0x6cbd36);for(const _0x1352bb of _0x4c6afd)this['fire']('suggestionChanged',_0x1352bb);}),_0x256cf2['model']['on']('applyOperation',(_0x1a6b8a,_0x116553)=>{const _0x9975c2=_0x116553[0x0];if(!this['_suggestions']['size'])return;if(!_0x9975c2['isDocumentOperation'])return;if(_0x9975c2['batch']['isUndo']||!_0x9975c2['batch']['isLocal'])return;let _0x44e783,_0x27113e;switch(_0x9975c2['type']){case'insert':_0x44e783=_0x256cf2['model']['createPositionAt'](_0x9975c2['position']),_0x27113e=_0x44e783['getShiftedBy'](_0x9975c2['howMany']);break;case'split':_0x44e783=_0x256cf2['model']['createPositionAt'](_0x9975c2['splitPosition']),_0x27113e=_0x256cf2['model']['createPositionAt'](_0x9975c2['moveTargetPosition']);break;case'move':_0x44e783=_0x256cf2['model']['createPositionAt'](_0x9975c2['targetPosition']),_0x27113e=_0x44e783['getShiftedBy'](_0x9975c2['howMany']);break;default:return;}const _0x22aa63=_0x256cf2['model']['createRange'](_0x44e783,_0x27113e);_0x256cf2['model']['change'](()=>{for(const {suggestion:_0x3662fe,meta:_0x316ca0}of this['_findSuggestions'](_0x22aa63)){if(_0x3662fe['isMultiRange'])continue;if('formatInline'==_0x3662fe['type'])continue;const _0xd041f4=this['_getAttributeKey'](_0x3662fe);if(_0xd041f4&&this['_isBlockAttribute'](_0xd041f4)&&'split'!=_0x9975c2['type'])continue;const _0x22aa66=_0x3662fe['data']&&_0x3662fe['data']['multipleBlocks'];('formatBlock'!=_0x3662fe['type']||'split'==_0x9975c2['type']&&!_0x22aa66)&&(_0x316ca0['containsRangeInObject']||'insertion'==_0x3662fe['type']&&_0x316ca0['isOwn']||_0x3662fe['getFirstRange']()['containsRange'](_0x22aa63)&&this['_breakSuggestionMarker'](_0x3662fe,_0x44e783,_0x27113e));}});},{'priority':'lowest'}),_0x256cf2['model']['on']('deleteContent',(_0x4fee18,_0x4a8ef0)=>{const _0x2f4dd6=_0x4a8ef0[0x0],_0x44f0e3=_0x4a8ef0[0x1];if(_0x44f0e3&&_0x44f0e3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2f4dd6['isCollapsed'])return;const _0x2687d7=_0x256cf2['model']['schema'],{start:_0x5c1925,end:_0xabf34b}=_0x2f4dd6['getFirstRange'](),_0x2a0bb1=_0x5c1925['nodeAfter']&&_0x2687d7['isLimit'](_0x5c1925['nodeAfter'])?null:_0x2687d7['getNearestSelectionRange'](_0x5c1925,'forward'),_0x365266=_0xabf34b['nodeBefore']&&_0x2687d7['isLimit'](_0xabf34b['nodeBefore'])?null:_0x2687d7['getNearestSelectionRange'](_0xabf34b,'backward'),_0x4c35bf=_0x256cf2['model']['createRange'](_0x2a0bb1?_0x2a0bb1['start']:_0x5c1925,_0x365266?_0x365266['end']:_0xabf34b);_0x256cf2['model']['change'](_0x33a09f=>{this['markDeletion'](_0x4c35bf);const _0x4257af=_0x256cf2['model']['schema']['getNearestSelectionRange'](_0x4c35bf['start']);_0x2f4dd6['is']('documentSelection')?_0x33a09f['setSelection'](_0x4257af):_0x2f4dd6['setTo'](_0x4257af);}),_0x4fee18['stop']();},{'priority':_0x31c93b['normal']+0xa}),_0x256cf2['model']['on']('insertContent',(_0x228b73,_0x11dbb8)=>{const _0xb42a64=_0x11dbb8[_0x11dbb8['length']-0x1];_0xb42a64&&_0xb42a64['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x256cf2['model']['change'](()=>{let _0x370d52=_0x256cf2['model']['insertContent'](_0x11dbb8[0x0],_0x11dbb8[0x1],_0x11dbb8[0x2],{'forceDefaultExecution':!0x0});if(!_0x370d52)return;_0x228b73['return']=_0x370d52['clone']();const _0x38abbe=_0x370d52['end']['nodeBefore'],_0x252174=_0x256cf2['model']['schema'];_0x38abbe&&_0x252174['isBlock'](_0x38abbe)&&!_0x252174['isObject'](_0x38abbe)&&(_0x370d52=_0x256cf2['model']['createRange'](_0x370d52['start'],_0x256cf2['model']['createPositionAt'](_0x38abbe,'end'))),this['markInsertion'](_0x370d52);}),_0x228b73['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x18a8f0=new O(_0x256cf2,this['_suggestions']);_0x256cf2['commands']['add']('acceptSuggestion',_0x18a8f0),this['enableCommand']('acceptSuggestion');const _0x10db4b=new R(_0x256cf2,this['_suggestions']);_0x256cf2['commands']['add']('discardSuggestion',_0x10db4b),this['enableCommand']('discardSuggestion'),_0x256cf2['commands']['add']('acceptAllSuggestions',new x(_0x256cf2,_0x18a8f0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x256cf2['commands']['add']('discardAllSuggestions',new x(_0x256cf2,_0x10db4b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x256cf2['commands']['add']('acceptSelectedSuggestions',new E(_0x256cf2,_0x18a8f0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x256cf2['commands']['add']('discardSelectedSuggestions',new E(_0x256cf2,_0x10db4b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x555d59=_0x256cf2['plugins']['get']('CommentsRepository');this['listenTo'](_0x555d59,'addComment',(_0x574401,{threadId:_0x39238c})=>{const _0x2c8fcf=this['_suggestions']['get'](_0x39238c);_0x2c8fcf&&_0x2c8fcf['commentThread']&&0x1===_0x2c8fcf['commentThread']['length']&&this['_updateSuggestionData'](_0x39238c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x555d59,'removeComment',(_0x1da060,{threadId:_0x59cc85})=>{const _0x2b6af1=this['_suggestions']['get'](_0x59cc85);_0x2b6af1&&_0x2b6af1['commentThread']&&!_0x2b6af1['commentThread']['length']&&this['_updateSuggestionData'](_0x59cc85,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x34e6e7){const _0x50ca5a=_0x2ac56e([0x45,0x42,0x56,0x6e,0x31,0x74,0x72,0x5a,0x64,0x6f,0x38,0x54,0x65,0x6c,0x61,0x49,0x6b,0x58,0x77,0x51,0x53,0x30,0x33,0x47,0x66,0x76,0x57,0x36,0x52,0x67,0x50,0x4f,0x6d,0x4a,0x71,0x75,0x69,0x55,0x41,0x63,0x4e,0x6a,0x39,0x79,0x43,0x78,0x4c,0x59,0x70,0x73,0x35,0x68,0x48,0x62,0x46,0x37,0x4d,0x32,0x44,0x4b,0x34,0x7a]),_0xdb4f7b=0x1f7e8da6,_0x415f83=0x1f79d38e^_0xdb4f7b,_0x3e3e1e=window[_0x2ac56e([0x44,0x61,0x74,0x65])][_0x2ac56e([0x6e,0x6f,0x77])](),_0x2a0efb=_0x34e6e7[_0x2ac56e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x341abc=new window[(_0x2ac56e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f3063=>{_0x2a0efb[_0x2ac56e([0x6f,0x6e,0x63,0x65])](_0x2ac56e([0x72,0x65,0x61,0x64,0x79]),_0x4f3063);}),_0x1a9c58={[_0x2ac56e([0x6b,0x74,0x79])]:_0x2ac56e([0x45,0x43]),[_0x2ac56e([0x75,0x73,0x65])]:_0x2ac56e([0x73,0x69,0x67]),[_0x2ac56e([0x63,0x72,0x76])]:_0x2ac56e([0x50,0x2d,0x32,0x35,0x36]),[_0x2ac56e([0x78])]:_0x2ac56e([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]),[_0x2ac56e([0x79])]:_0x2ac56e([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]),[_0x2ac56e([0x61,0x6c,0x67])]:_0x2ac56e([0x45,0x53,0x32,0x35,0x36])},_0x19455b=_0x2a0efb[_0x2ac56e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ac56e([0x67,0x65,0x74])](_0x2ac56e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a6c89(){let _0x57a134,_0x87b8b4=null,_0x48cebe=null;try{if(_0x19455b==_0x2ac56e([0x47,0x50,0x4c]))return _0x2ac56e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57a134=_0x29d9ca(),!_0x57a134)return _0x2ac56e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57a134[_0x2ac56e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48cebe=_0x55bd4a(_0x57a134[_0x2ac56e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57a134[_0x2ac56e([0x6a,0x74,0x69])])),await _0x2f9b9d()?_0x1312b2()?_0x31bc44()?_0x2ac56e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e62b6()?(_0x57a134[_0x2ac56e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ac56e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x87b8b4=_0x1d95a6(_0x2ac56e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57a134[_0x2ac56e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ac56e([0x74,0x72,0x69,0x61,0x6c])&&(_0x87b8b4=_0x1d95a6(_0x2ac56e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ce27d()):_0x2ac56e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ac56e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ac56e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x33f018){return _0x2ac56e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31bc44(){const _0x45c529=[_0x2ac56e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ac56e([0x74,0x72,0x69,0x61,0x6c])][_0x2ac56e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57a134[_0x2ac56e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e3e1e/0x3e8:0xe10*_0x415f83;return _0x57a134[_0x2ac56e([0x65,0x78,0x70])]<_0x45c529;}function _0x1312b2(){const _0x1027f1=_0x57a134[_0x2ac56e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1027f1)return!0x1;if(_0x1027f1[_0x2ac56e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac56e([0x2a])))return!0x0;if(_0x1027f1[_0x2ac56e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac56e([0x54,0x43])))return!0x0;if(_0x1027f1[_0x2ac56e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac56e([0x52,0x54,0x43]))){if(_0x2177dd())return!0x0;if(_0x1eeb48()||_0x2a15b0())return!0x0;}return!0x1;}function _0x5e62b6(){const _0x1e7cdf=_0x57a134[_0x2ac56e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e7cdf||0x0==_0x1e7cdf[_0x2ac56e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x278617}=new URL(window[_0x2ac56e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e7cdf[_0x2ac56e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x278617))return!0x0;const _0x4af9de=_0x278617[_0x2ac56e([0x73,0x70,0x6c,0x69,0x74])](_0x2ac56e([0x2e]));return _0x1e7cdf[_0x2ac56e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24f4d7=>_0x24f4d7[_0x2ac56e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac56e([0x2a])))[_0x2ac56e([0x6d,0x61,0x70])](_0x220e14=>_0x220e14[_0x2ac56e([0x73,0x70,0x6c,0x69,0x74])](_0x2ac56e([0x2e])))[_0x2ac56e([0x73,0x6f,0x6d,0x65])](_0x1802df=>_0x4af9de[_0x2ac56e([0x65,0x76,0x65,0x72,0x79])]((_0x220610,_0x33787a)=>_0x1802df[_0x33787a]===_0x220610||_0x1802df[_0x33787a]===_0x2ac56e([0x2a])));}function _0x5ce27d(){return _0x87b8b4&&_0x48cebe?new window[(_0x2ac56e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c43da,_0x30553d)=>{_0x87b8b4[_0x2ac56e([0x74,0x68,0x65,0x6e])](_0x1c43da,_0x30553d),_0x48cebe[_0x2ac56e([0x74,0x68,0x65,0x6e])](_0x48147e=>{_0x48147e!=_0x2ac56e([0x56,0x61,0x6c,0x69,0x64])&&_0x1c43da(_0x48147e);},_0x30553d);}):_0x87b8b4||_0x48cebe||_0x2ac56e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55bd4a(_0x3bcea3,_0x251a70){return new window[(_0x2ac56e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4005a2=>{if(_0x2c5d85())return _0x4005a2(_0x2ac56e([0x56,0x61,0x6c,0x69,0x64]));_0x3cf25d(),_0x2a0efb[_0x2ac56e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ac56e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cda4a=!0x1;const _0x200622=_0x1ecb7a();function _0x49bd2e(_0x63c3d8){return!!_0x63c3d8&&(typeof _0x63c3d8===_0x2ac56e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x63c3d8===_0x2ac56e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x63c3d8[_0x2ac56e([0x74,0x68,0x65,0x6e])]===_0x2ac56e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x63c3d8[_0x2ac56e([0x63,0x61,0x74,0x63,0x68])]===_0x2ac56e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x36caf1(_0x597188){_0x342841(_0x597188)[_0x2ac56e([0x74,0x68,0x65,0x6e])](_0x2b5f9d=>{if(!_0x2b5f9d||_0x2b5f9d[_0x2ac56e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ac56e([0x6f,0x6b]))return _0x2ac56e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8d2c01(_0x29d42f(_0x200622+_0x251a70))!=_0x2b5f9d[_0x2ac56e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ac56e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ac56e([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ac56e([0x74,0x68,0x65,0x6e])](_0x4ce4e8=>(_0x36f3aa(),_0x4ce4e8),()=>{const _0x299ac4=_0x1870ef();return null==_0x299ac4?(_0x36f3aa(),_0x2ac56e([0x56,0x61,0x6c,0x69,0x64])):_0x2ac56e(_0x3e3e1e-_0x299ac4>(0x3b7209a6^_0xdb4f7b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ac56e([0x74,0x68,0x65,0x6e])](_0x4005a2)[_0x2ac56e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4005a2(_0x2ac56e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x521999=0x1f486326^_0xdb4f7b;function _0x36f3aa(){const _0x47e507=_0x2ac56e([0x6c,0x6c,0x63,0x74,0x2d])+_0x8d2c01(_0x29d42f(_0x3bcea3)),_0x3d4351=_0x5205eb(_0x8d2c01(window[_0x2ac56e([0x4d,0x61,0x74,0x68])][_0x2ac56e([0x63,0x65,0x69,0x6c])](_0x3e3e1e/_0x521999)));window[_0x2ac56e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ac56e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47e507,_0x3d4351);}function _0x1870ef(){const _0x97255e=_0x2ac56e([0x6c,0x6c,0x63,0x74,0x2d])+_0x8d2c01(_0x29d42f(_0x3bcea3)),_0xe971f4=window[_0x2ac56e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ac56e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x97255e);return _0xe971f4?window[_0x2ac56e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5205eb(_0xe971f4),0x10)*_0x521999:null;}function _0x342841(_0x4a47ae){return new window[(_0x2ac56e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10cbc1,_0x1f1513)=>{_0x4a47ae[_0x2ac56e([0x74,0x68,0x65,0x6e])](_0x10cbc1,_0x1f1513),window[_0x2ac56e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f1513,0x1f7f5966^_0xdb4f7b);});}}_0x2a0efb[_0x2ac56e([0x6f,0x6e])](_0x2ac56e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29ca50,_0x495536)=>{if(_0x495536[0x0]!=_0x3bcea3)return _0x4005a2(_0x2ac56e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x495536[0x1]={..._0x495536[0x1],[_0x2ac56e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x200622};},{[_0x2ac56e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ac56e([0x68,0x69,0x67,0x68])}),_0x2a0efb[_0x2ac56e([0x6f,0x6e])](_0x2ac56e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c0276=>{_0x49bd2e(_0x4c0276[_0x2ac56e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cda4a=!0x0,_0x36caf1(_0x4c0276[_0x2ac56e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ac56e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ac56e([0x6c,0x6f,0x77])}),_0x341abc[_0x2ac56e([0x74,0x68,0x65,0x6e])](()=>{_0x1cda4a||_0x4005a2(_0x2ac56e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c5d85(){return _0x2a0efb[_0x2ac56e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ac56e([0x76,0x69,0x65,0x77])][_0x2ac56e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ac56e([0x61,0x75,0x74,0x6f]);}function _0x3cf25d(){_0x2a0efb[_0x2ac56e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ac56e([0x76,0x69,0x65,0x77])][_0x2ac56e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ac56e([0x61,0x75,0x74,0x6f]);}}function _0x1d95a6(_0x387f2f){const _0x2f4382=[new window[(_0x2ac56e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34eef2=>setTimeout(_0x34eef2,0x1f77b36a^_0xdb4f7b)),_0x341abc[_0x2ac56e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ac56e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bf5cc=>{let _0x193a82=0x0;_0x2a0efb[_0x2ac56e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac56e([0x6f,0x6e])](_0x2ac56e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48b50d,_0x117a97)=>{_0x117a97[0x0][_0x2ac56e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x193a82++,_0x193a82==(0x1f7e8c5e^_0xdb4f7b)&&(_0x5bf5cc(),_0x48b50d[_0x2ac56e([0x6f,0x66,0x66])]());});}))];return window[_0x2ac56e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ac56e([0x72,0x61,0x63,0x65])](_0x2f4382)[_0x2ac56e([0x74,0x68,0x65,0x6e])](()=>_0x387f2f);}async function _0x3905f5(){await _0x341abc,_0x2a0efb[_0x2ac56e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac56e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x394d4f,_0x2a0efb[_0x2ac56e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac56e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x394d4f,_0x2a0efb[_0x2ac56e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ac56e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2177dd(){return _0x642f02(_0x2ac56e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x48b5c2(_0x2ac56e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2ac56e([0x73,0x74,0x61,0x74,0x65])]==_0x2ac56e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1eeb48(){return _0x642f02(_0x2ac56e([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 _0x2a15b0(){return _0x642f02(_0x2ac56e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3de2c0(_0x4a936b){const _0x4c5de0=_0x71f492();_0x2a0efb[_0x4c5de0]=_0x2ac56e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a936b,_0x4a936b!=_0x2ac56e([0x56,0x61,0x6c,0x69,0x64])&&_0x3905f5();}function _0x71f492(){const _0x2a4244=window[_0x2ac56e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ac56e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ac56e([0x6e,0x6f,0x77])]())[_0x2ac56e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ac56e([0x2e]),'');let _0x577bdb=_0x2ac56e([0x45]);for(let _0x34a407=0x0;_0x34a407<_0x2a4244[_0x2ac56e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34a407+=0x2){let _0x318e72=window[_0x2ac56e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a4244[_0x2ac56e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34a407,_0x34a407+0x2));_0x318e72>=_0x50ca5a[_0x2ac56e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x318e72-=_0x50ca5a[_0x2ac56e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x577bdb+=_0x50ca5a[_0x318e72];}return _0x577bdb;}function _0x29d9ca(){const _0x344f8f=_0x19455b[_0x2ac56e([0x73,0x70,0x6c,0x69,0x74])](_0x2ac56e([0x2e]));if(0x3!=_0x344f8f[_0x2ac56e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52242d(_0x344f8f[0x1]);function _0x52242d(_0xe54d7f){const _0x4b2d37=_0x5eb18f(_0xe54d7f);return _0x4b2d37&&_0x8e71be()?_0x4b2d37:null;function _0x8e71be(){const _0x5347aa=_0x4b2d37[_0x2ac56e([0x6a,0x74,0x69])],_0x51e9f6=window[_0x2ac56e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5347aa[_0x2ac56e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5347aa[_0x2ac56e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x178761={..._0x4b2d37,[_0x2ac56e([0x6a,0x74,0x69])]:_0x5347aa[_0x2ac56e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5347aa[_0x2ac56e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x178761[_0x2ac56e([0x76,0x63])],_0x29d42f(_0x178761)==_0x51e9f6;}}}async function _0x2f9b9d(){let _0x2f6c49=!0x0;try{const _0x16aa7e=_0x19455b[_0x2ac56e([0x73,0x70,0x6c,0x69,0x74])](_0x2ac56e([0x2e])),[_0x2172c4,_0x118d2c,_0x511581]=_0x16aa7e;return _0x3a0d24(_0x2172c4),await _0x274c8a(_0x2172c4,_0x118d2c,_0x511581),_0x2f6c49;}catch(_0x2f84f8){return!0x1;}function _0x3a0d24(_0x520f94){const _0x564b63=_0x5eb18f(_0x520f94);_0x564b63&&_0x564b63[_0x2ac56e([0x61,0x6c,0x67])]==_0x2ac56e([0x45,0x53,0x32,0x35,0x36])||(_0x2f6c49=!0x1);}async function _0x274c8a(_0x3ec888,_0x26a4c1,_0x324ea1){const _0x366727=window[_0x2ac56e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ac56e([0x66,0x72,0x6f,0x6d])](_0x434106(_0x324ea1),_0x34bebd=>_0x34bebd[_0x2ac56e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5eec5b=new window[(_0x2ac56e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ac56e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ec888+_0x2ac56e([0x2e])+_0x26a4c1),_0x462a24=window[_0x2ac56e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ac56e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x462a24)return;const _0x31558e=await _0x462a24[_0x2ac56e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ac56e([0x6a,0x77,0x6b]),_0x1a9c58,{[_0x2ac56e([0x6e,0x61,0x6d,0x65])]:_0x2ac56e([0x45,0x43,0x44,0x53,0x41]),[_0x2ac56e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ac56e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ac56e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x462a24[_0x2ac56e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ac56e([0x6e,0x61,0x6d,0x65])]:_0x2ac56e([0x45,0x43,0x44,0x53,0x41]),[_0x2ac56e([0x68,0x61,0x73,0x68])]:{[_0x2ac56e([0x6e,0x61,0x6d,0x65])]:_0x2ac56e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31558e,_0x366727,_0x5eec5b)||(_0x2f6c49=!0x1);}}function _0x5eb18f(_0x352124){return _0x352124[_0x2ac56e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ac56e([0x65,0x79]))?JSON[_0x2ac56e([0x70,0x61,0x72,0x73,0x65])](_0x434106(_0x352124)):null;}function _0x434106(_0x49ccdf){return window[_0x2ac56e([0x61,0x74,0x6f,0x62])](_0x49ccdf[_0x2ac56e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ac56e([0x2b]))[_0x2ac56e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ac56e([0x2f])));}function _0x29d42f(_0x3994db){let _0x1c40fb=0x1505;function _0x2eeec3(_0x34aa33){for(let _0x22de4a=0x0;_0x22de4a<_0x34aa33[_0x2ac56e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22de4a++){const _0xc78789=_0x34aa33[_0x2ac56e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22de4a);_0x1c40fb=(_0x1c40fb<<0x5)+_0x1c40fb+_0xc78789,_0x1c40fb&=_0x1c40fb;}}function _0x35a2f2(_0x173d37){Array[_0x2ac56e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x173d37)?_0x173d37[_0x2ac56e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35a2f2):_0x173d37&&typeof _0x173d37==_0x2ac56e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ac56e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x173d37)[_0x2ac56e([0x73,0x6f,0x72,0x74])]()[_0x2ac56e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42b609,_0x38a113])=>{_0x2eeec3(_0x42b609),_0x35a2f2(_0x38a113);}):_0x2eeec3(window[_0x2ac56e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x173d37));}return _0x35a2f2(_0x3994db),_0x1c40fb>>>0x0;}function _0x8d2c01(_0x5bd1c2){return _0x5bd1c2[_0x2ac56e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ac56e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ac56e([0x30]));}function _0x5205eb(_0x34e127){return _0x34e127[_0x2ac56e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ac56e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ac56e([0x6a,0x6f,0x69,0x6e])]('');}function _0x642f02(_0x4ca728){return _0x2a0efb[_0x2ac56e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2ac56e([0x68,0x61,0x73])](_0x4ca728);}function _0x48b5c2(_0x3902a7){return _0x2a0efb[_0x2ac56e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2ac56e([0x67,0x65,0x74])](_0x3902a7);}function _0x394d4f(){}function _0x2ac56e(_0x24f145){return _0x24f145['map'](_0x56879b=>String['fromCharCode'](_0x56879b))['join']('');}_0x3de2c0(await _0x2a6c89());}(this);}set['adapter'](_0xdb6261){if(this['_adapter'])throw new _0x4b8c9f('track-changes-adapter-already-set',this);this['_adapter']=_0xdb6261;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6a8309=!0x1,toJSON:_0x254186=!0x1}={}){const _0x24f4be=[];for(const _0x2fde5a of this['_suggestions']['values']())_0x6a8309&&!_0x2fde5a['isInContent']||_0x24f4be['push'](_0x2fde5a);return _0x254186?_0x24f4be['map'](_0x3e9fcc=>_0x3e9fcc['toJSON']()):_0x24f4be;}['getSuggestion'](_0x2c8758){const _0x3481e4=this['_suggestions']['get'](_0x2c8758);if(!_0x3481e4)throw new _0x4b8c9f('track-changes-suggestion-not-found',this);return _0x3481e4;}['hasSuggestion'](_0x3328ab){return this['_suggestions']['has'](_0x3328ab);}['addSuggestionData'](_0xc389ed){const {authorId:_0x1e2d50,id:_0x546cd3,attributes:_0x5090f4}=_0xc389ed,[_0x10ff47,_0x384948]=_0xc389ed['type']['split'](':'),_0x4950ba=this['_suggestions']['get'](_0x546cd3)||this['_createSuggestion'](_0x10ff47,_0x384948,_0x546cd3,_0x1e2d50,_0x5090f4);if(this['_addThreadToSuggestion'](_0x4950ba),this['_checkSuggestionCorrectness'](_0x4950ba,_0x10ff47,_0x384948||null,_0x1e2d50),_0x4950ba['createdAt']=_0xc389ed['createdAt'],_0x4950ba['_isDataLoaded']=!0x0,_0x5090f4&&_0x5090f4['@external']){const _0x454f9d=_0x5090f4['@external'],_0x5560e6=this['_getExternalAuthor'](_0x454f9d['authorName']);_0x4950ba['authoredAt']=_0x454f9d['createdAt'],_0x4950ba['author']=_0x5560e6,_0x4950ba['isExternal']=!0x0;}else _0x4950ba['authoredAt']=_0xc389ed['createdAt'];switch(_0xc389ed['data']&&(_0x4950ba['data']=_0xc389ed['data']),_0xc389ed['attributes']&&(_0x4950ba['attributes']=_0xc389ed['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4950ba['_saved']=!0x0),this['_suggestionState']['get'](_0x4950ba)){case'notReady':this['_suggestionState']['set'](_0x4950ba,'dataReady');break;case'markerReady':_0x4950ba['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4950ba])),this['_refreshSuggestionsChain'](new Set([_0x4950ba])),this['_suggestionState']['set'](_0x4950ba,'ready'),this['fire']('suggestionLoaded',_0x4950ba)):this['_suggestionState']['set'](_0x4950ba,'removed');}return _0x4950ba;}['acceptSuggestion'](_0x1680f3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c043a of _0x1680f3['getAllAdjacentSuggestions']())_0x5c043a['accept']();});});}['discardSuggestion'](_0x30ff45){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xecfa40 of _0x30ff45['getAllAdjacentSuggestions']())_0xecfa40['discard']();});});}['enableCommand'](_0x1df3b9,_0x165af5){const _0x1e928d=this['editor']['commands']['get'](_0x1df3b9);if(!_0x1e928d)throw new _0x4b8c9f('track-changes-command-not-found',this,{'commandName':_0x1df3b9});if(this['_enabledCommands']['has'](_0x1e928d))throw new _0x4b8c9f('track-changes-enable-command-twice',this,{'commandName':_0x1df3b9});this['_enabledCommands']['add'](_0x1e928d),_0x165af5&&_0x1e928d['on']('execute',(_0x3e964d,_0x449a01)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x449a01['length']>0x0&&_0x449a01[_0x449a01['length']-0x1]&&_0x449a01[_0x449a01['length']-0x1]['forceDefaultExecution']?_0x449a01['pop']():(_0x3e964d['return']=_0x165af5((..._0x274624)=>_0x1e928d['execute'](..._0x274624,{'forceDefaultExecution':!0x0}),..._0x449a01),_0x3e964d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xa4181a){let _0x4d7d1b,_0x201271;const _0x1da708=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4d7d1b=_0xa4181a();}catch(_0x14d0c0){_0x201271=_0x14d0c0;}return _0x1da708||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x201271&&_0x4b8c9f['rethrowUnexpectedError'](_0x201271,this),_0x4d7d1b;}['markInsertion'](_0x5152ac,_0x51cf7d=null,_0x59f732={}){if(_0x5152ac['isCollapsed'])return null;const _0x133d0c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2bd6a3,meta:_0x23e147}of this['_findSuggestions'](_0x5152ac,'insertion'))if(_0x23e147['isOwn']){if(!_0x23e147['isNextTo']){if(_0x23e147['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x2bd6a3,_0x59f732))continue;return _0x2bd6a3;}if(Kt(_0x2bd6a3,_0x59f732))return _0x2bd6a3;this['_breakSuggestionMarker'](_0x2bd6a3,_0x5152ac['start'],_0x5152ac['end']);break;}if(_0x51cf7d==_0x2bd6a3['subType']&&Kt(_0x2bd6a3,_0x59f732)){const _0x57245f=_0x2bd6a3['getFirstRange']();return _0x57245f['start']['isEqual'](_0x5152ac['end'])?this['_setSuggestionRange'](_0x2bd6a3,this['_model']['createRange'](_0x5152ac['start'],_0x57245f['end'])):this['_setSuggestionRange'](_0x2bd6a3,this['_model']['createRange'](_0x57245f['start'],_0x5152ac['end'])),_0x2bd6a3;}}const _0x5c865c=_0x1ecb7a(),_0x6755c2=_0x133d0c['id'],_0x24e019=_0x51cf7d?'insertion:'+_0x51cf7d:'insertion',_0x363f76=this['_setSuggestionData']({'id':_0x5c865c,'type':_0x24e019,'createdAt':new Date(),'authorId':_0x6755c2,'attributes':_0x59f732});return this['_addSuggestionMarker'](_0x24e019,_0x5c865c,_0x6755c2,_0x5152ac),_0x363f76;}['markMultiRangeInsertion'](_0x1fa2a3,_0xf2aad3='multi',_0x47b79e={}){const _0x16b2e5=this['editor']['plugins']['get']('Users')['me'],_0x7b5461=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xf2aad3,'join');for(const _0x5894e4 of this['getSuggestions']())if(_0x5894e4['author']['id']==_0x16b2e5['id']&&'insertion'==_0x5894e4['type']&&_0x5894e4['subType']==_0xf2aad3&&Kt(_0x5894e4,_0x47b79e)&&(_0x7b5461(_0x5894e4['getRanges'](),_0x1fa2a3)||_0x7b5461(_0x1fa2a3,_0x5894e4['getRanges']()))){for(const _0x5bdbfd of _0x1fa2a3)_0x5894e4['addRange'](_0x5bdbfd);return _0x5894e4;}for(const {suggestion:_0x481e2a,meta:_0x120f7e}of this['_findSuggestions'](_0x1fa2a3,'insertion')){if(!_0x120f7e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x120f7e['containsRangeInObject'])continue;if(!Kt(_0x481e2a,_0x47b79e))continue;let _0xb5eb9f=!0x0;for(const _0x195c8d of _0x481e2a['getRanges']())for(const _0x4adb4c of _0x1fa2a3)if(!_0x195c8d['containsRange'](_0x4adb4c)){_0xb5eb9f=!0x1;break;}if(_0xb5eb9f)return _0x481e2a;}const _0x1e9aff=_0x1ecb7a(),_0x38da42=_0x16b2e5['id'],_0x46f93b='insertion:'+_0xf2aad3,_0x35611e=this['_setSuggestionData']({'id':_0x1e9aff,'type':_0x46f93b,'createdAt':new Date(),'authorId':_0x38da42,'attributes':_0x47b79e});for(const _0x2f024c of _0x1fa2a3)this['_addSuggestionMarker'](_0x46f93b,_0x1e9aff,_0x38da42,_0x2f024c,u['getMultiRangeId']());return _0x35611e;}['markInlineFormat'](_0x5b30c8,_0x448d34,_0x39ddd3=null,_0xf56360={}){if(_0x39ddd3=_0x39ddd3||Ft(_0x448d34),_0x5b30c8['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1dc0ee=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x39ddd3,'accept');return this['forceDefaultExecution'](()=>_0x1dc0ee([_0x5b30c8],_0x448d34,_0xf56360)),null;}const _0x3d141f=this['editor']['plugins']['get']('Users')['me'],_0x3bf9e6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x39f028,meta:_0x365fdb}of this['_findSuggestions'](_0x5b30c8,'insertion'))_0x365fdb['isOwn']&&!_0x365fdb['isInsideObject']&&_0x3bf9e6['push'](..._0x39f028['getRanges']());}const _0x432d6f=function(_0x3062b0,_0x128bc9){const _0x2404d3=[];for(const _0x4248f0 of _0x128bc9){const _0x3c662f=_0x3062b0['getIntersection'](_0x4248f0);_0x3c662f&&_0x2404d3['push'](_0x3c662f);}return _0x2404d3;}(_0x5b30c8,_0x3bf9e6),_0x32f2b9=function(_0x2f72ff,_0x3d6481){const _0x28aac4=[_0x2f72ff];for(const _0x4392aa of _0x3d6481){let _0x17f4a5=0x0;for(;_0x17f4a5<_0x28aac4['length'];){const _0x45dd28=_0x28aac4[_0x17f4a5]['getDifference'](_0x4392aa);_0x28aac4['splice'](_0x17f4a5,0x1,..._0x45dd28),_0x17f4a5+=_0x45dd28['length'];}}return _0x28aac4;}(_0x5b30c8,_0x3bf9e6);_0x432d6f['length']&&this['_model']['change'](()=>{for(const _0x24edfd of _0x432d6f){const _0x3898a9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x39ddd3,'accept');this['forceDefaultExecution'](()=>_0x3898a9([_0x24edfd],_0x448d34,_0xf56360));}});for(const _0x45d6eb of _0x32f2b9){let _0x263185=null,_0x24154f=_0x45d6eb['start'],_0x423a57=_0x45d6eb['end'];for(const {suggestion:_0x3b454b,meta:_0x5d5fc6}of this['_findSuggestions'](_0x45d6eb,'formatInline')){if(!_0x5d5fc6['isOwn'])continue;if(_0x3b454b['subType']!=_0x39ddd3)continue;if(!Kt(_0x3b454b,_0xf56360))continue;const _0x3db3f1=_0x3b454b['getFirstRange']();if(_0x3db3f1['containsRange'](_0x45d6eb,!0x0))return null;_0x24154f=_0x24154f['isBefore'](_0x3db3f1['start'])?_0x24154f:_0x3db3f1['start'],_0x423a57=_0x423a57['isAfter'](_0x3db3f1['end'])?_0x423a57:_0x3db3f1['end'],_0x263185?_0x3db3f1['start']['isBefore'](_0x263185['getFirstRange']()['start'])?(_0x263185['removeMarkers'](),_0x263185=_0x3b454b):_0x3b454b['removeMarkers']():_0x263185=_0x3b454b;}const _0x2b846d=this['_model']['createRange'](_0x24154f,_0x423a57);if(_0x263185)this['_setSuggestionRange'](_0x263185,_0x2b846d);else{const _0x7bae2=_0x1ecb7a(),_0x3c6489=_0x3d141f['id'];this['_setSuggestionData']({'id':_0x7bae2,'type':'formatInline:'+_0x39ddd3,'data':_0x448d34,'createdAt':new Date(),'authorId':_0x3c6489,'attributes':_0xf56360}),this['_addSuggestionMarker']('formatInline:'+_0x39ddd3,_0x7bae2,_0x3c6489,_0x2b846d);}}return null;}['markBlockFormat'](_0xeac6c6,_0x40e34a,_0x14a5c2=[],_0x20c0af=null,_0x3d7aba={}){_0x40e34a['formatGroupId']||(_0x40e34a['formatGroupId']=_0x40e34a['commandName']),_0x40e34a['multipleBlocks']=_0xeac6c6['is']('range'),_0x20c0af=_0x20c0af||Ft(_0x40e34a);const _0x5173b1=_0x14a5c2['map'](_0x48c1cf=>Ht(_0x48c1cf,this['_model'])),_0x550ce4=_0xeac6c6['is']('range')?_0xeac6c6:Ht(_0xeac6c6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x438806=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20c0af,'accept');return this['forceDefaultExecution'](()=>_0x438806([_0x550ce4],_0x40e34a,_0x3d7aba)),null;}_0x5173b1['push'](_0x550ce4);let _0x136ecf=!0x0;for(const _0x15eedb of _0x5173b1)if(!this['_rangeIsInLocalUserInsertion'](_0x15eedb)){_0x136ecf=!0x1;break;}if(_0x136ecf&&'always'!==this['_trackFormatChanges']){const _0x27ed87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20c0af,'accept');return this['forceDefaultExecution'](()=>_0x27ed87([_0x550ce4],_0x40e34a,_0x3d7aba)),null;}let _0x3f78f6=null,_0x50a9e9=_0x550ce4['start'],_0x5b3e9b=_0x550ce4['end'];for(const {suggestion:_0x150d6c,meta:_0x32a778}of this['_findSuggestions'](_0x550ce4,'formatBlock')){if(!_0x32a778['isOwn'])continue;if(_0x32a778['isNextTo']||_0x32a778['containsRangeInObject']||_0x32a778['isInsideObject'])continue;if(_0x150d6c['data']['formatGroupId']!=_0x40e34a['formatGroupId'])continue;if(!Kt(_0x150d6c,_0x3d7aba))continue;const _0xc08dee=_0x150d6c['getFirstRange']();if(_0x150d6c['subType']==_0x20c0af){if(_0xc08dee['containsRange'](_0x550ce4,!0x0))return null;_0x50a9e9=_0x50a9e9['isBefore'](_0xc08dee['start'])?_0x50a9e9:_0xc08dee['start'],_0x5b3e9b=_0x5b3e9b['isAfter'](_0xc08dee['end'])?_0x5b3e9b:_0xc08dee['end'],_0x3f78f6?_0xc08dee['start']['isBefore'](_0x3f78f6['getFirstRange']()['start'])?(_0x3f78f6['removeMarkers'](),_0x3f78f6=_0x150d6c):_0x150d6c['removeMarkers']():_0x3f78f6=_0x150d6c;}else{const _0x1e1603=_0x550ce4['getIntersection'](_0xc08dee);this['_cutOutSuggestionMarker'](_0x150d6c,_0x1e1603);}}const _0x1f45a1=this['editor']['plugins']['get']('Users')['me'],_0x3a4b90=_0x1ecb7a(),_0x49bc2f=_0x1f45a1['id'];if(_0x3f78f6)return this['_setSuggestionRange'](_0x3f78f6,this['_model']['createRange'](_0x50a9e9,_0x5b3e9b)),_0x3f78f6;{const _0x1ab396=this['_setSuggestionData']({'id':_0x3a4b90,'type':'formatBlock:'+_0x20c0af,'data':_0x40e34a,'createdAt':new Date(),'authorId':_0x49bc2f,'attributes':_0x3d7aba});return this['_addSuggestionMarker']('formatBlock:'+_0x20c0af,_0x3a4b90,_0x49bc2f,this['_model']['createRange'](_0x50a9e9,_0x5b3e9b)),_0x1ab396;}}['markMultiRangeBlockFormat'](_0x156778,_0x5f2a1c,_0x33e032=[],_0x3434e6=null,_0x3e2360={}){_0x5f2a1c['formatGroupId']||(_0x5f2a1c['formatGroupId']=_0x5f2a1c['commandName']);const _0x1b83af=_0x156778[0x0];_0x5f2a1c['multipleBlocks']=_0x1b83af['is']('range'),_0x3434e6=_0x3434e6||Ft(_0x5f2a1c);const _0x493e3b=_0x33e032['map'](_0x36fb01=>Ht(_0x36fb01,this['_model'])),_0x52d098=_0x1b83af['is']('range')?_0x156778:_0x156778['map'](_0x2f5070=>Ht(_0x2f5070,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5c443e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3434e6,'accept');return this['forceDefaultExecution'](()=>_0x5c443e(_0x52d098,_0x5f2a1c,_0x3e2360)),null;}_0x493e3b['push'](..._0x52d098);let _0x94fdf5=!0x0;for(const _0x12782b of _0x493e3b)if(!this['_rangeIsInLocalUserInsertion'](_0x12782b)){_0x94fdf5=!0x1;break;}if(_0x94fdf5&&'always'!==this['_trackFormatChanges']){const _0x5ca786=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3434e6,'accept');return this['forceDefaultExecution'](()=>_0x5ca786(_0x52d098,_0x5f2a1c,_0x3e2360)),null;}const _0x8c4390=this['editor']['plugins']['get']('Users')['me'];for(const _0x37cc8a of this['getSuggestions']()){if(_0x37cc8a['author']['id']!=_0x8c4390['id'])continue;if('formatBlock'!=_0x37cc8a['type']||_0x37cc8a['data']['formatGroupId']!=_0x5f2a1c['formatGroupId'])continue;if(!Kt(_0x37cc8a,_0x3e2360))continue;const _0x5db0da=_0x37cc8a['subType']==_0x3434e6;for(let _0x36eae8=0x0;_0x36eae8<_0x52d098['length'];_0x36eae8++){const _0x219cc0=_0x52d098[_0x36eae8];for(const _0xa40864 of _0x37cc8a['getMarkers']()){const _0x17b2a8=_0xa40864['getRange']();if(_0x219cc0['isEqual'](_0x17b2a8)){_0x5db0da?(_0x52d098['splice'](_0x36eae8,0x1),_0x36eae8--):_0x37cc8a['removeMarker'](_0xa40864['name']);break;}}}}if(0x0==_0x52d098['length'])return null;const _0x2caa9d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3434e6,'join');for(const _0x2db5cc of this['getSuggestions']())if(_0x2db5cc['author']['id']==_0x8c4390['id']&&'formatBlock'==_0x2db5cc['type']&&_0x2db5cc['data']['formatGroupId']==_0x5f2a1c['formatGroupId']&&_0x2db5cc['subType']==_0x3434e6&&Kt(_0x2db5cc,_0x3e2360)&&(_0x2caa9d(_0x2db5cc['getRanges'](),_0x52d098)||_0x2caa9d(_0x52d098,_0x2db5cc['getRanges']()))){for(const _0x506c3b of _0x52d098)_0x2db5cc['addRange'](_0x506c3b);return _0x2db5cc;}const _0x3e0295=_0x1ecb7a(),_0x248a64=_0x8c4390['id'],_0x3e2066='formatBlock:'+_0x3434e6,_0x89e513=this['_setSuggestionData']({'id':_0x3e0295,'type':_0x3e2066,'data':_0x5f2a1c,'createdAt':new Date(),'authorId':_0x248a64,'attributes':_0x3e2360});for(const _0x458e87 of _0x52d098)this['_addSuggestionMarker'](_0x3e2066,_0x3e0295,_0x248a64,_0x458e87,u['getMultiRangeId']());return _0x89e513;}['markDeletion'](_0x4f38e9,_0x2fedf3=null,_0x34644f={}){if(_0x4f38e9['isCollapsed'])return null;const _0x526aeb=this['editor']['plugins']['get']('Users')['me'],_0x37bea8=new _0x4179c1(_0x4f38e9['start'],_0x4f38e9['end']);for(const {suggestion:_0x3e54a2,meta:_0x50e0a8}of this['_findSuggestions'](_0x37bea8,'insertion'))if(_0x50e0a8['isOwn']&&!_0x50e0a8['isNextTo']){if(_0x3e54a2['isMultiRange']){const _0x220549=_0x3e54a2['getRanges']()['filter'](_0x546b84=>'$graveyard'!=_0x546b84['root']['rootName']);_0x220549['every'](_0x2a50c2=>_0x37bea8['containsRange'](_0x2a50c2,!0x0))&&_0x3e54a2['discard']();if(_0x220549['some'](_0x5e9849=>_0x5e9849['containsRange'](_0x37bea8,!0x0))){const _0xb7d0b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fedf3,'accept');return this['forceDefaultExecution'](()=>_0xb7d0b8([_0x37bea8],null,_0x34644f)),null;}}else{const _0x4eb8d3=_0x37bea8['getIntersection'](_0x3e54a2['getFirstRange']());null!==_0x4eb8d3&&_0x3e54a2['_onDiscard']([_0x4eb8d3],null,_0x34644f);}}if(_0x37bea8['detach'](),_0x37bea8['isCollapsed']||'$graveyard'==_0x37bea8['root']['rootName'])return null;let _0x5a0959=null,_0x1dbc92=_0x37bea8['start'],_0x4a7783=_0x37bea8['end'];const _0x1185f4=this['_findSuggestions'](_0x37bea8,'deletion');for(const {suggestion:_0x48a599,meta:_0x58d597}of _0x1185f4){const _0x4d3d72=this['_model']['createRange'](_0x1dbc92,_0x4a7783);if(_0x58d597['isOwn']&&(this['_mergeNestedSuggestions']||!_0x58d597['containsRangeInObject']&&!_0x58d597['isInsideObject'])){if(_0x48a599['isMultiRange']){if(!Kt(_0x48a599,_0x34644f))continue;let _0x563f99=!0x0;for(const _0x549582 of _0x48a599['getRanges']()){if(_0x549582['containsRange'](_0x4d3d72,!0x0))return _0x48a599;_0x4d3d72['containsRange'](_0x549582)||(_0x563f99=!0x1);}_0x563f99&&_0x48a599['discard']();}else{const _0x1dd42f=_0x48a599['getFirstRange']();if(_0x1dd42f['containsRange'](_0x4d3d72,!0x0))return _0x48a599;if(!Kt(_0x48a599,_0x34644f)){_0x4d3d72['containsRange'](_0x1dd42f)?_0x48a599['removeMarkers']():_0x1dd42f['containsPosition'](_0x1dbc92)?_0x1dbc92=_0x1dd42f['end']:_0x1dd42f['containsPosition'](_0x4a7783)&&(_0x4a7783=_0x1dd42f['start']);continue;}_0x1dbc92=_0x1dbc92['isBefore'](_0x1dd42f['start'])?_0x1dbc92:_0x1dd42f['start'],_0x4a7783=_0x4a7783['isAfter'](_0x1dd42f['end'])?_0x4a7783:_0x1dd42f['end'],_0x34644f=Object['assign']({},_0x48a599['attributes']),_0x5a0959?_0x1dd42f['start']['isBefore'](_0x5a0959['getFirstRange']()['start'])?(_0x5a0959['removeMarkers'](),_0x5a0959=_0x48a599):_0x48a599['removeMarkers']():_0x5a0959=_0x48a599;}}}if(_0x5a0959)return this['_setSuggestionRange'](_0x5a0959,this['_model']['createRange'](_0x1dbc92,_0x4a7783)),_0x5a0959;{const _0x561f67=_0x1ecb7a(),_0x55e2aa=this['_model']['createRange'](_0x1dbc92,_0x4a7783),_0x2c965b=_0x526aeb['id'],_0x3c86b7=_0x2fedf3?'deletion:'+_0x2fedf3:'deletion',_0x23e067=this['_setSuggestionData']({'id':_0x561f67,'type':_0x3c86b7,'createdAt':new Date(),'authorId':_0x2c965b,'attributes':_0x34644f});return this['_addSuggestionMarker'](_0x3c86b7,_0x561f67,_0x2c965b,_0x55e2aa),_0x23e067;}}['markMultiRangeDeletion'](_0x5efc1e,_0x52e220='multi',_0xf857b9={}){const _0x2eb793=this['editor']['plugins']['get']('Users')['me'],_0x2a86d8=_0x5efc1e['map'](_0x5e18a6=>new _0x4179c1(_0x5e18a6['start'],_0x5e18a6['end'])),_0x21a7d6=new Set();for(const {suggestion:_0x26ea39,meta:_0xfd6b9b}of this['_findSuggestions'](_0x2a86d8,'insertion'))_0xfd6b9b['isOwn']&&!_0xfd6b9b['isNextTo']&&_0x21a7d6['add'](_0x26ea39);for(const _0x5d0d7c of _0x21a7d6)if(_0x5d0d7c['isMultiRange']){const _0x5e9ceb=_0x5d0d7c['getRanges']();(!_0x5d0d7c['attributes']||!_0x5d0d7c['attributes']['skipNestingCheck'])&&(_0x5e9ceb['every'](_0x3cd3a4=>_0x2a86d8['some'](_0x30692d=>_0x30692d['containsRange'](_0x3cd3a4,!0x0)))&&_0x5d0d7c['discard']());if(_0x2a86d8['every'](_0x15f02c=>_0x5e9ceb['some'](_0x2c1ff7=>_0x2c1ff7['containsRange'](_0x15f02c,!0x0)))){const _0x53b948=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52e220,'accept');return this['forceDefaultExecution'](()=>_0x53b948(_0x5efc1e,null,_0xf857b9)),null;}}else{const _0x5b3de6=_0x5d0d7c['getFirstRange']();_0x2a86d8['some'](_0x30c142=>_0x30c142['containsRange'](_0x5b3de6,!0x0))&&_0x5d0d7c['discard']();if(_0x2a86d8['every'](_0x4e4069=>_0x5b3de6['containsRange'](_0x4e4069,!0x0))){const _0x5b8bed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52e220,'accept');return this['forceDefaultExecution'](()=>_0x5b8bed(_0x2a86d8,null,_0xf857b9)),null;}}const _0x24a0bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52e220,'join');let _0x46720c=null;for(const _0x28c551 of this['getSuggestions']())if(_0x28c551['author']['id']==_0x2eb793['id']&&_0x28c551['isInContent']&&'deletion'==_0x28c551['type']&&_0x28c551['subType']==_0x52e220&&Kt(_0x28c551,_0xf857b9)&&(_0x24a0bf(_0x28c551['getRanges'](),_0x2a86d8)||_0x24a0bf(_0x2a86d8,_0x28c551['getRanges']()))){if(_0x46720c){if(_0x28c551['commentThread']&&_0x28c551['commentThread']['length'])continue;for(const _0x5740ec of _0x28c551['getRanges']())_0x46720c['isIntersectingWithRange'](_0x5740ec)||_0x46720c['addRange'](_0x5740ec);_0x28c551['removeMarkers']();}else{_0x46720c=_0x28c551;for(const _0x5f9e89 of _0x2a86d8)_0x28c551['isIntersectingWithRange'](_0x5f9e89)||_0x28c551['addRange'](_0x5f9e89);}}if(_0x46720c)return _0x46720c;_0x21a7d6['clear']();for(const {suggestion:_0x446401,meta:_0x2c072b}of this['_findSuggestions'](_0x2a86d8,'deletion'))_0x2c072b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c072b['containsRangeInObject']&&!_0x2c072b['isInsideObject'])&&Kt(_0x446401,_0xf857b9)&&_0x21a7d6['add'](_0x446401);for(const _0x3d1863 of _0x21a7d6){const _0x15f4be=_0x3d1863['getRanges']();if(!_0xf857b9||!_0xf857b9['skipNestingCheck']){if(_0x2a86d8['every'](_0x206384=>_0x15f4be['some'](_0x23afa0=>_0x23afa0['containsRange'](_0x206384,!0x0))))return _0x3d1863;}(!_0x3d1863['attributes']||!_0x3d1863['attributes']['skipNestingCheck'])&&(_0x15f4be['every'](_0x4d5473=>_0x2a86d8['some'](_0x1dc334=>_0x1dc334['containsRange'](_0x4d5473,!0x0)))&&_0x3d1863['discard']());}const _0x4f8edc=_0x1ecb7a(),_0x2d3a79=_0x2eb793['id'],_0x367d27='deletion:'+_0x52e220,_0x27f499=this['_setSuggestionData']({'id':_0x4f8edc,'type':_0x367d27,'createdAt':new Date(),'authorId':_0x2d3a79,'attributes':_0xf857b9});for(const _0x1e31fe of _0x2a86d8)_0x1e31fe['detach'](),_0x1e31fe['isCollapsed']||'$graveyard'==_0x1e31fe['root']['rootName']||this['_addSuggestionMarker'](_0x367d27,_0x4f8edc,_0x2d3a79,_0x1e31fe,u['getMultiRangeId']());return _0x27f499;}['markAttributeChange'](_0x1d4fb4,_0xf8fab5,_0x331dc0,_0x568f23,_0x40f080){if(_0x1d4fb4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x23fa0f=this['editor']['plugins']['get']('Users')['me']['id'],_0x3fb821=Array['from'](this['_suggestions']['values']())['filter'](_0x3ecd2f=>'attribute'==_0x3ecd2f['type']&&_0x3ecd2f['data']['key']==_0xf8fab5&&_0x3ecd2f['isIntersectingWithRange'](_0x1d4fb4));if('default'===this['_trackFormatChanges']){const _0x184597=this['_findSuggestions'](_0x1d4fb4,'insertion')['filter'](({meta:_0x4b8722})=>_0x4b8722['isOwn']&&!_0x4b8722['isInsideObject']&&!_0x4b8722['isNextTo'])['map'](({suggestion:_0x2e4954})=>_0x2e4954);_0x3fb821['unshift'](..._0x184597);}const _0x2dbde8=new Map([[_0x1d4fb4,_0x331dc0]]);for(const _0x11d265 of _0x3fb821){const _0x32ae6f='attribute'==_0x11d265['type']?_0x11d265['data']['oldValue']:void 0x0,_0xb6a0cf=_0x11d265['getFirstRange'](),_0x344db9=Array['from'](_0x2dbde8['keys']())['find'](_0x5227ea=>_0x5227ea['isIntersecting'](_0xb6a0cf));if(!_0x344db9)continue;const _0x3beef1=_0x344db9['getDifference'](_0xb6a0cf);this['_isBlockAttribute'](_0xf8fab5)&&'insertion'==_0x11d265['type']&&0x0!=_0x3beef1['length']||(_0x2dbde8['delete'](_0x344db9),_0x3beef1['forEach'](_0x1c8c63=>{_0x2dbde8['set'](_0x1c8c63,_0x331dc0);}),'insertion'!=_0x11d265['type']&&_0x32ae6f!=_0x568f23&&_0x2dbde8['set'](_0x344db9['getIntersection'](_0xb6a0cf),_0x32ae6f));}const _0xed1933=[];for(const [_0x2c7275,_0x33aaca]of _0x2dbde8){const _0x3d8afb=_0x1ecb7a(),_0x12ed47={'key':_0xf8fab5,'oldValue':_0x33aaca,'newValue':_0x568f23};_0xf8fab5['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':_0xf8fab5});const _0x16fad6=('attribute:'+(_0xf8fab5+'|'+Ft({'newValue':_0x568f23})))['substring'](0x0,0x3c),_0x209d3a=this['_setSuggestionData']({'id':_0x3d8afb,'type':_0x16fad6,'data':_0x12ed47,'createdAt':new Date(),'authorId':_0x23fa0f,'attributes':_0x40f080});_0xed1933['push'](_0x209d3a),this['_addSuggestionMarker'](_0x16fad6,_0x3d8afb,_0x23fa0f,_0x2c7275);}return _0xed1933;}['enableDefaultAttributesIntegration'](_0x2c3f07){this['enableCommand'](_0x2c3f07,(_0x3365fc,..._0x2eb99b)=>{this['_recordAttributeChanges'](()=>{_0x3365fc(..._0x2eb99b);});});}['registerBlockAttribute'](_0x1984bb){this['_blockAttributeKeys']['add'](_0x1984bb);}['registerInlineAttribute'](_0x347fe0){this['_inlineAttributeKeys']['add'](_0x347fe0);}['_getAttributeKey'](_0x3802bc){return'attribute'==_0x3802bc['type']?_0x3802bc['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2f48df,_0x5bcf0b){const _0x34ef19=_0x2f48df['getFirstMarker']();this['_model']['change'](_0x7a2497=>{_0x7a2497['updateMarker'](_0x34ef19,{'range':_0x5bcf0b});});}['_addThreadToSuggestion'](_0x317760){const _0x133807=_0x317760['id'],_0x1b5569=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x133807)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b5569,'threadId':_0x133807,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b2980=this['_commentsRepository']['getCommentThread'](_0x133807);_0x2b2980['unbind']('isRemovable'),_0x2b2980['isRemovable']=!0x1,_0x317760['commentThread']=_0x2b2980;}['_checkSuggestionCorrectness'](_0xb16083,_0x27ac8e,_0x1e3556,_0x3332a1){if(_0xb16083['type']!=_0x27ac8e||_0xb16083['subType']!=_0x1e3556||_0xb16083['creator']['id']!=_0x3332a1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4b8c9f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x34f060,_0x207eed){const _0x5a45da=_0x34f060['getFirstRange']();if(_0x207eed['isEqual'](_0x5a45da))_0x34f060['removeMarkers']();else{if(_0x5a45da['containsRange'](_0x207eed)){const _0x274079=this['_model']['createPositionAt'](_0x207eed['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34f060,this['_model']['createRange'](_0x5a45da['start'],_0x274079));const _0x2686df=_0x1ecb7a(),_0x2b6090=_0x34f060['creator']['id'],_0x554bc3=_0x34f060['type']+':'+_0x34f060['subType'];this['_setSuggestionData']({'id':_0x2686df,'type':_0x554bc3,'createdAt':new Date(),'authorId':_0x2b6090,'data':_0x34f060['data'],'attributes':_0x34f060['attributes']});const _0x2a08f8=this['_model']['createPositionAt'](_0x207eed['end']['parent'],'after'),_0x42e507=this['_model']['createRange'](_0x2a08f8,_0x5a45da['end']);this['_addSuggestionMarker'](_0x554bc3,_0x2686df,_0x2b6090,_0x42e507);}else{if(_0x5a45da['containsPosition'](_0x207eed['start'])){const _0x47e202=this['_model']['createPositionAt'](_0x207eed['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34f060,this['_model']['createRange'](_0x5a45da['start'],_0x47e202));}else{const _0x2a5d7a=this['_model']['createPositionAt'](_0x207eed['end']['parent'],'after');this['_setSuggestionRange'](_0x34f060,this['_model']['createRange'](_0x2a5d7a,_0x5a45da['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x35fb21){for(const {suggestion:_0x3b47c2,meta:_0x18aef1}of this['_findSuggestions'](_0x35fb21,'insertion')){if(!_0x18aef1['isOwn'])continue;const _0x5d949b=_0x3b47c2['getRanges']();for(const _0x3aef92 of _0x5d949b)if(!_0x35fb21['getDifference'](_0x3aef92)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3440f7){const _0x50fb2e=this['editor']['plugins']['get']('Users')['getUser'](_0x3440f7);if(!_0x50fb2e)throw new _0x4b8c9f('track-changes-user-not-found',this);return _0x50fb2e;}['_getExternalAuthor'](_0x50fc02){const _0x2e0a92=this['editor']['plugins']['get']('Users'),_0x4c8e2d=_0x2b060e('external:'+_0x50fc02),_0x28a137=_0x2e0a92['getUser'](_0x4c8e2d);return _0x28a137||_0x2e0a92['addUser']({'id':_0x4c8e2d,'name':_0x50fc02});}['_createSuggestion'](_0x3aa7bb,_0x207b3b,_0x493ce4,_0x40837a,_0x5d25c6){const _0x67e7b9=this['_getAuthorFromId'](_0x40837a),_0x5f0c9e=this['_suggestionFactory']['buildSuggestion'](_0x3aa7bb,_0x207b3b,_0x493ce4,_0x67e7b9,_0x5d25c6,_0x4c5d20=>{this['_updateSuggestionData'](_0x493ce4,{'attributes':_0x4c5d20});const _0x528b08=this['getSuggestion'](_0x493ce4);this['_joinWithAdjacentSuggestions'](new Set([_0x528b08])),this['_refreshSuggestionsChain'](new Set([_0x528b08]));});return this['listenTo'](_0x5f0c9e,'accept',()=>{this['_updateSuggestionData'](_0x493ce4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5f0c9e,'discard',()=>{this['_updateSuggestionData'](_0x493ce4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x493ce4,_0x5f0c9e),this['_suggestionState']['set'](_0x5f0c9e,'notReady'),_0x5f0c9e;}['_splitMarkerName'](_0x2a6e04){const _0x5b2fe2=_0x2a6e04['split'](':');return{'group':_0x5b2fe2[0x0],'type':_0x5b2fe2[0x1],'subType':_0x5b2fe2['length']>=0x5?_0x5b2fe2[0x2]:null,'id':_0x5b2fe2['length']<0x5?_0x5b2fe2[0x2]:_0x5b2fe2[0x3],'authorId':_0x5b2fe2['length']<0x5?_0x5b2fe2[0x3]:_0x5b2fe2[0x4],'markerCount':0x6==_0x5b2fe2['length']?_0x5b2fe2[0x5]:null};}['_breakSuggestionMarker'](_0x30b126,_0x5614ce,_0x2b008b){const _0x2c2d43=_0x30b126['getFirstRange'](),_0x19b967=_0x2c2d43['start'],_0x438900=_0x2c2d43['end'];this['_setSuggestionRange'](_0x30b126,this['_model']['createRange'](_0x19b967,_0x5614ce));const _0x13c3e3=_0x1ecb7a(),_0x885d0b=_0x30b126['creator']['id'],_0x1e61f0=_0x30b126['type']+(_0x30b126['subType']?':'+_0x30b126['subType']:'');this['_setSuggestionData']({'id':_0x13c3e3,'type':_0x1e61f0,'createdAt':new Date(),'authorId':_0x885d0b,'originalSuggestionId':_0x30b126['id'],'attributes':_0x30b126['attributes'],'data':_0x30b126['data']});const _0x804c4=this['_getAttributeKey'](_0x30b126);('formatBlock'==_0x30b126['type']||_0x804c4&&this['_isBlockAttribute'](_0x804c4))&&(_0x2b008b=this['_model']['createPositionBefore'](_0x2b008b['parent'])),this['_addSuggestionMarker'](_0x1e61f0,_0x13c3e3,_0x885d0b,this['_model']['createRange'](_0x2b008b,_0x438900));}['_findSuggestions'](_0x50d4a1,_0xb3a73f=null){const _0x215f24=[],_0x457336=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x50d4a1)||(_0x50d4a1=[_0x50d4a1]);for(const _0x4d995f of this['getSuggestions']()){if(!_0x4d995f['isInContent'])continue;if(_0xb3a73f&&_0x4d995f['type']!=_0xb3a73f)continue;let _0x5438d4=!0x1;for(const _0x311967 of _0x4d995f['getRanges']()){for(const _0x403693 of _0x50d4a1){const _0xeae58d=_0x403693['start']['isEqual'](_0x311967['end'])||_0x403693['end']['isEqual'](_0x311967['start']);if(_0xeae58d||_0x403693['getIntersection'](_0x311967)){const _0x5e8512=_0x403693['containsRange'](_0x311967)&&Vt(this['_model']['schema'],_0x311967['start'],_0x403693),_0x44a964=_0x311967['containsRange'](_0x403693)&&Vt(this['_model']['schema'],_0x403693['start'],_0x311967);_0x215f24['push']({'suggestion':_0x4d995f,'meta':{'isOwn':_0x457336==_0x4d995f['author'],'isNextTo':_0xeae58d,'isInsideObject':_0x5e8512,'containsRangeInObject':_0x44a964}}),_0x5438d4=!0x0;break;}}if(_0x5438d4)break;}}return _0x215f24;}['_addSuggestionMarker'](_0xdafdef,_0x5478a2,_0x9006f2,_0x5abb9c,_0x31ec71){this['_model']['change'](_0xb851da=>{let _0x453b22='suggestion:'+_0xdafdef+':'+_0x5478a2+':'+_0x9006f2;_0x31ec71&&(_0x453b22=_0x453b22+':'+_0x31ec71),_0xb851da['addMarker'](_0x453b22,{'range':_0x5abb9c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x58d602){const _0x163b0b=_0x58d602['previous'],_0x22c823=_0x58d602['next'];_0x58d602['previous']=null,_0x58d602['next']=null,null!=_0x163b0b&&_0x163b0b['next']==_0x58d602&&(_0x163b0b['next']=_0x22c823),null!=_0x22c823&&_0x22c823['previous']==_0x58d602&&(_0x22c823['previous']=_0x163b0b),'ready'==this['_suggestionState']['get'](_0x58d602)&&(this['_suggestionState']['set'](_0x58d602,'removed'),this['fire']('suggestionUnloaded',_0x58d602,_0x163b0b,_0x22c823));}['_setSuggestionData'](_0x2e9f97){const _0x4ed7f2=_0x2e9f97['id'],_0x4b3313=this['addSuggestionData'](_0x2e9f97);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2da1de=this['editor']['plugins']['get']('PendingActions'),_0x3acf61=_0x4b3313['hasComments'],_0x6fc167=_0x4b3313['subType']?_0x4b3313['type']+':'+_0x4b3313['subType']:_0x4b3313['type'],_0x158ce9=this['editor']['locale'],_0x228e0e=_0x2da1de['add'](o(_0x158ce9,'PENDING_ACTION_SUGGESTION')),_0x3287ec={'id':_0x4ed7f2,'type':_0x6fc167,'hasComments':_0x3acf61,'data':_0x2e9f97['data']||null,'originalSuggestionId':_0x2e9f97['originalSuggestionId']||null,'attributes':_0x4b3313['attributes']};this['_adapter']['addSuggestion'](_0x3287ec)['then'](_0x5d2587=>{_0x4b3313['_saved']=!0x0,_0x2da1de['remove'](_0x228e0e),_0x5d2587&&_0x5d2587['createdAt']&&(this['_suggestions']['get'](_0x4ed7f2)['createdAt']=_0x5d2587['createdAt']);})['catch'](_0x4e3f98=>{throw _0x2be3bc('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4b3313['discard']();}),_0x4b3313['stopListening'](),this['_suggestions']['delete'](_0x4b3313['id']),this['_suggestionState']['delete'](_0x4b3313),_0x4e3f98;});}return _0x4b3313;}['_isBlockAttribute'](_0x396bc8){return this['_blockAttributeKeys']['has'](_0x396bc8);}['_updateSuggestionData'](_0x392208,_0x5ccd94){const _0x2fac3d=this['editor']['plugins']['get']('PendingActions'),_0x48e0b5=this['getSuggestion'](_0x392208);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48e0b5['_saved']){const _0x10172=_0x2fac3d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x392208,_0x5ccd94)['then'](()=>{_0x2fac3d['remove'](_0x10172);});}else _0x48e0b5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x392208,_0x5ccd94);});}}['_getSuggestionData'](_0x2f0ff3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4b8c9f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2f0ff3);}['_handleNewSuggestionMarker'](_0x3d2481){const {id:_0x26ce36,type:_0x20c535,subType:_0x430731,authorId:_0xcb7260}=this['_splitMarkerName'](_0x3d2481),_0x52c1c1=this['_suggestions']['get'](_0x26ce36)||this['_createSuggestion'](_0x20c535,_0x430731,_0x26ce36,_0xcb7260,{});switch(this['_checkSuggestionCorrectness'](_0x52c1c1,_0x20c535,_0x430731,_0xcb7260),this['_suggestionState']['get'](_0x52c1c1)){case'notReady':this['_getSuggestionData'](_0x26ce36)['then'](_0xf377d1=>{let _0x3cf4cc=Promise['resolve']();_0xf377d1['hasComments']&&(_0x3cf4cc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x26ce36})),_0x3cf4cc['then'](()=>{this['addSuggestionData'](_0xf377d1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x52c1c1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x26ce36,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x52c1c1,'ready'),this['fire']('suggestionLoaded',_0x52c1c1);break;case'ready':this['fire']('suggestionChanged',_0x52c1c1);}return _0x52c1c1['addMarkerName'](_0x3d2481),_0x52c1c1;}['_refreshSuggestionsChain'](_0x515dd8){const _0x7bc1b4=Array['from'](_0x515dd8),_0x747875=_0x7bc1b4['filter'](_0x467815=>'attribute'==_0x467815['type']);this['_refreshAttributeSuggestionsChain'](_0x747875);const _0x15f5cd=_0x7bc1b4['filter'](_0x2d037c=>!_0x2d037c['isMultiRange']&&'attribute'!=_0x2d037c['type']),_0x46041f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x101d99=>!_0x101d99['isMultiRange']&&'attribute'!=_0x101d99['type']),_0x345ae7=_0x46041f['filter'](_0x105de0=>!_0x515dd8['has'](_0x105de0)),_0x53c132=new Map(_0x46041f['map'](_0x486daa=>[_0x486daa,this['_suggestionFactory']['getSuggestionCallback'](_0x486daa['type'],_0x486daa['subType'],'chain')])),_0x4e6c8f=new Map(_0x46041f['map'](_0x2a7f3f=>[_0x2a7f3f,_0x2a7f3f['getFirstRange']()])),_0x3e7160=new Set(),_0x1c5363=new Set();for(let _0x1b3484=0x0;_0x1b3484<_0x15f5cd['length'];_0x1b3484++)_0x286f5f(_0x15f5cd[_0x1b3484],_0x15f5cd,_0x1b3484+0x1);for(let _0x42d468=0x0;_0x42d468<_0x15f5cd['length'];_0x42d468++)_0x286f5f(_0x15f5cd[_0x42d468],_0x345ae7,0x0);const _0x2d8838=new Set();for(let _0x218b8a=0x0;_0x218b8a<_0x15f5cd['length'];_0x218b8a++){const _0x266a4f=_0x15f5cd[_0x218b8a];!_0x1c5363['has'](_0x266a4f)&&_0x266a4f['previous']&&(_0x2d8838['add'](_0x266a4f['previous']),_0x266a4f['previous']['next']===_0x266a4f&&(_0x266a4f['previous']['next']=null),_0x266a4f['previous']=null),!_0x3e7160['has'](_0x266a4f)&&_0x266a4f['next']&&(_0x2d8838['add'](_0x266a4f['next']),_0x266a4f['next']['previous']===_0x266a4f&&(_0x266a4f['next']['previous']=null),_0x266a4f['next']=null);}function _0x286f5f(_0xf85d54,_0x4e9666,_0x3e876b){for(let _0x3aec17=_0x3e876b;_0x3aec17<_0x4e9666['length'];_0x3aec17++){const _0x48eb57=_0x2c7e39(_0xf85d54,_0x4e9666[_0x3aec17]);_0x48eb57&&(_0x48eb57[0x0]['next']=_0x48eb57[0x1],_0x48eb57[0x1]['previous']=_0x48eb57[0x0],_0x3e7160['add'](_0x48eb57[0x0]),_0x1c5363['add'](_0x48eb57[0x1]));}}function _0x2c7e39(_0x3a9836,_0x305c11){if(_0x3a9836['author']['id']!==_0x305c11['author']['id'])return null;const _0x9ae7d6=_0x53c132['get'](_0x3a9836)(_0x3a9836,_0x305c11,_0x4e6c8f['get'](_0x3a9836),_0x4e6c8f['get'](_0x305c11));if(!_0x9ae7d6)return null;return _0x53c132['get'](_0x305c11)(_0x3a9836,_0x305c11,_0x4e6c8f['get'](_0x3a9836),_0x4e6c8f['get'](_0x305c11))?_0x9ae7d6[0x1]['commentThread']&&_0x9ae7d6[0x1]['commentThread']['length']?null:_0x9ae7d6:null;}_0x2d8838['size']&&this['_refreshSuggestionsChain'](_0x2d8838);}['_refreshAttributeSuggestionsChain'](_0x44dc64){if(0x0==_0x44dc64['length'])return;const _0x42f997=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a372e=>'attribute'==_0x5a372e['type']&&_0x5a372e['_isDataLoaded']),_0x5f0b69=[],_0x436542=new Map();for(const _0x5788a1 of _0x42f997){const _0x28e126=_0x2b060e(_0x5788a1['attributes']);_0x436542['has'](_0x28e126)||(_0x436542['set'](_0x28e126,_0x5f0b69['length']),_0x5f0b69['push']([]));const _0x86c285=_0x436542['get'](_0x28e126);_0x5f0b69[_0x86c285]['push'](_0x5788a1);}!(function(){_0x5f0b69['sort']((_0x3463cd,_0x4ba8a5)=>{const _0x8e88a1=_0x3463cd[0x0]['createdAt'],_0xe9fd0d=_0x4ba8a5[0x0]['createdAt'];return _0x8e88a1==_0xe9fd0d?_0x3463cd[0x0]['attributes']['groupId']<_0x4ba8a5[0x0]['attributes']['groupId']?-0x1:0x1:_0x8e88a1<_0xe9fd0d?-0x1:0x1;});for(const _0x2c37d3 of _0x5f0b69)_0x2c37d3['sort']((_0x565be3,_0xfa205b)=>_0x565be3['id']<_0xfa205b['id']?-0x1:0x1);}());for(let _0x1f58a7=0x0;_0x1f58a7<_0x5f0b69['length'];_0x1f58a7++){if(0x0==_0x5f0b69[_0x1f58a7]['length'])continue;const _0x3831a3=[];for(let _0x57bd6e=_0x1f58a7+0x1;_0x57bd6e<_0x5f0b69['length'];_0x57bd6e++)0x0!=_0x5f0b69[_0x57bd6e]['length']&&_0xc94b5c(_0x5f0b69[_0x1f58a7],_0x5f0b69[_0x57bd6e])&&_0x3831a3['push'](_0x57bd6e);for(const _0x2b180d of _0x3831a3)_0x5f0b69[_0x1f58a7]=_0x5f0b69[_0x1f58a7]['concat'](_0x5f0b69[_0x2b180d]),_0x5f0b69[_0x2b180d]=[];}for(const _0x28ef46 of _0x5f0b69)for(let _0x1fc236=0x0;_0x1fc236<_0x28ef46['length'];_0x1fc236++){const _0x3f10d2=_0x28ef46[_0x1fc236+0x1]||null;_0x28ef46[_0x1fc236]['next']!==_0x3f10d2&&(_0x28ef46[_0x1fc236]['next']=_0x3f10d2);}for(const _0x4802fb of _0x5f0b69)for(let _0x4885b2=0x0;_0x4885b2<_0x4802fb['length'];_0x4885b2++){const _0x121500=_0x4802fb[_0x4885b2-0x1]||null;_0x4802fb[_0x4885b2]['previous']!==_0x121500&&(_0x4802fb[_0x4885b2]['previous']=_0x121500);}function _0xc94b5c(_0x2d8357,_0x175fb5){if(_0x2d8357[0x0]['attributes']['groupId']!==_0x175fb5[0x0]['attributes']['groupId']&&_0x2d8357[0x0]['author']!==_0x175fb5[0x0]['author'])return!0x1;if(!function(_0x55e9a7,_0x302c40){if(!_0x55e9a7['hasComments']&&!_0x302c40['hasComments'])return!0x0;if(_0x55e9a7['hasComments']&&_0x302c40['hasComments'])return!0x1;if(_0x55e9a7['hasComments']&&_0x302c40['createdAt']<_0x55e9a7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x302c40['hasComments']&&_0x55e9a7['createdAt']<_0x302c40['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d8357[0x0],_0x175fb5[0x0]))return!0x1;const _0x22a458=Et(_0x2d8357[0x0]['attributes'],'groupId'),_0x1a711e=Et(_0x175fb5[0x0]['attributes'],'groupId');if(!_0x3dba2e(_0x22a458,_0x1a711e))return!0x1;return!!_0x2d8357['every'](_0x582c81=>_0x175fb5['some'](_0x44bbf6=>_0x582c81['getFirstRange']()['isEqual'](_0x44bbf6['getFirstRange']())))&&_0x175fb5['every'](_0x52f64b=>_0x2d8357['some'](_0xce1b3e=>_0x52f64b['getFirstRange']()['isEqual'](_0xce1b3e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x140981){const _0x2bca11=Array['from'](_0x140981),_0x55802b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a47e7=_0x55802b['filter'](_0x5a78d8=>!_0x140981['has'](_0x5a78d8)),_0x4cb568=new Map(_0x2bca11['map'](_0x1077e2=>[_0x1077e2,this['_suggestionFactory']['getSuggestionCallback'](_0x1077e2['type'],_0x1077e2['subType'],'join')])),_0x409513=new Map(_0x55802b['map'](_0xc1ed2c=>[_0xc1ed2c,_0xc1ed2c['getRanges']()]));for(let _0x3c39ec=0x0;_0x3c39ec<_0x2bca11['length'];_0x3c39ec++){if(_0x38c63e(this,_0x2bca11[_0x3c39ec],_0x2bca11,_0x3c39ec+0x1))return!0x0;}for(let _0x5887b3=0x0;_0x5887b3<_0x2bca11['length'];_0x5887b3++){if(_0x38c63e(this,_0x2bca11[_0x5887b3],_0x4a47e7,0x0))return!0x0;}return!0x1;function _0x38c63e(_0xb0cabd,_0x30ffaa,_0x4f8297,_0x48f682){for(let _0x1c4680=_0x48f682;_0x1c4680<_0x4f8297['length'];_0x1c4680++){const _0x168bf0=_0x4f8297[_0x1c4680];if(_0x168bf0['type']!==_0x30ffaa['type']||_0x168bf0['author']['id']!==_0x30ffaa['author']['id']||_0x168bf0['subType']!==_0x30ffaa['subType'])continue;if(!zt(_0x30ffaa,_0x168bf0))continue;if('attribute'==_0x30ffaa['type']&&_0x30ffaa['data']['oldValue']!=_0x168bf0['data']['oldValue'])continue;if('attribute'==_0x30ffaa['type']&&_0xb0cabd['_isBlockAttribute'](_0x30ffaa['data']['key']))continue;if('formatBlock'==_0x30ffaa['type']){const _0x199dbb=_0xb0cabd['editor']['model'],_0x23a52b=_0x30ffaa['getContainedElement']();if(_0x23a52b&&(_0x199dbb['schema']['isObject'](_0x23a52b)||_0x199dbb['schema']['isLimit'](_0x23a52b)))continue;}const _0x12c755=_0x4cb568['get'](_0x30ffaa),_0x3900e4=_0x409513['get'](_0x30ffaa),_0x4641f6=_0x409513['get'](_0x168bf0),_0x100a3a=_0x30ffaa['commentThread']&&_0x30ffaa['commentThread']['length'],_0x41747f=_0x168bf0['commentThread']&&_0x168bf0['commentThread']['length'];if(!_0x100a3a&&_0x12c755(_0x4641f6,_0x3900e4))return _0xb0cabd['_joinSuggestions'](_0x168bf0,_0x30ffaa),_0x409513['delete'](_0x30ffaa),!0x0;if(!_0x41747f&&_0x12c755(_0x3900e4,_0x4641f6))return _0xb0cabd['_joinSuggestions'](_0x30ffaa,_0x168bf0),_0x409513['delete'](_0x168bf0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3b21c9,_0x21c5f3){if(_0x3b21c9['isMultiRange']){for(const _0x3e239f of _0x21c5f3['getRanges']())_0x3b21c9['addRange'](_0x3e239f);}else{const _0x365055=_0x21c5f3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3b21c9,this['_model']['createRange'](_0x3b21c9['getFirstRange']()['start'],_0x365055));}_0x21c5f3['removeMarkers']();}['_getMarkerAnnouncementText'](_0xc7975,_0x39991f,_0x48094a){const _0x578c41=_0xc7975['startsWith']('format')||_0xc7975['startsWith']('attribute')?'FORMATTING':_0xc7975['toUpperCase']();return o(this['editor']['locale'],_0x39991f+'_'+_0x578c41+'_SUGGESTION_ANNOUNCEMENT',_0x48094a);}['_initAriaMarkerChangeAnnouncements'](){const _0x4585f3=this['editor'];if(!_0x4585f3['ui'])return;const {ariaLiveAnnouncer:_0x3acc7b}=_0x4585f3['ui'];_0x19891a(this['_model'],({left:_0x1a4453,entered:_0x2a00e6})=>{for(const _0x2180a8 of _0x1a4453){const {group:_0x450abe,type:_0x2427ed}=this['_splitMarkerName'](_0x2180a8['name']);if('suggestion'===_0x450abe){_0x3acc7b['announce'](this['_getMarkerAnnouncementText'](_0x2427ed,'LEAVE'));break;}}for(const _0x280fb4 of _0x2a00e6){const {group:_0x4dd41b,type:_0x12dc5d}=this['_splitMarkerName'](_0x280fb4['name']);if('suggestion'===_0x4dd41b){_0x3acc7b['announce'](this['_getMarkerAnnouncementText'](_0x12dc5d,'ENTER',_0xdd4d5d(_0x586e6b)));break;}}});}['_processAttributeChanges'](_0x2c2976){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4f22e4=this['editor'],_0x41f0e0=_0x4f22e4['model']['document']['differ']['getChanges']();if(0x0==_0x41f0e0['length'])return!0x1;const _0x4768a3=[],_0x2a1d74=_0x41f0e0['filter'](_0xdf6522=>'attribute'==_0xdf6522['type']),_0x2debcb=_0x41f0e0['filter'](_0x212f01=>'insert'==_0x212f01['type']&&'$text'!=_0x212f01['name']),_0x20fb78=_0x41f0e0['filter'](_0x2d6b14=>'remove'==_0x2d6b14['type']&&'$text'!=_0x2d6b14['name']);for(const _0x3972ad of _0x2a1d74)_0x4768a3['push']({'key':_0x3972ad['attributeKey'],'newValue':_0x3972ad['attributeNewValue'],'oldValue':_0x3972ad['attributeOldValue'],'range':Jt(_0x3972ad['range'],_0x4f22e4['model'])});for(const _0x207961 of _0x2debcb){const _0x2283f2=_0x20fb78['find'](_0x4fa31f=>_0x4fa31f['position']['isEqual'](_0x207961['position']));_0x2283f2&&_0x4768a3['push']({'key':m,'newValue':_0x207961['name'],'oldValue':_0x2283f2['name'],'range':_0x4f22e4['model']['createRangeOn'](_0x207961['position']['nodeAfter'])});}return 0x0!=_0x4768a3['length']&&this['_reduceExistingSuggestions'](_0x2c2976,_0x4768a3);}['_processAttributeSuggestions'](_0x5cdbab){let _0x2177f6=!0x1;const _0x33f4cb=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f2fd8=>_0x3f2fd8['data']['newRange']&&_0x3f2fd8['name']['startsWith']('suggestion:attribute:'));for(const _0x4c476f of _0x33f4cb){const {subType:_0x35f18e,id:_0x57e3e1}=this['_splitMarkerName'](_0x4c476f['name']),_0x3ee273=_0x35f18e['split']('|')[0x0];for(const _0x47e124 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x47e124['id']!=_0x57e3e1&&'attribute'==_0x47e124['type']&&_0x47e124['data']&&_0x47e124['data']['key']==_0x3ee273&&_0x47e124['getFirstRange']()['isIntersecting'](_0x4c476f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x47e124,_0x4c476f['data']['newRange'],_0x5cdbab),_0x2177f6=!0x0);}return _0x2177f6;}['_recordAttributeChanges'](_0x698d3e){this['_recordAttributeSuggestions']=!0x0,_0x698d3e();}['_isRegisteredAttribute'](_0x5be85b){const _0x248d99=this['_isBlockAttribute'](_0x5be85b),_0x927abb=this['_inlineAttributeKeys']['has'](_0x5be85b);return _0x248d99||_0x927abb;}['_reduceExistingSuggestions'](_0x1d8efe,_0x19a569){if(0x0==_0x19a569['length'])return!0x1;let _0x1fa229=!0x1;for(const _0x3e416f of _0x19a569){const _0xd7b768=this['_findSuggestions'](_0x3e416f['range'],'attribute')['filter'](_0x3e41f0=>!_0x3e41f0['meta']['isNextTo'])['map'](_0x54e015=>_0x54e015['suggestion']),_0x4983fb=_0x2b060e({'newValue':_0x3e416f['newValue']});_0xd7b768['filter'](_0x1d92c5=>{const [_0x45272c,_0x4dcae8]=_0x1d92c5['subType']['split']('|');return _0x45272c==_0x3e416f['key']&&_0x4dcae8!=_0x4983fb;})['forEach'](_0x3fefd1=>{this['_reduceSuggestionAttributeRange'](_0x3fefd1,_0x3e416f['range'],_0x1d8efe),_0x1fa229=!0x0;});}return _0x1fa229;}['_reduceSuggestionAttributeRange'](_0x11bc30,_0x5c3770,_0x4600c3){const _0x527b30=_0x11bc30['getFirstRange']()['getDifference'](_0x5c3770);0x0!==_0x527b30['length']?0x1!==_0x527b30['length']?this['_breakSuggestionMarker'](_0x11bc30,_0x5c3770['start'],_0x5c3770['end']):this['_setSuggestionRange'](_0x11bc30,_0x527b30[0x0]):_0x4600c3['removeMarker'](_0x11bc30['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x207020){this['_editor']=_0x207020,this['_model']=_0x207020['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xa7f4d3,_0x927902,_0x49e0ff,_0x4ce2c0,_0x58bcc8,_0x2ac886){return new u(this['_model'],{'type':_0xa7f4d3,'subType':_0x927902,'id':_0x49e0ff,'author':_0x4ce2c0,'creator':_0x4ce2c0,'attributes':_0x58bcc8,'onAttributesChange':_0x2ac886,'onAccept':(..._0x1655d2)=>this['getSuggestionCallback'](_0xa7f4d3,_0x927902,'accept')(..._0x1655d2),'onDiscard':(..._0x4d211e)=>this['getSuggestionCallback'](_0xa7f4d3,_0x927902,'discard')(..._0x4d211e)});}['registerCustomCallback'](_0x57fb65,_0x25eeae,_0x3d0447,_0x473e03){const _0x289d34=_0x57fb65+':'+_0x25eeae+':'+_0x3d0447;this['_customCallbacks']['set'](_0x289d34,_0x473e03);}['getSuggestionCallback'](_0xe8dc5e,_0x195057,_0x8291d0){const _0x3f44da=_0xe8dc5e+':'+_0x195057+':'+_0x8291d0;return this['_customCallbacks']['get'](_0x3f44da)||this['_defaultCallbacks']['get'](_0xe8dc5e+':'+_0x8291d0);}['_registerDefaultCallbacks'](){const _0x2a591b=()=>!0x1,_0x4e6cfa=_0x5ce349=>{_0x5ce349['sort']((_0x40ac21,_0x2dc71e)=>_0x40ac21['start']['isBefore'](_0x2dc71e['start'])?0x1:-0x1),this['_model']['change'](_0x29d46a=>{for(const _0x13c169 of _0x5ce349){let _0x36c2e9;_0x36c2e9=_0x13c169['end']['isAtEnd']&&_0x13c169['end']['parent']==_0x13c169['start']['nodeAfter']?_0x29d46a['createSelection'](_0x13c169['start']['nodeAfter'],'on'):_0x29d46a['createSelection'](_0x13c169),this['_model']['deleteContent'](_0x36c2e9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3bc7c5=(_0x37aa3a,_0x37329c)=>{_0x37329c&&this['_model']['change'](_0x1e8400=>{const {commandName:_0x3ca025,commandParams:_0x1b1aa1=[]}=_0x37329c,_0x39119b=_0x37aa3a['map'](_0x452eca=>(Pt(_0x452eca)&&(_0x452eca=this['_model']['createRange'](_0x452eca['end'])),_0x452eca))['filter'](_0x459bf8=>'$graveyard'!==_0x459bf8['root']['rootName']);if(_0x39119b['length']<0x1)return;const _0x33f7c1=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5cee37=>_0x4179c1['fromRange'](_0x5cee37));_0x1e8400['setSelection'](_0x39119b);for(const _0x42ac70 of this['_editor']['commands']['commands']())_0x42ac70['refresh']();_0x1b1aa1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3ca025,..._0x1b1aa1);const _0x1a36bd=_0x33f7c1['filter'](_0x56f710=>'$graveyard'!=_0x56f710['root']['rootName']);_0x1a36bd['length']>0x0&&_0x1e8400['setSelection'](_0x1a36bd);for(const _0x15ce55 of _0x33f7c1)_0x15ce55['detach']();});},_0x25fc44=(_0x590757,_0x4ea2d8)=>0x1==_0x590757['length']&&0x1==_0x4ea2d8['length']&&_0x590757[0x0]['end']['isEqual'](_0x4ea2d8[0x0]['start']),_0x25499c=(_0x118425,_0x31b1d9,_0x163b4d,_0xfa54a4)=>qt(_0x118425,_0x31b1d9,_0x163b4d,_0xfa54a4)?[_0x118425,_0x31b1d9]:qt(_0x31b1d9,_0x118425,_0xfa54a4,_0x163b4d)?[_0x31b1d9,_0x118425]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2a591b),this['_defaultCallbacks']['set']('insertion:discard',_0x4e6cfa),this['_defaultCallbacks']['set']('insertion:join',_0x25fc44),this['_defaultCallbacks']['set']('insertion:chain',_0x25499c),this['_defaultCallbacks']['set']('deletion:accept',_0x4e6cfa),this['_defaultCallbacks']['set']('deletion:discard',_0x2a591b),this['_defaultCallbacks']['set']('deletion:join',_0x25fc44),this['_defaultCallbacks']['set']('deletion:chain',_0x25499c),this['_defaultCallbacks']['set']('formatInline:accept',_0x3bc7c5),this['_defaultCallbacks']['set']('formatInline:discard',_0x2a591b),this['_defaultCallbacks']['set']('formatInline:join',_0x25fc44),this['_defaultCallbacks']['set']('formatInline:chain',_0x2a591b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3bc7c5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2a591b),this['_defaultCallbacks']['set']('formatBlock:join',_0x25fc44),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2a591b),this['_defaultCallbacks']['set']('attribute:accept',_0x2a591b),this['_defaultCallbacks']['set']('attribute:discard',(_0x4fb691,_0x252ac5)=>{if(!_0x252ac5)return;const _0x285b11=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x6f9694=>{if(_0x252ac5['key']==m)for(const _0x3d4899 of _0x4fb691){const _0x32859e=_0x3d4899['start']['nodeAfter'],_0xd82299=_0x252ac5['oldValue'];_0x6f9694['rename'](_0x32859e,_0xd82299);}else{if(_0x285b11['_isBlockAttribute'](_0x252ac5['key'])){for(const _0x3c8230 of _0x4fb691)void 0x0!==_0x252ac5['oldValue']?_0x6f9694['setAttribute'](_0x252ac5['key'],_0x252ac5['oldValue'],_0x3c8230['start']['nodeAfter']):_0x6f9694['removeAttribute'](_0x252ac5['key'],_0x3c8230['start']['nodeAfter']);}else{for(const _0x2cdcd7 of _0x4fb691)_0x252ac5['oldValue']?_0x6f9694['setAttribute'](_0x252ac5['key'],_0x252ac5['oldValue'],_0x2cdcd7):_0x6f9694['removeAttribute'](_0x252ac5['key'],_0x2cdcd7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x25fc44);}}function Vt(_0x329a4f,_0x3c322a,_0x25a98c){for(const _0x5b5018 of _0x3c322a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b5018['root']==_0x5b5018)return!0x1;if(!_0x25a98c['containsItem'](_0x5b5018))return!0x1;if(_0x329a4f['isObject'](_0x5b5018)||_0x329a4f['isLimit'](_0x5b5018))return!0x0;}return!0x1;}function Pt(_0x4e48ad){return _0x4e48ad['end']['parent']==_0x4e48ad['start']['nodeAfter']&&_0x4e48ad['end']['isAtStart'];}function Gt(_0x5a9a2b,_0x519798,_0x411e70,_0x1a2d37){const _0x4ba209=_0x38e13b=>!_0x38e13b['item']['is']('$textProxy')&&!_0x1a2d37['isObject'](_0x38e13b['item']),_0x8026b2=_0x5a9a2b['start']['getLastMatchingPosition'](_0x4ba209),_0x33e6c0=_0x5a9a2b['end']['getLastMatchingPosition'](_0x4ba209,{'direction':'backward'});return(!_0x5a9a2b['start']['isEqual'](_0x8026b2)||!_0x5a9a2b['end']['isEqual'](_0x33e6c0))&&(_0x8026b2['isBefore'](_0x33e6c0)?_0x411e70['updateMarker'](_0x519798,{'range':_0x411e70['createRange'](_0x8026b2,_0x33e6c0)}):_0x411e70['removeMarker'](_0x519798),!0x0);}function Ft(_0x93d368){return _0x2b060e(_0x93d368);}function Lt(_0x3bd141){const _0x4fab87=_0x3bd141['start']['nodeAfter'];return _0x4fab87&&_0x4fab87['is']('element');}function Jt(_0x5bad75,_0x474e41){return null==_0x5bad75['end']['nodeBefore']&&_0x5bad75['end']['parent']==_0x5bad75['start']['nodeAfter']?Ht(_0x5bad75['start']['nodeAfter'],_0x474e41):_0x5bad75;}function Ht(_0x223a2d,_0x17be9d){const _0x23dfb0=_0x17be9d['schema']['isObject'](_0x223a2d)||_0x17be9d['schema']['isSelectable'](_0x223a2d);return _0x17be9d['createRange'](_0x17be9d['createPositionAt'](_0x223a2d,'before'),_0x23dfb0?_0x17be9d['createPositionAfter'](_0x223a2d):_0x17be9d['createPositionAt'](_0x223a2d,'end'));}function qt(_0x1c3742,_0x414756,_0x479e0b,_0x4c157e){return!!zt(_0x1c3742,_0x414756)&&_0x479e0b['end']['isEqual'](_0x4c157e['start']);}function zt(_0x3d39fb,_0x58b316){if(!_0x3d39fb['_isDataLoaded']||!_0x58b316['_isDataLoaded'])return!0x1;const _0x56d42d=new Set(Object['keys'](_0x3d39fb['attributes'])),_0x1ed360=new Set(Object['keys'](_0x58b316['attributes']));if(_0x56d42d['delete']('groupId'),_0x1ed360['delete']('groupId'),0x0==_0x56d42d['size']&&0x0==_0x1ed360['size'])return!0x0;if(_0x56d42d['size']!=_0x1ed360['size'])return!0x1;const _0x1041a1={..._0x3d39fb['attributes']},_0x29cc15={..._0x58b316['attributes']};return delete _0x1041a1['groupId'],delete _0x29cc15['groupId'],JSON['stringify'](_0x1041a1)==JSON['stringify'](_0x29cc15);}function Kt(_0x131005,_0xd619de){const _0x20310c=Wt(_0x131005['attributes']),_0x1bd006=Wt(_0xd619de);if(!_0x131005['_isDataLoaded'])return!0x1;for(const _0x198ee3 of Object['keys'](_0x1bd006))if(!_0x3dba2e(_0x20310c[_0x198ee3],_0x1bd006[_0x198ee3]))return!0x1;return!0x0;}function Wt(_0x7f727f){const _0x56539b=Object['assign']({},_0x7f727f);return delete _0x56539b['skipNestingCheck'],delete _0x56539b['tablePasteChainId'],_0x56539b;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xeddb2d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x18732d,_0x308e97,_0x255ebb,_0x18360d){super(),this['model']=_0x308e97,this['view']=_0x255ebb,this['commentThreadController']=_0x18360d,this['_editor']=_0x18732d,this['_acceptCommand']=_0x18732d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x18732d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x43f80d,_0x46e2ff)=>_0x43f80d||_0x46e2ff),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x41f2bc=>_0x41f2bc&&this['_editor']['model']['canEditAt'](_0x308e97['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x32476d=>_0x32476d&&this['_editor']['model']['canEditAt'](_0x308e97['getRanges']())),this['_pendingAction']=null,_0x255ebb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x255ebb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x255ebb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x255ebb,'change:isDirty',()=>{_0x255ebb['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 _0x50bdc3=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x50bdc3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x3e2fdb{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3a5288,_0x48783c,_0x37feed,_0x1f3586){super(_0x3a5288),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x593dca(_0x3a5288,o(_0x3a5288,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x48783c['authoredAt']),this['bind']('authoredAt')['to'](_0x48783c),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',_0x48783c,'authoredAt',this,'descriptionParts',(_0x3f2d3b,_0x3d109a,_0x54649f)=>{const _0x1ba402=_0x54649f['map'](_0x16a434=>ns(_0x16a434['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3f2d3b-0x1,_0x48783c['author']['name'],_0x3d109a?_0x1f3586['formatDateTime'](_0x3d109a):'',new DOMParser()['parseFromString'](_0x1ba402,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5c681e(),this['focusTracker']=new _0x432ba4(),this['keystrokes']=new _0x2efc88(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xbc5ce7=>_0xbc5ce7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x48783c,this['_localUser']=_0x37feed,this['_config']=_0x1f3586,_0x1f3586['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1b3cac(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x122668}=this['_config'];this['commentsListView']=new _0x122668(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',_0xa41bee=>_0xa41bee+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2b3ffc,_0x199ab8)=>_0x2b3ffc||!!_0x199ab8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x377f7d}=this['_config'],_0x14df4a=new _0x377f7d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2dbf73=_0x14df4a['commentInputView'];return _0x14df4a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2dbf73,'value',(_0x1d8f69,_0x14c739,_0x3620b4)=>!!_0x3620b4||_0x1d8f69&&!_0x14c739),_0x2dbf73['on']('submit',(_0x1fe503,_0x4b0c13)=>{this['fire']('addComment',_0x4b0c13),_0x2dbf73['editor']['setData']('');}),_0x2dbf73['on']('cancel',()=>this['focus']()),_0x2dbf73['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x14df4a;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x877f05,_0x51a048,_0x1a2532,_0x31b5ad){super(_0x877f05,_0x51a048,_0x1a2532,_0x31b5ad),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9bd2e4=>_0x9bd2e4&&_0x9bd2e4[0x0]?_0x9bd2e4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x565614,_0x3a1c88)=>{let _0x2926b5='';for(const _0x212614 of _0x565614)_0x2926b5+='<p>'+ns(_0x212614['content'],_0x212614['color'])+'</p>';return _0x3a1c88?_0x2926b5:_0x16abf5(_0x2926b5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x31b5ad['SuggestionView'](_0x877f05,_0x51a048,{'formatDateTime':_0x31b5ad['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 _0x2cbeaa=this['bindTemplate'],_0x57179e=[this['suggestionView']];return this['commentsListView']&&_0x57179e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x57179e['push'](this['commentThreadInputView']),_0x57179e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2cbeaa['if']('isActive','ck-suggestion-wrapper--active'),_0x2cbeaa['to']('type',_0x26cc93=>'ck-suggestion-'+_0x26cc93),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':_0x2cbeaa['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x57179e};}['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 fe extends _0x3e2fdb{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5832de,_0x29eef1,_0x3a3cc1){super(_0x5832de),this['_model']=_0x29eef1,this['_config']=_0x3a3cc1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x29eef1),this['acceptButton']=this['_createButton'](o(_0x5832de,'Accept\x20suggestion'),_0x1b4e5d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5832de,'Discard\x20suggestion'),_0x1b4e5d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x44cd4a(_0x5832de,_0x29eef1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c681e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x432ba4(),this['keystrokes']=new _0x2efc88(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1503f2=>_0x1503f2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3dbaee=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3dbaee['innerHTML']=this['description'],this['on']('change:description',(_0xf2ac64,_0x1744d9,_0x9a77b6)=>{_0x3dbaee['innerHTML']=_0x9a77b6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2f0ee2=this['bindTemplate'],_0x1caa10=[{'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':_0x2f0ee2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2f0ee2['to']('authoredAt',_0x543bbc=>this['_config']['formatDateTime'](_0x543bbc))}]}]},{'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']&&_0x1caa10['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':_0x1caa10}]};}['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'](_0x469c1b,_0x2c5c62,_0x4f7daa,_0x4494c5,_0x12f60c){const _0x3842ba=new _0x4fbb6f(this['locale']);return _0x3842ba['set']({'label':_0x469c1b,'icon':_0x2c5c62,'tooltip':!0x0,'tooltipPosition':_0x12f60c}),_0x3842ba['extendTemplate']({'attributes':{'class':_0x4f7daa}}),_0x3842ba['on']('execute',()=>{this['fire'](_0x4494c5,this['_model']['id']);}),_0x3842ba;}['_setupKeyboardNavigation'](){const _0x1c08db=this['element'];this['keystrokes']['listenTo'](_0x1c08db);for(const _0x3673b4 of this['focusables'])this['focusTracker']['add'](_0x3673b4['element']),this['keystrokes']['listenTo'](_0x3673b4['element']);this['keystrokes']['set']('enter',(_0x4d7bc5,_0xbf60c8)=>{_0x1c08db===_0x4d7bc5['target']&&(this['focusCycler']['focusFirst'](),_0xbf60c8());}),this['keystrokes']['set']('esc',(_0x5dc103,_0x37e1c8)=>{_0x1c08db!==_0x5dc103['target']&&(this['focus'](),_0x37e1c8());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x371cc0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x413917,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c6cfc){super(_0x1c6cfc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x38b9d9=this['editor']['config'];_0x38b9d9['define']('trackChanges.SuggestionThreadView',pe),_0x38b9d9['define']('trackChanges.SuggestionView',fe),_0x38b9d9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x38b9d9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x167335,_0x3721ac){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d8d9d,_0x3ecedd]of this['_handleControllerBuffer']){const _0x3790e1=this['_suggestionToController']['has'](_0x5d8d9d);_0x3790e1||_0x3ecedd?_0x3790e1&&_0x3ecedd&&this['_destroyController'](_0x5d8d9d):this['_initializeController'](_0x5d8d9d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x167335,_0x3721ac);}['init'](){const _0x2dba7c=this['editor'],_0x18d533=_0x2dba7c['plugins']['get']('TrackChangesEditing'),_0x4a96d6=_0x2dba7c['plugins']['get']('Annotations'),_0x23b4ff=_0x2dba7c['plugins']['get']('EditorAnnotations'),_0x1f0920=_0x2dba7c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x23b4ff['addSourceCollector'](()=>{const _0x284182=[];for(const [_0x426452,_0x527953]of Array['from'](this['_suggestionToController'])){const _0x115be3=_0x426452['getAllAdjacentSuggestions'](),_0x91a6d5=[];for(const _0x483d32 of _0x115be3){if(!_0x483d32['isInContent'])continue;if(_0x483d32['isMultiRange']){_0x91a6d5['push'](..._0x483d32['getRanges']());continue;}const _0x278c08=_0x483d32['getFirstRange']();if(_0x91a6d5['length']>0x0){const _0x44141a=_0x91a6d5[0x0]['getJoined'](_0x278c08);if(_0x44141a){_0x91a6d5[0x0]=_0x44141a;continue;}}_0x91a6d5['push'](_0x278c08);}_0x284182['push']([_0x527953['view'],_0x91a6d5]);}return _0x284182;}),this['listenTo'](_0x18d533,'suggestionLoaded',(_0x1022d8,_0x5597d8)=>{this['listenTo'](_0x5597d8,'change:previous',(_0x5a7bdf,_0x17d410,_0x1a8c37,_0x4c6b4c)=>{_0x5597d8['isInContent']&&(null==_0x1a8c37?(this['_updateController'](_0x4c6b4c['head']),this['_handleSuggestionControllerDelayed'](_0x5597d8,!0x1)):(this['_updateController'](_0x1a8c37['head']),null==_0x4c6b4c&&this['_handleSuggestionControllerDelayed'](_0x5597d8,!0x0)));}),null!==_0x5597d8['previous']?this['_updateController'](_0x5597d8['head']):this['_handleSuggestionControllerDelayed'](_0x5597d8,!0x1);}),this['listenTo'](_0x18d533,'suggestionUnloaded',(_0x17681d,_0x156dea,_0x54cb6e)=>{this['stopListening'](_0x156dea,'change:previous'),this['_handleControllerBuffer']['delete'](_0x156dea),this['_suggestionToController']['has'](_0x156dea)&&this['_destroyController'](_0x156dea),_0x54cb6e&&this['_updateController'](_0x54cb6e['head']);}),this['listenTo'](_0x18d533,'suggestionChanged',(_0x2c95af,_0x3e3fd3)=>{this['_updateController'](_0x3e3fd3);}),this['listenTo'](_0x4a96d6,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1f0920,'addComment',(_0x215f1d,{threadId:_0x4846a6,isFromAdapter:_0x2b9178})=>{if(_0x2b9178||!_0x18d533['hasSuggestion'](_0x4846a6))return;const _0x1caff8=_0x18d533['getSuggestion'](_0x4846a6);this['_suggestionToController']['get'](_0x1caff8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x122e6d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b96c2;for(const _0x2923e2 in _0x122e6d){const _0x2f6de1=_0x2923e2,_0xb9ae69=_0x122e6d[_0x2f6de1];if('trackChangesLicenseKeyValid'==_0xb9ae69||'trackChangesLicenseKeyInvalid'==_0xb9ae69||'trackChangesLicenseKeyExpired'==_0xb9ae69||'trackChangesLicenseKeyDomainLimit'==_0xb9ae69||'trackChangesLicenseKeyNotAllowed'==_0xb9ae69||'trackChangesLicenseKeyEvaluationLimit'==_0xb9ae69||'trackChangesLicenseKeyTrialLimit'==_0xb9ae69||'trackChangesLicenseKeyUsageLimit'==_0xb9ae69){delete _0x122e6d[_0x2f6de1],_0x5b96c2=_0xb9ae69,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5b96c2&&_0x122e6d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5b96c2&&_0x122e6d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5b96c2&&_0x122e6d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5b96c2&&_0x122e6d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5b96c2&&_0x122e6d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5b96c2&&_0x122e6d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5b96c2&&_0x122e6d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x50b72f=this['editor']['plugins']['get']('Annotations'),_0x5afa68=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20d162=Array['from'](_0x50b72f['activeAnnotations'],_0x5c8ad8=>_0x5c8ad8['innerView'])['filter'](_0x95cc9f=>this['_viewToController']['has'](_0x95cc9f)),_0x37d0cd=[];for(const _0x4f0290 of _0x20d162){const _0x52f702=this['_viewToController']['get'](_0x4f0290)['model']['getAllAdjacentSuggestions']();_0x37d0cd['push'](..._0x52f702['reduce']((_0x9903fa,_0x37fa40)=>[..._0x9903fa,..._0x37fa40['getMarkerNames']()],[]));}_0x5afa68['activeMarkers']=_0x37d0cd;}['_addUIComponentsToFactory'](){const _0x4c51c3=this['editor'],_0x45f30f=_0x4c51c3['locale'],_0x36bf3b=o(_0x45f30f,'Track\x20changes'),_0x555e8d=new _0x21cc1a([{'type':'switchbutton','model':new _0xd6ebae({'withText':!0x0,'isToggleable':!0x0,'label':_0x36bf3b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xd6ebae({'withText':!0x0,'label':o(_0x45f30f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xd6ebae({'withText':!0x0,'label':o(_0x45f30f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xd6ebae({'withText':!0x0,'label':o(_0x45f30f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xd6ebae({'withText':!0x0,'label':o(_0x45f30f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4c51c3['plugins']['has']('TrackChangesPreview')&&_0x555e8d['addMany']([{'type':'separator'},{'type':'button','model':new _0xd6ebae({'withText':!0x0,'label':o(_0x45f30f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x9287d0 of _0x555e8d)if(ke(_0x9287d0)){const _0x4e1542=_0x4c51c3['commands']['get'](_0x9287d0['model']['commandName']);_0x9287d0['model']['bind']('isOn','isEnabled')['to'](_0x4e1542,'value','isEnabled');}_0x4c51c3['ui']['componentFactory']['add']('trackChanges',_0x29c96b=>this['_createToolbarButton'](_0x29c96b,_0x555e8d,_0x36bf3b)),_0x4c51c3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x565599=>this['_createMenuBarMenu'](_0x565599,_0x555e8d,_0x36bf3b));}['_createToolbarButton'](_0x48bee8,_0x59e169,_0x4d5d17){const _0x233544=_0x496487(_0x48bee8,_0x5a3db8),_0x20a157=this['editor']['commands']['get']('trackChanges');_0x233544['buttonView']['set']({'tooltip':_0x4d5d17,'label':_0x4d5d17,'icon':we}),_0x233544['buttonView']['bind']('isOn')['to'](_0x20a157,'value'),_0x233544['buttonView']['on']('execute',()=>{_0x20a157['execute'](),this['editor']['editing']['view']['focus']();}),_0x51fc2b(_0x233544,_0x59e169,{'role':'menu'});const _0x5dadfd=[];for(const _0x17bc82 of _0x59e169)ke(_0x17bc82)&&_0x5dadfd['push'](this['editor']['commands']['get'](_0x17bc82['model']['commandName']));const _0x11822a=_0x233544['buttonView'];return _0x11822a['actionView']['unbind']('isEnabled'),_0x11822a['arrowView']['unbind']('isEnabled'),_0x11822a['actionView']['bind']('isEnabled')['to'](_0x20a157,'isEnabled'),_0x11822a['arrowView']['bind']('isEnabled')['toMany'](_0x5dadfd,'isEnabled',(..._0x15fc04)=>_0x15fc04['some'](_0x6f04b5=>_0x6f04b5)),_0x233544['on']('execute',_0x45557c=>{this['editor']['execute'](_0x45557c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x233544;}['_createMenuBarMenu'](_0xeabaa6,_0x7146c4,_0x1a59da){const _0x5040d1=new _0x1aade1(_0xeabaa6),_0x5e8dd8=this['editor']['commands']['get']('trackChanges');_0x5040d1['buttonView']['set']({'label':_0x1a59da,'icon':we});const _0x2cd441=new _0x16dc50(_0xeabaa6);for(const _0x345bd9 of _0x7146c4){if('separator'==_0x345bd9['type']){_0x2cd441['items']['add'](new _0x77bb07(_0xeabaa6));continue;}const _0x47076b=new _0x2bc450(_0xeabaa6,_0x5040d1),_0x5bdbef=new _0x385bae(_0xeabaa6),_0x4ca368=_0x345bd9['model'];_0x5bdbef['bind'](...Object['keys'](_0x4ca368))['to'](_0x4ca368),_0x5bdbef['delegate']('execute')['to'](_0x5040d1),_0x5bdbef['on']('execute',()=>{this['editor']['execute'](_0x4ca368['commandName']),this['editor']['editing']['view']['focus']();}),_0x47076b['children']['add'](_0x5bdbef),_0x2cd441['items']['add'](_0x47076b);}return _0x5040d1['bind']('isEnabled')['to'](_0x5e8dd8,'isEnabled'),_0x5040d1['panelView']['children']['add'](_0x2cd441),_0x5040d1;}['_initializeController'](_0x1f08bd){const _0x1a4092=this['editor'],_0x5f497e=_0x1a4092['config'],_0x151400=_0x1a4092['plugins']['get']('Annotations'),_0x351557=_0x1a4092['plugins']['get']('CommentsRepository'),_0x1f7695=_0x1a4092['plugins']['get']('EditorAnnotations'),_0x2a4dca=_0x1a4092['plugins']['get'](_0x413917)['me'],_0x4c7ea7=_0x5f497e['get']('trackChanges')['SuggestionThreadView'],_0x25a219=_0x5f497e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x844886,CommentThreadInputView:_0x79cc2}=_0x1a4092['plugins']['get']('CommentsUI');let _0x3d2542,_0x5db688,_0x161cbe;this['_annotationViews']['has'](_0x1f08bd['id'])?(_0x5db688=this['_annotationViews']['get'](_0x1f08bd['id']),_0x3d2542=_0x5db688['mainView']):(_0x3d2542=new _0x4c7ea7(_0x1a4092['locale'],_0x1f08bd,_0x2a4dca,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5f497e['get']('comments.editorConfig'),'licenseKey':_0x5f497e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5f497e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5f497e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5f497e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a324b(_0x5f497e['get']('locale')),'CommentView':_0x5f497e['get']('comments')['CommentView'],'CommentsListView':_0x844886,'CommentThreadInputView':_0x79cc2,'SuggestionView':_0x25a219}),_0x3d2542['suggestionView']['acceptButton']['on']('execute',()=>{_0x1a4092['editing']['view']['focus']();}),_0x3d2542['suggestionView']['discardButton']['on']('execute',()=>{_0x1a4092['editing']['view']['focus']();}),_0x5db688=_0x151400['createAnnotationView'](this['editor']['locale'],_0x3d2542),_0x5db688['bind']('isDirty')['to'](_0x3d2542,'isDirty'),_0x5db688['bind']('length')['to'](_0x3d2542),_0x5db688['bind']('type')['to'](_0x3d2542,'type',_0x1586f1=>'suggestion-'+_0x1586f1),_0x3d2542['on']('escape',()=>{_0x161cbe['fire']('escape');}),this['_annotationViews']['set'](_0x1f08bd['id'],_0x5db688));const _0x3454c2=_0x351557['createCommentThreadController'](_0x1f08bd['commentThread'],_0x3d2542),_0x51b645=new Ce(_0x1a4092,_0x1f08bd,_0x3d2542,_0x3454c2),_0x1cf704=_0x1f08bd['getAllAdjacentSuggestions']()['filter'](_0x17ff89=>_0x17ff89['isInContent']);_0x3d2542['descriptionParts']=_0x1a4092['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1cf704),this['_suggestionToController']['set'](_0x1f08bd,_0x51b645),this['_viewToController']['set'](_0x3d2542,_0x51b645),_0x161cbe=_0x151400['createAnnotation']({'view':_0x5db688,'target':()=>{const _0x6aa4=[],_0x45f1ff=_0x1f08bd['getAllAdjacentSuggestions']()['filter'](_0x264e98=>_0x264e98['isInContent']);for(const _0x15e998 of _0x45f1ff)_0x6aa4['push'](..._0x15e998['getMarkers']());return _0x11538f(_0x1a4092['editing'],_0x6aa4);},'type':()=>'suggestion-'+_0x51b645['view']['type']}),_0x351557['_bindAnnotationToEditors'](_0x3d2542,_0x161cbe),_0x151400['add'](_0x161cbe),_0x1f7695['registerAnnotation'](_0x161cbe);}['_destroyController'](_0xa7afec){const _0x3887c9=this['editor']['plugins']['get']('CommentsRepository'),_0x29990d=this['editor']['plugins']['get']('Annotations'),_0x88f22b=this['_suggestionToController']['get'](_0xa7afec),_0x167362=_0x88f22b['view'],_0x169572=_0x29990d['getByInnerView'](_0x167362);_0x3887c9['_unbindEditors'](_0x167362),_0x169572&&_0x29990d['remove'](_0x169572),this['_suggestionToController']['delete'](_0xa7afec),this['_viewToController']['delete'](_0x167362),_0x88f22b['destroy']();}['_updateController'](_0x215f7e){if(!_0x215f7e['isInContent']||!this['_suggestionToController']['has'](_0x215f7e))return;const _0x540f70=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1afe7b=this['_suggestionToController']['get'](_0x215f7e),_0x326a63=_0x215f7e['getAllAdjacentSuggestions']();_0x1afe7b['view']['descriptionParts']=_0x540f70['descriptionFactory']['getDescriptions'](_0x326a63);}['destroy'](){for(const _0x2ff3a8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2ff3a8);for(const _0x3ad924 of this['_annotationViews']['values']())_0x3ad924['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x48b03c){return'model'in _0x48b03c;}class k extends _0x371cc0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2b3063){this['editor']['plugins']['get'](p)['adapter']=_0x2b3063;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x452f74){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x452f74);}['getSuggestions']({skipNotAttached:_0x50503a=!0x1,toJSON:_0x40d6b7=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x50503a,'toJSON':_0x40d6b7});}['getSuggestion'](_0x40700b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x40700b);}}const w=['Pagination'];class T extends _0x371cc0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x45d1f=this['editor'];if(_0x45d1f['config']['define']('trackChangesData.editorCreator',_0x24593f=>{const _0x54f1bd=_0x45d1f['model']['document']['getRootNames']()['reduce']((_0x4ab953,_0x46fd07)=>(_0x4ab953[_0x46fd07]='',_0x4ab953),{});return _0x45d1f['constructor']['create'](_0x54f1bd,_0x24593f);}),'function'!=typeof _0x45d1f['config']['get']('trackChangesData')['editorCreator'])throw new _0x4b8c9f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3ab4d7){return N(this['editor'],!0x0,_0x3ab4d7);}['getDataWithDiscardedSuggestions'](_0x4f0578){return N(this['editor'],!0x1,_0x4f0578);}}class D extends _0x371cc0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x289a20){function _0x3c9853(_0x15b62e){return _0x15b62e['map'](_0x2f919d=>String['fromCharCode'](_0x2f919d))['join']('');}super(_0x289a20),this['result']='end',_0x289a20[_0x3c9853([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c9853([0x76,0x69,0x65,0x77])][_0x3c9853([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c9853([0x61,0x75,0x74,0x6f]),_0x289a20[_0x3c9853([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3c9853([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c9853([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3c9853([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3c9853([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 Fe(_0x3bed53){return void 0x0!==_0x3bed53['getRootsAttributes'];}async function N(_0x1c693e,_0x153d3e,_0x234041){const _0x3d1798=_0xb4bfd6(_0x1c693e,w);_0x3d1798['plugins']['push'](p,D),_0x3d1798['rootsAttributes']=Fe(_0x1c693e)?_0x1c693e['getRootsAttributes']():void 0x0;const _0x506d50=document['createDocumentFragment'](),_0x35e89a=_0x1c693e['config']['get']('trackChangesData')['editorCreator'],_0x19e9ec=await _0x35e89a(_0x3d1798,()=>function(_0x235147){const _0x5dadc0=document['createElement']('div');return _0x235147['appendChild'](_0x5dadc0),_0x5dadc0;}(_0x506d50));!function(_0x451ab7,_0x17e2fc){const _0x26de84=_0x451ab7['model']['document']['getRootNames']()['reduce']((_0x55bb87,_0x3a07d6)=>(_0x55bb87[_0x3a07d6]=_0x451ab7['data']['get']({'rootName':_0x3a07d6}),_0x55bb87),{}),_0x4ad465=_0x451ab7['plugins']['get']('Users')['users']['map'](_0x2a3457=>({'id':_0x2a3457['id'],'name':_0x2a3457['name']})),_0x4f7ac9=_0x451ab7['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4f0b11=_0x451ab7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1c64e8=_0x17e2fc['plugins']['get']('Users'),_0x43911c=_0x17e2fc['plugins']['get']('TrackChangesEditing'),_0x423ba6=_0x17e2fc['plugins']['get']('CommentsRepository');for(const _0x2ecc14 of _0x423ba6['getCommentThreads']())_0x2ecc14['remove']();for(const _0x57dc48 of _0x4ad465)_0x1c64e8['getUser'](_0x57dc48['id'])||_0x1c64e8['addUser'](_0x57dc48);_0x1c64e8['me']||_0x1c64e8['useAnonymousUser']();for(const _0x350814 of _0x4f0b11)_0x423ba6['addCommentThread'](_0x350814);for(const _0x28e382 of _0x4f7ac9)_0x43911c['addSuggestionData'](_0x28e382);_0x17e2fc['data']['set'](_0x26de84);}(_0x1c693e,_0x19e9ec),_0x19e9ec['execute'](_0x153d3e?'acceptAllSuggestions':'discardAllSuggestions');const _0x350600=Fe(_0x19e9ec)?_0x19e9ec['getFullData'](_0x234041):_0x19e9ec['data']['get'](_0x234041);return await _0x19e9ec['destroy'](),_0x350600;}class Me extends _0x3e2fdb{['options'];constructor(_0x4ea627,_0x874c54){super(_0x4ea627),this['options']=_0x874c54,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'](_0x44ff1d,_0x5a9aff){if(!this['element'])return;const _0x40243a=[];for(const [_0x10fdcb,_0x4cf2ed]of _0x44ff1d){const _0x136a58=document['createElement']('div');_0x136a58['setAttribute']('data-ck-root-name',_0x10fdcb),_0x136a58['className']=_0x4cf2ed['classes']+'\x20ck-track-changes-preview__root-container',_0x136a58['innerHTML']=_0x4cf2ed['content'],_0x40243a['push'](_0x136a58);}_0x5a9aff(this['element'],_0x40243a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x45aad2){super(_0x45aad2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1e8bc1=this['editor'],_0x2c0803=_0x1e8bc1['locale'],_0x3cc958=_0x1e8bc1['plugins']['get']('Dialog');let _0x5bcd9f;const _0x3776c2=function(_0x496986){const _0xfc3d31={};if('editables'in _0x496986['ui']['view']){for(const [_0x5df473,_0x2c7368]of Object['entries'](_0x496986['ui']['view']['editables']))_0xfc3d31[_0x5df473]=_0x2c7368['element'];}else _0xfc3d31[_0x496986['model']['document']['getRootNames']()[0x0]]=_0x496986['ui']['view']['editable']['element'];return _0xfc3d31;}(_0x1e8bc1),_0x412cfb=function(_0x22df3a){let _0x52cb8d=0x0;for(const _0xc37d1c of Object['values'](_0x22df3a))_0x52cb8d=Math['max'](_0x52cb8d,_0xc37d1c['getBoundingClientRect']()['width']);let _0x2978a2=0x0;for(const _0x4de123 of Object['values'](_0x22df3a))_0x2978a2+=_0x4de123['getBoundingClientRect']()['height'];const _0x557ed2=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x47a075=Math['min'](_0x2978a2,_0x557ed2);return{'width':_0x52cb8d,'height':_0x47a075};}(_0x3776c2);_0x3cc958['show']({'id':'finalContentPreview','title':o(_0x2c0803,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2c0803,{'dialogRects':_0x412cfb}),'onHide':()=>{_0x5bcd9f['detachFromDom']();},'onShow':()=>{_0x1e8bc1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3908a2=>{const _0xb586ed=this['_standarizeRootsData'](_0x3908a2,_0x1e8bc1,_0x3776c2);_0x3cc958['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xb586ed,_0x1e8bc1['config']['get']('trackChanges.preview.renderFunction'));}),_0x5bcd9f=new _0x1d92a7(_0x2c0803,[_0x3cc958['view']]),_0x5bcd9f['attachToDom'](),_0x5bcd9f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1e8bc1['once']('destroy',()=>{_0x5bcd9f['detachFromDom']();});const _0x329233=_0x3cc958['view']['headerView']['class'];_0x3cc958['view']['headerView']['class']=_0x329233?_0x329233+'\x20ck-reset_all':'ck-reset_all',_0x3cc958['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3cc958['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4f06c2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x36721e=_0x4f06c2['previewMode'],_0x367085={};if('$labels'===_0x36721e){for(const _0x4fb66c of _0x4f06c2['getMergeFieldsIds']())_0x367085[_0x4fb66c]=_0x4f06c2['getLabel'](_0x4fb66c)||_0x4fb66c;}else{const _0x3868cf='$defaultValues'===_0x36721e?_0x4f06c2['getDefaultValues']():_0x4f06c2['getDataSetValues'](_0x36721e,!0x0);for(const _0x2a76d6 of Object['entries'](_0x3868cf)){const [_0x5c3a03,_0x5c7723]=_0x2a76d6;_0x367085[_0x5c3a03]=null!==_0x5c7723?_0x5c7723:_0x4f06c2['getLabel'](_0x5c3a03)||_0x5c3a03;}}return{'mergeFieldsData':_0x367085};}['_standarizeRootsData'](_0x13b6db,_0x25ab89,_0xe08bbc){let _0x10349a;if('string'==typeof _0x13b6db){const _0x1f50e9=_0x25ab89['model']['document']['getRootNames']()[0x0];_0x10349a={[_0x1f50e9]:_0x13b6db};}else _0x10349a=_0x13b6db;const _0x1aadf5=this['_fixMediaEmbeds'](_0x10349a,_0x25ab89),_0x1a8ea5=function(_0x55dbed,_0x47f223){for(const [_0x341815,_0x187a16]of _0x55dbed)_0x187a16['classes']=_0x47f223[_0x341815]['classList']['value']['replace']('ck-focused','');return _0x55dbed;}(this['_sortRoots'](_0x25ab89)['reduce']((_0x4cc722,_0x3a777c)=>(_0x4cc722['push']([_0x3a777c,{'content':_0x1aadf5[_0x3a777c],'classes':''}]),_0x4cc722),[]),_0xe08bbc);return _0x1a8ea5;}['_fixMediaEmbeds'](_0x6ec002,_0x14653a){if(!_0x14653a['plugins']['has']('MediaEmbedEditing'))return _0x6ec002;const _0xf50865=_0x14653a['plugins']['get']('MediaEmbedEditing');for(const [_0x557973,_0x3e06b6]of Object['entries'](_0x6ec002)){const _0x21d213=document['createElement']('div');_0x21d213['innerHTML']=_0x3e06b6,(_0x21d213['querySelectorAll']('figure.media')['forEach'](_0x226cb0=>{const _0x7c986d=_0x226cb0['querySelector']('oembed');if(_0x7c986d){const _0x1911ab=_0x7c986d['getAttribute']('url');if(_0x1911ab){const _0xfea60e=_0xf50865['registry']['getMediaViewElement'](new _0x3ff5c4(_0x14653a['editing']['view']['document']),_0x1911ab,{'elementName':'','renderForEditingView':!0x0}),_0x427504=document['createElement']('div');_0x427504['classList']['add']('ck-media__wrapper'),_0xfea60e['render'](_0x427504,_0x14653a['editing']['view']['domConverter']),_0x7c986d['replaceWith'](_0x427504);}}}),_0x6ec002[_0x557973]=_0x21d213['innerHTML']);}return _0x6ec002;}['_sortRoots'](_0x12cf0b){if(!function(_0x99d104){return void 0x0!==_0x99d104['getRootsAttributes'];}(_0x12cf0b))return _0x12cf0b['model']['document']['getRootNames']();const _0x46b100=[],_0x4b9143=new Map();for(const _0x76d633 of _0x12cf0b['model']['document']['getRootNames']()){const _0xa641cc=_0x12cf0b['editing']['view']['getDomRoot'](_0x76d633)['getClientRects']()['item'](0x0);_0x46b100['push'](_0x76d633),_0x4b9143['set'](_0x76d633,_0xa641cc);}return _0x46b100['sort']((_0xc125a8,_0xe14a38)=>{const _0x934f50=_0x4b9143['get'](_0xc125a8),_0x53d1db=_0x4b9143['get'](_0xe14a38);return _0x934f50['y']-_0x53d1db['y']||_0x934f50['x']-_0x53d1db['x'];}),_0x46b100;}}class te extends _0x371cc0{static get['requires'](){return[T,_0x52827e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42a52c){super(_0x42a52c),_0x42a52c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x42a52c['config']['define']('trackChanges.preview.renderFunction',(_0x17a99d,_0x385fe7)=>{for(const _0x5606f0 of _0x385fe7)_0x17a99d['appendChild'](_0x5606f0);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|