@ckeditor/ckeditor5-collaboration-core 48.4.0 → 48.5.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/LICENSE.md +0 -4
- package/dist/collaborationoperation.d.ts +13 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/reroot.d.ts +27 -0
- package/package.json +12 -13
- package/dist/documentcompare.d.ts +0 -169
package/LICENSE.md
CHANGED
|
@@ -12,10 +12,6 @@ Sources of Intellectual Property Included in CKEditor 5
|
|
|
12
12
|
|
|
13
13
|
Where not otherwise indicated, all CKEditor 5 content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
14
14
|
|
|
15
|
-
The following libraries are included in CKEditor 5 under the [BSD-3-Clause license](https://opensource.org/licenses/BSD-3-Clause):
|
|
16
|
-
|
|
17
|
-
* diff - Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>.
|
|
18
|
-
|
|
19
15
|
The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
|
|
20
16
|
|
|
21
17
|
* @types/luxon - Copyright (c) Microsoft Corporation.
|
|
@@ -8,13 +8,25 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from "@ckeditor/ckeditor5-engine";
|
|
10
10
|
/**
|
|
11
|
+
* Identifies the AI feature that produced a change, for example `'chat'` when it came from the AI chat.
|
|
12
|
+
*
|
|
13
|
+
* The listed values are the ones used by the built-in AI features. Any other string is accepted.
|
|
14
|
+
*
|
|
15
|
+
* This type lives here rather than in `@ckeditor/ckeditor5-ai` because the features that read the AI origin
|
|
16
|
+
* (revision history, track changes) must not depend on the AI package.
|
|
17
|
+
*/
|
|
18
|
+
export type AIOperationSource = "chat" | "quickActions" | "api" | "review" | "translate" | (string & {});
|
|
19
|
+
/**
|
|
11
20
|
* Extends the {@link module:engine/model/operation/operation operation}.
|
|
12
21
|
*/
|
|
13
22
|
export interface CollaborationOperation extends Operation {
|
|
14
23
|
_isInit?: boolean;
|
|
15
24
|
_authorId?: null | string;
|
|
16
25
|
_isDisconnection?: boolean;
|
|
17
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Set when the operation was produced by an AI feature. See {@link module:collaboration-core/collaborationoperation~AIOperationSource}.
|
|
28
|
+
*/
|
|
29
|
+
_aiSource?: AIOperationSource;
|
|
18
30
|
createdAt?: Date;
|
|
19
31
|
wasUndone?: boolean;
|
|
20
32
|
clone(): CollaborationOperation;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,12 +18,12 @@ export { trimHtml } from "./utils/trim-html.js";
|
|
|
18
18
|
export { ConfirmMixin, type ConfirmApi, type ConfirmMixinConstructor, type RemoveConfirmEvent } from "./utils/confirmmixin.js";
|
|
19
19
|
export { hashObject } from "./utils/hashobject.js";
|
|
20
20
|
export { isInvalidAttributeOperation } from "./utils/isinvalidattributeoperation.js";
|
|
21
|
+
export { reRootOperation, reRootRange, reRootPosition } from "./utils/reroot.js";
|
|
21
22
|
export { sanitizeEditorConfig } from "./utils/sanitizeeditorconfig.js";
|
|
22
23
|
export { surroundingMarkersDetector } from "./utils/surroundingmarkersdetector.js";
|
|
23
24
|
export { setupThreadKeyboardNavigation, FOCUS_ANNOTATION_KEYSTROKE, type ThreadEscapeEvent, type ThreadArrowUpEvent, type ThreadArrowDownEvent } from "./utils/setupthreadkeyboardnavigation.js";
|
|
24
25
|
export { splitSuggestionMarkerName, fixElementSuggestionRange } from "./utils/suggestionmarkerutils.js";
|
|
25
|
-
export
|
|
26
|
-
export type { CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from "./collaborationoperation.js";
|
|
26
|
+
export type { AIOperationSource, CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from "./collaborationoperation.js";
|
|
27
27
|
export type { CollaborationHistory } from "./collaborationhistory.js";
|
|
28
28
|
export type { LocaleConfig, RealTimeCollaborationConfig, CollaborationUsersConfig } from "./config.js";
|
|
29
29
|
import "../theme/index-editor.css";
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x5c3be4,Editor as _0x211a7f,Plugin as _0x3a4caf}from'@ckeditor/ckeditor5-core';import{CKEditorError as _0x29ae14,Collection as _0x20112c,FocusTracker as _0x3c479d,KeystrokeHandler as _0x264d84,first as _0x5a2218,toArray as _0x2f61da,uid as _0x2bf19e}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x4377ca,DropdownButtonView as _0x4942db,FocusCycler as _0x2fc51a,IconView as _0x153b55,View as _0x2aa067,isViewWithFocusCycler as _0x199e39}from'@ckeditor/ckeditor5-ui';import{IconCancel as _0x2300b1,IconCheck as _0x463273,IconNotification as _0x1786dc}from'@ckeditor/ckeditor5-icons';import{setHighlightHandling as _0x13452b,toWidget as _0x40e460}from'@ckeditor/ckeditor5-widget';import{DateTime as _0x7b08ac}from'luxon';import{AttributeOperation as _0x617699,InsertOperation as _0x4d7520,MarkerOperation as _0x366cb2,MergeOperation as _0x14ac20,ModelPosition as _0xb9aff,ModelRange as _0x5ef620,ModelText as _0x18d995,ModelTreeWalker as _0x1a88ca,MoveOperation as _0x571744,RenameOperation as _0x2b7858,SplitOperation as _0x196445}from'@ckeditor/ckeditor5-engine';import{diffArrays as _0x282dd8}from'diff';var B=class extends _0x5c3be4{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}setPermissions(_0x275cac,_0x29b3af){let _0x5e42f3;if(_0x29b3af||(_0x29b3af=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x29b3af?_0x5e42f3=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x5e42f3=this['context']['editors']['find'](_0x1a6eda=>_0x1a6eda['config']['get']('collaboration.channelId')==_0x29b3af)),!_0x5e42f3)throw new _0x29ae14('permissions-set-permissions-invalid-channel-id',null);const _0x2d511d=_0x5e42f3['plugins'],_0x25fed0=_0x2d511d['has']('CommentsRepository')?_0x2d511d['get']('CommentsRepository'):void 0x0,_0x3ff748=_0x2d511d['has']('CommentsOnly')&&_0x2d511d['get']('CommentsOnly'),_0x31bbc9=_0x275cac['includes']('document:write'),_0x5e2741=_0x275cac['includes']('comment:modify_all'),_0x408c86=_0x275cac['includes']('comment:admin'),_0xf033ca=_0x275cac['includes']('comment:write'),_0x2f3b4d=_0xf033ca||_0x408c86,_0x8387cd=_0x2f3b4d||_0x5e2741,_0x225aa6=_0x31bbc9||_0x2f3b4d;if(_0x3ff748&&(_0x3ff748['isEnabled']=!_0x31bbc9&&_0x8387cd),_0x5e42f3 instanceof _0x211a7f&&(_0x31bbc9||_0x8387cd&&_0x25fed0?_0x5e42f3['disableReadOnlyMode']('no-permissions'):_0x5e42f3['enableReadOnlyMode']('no-permissions')),_0x25fed0){_0x25fed0['setPermissions']({'admin':_0x408c86,'modifyAll':_0x5e2741,'write':_0xf033ca,'resolve':_0x225aa6},_0x29b3af);const _0x4f69be=_0x5e42f3 instanceof _0x211a7f&&_0x5e42f3['commands']['get']('addCommentThread');_0x4f69be&&(_0x2f3b4d?_0x4f69be['clearForceDisabled']('noPermissions'):_0x4f69be['forceDisabled']('noPermissions'));}}};function D(_0x4b124e,_0x1d17a6){const t=_0x4b124e['t'];switch(_0x1d17a6){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'';}}var $=class extends _0x5c3be4{['users'];_lastColor;['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[B];}constructor(_0x17e0f2){super(_0x17e0f2),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x20112c(),this['_locale']=_0x17e0f2['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:_0x448477,name:_0x1e101d,..._0x1c428f}){if(!_0x448477||'string'!=typeof _0x448477)throw new _0x29ae14('users-add-invalid-id');if(this['users']['has'](_0x448477))throw new _0x29ae14('users-add-duplicated-id',null,{'id':_0x448477});const _0x43ef1c=this['context']['config']['get']('users.getInitialsCallback'),_0x5966b2={..._0x1c428f,'id':_0x448477,'name':R(this['_locale'],_0x1e101d),'color':this['_getNextColor']()};_0x5966b2['name']=R(this['_locale'],_0x5966b2['name']);const _0x50c031=new L(_0x5966b2,_0x43ef1c);return this['users']['add'](_0x50c031),_0x50c031;}getUser(_0x1653db){return this['users']['get'](_0x1653db);}['useAnonymousUser'](){const _0x388584=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x388584);}['defineMe'](_0x43f3bd){if(this['_myId'])throw new _0x29ae14('users-me-already-defined',null);const _0x511beb=this['getUser'](_0x43f3bd);if(!_0x511beb)throw new _0x29ae14('users-me-missing-user',null);this['_myId']=_0x43f3bd,_0x511beb['_isMe']=!0x0;}getOperationAuthor(){return this['me'];}_getNextColor(){const _0x4c624b=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x4c624b&&(this['_lastColor']=0x0),new F(this['_lastColor']++);}['_addAnonymousUser'](){const _0x3f9e7e=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3f9e7e,'name':D(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}},L=class{['id'];['color'];['name'];initials;avatar;['_isMe'];['_isAnonymous'];constructor(_0x5b61a2,_0x51ca5d){this['id']=_0x5b61a2['id'],this['color']=_0x5b61a2['color'],this['name']=_0x5b61a2['name'],this['initials']=_0x51ca5d?_0x51ca5d(this['name']):this['_computeInitials'](),this['avatar']=_0x5b61a2['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}_computeInitials(){const _0x534121=this['name']['split']('\x20')['filter'](_0x2dedce=>/^[\p{Letter}]/u['test'](_0x2dedce));return 0x1===_0x534121['length']?this['_getInitial'](_0x534121[0x0]):0x0===_0x534121['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x534121[0x0])+this['_getInitial'](_0x534121[_0x534121['length']-0x1]);}_getInitial(_0x41e049){return String['fromCodePoint'](_0x41e049['codePointAt'](0x0))['toUpperCase']();}};function R(_0x4b0e8c,_0x233422=''){return''==(_0x233422=_0x233422['trim']())?D(_0x4b0e8c,'Anonymous'):_0x233422;}var F=class{['_id'];constructor(_0x3612b3){this['_id']=_0x3612b3;}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'];}getColorVariable(){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}getColorAlphaVariable(){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}},H=class extends _0x2aa067{['name'];notificationView;constructor(_0x31a0b7,_0x540b44,_0x4fb945,_0xbac821){super(_0x31a0b7),this['name']=_0x540b44['name'],this['notificationView']=null;const _0x5f38d4=['ck','ck-user'],_0x26f3b5=['ck','ck-user__img'];_0x540b44['isAnonymous']&&_0x26f3b5['push']('ck-user__anonymous'),!_0x540b44['isAnonymous']&&_0x540b44['isMe']&&_0x5f38d4['push']('ck-user_me'),(_0x540b44['avatar']||_0xbac821)&&_0x26f3b5['push']('ck-user__avatar');let _0x33d7ae=null;if(_0xbac821&&(_0x33d7ae=new _0x153b55(),_0x33d7ae['content']=_0xbac821,_0x33d7ae['extendTemplate']({'attributes':{'class':['ck-user__avatar-icon']}})),_0x4fb945){const _0x456a19=new _0x153b55();_0x456a19['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x456a19['content']=_0x1786dc,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4fb945},'children':[_0x456a19]};}const _0x256871=[{'tag':'div','attributes':{'class':_0x26f3b5,'style':{'background-image':_0x540b44['avatar']&&!_0xbac821?'url(\x27'+_0x540b44['avatar']+'\x27)':''}},'children':_0x33d7ae?[_0x33d7ae]:[]},{'tag':'div','attributes':{'class':_0x540b44['avatar']||_0xbac821?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x540b44['name']},'children':[{'text':_0x540b44['initials']}]}];this['notificationView']&&_0x256871['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x5f38d4,'data-user-id':_0x540b44['id']},'children':_0x256871});}},U=class extends _0x2aa067{['children'];['iconView'];['labelView'];constructor(_0x475094){super(_0x475094);const _0x536c16=this['bindTemplate'];this['set']('icon',void 0x0),this['set']('label',void 0x0),this['set']('tooltip',void 0x0),this['set']('tooltipPosition','n'),this['set']('tooltipClass',void 0x0),this['set']('iconPosition','left'),this['set']('class',void 0x0),this['children']=this['createCollection'](),this['iconView']=this['_createIconView'](),this['labelView']=this['_createLabelView'](),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill',_0x536c16['to']('class'),_0x536c16['to']('iconPosition',_0x3380fa=>'right'===_0x3380fa?'ck-pill_icon-right':'')],'data-cke-tooltip-text':_0x536c16['to']('tooltip'),'data-cke-tooltip-position':_0x536c16['to']('tooltipPosition'),'data-cke-tooltip-class':_0x536c16['to']('tooltipClass')},'children':this['children']});}['render'](){super['render'](),this['icon']&&this['children']['add'](this['iconView']),this['children']['add'](this['labelView']),this['on']('change:icon',(_0x55d1c7,_0x38ae68,_0x3cb50b,_0x1f517f)=>{_0x3cb50b&&!_0x1f517f?this['children']['add'](this['iconView'],0x0):!_0x3cb50b&&_0x1f517f&&this['children']['remove'](this['iconView']);});}_createIconView(){const _0x399f3f=new _0x153b55();return _0x399f3f['extendTemplate']({'attributes':{'class':'ck-pill__icon'}}),_0x399f3f['bind']('content')['to'](this,'icon'),_0x399f3f;}_createLabelView(){const _0x8c16eb=new _0x2aa067(this['locale']),_0xe2df06=this['bindTemplate'];return _0x8c16eb['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill__label']},'children':[{'text':_0xe2df06['to']('label')}]}),_0x8c16eb;}},z=class extends _0x2aa067{['id'];constructor(_0x1067ec,_0x5d5922){super(_0x1067ec),this['id']='ck-aria-description-'+_0x2bf19e(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x5d5922}]});}},W=class extends _0x4377ca{['render'](){super['render'](),j(this);}},Y=class extends _0x4942db{['render'](){super['render'](),j(this);}};function j(_0x1a6aa3){_0x1a6aa3['listenTo'](_0x1a6aa3['element'],'mousedown',(_0x102d78,_0x42bf30)=>{_0x42bf30['stopPropagation'](),_0x42bf30['preventDefault']();}),_0x1a6aa3['listenTo'](_0x1a6aa3['element'],'mouseup',()=>{_0x1a6aa3['element']['focus']();});}function J(_0x4f8a74){const _0x17ee84=_0x4f8a74['split'](':');return{'group':_0x17ee84[0x0],'type':_0x17ee84[0x1],'subType':_0x17ee84['length']>=0x5?_0x17ee84[0x2]:null,'id':_0x17ee84['length']<0x5?_0x17ee84[0x2]:_0x17ee84[0x3],'authorId':_0x17ee84['length']<0x5?_0x17ee84[0x3]:_0x17ee84[0x4],'markerCount':0x6==_0x17ee84['length']?_0x17ee84[0x5]:null};}function G(_0x465545,_0x384231){const _0x24743c=_0x465545['end']['nodeBefore'];if(_0x24743c&&_0x24743c['is']('element')&&_0x384231['schema']['isBlock'](_0x24743c)&&!_0x384231['schema']['isObject'](_0x24743c)){const _0x418a9=_0x384231['createPositionAt'](_0x24743c,'end');return _0x384231['createRange'](_0x465545['start'],_0x418a9);}return _0x465545;}var K=class extends _0x3a4caf{afterInit(){const _0x842cc0=this['editor'];_0x842cc0['plugins']['has']('AlignmentEditing')&&_0x842cc0['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}};const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Z=class extends _0x3a4caf{afterInit(){const _0x439ceb=this['editor'],_0x57f843=_0x439ceb['plugins']['get']('SuggestionsConversion');for(const _0x37c3c6 of q){if(!_0x439ceb['plugins']['has'](_0x37c3c6))continue;const _0x4b1d84=_0x37c3c6['slice'](0x0,-0x7)['toLowerCase']();_0x57f843['registerInlineAttribute'](_0x4b1d84);}}},Q=class extends _0x3a4caf{afterInit(){const _0x18b5ed=this['editor'],_0x1433c2=_0x18b5ed['plugins']['get']('SuggestionsConversion');_0x18b5ed['plugins']['has']('BookmarkEditing')&&_0x1433c2['registerBlockAttribute']('bookmarkId');}};const X=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var tt=class extends _0x3a4caf{afterInit(){const _0x23a254=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x32739c,commandName:_0xd72c3b}of X)this['editor']['plugins']['has'](_0x32739c)&&_0x23a254['registerInlineAttribute'](_0xd72c3b);}},et=class extends _0x3a4caf{afterInit(){const {editor:_0x11a56e}=this;if(!_0x11a56e['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x31a06f=_0x11a56e['plugins']['get']('SuggestionsConversion');_0x31a06f['registerBlockAttribute']('footnotesListStyle'),_0x31a06f['registerBlockAttribute']('footnotesListStart');}},st=class extends _0x3a4caf{afterInit(){const _0x4c814d=this['editor'];if(!_0x4c814d['plugins']['has']('GeneralHtmlSupport')||!_0x4c814d['plugins']['has']('DataSchema'))return;const _0x2c127a=_0x4c814d['plugins']['get']('SuggestionsConversion'),_0x1a50b2=_0x4c814d['plugins']['get']('GeneralHtmlSupport'),_0x4a86ab=_0x4c814d['plugins']['get']('DataSchema');for(const _0x5214b8 of _0x4a86ab['getDefinitionsForView'](/.*/,!0x1)){const _0x1ca0b9=_0x1a50b2['getGhsAttributeNameForElement'](_0x5214b8['view']);!_0x5214b8['isInline']||_0x5214b8['isObject']||'appliesToBlock'in _0x5214b8&&_0x5214b8['appliesToBlock']?_0x2c127a['registerBlockAttribute'](_0x1ca0b9):_0x2c127a['registerInlineAttribute'](_0x1ca0b9);}}},it=class extends _0x3a4caf{afterInit(){const _0x21e156=this['editor'];_0x21e156['plugins']['has']('HighlightEditing')&&_0x21e156['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}},nt=class extends _0x3a4caf{afterInit(){const _0x1b2b25=this['editor'];_0x1b2b25['plugins']['has']('HtmlEmbed')&&_0x1b2b25['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}},ot=class extends _0x3a4caf{afterInit(){const _0x3230db=this['editor'];if(!_0x3230db['plugins']['has']('ImageEditing'))return;const _0x1a5d56=_0x3230db['plugins']['get']('SuggestionsConversion');_0x1a5d56['registerBlockAttribute']('src'),_0x3230db['plugins']['has']('ImageResize')&&_0x1a5d56['registerBlockAttribute']('resizedWidth'),_0x3230db['plugins']['has']('ImageTextAlternativeEditing')&&_0x1a5d56['registerBlockAttribute']('alt'),_0x3230db['plugins']['has']('PictureEditing')&&_0x1a5d56['registerBlockAttribute']('sources'),_0x3230db['plugins']['has']('ImageSizeAttributes')&&(_0x1a5d56['registerBlockAttribute']('width'),_0x1a5d56['registerBlockAttribute']('height'));}},rt=class extends _0x3a4caf{afterInit(){const _0x164070=this['editor'],_0x38fdfc=_0x164070['plugins']['get']('SuggestionsConversion');_0x164070['plugins']['has']('IndentBlock')&&(_0x38fdfc['registerBlockAttribute']('blockIndent'),_0x164070['plugins']['has']('ListEditing')&&(_0x38fdfc['registerBlockAttribute']('blockIndentList'),_0x38fdfc['registerBlockAttribute']('blockIndentListItem')));}},at=class extends _0x3a4caf{afterInit(){const _0x3d9eff=this['editor'];_0x3d9eff['plugins']['has']('LineHeight')&&_0x3d9eff['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}},ct=class extends _0x3a4caf{afterInit(){const _0x4c2efd=this['editor'];if(!_0x4c2efd['plugins']['has']('LinkEditing'))return;const _0x2df819=_0x4c2efd['plugins']['get']('SuggestionsConversion'),_0x398b14=_0x4c2efd['commands']['get']('link');_0x2df819['registerInlineAttribute']('linkHref');for(const _0x4cba56 of _0x398b14['manualDecorators'])_0x2df819['registerInlineAttribute'](_0x4cba56['id']);}},lt=class extends _0x3a4caf{afterInit(){const _0x35c6e8=this['editor'];if(!_0x35c6e8['plugins']['has']('ListEditing'))return;const _0x21677e=_0x35c6e8['plugins']['get']('SuggestionsConversion'),_0x3d11ec=_0x35c6e8['plugins']['has']('TodoListEditing');_0x21677e['registerBlockAttribute']('listItemId'),_0x21677e['registerBlockAttribute']('listType'),_0x21677e['registerBlockAttribute']('listIndent'),_0x3d11ec&&_0x21677e['registerBlockAttribute']('todoListChecked');}},ht=class extends _0x3a4caf{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3348a0=this['editor']['config']['get']('list.properties'),_0x5694fc=this['editor']['plugins']['get']('SuggestionsConversion');_0x3348a0['styles']&&_0x5694fc['registerBlockAttribute']('listStyle'),_0x3348a0['reversed']&&_0x5694fc['registerBlockAttribute']('listReversed'),_0x3348a0['startIndex']&&_0x5694fc['registerBlockAttribute']('listStart');}},ut=class extends _0x3a4caf{afterInit(){const _0xdd4a1a=this['editor'],_0x2dd56a=_0xdd4a1a['plugins']['get']('SuggestionsConversion');_0xdd4a1a['plugins']['has']('MultiLevelList')&&_0x2dd56a['registerBlockAttribute']('listMarkerStyle');}},dt=class extends _0x3a4caf{afterInit(){const _0x579714=this['editor'];if(!_0x579714['plugins']['has']('TableEditing'))return;const _0x555981=_0x579714['plugins']['get']('SuggestionsConversion');_0x555981['registerBlockAttribute']('headingRows'),_0x555981['registerBlockAttribute']('headingColumns');}},gt=class extends _0x3a4caf{afterInit(){const {plugins:_0x32c2aa}=this['editor'];if(!_0x32c2aa['has']('TablePropertiesEditing'))return;const _0x5149b3=_0x32c2aa['get']('SuggestionsConversion');for(const _0x2c1ea1 of['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'])_0x5149b3['registerBlockAttribute'](_0x2c1ea1);}},ft=class extends _0x3a4caf{afterInit(){const _0x3efcee=this['editor'],_0x5ba9d7=_0x3efcee['plugins']['get']('SuggestionsConversion');_0x3efcee['plugins']['has']('TableLayout')&&_0x5ba9d7['registerBlockAttribute']('tableType');}},mt=class extends _0x3a4caf{afterInit(){const _0x145b5d=this['editor'],_0x22f4dc=this['editor']['plugins']['get']('SuggestionsConversion');_0x145b5d['plugins']['has']('Uploadcare')&&_0x145b5d['plugins']['has']('UploadcareImageEdit')&&_0x22f4dc['registerBlockAttribute']('uploadcareImageId');}},pt=class extends _0x3a4caf{afterInit(){const _0x4e5c15=this['editor'];if(!_0x4e5c15['plugins']['has']('ShiftEnter'))return;const _0x378bb5=_0x4e5c15['plugins']['get']('SuggestionsConversion'),_0x2fca46=(_0x7ce50e,_0x3c559c,_0x43e69e,_0x50b223)=>{if(_0x50b223&&!_0x43e69e['options']['showSuggestionHighlights'])return;if(!_0x43e69e['consumable']['test'](_0x3c559c['markerRange'],_0x7ce50e['name']))return;const _0xad435d=_0x4e5c15['model'];for(const _0x321609 of _0x3c559c['markerRange']['getItems']()){if(!_0x321609['is']('element','softBreak'))continue;const _0x8b99da='deletion'==_0x3c559c['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x39a056,authorId:_0x2f2b2c}=J(_0x3c559c['markerName']),_0x5d2aaa=_0x43e69e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8b99da,'data-suggestion':_0x39a056,'data-author-id':_0x2f2b2c}),_0x52bf72=_0x43e69e['mapper']['toViewPosition'](_0xad435d['createPositionBefore'](_0x321609));!_0x50b223&&_0x378bb5['_activeMarkers']['includes'](_0x3c559c['markerName'])&&_0x43e69e['writer']['addClass']('ck-suggestion-marker--active',_0x5d2aaa),_0x43e69e['writer']['insert'](_0x52bf72,_0x5d2aaa),_0x43e69e['mapper']['bindElementToMarker'](_0x5d2aaa,_0x3c559c['markerName']);}};_0x4e5c15['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19d87a,_0x6e147a,_0x289a05)=>{_0x2fca46(_0x19d87a,_0x6e147a,_0x289a05,!0x1);},{'priority':'high'}),_0x4e5c15['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x234c21,_0x230831,_0xc77827)=>{_0x2fca46(_0x234c21,_0x230831,_0xc77827,!0x1);},{'priority':'high'}),_0x4e5c15['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x335968,_0x1eba4e,_0x290bbf)=>{_0x2fca46(_0x335968,_0x1eba4e,_0x290bbf,!0x0);},{'priority':'high'}),_0x4e5c15['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2f259e,_0x53384e,_0x30e702)=>{_0x2fca46(_0x2f259e,_0x53384e,_0x30e702,!0x0);},{'priority':'high'});}},kt=class extends _0x3a4caf{afterInit(){const _0x50fc37=this['editor'];if(!_0x50fc37['plugins']['has']('MediaEmbedEditing'))return;const _0x3ed8ec=_0x50fc37['plugins']['get']('SuggestionsConversion');_0x50fc37['plugins']['has']('MediaEmbedResizeEditing')&&_0x3ed8ec['registerBlockAttribute']('resizedWidth'),_0x50fc37['plugins']['has']('MediaEmbedStyleEditing')&&_0x3ed8ec['registerBlockAttribute']('mediaStyle'),_0x50fc37['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x482210,{writer:_0x3b4296,options:_0x8bd274})=>{if(_0x8bd274['showSuggestionHighlights'])return _0x3b4296['createEmptyElement']('div');},'converterPriority':'high'}),_0x50fc37['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3d1f35,_0x70f94f,_0x222e90)=>{_0x222e90['options']['showSuggestionHighlights']&&_0x3d1f35['stop']();},{'priority':'high'});}},yt=class extends _0x3a4caf{afterInit(){const _0x4e7ecd=this['editor'];if(!_0x4e7ecd['plugins']['has']('Table'))return;_0x4e7ecd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x46cfb3,_0x45e258,_0x228759)=>{((_0x2d38d9,_0x533b09,_0x5a0104)=>{if(!_0x5a0104['options']['showSuggestionHighlights'])return;const _0x593885=_0x533b09['item'];if(!_0x593885||!_0x593885['is']('element','tableCell'))return;const _0xf4de64=_0x5a0104['mapper']['toViewElement'](_0x593885);if(_0xf4de64){const {id:_0x60848b,authorId:_0x2e3167}=J(_0x533b09['markerName']);_0x13452b(_0xf4de64,_0x5a0104['writer'],(_0x58c5e6,_0x106e7f,_0x14ee0c)=>{_0x14ee0c['addClass'](_0x2f61da(_0x106e7f['classes']),_0x58c5e6),_0x14ee0c['setAttribute']('data-suggestion',_0x60848b,_0x58c5e6),_0x14ee0c['setAttribute']('data-author-id',_0x2e3167,_0x58c5e6);});}})(0x0,_0x45e258,_0x228759);},{'priority':'highest'});}},bt=class extends _0x3a4caf{afterInit(){const _0x1d473c=this['editor'];_0x1d473c['plugins']['has']('HorizontalLineEditing')&&_0x1d473c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2d784d,{writer:_0x53672c,options:_0x1b4964})=>{if(!_0x1b4964['showSuggestionHighlights'])return null;const _0x525590=_0x53672c['createContainerElement']('div'),_0x2a44bd=_0x53672c['createEmptyElement']('hr');return _0x53672c['addClass']('ck-horizontal-line',_0x525590),_0x53672c['insert'](_0x53672c['createPositionAt'](_0x525590,0x0),_0x2a44bd),_0x525590;},'converterPriority':'high'});}},wt=class extends _0x3a4caf{afterInit(){const {plugins:_0x1488e1,model:_0x57eefb}=this['editor'];if(!_0x1488e1['has']('TableCellPropertiesEditing'))return;const _0x1f80a9=_0x1488e1['get']('SuggestionsConversion');for(const _0x1f6f73 of['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'])_0x1f80a9['registerBlockAttribute'](_0x1f6f73);_0x57eefb['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1f80a9['registerBlockAttribute']('tableCellType');}},vt=class extends _0x3a4caf{afterInit(){const _0x37cadd=this['editor'];_0x37cadd['plugins']['has']('TableEditing')&&_0x37cadd['config']['get']('table.enableFooters')&&_0x37cadd['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}},Ct=class extends _0x3a4caf{_activeMarkers=[];_blockAttributeKeys=new Set(['$elementName']);_inlineAttributeKeys=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get requires(){return[K,Z,Q,tt,et,st,it,bt,nt,ot,rt,at,ct,lt,ht,kt,ut,pt,yt,dt,vt,ft,wt,gt,mt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3efe1d=this['editor'],_0x3ed2ff=(_0x585bdd,_0x4679bf,_0x2e4bc0)=>{const {id:_0x1d41ad,authorId:_0x637d3e,type:_0x4faed9,subType:_0x154ca2}=J(_0x585bdd['markerName']),_0x439efe=['ck-suggestion-marker',this['_getClassName'](_0x4faed9,_0x154ca2)];let _0x3e733d=0xbb8;return _0x2e4bc0||this['_activeMarkers']['includes'](_0x585bdd['markerName'])&&(_0x439efe['push']('ck-suggestion-marker--active'),_0x3e733d=0xbc2),'deletion'==_0x4faed9&&(_0x3e733d+=0x5),{'classes':_0x439efe,'attributes':{'data-suggestion':_0x1d41ad,'data-author-id':_0x637d3e},'priority':_0x3e733d};};_0x3efe1d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xd1536e,_0x5321bf)=>_0x3ed2ff(_0xd1536e,0x0,!0x1)}),_0x3efe1d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x79affb,_0x141bde)=>_0x3ed2ff(_0x79affb,0x0,!0x0)}),_0x3efe1d['conversion']['for']('dataDowncast')['add'](_0x37136b=>{_0x37136b['on']('addMarker:suggestion',(_0x147284,_0x5bdaa3,_0x1e0bea)=>{if(!_0x1e0bea['options']['showSuggestionHighlights'])return;const _0x4b6ec3=_0x5bdaa3['item'];if(!_0x4b6ec3)return;const _0x1c586e=_0x1e0bea['mapper']['toViewElement'](_0x4b6ec3);_0x3efe1d['model']['schema']['isObject'](_0x4b6ec3)&&_0x1c586e&&!_0x1c586e['getCustomProperty']('widget')&&_0x1c586e['is']('containerElement')&&_0x40e460(_0x1c586e,_0x1e0bea['writer']);},{'priority':'high'});});const _0xf0340a=(_0x313a6b,_0x1e01eb,_0xedfd57,_0x21d9db,_0x47e51c)=>{if(_0x21d9db&&!_0xedfd57['options']['showSuggestionHighlights'])return;if(!_0x1e01eb['item'])return;const {id:_0xfa0c58,authorId:_0xdcdc4d,subType:_0x3581d8}=J(_0x1e01eb['markerName']);if(_0x47e51c){const _0x49b6ae=_0x3581d8['split']('|')[0x0];if(!this['isBlockAttribute'](_0x49b6ae))return;}if(_0x1e01eb['item']['is']('selection'))return void _0xedfd57['consumable']['consume'](_0x1e01eb['item'],_0x313a6b['name']);const _0x3f9cce=_0xedfd57['mapper']['toViewElement'](_0x1e01eb['item']);if(_0x1e01eb['item']['is']('element')&&_0x3efe1d['model']['schema']['isBlock'](_0x1e01eb['item'])&&!_0x3f9cce['getCustomProperty']('addHighlight')){_0xedfd57['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3f9cce),_0xedfd57['writer']['setAttribute']('data-suggestion',_0xfa0c58,_0x3f9cce),_0xedfd57['writer']['setAttribute']('data-author-id',_0xdcdc4d,_0x3f9cce),_0xedfd57['mapper']['bindElementToMarker'](_0x3f9cce,_0x1e01eb['markerName']),_0x21d9db||(this['_activeMarkers']['includes'](_0x1e01eb['markerName'])?_0xedfd57['writer']['addClass']('ck-suggestion-marker--active',_0x3f9cce):_0xedfd57['writer']['removeClass']('ck-suggestion-marker--active',_0x3f9cce));for(const _0x3a6cd4 of _0x3efe1d['model']['createRangeIn'](_0x1e01eb['item'])['getItems']())_0xedfd57['consumable']['consume'](_0x3a6cd4,_0x313a6b['name']);_0xedfd57['consumable']['consume'](_0x1e01eb['item'],_0x313a6b['name']);}},_0x5b523b=(_0x27efb4,_0x2477ac,_0x453148,_0x1eedaf)=>{const _0x3ceb62=_0x453148['mapper']['markerNameToElements'](_0x2477ac['markerName']);if(_0x3ceb62){if(_0x1eedaf){const {subType:_0x2124ff}=J(_0x2477ac['markerName']),_0x4582d1=_0x2124ff['split']('|')[0x0];if(!this['isBlockAttribute'](_0x4582d1))return;}for(const _0x1841ee of _0x3ceb62)_0x1841ee['getCustomProperty']('addHighlight')||(_0x453148['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1841ee),_0x453148['writer']['removeAttribute']('data-suggestion',_0x1841ee),_0x453148['writer']['removeAttribute']('data-author-id',_0x1841ee),_0x453148['mapper']['unbindElementFromMarkerName'](_0x1841ee,_0x2477ac['markerName']));}};_0x3efe1d['conversion']['for']('editingDowncast')['add'](_0xd351e=>{_0xd351e['on']('addMarker:suggestion:formatBlock',(_0x1208ac,_0x54d4d2,_0x3718f9)=>{_0xf0340a(_0x1208ac,_0x54d4d2,_0x3718f9,!0x1,!0x1);},{'priority':'high'});}),_0x3efe1d['conversion']['for']('editingDowncast')['add'](_0x2b006e=>{_0x2b006e['on']('addMarker:suggestion:attribute',(_0x805424,_0x312706,_0x62a8e4)=>{_0xf0340a(_0x805424,_0x312706,_0x62a8e4,!0x1,!0x0);},{'priority':'high'});}),_0x3efe1d['conversion']['for']('editingDowncast')['add'](_0x1f9b85=>{_0x1f9b85['on']('removeMarker:suggestion:formatBlock',(_0x1d6a3f,_0x1f9157,_0xc146e0)=>{_0x5b523b(0x0,_0x1f9157,_0xc146e0,!0x1);},{'priority':'high'});}),_0x3efe1d['conversion']['for']('editingDowncast')['add'](_0x561657=>{_0x561657['on']('removeMarker:suggestion:attribute',(_0xb222c5,_0x331465,_0x2beb63)=>{_0x5b523b(0x0,_0x331465,_0x2beb63,!0x0);},{'priority':'high'});}),_0x3efe1d['conversion']['for']('dataDowncast')['add'](_0x5e4017=>{_0x5e4017['on']('addMarker:suggestion:formatBlock',(_0x3d026b,_0x2287f8,_0x3f414d)=>{_0xf0340a(_0x3d026b,_0x2287f8,_0x3f414d,!0x0,!0x1);},{'priority':'highest'});}),_0x3efe1d['conversion']['for']('dataDowncast')['add'](_0x4dd2cd=>{_0x4dd2cd['on']('addMarker:suggestion:attribute',(_0xb5d6a1,_0xee3f03,_0x2a80a8)=>{_0xf0340a(_0xb5d6a1,_0xee3f03,_0x2a80a8,!0x0,!0x0);},{'priority':'highest'});}),_0x3efe1d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4c6c72,_0x2baa17)=>_0x2baa17['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4c6c72['substr'](0xb)}});const _0x120aa0=(_0x33c273,_0x4bf5be,_0x580dac,_0x526ec1,_0x4fa173)=>{if(_0x526ec1&&!_0x580dac['options']['showSuggestionHighlights'])return;if(!_0x580dac['consumable']['test'](_0x4bf5be['markerRange'],_0x33c273['name']))return;const _0x42a7d5=this['_activeMarkers'],_0x49ba4a=_0x4bf5be['markerRange']['getWalker'](),_0x1734f0=_0x4bf5be['markerRange']['start'],_0x6520cc=_0x3efe1d['model']['schema'];let _0x5e36be=null,_0x39e209=null,_0x207ccc=!0x1,_0x207ca2=!0x1;for(const _0x3eae90 of _0x49ba4a){const _0x5eb4f0=_0x3eae90['item'];_0x207ccc=_0x207ccc||_0x6520cc['isContent'](_0x5eb4f0);const _0x4302aa=_0x580dac['mapper']['toViewElement'](_0x5eb4f0);if(_0x4302aa&&_0x4302aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3eae90['type']&&(_0x6520cc['isBlock'](_0x5eb4f0)&&!_0x6520cc['isLimit'](_0x5eb4f0)&&(_0x5eb4f0['nextSibling']||_0x1734f0['isAtEnd']?_0x5e36be&&_0x5e36be['parent']==_0x5eb4f0||(_0x5e36be=_0x5eb4f0,_0x1dea7e(_0x3eae90['previousPosition']),_0x207ca2=!0x0):_0x39e209=_0x39e209||_0x3eae90['previousPosition']));}function _0x1dea7e(_0x49355f){const {id:_0x17c9a2,authorId:_0x4660d4}=J(_0x4bf5be['markerName']),_0x44e037=_0x580dac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fa173,'data-suggestion':_0x17c9a2,'data-author-id':_0x4660d4}),_0x57962e=_0x580dac['mapper']['toViewPosition'](_0x49355f);!_0x526ec1&&_0x42a7d5['includes'](_0x4bf5be['markerName'])&&_0x580dac['writer']['addClass']('ck-suggestion-marker--active',_0x44e037),_0x580dac['writer']['insert'](_0x57962e,_0x44e037),_0x580dac['mapper']['bindElementToMarker'](_0x44e037,_0x4bf5be['markerName']);}_0x207ccc||_0x207ca2||!_0x39e209||_0x1dea7e(_0x39e209);};_0x3efe1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4405fa,_0x3bbf55,_0x2b767e)=>{_0x120aa0(_0x4405fa,_0x3bbf55,_0x2b767e,!0x1,'merge');},{'priority':'high'}),_0x3efe1d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x488506,_0x5732f0,_0x2dd65b)=>{_0x120aa0(_0x488506,_0x5732f0,_0x2dd65b,!0x0,'merge');},{'priority':'high'}),_0x3efe1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1dd34e,_0x18015b,_0x470f02)=>{_0x120aa0(_0x1dd34e,_0x18015b,_0x470f02,!0x1,'split');},{'priority':'high'}),_0x3efe1d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37ca45,_0x515e3f,_0x12b6c6)=>{_0x120aa0(_0x37ca45,_0x515e3f,_0x12b6c6,!0x0,'split');},{'priority':'high'}),_0x3efe1d['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f9196,_0x50c5bc,_0x15de0b)=>{((_0x5f22c3,_0x342bd6,_0x3c659b)=>{const _0x499632=_0x3c659b['mapper']['markerNameToElements'](_0x342bd6['markerName']);if(_0x499632){for(const _0x4ac495 of _0x499632)(_0x4ac495['hasClass']('ck-suggestion-marker-split')||_0x4ac495['hasClass']('ck-suggestion-marker-merge'))&&(_0x3c659b['mapper']['unbindElementFromMarkerName'](_0x4ac495,_0x342bd6['markerName']),_0x3c659b['writer']['remove'](_0x4ac495));}})(0x0,_0x50c5bc,_0x15de0b);},{'priority':'high'});const _0x26ff99=(_0x5ec6be,_0xc9d1c,_0x27509a,_0x58056b)=>{if(_0x58056b&&!_0x27509a['options']['showSuggestionHighlights'])return;const _0x387d1b=_0xc9d1c['markerRange']['start'],_0x269592=_0xc9d1c['markerRange']['end'],_0x56bedc=_0x3efe1d['model']['schema'];if(!_0x387d1b['isTouching'](_0x269592)||!_0x387d1b['nodeAfter'])return;const _0xceaf38=_0x387d1b['nodeAfter'];if(_0x56bedc['isBlock'](_0xceaf38)&&!_0x56bedc['isLimit'](_0xceaf38)&&_0x56bedc['checkChild'](_0xceaf38,'$text')){if(!_0x27509a['consumable']['consume'](_0xc9d1c['markerRange'],_0x5ec6be['name']))return;const {id:_0x530904,authorId:_0x5bca17}=J(_0xc9d1c['markerName']),_0xdcb519=_0x27509a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x530904,'data-author-id':_0x5bca17}),_0x20276e=_0x27509a['mapper']['toViewPosition'](_0x269592);!_0x58056b&&this['_activeMarkers']['includes'](_0xc9d1c['markerName'])&&_0x27509a['writer']['addClass']('ck-suggestion-marker--active',_0xdcb519),_0x27509a['writer']['insert'](_0x20276e,_0xdcb519),_0x27509a['mapper']['bindElementToMarker'](_0xdcb519,_0xc9d1c['markerName']);}};_0x3efe1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59b161,_0x13d8b8,_0x2858b1)=>{_0x26ff99(_0x59b161,_0x13d8b8,_0x2858b1,!0x1);},{'priority':'high'}),_0x3efe1d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x51b41c,_0x320cc5,_0x243ab3)=>{_0x26ff99(_0x51b41c,_0x320cc5,_0x243ab3,!0x0);},{'priority':'high'});}afterInit(){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x156f33,_0x3169b9,_0x45058c)=>{this['_activeMarkers']=_0x45058c['slice']();},{'priority':'highest'});}registerBlockAttribute(_0x457fbf){this['_blockAttributeKeys']['add'](_0x457fbf);}registerInlineAttribute(_0x29745f){this['_inlineAttributeKeys']['add'](_0x29745f);}isBlockAttribute(_0x471cd9){return this['_blockAttributeKeys']['has'](_0x471cd9);}isInlineAttribute(_0x360c10){return this['_inlineAttributeKeys']['has'](_0x360c10);}isRegisteredAttribute(_0x517c39){return this['isInlineAttribute'](_0x517c39)||this['isBlockAttribute'](_0x517c39);}_getClassName(_0x1f7dcb,_0x3b0b3e){if('attribute'!=_0x1f7dcb)return'ck-suggestion-marker-'+_0x1f7dcb;const _0x56213a=_0x3b0b3e['split']('|')[0x0];return this['isBlockAttribute'](_0x56213a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}};function _t(_0x1e1b19={},_0x29ff13){if(void 0x0!==_0x1e1b19['dateTimeFormat']&&'function'!=typeof _0x1e1b19['dateTimeFormat'])throw new _0x29ae14('invalid-date-time-format');return _0x27f30=>{const _0x303f22='string'==typeof _0x27f30?_0x7b08ac['fromISO'](_0x27f30):_0x7b08ac['fromJSDate'](_0x27f30),_0x1c9947=_0x7b08ac['now'](),_0x503d42=Math['floor'](_0x1c9947['diff'](_0x303f22,'days')['days']);return _0x1e1b19['dateTimeFormat']?_0x1e1b19['dateTimeFormat'](_0x303f22['toJSDate'](),_0x29ff13&&_0x29ff13['t']?_0x29ff13['t']:void 0x0):0x0===_0x503d42?_0x29ff13?D(_0x29ff13,'Today')+'\x20'+_0x303f22['toFormat']('hh:mma'):_0x303f22['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x503d42?_0x29ff13?D(_0x29ff13,'Yesterday')+'\x20'+_0x303f22['toFormat']('hh:mma'):_0x303f22['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x503d42<0x7?_0x29ff13?D(_0x29ff13,'Last')+'\x20'+D(_0x29ff13,_0x303f22['toFormat']('EEEE'))+'\x20'+_0x303f22['toFormat']('hh:mma'):_0x303f22['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x303f22['toFormat']('LL-dd-yyyy\x20hh:mma');};}function xt(_0x149f5d,_0x1da808){const _0x34d174=_0x149f5d['mapper']['markerNameToElements'](_0x1da808['name']);if(!_0x34d174)return null;const _0x36fb48=_0x5a2218(_0x34d174['values']());return _0x149f5d['view']['domConverter']['mapViewToDom'](_0x36fb48)||null;}function It(_0x89c2de,_0x5a0da8){if(0x0===_0x5a0da8['length'])return null;const _0x2a05a5=[],_0x3ad9ec=_0x89c2de['view']['domConverter'];for(const _0x13f9ff of _0x5a0da8){const _0x4f667b=_0x89c2de['mapper']['markerNameToElements'](_0x13f9ff['name']);if(!_0x4f667b)continue;const _0x2c659f=Array['from'](_0x4f667b)['map'](_0x2bcab1=>_0x3ad9ec['mapViewToDom'](_0x2bcab1))['filter'](_0x150772=>!!_0x150772);_0x2a05a5['push'](..._0x2c659f);}if(0x0===_0x2a05a5['length'])return null;const _0x32f1b6=[];for(const _0x2669bd of _0x2a05a5){const _0x544622=_0x2669bd['getClientRects']()['item'](0x0);_0x544622&&_0x32f1b6['push']({'x':_0x544622['x'],'y':_0x544622['y'],'domElement':_0x2669bd});}return 0x0===_0x32f1b6['length']?null:(_0x32f1b6['sort']((_0x1f082b,_0x30c133)=>_0x1f082b['y']-_0x30c133['y']||_0x1f082b['x']-_0x30c133['x']),_0x32f1b6['map'](_0xdd5ef9=>_0xdd5ef9['domElement']));}function St(_0x5913da,{limit:_0x3bf406,suffix:_0x5dc8b0='...'}){const _0x324167=[];let _0x3001cd=0x0;const _0x493df1=_0x5913da['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4f3ed3=0x0;_0x4f3ed3<_0x493df1['length'];_0x4f3ed3++){let _0x5cff59=_0x493df1[_0x4f3ed3];const _0x51a23f=Et(_0x5cff59);if(_0x5cff59['startsWith']('<')){if(_0x3001cd>=_0x3bf406){const _0xb8dcae=_0x5cff59['match'](/[a-zA-Z]+/);if(!_0xb8dcae){_0x493df1[_0x4f3ed3]='';continue;}const _0x31f20e=_0xb8dcae[0x0];_0x5cff59['startsWith']('</')?(_0x324167['length']&&(_0x5cff59=''),_0x324167['pop']()):(_0x324167['push'](_0x31f20e),_0x5cff59='');}}else{if(_0x3001cd>=_0x3bf406)_0x5cff59='';else{if(_0x3001cd+_0x51a23f['length']>=_0x3bf406){let _0x172c93=_0x3bf406-_0x3001cd;if('\x20'===_0x51a23f[_0x172c93-0x1])_0x172c93--;else{const _0x5019fe=_0x51a23f['slice'](_0x172c93)['indexOf']('\x20');-0x1!==_0x5019fe?_0x172c93+=_0x5019fe:_0x172c93=_0x5cff59['length'];}_0x5cff59=_0x51a23f['slice'](0x0,_0x172c93)['join']('')+_0x5dc8b0,_0x3001cd=_0x3bf406;}else _0x3001cd+=_0x51a23f['length'];}}_0x493df1[_0x4f3ed3]=_0x5cff59;}return _0x493df1['join']('\x0a')['replace'](/\n/g,'');}function Et(_0x9bd6fd){const _0x17ab4b=[];for(let _0x33793e=0x0;_0x33793e<_0x9bd6fd['length'];_0x33793e++){const _0x7d5aec=_0x9bd6fd['substring'](_0x33793e)['match'](/^&[a-z0-9#]+;/);if(_0x7d5aec){const _0x1bfcde=_0x7d5aec[0x0];_0x17ab4b['push'](_0x1bfcde),_0x33793e+=_0x1bfcde['length']-0x1;}else _0x17ab4b['push'](_0x9bd6fd[_0x33793e]);}return _0x17ab4b;}var Mt=class extends _0x2aa067{submitView;['cancelView'];['focusTracker'];keystrokes;['focusCycler'];['focusables'];constructor(_0x2bba41){super(_0x2bba41);const _0x260fee=this['bindTemplate'];this['set']('message',D(_0x2bba41,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x2bba41,D(_0x2bba41,'Yes'),_0x463273,'submit'),this['cancelView']=this['_createButtonView'](_0x2bba41,D(_0x2bba41,'No'),_0x2300b1,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x3c479d(),this['keystrokes']=new _0x264d84(),this['focusCycler']=new _0x2fc51a({'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':_0x260fee['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(_0x302a0f,_0x3ba2de,_0x27e908,_0xe986dc){const _0x4957dd=new _0x4377ca(_0x302a0f);return _0x4957dd['label']=_0x3ba2de,_0x4957dd['icon']=_0x27e908,_0x4957dd['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0xe986dc}}),_0x4957dd['on']('execute',()=>this['fire'](_0xe986dc)),_0x4957dd;}_setupKeyboardNavigation(){this['focusables']['forEach'](_0x12f363=>{this['keystrokes']['listenTo'](_0x12f363['element']),this['focusTracker']['add'](_0x12f363['element']);}),this['keystrokes']['set']('esc',(_0x54ef68,_0x5bfe91)=>{this['fire']('cancel'),_0x5bfe91();});}};function At(_0x2ae9f7){return class _0x54b60f extends _0x2ae9f7{['showConfirm'](_0x5c7919,_0x59d9bb){return this['confirmView']=new Mt(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x5c7919,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x59d9bb['appendChild'](this['confirmView']['element']),_0x59d9bb['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x5ba78b,_0x4d65c1,_0x3f573e)=>{_0x3f573e||_0x59d9bb['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x5502e7=>this['confirmView']['on']('submit',_0x5502e7));}['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 Tt(_0x534791){let _0x15b7f4=0x0,_0x247e80=0x0;for(const _0x34d7e2 of Nt(_0x534791))_0x15b7f4=(_0x15b7f4<<0x5)-_0x15b7f4+_0x34d7e2,_0x15b7f4&=_0x15b7f4,[_0x15b7f4,_0x247e80]=[_0x247e80,_0x15b7f4];return Bt(_0x15b7f4)+Bt(_0x247e80);}function*Pt(_0x1363da){null==_0x1363da||null==_0x1363da?yield 0x12b9b0a1:0x0===_0x1363da||!0x1===_0x1363da?yield 0x0:0x1===_0x1363da||0x1==_0x1363da?yield 0x1:Array['isArray'](_0x1363da)?yield*function*(_0x3d4a45){for(const _0x45e924 of _0x3d4a45)yield*Pt(_0x45e924);}(_0x1363da):'object'==typeof _0x1363da?yield*Nt(_0x1363da):'string'==typeof _0x1363da?yield*Vt(_0x1363da):'number'==typeof _0x1363da&&(yield _0x1363da);}function*Nt(_0x19c721){if(yield Ot('{'),_0x19c721){const _0x2b48d5=Object['keys'](_0x19c721)['sort']();for(const _0xd218d4 of _0x2b48d5){yield*Vt(_0xd218d4),yield Ot(':');const _0x35f9fa=_0x19c721[_0xd218d4];yield*Pt(_0x35f9fa);}}yield Ot('}');}function*Vt(_0x51d75b){yield Ot('\x22');for(const _0x33c729 of _0x51d75b)yield Ot(_0x33c729);yield Ot('\x22');}function Ot(_0x506df7){return _0x506df7['charCodeAt'](0x0);}function Bt(_0x488f6f){return(_0x488f6f*=Math['sign'](_0x488f6f))['toString'](0x24);}function Dt(_0x285dd3){if('addAttribute'!=_0x285dd3['type']&&'removeAttribute'!=_0x285dd3['type']&&'changeAttribute'!=_0x285dd3['type'])return!0x1;try{return _0x285dd3['_validate'](),!0x1;}catch{return!0x0;}}const $t=['root','roots','initialData','context','toolbar','rootsAttributes'],Lt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Rt(_0x29cc73,_0x519c88,_0x37c02e,_0xb5b2f3=[]){const _0xf682d2='string'==typeof _0x29cc73?_0x37c02e['get'](_0x29cc73)['constructor']:_0x29cc73['prototype']['constructor'];if(_0x519c88['has'](_0xf682d2))return _0x519c88['get'](_0xf682d2);_0x519c88['set'](_0xf682d2,!0x0);const _0x4acda5=[...Lt,..._0xb5b2f3]['map'](_0x4e60d8=>{if(_0x37c02e['has'](_0x4e60d8))return _0x37c02e['get'](_0x4e60d8)['constructor'];})['filter'](_0x2c72a7=>_0x2c72a7);if(_0xf682d2&&_0x4acda5['includes'](_0xf682d2))return _0x519c88['set'](_0xf682d2,!0x1),!0x1;if(!_0xf682d2['requires'])return _0x519c88['set'](_0xf682d2,!0x0),!0x0;const _0x1038a6=_0xf682d2['requires']['every'](_0x1a11d9=>Rt(_0x1a11d9,_0x519c88,_0x37c02e,_0xb5b2f3));return _0x519c88['set'](_0xf682d2,_0x1038a6),_0x1038a6;}function Ft(_0x3f6158,_0x34b29f){const _0x10ec10={};for(const _0x307c07 of _0x3f6158['config']['names']())$t['includes'](_0x307c07)||(_0x10ec10[_0x307c07]=_0x3f6158['config']['get'](_0x307c07));const _0x24740d=_0x10ec10['plugins']||[],_0x2e90fe=_0x3f6158['constructor']['builtinPlugins']||[],_0x529993=_0x24740d['length']?_0x24740d:_0x2e90fe,_0x5cddc6=_0x10ec10['extraPlugins']||[];delete _0x10ec10['extraPlugins'];const _0x291098=_0x10ec10['removePlugins']||[];delete _0x10ec10['removePlugins'];const _0x2d8e4f=_0x3f6158['_context']['config']['get']('plugins')||[],_0x1bbff7=_0x529993['concat'](_0x5cddc6)['concat'](_0x2d8e4f)['map'](_0x24fbee=>'string'==typeof _0x24fbee?_0x2e90fe['find'](_0x3ddbd3=>_0x3ddbd3['pluginName']==_0x24fbee):_0x24fbee)['filter'](_0xdd94e2=>!_0x291098['includes'](_0xdd94e2)&&!_0x291098['includes'](_0xdd94e2['pluginName'])),_0x5d06e5=Array['from'](new Set(_0x1bbff7)),_0x50c4fe=new Map();return _0x10ec10['plugins']=_0x5d06e5['filter'](_0x4a375c=>Rt(_0x4a375c,_0x50c4fe,_0x3f6158['plugins'],_0x34b29f)),_0x10ec10;}function Ht(_0x3d2ef5,_0x1586cc){const _0x3ba97c=[];_0x3d2ef5['document']['selection']['on']('change:range',()=>{const _0x160641=function(_0x19d927,_0x100e3f){const _0x176861=[];for(const _0x30cce2 of _0x19d927['markers']){const _0x5122af=_0x30cce2['getRange']();(_0x5122af['containsPosition'](_0x100e3f)||_0x5122af['start']['isEqual'](_0x100e3f)||_0x5122af['end']['isEqual'](_0x100e3f))&&_0x176861['push'](_0x30cce2);}return _0x176861;}(_0x3d2ef5,_0x3d2ef5['document']['selection']['focus']),_0x1efc43=[],_0x136c39=[],_0x4587ef=[];for(const _0x1f4218 of _0x3ba97c)_0x160641['includes'](_0x1f4218)||_0x1efc43['push'](_0x1f4218);for(const _0x1be275 of _0x160641)_0x3ba97c['includes'](_0x1be275)||_0x136c39['push'](_0x1be275),_0x4587ef['push'](_0x1be275);(_0x1efc43['length']||_0x136c39['length'])&&_0x1586cc({'left':_0x1efc43,'entered':_0x136c39}),_0x3ba97c['length']=0x0,_0x3ba97c['push'](..._0x4587ef);});}const Ut='Ctrl+Shift+E';function zt(_0xb8e8ba,_0x2132d9){const _0x19b92f=_0xb8e8ba['element'];_0xb8e8ba['keystrokes']['listenTo'](_0x19b92f);for(const _0x35f926 of _0x2132d9)Wt(_0xb8e8ba,_0x35f926);_0x2132d9['on']('change',(_0x4b9447,_0x90d975)=>{for(const _0x4ad576 of _0x90d975['removed'])Yt(_0xb8e8ba,_0x4ad576);for(const _0x577ce8 of Array['from'](_0x90d975['added'])['reverse']())Wt(_0xb8e8ba,_0x577ce8);}),_0xb8e8ba['keystrokes']['set']('enter',(_0x1d060b,_0x2906fd)=>{_0x19b92f===_0x1d060b['target']&&(_0xb8e8ba['focusCycler']['focusFirst'](),_0x2906fd());},{'filter':_0x57d58f=>_0x57d58f['target']===_0x19b92f}),_0xb8e8ba['keystrokes']['set']('esc',(_0x6c7570,_0x99bd28)=>{_0x19b92f!==_0x6c7570['target']?_0xb8e8ba['focus']():_0xb8e8ba['fire']('escape'),_0x99bd28();}),_0xb8e8ba['keystrokes']['set']('arrowdown',(_0x157dd2,_0xdbfe80)=>{_0x19b92f===_0x157dd2['target']&&(_0xb8e8ba['fire']('arrowdown'),_0xdbfe80());}),_0xb8e8ba['keystrokes']['set']('arrowup',(_0x413401,_0x559132)=>{_0x19b92f===_0x413401['target']&&(_0xb8e8ba['fire']('arrowup'),_0x559132());});}function Wt(_0xd4d90a,_0x5cb0fa){_0x5cb0fa['isRendered']&&(_0xd4d90a['focusTracker']['add'](_0x5cb0fa['element']),_0xd4d90a['keystrokes']['listenTo'](_0x5cb0fa['element']),_0x199e39(_0x5cb0fa)&&function(_0x2f040d,_0x1050e9){const _0x534f5b=_0x2f040d['actions'],_0x34d57c=_0x1050e9['actions'];for(const _0x1cee84 of Object['keys'](_0x534f5b))if(_0x1cee84 in _0x34d57c&&_0x534f5b[_0x1cee84]!==_0x34d57c[_0x1cee84])return!0x1;return!0x0;}(_0xd4d90a['focusCycler'],_0x5cb0fa['focusCycler'])&&_0xd4d90a['focusCycler']['chain'](_0x5cb0fa['focusCycler']));}function Yt(_0x476bd5,_0x3851bf){_0x476bd5['focusTracker']['remove'](_0x3851bf['element']),_0x476bd5['keystrokes']['stopListening'](_0x3851bf['element']),_0x199e39(_0x3851bf)&&_0x476bd5['focusCycler']['unchain'](_0x3851bf['focusCycler']);}const jt='$elementId',Jt='data-id';var Gt=class extends _0x5c3be4{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async init(){this['context']instanceof _0x211a7f?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x3debe0,_0x38e6e6)=>{_0x38e6e6['on']('ready',()=>{this['_integrateEditor'](_0x38e6e6);});});}get editor(){if(this['context']instanceof _0x211a7f)return this['context'];{const _0x41e4d9=this['context']['editors']['first'];if(!_0x41e4d9)throw new _0x29ae14('documentcompare-no-editor',this);return _0x41e4d9;}}getDiff(_0x50f4b5,_0x5989df,_0x222d9b={'anchor':'main','markDeletions':!0x1}){const _0x44056c=_0x222d9b['targetEditor']||this['editor'],_0x4cc381=_0x222d9b['anchor']??'main';let _0x3f9d3e,_0x4a0762;if('string'==typeof _0x4cc381){const _0x4ad48e=_0x44056c['model']['document']['getRoot'](_0x4cc381);if(!_0x4ad48e)throw new _0x29ae14('documentcompare-compare-no-root',this,{'anchor':_0x4cc381});_0x3f9d3e=_0x4ad48e,_0x4a0762=_0x44056c['model']['createPositionAt'](_0x4ad48e,0x0);}else _0x3f9d3e=_0x4cc381['clone'](),_0x4a0762=_0x4cc381['clone']();const _0x40cf66=_0x44056c['data']['parse'](_0x50f4b5,_0x3f9d3e),_0x3a8137=_0x44056c['data']['parse'](_0x5989df,_0x3f9d3e);return new Kt({'editor':_0x44056c,'before':_0x40cf66,'after':_0x3a8137,'options':{'anchor':_0x4a0762,'markDeletions':_0x222d9b['markDeletions']}});}isMarkedRemoveOperation(_0x4c8ed3){return'marker'==_0x4c8ed3['type']&&_0x4c8ed3['name']['startsWith']('$markedRemove');}applyOperations(_0x1eb625,_0x27107f){const _0x56fde0=_0x1eb625['model'];for(const _0x4eb459 of _0x27107f)Dt(_0x4eb459)||(_0x4eb459 instanceof _0x571744?_0x1eb625['_addOperationForAffectedMarkers']('move',_0x5ef620['_createFromPositionAndShift'](_0x4eb459['sourcePosition'],_0x4eb459['howMany'])):_0x4eb459 instanceof _0x14ac20?_0x1eb625['_addOperationForAffectedMarkers']('merge',_0x4eb459['deletionPosition']):_0x4eb459 instanceof _0x366cb2&&this['_fixMarkerOperationOldRange'](_0x56fde0,_0x4eb459),_0x4eb459['baseVersion']=_0x56fde0['document']['version'],_0x1eb625['batch']['addOperation'](_0x4eb459),_0x56fde0['applyOperation'](_0x4eb459));}_fixMarkerOperationOldRange(_0x5c19bd,_0x31eb75){const _0x7bb76d=_0x5c19bd['markers']['get'](_0x31eb75['name']);_0x7bb76d&&(_0x31eb75['oldRange']=_0x7bb76d['getRange']());}_integrateEditor(_0x7dd9b4){_0x7dd9b4['conversion']['for']('upcast')['add'](_0x4b2232=>{_0x4b2232['on']('element',(_0x2bb645,_0xed0965,_0x5c057a)=>{if(_0xed0965['modelRange']&&_0x5c057a['consumable']['consume'](_0xed0965['viewItem'],{'attributes':'data-id'}))for(const _0x1bec3f of _0xed0965['modelRange']['getItems']({'shallow':!0x0})){if(_0x1bec3f['is']('$textProxy'))continue;const _0x3ab24a=_0xed0965['viewItem']['getAttribute'](Jt);_0x3ab24a&&_0x5c057a['writer']['setAttribute'](jt,_0x3ab24a,_0x1bec3f);}},{'priority':'low'});}),_0x7dd9b4['model']['schema']['addAttributeCheck'](()=>!0x0,jt);}},Kt=class{_editor;_diffItems=[];_markDeletions;['_anchor'];_operationsData=[];_path=[0x0];_parents=[];_splitPostponedData=new Map();constructor({editor:_0x3b9162,before:_0x3e958d,after:_0x226589,options:_0x55c23c}){this['_editor']=_0x3b9162,this['_markDeletions']=!!_0x55c23c['markDeletions'],this['_anchor']=_0x55c23c['anchor'];const _0x310043=this['_tokenizeModel'](_0x3e958d),_0x3a17d8=this['_tokenizeModel'](_0x226589);this['_diffItems']=this['_diffModelTokens'](_0x310043,_0x3a17d8),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x3e958d['markers'],_0x226589['markers']);}getOperationsData(){return this['_operationsData'];}getOperations(){const _0x2664aa=this['_editor']['model']['document'],_0x2e8697=[];let _0x1140d5=_0x2664aa['version'];for(const _0xf4b047 of this['_operationsData'])switch(_0xf4b047['type']){case'attribute':{const _0x28d11b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']),_0x4a1bc3=new _0x5ef620(_0x28d11b,_0x28d11b['getShiftedBy'](_0xf4b047['howMany'])),_0x22ebb1=JSON['parse'](_0xf4b047['oldValue']),_0x491971=JSON['parse'](_0xf4b047['newValue']);_0x2e8697['push'](new _0x617699(_0x4a1bc3,_0xf4b047['key'],_0x22ebb1,_0x491971,_0x1140d5++));break;}case'insert':{const _0x5e280e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']),_0x4f8c67=this['_makeModelFromTokens'](_0xf4b047['tokens']);_0x2e8697['push'](new _0x4d7520(_0x5e280e,_0x4f8c67,_0x1140d5++));break;}case'remove':{const _0x4d64d0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']),_0x24f5d7=new _0xb9aff(_0x2664aa['graveyard'],[0x0]);_0x2e8697['push'](new _0x571744(_0x4d64d0,_0xf4b047['howMany'],_0x24f5d7,_0x1140d5++));break;}case'rename':{const _0x54b441=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']);_0x2e8697['push'](new _0x2b7858(_0x54b441,_0xf4b047['oldName'],_0xf4b047['newName'],_0x1140d5++));break;}case'split':{const _0x1d4f8e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']),_0x4c448b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']['slice'](0x0,-0x1));_0x4c448b['offset']++,_0x2e8697['push'](new _0x196445(_0x1d4f8e,Number['NEGATIVE_INFINITY'],_0x4c448b,null,_0x1140d5++));break;}case'merge':{const _0x46ff13=_0xf4b047['path']['slice'](),_0xce30db=_0x46ff13['slice'](0x0,-0x1);_0xce30db[_0xce30db['length']-0x1]++,_0xce30db['push'](0x0);const _0x5a42ba=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xce30db),_0x5ec808=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x46ff13),_0x200777=new _0xb9aff(_0x2664aa['graveyard'],[0x0]);_0x2e8697['push'](new _0x14ac20(_0x5a42ba,Number['NEGATIVE_INFINITY'],_0x5ec808,_0x200777,_0x1140d5++));break;}case'marker':case'markedRemove':{let _0x1d45c5=null;_0xf4b047['range']&&(_0x1d45c5=new _0x5ef620(this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['range']['start']),this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['range']['end'])));const _0x26f7ce='marker'==_0xf4b047['type']?_0xf4b047['name']:'$markedRemove:'+_0x2bf19e();_0x2e8697['push'](new _0x366cb2(_0x26f7ce,null,_0x1d45c5,_0x2664aa['model']['markers'],!0x0,_0x1140d5++));break;}case'unwrap':{const _0x17aaa2=_0xf4b047['path']['slice']();_0x17aaa2['push'](0x0);const _0x47530e=_0xf4b047['path']['slice'](),_0x1cdf20=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x17aaa2),_0x4d1c4d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47530e),_0x56aa5b=new _0xb9aff(_0x2664aa['graveyard'],[0x0]);_0x2e8697['push'](new _0x571744(_0x1cdf20,_0xf4b047['howMany'],_0x4d1c4d,_0x1140d5++)),_0x2e8697['push'](new _0x571744(_0x4d1c4d['getShiftedBy'](_0xf4b047['howMany']),0x1,_0x56aa5b,_0x1140d5++));break;}case'wrap':{const _0x2e671b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['range']['start']),_0x327683=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['range']['end']),_0x5ee540=_0xf4b047['token']['element']['_clone'](!0x1);_0x5ee540['_removeAttribute'](jt);const _0x153b6d=_0xf4b047['range']['end']['slice']();_0x153b6d['push'](0x0);const _0x6ee4b5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x153b6d);_0x2e8697['push'](new _0x4d7520(_0x327683,_0x5ee540,_0x1140d5++)),_0x2e8697['push'](new _0x571744(_0x2e671b,_0x327683['offset']-_0x2e671b['offset'],_0x6ee4b5,_0x1140d5++));break;}}return _0x2e8697;}_tokenizeModel(_0x172438){const _0x7d11b3=[],_0x4edf95=new _0x1a88ca({'boundaries':_0x5ef620['_createIn'](_0x172438)});let _0x312b56='',_0x47fb86=null;const _0x5a80cd=[''],_0x565cc9=new Map();for(const _0x3ec5d7 of _0x4edf95)if('elementStart'==_0x3ec5d7['type']||'elementEnd'==_0x3ec5d7['type']){let _0x422ff1=_0x5a80cd[0x0];''!==_0x312b56&&(_0x7d11b3['push'](...this['_makeTokensFromTextByWords'](_0x312b56,_0x47fb86,_0x422ff1)),_0x312b56='');const _0x1e0298=_0x3ec5d7['item'];let _0x33decb;_0x1e0298['getAttribute']('$elementId')?_0x33decb=_0x1e0298['getAttribute'](jt):'elementStart'==_0x3ec5d7['type']?(_0x33decb=Zt(_0x1e0298),_0x565cc9['set'](_0x1e0298,_0x33decb)):_0x33decb=_0x565cc9['get'](_0x1e0298);const _0x2d8faa=this['_getElementCategory'](_0x1e0298);'solid'==_0x2d8faa&&('elementStart'==_0x3ec5d7['type']?(_0x422ff1=_0x33decb,_0x5a80cd['unshift'](_0x422ff1)):_0x5a80cd['shift']());const _0x5b6bc0={'type':'element','element':_0x1e0298,'elementId':_0x33decb,'category':_0x2d8faa,'isStart':'elementStart'==_0x3ec5d7['type'],'limitId':_0x422ff1};_0x7d11b3['push'](_0x5b6bc0);}else''==_0x312b56&&(_0x47fb86=_0x3ec5d7['previousPosition']['clone']()),_0x312b56+=_0x3ec5d7['item']['data'];return''!==_0x312b56&&_0x7d11b3['push'](...this['_makeTokensFromTextByWords'](_0x312b56,_0x47fb86,_0x5a80cd[0x0])),_0x7d11b3;}_makeTokensFromTextByWords(_0x51aa69,_0xb847ac,_0x25b210){const _0x465cab=_0x51aa69['matchAll'](/(\s)/g),_0x4a6b76=Array['from'](_0x465cab)['map'](_0x571cbc=>_0x571cbc['index']);_0x4a6b76['push'](_0x51aa69['length']),0x0==_0x4a6b76[0x0]&&_0x4a6b76['shift']();const _0x10433c=[],_0x5b338a=_0xb847ac['parent'];let _0x5cdcc2=0x0,_0x4f2108=_0xb847ac['offset'];for(let _0x9f1409=0x0;_0x9f1409<_0x4a6b76['length'];_0x9f1409++)_0x10433c['push']({'type':'text','data':_0x51aa69['slice'](_0x5cdcc2,_0x4a6b76[_0x9f1409]),'parent':_0x5b338a,'offset':_0x4f2108,'limitId':_0x25b210}),_0x5cdcc2=_0x4a6b76[_0x9f1409],_0x4f2108=_0xb847ac['offset']+_0x4a6b76[_0x9f1409];return _0x10433c;}_getElementCategory(_0x474cc3){const _0x15ed82=this['_editor']['model']['schema'];return _0x15ed82['isLimit'](_0x474cc3)||_0x15ed82['isContent'](_0x474cc3)||_0x15ed82['isInline'](_0x474cc3)?'solid':_0x15ed82['isBlock'](_0x474cc3)?'block':function(_0x7729a7,_0x46c1c9){const _0x264402=_0x7729a7['parent'];if(!_0x264402||_0x264402['is']('documentFragment'))return!0x1;if(_0x46c1c9['checkChild'](_0x264402,'$text'))return!0x1;for(const _0xd363ec of _0x7729a7['getChildren']())if(_0xd363ec['is']('$text'))return!0x0;return!0x1;}(_0x474cc3,_0x15ed82)?'solid':'container';}['_diffModelTokens'](_0x27ed08,_0x2f5c7d){const _0x4499a1=_0x282dd8(_0x27ed08,_0x2f5c7d,{'comparator':qt});this['_handleUnclosedBlockOpeningTags'](_0x4499a1);const _0x5db07b=_0x4499a1['flatMap'](_0x191470=>{const _0x176c51=_0x191470['added']?'added':_0x191470['removed']?'removed':'unchanged';return _0x191470['value']['map'](_0x597299=>({'token':_0x597299,'change':_0x176c51}));});let _0x4c7205=0x0;for(const _0x549f1c of _0x5db07b)'added'!=_0x549f1c['change']&&('unchanged'==_0x549f1c['change']&&(_0x549f1c['before']=_0x27ed08[_0x4c7205]),_0x4c7205++);return _0x5db07b;}['_handleUnclosedBlockOpeningTags'](_0x26ad96){for(let _0x18cb89=0x0;_0x18cb89<_0x26ad96['length']-0x1;_0x18cb89++)if(_0x26ad96[_0x18cb89]['removed']&&_0x26ad96[_0x18cb89+0x1]['added']){const _0x2819eb=this['_findUnclosedBlockOpeningToken'](_0x26ad96[_0x18cb89]['value']);if(null!==_0x2819eb){const _0x1202e8=this['_findUnclosedBlockOpeningToken'](_0x26ad96[_0x18cb89+0x1]['value']),_0xb2c87e=_0x26ad96[_0x18cb89]['value']['splice'](_0x2819eb),_0x9072d0=_0x26ad96[_0x18cb89+0x1]['value']['splice'](_0x1202e8),_0x1b7144=[_0x9072d0['shift']()];_0xb2c87e['shift']();const _0x55e708={'value':_0xb2c87e,'removed':!0x0},_0x578f81={'value':_0x9072d0,'added':!0x0},_0x494a9b={'value':_0x1b7144};_0x26ad96['splice'](_0x18cb89+0x2,0x0,_0x494a9b,_0x55e708,_0x578f81);}}}['_findUnclosedBlockOpeningToken'](_0x3bfb24){let _0x365a25=0x0,_0x3a1805=-0x1;for(let _0x14c93c=0x0;_0x14c93c<_0x3bfb24['length'];_0x14c93c++){const _0x3994a5=_0x3bfb24[_0x14c93c];'element'==_0x3994a5['type']&&'block'==_0x3994a5['category']&&(_0x365a25+=_0x3994a5['isStart']?0x1:-0x1,_0x3994a5['isStart']&&(_0x3a1805=_0x14c93c));}return 0x0===_0x365a25?null:_0x3a1805;}_calculateOperationsData(){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x8bdb09=0x0;_0x8bdb09<this['_diffItems']['length'];_0x8bdb09++){const _0x146eab=this['_diffItems'][_0x8bdb09]['change'],_0x119179=[];_0x119179['push'](this['_diffItems'][_0x8bdb09]);let _0x1a836e=_0x8bdb09+0x1;for(;this['_diffItems'][_0x1a836e]&&this['_diffItems'][_0x1a836e]['change']==_0x146eab;)_0x119179['push'](this['_diffItems'][_0x1a836e]),_0x1a836e++,_0x8bdb09++;const _0x22019a=_0x119179['map'](_0x235bd4=>_0x235bd4['token']);if('unchanged'==_0x146eab)_0x119179['map'](_0x5d0ae9=>_0x5d0ae9['before'])['forEach'](_0x1aae81=>this['_traverseOverItem'](_0x1aae81));else{if('removed'==_0x146eab){if(this['_markDeletions']){const _0x275fa4=this['_path']['slice']();_0x22019a['forEach'](_0x1d80a7=>this['_traverseOverItem'](_0x1d80a7));const _0xa4b0c5=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x275fa4,'end':_0xa4b0c5}});}else this['_handleChanged'](_0x22019a,!0x0,this['_path']['slice']());}else{const _0x30ab3c=_0x22019a['filter'](_0x1aa7cf=>'element'!=_0x1aa7cf['type']||'container'!=_0x1aa7cf['category']);this['_handleChanged'](_0x30ab3c,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x505bb4=0x0;_0x505bb4<this['_diffItems']['length'];_0x505bb4++){const _0x16be71=this['_diffItems'][_0x505bb4]['change'],_0x5e02ae=[];_0x5e02ae['push'](this['_diffItems'][_0x505bb4]);let _0x2aa38f=_0x505bb4+0x1;for(;this['_diffItems'][_0x2aa38f]&&this['_diffItems'][_0x2aa38f]['change']==_0x16be71;)_0x5e02ae['push'](this['_diffItems'][_0x2aa38f]),_0x2aa38f++,_0x505bb4++;const _0x5522c5=_0x5e02ae['map'](_0x4d19ad=>_0x4d19ad['token']);if('unchanged'==_0x16be71){const _0x2232c1=_0x5e02ae['map'](_0x215953=>_0x215953['before']);this['_handleUnchanged'](_0x2232c1,_0x5522c5);}else('added'==_0x16be71||this['_markDeletions'])&&_0x5522c5['forEach'](_0x26532f=>{'element'==_0x26532f['type']&&_0x26532f['isStart']&&this['_splitPostponedData']['has'](_0x26532f['element'])&&this['_handleSplitPostponedData'](_0x26532f['element'],this['_path']),this['_traverseOverItem'](_0x26532f);});}}_handleSplitPostponedData(_0x4b6d8b,_0x3f5e8d){const _0x3f0c9a=this['_splitPostponedData']['get'](_0x4b6d8b);for(const _0x367fe8 of _0x3f0c9a)'rename'==_0x367fe8['type']?this['_operationsData']['push']({'type':'rename','path':_0x3f5e8d['slice'](),'oldName':_0x367fe8['oldValue'],'newName':_0x4b6d8b['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x3f5e8d['slice'](),'howMany':0x1,'key':_0x367fe8['key'],'oldValue':_0x367fe8['oldValue'],'newValue':JSON['stringify'](_0x4b6d8b['getAttribute'](_0x367fe8['key'])??null)});}_calculateMarkersOperationsData(_0x4e7aa3,_0x6db690){const _0x59bc85={};for(const [_0x54c87f]of _0x4e7aa3)_0x59bc85[_0x54c87f]=null;for(const [_0x3cee6e,_0x3dc5e9]of _0x6db690)_0x59bc85[_0x3cee6e]=_0x3dc5e9;const _0x2d315f=Object['entries'](_0x59bc85)['map'](([_0x11c504,_0x316edc])=>({'type':'marker','name':_0x11c504,'range':_0x316edc?{'start':_0x316edc['start']['path']['slice'](),'end':_0x316edc['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x2d315f);}['_handleUnwraps'](){const _0x5b2957=new Map(),_0x25405a=[],_0x38c1f4=[0x0];let _0x1a632f=this['_diffItems']['length']+0x1;for(let _0x393ecd=this['_diffItems']['length']-0x1;_0x393ecd>=0x0;_0x393ecd--){const {token:_0x425686,before:_0x29224a,change:_0x5de2b7}=this['_diffItems'][_0x393ecd];if('removed'!=_0x5de2b7&&(_0x1a632f=_0x393ecd),'element'!=_0x425686['type']||'container'!=_0x425686['category']||'added'==_0x5de2b7)continue;const _0x30f993=_0x29224a?_0x29224a['element']:_0x425686['element'];if(_0x425686['isStart']){const _0x403309=_0x5b2957['get'](_0x30f993),_0x24d854=this['_diffItems'][_0x403309];('removed'==_0x5de2b7||'removed'==_0x24d854['change'])&&_0x1a632f<_0x403309&&(this['_operationsData']['push']({'type':'unwrap','path':_0x30f993['getPath'](),'howMany':_0x30f993['maxOffset']+_0x38c1f4[0x0]}),_0x38c1f4['shift'](),_0x38c1f4[0x0]+=_0x30f993['maxOffset']-0x1,_0x25405a['push'](_0x393ecd),_0x25405a['push'](_0x403309));}else _0x5b2957['set'](_0x30f993,_0x393ecd),_0x38c1f4['unshift'](0x0);}_0x25405a['sort']((_0x5c4f4b,_0x515787)=>_0x515787-_0x5c4f4b),_0x25405a['forEach'](_0x553126=>{const _0x3321d9=this['_diffItems'][_0x553126];'removed'==_0x3321d9['change']?this['_diffItems']['splice'](_0x553126,0x1):(_0x3321d9['change']='added',delete _0x3321d9['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x4a47a3=[];for(let _0x289981=0x0;_0x289981<this['_diffItems']['length'];_0x289981++){const {change:_0x51d746,token:_0x351a21}=this['_diffItems'][_0x289981];if('added'==_0x51d746&&'element'==_0x351a21['type']&&'container'==_0x351a21['category']){if(_0x351a21['isStart'])_0x4a47a3['push'](this['_path']['slice']());else{if(!_0x351a21['isStart']){const _0x101a6f=_0x4a47a3['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x101a6f,'end':this['_path']['slice']()},'token':_0x351a21}),this['_path'][this['_path']['length']-0x1]=_0x101a6f[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x51d746||this['_markDeletions'])&&this['_traverseOverItem'](_0x351a21);}}['_handleUnchanged'](_0x1b4aa6,_0x409e92){for(let _0x295675=0x0;_0x295675<_0x1b4aa6['length'];_0x295675++){const _0x1b5293=_0x1b4aa6[_0x295675];if('element'==_0x1b5293['type']&&_0x1b5293['isStart']){const _0x7e642=_0x409e92[_0x295675];'block'==_0x1b5293['category']&&this['_handleElementRename'](_0x1b5293['element'],_0x7e642['element'],this['_path']),this['_handleElementAttributeChanges'](_0x1b5293['element'],_0x7e642['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x7e642);}else{if('element'!=_0x1b5293['type']||_0x1b5293['isStart']){if('text'==_0x1b5293['type']){const _0x4c8488=this['_path']['slice'](),_0x169b9a=[],_0x45057e=[];for(;_0x1b4aa6[_0x295675]&&'text'==_0x1b4aa6[_0x295675]['type'];)_0x169b9a['push'](_0x1b4aa6[_0x295675]),_0x45057e['push'](_0x409e92[_0x295675]),this['_path'][this['_path']['length']-0x1]+=_0x1b4aa6[_0x295675]['data']['length'],_0x295675++;_0x295675--,this['_handleTextAttributeChanges'](_0x169b9a,_0x45057e,_0x4c8488);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x5640f6,_0x3e63e6,_0x47e289){const _0x152a76=[],_0x1949b9=[],_0x128b62=_0x47e289['slice']();let _0x2ed698=this['_parents']['length']-0x1;for(let _0x27ac68=0x0;_0x27ac68<_0x5640f6['length'];_0x27ac68++){const _0xfc9295=_0x5640f6[_0x27ac68],_0x5cde05=_0x47e289['slice']();'element'!=_0xfc9295['type']||_0xfc9295['isStart']?'element'==_0xfc9295['type']&&_0xfc9295['isStart']?(_0x47e289['push'](0x0),_0x2ed698++,_0x1949b9['push']({'before':_0x5cde05,'after':_0x47e289['slice'](),'index':_0x27ac68})):_0x47e289[_0x47e289['length']-0x1]+=_0xfc9295['data']['length']:(_0x47e289['pop'](),_0x47e289[_0x47e289['length']-0x1]++,_0x2ed698--,_0x1949b9['length']?_0x1949b9['pop']():_0x152a76['push']({'before':_0x5cde05,'after':_0x47e289['slice'](),'index':_0x27ac68}));}if(_0x1949b9['length']!==_0x152a76['length'])throw new _0x29ae14('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x5640f6,'isRemove':_0x3e63e6});const _0x13fc9f=[{'after':_0x128b62['slice'](),'index':-0x1},..._0x152a76,..._0x1949b9,{'before':_0x47e289['slice'](),'index':_0x5640f6['length']}];if(_0x3e63e6){for(let _0x19f97a=_0x13fc9f['length']-0x1;_0x19f97a>=0x1;_0x19f97a--){const _0x29c822=_0x13fc9f[_0x19f97a-0x1]['after'],_0x14faa0=_0x13fc9f[_0x19f97a]['before'],_0x532bc7=_0x14faa0[_0x14faa0['length']-0x1]-_0x29c822[_0x29c822['length']-0x1];_0x532bc7&&(this['_operationsData']['push']({'type':'remove','path':_0x29c822,'howMany':_0x532bc7}),_0x14faa0[_0x14faa0['length']-0x1]-=_0x532bc7);}for(const {before:_0x42e9cb}of _0x152a76)this['_operationsData']['push']({'type':'merge','path':_0x42e9cb});}else for(let _0x994c6b=0x0;_0x994c6b<_0x13fc9f['length']-0x1;_0x994c6b++){const _0x6b20c8=_0x13fc9f[_0x994c6b]['after'],_0x6781b0=_0x13fc9f[_0x994c6b+0x1]['before'],_0x261130=_0x13fc9f[_0x994c6b]['index']+0x1,_0x3bfaa8=_0x13fc9f[_0x994c6b+0x1]['index'];if(_0x261130!==_0x3bfaa8&&this['_operationsData']['push']({'type':'insert','path':_0x6b20c8,'tokens':_0x5640f6['slice'](_0x261130,_0x3bfaa8)}),_0x994c6b<_0x152a76['length']){this['_operationsData']['push']({'type':'split','path':_0x6781b0});const _0x48fa2b=_0x5640f6[_0x1949b9[_0x1949b9['length']-0x1-_0x994c6b]['index']],_0x1bd07c=this['_parents'][_0x2ed698]['element'];_0x1bd07c['name']!=_0x48fa2b['element']['name']&&this['_addSplitPostponedData'](_0x48fa2b['element'],{'type':'rename','oldValue':_0x1bd07c['name']});const _0x455c98=this['_getAttributeChanges'](_0x1bd07c['getAttributes'](),_0x48fa2b['element']['getAttributes']());for(const _0x4e2520 in _0x455c98){const _0x2a66ba=_0x455c98[_0x4e2520]['oldValue'];this['_addSplitPostponedData'](_0x48fa2b['element'],{'type':'attribute','key':_0x4e2520,'oldValue':_0x2a66ba});}}}}_addSplitPostponedData(_0x298d25,_0x1a0d34){const _0x5a2c96=this['_splitPostponedData']['get'](_0x298d25)||[];_0x5a2c96['push'](_0x1a0d34),this['_splitPostponedData']['set'](_0x298d25,_0x5a2c96);}_traverseOverItem(_0x18d1fc){'element'==_0x18d1fc['type']&&_0x18d1fc['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x18d1fc)):'element'!=_0x18d1fc['type']||_0x18d1fc['isStart']?'text'==_0x18d1fc['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x18d1fc['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}_handleElementRename(_0x5e3ea4,_0x2139c9,_0xb38961){_0x5e3ea4['name']!=_0x2139c9['name']&&this['_operationsData']['push']({'type':'rename','path':_0xb38961['slice'](),'oldName':_0x5e3ea4['name'],'newName':_0x2139c9['name']});}_handleElementAttributeChanges(_0x1d8d0b,_0x25caa7,_0x3eded5){const _0x2134c6=this['_getAttributeChanges'](_0x1d8d0b['getAttributes'](),_0x25caa7['getAttributes']());for(const _0x1557aa in _0x2134c6){const {oldValue:_0x2f0ea8,newValue:_0x347fae}=_0x2134c6[_0x1557aa];this['_operationsData']['push']({'type':'attribute','path':_0x3eded5['slice'](),'howMany':0x1,'key':_0x1557aa,'oldValue':_0x2f0ea8,'newValue':_0x347fae});}}_handleTextAttributeChanges(_0x5860fa,_0x47bc85,_0x29046a){const _0x550ae7=this['_operationsData'],_0x2d8065=_0x5860fa[0x0]['parent'],_0x492ac9=_0x5860fa[0x0]['offset'],_0x3cd93e=_0x47bc85[0x0]['parent'],_0x1aa168=_0x47bc85[0x0]['offset'],_0x4832e3=_0x5860fa['reduce']((_0x2ce45b,_0x659fca)=>_0x2ce45b+_0x659fca['data']['length'],0x0),_0x52674b=this['_getAttrsForOffsets'](_0x2d8065,_0x492ac9,_0x4832e3),_0x24d484=this['_getAttrsForOffsets'](_0x3cd93e,_0x1aa168,_0x4832e3),_0x5a0376={};for(let _0x1f2d58=0x0;_0x1f2d58<_0x4832e3;_0x1f2d58++){const _0x349d49=_0x52674b[_0x492ac9+_0x1f2d58],_0x22acf5=_0x24d484[_0x1aa168+_0x1f2d58],_0x1e0ec8=this['_getAttributeChanges'](_0x349d49,_0x22acf5);for(const _0x5ea77c in _0x5a0376)_0x1e0ec8[_0x5ea77c]||_0x56d723(_0x5ea77c);for(const _0x1bc06b in _0x1e0ec8){const {oldValue:_0x2d9446,newValue:_0x244925}=_0x1e0ec8[_0x1bc06b],_0x3df795=_0x5a0376[_0x1bc06b];_0x3df795?_0x3df795['oldValue']==_0x2d9446&&_0x3df795['newValue']==_0x244925?_0x3df795['length']++:(_0x56d723(_0x1bc06b),_0x5a0376[_0x1bc06b]={'oldValue':_0x2d9446,'newValue':_0x244925,'start':_0x1f2d58,'length':0x1}):_0x5a0376[_0x1bc06b]={'oldValue':_0x2d9446,'newValue':_0x244925,'start':_0x1f2d58,'length':0x1};}}for(const _0x4015cc in _0x5a0376)_0x56d723(_0x4015cc);function _0x56d723(_0x5e08cb){const _0x208794=_0x5a0376[_0x5e08cb],_0x1fe3b1=_0x29046a['slice']();_0x1fe3b1[_0x1fe3b1['length']-0x1]+=_0x208794['start'],_0x550ae7['push']({'type':'attribute','path':_0x1fe3b1,'howMany':_0x208794['length'],'key':_0x5e08cb,'oldValue':_0x208794['oldValue'],'newValue':_0x208794['newValue']}),delete _0x5a0376[_0x5e08cb];}}_getAttributeChanges(_0x49d2d1,_0x1a2f25){const _0x4cb071={};for(const [_0x2bb8d2,_0x58f2ff]of _0x49d2d1)_0x4cb071[_0x2bb8d2]={'oldValue':JSON['stringify'](_0x58f2ff),'newValue':'null'};for(const [_0x3ea4b2,_0x4d1301]of _0x1a2f25){const _0x4accfb=JSON['stringify'](_0x4d1301);_0x4cb071[_0x3ea4b2]?_0x4cb071[_0x3ea4b2]['oldValue']==_0x4accfb?delete _0x4cb071[_0x3ea4b2]:_0x4cb071[_0x3ea4b2]['newValue']=_0x4accfb:_0x4cb071[_0x3ea4b2]={'oldValue':'null','newValue':_0x4accfb};}return delete _0x4cb071[jt],_0x4cb071;}_getAttrsForOffsets(_0x1a4033,_0x111751,_0x3e3703){const _0x487a3c=new Array(_0x111751+_0x3e3703);let _0x29a5cd=_0x1a4033['getChildAtOffset'](_0x111751),_0x46a058=_0x29a5cd['startOffset'];for(;_0x29a5cd&&_0x46a058<_0x111751+_0x3e3703;){const _0xbc4f0=Array['from'](_0x29a5cd['getAttributes']());_0x487a3c['fill'](_0xbc4f0,_0x46a058,_0x46a058+_0x29a5cd['offsetSize']),_0x46a058+=_0x29a5cd['offsetSize'],_0x29a5cd=_0x29a5cd['nextSibling'];}return _0x487a3c;}_getPositionFromAnchorAndPath(_0x57abdf,_0x96b849){const _0x254f11=[..._0x57abdf['path']['slice'](0x0,-0x1),_0x57abdf['offset']+_0x96b849[0x0],..._0x96b849['slice'](0x1)];return new _0xb9aff(_0x57abdf['root'],_0x254f11);}['_makeModelFromTokens'](_0xad64cc){const _0x569d4f=[];let _0x1afcea=null;for(const _0x2c8311 of _0xad64cc)if('element'!=_0x2c8311['type']||_0x2c8311['isStart']||_0x1afcea!=_0x2c8311['element']){if(!_0x1afcea){if('text'==_0x2c8311['type']){const _0x1605bc=_0xb9aff['_createAt'](_0x2c8311['parent'],_0x2c8311['offset']),_0xe1570d=_0x5ef620['_createFromPositionAndShift'](_0x1605bc,_0x2c8311['data']['length']),_0x1ea9e9=Array['from'](_0xe1570d['getItems']())['map'](_0x2df42b=>new _0x18d995(_0x2df42b['data'],_0x2df42b['getAttributes']()));_0x569d4f['push'](..._0x1ea9e9);}else{_0x1afcea=_0x2c8311['element'];const _0x235f30=_0x2c8311['element']['_clone'](!0x0);_0x235f30['_removeAttribute'](jt);for(const _0x9e3ead of this['_editor']['model']['createRangeIn'](_0x235f30)['getItems']())_0x9e3ead['is']('element')&&_0x9e3ead['_removeAttribute'](jt);_0x569d4f['push'](_0x235f30);}}}else _0x1afcea=null;return _0x569d4f;}};function qt(_0x1b6dd3,_0x310dd4){return _0x1b6dd3['type']===_0x310dd4['type']&&(_0x1b6dd3['limitId']===_0x310dd4['limitId']&&('text'==_0x1b6dd3['type']?_0x1b6dd3['data']==_0x310dd4['data']:function(_0x4df2d8,_0x209f39){if(_0x4df2d8['isStart']!=_0x209f39['isStart'])return!0x1;if(_0x4df2d8['isStart']&&_0x4df2d8['elementId']!=_0x209f39['elementId'])return!0x1;if(_0x4df2d8['category']!=_0x209f39['category'])return!0x1;if('block'==_0x4df2d8['category'])return!0x0;if('container'==_0x4df2d8['category']&&_0x4df2d8['elementId']!=_0x209f39['elementId'])return!0x1;return _0x4df2d8['element']['name']==_0x209f39['element']['name'];}(_0x1b6dd3,_0x310dd4)));}function Zt(_0x1984f4){return Tt({'name':_0x1984f4['name'],...Object['fromEntries'](_0x1984f4['getAttributes']())});}export{z as AriaDescriptionView,F as CollaborationUserColor,At as ConfirmMixin,jt as DATA_ID_MODEL_ATTRIBUTE,Jt as DATA_ID_VIEW_ATTRIBUTE,Gt as DocumentCompare,Kt as DocumentDiff,Ut as FOCUS_ANNOTATION_KEYSTROKE,W as LateFocusButtonView,Y as LateFocusDropdownButtonView,B as Permissions,U as PillView,Ct as SuggestionsConversion,L as User,H as UserView,$ as Users,G as fixElementSuggestionRange,It as getAllMarkersDomElementsSorted,_t as getDateTimeFormatter,xt as getMarkerDomElement,Tt as hashObject,Dt as isInvalidAttributeOperation,Ft as sanitizeEditorConfig,zt as setupThreadKeyboardNavigation,J as splitSuggestionMarkerName,Ht as surroundingMarkersDetector,St as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0x315944,Editor as _0x4e0573,Plugin as _0x19cee6}from'@ckeditor/ckeditor5-core';import{CKEditorError as _0x1237e9,Collection as _0x19f83e,FocusTracker as _0x408c10,KeystrokeHandler as _0x141dd4,first as _0x2d655a,toArray as _0x538fa1,uid as _0xfba9f8}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x360649,DropdownButtonView as _0x36acf5,FocusCycler as _0x826c03,IconView as _0x2f618e,View as _0x143134,isViewWithFocusCycler as _0x28978e}from'@ckeditor/ckeditor5-ui';import{IconCancel as _0xe0edf2,IconCheck as _0x1f4d2b,IconNotification as _0x1684b6}from'@ckeditor/ckeditor5-icons';import{setHighlightHandling as _0x5638a1,toWidget as _0x52c4a8}from'@ckeditor/ckeditor5-widget';import{DateTime as _0x266f10}from'luxon';import{ModelPosition as _0x18cb26,ModelRange as _0x169604}from'@ckeditor/ckeditor5-engine';var x=class extends _0x315944{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}setPermissions(_0x5d383d,_0x440fe2){let _0x2c68a3;if(_0x440fe2||(_0x440fe2=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x440fe2?_0x2c68a3=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x2c68a3=this['context']['editors']['find'](_0x5529ed=>_0x5529ed['config']['get']('collaboration.channelId')==_0x440fe2)),!_0x2c68a3)throw new _0x1237e9('permissions-set-permissions-invalid-channel-id',null);const _0x478d82=_0x2c68a3['plugins'],_0x7a9b4a=_0x478d82['has']('CommentsRepository')?_0x478d82['get']('CommentsRepository'):void 0x0,_0x59c90e=_0x478d82['has']('CommentsOnly')&&_0x478d82['get']('CommentsOnly'),_0x5c26c7=_0x5d383d['includes']('document:write'),_0x278977=_0x5d383d['includes']('comment:modify_all'),_0x196530=_0x5d383d['includes']('comment:admin'),_0x2aabe5=_0x5d383d['includes']('comment:write'),_0x436c76=_0x2aabe5||_0x196530,_0x3fcb39=_0x436c76||_0x278977,_0x92a272=_0x5c26c7||_0x436c76;if(_0x59c90e&&(_0x59c90e['isEnabled']=!_0x5c26c7&&_0x3fcb39),_0x2c68a3 instanceof _0x4e0573&&(_0x5c26c7||_0x3fcb39&&_0x7a9b4a?_0x2c68a3['disableReadOnlyMode']('no-permissions'):_0x2c68a3['enableReadOnlyMode']('no-permissions')),_0x7a9b4a){_0x7a9b4a['setPermissions']({'admin':_0x196530,'modifyAll':_0x278977,'write':_0x2aabe5,'resolve':_0x92a272},_0x440fe2);const _0x54d376=_0x2c68a3 instanceof _0x4e0573&&_0x2c68a3['commands']['get']('addCommentThread');_0x54d376&&(_0x436c76?_0x54d376['clearForceDisabled']('noPermissions'):_0x54d376['forceDisabled']('noPermissions'));}}};function E(_0x1fc605,_0x2cd548){const t=_0x1fc605['t'];switch(_0x2cd548){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'';}}var _=class extends _0x315944{['users'];_lastColor;['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[x];}constructor(_0x1e9445){super(_0x1e9445),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x19f83e(),this['_locale']=_0x1e9445['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:_0x52dbb1,name:_0x46c1b2,..._0x21dde0}){if(!_0x52dbb1||'string'!=typeof _0x52dbb1)throw new _0x1237e9('users-add-invalid-id');if(this['users']['has'](_0x52dbb1))throw new _0x1237e9('users-add-duplicated-id',null,{'id':_0x52dbb1});const _0x6764c8=this['context']['config']['get']('users.getInitialsCallback'),_0xb81a3c={..._0x21dde0,'id':_0x52dbb1,'name':M(this['_locale'],_0x46c1b2),'color':this['_getNextColor']()};_0xb81a3c['name']=M(this['_locale'],_0xb81a3c['name']);const _0x31c2e1=new A(_0xb81a3c,_0x6764c8);return this['users']['add'](_0x31c2e1),_0x31c2e1;}getUser(_0x2bb23e){return this['users']['get'](_0x2bb23e);}['useAnonymousUser'](){const _0x1063a8=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x1063a8);}['defineMe'](_0x44ebcd){if(this['_myId'])throw new _0x1237e9('users-me-already-defined',null);const _0x1eb769=this['getUser'](_0x44ebcd);if(!_0x1eb769)throw new _0x1237e9('users-me-missing-user',null);this['_myId']=_0x44ebcd,_0x1eb769['_isMe']=!0x0;}getOperationAuthor(){return this['me'];}_getNextColor(){const _0x549357=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x549357&&(this['_lastColor']=0x0),new T(this['_lastColor']++);}['_addAnonymousUser'](){const _0x5208fc=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x5208fc,'name':E(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}},A=class{['id'];['color'];['name'];initials;avatar;['_isMe'];['_isAnonymous'];constructor(_0x3227dc,_0x2814bc){this['id']=_0x3227dc['id'],this['color']=_0x3227dc['color'],this['name']=_0x3227dc['name'],this['initials']=_0x2814bc?_0x2814bc(this['name']):this['_computeInitials'](),this['avatar']=_0x3227dc['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}_computeInitials(){const _0x196e72=this['name']['split']('\x20')['filter'](_0x136421=>/^[\p{Letter}]/u['test'](_0x136421));return 0x1===_0x196e72['length']?this['_getInitial'](_0x196e72[0x0]):0x0===_0x196e72['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x196e72[0x0])+this['_getInitial'](_0x196e72[_0x196e72['length']-0x1]);}_getInitial(_0x592c5b){return String['fromCodePoint'](_0x592c5b['codePointAt'](0x0))['toUpperCase']();}};function M(_0x5183c2,_0x4eaa4c=''){return''==(_0x4eaa4c=_0x4eaa4c['trim']())?E(_0x5183c2,'Anonymous'):_0x4eaa4c;}var T=class{['_id'];constructor(_0x307dda){this['_id']=_0x307dda;}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'];}getColorVariable(){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}getColorAlphaVariable(){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}},P=class extends _0x143134{['name'];notificationView;constructor(_0x3fe700,_0x3bc9d1,_0x4324ac,_0x972774){super(_0x3fe700),this['name']=_0x3bc9d1['name'],this['notificationView']=null;const _0x8657d6=['ck','ck-user'],_0x535776=['ck','ck-user__img'];_0x3bc9d1['isAnonymous']&&_0x535776['push']('ck-user__anonymous'),!_0x3bc9d1['isAnonymous']&&_0x3bc9d1['isMe']&&_0x8657d6['push']('ck-user_me'),(_0x3bc9d1['avatar']||_0x972774)&&_0x535776['push']('ck-user__avatar');let _0x4d638c=null;if(_0x972774&&(_0x4d638c=new _0x2f618e(),_0x4d638c['content']=_0x972774,_0x4d638c['extendTemplate']({'attributes':{'class':['ck-user__avatar-icon']}})),_0x4324ac){const _0x51a41f=new _0x2f618e();_0x51a41f['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x51a41f['content']=_0x1684b6,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4324ac},'children':[_0x51a41f]};}const _0x245bd6=[{'tag':'div','attributes':{'class':_0x535776,'style':{'background-image':_0x3bc9d1['avatar']&&!_0x972774?'url(\x27'+_0x3bc9d1['avatar']+'\x27)':''}},'children':_0x4d638c?[_0x4d638c]:[]},{'tag':'div','attributes':{'class':_0x3bc9d1['avatar']||_0x972774?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x3bc9d1['name']},'children':[{'text':_0x3bc9d1['initials']}]}];this['notificationView']&&_0x245bd6['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x8657d6,'data-user-id':_0x3bc9d1['id']},'children':_0x245bd6});}},B=class extends _0x143134{['children'];['iconView'];['labelView'];constructor(_0x8a2e52){super(_0x8a2e52);const _0x4c63a8=this['bindTemplate'];this['set']('icon',void 0x0),this['set']('label',void 0x0),this['set']('tooltip',void 0x0),this['set']('tooltipPosition','n'),this['set']('tooltipClass',void 0x0),this['set']('iconPosition','left'),this['set']('class',void 0x0),this['children']=this['createCollection'](),this['iconView']=this['_createIconView'](),this['labelView']=this['_createLabelView'](),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill',_0x4c63a8['to']('class'),_0x4c63a8['to']('iconPosition',_0x41a3ba=>'right'===_0x41a3ba?'ck-pill_icon-right':'')],'data-cke-tooltip-text':_0x4c63a8['to']('tooltip'),'data-cke-tooltip-position':_0x4c63a8['to']('tooltipPosition'),'data-cke-tooltip-class':_0x4c63a8['to']('tooltipClass')},'children':this['children']});}['render'](){super['render'](),this['icon']&&this['children']['add'](this['iconView']),this['children']['add'](this['labelView']),this['on']('change:icon',(_0x945dd,_0x5e7feb,_0x23d584,_0x7fa03f)=>{_0x23d584&&!_0x7fa03f?this['children']['add'](this['iconView'],0x0):!_0x23d584&&_0x7fa03f&&this['children']['remove'](this['iconView']);});}_createIconView(){const _0x188fac=new _0x2f618e();return _0x188fac['extendTemplate']({'attributes':{'class':'ck-pill__icon'}}),_0x188fac['bind']('content')['to'](this,'icon'),_0x188fac;}_createLabelView(){const _0x259f68=new _0x143134(this['locale']),_0x2e0741=this['bindTemplate'];return _0x259f68['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill__label']},'children':[{'text':_0x2e0741['to']('label')}]}),_0x259f68;}},L=class extends _0x143134{['id'];constructor(_0x175312,_0x2a9999){super(_0x175312),this['id']='ck-aria-description-'+_0xfba9f8(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x2a9999}]});}},N=class extends _0x360649{['render'](){super['render'](),D(this);}},$=class extends _0x36acf5{['render'](){super['render'](),D(this);}};function D(_0x2ace8d){_0x2ace8d['listenTo'](_0x2ace8d['element'],'mousedown',(_0x16a1ef,_0x116ffe)=>{_0x116ffe['stopPropagation'](),_0x116ffe['preventDefault']();}),_0x2ace8d['listenTo'](_0x2ace8d['element'],'mouseup',()=>{_0x2ace8d['element']['focus']();});}function H(_0x278bf3){const _0x53ff13=_0x278bf3['split'](':');return{'group':_0x53ff13[0x0],'type':_0x53ff13[0x1],'subType':_0x53ff13['length']>=0x5?_0x53ff13[0x2]:null,'id':_0x53ff13['length']<0x5?_0x53ff13[0x2]:_0x53ff13[0x3],'authorId':_0x53ff13['length']<0x5?_0x53ff13[0x3]:_0x53ff13[0x4],'markerCount':0x6==_0x53ff13['length']?_0x53ff13[0x5]:null};}function z(_0x8565c6,_0x4f1593){const _0x136548=_0x8565c6['end']['nodeBefore'];if(_0x136548&&_0x136548['is']('element')&&_0x4f1593['schema']['isBlock'](_0x136548)&&!_0x4f1593['schema']['isObject'](_0x136548)){const _0x5897ca=_0x4f1593['createPositionAt'](_0x136548,'end');return _0x4f1593['createRange'](_0x8565c6['start'],_0x5897ca);}return _0x8565c6;}var O=class extends _0x19cee6{afterInit(){const _0x4c854d=this['editor'];_0x4c854d['plugins']['has']('AlignmentEditing')&&_0x4c854d['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}};const U=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var V=class extends _0x19cee6{afterInit(){const _0x15be2a=this['editor'],_0x35ecdb=_0x15be2a['plugins']['get']('SuggestionsConversion');for(const _0x2197a2 of U){if(!_0x15be2a['plugins']['has'](_0x2197a2))continue;const _0xf5185d=_0x2197a2['slice'](0x0,-0x7)['toLowerCase']();_0x35ecdb['registerInlineAttribute'](_0xf5185d);}}},W=class extends _0x19cee6{afterInit(){const _0x214c85=this['editor'],_0x956695=_0x214c85['plugins']['get']('SuggestionsConversion');_0x214c85['plugins']['has']('BookmarkEditing')&&_0x956695['registerBlockAttribute']('bookmarkId');}};const F=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var R=class extends _0x19cee6{afterInit(){const _0x4e4191=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x4281fe,commandName:_0x31d5b3}of F)this['editor']['plugins']['has'](_0x4281fe)&&_0x4e4191['registerInlineAttribute'](_0x31d5b3);}},Y=class extends _0x19cee6{afterInit(){const {editor:_0x1732f7}=this;if(!_0x1732f7['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x3f2582=_0x1732f7['plugins']['get']('SuggestionsConversion');_0x3f2582['registerBlockAttribute']('footnotesListStyle'),_0x3f2582['registerBlockAttribute']('footnotesListStart');}},j=class extends _0x19cee6{afterInit(){const _0x43cf9d=this['editor'];if(!_0x43cf9d['plugins']['has']('GeneralHtmlSupport')||!_0x43cf9d['plugins']['has']('DataSchema'))return;const _0x328bba=_0x43cf9d['plugins']['get']('SuggestionsConversion'),_0x113648=_0x43cf9d['plugins']['get']('GeneralHtmlSupport'),_0x694a9=_0x43cf9d['plugins']['get']('DataSchema');for(const _0x41fed9 of _0x694a9['getDefinitionsForView'](/.*/,!0x1)){const _0x55c2e7=_0x113648['getGhsAttributeNameForElement'](_0x41fed9['view']);!_0x41fed9['isInline']||_0x41fed9['isObject']||'appliesToBlock'in _0x41fed9&&_0x41fed9['appliesToBlock']?_0x328bba['registerBlockAttribute'](_0x55c2e7):_0x328bba['registerInlineAttribute'](_0x55c2e7);}}},G=class extends _0x19cee6{afterInit(){const _0x29b2e5=this['editor'];_0x29b2e5['plugins']['has']('HighlightEditing')&&_0x29b2e5['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}},K=class extends _0x19cee6{afterInit(){const _0x269c13=this['editor'];_0x269c13['plugins']['has']('HtmlEmbed')&&_0x269c13['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}},q=class extends _0x19cee6{afterInit(){const _0x1b233d=this['editor'];if(!_0x1b233d['plugins']['has']('ImageEditing'))return;const _0x1c1566=_0x1b233d['plugins']['get']('SuggestionsConversion');_0x1c1566['registerBlockAttribute']('src'),_0x1b233d['plugins']['has']('ImageResize')&&_0x1c1566['registerBlockAttribute']('resizedWidth'),_0x1b233d['plugins']['has']('ImageTextAlternativeEditing')&&_0x1c1566['registerBlockAttribute']('alt'),_0x1b233d['plugins']['has']('PictureEditing')&&_0x1c1566['registerBlockAttribute']('sources'),_0x1b233d['plugins']['has']('ImageSizeAttributes')&&(_0x1c1566['registerBlockAttribute']('width'),_0x1c1566['registerBlockAttribute']('height'));}},Q=class extends _0x19cee6{afterInit(){const _0x2b8d2b=this['editor'],_0xf69cd3=_0x2b8d2b['plugins']['get']('SuggestionsConversion');_0x2b8d2b['plugins']['has']('IndentBlock')&&(_0xf69cd3['registerBlockAttribute']('blockIndent'),_0x2b8d2b['plugins']['has']('ListEditing')&&(_0xf69cd3['registerBlockAttribute']('blockIndentList'),_0xf69cd3['registerBlockAttribute']('blockIndentListItem')));}},Z=class extends _0x19cee6{afterInit(){const _0x30d65d=this['editor'];_0x30d65d['plugins']['has']('LineHeight')&&_0x30d65d['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}},J=class extends _0x19cee6{afterInit(){const _0x459b87=this['editor'];if(!_0x459b87['plugins']['has']('LinkEditing'))return;const _0x562452=_0x459b87['plugins']['get']('SuggestionsConversion'),_0x27ea7a=_0x459b87['commands']['get']('link');_0x562452['registerInlineAttribute']('linkHref');for(const _0x29a2e2 of _0x27ea7a['manualDecorators'])_0x562452['registerInlineAttribute'](_0x29a2e2['id']);}},X=class extends _0x19cee6{afterInit(){const _0x44551e=this['editor'];if(!_0x44551e['plugins']['has']('ListEditing'))return;const _0x198fcf=_0x44551e['plugins']['get']('SuggestionsConversion'),_0x210ce2=_0x44551e['plugins']['has']('TodoListEditing');_0x198fcf['registerBlockAttribute']('listItemId'),_0x198fcf['registerBlockAttribute']('listType'),_0x198fcf['registerBlockAttribute']('listIndent'),_0x210ce2&&_0x198fcf['registerBlockAttribute']('todoListChecked');}},tt=class extends _0x19cee6{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x21ba34=this['editor']['config']['get']('list.properties'),_0x2dba2e=this['editor']['plugins']['get']('SuggestionsConversion');_0x21ba34['styles']&&_0x2dba2e['registerBlockAttribute']('listStyle'),_0x21ba34['reversed']&&_0x2dba2e['registerBlockAttribute']('listReversed'),_0x21ba34['startIndex']&&_0x2dba2e['registerBlockAttribute']('listStart');}},et=class extends _0x19cee6{afterInit(){const _0x167b0b=this['editor'],_0x53eae2=_0x167b0b['plugins']['get']('SuggestionsConversion');_0x167b0b['plugins']['has']('MultiLevelList')&&_0x53eae2['registerBlockAttribute']('listMarkerStyle');}},it=class extends _0x19cee6{afterInit(){const _0x21c175=this['editor'];if(!_0x21c175['plugins']['has']('TableEditing'))return;const _0x5dd897=_0x21c175['plugins']['get']('SuggestionsConversion');_0x5dd897['registerBlockAttribute']('headingRows'),_0x5dd897['registerBlockAttribute']('headingColumns');}},st=class extends _0x19cee6{afterInit(){const {plugins:_0x586c81}=this['editor'];if(!_0x586c81['has']('TablePropertiesEditing'))return;const _0x2cda00=_0x586c81['get']('SuggestionsConversion');for(const _0x3042fa of['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'])_0x2cda00['registerBlockAttribute'](_0x3042fa);}},nt=class extends _0x19cee6{afterInit(){const _0x16faea=this['editor'],_0x456bd9=_0x16faea['plugins']['get']('SuggestionsConversion');_0x16faea['plugins']['has']('TableLayout')&&_0x456bd9['registerBlockAttribute']('tableType');}},rt=class extends _0x19cee6{afterInit(){const _0x261428=this['editor'],_0x4a9384=this['editor']['plugins']['get']('SuggestionsConversion');_0x261428['plugins']['has']('Uploadcare')&&_0x261428['plugins']['has']('UploadcareImageEdit')&&_0x4a9384['registerBlockAttribute']('uploadcareImageId');}},ot=class extends _0x19cee6{afterInit(){const _0x9f22ce=this['editor'];if(!_0x9f22ce['plugins']['has']('ShiftEnter'))return;const _0x1cc1ee=_0x9f22ce['plugins']['get']('SuggestionsConversion'),_0xbad006=(_0x2cc7c5,_0x3f8431,_0x146d1a,_0x16a300)=>{if(_0x16a300&&!_0x146d1a['options']['showSuggestionHighlights'])return;if(!_0x146d1a['consumable']['test'](_0x3f8431['markerRange'],_0x2cc7c5['name']))return;const _0x3b07cd=_0x9f22ce['model'];for(const _0x38afa6 of _0x3f8431['markerRange']['getItems']()){if(!_0x38afa6['is']('element','softBreak'))continue;const _0x5331b5='deletion'==_0x3f8431['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x380c97,authorId:_0x52a01a}=H(_0x3f8431['markerName']),_0x33caee=_0x146d1a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5331b5,'data-suggestion':_0x380c97,'data-author-id':_0x52a01a}),_0x1f3b8d=_0x146d1a['mapper']['toViewPosition'](_0x3b07cd['createPositionBefore'](_0x38afa6));!_0x16a300&&_0x1cc1ee['_activeMarkers']['includes'](_0x3f8431['markerName'])&&_0x146d1a['writer']['addClass']('ck-suggestion-marker--active',_0x33caee),_0x146d1a['writer']['insert'](_0x1f3b8d,_0x33caee),_0x146d1a['mapper']['bindElementToMarker'](_0x33caee,_0x3f8431['markerName']);}};_0x9f22ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x10be61,_0x40ef6c,_0x270b3c)=>{_0xbad006(_0x10be61,_0x40ef6c,_0x270b3c,!0x1);},{'priority':'high'}),_0x9f22ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x514ef9,_0x3a89e3,_0x1661b1)=>{_0xbad006(_0x514ef9,_0x3a89e3,_0x1661b1,!0x1);},{'priority':'high'}),_0x9f22ce['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x261d09,_0x1cd590,_0x2861ee)=>{_0xbad006(_0x261d09,_0x1cd590,_0x2861ee,!0x0);},{'priority':'high'}),_0x9f22ce['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1b0fb2,_0x723d06,_0x3b9bec)=>{_0xbad006(_0x1b0fb2,_0x723d06,_0x3b9bec,!0x0);},{'priority':'high'});}},at=class extends _0x19cee6{afterInit(){const _0x1e55be=this['editor'];if(!_0x1e55be['plugins']['has']('MediaEmbedEditing'))return;const _0x31c952=_0x1e55be['plugins']['get']('SuggestionsConversion');_0x1e55be['plugins']['has']('MediaEmbedResizeEditing')&&_0x31c952['registerBlockAttribute']('resizedWidth'),_0x1e55be['plugins']['has']('MediaEmbedStyleEditing')&&_0x31c952['registerBlockAttribute']('mediaStyle'),_0x1e55be['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3250a9,{writer:_0xd89c81,options:_0x50571f})=>{if(_0x50571f['showSuggestionHighlights'])return _0xd89c81['createEmptyElement']('div');},'converterPriority':'high'}),_0x1e55be['data']['downcastDispatcher']['on']('attribute:url:media',(_0x57ffe4,_0x411c54,_0x2a5d93)=>{_0x2a5d93['options']['showSuggestionHighlights']&&_0x57ffe4['stop']();},{'priority':'high'});}},ct=class extends _0x19cee6{afterInit(){const _0xb2540d=this['editor'];if(!_0xb2540d['plugins']['has']('Table'))return;_0xb2540d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4fe4fa,_0x598422,_0x5df1f3)=>{((_0x19eb32,_0x4eb389,_0x1a09aa)=>{if(!_0x1a09aa['options']['showSuggestionHighlights'])return;const _0x54ad5e=_0x4eb389['item'];if(!_0x54ad5e||!_0x54ad5e['is']('element','tableCell'))return;const _0x575327=_0x1a09aa['mapper']['toViewElement'](_0x54ad5e);if(_0x575327){const {id:_0x2a1d60,authorId:_0x4df9fa}=H(_0x4eb389['markerName']);_0x5638a1(_0x575327,_0x1a09aa['writer'],(_0x4a32a1,_0x28c37a,_0x14b44b)=>{_0x14b44b['addClass'](_0x538fa1(_0x28c37a['classes']),_0x4a32a1),_0x14b44b['setAttribute']('data-suggestion',_0x2a1d60,_0x4a32a1),_0x14b44b['setAttribute']('data-author-id',_0x4df9fa,_0x4a32a1);});}})(0x0,_0x598422,_0x5df1f3);},{'priority':'highest'});}},ut=class extends _0x19cee6{afterInit(){const _0x3c8b11=this['editor'];_0x3c8b11['plugins']['has']('HorizontalLineEditing')&&_0x3c8b11['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x43da5b,{writer:_0x544feb,options:_0x19bbc9})=>{if(!_0x19bbc9['showSuggestionHighlights'])return null;const _0x545829=_0x544feb['createContainerElement']('div'),_0x260e7f=_0x544feb['createEmptyElement']('hr');return _0x544feb['addClass']('ck-horizontal-line',_0x545829),_0x544feb['insert'](_0x544feb['createPositionAt'](_0x545829,0x0),_0x260e7f),_0x545829;},'converterPriority':'high'});}},lt=class extends _0x19cee6{afterInit(){const {plugins:_0x5e9533,model:_0x46b8cf}=this['editor'];if(!_0x5e9533['has']('TableCellPropertiesEditing'))return;const _0x405776=_0x5e9533['get']('SuggestionsConversion');for(const _0x2cc2b7 of['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'])_0x405776['registerBlockAttribute'](_0x2cc2b7);_0x46b8cf['schema']['checkAttribute']('tableCell','tableCellType')&&_0x405776['registerBlockAttribute']('tableCellType');}},dt=class extends _0x19cee6{afterInit(){const _0x3abaa7=this['editor'];_0x3abaa7['plugins']['has']('TableEditing')&&_0x3abaa7['config']['get']('table.enableFooters')&&_0x3abaa7['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}},ht=class extends _0x19cee6{_activeMarkers=[];_blockAttributeKeys=new Set(['$elementName']);_inlineAttributeKeys=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get requires(){return[O,V,W,R,Y,j,G,ut,K,q,Q,Z,J,X,tt,at,et,ot,ct,it,dt,nt,lt,st,rt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x508103=this['editor'],_0x691278=(_0x566790,_0x2c16b1,_0x1601ce)=>{const {id:_0x18eb65,authorId:_0x56d3dc,type:_0x13ab43,subType:_0x4746e6}=H(_0x566790['markerName']),_0x38279a=['ck-suggestion-marker',this['_getClassName'](_0x13ab43,_0x4746e6)];let _0x1faaea=0xbb8;return _0x1601ce||this['_activeMarkers']['includes'](_0x566790['markerName'])&&(_0x38279a['push']('ck-suggestion-marker--active'),_0x1faaea=0xbc2),'deletion'==_0x13ab43&&(_0x1faaea+=0x5),{'classes':_0x38279a,'attributes':{'data-suggestion':_0x18eb65,'data-author-id':_0x56d3dc},'priority':_0x1faaea};};_0x508103['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x15e4b8,_0x1f96b9)=>_0x691278(_0x15e4b8,0x0,!0x1)}),_0x508103['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x379c98,_0x2ca98e)=>_0x691278(_0x379c98,0x0,!0x0)}),_0x508103['conversion']['for']('dataDowncast')['add'](_0x255bd4=>{_0x255bd4['on']('addMarker:suggestion',(_0xa93fb3,_0x1d7b20,_0x2e05f6)=>{if(!_0x2e05f6['options']['showSuggestionHighlights'])return;const _0x426b04=_0x1d7b20['item'];if(!_0x426b04)return;const _0x408364=_0x2e05f6['mapper']['toViewElement'](_0x426b04);_0x508103['model']['schema']['isObject'](_0x426b04)&&_0x408364&&!_0x408364['getCustomProperty']('widget')&&_0x408364['is']('containerElement')&&_0x52c4a8(_0x408364,_0x2e05f6['writer']);},{'priority':'high'});});const _0x3d52ee=(_0x2848cd,_0x1f9eb3,_0x234e09,_0x5d27fa,_0x5f2914)=>{if(_0x5d27fa&&!_0x234e09['options']['showSuggestionHighlights'])return;if(!_0x1f9eb3['item'])return;const {id:_0x14ce88,authorId:_0x326014,subType:_0x3f6aae}=H(_0x1f9eb3['markerName']);if(_0x5f2914){const _0x154b99=_0x3f6aae['split']('|')[0x0];if(!this['isBlockAttribute'](_0x154b99))return;}if(_0x1f9eb3['item']['is']('selection'))return void _0x234e09['consumable']['consume'](_0x1f9eb3['item'],_0x2848cd['name']);const _0x5334f2=_0x234e09['mapper']['toViewElement'](_0x1f9eb3['item']);if(_0x1f9eb3['item']['is']('element')&&_0x508103['model']['schema']['isBlock'](_0x1f9eb3['item'])&&!_0x5334f2['getCustomProperty']('addHighlight')){_0x234e09['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5334f2),_0x234e09['writer']['setAttribute']('data-suggestion',_0x14ce88,_0x5334f2),_0x234e09['writer']['setAttribute']('data-author-id',_0x326014,_0x5334f2),_0x234e09['mapper']['bindElementToMarker'](_0x5334f2,_0x1f9eb3['markerName']),_0x5d27fa||(this['_activeMarkers']['includes'](_0x1f9eb3['markerName'])?_0x234e09['writer']['addClass']('ck-suggestion-marker--active',_0x5334f2):_0x234e09['writer']['removeClass']('ck-suggestion-marker--active',_0x5334f2));for(const _0x3ef055 of _0x508103['model']['createRangeIn'](_0x1f9eb3['item'])['getItems']())_0x234e09['consumable']['consume'](_0x3ef055,_0x2848cd['name']);_0x234e09['consumable']['consume'](_0x1f9eb3['item'],_0x2848cd['name']);}},_0x108f88=(_0x3f9182,_0x86c982,_0x313426,_0x3b6620)=>{const _0x446604=_0x313426['mapper']['markerNameToElements'](_0x86c982['markerName']);if(_0x446604){if(_0x3b6620){const {subType:_0x5bb176}=H(_0x86c982['markerName']),_0x66b1ae=_0x5bb176['split']('|')[0x0];if(!this['isBlockAttribute'](_0x66b1ae))return;}for(const _0xc97f8a of _0x446604)_0xc97f8a['getCustomProperty']('addHighlight')||(_0x313426['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xc97f8a),_0x313426['writer']['removeAttribute']('data-suggestion',_0xc97f8a),_0x313426['writer']['removeAttribute']('data-author-id',_0xc97f8a),_0x313426['mapper']['unbindElementFromMarkerName'](_0xc97f8a,_0x86c982['markerName']));}};_0x508103['conversion']['for']('editingDowncast')['add'](_0x23144c=>{_0x23144c['on']('addMarker:suggestion:formatBlock',(_0x38359d,_0x1644a1,_0x989575)=>{_0x3d52ee(_0x38359d,_0x1644a1,_0x989575,!0x1,!0x1);},{'priority':'high'});}),_0x508103['conversion']['for']('editingDowncast')['add'](_0x235eb9=>{_0x235eb9['on']('addMarker:suggestion:attribute',(_0x16a578,_0x1e797f,_0x1617f1)=>{_0x3d52ee(_0x16a578,_0x1e797f,_0x1617f1,!0x1,!0x0);},{'priority':'high'});}),_0x508103['conversion']['for']('editingDowncast')['add'](_0x23adda=>{_0x23adda['on']('removeMarker:suggestion:formatBlock',(_0x2fa421,_0x547518,_0x190694)=>{_0x108f88(0x0,_0x547518,_0x190694,!0x1);},{'priority':'high'});}),_0x508103['conversion']['for']('editingDowncast')['add'](_0x17cb47=>{_0x17cb47['on']('removeMarker:suggestion:attribute',(_0x3cb422,_0x57e349,_0x3fe57a)=>{_0x108f88(0x0,_0x57e349,_0x3fe57a,!0x0);},{'priority':'high'});}),_0x508103['conversion']['for']('dataDowncast')['add'](_0x35f3f5=>{_0x35f3f5['on']('addMarker:suggestion:formatBlock',(_0x188cca,_0x3ae688,_0x553a2e)=>{_0x3d52ee(_0x188cca,_0x3ae688,_0x553a2e,!0x0,!0x1);},{'priority':'highest'});}),_0x508103['conversion']['for']('dataDowncast')['add'](_0x445e49=>{_0x445e49['on']('addMarker:suggestion:attribute',(_0x59c700,_0x155b0a,_0xe15289)=>{_0x3d52ee(_0x59c700,_0x155b0a,_0xe15289,!0x0,!0x0);},{'priority':'highest'});}),_0x508103['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x55f190,_0x3c83e7)=>_0x3c83e7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x55f190['substr'](0xb)}});const _0x461263=(_0x496217,_0x58aa85,_0x5c17de,_0x376f8e,_0x3d60a5)=>{if(_0x376f8e&&!_0x5c17de['options']['showSuggestionHighlights'])return;if(!_0x5c17de['consumable']['test'](_0x58aa85['markerRange'],_0x496217['name']))return;const _0x3cfe97=this['_activeMarkers'],_0xfb3b05=_0x58aa85['markerRange']['getWalker'](),_0x47d1a6=_0x58aa85['markerRange']['start'],_0x3b3e9d=_0x508103['model']['schema'];let _0x105248=null,_0x1c806c=null,_0x5db055=!0x1,_0xe4047e=!0x1;for(const _0x434d70 of _0xfb3b05){const _0x1f1dc9=_0x434d70['item'];_0x5db055=_0x5db055||_0x3b3e9d['isContent'](_0x1f1dc9);const _0x1f1a86=_0x5c17de['mapper']['toViewElement'](_0x1f1dc9);if(_0x1f1a86&&_0x1f1a86['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x434d70['type']&&(_0x3b3e9d['isBlock'](_0x1f1dc9)&&!_0x3b3e9d['isLimit'](_0x1f1dc9)&&(_0x1f1dc9['nextSibling']||_0x47d1a6['isAtEnd']?_0x105248&&_0x105248['parent']==_0x1f1dc9||(_0x105248=_0x1f1dc9,_0x2c0130(_0x434d70['previousPosition']),_0xe4047e=!0x0):_0x1c806c=_0x1c806c||_0x434d70['previousPosition']));}function _0x2c0130(_0x488e2e){const {id:_0x49641c,authorId:_0x5180c0}=H(_0x58aa85['markerName']),_0x123cb6=_0x5c17de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d60a5,'data-suggestion':_0x49641c,'data-author-id':_0x5180c0}),_0x436828=_0x5c17de['mapper']['toViewPosition'](_0x488e2e);!_0x376f8e&&_0x3cfe97['includes'](_0x58aa85['markerName'])&&_0x5c17de['writer']['addClass']('ck-suggestion-marker--active',_0x123cb6),_0x5c17de['writer']['insert'](_0x436828,_0x123cb6),_0x5c17de['mapper']['bindElementToMarker'](_0x123cb6,_0x58aa85['markerName']);}_0x5db055||_0xe4047e||!_0x1c806c||_0x2c0130(_0x1c806c);};_0x508103['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2825c5,_0x47e3b9,_0x417b36)=>{_0x461263(_0x2825c5,_0x47e3b9,_0x417b36,!0x1,'merge');},{'priority':'high'}),_0x508103['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x16d6a7,_0x14d10c,_0x3e000a)=>{_0x461263(_0x16d6a7,_0x14d10c,_0x3e000a,!0x0,'merge');},{'priority':'high'}),_0x508103['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f8f80,_0x22a3b4,_0x31f172)=>{_0x461263(_0x1f8f80,_0x22a3b4,_0x31f172,!0x1,'split');},{'priority':'high'}),_0x508103['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2eda8e,_0x4b9460,_0x2ccd87)=>{_0x461263(_0x2eda8e,_0x4b9460,_0x2ccd87,!0x0,'split');},{'priority':'high'}),_0x508103['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x382d13,_0x30057b,_0x1a77ac)=>{((_0x37e256,_0x154dbd,_0x54a5f3)=>{const _0x38ec43=_0x54a5f3['mapper']['markerNameToElements'](_0x154dbd['markerName']);if(_0x38ec43){for(const _0x678406 of _0x38ec43)(_0x678406['hasClass']('ck-suggestion-marker-split')||_0x678406['hasClass']('ck-suggestion-marker-merge'))&&(_0x54a5f3['mapper']['unbindElementFromMarkerName'](_0x678406,_0x154dbd['markerName']),_0x54a5f3['writer']['remove'](_0x678406));}})(0x0,_0x30057b,_0x1a77ac);},{'priority':'high'});const _0xc51ed5=(_0x2a4f49,_0x38f939,_0x3aea92,_0x444a7c)=>{if(_0x444a7c&&!_0x3aea92['options']['showSuggestionHighlights'])return;const _0x189baa=_0x38f939['markerRange']['start'],_0x22218e=_0x38f939['markerRange']['end'],_0x283ade=_0x508103['model']['schema'];if(!_0x189baa['isTouching'](_0x22218e)||!_0x189baa['nodeAfter'])return;const _0x5cc132=_0x189baa['nodeAfter'];if(_0x283ade['isBlock'](_0x5cc132)&&!_0x283ade['isLimit'](_0x5cc132)&&_0x283ade['checkChild'](_0x5cc132,'$text')){if(!_0x3aea92['consumable']['consume'](_0x38f939['markerRange'],_0x2a4f49['name']))return;const {id:_0x387140,authorId:_0xd75148}=H(_0x38f939['markerName']),_0x322aac=_0x3aea92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x387140,'data-author-id':_0xd75148}),_0x530032=_0x3aea92['mapper']['toViewPosition'](_0x22218e);!_0x444a7c&&this['_activeMarkers']['includes'](_0x38f939['markerName'])&&_0x3aea92['writer']['addClass']('ck-suggestion-marker--active',_0x322aac),_0x3aea92['writer']['insert'](_0x530032,_0x322aac),_0x3aea92['mapper']['bindElementToMarker'](_0x322aac,_0x38f939['markerName']);}};_0x508103['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x578111,_0x4eadb0,_0x105162)=>{_0xc51ed5(_0x578111,_0x4eadb0,_0x105162,!0x1);},{'priority':'high'}),_0x508103['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2abae6,_0x473587,_0x3ebe60)=>{_0xc51ed5(_0x2abae6,_0x473587,_0x3ebe60,!0x0);},{'priority':'high'});}afterInit(){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x13ab90,_0x263c25,_0x5920b1)=>{this['_activeMarkers']=_0x5920b1['slice']();},{'priority':'highest'});}registerBlockAttribute(_0x36a1ec){this['_blockAttributeKeys']['add'](_0x36a1ec);}registerInlineAttribute(_0x1d9d09){this['_inlineAttributeKeys']['add'](_0x1d9d09);}isBlockAttribute(_0x4dadb4){return this['_blockAttributeKeys']['has'](_0x4dadb4);}isInlineAttribute(_0x51b906){return this['_inlineAttributeKeys']['has'](_0x51b906);}isRegisteredAttribute(_0x3c5bc1){return this['isInlineAttribute'](_0x3c5bc1)||this['isBlockAttribute'](_0x3c5bc1);}_getClassName(_0x210161,_0x4ffac7){if('attribute'!=_0x210161)return'ck-suggestion-marker-'+_0x210161;const _0x525a8b=_0x4ffac7['split']('|')[0x0];return this['isBlockAttribute'](_0x525a8b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}};function gt(_0x18e0e9={},_0x5b7734){if(void 0x0!==_0x18e0e9['dateTimeFormat']&&'function'!=typeof _0x18e0e9['dateTimeFormat'])throw new _0x1237e9('invalid-date-time-format');return _0x2d3fc4=>{const _0x221751='string'==typeof _0x2d3fc4?_0x266f10['fromISO'](_0x2d3fc4):_0x266f10['fromJSDate'](_0x2d3fc4),_0x40df7b=_0x266f10['now'](),_0x593e37=Math['floor'](_0x40df7b['startOf']('day')['diff'](_0x221751['startOf']('day'),'days')['days']);return _0x18e0e9['dateTimeFormat']?_0x18e0e9['dateTimeFormat'](_0x221751['toJSDate'](),_0x5b7734&&_0x5b7734['t']?_0x5b7734['t']:void 0x0):0x0===_0x593e37?_0x5b7734?E(_0x5b7734,'Today')+'\x20'+_0x221751['toFormat']('hh:mma'):_0x221751['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x593e37?_0x5b7734?E(_0x5b7734,'Yesterday')+'\x20'+_0x221751['toFormat']('hh:mma'):_0x221751['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x593e37<0x7?_0x5b7734?E(_0x5b7734,'Last')+'\x20'+E(_0x5b7734,_0x221751['toFormat']('EEEE'))+'\x20'+_0x221751['toFormat']('hh:mma'):_0x221751['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x221751['toFormat']('LL-dd-yyyy\x20hh:mma');};}function ft(_0x339a16,_0x585d34){const _0x2a19af=_0x339a16['mapper']['markerNameToElements'](_0x585d34['name']);if(!_0x2a19af)return null;const _0x525166=_0x2d655a(_0x2a19af['values']());return _0x339a16['view']['domConverter']['mapViewToDom'](_0x525166)||null;}function mt(_0x3e4a78,_0x122066){if(0x0===_0x122066['length'])return null;const _0x630f38=[],_0x11b382=_0x3e4a78['view']['domConverter'];for(const _0x571b0a of _0x122066){const _0x185552=_0x3e4a78['mapper']['markerNameToElements'](_0x571b0a['name']);if(!_0x185552)continue;const _0x15bd1c=Array['from'](_0x185552)['map'](_0x4340cf=>_0x11b382['mapViewToDom'](_0x4340cf))['filter'](_0xe55eb=>!!_0xe55eb);_0x630f38['push'](..._0x15bd1c);}if(0x0===_0x630f38['length'])return null;const _0xb6c12c=[];for(const _0x5e7de9 of _0x630f38){const _0x14022e=_0x5e7de9['getClientRects']()['item'](0x0);_0x14022e&&_0xb6c12c['push']({'x':_0x14022e['x'],'y':_0x14022e['y'],'domElement':_0x5e7de9});}return 0x0===_0xb6c12c['length']?null:(_0xb6c12c['sort']((_0x4fc95a,_0x5868d8)=>_0x4fc95a['y']-_0x5868d8['y']||_0x4fc95a['x']-_0x5868d8['x']),_0xb6c12c['map'](_0x466a45=>_0x466a45['domElement']));}function kt(_0x1ad99d,{limit:_0x8a1281,suffix:_0xcd28e3='...'}){const _0x3614fd=[];let _0x15afa3=0x0;const _0x52461b=_0x1ad99d['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x9eefbd=0x0;_0x9eefbd<_0x52461b['length'];_0x9eefbd++){let _0x400384=_0x52461b[_0x9eefbd];const _0x2b6051=pt(_0x400384);if(_0x400384['startsWith']('<')){if(_0x15afa3>=_0x8a1281){const _0x47b5dd=_0x400384['match'](/[a-zA-Z]+/);if(!_0x47b5dd){_0x52461b[_0x9eefbd]='';continue;}const _0x2810fe=_0x47b5dd[0x0];_0x400384['startsWith']('</')?(_0x3614fd['length']&&(_0x400384=''),_0x3614fd['pop']()):(_0x3614fd['push'](_0x2810fe),_0x400384='');}}else{if(_0x15afa3>=_0x8a1281)_0x400384='';else{if(_0x15afa3+_0x2b6051['length']>=_0x8a1281){let _0x425a4c=_0x8a1281-_0x15afa3;if('\x20'===_0x2b6051[_0x425a4c-0x1])_0x425a4c--;else{const _0x426a0f=_0x2b6051['slice'](_0x425a4c)['indexOf']('\x20');-0x1!==_0x426a0f?_0x425a4c+=_0x426a0f:_0x425a4c=_0x400384['length'];}_0x400384=_0x2b6051['slice'](0x0,_0x425a4c)['join']('')+_0xcd28e3,_0x15afa3=_0x8a1281;}else _0x15afa3+=_0x2b6051['length'];}}_0x52461b[_0x9eefbd]=_0x400384;}return _0x52461b['join']('\x0a')['replace'](/\n/g,'');}function pt(_0x18fe01){const _0x2e7017=[];for(let _0x18fa58=0x0;_0x18fa58<_0x18fe01['length'];_0x18fa58++){const _0x131c77=_0x18fe01['substring'](_0x18fa58)['match'](/^&[a-z0-9#]+;/);if(_0x131c77){const _0x2f72df=_0x131c77[0x0];_0x2e7017['push'](_0x2f72df),_0x18fa58+=_0x2f72df['length']-0x1;}else _0x2e7017['push'](_0x18fe01[_0x18fa58]);}return _0x2e7017;}var yt=class extends _0x143134{submitView;['cancelView'];['focusTracker'];keystrokes;['focusCycler'];['focusables'];constructor(_0x4cf9a1){super(_0x4cf9a1);const _0x2ceda6=this['bindTemplate'];this['set']('message',E(_0x4cf9a1,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x4cf9a1,E(_0x4cf9a1,'Yes'),_0x1f4d2b,'submit'),this['cancelView']=this['_createButtonView'](_0x4cf9a1,E(_0x4cf9a1,'No'),_0xe0edf2,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x408c10(),this['keystrokes']=new _0x141dd4(),this['focusCycler']=new _0x826c03({'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':_0x2ceda6['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(_0x2eb33a,_0x1eb422,_0x2ef19d,_0x1d467c){const _0x41f265=new _0x360649(_0x2eb33a);return _0x41f265['label']=_0x1eb422,_0x41f265['icon']=_0x2ef19d,_0x41f265['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x1d467c}}),_0x41f265['on']('execute',()=>this['fire'](_0x1d467c)),_0x41f265;}_setupKeyboardNavigation(){this['focusables']['forEach'](_0x1c5858=>{this['keystrokes']['listenTo'](_0x1c5858['element']),this['focusTracker']['add'](_0x1c5858['element']);}),this['keystrokes']['set']('esc',(_0x36ee29,_0x3c6e45)=>{this['fire']('cancel'),_0x3c6e45();});}};function bt(_0x2013bf){return class _0x11aa25 extends _0x2013bf{['showConfirm'](_0x136c4c,_0xd97c80){return this['confirmView']=new yt(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x136c4c,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0xd97c80['appendChild'](this['confirmView']['element']),_0xd97c80['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x3b83bb,_0x420ea1,_0x2b24ff)=>{_0x2b24ff||_0xd97c80['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x80ce85=>this['confirmView']['on']('submit',_0x80ce85));}['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 vt(_0x55ced1){let _0x4c37bc=0x0,_0xe0378=0x0;for(const _0x5ef04f of Ct(_0x55ced1))_0x4c37bc=(_0x4c37bc<<0x5)-_0x4c37bc+_0x5ef04f,_0x4c37bc&=_0x4c37bc,[_0x4c37bc,_0xe0378]=[_0xe0378,_0x4c37bc];return xt(_0x4c37bc)+xt(_0xe0378);}function*wt(_0x12fd11){null==_0x12fd11||null==_0x12fd11?yield 0x12b9b0a1:0x0===_0x12fd11||!0x1===_0x12fd11?yield 0x0:0x1===_0x12fd11||0x1==_0x12fd11?yield 0x1:Array['isArray'](_0x12fd11)?yield*function*(_0x15dda2){for(const _0x20aedb of _0x15dda2)yield*wt(_0x20aedb);}(_0x12fd11):'object'==typeof _0x12fd11?yield*Ct(_0x12fd11):'string'==typeof _0x12fd11?yield*It(_0x12fd11):'number'==typeof _0x12fd11&&(yield _0x12fd11);}function*Ct(_0x15762e){if(yield St('{'),_0x15762e){const _0x125e97=Object['keys'](_0x15762e)['sort']();for(const _0x5c55ec of _0x125e97){yield*It(_0x5c55ec),yield St(':');const _0x26f431=_0x15762e[_0x5c55ec];yield*wt(_0x26f431);}}yield St('}');}function*It(_0x46384f){yield St('\x22');for(const _0x517747 of _0x46384f)yield St(_0x517747);yield St('\x22');}function St(_0x2822dd){return _0x2822dd['charCodeAt'](0x0);}function xt(_0x4662ca){return(_0x4662ca*=Math['sign'](_0x4662ca))['toString'](0x24);}function Et(_0x469eff){if('addAttribute'!=_0x469eff['type']&&'removeAttribute'!=_0x469eff['type']&&'changeAttribute'!=_0x469eff['type'])return!0x1;try{return _0x469eff['_validate'](),!0x1;}catch{return!0x0;}}function _t(_0x5fcdab,_0x1937db){return new _0x18cb26(_0x1937db,Array['from'](_0x5fcdab['path']),_0x5fcdab['stickiness']);}function At(_0x16602e,_0x52a597){return new _0x169604(_t(_0x16602e['start'],_0x52a597),_t(_0x16602e['end'],_0x52a597));}function Mt(_0x218b59,_0x4db152){const _0x40c119=_0x218b59;for(const _0xc05d26 of Object['keys'](_0x40c119)){const _0x2e5823=_0x40c119[_0xc05d26];_0x2e5823 instanceof _0x18cb26?_0x40c119[_0xc05d26]=_t(_0x2e5823,_0x4db152['get'](_0x2e5823['root']['rootName'])):_0x2e5823 instanceof _0x169604?_0x40c119[_0xc05d26]=At(_0x2e5823,_0x4db152['get'](_0x2e5823['root']['rootName'])):'root'===_0xc05d26&&_0x2e5823&&(_0x40c119[_0xc05d26]=_0x4db152['get'](_0x2e5823['rootName']));}}const Tt=['root','roots','initialData','context','toolbar','rootsAttributes'],Pt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader','AIChat','AIChatHistory','AIChatShortcuts','AIReviewMode','AIQuickActions','AIActions','AIBalloon','AITranslate'];function Bt(_0xa8583c,_0x3d6ea6,_0x4eaa07,_0x444bcc=[]){const _0x1d5edf='string'==typeof _0xa8583c?_0x4eaa07['get'](_0xa8583c)['constructor']:_0xa8583c['prototype']['constructor'];if(_0x3d6ea6['has'](_0x1d5edf))return _0x3d6ea6['get'](_0x1d5edf);_0x3d6ea6['set'](_0x1d5edf,!0x0);const _0x3a92bf=[...Pt,..._0x444bcc],_0x43168d=_0x3a92bf['map'](_0x3d97bd=>{if(_0x4eaa07['has'](_0x3d97bd))return _0x4eaa07['get'](_0x3d97bd)['constructor'];})['filter'](_0x162acd=>_0x162acd);if(_0x1d5edf['pluginName']&&_0x3a92bf['includes'](_0x1d5edf['pluginName'])||_0x43168d['includes'](_0x1d5edf))return _0x3d6ea6['set'](_0x1d5edf,!0x1),!0x1;if(!_0x1d5edf['requires'])return _0x3d6ea6['set'](_0x1d5edf,!0x0),!0x0;const _0x34e545=_0x1d5edf['requires']['every'](_0x539793=>Bt(_0x539793,_0x3d6ea6,_0x4eaa07,_0x444bcc));return _0x3d6ea6['set'](_0x1d5edf,_0x34e545),_0x34e545;}function Lt(_0x2934ed,_0x2db526){const _0x125cae={};for(const _0x1787e6 of _0x2934ed['config']['names']())Tt['includes'](_0x1787e6)||(_0x125cae[_0x1787e6]=_0x2934ed['config']['get'](_0x1787e6));const _0x225926=_0x125cae['plugins']||[],_0x2b7c7f=_0x2934ed['constructor']['builtinPlugins']||[],_0x28250f=_0x225926['length']?_0x225926:_0x2b7c7f,_0x18e30e=_0x125cae['extraPlugins']||[];delete _0x125cae['extraPlugins'];const _0x48df9a=_0x125cae['removePlugins']||[];delete _0x125cae['removePlugins'];const _0x508752=_0x2934ed['_context']['config']['get']('plugins')||[],_0xef9837=_0x28250f['concat'](_0x18e30e)['concat'](_0x508752)['map'](_0xf99a97=>'string'==typeof _0xf99a97?_0x2b7c7f['find'](_0x5a457d=>_0x5a457d['pluginName']==_0xf99a97):_0xf99a97)['filter'](_0x16a9f2=>!_0x48df9a['includes'](_0x16a9f2)&&!_0x48df9a['includes'](_0x16a9f2['pluginName'])),_0x5813c9=Array['from'](new Set(_0xef9837)),_0x43aa16=new Map();return _0x125cae['plugins']=_0x5813c9['filter'](_0x1e4238=>Bt(_0x1e4238,_0x43aa16,_0x2934ed['plugins'],_0x2db526)),_0x125cae;}function Nt(_0x4f2c4b,_0x548527){const _0x95e2c5=[];_0x4f2c4b['document']['selection']['on']('change:range',()=>{const _0x16c655=function(_0x41bbdd,_0x47cf71){const _0x227273=[];for(const _0x5d322d of _0x41bbdd['markers']){const _0xa7f226=_0x5d322d['getRange']();(_0xa7f226['containsPosition'](_0x47cf71)||_0xa7f226['start']['isEqual'](_0x47cf71)||_0xa7f226['end']['isEqual'](_0x47cf71))&&_0x227273['push'](_0x5d322d);}return _0x227273;}(_0x4f2c4b,_0x4f2c4b['document']['selection']['focus']),_0x5ddef4=[],_0x66310f=[],_0x43f29a=[];for(const _0x5297ff of _0x95e2c5)_0x16c655['includes'](_0x5297ff)||_0x5ddef4['push'](_0x5297ff);for(const _0x9444ab of _0x16c655)_0x95e2c5['includes'](_0x9444ab)||_0x66310f['push'](_0x9444ab),_0x43f29a['push'](_0x9444ab);(_0x5ddef4['length']||_0x66310f['length'])&&_0x548527({'left':_0x5ddef4,'entered':_0x66310f}),_0x95e2c5['length']=0x0,_0x95e2c5['push'](..._0x43f29a);});}const $t='Ctrl+Shift+E';function Dt(_0x400157,_0x4e4be1){const _0x11bf9c=_0x400157['element'];_0x400157['keystrokes']['listenTo'](_0x11bf9c);for(const _0x578731 of _0x4e4be1)Ht(_0x400157,_0x578731);_0x4e4be1['on']('change',(_0x261b8f,_0xb360c6)=>{for(const _0x37ece2 of _0xb360c6['removed'])zt(_0x400157,_0x37ece2);for(const _0xe5e95 of Array['from'](_0xb360c6['added'])['reverse']())Ht(_0x400157,_0xe5e95);}),_0x400157['keystrokes']['set']('enter',(_0x575d59,_0xe4beab)=>{_0x11bf9c===_0x575d59['target']&&(_0x400157['focusCycler']['focusFirst'](),_0xe4beab());},{'filter':_0x1976f4=>_0x1976f4['target']===_0x11bf9c}),_0x400157['keystrokes']['set']('esc',(_0x8e54ed,_0x2b74b3)=>{_0x11bf9c!==_0x8e54ed['target']?_0x400157['focus']():_0x400157['fire']('escape'),_0x2b74b3();}),_0x400157['keystrokes']['set']('arrowdown',(_0x4e3a84,_0x40b908)=>{_0x11bf9c===_0x4e3a84['target']&&(_0x400157['fire']('arrowdown'),_0x40b908());}),_0x400157['keystrokes']['set']('arrowup',(_0x205060,_0x222656)=>{_0x11bf9c===_0x205060['target']&&(_0x400157['fire']('arrowup'),_0x222656());});}function Ht(_0x39c4fe,_0x18e2c9){_0x18e2c9['isRendered']&&(_0x39c4fe['focusTracker']['add'](_0x18e2c9['element']),_0x39c4fe['keystrokes']['listenTo'](_0x18e2c9['element']),_0x28978e(_0x18e2c9)&&function(_0x676a43,_0x111b79){const _0x30e0bc=_0x676a43['actions'],_0x5c3284=_0x111b79['actions'];for(const _0x37f364 of Object['keys'](_0x30e0bc))if(_0x37f364 in _0x5c3284&&_0x30e0bc[_0x37f364]!==_0x5c3284[_0x37f364])return!0x1;return!0x0;}(_0x39c4fe['focusCycler'],_0x18e2c9['focusCycler'])&&_0x39c4fe['focusCycler']['chain'](_0x18e2c9['focusCycler']));}function zt(_0x29fa44,_0x3a9d5e){_0x29fa44['focusTracker']['remove'](_0x3a9d5e['element']),_0x29fa44['keystrokes']['stopListening'](_0x3a9d5e['element']),_0x28978e(_0x3a9d5e)&&_0x29fa44['focusCycler']['unchain'](_0x3a9d5e['focusCycler']);}export{L as AriaDescriptionView,T as CollaborationUserColor,bt as ConfirmMixin,$t as FOCUS_ANNOTATION_KEYSTROKE,N as LateFocusButtonView,$ as LateFocusDropdownButtonView,x as Permissions,B as PillView,ht as SuggestionsConversion,A as User,P as UserView,_ as Users,z as fixElementSuggestionRange,mt as getAllMarkersDomElementsSorted,gt as getDateTimeFormatter,ft as getMarkerDomElement,vt as hashObject,Et as isInvalidAttributeOperation,Mt as reRootOperation,_t as reRootPosition,At as reRootRange,Lt as sanitizeEditorConfig,Dt as setupThreadKeyboardNavigation,H as splitSuggestionMarkerName,Nt as surroundingMarkersDetector,kt as trimHtml};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}
|
|
23
|
+
export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x513cd4=>{const {af:_0x366dac}={'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};_0x513cd4['af']||={'dictionary':{},'getPluralForm':null},_0x513cd4['af']['dictionary']=Object['assign'](_0x513cd4['af']['dictionary'],_0x366dac['dictionary']),_0x366dac['getPluralForm']&&(_0x513cd4['af']['getPluralForm']=_0x366dac['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'}
|
|
23
|
+
export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x582834=>{const {ar:_0x135644}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'}}};_0x582834['ar']||={'dictionary':{},'getPluralForm':null},_0x582834['ar']['dictionary']=Object['assign'](_0x582834['ar']['dictionary'],_0x135644['dictionary']),_0x135644['getPluralForm']&&(_0x582834['ar']['getPluralForm']=_0x135644['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}
|
|
23
|
+
export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x268575=>{const {ast:_0x14cb19}={'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};_0x268575['ast']||={'dictionary':{},'getPluralForm':null},_0x268575['ast']['dictionary']=Object['assign'](_0x268575['ast']['dictionary'],_0x14cb19['dictionary']),_0x14cb19['getPluralForm']&&(_0x268575['ast']['getPluralForm']=_0x14cb19['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}
|
|
23
|
+
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5730c2=>{const {az:_0x13a538}={'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};_0x5730c2['az']||={'dictionary':{},'getPluralForm':null},_0x5730c2['az']['dictionary']=Object['assign'](_0x5730c2['az']['dictionary'],_0x13a538['dictionary']),_0x13a538['getPluralForm']&&(_0x5730c2['az']['getPluralForm']=_0x13a538['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}
|
|
23
|
+
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5277d9=>{const {be:_0x4dba24}={'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};_0x5277d9['be']||={'dictionary':{},'getPluralForm':null},_0x5277d9['be']['dictionary']=Object['assign'](_0x5277d9['be']['dictionary'],_0x4dba24['dictionary']),_0x4dba24['getPluralForm']&&(_0x5277d9['be']['getPluralForm']=_0x4dba24['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'}
|
|
23
|
+
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xeca396=>{const {bg:_0x2b61b2}={'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'}}};_0xeca396['bg']||={'dictionary':{},'getPluralForm':null},_0xeca396['bg']['dictionary']=Object['assign'](_0xeca396['bg']['dictionary'],_0x2b61b2['dictionary']),_0x2b61b2['getPluralForm']&&(_0xeca396['bg']['getPluralForm']=_0x2b61b2['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Anonymous':'নামহীন','Yes':'হ্যাঁ','No':'না','Are\x20you\x20sure?':'আপনি\x20কি\x20নিশ্চিত?','Today':'আজ','Yesterday':'গতকাল','Last':'সর্বশেষ','Monday':'সোমবার','Tuesday':'মঙ্গলবার','Wednesday':'বুধবার','Thursday':'বৃহস্পতিবার','Friday':'শুক্রবার','Saturday':'শনিবার','Sunday':'রবিবার'}
|
|
23
|
+
export default{'bn':{'dictionary':{'Anonymous':'নামহীন','Yes':'হ্যাঁ','No':'না','Are\x20you\x20sure?':'আপনি\x20কি\x20নিশ্চিত?','Today':'আজ','Yesterday':'গতকাল','Last':'সর্বশেষ','Monday':'সোমবার','Tuesday':'মঙ্গলবার','Wednesday':'বুধবার','Thursday':'বৃহস্পতিবার','Friday':'শুক্রবার','Saturday':'শনিবার','Sunday':'রবিবার'}}};
|