@ckeditor/ckeditor5-collaboration-core 47.4.0-alpha.0 → 47.4.0-alpha.1

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 CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ContextPlugin as _0x27d944,Editor as _0x329dde,Plugin as _0x21a22e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x90c6c0,Collection as _0x1ea1b8,uid as _0x4e4fcc,toArray as rt,first as _0x48cf0c,FocusTracker as ts,KeystrokeHandler as _0x31a2ee}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x1d95e2,IconView as st,ButtonView as _0x389e94,DropdownButtonView as _0x4f0bb3,FocusCycler as _0x3181ad,isViewWithFocusCycler as _0x2708bc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as it,IconCheck as _0xf1bfe9,IconCancel as _0x189283}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as at,toWidget as _0x33fdd7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x2aec8f,MoveOperation as _0x33557f,ModelPosition as _0x4e03e0,ModelRange as _0x2a6799,MarkerOperation as _0x4b862f,MergeOperation as _0x343569,SplitOperation as _0x202f46,RenameOperation as _0x437279,AttributeOperation as _0x368e4f,ModelTreeWalker as _0x4c9efb,ModelText as _0x33a328}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x55d5be}from'diff';class C extends _0x27d944{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x487e0e,_0x42210c){let _0x3c7e05;if(_0x42210c||(_0x42210c=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x42210c?_0x3c7e05=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x3c7e05=this['context']['editors']['find'](_0x1d9e82=>_0x1d9e82['config']['get']('collaboration.channelId')==_0x42210c)),!_0x3c7e05)throw new _0x90c6c0('permissions-set-permissions-invalid-channel-id',null);const _0x1e03eb=_0x3c7e05['plugins'],_0x3f0327=_0x1e03eb['has']('CommentsRepository')?_0x1e03eb['get']('CommentsRepository'):void 0x0,_0xf03491=_0x1e03eb['has']('CommentsOnly')&&_0x1e03eb['get']('CommentsOnly'),_0x453772=_0x487e0e['includes']('document:write'),_0x45841d=_0x487e0e['includes']('comment:modify_all'),_0x185f7c=_0x487e0e['includes']('comment:admin'),_0x256760=_0x487e0e['includes']('comment:write'),_0x14e812=_0x256760||_0x185f7c,_0x50b8fb=_0x14e812||_0x45841d,_0x39aa30=_0x453772||_0x14e812;(_0xf03491&&(_0xf03491['isEnabled']=!_0x453772&&_0x50b8fb),_0x3c7e05 instanceof _0x329dde)&&(!(_0x453772||_0x50b8fb&&_0x3f0327)?_0x3c7e05['enableReadOnlyMode']('no-permissions'):_0x3c7e05['disableReadOnlyMode']('no-permissions'));if(_0x3f0327){_0x3f0327['setPermissions']({'admin':_0x185f7c,'modifyAll':_0x45841d,'write':_0x256760,'resolve':_0x39aa30},_0x42210c);const _0x2c07d6=_0x3c7e05 instanceof _0x329dde&&_0x3c7e05['commands']['get']('addCommentThread');_0x2c07d6&&(_0x14e812?_0x2c07d6['clearForceDisabled']('noPermissions'):_0x2c07d6['forceDisabled']('noPermissions'));}}}function U(_0xd1a2bf,_0x2ca292){const t=_0xd1a2bf['t'];switch(_0x2ca292){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 ct extends _0x27d944{['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(_0x186731){super(_0x186731),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x1ea1b8(),this['_locale']=_0x186731['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:_0x3641f2,name:_0x4e9e3f,..._0x5e7d20}){if(!_0x3641f2||'string'!=typeof _0x3641f2)throw new _0x90c6c0('users-add-invalid-id');if(this['users']['has'](_0x3641f2))throw new _0x90c6c0('users-add-duplicated-id',null,{'id':_0x3641f2});const _0xeccfbf=this['context']['config']['get']('users.getInitialsCallback'),_0x12678c={..._0x5e7d20,'id':_0x3641f2,'name':A(this['_locale'],_0x4e9e3f),'color':this['_getNextColor']()};_0x12678c['name']=A(this['_locale'],_0x12678c['name']);const _0x139d98=new lt(_0x12678c,_0xeccfbf);return this['users']['add'](_0x139d98),_0x139d98;}['getUser'](_0x4c3b8d){return this['users']['get'](_0x4c3b8d);}['useAnonymousUser'](){const _0x502a24=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x502a24);}['defineMe'](_0x51dadc){if(this['_myId'])throw new _0x90c6c0('users-me-already-defined',null);const _0x39a742=this['getUser'](_0x51dadc);if(!_0x39a742)throw new _0x90c6c0('users-me-missing-user',null);this['_myId']=_0x51dadc,_0x39a742['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x36ee28=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x36ee28&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x3d3f26=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3d3f26,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x1c4c85,_0x47359d){this['id']=_0x1c4c85['id'],this['color']=_0x1c4c85['color'],this['name']=_0x1c4c85['name'],this['initials']=_0x47359d?_0x47359d(this['name']):this['_computeInitials'](),this['avatar']=_0x1c4c85['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x8fc6a8=this['name']['split']('\x20')['filter'](_0x4ce352=>/^[\p{Letter}]/u['test'](_0x4ce352));return 0x1===_0x8fc6a8['length']?this['_getInitial'](_0x8fc6a8[0x0]):0x0===_0x8fc6a8['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x8fc6a8[0x0])+this['_getInitial'](_0x8fc6a8[_0x8fc6a8['length']-0x1]);}['_getInitial'](_0x24d1aa){return String['fromCodePoint'](_0x24d1aa['codePointAt'](0x0))['toUpperCase']();}}function A(_0x3825cb,_0x3225d1=''){return''==(_0x3225d1=_0x3225d1['trim']())?U(_0x3825cb,'Anonymous'):_0x3225d1;}class ut{['_id'];constructor(_0x3eba6e){this['_id']=_0x3eba6e;}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 _0x1d95e2{['name'];['notificationView'];constructor(_0x414178,_0x584687,_0x269cd1){super(_0x414178),this['name']=_0x584687['name'],this['notificationView']=null;const _0x50364e=['ck','ck-user'],_0x325f39=['ck','ck-user__img'];if(_0x584687['isAnonymous']&&_0x325f39['push']('ck-user__anonymous'),!_0x584687['isAnonymous']&&_0x584687['isMe']&&_0x50364e['push']('ck-user_me'),_0x584687['avatar']&&_0x325f39['push']('ck-user__avatar'),_0x269cd1){const _0x28d323=new st();_0x28d323['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x28d323['content']=it,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x269cd1},'children':[_0x28d323]};}const _0x1eaada=[{'tag':'div','attributes':{'class':_0x325f39,'style':{'background-image':_0x584687['avatar']?'url(\x27'+_0x584687['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x584687['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x584687['name']},'children':[{'text':_0x584687['initials']}]}];this['notificationView']&&_0x1eaada['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x50364e,'data-user-id':_0x584687['id']},'children':_0x1eaada});}}class dt extends _0x1d95e2{['id'];constructor(_0x296371,_0x352bdb){super(_0x296371),this['id']='ck-aria-description-'+_0x4e4fcc(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x352bdb}]});}}class ft extends _0x389e94{['render'](){super['render'](),re(this);}}class gt extends _0x4f0bb3{['render'](){super['render'](),re(this);}}function re(_0x53de8f){_0x53de8f['listenTo'](_0x53de8f['element'],'mousedown',(_0x4acd02,_0x374aba)=>{_0x374aba['stopPropagation'](),_0x374aba['preventDefault']();}),_0x53de8f['listenTo'](_0x53de8f['element'],'mouseup',()=>{_0x53de8f['element']['focus']();});}function v(_0x43edc3){const _0x50f6d3=_0x43edc3['split'](':');return{'group':_0x50f6d3[0x0],'type':_0x50f6d3[0x1],'subType':_0x50f6d3['length']>=0x5?_0x50f6d3[0x2]:null,'id':_0x50f6d3['length']<0x5?_0x50f6d3[0x2]:_0x50f6d3[0x3],'authorId':_0x50f6d3['length']<0x5?_0x50f6d3[0x3]:_0x50f6d3[0x4],'markerCount':0x6==_0x50f6d3['length']?_0x50f6d3[0x5]:null};}function mt(_0x1fffc9,_0x220de2){const _0x454a6d=_0x1fffc9['end']['nodeBefore'];if(_0x454a6d&&_0x454a6d['is']('element')&&_0x220de2['schema']['isBlock'](_0x454a6d)&&!_0x220de2['schema']['isObject'](_0x454a6d)){const _0x2684ef=_0x220de2['createPositionAt'](_0x454a6d,'end');return _0x220de2['createRange'](_0x1fffc9['start'],_0x2684ef);}return _0x1fffc9;}class M extends _0x21a22e{['afterInit'](){const _0x440ff0=this['editor'];if(!_0x440ff0['plugins']['has']('AlignmentEditing'))return;_0x440ff0['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x21a22e{['afterInit'](){const _0xdc01ed=this['editor'],_0xdea34f=_0xdc01ed['plugins']['get']('SuggestionsConversion');for(const _0x56bee0 of ii){if(!_0xdc01ed['plugins']['has'](_0x56bee0))continue;const _0x55dd4e=_0x56bee0['slice'](0x0,-0x7)['toLowerCase']();_0xdea34f['registerInlineAttribute'](_0x55dd4e);}}}class I extends _0x21a22e{['afterInit'](){const _0x28cfd2=this['editor'],_0x46491d=_0x28cfd2['plugins']['get']('SuggestionsConversion');_0x28cfd2['plugins']['has']('BookmarkEditing')&&_0x46491d['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x21a22e{['afterInit'](){const _0x22928f=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x58402c,commandName:_0x4032ba}of no)this['editor']['plugins']['has'](_0x58402c)&&_0x22928f['registerInlineAttribute'](_0x4032ba);}}class T extends _0x21a22e{['afterInit'](){const _0x13f1a2=this['editor'];if(!_0x13f1a2['plugins']['has']('HighlightEditing'))return;_0x13f1a2['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x21a22e{['afterInit'](){const _0x51a3ee=this['editor'];if(!_0x51a3ee['plugins']['has']('HtmlEmbed'))return;_0x51a3ee['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x21a22e{['afterInit'](){const _0x4debee=this['editor'];if(!_0x4debee['plugins']['has']('ImageEditing'))return;const _0x328df3=_0x4debee['plugins']['get']('SuggestionsConversion');_0x328df3['registerBlockAttribute']('src'),_0x4debee['plugins']['has']('ImageResize')&&_0x328df3['registerBlockAttribute']('resizedWidth'),_0x4debee['plugins']['has']('ImageTextAlternativeEditing')&&_0x328df3['registerBlockAttribute']('alt'),_0x4debee['plugins']['has']('PictureEditing')&&_0x328df3['registerBlockAttribute']('sources'),_0x4debee['plugins']['has']('ImageSizeAttributes')&&(_0x328df3['registerBlockAttribute']('width'),_0x328df3['registerBlockAttribute']('height'));}}class $ extends _0x21a22e{['afterInit'](){const _0x34e57b=this['editor'],_0x511d55=_0x34e57b['plugins']['get']('SuggestionsConversion');_0x34e57b['plugins']['has']('IndentBlock')&&_0x511d55['registerBlockAttribute']('blockIndent');}}class x extends _0x21a22e{['afterInit'](){const _0x432a1f=this['editor'];if(!_0x432a1f['plugins']['has']('LineHeight'))return;_0x432a1f['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x21a22e{['afterInit'](){const _0x2947f3=this['editor'];if(!_0x2947f3['plugins']['has']('LinkEditing'))return;const _0x3f0001=_0x2947f3['plugins']['get']('SuggestionsConversion'),_0x4b5b60=_0x2947f3['commands']['get']('link');_0x3f0001['registerInlineAttribute']('linkHref');for(const _0x1d4a68 of _0x4b5b60['manualDecorators'])_0x3f0001['registerInlineAttribute'](_0x1d4a68['id']);}}class N extends _0x21a22e{['afterInit'](){const _0x40d769=this['editor'];if(!_0x40d769['plugins']['has']('ListEditing'))return;const _0x51f42d=_0x40d769['plugins']['get']('SuggestionsConversion'),_0x305841=_0x40d769['plugins']['has']('TodoListEditing');_0x51f42d['registerBlockAttribute']('listItemId'),_0x51f42d['registerBlockAttribute']('listType'),_0x51f42d['registerBlockAttribute']('listIndent'),_0x305841&&_0x51f42d['registerBlockAttribute']('todoListChecked');}}class P extends _0x21a22e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x30dc72=this['editor']['config']['get']('list.properties'),_0x808074=this['editor']['plugins']['get']('SuggestionsConversion');_0x30dc72['styles']&&_0x808074['registerBlockAttribute']('listStyle'),_0x30dc72['reversed']&&_0x808074['registerBlockAttribute']('listReversed'),_0x30dc72['startIndex']&&_0x808074['registerBlockAttribute']('listStart');}}class K extends _0x21a22e{['afterInit'](){const _0x5f3aca=this['editor'],_0x1ea43e=_0x5f3aca['plugins']['get']('SuggestionsConversion');_0x5f3aca['plugins']['has']('MultiLevelList')&&_0x1ea43e['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x21a22e{['afterInit'](){const _0x576e68=this['editor'];if(!_0x576e68['plugins']['has']('Style')||!_0x576e68['plugins']['has']('DataSchema')||!_0x576e68['config']['get']('style.definitions'))return;const _0x2bdceb=_0x576e68['plugins']['get']('SuggestionsConversion'),_0x4aef9c=_0x576e68['config']['get']('style.definitions'),_0x1cdb5f=_0x576e68['plugins']['get']('GeneralHtmlSupport'),_0x2b1b00=_0x576e68['plugins']['get']('StyleUtils')['normalizeConfig'](_0x576e68['plugins']['get']('DataSchema'),_0x4aef9c),_0x12fa6d=new Set();for(const _0x5d8dc7 of _0x2b1b00['block']){const _0x2f8be4=_0x1cdb5f['getGhsAttributeNameForElement'](_0x5d8dc7['element']);_0x12fa6d['add'](_0x2f8be4);}const _0x253b68=new Set();for(const _0x51b421 of _0x2b1b00['inline']){const _0x3fe1b1=_0x1cdb5f['getGhsAttributeNameForElement'](_0x51b421['element']);_0x253b68['add'](_0x3fe1b1);for(const _0x33b641 of _0x51b421['ghsAttributes'])_0x253b68['add'](_0x33b641);}for(const _0x3dbd19 of _0x12fa6d)_0x2bdceb['registerBlockAttribute'](_0x3dbd19);for(const _0x490cfb of _0x253b68)_0x2bdceb['registerInlineAttribute'](_0x490cfb);}}class z extends _0x21a22e{['afterInit'](){const _0x2fe2aa=this['editor'];if(!_0x2fe2aa['plugins']['has']('TableEditing'))return;const _0xcc9c23=_0x2fe2aa['plugins']['get']('SuggestionsConversion');_0xcc9c23['registerBlockAttribute']('headingRows'),_0xcc9c23['registerBlockAttribute']('headingColumns');}}class O extends _0x21a22e{['afterInit'](){const _0x107e9a=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x1f9f8a=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x15b7fc of _0x1f9f8a)_0x107e9a['registerBlockAttribute'](_0x15b7fc);}}class R extends _0x21a22e{['afterInit'](){const _0x778acc=this['editor'],_0x50a4d4=_0x778acc['plugins']['get']('SuggestionsConversion');_0x778acc['plugins']['has']('TableLayout')&&_0x50a4d4['registerBlockAttribute']('tableType');}}class F extends _0x21a22e{['afterInit'](){const _0x889e2=this['editor'],_0x580dc6=this['editor']['plugins']['get']('SuggestionsConversion');_0x889e2['plugins']['has']('Uploadcare')&&_0x889e2['plugins']['has']('UploadcareImageEdit')&&_0x580dc6['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x21a22e{['afterInit'](){const _0x136aba=this['editor'];if(!_0x136aba['plugins']['has']('ShiftEnter'))return;const _0x53ab9d=_0x136aba['plugins']['get']('SuggestionsConversion'),_0x3220c8=(_0x5c3d2a,_0x18ad64,_0x395068,_0x1cbdf6)=>{if(_0x1cbdf6&&!_0x395068['options']['showSuggestionHighlights'])return;if(!_0x395068['consumable']['test'](_0x18ad64['markerRange'],_0x5c3d2a['name']))return;const _0x2ab949=_0x136aba['model'];for(const _0x3d7c6d of _0x18ad64['markerRange']['getItems']()){if(!_0x3d7c6d['is']('element','softBreak'))continue;const _0x299fb3='deletion'==_0x18ad64['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x49117f,authorId:_0x395913}=v(_0x18ad64['markerName']),_0x2d9b05=_0x395068['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x299fb3,'data-suggestion':_0x49117f,'data-author-id':_0x395913}),_0x3cbbc6=_0x395068['mapper']['toViewPosition'](_0x2ab949['createPositionBefore'](_0x3d7c6d));!_0x1cbdf6&&_0x53ab9d['_activeMarkers']['includes'](_0x18ad64['markerName'])&&_0x395068['writer']['addClass']('ck-suggestion-marker--active',_0x2d9b05),_0x395068['writer']['insert'](_0x3cbbc6,_0x2d9b05),_0x395068['mapper']['bindElementToMarker'](_0x2d9b05,_0x18ad64['markerName']);}};_0x136aba['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0xfdad87,_0x25c53c,_0x38b67e)=>{_0x3220c8(_0xfdad87,_0x25c53c,_0x38b67e,!0x1);},{'priority':'high'}),_0x136aba['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d5ba7,_0x126796,_0x232b33)=>{_0x3220c8(_0x3d5ba7,_0x126796,_0x232b33,!0x0);},{'priority':'high'});}}class J extends _0x21a22e{['afterInit'](){const _0x45495f=this['editor'];_0x45495f['plugins']['has']('MediaEmbedEditing')&&(_0x45495f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x206c3e,{writer:_0x1358a9,options:_0x2c2593})=>{if(_0x2c2593['showSuggestionHighlights'])return _0x1358a9['createEmptyElement']('div');},'converterPriority':'high'}),_0x45495f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x114c98,_0x261b8e,_0x647afd)=>{_0x647afd['options']['showSuggestionHighlights']&&_0x114c98['stop']();},{'priority':'high'}));}}class L extends _0x21a22e{['afterInit'](){const _0x12c4ed=this['editor'];if(!_0x12c4ed['plugins']['has']('Table'))return;_0x12c4ed['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5efb12,_0x372d8f,_0x56feda)=>{((_0xb20a78,_0x3e5b2c,_0x1f3834)=>{if(!_0x1f3834['options']['showSuggestionHighlights'])return;const _0x3dab59=_0x3e5b2c['item'];if(!_0x3dab59||!_0x3dab59['is']('element','tableCell'))return;const _0xab258f=_0x1f3834['mapper']['toViewElement'](_0x3dab59);if(_0xab258f){const {id:_0x279c78,authorId:_0x4ccc9b}=v(_0x3e5b2c['markerName']);at(_0xab258f,_0x1f3834['writer'],(_0x242772,_0x41d634,_0x562732)=>{_0x562732['addClass'](rt(_0x41d634['classes']),_0x242772),_0x562732['setAttribute']('data-suggestion-id',_0x279c78,_0x242772),_0x562732['setAttribute']('data-author-id',_0x4ccc9b,_0x242772);});}})(0x0,_0x372d8f,_0x56feda);},{'priority':'highest'});}}class Q extends _0x21a22e{['afterInit'](){const _0x77a47f=this['editor'];_0x77a47f['plugins']['has']('HorizontalLineEditing')&&_0x77a47f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x27cf21,{writer:_0x841b97,options:_0x8d02c4})=>{if(!_0x8d02c4['showSuggestionHighlights'])return null;const _0x38c2f4=_0x841b97['createContainerElement']('div'),_0x50dc62=_0x841b97['createEmptyElement']('hr');return _0x841b97['addClass']('ck-horizontal-line',_0x38c2f4),_0x841b97['insert'](_0x841b97['createPositionAt'](_0x38c2f4,0x0),_0x50dc62),_0x38c2f4;},'converterPriority':'high'});}}class kt extends _0x21a22e{['_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 _0x51639c=this['editor'],_0x3c896c=(_0x36bb0e,_0x2e19b0,_0x42e722)=>{const {id:_0x252861,authorId:_0x5404ad,type:_0x54c4be,subType:_0x52d858}=v(_0x36bb0e['markerName']),_0x3f8c02=['ck-suggestion-marker',this['_getClassName'](_0x54c4be,_0x52d858)];let _0x9f504=0xbb8;return!_0x42e722&&(this['_activeMarkers']['includes'](_0x36bb0e['markerName'])&&(_0x3f8c02['push']('ck-suggestion-marker--active'),_0x9f504=0xbc2)),('deletion'==_0x54c4be&&(_0x9f504+=0x5),{'classes':_0x3f8c02,'attributes':{'data-suggestion':_0x252861,'data-author-id':_0x5404ad},'priority':_0x9f504});};_0x51639c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4d577c,_0x30f7d1)=>_0x3c896c(_0x4d577c,0x0,!0x1)}),_0x51639c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x39e1c4,_0xeeab7)=>_0x3c896c(_0x39e1c4,0x0,!0x0)}),_0x51639c['conversion']['for']('dataDowncast')['add'](_0x50acba=>{_0x50acba['on']('addMarker:suggestion',(_0x406494,_0x1dbdb8,_0x45c380)=>{if(!_0x45c380['options']['showSuggestionHighlights'])return;const _0x503917=_0x1dbdb8['item'];if(!_0x503917)return;const _0x4f6680=_0x45c380['mapper']['toViewElement'](_0x503917);_0x51639c['model']['schema']['isObject'](_0x503917)&&_0x4f6680&&!_0x4f6680['getCustomProperty']('widget')&&_0x4f6680['is']('containerElement')&&_0x33fdd7(_0x4f6680,_0x45c380['writer']);},{'priority':'high'});});const _0x48fc7d=(_0x4dfae2,_0x351de0,_0x396f6b,_0x2ccb27,_0x38adf6)=>{if(_0x2ccb27&&!_0x396f6b['options']['showSuggestionHighlights'])return;if(!_0x351de0['item'])return;const {id:_0x3b9035,authorId:_0x3d7907,subType:_0x1a566c}=v(_0x351de0['markerName']);if(_0x38adf6){const _0x517251=_0x1a566c['split']('|')[0x0];if(!this['isBlockAttribute'](_0x517251))return;}if(_0x351de0['item']['is']('selection'))return void _0x396f6b['consumable']['consume'](_0x351de0['item'],_0x4dfae2['name']);const _0x552eac=_0x396f6b['mapper']['toViewElement'](_0x351de0['item']);if(_0x351de0['item']['is']('element')&&_0x51639c['model']['schema']['isBlock'](_0x351de0['item'])&&!_0x552eac['getCustomProperty']('addHighlight')){_0x396f6b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x552eac),_0x396f6b['writer']['setAttribute']('data-suggestion',_0x3b9035,_0x552eac),_0x396f6b['writer']['setAttribute']('data-author-id',_0x3d7907,_0x552eac),_0x396f6b['mapper']['bindElementToMarker'](_0x552eac,_0x351de0['markerName']),_0x2ccb27||(this['_activeMarkers']['includes'](_0x351de0['markerName'])?_0x396f6b['writer']['addClass']('ck-suggestion-marker--active',_0x552eac):_0x396f6b['writer']['removeClass']('ck-suggestion-marker--active',_0x552eac));for(const _0x14df5d of _0x51639c['model']['createRangeIn'](_0x351de0['item'])['getItems']())_0x396f6b['consumable']['consume'](_0x14df5d,_0x4dfae2['name']);_0x396f6b['consumable']['consume'](_0x351de0['item'],_0x4dfae2['name']);}},_0x887ee8=(_0x3bc4e7,_0x11b4c9,_0x28b9a5,_0x59b443)=>{const _0x1ea39b=_0x28b9a5['mapper']['markerNameToElements'](_0x11b4c9['markerName']);if(_0x1ea39b){if(_0x59b443){const {subType:_0x44f8c3}=v(_0x11b4c9['markerName']),_0x10cc24=_0x44f8c3['split']('|')[0x0];if(!this['isBlockAttribute'](_0x10cc24))return;}for(const _0x136fd5 of _0x1ea39b)_0x136fd5['getCustomProperty']('addHighlight')||(_0x28b9a5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x136fd5),_0x28b9a5['writer']['removeAttribute']('data-suggestion',_0x136fd5),_0x28b9a5['writer']['removeAttribute']('data-author-id',_0x136fd5),_0x28b9a5['mapper']['unbindElementFromMarkerName'](_0x136fd5,_0x11b4c9['markerName']));}};_0x51639c['conversion']['for']('editingDowncast')['add'](_0x460794=>{_0x460794['on']('addMarker:suggestion:formatBlock',(_0x52ffef,_0x524aff,_0x43ec44)=>{_0x48fc7d(_0x52ffef,_0x524aff,_0x43ec44,!0x1,!0x1);},{'priority':'high'});}),_0x51639c['conversion']['for']('editingDowncast')['add'](_0x2d5f18=>{_0x2d5f18['on']('addMarker:suggestion:attribute',(_0x348537,_0x35640c,_0x55d537)=>{_0x48fc7d(_0x348537,_0x35640c,_0x55d537,!0x1,!0x0);},{'priority':'high'});}),_0x51639c['conversion']['for']('editingDowncast')['add'](_0x28696a=>{_0x28696a['on']('removeMarker:suggestion:formatBlock',(_0x17f4c2,_0x4366e6,_0x13433b)=>{_0x887ee8(0x0,_0x4366e6,_0x13433b,!0x1);},{'priority':'high'});}),_0x51639c['conversion']['for']('editingDowncast')['add'](_0x2b0a1c=>{_0x2b0a1c['on']('removeMarker:suggestion:attribute',(_0x4a5a2c,_0x3ddcc6,_0x5baa42)=>{_0x887ee8(0x0,_0x3ddcc6,_0x5baa42,!0x0);},{'priority':'high'});}),_0x51639c['conversion']['for']('dataDowncast')['add'](_0x40593f=>{_0x40593f['on']('addMarker:suggestion:formatBlock',(_0x422c30,_0x13a705,_0x248ba7)=>{_0x48fc7d(_0x422c30,_0x13a705,_0x248ba7,!0x0,!0x1);},{'priority':'highest'});}),_0x51639c['conversion']['for']('dataDowncast')['add'](_0x927889=>{_0x927889['on']('addMarker:suggestion:attribute',(_0x4f4d2a,_0x36e789,_0x46521d)=>{_0x48fc7d(_0x4f4d2a,_0x36e789,_0x46521d,!0x0,!0x0);},{'priority':'highest'});}),_0x51639c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x364b2b,_0x1f46a6)=>{if(_0x1f46a6['options']['showSuggestionHighlights']){const {id:_0x51ab44,authorId:_0x54c8a6}=v(_0x364b2b);return _0x364b2b['includes'](':split')||_0x364b2b['includes'](':merge')?{'group':'suggestion','name':_0x364b2b['substr'](0xb),'attributes':{'data-suggestion':_0x51ab44,'data-author-id':_0x54c8a6}}:null;}return{'group':'suggestion','name':_0x364b2b['substr'](0xb)};}});const _0x58f899=(_0x18b8a0,_0x19499b,_0x1b7103,_0x5ed309,_0x5b2c3d)=>{if(_0x5ed309&&!_0x1b7103['options']['showSuggestionHighlights'])return;if(!_0x1b7103['consumable']['test'](_0x19499b['markerRange'],_0x18b8a0['name']))return;const _0x3bfc7f=this['_activeMarkers'],_0xa685a4=_0x19499b['markerRange']['getWalker'](),_0x264e3e=_0x19499b['markerRange']['start'],_0xed3cda=_0x51639c['model']['schema'];let _0x19d68e=null,_0x331ec0=null,_0x56493c=!0x1,_0x1d631d=!0x1;for(const _0x539d05 of _0xa685a4){const _0x22eb55=_0x539d05['item'];_0x56493c=_0x56493c||_0xed3cda['isContent'](_0x22eb55);const _0x2fbf75=_0x1b7103['mapper']['toViewElement'](_0x22eb55);if(_0x2fbf75&&_0x2fbf75['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x539d05['type']&&(_0xed3cda['isBlock'](_0x22eb55)&&!_0xed3cda['isLimit'](_0x22eb55)&&(_0x22eb55['nextSibling']||_0x264e3e['isAtEnd']?_0x19d68e&&_0x19d68e['parent']==_0x22eb55||(_0x19d68e=_0x22eb55,_0x20e06c(_0x539d05['previousPosition']),_0x1d631d=!0x0):_0x331ec0=_0x331ec0||_0x539d05['previousPosition']));}function _0x20e06c(_0x580d8d){const {id:_0x4918f3,authorId:_0xcc7188}=v(_0x19499b['markerName']),_0x1e4e0a=_0x1b7103['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b2c3d,'data-suggestion':_0x4918f3,'data-author-id':_0xcc7188}),_0x454d1a=_0x1b7103['mapper']['toViewPosition'](_0x580d8d);!_0x5ed309&&_0x3bfc7f['includes'](_0x19499b['markerName'])&&_0x1b7103['writer']['addClass']('ck-suggestion-marker--active',_0x1e4e0a),_0x1b7103['writer']['insert'](_0x454d1a,_0x1e4e0a),_0x1b7103['mapper']['bindElementToMarker'](_0x1e4e0a,_0x19499b['markerName']);}_0x56493c||_0x1d631d||!_0x331ec0||_0x20e06c(_0x331ec0);};_0x51639c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x30f512,_0x446d59,_0xc1989f)=>{_0x58f899(_0x30f512,_0x446d59,_0xc1989f,!0x1,'merge');},{'priority':'high'}),_0x51639c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2e6ea4,_0x420853,_0x271b23)=>{_0x58f899(_0x2e6ea4,_0x420853,_0x271b23,!0x0,'merge');},{'priority':'high'}),_0x51639c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3596b9,_0x40b0e0,_0x298cd7)=>{_0x58f899(_0x3596b9,_0x40b0e0,_0x298cd7,!0x1,'split');},{'priority':'high'}),_0x51639c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x129ae0,_0x235630,_0xc048c8)=>{_0x58f899(_0x129ae0,_0x235630,_0xc048c8,!0x0,'split');},{'priority':'high'}),_0x51639c['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3b1ecf,_0x1fe550,_0x348a94)=>{((_0x20cb87,_0x38433d,_0x2076d4)=>{const _0x22f9d9=_0x2076d4['mapper']['markerNameToElements'](_0x38433d['markerName']);if(_0x22f9d9){for(const _0x58cb94 of _0x22f9d9)(_0x58cb94['hasClass']('ck-suggestion-marker-split')||_0x58cb94['hasClass']('ck-suggestion-marker-merge'))&&(_0x2076d4['mapper']['unbindElementFromMarkerName'](_0x58cb94,_0x38433d['markerName']),_0x2076d4['writer']['remove'](_0x58cb94));}})(0x0,_0x1fe550,_0x348a94);},{'priority':'high'});const _0x6e3b85=(_0x19ae02,_0x1e21d4,_0x3ab373,_0x1d1376)=>{if(_0x1d1376&&!_0x3ab373['options']['showSuggestionHighlights'])return;const _0x32bd0e=_0x1e21d4['markerRange']['start'],_0x327ab4=_0x1e21d4['markerRange']['end'],_0x51f28c=_0x51639c['model']['schema'];if(!_0x32bd0e['isTouching'](_0x327ab4)||!_0x32bd0e['nodeAfter'])return;const _0x533632=_0x32bd0e['nodeAfter'];if(_0x51f28c['isBlock'](_0x533632)&&!_0x51f28c['isLimit'](_0x533632)&&_0x51f28c['checkChild'](_0x533632,'$text')){if(!_0x3ab373['consumable']['consume'](_0x1e21d4['markerRange'],_0x19ae02['name']))return;const {id:_0x51681c,authorId:_0x44cc12}=v(_0x1e21d4['markerName']),_0x290b59=_0x3ab373['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51681c,'data-author-id':_0x44cc12}),_0xacd8ec=_0x3ab373['mapper']['toViewPosition'](_0x327ab4);!_0x1d1376&&this['_activeMarkers']['includes'](_0x1e21d4['markerName'])&&_0x3ab373['writer']['addClass']('ck-suggestion-marker--active',_0x290b59),_0x3ab373['writer']['insert'](_0xacd8ec,_0x290b59),_0x3ab373['mapper']['bindElementToMarker'](_0x290b59,_0x1e21d4['markerName']);}};_0x51639c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x11099b,_0x7300d,_0xe7c6e5)=>{_0x6e3b85(_0x11099b,_0x7300d,_0xe7c6e5,!0x1);},{'priority':'high'}),_0x51639c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x444844,_0x165fe1,_0x1e6261)=>{_0x6e3b85(_0x444844,_0x165fe1,_0x1e6261,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x47c6ef,_0x3a72c5,_0x263470)=>{this['_activeMarkers']=_0x263470['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x56703b){this['_blockAttributeKeys']['add'](_0x56703b);}['registerInlineAttribute'](_0x288e5a){this['_inlineAttributeKeys']['add'](_0x288e5a);}['isBlockAttribute'](_0x202b8b){return this['_blockAttributeKeys']['has'](_0x202b8b);}['isInlineAttribute'](_0x5f9845){return this['_inlineAttributeKeys']['has'](_0x5f9845);}['isRegisteredAttribute'](_0x2ec676){return this['isInlineAttribute'](_0x2ec676)||this['isBlockAttribute'](_0x2ec676);}['_getClassName'](_0x261bc3,_0x56178c){if('attribute'!=_0x261bc3)return'ck-suggestion-marker-'+_0x261bc3;const _0x4581ff=_0x56178c['split']('|')[0x0];return this['isBlockAttribute'](_0x4581ff)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x11d4e3={},_0x304587){if(void 0x0!==_0x11d4e3['dateTimeFormat']&&'function'!=typeof _0x11d4e3['dateTimeFormat'])throw new _0x90c6c0('invalid-date-time-format');return _0x4bbea8=>{const _0x222d80='string'==typeof _0x4bbea8?tt['fromISO'](_0x4bbea8):tt['fromJSDate'](_0x4bbea8),_0x31cd3d=tt['now'](),_0x46b9da=Math['floor'](_0x31cd3d['diff'](_0x222d80,'days')['days']);return _0x11d4e3['dateTimeFormat']?_0x11d4e3['dateTimeFormat'](_0x222d80['toJSDate'](),_0x304587&&_0x304587['t']?_0x304587['t']:void 0x0):0x0===_0x46b9da?_0x304587?U(_0x304587,'Today')+'\x20'+_0x222d80['toFormat']('hh:mma'):_0x222d80['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x46b9da?_0x304587?U(_0x304587,'Yesterday')+'\x20'+_0x222d80['toFormat']('hh:mma'):_0x222d80['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x46b9da<0x7?_0x304587?U(_0x304587,'Last')+'\x20'+U(_0x304587,_0x222d80['toFormat']('EEEE'))+'\x20'+_0x222d80['toFormat']('hh:mma'):_0x222d80['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x222d80['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x53fbb1,_0x5597bf){const _0x365aa8=_0x53fbb1['mapper']['markerNameToElements'](_0x5597bf['name']);if(!_0x365aa8)return null;const _0x40f1bc=_0x48cf0c(_0x365aa8['values']());return _0x53fbb1['view']['domConverter']['mapViewToDom'](_0x40f1bc)||null;}function wt(_0x1bad2d,_0x1bd648){if(0x0===_0x1bd648['length'])return null;const _0x17bc63=[],_0x3d5af5=_0x1bad2d['view']['domConverter'];for(const _0x3b128c of _0x1bd648){const _0x57e7b0=_0x1bad2d['mapper']['markerNameToElements'](_0x3b128c['name']);if(!_0x57e7b0)continue;const _0x82f658=Array['from'](_0x57e7b0)['map'](_0x527882=>_0x3d5af5['mapViewToDom'](_0x527882))['filter'](_0x308f59=>!!_0x308f59);_0x17bc63['push'](..._0x82f658);}if(0x0===_0x17bc63['length'])return null;const _0x1f54d7=[];for(const _0x1c480d of _0x17bc63){const _0x122a71=_0x1c480d['getClientRects']()['item'](0x0);_0x122a71&&_0x1f54d7['push']({'x':_0x122a71['x'],'y':_0x122a71['y'],'domElement':_0x1c480d});}return 0x0===_0x1f54d7['length']?null:(_0x1f54d7['sort']((_0x2f394f,_0x33a467)=>_0x2f394f['y']-_0x33a467['y']||_0x2f394f['x']-_0x33a467['x']),_0x1f54d7['map'](_0x114fd3=>_0x114fd3['domElement']));}function bt(_0x1f25ec,{limit:_0x327027,suffix:_0x4a28c5='...'}){const _0x177119=[];let _0x3c90da=0x0;const _0x50c531=_0x1f25ec['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x57fa6e=0x0;_0x57fa6e<_0x50c531['length'];_0x57fa6e++){let _0x1a737f=_0x50c531[_0x57fa6e];const _0x1bce09=tn(_0x1a737f);if(_0x1a737f['startsWith']('<')){if(_0x3c90da>=_0x327027){const _0x4f1dec=_0x1a737f['match'](/[a-zA-Z]+/);if(!_0x4f1dec){_0x50c531[_0x57fa6e]='';continue;}const _0x461742=_0x4f1dec[0x0];_0x1a737f['startsWith']('</')?(_0x177119['length']&&(_0x1a737f=''),_0x177119['pop']()):(_0x177119['push'](_0x461742),_0x1a737f='');}}else{if(_0x3c90da>=_0x327027)_0x1a737f='';else{if(_0x3c90da+_0x1bce09['length']>=_0x327027){let _0x589fb8=_0x327027-_0x3c90da;if('\x20'===_0x1bce09[_0x589fb8-0x1])_0x589fb8--;else{const _0x22811f=_0x1bce09['slice'](_0x589fb8)['indexOf']('\x20');-0x1!==_0x22811f?_0x589fb8+=_0x22811f:_0x589fb8=_0x1a737f['length'];}_0x1a737f=_0x1bce09['slice'](0x0,_0x589fb8)['join']('')+_0x4a28c5,_0x3c90da=_0x327027;}else _0x3c90da+=_0x1bce09['length'];}}_0x50c531[_0x57fa6e]=_0x1a737f;}return _0x50c531['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x217dca){const _0x4e7d2d=[];for(let _0x3e38f5=0x0;_0x3e38f5<_0x217dca['length'];_0x3e38f5++){const _0x896764=_0x217dca['substring'](_0x3e38f5)['match'](/^&[a-z0-9#]+;/);if(_0x896764){const _0x5d800b=_0x896764[0x0];_0x4e7d2d['push'](_0x5d800b),_0x3e38f5+=_0x5d800b['length']-0x1;}else _0x4e7d2d['push'](_0x217dca[_0x3e38f5]);}return _0x4e7d2d;}class V extends _0x1d95e2{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x40d747){super(_0x40d747);const _0x124260=this['bindTemplate'];this['set']('message',U(_0x40d747,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x40d747,U(_0x40d747,'Yes'),_0xf1bfe9,'submit'),this['cancelView']=this['_createButtonView'](_0x40d747,U(_0x40d747,'No'),_0x189283,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x31a2ee(),this['focusCycler']=new _0x3181ad({'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':_0x124260['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'](_0x50b810,_0x81c0e8,_0xa6dd31,_0x4ab38e){const _0x8ad186=new _0x389e94(_0x50b810);return _0x8ad186['label']=_0x81c0e8,_0x8ad186['icon']=_0xa6dd31,_0x8ad186['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x4ab38e}}),_0x8ad186['on']('execute',()=>this['fire'](_0x4ab38e)),_0x8ad186;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x567556=>{this['keystrokes']['listenTo'](_0x567556['element']),this['focusTracker']['add'](_0x567556['element']);}),this['keystrokes']['set']('esc',(_0xefb027,_0x2240d1)=>{this['fire']('cancel'),_0x2240d1();});}}function vt(_0x4d6030){return class extends _0x4d6030{['showConfirm'](_0x833f7d,_0x1046b1){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x833f7d,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x1046b1['appendChild'](this['confirmView']['element']),_0x1046b1['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x54c60e,_0x5ec875,_0x1f9592)=>{_0x1f9592||_0x1046b1['classList']['remove']('ck-confirm-view-active');}),new Promise(_0xa2eb72=>this['confirmView']['on']('submit',_0xa2eb72));}['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(_0x4951c4){let _0x414718=0x0,_0x51a3cf=0x0;for(const _0x1adc95 of ne(_0x4951c4))_0x414718=(_0x414718<<0x5)-_0x414718+_0x1adc95,_0x414718&=_0x414718,[_0x414718,_0x51a3cf]=[_0x51a3cf,_0x414718];return ie(_0x414718)+ie(_0x51a3cf);}function*ee(_0x2010c2){null==_0x2010c2||null==_0x2010c2?yield 0x12b9b0a1:0x0===_0x2010c2||!0x1===_0x2010c2?yield 0x0:0x1===_0x2010c2||0x1==_0x2010c2?yield 0x1:Array['isArray'](_0x2010c2)?yield*function*(_0x5df1cd){for(const _0x1e7b7a of _0x5df1cd)yield*ee(_0x1e7b7a);}(_0x2010c2):'object'==typeof _0x2010c2?yield*ne(_0x2010c2):'string'==typeof _0x2010c2?yield*oe(_0x2010c2):'number'==typeof _0x2010c2&&(yield _0x2010c2);}function*ne(_0x2a6a17){if(yield te('{'),_0x2a6a17){const _0x38e07e=Object['keys'](_0x2a6a17)['sort']();for(const _0x417970 of _0x38e07e){yield*oe(_0x417970),yield te(':');const _0x313a09=_0x2a6a17[_0x417970];yield*ee(_0x313a09);}}yield te('}');}function*oe(_0x5bf66b){yield te('\x22');for(const _0x5297c8 of _0x5bf66b)yield te(_0x5297c8);yield te('\x22');}function te(_0x3511fc){return _0x3511fc['charCodeAt'](0x0);}function ie(_0x561898){return(_0x561898*=Math['sign'](_0x561898))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x3c6a49,_0x5c7ed5,_0xd7d863,_0x5469a0=[]){const _0x444879='string'==typeof _0x3c6a49?_0xd7d863['get'](_0x3c6a49)['constructor']:_0x3c6a49['prototype']['constructor'];if(_0x5c7ed5['has'](_0x444879))return _0x5c7ed5['get'](_0x444879);_0x5c7ed5['set'](_0x444879,!0x0);const _0x2893f8=[...et,..._0x5469a0]['map'](_0x182f87=>{if(_0xd7d863['has'](_0x182f87))return _0xd7d863['get'](_0x182f87)['constructor'];})['filter'](_0x57e810=>_0x57e810);if(_0x444879&&_0x2893f8['includes'](_0x444879))return _0x5c7ed5['set'](_0x444879,!0x1),!0x1;if(!_0x444879['requires'])return _0x5c7ed5['set'](_0x444879,!0x0),!0x0;const _0x4bfce9=_0x444879['requires']['every'](_0x27b42c=>ot(_0x27b42c,_0x5c7ed5,_0xd7d863,_0x5469a0));return _0x5c7ed5['set'](_0x444879,_0x4bfce9),_0x4bfce9;}function Ct(_0x5737ed,_0x54d797){const _0x11f535={};for(const _0x356182 of _0x5737ed['config']['names']())nt['includes'](_0x356182)||(_0x11f535[_0x356182]=_0x5737ed['config']['get'](_0x356182));const _0x136f17=_0x11f535['plugins']||[],_0x2fe951=_0x5737ed['constructor']['builtinPlugins']||[],_0x4fc527=_0x136f17['length']?_0x136f17:_0x2fe951,_0x248af4=_0x11f535['extraPlugins']||[];delete _0x11f535['extraPlugins'];const _0x1e7bd2=_0x11f535['removePlugins']||[];delete _0x11f535['removePlugins'];const _0x25bc69=_0x5737ed['_context']['config']['get']('plugins')||[],_0x5ea528=_0x4fc527['concat'](_0x248af4)['concat'](_0x25bc69)['map'](_0x5eeeb7=>'string'==typeof _0x5eeeb7?_0x2fe951['find'](_0x4380f2=>_0x4380f2['pluginName']==_0x5eeeb7):_0x5eeeb7)['filter'](_0x1e9d84=>!_0x1e7bd2['includes'](_0x1e9d84)&&!_0x1e7bd2['includes'](_0x1e9d84['pluginName'])),_0x89da3f=Array['from'](new Set(_0x5ea528)),_0x4bab2e=new Map();return _0x11f535['plugins']=_0x89da3f['filter'](_0x25c94f=>ot(_0x25c94f,_0x4bab2e,_0x5737ed['plugins'],_0x54d797)),_0x11f535;}function _t(_0x3e523d,_0x15c665){const _0x308268=[];_0x3e523d['document']['selection']['on']('change:range',()=>{const _0x24cfe7=function(_0x54b000,_0x36603c){const _0x107e5e=[];for(const _0x243ff3 of _0x54b000['markers']){const _0x1a42eb=_0x243ff3['getRange']();(_0x1a42eb['containsPosition'](_0x36603c)||_0x1a42eb['start']['isEqual'](_0x36603c)||_0x1a42eb['end']['isEqual'](_0x36603c))&&_0x107e5e['push'](_0x243ff3);}return _0x107e5e;}(_0x3e523d,_0x3e523d['document']['selection']['focus']),_0x153a50=[],_0x8d9fc5=[],_0x30ddb5=[];for(const _0x54efa1 of _0x308268)_0x24cfe7['includes'](_0x54efa1)||_0x153a50['push'](_0x54efa1);for(const _0x46fe19 of _0x24cfe7)_0x308268['includes'](_0x46fe19)||_0x8d9fc5['push'](_0x46fe19),_0x30ddb5['push'](_0x46fe19);(_0x153a50['length']||_0x8d9fc5['length'])&&_0x15c665({'left':_0x153a50,'entered':_0x8d9fc5}),_0x308268['length']=0x0,_0x308268['push'](..._0x30ddb5);});}const xt='Ctrl+Shift+E';function It(_0x3839c8,_0x26ce0b){const _0x35de9e=_0x3839c8['element'];_0x3839c8['keystrokes']['listenTo'](_0x35de9e);for(const _0x3a2e4d of _0x26ce0b)ro(_0x3839c8,_0x3a2e4d);_0x26ce0b['on']('change',(_0x46e240,_0xa57e93)=>{for(const _0x2316f7 of _0xa57e93['removed'])to(_0x3839c8,_0x2316f7);for(const _0x17a471 of Array['from'](_0xa57e93['added'])['reverse']())ro(_0x3839c8,_0x17a471);}),_0x3839c8['keystrokes']['set']('enter',(_0x4a4d2b,_0x1e2df8)=>{_0x35de9e===_0x4a4d2b['target']&&(_0x3839c8['focusCycler']['focusFirst'](),_0x1e2df8());},{'filter':_0x27ec17=>_0x27ec17['target']===_0x35de9e}),_0x3839c8['keystrokes']['set']('esc',(_0x48f6e0,_0x5a0568)=>{_0x35de9e!==_0x48f6e0['target']?_0x3839c8['focus']():_0x3839c8['fire']('escape'),_0x5a0568();}),_0x3839c8['keystrokes']['set']('arrowdown',(_0x28b2de,_0x24c6c6)=>{_0x35de9e===_0x28b2de['target']&&(_0x3839c8['fire']('arrowdown'),_0x24c6c6());}),_0x3839c8['keystrokes']['set']('arrowup',(_0x2284ca,_0x11e6dc)=>{_0x35de9e===_0x2284ca['target']&&(_0x3839c8['fire']('arrowup'),_0x11e6dc());});}function ro(_0x1a415b,_0x57bb21){_0x57bb21['isRendered']&&(_0x1a415b['focusTracker']['add'](_0x57bb21['element']),_0x1a415b['keystrokes']['listenTo'](_0x57bb21['element']),_0x2708bc(_0x57bb21)&&function(_0x21ed74,_0x272963){const _0x26824b=_0x21ed74['actions'],_0x304830=_0x272963['actions'];for(const _0x35c174 of Object['keys'](_0x26824b))if(_0x35c174 in _0x304830&&_0x26824b[_0x35c174]!==_0x304830[_0x35c174])return!0x1;return!0x0;}(_0x1a415b['focusCycler'],_0x57bb21['focusCycler'])&&_0x1a415b['focusCycler']['chain'](_0x57bb21['focusCycler']));}function to(_0x171ce5,_0x724f4e){_0x171ce5['focusTracker']['remove'](_0x724f4e['element']),_0x171ce5['keystrokes']['stopListening'](_0x724f4e['element']),_0x2708bc(_0x724f4e)&&_0x171ce5['focusCycler']['unchain'](_0x724f4e['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x27d944{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x329dde?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0xac40b0,_0x3a2860)=>{_0x3a2860['on']('ready',()=>{this['_integrateEditor'](_0x3a2860);});});}get['editor'](){if(this['context']instanceof _0x329dde)return this['context'];{const _0x57f808=this['context']['editors']['first'];if(!_0x57f808)throw new _0x90c6c0('documentcompare-no-editor',this);return _0x57f808;}}['getDiff'](_0x3ba854,_0x342822,_0x332621={'anchor':'main','markDeletions':!0x1}){const _0x17ac5d=this['editor'];let _0x17c905,_0x109ce6;if('string'==typeof _0x332621['anchor']){const _0x3969a9=_0x17ac5d['model']['document']['getRoot'](_0x332621['anchor']);if(!_0x3969a9)throw new _0x90c6c0('documentcompare-compare-no-root',this,{'anchor':_0x332621['anchor']});_0x17c905=_0x17ac5d['model']['createPositionAt'](_0x3969a9,0x0),_0x109ce6=_0x332621['context']||_0x3969a9;}else _0x17c905=_0x332621['anchor']['clone'](),_0x109ce6=_0x332621['context']||_0x332621['anchor']['clone']();const _0x32729=_0x17ac5d['data']['parse'](_0x3ba854,_0x109ce6),_0x4cab09=_0x17ac5d['data']['parse'](_0x342822,_0x109ce6);return new Mt(_0x32729,_0x4cab09,_0x17ac5d,{'anchor':_0x17c905,'markDeletions':_0x332621['markDeletions']});}['isMarkedRemoveOperation'](_0x5685be){return'marker'==_0x5685be['type']&&_0x5685be['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x16c980){_0x16c980['conversion']['for']('upcast')['add'](_0x567d4a=>{_0x567d4a['on']('element',(_0x4eb915,_0x2dea72,_0x40c866)=>{if(_0x2dea72['modelRange'])for(const _0x4876d8 of _0x2dea72['modelRange']['getItems']({'shallow':!0x0})){if(_0x4876d8['is']('$textProxy'))continue;const _0x3a12a1=_0x2dea72['viewItem']['getAttribute'](Et);_0x3a12a1&&_0x40c866['writer']['setAttribute'](St,_0x3a12a1,_0x4876d8);}},{'priority':'lowest'});}),_0x16c980['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0xc588f4,_0x5abdd3,_0x2f6ba0,_0x17ffed){this['_editor']=_0x2f6ba0,this['_markDeletions']=!!_0x17ffed['markDeletions'],this['_anchor']=_0x17ffed['anchor'];const _0x489cc0=this['_tokenizeModel'](_0xc588f4),_0x1a94e2=this['_tokenizeModel'](_0x5abdd3);this['_diffItems']=this['_diffModelTokens'](_0x489cc0,_0x1a94e2),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0xc588f4['markers'],_0x5abdd3['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x3ea00d=this['_editor']['model']['document'],_0x2e7255=[];let _0x257e3d=_0x3ea00d['version'];for(const _0x2b9771 of this['_operationsData'])switch(_0x2b9771['type']){case'attribute':{const _0x3e1979=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['path']),_0x356836=_0x3e1979['getShiftedBy'](_0x2b9771['howMany']),_0xd44734=new _0x2a6799(_0x3e1979,_0x356836),_0x261ac2=JSON['parse'](_0x2b9771['oldValue']),_0x53bf51=JSON['parse'](_0x2b9771['newValue']);_0x2e7255['push'](new _0x368e4f(_0xd44734,_0x2b9771['key'],_0x261ac2,_0x53bf51,_0x257e3d++));break;}case'insert':{const _0x306750=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['path']),_0x1576f4=this['_makeModelFromTokens'](_0x2b9771['tokens']);_0x2e7255['push'](new _0x2aec8f(_0x306750,_0x1576f4,_0x257e3d++));break;}case'remove':{const _0x5cd97b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['path']),_0x45d1f8=new _0x4e03e0(_0x3ea00d['graveyard'],[0x0]);_0x2e7255['push'](new _0x33557f(_0x5cd97b,_0x2b9771['howMany'],_0x45d1f8,_0x257e3d++));break;}case'rename':{const _0x8a2a54=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['path']);_0x2e7255['push'](new _0x437279(_0x8a2a54,_0x2b9771['oldName'],_0x2b9771['newName'],_0x257e3d++));break;}case'split':{const _0x4caeaa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['path']),_0x4a8897=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['path']['slice'](0x0,-0x1));_0x4a8897['offset']++,_0x2e7255['push'](new _0x202f46(_0x4caeaa,Number['NEGATIVE_INFINITY'],_0x4a8897,null,_0x257e3d++));break;}case'merge':{const _0xa047eb=_0x2b9771['path']['slice'](),_0x333b01=_0xa047eb['slice'](0x0,-0x1);_0x333b01[_0x333b01['length']-0x1]++,_0x333b01['push'](0x0);const _0x275244=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x333b01),_0xbb9ea2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xa047eb),_0x2dd352=new _0x4e03e0(_0x3ea00d['graveyard'],[0x0]);_0x2e7255['push'](new _0x343569(_0x275244,Number['NEGATIVE_INFINITY'],_0xbb9ea2,_0x2dd352,_0x257e3d++));break;}case'marker':case'markedRemove':{let _0xf90f1=null;if(_0x2b9771['range']){const _0x49296a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['range']['start']),_0x33c34b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['range']['end']);_0xf90f1=new _0x2a6799(_0x49296a,_0x33c34b);}const _0x2a0eab='marker'==_0x2b9771['type']?_0x2b9771['name']:'$markedRemove:'+_0x4e4fcc();_0x2e7255['push'](new _0x4b862f(_0x2a0eab,null,_0xf90f1,_0x3ea00d['model']['markers'],!0x0,_0x257e3d++));break;}case'unwrap':{const _0x3e6672=_0x2b9771['path']['slice']();_0x3e6672['push'](0x0);const _0x47754b=_0x2b9771['path']['slice'](),_0x518bc5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e6672),_0x3516ae=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47754b),_0x204d91=new _0x4e03e0(_0x3ea00d['graveyard'],[0x0]);_0x2e7255['push'](new _0x33557f(_0x518bc5,_0x2b9771['howMany'],_0x3516ae,_0x257e3d++)),_0x2e7255['push'](new _0x33557f(_0x3516ae['getShiftedBy'](_0x2b9771['howMany']),0x1,_0x204d91,_0x257e3d++));break;}case'wrap':{const _0x5a74dd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['range']['start']),_0x396367=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b9771['range']['end']),_0xf09018=_0x2b9771['token']['element']['_clone'](!0x1),_0x4f3990=_0x2b9771['range']['end']['slice']();_0x4f3990['push'](0x0);const _0x55661e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4f3990);_0x2e7255['push'](new _0x2aec8f(_0x396367,_0xf09018,_0x257e3d++)),_0x2e7255['push'](new _0x33557f(_0x5a74dd,_0x396367['offset']-_0x5a74dd['offset'],_0x55661e,_0x257e3d++));break;}}return _0x2e7255;}['_tokenizeModel'](_0x127dd3){const _0x2dc43d=[],_0x284f97=_0x2a6799['_createIn'](_0x127dd3),_0x1da9f5=new _0x4c9efb({'boundaries':_0x284f97});let _0x356420='',_0x2543fb=null;const _0x27a62d=[''],_0x531260=new Map();for(const _0x37fdaa of _0x1da9f5)if('elementStart'==_0x37fdaa['type']||'elementEnd'==_0x37fdaa['type']){let _0x339e52=_0x27a62d[0x0];''!==_0x356420&&(_0x2dc43d['push'](...this['_makeTokensFromTextByWords'](_0x356420,_0x2543fb,_0x339e52)),_0x356420='');const _0x425305=_0x37fdaa['item'];let _0x2b77f9;_0x425305['getAttribute'](St)?_0x2b77f9=_0x425305['getAttribute'](St):'elementStart'==_0x37fdaa['type']?(_0x2b77f9=_(_0x425305),_0x531260['set'](_0x425305,_0x2b77f9)):_0x2b77f9=_0x531260['get'](_0x425305);const _0x485779=this['_getElementCategory'](_0x425305);'solid'==_0x485779&&('elementStart'==_0x37fdaa['type']?(_0x339e52=_0x2b77f9,_0x27a62d['unshift'](_0x339e52)):_0x27a62d['shift']());const _0x25d35e={'type':'element','element':_0x425305,'elementId':_0x2b77f9,'category':_0x485779,'isStart':'elementStart'==_0x37fdaa['type'],'limitId':_0x339e52};_0x2dc43d['push'](_0x25d35e);}else''==_0x356420&&(_0x2543fb=_0x37fdaa['previousPosition']['clone']()),_0x356420+=_0x37fdaa['item']['data'];return''!==_0x356420&&_0x2dc43d['push'](...this['_makeTokensFromTextByWords'](_0x356420,_0x2543fb,_0x27a62d[0x0])),_0x2dc43d;}['_makeTokensFromTextByWords'](_0x36b3a4,_0x2c9b93,_0x4be5f5){const _0x30872b=_0x36b3a4['matchAll'](/(\s)/g),_0x3c6472=Array['from'](_0x30872b)['map'](_0x1701b5=>_0x1701b5['index']);_0x3c6472['push'](_0x36b3a4['length']),0x0==_0x3c6472[0x0]&&_0x3c6472['shift']();const _0x25c958=[],_0x45fce7=_0x2c9b93['parent'];let _0x3b5c0f=0x0,_0x49dcc9=_0x2c9b93['offset'];for(let _0x2864f8=0x0;_0x2864f8<_0x3c6472['length'];_0x2864f8++)_0x25c958['push']({'type':'text','data':_0x36b3a4['slice'](_0x3b5c0f,_0x3c6472[_0x2864f8]),'parent':_0x45fce7,'offset':_0x49dcc9,'limitId':_0x4be5f5}),_0x3b5c0f=_0x3c6472[_0x2864f8],_0x49dcc9=_0x2c9b93['offset']+_0x3c6472[_0x2864f8];return _0x25c958;}['_getElementCategory'](_0x484189){const _0x157ada=this['_editor']['model']['schema'];return _0x157ada['isLimit'](_0x484189)||_0x157ada['isContent'](_0x484189)||_0x157ada['isInline'](_0x484189)?'solid':_0x157ada['isBlock'](_0x484189)?'block':'container';}['_diffModelTokens'](_0x1ca684,_0x47649f){const _0x4bfaff=_0x55d5be(_0x1ca684,_0x47649f,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x4bfaff);const _0x503ced=_0x4bfaff['flatMap'](_0x2c672c=>{const _0x156ad8=_0x2c672c['added']?'added':_0x2c672c['removed']?'removed':'unchanged';return _0x2c672c['value']['map'](_0x4c960=>({'token':_0x4c960,'change':_0x156ad8}));});let _0x25c93c=0x0;for(const _0x30f821 of _0x503ced)'added'!=_0x30f821['change']&&('unchanged'==_0x30f821['change']&&(_0x30f821['before']=_0x1ca684[_0x25c93c]),_0x25c93c++);return _0x503ced;}['_handleUnclosedBlockOpeningTags'](_0x5e22d6){for(let _0x298e96=0x0;_0x298e96<_0x5e22d6['length']-0x1;_0x298e96++)if(_0x5e22d6[_0x298e96]['removed']&&_0x5e22d6[_0x298e96+0x1]['added']){const _0x3cf261=this['_findUnclosedBlockOpeningToken'](_0x5e22d6[_0x298e96]['value']);if(null!==_0x3cf261){const _0x188c9a=this['_findUnclosedBlockOpeningToken'](_0x5e22d6[_0x298e96+0x1]['value']),_0xff115d=_0x5e22d6[_0x298e96]['value']['splice'](_0x3cf261),_0x1526a0=_0x5e22d6[_0x298e96+0x1]['value']['splice'](_0x188c9a),_0xc8a43b=[_0x1526a0['shift']()];_0xff115d['shift']();const _0x399275={'value':_0xff115d,'removed':!0x0},_0x188fe1={'value':_0x1526a0,'added':!0x0},_0xd536cb={'value':_0xc8a43b};_0x5e22d6['splice'](_0x298e96+0x2,0x0,_0xd536cb,_0x399275,_0x188fe1);}}}['_findUnclosedBlockOpeningToken'](_0x5afbb0){let _0x5cd28a=0x0,_0x1f67ab=-0x1;for(let _0x5d7bb5=0x0;_0x5d7bb5<_0x5afbb0['length'];_0x5d7bb5++){const _0xbd841f=_0x5afbb0[_0x5d7bb5];'element'==_0xbd841f['type']&&'block'==_0xbd841f['category']&&(_0x5cd28a+=_0xbd841f['isStart']?0x1:-0x1,_0xbd841f['isStart']&&(_0x1f67ab=_0x5d7bb5));}return 0x0===_0x5cd28a?null:_0x1f67ab;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x195e8d=0x0;_0x195e8d<this['_diffItems']['length'];_0x195e8d++){const _0xe8b951=this['_diffItems'][_0x195e8d]['change'],_0x871ef8=[];_0x871ef8['push'](this['_diffItems'][_0x195e8d]);let _0x25afe8=_0x195e8d+0x1;for(;this['_diffItems'][_0x25afe8]&&this['_diffItems'][_0x25afe8]['change']==_0xe8b951;)_0x871ef8['push'](this['_diffItems'][_0x25afe8]),_0x25afe8++,_0x195e8d++;const _0x1ce909=_0x871ef8['map'](_0x3550d0=>_0x3550d0['token']);if('unchanged'==_0xe8b951)_0x871ef8['map'](_0x4413bf=>_0x4413bf['before'])['forEach'](_0x39e007=>this['_traverseOverItem'](_0x39e007));else{if('removed'==_0xe8b951){if(this['_markDeletions']){const _0x3e0090=this['_path']['slice']();_0x1ce909['forEach'](_0x4677b4=>this['_traverseOverItem'](_0x4677b4));const _0x15d871=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x3e0090,'end':_0x15d871}});}else this['_handleChanged'](_0x1ce909,!0x0,this['_path']['slice']());}else{const _0x49d026=_0x1ce909['filter'](_0x562bd6=>'element'!=_0x562bd6['type']||'container'!=_0x562bd6['category']);this['_handleChanged'](_0x49d026,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x4ab2b7=0x0;_0x4ab2b7<this['_diffItems']['length'];_0x4ab2b7++){const _0xd20598=this['_diffItems'][_0x4ab2b7]['change'],_0x334c21=[];_0x334c21['push'](this['_diffItems'][_0x4ab2b7]);let _0x43bab4=_0x4ab2b7+0x1;for(;this['_diffItems'][_0x43bab4]&&this['_diffItems'][_0x43bab4]['change']==_0xd20598;)_0x334c21['push'](this['_diffItems'][_0x43bab4]),_0x43bab4++,_0x4ab2b7++;const _0x44d609=_0x334c21['map'](_0x13de99=>_0x13de99['token']);if('unchanged'==_0xd20598){const _0x237537=_0x334c21['map'](_0x320d48=>_0x320d48['before']);this['_handleUnchanged'](_0x237537,_0x44d609);}else('removed'!=_0xd20598||this['_markDeletions'])&&_0x44d609['forEach'](_0x214ad3=>{this['_traverseOverItem'](_0x214ad3);});}}['_calculateMarkersOperationsData'](_0x468f1c,_0x6ff9d8){const _0x24d8ea={};for(const [_0xfcfd78]of _0x468f1c)_0x24d8ea[_0xfcfd78]=null;for(const [_0x4b8939,_0x34fcd6]of _0x6ff9d8)_0x24d8ea[_0x4b8939]=_0x34fcd6;const _0x1533bf=Object['entries'](_0x24d8ea)['map'](([_0x17a96b,_0x27a6e2])=>({'type':'marker','name':_0x17a96b,'range':_0x27a6e2?{'start':_0x27a6e2['start']['path']['slice'](),'end':_0x27a6e2['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x1533bf);}['_handleUnwraps'](){const _0x314977=new Map(),_0x3fb024=[],_0x1303b8=[0x0];let _0x184923=this['_diffItems']['length']+0x1;for(let _0x352e93=this['_diffItems']['length']-0x1;_0x352e93>=0x0;_0x352e93--){const {token:_0x475c9b,before:_0x544d9c,change:_0x555a9f}=this['_diffItems'][_0x352e93];if('removed'!=_0x555a9f&&(_0x184923=_0x352e93),'element'!=_0x475c9b['type']||'container'!=_0x475c9b['category']||'added'==_0x555a9f)continue;const _0x1ee19b=_0x544d9c?_0x544d9c['element']:_0x475c9b['element'];if(_0x475c9b['isStart']){const _0x188f6f=_0x314977['get'](_0x1ee19b),_0x2c6e1f=this['_diffItems'][_0x188f6f];('removed'==_0x555a9f||'removed'==_0x2c6e1f['change'])&&_0x184923<_0x188f6f&&(this['_operationsData']['push']({'type':'unwrap','path':_0x1ee19b['getPath'](),'howMany':_0x1ee19b['maxOffset']+_0x1303b8[0x0]}),_0x1303b8['shift'](),_0x1303b8[0x0]+=_0x1ee19b['maxOffset']-0x1,_0x3fb024['push'](_0x352e93),_0x3fb024['push'](_0x188f6f));}else _0x314977['set'](_0x1ee19b,_0x352e93),_0x1303b8['unshift'](0x0);}_0x3fb024['sort']((_0x490d55,_0x526fd1)=>_0x526fd1-_0x490d55),_0x3fb024['forEach'](_0x5ba5ff=>{const _0x45b63c=this['_diffItems'][_0x5ba5ff];'removed'==_0x45b63c['change']?this['_diffItems']['splice'](_0x5ba5ff,0x1):(_0x45b63c['change']='added',delete _0x45b63c['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x2907a9=[];for(let _0x2fb65b=0x0;_0x2fb65b<this['_diffItems']['length'];_0x2fb65b++){const {change:_0xb41999,token:_0x447552}=this['_diffItems'][_0x2fb65b];if('added'==_0xb41999&&'element'==_0x447552['type']&&'container'==_0x447552['category']){if(_0x447552['isStart'])_0x2907a9['push'](this['_path']['slice']());else{if(!_0x447552['isStart']){const _0xa71ba5=_0x2907a9['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0xa71ba5,'end':this['_path']['slice']()},'token':_0x447552}),this['_path'][this['_path']['length']-0x1]=_0xa71ba5[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0xb41999||this['_markDeletions'])&&this['_traverseOverItem'](_0x447552);}}['_handleUnchanged'](_0x26ea13,_0x521f83){for(let _0x1ae58a=0x0;_0x1ae58a<_0x26ea13['length'];_0x1ae58a++){const _0x417813=_0x26ea13[_0x1ae58a];if('element'==_0x417813['type']&&_0x417813['isStart']){const _0x497425=_0x521f83[_0x1ae58a];'block'==_0x417813['category']&&this['_handleElementRename'](_0x417813['element'],_0x497425['element'],this['_path']),this['_handleElementAttributeChanges'](_0x417813['element'],_0x497425['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x497425);}else{if('element'!=_0x417813['type']||_0x417813['isStart']){if('text'==_0x417813['type']){const _0x4dd2b=this['_path']['slice'](),_0x335846=[],_0x4c2493=[];for(;_0x26ea13[_0x1ae58a]&&'text'==_0x26ea13[_0x1ae58a]['type'];)_0x335846['push'](_0x26ea13[_0x1ae58a]),_0x4c2493['push'](_0x521f83[_0x1ae58a]),this['_path'][this['_path']['length']-0x1]+=_0x26ea13[_0x1ae58a]['data']['length'],_0x1ae58a++;_0x1ae58a--,this['_handleTextAttributeChanges'](_0x335846,_0x4c2493,_0x4dd2b);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x51d05a,_0x46aa8c,_0x582d4a){const _0x108e8c=[],_0x18bd56=[],_0x45242c=_0x582d4a['slice']();for(let _0xc6a5a7=0x0;_0xc6a5a7<_0x51d05a['length'];_0xc6a5a7++){const _0x5ed69c=_0x51d05a[_0xc6a5a7],_0x51ed6e=_0x582d4a['slice']();if('element'!=_0x5ed69c['type']||_0x5ed69c['isStart'])'element'==_0x5ed69c['type']&&_0x5ed69c['isStart']?(_0x582d4a['push'](0x0),_0x46aa8c||this['_parents']['push'](_0x5ed69c),_0x18bd56['push']({'before':_0x51ed6e,'after':_0x582d4a['slice'](),'index':_0xc6a5a7})):_0x582d4a[_0x582d4a['length']-0x1]+=_0x5ed69c['data']['length'];else{let _0x27d92f;_0x582d4a['pop'](),_0x582d4a[_0x582d4a['length']-0x1]++,_0x27d92f=_0x46aa8c?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x18bd56['length']?_0x18bd56['pop']():_0x108e8c['push']({'before':_0x51ed6e,'after':_0x582d4a['slice'](),'index':_0xc6a5a7,'related':_0x27d92f});}}if(_0x18bd56['length']!==_0x108e8c['length'])throw new _0x90c6c0('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x51d05a,'isRemove':_0x46aa8c});const _0x4d20bb=[{'after':_0x45242c['slice'](),'index':-0x1},..._0x108e8c,..._0x18bd56,{'before':_0x582d4a['slice'](),'index':_0x51d05a['length']}];if(_0x46aa8c){for(let _0x537a41=_0x4d20bb['length']-0x1;_0x537a41>=0x1;_0x537a41--){const _0x5d1319=_0x4d20bb[_0x537a41-0x1]['after'],_0x48d4fb=_0x4d20bb[_0x537a41]['before'],_0x5115a1=_0x48d4fb[_0x48d4fb['length']-0x1]-_0x5d1319[_0x5d1319['length']-0x1];_0x5115a1&&(this['_operationsData']['push']({'type':'remove','path':_0x5d1319,'howMany':_0x5115a1}),_0x48d4fb[_0x48d4fb['length']-0x1]-=_0x5115a1);}for(const {before:_0x384dab}of _0x108e8c)this['_operationsData']['push']({'type':'merge','path':_0x384dab});}else for(let _0x556bbd=0x0;_0x556bbd<_0x4d20bb['length']-0x1;_0x556bbd++){const _0x5da585=_0x4d20bb[_0x556bbd]['after'],_0x490633=_0x4d20bb[_0x556bbd+0x1]['before'],_0x29d32a=_0x4d20bb[_0x556bbd]['index']+0x1,_0x97391=_0x4d20bb[_0x556bbd+0x1]['index'];if(_0x29d32a!==_0x97391&&this['_operationsData']['push']({'type':'insert','path':_0x5da585,'tokens':_0x51d05a['slice'](_0x29d32a,_0x97391)}),_0x556bbd<_0x108e8c['length']){this['_operationsData']['push']({'type':'split','path':_0x490633});const _0x17444b=_0x51d05a[_0x18bd56[_0x18bd56['length']-0x1-_0x556bbd]['index']],_0x3dda75=_0x108e8c[_0x556bbd]['after'],_0x4f489b=_0x108e8c[_0x556bbd]['related']['element'];this['_handleElementRename'](_0x4f489b,_0x17444b['element'],_0x3dda75),this['_handleElementAttributeChanges'](_0x4f489b,_0x17444b['element'],_0x3dda75);}}}['_traverseOverItem'](_0x14c6ac){'element'==_0x14c6ac['type']&&_0x14c6ac['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x14c6ac)):'element'!=_0x14c6ac['type']||_0x14c6ac['isStart']?'text'==_0x14c6ac['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x14c6ac['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x167ca0,_0x4b2437,_0x232630){_0x167ca0['name']!=_0x4b2437['name']&&this['_operationsData']['push']({'type':'rename','path':_0x232630['slice'](),'oldName':_0x167ca0['name'],'newName':_0x4b2437['name']});}['_handleElementAttributeChanges'](_0x3ded44,_0x2245e2,_0x310d36){const _0x21bf71=this['_getAttributeChanges'](_0x3ded44['getAttributes'](),_0x2245e2['getAttributes']());for(const _0x29a6c7 in _0x21bf71){const {oldValue:_0x2d605d,newValue:_0xa4bd71}=_0x21bf71[_0x29a6c7];this['_operationsData']['push']({'type':'attribute','path':_0x310d36['slice'](),'howMany':0x1,'key':_0x29a6c7,'oldValue':_0x2d605d,'newValue':_0xa4bd71});}}['_handleTextAttributeChanges'](_0x207e23,_0x343d3f,_0x472a12){const _0x4bab10=this['_operationsData'],_0x82adfe=_0x207e23[0x0]['parent'],_0xe29b33=_0x207e23[0x0]['offset'],_0x3fae72=_0x343d3f[0x0]['parent'],_0x4e1c78=_0x343d3f[0x0]['offset'],_0x546e08=_0x207e23['reduce']((_0xe25dd9,_0x12d78c)=>_0xe25dd9+_0x12d78c['data']['length'],0x0),_0x3ba715=this['_getAttrsForOffsets'](_0x82adfe,_0xe29b33,_0x546e08),_0x3bc373=this['_getAttrsForOffsets'](_0x3fae72,_0x4e1c78,_0x546e08),_0x13095d={};for(let _0x5aa104=0x0;_0x5aa104<_0x546e08;_0x5aa104++){const _0x226364=_0x3ba715[_0xe29b33+_0x5aa104],_0x457e1e=_0x3bc373[_0x4e1c78+_0x5aa104],_0x55c38d=this['_getAttributeChanges'](_0x226364,_0x457e1e);for(const _0x315682 in _0x13095d)_0x55c38d[_0x315682]||_0x12f42c(_0x315682);for(const _0x3c5222 in _0x55c38d){const {oldValue:_0xc31a6e,newValue:_0x7aa568}=_0x55c38d[_0x3c5222],_0x7ae72b=_0x13095d[_0x3c5222];_0x7ae72b?_0x7ae72b['oldValue']==_0xc31a6e&&_0x7ae72b['newValue']==_0x7aa568?_0x7ae72b['length']++:(_0x12f42c(_0x3c5222),_0x13095d[_0x3c5222]={'oldValue':_0xc31a6e,'newValue':_0x7aa568,'start':_0x5aa104,'length':0x1}):_0x13095d[_0x3c5222]={'oldValue':_0xc31a6e,'newValue':_0x7aa568,'start':_0x5aa104,'length':0x1};}}for(const _0x5c379b in _0x13095d)_0x12f42c(_0x5c379b);function _0x12f42c(_0x419091){const _0x3babac=_0x13095d[_0x419091],_0x386019=_0x472a12['slice']();_0x386019[_0x386019['length']-0x1]+=_0x3babac['start'],_0x4bab10['push']({'type':'attribute','path':_0x386019,'howMany':_0x3babac['length'],'key':_0x419091,'oldValue':_0x3babac['oldValue'],'newValue':_0x3babac['newValue']}),delete _0x13095d[_0x419091];}}['_getAttributeChanges'](_0x2c1847,_0x1317bb){const _0x229b14={};for(const [_0x243a9e,_0xb98aaf]of _0x2c1847)_0x229b14[_0x243a9e]={'oldValue':JSON['stringify'](_0xb98aaf),'newValue':'null'};for(const [_0x4abe39,_0x46f020]of _0x1317bb){const _0x410f1e=JSON['stringify'](_0x46f020);_0x229b14[_0x4abe39]?_0x229b14[_0x4abe39]['oldValue']==_0x410f1e?delete _0x229b14[_0x4abe39]:_0x229b14[_0x4abe39]['newValue']=_0x410f1e:_0x229b14[_0x4abe39]={'oldValue':'null','newValue':_0x410f1e};}return delete _0x229b14[St],_0x229b14;}['_getAttrsForOffsets'](_0x1063dd,_0x4ef335,_0x49ef1e){const _0x111609=new Array(_0x4ef335+_0x49ef1e);let _0x34637b=_0x1063dd['getChildAtOffset'](_0x4ef335),_0x24dc4c=_0x34637b['startOffset'];for(;_0x34637b&&_0x24dc4c<_0x4ef335+_0x49ef1e;){const _0x34d4d6=Array['from'](_0x34637b['getAttributes']());_0x111609['fill'](_0x34d4d6,_0x24dc4c,_0x24dc4c+_0x34637b['offsetSize']),_0x24dc4c+=_0x34637b['offsetSize'],_0x34637b=_0x34637b['nextSibling'];}return _0x111609;}['_getPositionFromAnchorAndPath'](_0x5229aa,_0x27aa17){const _0x5a5ba3=[..._0x5229aa['path']['slice'](0x0,-0x1),_0x5229aa['offset']+_0x27aa17[0x0],..._0x27aa17['slice'](0x1)];return new _0x4e03e0(_0x5229aa['root'],_0x5a5ba3);}['_makeModelFromTokens'](_0xcced30){const _0x40692f=[];let _0xfd233a=null;for(const _0x3cbea9 of _0xcced30)if('element'!=_0x3cbea9['type']||_0x3cbea9['isStart']||_0xfd233a!=_0x3cbea9['element']){if(!_0xfd233a){if('text'==_0x3cbea9['type']){const _0x775951=_0x4e03e0['_createAt'](_0x3cbea9['parent'],_0x3cbea9['offset']),_0x49c275=_0x2a6799['_createFromPositionAndShift'](_0x775951,_0x3cbea9['data']['length']),_0x269c24=Array['from'](_0x49c275['getItems']())['map'](_0x2db40c=>new _0x33a328(_0x2db40c['data'],_0x2db40c['getAttributes']()));_0x40692f['push'](..._0x269c24);}else{_0xfd233a=_0x3cbea9['element'];const _0xdddcc6=_0x3cbea9['element']['_clone'](!0x0);_0xdddcc6['_removeAttribute'](St);for(const _0x50b4ce of this['_editor']['model']['createRangeIn'](_0xdddcc6)['getItems']())_0x50b4ce['is']('element')&&_0x50b4ce['_removeAttribute'](St);_0x40692f['push'](_0xdddcc6);}}}else _0xfd233a=null;return _0x40692f;}}function g(_0x98bd44,_0x50607e){return _0x98bd44['type']===_0x50607e['type']&&(_0x98bd44['limitId']===_0x50607e['limitId']&&('text'==_0x98bd44['type']?_0x98bd44['data']==_0x50607e['data']:function(_0xd9d04f,_0x13468c){if(_0xd9d04f['isStart']!=_0x13468c['isStart'])return!0x1;if(_0xd9d04f['isStart']&&_0xd9d04f['elementId']!=_0x13468c['elementId'])return!0x1;if(_0xd9d04f['category']!=_0x13468c['category'])return!0x1;if('block'==_0xd9d04f['category'])return!0x0;if('container'==_0xd9d04f['category']&&_0xd9d04f['elementId']!=_0x13468c['elementId'])return!0x1;return _0xd9d04f['element']['name']==_0x13468c['element']['name'];}(_0x98bd44,_0x50607e)));}function _(_0x34d850){return k({'name':_0x34d850['name'],...Object['fromEntries'](_0x34d850['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,ct 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};
23
+ import{ContextPlugin as _0x8d5aec,Editor as _0x1d6133,Plugin as _0x3d6ff9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x47fe11,Collection as _0x21985b,uid as _0x3f6241,toArray as rt,first as _0x39c356,FocusTracker as ts,KeystrokeHandler as _0x4de193}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x383575,IconView as st,ButtonView as _0x172337,DropdownButtonView as _0x4cd575,FocusCycler as _0x31c898,isViewWithFocusCycler as _0x1c1490}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0xc55599,IconCancel as _0x1c91f5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0x553352}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x297087,MoveOperation as _0x1ce243,ModelPosition as _0x129786,ModelRange as _0x4c91b7,MarkerOperation as _0x10ec44,MergeOperation as _0x17201b,SplitOperation as _0x19f486,RenameOperation as _0x335406,AttributeOperation as _0x4198e1,ModelTreeWalker as _0x2b875f,ModelText as _0x263161}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x2c39d2}from'diff';class C extends _0x8d5aec{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x55fb5c,_0x20d7bf){let _0x11b6d2;if(_0x20d7bf||(_0x20d7bf=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x20d7bf?_0x11b6d2=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x11b6d2=this['context']['editors']['find'](_0x4a7be5=>_0x4a7be5['config']['get']('collaboration.channelId')==_0x20d7bf)),!_0x11b6d2)throw new _0x47fe11('permissions-set-permissions-invalid-channel-id',null);const _0x259399=_0x11b6d2['plugins'],_0x434d4a=_0x259399['has']('CommentsRepository')?_0x259399['get']('CommentsRepository'):void 0x0,_0x1f2df1=_0x259399['has']('CommentsOnly')&&_0x259399['get']('CommentsOnly'),_0x5b2b5f=_0x55fb5c['includes']('document:write'),_0x383f45=_0x55fb5c['includes']('comment:modify_all'),_0x48c198=_0x55fb5c['includes']('comment:admin'),_0x384087=_0x55fb5c['includes']('comment:write'),_0x3e4a0d=_0x384087||_0x48c198,_0x39d4fc=_0x3e4a0d||_0x383f45,_0x6ee124=_0x5b2b5f||_0x3e4a0d;(_0x1f2df1&&(_0x1f2df1['isEnabled']=!_0x5b2b5f&&_0x39d4fc),_0x11b6d2 instanceof _0x1d6133)&&(!(_0x5b2b5f||_0x39d4fc&&_0x434d4a)?_0x11b6d2['enableReadOnlyMode']('no-permissions'):_0x11b6d2['disableReadOnlyMode']('no-permissions'));if(_0x434d4a){_0x434d4a['setPermissions']({'admin':_0x48c198,'modifyAll':_0x383f45,'write':_0x384087,'resolve':_0x6ee124},_0x20d7bf);const _0x15e62e=_0x11b6d2 instanceof _0x1d6133&&_0x11b6d2['commands']['get']('addCommentThread');_0x15e62e&&(_0x3e4a0d?_0x15e62e['clearForceDisabled']('noPermissions'):_0x15e62e['forceDisabled']('noPermissions'));}}}function U(_0x3bbbd2,_0x38d028){const t=_0x3bbbd2['t'];switch(_0x38d028){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 _0x8d5aec{['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(_0x7f15c){super(_0x7f15c),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x21985b(),this['_locale']=_0x7f15c['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:_0x1c386a,name:_0x414937,..._0x6b8d49}){if(!_0x1c386a||'string'!=typeof _0x1c386a)throw new _0x47fe11('users-add-invalid-id');if(this['users']['has'](_0x1c386a))throw new _0x47fe11('users-add-duplicated-id',null,{'id':_0x1c386a});const _0x1a6cbb=this['context']['config']['get']('users.getInitialsCallback'),_0x47dd81={..._0x6b8d49,'id':_0x1c386a,'name':A(this['_locale'],_0x414937),'color':this['_getNextColor']()};_0x47dd81['name']=A(this['_locale'],_0x47dd81['name']);const _0x3cf3d1=new lt(_0x47dd81,_0x1a6cbb);return this['users']['add'](_0x3cf3d1),_0x3cf3d1;}['getUser'](_0x2650e0){return this['users']['get'](_0x2650e0);}['useAnonymousUser'](){const _0x184fb3=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x184fb3);}['defineMe'](_0x1e139a){if(this['_myId'])throw new _0x47fe11('users-me-already-defined',null);const _0x3f959e=this['getUser'](_0x1e139a);if(!_0x3f959e)throw new _0x47fe11('users-me-missing-user',null);this['_myId']=_0x1e139a,_0x3f959e['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x309bff=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x309bff&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x34c5f1=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x34c5f1,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x360781,_0x2237d3){this['id']=_0x360781['id'],this['color']=_0x360781['color'],this['name']=_0x360781['name'],this['initials']=_0x2237d3?_0x2237d3(this['name']):this['_computeInitials'](),this['avatar']=_0x360781['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x50c3a7=this['name']['split']('\x20')['filter'](_0x3c1cb3=>/^[\p{Letter}]/u['test'](_0x3c1cb3));return 0x1===_0x50c3a7['length']?this['_getInitial'](_0x50c3a7[0x0]):0x0===_0x50c3a7['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x50c3a7[0x0])+this['_getInitial'](_0x50c3a7[_0x50c3a7['length']-0x1]);}['_getInitial'](_0x4ba2d4){return String['fromCodePoint'](_0x4ba2d4['codePointAt'](0x0))['toUpperCase']();}}function A(_0x1c0978,_0x5ecd69=''){return''==(_0x5ecd69=_0x5ecd69['trim']())?U(_0x1c0978,'Anonymous'):_0x5ecd69;}class ut{['_id'];constructor(_0x4a9b9b){this['_id']=_0x4a9b9b;}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 _0x383575{['name'];['notificationView'];constructor(_0x19e6b2,_0x27fb03,_0x3dc745){super(_0x19e6b2),this['name']=_0x27fb03['name'],this['notificationView']=null;const _0x1e90a8=['ck','ck-user'],_0x4dfc39=['ck','ck-user__img'];if(_0x27fb03['isAnonymous']&&_0x4dfc39['push']('ck-user__anonymous'),!_0x27fb03['isAnonymous']&&_0x27fb03['isMe']&&_0x1e90a8['push']('ck-user_me'),_0x27fb03['avatar']&&_0x4dfc39['push']('ck-user__avatar'),_0x3dc745){const _0x269df2=new st();_0x269df2['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x269df2['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3dc745},'children':[_0x269df2]};}const _0x31cf97=[{'tag':'div','attributes':{'class':_0x4dfc39,'style':{'background-image':_0x27fb03['avatar']?'url(\x27'+_0x27fb03['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x27fb03['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x27fb03['name']},'children':[{'text':_0x27fb03['initials']}]}];this['notificationView']&&_0x31cf97['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x1e90a8,'data-user-id':_0x27fb03['id']},'children':_0x31cf97});}}class dt extends _0x383575{['id'];constructor(_0x33881d,_0x2bd66c){super(_0x33881d),this['id']='ck-aria-description-'+_0x3f6241(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x2bd66c}]});}}class ft extends _0x172337{['render'](){super['render'](),re(this);}}class gt extends _0x4cd575{['render'](){super['render'](),re(this);}}function re(_0x7d96a6){_0x7d96a6['listenTo'](_0x7d96a6['element'],'mousedown',(_0x60ad53,_0x54decf)=>{_0x54decf['stopPropagation'](),_0x54decf['preventDefault']();}),_0x7d96a6['listenTo'](_0x7d96a6['element'],'mouseup',()=>{_0x7d96a6['element']['focus']();});}function v(_0x1356d2){const _0x15a1af=_0x1356d2['split'](':');return{'group':_0x15a1af[0x0],'type':_0x15a1af[0x1],'subType':_0x15a1af['length']>=0x5?_0x15a1af[0x2]:null,'id':_0x15a1af['length']<0x5?_0x15a1af[0x2]:_0x15a1af[0x3],'authorId':_0x15a1af['length']<0x5?_0x15a1af[0x3]:_0x15a1af[0x4],'markerCount':0x6==_0x15a1af['length']?_0x15a1af[0x5]:null};}function mt(_0x5548aa,_0x1b4c03){const _0xbbdf4a=_0x5548aa['end']['nodeBefore'];if(_0xbbdf4a&&_0xbbdf4a['is']('element')&&_0x1b4c03['schema']['isBlock'](_0xbbdf4a)&&!_0x1b4c03['schema']['isObject'](_0xbbdf4a)){const _0x1bc5d3=_0x1b4c03['createPositionAt'](_0xbbdf4a,'end');return _0x1b4c03['createRange'](_0x5548aa['start'],_0x1bc5d3);}return _0x5548aa;}class M extends _0x3d6ff9{['afterInit'](){const _0x2f531c=this['editor'];if(!_0x2f531c['plugins']['has']('AlignmentEditing'))return;_0x2f531c['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x3d6ff9{['afterInit'](){const _0x500a4d=this['editor'],_0x441b97=_0x500a4d['plugins']['get']('SuggestionsConversion');for(const _0x21103c of ii){if(!_0x500a4d['plugins']['has'](_0x21103c))continue;const _0xc0c8c9=_0x21103c['slice'](0x0,-0x7)['toLowerCase']();_0x441b97['registerInlineAttribute'](_0xc0c8c9);}}}class I extends _0x3d6ff9{['afterInit'](){const _0x1f3ac3=this['editor'],_0x394ccd=_0x1f3ac3['plugins']['get']('SuggestionsConversion');_0x1f3ac3['plugins']['has']('BookmarkEditing')&&_0x394ccd['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x3d6ff9{['afterInit'](){const _0x2de078=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x3307b0,commandName:_0x14b109}of no)this['editor']['plugins']['has'](_0x3307b0)&&_0x2de078['registerInlineAttribute'](_0x14b109);}}class T extends _0x3d6ff9{['afterInit'](){const _0x5d90a4=this['editor'];if(!_0x5d90a4['plugins']['has']('HighlightEditing'))return;_0x5d90a4['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x3d6ff9{['afterInit'](){const _0x5c72f6=this['editor'];if(!_0x5c72f6['plugins']['has']('HtmlEmbed'))return;_0x5c72f6['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x3d6ff9{['afterInit'](){const _0x2f783b=this['editor'];if(!_0x2f783b['plugins']['has']('ImageEditing'))return;const _0x3b811b=_0x2f783b['plugins']['get']('SuggestionsConversion');_0x3b811b['registerBlockAttribute']('src'),_0x2f783b['plugins']['has']('ImageResize')&&_0x3b811b['registerBlockAttribute']('resizedWidth'),_0x2f783b['plugins']['has']('ImageTextAlternativeEditing')&&_0x3b811b['registerBlockAttribute']('alt'),_0x2f783b['plugins']['has']('PictureEditing')&&_0x3b811b['registerBlockAttribute']('sources'),_0x2f783b['plugins']['has']('ImageSizeAttributes')&&(_0x3b811b['registerBlockAttribute']('width'),_0x3b811b['registerBlockAttribute']('height'));}}class $ extends _0x3d6ff9{['afterInit'](){const _0x26b0b3=this['editor'],_0x4179a0=_0x26b0b3['plugins']['get']('SuggestionsConversion');_0x26b0b3['plugins']['has']('IndentBlock')&&_0x4179a0['registerBlockAttribute']('blockIndent');}}class x extends _0x3d6ff9{['afterInit'](){const _0x38d65f=this['editor'];if(!_0x38d65f['plugins']['has']('LineHeight'))return;_0x38d65f['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x3d6ff9{['afterInit'](){const _0x346f2a=this['editor'];if(!_0x346f2a['plugins']['has']('LinkEditing'))return;const _0x53567e=_0x346f2a['plugins']['get']('SuggestionsConversion'),_0x4bc5aa=_0x346f2a['commands']['get']('link');_0x53567e['registerInlineAttribute']('linkHref');for(const _0x400e5a of _0x4bc5aa['manualDecorators'])_0x53567e['registerInlineAttribute'](_0x400e5a['id']);}}class N extends _0x3d6ff9{['afterInit'](){const _0xb11184=this['editor'];if(!_0xb11184['plugins']['has']('ListEditing'))return;const _0x3ce526=_0xb11184['plugins']['get']('SuggestionsConversion'),_0x5e4bb9=_0xb11184['plugins']['has']('TodoListEditing');_0x3ce526['registerBlockAttribute']('listItemId'),_0x3ce526['registerBlockAttribute']('listType'),_0x3ce526['registerBlockAttribute']('listIndent'),_0x5e4bb9&&_0x3ce526['registerBlockAttribute']('todoListChecked');}}class P extends _0x3d6ff9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4d0b3c=this['editor']['config']['get']('list.properties'),_0x32b3fb=this['editor']['plugins']['get']('SuggestionsConversion');_0x4d0b3c['styles']&&_0x32b3fb['registerBlockAttribute']('listStyle'),_0x4d0b3c['reversed']&&_0x32b3fb['registerBlockAttribute']('listReversed'),_0x4d0b3c['startIndex']&&_0x32b3fb['registerBlockAttribute']('listStart');}}class K extends _0x3d6ff9{['afterInit'](){const _0x46b78d=this['editor'],_0x2f2bdb=_0x46b78d['plugins']['get']('SuggestionsConversion');_0x46b78d['plugins']['has']('MultiLevelList')&&_0x2f2bdb['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x3d6ff9{['afterInit'](){const _0x42b761=this['editor'];if(!_0x42b761['plugins']['has']('Style')||!_0x42b761['plugins']['has']('DataSchema')||!_0x42b761['config']['get']('style.definitions'))return;const _0x544e35=_0x42b761['plugins']['get']('SuggestionsConversion'),_0x59cb9d=_0x42b761['config']['get']('style.definitions'),_0x2f0388=_0x42b761['plugins']['get']('GeneralHtmlSupport'),_0x1d6296=_0x42b761['plugins']['get']('StyleUtils')['normalizeConfig'](_0x42b761['plugins']['get']('DataSchema'),_0x59cb9d),_0x45e553=new Set();for(const _0x48175b of _0x1d6296['block']){const _0x522a03=_0x2f0388['getGhsAttributeNameForElement'](_0x48175b['element']);_0x45e553['add'](_0x522a03);}const _0x47e693=new Set();for(const _0x16349b of _0x1d6296['inline']){const _0x5238bd=_0x2f0388['getGhsAttributeNameForElement'](_0x16349b['element']);_0x47e693['add'](_0x5238bd);for(const _0x5755a2 of _0x16349b['ghsAttributes'])_0x47e693['add'](_0x5755a2);}for(const _0x4c7bf2 of _0x45e553)_0x544e35['registerBlockAttribute'](_0x4c7bf2);for(const _0x18d14d of _0x47e693)_0x544e35['registerInlineAttribute'](_0x18d14d);}}class z extends _0x3d6ff9{['afterInit'](){const _0x6508c7=this['editor'];if(!_0x6508c7['plugins']['has']('TableEditing'))return;const _0x3a8177=_0x6508c7['plugins']['get']('SuggestionsConversion');_0x3a8177['registerBlockAttribute']('headingRows'),_0x3a8177['registerBlockAttribute']('headingColumns');}}class O extends _0x3d6ff9{['afterInit'](){const _0x53ab1b=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x31a6d7=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x43ceb2 of _0x31a6d7)_0x53ab1b['registerBlockAttribute'](_0x43ceb2);}}class R extends _0x3d6ff9{['afterInit'](){const _0x4db10c=this['editor'],_0x128c3c=_0x4db10c['plugins']['get']('SuggestionsConversion');_0x4db10c['plugins']['has']('TableLayout')&&_0x128c3c['registerBlockAttribute']('tableType');}}class F extends _0x3d6ff9{['afterInit'](){const _0x33e744=this['editor'],_0x29b559=this['editor']['plugins']['get']('SuggestionsConversion');_0x33e744['plugins']['has']('Uploadcare')&&_0x33e744['plugins']['has']('UploadcareImageEdit')&&_0x29b559['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x3d6ff9{['afterInit'](){const _0x5e0202=this['editor'];if(!_0x5e0202['plugins']['has']('ShiftEnter'))return;const _0x5f5d63=_0x5e0202['plugins']['get']('SuggestionsConversion'),_0x153272=(_0x4d028f,_0x4b1e67,_0x1dfaba,_0x47c5e0)=>{if(_0x47c5e0&&!_0x1dfaba['options']['showSuggestionHighlights'])return;if(!_0x1dfaba['consumable']['test'](_0x4b1e67['markerRange'],_0x4d028f['name']))return;const _0x460c6d=_0x5e0202['model'];for(const _0x22976c of _0x4b1e67['markerRange']['getItems']()){if(!_0x22976c['is']('element','softBreak'))continue;const _0x1f6b99='deletion'==_0x4b1e67['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3de953,authorId:_0x3bc346}=v(_0x4b1e67['markerName']),_0x430af6=_0x1dfaba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f6b99,'data-suggestion':_0x3de953,'data-author-id':_0x3bc346}),_0x325d7e=_0x1dfaba['mapper']['toViewPosition'](_0x460c6d['createPositionBefore'](_0x22976c));!_0x47c5e0&&_0x5f5d63['_activeMarkers']['includes'](_0x4b1e67['markerName'])&&_0x1dfaba['writer']['addClass']('ck-suggestion-marker--active',_0x430af6),_0x1dfaba['writer']['insert'](_0x325d7e,_0x430af6),_0x1dfaba['mapper']['bindElementToMarker'](_0x430af6,_0x4b1e67['markerName']);}};_0x5e0202['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1ea2a3,_0x3ea174,_0x3ee80e)=>{_0x153272(_0x1ea2a3,_0x3ea174,_0x3ee80e,!0x1);},{'priority':'high'}),_0x5e0202['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50e813,_0x2ebd4c,_0x162bac)=>{_0x153272(_0x50e813,_0x2ebd4c,_0x162bac,!0x0);},{'priority':'high'});}}class J extends _0x3d6ff9{['afterInit'](){const _0x5e6c9a=this['editor'];_0x5e6c9a['plugins']['has']('MediaEmbedEditing')&&(_0x5e6c9a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x6bc53d,{writer:_0x45faf2,options:_0x3d7542})=>{if(_0x3d7542['showSuggestionHighlights'])return _0x45faf2['createEmptyElement']('div');},'converterPriority':'high'}),_0x5e6c9a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x87bc0e,_0x1924af,_0xfc115f)=>{_0xfc115f['options']['showSuggestionHighlights']&&_0x87bc0e['stop']();},{'priority':'high'}));}}class L extends _0x3d6ff9{['afterInit'](){const _0x17a9da=this['editor'];if(!_0x17a9da['plugins']['has']('Table'))return;_0x17a9da['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3bd9b8,_0x402249,_0x5d9ee6)=>{((_0x42b211,_0x4ffec8,_0x2b0ce8)=>{if(!_0x2b0ce8['options']['showSuggestionHighlights'])return;const _0xae519b=_0x4ffec8['item'];if(!_0xae519b||!_0xae519b['is']('element','tableCell'))return;const _0x13cd83=_0x2b0ce8['mapper']['toViewElement'](_0xae519b);if(_0x13cd83){const {id:_0x46cc7b,authorId:_0x49d3d3}=v(_0x4ffec8['markerName']);it(_0x13cd83,_0x2b0ce8['writer'],(_0x2a0e7a,_0x1044a0,_0x2efdb2)=>{_0x2efdb2['addClass'](rt(_0x1044a0['classes']),_0x2a0e7a),_0x2efdb2['setAttribute']('data-suggestion-id',_0x46cc7b,_0x2a0e7a),_0x2efdb2['setAttribute']('data-author-id',_0x49d3d3,_0x2a0e7a);});}})(0x0,_0x402249,_0x5d9ee6);},{'priority':'highest'});}}class Q extends _0x3d6ff9{['afterInit'](){const _0x32ff8e=this['editor'];_0x32ff8e['plugins']['has']('HorizontalLineEditing')&&_0x32ff8e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x19cbc8,{writer:_0x2bd5be,options:_0x19705c})=>{if(!_0x19705c['showSuggestionHighlights'])return null;const _0x35cde4=_0x2bd5be['createContainerElement']('div'),_0x31ae3b=_0x2bd5be['createEmptyElement']('hr');return _0x2bd5be['addClass']('ck-horizontal-line',_0x35cde4),_0x2bd5be['insert'](_0x2bd5be['createPositionAt'](_0x35cde4,0x0),_0x31ae3b),_0x35cde4;},'converterPriority':'high'});}}class kt extends _0x3d6ff9{['_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 _0x4020d4=this['editor'],_0x2190ef=(_0x5a602e,_0x3f583d,_0x426212)=>{const {id:_0x54a6fc,authorId:_0x472ddc,type:_0x3fce31,subType:_0x1e341d}=v(_0x5a602e['markerName']),_0x2632a8=['ck-suggestion-marker',this['_getClassName'](_0x3fce31,_0x1e341d)];let _0x24c44b=0xbb8;return!_0x426212&&(this['_activeMarkers']['includes'](_0x5a602e['markerName'])&&(_0x2632a8['push']('ck-suggestion-marker--active'),_0x24c44b=0xbc2)),('deletion'==_0x3fce31&&(_0x24c44b+=0x5),{'classes':_0x2632a8,'attributes':{'data-suggestion':_0x54a6fc,'data-author-id':_0x472ddc},'priority':_0x24c44b});};_0x4020d4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x347349,_0xa4fa50)=>_0x2190ef(_0x347349,0x0,!0x1)}),_0x4020d4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2f471b,_0x340e61)=>_0x2190ef(_0x2f471b,0x0,!0x0)}),_0x4020d4['conversion']['for']('dataDowncast')['add'](_0x38d019=>{_0x38d019['on']('addMarker:suggestion',(_0x132495,_0x114d1b,_0x45bf2b)=>{if(!_0x45bf2b['options']['showSuggestionHighlights'])return;const _0x5059a9=_0x114d1b['item'];if(!_0x5059a9)return;const _0x5837ff=_0x45bf2b['mapper']['toViewElement'](_0x5059a9);_0x4020d4['model']['schema']['isObject'](_0x5059a9)&&_0x5837ff&&!_0x5837ff['getCustomProperty']('widget')&&_0x5837ff['is']('containerElement')&&_0x553352(_0x5837ff,_0x45bf2b['writer']);},{'priority':'high'});});const _0x1971d9=(_0x7ed642,_0x24d2ac,_0x177bdb,_0x3112bd,_0xd3f7b8)=>{if(_0x3112bd&&!_0x177bdb['options']['showSuggestionHighlights'])return;if(!_0x24d2ac['item'])return;const {id:_0x4ca928,authorId:_0x32f889,subType:_0x52b2fa}=v(_0x24d2ac['markerName']);if(_0xd3f7b8){const _0x2743b7=_0x52b2fa['split']('|')[0x0];if(!this['isBlockAttribute'](_0x2743b7))return;}if(_0x24d2ac['item']['is']('selection'))return void _0x177bdb['consumable']['consume'](_0x24d2ac['item'],_0x7ed642['name']);const _0x2ef6d0=_0x177bdb['mapper']['toViewElement'](_0x24d2ac['item']);if(_0x24d2ac['item']['is']('element')&&_0x4020d4['model']['schema']['isBlock'](_0x24d2ac['item'])&&!_0x2ef6d0['getCustomProperty']('addHighlight')){_0x177bdb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2ef6d0),_0x177bdb['writer']['setAttribute']('data-suggestion',_0x4ca928,_0x2ef6d0),_0x177bdb['writer']['setAttribute']('data-author-id',_0x32f889,_0x2ef6d0),_0x177bdb['mapper']['bindElementToMarker'](_0x2ef6d0,_0x24d2ac['markerName']),_0x3112bd||(this['_activeMarkers']['includes'](_0x24d2ac['markerName'])?_0x177bdb['writer']['addClass']('ck-suggestion-marker--active',_0x2ef6d0):_0x177bdb['writer']['removeClass']('ck-suggestion-marker--active',_0x2ef6d0));for(const _0x193ca9 of _0x4020d4['model']['createRangeIn'](_0x24d2ac['item'])['getItems']())_0x177bdb['consumable']['consume'](_0x193ca9,_0x7ed642['name']);_0x177bdb['consumable']['consume'](_0x24d2ac['item'],_0x7ed642['name']);}},_0x59acff=(_0x54033f,_0x4bbcc2,_0x2d5533,_0x2bf637)=>{const _0x583288=_0x2d5533['mapper']['markerNameToElements'](_0x4bbcc2['markerName']);if(_0x583288){if(_0x2bf637){const {subType:_0x14c48c}=v(_0x4bbcc2['markerName']),_0x3c36ac=_0x14c48c['split']('|')[0x0];if(!this['isBlockAttribute'](_0x3c36ac))return;}for(const _0x126004 of _0x583288)_0x126004['getCustomProperty']('addHighlight')||(_0x2d5533['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x126004),_0x2d5533['writer']['removeAttribute']('data-suggestion',_0x126004),_0x2d5533['writer']['removeAttribute']('data-author-id',_0x126004),_0x2d5533['mapper']['unbindElementFromMarkerName'](_0x126004,_0x4bbcc2['markerName']));}};_0x4020d4['conversion']['for']('editingDowncast')['add'](_0x27f7a3=>{_0x27f7a3['on']('addMarker:suggestion:formatBlock',(_0x3e0c4a,_0x1c0495,_0x3a46b9)=>{_0x1971d9(_0x3e0c4a,_0x1c0495,_0x3a46b9,!0x1,!0x1);},{'priority':'high'});}),_0x4020d4['conversion']['for']('editingDowncast')['add'](_0x33d174=>{_0x33d174['on']('addMarker:suggestion:attribute',(_0x2a5e97,_0x1a095e,_0x13dbd0)=>{_0x1971d9(_0x2a5e97,_0x1a095e,_0x13dbd0,!0x1,!0x0);},{'priority':'high'});}),_0x4020d4['conversion']['for']('editingDowncast')['add'](_0x24017c=>{_0x24017c['on']('removeMarker:suggestion:formatBlock',(_0x3ca32b,_0x28b3ee,_0xbdb151)=>{_0x59acff(0x0,_0x28b3ee,_0xbdb151,!0x1);},{'priority':'high'});}),_0x4020d4['conversion']['for']('editingDowncast')['add'](_0x21d9a0=>{_0x21d9a0['on']('removeMarker:suggestion:attribute',(_0x5024a2,_0x1554c9,_0x1cc653)=>{_0x59acff(0x0,_0x1554c9,_0x1cc653,!0x0);},{'priority':'high'});}),_0x4020d4['conversion']['for']('dataDowncast')['add'](_0x478da4=>{_0x478da4['on']('addMarker:suggestion:formatBlock',(_0x54a723,_0x3b511e,_0x4cec1b)=>{_0x1971d9(_0x54a723,_0x3b511e,_0x4cec1b,!0x0,!0x1);},{'priority':'highest'});}),_0x4020d4['conversion']['for']('dataDowncast')['add'](_0x383df8=>{_0x383df8['on']('addMarker:suggestion:attribute',(_0x2eba90,_0x19cd8b,_0x2b98e7)=>{_0x1971d9(_0x2eba90,_0x19cd8b,_0x2b98e7,!0x0,!0x0);},{'priority':'highest'});}),_0x4020d4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2ea77c,_0x5d7852)=>{if(_0x5d7852['options']['showSuggestionHighlights']){const {id:_0x24f613,authorId:_0x15b235}=v(_0x2ea77c);return _0x2ea77c['includes'](':split')||_0x2ea77c['includes'](':merge')?{'group':'suggestion','name':_0x2ea77c['substr'](0xb),'attributes':{'data-suggestion':_0x24f613,'data-author-id':_0x15b235}}:null;}return{'group':'suggestion','name':_0x2ea77c['substr'](0xb)};}});const _0x37a520=(_0x1b81e4,_0x54ba8a,_0x528d29,_0x2d1cee,_0x1f3f35)=>{if(_0x2d1cee&&!_0x528d29['options']['showSuggestionHighlights'])return;if(!_0x528d29['consumable']['test'](_0x54ba8a['markerRange'],_0x1b81e4['name']))return;const _0x5bc99c=this['_activeMarkers'],_0x20de1d=_0x54ba8a['markerRange']['getWalker'](),_0x29a5ba=_0x54ba8a['markerRange']['start'],_0x2f905e=_0x4020d4['model']['schema'];let _0x3b5db0=null,_0x565725=null,_0xf9c2b3=!0x1,_0x130825=!0x1;for(const _0xecfcee of _0x20de1d){const _0x131b7c=_0xecfcee['item'];_0xf9c2b3=_0xf9c2b3||_0x2f905e['isContent'](_0x131b7c);const _0xac5e92=_0x528d29['mapper']['toViewElement'](_0x131b7c);if(_0xac5e92&&_0xac5e92['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xecfcee['type']&&(_0x2f905e['isBlock'](_0x131b7c)&&!_0x2f905e['isLimit'](_0x131b7c)&&(_0x131b7c['nextSibling']||_0x29a5ba['isAtEnd']?_0x3b5db0&&_0x3b5db0['parent']==_0x131b7c||(_0x3b5db0=_0x131b7c,_0x24beb0(_0xecfcee['previousPosition']),_0x130825=!0x0):_0x565725=_0x565725||_0xecfcee['previousPosition']));}function _0x24beb0(_0x43ac53){const {id:_0x202fef,authorId:_0x3e0cb4}=v(_0x54ba8a['markerName']),_0x4fa22c=_0x528d29['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f3f35,'data-suggestion':_0x202fef,'data-author-id':_0x3e0cb4}),_0x518c77=_0x528d29['mapper']['toViewPosition'](_0x43ac53);!_0x2d1cee&&_0x5bc99c['includes'](_0x54ba8a['markerName'])&&_0x528d29['writer']['addClass']('ck-suggestion-marker--active',_0x4fa22c),_0x528d29['writer']['insert'](_0x518c77,_0x4fa22c),_0x528d29['mapper']['bindElementToMarker'](_0x4fa22c,_0x54ba8a['markerName']);}_0xf9c2b3||_0x130825||!_0x565725||_0x24beb0(_0x565725);};_0x4020d4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5ea2a5,_0x280638,_0x237da8)=>{_0x37a520(_0x5ea2a5,_0x280638,_0x237da8,!0x1,'merge');},{'priority':'high'}),_0x4020d4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c1b39,_0x2de304,_0x387df0)=>{_0x37a520(_0x1c1b39,_0x2de304,_0x387df0,!0x0,'merge');},{'priority':'high'}),_0x4020d4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x393fdc,_0x5d7107,_0x16a4e7)=>{_0x37a520(_0x393fdc,_0x5d7107,_0x16a4e7,!0x1,'split');},{'priority':'high'}),_0x4020d4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x58f777,_0x317bee,_0x2c1866)=>{_0x37a520(_0x58f777,_0x317bee,_0x2c1866,!0x0,'split');},{'priority':'high'}),_0x4020d4['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e9e10,_0x4f4cfb,_0x3be561)=>{((_0xd68985,_0x1845e5,_0x3bb948)=>{const _0x87db85=_0x3bb948['mapper']['markerNameToElements'](_0x1845e5['markerName']);if(_0x87db85){for(const _0x35bd22 of _0x87db85)(_0x35bd22['hasClass']('ck-suggestion-marker-split')||_0x35bd22['hasClass']('ck-suggestion-marker-merge'))&&(_0x3bb948['mapper']['unbindElementFromMarkerName'](_0x35bd22,_0x1845e5['markerName']),_0x3bb948['writer']['remove'](_0x35bd22));}})(0x0,_0x4f4cfb,_0x3be561);},{'priority':'high'});const _0x1599fe=(_0x204c20,_0x5307a0,_0x2aeaf2,_0x9b50d4)=>{if(_0x9b50d4&&!_0x2aeaf2['options']['showSuggestionHighlights'])return;const _0x38267d=_0x5307a0['markerRange']['start'],_0xbfcf55=_0x5307a0['markerRange']['end'],_0x1a3588=_0x4020d4['model']['schema'];if(!_0x38267d['isTouching'](_0xbfcf55)||!_0x38267d['nodeAfter'])return;const _0x28c48b=_0x38267d['nodeAfter'];if(_0x1a3588['isBlock'](_0x28c48b)&&!_0x1a3588['isLimit'](_0x28c48b)&&_0x1a3588['checkChild'](_0x28c48b,'$text')){if(!_0x2aeaf2['consumable']['consume'](_0x5307a0['markerRange'],_0x204c20['name']))return;const {id:_0x69222f,authorId:_0x3a3a8a}=v(_0x5307a0['markerName']),_0x1296b1=_0x2aeaf2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x69222f,'data-author-id':_0x3a3a8a}),_0xcc502c=_0x2aeaf2['mapper']['toViewPosition'](_0xbfcf55);!_0x9b50d4&&this['_activeMarkers']['includes'](_0x5307a0['markerName'])&&_0x2aeaf2['writer']['addClass']('ck-suggestion-marker--active',_0x1296b1),_0x2aeaf2['writer']['insert'](_0xcc502c,_0x1296b1),_0x2aeaf2['mapper']['bindElementToMarker'](_0x1296b1,_0x5307a0['markerName']);}};_0x4020d4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40118b,_0x430b19,_0x3df59c)=>{_0x1599fe(_0x40118b,_0x430b19,_0x3df59c,!0x1);},{'priority':'high'}),_0x4020d4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x167146,_0xcbb47d,_0x1d3e40)=>{_0x1599fe(_0x167146,_0xcbb47d,_0x1d3e40,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x25541c,_0x194901,_0x18aa36)=>{this['_activeMarkers']=_0x18aa36['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x1bc911){this['_blockAttributeKeys']['add'](_0x1bc911);}['registerInlineAttribute'](_0x8ab7a9){this['_inlineAttributeKeys']['add'](_0x8ab7a9);}['isBlockAttribute'](_0x4ac985){return this['_blockAttributeKeys']['has'](_0x4ac985);}['isInlineAttribute'](_0x1ec216){return this['_inlineAttributeKeys']['has'](_0x1ec216);}['isRegisteredAttribute'](_0x321b17){return this['isInlineAttribute'](_0x321b17)||this['isBlockAttribute'](_0x321b17);}['_getClassName'](_0x53812c,_0x46b8f5){if('attribute'!=_0x53812c)return'ck-suggestion-marker-'+_0x53812c;const _0x1d2260=_0x46b8f5['split']('|')[0x0];return this['isBlockAttribute'](_0x1d2260)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x467c96={},_0x296eb1){if(void 0x0!==_0x467c96['dateTimeFormat']&&'function'!=typeof _0x467c96['dateTimeFormat'])throw new _0x47fe11('invalid-date-time-format');return _0x4f64b8=>{const _0x573ef8='string'==typeof _0x4f64b8?tt['fromISO'](_0x4f64b8):tt['fromJSDate'](_0x4f64b8),_0x48ad8c=tt['now'](),_0x4bfe5e=Math['floor'](_0x48ad8c['diff'](_0x573ef8,'days')['days']);return _0x467c96['dateTimeFormat']?_0x467c96['dateTimeFormat'](_0x573ef8['toJSDate'](),_0x296eb1&&_0x296eb1['t']?_0x296eb1['t']:void 0x0):0x0===_0x4bfe5e?_0x296eb1?U(_0x296eb1,'Today')+'\x20'+_0x573ef8['toFormat']('hh:mma'):_0x573ef8['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x4bfe5e?_0x296eb1?U(_0x296eb1,'Yesterday')+'\x20'+_0x573ef8['toFormat']('hh:mma'):_0x573ef8['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x4bfe5e<0x7?_0x296eb1?U(_0x296eb1,'Last')+'\x20'+U(_0x296eb1,_0x573ef8['toFormat']('EEEE'))+'\x20'+_0x573ef8['toFormat']('hh:mma'):_0x573ef8['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x573ef8['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x4285d4,_0x43e4d4){const _0x44e2aa=_0x4285d4['mapper']['markerNameToElements'](_0x43e4d4['name']);if(!_0x44e2aa)return null;const _0x3211f0=_0x39c356(_0x44e2aa['values']());return _0x4285d4['view']['domConverter']['mapViewToDom'](_0x3211f0)||null;}function wt(_0x4f62ec,_0x1cce0e){if(0x0===_0x1cce0e['length'])return null;const _0xe45747=[],_0x2e27a9=_0x4f62ec['view']['domConverter'];for(const _0x547e93 of _0x1cce0e){const _0x2cfa19=_0x4f62ec['mapper']['markerNameToElements'](_0x547e93['name']);if(!_0x2cfa19)continue;const _0x327831=Array['from'](_0x2cfa19)['map'](_0x5eab56=>_0x2e27a9['mapViewToDom'](_0x5eab56))['filter'](_0x592c86=>!!_0x592c86);_0xe45747['push'](..._0x327831);}if(0x0===_0xe45747['length'])return null;const _0x372752=[];for(const _0x162b6b of _0xe45747){const _0x32fbb4=_0x162b6b['getClientRects']()['item'](0x0);_0x32fbb4&&_0x372752['push']({'x':_0x32fbb4['x'],'y':_0x32fbb4['y'],'domElement':_0x162b6b});}return 0x0===_0x372752['length']?null:(_0x372752['sort']((_0x13ee62,_0x462294)=>_0x13ee62['y']-_0x462294['y']||_0x13ee62['x']-_0x462294['x']),_0x372752['map'](_0x5c62e2=>_0x5c62e2['domElement']));}function bt(_0x1ebc4a,{limit:_0x3c4ead,suffix:_0x4b8089='...'}){const _0x3c343a=[];let _0x2e8378=0x0;const _0x1592ff=_0x1ebc4a['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x49a8f6=0x0;_0x49a8f6<_0x1592ff['length'];_0x49a8f6++){let _0x25c1de=_0x1592ff[_0x49a8f6];const _0x2fb3d5=tn(_0x25c1de);if(_0x25c1de['startsWith']('<')){if(_0x2e8378>=_0x3c4ead){const _0x2dfee7=_0x25c1de['match'](/[a-zA-Z]+/);if(!_0x2dfee7){_0x1592ff[_0x49a8f6]='';continue;}const _0x21eca6=_0x2dfee7[0x0];_0x25c1de['startsWith']('</')?(_0x3c343a['length']&&(_0x25c1de=''),_0x3c343a['pop']()):(_0x3c343a['push'](_0x21eca6),_0x25c1de='');}}else{if(_0x2e8378>=_0x3c4ead)_0x25c1de='';else{if(_0x2e8378+_0x2fb3d5['length']>=_0x3c4ead){let _0x1b4a7c=_0x3c4ead-_0x2e8378;if('\x20'===_0x2fb3d5[_0x1b4a7c-0x1])_0x1b4a7c--;else{const _0x3f3990=_0x2fb3d5['slice'](_0x1b4a7c)['indexOf']('\x20');-0x1!==_0x3f3990?_0x1b4a7c+=_0x3f3990:_0x1b4a7c=_0x25c1de['length'];}_0x25c1de=_0x2fb3d5['slice'](0x0,_0x1b4a7c)['join']('')+_0x4b8089,_0x2e8378=_0x3c4ead;}else _0x2e8378+=_0x2fb3d5['length'];}}_0x1592ff[_0x49a8f6]=_0x25c1de;}return _0x1592ff['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x3c250a){const _0x281e32=[];for(let _0x2cb724=0x0;_0x2cb724<_0x3c250a['length'];_0x2cb724++){const _0x3d85cd=_0x3c250a['substring'](_0x2cb724)['match'](/^&[a-z0-9#]+;/);if(_0x3d85cd){const _0x393f80=_0x3d85cd[0x0];_0x281e32['push'](_0x393f80),_0x2cb724+=_0x393f80['length']-0x1;}else _0x281e32['push'](_0x3c250a[_0x2cb724]);}return _0x281e32;}class V extends _0x383575{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x3a2228){super(_0x3a2228);const _0x402c4d=this['bindTemplate'];this['set']('message',U(_0x3a2228,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x3a2228,U(_0x3a2228,'Yes'),_0xc55599,'submit'),this['cancelView']=this['_createButtonView'](_0x3a2228,U(_0x3a2228,'No'),_0x1c91f5,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x4de193(),this['focusCycler']=new _0x31c898({'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':_0x402c4d['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'](_0x4e27f8,_0xa408af,_0x143115,_0x268895){const _0x197fb8=new _0x172337(_0x4e27f8);return _0x197fb8['label']=_0xa408af,_0x197fb8['icon']=_0x143115,_0x197fb8['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x268895}}),_0x197fb8['on']('execute',()=>this['fire'](_0x268895)),_0x197fb8;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x4317bb=>{this['keystrokes']['listenTo'](_0x4317bb['element']),this['focusTracker']['add'](_0x4317bb['element']);}),this['keystrokes']['set']('esc',(_0x14c2cb,_0xb1e6b7)=>{this['fire']('cancel'),_0xb1e6b7();});}}function vt(_0x5c4656){return class extends _0x5c4656{['showConfirm'](_0x26bdbb,_0x100526){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x26bdbb,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x100526['appendChild'](this['confirmView']['element']),_0x100526['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x48f467,_0x475a22,_0x2b678b)=>{_0x2b678b||_0x100526['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x42d7a9=>this['confirmView']['on']('submit',_0x42d7a9));}['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(_0x5a0498){let _0x2838fc=0x0,_0x3a0aac=0x0;for(const _0x2e1d00 of ne(_0x5a0498))_0x2838fc=(_0x2838fc<<0x5)-_0x2838fc+_0x2e1d00,_0x2838fc&=_0x2838fc,[_0x2838fc,_0x3a0aac]=[_0x3a0aac,_0x2838fc];return ie(_0x2838fc)+ie(_0x3a0aac);}function*ee(_0x27dc20){null==_0x27dc20||null==_0x27dc20?yield 0x12b9b0a1:0x0===_0x27dc20||!0x1===_0x27dc20?yield 0x0:0x1===_0x27dc20||0x1==_0x27dc20?yield 0x1:Array['isArray'](_0x27dc20)?yield*function*(_0xff2e4d){for(const _0xcf9345 of _0xff2e4d)yield*ee(_0xcf9345);}(_0x27dc20):'object'==typeof _0x27dc20?yield*ne(_0x27dc20):'string'==typeof _0x27dc20?yield*oe(_0x27dc20):'number'==typeof _0x27dc20&&(yield _0x27dc20);}function*ne(_0x3b2a0a){if(yield te('{'),_0x3b2a0a){const _0x488462=Object['keys'](_0x3b2a0a)['sort']();for(const _0x4803fc of _0x488462){yield*oe(_0x4803fc),yield te(':');const _0x3e48a6=_0x3b2a0a[_0x4803fc];yield*ee(_0x3e48a6);}}yield te('}');}function*oe(_0x409ef9){yield te('\x22');for(const _0x185268 of _0x409ef9)yield te(_0x185268);yield te('\x22');}function te(_0x119877){return _0x119877['charCodeAt'](0x0);}function ie(_0x87dda8){return(_0x87dda8*=Math['sign'](_0x87dda8))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x3ecbd9,_0x48bf02,_0x14eff4,_0x2db1b5=[]){const _0x10618d='string'==typeof _0x3ecbd9?_0x14eff4['get'](_0x3ecbd9)['constructor']:_0x3ecbd9['prototype']['constructor'];if(_0x48bf02['has'](_0x10618d))return _0x48bf02['get'](_0x10618d);_0x48bf02['set'](_0x10618d,!0x0);const _0xbb6a79=[...et,..._0x2db1b5]['map'](_0x3e28f3=>{if(_0x14eff4['has'](_0x3e28f3))return _0x14eff4['get'](_0x3e28f3)['constructor'];})['filter'](_0x5ba88e=>_0x5ba88e);if(_0x10618d&&_0xbb6a79['includes'](_0x10618d))return _0x48bf02['set'](_0x10618d,!0x1),!0x1;if(!_0x10618d['requires'])return _0x48bf02['set'](_0x10618d,!0x0),!0x0;const _0x3e9def=_0x10618d['requires']['every'](_0x13a5ac=>ot(_0x13a5ac,_0x48bf02,_0x14eff4,_0x2db1b5));return _0x48bf02['set'](_0x10618d,_0x3e9def),_0x3e9def;}function Ct(_0x4be6e4,_0x4e6283){const _0x473ae8={};for(const _0x1d65d9 of _0x4be6e4['config']['names']())nt['includes'](_0x1d65d9)||(_0x473ae8[_0x1d65d9]=_0x4be6e4['config']['get'](_0x1d65d9));const _0x1a5bc5=_0x473ae8['plugins']||[],_0x11f304=_0x4be6e4['constructor']['builtinPlugins']||[],_0x52c900=_0x1a5bc5['length']?_0x1a5bc5:_0x11f304,_0x1c3ec8=_0x473ae8['extraPlugins']||[];delete _0x473ae8['extraPlugins'];const _0x23fc2a=_0x473ae8['removePlugins']||[];delete _0x473ae8['removePlugins'];const _0x5571b3=_0x4be6e4['_context']['config']['get']('plugins')||[],_0x3c7df9=_0x52c900['concat'](_0x1c3ec8)['concat'](_0x5571b3)['map'](_0x149b9e=>'string'==typeof _0x149b9e?_0x11f304['find'](_0x27320d=>_0x27320d['pluginName']==_0x149b9e):_0x149b9e)['filter'](_0x239728=>!_0x23fc2a['includes'](_0x239728)&&!_0x23fc2a['includes'](_0x239728['pluginName'])),_0x34173f=Array['from'](new Set(_0x3c7df9)),_0x413b28=new Map();return _0x473ae8['plugins']=_0x34173f['filter'](_0x9cc1b6=>ot(_0x9cc1b6,_0x413b28,_0x4be6e4['plugins'],_0x4e6283)),_0x473ae8;}function _t(_0x452441,_0x3ac94f){const _0x2d33e0=[];_0x452441['document']['selection']['on']('change:range',()=>{const _0x4dc9ec=function(_0x8997ba,_0x52fce1){const _0x3c6cdd=[];for(const _0x5b836b of _0x8997ba['markers']){const _0x2a89dd=_0x5b836b['getRange']();(_0x2a89dd['containsPosition'](_0x52fce1)||_0x2a89dd['start']['isEqual'](_0x52fce1)||_0x2a89dd['end']['isEqual'](_0x52fce1))&&_0x3c6cdd['push'](_0x5b836b);}return _0x3c6cdd;}(_0x452441,_0x452441['document']['selection']['focus']),_0x227809=[],_0x13063d=[],_0x8b0001=[];for(const _0x2c714e of _0x2d33e0)_0x4dc9ec['includes'](_0x2c714e)||_0x227809['push'](_0x2c714e);for(const _0x1a494a of _0x4dc9ec)_0x2d33e0['includes'](_0x1a494a)||_0x13063d['push'](_0x1a494a),_0x8b0001['push'](_0x1a494a);(_0x227809['length']||_0x13063d['length'])&&_0x3ac94f({'left':_0x227809,'entered':_0x13063d}),_0x2d33e0['length']=0x0,_0x2d33e0['push'](..._0x8b0001);});}const xt='Ctrl+Shift+E';function It(_0x105a37,_0xf094c){const _0x540429=_0x105a37['element'];_0x105a37['keystrokes']['listenTo'](_0x540429);for(const _0x557087 of _0xf094c)ro(_0x105a37,_0x557087);_0xf094c['on']('change',(_0x4a148e,_0x482637)=>{for(const _0x5235b3 of _0x482637['removed'])to(_0x105a37,_0x5235b3);for(const _0x210b22 of Array['from'](_0x482637['added'])['reverse']())ro(_0x105a37,_0x210b22);}),_0x105a37['keystrokes']['set']('enter',(_0x1fbbcb,_0x49376d)=>{_0x540429===_0x1fbbcb['target']&&(_0x105a37['focusCycler']['focusFirst'](),_0x49376d());},{'filter':_0x33351b=>_0x33351b['target']===_0x540429}),_0x105a37['keystrokes']['set']('esc',(_0x31742a,_0x140bd5)=>{_0x540429!==_0x31742a['target']?_0x105a37['focus']():_0x105a37['fire']('escape'),_0x140bd5();}),_0x105a37['keystrokes']['set']('arrowdown',(_0x46c261,_0x114c29)=>{_0x540429===_0x46c261['target']&&(_0x105a37['fire']('arrowdown'),_0x114c29());}),_0x105a37['keystrokes']['set']('arrowup',(_0x4836d7,_0x1de533)=>{_0x540429===_0x4836d7['target']&&(_0x105a37['fire']('arrowup'),_0x1de533());});}function ro(_0x593861,_0x397d08){_0x397d08['isRendered']&&(_0x593861['focusTracker']['add'](_0x397d08['element']),_0x593861['keystrokes']['listenTo'](_0x397d08['element']),_0x1c1490(_0x397d08)&&function(_0x41ef82,_0x252010){const _0x17bc02=_0x41ef82['actions'],_0xf32831=_0x252010['actions'];for(const _0x13041e of Object['keys'](_0x17bc02))if(_0x13041e in _0xf32831&&_0x17bc02[_0x13041e]!==_0xf32831[_0x13041e])return!0x1;return!0x0;}(_0x593861['focusCycler'],_0x397d08['focusCycler'])&&_0x593861['focusCycler']['chain'](_0x397d08['focusCycler']));}function to(_0x50968b,_0x4023a4){_0x50968b['focusTracker']['remove'](_0x4023a4['element']),_0x50968b['keystrokes']['stopListening'](_0x4023a4['element']),_0x1c1490(_0x4023a4)&&_0x50968b['focusCycler']['unchain'](_0x4023a4['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x8d5aec{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x1d6133?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x5c27d2,_0x847af0)=>{_0x847af0['on']('ready',()=>{this['_integrateEditor'](_0x847af0);});});}get['editor'](){if(this['context']instanceof _0x1d6133)return this['context'];{const _0x1b86ca=this['context']['editors']['first'];if(!_0x1b86ca)throw new _0x47fe11('documentcompare-no-editor',this);return _0x1b86ca;}}['getDiff'](_0x1e7e61,_0x996325,_0x3df336={'anchor':'main','markDeletions':!0x1}){const _0x463bb6=this['editor'];let _0x2848fa,_0x29d3cf;if('string'==typeof _0x3df336['anchor']){const _0x529dfa=_0x463bb6['model']['document']['getRoot'](_0x3df336['anchor']);if(!_0x529dfa)throw new _0x47fe11('documentcompare-compare-no-root',this,{'anchor':_0x3df336['anchor']});_0x2848fa=_0x463bb6['model']['createPositionAt'](_0x529dfa,0x0),_0x29d3cf=_0x3df336['context']||_0x529dfa;}else _0x2848fa=_0x3df336['anchor']['clone'](),_0x29d3cf=_0x3df336['context']||_0x3df336['anchor']['clone']();const _0x5dd6c0=_0x463bb6['data']['parse'](_0x1e7e61,_0x29d3cf),_0x270b04=_0x463bb6['data']['parse'](_0x996325,_0x29d3cf);return new Mt(_0x5dd6c0,_0x270b04,_0x463bb6,{'anchor':_0x2848fa,'markDeletions':_0x3df336['markDeletions']});}['isMarkedRemoveOperation'](_0x1d1e58){return'marker'==_0x1d1e58['type']&&_0x1d1e58['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x107b13){_0x107b13['conversion']['for']('upcast')['add'](_0x12b51d=>{_0x12b51d['on']('element',(_0x2cee0e,_0x1007d5,_0x14b446)=>{if(_0x1007d5['modelRange'])for(const _0x3b6b76 of _0x1007d5['modelRange']['getItems']({'shallow':!0x0})){if(_0x3b6b76['is']('$textProxy'))continue;const _0x1f6b9c=_0x1007d5['viewItem']['getAttribute'](Et);_0x1f6b9c&&_0x14b446['writer']['setAttribute'](St,_0x1f6b9c,_0x3b6b76);}},{'priority':'lowest'});}),_0x107b13['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x586038,_0x1daad9,_0x44f266,_0x536b07){this['_editor']=_0x44f266,this['_markDeletions']=!!_0x536b07['markDeletions'],this['_anchor']=_0x536b07['anchor'];const _0x1b2e69=this['_tokenizeModel'](_0x586038),_0x1fb53f=this['_tokenizeModel'](_0x1daad9);this['_diffItems']=this['_diffModelTokens'](_0x1b2e69,_0x1fb53f),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x586038['markers'],_0x1daad9['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x2c7c6b=this['_editor']['model']['document'],_0x35504a=[];let _0x4440b4=_0x2c7c6b['version'];for(const _0x2de2e0 of this['_operationsData'])switch(_0x2de2e0['type']){case'attribute':{const _0x15b208=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['path']),_0x2264d1=_0x15b208['getShiftedBy'](_0x2de2e0['howMany']),_0xa280f=new _0x4c91b7(_0x15b208,_0x2264d1),_0x13f415=JSON['parse'](_0x2de2e0['oldValue']),_0x1d2e7a=JSON['parse'](_0x2de2e0['newValue']);_0x35504a['push'](new _0x4198e1(_0xa280f,_0x2de2e0['key'],_0x13f415,_0x1d2e7a,_0x4440b4++));break;}case'insert':{const _0x2b4ff3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['path']),_0x594aec=this['_makeModelFromTokens'](_0x2de2e0['tokens']);_0x35504a['push'](new _0x297087(_0x2b4ff3,_0x594aec,_0x4440b4++));break;}case'remove':{const _0x4fb6f6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['path']),_0x60ec40=new _0x129786(_0x2c7c6b['graveyard'],[0x0]);_0x35504a['push'](new _0x1ce243(_0x4fb6f6,_0x2de2e0['howMany'],_0x60ec40,_0x4440b4++));break;}case'rename':{const _0x4c72b1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['path']);_0x35504a['push'](new _0x335406(_0x4c72b1,_0x2de2e0['oldName'],_0x2de2e0['newName'],_0x4440b4++));break;}case'split':{const _0x512b0a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['path']),_0x4b0ada=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['path']['slice'](0x0,-0x1));_0x4b0ada['offset']++,_0x35504a['push'](new _0x19f486(_0x512b0a,Number['NEGATIVE_INFINITY'],_0x4b0ada,null,_0x4440b4++));break;}case'merge':{const _0x31f7e0=_0x2de2e0['path']['slice'](),_0x1ef550=_0x31f7e0['slice'](0x0,-0x1);_0x1ef550[_0x1ef550['length']-0x1]++,_0x1ef550['push'](0x0);const _0x4a7d4b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1ef550),_0x5cda99=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x31f7e0),_0x5b9953=new _0x129786(_0x2c7c6b['graveyard'],[0x0]);_0x35504a['push'](new _0x17201b(_0x4a7d4b,Number['NEGATIVE_INFINITY'],_0x5cda99,_0x5b9953,_0x4440b4++));break;}case'marker':case'markedRemove':{let _0x388742=null;if(_0x2de2e0['range']){const _0x416c79=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['range']['start']),_0x2aa6c2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['range']['end']);_0x388742=new _0x4c91b7(_0x416c79,_0x2aa6c2);}const _0x247055='marker'==_0x2de2e0['type']?_0x2de2e0['name']:'$markedRemove:'+_0x3f6241();_0x35504a['push'](new _0x10ec44(_0x247055,null,_0x388742,_0x2c7c6b['model']['markers'],!0x0,_0x4440b4++));break;}case'unwrap':{const _0x176a8f=_0x2de2e0['path']['slice']();_0x176a8f['push'](0x0);const _0x58768d=_0x2de2e0['path']['slice'](),_0x43aafb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x176a8f),_0x597fad=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58768d),_0x39e5b2=new _0x129786(_0x2c7c6b['graveyard'],[0x0]);_0x35504a['push'](new _0x1ce243(_0x43aafb,_0x2de2e0['howMany'],_0x597fad,_0x4440b4++)),_0x35504a['push'](new _0x1ce243(_0x597fad['getShiftedBy'](_0x2de2e0['howMany']),0x1,_0x39e5b2,_0x4440b4++));break;}case'wrap':{const _0x2aef70=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['range']['start']),_0x5a70a1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2de2e0['range']['end']),_0x512c4d=_0x2de2e0['token']['element']['_clone'](!0x1),_0x488713=_0x2de2e0['range']['end']['slice']();_0x488713['push'](0x0);const _0x2e1075=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x488713);_0x35504a['push'](new _0x297087(_0x5a70a1,_0x512c4d,_0x4440b4++)),_0x35504a['push'](new _0x1ce243(_0x2aef70,_0x5a70a1['offset']-_0x2aef70['offset'],_0x2e1075,_0x4440b4++));break;}}return _0x35504a;}['_tokenizeModel'](_0x2da612){const _0x3459ab=[],_0x4ed0e0=_0x4c91b7['_createIn'](_0x2da612),_0xab4586=new _0x2b875f({'boundaries':_0x4ed0e0});let _0x21d054='',_0x218a4e=null;const _0x894ed1=[''],_0x1fe9be=new Map();for(const _0x1a2249 of _0xab4586)if('elementStart'==_0x1a2249['type']||'elementEnd'==_0x1a2249['type']){let _0x441cde=_0x894ed1[0x0];''!==_0x21d054&&(_0x3459ab['push'](...this['_makeTokensFromTextByWords'](_0x21d054,_0x218a4e,_0x441cde)),_0x21d054='');const _0x2982c5=_0x1a2249['item'];let _0x44c7e0;_0x2982c5['getAttribute'](St)?_0x44c7e0=_0x2982c5['getAttribute'](St):'elementStart'==_0x1a2249['type']?(_0x44c7e0=_(_0x2982c5),_0x1fe9be['set'](_0x2982c5,_0x44c7e0)):_0x44c7e0=_0x1fe9be['get'](_0x2982c5);const _0x33c6cb=this['_getElementCategory'](_0x2982c5);'solid'==_0x33c6cb&&('elementStart'==_0x1a2249['type']?(_0x441cde=_0x44c7e0,_0x894ed1['unshift'](_0x441cde)):_0x894ed1['shift']());const _0x226985={'type':'element','element':_0x2982c5,'elementId':_0x44c7e0,'category':_0x33c6cb,'isStart':'elementStart'==_0x1a2249['type'],'limitId':_0x441cde};_0x3459ab['push'](_0x226985);}else''==_0x21d054&&(_0x218a4e=_0x1a2249['previousPosition']['clone']()),_0x21d054+=_0x1a2249['item']['data'];return''!==_0x21d054&&_0x3459ab['push'](...this['_makeTokensFromTextByWords'](_0x21d054,_0x218a4e,_0x894ed1[0x0])),_0x3459ab;}['_makeTokensFromTextByWords'](_0xe6f58b,_0x2aa193,_0x4080dc){const _0xb9483=_0xe6f58b['matchAll'](/(\s)/g),_0x144acc=Array['from'](_0xb9483)['map'](_0x40531a=>_0x40531a['index']);_0x144acc['push'](_0xe6f58b['length']),0x0==_0x144acc[0x0]&&_0x144acc['shift']();const _0x2b4e71=[],_0x96e113=_0x2aa193['parent'];let _0x3eb46b=0x0,_0x49c8de=_0x2aa193['offset'];for(let _0x7ca5b1=0x0;_0x7ca5b1<_0x144acc['length'];_0x7ca5b1++)_0x2b4e71['push']({'type':'text','data':_0xe6f58b['slice'](_0x3eb46b,_0x144acc[_0x7ca5b1]),'parent':_0x96e113,'offset':_0x49c8de,'limitId':_0x4080dc}),_0x3eb46b=_0x144acc[_0x7ca5b1],_0x49c8de=_0x2aa193['offset']+_0x144acc[_0x7ca5b1];return _0x2b4e71;}['_getElementCategory'](_0x4f090f){const _0x565b46=this['_editor']['model']['schema'];return _0x565b46['isLimit'](_0x4f090f)||_0x565b46['isContent'](_0x4f090f)||_0x565b46['isInline'](_0x4f090f)?'solid':_0x565b46['isBlock'](_0x4f090f)?'block':'container';}['_diffModelTokens'](_0x5fbec7,_0x357e37){const _0x49a130=_0x2c39d2(_0x5fbec7,_0x357e37,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x49a130);const _0x20cffd=_0x49a130['flatMap'](_0x16cc11=>{const _0x381d2f=_0x16cc11['added']?'added':_0x16cc11['removed']?'removed':'unchanged';return _0x16cc11['value']['map'](_0x5e395c=>({'token':_0x5e395c,'change':_0x381d2f}));});let _0x51b29f=0x0;for(const _0x35d179 of _0x20cffd)'added'!=_0x35d179['change']&&('unchanged'==_0x35d179['change']&&(_0x35d179['before']=_0x5fbec7[_0x51b29f]),_0x51b29f++);return _0x20cffd;}['_handleUnclosedBlockOpeningTags'](_0x2a6dc9){for(let _0x873c48=0x0;_0x873c48<_0x2a6dc9['length']-0x1;_0x873c48++)if(_0x2a6dc9[_0x873c48]['removed']&&_0x2a6dc9[_0x873c48+0x1]['added']){const _0x222cda=this['_findUnclosedBlockOpeningToken'](_0x2a6dc9[_0x873c48]['value']);if(null!==_0x222cda){const _0x1db888=this['_findUnclosedBlockOpeningToken'](_0x2a6dc9[_0x873c48+0x1]['value']),_0x254cbd=_0x2a6dc9[_0x873c48]['value']['splice'](_0x222cda),_0x3b7045=_0x2a6dc9[_0x873c48+0x1]['value']['splice'](_0x1db888),_0x4d6a99=[_0x3b7045['shift']()];_0x254cbd['shift']();const _0x4ed40={'value':_0x254cbd,'removed':!0x0},_0x321c54={'value':_0x3b7045,'added':!0x0},_0x3fe357={'value':_0x4d6a99};_0x2a6dc9['splice'](_0x873c48+0x2,0x0,_0x3fe357,_0x4ed40,_0x321c54);}}}['_findUnclosedBlockOpeningToken'](_0x374ea9){let _0x3cf275=0x0,_0x24900d=-0x1;for(let _0x487d98=0x0;_0x487d98<_0x374ea9['length'];_0x487d98++){const _0x3dbf37=_0x374ea9[_0x487d98];'element'==_0x3dbf37['type']&&'block'==_0x3dbf37['category']&&(_0x3cf275+=_0x3dbf37['isStart']?0x1:-0x1,_0x3dbf37['isStart']&&(_0x24900d=_0x487d98));}return 0x0===_0x3cf275?null:_0x24900d;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x39fb86=0x0;_0x39fb86<this['_diffItems']['length'];_0x39fb86++){const _0x5b1d5a=this['_diffItems'][_0x39fb86]['change'],_0x567934=[];_0x567934['push'](this['_diffItems'][_0x39fb86]);let _0x14f712=_0x39fb86+0x1;for(;this['_diffItems'][_0x14f712]&&this['_diffItems'][_0x14f712]['change']==_0x5b1d5a;)_0x567934['push'](this['_diffItems'][_0x14f712]),_0x14f712++,_0x39fb86++;const _0x36c2cb=_0x567934['map'](_0x4561b6=>_0x4561b6['token']);if('unchanged'==_0x5b1d5a)_0x567934['map'](_0x45ce6e=>_0x45ce6e['before'])['forEach'](_0x2f02cc=>this['_traverseOverItem'](_0x2f02cc));else{if('removed'==_0x5b1d5a){if(this['_markDeletions']){const _0x4b55b1=this['_path']['slice']();_0x36c2cb['forEach'](_0x2e783c=>this['_traverseOverItem'](_0x2e783c));const _0x52cf67=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x4b55b1,'end':_0x52cf67}});}else this['_handleChanged'](_0x36c2cb,!0x0,this['_path']['slice']());}else{const _0x502ae6=_0x36c2cb['filter'](_0x4f02ac=>'element'!=_0x4f02ac['type']||'container'!=_0x4f02ac['category']);this['_handleChanged'](_0x502ae6,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x13775e=0x0;_0x13775e<this['_diffItems']['length'];_0x13775e++){const _0x13c1c0=this['_diffItems'][_0x13775e]['change'],_0x5e3643=[];_0x5e3643['push'](this['_diffItems'][_0x13775e]);let _0x3d06ee=_0x13775e+0x1;for(;this['_diffItems'][_0x3d06ee]&&this['_diffItems'][_0x3d06ee]['change']==_0x13c1c0;)_0x5e3643['push'](this['_diffItems'][_0x3d06ee]),_0x3d06ee++,_0x13775e++;const _0x387fc7=_0x5e3643['map'](_0x406e94=>_0x406e94['token']);if('unchanged'==_0x13c1c0){const _0x52ce4e=_0x5e3643['map'](_0x5970ea=>_0x5970ea['before']);this['_handleUnchanged'](_0x52ce4e,_0x387fc7);}else('removed'!=_0x13c1c0||this['_markDeletions'])&&_0x387fc7['forEach'](_0x32ef33=>{this['_traverseOverItem'](_0x32ef33);});}}['_calculateMarkersOperationsData'](_0x46479c,_0x2a12ce){const _0x230470={};for(const [_0x5ca61f]of _0x46479c)_0x230470[_0x5ca61f]=null;for(const [_0x1eb180,_0x106599]of _0x2a12ce)_0x230470[_0x1eb180]=_0x106599;const _0x3a0b09=Object['entries'](_0x230470)['map'](([_0x3a5708,_0x337d6f])=>({'type':'marker','name':_0x3a5708,'range':_0x337d6f?{'start':_0x337d6f['start']['path']['slice'](),'end':_0x337d6f['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x3a0b09);}['_handleUnwraps'](){const _0x395985=new Map(),_0x2ca69c=[],_0x4c7787=[0x0];let _0x1837db=this['_diffItems']['length']+0x1;for(let _0x2ccad0=this['_diffItems']['length']-0x1;_0x2ccad0>=0x0;_0x2ccad0--){const {token:_0x33f104,before:_0x5916a7,change:_0x152bb7}=this['_diffItems'][_0x2ccad0];if('removed'!=_0x152bb7&&(_0x1837db=_0x2ccad0),'element'!=_0x33f104['type']||'container'!=_0x33f104['category']||'added'==_0x152bb7)continue;const _0x395d63=_0x5916a7?_0x5916a7['element']:_0x33f104['element'];if(_0x33f104['isStart']){const _0x39993a=_0x395985['get'](_0x395d63),_0x92358e=this['_diffItems'][_0x39993a];('removed'==_0x152bb7||'removed'==_0x92358e['change'])&&_0x1837db<_0x39993a&&(this['_operationsData']['push']({'type':'unwrap','path':_0x395d63['getPath'](),'howMany':_0x395d63['maxOffset']+_0x4c7787[0x0]}),_0x4c7787['shift'](),_0x4c7787[0x0]+=_0x395d63['maxOffset']-0x1,_0x2ca69c['push'](_0x2ccad0),_0x2ca69c['push'](_0x39993a));}else _0x395985['set'](_0x395d63,_0x2ccad0),_0x4c7787['unshift'](0x0);}_0x2ca69c['sort']((_0x13a0f5,_0x2c8f47)=>_0x2c8f47-_0x13a0f5),_0x2ca69c['forEach'](_0x40d67e=>{const _0x4d8bc1=this['_diffItems'][_0x40d67e];'removed'==_0x4d8bc1['change']?this['_diffItems']['splice'](_0x40d67e,0x1):(_0x4d8bc1['change']='added',delete _0x4d8bc1['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x231256=[];for(let _0xbf0a7a=0x0;_0xbf0a7a<this['_diffItems']['length'];_0xbf0a7a++){const {change:_0xaba7bc,token:_0x32482c}=this['_diffItems'][_0xbf0a7a];if('added'==_0xaba7bc&&'element'==_0x32482c['type']&&'container'==_0x32482c['category']){if(_0x32482c['isStart'])_0x231256['push'](this['_path']['slice']());else{if(!_0x32482c['isStart']){const _0x38d1a2=_0x231256['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x38d1a2,'end':this['_path']['slice']()},'token':_0x32482c}),this['_path'][this['_path']['length']-0x1]=_0x38d1a2[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0xaba7bc||this['_markDeletions'])&&this['_traverseOverItem'](_0x32482c);}}['_handleUnchanged'](_0x38b363,_0x29b29c){for(let _0x43a163=0x0;_0x43a163<_0x38b363['length'];_0x43a163++){const _0x3874bf=_0x38b363[_0x43a163];if('element'==_0x3874bf['type']&&_0x3874bf['isStart']){const _0x2a1ea6=_0x29b29c[_0x43a163];'block'==_0x3874bf['category']&&this['_handleElementRename'](_0x3874bf['element'],_0x2a1ea6['element'],this['_path']),this['_handleElementAttributeChanges'](_0x3874bf['element'],_0x2a1ea6['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x2a1ea6);}else{if('element'!=_0x3874bf['type']||_0x3874bf['isStart']){if('text'==_0x3874bf['type']){const _0x2b8ecd=this['_path']['slice'](),_0x5b95bc=[],_0x1aaa11=[];for(;_0x38b363[_0x43a163]&&'text'==_0x38b363[_0x43a163]['type'];)_0x5b95bc['push'](_0x38b363[_0x43a163]),_0x1aaa11['push'](_0x29b29c[_0x43a163]),this['_path'][this['_path']['length']-0x1]+=_0x38b363[_0x43a163]['data']['length'],_0x43a163++;_0x43a163--,this['_handleTextAttributeChanges'](_0x5b95bc,_0x1aaa11,_0x2b8ecd);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x21d96f,_0x2d1b2a,_0x1efa1a){const _0x5aa4ac=[],_0x14b043=[],_0x1f5c26=_0x1efa1a['slice']();for(let _0x7d9aba=0x0;_0x7d9aba<_0x21d96f['length'];_0x7d9aba++){const _0x16f60e=_0x21d96f[_0x7d9aba],_0x4d5c5e=_0x1efa1a['slice']();if('element'!=_0x16f60e['type']||_0x16f60e['isStart'])'element'==_0x16f60e['type']&&_0x16f60e['isStart']?(_0x1efa1a['push'](0x0),_0x2d1b2a||this['_parents']['push'](_0x16f60e),_0x14b043['push']({'before':_0x4d5c5e,'after':_0x1efa1a['slice'](),'index':_0x7d9aba})):_0x1efa1a[_0x1efa1a['length']-0x1]+=_0x16f60e['data']['length'];else{let _0x186734;_0x1efa1a['pop'](),_0x1efa1a[_0x1efa1a['length']-0x1]++,_0x186734=_0x2d1b2a?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x14b043['length']?_0x14b043['pop']():_0x5aa4ac['push']({'before':_0x4d5c5e,'after':_0x1efa1a['slice'](),'index':_0x7d9aba,'related':_0x186734});}}if(_0x14b043['length']!==_0x5aa4ac['length'])throw new _0x47fe11('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x21d96f,'isRemove':_0x2d1b2a});const _0x4ecd49=[{'after':_0x1f5c26['slice'](),'index':-0x1},..._0x5aa4ac,..._0x14b043,{'before':_0x1efa1a['slice'](),'index':_0x21d96f['length']}];if(_0x2d1b2a){for(let _0x48a5f5=_0x4ecd49['length']-0x1;_0x48a5f5>=0x1;_0x48a5f5--){const _0x3deb3a=_0x4ecd49[_0x48a5f5-0x1]['after'],_0x2d10b9=_0x4ecd49[_0x48a5f5]['before'],_0xca8195=_0x2d10b9[_0x2d10b9['length']-0x1]-_0x3deb3a[_0x3deb3a['length']-0x1];_0xca8195&&(this['_operationsData']['push']({'type':'remove','path':_0x3deb3a,'howMany':_0xca8195}),_0x2d10b9[_0x2d10b9['length']-0x1]-=_0xca8195);}for(const {before:_0x38f715}of _0x5aa4ac)this['_operationsData']['push']({'type':'merge','path':_0x38f715});}else for(let _0x3764be=0x0;_0x3764be<_0x4ecd49['length']-0x1;_0x3764be++){const _0x2d9277=_0x4ecd49[_0x3764be]['after'],_0x34ce6d=_0x4ecd49[_0x3764be+0x1]['before'],_0x14c718=_0x4ecd49[_0x3764be]['index']+0x1,_0x22fd39=_0x4ecd49[_0x3764be+0x1]['index'];if(_0x14c718!==_0x22fd39&&this['_operationsData']['push']({'type':'insert','path':_0x2d9277,'tokens':_0x21d96f['slice'](_0x14c718,_0x22fd39)}),_0x3764be<_0x5aa4ac['length']){this['_operationsData']['push']({'type':'split','path':_0x34ce6d});const _0x4796ff=_0x21d96f[_0x14b043[_0x14b043['length']-0x1-_0x3764be]['index']],_0x5028f8=_0x5aa4ac[_0x3764be]['after'],_0x395607=_0x5aa4ac[_0x3764be]['related']['element'];this['_handleElementRename'](_0x395607,_0x4796ff['element'],_0x5028f8),this['_handleElementAttributeChanges'](_0x395607,_0x4796ff['element'],_0x5028f8);}}}['_traverseOverItem'](_0x14c88f){'element'==_0x14c88f['type']&&_0x14c88f['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x14c88f)):'element'!=_0x14c88f['type']||_0x14c88f['isStart']?'text'==_0x14c88f['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x14c88f['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0xa686d2,_0x127b0c,_0x51e1d2){_0xa686d2['name']!=_0x127b0c['name']&&this['_operationsData']['push']({'type':'rename','path':_0x51e1d2['slice'](),'oldName':_0xa686d2['name'],'newName':_0x127b0c['name']});}['_handleElementAttributeChanges'](_0x12c062,_0x5bcd07,_0x289a6b){const _0x4a749e=this['_getAttributeChanges'](_0x12c062['getAttributes'](),_0x5bcd07['getAttributes']());for(const _0x8a12e6 in _0x4a749e){const {oldValue:_0x32e92f,newValue:_0x2cf016}=_0x4a749e[_0x8a12e6];this['_operationsData']['push']({'type':'attribute','path':_0x289a6b['slice'](),'howMany':0x1,'key':_0x8a12e6,'oldValue':_0x32e92f,'newValue':_0x2cf016});}}['_handleTextAttributeChanges'](_0x2c963f,_0x4585ad,_0x4ded73){const _0x4a7753=this['_operationsData'],_0x58ef52=_0x2c963f[0x0]['parent'],_0x53c1ed=_0x2c963f[0x0]['offset'],_0x412ab0=_0x4585ad[0x0]['parent'],_0x2d0cf5=_0x4585ad[0x0]['offset'],_0x3936d5=_0x2c963f['reduce']((_0x411c59,_0x2787b5)=>_0x411c59+_0x2787b5['data']['length'],0x0),_0x431ee5=this['_getAttrsForOffsets'](_0x58ef52,_0x53c1ed,_0x3936d5),_0x40ba12=this['_getAttrsForOffsets'](_0x412ab0,_0x2d0cf5,_0x3936d5),_0x4b8605={};for(let _0x3342b9=0x0;_0x3342b9<_0x3936d5;_0x3342b9++){const _0x5b807a=_0x431ee5[_0x53c1ed+_0x3342b9],_0x5ec122=_0x40ba12[_0x2d0cf5+_0x3342b9],_0x1361d1=this['_getAttributeChanges'](_0x5b807a,_0x5ec122);for(const _0x3f2f0e in _0x4b8605)_0x1361d1[_0x3f2f0e]||_0x5f2315(_0x3f2f0e);for(const _0x439de0 in _0x1361d1){const {oldValue:_0x6ae5f0,newValue:_0x1bcbf1}=_0x1361d1[_0x439de0],_0x152813=_0x4b8605[_0x439de0];_0x152813?_0x152813['oldValue']==_0x6ae5f0&&_0x152813['newValue']==_0x1bcbf1?_0x152813['length']++:(_0x5f2315(_0x439de0),_0x4b8605[_0x439de0]={'oldValue':_0x6ae5f0,'newValue':_0x1bcbf1,'start':_0x3342b9,'length':0x1}):_0x4b8605[_0x439de0]={'oldValue':_0x6ae5f0,'newValue':_0x1bcbf1,'start':_0x3342b9,'length':0x1};}}for(const _0x45ec83 in _0x4b8605)_0x5f2315(_0x45ec83);function _0x5f2315(_0xa34ab9){const _0x8d36df=_0x4b8605[_0xa34ab9],_0x33f3f8=_0x4ded73['slice']();_0x33f3f8[_0x33f3f8['length']-0x1]+=_0x8d36df['start'],_0x4a7753['push']({'type':'attribute','path':_0x33f3f8,'howMany':_0x8d36df['length'],'key':_0xa34ab9,'oldValue':_0x8d36df['oldValue'],'newValue':_0x8d36df['newValue']}),delete _0x4b8605[_0xa34ab9];}}['_getAttributeChanges'](_0x577e65,_0x5866de){const _0x178d81={};for(const [_0x47fe35,_0x1956a3]of _0x577e65)_0x178d81[_0x47fe35]={'oldValue':JSON['stringify'](_0x1956a3),'newValue':'null'};for(const [_0x496733,_0x6c11e8]of _0x5866de){const _0x1dc234=JSON['stringify'](_0x6c11e8);_0x178d81[_0x496733]?_0x178d81[_0x496733]['oldValue']==_0x1dc234?delete _0x178d81[_0x496733]:_0x178d81[_0x496733]['newValue']=_0x1dc234:_0x178d81[_0x496733]={'oldValue':'null','newValue':_0x1dc234};}return delete _0x178d81[St],_0x178d81;}['_getAttrsForOffsets'](_0x1cb03e,_0x462409,_0x51ec64){const _0x3df5a3=new Array(_0x462409+_0x51ec64);let _0x206d7d=_0x1cb03e['getChildAtOffset'](_0x462409),_0x5553aa=_0x206d7d['startOffset'];for(;_0x206d7d&&_0x5553aa<_0x462409+_0x51ec64;){const _0x37b78b=Array['from'](_0x206d7d['getAttributes']());_0x3df5a3['fill'](_0x37b78b,_0x5553aa,_0x5553aa+_0x206d7d['offsetSize']),_0x5553aa+=_0x206d7d['offsetSize'],_0x206d7d=_0x206d7d['nextSibling'];}return _0x3df5a3;}['_getPositionFromAnchorAndPath'](_0xac852,_0x11e1a2){const _0x262523=[..._0xac852['path']['slice'](0x0,-0x1),_0xac852['offset']+_0x11e1a2[0x0],..._0x11e1a2['slice'](0x1)];return new _0x129786(_0xac852['root'],_0x262523);}['_makeModelFromTokens'](_0x4ff363){const _0x5b5224=[];let _0x153c33=null;for(const _0x422a8f of _0x4ff363)if('element'!=_0x422a8f['type']||_0x422a8f['isStart']||_0x153c33!=_0x422a8f['element']){if(!_0x153c33){if('text'==_0x422a8f['type']){const _0x5e5073=_0x129786['_createAt'](_0x422a8f['parent'],_0x422a8f['offset']),_0x5df8df=_0x4c91b7['_createFromPositionAndShift'](_0x5e5073,_0x422a8f['data']['length']),_0x349f99=Array['from'](_0x5df8df['getItems']())['map'](_0x43718d=>new _0x263161(_0x43718d['data'],_0x43718d['getAttributes']()));_0x5b5224['push'](..._0x349f99);}else{_0x153c33=_0x422a8f['element'];const _0x422332=_0x422a8f['element']['_clone'](!0x0);_0x422332['_removeAttribute'](St);for(const _0x4947a2 of this['_editor']['model']['createRangeIn'](_0x422332)['getItems']())_0x4947a2['is']('element')&&_0x4947a2['_removeAttribute'](St);_0x5b5224['push'](_0x422332);}}}else _0x153c33=null;return _0x5b5224;}}function g(_0xdabe49,_0x4219ca){return _0xdabe49['type']===_0x4219ca['type']&&(_0xdabe49['limitId']===_0x4219ca['limitId']&&('text'==_0xdabe49['type']?_0xdabe49['data']==_0x4219ca['data']:function(_0x54375e,_0x45606a){if(_0x54375e['isStart']!=_0x45606a['isStart'])return!0x1;if(_0x54375e['isStart']&&_0x54375e['elementId']!=_0x45606a['elementId'])return!0x1;if(_0x54375e['category']!=_0x45606a['category'])return!0x1;if('block'==_0x54375e['category'])return!0x0;if('container'==_0x54375e['category']&&_0x54375e['elementId']!=_0x45606a['elementId'])return!0x1;return _0x54375e['element']['name']==_0x45606a['element']['name'];}(_0xdabe49,_0x4219ca)));}function _(_0x49f86e){return k({'name':_0x49f86e['name'],...Object['fromEntries'](_0x49f86e['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.4.0-alpha.0",
3
+ "version": "47.4.0-alpha.1",
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.4.0-alpha.0",
36
- "@ckeditor/ckeditor5-comments": "47.4.0-alpha.0",
37
- "@ckeditor/ckeditor5-core": "47.4.0-alpha.0",
38
- "@ckeditor/ckeditor5-icons": "47.4.0-alpha.0",
39
- "@ckeditor/ckeditor5-link": "47.4.0-alpha.0",
40
- "@ckeditor/ckeditor5-list": "47.4.0-alpha.0",
41
- "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.0",
42
- "@ckeditor/ckeditor5-track-changes": "47.4.0-alpha.0",
43
- "@ckeditor/ckeditor5-ui": "47.4.0-alpha.0",
44
- "@ckeditor/ckeditor5-utils": "47.4.0-alpha.0",
45
- "@ckeditor/ckeditor5-widget": "47.4.0-alpha.0",
46
- "ckeditor5": "47.4.0-alpha.0",
35
+ "@ckeditor/ckeditor5-engine": "47.4.0-alpha.1",
36
+ "@ckeditor/ckeditor5-comments": "47.4.0-alpha.1",
37
+ "@ckeditor/ckeditor5-core": "47.4.0-alpha.1",
38
+ "@ckeditor/ckeditor5-icons": "47.4.0-alpha.1",
39
+ "@ckeditor/ckeditor5-link": "47.4.0-alpha.1",
40
+ "@ckeditor/ckeditor5-list": "47.4.0-alpha.1",
41
+ "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.1",
42
+ "@ckeditor/ckeditor5-track-changes": "47.4.0-alpha.1",
43
+ "@ckeditor/ckeditor5-ui": "47.4.0-alpha.1",
44
+ "@ckeditor/ckeditor5-utils": "47.4.0-alpha.1",
45
+ "@ckeditor/ckeditor5-widget": "47.4.0-alpha.1",
46
+ "ckeditor5": "47.4.0-alpha.1",
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 _0x19bc6a=_0x56af;(function(_0x1c7e80,_0x22d8b0){const _0x2f8bed=_0x56af,_0x1c307c=_0x1c7e80();while(!![]){try{const _0x3ccd37=parseInt(_0x2f8bed(0x19d))/0x1+-parseInt(_0x2f8bed(0x1a1))/0x2*(parseInt(_0x2f8bed(0x18e))/0x3)+parseInt(_0x2f8bed(0x190))/0x4*(-parseInt(_0x2f8bed(0x19f))/0x5)+-parseInt(_0x2f8bed(0x188))/0x6+parseInt(_0x2f8bed(0x1a5))/0x7*(-parseInt(_0x2f8bed(0x18c))/0x8)+-parseInt(_0x2f8bed(0x19b))/0x9+parseInt(_0x2f8bed(0x1a7))/0xa;if(_0x3ccd37===_0x22d8b0)break;else _0x1c307c['push'](_0x1c307c['shift']());}catch(_0x478e3f){_0x1c307c['push'](_0x1c307c['shift']());}}}(_0x5786,0x7e44c));import{Plugin as _0x46f93b}from'ckeditor5/src/core.js';function _0x5786(){const _0x458046=['128024LXGJbE','editor','153vSnJYN','has','276gEtXqe','highest','plugins','item','Table','classes','writer','data-suggestion-id','downcastDispatcher','data','element','3996342xppwKM','addMarker:suggestion','430833zbtuzE','markerName','45555reMcKY','showSuggestionHighlights','35430FOngXE','options','tableCell','addClass','287zBGfvR','setAttribute','32823450gRKrkQ','afterInit','3382182imlWCn','data-author-id','toViewElement','mapper'];_0x5786=function(){return _0x458046;};return _0x5786();}function _0x56af(_0x5192c0,_0x55d0e0){const _0x5786fe=_0x5786();return _0x56af=function(_0x56af93,_0x151333){_0x56af93=_0x56af93-0x188;let _0x3af94c=_0x5786fe[_0x56af93];return _0x3af94c;},_0x56af(_0x5192c0,_0x55d0e0);}import{toArray as _0x121386}from'ckeditor5/src/utils.js';import{setHighlightHandling as _0x547df0}from'ckeditor5/src/widget.js';import{splitSuggestionMarkerName as _0x32dcad}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0x46f93b{[_0x19bc6a(0x1a8)](){const _0x4ad9d5=_0x19bc6a,_0x5ca4e2=this[_0x4ad9d5(0x18d)];if(!_0x5ca4e2[_0x4ad9d5(0x192)][_0x4ad9d5(0x18f)](_0x4ad9d5(0x194)))return;_0x5ca4e2[_0x4ad9d5(0x199)][_0x4ad9d5(0x198)]['on'](_0x4ad9d5(0x19c),(_0x18b6cf,_0x2b0c71,_0x1d848b)=>{((_0x64ee9a,_0xc57084,_0x51c21c)=>{const _0x4deff9=_0x56af;if(!_0x51c21c[_0x4deff9(0x1a2)][_0x4deff9(0x1a0)])return;const _0x1fd034=_0xc57084[_0x4deff9(0x193)];if(!_0x1fd034||!_0x1fd034['is'](_0x4deff9(0x19a),_0x4deff9(0x1a3)))return;const _0x16ea1a=_0x51c21c[_0x4deff9(0x18b)][_0x4deff9(0x18a)](_0x1fd034);if(_0x16ea1a){const {id:_0x24c22c,authorId:_0x16c37a}=_0x32dcad(_0xc57084[_0x4deff9(0x19e)]);_0x547df0(_0x16ea1a,_0x51c21c[_0x4deff9(0x196)],(_0xf0c11f,_0x54f6d4,_0x31968b)=>{const _0x41449f=_0x4deff9;_0x31968b[_0x41449f(0x1a4)](_0x121386(_0x54f6d4[_0x41449f(0x195)]),_0xf0c11f),_0x31968b[_0x41449f(0x1a6)](_0x41449f(0x197),_0x24c22c,_0xf0c11f),_0x31968b[_0x41449f(0x1a6)](_0x41449f(0x189),_0x16c37a,_0xf0c11f);});}})(0x0,_0x2b0c71,_0x1d848b);},{'priority':_0x4ad9d5(0x191)});}}
23
+ const _0x45f553=_0x1313;function _0x1313(_0x1317f4,_0x5db32d){const _0x11efb8=_0x11ef();return _0x1313=function(_0x131346,_0x2d68df){_0x131346=_0x131346-0x1a3;let _0x1fa543=_0x11efb8[_0x131346];return _0x1fa543;},_0x1313(_0x1317f4,_0x5db32d);}(function(_0x4fbefa,_0x43ffd6){const _0x546654=_0x1313,_0x5d1ba0=_0x4fbefa();while(!![]){try{const _0x163b00=parseInt(_0x546654(0x1b0))/0x1*(parseInt(_0x546654(0x1b3))/0x2)+-parseInt(_0x546654(0x1c5))/0x3+parseInt(_0x546654(0x1b8))/0x4*(-parseInt(_0x546654(0x1c2))/0x5)+-parseInt(_0x546654(0x1a5))/0x6*(-parseInt(_0x546654(0x1bb))/0x7)+-parseInt(_0x546654(0x1ab))/0x8*(-parseInt(_0x546654(0x1a4))/0x9)+-parseInt(_0x546654(0x1ba))/0xa*(-parseInt(_0x546654(0x1be))/0xb)+parseInt(_0x546654(0x1c0))/0xc;if(_0x163b00===_0x43ffd6)break;else _0x5d1ba0['push'](_0x5d1ba0['shift']());}catch(_0x56dec6){_0x5d1ba0['push'](_0x5d1ba0['shift']());}}}(_0x11ef,0xac591));import{Plugin as _0x4ca00d}from'ckeditor5/src/core.js';import{toArray as _0x3fc386}from'ckeditor5/src/utils.js';function _0x11ef(){const _0x369b8e=['toViewElement','6EADJet','markerName','writer','downcastDispatcher','addClass','4ZrLcir','plugins','13470FjacEe','154420eJvqGW','element','setAttribute','2486jdlhUO','data-author-id','8156220cpjGja','afterInit','6207445eMqpwd','has','mapper','2152242JkiYpq','data-suggestion-id','306yomVJq','24GHTeuT','highest','classes','tableCell','data','showSuggestionHighlights','295224KvoDNy','Table','editor','options','item','112597sewvOJ','addMarker:suggestion'];_0x11ef=function(){return _0x369b8e;};return _0x11ef();}import{setHighlightHandling as _0x19b034}from'ckeditor5/src/widget.js';import{splitSuggestionMarkerName as _0x3e8e60}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0x4ca00d{[_0x45f553(0x1c1)](){const _0x3a5de4=_0x45f553,_0x22b0dc=this[_0x3a5de4(0x1ad)];if(!_0x22b0dc[_0x3a5de4(0x1b9)][_0x3a5de4(0x1c3)](_0x3a5de4(0x1ac)))return;_0x22b0dc[_0x3a5de4(0x1a9)][_0x3a5de4(0x1b6)]['on'](_0x3a5de4(0x1b1),(_0x421e2f,_0x49f0be,_0x193478)=>{((_0x52d5c4,_0xbf7a49,_0x697798)=>{const _0x28e724=_0x1313;if(!_0x697798[_0x28e724(0x1ae)][_0x28e724(0x1aa)])return;const _0x2cfe06=_0xbf7a49[_0x28e724(0x1af)];if(!_0x2cfe06||!_0x2cfe06['is'](_0x28e724(0x1bc),_0x28e724(0x1a8)))return;const _0x4d48d7=_0x697798[_0x28e724(0x1c4)][_0x28e724(0x1b2)](_0x2cfe06);if(_0x4d48d7){const {id:_0x35a304,authorId:_0x529105}=_0x3e8e60(_0xbf7a49[_0x28e724(0x1b4)]);_0x19b034(_0x4d48d7,_0x697798[_0x28e724(0x1b5)],(_0x53dafd,_0x3e394c,_0x4fa553)=>{const _0xb11960=_0x28e724;_0x4fa553[_0xb11960(0x1b7)](_0x3fc386(_0x3e394c[_0xb11960(0x1a7)]),_0x53dafd),_0x4fa553[_0xb11960(0x1bd)](_0xb11960(0x1a3),_0x35a304,_0x53dafd),_0x4fa553[_0xb11960(0x1bd)](_0xb11960(0x1bf),_0x529105,_0x53dafd);});}})(0x0,_0x49f0be,_0x193478);},{'priority':_0x3a5de4(0x1a6)});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b8988=_0x6fed;function _0x21b0(){const _0x48baa1=['initials','isMe','extendTemplate','div','ck-user__icon','content','isAnonymous','avatar','setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__notification','push','ck-user__anonymous','ck-user_me','474daSMcS','ck-user','1130iDoCpj','5786415jxgCZq','863668ajfmeu','3257224JDUeLe','1343088FQEfKa','139535EqzEuG','38825sQChVy','notificationView','1XpwXDW','454890MXdIBB','ck-user__avatar','7PetwQg','name','ck\x20ck-user__name','url(\x27','ck-user__img'];_0x21b0=function(){return _0x48baa1;};return _0x21b0();}function _0x6fed(_0x22f67e,_0x5b88f6){const _0x21b02d=_0x21b0();return _0x6fed=function(_0x6fedcc,_0x4681fd){_0x6fedcc=_0x6fedcc-0x99;let _0x12711c=_0x21b02d[_0x6fedcc];return _0x12711c;},_0x6fed(_0x22f67e,_0x5b88f6);}(function(_0x12f9a5,_0x81ecfa){const _0x26237a=_0x6fed,_0x2cb84c=_0x12f9a5();while(!![]){try{const _0x1c69e7=parseInt(_0x26237a(0x9e))/0x1*(-parseInt(_0x26237a(0xb8))/0x2)+parseInt(_0x26237a(0x9f))/0x3+-parseInt(_0x26237a(0x9a))/0x4+-parseInt(_0x26237a(0x9c))/0x5*(-parseInt(_0x26237a(0xb4))/0x6)+-parseInt(_0x26237a(0xa1))/0x7*(parseInt(_0x26237a(0x99))/0x8)+-parseInt(_0x26237a(0xb7))/0x9+-parseInt(_0x26237a(0xb6))/0xa*(-parseInt(_0x26237a(0x9b))/0xb);if(_0x1c69e7===_0x81ecfa)break;else _0x2cb84c['push'](_0x2cb84c['shift']());}catch(_0x1d48ed){_0x2cb84c['push'](_0x2cb84c['shift']());}}}(_0x21b0,0x5cf68));import{View as _0x1580d6,IconView as _0x4a523d}from'ckeditor5/src/ui.js';import{IconNotification as _0xd4832c}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export class UserView extends _0x1580d6{[_0x1b8988(0xa2)];[_0x1b8988(0x9d)];constructor(_0x282681,_0x19fd55,_0x39407c){const _0x6aad42=_0x1b8988;super(_0x282681),this[_0x6aad42(0xa2)]=_0x19fd55[_0x6aad42(0xa2)],this[_0x6aad42(0x9d)]=null;const _0x1b86c5=['ck',_0x6aad42(0xb5)],_0x1bbd9f=['ck',_0x6aad42(0xa5)];if(_0x19fd55[_0x6aad42(0xac)]&&_0x1bbd9f[_0x6aad42(0xb1)](_0x6aad42(0xb2)),!_0x19fd55[_0x6aad42(0xac)]&&_0x19fd55[_0x6aad42(0xa7)]&&_0x1b86c5[_0x6aad42(0xb1)](_0x6aad42(0xb3)),_0x19fd55[_0x6aad42(0xad)]&&_0x1bbd9f[_0x6aad42(0xb1)](_0x6aad42(0xa0)),_0x39407c){const _0x17fcae=new _0x4a523d();_0x17fcae[_0x6aad42(0xa8)]({'attributes':{'class':[_0x6aad42(0xaa)]}}),_0x17fcae[_0x6aad42(0xab)]=_0xd4832c,this[_0x6aad42(0x9d)]={'tag':_0x6aad42(0xa9),'attributes':{'class':['ck',_0x6aad42(0xb0)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x39407c},'children':[_0x17fcae]};}const _0x256eda=[{'tag':_0x6aad42(0xa9),'attributes':{'class':_0x1bbd9f,'style':{'background-image':_0x19fd55[_0x6aad42(0xad)]?_0x6aad42(0xa4)+_0x19fd55[_0x6aad42(0xad)]+'\x27)':''}}},{'tag':_0x6aad42(0xa9),'attributes':{'class':_0x19fd55[_0x6aad42(0xad)]?_0x6aad42(0xaf):_0x6aad42(0xa3),'aria-label':_0x19fd55[_0x6aad42(0xa2)]},'children':[{'text':_0x19fd55[_0x6aad42(0xa6)]}]}];this[_0x6aad42(0x9d)]&&_0x256eda[_0x6aad42(0xb1)](this[_0x6aad42(0x9d)]),this[_0x6aad42(0xae)]({'tag':_0x6aad42(0xa9),'attributes':{'class':_0x1b86c5,'data-user-id':_0x19fd55['id']},'children':_0x256eda});}}
23
+ const _0x11cb22=_0x3ef5;(function(_0x3d4132,_0x4cf061){const _0x1b02c5=_0x3ef5,_0x4823f1=_0x3d4132();while(!![]){try{const _0x490437=-parseInt(_0x1b02c5(0x1d1))/0x1*(parseInt(_0x1b02c5(0x1e5))/0x2)+parseInt(_0x1b02c5(0x1d8))/0x3+-parseInt(_0x1b02c5(0x1cc))/0x4*(parseInt(_0x1b02c5(0x1d5))/0x5)+-parseInt(_0x1b02c5(0x1d3))/0x6*(parseInt(_0x1b02c5(0x1da))/0x7)+parseInt(_0x1b02c5(0x1dc))/0x8+parseInt(_0x1b02c5(0x1df))/0x9*(parseInt(_0x1b02c5(0x1d2))/0xa)+parseInt(_0x1b02c5(0x1d7))/0xb;if(_0x490437===_0x4cf061)break;else _0x4823f1['push'](_0x4823f1['shift']());}catch(_0x470d11){_0x4823f1['push'](_0x4823f1['shift']());}}}(_0xdf08,0xb28eb));function _0x3ef5(_0x30069d,_0x34fe1e){const _0xdf0843=_0xdf08();return _0x3ef5=function(_0x3ef5de,_0x2c56d8){_0x3ef5de=_0x3ef5de-0x1c6;let _0x224da2=_0xdf0843[_0x3ef5de];return _0x224da2;},_0x3ef5(_0x30069d,_0x34fe1e);}function _0xdf08(){const _0x43f37c=['initials','970nWOYKa','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user_me','content','ck-user__avatar','extendTemplate','ck-user__img','12LHTvYg','url(\x27','notificationView','isAnonymous','div','1434Npuazl','10kZgguJ','499308sCOZYi','ck\x20ck-user__name','1798765kiHbfV','ck-user__notification','16596558sviLPN','2232999YTUBHn','setTemplate','112klVwBZ','push','1407000grgMXY','ck-user','ck-user__anonymous','12677598VAOaZA','ck-user__icon','avatar','name','isMe'];_0xdf08=function(){return _0x43f37c;};return _0xdf08();}import{View as _0x130e65,IconView as _0x7f6b89}from'ckeditor5/src/ui.js';import{IconNotification as _0x1943b1}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export class UserView extends _0x130e65{[_0x11cb22(0x1e2)];[_0x11cb22(0x1ce)];constructor(_0x530957,_0x12682a,_0x1ab750){const _0xc454ef=_0x11cb22;super(_0x530957),this[_0xc454ef(0x1e2)]=_0x12682a[_0xc454ef(0x1e2)],this[_0xc454ef(0x1ce)]=null;const _0x179621=['ck',_0xc454ef(0x1dd)],_0x5a2edf=['ck',_0xc454ef(0x1cb)];if(_0x12682a[_0xc454ef(0x1cf)]&&_0x5a2edf[_0xc454ef(0x1db)](_0xc454ef(0x1de)),!_0x12682a[_0xc454ef(0x1cf)]&&_0x12682a[_0xc454ef(0x1e3)]&&_0x179621[_0xc454ef(0x1db)](_0xc454ef(0x1c7)),_0x12682a[_0xc454ef(0x1e1)]&&_0x5a2edf[_0xc454ef(0x1db)](_0xc454ef(0x1c9)),_0x1ab750){const _0x2b0b6b=new _0x7f6b89();_0x2b0b6b[_0xc454ef(0x1ca)]({'attributes':{'class':[_0xc454ef(0x1e0)]}}),_0x2b0b6b[_0xc454ef(0x1c8)]=_0x1943b1,this[_0xc454ef(0x1ce)]={'tag':_0xc454ef(0x1d0),'attributes':{'class':['ck',_0xc454ef(0x1d6)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x1ab750},'children':[_0x2b0b6b]};}const _0x1b17f6=[{'tag':_0xc454ef(0x1d0),'attributes':{'class':_0x5a2edf,'style':{'background-image':_0x12682a[_0xc454ef(0x1e1)]?_0xc454ef(0x1cd)+_0x12682a[_0xc454ef(0x1e1)]+'\x27)':''}}},{'tag':_0xc454ef(0x1d0),'attributes':{'class':_0x12682a[_0xc454ef(0x1e1)]?_0xc454ef(0x1c6):_0xc454ef(0x1d4),'aria-label':_0x12682a[_0xc454ef(0x1e2)]},'children':[{'text':_0x12682a[_0xc454ef(0x1e4)]}]}];this[_0xc454ef(0x1ce)]&&_0x1b17f6[_0xc454ef(0x1db)](this[_0xc454ef(0x1ce)]),this[_0xc454ef(0x1d9)]({'tag':_0xc454ef(0x1d0),'attributes':{'class':_0x179621,'data-user-id':_0x12682a['id']},'children':_0x1b17f6});}}