@ckeditor/ckeditor5-collaboration-core 47.3.0-alpha.3 → 47.3.0-alpha.5
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/dist/index.js +1 -1
- package/package.json +13 -13
- package/src/suggestions/integrations/alignment.js +1 -1
- package/src/suggestions/integrations/basicstyles.js +1 -1
- package/src/suggestions/integrations/bookmark.js +1 -1
- package/src/suggestions/integrations/font.js +1 -1
- package/src/suggestions/integrations/highlight.js +1 -1
- package/src/suggestions/integrations/horizontalline.js +1 -1
- package/src/suggestions/integrations/htmlembed.js +1 -1
- package/src/suggestions/integrations/image.js +1 -1
- package/src/suggestions/integrations/indent.js +1 -1
- package/src/suggestions/integrations/lineheight.js +1 -1
- package/src/suggestions/integrations/link.js +1 -1
- package/src/suggestions/integrations/list.js +1 -1
- package/src/suggestions/integrations/listproperties.js +1 -1
- package/src/suggestions/integrations/mediaembed.js +1 -1
- package/src/suggestions/integrations/multilevellist.js +1 -1
- package/src/suggestions/integrations/shiftenter.js +1 -1
- package/src/suggestions/integrations/style.js +1 -1
- package/src/suggestions/integrations/table.js +1 -1
- package/src/suggestions/integrations/tableheadings.js +1 -1
- package/src/suggestions/integrations/tablelayout.js +1 -1
- package/src/suggestions/integrations/tableproperties.js +1 -1
- package/src/suggestions/integrations/uploadcare.js +1 -1
- package/src/suggestions/suggestionsconversion.js +1 -1
- package/src/suggestions/view/ariadescriptionview.js +1 -1
- package/src/suggestions/view/latefocusbuttonview.js +1 -1
- package/src/users/view/userview.js +1 -1
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.js +1 -1
- package/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.js +1 -1
- package/src/utils/setupthreadkeyboardnavigation.js +1 -1
- package/src/utils/trim-html.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x4d4aa4,Editor as _0x269817,Plugin as _0x173d6c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x174be2,Collection as _0x29a6be,uid as _0x3293c0,toArray as jt,first as _0x21e67c,FocusTracker as _0x150852,KeystrokeHandler as _0x45b18e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x1983b2,IconView as _t,ButtonView as _0x1c7a18,DropdownButtonView as _0x23343c,FocusCycler as _0x1d0755,isViewWithFocusCycler as _0x2c6c77}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as pt,IconCheck as _0x5150e0,IconCancel as _0x573f5b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as bt,toWidget as _0x49eaac}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x2712e8}from'luxon';import{InsertOperation as _0x42c930,MoveOperation as _0xfac5c3,ModelPosition as _0x3e2e9c,ModelRange as _0x423d93,MarkerOperation as _0x2d2db8,MergeOperation as _0x36aa7a,SplitOperation as _0x4192f1,RenameOperation as _0x140e14,AttributeOperation as _0x351bc6,ModelTreeWalker as _0x1125a0,ModelText as _0x4717b5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x10ae8a}from'diff';class C extends _0x4d4aa4{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x2d4605,_0x2740fa){let _0x4a8285;if(_0x2740fa||(_0x2740fa=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x2740fa?_0x4a8285=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x4a8285=this['context']['editors']['find'](_0x529c37=>_0x529c37['config']['get']('collaboration.channelId')==_0x2740fa)),!_0x4a8285)throw new _0x174be2('permissions-set-permissions-invalid-channel-id',null);const _0x58a2a4=_0x4a8285['plugins'],_0x3bd72f=_0x58a2a4['has']('CommentsRepository')?_0x58a2a4['get']('CommentsRepository'):void 0x0,_0x1e3417=_0x58a2a4['has']('CommentsOnly')&&_0x58a2a4['get']('CommentsOnly'),_0x51c2c3=_0x2d4605['includes']('document:write'),_0x234701=_0x2d4605['includes']('comment:modify_all'),_0x232d62=_0x2d4605['includes']('comment:admin'),_0x33f3fa=_0x2d4605['includes']('comment:write'),_0x3d057a=_0x33f3fa||_0x232d62,_0x37aaff=_0x3d057a||_0x234701,_0x209dd9=_0x51c2c3||_0x3d057a;(_0x1e3417&&(_0x1e3417['isEnabled']=!_0x51c2c3&&_0x37aaff),_0x4a8285 instanceof _0x269817)&&(!(_0x51c2c3||_0x37aaff&&_0x3bd72f)?_0x4a8285['enableReadOnlyMode']('no-permissions'):_0x4a8285['disableReadOnlyMode']('no-permissions'));if(_0x3bd72f){_0x3bd72f['setPermissions']({'admin':_0x232d62,'modifyAll':_0x234701,'write':_0x33f3fa,'resolve':_0x209dd9},_0x2740fa);const _0x319057=_0x4a8285 instanceof _0x269817&&_0x4a8285['commands']['get']('addCommentThread');_0x319057&&(_0x3d057a?_0x319057['clearForceDisabled']('noPermissions'):_0x319057['forceDisabled']('noPermissions'));}}}function U(_0x56f7c0,_0xe80377){const t=_0x56f7c0['t'];switch(_0xe80377){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class yt extends _0x4d4aa4{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x35f0ab){super(_0x35f0ab),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x29a6be(),this['_locale']=_0x35f0ab['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x3b6a62,name:_0x560929,..._0x31def1}){if(!_0x3b6a62||'string'!=typeof _0x3b6a62)throw new _0x174be2('users-add-invalid-id');if(this['users']['has'](_0x3b6a62))throw new _0x174be2('users-add-duplicated-id',null,{'id':_0x3b6a62});const _0x3ef159=this['context']['config']['get']('users.getInitialsCallback'),_0x3de6ff={..._0x31def1,'id':_0x3b6a62,'name':A(this['_locale'],_0x560929),'color':this['_getNextColor']()};_0x3de6ff['name']=A(this['_locale'],_0x3de6ff['name']);const _0x1d0fca=new wt(_0x3de6ff,_0x3ef159);return this['users']['add'](_0x1d0fca),_0x1d0fca;}['getUser'](_0x686a29){return this['users']['get'](_0x686a29);}['useAnonymousUser'](){const _0x2762f6=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x2762f6);}['defineMe'](_0x1c1f1c){if(this['_myId'])throw new _0x174be2('users-me-already-defined',null);const _0x4bf28d=this['getUser'](_0x1c1f1c);if(!_0x4bf28d)throw new _0x174be2('users-me-missing-user',null);this['_myId']=_0x1c1f1c,_0x4bf28d['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x106abd=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x106abd&&(this['_lastColor']=0x0),new vt(this['_lastColor']++);}['_addAnonymousUser'](){const _0x253e58=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x253e58,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class wt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x45fea2,_0x134b7d){this['id']=_0x45fea2['id'],this['color']=_0x45fea2['color'],this['name']=_0x45fea2['name'],this['initials']=_0x134b7d?_0x134b7d(this['name']):this['_computeInitials'](),this['avatar']=_0x45fea2['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0xaf7529=this['name']['split']('\x20')['filter'](_0x8d8ddd=>/^[\p{Letter}]/u['test'](_0x8d8ddd));return 0x1===_0xaf7529['length']?this['_getInitial'](_0xaf7529[0x0]):0x0===_0xaf7529['length']?this['_getInitial'](this['name']):this['_getInitial'](_0xaf7529[0x0])+this['_getInitial'](_0xaf7529[_0xaf7529['length']-0x1]);}['_getInitial'](_0x3f0d6f){return String['fromCodePoint'](_0x3f0d6f['codePointAt'](0x0))['toUpperCase']();}}function A(_0x1a1927,_0x4997b4=''){return''==(_0x4997b4=_0x4997b4['trim']())?U(_0x1a1927,'Anonymous'):_0x4997b4;}class vt{['_id'];constructor(_0x50ba6e){this['_id']=_0x50ba6e;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class Ct extends _0x1983b2{['name'];['notificationView'];constructor(_0x20490a,_0x58146f,_0x531c15){super(_0x20490a),this['name']=_0x58146f['name'],this['notificationView']=null;const _0x1353ab=['ck','ck-user'],_0x2b34a5=['ck','ck-user__img'];if(_0x58146f['isAnonymous']&&_0x2b34a5['push']('ck-user__anonymous'),!_0x58146f['isAnonymous']&&_0x58146f['isMe']&&_0x1353ab['push']('ck-user_me'),_0x58146f['avatar']&&_0x2b34a5['push']('ck-user__avatar'),_0x531c15){const _0x14bb41=new _t();_0x14bb41['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x14bb41['content']=pt,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x531c15},'children':[_0x14bb41]};}const _0x25f364=[{'tag':'div','attributes':{'class':_0x2b34a5,'style':{'background-image':_0x58146f['avatar']?'url(\x27'+_0x58146f['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x58146f['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x58146f['name']},'children':[{'text':_0x58146f['initials']}]}];this['notificationView']&&_0x25f364['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x1353ab,'data-user-id':_0x58146f['id']},'children':_0x25f364});}}class xt extends _0x1983b2{['id'];constructor(_0x2c3f76,_0x3ac935){super(_0x2c3f76),this['id']='ck-aria-description-'+_0x3293c0(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x3ac935}]});}}class It extends _0x1c7a18{['render'](){super['render'](),se(this);}}class St extends _0x23343c{['render'](){super['render'](),se(this);}}function se(_0x110124){_0x110124['listenTo'](_0x110124['element'],'mousedown',(_0x554708,_0x160d43)=>{_0x160d43['stopPropagation'](),_0x160d43['preventDefault']();}),_0x110124['listenTo'](_0x110124['element'],'mouseup',()=>{_0x110124['element']['focus']();});}function J(_0x1466d6){const _0x1918e9=_0x1466d6['split'](':');return{'group':_0x1918e9[0x0],'type':_0x1918e9[0x1],'subType':_0x1918e9['length']>=0x5?_0x1918e9[0x2]:null,'id':_0x1918e9['length']<0x5?_0x1918e9[0x2]:_0x1918e9[0x3],'authorId':_0x1918e9['length']<0x5?_0x1918e9[0x3]:_0x1918e9[0x4],'markerCount':0x6==_0x1918e9['length']?_0x1918e9[0x5]:null};}function Et(_0x2650ab,_0x317287){const _0x2078eb=_0x2650ab['end']['nodeBefore'];if(_0x2078eb&&_0x2078eb['is']('element')&&_0x317287['schema']['isBlock'](_0x2078eb)&&!_0x317287['schema']['isObject'](_0x2078eb)){const _0x1240e1=_0x317287['createPositionAt'](_0x2078eb,'end');return _0x317287['createRange'](_0x2650ab['start'],_0x1240e1);}return _0x2650ab;}class L extends _0x173d6c{['afterInit'](){const _0x1e6182=this['editor'];if(!_0x1e6182['plugins']['has']('AlignmentEditing'))return;_0x1e6182['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Q extends _0x173d6c{['afterInit'](){const _0x1a4422=this['editor'],_0x13f391=_0x1a4422['plugins']['get']('SuggestionsConversion');for(const _0x3b0483 of ii){if(!_0x1a4422['plugins']['has'](_0x3b0483))continue;const _0x25d781=_0x3b0483['slice'](0x0,-0x7)['toLowerCase']();_0x13f391['registerInlineAttribute'](_0x25d781);}}}class X extends _0x173d6c{['afterInit'](){const _0x35a4e4=this['editor'],_0xb28ee6=_0x35a4e4['plugins']['get']('SuggestionsConversion');_0x35a4e4['plugins']['has']('BookmarkEditing')&&_0xb28ee6['registerBlockAttribute']('bookmarkId');}}const oo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x173d6c{['afterInit'](){const _0x5c093a=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x26a7cf,commandName:_0x3937e0}of oo)this['editor']['plugins']['has'](_0x26a7cf)&&_0x5c093a['registerInlineAttribute'](_0x3937e0);}}class Z extends _0x173d6c{['afterInit'](){const _0x413e16=this['editor'];if(!_0x413e16['plugins']['has']('HighlightEditing'))return;_0x413e16['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class tt extends _0x173d6c{['afterInit'](){const _0x4804e9=this['editor'];if(!_0x4804e9['plugins']['has']('HtmlEmbed'))return;_0x4804e9['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x173d6c{['afterInit'](){const _0x521b08=this['editor'];if(!_0x521b08['plugins']['has']('ImageEditing'))return;const _0x48e030=_0x521b08['plugins']['get']('SuggestionsConversion');_0x48e030['registerBlockAttribute']('src'),_0x521b08['plugins']['has']('ImageResize')&&_0x48e030['registerBlockAttribute']('resizedWidth'),_0x521b08['plugins']['has']('ImageTextAlternativeEditing')&&_0x48e030['registerBlockAttribute']('alt'),_0x521b08['plugins']['has']('PictureEditing')&&_0x48e030['registerBlockAttribute']('sources'),_0x521b08['plugins']['has']('ImageSizeAttributes')&&(_0x48e030['registerBlockAttribute']('width'),_0x48e030['registerBlockAttribute']('height'));}}class rt extends _0x173d6c{['afterInit'](){const _0x3b400f=this['editor'],_0xb9fe5d=_0x3b400f['plugins']['get']('SuggestionsConversion');_0x3b400f['plugins']['has']('IndentBlock')&&_0xb9fe5d['registerBlockAttribute']('blockIndent');}}class et extends _0x173d6c{['afterInit'](){const _0x2db9a2=this['editor'];if(!_0x2db9a2['plugins']['has']('LineHeight'))return;_0x2db9a2['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class st extends _0x173d6c{['afterInit'](){const _0x138f39=this['editor'];if(!_0x138f39['plugins']['has']('LinkEditing'))return;const _0x137ec1=_0x138f39['plugins']['get']('SuggestionsConversion'),_0x51ac5b=_0x138f39['commands']['get']('link');_0x137ec1['registerInlineAttribute']('linkHref');for(const _0x15b001 of _0x51ac5b['manualDecorators'])_0x137ec1['registerInlineAttribute'](_0x15b001['id']);}}class ot extends _0x173d6c{['afterInit'](){const _0x2b2def=this['editor'];if(!_0x2b2def['plugins']['has']('ListEditing'))return;const _0x4d3a60=_0x2b2def['plugins']['get']('SuggestionsConversion'),_0x4de17c=_0x2b2def['plugins']['has']('TodoListEditing');_0x4d3a60['registerBlockAttribute']('listItemId'),_0x4d3a60['registerBlockAttribute']('listType'),_0x4d3a60['registerBlockAttribute']('listIndent'),_0x4de17c&&_0x4d3a60['registerBlockAttribute']('todoListChecked');}}class nt extends _0x173d6c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1194d6=this['editor']['config']['get']('list.properties'),_0x5d0b4f=this['editor']['plugins']['get']('SuggestionsConversion');_0x1194d6['styles']&&_0x5d0b4f['registerBlockAttribute']('listStyle'),_0x1194d6['reversed']&&_0x5d0b4f['registerBlockAttribute']('listReversed'),_0x1194d6['startIndex']&&_0x5d0b4f['registerBlockAttribute']('listStart');}}class at extends _0x173d6c{['afterInit'](){const _0x56f4ec=this['editor'],_0x110b7f=_0x56f4ec['plugins']['get']('SuggestionsConversion');_0x56f4ec['plugins']['has']('MultiLevelList')&&_0x110b7f['registerBlockAttribute']('listMarkerStyle');}}class gt extends _0x173d6c{['afterInit'](){const _0x3b4cc2=this['editor'];if(!_0x3b4cc2['plugins']['has']('Style')||!_0x3b4cc2['plugins']['has']('DataSchema')||!_0x3b4cc2['config']['get']('style.definitions'))return;const _0x3bc7bf=_0x3b4cc2['plugins']['get']('SuggestionsConversion'),_0x68b24d=_0x3b4cc2['config']['get']('style.definitions'),_0x2e5a3b=_0x3b4cc2['plugins']['get']('GeneralHtmlSupport'),_0x1f8cbf=_0x3b4cc2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b4cc2['plugins']['get']('DataSchema'),_0x68b24d),_0x2be2ad=new Set();for(const _0x2c3319 of _0x1f8cbf['block']){const _0x38140a=_0x2e5a3b['getGhsAttributeNameForElement'](_0x2c3319['element']);_0x2be2ad['add'](_0x38140a);}const _0x4834f3=new Set();for(const _0x36b1b4 of _0x1f8cbf['inline']){const _0x464c27=_0x2e5a3b['getGhsAttributeNameForElement'](_0x36b1b4['element']);_0x4834f3['add'](_0x464c27);for(const _0x25a9f5 of _0x36b1b4['ghsAttributes'])_0x4834f3['add'](_0x25a9f5);}for(const _0x24475a of _0x2be2ad)_0x3bc7bf['registerBlockAttribute'](_0x24475a);for(const _0x6a8bfb of _0x4834f3)_0x3bc7bf['registerInlineAttribute'](_0x6a8bfb);}}class ut extends _0x173d6c{['afterInit'](){const _0x5afc55=this['editor'];if(!_0x5afc55['plugins']['has']('TableEditing'))return;const _0x1ae13e=_0x5afc55['plugins']['get']('SuggestionsConversion');_0x1ae13e['registerBlockAttribute']('headingRows'),_0x1ae13e['registerBlockAttribute']('headingColumns');}}class mt extends _0x173d6c{['afterInit'](){const _0x3e9881=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x1cd00a=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x44ef10 of _0x1cd00a)_0x3e9881['registerBlockAttribute'](_0x44ef10);}}class ct extends _0x173d6c{['afterInit'](){const _0x38a0a0=this['editor'],_0x56d600=_0x38a0a0['plugins']['get']('SuggestionsConversion');_0x38a0a0['plugins']['has']('TableLayout')&&_0x56d600['registerBlockAttribute']('tableType');}}class dt extends _0x173d6c{['afterInit'](){const _0x176799=this['editor'],_0x5b0ae3=this['editor']['plugins']['get']('SuggestionsConversion');_0x176799['plugins']['has']('Uploadcare')&&_0x176799['plugins']['has']('UploadcareImageEdit')&&_0x5b0ae3['registerBlockAttribute']('uploadcareImageId');}}class ht extends _0x173d6c{['afterInit'](){const _0x3fb8b2=this['editor'];if(!_0x3fb8b2['plugins']['has']('ShiftEnter'))return;const _0x46c488=_0x3fb8b2['plugins']['get']('SuggestionsConversion'),_0x4e63db=(_0x2e6771,_0x185a25,_0x4ec505,_0x49e988)=>{if(_0x49e988&&!_0x4ec505['options']['showSuggestionHighlights'])return;if(!_0x4ec505['consumable']['test'](_0x185a25['markerRange'],_0x2e6771['name']))return;const _0x20663b=_0x3fb8b2['model'];for(const _0x5be8a3 of _0x185a25['markerRange']['getItems']()){if(!_0x5be8a3['is']('element','softBreak'))continue;const _0x23f6c1='deletion'==_0x185a25['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x404817,authorId:_0x50c653}=J(_0x185a25['markerName']),_0x2a1614=_0x4ec505['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23f6c1,'data-suggestion':_0x404817,'data-author-id':_0x50c653}),_0x2b40ab=_0x4ec505['mapper']['toViewPosition'](_0x20663b['createPositionBefore'](_0x5be8a3));!_0x49e988&&_0x46c488['_activeMarkers']['includes'](_0x185a25['markerName'])&&_0x4ec505['writer']['addClass']('ck-suggestion-marker--active',_0x2a1614),_0x4ec505['writer']['insert'](_0x2b40ab,_0x2a1614),_0x4ec505['mapper']['bindElementToMarker'](_0x2a1614,_0x185a25['markerName']);}};_0x3fb8b2['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x354e81,_0x17b0bf,_0x161774)=>{_0x4e63db(_0x354e81,_0x17b0bf,_0x161774,!0x1);},{'priority':'high'}),_0x3fb8b2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5cc091,_0xc75147,_0x435965)=>{_0x4e63db(_0x5cc091,_0xc75147,_0x435965,!0x0);},{'priority':'high'});}}class lt extends _0x173d6c{['afterInit'](){const _0x4b9e67=this['editor'];_0x4b9e67['plugins']['has']('MediaEmbedEditing')&&(_0x4b9e67['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4aaca4,{writer:_0x156471,options:_0x52d374})=>{if(_0x52d374['showSuggestionHighlights'])return _0x156471['createEmptyElement']('div');},'converterPriority':'high'}),_0x4b9e67['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4b9abb,_0xbb3d00,_0x589691)=>{_0x589691['options']['showSuggestionHighlights']&&_0x4b9abb['stop']();},{'priority':'high'}));}}class kt extends _0x173d6c{['afterInit'](){const _0x14f697=this['editor'];if(!_0x14f697['plugins']['has']('Table'))return;_0x14f697['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b33a9,_0x1953c2,_0x280d79)=>{((_0x1bd324,_0x4c3c40,_0x5b17c6)=>{if(!_0x5b17c6['options']['showSuggestionHighlights'])return;const _0xddbdf0=_0x4c3c40['item'];if(!_0xddbdf0||!_0xddbdf0['is']('element','tableCell'))return;const _0x4110a9=_0x5b17c6['mapper']['toViewElement'](_0xddbdf0);if(_0x4110a9){const {id:_0x59a5ac,authorId:_0x2c14d1}=J(_0x4c3c40['markerName']);bt(_0x4110a9,_0x5b17c6['writer'],(_0x31b80f,_0x1e01b9,_0xcbad02)=>{_0xcbad02['addClass'](jt(_0x1e01b9['classes']),_0x31b80f),_0xcbad02['setAttribute']('data-suggestion-id',_0x59a5ac,_0x31b80f),_0xcbad02['setAttribute']('data-author-id',_0x2c14d1,_0x31b80f);});}})(0x0,_0x1953c2,_0x280d79);},{'priority':'highest'});}}class ft extends _0x173d6c{['afterInit'](){const _0x3831d5=this['editor'];_0x3831d5['plugins']['has']('HorizontalLineEditing')&&_0x3831d5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x720244,{writer:_0xaa104f,options:_0x3d05c7})=>{if(!_0x3d05c7['showSuggestionHighlights'])return null;const _0x1aea05=_0xaa104f['createContainerElement']('div'),_0x564ccb=_0xaa104f['createEmptyElement']('hr');return _0xaa104f['addClass']('ck-horizontal-line',_0x1aea05),_0xaa104f['insert'](_0xaa104f['createPositionAt'](_0x1aea05,0x0),_0x564ccb),_0x1aea05;},'converterPriority':'high'});}}class At extends _0x173d6c{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[L,Q,X,Y,Z,ft,tt,it,rt,et,st,ot,nt,lt,at,ht,gt,kt,ut,ct,mt,dt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x37f4d3=this['editor'],_0x1e00ff=(_0x14310d,_0x8fd556,_0x3e65ae)=>{const {id:_0x1b4157,authorId:_0x118792,type:_0x1da47c,subType:_0x421afd}=J(_0x14310d['markerName']),_0xabd1df=['ck-suggestion-marker',this['_getClassName'](_0x1da47c,_0x421afd)];let _0x2499a4=0xbb8;return!_0x3e65ae&&(this['_activeMarkers']['includes'](_0x14310d['markerName'])&&(_0xabd1df['push']('ck-suggestion-marker--active'),_0x2499a4=0xbc2)),('deletion'==_0x1da47c&&(_0x2499a4+=0x5),{'classes':_0xabd1df,'attributes':{'data-suggestion':_0x1b4157,'data-author-id':_0x118792},'priority':_0x2499a4});};_0x37f4d3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x56b57e,_0x67be9d)=>_0x1e00ff(_0x56b57e,0x0,!0x1)}),_0x37f4d3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x193b96,_0x2e41b3)=>_0x1e00ff(_0x193b96,0x0,!0x0)}),_0x37f4d3['conversion']['for']('dataDowncast')['add'](_0x4bd2f0=>{_0x4bd2f0['on']('addMarker:suggestion',(_0x4d0c96,_0x40a613,_0x4935aa)=>{if(!_0x4935aa['options']['showSuggestionHighlights'])return;const _0x1dd7d9=_0x40a613['item'];if(!_0x1dd7d9)return;const _0x32a1be=_0x4935aa['mapper']['toViewElement'](_0x1dd7d9);_0x37f4d3['model']['schema']['isObject'](_0x1dd7d9)&&_0x32a1be&&!_0x32a1be['getCustomProperty']('widget')&&_0x32a1be['is']('containerElement')&&_0x49eaac(_0x32a1be,_0x4935aa['writer']);},{'priority':'high'});});const _0x794985=(_0x1ed5b1,_0x322da8,_0x2426f4,_0xf47fd,_0x1cfa32)=>{if(_0xf47fd&&!_0x2426f4['options']['showSuggestionHighlights'])return;if(!_0x322da8['item'])return;const {id:_0x5a09ba,authorId:_0x18d116,subType:_0xc68198}=J(_0x322da8['markerName']);if(_0x1cfa32){const _0x27ebfa=_0xc68198['split']('|')[0x0];if(!this['isBlockAttribute'](_0x27ebfa))return;}if(_0x322da8['item']['is']('selection'))return void _0x2426f4['consumable']['consume'](_0x322da8['item'],_0x1ed5b1['name']);const _0x514532=_0x2426f4['mapper']['toViewElement'](_0x322da8['item']);if(_0x322da8['item']['is']('element')&&_0x37f4d3['model']['schema']['isBlock'](_0x322da8['item'])&&!_0x514532['getCustomProperty']('addHighlight')){_0x2426f4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x514532),_0x2426f4['writer']['setAttribute']('data-suggestion',_0x5a09ba,_0x514532),_0x2426f4['writer']['setAttribute']('data-author-id',_0x18d116,_0x514532),_0x2426f4['mapper']['bindElementToMarker'](_0x514532,_0x322da8['markerName']),_0xf47fd||(this['_activeMarkers']['includes'](_0x322da8['markerName'])?_0x2426f4['writer']['addClass']('ck-suggestion-marker--active',_0x514532):_0x2426f4['writer']['removeClass']('ck-suggestion-marker--active',_0x514532));for(const _0x184ece of _0x37f4d3['model']['createRangeIn'](_0x322da8['item'])['getItems']())_0x2426f4['consumable']['consume'](_0x184ece,_0x1ed5b1['name']);_0x2426f4['consumable']['consume'](_0x322da8['item'],_0x1ed5b1['name']);}},_0x3a982b=(_0x31ff0d,_0x118a7b,_0x112b82,_0x3e963b)=>{const _0x5cac88=_0x112b82['mapper']['markerNameToElements'](_0x118a7b['markerName']);if(_0x5cac88){if(_0x3e963b){const {subType:_0x4f72f2}=J(_0x118a7b['markerName']),_0x549a2c=_0x4f72f2['split']('|')[0x0];if(!this['isBlockAttribute'](_0x549a2c))return;}for(const _0x7956f9 of _0x5cac88)_0x7956f9['getCustomProperty']('addHighlight')||(_0x112b82['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7956f9),_0x112b82['writer']['removeAttribute']('data-suggestion',_0x7956f9),_0x112b82['writer']['removeAttribute']('data-author-id',_0x7956f9),_0x112b82['mapper']['unbindElementFromMarkerName'](_0x7956f9,_0x118a7b['markerName']));}};_0x37f4d3['conversion']['for']('editingDowncast')['add'](_0x2867a2=>{_0x2867a2['on']('addMarker:suggestion:formatBlock',(_0x512cf1,_0x11d9a,_0x5be7ca)=>{_0x794985(_0x512cf1,_0x11d9a,_0x5be7ca,!0x1,!0x1);},{'priority':'high'});}),_0x37f4d3['conversion']['for']('editingDowncast')['add'](_0xd92a5c=>{_0xd92a5c['on']('addMarker:suggestion:attribute',(_0x36b830,_0x23eb5d,_0x45bda2)=>{_0x794985(_0x36b830,_0x23eb5d,_0x45bda2,!0x1,!0x0);},{'priority':'high'});}),_0x37f4d3['conversion']['for']('editingDowncast')['add'](_0x1b14ae=>{_0x1b14ae['on']('removeMarker:suggestion:formatBlock',(_0x24af24,_0x71a194,_0x24b396)=>{_0x3a982b(0x0,_0x71a194,_0x24b396,!0x1);},{'priority':'high'});}),_0x37f4d3['conversion']['for']('editingDowncast')['add'](_0x5d396a=>{_0x5d396a['on']('removeMarker:suggestion:attribute',(_0xdc84ee,_0xc1f8c8,_0x1e1922)=>{_0x3a982b(0x0,_0xc1f8c8,_0x1e1922,!0x0);},{'priority':'high'});}),_0x37f4d3['conversion']['for']('dataDowncast')['add'](_0x5983c2=>{_0x5983c2['on']('addMarker:suggestion:formatBlock',(_0x417105,_0x2d6d0d,_0x5081d2)=>{_0x794985(_0x417105,_0x2d6d0d,_0x5081d2,!0x0,!0x1);},{'priority':'highest'});}),_0x37f4d3['conversion']['for']('dataDowncast')['add'](_0x456d87=>{_0x456d87['on']('addMarker:suggestion:attribute',(_0x4ce2b4,_0x3cb692,_0x4474b6)=>{_0x794985(_0x4ce2b4,_0x3cb692,_0x4474b6,!0x0,!0x0);},{'priority':'highest'});}),_0x37f4d3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2159ef,_0x75eb8a)=>{if(_0x75eb8a['options']['showSuggestionHighlights']){const {id:_0x26cf36,authorId:_0x48f42c}=J(_0x2159ef);return _0x2159ef['includes'](':split')||_0x2159ef['includes'](':merge')?{'group':'suggestion','name':_0x2159ef['substr'](0xb),'attributes':{'data-suggestion':_0x26cf36,'data-author-id':_0x48f42c}}:null;}return{'group':'suggestion','name':_0x2159ef['substr'](0xb)};}});const _0x580faa=(_0x25cced,_0x3e1abf,_0x580470,_0x2e787e,_0x159892)=>{if(_0x2e787e&&!_0x580470['options']['showSuggestionHighlights'])return;if(!_0x580470['consumable']['test'](_0x3e1abf['markerRange'],_0x25cced['name']))return;const _0x1c071e=this['_activeMarkers'],_0x48cbd8=_0x3e1abf['markerRange']['getWalker'](),_0x2aa189=_0x3e1abf['markerRange']['start'],_0x269f09=_0x37f4d3['model']['schema'];let _0x18b100=null,_0x13b54e=null,_0x4262ad=!0x1,_0x498bd1=!0x1;for(const _0x325f10 of _0x48cbd8){const _0x4f0dbc=_0x325f10['item'];_0x4262ad=_0x4262ad||_0x269f09['isContent'](_0x4f0dbc);const _0x43f478=_0x580470['mapper']['toViewElement'](_0x4f0dbc);if(_0x43f478&&_0x43f478['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x325f10['type']&&(_0x269f09['isBlock'](_0x4f0dbc)&&!_0x269f09['isLimit'](_0x4f0dbc)&&(_0x4f0dbc['nextSibling']||_0x2aa189['isAtEnd']?_0x18b100&&_0x18b100['parent']==_0x4f0dbc||(_0x18b100=_0x4f0dbc,_0x208534(_0x325f10['previousPosition']),_0x498bd1=!0x0):_0x13b54e=_0x13b54e||_0x325f10['previousPosition']));}function _0x208534(_0x46e6a3){const {id:_0x35a777,authorId:_0xd31287}=J(_0x3e1abf['markerName']),_0x419c58=_0x580470['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x159892,'data-suggestion':_0x35a777,'data-author-id':_0xd31287}),_0x32a882=_0x580470['mapper']['toViewPosition'](_0x46e6a3);!_0x2e787e&&_0x1c071e['includes'](_0x3e1abf['markerName'])&&_0x580470['writer']['addClass']('ck-suggestion-marker--active',_0x419c58),_0x580470['writer']['insert'](_0x32a882,_0x419c58),_0x580470['mapper']['bindElementToMarker'](_0x419c58,_0x3e1abf['markerName']);}_0x4262ad||_0x498bd1||!_0x13b54e||_0x208534(_0x13b54e);};_0x37f4d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x361283,_0x3c64c1,_0x125025)=>{_0x580faa(_0x361283,_0x3c64c1,_0x125025,!0x1,'merge');},{'priority':'high'}),_0x37f4d3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5c7627,_0x548f86,_0x1a3b2b)=>{_0x580faa(_0x5c7627,_0x548f86,_0x1a3b2b,!0x0,'merge');},{'priority':'high'}),_0x37f4d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x55a936,_0xbdd212,_0x2c9511)=>{_0x580faa(_0x55a936,_0xbdd212,_0x2c9511,!0x1,'split');},{'priority':'high'}),_0x37f4d3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c17f0,_0x5ada84,_0x3b2e2a)=>{_0x580faa(_0x1c17f0,_0x5ada84,_0x3b2e2a,!0x0,'split');},{'priority':'high'}),_0x37f4d3['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4d1e8a,_0x1074c0,_0x54cb4b)=>{((_0x318e00,_0x3e717a,_0x1af030)=>{const _0x3693e0=_0x1af030['mapper']['markerNameToElements'](_0x3e717a['markerName']);if(_0x3693e0){for(const _0x24f13f of _0x3693e0)(_0x24f13f['hasClass']('ck-suggestion-marker-split')||_0x24f13f['hasClass']('ck-suggestion-marker-merge'))&&(_0x1af030['mapper']['unbindElementFromMarkerName'](_0x24f13f,_0x3e717a['markerName']),_0x1af030['writer']['remove'](_0x24f13f));}})(0x0,_0x1074c0,_0x54cb4b);},{'priority':'high'});const _0x2c4aae=(_0x377276,_0x552961,_0x2fdaf9,_0x4d23a9)=>{if(_0x4d23a9&&!_0x2fdaf9['options']['showSuggestionHighlights'])return;const _0x1ff034=_0x552961['markerRange']['start'],_0xea92ab=_0x552961['markerRange']['end'],_0xedf9a4=_0x37f4d3['model']['schema'];if(!_0x1ff034['isTouching'](_0xea92ab)||!_0x1ff034['nodeAfter'])return;const _0x67e66=_0x1ff034['nodeAfter'];if(_0xedf9a4['isBlock'](_0x67e66)&&!_0xedf9a4['isLimit'](_0x67e66)&&_0xedf9a4['checkChild'](_0x67e66,'$text')){if(!_0x2fdaf9['consumable']['consume'](_0x552961['markerRange'],_0x377276['name']))return;const {id:_0x4aec5d,authorId:_0x2b3b8d}=J(_0x552961['markerName']),_0x476b65=_0x2fdaf9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4aec5d,'data-author-id':_0x2b3b8d}),_0x29247c=_0x2fdaf9['mapper']['toViewPosition'](_0xea92ab);!_0x4d23a9&&this['_activeMarkers']['includes'](_0x552961['markerName'])&&_0x2fdaf9['writer']['addClass']('ck-suggestion-marker--active',_0x476b65),_0x2fdaf9['writer']['insert'](_0x29247c,_0x476b65),_0x2fdaf9['mapper']['bindElementToMarker'](_0x476b65,_0x552961['markerName']);}};_0x37f4d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1531ae,_0x4a86b8,_0x5112bb)=>{_0x2c4aae(_0x1531ae,_0x4a86b8,_0x5112bb,!0x1);},{'priority':'high'}),_0x37f4d3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19158f,_0x54c35e,_0x45fb62)=>{_0x2c4aae(_0x19158f,_0x54c35e,_0x45fb62,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x13f84a,_0x2aecea,_0xd7d6ff)=>{this['_activeMarkers']=_0xd7d6ff['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x1b0268){this['_blockAttributeKeys']['add'](_0x1b0268);}['registerInlineAttribute'](_0x2c1f26){this['_inlineAttributeKeys']['add'](_0x2c1f26);}['isBlockAttribute'](_0x4e3fbb){return this['_blockAttributeKeys']['has'](_0x4e3fbb);}['isInlineAttribute'](_0x2f78ae){return this['_inlineAttributeKeys']['has'](_0x2f78ae);}['isRegisteredAttribute'](_0x41e123){return this['isInlineAttribute'](_0x41e123)||this['isBlockAttribute'](_0x41e123);}['_getClassName'](_0x568686,_0x2db388){if('attribute'!=_0x568686)return'ck-suggestion-marker-'+_0x568686;const _0x1e6adf=_0x2db388['split']('|')[0x0];return this['isBlockAttribute'](_0x1e6adf)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Mt(_0x229d20={},_0x4fd76e){if(void 0x0!==_0x229d20['dateTimeFormat']&&'function'!=typeof _0x229d20['dateTimeFormat'])throw new _0x174be2('invalid-date-time-format');return _0x5d9134=>{const _0x48a72a='string'==typeof _0x5d9134?_0x2712e8['fromISO'](_0x5d9134):_0x2712e8['fromJSDate'](_0x5d9134),_0x4b1c32=_0x2712e8['now'](),_0xfb5c9=Math['floor'](_0x4b1c32['diff'](_0x48a72a,'days')['days']);return _0x229d20['dateTimeFormat']?_0x229d20['dateTimeFormat'](_0x48a72a['toJSDate'](),_0x4fd76e&&_0x4fd76e['t']?_0x4fd76e['t']:void 0x0):0x0===_0xfb5c9?_0x4fd76e?U(_0x4fd76e,'Today')+'\x20'+_0x48a72a['toFormat']('hh:mma'):_0x48a72a['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0xfb5c9?_0x4fd76e?U(_0x4fd76e,'Yesterday')+'\x20'+_0x48a72a['toFormat']('hh:mma'):_0x48a72a['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0xfb5c9<0x7?_0x4fd76e?U(_0x4fd76e,'Last')+'\x20'+U(_0x4fd76e,_0x48a72a['toFormat']('EEEE'))+'\x20'+_0x48a72a['toFormat']('hh:mma'):_0x48a72a['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x48a72a['toFormat']('LL-dd-yyyy\x20hh:mma');};}function Tt(_0xdcff1a,_0x527195){const _0x5beb7e=_0xdcff1a['mapper']['markerNameToElements'](_0x527195['name']);if(!_0x5beb7e)return null;const _0x458597=_0x21e67c(_0x5beb7e['values']());return _0xdcff1a['view']['domConverter']['mapViewToDom'](_0x458597)||null;}function Nt(_0x1efa1e,_0x4e670b){if(0x0===_0x4e670b['length'])return null;const _0x24ae4f=[],_0x51f961=_0x1efa1e['view']['domConverter'];for(const _0x202137 of _0x4e670b){const _0x16c172=_0x1efa1e['mapper']['markerNameToElements'](_0x202137['name']);if(!_0x16c172)continue;const _0x172a3d=Array['from'](_0x16c172)['map'](_0x25df58=>_0x51f961['mapViewToDom'](_0x25df58))['filter'](_0x190903=>!!_0x190903);_0x24ae4f['push'](..._0x172a3d);}if(0x0===_0x24ae4f['length'])return null;const _0x5934b9=[];for(const _0x17ac97 of _0x24ae4f){const _0x2afe3c=_0x17ac97['getClientRects']()['item'](0x0);_0x2afe3c&&_0x5934b9['push']({'x':_0x2afe3c['x'],'y':_0x2afe3c['y'],'domElement':_0x17ac97});}return 0x0===_0x5934b9['length']?null:(_0x5934b9['sort']((_0x5d79e8,_0x929b4c)=>_0x5d79e8['y']-_0x929b4c['y']||_0x5d79e8['x']-_0x929b4c['x']),_0x5934b9['map'](_0x190beb=>_0x190beb['domElement']));}function Bt(_0x4188bd,{limit:_0x310ebe,suffix:_0x18770d='...'}){const _0x2622d5=[];let _0x4ae318=0x0;const _0x879b98=_0x4188bd['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4d34ce=0x0;_0x4d34ce<_0x879b98['length'];_0x4d34ce++){let _0x4c0ed6=_0x879b98[_0x4d34ce];const _0x55980b=H(_0x4c0ed6);if(_0x4c0ed6['startsWith']('<')){if(_0x4ae318>=_0x310ebe){const _0x48fa8f=_0x4c0ed6['match'](/[a-zA-Z]+/);if(!_0x48fa8f){_0x879b98[_0x4d34ce]='';continue;}const _0x235a7d=_0x48fa8f[0x0];_0x4c0ed6['startsWith']('</')?(_0x2622d5['length']&&(_0x4c0ed6=''),_0x2622d5['pop']()):(_0x2622d5['push'](_0x235a7d),_0x4c0ed6='');}}else{if(_0x4ae318>=_0x310ebe)_0x4c0ed6='';else{if(_0x4ae318+_0x55980b['length']>=_0x310ebe){let _0x514f0b=_0x310ebe-_0x4ae318;if('\x20'===_0x55980b[_0x514f0b-0x1])_0x514f0b--;else{const _0x274d44=_0x55980b['slice'](_0x514f0b)['indexOf']('\x20');-0x1!==_0x274d44?_0x514f0b+=_0x274d44:_0x514f0b=_0x4c0ed6['length'];}_0x4c0ed6=_0x55980b['slice'](0x0,_0x514f0b)['join']('')+_0x18770d,_0x4ae318=_0x310ebe;}else _0x4ae318+=_0x55980b['length'];}}_0x879b98[_0x4d34ce]=_0x4c0ed6;}return _0x879b98['join']('\x0a')['replace'](/\n/g,'');}function H(_0x2ff2a1){const _0x42d3b8=[];for(let _0x32a26=0x0;_0x32a26<_0x2ff2a1['length'];_0x32a26++){const _0x43230c=_0x2ff2a1['substring'](_0x32a26)['match'](/^&[a-z0-9#]+;/);if(_0x43230c){const _0xdae87f=_0x43230c[0x0];_0x42d3b8['push'](_0xdae87f),_0x32a26+=_0xdae87f['length']-0x1;}else _0x42d3b8['push'](_0x2ff2a1[_0x32a26]);}return _0x42d3b8;}class v extends _0x1983b2{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x101f6c){super(_0x101f6c);const _0x4a3b35=this['bindTemplate'];this['set']('message',U(_0x101f6c,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x101f6c,U(_0x101f6c,'Yes'),_0x5150e0,'submit'),this['cancelView']=this['_createButtonView'](_0x101f6c,U(_0x101f6c,'No'),_0x573f5b,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x150852(),this['keystrokes']=new _0x45b18e(),this['focusCycler']=new _0x1d0755({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x4a3b35['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x538f75,_0x28346f,_0x287349,_0x3eb214){const _0xfabe4c=new _0x1c7a18(_0x538f75);return _0xfabe4c['label']=_0x28346f,_0xfabe4c['icon']=_0x287349,_0xfabe4c['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x3eb214}}),_0xfabe4c['on']('execute',()=>this['fire'](_0x3eb214)),_0xfabe4c;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x53dfae=>{this['keystrokes']['listenTo'](_0x53dfae['element']),this['focusTracker']['add'](_0x53dfae['element']);}),this['keystrokes']['set']('esc',(_0x127a18,_0x4b4403)=>{this['fire']('cancel'),_0x4b4403();});}}function Pt(_0x58b5f7){return class extends _0x58b5f7{['showConfirm'](_0x3002ba,_0x54dfd0){return this['confirmView']=new v(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x3002ba,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x54dfd0['appendChild'](this['confirmView']['element']),_0x54dfd0['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x37dc5c,_0x2a1cea,_0x50a389)=>{_0x50a389||_0x54dfd0['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x461f6d=>this['confirmView']['on']('submit',_0x461f6d));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0x543dcf){let _0x1bdf12=0x0,_0xc03b2e=0x0;for(const _0x34aed5 of M(_0x543dcf))_0x1bdf12=(_0x1bdf12<<0x5)-_0x1bdf12+_0x34aed5,_0x1bdf12&=_0x1bdf12,[_0x1bdf12,_0xc03b2e]=[_0xc03b2e,_0x1bdf12];return F(_0x1bdf12)+F(_0xc03b2e);}function*O(_0x2608c7){null==_0x2608c7||null==_0x2608c7?yield 0x12b9b0a1:0x0===_0x2608c7||!0x1===_0x2608c7?yield 0x0:0x1===_0x2608c7||0x1==_0x2608c7?yield 0x1:Array['isArray'](_0x2608c7)?yield*function*(_0xcc3004){for(const _0x136485 of _0xcc3004)yield*O(_0x136485);}(_0x2608c7):'object'==typeof _0x2608c7?yield*M(_0x2608c7):'string'==typeof _0x2608c7?yield*q(_0x2608c7):'number'==typeof _0x2608c7&&(yield _0x2608c7);}function*M(_0x333e3b){if(yield z('{'),_0x333e3b){const _0x5a8d84=Object['keys'](_0x333e3b)['sort']();for(const _0x48a581 of _0x5a8d84){yield*q(_0x48a581),yield z(':');const _0xe24b50=_0x333e3b[_0x48a581];yield*O(_0xe24b50);}}yield z('}');}function*q(_0x51da06){yield z('\x22');for(const _0x25b2b6 of _0x51da06)yield z(_0x25b2b6);yield z('\x22');}function z(_0x4937fe){return _0x4937fe['charCodeAt'](0x0);}function F(_0x270d9c){return(_0x270d9c*=Math['sign'](_0x270d9c))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],S=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function G(_0x5d22ec,_0x507a6d,_0x450e15,_0xe219e3=[]){const _0x51bd01='string'==typeof _0x5d22ec?_0x450e15['get'](_0x5d22ec)['constructor']:_0x5d22ec['prototype']['constructor'];if(_0x507a6d['has'](_0x51bd01))return _0x507a6d['get'](_0x51bd01);_0x507a6d['set'](_0x51bd01,!0x0);const _0x2cc7ab=[...S,..._0xe219e3]['map'](_0x4104c1=>{if(_0x450e15['has'](_0x4104c1))return _0x450e15['get'](_0x4104c1)['constructor'];})['filter'](_0x37d89a=>_0x37d89a);if(_0x51bd01&&_0x2cc7ab['includes'](_0x51bd01))return _0x507a6d['set'](_0x51bd01,!0x1),!0x1;if(!_0x51bd01['requires'])return _0x507a6d['set'](_0x51bd01,!0x0),!0x0;const _0x164821=_0x51bd01['requires']['every'](_0x5c498f=>G(_0x5c498f,_0x507a6d,_0x450e15,_0xe219e3));return _0x507a6d['set'](_0x51bd01,_0x164821),_0x164821;}function Ot(_0x25be16,_0x229b5c){const _0x6e814={};for(const _0x48dd43 of _0x25be16['config']['names']())W['includes'](_0x48dd43)||(_0x6e814[_0x48dd43]=_0x25be16['config']['get'](_0x48dd43));const _0x2267cc=_0x6e814['plugins']||[],_0x2bc007=_0x25be16['constructor']['builtinPlugins']||[],_0x32193d=_0x2267cc['length']?_0x2267cc:_0x2bc007,_0x1293a3=_0x6e814['extraPlugins']||[];delete _0x6e814['extraPlugins'];const _0x5b0c7e=_0x6e814['removePlugins']||[];delete _0x6e814['removePlugins'];const _0x54f36d=_0x25be16['_context']['config']['get']('plugins')||[],_0x5873af=_0x32193d['concat'](_0x1293a3)['concat'](_0x54f36d)['map'](_0x1305dd=>'string'==typeof _0x1305dd?_0x2bc007['find'](_0x98963c=>_0x98963c['pluginName']==_0x1305dd):_0x1305dd)['filter'](_0x4035b5=>!_0x5b0c7e['includes'](_0x4035b5)&&!_0x5b0c7e['includes'](_0x4035b5['pluginName'])),_0x19aff7=Array['from'](new Set(_0x5873af)),_0xde2364=new Map();return _0x6e814['plugins']=_0x19aff7['filter'](_0x2822b4=>G(_0x2822b4,_0xde2364,_0x25be16['plugins'],_0x229b5c)),_0x6e814;}function Dt(_0x577b9c,_0xf3233a){const _0x36beea=[];_0x577b9c['document']['selection']['on']('change:range',()=>{const _0x424526=function(_0x93f700,_0x40a4d7){const _0x597f28=[];for(const _0x484981 of _0x93f700['markers']){const _0x55da14=_0x484981['getRange']();(_0x55da14['containsPosition'](_0x40a4d7)||_0x55da14['start']['isEqual'](_0x40a4d7)||_0x55da14['end']['isEqual'](_0x40a4d7))&&_0x597f28['push'](_0x484981);}return _0x597f28;}(_0x577b9c,_0x577b9c['document']['selection']['focus']),_0x5a84f7=[],_0x8a21f=[],_0x5c0247=[];for(const _0x379d4e of _0x36beea)_0x424526['includes'](_0x379d4e)||_0x5a84f7['push'](_0x379d4e);for(const _0x45ad8a of _0x424526)_0x36beea['includes'](_0x45ad8a)||_0x8a21f['push'](_0x45ad8a),_0x5c0247['push'](_0x45ad8a);(_0x5a84f7['length']||_0x8a21f['length'])&&_0xf3233a({'left':_0x5a84f7,'entered':_0x8a21f}),_0x36beea['length']=0x0,_0x36beea['push'](..._0x5c0247);});}const $t='Ctrl+Shift+E';function Vt(_0xa1490e,_0x374213){const _0x3b0aed=_0xa1490e['element'];_0xa1490e['keystrokes']['listenTo'](_0x3b0aed);for(const _0x4a2c33 of _0x374213)I(_0xa1490e,_0x4a2c33);_0x374213['on']('change',(_0x4b3b83,_0x4b2e17)=>{for(const _0x4d147b of _0x4b2e17['removed'])R(_0xa1490e,_0x4d147b);for(const _0x53e683 of Array['from'](_0x4b2e17['added'])['reverse']())I(_0xa1490e,_0x53e683);}),_0xa1490e['keystrokes']['set']('enter',(_0x38af35,_0x64cb86)=>{_0x3b0aed===_0x38af35['target']&&(_0xa1490e['focusCycler']['focusFirst'](),_0x64cb86());},{'filter':_0x537cb8=>_0x537cb8['target']===_0x3b0aed}),_0xa1490e['keystrokes']['set']('esc',(_0x41b60c,_0x7dc3b1)=>{_0x3b0aed!==_0x41b60c['target']?_0xa1490e['focus']():_0xa1490e['fire']('escape'),_0x7dc3b1();}),_0xa1490e['keystrokes']['set']('arrowdown',(_0x50d916,_0x4412c4)=>{_0x3b0aed===_0x50d916['target']&&(_0xa1490e['fire']('arrowdown'),_0x4412c4());}),_0xa1490e['keystrokes']['set']('arrowup',(_0x19da0d,_0x5e863d)=>{_0x3b0aed===_0x19da0d['target']&&(_0xa1490e['fire']('arrowup'),_0x5e863d());});}function I(_0x5b5a63,_0x3cc54a){_0x3cc54a['isRendered']&&(_0x5b5a63['focusTracker']['add'](_0x3cc54a['element']),_0x5b5a63['keystrokes']['listenTo'](_0x3cc54a['element']),_0x2c6c77(_0x3cc54a)&&function(_0x561619,_0x3ed068){const _0x13b916=_0x561619['actions'],_0x2c8553=_0x3ed068['actions'];for(const _0x55ccc3 of Object['keys'](_0x13b916))if(_0x55ccc3 in _0x2c8553&&_0x13b916[_0x55ccc3]!==_0x2c8553[_0x55ccc3])return!0x1;return!0x0;}(_0x5b5a63['focusCycler'],_0x3cc54a['focusCycler'])&&_0x5b5a63['focusCycler']['chain'](_0x3cc54a['focusCycler']));}function R(_0x218e84,_0x139eb7){_0x218e84['focusTracker']['remove'](_0x139eb7['element']),_0x218e84['keystrokes']['stopListening'](_0x139eb7['element']),_0x2c6c77(_0x139eb7)&&_0x218e84['focusCycler']['unchain'](_0x139eb7['focusCycler']);}const Lt='$elementId',Ut='data-id';class Ht extends _0x4d4aa4{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x269817?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x3cf4e3,_0x53e3ef)=>{_0x53e3ef['on']('ready',()=>{this['_integrateEditor'](_0x53e3ef);});});}get['editor'](){if(this['context']instanceof _0x269817)return this['context'];{const _0x5d06d0=this['context']['editors']['first'];if(!_0x5d06d0)throw new _0x174be2('documentcompare-no-editor',this);return _0x5d06d0;}}['getDiff'](_0x44ce2e,_0x4cd8e0,_0x341ffa={'anchor':'main','markDeletions':!0x1}){let _0x45cbd4,_0x4dc871;const _0x40de50=this['editor'];if('string'==typeof _0x341ffa['anchor']){const _0x2cb9a7=_0x40de50['model']['document']['getRoot'](_0x341ffa['anchor']);if(!_0x2cb9a7)throw new _0x174be2('documentcompare-compare-no-root',this,{'anchor':_0x341ffa['anchor']});_0x45cbd4=_0x2cb9a7,_0x4dc871=_0x40de50['model']['createPositionAt'](_0x2cb9a7,0x0);}else _0x45cbd4=_0x341ffa['anchor']['clone'](),_0x4dc871=_0x341ffa['anchor']['clone']();const _0x1e45db=_0x40de50['data']['parse'](_0x44ce2e,_0x45cbd4),_0xe54d6b=_0x40de50['data']['parse'](_0x4cd8e0,_0x45cbd4);return new Rt(_0x1e45db,_0xe54d6b,_0x40de50,{'anchor':_0x4dc871,'markDeletions':_0x341ffa['markDeletions']});}['isMarkedRemoveOperation'](_0x2be122){return'marker'==_0x2be122['type']&&_0x2be122['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x411b57){_0x411b57['conversion']['for']('upcast')['add'](_0x244f75=>{_0x244f75['on']('element',(_0x32589b,_0x3a0475,_0x4ecada)=>{if(_0x3a0475['modelRange'])for(const _0x1edd50 of _0x3a0475['modelRange']['getItems']({'shallow':!0x0})){if(_0x1edd50['is']('$textProxy'))continue;const _0x30da35=_0x3a0475['viewItem']['getAttribute'](Ut);_0x30da35&&_0x4ecada['writer']['setAttribute'](Lt,_0x30da35,_0x1edd50);}},{'priority':'lowest'});}),_0x411b57['model']['schema']['addAttributeCheck'](()=>!0x0,Lt);}}class Rt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x42989e,_0x517573,_0x57996b,_0x31147a){this['_editor']=_0x57996b,this['_markDeletions']=!!_0x31147a['markDeletions'],this['_anchor']=_0x31147a['anchor'];const _0x21911d=this['_tokenizeModel'](_0x42989e),_0x2d54ea=this['_tokenizeModel'](_0x517573);this['_diffItems']=this['_diffModelTokens'](_0x21911d,_0x2d54ea),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x42989e['markers'],_0x517573['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x2474ac=this['_editor']['model']['document'],_0x2d93a6=[];let _0x448e87=_0x2474ac['version'];for(const _0x32c9ba of this['_operationsData'])switch(_0x32c9ba['type']){case'attribute':{const _0x8beff1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']),_0x1c20b9=_0x8beff1['getShiftedBy'](_0x32c9ba['howMany']),_0xeb3f14=new _0x423d93(_0x8beff1,_0x1c20b9),_0x40d6b0=JSON['parse'](_0x32c9ba['oldValue']),_0x541ee4=JSON['parse'](_0x32c9ba['newValue']);_0x2d93a6['push'](new _0x351bc6(_0xeb3f14,_0x32c9ba['key'],_0x40d6b0,_0x541ee4,_0x448e87++));break;}case'insert':{const _0x267bf0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']),_0x2c6956=this['_makeModelFromTokens'](_0x32c9ba['tokens']);_0x2d93a6['push'](new _0x42c930(_0x267bf0,_0x2c6956,_0x448e87++));break;}case'remove':{const _0x49a9fa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']),_0x43e5ba=new _0x3e2e9c(_0x2474ac['graveyard'],[0x0]);_0x2d93a6['push'](new _0xfac5c3(_0x49a9fa,_0x32c9ba['howMany'],_0x43e5ba,_0x448e87++));break;}case'rename':{const _0x2dd79b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']);_0x2d93a6['push'](new _0x140e14(_0x2dd79b,_0x32c9ba['oldName'],_0x32c9ba['newName'],_0x448e87++));break;}case'split':{const _0x104e62=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']),_0x54ad6d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']['slice'](0x0,-0x1));_0x54ad6d['offset']++,_0x2d93a6['push'](new _0x4192f1(_0x104e62,Number['NEGATIVE_INFINITY'],_0x54ad6d,null,_0x448e87++));break;}case'merge':{const _0x357319=_0x32c9ba['path']['slice'](),_0x16554c=_0x357319['slice'](0x0,-0x1);_0x16554c[_0x16554c['length']-0x1]++,_0x16554c['push'](0x0);const _0x51a37d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x16554c),_0x4823e3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x357319),_0x17e8f9=new _0x3e2e9c(_0x2474ac['graveyard'],[0x0]);_0x2d93a6['push'](new _0x36aa7a(_0x51a37d,Number['NEGATIVE_INFINITY'],_0x4823e3,_0x17e8f9,_0x448e87++));break;}case'marker':case'markedRemove':{let _0x391d0f=null;if(_0x32c9ba['range']){const _0x5a39d7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['range']['start']),_0x36139c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['range']['end']);_0x391d0f=new _0x423d93(_0x5a39d7,_0x36139c);}const _0x47a48d='marker'==_0x32c9ba['type']?_0x32c9ba['name']:'$markedRemove:'+_0x3293c0();_0x2d93a6['push'](new _0x2d2db8(_0x47a48d,null,_0x391d0f,_0x2474ac['model']['markers'],!0x0,_0x448e87++));break;}case'unwrap':{const _0x41ce20=_0x32c9ba['path']['slice']();_0x41ce20['push'](0x0);const _0x4c2a2a=_0x32c9ba['path']['slice'](),_0x3ab50d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x41ce20),_0x47b7c4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4c2a2a),_0x5df82d=new _0x3e2e9c(_0x2474ac['graveyard'],[0x0]);_0x2d93a6['push'](new _0xfac5c3(_0x3ab50d,_0x32c9ba['howMany'],_0x47b7c4,_0x448e87++)),_0x2d93a6['push'](new _0xfac5c3(_0x47b7c4['getShiftedBy'](_0x32c9ba['howMany']),0x1,_0x5df82d,_0x448e87++));break;}case'wrap':{const _0x2cb0a5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['range']['start']),_0x4534ea=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['range']['end']),_0x2449b5=_0x32c9ba['token']['element']['_clone'](!0x1),_0xf296a6=_0x32c9ba['range']['end']['slice']();_0xf296a6['push'](0x0);const _0x5dfab5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf296a6);_0x2d93a6['push'](new _0x42c930(_0x4534ea,_0x2449b5,_0x448e87++)),_0x2d93a6['push'](new _0xfac5c3(_0x2cb0a5,_0x4534ea['offset']-_0x2cb0a5['offset'],_0x5dfab5,_0x448e87++));break;}}return _0x2d93a6;}['_tokenizeModel'](_0x10bbe3){const _0x47d288=[],_0x2e17dc=_0x423d93['_createIn'](_0x10bbe3),_0x15b550=new _0x1125a0({'boundaries':_0x2e17dc});let _0x998264='',_0x323d33=null;const _0x50ffb3=[''],_0x271ad2=new Map();for(const _0xb8d3c of _0x15b550)if('elementStart'==_0xb8d3c['type']||'elementEnd'==_0xb8d3c['type']){let _0x5caf9b=_0x50ffb3[0x0];''!==_0x998264&&(_0x47d288['push'](...this['_makeTokensFromTextByWords'](_0x998264,_0x323d33,_0x5caf9b)),_0x998264='');const _0x39b58b=_0xb8d3c['item'];let _0x5b31d7;_0x39b58b['getAttribute'](Lt)?_0x5b31d7=_0x39b58b['getAttribute'](Lt):'elementStart'==_0xb8d3c['type']?(_0x5b31d7=_(_0x39b58b),_0x271ad2['set'](_0x39b58b,_0x5b31d7)):_0x5b31d7=_0x271ad2['get'](_0x39b58b);const _0x3ab384=this['_getElementCategory'](_0x39b58b);'solid'==_0x3ab384&&('elementStart'==_0xb8d3c['type']?(_0x5caf9b=_0x5b31d7,_0x50ffb3['unshift'](_0x5caf9b)):_0x50ffb3['shift']());const _0x3bf4fb={'type':'element','element':_0x39b58b,'elementId':_0x5b31d7,'category':_0x3ab384,'isStart':'elementStart'==_0xb8d3c['type'],'limitId':_0x5caf9b};_0x47d288['push'](_0x3bf4fb);}else''==_0x998264&&(_0x323d33=_0xb8d3c['previousPosition']['clone']()),_0x998264+=_0xb8d3c['item']['data'];return''!==_0x998264&&_0x47d288['push'](...this['_makeTokensFromTextByWords'](_0x998264,_0x323d33,_0x50ffb3[0x0])),_0x47d288;}['_makeTokensFromTextByWords'](_0x302a45,_0x508bb6,_0x3fc445){const _0x1db6b1=_0x302a45['matchAll'](/(\s)/g),_0x495cf7=Array['from'](_0x1db6b1)['map'](_0x280e78=>_0x280e78['index']);_0x495cf7['push'](_0x302a45['length']),0x0==_0x495cf7[0x0]&&_0x495cf7['shift']();const _0x57b012=[],_0x407709=_0x508bb6['parent'];let _0x342f4f=0x0,_0x658d80=_0x508bb6['offset'];for(let _0x20c62a=0x0;_0x20c62a<_0x495cf7['length'];_0x20c62a++)_0x57b012['push']({'type':'text','data':_0x302a45['slice'](_0x342f4f,_0x495cf7[_0x20c62a]),'parent':_0x407709,'offset':_0x658d80,'limitId':_0x3fc445}),_0x342f4f=_0x495cf7[_0x20c62a],_0x658d80=_0x508bb6['offset']+_0x495cf7[_0x20c62a];return _0x57b012;}['_getElementCategory'](_0x5ed363){const _0xdfc76=this['_editor']['model']['schema'];return _0xdfc76['isLimit'](_0x5ed363)||_0xdfc76['isContent'](_0x5ed363)||_0xdfc76['isInline'](_0x5ed363)?'solid':_0xdfc76['isBlock'](_0x5ed363)?'block':'container';}['_diffModelTokens'](_0x5ac4c8,_0x1d6e6d){const _0xb264c3=_0x10ae8a(_0x5ac4c8,_0x1d6e6d,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0xb264c3);const _0x429e1c=_0xb264c3['flatMap'](_0xfa077=>{const _0x26cacd=_0xfa077['added']?'added':_0xfa077['removed']?'removed':'unchanged';return _0xfa077['value']['map'](_0x4a3377=>({'token':_0x4a3377,'change':_0x26cacd}));});let _0x1a48fa=0x0;for(const _0x32edaf of _0x429e1c)'added'!=_0x32edaf['change']&&('unchanged'==_0x32edaf['change']&&(_0x32edaf['before']=_0x5ac4c8[_0x1a48fa]),_0x1a48fa++);return _0x429e1c;}['_handleUnclosedBlockOpeningTags'](_0x579e68){for(let _0x195ae1=0x0;_0x195ae1<_0x579e68['length']-0x1;_0x195ae1++)if(_0x579e68[_0x195ae1]['removed']&&_0x579e68[_0x195ae1+0x1]['added']){const _0x10aa3e=this['_findUnclosedBlockOpeningToken'](_0x579e68[_0x195ae1]['value']);if(null!==_0x10aa3e){const _0x29a431=this['_findUnclosedBlockOpeningToken'](_0x579e68[_0x195ae1+0x1]['value']),_0x496374=_0x579e68[_0x195ae1]['value']['splice'](_0x10aa3e),_0x313afb=_0x579e68[_0x195ae1+0x1]['value']['splice'](_0x29a431),_0x1023e6=[_0x313afb['shift']()];_0x496374['shift']();const _0x154326={'value':_0x496374,'removed':!0x0},_0x167814={'value':_0x313afb,'added':!0x0},_0x1b97f0={'value':_0x1023e6};_0x579e68['splice'](_0x195ae1+0x2,0x0,_0x1b97f0,_0x154326,_0x167814);}}}['_findUnclosedBlockOpeningToken'](_0x290e55){let _0x425694=0x0,_0x2da653=-0x1;for(let _0x4c0bfa=0x0;_0x4c0bfa<_0x290e55['length'];_0x4c0bfa++){const _0x43be4d=_0x290e55[_0x4c0bfa];'element'==_0x43be4d['type']&&'block'==_0x43be4d['category']&&(_0x425694+=_0x43be4d['isStart']?0x1:-0x1,_0x43be4d['isStart']&&(_0x2da653=_0x4c0bfa));}return 0x0===_0x425694?null:_0x2da653;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x2c9c8d=0x0;_0x2c9c8d<this['_diffItems']['length'];_0x2c9c8d++){const _0x337066=this['_diffItems'][_0x2c9c8d]['change'],_0x1b6650=[];_0x1b6650['push'](this['_diffItems'][_0x2c9c8d]);let _0x230bca=_0x2c9c8d+0x1;for(;this['_diffItems'][_0x230bca]&&this['_diffItems'][_0x230bca]['change']==_0x337066;)_0x1b6650['push'](this['_diffItems'][_0x230bca]),_0x230bca++,_0x2c9c8d++;const _0x1cce5a=_0x1b6650['map'](_0x599cb1=>_0x599cb1['token']);if('unchanged'==_0x337066)_0x1b6650['map'](_0x3195e7=>_0x3195e7['before'])['forEach'](_0x3103a5=>this['_traverseOverItem'](_0x3103a5));else{if('removed'==_0x337066){if(this['_markDeletions']){const _0x1b54db=this['_path']['slice']();_0x1cce5a['forEach'](_0x4641b6=>this['_traverseOverItem'](_0x4641b6));const _0x5401b5=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x1b54db,'end':_0x5401b5}});}else this['_handleChanged'](_0x1cce5a,!0x0,this['_path']['slice']());}else{const _0x5020bf=_0x1cce5a['filter'](_0x31e8fa=>'element'!=_0x31e8fa['type']||'container'!=_0x31e8fa['category']);this['_handleChanged'](_0x5020bf,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x2fd375=0x0;_0x2fd375<this['_diffItems']['length'];_0x2fd375++){const _0x437be8=this['_diffItems'][_0x2fd375]['change'],_0x3aea9a=[];_0x3aea9a['push'](this['_diffItems'][_0x2fd375]);let _0x203110=_0x2fd375+0x1;for(;this['_diffItems'][_0x203110]&&this['_diffItems'][_0x203110]['change']==_0x437be8;)_0x3aea9a['push'](this['_diffItems'][_0x203110]),_0x203110++,_0x2fd375++;const _0x3b5e8d=_0x3aea9a['map'](_0x40b5cb=>_0x40b5cb['token']);if('unchanged'==_0x437be8){const _0x13f160=_0x3aea9a['map'](_0x5a7c2a=>_0x5a7c2a['before']);this['_handleUnchanged'](_0x13f160,_0x3b5e8d);}else('removed'!=_0x437be8||this['_markDeletions'])&&_0x3b5e8d['forEach'](_0x3a0fd7=>{this['_traverseOverItem'](_0x3a0fd7);});}}['_calculateMarkersOperationsData'](_0x2a9a69,_0x248c85){const _0x2fa2aa={};for(const [_0x73cbe8]of _0x2a9a69)_0x2fa2aa[_0x73cbe8]=null;for(const [_0x38aad9,_0x162cbb]of _0x248c85)_0x2fa2aa[_0x38aad9]=_0x162cbb;const _0xd09245=Object['entries'](_0x2fa2aa)['map'](([_0x55fc28,_0x394f6f])=>({'type':'marker','name':_0x55fc28,'range':_0x394f6f?{'start':_0x394f6f['start']['path']['slice'](),'end':_0x394f6f['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xd09245);}['_handleUnwraps'](){const _0x27bb73=new Map(),_0x234a21=[],_0x4d48ea=[0x0];let _0x47c3b2=this['_diffItems']['length']+0x1;for(let _0x1d8cfa=this['_diffItems']['length']-0x1;_0x1d8cfa>=0x0;_0x1d8cfa--){const {token:_0x234284,before:_0x3ad4d1,change:_0x186f5c}=this['_diffItems'][_0x1d8cfa];if('removed'!=_0x186f5c&&(_0x47c3b2=_0x1d8cfa),'element'!=_0x234284['type']||'container'!=_0x234284['category']||'added'==_0x186f5c)continue;const _0x129796=_0x3ad4d1?_0x3ad4d1['element']:_0x234284['element'];if(_0x234284['isStart']){const _0x2b6003=_0x27bb73['get'](_0x129796),_0x39c9be=this['_diffItems'][_0x2b6003];('removed'==_0x186f5c||'removed'==_0x39c9be['change'])&&_0x47c3b2<_0x2b6003&&(this['_operationsData']['push']({'type':'unwrap','path':_0x129796['getPath'](),'howMany':_0x129796['maxOffset']+_0x4d48ea[0x0]}),_0x4d48ea['shift'](),_0x4d48ea[0x0]+=_0x129796['maxOffset']-0x1,_0x234a21['push'](_0x1d8cfa),_0x234a21['push'](_0x2b6003));}else _0x27bb73['set'](_0x129796,_0x1d8cfa),_0x4d48ea['unshift'](0x0);}_0x234a21['sort']((_0x4ee2f8,_0x211bcf)=>_0x211bcf-_0x4ee2f8),_0x234a21['forEach'](_0x283dd7=>{const _0x51e066=this['_diffItems'][_0x283dd7];'removed'==_0x51e066['change']?this['_diffItems']['splice'](_0x283dd7,0x1):(_0x51e066['change']='added',delete _0x51e066['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5d716c=[];for(let _0x1b245c=0x0;_0x1b245c<this['_diffItems']['length'];_0x1b245c++){const {change:_0x408db2,token:_0x2410ba}=this['_diffItems'][_0x1b245c];if('added'==_0x408db2&&'element'==_0x2410ba['type']&&'container'==_0x2410ba['category']){if(_0x2410ba['isStart'])_0x5d716c['push'](this['_path']['slice']());else{if(!_0x2410ba['isStart']){const _0x385c87=_0x5d716c['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x385c87,'end':this['_path']['slice']()},'token':_0x2410ba}),this['_path'][this['_path']['length']-0x1]=_0x385c87[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x408db2||this['_markDeletions'])&&this['_traverseOverItem'](_0x2410ba);}}['_handleUnchanged'](_0x4816a4,_0x51795d){for(let _0x13ab7d=0x0;_0x13ab7d<_0x4816a4['length'];_0x13ab7d++){const _0x181cd1=_0x4816a4[_0x13ab7d];if('element'==_0x181cd1['type']&&_0x181cd1['isStart']){const _0x3c3332=_0x51795d[_0x13ab7d];'block'==_0x181cd1['category']&&this['_handleElementRename'](_0x181cd1['element'],_0x3c3332['element'],this['_path']),this['_handleElementAttributeChanges'](_0x181cd1['element'],_0x3c3332['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x3c3332);}else{if('element'!=_0x181cd1['type']||_0x181cd1['isStart']){if('text'==_0x181cd1['type']){const _0x2aed2a=this['_path']['slice'](),_0x11d89a=[],_0x31da21=[];for(;_0x4816a4[_0x13ab7d]&&'text'==_0x4816a4[_0x13ab7d]['type'];)_0x11d89a['push'](_0x4816a4[_0x13ab7d]),_0x31da21['push'](_0x51795d[_0x13ab7d]),this['_path'][this['_path']['length']-0x1]+=_0x4816a4[_0x13ab7d]['data']['length'],_0x13ab7d++;_0x13ab7d--,this['_handleTextAttributeChanges'](_0x11d89a,_0x31da21,_0x2aed2a);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x1b34f6,_0x2d7070,_0x18ff76){const _0x78485=[],_0x3e960b=[],_0xd40aa5=_0x18ff76['slice']();for(let _0x47687b=0x0;_0x47687b<_0x1b34f6['length'];_0x47687b++){const _0x10a6c3=_0x1b34f6[_0x47687b],_0x3aec88=_0x18ff76['slice']();if('element'!=_0x10a6c3['type']||_0x10a6c3['isStart'])'element'==_0x10a6c3['type']&&_0x10a6c3['isStart']?(_0x18ff76['push'](0x0),_0x2d7070||this['_parents']['push'](_0x10a6c3),_0x3e960b['push']({'before':_0x3aec88,'after':_0x18ff76['slice'](),'index':_0x47687b})):_0x18ff76[_0x18ff76['length']-0x1]+=_0x10a6c3['data']['length'];else{let _0x47f315;_0x18ff76['pop'](),_0x18ff76[_0x18ff76['length']-0x1]++,_0x47f315=_0x2d7070?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x3e960b['length']?_0x3e960b['pop']():_0x78485['push']({'before':_0x3aec88,'after':_0x18ff76['slice'](),'index':_0x47687b,'related':_0x47f315});}}if(_0x3e960b['length']!==_0x78485['length'])throw new _0x174be2('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x1b34f6,'isRemove':_0x2d7070});const _0x4db04b=[{'after':_0xd40aa5['slice'](),'index':-0x1},..._0x78485,..._0x3e960b,{'before':_0x18ff76['slice'](),'index':_0x1b34f6['length']}];if(_0x2d7070){for(let _0x9a0e32=_0x4db04b['length']-0x1;_0x9a0e32>=0x1;_0x9a0e32--){const _0x52f6bb=_0x4db04b[_0x9a0e32-0x1]['after'],_0x50f41f=_0x4db04b[_0x9a0e32]['before'],_0xc987ba=_0x50f41f[_0x50f41f['length']-0x1]-_0x52f6bb[_0x52f6bb['length']-0x1];_0xc987ba&&(this['_operationsData']['push']({'type':'remove','path':_0x52f6bb,'howMany':_0xc987ba}),_0x50f41f[_0x50f41f['length']-0x1]-=_0xc987ba);}for(const {before:_0x291e52}of _0x78485)this['_operationsData']['push']({'type':'merge','path':_0x291e52});}else for(let _0xf2e264=0x0;_0xf2e264<_0x4db04b['length']-0x1;_0xf2e264++){const _0x14eb7b=_0x4db04b[_0xf2e264]['after'],_0x10f491=_0x4db04b[_0xf2e264+0x1]['before'],_0x131ee7=_0x4db04b[_0xf2e264]['index']+0x1,_0x30b76e=_0x4db04b[_0xf2e264+0x1]['index'];if(_0x131ee7!==_0x30b76e&&this['_operationsData']['push']({'type':'insert','path':_0x14eb7b,'tokens':_0x1b34f6['slice'](_0x131ee7,_0x30b76e)}),_0xf2e264<_0x78485['length']){this['_operationsData']['push']({'type':'split','path':_0x10f491});const _0x535c10=_0x1b34f6[_0x3e960b[_0x3e960b['length']-0x1-_0xf2e264]['index']],_0x4efdb9=_0x78485[_0xf2e264]['after'],_0x495723=_0x78485[_0xf2e264]['related']['element'];this['_handleElementRename'](_0x495723,_0x535c10['element'],_0x4efdb9),this['_handleElementAttributeChanges'](_0x495723,_0x535c10['element'],_0x4efdb9);}}}['_traverseOverItem'](_0x2ed9e1){'element'==_0x2ed9e1['type']&&_0x2ed9e1['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x2ed9e1)):'element'!=_0x2ed9e1['type']||_0x2ed9e1['isStart']?'text'==_0x2ed9e1['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x2ed9e1['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x265e11,_0x16a803,_0x6c9731){_0x265e11['name']!=_0x16a803['name']&&this['_operationsData']['push']({'type':'rename','path':_0x6c9731['slice'](),'oldName':_0x265e11['name'],'newName':_0x16a803['name']});}['_handleElementAttributeChanges'](_0x27d652,_0x2a7766,_0x24e95e){const _0x39a3f5=this['_getAttributeChanges'](_0x27d652['getAttributes'](),_0x2a7766['getAttributes']());for(const _0x2cf443 in _0x39a3f5){const {oldValue:_0x1f3ea8,newValue:_0x22a60e}=_0x39a3f5[_0x2cf443];this['_operationsData']['push']({'type':'attribute','path':_0x24e95e['slice'](),'howMany':0x1,'key':_0x2cf443,'oldValue':_0x1f3ea8,'newValue':_0x22a60e});}}['_handleTextAttributeChanges'](_0x5ec27e,_0x111284,_0x5c8daa){const _0x3df662=this['_operationsData'],_0x5e9fb6=_0x5ec27e[0x0]['parent'],_0x4f6606=_0x5ec27e[0x0]['offset'],_0x359631=_0x111284[0x0]['parent'],_0x59a8ea=_0x111284[0x0]['offset'],_0x106ab3=_0x5ec27e['reduce']((_0x141d5e,_0x2afe06)=>_0x141d5e+_0x2afe06['data']['length'],0x0),_0x399345=this['_getAttrsForOffsets'](_0x5e9fb6,_0x4f6606,_0x106ab3),_0x2f02f6=this['_getAttrsForOffsets'](_0x359631,_0x59a8ea,_0x106ab3),_0x3ef57c={};for(let _0x1eb721=0x0;_0x1eb721<_0x106ab3;_0x1eb721++){const _0x358566=_0x399345[_0x4f6606+_0x1eb721],_0x5ac389=_0x2f02f6[_0x59a8ea+_0x1eb721],_0x25d8ed=this['_getAttributeChanges'](_0x358566,_0x5ac389);for(const _0x2e4ca2 in _0x3ef57c)_0x25d8ed[_0x2e4ca2]||_0x153add(_0x2e4ca2);for(const _0x37b39b in _0x25d8ed){const {oldValue:_0x1abec1,newValue:_0x28a7aa}=_0x25d8ed[_0x37b39b],_0x3d8164=_0x3ef57c[_0x37b39b];_0x3d8164?_0x3d8164['oldValue']==_0x1abec1&&_0x3d8164['newValue']==_0x28a7aa?_0x3d8164['length']++:(_0x153add(_0x37b39b),_0x3ef57c[_0x37b39b]={'oldValue':_0x1abec1,'newValue':_0x28a7aa,'start':_0x1eb721,'length':0x1}):_0x3ef57c[_0x37b39b]={'oldValue':_0x1abec1,'newValue':_0x28a7aa,'start':_0x1eb721,'length':0x1};}}for(const _0x31a43f in _0x3ef57c)_0x153add(_0x31a43f);function _0x153add(_0x2698bd){const _0x4c5776=_0x3ef57c[_0x2698bd],_0x253a1f=_0x5c8daa['slice']();_0x253a1f[_0x253a1f['length']-0x1]+=_0x4c5776['start'],_0x3df662['push']({'type':'attribute','path':_0x253a1f,'howMany':_0x4c5776['length'],'key':_0x2698bd,'oldValue':_0x4c5776['oldValue'],'newValue':_0x4c5776['newValue']}),delete _0x3ef57c[_0x2698bd];}}['_getAttributeChanges'](_0x3e98c3,_0x567eb2){const _0x4fb26e={};for(const [_0x47bec8,_0x136873]of _0x3e98c3)_0x4fb26e[_0x47bec8]={'oldValue':JSON['stringify'](_0x136873),'newValue':'null'};for(const [_0x3b5fdd,_0x5a1148]of _0x567eb2){const _0xd978e9=JSON['stringify'](_0x5a1148);_0x4fb26e[_0x3b5fdd]?_0x4fb26e[_0x3b5fdd]['oldValue']==_0xd978e9?delete _0x4fb26e[_0x3b5fdd]:_0x4fb26e[_0x3b5fdd]['newValue']=_0xd978e9:_0x4fb26e[_0x3b5fdd]={'oldValue':'null','newValue':_0xd978e9};}return delete _0x4fb26e[Lt],_0x4fb26e;}['_getAttrsForOffsets'](_0x5ab957,_0x1efc3f,_0x13b9cd){const _0x2808c3=new Array(_0x1efc3f+_0x13b9cd);let _0x5064ab=_0x5ab957['getChildAtOffset'](_0x1efc3f),_0x1706de=_0x5064ab['startOffset'];for(;_0x5064ab&&_0x1706de<_0x1efc3f+_0x13b9cd;){const _0x14900d=Array['from'](_0x5064ab['getAttributes']());_0x2808c3['fill'](_0x14900d,_0x1706de,_0x1706de+_0x5064ab['offsetSize']),_0x1706de+=_0x5064ab['offsetSize'],_0x5064ab=_0x5064ab['nextSibling'];}return _0x2808c3;}['_getPositionFromAnchorAndPath'](_0x2ab56c,_0x24cb3c){const _0x3344f4=[..._0x2ab56c['path']['slice'](0x0,-0x1),_0x2ab56c['offset']+_0x24cb3c[0x0],..._0x24cb3c['slice'](0x1)];return new _0x3e2e9c(_0x2ab56c['root'],_0x3344f4);}['_makeModelFromTokens'](_0x1610d0){const _0x213dff=[];let _0x5df4b3=null;for(const _0x2bcbd4 of _0x1610d0)if('element'!=_0x2bcbd4['type']||_0x2bcbd4['isStart']||_0x5df4b3!=_0x2bcbd4['element']){if(!_0x5df4b3){if('text'==_0x2bcbd4['type']){const _0x5be102=_0x3e2e9c['_createAt'](_0x2bcbd4['parent'],_0x2bcbd4['offset']),_0x8844bc=_0x423d93['_createFromPositionAndShift'](_0x5be102,_0x2bcbd4['data']['length']),_0x3dd9f0=Array['from'](_0x8844bc['getItems']())['map'](_0x512f7e=>new _0x4717b5(_0x512f7e['data'],_0x512f7e['getAttributes']()));_0x213dff['push'](..._0x3dd9f0);}else{_0x5df4b3=_0x2bcbd4['element'];const _0x335668=_0x2bcbd4['element']['_clone'](!0x0);_0x335668['_removeAttribute'](Lt);for(const _0x522fad of this['_editor']['model']['createRangeIn'](_0x335668)['getItems']())_0x522fad['is']('element')&&_0x522fad['_removeAttribute'](Lt);_0x213dff['push'](_0x335668);}}}else _0x5df4b3=null;return _0x213dff;}}function g(_0x4ecfb5,_0x361dd6){return _0x4ecfb5['type']===_0x361dd6['type']&&(_0x4ecfb5['limitId']===_0x361dd6['limitId']&&('text'==_0x4ecfb5['type']?_0x4ecfb5['data']==_0x361dd6['data']:function(_0x485d05,_0x49963b){if(_0x485d05['isStart']!=_0x49963b['isStart'])return!0x1;if(_0x485d05['isStart']&&_0x485d05['elementId']!=_0x49963b['elementId'])return!0x1;if(_0x485d05['category']!=_0x49963b['category'])return!0x1;if('block'==_0x485d05['category'])return!0x0;if('container'==_0x485d05['category']&&_0x485d05['elementId']!=_0x49963b['elementId'])return!0x1;return _0x485d05['element']['name']==_0x49963b['element']['name'];}(_0x4ecfb5,_0x361dd6)));}function _(_0x7a5d95){return k({'name':_0x7a5d95['name'],...Object['fromEntries'](_0x7a5d95['getAttributes']())});}export{xt as AriaDescriptionView,Pt as ConfirmMixin,Lt as DATA_ID_MODEL_ATTRIBUTE,Ut as DATA_ID_VIEW_ATTRIBUTE,Ht as DocumentCompare,$t as FOCUS_ANNOTATION_KEYSTROKE,It as LateFocusButtonView,St as LateFocusDropdownButtonView,C as Permissions,At as SuggestionsConversion,Ct as UserView,yt as Users,Et as fixElementSuggestionRange,Nt as getAllMarkersDomElementsSorted,Mt as getDateTimeFormatter,Tt as getMarkerDomElement,k as hashObject,Ot as sanitizeEditorConfig,Vt as setupThreadKeyboardNavigation,J as splitSuggestionMarkerName,Dt as surroundingMarkersDetector,Bt as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0x503c27,Editor as _0x220e61,Plugin as _0x24b01f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5e43ee,Collection as _0x2caf8f,uid as _0x59988c,toArray as rt,first as _0x5e5e0d,FocusTracker as ts,KeystrokeHandler as _0x4d8956}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0xf8b808,IconView as st,ButtonView as _0x51bd3a,DropdownButtonView as _0x33ee53,FocusCycler as _0x28faee,isViewWithFocusCycler as _0x2e35be}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0x448b9e,IconCancel as _0xc81095}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0x32a348}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x1e67d8,MoveOperation as _0x1d1d8d,ModelPosition as _0x38ac5c,ModelRange as _0x2ece87,MarkerOperation as _0x1fa860,MergeOperation as _0x1fa071,SplitOperation as _0x3e5e7d,RenameOperation as _0x4ebc8a,AttributeOperation as _0x1d0e28,ModelTreeWalker as _0x5d0b0b,ModelText as _0x559acd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x3399c5}from'diff';class C extends _0x503c27{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x5c0e89,_0x304322){let _0x459fe1;if(_0x304322||(_0x304322=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x304322?_0x459fe1=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x459fe1=this['context']['editors']['find'](_0x4a884a=>_0x4a884a['config']['get']('collaboration.channelId')==_0x304322)),!_0x459fe1)throw new _0x5e43ee('permissions-set-permissions-invalid-channel-id',null);const _0x133ba7=_0x459fe1['plugins'],_0x1900d4=_0x133ba7['has']('CommentsRepository')?_0x133ba7['get']('CommentsRepository'):void 0x0,_0x3a2bb5=_0x133ba7['has']('CommentsOnly')&&_0x133ba7['get']('CommentsOnly'),_0x2dcb3a=_0x5c0e89['includes']('document:write'),_0x3f847e=_0x5c0e89['includes']('comment:modify_all'),_0x124302=_0x5c0e89['includes']('comment:admin'),_0x3619ee=_0x5c0e89['includes']('comment:write'),_0x116492=_0x3619ee||_0x124302,_0x5a6f95=_0x116492||_0x3f847e,_0x1123c3=_0x2dcb3a||_0x116492;(_0x3a2bb5&&(_0x3a2bb5['isEnabled']=!_0x2dcb3a&&_0x5a6f95),_0x459fe1 instanceof _0x220e61)&&(!(_0x2dcb3a||_0x5a6f95&&_0x1900d4)?_0x459fe1['enableReadOnlyMode']('no-permissions'):_0x459fe1['disableReadOnlyMode']('no-permissions'));if(_0x1900d4){_0x1900d4['setPermissions']({'admin':_0x124302,'modifyAll':_0x3f847e,'write':_0x3619ee,'resolve':_0x1123c3},_0x304322);const _0x26cdb1=_0x459fe1 instanceof _0x220e61&&_0x459fe1['commands']['get']('addCommentThread');_0x26cdb1&&(_0x116492?_0x26cdb1['clearForceDisabled']('noPermissions'):_0x26cdb1['forceDisabled']('noPermissions'));}}}function U(_0x560467,_0x3640e7){const t=_0x560467['t'];switch(_0x3640e7){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class at extends _0x503c27{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x3f2d32){super(_0x3f2d32),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x2caf8f(),this['_locale']=_0x3f2d32['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x1205dc,name:_0x50fef9,..._0x32d07c}){if(!_0x1205dc||'string'!=typeof _0x1205dc)throw new _0x5e43ee('users-add-invalid-id');if(this['users']['has'](_0x1205dc))throw new _0x5e43ee('users-add-duplicated-id',null,{'id':_0x1205dc});const _0xac3d46=this['context']['config']['get']('users.getInitialsCallback'),_0x1bda13={..._0x32d07c,'id':_0x1205dc,'name':A(this['_locale'],_0x50fef9),'color':this['_getNextColor']()};_0x1bda13['name']=A(this['_locale'],_0x1bda13['name']);const _0x301f78=new lt(_0x1bda13,_0xac3d46);return this['users']['add'](_0x301f78),_0x301f78;}['getUser'](_0x5dc75b){return this['users']['get'](_0x5dc75b);}['useAnonymousUser'](){const _0x538cd5=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x538cd5);}['defineMe'](_0x5065dc){if(this['_myId'])throw new _0x5e43ee('users-me-already-defined',null);const _0x4c9782=this['getUser'](_0x5065dc);if(!_0x4c9782)throw new _0x5e43ee('users-me-missing-user',null);this['_myId']=_0x5065dc,_0x4c9782['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x5b1aa9=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x5b1aa9&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x3ac1e6=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3ac1e6,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x2abe2a,_0x3e227a){this['id']=_0x2abe2a['id'],this['color']=_0x2abe2a['color'],this['name']=_0x2abe2a['name'],this['initials']=_0x3e227a?_0x3e227a(this['name']):this['_computeInitials'](),this['avatar']=_0x2abe2a['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5a7be8=this['name']['split']('\x20')['filter'](_0x4b4a66=>/^[\p{Letter}]/u['test'](_0x4b4a66));return 0x1===_0x5a7be8['length']?this['_getInitial'](_0x5a7be8[0x0]):0x0===_0x5a7be8['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5a7be8[0x0])+this['_getInitial'](_0x5a7be8[_0x5a7be8['length']-0x1]);}['_getInitial'](_0x282720){return String['fromCodePoint'](_0x282720['codePointAt'](0x0))['toUpperCase']();}}function A(_0x4f29ac,_0x1a5ca9=''){return''==(_0x1a5ca9=_0x1a5ca9['trim']())?U(_0x4f29ac,'Anonymous'):_0x1a5ca9;}class ut{['_id'];constructor(_0x4e64d2){this['_id']=_0x4e64d2;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class ht extends _0xf8b808{['name'];['notificationView'];constructor(_0x573036,_0x56f97f,_0x6ab287){super(_0x573036),this['name']=_0x56f97f['name'],this['notificationView']=null;const _0x449eae=['ck','ck-user'],_0x57e933=['ck','ck-user__img'];if(_0x56f97f['isAnonymous']&&_0x57e933['push']('ck-user__anonymous'),!_0x56f97f['isAnonymous']&&_0x56f97f['isMe']&&_0x449eae['push']('ck-user_me'),_0x56f97f['avatar']&&_0x57e933['push']('ck-user__avatar'),_0x6ab287){const _0x4783ce=new st();_0x4783ce['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4783ce['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x6ab287},'children':[_0x4783ce]};}const _0x3ceeb2=[{'tag':'div','attributes':{'class':_0x57e933,'style':{'background-image':_0x56f97f['avatar']?'url(\x27'+_0x56f97f['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x56f97f['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x56f97f['name']},'children':[{'text':_0x56f97f['initials']}]}];this['notificationView']&&_0x3ceeb2['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x449eae,'data-user-id':_0x56f97f['id']},'children':_0x3ceeb2});}}class dt extends _0xf8b808{['id'];constructor(_0x370ba9,_0x211f6d){super(_0x370ba9),this['id']='ck-aria-description-'+_0x59988c(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x211f6d}]});}}class ft extends _0x51bd3a{['render'](){super['render'](),re(this);}}class gt extends _0x33ee53{['render'](){super['render'](),re(this);}}function re(_0x111ef6){_0x111ef6['listenTo'](_0x111ef6['element'],'mousedown',(_0x5d6be4,_0x3452d6)=>{_0x3452d6['stopPropagation'](),_0x3452d6['preventDefault']();}),_0x111ef6['listenTo'](_0x111ef6['element'],'mouseup',()=>{_0x111ef6['element']['focus']();});}function v(_0x4c7168){const _0x266c76=_0x4c7168['split'](':');return{'group':_0x266c76[0x0],'type':_0x266c76[0x1],'subType':_0x266c76['length']>=0x5?_0x266c76[0x2]:null,'id':_0x266c76['length']<0x5?_0x266c76[0x2]:_0x266c76[0x3],'authorId':_0x266c76['length']<0x5?_0x266c76[0x3]:_0x266c76[0x4],'markerCount':0x6==_0x266c76['length']?_0x266c76[0x5]:null};}function mt(_0x19c51d,_0x2e8316){const _0x45c7bb=_0x19c51d['end']['nodeBefore'];if(_0x45c7bb&&_0x45c7bb['is']('element')&&_0x2e8316['schema']['isBlock'](_0x45c7bb)&&!_0x2e8316['schema']['isObject'](_0x45c7bb)){const _0x4a732e=_0x2e8316['createPositionAt'](_0x45c7bb,'end');return _0x2e8316['createRange'](_0x19c51d['start'],_0x4a732e);}return _0x19c51d;}class M extends _0x24b01f{['afterInit'](){const _0x52bf51=this['editor'];if(!_0x52bf51['plugins']['has']('AlignmentEditing'))return;_0x52bf51['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x24b01f{['afterInit'](){const _0x5b098c=this['editor'],_0x3ae328=_0x5b098c['plugins']['get']('SuggestionsConversion');for(const _0x15be40 of ii){if(!_0x5b098c['plugins']['has'](_0x15be40))continue;const _0xe0b2d6=_0x15be40['slice'](0x0,-0x7)['toLowerCase']();_0x3ae328['registerInlineAttribute'](_0xe0b2d6);}}}class I extends _0x24b01f{['afterInit'](){const _0x3e933e=this['editor'],_0x207d66=_0x3e933e['plugins']['get']('SuggestionsConversion');_0x3e933e['plugins']['has']('BookmarkEditing')&&_0x207d66['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x24b01f{['afterInit'](){const _0x10ca58=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x4d227a,commandName:_0xdb21c8}of no)this['editor']['plugins']['has'](_0x4d227a)&&_0x10ca58['registerInlineAttribute'](_0xdb21c8);}}class T extends _0x24b01f{['afterInit'](){const _0x7bd1fe=this['editor'];if(!_0x7bd1fe['plugins']['has']('HighlightEditing'))return;_0x7bd1fe['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x24b01f{['afterInit'](){const _0x2afc25=this['editor'];if(!_0x2afc25['plugins']['has']('HtmlEmbed'))return;_0x2afc25['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x24b01f{['afterInit'](){const _0x306b7b=this['editor'];if(!_0x306b7b['plugins']['has']('ImageEditing'))return;const _0x191de9=_0x306b7b['plugins']['get']('SuggestionsConversion');_0x191de9['registerBlockAttribute']('src'),_0x306b7b['plugins']['has']('ImageResize')&&_0x191de9['registerBlockAttribute']('resizedWidth'),_0x306b7b['plugins']['has']('ImageTextAlternativeEditing')&&_0x191de9['registerBlockAttribute']('alt'),_0x306b7b['plugins']['has']('PictureEditing')&&_0x191de9['registerBlockAttribute']('sources'),_0x306b7b['plugins']['has']('ImageSizeAttributes')&&(_0x191de9['registerBlockAttribute']('width'),_0x191de9['registerBlockAttribute']('height'));}}class $ extends _0x24b01f{['afterInit'](){const _0xdecff5=this['editor'],_0x1f05da=_0xdecff5['plugins']['get']('SuggestionsConversion');_0xdecff5['plugins']['has']('IndentBlock')&&_0x1f05da['registerBlockAttribute']('blockIndent');}}class x extends _0x24b01f{['afterInit'](){const _0xcafdea=this['editor'];if(!_0xcafdea['plugins']['has']('LineHeight'))return;_0xcafdea['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x24b01f{['afterInit'](){const _0x11f3b4=this['editor'];if(!_0x11f3b4['plugins']['has']('LinkEditing'))return;const _0x532fb3=_0x11f3b4['plugins']['get']('SuggestionsConversion'),_0x1cf9ed=_0x11f3b4['commands']['get']('link');_0x532fb3['registerInlineAttribute']('linkHref');for(const _0x287d40 of _0x1cf9ed['manualDecorators'])_0x532fb3['registerInlineAttribute'](_0x287d40['id']);}}class N extends _0x24b01f{['afterInit'](){const _0x35108d=this['editor'];if(!_0x35108d['plugins']['has']('ListEditing'))return;const _0x48f884=_0x35108d['plugins']['get']('SuggestionsConversion'),_0x4a5692=_0x35108d['plugins']['has']('TodoListEditing');_0x48f884['registerBlockAttribute']('listItemId'),_0x48f884['registerBlockAttribute']('listType'),_0x48f884['registerBlockAttribute']('listIndent'),_0x4a5692&&_0x48f884['registerBlockAttribute']('todoListChecked');}}class P extends _0x24b01f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xbfbf07=this['editor']['config']['get']('list.properties'),_0x7e5c27=this['editor']['plugins']['get']('SuggestionsConversion');_0xbfbf07['styles']&&_0x7e5c27['registerBlockAttribute']('listStyle'),_0xbfbf07['reversed']&&_0x7e5c27['registerBlockAttribute']('listReversed'),_0xbfbf07['startIndex']&&_0x7e5c27['registerBlockAttribute']('listStart');}}class K extends _0x24b01f{['afterInit'](){const _0x8c08f4=this['editor'],_0x2e1f83=_0x8c08f4['plugins']['get']('SuggestionsConversion');_0x8c08f4['plugins']['has']('MultiLevelList')&&_0x2e1f83['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x24b01f{['afterInit'](){const _0x2c0711=this['editor'];if(!_0x2c0711['plugins']['has']('Style')||!_0x2c0711['plugins']['has']('DataSchema')||!_0x2c0711['config']['get']('style.definitions'))return;const _0x1f2a84=_0x2c0711['plugins']['get']('SuggestionsConversion'),_0x1d633f=_0x2c0711['config']['get']('style.definitions'),_0x1d10a1=_0x2c0711['plugins']['get']('GeneralHtmlSupport'),_0x18a9fe=_0x2c0711['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2c0711['plugins']['get']('DataSchema'),_0x1d633f),_0x20b7cd=new Set();for(const _0x3057c9 of _0x18a9fe['block']){const _0x1fddaf=_0x1d10a1['getGhsAttributeNameForElement'](_0x3057c9['element']);_0x20b7cd['add'](_0x1fddaf);}const _0x272e18=new Set();for(const _0x556f50 of _0x18a9fe['inline']){const _0x1a378f=_0x1d10a1['getGhsAttributeNameForElement'](_0x556f50['element']);_0x272e18['add'](_0x1a378f);for(const _0x43bdb1 of _0x556f50['ghsAttributes'])_0x272e18['add'](_0x43bdb1);}for(const _0x467b7d of _0x20b7cd)_0x1f2a84['registerBlockAttribute'](_0x467b7d);for(const _0x319256 of _0x272e18)_0x1f2a84['registerInlineAttribute'](_0x319256);}}class z extends _0x24b01f{['afterInit'](){const _0x8173b5=this['editor'];if(!_0x8173b5['plugins']['has']('TableEditing'))return;const _0x41fa85=_0x8173b5['plugins']['get']('SuggestionsConversion');_0x41fa85['registerBlockAttribute']('headingRows'),_0x41fa85['registerBlockAttribute']('headingColumns');}}class O extends _0x24b01f{['afterInit'](){const _0x339cc5=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x1e3c3b=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x5d4ca2 of _0x1e3c3b)_0x339cc5['registerBlockAttribute'](_0x5d4ca2);}}class R extends _0x24b01f{['afterInit'](){const _0x1d3502=this['editor'],_0x73f088=_0x1d3502['plugins']['get']('SuggestionsConversion');_0x1d3502['plugins']['has']('TableLayout')&&_0x73f088['registerBlockAttribute']('tableType');}}class F extends _0x24b01f{['afterInit'](){const _0x211ad8=this['editor'],_0x4640b6=this['editor']['plugins']['get']('SuggestionsConversion');_0x211ad8['plugins']['has']('Uploadcare')&&_0x211ad8['plugins']['has']('UploadcareImageEdit')&&_0x4640b6['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x24b01f{['afterInit'](){const _0x4ce7c6=this['editor'];if(!_0x4ce7c6['plugins']['has']('ShiftEnter'))return;const _0x8b9a63=_0x4ce7c6['plugins']['get']('SuggestionsConversion'),_0x51250e=(_0x2f6102,_0x36f0b8,_0x15c5b8,_0x3515a5)=>{if(_0x3515a5&&!_0x15c5b8['options']['showSuggestionHighlights'])return;if(!_0x15c5b8['consumable']['test'](_0x36f0b8['markerRange'],_0x2f6102['name']))return;const _0x4f82d4=_0x4ce7c6['model'];for(const _0x1beee9 of _0x36f0b8['markerRange']['getItems']()){if(!_0x1beee9['is']('element','softBreak'))continue;const _0x3e1b8e='deletion'==_0x36f0b8['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5e250c,authorId:_0x6adcbc}=v(_0x36f0b8['markerName']),_0x3dbc4f=_0x15c5b8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e1b8e,'data-suggestion':_0x5e250c,'data-author-id':_0x6adcbc}),_0x4aabe5=_0x15c5b8['mapper']['toViewPosition'](_0x4f82d4['createPositionBefore'](_0x1beee9));!_0x3515a5&&_0x8b9a63['_activeMarkers']['includes'](_0x36f0b8['markerName'])&&_0x15c5b8['writer']['addClass']('ck-suggestion-marker--active',_0x3dbc4f),_0x15c5b8['writer']['insert'](_0x4aabe5,_0x3dbc4f),_0x15c5b8['mapper']['bindElementToMarker'](_0x3dbc4f,_0x36f0b8['markerName']);}};_0x4ce7c6['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1eba0b,_0x59ae3c,_0x147e23)=>{_0x51250e(_0x1eba0b,_0x59ae3c,_0x147e23,!0x1);},{'priority':'high'}),_0x4ce7c6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58d7d6,_0x48cf37,_0x1cc38c)=>{_0x51250e(_0x58d7d6,_0x48cf37,_0x1cc38c,!0x0);},{'priority':'high'});}}class J extends _0x24b01f{['afterInit'](){const _0x25d5b4=this['editor'];_0x25d5b4['plugins']['has']('MediaEmbedEditing')&&(_0x25d5b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x103056,{writer:_0xf69cfc,options:_0x3ab517})=>{if(_0x3ab517['showSuggestionHighlights'])return _0xf69cfc['createEmptyElement']('div');},'converterPriority':'high'}),_0x25d5b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x508734,_0x3fc72e,_0x37c9b5)=>{_0x37c9b5['options']['showSuggestionHighlights']&&_0x508734['stop']();},{'priority':'high'}));}}class L extends _0x24b01f{['afterInit'](){const _0x4a0fdc=this['editor'];if(!_0x4a0fdc['plugins']['has']('Table'))return;_0x4a0fdc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x496caf,_0x4ab50a,_0xaa7497)=>{((_0x3498d3,_0x52146b,_0x1c0ed4)=>{if(!_0x1c0ed4['options']['showSuggestionHighlights'])return;const _0x5ac55f=_0x52146b['item'];if(!_0x5ac55f||!_0x5ac55f['is']('element','tableCell'))return;const _0x10913b=_0x1c0ed4['mapper']['toViewElement'](_0x5ac55f);if(_0x10913b){const {id:_0x1137b4,authorId:_0x29e949}=v(_0x52146b['markerName']);it(_0x10913b,_0x1c0ed4['writer'],(_0x1f1ddc,_0x206834,_0x270062)=>{_0x270062['addClass'](rt(_0x206834['classes']),_0x1f1ddc),_0x270062['setAttribute']('data-suggestion-id',_0x1137b4,_0x1f1ddc),_0x270062['setAttribute']('data-author-id',_0x29e949,_0x1f1ddc);});}})(0x0,_0x4ab50a,_0xaa7497);},{'priority':'highest'});}}class Q extends _0x24b01f{['afterInit'](){const _0x29181d=this['editor'];_0x29181d['plugins']['has']('HorizontalLineEditing')&&_0x29181d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xdd1115,{writer:_0x4469b8,options:_0x2de54b})=>{if(!_0x2de54b['showSuggestionHighlights'])return null;const _0x187372=_0x4469b8['createContainerElement']('div'),_0x3adbd3=_0x4469b8['createEmptyElement']('hr');return _0x4469b8['addClass']('ck-horizontal-line',_0x187372),_0x4469b8['insert'](_0x4469b8['createPositionAt'](_0x187372,0x0),_0x3adbd3),_0x187372;},'converterPriority':'high'});}}class kt extends _0x24b01f{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,Q,E,S,$,x,H,N,P,J,K,G,q,L,z,R,O,F];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20bf5c=this['editor'],_0x2f6263=(_0x5305c9,_0x56b469,_0x250cea)=>{const {id:_0x521dc4,authorId:_0x41c9c6,type:_0x3ed5fd,subType:_0x3a30bf}=v(_0x5305c9['markerName']),_0x3b7ec9=['ck-suggestion-marker',this['_getClassName'](_0x3ed5fd,_0x3a30bf)];let _0xc7ccd2=0xbb8;return!_0x250cea&&(this['_activeMarkers']['includes'](_0x5305c9['markerName'])&&(_0x3b7ec9['push']('ck-suggestion-marker--active'),_0xc7ccd2=0xbc2)),('deletion'==_0x3ed5fd&&(_0xc7ccd2+=0x5),{'classes':_0x3b7ec9,'attributes':{'data-suggestion':_0x521dc4,'data-author-id':_0x41c9c6},'priority':_0xc7ccd2});};_0x20bf5c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d5196,_0x1f5865)=>_0x2f6263(_0x2d5196,0x0,!0x1)}),_0x20bf5c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x329225,_0x14289a)=>_0x2f6263(_0x329225,0x0,!0x0)}),_0x20bf5c['conversion']['for']('dataDowncast')['add'](_0xb4fe57=>{_0xb4fe57['on']('addMarker:suggestion',(_0x2c2878,_0x5579b8,_0x4dbb24)=>{if(!_0x4dbb24['options']['showSuggestionHighlights'])return;const _0x2be29b=_0x5579b8['item'];if(!_0x2be29b)return;const _0x48a991=_0x4dbb24['mapper']['toViewElement'](_0x2be29b);_0x20bf5c['model']['schema']['isObject'](_0x2be29b)&&_0x48a991&&!_0x48a991['getCustomProperty']('widget')&&_0x48a991['is']('containerElement')&&_0x32a348(_0x48a991,_0x4dbb24['writer']);},{'priority':'high'});});const _0x454272=(_0x1df619,_0x505eeb,_0x337784,_0x4a46e1,_0x3bced3)=>{if(_0x4a46e1&&!_0x337784['options']['showSuggestionHighlights'])return;if(!_0x505eeb['item'])return;const {id:_0x9d2bd8,authorId:_0x161d66,subType:_0x2aa672}=v(_0x505eeb['markerName']);if(_0x3bced3){const _0x2153de=_0x2aa672['split']('|')[0x0];if(!this['isBlockAttribute'](_0x2153de))return;}if(_0x505eeb['item']['is']('selection'))return void _0x337784['consumable']['consume'](_0x505eeb['item'],_0x1df619['name']);const _0x3e99f9=_0x337784['mapper']['toViewElement'](_0x505eeb['item']);if(_0x505eeb['item']['is']('element')&&_0x20bf5c['model']['schema']['isBlock'](_0x505eeb['item'])&&!_0x3e99f9['getCustomProperty']('addHighlight')){_0x337784['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3e99f9),_0x337784['writer']['setAttribute']('data-suggestion',_0x9d2bd8,_0x3e99f9),_0x337784['writer']['setAttribute']('data-author-id',_0x161d66,_0x3e99f9),_0x337784['mapper']['bindElementToMarker'](_0x3e99f9,_0x505eeb['markerName']),_0x4a46e1||(this['_activeMarkers']['includes'](_0x505eeb['markerName'])?_0x337784['writer']['addClass']('ck-suggestion-marker--active',_0x3e99f9):_0x337784['writer']['removeClass']('ck-suggestion-marker--active',_0x3e99f9));for(const _0x4a132c of _0x20bf5c['model']['createRangeIn'](_0x505eeb['item'])['getItems']())_0x337784['consumable']['consume'](_0x4a132c,_0x1df619['name']);_0x337784['consumable']['consume'](_0x505eeb['item'],_0x1df619['name']);}},_0x315775=(_0x4b9e04,_0x3d9725,_0x2223d3,_0x34b9b0)=>{const _0x453c7c=_0x2223d3['mapper']['markerNameToElements'](_0x3d9725['markerName']);if(_0x453c7c){if(_0x34b9b0){const {subType:_0x396d0f}=v(_0x3d9725['markerName']),_0x109293=_0x396d0f['split']('|')[0x0];if(!this['isBlockAttribute'](_0x109293))return;}for(const _0x400db5 of _0x453c7c)_0x400db5['getCustomProperty']('addHighlight')||(_0x2223d3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x400db5),_0x2223d3['writer']['removeAttribute']('data-suggestion',_0x400db5),_0x2223d3['writer']['removeAttribute']('data-author-id',_0x400db5),_0x2223d3['mapper']['unbindElementFromMarkerName'](_0x400db5,_0x3d9725['markerName']));}};_0x20bf5c['conversion']['for']('editingDowncast')['add'](_0x67da5a=>{_0x67da5a['on']('addMarker:suggestion:formatBlock',(_0x4b52cc,_0x5ea46e,_0x4bde16)=>{_0x454272(_0x4b52cc,_0x5ea46e,_0x4bde16,!0x1,!0x1);},{'priority':'high'});}),_0x20bf5c['conversion']['for']('editingDowncast')['add'](_0x38cd31=>{_0x38cd31['on']('addMarker:suggestion:attribute',(_0xfbe82b,_0x4bd1be,_0x263c2d)=>{_0x454272(_0xfbe82b,_0x4bd1be,_0x263c2d,!0x1,!0x0);},{'priority':'high'});}),_0x20bf5c['conversion']['for']('editingDowncast')['add'](_0x508a00=>{_0x508a00['on']('removeMarker:suggestion:formatBlock',(_0x15630f,_0x3cebd4,_0x3d4112)=>{_0x315775(0x0,_0x3cebd4,_0x3d4112,!0x1);},{'priority':'high'});}),_0x20bf5c['conversion']['for']('editingDowncast')['add'](_0x1d0f5c=>{_0x1d0f5c['on']('removeMarker:suggestion:attribute',(_0x8ef6fd,_0x287d7a,_0x3a248b)=>{_0x315775(0x0,_0x287d7a,_0x3a248b,!0x0);},{'priority':'high'});}),_0x20bf5c['conversion']['for']('dataDowncast')['add'](_0x3c9a06=>{_0x3c9a06['on']('addMarker:suggestion:formatBlock',(_0x2a5f0b,_0x1c2425,_0x2cc0eb)=>{_0x454272(_0x2a5f0b,_0x1c2425,_0x2cc0eb,!0x0,!0x1);},{'priority':'highest'});}),_0x20bf5c['conversion']['for']('dataDowncast')['add'](_0x7a2b44=>{_0x7a2b44['on']('addMarker:suggestion:attribute',(_0x32fa90,_0x58e692,_0x3256f3)=>{_0x454272(_0x32fa90,_0x58e692,_0x3256f3,!0x0,!0x0);},{'priority':'highest'});}),_0x20bf5c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1cf5b9,_0x3637f2)=>{if(_0x3637f2['options']['showSuggestionHighlights']){const {id:_0x261ab2,authorId:_0x18ffdc}=v(_0x1cf5b9);return _0x1cf5b9['includes'](':split')||_0x1cf5b9['includes'](':merge')?{'group':'suggestion','name':_0x1cf5b9['substr'](0xb),'attributes':{'data-suggestion':_0x261ab2,'data-author-id':_0x18ffdc}}:null;}return{'group':'suggestion','name':_0x1cf5b9['substr'](0xb)};}});const _0x1d0655=(_0x5bffea,_0xae70a6,_0x983e69,_0x59e211,_0x470276)=>{if(_0x59e211&&!_0x983e69['options']['showSuggestionHighlights'])return;if(!_0x983e69['consumable']['test'](_0xae70a6['markerRange'],_0x5bffea['name']))return;const _0x48c19e=this['_activeMarkers'],_0x2e136e=_0xae70a6['markerRange']['getWalker'](),_0x38ef23=_0xae70a6['markerRange']['start'],_0x1dc7c4=_0x20bf5c['model']['schema'];let _0x36c5a2=null,_0x182f53=null,_0x27e603=!0x1,_0x25434d=!0x1;for(const _0x21102d of _0x2e136e){const _0x327770=_0x21102d['item'];_0x27e603=_0x27e603||_0x1dc7c4['isContent'](_0x327770);const _0x51b93a=_0x983e69['mapper']['toViewElement'](_0x327770);if(_0x51b93a&&_0x51b93a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21102d['type']&&(_0x1dc7c4['isBlock'](_0x327770)&&!_0x1dc7c4['isLimit'](_0x327770)&&(_0x327770['nextSibling']||_0x38ef23['isAtEnd']?_0x36c5a2&&_0x36c5a2['parent']==_0x327770||(_0x36c5a2=_0x327770,_0x2029f3(_0x21102d['previousPosition']),_0x25434d=!0x0):_0x182f53=_0x182f53||_0x21102d['previousPosition']));}function _0x2029f3(_0x3a4770){const {id:_0x3b7c04,authorId:_0x443202}=v(_0xae70a6['markerName']),_0x5795ce=_0x983e69['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x470276,'data-suggestion':_0x3b7c04,'data-author-id':_0x443202}),_0x53c558=_0x983e69['mapper']['toViewPosition'](_0x3a4770);!_0x59e211&&_0x48c19e['includes'](_0xae70a6['markerName'])&&_0x983e69['writer']['addClass']('ck-suggestion-marker--active',_0x5795ce),_0x983e69['writer']['insert'](_0x53c558,_0x5795ce),_0x983e69['mapper']['bindElementToMarker'](_0x5795ce,_0xae70a6['markerName']);}_0x27e603||_0x25434d||!_0x182f53||_0x2029f3(_0x182f53);};_0x20bf5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x279775,_0x514b50,_0x233564)=>{_0x1d0655(_0x279775,_0x514b50,_0x233564,!0x1,'merge');},{'priority':'high'}),_0x20bf5c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1dbb76,_0x1a1555,_0x28aca7)=>{_0x1d0655(_0x1dbb76,_0x1a1555,_0x28aca7,!0x0,'merge');},{'priority':'high'}),_0x20bf5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x220a5a,_0xfbb20,_0x5f3d7c)=>{_0x1d0655(_0x220a5a,_0xfbb20,_0x5f3d7c,!0x1,'split');},{'priority':'high'}),_0x20bf5c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x113799,_0x2bd476,_0x361f15)=>{_0x1d0655(_0x113799,_0x2bd476,_0x361f15,!0x0,'split');},{'priority':'high'}),_0x20bf5c['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xb8689,_0x3e93c1,_0x220777)=>{((_0x58cca7,_0x175a89,_0xaed193)=>{const _0xf5c1ee=_0xaed193['mapper']['markerNameToElements'](_0x175a89['markerName']);if(_0xf5c1ee){for(const _0xf6300 of _0xf5c1ee)(_0xf6300['hasClass']('ck-suggestion-marker-split')||_0xf6300['hasClass']('ck-suggestion-marker-merge'))&&(_0xaed193['mapper']['unbindElementFromMarkerName'](_0xf6300,_0x175a89['markerName']),_0xaed193['writer']['remove'](_0xf6300));}})(0x0,_0x3e93c1,_0x220777);},{'priority':'high'});const _0x37b827=(_0x5b8b6e,_0x373101,_0x36b14c,_0x45c775)=>{if(_0x45c775&&!_0x36b14c['options']['showSuggestionHighlights'])return;const _0x91092f=_0x373101['markerRange']['start'],_0x42e86b=_0x373101['markerRange']['end'],_0x57e4d8=_0x20bf5c['model']['schema'];if(!_0x91092f['isTouching'](_0x42e86b)||!_0x91092f['nodeAfter'])return;const _0x40d5f7=_0x91092f['nodeAfter'];if(_0x57e4d8['isBlock'](_0x40d5f7)&&!_0x57e4d8['isLimit'](_0x40d5f7)&&_0x57e4d8['checkChild'](_0x40d5f7,'$text')){if(!_0x36b14c['consumable']['consume'](_0x373101['markerRange'],_0x5b8b6e['name']))return;const {id:_0x4fe6e2,authorId:_0x283139}=v(_0x373101['markerName']),_0x210dd5=_0x36b14c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4fe6e2,'data-author-id':_0x283139}),_0x2a6d54=_0x36b14c['mapper']['toViewPosition'](_0x42e86b);!_0x45c775&&this['_activeMarkers']['includes'](_0x373101['markerName'])&&_0x36b14c['writer']['addClass']('ck-suggestion-marker--active',_0x210dd5),_0x36b14c['writer']['insert'](_0x2a6d54,_0x210dd5),_0x36b14c['mapper']['bindElementToMarker'](_0x210dd5,_0x373101['markerName']);}};_0x20bf5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x227957,_0x250410,_0x15ce7c)=>{_0x37b827(_0x227957,_0x250410,_0x15ce7c,!0x1);},{'priority':'high'}),_0x20bf5c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x47d5a5,_0x597324,_0x380ebf)=>{_0x37b827(_0x47d5a5,_0x597324,_0x380ebf,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x19ac6b,_0x3e299f,_0x2f2b51)=>{this['_activeMarkers']=_0x2f2b51['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x379417){this['_blockAttributeKeys']['add'](_0x379417);}['registerInlineAttribute'](_0x3ff7f6){this['_inlineAttributeKeys']['add'](_0x3ff7f6);}['isBlockAttribute'](_0x599d77){return this['_blockAttributeKeys']['has'](_0x599d77);}['isInlineAttribute'](_0x4007bc){return this['_inlineAttributeKeys']['has'](_0x4007bc);}['isRegisteredAttribute'](_0xc4a875){return this['isInlineAttribute'](_0xc4a875)||this['isBlockAttribute'](_0xc4a875);}['_getClassName'](_0x598d97,_0x4cfbc9){if('attribute'!=_0x598d97)return'ck-suggestion-marker-'+_0x598d97;const _0x190674=_0x4cfbc9['split']('|')[0x0];return this['isBlockAttribute'](_0x190674)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x542dcb={},_0x13adfc){if(void 0x0!==_0x542dcb['dateTimeFormat']&&'function'!=typeof _0x542dcb['dateTimeFormat'])throw new _0x5e43ee('invalid-date-time-format');return _0x45a45d=>{const _0x1127de='string'==typeof _0x45a45d?tt['fromISO'](_0x45a45d):tt['fromJSDate'](_0x45a45d),_0x142488=tt['now'](),_0x362c1c=Math['floor'](_0x142488['diff'](_0x1127de,'days')['days']);return _0x542dcb['dateTimeFormat']?_0x542dcb['dateTimeFormat'](_0x1127de['toJSDate'](),_0x13adfc&&_0x13adfc['t']?_0x13adfc['t']:void 0x0):0x0===_0x362c1c?_0x13adfc?U(_0x13adfc,'Today')+'\x20'+_0x1127de['toFormat']('hh:mma'):_0x1127de['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x362c1c?_0x13adfc?U(_0x13adfc,'Yesterday')+'\x20'+_0x1127de['toFormat']('hh:mma'):_0x1127de['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x362c1c<0x7?_0x13adfc?U(_0x13adfc,'Last')+'\x20'+U(_0x13adfc,_0x1127de['toFormat']('EEEE'))+'\x20'+_0x1127de['toFormat']('hh:mma'):_0x1127de['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x1127de['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x5bb98a,_0x34a0d6){const _0xb664fc=_0x5bb98a['mapper']['markerNameToElements'](_0x34a0d6['name']);if(!_0xb664fc)return null;const _0x592c54=_0x5e5e0d(_0xb664fc['values']());return _0x5bb98a['view']['domConverter']['mapViewToDom'](_0x592c54)||null;}function wt(_0x56aa67,_0x4c956a){if(0x0===_0x4c956a['length'])return null;const _0x5735e1=[],_0x266ce9=_0x56aa67['view']['domConverter'];for(const _0x5bb18f of _0x4c956a){const _0x2638d4=_0x56aa67['mapper']['markerNameToElements'](_0x5bb18f['name']);if(!_0x2638d4)continue;const _0x497647=Array['from'](_0x2638d4)['map'](_0x5641af=>_0x266ce9['mapViewToDom'](_0x5641af))['filter'](_0x526c20=>!!_0x526c20);_0x5735e1['push'](..._0x497647);}if(0x0===_0x5735e1['length'])return null;const _0xd4f00=[];for(const _0x1b03f of _0x5735e1){const _0x493ad4=_0x1b03f['getClientRects']()['item'](0x0);_0x493ad4&&_0xd4f00['push']({'x':_0x493ad4['x'],'y':_0x493ad4['y'],'domElement':_0x1b03f});}return 0x0===_0xd4f00['length']?null:(_0xd4f00['sort']((_0x4feb1e,_0x5b1f48)=>_0x4feb1e['y']-_0x5b1f48['y']||_0x4feb1e['x']-_0x5b1f48['x']),_0xd4f00['map'](_0x3319f9=>_0x3319f9['domElement']));}function bt(_0x439298,{limit:_0x2fb65b,suffix:_0x2e1369='...'}){const _0x26aa67=[];let _0x3eb686=0x0;const _0x4c9589=_0x439298['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0xe2aeae=0x0;_0xe2aeae<_0x4c9589['length'];_0xe2aeae++){let _0x26d70f=_0x4c9589[_0xe2aeae];const _0x486c39=tn(_0x26d70f);if(_0x26d70f['startsWith']('<')){if(_0x3eb686>=_0x2fb65b){const _0x1247b3=_0x26d70f['match'](/[a-zA-Z]+/);if(!_0x1247b3){_0x4c9589[_0xe2aeae]='';continue;}const _0x4ab550=_0x1247b3[0x0];_0x26d70f['startsWith']('</')?(_0x26aa67['length']&&(_0x26d70f=''),_0x26aa67['pop']()):(_0x26aa67['push'](_0x4ab550),_0x26d70f='');}}else{if(_0x3eb686>=_0x2fb65b)_0x26d70f='';else{if(_0x3eb686+_0x486c39['length']>=_0x2fb65b){let _0x33d69f=_0x2fb65b-_0x3eb686;if('\x20'===_0x486c39[_0x33d69f-0x1])_0x33d69f--;else{const _0x4920d8=_0x486c39['slice'](_0x33d69f)['indexOf']('\x20');-0x1!==_0x4920d8?_0x33d69f+=_0x4920d8:_0x33d69f=_0x26d70f['length'];}_0x26d70f=_0x486c39['slice'](0x0,_0x33d69f)['join']('')+_0x2e1369,_0x3eb686=_0x2fb65b;}else _0x3eb686+=_0x486c39['length'];}}_0x4c9589[_0xe2aeae]=_0x26d70f;}return _0x4c9589['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x3d8805){const _0x4e7d5a=[];for(let _0x323219=0x0;_0x323219<_0x3d8805['length'];_0x323219++){const _0x4c656a=_0x3d8805['substring'](_0x323219)['match'](/^&[a-z0-9#]+;/);if(_0x4c656a){const _0x3166d1=_0x4c656a[0x0];_0x4e7d5a['push'](_0x3166d1),_0x323219+=_0x3166d1['length']-0x1;}else _0x4e7d5a['push'](_0x3d8805[_0x323219]);}return _0x4e7d5a;}class V extends _0xf8b808{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x10e1c1){super(_0x10e1c1);const _0x4e2e50=this['bindTemplate'];this['set']('message',U(_0x10e1c1,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x10e1c1,U(_0x10e1c1,'Yes'),_0x448b9e,'submit'),this['cancelView']=this['_createButtonView'](_0x10e1c1,U(_0x10e1c1,'No'),_0xc81095,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x4d8956(),this['focusCycler']=new _0x28faee({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x4e2e50['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x5edba1,_0x1f7527,_0x35568c,_0x51b1ac){const _0x56eeb8=new _0x51bd3a(_0x5edba1);return _0x56eeb8['label']=_0x1f7527,_0x56eeb8['icon']=_0x35568c,_0x56eeb8['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x51b1ac}}),_0x56eeb8['on']('execute',()=>this['fire'](_0x51b1ac)),_0x56eeb8;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x3c4127=>{this['keystrokes']['listenTo'](_0x3c4127['element']),this['focusTracker']['add'](_0x3c4127['element']);}),this['keystrokes']['set']('esc',(_0x51b8d3,_0x9bce87)=>{this['fire']('cancel'),_0x9bce87();});}}function vt(_0x5ac4eb){return class extends _0x5ac4eb{['showConfirm'](_0x33d2b0,_0x238bb0){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x33d2b0,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x238bb0['appendChild'](this['confirmView']['element']),_0x238bb0['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x23b2d8,_0x36b4a1,_0x3b2424)=>{_0x3b2424||_0x238bb0['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x39f40a=>this['confirmView']['on']('submit',_0x39f40a));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0x48851d){let _0x39fff6=0x0,_0xe6f180=0x0;for(const _0xb9ee33 of ne(_0x48851d))_0x39fff6=(_0x39fff6<<0x5)-_0x39fff6+_0xb9ee33,_0x39fff6&=_0x39fff6,[_0x39fff6,_0xe6f180]=[_0xe6f180,_0x39fff6];return ie(_0x39fff6)+ie(_0xe6f180);}function*ee(_0x4f37d4){null==_0x4f37d4||null==_0x4f37d4?yield 0x12b9b0a1:0x0===_0x4f37d4||!0x1===_0x4f37d4?yield 0x0:0x1===_0x4f37d4||0x1==_0x4f37d4?yield 0x1:Array['isArray'](_0x4f37d4)?yield*function*(_0x39e680){for(const _0x3f4b3c of _0x39e680)yield*ee(_0x3f4b3c);}(_0x4f37d4):'object'==typeof _0x4f37d4?yield*ne(_0x4f37d4):'string'==typeof _0x4f37d4?yield*oe(_0x4f37d4):'number'==typeof _0x4f37d4&&(yield _0x4f37d4);}function*ne(_0x15a274){if(yield te('{'),_0x15a274){const _0xb47734=Object['keys'](_0x15a274)['sort']();for(const _0x436f78 of _0xb47734){yield*oe(_0x436f78),yield te(':');const _0x222af9=_0x15a274[_0x436f78];yield*ee(_0x222af9);}}yield te('}');}function*oe(_0x507ebf){yield te('\x22');for(const _0x552dfe of _0x507ebf)yield te(_0x552dfe);yield te('\x22');}function te(_0x35ee2e){return _0x35ee2e['charCodeAt'](0x0);}function ie(_0x34e55a){return(_0x34e55a*=Math['sign'](_0x34e55a))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x1bbe31,_0x53265d,_0x3eface,_0x19adaf=[]){const _0x57ee70='string'==typeof _0x1bbe31?_0x3eface['get'](_0x1bbe31)['constructor']:_0x1bbe31['prototype']['constructor'];if(_0x53265d['has'](_0x57ee70))return _0x53265d['get'](_0x57ee70);_0x53265d['set'](_0x57ee70,!0x0);const _0x241744=[...et,..._0x19adaf]['map'](_0x2db52c=>{if(_0x3eface['has'](_0x2db52c))return _0x3eface['get'](_0x2db52c)['constructor'];})['filter'](_0x51bb97=>_0x51bb97);if(_0x57ee70&&_0x241744['includes'](_0x57ee70))return _0x53265d['set'](_0x57ee70,!0x1),!0x1;if(!_0x57ee70['requires'])return _0x53265d['set'](_0x57ee70,!0x0),!0x0;const _0x11907c=_0x57ee70['requires']['every'](_0x27ff33=>ot(_0x27ff33,_0x53265d,_0x3eface,_0x19adaf));return _0x53265d['set'](_0x57ee70,_0x11907c),_0x11907c;}function Ct(_0xa1b4ed,_0x2c7a06){const _0x356eae={};for(const _0x142ab5 of _0xa1b4ed['config']['names']())nt['includes'](_0x142ab5)||(_0x356eae[_0x142ab5]=_0xa1b4ed['config']['get'](_0x142ab5));const _0x194ae3=_0x356eae['plugins']||[],_0x56e20a=_0xa1b4ed['constructor']['builtinPlugins']||[],_0xb36772=_0x194ae3['length']?_0x194ae3:_0x56e20a,_0x5a0bb3=_0x356eae['extraPlugins']||[];delete _0x356eae['extraPlugins'];const _0x8db7aa=_0x356eae['removePlugins']||[];delete _0x356eae['removePlugins'];const _0xfb20a8=_0xa1b4ed['_context']['config']['get']('plugins')||[],_0x588b1f=_0xb36772['concat'](_0x5a0bb3)['concat'](_0xfb20a8)['map'](_0x478631=>'string'==typeof _0x478631?_0x56e20a['find'](_0x7c6a27=>_0x7c6a27['pluginName']==_0x478631):_0x478631)['filter'](_0x142fcc=>!_0x8db7aa['includes'](_0x142fcc)&&!_0x8db7aa['includes'](_0x142fcc['pluginName'])),_0x53d434=Array['from'](new Set(_0x588b1f)),_0x4d531c=new Map();return _0x356eae['plugins']=_0x53d434['filter'](_0x411775=>ot(_0x411775,_0x4d531c,_0xa1b4ed['plugins'],_0x2c7a06)),_0x356eae;}function _t(_0x19649a,_0x106c09){const _0x56c63e=[];_0x19649a['document']['selection']['on']('change:range',()=>{const _0x2f9a80=function(_0x5e0bae,_0x51caf8){const _0x75f663=[];for(const _0x128035 of _0x5e0bae['markers']){const _0xf45abd=_0x128035['getRange']();(_0xf45abd['containsPosition'](_0x51caf8)||_0xf45abd['start']['isEqual'](_0x51caf8)||_0xf45abd['end']['isEqual'](_0x51caf8))&&_0x75f663['push'](_0x128035);}return _0x75f663;}(_0x19649a,_0x19649a['document']['selection']['focus']),_0x52de9e=[],_0x4a63b2=[],_0x20dcf8=[];for(const _0x111860 of _0x56c63e)_0x2f9a80['includes'](_0x111860)||_0x52de9e['push'](_0x111860);for(const _0x5c3a0b of _0x2f9a80)_0x56c63e['includes'](_0x5c3a0b)||_0x4a63b2['push'](_0x5c3a0b),_0x20dcf8['push'](_0x5c3a0b);(_0x52de9e['length']||_0x4a63b2['length'])&&_0x106c09({'left':_0x52de9e,'entered':_0x4a63b2}),_0x56c63e['length']=0x0,_0x56c63e['push'](..._0x20dcf8);});}const xt='Ctrl+Shift+E';function It(_0xba86c8,_0x535827){const _0x1a1695=_0xba86c8['element'];_0xba86c8['keystrokes']['listenTo'](_0x1a1695);for(const _0x574b8f of _0x535827)ro(_0xba86c8,_0x574b8f);_0x535827['on']('change',(_0xbb948e,_0x2eb344)=>{for(const _0x176420 of _0x2eb344['removed'])to(_0xba86c8,_0x176420);for(const _0x247799 of Array['from'](_0x2eb344['added'])['reverse']())ro(_0xba86c8,_0x247799);}),_0xba86c8['keystrokes']['set']('enter',(_0x5a9cec,_0xcdf436)=>{_0x1a1695===_0x5a9cec['target']&&(_0xba86c8['focusCycler']['focusFirst'](),_0xcdf436());},{'filter':_0x6ead27=>_0x6ead27['target']===_0x1a1695}),_0xba86c8['keystrokes']['set']('esc',(_0x322cfd,_0x3e4058)=>{_0x1a1695!==_0x322cfd['target']?_0xba86c8['focus']():_0xba86c8['fire']('escape'),_0x3e4058();}),_0xba86c8['keystrokes']['set']('arrowdown',(_0x3f14a6,_0x3297f5)=>{_0x1a1695===_0x3f14a6['target']&&(_0xba86c8['fire']('arrowdown'),_0x3297f5());}),_0xba86c8['keystrokes']['set']('arrowup',(_0x44aa4b,_0x268354)=>{_0x1a1695===_0x44aa4b['target']&&(_0xba86c8['fire']('arrowup'),_0x268354());});}function ro(_0x15540a,_0x544d63){_0x544d63['isRendered']&&(_0x15540a['focusTracker']['add'](_0x544d63['element']),_0x15540a['keystrokes']['listenTo'](_0x544d63['element']),_0x2e35be(_0x544d63)&&function(_0x226f0,_0x488b15){const _0x51b151=_0x226f0['actions'],_0x98ca29=_0x488b15['actions'];for(const _0x3dc3f9 of Object['keys'](_0x51b151))if(_0x3dc3f9 in _0x98ca29&&_0x51b151[_0x3dc3f9]!==_0x98ca29[_0x3dc3f9])return!0x1;return!0x0;}(_0x15540a['focusCycler'],_0x544d63['focusCycler'])&&_0x15540a['focusCycler']['chain'](_0x544d63['focusCycler']));}function to(_0x4c14f2,_0x1aecff){_0x4c14f2['focusTracker']['remove'](_0x1aecff['element']),_0x4c14f2['keystrokes']['stopListening'](_0x1aecff['element']),_0x2e35be(_0x1aecff)&&_0x4c14f2['focusCycler']['unchain'](_0x1aecff['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x503c27{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x220e61?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x153e7f,_0x5b2a66)=>{_0x5b2a66['on']('ready',()=>{this['_integrateEditor'](_0x5b2a66);});});}get['editor'](){if(this['context']instanceof _0x220e61)return this['context'];{const _0x45c486=this['context']['editors']['first'];if(!_0x45c486)throw new _0x5e43ee('documentcompare-no-editor',this);return _0x45c486;}}['getDiff'](_0x1cefdb,_0x28b5a3,_0x2f3ddc={'anchor':'main','markDeletions':!0x1}){let _0x4131f8,_0x3ba38b;const _0x5aa8be=this['editor'];if('string'==typeof _0x2f3ddc['anchor']){const _0x5436af=_0x5aa8be['model']['document']['getRoot'](_0x2f3ddc['anchor']);if(!_0x5436af)throw new _0x5e43ee('documentcompare-compare-no-root',this,{'anchor':_0x2f3ddc['anchor']});_0x4131f8=_0x5436af,_0x3ba38b=_0x5aa8be['model']['createPositionAt'](_0x5436af,0x0);}else _0x4131f8=_0x2f3ddc['anchor']['clone'](),_0x3ba38b=_0x2f3ddc['anchor']['clone']();const _0x195f3a=_0x5aa8be['data']['parse'](_0x1cefdb,_0x4131f8),_0x3a42d4=_0x5aa8be['data']['parse'](_0x28b5a3,_0x4131f8);return new Mt(_0x195f3a,_0x3a42d4,_0x5aa8be,{'anchor':_0x3ba38b,'markDeletions':_0x2f3ddc['markDeletions']});}['isMarkedRemoveOperation'](_0x214b37){return'marker'==_0x214b37['type']&&_0x214b37['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x2ac980){_0x2ac980['conversion']['for']('upcast')['add'](_0xef0362=>{_0xef0362['on']('element',(_0x49b683,_0x1b1926,_0x138c1a)=>{if(_0x1b1926['modelRange'])for(const _0x5123e3 of _0x1b1926['modelRange']['getItems']({'shallow':!0x0})){if(_0x5123e3['is']('$textProxy'))continue;const _0x1015eb=_0x1b1926['viewItem']['getAttribute'](Et);_0x1015eb&&_0x138c1a['writer']['setAttribute'](St,_0x1015eb,_0x5123e3);}},{'priority':'lowest'});}),_0x2ac980['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x3194c5,_0x223524,_0x54b412,_0x5020db){this['_editor']=_0x54b412,this['_markDeletions']=!!_0x5020db['markDeletions'],this['_anchor']=_0x5020db['anchor'];const _0x31c604=this['_tokenizeModel'](_0x3194c5),_0x4939da=this['_tokenizeModel'](_0x223524);this['_diffItems']=this['_diffModelTokens'](_0x31c604,_0x4939da),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x3194c5['markers'],_0x223524['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x1b27e3=this['_editor']['model']['document'],_0x461100=[];let _0x39ba72=_0x1b27e3['version'];for(const _0x2fb903 of this['_operationsData'])switch(_0x2fb903['type']){case'attribute':{const _0x146ef1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']),_0x4b6e63=_0x146ef1['getShiftedBy'](_0x2fb903['howMany']),_0x4fe339=new _0x2ece87(_0x146ef1,_0x4b6e63),_0x2d3415=JSON['parse'](_0x2fb903['oldValue']),_0x29c55a=JSON['parse'](_0x2fb903['newValue']);_0x461100['push'](new _0x1d0e28(_0x4fe339,_0x2fb903['key'],_0x2d3415,_0x29c55a,_0x39ba72++));break;}case'insert':{const _0x5ae831=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']),_0x2a91fd=this['_makeModelFromTokens'](_0x2fb903['tokens']);_0x461100['push'](new _0x1e67d8(_0x5ae831,_0x2a91fd,_0x39ba72++));break;}case'remove':{const _0x12f672=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']),_0x193e5c=new _0x38ac5c(_0x1b27e3['graveyard'],[0x0]);_0x461100['push'](new _0x1d1d8d(_0x12f672,_0x2fb903['howMany'],_0x193e5c,_0x39ba72++));break;}case'rename':{const _0x42d407=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']);_0x461100['push'](new _0x4ebc8a(_0x42d407,_0x2fb903['oldName'],_0x2fb903['newName'],_0x39ba72++));break;}case'split':{const _0x132875=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']),_0xd738b1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['path']['slice'](0x0,-0x1));_0xd738b1['offset']++,_0x461100['push'](new _0x3e5e7d(_0x132875,Number['NEGATIVE_INFINITY'],_0xd738b1,null,_0x39ba72++));break;}case'merge':{const _0x3ede8a=_0x2fb903['path']['slice'](),_0x224689=_0x3ede8a['slice'](0x0,-0x1);_0x224689[_0x224689['length']-0x1]++,_0x224689['push'](0x0);const _0x3ccce2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x224689),_0x127a91=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3ede8a),_0x47b3a4=new _0x38ac5c(_0x1b27e3['graveyard'],[0x0]);_0x461100['push'](new _0x1fa071(_0x3ccce2,Number['NEGATIVE_INFINITY'],_0x127a91,_0x47b3a4,_0x39ba72++));break;}case'marker':case'markedRemove':{let _0x2d74ea=null;if(_0x2fb903['range']){const _0x41db09=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['range']['start']),_0x519374=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['range']['end']);_0x2d74ea=new _0x2ece87(_0x41db09,_0x519374);}const _0x482c85='marker'==_0x2fb903['type']?_0x2fb903['name']:'$markedRemove:'+_0x59988c();_0x461100['push'](new _0x1fa860(_0x482c85,null,_0x2d74ea,_0x1b27e3['model']['markers'],!0x0,_0x39ba72++));break;}case'unwrap':{const _0x5d2dbc=_0x2fb903['path']['slice']();_0x5d2dbc['push'](0x0);const _0x33a43d=_0x2fb903['path']['slice'](),_0x117bf8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5d2dbc),_0xf209b9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x33a43d),_0x35b3d4=new _0x38ac5c(_0x1b27e3['graveyard'],[0x0]);_0x461100['push'](new _0x1d1d8d(_0x117bf8,_0x2fb903['howMany'],_0xf209b9,_0x39ba72++)),_0x461100['push'](new _0x1d1d8d(_0xf209b9['getShiftedBy'](_0x2fb903['howMany']),0x1,_0x35b3d4,_0x39ba72++));break;}case'wrap':{const _0x4f7c01=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['range']['start']),_0x95e4e2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fb903['range']['end']),_0x58a68d=_0x2fb903['token']['element']['_clone'](!0x1),_0x46b26e=_0x2fb903['range']['end']['slice']();_0x46b26e['push'](0x0);const _0x102f5b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x46b26e);_0x461100['push'](new _0x1e67d8(_0x95e4e2,_0x58a68d,_0x39ba72++)),_0x461100['push'](new _0x1d1d8d(_0x4f7c01,_0x95e4e2['offset']-_0x4f7c01['offset'],_0x102f5b,_0x39ba72++));break;}}return _0x461100;}['_tokenizeModel'](_0x22e9c3){const _0x5e8d00=[],_0x5dc52d=_0x2ece87['_createIn'](_0x22e9c3),_0x59be77=new _0x5d0b0b({'boundaries':_0x5dc52d});let _0xf379c5='',_0x2d3740=null;const _0x346df2=[''],_0x1b58a1=new Map();for(const _0x1cdb2d of _0x59be77)if('elementStart'==_0x1cdb2d['type']||'elementEnd'==_0x1cdb2d['type']){let _0x302c64=_0x346df2[0x0];''!==_0xf379c5&&(_0x5e8d00['push'](...this['_makeTokensFromTextByWords'](_0xf379c5,_0x2d3740,_0x302c64)),_0xf379c5='');const _0xa61a19=_0x1cdb2d['item'];let _0x1f0e10;_0xa61a19['getAttribute'](St)?_0x1f0e10=_0xa61a19['getAttribute'](St):'elementStart'==_0x1cdb2d['type']?(_0x1f0e10=_(_0xa61a19),_0x1b58a1['set'](_0xa61a19,_0x1f0e10)):_0x1f0e10=_0x1b58a1['get'](_0xa61a19);const _0x55fc52=this['_getElementCategory'](_0xa61a19);'solid'==_0x55fc52&&('elementStart'==_0x1cdb2d['type']?(_0x302c64=_0x1f0e10,_0x346df2['unshift'](_0x302c64)):_0x346df2['shift']());const _0x194c2c={'type':'element','element':_0xa61a19,'elementId':_0x1f0e10,'category':_0x55fc52,'isStart':'elementStart'==_0x1cdb2d['type'],'limitId':_0x302c64};_0x5e8d00['push'](_0x194c2c);}else''==_0xf379c5&&(_0x2d3740=_0x1cdb2d['previousPosition']['clone']()),_0xf379c5+=_0x1cdb2d['item']['data'];return''!==_0xf379c5&&_0x5e8d00['push'](...this['_makeTokensFromTextByWords'](_0xf379c5,_0x2d3740,_0x346df2[0x0])),_0x5e8d00;}['_makeTokensFromTextByWords'](_0x3351f5,_0x1335eb,_0x37025c){const _0x379579=_0x3351f5['matchAll'](/(\s)/g),_0x575e5b=Array['from'](_0x379579)['map'](_0x127741=>_0x127741['index']);_0x575e5b['push'](_0x3351f5['length']),0x0==_0x575e5b[0x0]&&_0x575e5b['shift']();const _0x30f889=[],_0x4392d2=_0x1335eb['parent'];let _0x5ddb46=0x0,_0x54bdd4=_0x1335eb['offset'];for(let _0x4249e4=0x0;_0x4249e4<_0x575e5b['length'];_0x4249e4++)_0x30f889['push']({'type':'text','data':_0x3351f5['slice'](_0x5ddb46,_0x575e5b[_0x4249e4]),'parent':_0x4392d2,'offset':_0x54bdd4,'limitId':_0x37025c}),_0x5ddb46=_0x575e5b[_0x4249e4],_0x54bdd4=_0x1335eb['offset']+_0x575e5b[_0x4249e4];return _0x30f889;}['_getElementCategory'](_0x4e262e){const _0x3fcd31=this['_editor']['model']['schema'];return _0x3fcd31['isLimit'](_0x4e262e)||_0x3fcd31['isContent'](_0x4e262e)||_0x3fcd31['isInline'](_0x4e262e)?'solid':_0x3fcd31['isBlock'](_0x4e262e)?'block':'container';}['_diffModelTokens'](_0x3dea21,_0x2c9b4b){const _0x30aead=_0x3399c5(_0x3dea21,_0x2c9b4b,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x30aead);const _0x3e2c14=_0x30aead['flatMap'](_0x3ac820=>{const _0x292f33=_0x3ac820['added']?'added':_0x3ac820['removed']?'removed':'unchanged';return _0x3ac820['value']['map'](_0x322a0c=>({'token':_0x322a0c,'change':_0x292f33}));});let _0x5cfd01=0x0;for(const _0x51b01e of _0x3e2c14)'added'!=_0x51b01e['change']&&('unchanged'==_0x51b01e['change']&&(_0x51b01e['before']=_0x3dea21[_0x5cfd01]),_0x5cfd01++);return _0x3e2c14;}['_handleUnclosedBlockOpeningTags'](_0x13964e){for(let _0x398dbd=0x0;_0x398dbd<_0x13964e['length']-0x1;_0x398dbd++)if(_0x13964e[_0x398dbd]['removed']&&_0x13964e[_0x398dbd+0x1]['added']){const _0x299b48=this['_findUnclosedBlockOpeningToken'](_0x13964e[_0x398dbd]['value']);if(null!==_0x299b48){const _0x86a3f5=this['_findUnclosedBlockOpeningToken'](_0x13964e[_0x398dbd+0x1]['value']),_0xfef0a0=_0x13964e[_0x398dbd]['value']['splice'](_0x299b48),_0x19c4f3=_0x13964e[_0x398dbd+0x1]['value']['splice'](_0x86a3f5),_0x3b2025=[_0x19c4f3['shift']()];_0xfef0a0['shift']();const _0x5785f4={'value':_0xfef0a0,'removed':!0x0},_0x15d6e0={'value':_0x19c4f3,'added':!0x0},_0x597c03={'value':_0x3b2025};_0x13964e['splice'](_0x398dbd+0x2,0x0,_0x597c03,_0x5785f4,_0x15d6e0);}}}['_findUnclosedBlockOpeningToken'](_0xbfdb4c){let _0x3b3904=0x0,_0x3eca78=-0x1;for(let _0x375434=0x0;_0x375434<_0xbfdb4c['length'];_0x375434++){const _0x41d963=_0xbfdb4c[_0x375434];'element'==_0x41d963['type']&&'block'==_0x41d963['category']&&(_0x3b3904+=_0x41d963['isStart']?0x1:-0x1,_0x41d963['isStart']&&(_0x3eca78=_0x375434));}return 0x0===_0x3b3904?null:_0x3eca78;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x399eef=0x0;_0x399eef<this['_diffItems']['length'];_0x399eef++){const _0x3b1ca5=this['_diffItems'][_0x399eef]['change'],_0x2a3cbe=[];_0x2a3cbe['push'](this['_diffItems'][_0x399eef]);let _0x2f7e2c=_0x399eef+0x1;for(;this['_diffItems'][_0x2f7e2c]&&this['_diffItems'][_0x2f7e2c]['change']==_0x3b1ca5;)_0x2a3cbe['push'](this['_diffItems'][_0x2f7e2c]),_0x2f7e2c++,_0x399eef++;const _0x44fb2a=_0x2a3cbe['map'](_0x5cec0c=>_0x5cec0c['token']);if('unchanged'==_0x3b1ca5)_0x2a3cbe['map'](_0x4d7a9e=>_0x4d7a9e['before'])['forEach'](_0xa6485e=>this['_traverseOverItem'](_0xa6485e));else{if('removed'==_0x3b1ca5){if(this['_markDeletions']){const _0xbf3d89=this['_path']['slice']();_0x44fb2a['forEach'](_0x2b5450=>this['_traverseOverItem'](_0x2b5450));const _0x2ddf38=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0xbf3d89,'end':_0x2ddf38}});}else this['_handleChanged'](_0x44fb2a,!0x0,this['_path']['slice']());}else{const _0x438869=_0x44fb2a['filter'](_0x1b3c2a=>'element'!=_0x1b3c2a['type']||'container'!=_0x1b3c2a['category']);this['_handleChanged'](_0x438869,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x429d13=0x0;_0x429d13<this['_diffItems']['length'];_0x429d13++){const _0x4b9693=this['_diffItems'][_0x429d13]['change'],_0x292fb2=[];_0x292fb2['push'](this['_diffItems'][_0x429d13]);let _0x2f035e=_0x429d13+0x1;for(;this['_diffItems'][_0x2f035e]&&this['_diffItems'][_0x2f035e]['change']==_0x4b9693;)_0x292fb2['push'](this['_diffItems'][_0x2f035e]),_0x2f035e++,_0x429d13++;const _0x956fff=_0x292fb2['map'](_0x41cc8b=>_0x41cc8b['token']);if('unchanged'==_0x4b9693){const _0x21b02a=_0x292fb2['map'](_0x3b6fd7=>_0x3b6fd7['before']);this['_handleUnchanged'](_0x21b02a,_0x956fff);}else('removed'!=_0x4b9693||this['_markDeletions'])&&_0x956fff['forEach'](_0x3a340b=>{this['_traverseOverItem'](_0x3a340b);});}}['_calculateMarkersOperationsData'](_0xfc69a2,_0x3f7982){const _0x29bbad={};for(const [_0x48255c]of _0xfc69a2)_0x29bbad[_0x48255c]=null;for(const [_0x462cfc,_0x4c5454]of _0x3f7982)_0x29bbad[_0x462cfc]=_0x4c5454;const _0x1f2d8c=Object['entries'](_0x29bbad)['map'](([_0x1cbcc4,_0x5eccb4])=>({'type':'marker','name':_0x1cbcc4,'range':_0x5eccb4?{'start':_0x5eccb4['start']['path']['slice'](),'end':_0x5eccb4['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x1f2d8c);}['_handleUnwraps'](){const _0x253c5f=new Map(),_0x36d075=[],_0x4254ae=[0x0];let _0x5250c1=this['_diffItems']['length']+0x1;for(let _0x313a01=this['_diffItems']['length']-0x1;_0x313a01>=0x0;_0x313a01--){const {token:_0x3a4fd7,before:_0x37bf11,change:_0x31c4d1}=this['_diffItems'][_0x313a01];if('removed'!=_0x31c4d1&&(_0x5250c1=_0x313a01),'element'!=_0x3a4fd7['type']||'container'!=_0x3a4fd7['category']||'added'==_0x31c4d1)continue;const _0x38d213=_0x37bf11?_0x37bf11['element']:_0x3a4fd7['element'];if(_0x3a4fd7['isStart']){const _0x128986=_0x253c5f['get'](_0x38d213),_0x2dbaf8=this['_diffItems'][_0x128986];('removed'==_0x31c4d1||'removed'==_0x2dbaf8['change'])&&_0x5250c1<_0x128986&&(this['_operationsData']['push']({'type':'unwrap','path':_0x38d213['getPath'](),'howMany':_0x38d213['maxOffset']+_0x4254ae[0x0]}),_0x4254ae['shift'](),_0x4254ae[0x0]+=_0x38d213['maxOffset']-0x1,_0x36d075['push'](_0x313a01),_0x36d075['push'](_0x128986));}else _0x253c5f['set'](_0x38d213,_0x313a01),_0x4254ae['unshift'](0x0);}_0x36d075['sort']((_0x170467,_0x4c4a9e)=>_0x4c4a9e-_0x170467),_0x36d075['forEach'](_0x41ad02=>{const _0x4a630f=this['_diffItems'][_0x41ad02];'removed'==_0x4a630f['change']?this['_diffItems']['splice'](_0x41ad02,0x1):(_0x4a630f['change']='added',delete _0x4a630f['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5166ac=[];for(let _0x575e68=0x0;_0x575e68<this['_diffItems']['length'];_0x575e68++){const {change:_0xb56f55,token:_0x5e13cd}=this['_diffItems'][_0x575e68];if('added'==_0xb56f55&&'element'==_0x5e13cd['type']&&'container'==_0x5e13cd['category']){if(_0x5e13cd['isStart'])_0x5166ac['push'](this['_path']['slice']());else{if(!_0x5e13cd['isStart']){const _0x33f0a3=_0x5166ac['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x33f0a3,'end':this['_path']['slice']()},'token':_0x5e13cd}),this['_path'][this['_path']['length']-0x1]=_0x33f0a3[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0xb56f55||this['_markDeletions'])&&this['_traverseOverItem'](_0x5e13cd);}}['_handleUnchanged'](_0x5e4790,_0x4535c8){for(let _0x30764a=0x0;_0x30764a<_0x5e4790['length'];_0x30764a++){const _0x14b319=_0x5e4790[_0x30764a];if('element'==_0x14b319['type']&&_0x14b319['isStart']){const _0x11239b=_0x4535c8[_0x30764a];'block'==_0x14b319['category']&&this['_handleElementRename'](_0x14b319['element'],_0x11239b['element'],this['_path']),this['_handleElementAttributeChanges'](_0x14b319['element'],_0x11239b['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x11239b);}else{if('element'!=_0x14b319['type']||_0x14b319['isStart']){if('text'==_0x14b319['type']){const _0x210587=this['_path']['slice'](),_0x30400e=[],_0x2ba4ec=[];for(;_0x5e4790[_0x30764a]&&'text'==_0x5e4790[_0x30764a]['type'];)_0x30400e['push'](_0x5e4790[_0x30764a]),_0x2ba4ec['push'](_0x4535c8[_0x30764a]),this['_path'][this['_path']['length']-0x1]+=_0x5e4790[_0x30764a]['data']['length'],_0x30764a++;_0x30764a--,this['_handleTextAttributeChanges'](_0x30400e,_0x2ba4ec,_0x210587);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x5db58c,_0x3ea376,_0x549c82){const _0x2e48e2=[],_0x10253c=[],_0x4d9cdf=_0x549c82['slice']();for(let _0x198d6e=0x0;_0x198d6e<_0x5db58c['length'];_0x198d6e++){const _0x1c5ad6=_0x5db58c[_0x198d6e],_0x445ec8=_0x549c82['slice']();if('element'!=_0x1c5ad6['type']||_0x1c5ad6['isStart'])'element'==_0x1c5ad6['type']&&_0x1c5ad6['isStart']?(_0x549c82['push'](0x0),_0x3ea376||this['_parents']['push'](_0x1c5ad6),_0x10253c['push']({'before':_0x445ec8,'after':_0x549c82['slice'](),'index':_0x198d6e})):_0x549c82[_0x549c82['length']-0x1]+=_0x1c5ad6['data']['length'];else{let _0x56395a;_0x549c82['pop'](),_0x549c82[_0x549c82['length']-0x1]++,_0x56395a=_0x3ea376?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x10253c['length']?_0x10253c['pop']():_0x2e48e2['push']({'before':_0x445ec8,'after':_0x549c82['slice'](),'index':_0x198d6e,'related':_0x56395a});}}if(_0x10253c['length']!==_0x2e48e2['length'])throw new _0x5e43ee('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x5db58c,'isRemove':_0x3ea376});const _0x28ea10=[{'after':_0x4d9cdf['slice'](),'index':-0x1},..._0x2e48e2,..._0x10253c,{'before':_0x549c82['slice'](),'index':_0x5db58c['length']}];if(_0x3ea376){for(let _0x48719c=_0x28ea10['length']-0x1;_0x48719c>=0x1;_0x48719c--){const _0x4242cf=_0x28ea10[_0x48719c-0x1]['after'],_0x344fd9=_0x28ea10[_0x48719c]['before'],_0x28af20=_0x344fd9[_0x344fd9['length']-0x1]-_0x4242cf[_0x4242cf['length']-0x1];_0x28af20&&(this['_operationsData']['push']({'type':'remove','path':_0x4242cf,'howMany':_0x28af20}),_0x344fd9[_0x344fd9['length']-0x1]-=_0x28af20);}for(const {before:_0x2a9250}of _0x2e48e2)this['_operationsData']['push']({'type':'merge','path':_0x2a9250});}else for(let _0x3693de=0x0;_0x3693de<_0x28ea10['length']-0x1;_0x3693de++){const _0xe87442=_0x28ea10[_0x3693de]['after'],_0xb6f7c8=_0x28ea10[_0x3693de+0x1]['before'],_0x466e30=_0x28ea10[_0x3693de]['index']+0x1,_0x230d48=_0x28ea10[_0x3693de+0x1]['index'];if(_0x466e30!==_0x230d48&&this['_operationsData']['push']({'type':'insert','path':_0xe87442,'tokens':_0x5db58c['slice'](_0x466e30,_0x230d48)}),_0x3693de<_0x2e48e2['length']){this['_operationsData']['push']({'type':'split','path':_0xb6f7c8});const _0x25acac=_0x5db58c[_0x10253c[_0x10253c['length']-0x1-_0x3693de]['index']],_0x165ff2=_0x2e48e2[_0x3693de]['after'],_0x5850bb=_0x2e48e2[_0x3693de]['related']['element'];this['_handleElementRename'](_0x5850bb,_0x25acac['element'],_0x165ff2),this['_handleElementAttributeChanges'](_0x5850bb,_0x25acac['element'],_0x165ff2);}}}['_traverseOverItem'](_0x4aa7e3){'element'==_0x4aa7e3['type']&&_0x4aa7e3['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x4aa7e3)):'element'!=_0x4aa7e3['type']||_0x4aa7e3['isStart']?'text'==_0x4aa7e3['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x4aa7e3['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x436126,_0x5ce462,_0x4f81fa){_0x436126['name']!=_0x5ce462['name']&&this['_operationsData']['push']({'type':'rename','path':_0x4f81fa['slice'](),'oldName':_0x436126['name'],'newName':_0x5ce462['name']});}['_handleElementAttributeChanges'](_0x181822,_0xcf2caf,_0x3f4c5e){const _0xe0d775=this['_getAttributeChanges'](_0x181822['getAttributes'](),_0xcf2caf['getAttributes']());for(const _0x266040 in _0xe0d775){const {oldValue:_0x13b69f,newValue:_0xb28907}=_0xe0d775[_0x266040];this['_operationsData']['push']({'type':'attribute','path':_0x3f4c5e['slice'](),'howMany':0x1,'key':_0x266040,'oldValue':_0x13b69f,'newValue':_0xb28907});}}['_handleTextAttributeChanges'](_0x2056ee,_0x585e99,_0xde7867){const _0x428f1d=this['_operationsData'],_0x164373=_0x2056ee[0x0]['parent'],_0x1e8217=_0x2056ee[0x0]['offset'],_0x4ca45d=_0x585e99[0x0]['parent'],_0x593ed4=_0x585e99[0x0]['offset'],_0x2419ea=_0x2056ee['reduce']((_0x36676e,_0x6ad430)=>_0x36676e+_0x6ad430['data']['length'],0x0),_0x4bb4fc=this['_getAttrsForOffsets'](_0x164373,_0x1e8217,_0x2419ea),_0x21a5ff=this['_getAttrsForOffsets'](_0x4ca45d,_0x593ed4,_0x2419ea),_0x471180={};for(let _0x4cd04f=0x0;_0x4cd04f<_0x2419ea;_0x4cd04f++){const _0x33bc7e=_0x4bb4fc[_0x1e8217+_0x4cd04f],_0x1b65c6=_0x21a5ff[_0x593ed4+_0x4cd04f],_0x3258a2=this['_getAttributeChanges'](_0x33bc7e,_0x1b65c6);for(const _0x4872fd in _0x471180)_0x3258a2[_0x4872fd]||_0x209966(_0x4872fd);for(const _0x219b61 in _0x3258a2){const {oldValue:_0x326ea1,newValue:_0x2a4050}=_0x3258a2[_0x219b61],_0x15ad14=_0x471180[_0x219b61];_0x15ad14?_0x15ad14['oldValue']==_0x326ea1&&_0x15ad14['newValue']==_0x2a4050?_0x15ad14['length']++:(_0x209966(_0x219b61),_0x471180[_0x219b61]={'oldValue':_0x326ea1,'newValue':_0x2a4050,'start':_0x4cd04f,'length':0x1}):_0x471180[_0x219b61]={'oldValue':_0x326ea1,'newValue':_0x2a4050,'start':_0x4cd04f,'length':0x1};}}for(const _0x1d7d5f in _0x471180)_0x209966(_0x1d7d5f);function _0x209966(_0x29152a){const _0x519282=_0x471180[_0x29152a],_0x445720=_0xde7867['slice']();_0x445720[_0x445720['length']-0x1]+=_0x519282['start'],_0x428f1d['push']({'type':'attribute','path':_0x445720,'howMany':_0x519282['length'],'key':_0x29152a,'oldValue':_0x519282['oldValue'],'newValue':_0x519282['newValue']}),delete _0x471180[_0x29152a];}}['_getAttributeChanges'](_0x341639,_0x48c7d9){const _0x7ed4ca={};for(const [_0x56ccbf,_0x1ba448]of _0x341639)_0x7ed4ca[_0x56ccbf]={'oldValue':JSON['stringify'](_0x1ba448),'newValue':'null'};for(const [_0x3f9a43,_0x4d3aa7]of _0x48c7d9){const _0x4038aa=JSON['stringify'](_0x4d3aa7);_0x7ed4ca[_0x3f9a43]?_0x7ed4ca[_0x3f9a43]['oldValue']==_0x4038aa?delete _0x7ed4ca[_0x3f9a43]:_0x7ed4ca[_0x3f9a43]['newValue']=_0x4038aa:_0x7ed4ca[_0x3f9a43]={'oldValue':'null','newValue':_0x4038aa};}return delete _0x7ed4ca[St],_0x7ed4ca;}['_getAttrsForOffsets'](_0x20de32,_0x1c4a56,_0x1495b3){const _0x52be30=new Array(_0x1c4a56+_0x1495b3);let _0x1a0b2f=_0x20de32['getChildAtOffset'](_0x1c4a56),_0x47f1c6=_0x1a0b2f['startOffset'];for(;_0x1a0b2f&&_0x47f1c6<_0x1c4a56+_0x1495b3;){const _0x48e26e=Array['from'](_0x1a0b2f['getAttributes']());_0x52be30['fill'](_0x48e26e,_0x47f1c6,_0x47f1c6+_0x1a0b2f['offsetSize']),_0x47f1c6+=_0x1a0b2f['offsetSize'],_0x1a0b2f=_0x1a0b2f['nextSibling'];}return _0x52be30;}['_getPositionFromAnchorAndPath'](_0xe8a5ab,_0x327e80){const _0x3a0622=[..._0xe8a5ab['path']['slice'](0x0,-0x1),_0xe8a5ab['offset']+_0x327e80[0x0],..._0x327e80['slice'](0x1)];return new _0x38ac5c(_0xe8a5ab['root'],_0x3a0622);}['_makeModelFromTokens'](_0x508772){const _0x4125d2=[];let _0x177e27=null;for(const _0xc690 of _0x508772)if('element'!=_0xc690['type']||_0xc690['isStart']||_0x177e27!=_0xc690['element']){if(!_0x177e27){if('text'==_0xc690['type']){const _0x97267c=_0x38ac5c['_createAt'](_0xc690['parent'],_0xc690['offset']),_0x5263fb=_0x2ece87['_createFromPositionAndShift'](_0x97267c,_0xc690['data']['length']),_0x36d327=Array['from'](_0x5263fb['getItems']())['map'](_0xb5f025=>new _0x559acd(_0xb5f025['data'],_0xb5f025['getAttributes']()));_0x4125d2['push'](..._0x36d327);}else{_0x177e27=_0xc690['element'];const _0x37f355=_0xc690['element']['_clone'](!0x0);_0x37f355['_removeAttribute'](St);for(const _0x4aa2aa of this['_editor']['model']['createRangeIn'](_0x37f355)['getItems']())_0x4aa2aa['is']('element')&&_0x4aa2aa['_removeAttribute'](St);_0x4125d2['push'](_0x37f355);}}}else _0x177e27=null;return _0x4125d2;}}function g(_0x55703e,_0x1e63d2){return _0x55703e['type']===_0x1e63d2['type']&&(_0x55703e['limitId']===_0x1e63d2['limitId']&&('text'==_0x55703e['type']?_0x55703e['data']==_0x1e63d2['data']:function(_0x3450c6,_0x57dc0a){if(_0x3450c6['isStart']!=_0x57dc0a['isStart'])return!0x1;if(_0x3450c6['isStart']&&_0x3450c6['elementId']!=_0x57dc0a['elementId'])return!0x1;if(_0x3450c6['category']!=_0x57dc0a['category'])return!0x1;if('block'==_0x3450c6['category'])return!0x0;if('container'==_0x3450c6['category']&&_0x3450c6['elementId']!=_0x57dc0a['elementId'])return!0x1;return _0x3450c6['element']['name']==_0x57dc0a['element']['name'];}(_0x55703e,_0x1e63d2)));}function _(_0x2c034b){return k({'name':_0x2c034b['name'],...Object['fromEntries'](_0x2c034b['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,xt as FOCUS_ANNOTATION_KEYSTROKE,ft as LateFocusButtonView,gt as LateFocusDropdownButtonView,C as Permissions,kt as SuggestionsConversion,ht as UserView,at as Users,mt as fixElementSuggestionRange,wt as getAllMarkersDomElementsSorted,pt as getDateTimeFormatter,yt as getMarkerDomElement,k as hashObject,Ct as sanitizeEditorConfig,It as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,_t as surroundingMarkersDetector,bt as trimHtml};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
|
3
|
-
"version": "47.3.0-alpha.
|
|
3
|
+
"version": "47.3.0-alpha.5",
|
|
4
4
|
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"type": "module",
|
|
33
33
|
"main": "src/index.js",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ckeditor/ckeditor5-engine": "47.3.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-comments": "47.3.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-core": "47.3.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "47.3.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-link": "47.3.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-list": "47.3.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-track-changes": "47.3.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-ui": "47.3.0-alpha.
|
|
44
|
-
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.
|
|
45
|
-
"@ckeditor/ckeditor5-widget": "47.3.0-alpha.
|
|
46
|
-
"ckeditor5": "47.3.0-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "47.3.0-alpha.5",
|
|
36
|
+
"@ckeditor/ckeditor5-comments": "47.3.0-alpha.5",
|
|
37
|
+
"@ckeditor/ckeditor5-core": "47.3.0-alpha.5",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "47.3.0-alpha.5",
|
|
39
|
+
"@ckeditor/ckeditor5-link": "47.3.0-alpha.5",
|
|
40
|
+
"@ckeditor/ckeditor5-list": "47.3.0-alpha.5",
|
|
41
|
+
"@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.5",
|
|
42
|
+
"@ckeditor/ckeditor5-track-changes": "47.3.0-alpha.5",
|
|
43
|
+
"@ckeditor/ckeditor5-ui": "47.3.0-alpha.5",
|
|
44
|
+
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.5",
|
|
45
|
+
"@ckeditor/ckeditor5-widget": "47.3.0-alpha.5",
|
|
46
|
+
"ckeditor5": "47.3.0-alpha.5",
|
|
47
47
|
"diff": "8.0.2",
|
|
48
48
|
"luxon": "3.6.1",
|
|
49
49
|
"@types/luxon": "3.6.2"
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ce57c=_0x378d;function _0x3a79(){const _0x533f53=['1755531ZupibW','7699870cxdeSP','alignment','314mijlhI','registerBlockAttribute','6448834zoBgZt','2437902MFYoWz','get','SuggestionsConversion','89490vSMKTg','5109162WfgJFR','plugins','AlignmentEditing','40VrechC','152HwyhBM','has','afterInit','2780pyRxhY','editor'];_0x3a79=function(){return _0x533f53;};return _0x3a79();}(function(_0x21b371,_0x41c001){const _0x116695=_0x378d,_0x28627e=_0x21b371();while(!![]){try{const _0x289dc5=-parseInt(_0x116695(0x169))/0x1*(-parseInt(_0x116695(0x15b))/0x2)+-parseInt(_0x116695(0x16b))/0x3+-parseInt(_0x116695(0x166))/0x4*(-parseInt(_0x116695(0x161))/0x5)+-parseInt(_0x116695(0x162))/0x6+-parseInt(_0x116695(0x15d))/0x7+parseInt(_0x116695(0x165))/0x8*(parseInt(_0x116695(0x15e))/0x9)+parseInt(_0x116695(0x16c))/0xa;if(_0x289dc5===_0x41c001)break;else _0x28627e['push'](_0x28627e['shift']());}catch(_0x49151d){_0x28627e['push'](_0x28627e['shift']());}}}(_0x3a79,0xd7933));import{Plugin as _0x30216d}from'ckeditor5/src/core.js';function _0x378d(_0x3b702d,_0x2874ec){const _0x3a792b=_0x3a79();return _0x378d=function(_0x378d62,_0x5cd2da){_0x378d62=_0x378d62-0x15a;let _0x351a98=_0x3a792b[_0x378d62];return _0x351a98;},_0x378d(_0x3b702d,_0x2874ec);}export class SuggestionsConversionAlignment extends _0x30216d{[_0x5ce57c(0x168)](){const _0x17a226=_0x5ce57c,_0x5ef11b=this[_0x17a226(0x16a)];if(!_0x5ef11b[_0x17a226(0x163)][_0x17a226(0x167)](_0x17a226(0x164)))return;_0x5ef11b[_0x17a226(0x163)][_0x17a226(0x15f)](_0x17a226(0x160))[_0x17a226(0x15c)](_0x17a226(0x15a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cf5e5=_0x1ba4;(function(_0x1bac12,_0x425041){const _0x57b066=_0x1ba4,_0x1c7cca=_0x1bac12();while(!![]){try{const _0x2efaa5=parseInt(_0x57b066(0x93))/0x1+-parseInt(_0x57b066(0x9e))/0x2+-parseInt(_0x57b066(0x8f))/0x3*(parseInt(_0x57b066(0x8a))/0x4)+-parseInt(_0x57b066(0x98))/0x5+-parseInt(_0x57b066(0x96))/0x6+parseInt(_0x57b066(0x8c))/0x7*(-parseInt(_0x57b066(0x94))/0x8)+parseInt(_0x57b066(0xa0))/0x9;if(_0x2efaa5===_0x425041)break;else _0x1c7cca['push'](_0x1c7cca['shift']());}catch(_0x13ddcc){_0x1c7cca['push'](_0x1c7cca['shift']());}}}(_0x124a,0xaa96e));import{Plugin as _0x15912a}from'ckeditor5/src/core.js';const ii=[_0x4cf5e5(0x8d),_0x4cf5e5(0x9b),_0x4cf5e5(0x97),_0x4cf5e5(0x9d),_0x4cf5e5(0x8b),_0x4cf5e5(0x92),_0x4cf5e5(0x8e)];function _0x1ba4(_0x2c5947,_0x3f9a73){const _0x124a04=_0x124a();return _0x1ba4=function(_0x1ba413,_0x18e14f){_0x1ba413=_0x1ba413-0x88;let _0x55add1=_0x124a04[_0x1ba413];return _0x55add1;},_0x1ba4(_0x2c5947,_0x3f9a73);}export class SuggestionsConversionBasicStyles extends _0x15912a{[_0x4cf5e5(0x91)](){const _0x33e570=_0x4cf5e5,_0x16fae6=this[_0x33e570(0x9c)],_0x2d3464=_0x16fae6[_0x33e570(0x89)][_0x33e570(0x95)](_0x33e570(0x88));for(const _0x336156 of ii){if(!_0x16fae6[_0x33e570(0x89)][_0x33e570(0x9f)](_0x336156))continue;const _0xb81404=_0x336156[_0x33e570(0x99)](0x0,-0x7)[_0x33e570(0x90)]();_0x2d3464[_0x33e570(0x9a)](_0xb81404);}}}function _0x124a(){const _0x2c0420=['toLowerCase','afterInit','SubscriptEditing','974891uikRXc','672HzzcQJ','get','5915004voXWeR','UnderlineEditing','5583450TbPvpq','slice','registerInlineAttribute','ItalicEditing','editor','CodeEditing','253484VqQPOj','has','29427876UYTEJd','SuggestionsConversion','plugins','402020XkGMMX','StrikethroughEditing','84595sfZvma','BoldEditing','SuperscriptEditing','9CDORoG'];_0x124a=function(){return _0x2c0420;};return _0x124a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2398dc=_0xf38a;function _0x44f0(){const _0xd6a52f=['11SjDFpZ','plugins','SuggestionsConversion','get','12707928ZmbqWp','BookmarkEditing','has','6MoYtLy','bookmarkId','6399984nCKjdN','registerBlockAttribute','63704ptamjQ','292FTDJVC','1890376lClDnS','afterInit','10730730fGMOPU','7547tVeeOE','1014lvFnia','217zysZtA','editor','20635uhVhuW'];_0x44f0=function(){return _0xd6a52f;};return _0x44f0();}(function(_0x1b2a7f,_0x1f79ec){const _0x5641d8=_0xf38a,_0x1523a6=_0x1b2a7f();while(!![]){try{const _0x559ffe=-parseInt(_0x5641d8(0x111))/0x1*(parseInt(_0x5641d8(0x10d))/0x2)+parseInt(_0x5641d8(0x108))/0x3*(parseInt(_0x5641d8(0x10e))/0x4)+-parseInt(_0x5641d8(0x100))/0x5*(parseInt(_0x5641d8(0xfd))/0x6)+parseInt(_0x5641d8(0xfe))/0x7*(-parseInt(_0x5641d8(0x10c))/0x8)+parseInt(_0x5641d8(0x105))/0x9+-parseInt(_0x5641d8(0x110))/0xa*(-parseInt(_0x5641d8(0x101))/0xb)+-parseInt(_0x5641d8(0x10a))/0xc;if(_0x559ffe===_0x1f79ec)break;else _0x1523a6['push'](_0x1523a6['shift']());}catch(_0x53b805){_0x1523a6['push'](_0x1523a6['shift']());}}}(_0x44f0,0xcfb37));function _0xf38a(_0x15d565,_0x1c9ab7){const _0x44f0f6=_0x44f0();return _0xf38a=function(_0xf38acd,_0x1e496e){_0xf38acd=_0xf38acd-0xfd;let _0x559807=_0x44f0f6[_0xf38acd];return _0x559807;},_0xf38a(_0x15d565,_0x1c9ab7);}import{Plugin as _0x2b8ed0}from'ckeditor5/src/core.js';export class SuggestionsConversionBookmark extends _0x2b8ed0{[_0x2398dc(0x10f)](){const _0x3306a0=_0x2398dc,_0x59f233=this[_0x3306a0(0xff)],_0x22726e=_0x59f233[_0x3306a0(0x102)][_0x3306a0(0x104)](_0x3306a0(0x103));_0x59f233[_0x3306a0(0x102)][_0x3306a0(0x107)](_0x3306a0(0x106))&&_0x22726e[_0x3306a0(0x10b)](_0x3306a0(0x109));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcd0c0e=_0x2985;(function(_0x3e16de,_0x31bef4){const _0x3efcfe=_0x2985,_0x4bf31f=_0x3e16de();while(!![]){try{const _0x1f0ca9=-parseInt(_0x3efcfe(0xda))/0x1+-parseInt(_0x3efcfe(0xdc))/0x2+parseInt(_0x3efcfe(0xdb))/0x3+parseInt(_0x3efcfe(0xd0))/0x4*(-parseInt(_0x3efcfe(0xe0))/0x5)+parseInt(_0x3efcfe(0xd4))/0x6+parseInt(_0x3efcfe(0xca))/0x7*(-parseInt(_0x3efcfe(0xd1))/0x8)+parseInt(_0x3efcfe(0xd7))/0x9;if(_0x1f0ca9===_0x31bef4)break;else _0x4bf31f['push'](_0x4bf31f['shift']());}catch(_0x4487a6){_0x4bf31f['push'](_0x4bf31f['shift']());}}}(_0x7984,0xf3b95));import{Plugin as _0x9f7766}from'ckeditor5/src/core.js';function _0x2985(_0x1e9c78,_0x3856c7){const _0x7984d9=_0x7984();return _0x2985=function(_0x298511,_0xfcbacd){_0x298511=_0x298511-0xc9;let _0x123e4c=_0x7984d9[_0x298511];return _0x123e4c;},_0x2985(_0x1e9c78,_0x3856c7);}const no=[{'pluginName':_0xcd0c0e(0xd6),'commandName':_0xcd0c0e(0xdd)},{'pluginName':_0xcd0c0e(0xcc),'commandName':_0xcd0c0e(0xdf)},{'pluginName':_0xcd0c0e(0xde),'commandName':_0xcd0c0e(0xcb)},{'pluginName':_0xcd0c0e(0xd5),'commandName':_0xcd0c0e(0xc9)}];function _0x7984(){const _0x5c8584=['8UapbuJ','289392pXgcTs','get','plugins','2819862BegUsf','FontBackgroundColorEditing','FontSizeEditing','27491544JkPFYo','has','registerInlineAttribute','1154734WFiqVa','2224482mquYSs','2214396iXGZlO','fontSize','FontColorEditing','fontFamily','344215vSqoVS','fontBackgroundColor','168XqADGY','fontColor','FontFamilyEditing','SuggestionsConversion','editor','afterInit'];_0x7984=function(){return _0x5c8584;};return _0x7984();}export class SuggestionsConversionFont extends _0x9f7766{[_0xcd0c0e(0xcf)](){const _0x53e1de=_0xcd0c0e,_0x40051d=this[_0x53e1de(0xce)][_0x53e1de(0xd3)][_0x53e1de(0xd2)](_0x53e1de(0xcd));for(const {pluginName:_0x211f86,commandName:_0x25573d}of no)this[_0x53e1de(0xce)][_0x53e1de(0xd3)][_0x53e1de(0xd8)](_0x211f86)&&_0x40051d[_0x53e1de(0xd9)](_0x25573d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x368a(){const _0x3d4da7=['77shFPEI','get','1328400ITZcEl','afterInit','HighlightEditing','1291gWusAb','2336820fDXwLm','4656510mbiISU','224yyvHMk','SuggestionsConversion','5TJCrMA','registerInlineAttribute','3460044gyonvP','highlight','28lwnpGw','142338vzGbiJ','1168450ZaoqiM','plugins','has','editor'];_0x368a=function(){return _0x3d4da7;};return _0x368a();}const _0x2683b4=_0x2b80;(function(_0x3c8080,_0x41dd62){const _0x44ac38=_0x2b80,_0x4eebd5=_0x3c8080();while(!![]){try{const _0x53976b=parseInt(_0x44ac38(0x19b))/0x1*(parseInt(_0x44ac38(0x1a4))/0x2)+-parseInt(_0x44ac38(0x1ac))/0x3+parseInt(_0x44ac38(0x19c))/0x4+parseInt(_0x44ac38(0x1a0))/0x5*(-parseInt(_0x44ac38(0x1a2))/0x6)+parseInt(_0x44ac38(0x1a5))/0x7*(parseInt(_0x44ac38(0x19e))/0x8)+-parseInt(_0x44ac38(0x19d))/0x9+parseInt(_0x44ac38(0x1a6))/0xa*(parseInt(_0x44ac38(0x1aa))/0xb);if(_0x53976b===_0x41dd62)break;else _0x4eebd5['push'](_0x4eebd5['shift']());}catch(_0x6f2aed){_0x4eebd5['push'](_0x4eebd5['shift']());}}}(_0x368a,0x6e84a));function _0x2b80(_0x47f406,_0x26d7c2){const _0x368af7=_0x368a();return _0x2b80=function(_0x2b80b4,_0x111ad4){_0x2b80b4=_0x2b80b4-0x19a;let _0x4a41ff=_0x368af7[_0x2b80b4];return _0x4a41ff;},_0x2b80(_0x47f406,_0x26d7c2);}import{Plugin as _0x311041}from'ckeditor5/src/core.js';export class SuggestionsConversionHighlight extends _0x311041{[_0x2683b4(0x1ad)](){const _0x1129e6=_0x2683b4,_0x2c18cf=this[_0x1129e6(0x1a9)];if(!_0x2c18cf[_0x1129e6(0x1a7)][_0x1129e6(0x1a8)](_0x1129e6(0x19a)))return;_0x2c18cf[_0x1129e6(0x1a7)][_0x1129e6(0x1ab)](_0x1129e6(0x19f))[_0x1129e6(0x1a1)](_0x1129e6(0x1a3));}}
|