@ckeditor/ckeditor5-collaboration-core 48.0.1-alpha.1 → 48.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +1 -1
- package/dist/documentcompare.d.ts +13 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +1 -1
- package/dist/suggestionstyles.d.ts +3 -0
- 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/{sanitizeEditorConfig.d.ts → sanitizeeditorconfig.d.ts} +1 -1
- package/dist/utils/suggestionmarkerutils.d.ts +2 -2
- package/package.json +11 -11
package/dist/config.d.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import type { LocaleTranslate } from '@ckeditor/ckeditor5-utils';
|
|
6
5
|
/**
|
|
7
6
|
* @module collaboration-core/config
|
|
8
7
|
* @publicApi
|
|
9
8
|
*/
|
|
9
|
+
import type { LocaleTranslate } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
/**
|
|
11
11
|
* The locale configuration.
|
|
12
12
|
*
|
|
@@ -40,11 +40,21 @@ export declare class DocumentCompare extends ContextPlugin {
|
|
|
40
40
|
export interface DocumentCompareOptions {
|
|
41
41
|
anchor: string | ModelPosition;
|
|
42
42
|
markDeletions: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* When `DocumentCompare` runs on a context with several editors, `DocumentCompare#editor` is the first editor in the context.
|
|
45
|
+
* Pass the editor whose model/schema should be used for parsing and for resolving a string `anchor` (e.g. multi-root root names).
|
|
46
|
+
*/
|
|
47
|
+
targetEditor?: Editor;
|
|
43
48
|
}
|
|
44
49
|
export declare class DocumentDiff {
|
|
45
|
-
constructor(
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
constructor({ editor, before, after, options }: {
|
|
51
|
+
editor: Editor;
|
|
52
|
+
before: ModelDocumentFragment;
|
|
53
|
+
after: ModelDocumentFragment;
|
|
54
|
+
options: {
|
|
55
|
+
markDeletions: boolean;
|
|
56
|
+
anchor: ModelPosition;
|
|
57
|
+
};
|
|
48
58
|
});
|
|
49
59
|
getOperationsData(): Array<OperationData>;
|
|
50
60
|
getOperations(): Array<Operation>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module collaboration-core
|
|
7
|
+
*/
|
|
5
8
|
export { Permissions } from './permissions.js';
|
|
6
|
-
export { Users,
|
|
9
|
+
export { Users, User, CollaborationUserColor, type CollaborationUserData } from './users.js';
|
|
7
10
|
export { UserView } from './users/view/userview.js';
|
|
8
11
|
export { AriaDescriptionView } from './suggestions/view/ariadescriptionview.js';
|
|
9
12
|
export { LateFocusButtonView, LateFocusDropdownButtonView } from './suggestions/view/latefocusbuttonview.js';
|
|
@@ -13,11 +16,11 @@ export { getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/get
|
|
|
13
16
|
export { trimHtml } from './utils/trim-html.js';
|
|
14
17
|
export { ConfirmMixin, type ConfirmApi, type RemoveConfirmEvent } from './utils/confirmmixin.js';
|
|
15
18
|
export { hashObject } from './utils/hashobject.js';
|
|
16
|
-
export { sanitizeEditorConfig } from './utils/
|
|
19
|
+
export { sanitizeEditorConfig } from './utils/sanitizeeditorconfig.js';
|
|
17
20
|
export { surroundingMarkersDetector } from './utils/surroundingmarkersdetector.js';
|
|
18
21
|
export { setupThreadKeyboardNavigation, FOCUS_ANNOTATION_KEYSTROKE, type ThreadEscapeEvent, type ThreadArrowUpEvent, type ThreadArrowDownEvent } from './utils/setupthreadkeyboardnavigation.js';
|
|
19
22
|
export { splitSuggestionMarkerName, fixElementSuggestionRange } from './utils/suggestionmarkerutils.js';
|
|
20
|
-
export { DocumentCompare, DATA_ID_MODEL_ATTRIBUTE, DATA_ID_VIEW_ATTRIBUTE, type DocumentCompareOptions,
|
|
23
|
+
export { DocumentCompare, DATA_ID_MODEL_ATTRIBUTE, DATA_ID_VIEW_ATTRIBUTE, type DocumentCompareOptions, DocumentDiff, type OperationData, type InsertOperationData, type RemoveOperationData, type SplitOperationData, type MergeOperationData, type RenameOperationData, type AttributeOperationData, type MarkerOperationData, type UnwrapOperationData, type WrapOperationData, type MarkedRemoveData, type ModelToken, type ModelElementToken, type ModelTextToken, type Path } from './documentcompare.js';
|
|
21
24
|
export type { CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation.js';
|
|
22
25
|
export type { CollaborationHistory } from './collaborationhistory.js';
|
|
23
26
|
export type { LocaleConfig, RealTimeCollaborationConfig, CollaborationUsersConfig } from './config.js';
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x75a6b7,Editor as _0x40fc69,Plugin as _0xebfaf0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2f307b,Collection as _0x394280,uid as _0x52be7a,toArray as _0x219f88,first as _0x589403,FocusTracker as _0x4418a9,KeystrokeHandler as _0x5b5b57}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x1f9af4,IconView as _0x587dd0,ButtonView as _0x5332d6,DropdownButtonView as _0x135a86,FocusCycler as _0x2a7668,isViewWithFocusCycler as _0x12dcb8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x5ea605,IconCheck as _0x23ae13,IconCancel as _0x1b7d9b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x57e6ec,toWidget as _0x228ef9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0xaf8651}from'luxon';import{InsertOperation as _0x1ce4bd,MoveOperation as _0x3ea2e2,ModelPosition as _0x26d7d9,ModelRange as _0x3a005a,MarkerOperation as _0x455d9d,MergeOperation as _0x3df2c0,SplitOperation as _0x626496,RenameOperation as _0x2e846f,AttributeOperation as _0x4408ce,ModelTreeWalker as _0x7df929,ModelText as _0x1ef998}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x22cc63}from'diff';class D extends _0x75a6b7{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x11f3aa,_0x2f979f){let _0x56e663;if(_0x2f979f||(_0x2f979f=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x2f979f?_0x56e663=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x56e663=this['context']['editors']['find'](_0x42c757=>_0x42c757['config']['get']('collaboration.channelId')==_0x2f979f)),!_0x56e663)throw new _0x2f307b('permissions-set-permissions-invalid-channel-id',null);const _0x141e6d=_0x56e663['plugins'],_0x43fec8=_0x141e6d['has']('CommentsRepository')?_0x141e6d['get']('CommentsRepository'):void 0x0,_0x3a4a1a=_0x141e6d['has']('CommentsOnly')&&_0x141e6d['get']('CommentsOnly'),_0x535ead=_0x11f3aa['includes']('document:write'),_0x4407f4=_0x11f3aa['includes']('comment:modify_all'),_0x5383c7=_0x11f3aa['includes']('comment:admin'),_0x5a1577=_0x11f3aa['includes']('comment:write'),_0x3cd8b7=_0x5a1577||_0x5383c7,_0x216cf9=_0x3cd8b7||_0x4407f4,_0x343149=_0x535ead||_0x3cd8b7;(_0x3a4a1a&&(_0x3a4a1a['isEnabled']=!_0x535ead&&_0x216cf9),_0x56e663 instanceof _0x40fc69)&&(!(_0x535ead||_0x216cf9&&_0x43fec8)?_0x56e663['enableReadOnlyMode']('no-permissions'):_0x56e663['disableReadOnlyMode']('no-permissions'));if(_0x43fec8){_0x43fec8['setPermissions']({'admin':_0x5383c7,'modifyAll':_0x4407f4,'write':_0x5a1577,'resolve':_0x343149},_0x2f979f);const _0xab889e=_0x56e663 instanceof _0x40fc69&&_0x56e663['commands']['get']('addCommentThread');_0xab889e&&(_0x3cd8b7?_0xab889e['clearForceDisabled']('noPermissions'):_0xab889e['forceDisabled']('noPermissions'));}}}function $(_0x4bce56,_0x427f0d){const t=_0x4bce56['t'];switch(_0x427f0d){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class L extends _0x75a6b7{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[D];}constructor(_0x2c8e5d){super(_0x2c8e5d),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x394280(),this['_locale']=_0x2c8e5d['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:_0x5345c0,name:_0x5daecf,..._0x958a4a}){if(!_0x5345c0||'string'!=typeof _0x5345c0)throw new _0x2f307b('users-add-invalid-id');if(this['users']['has'](_0x5345c0))throw new _0x2f307b('users-add-duplicated-id',null,{'id':_0x5345c0});const _0x2a2c4e=this['context']['config']['get']('users.getInitialsCallback'),_0xa05ffe={..._0x958a4a,'id':_0x5345c0,'name':U(this['_locale'],_0x5daecf),'color':this['_getNextColor']()};_0xa05ffe['name']=U(this['_locale'],_0xa05ffe['name']);const _0x85460a=new V(_0xa05ffe,_0x2a2c4e);return this['users']['add'](_0x85460a),_0x85460a;}['getUser'](_0x58bec2){return this['users']['get'](_0x58bec2);}['useAnonymousUser'](){const _0x22662a=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x22662a);}['defineMe'](_0x93522c){if(this['_myId'])throw new _0x2f307b('users-me-already-defined',null);const _0x5b13f0=this['getUser'](_0x93522c);if(!_0x5b13f0)throw new _0x2f307b('users-me-missing-user',null);this['_myId']=_0x93522c,_0x5b13f0['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x2336ff=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x2336ff&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0x269f88=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x269f88,'name':$(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class V{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x2c35e0,_0x54c691){this['id']=_0x2c35e0['id'],this['color']=_0x2c35e0['color'],this['name']=_0x2c35e0['name'],this['initials']=_0x54c691?_0x54c691(this['name']):this['_computeInitials'](),this['avatar']=_0x2c35e0['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x3d530c=this['name']['split']('\x20')['filter'](_0x3dd9c2=>/^[\p{Letter}]/u['test'](_0x3dd9c2));return 0x1===_0x3d530c['length']?this['_getInitial'](_0x3d530c[0x0]):0x0===_0x3d530c['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x3d530c[0x0])+this['_getInitial'](_0x3d530c[_0x3d530c['length']-0x1]);}['_getInitial'](_0x2f1e55){return String['fromCodePoint'](_0x2f1e55['codePointAt'](0x0))['toUpperCase']();}}function U(_0x39af5b,_0x4284e9=''){return''==(_0x4284e9=_0x4284e9['trim']())?$(_0x39af5b,'Anonymous'):_0x4284e9;}class R{['_id'];constructor(_0x239388){this['_id']=_0x239388;}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))';}}class F extends _0x1f9af4{['name'];['notificationView'];constructor(_0x56d14c,_0xb4fe2d,_0x426555){super(_0x56d14c),this['name']=_0xb4fe2d['name'],this['notificationView']=null;const _0x4f43c2=['ck','ck-user'],_0x189358=['ck','ck-user__img'];if(_0xb4fe2d['isAnonymous']&&_0x189358['push']('ck-user__anonymous'),!_0xb4fe2d['isAnonymous']&&_0xb4fe2d['isMe']&&_0x4f43c2['push']('ck-user_me'),_0xb4fe2d['avatar']&&_0x189358['push']('ck-user__avatar'),_0x426555){const _0x4629ce=new _0x587dd0();_0x4629ce['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4629ce['content']=_0x5ea605,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x426555},'children':[_0x4629ce]};}const _0x488a96=[{'tag':'div','attributes':{'class':_0x189358,'style':{'background-image':_0xb4fe2d['avatar']?'url(\x27'+_0xb4fe2d['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0xb4fe2d['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0xb4fe2d['name']},'children':[{'text':_0xb4fe2d['initials']}]}];this['notificationView']&&_0x488a96['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x4f43c2,'data-user-id':_0xb4fe2d['id']},'children':_0x488a96});}}class H extends _0x1f9af4{['id'];constructor(_0x5a6fc2,_0x10e5af){super(_0x5a6fc2),this['id']='ck-aria-description-'+_0x52be7a(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x10e5af}]});}}class z extends _0x5332d6{['render'](){super['render'](),j(this);}}class W extends _0x135a86{['render'](){super['render'](),j(this);}}function j(_0x363486){_0x363486['listenTo'](_0x363486['element'],'mousedown',(_0x37d4c8,_0x38e1d6)=>{_0x38e1d6['stopPropagation'](),_0x38e1d6['preventDefault']();}),_0x363486['listenTo'](_0x363486['element'],'mouseup',()=>{_0x363486['element']['focus']();});}function Y(_0x34c064){const _0xa40d07=_0x34c064['split'](':');return{'group':_0xa40d07[0x0],'type':_0xa40d07[0x1],'subType':_0xa40d07['length']>=0x5?_0xa40d07[0x2]:null,'id':_0xa40d07['length']<0x5?_0xa40d07[0x2]:_0xa40d07[0x3],'authorId':_0xa40d07['length']<0x5?_0xa40d07[0x3]:_0xa40d07[0x4],'markerCount':0x6==_0xa40d07['length']?_0xa40d07[0x5]:null};}function J(_0x20baa6,_0x22bfee){const _0xadb885=_0x20baa6['end']['nodeBefore'];if(_0xadb885&&_0xadb885['is']('element')&&_0x22bfee['schema']['isBlock'](_0xadb885)&&!_0x22bfee['schema']['isObject'](_0xadb885)){const _0x689cbc=_0x22bfee['createPositionAt'](_0xadb885,'end');return _0x22bfee['createRange'](_0x20baa6['start'],_0x689cbc);}return _0x20baa6;}class K extends _0xebfaf0{['afterInit'](){const _0x218512=this['editor'];if(!_0x218512['plugins']['has']('AlignmentEditing'))return;_0x218512['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xebfaf0{['afterInit'](){const _0x37e441=this['editor'],_0x3e98aa=_0x37e441['plugins']['get']('SuggestionsConversion');for(const _0x950d4e of q){if(!_0x37e441['plugins']['has'](_0x950d4e))continue;const _0x39dacb=_0x950d4e['slice'](0x0,-0x7)['toLowerCase']();_0x3e98aa['registerInlineAttribute'](_0x39dacb);}}}class Z extends _0xebfaf0{['afterInit'](){const _0x5b11a4=this['editor'],_0x39a00a=_0x5b11a4['plugins']['get']('SuggestionsConversion');_0x5b11a4['plugins']['has']('BookmarkEditing')&&_0x39a00a['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xebfaf0{['afterInit'](){const _0x32cc58=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x2be40e,commandName:_0x40d7f1}of Q)this['editor']['plugins']['has'](_0x2be40e)&&_0x32cc58['registerInlineAttribute'](_0x40d7f1);}}class tt extends _0xebfaf0{['afterInit'](){const {editor:_0x107f19}=this;if(!_0x107f19['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x452cc5=_0x107f19['plugins']['get']('SuggestionsConversion');_0x452cc5['registerBlockAttribute']('footnotesListStyle'),_0x452cc5['registerBlockAttribute']('footnotesListStart');}}class et extends _0xebfaf0{['afterInit'](){const _0x59f59a=this['editor'];if(!_0x59f59a['plugins']['has']('HighlightEditing'))return;_0x59f59a['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0xebfaf0{['afterInit'](){const _0x14cde4=this['editor'];if(!_0x14cde4['plugins']['has']('HtmlEmbed'))return;_0x14cde4['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0xebfaf0{['afterInit'](){const _0x489b31=this['editor'];if(!_0x489b31['plugins']['has']('ImageEditing'))return;const _0x410946=_0x489b31['plugins']['get']('SuggestionsConversion');_0x410946['registerBlockAttribute']('src'),_0x489b31['plugins']['has']('ImageResize')&&_0x410946['registerBlockAttribute']('resizedWidth'),_0x489b31['plugins']['has']('ImageTextAlternativeEditing')&&_0x410946['registerBlockAttribute']('alt'),_0x489b31['plugins']['has']('PictureEditing')&&_0x410946['registerBlockAttribute']('sources'),_0x489b31['plugins']['has']('ImageSizeAttributes')&&(_0x410946['registerBlockAttribute']('width'),_0x410946['registerBlockAttribute']('height'));}}class nt extends _0xebfaf0{['afterInit'](){const _0x336b9b=this['editor'],_0x384076=_0x336b9b['plugins']['get']('SuggestionsConversion');_0x336b9b['plugins']['has']('IndentBlock')&&(_0x384076['registerBlockAttribute']('blockIndent'),_0x336b9b['plugins']['has']('ListEditing')&&(_0x384076['registerBlockAttribute']('blockIndentList'),_0x384076['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0xebfaf0{['afterInit'](){const _0x39be21=this['editor'];if(!_0x39be21['plugins']['has']('LineHeight'))return;_0x39be21['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0xebfaf0{['afterInit'](){const _0x10735e=this['editor'];if(!_0x10735e['plugins']['has']('LinkEditing'))return;const _0xe1864c=_0x10735e['plugins']['get']('SuggestionsConversion'),_0x5f078e=_0x10735e['commands']['get']('link');_0xe1864c['registerInlineAttribute']('linkHref');for(const _0x293d37 of _0x5f078e['manualDecorators'])_0xe1864c['registerInlineAttribute'](_0x293d37['id']);}}class at extends _0xebfaf0{['afterInit'](){const _0x2c9908=this['editor'];if(!_0x2c9908['plugins']['has']('ListEditing'))return;const _0x40127b=_0x2c9908['plugins']['get']('SuggestionsConversion'),_0x4405fa=_0x2c9908['plugins']['has']('TodoListEditing');_0x40127b['registerBlockAttribute']('listItemId'),_0x40127b['registerBlockAttribute']('listType'),_0x40127b['registerBlockAttribute']('listIndent'),_0x4405fa&&_0x40127b['registerBlockAttribute']('todoListChecked');}}class ct extends _0xebfaf0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x14b166=this['editor']['config']['get']('list.properties'),_0x288e11=this['editor']['plugins']['get']('SuggestionsConversion');_0x14b166['styles']&&_0x288e11['registerBlockAttribute']('listStyle'),_0x14b166['reversed']&&_0x288e11['registerBlockAttribute']('listReversed'),_0x14b166['startIndex']&&_0x288e11['registerBlockAttribute']('listStart');}}class lt extends _0xebfaf0{['afterInit'](){const _0x3ffa7e=this['editor'],_0x4c8ca1=_0x3ffa7e['plugins']['get']('SuggestionsConversion');_0x3ffa7e['plugins']['has']('MultiLevelList')&&_0x4c8ca1['registerBlockAttribute']('listMarkerStyle');}}class ut extends _0xebfaf0{['afterInit'](){const _0x39c422=this['editor'];if(!_0x39c422['plugins']['has']('Style')||!_0x39c422['plugins']['has']('DataSchema')||!_0x39c422['config']['get']('style.definitions'))return;const _0x2a3f8e=_0x39c422['plugins']['get']('SuggestionsConversion'),_0x386c74=_0x39c422['config']['get']('style.definitions'),_0xd79d91=_0x39c422['plugins']['get']('GeneralHtmlSupport'),_0x5ea3d1=_0x39c422['plugins']['get']('StyleUtils')['normalizeConfig'](_0x39c422['plugins']['get']('DataSchema'),_0x386c74),_0x5e48e8=new Set();for(const _0x2d7404 of _0x5ea3d1['block']){const _0x54c91a=_0xd79d91['getGhsAttributeNameForElement'](_0x2d7404['element']);_0x5e48e8['add'](_0x54c91a);}const _0x3cf10c=new Set();for(const _0x474bca of _0x5ea3d1['inline']){const _0x25ce93=_0xd79d91['getGhsAttributeNameForElement'](_0x474bca['element']);_0x3cf10c['add'](_0x25ce93);for(const _0x404e9e of _0x474bca['ghsAttributes'])_0x3cf10c['add'](_0x404e9e);}for(const _0x30a987 of _0x5e48e8)_0x2a3f8e['registerBlockAttribute'](_0x30a987);for(const _0x5220df of _0x3cf10c)_0x2a3f8e['registerInlineAttribute'](_0x5220df);}}class ht extends _0xebfaf0{['afterInit'](){const _0x531bc8=this['editor'];if(!_0x531bc8['plugins']['has']('TableEditing'))return;const _0x31728a=_0x531bc8['plugins']['get']('SuggestionsConversion');_0x31728a['registerBlockAttribute']('headingRows'),_0x31728a['registerBlockAttribute']('headingColumns');}}class dt extends _0xebfaf0{['afterInit'](){const {plugins:_0x565f61}=this['editor'];if(!_0x565f61['has']('TablePropertiesEditing'))return;const _0x5c1b7a=_0x565f61['get']('SuggestionsConversion'),_0x355ab3=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x1c2815 of _0x355ab3)_0x5c1b7a['registerBlockAttribute'](_0x1c2815);}}class ft extends _0xebfaf0{['afterInit'](){const _0x26a9a8=this['editor'],_0x45a60d=_0x26a9a8['plugins']['get']('SuggestionsConversion');_0x26a9a8['plugins']['has']('TableLayout')&&_0x45a60d['registerBlockAttribute']('tableType');}}class gt extends _0xebfaf0{['afterInit'](){const _0x4c9da7=this['editor'],_0x16f032=this['editor']['plugins']['get']('SuggestionsConversion');_0x4c9da7['plugins']['has']('Uploadcare')&&_0x4c9da7['plugins']['has']('UploadcareImageEdit')&&_0x16f032['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0xebfaf0{['afterInit'](){const _0x27b7e5=this['editor'];if(!_0x27b7e5['plugins']['has']('ShiftEnter'))return;const _0x1d56c1=_0x27b7e5['plugins']['get']('SuggestionsConversion'),_0x1661b0=(_0x571a8d,_0x1819a5,_0x207b4a,_0xd5f96a)=>{if(_0xd5f96a&&!_0x207b4a['options']['showSuggestionHighlights'])return;if(!_0x207b4a['consumable']['test'](_0x1819a5['markerRange'],_0x571a8d['name']))return;const _0x4bd3e7=_0x27b7e5['model'];for(const _0x23eee2 of _0x1819a5['markerRange']['getItems']()){if(!_0x23eee2['is']('element','softBreak'))continue;const _0x32e320='deletion'==_0x1819a5['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4f08ed,authorId:_0x1e26b3}=Y(_0x1819a5['markerName']),_0x4c3b5f=_0x207b4a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32e320,'data-suggestion':_0x4f08ed,'data-author-id':_0x1e26b3}),_0x473572=_0x207b4a['mapper']['toViewPosition'](_0x4bd3e7['createPositionBefore'](_0x23eee2));!_0xd5f96a&&_0x1d56c1['_activeMarkers']['includes'](_0x1819a5['markerName'])&&_0x207b4a['writer']['addClass']('ck-suggestion-marker--active',_0x4c3b5f),_0x207b4a['writer']['insert'](_0x473572,_0x4c3b5f),_0x207b4a['mapper']['bindElementToMarker'](_0x4c3b5f,_0x1819a5['markerName']);}};_0x27b7e5['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x475999,_0x5b431e,_0x148f24)=>{_0x1661b0(_0x475999,_0x5b431e,_0x148f24,!0x1);},{'priority':'high'}),_0x27b7e5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x535282,_0x1ca6b7,_0x45e22b)=>{_0x1661b0(_0x535282,_0x1ca6b7,_0x45e22b,!0x0);},{'priority':'high'});}}class kt extends _0xebfaf0{['afterInit'](){const _0xfda666=this['editor'];_0xfda666['plugins']['has']('MediaEmbedEditing')&&(_0xfda666['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x483ed6,{writer:_0x1d97b9,options:_0x2cdff2})=>{if(_0x2cdff2['showSuggestionHighlights'])return _0x1d97b9['createEmptyElement']('div');},'converterPriority':'high'}),_0xfda666['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3974ab,_0xfc1542,_0x44deeb)=>{_0x44deeb['options']['showSuggestionHighlights']&&_0x3974ab['stop']();},{'priority':'high'}));}}class pt extends _0xebfaf0{['afterInit'](){const _0x2a8486=this['editor'];if(!_0x2a8486['plugins']['has']('Table'))return;_0x2a8486['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18141f,_0x33ddad,_0x194ee2)=>{((_0x498768,_0x38a5e6,_0x3257c4)=>{if(!_0x3257c4['options']['showSuggestionHighlights'])return;const _0x4d9131=_0x38a5e6['item'];if(!_0x4d9131||!_0x4d9131['is']('element','tableCell'))return;const _0x1b2e55=_0x3257c4['mapper']['toViewElement'](_0x4d9131);if(_0x1b2e55){const {id:_0x26175e,authorId:_0xc392a0}=Y(_0x38a5e6['markerName']);_0x57e6ec(_0x1b2e55,_0x3257c4['writer'],(_0x24b71d,_0x2f1c6b,_0x3d3e66)=>{_0x3d3e66['addClass'](_0x219f88(_0x2f1c6b['classes']),_0x24b71d),_0x3d3e66['setAttribute']('data-suggestion',_0x26175e,_0x24b71d),_0x3d3e66['setAttribute']('data-author-id',_0xc392a0,_0x24b71d);});}})(0x0,_0x33ddad,_0x194ee2);},{'priority':'highest'});}}class yt extends _0xebfaf0{['afterInit'](){const _0x156898=this['editor'];_0x156898['plugins']['has']('HorizontalLineEditing')&&_0x156898['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x359cf8,{writer:_0x17b8aa,options:_0x4e8e12})=>{if(!_0x4e8e12['showSuggestionHighlights'])return null;const _0x34efe4=_0x17b8aa['createContainerElement']('div'),_0x27df87=_0x17b8aa['createEmptyElement']('hr');return _0x17b8aa['addClass']('ck-horizontal-line',_0x34efe4),_0x17b8aa['insert'](_0x17b8aa['createPositionAt'](_0x34efe4,0x0),_0x27df87),_0x34efe4;},'converterPriority':'high'});}}class wt extends _0xebfaf0{['afterInit'](){const {plugins:_0x384a95,model:_0x527483}=this['editor'];if(!_0x384a95['has']('TableCellPropertiesEditing'))return;const _0xaacd8e=_0x384a95['get']('SuggestionsConversion'),_0x1b9564=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x146a4d of _0x1b9564)_0xaacd8e['registerBlockAttribute'](_0x146a4d);_0x527483['schema']['checkAttribute']('tableCell','tableCellType')&&_0xaacd8e['registerBlockAttribute']('tableCellType');}}class bt extends _0xebfaf0{['afterInit'](){const _0x448ab2=this['editor'];if(!_0x448ab2['plugins']['has']('TableEditing')||!_0x448ab2['config']['get']('table.enableFooters'))return;_0x448ab2['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0xebfaf0{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[K,G,Z,X,tt,et,yt,st,it,nt,ot,rt,at,ct,kt,lt,mt,ut,pt,ht,bt,ft,wt,dt,gt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4903c3=this['editor'],_0x1d60fe=(_0x4e144e,_0x2789cf,_0x1a4b90)=>{const {id:_0x24da39,authorId:_0x758e74,type:_0x57655e,subType:_0x778239}=Y(_0x4e144e['markerName']),_0x11a8a4=['ck-suggestion-marker',this['_getClassName'](_0x57655e,_0x778239)];let _0x51659f=0xbb8;return!_0x1a4b90&&(this['_activeMarkers']['includes'](_0x4e144e['markerName'])&&(_0x11a8a4['push']('ck-suggestion-marker--active'),_0x51659f=0xbc2)),('deletion'==_0x57655e&&(_0x51659f+=0x5),{'classes':_0x11a8a4,'attributes':{'data-suggestion':_0x24da39,'data-author-id':_0x758e74},'priority':_0x51659f});};_0x4903c3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x295b50,_0x57f7aa)=>_0x1d60fe(_0x295b50,0x0,!0x1)}),_0x4903c3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x179e55,_0x578842)=>_0x1d60fe(_0x179e55,0x0,!0x0)}),_0x4903c3['conversion']['for']('dataDowncast')['add'](_0x21c021=>{_0x21c021['on']('addMarker:suggestion',(_0x3e0942,_0x17a691,_0x2218a4)=>{if(!_0x2218a4['options']['showSuggestionHighlights'])return;const _0x8b6ea4=_0x17a691['item'];if(!_0x8b6ea4)return;const _0x255ec5=_0x2218a4['mapper']['toViewElement'](_0x8b6ea4);_0x4903c3['model']['schema']['isObject'](_0x8b6ea4)&&_0x255ec5&&!_0x255ec5['getCustomProperty']('widget')&&_0x255ec5['is']('containerElement')&&_0x228ef9(_0x255ec5,_0x2218a4['writer']);},{'priority':'high'});});const _0x303f8d=(_0x5ede29,_0xded3a0,_0x3ee7fd,_0x3f691d,_0xe32fe3)=>{if(_0x3f691d&&!_0x3ee7fd['options']['showSuggestionHighlights'])return;if(!_0xded3a0['item'])return;const {id:_0x4dbe63,authorId:_0xb19343,subType:_0x4eaab1}=Y(_0xded3a0['markerName']);if(_0xe32fe3){const _0x3093f5=_0x4eaab1['split']('|')[0x0];if(!this['isBlockAttribute'](_0x3093f5))return;}if(_0xded3a0['item']['is']('selection'))return void _0x3ee7fd['consumable']['consume'](_0xded3a0['item'],_0x5ede29['name']);const _0x5cc92f=_0x3ee7fd['mapper']['toViewElement'](_0xded3a0['item']);if(_0xded3a0['item']['is']('element')&&_0x4903c3['model']['schema']['isBlock'](_0xded3a0['item'])&&!_0x5cc92f['getCustomProperty']('addHighlight')){_0x3ee7fd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5cc92f),_0x3ee7fd['writer']['setAttribute']('data-suggestion',_0x4dbe63,_0x5cc92f),_0x3ee7fd['writer']['setAttribute']('data-author-id',_0xb19343,_0x5cc92f),_0x3ee7fd['mapper']['bindElementToMarker'](_0x5cc92f,_0xded3a0['markerName']),_0x3f691d||(this['_activeMarkers']['includes'](_0xded3a0['markerName'])?_0x3ee7fd['writer']['addClass']('ck-suggestion-marker--active',_0x5cc92f):_0x3ee7fd['writer']['removeClass']('ck-suggestion-marker--active',_0x5cc92f));for(const _0x3697b0 of _0x4903c3['model']['createRangeIn'](_0xded3a0['item'])['getItems']())_0x3ee7fd['consumable']['consume'](_0x3697b0,_0x5ede29['name']);_0x3ee7fd['consumable']['consume'](_0xded3a0['item'],_0x5ede29['name']);}},_0x81ea78=(_0x25420c,_0x230375,_0xb10043,_0x55d98a)=>{const _0x5d96d1=_0xb10043['mapper']['markerNameToElements'](_0x230375['markerName']);if(_0x5d96d1){if(_0x55d98a){const {subType:_0x57cf41}=Y(_0x230375['markerName']),_0x3ef8ae=_0x57cf41['split']('|')[0x0];if(!this['isBlockAttribute'](_0x3ef8ae))return;}for(const _0x2b30ea of _0x5d96d1)_0x2b30ea['getCustomProperty']('addHighlight')||(_0xb10043['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b30ea),_0xb10043['writer']['removeAttribute']('data-suggestion',_0x2b30ea),_0xb10043['writer']['removeAttribute']('data-author-id',_0x2b30ea),_0xb10043['mapper']['unbindElementFromMarkerName'](_0x2b30ea,_0x230375['markerName']));}};_0x4903c3['conversion']['for']('editingDowncast')['add'](_0x3686bc=>{_0x3686bc['on']('addMarker:suggestion:formatBlock',(_0x265a07,_0xd1b71a,_0xa77d5f)=>{_0x303f8d(_0x265a07,_0xd1b71a,_0xa77d5f,!0x1,!0x1);},{'priority':'high'});}),_0x4903c3['conversion']['for']('editingDowncast')['add'](_0x221cfa=>{_0x221cfa['on']('addMarker:suggestion:attribute',(_0x2ba28a,_0x5f0d36,_0x4bb0c6)=>{_0x303f8d(_0x2ba28a,_0x5f0d36,_0x4bb0c6,!0x1,!0x0);},{'priority':'high'});}),_0x4903c3['conversion']['for']('editingDowncast')['add'](_0x1c74c5=>{_0x1c74c5['on']('removeMarker:suggestion:formatBlock',(_0x305942,_0x3083fb,_0x1304ff)=>{_0x81ea78(0x0,_0x3083fb,_0x1304ff,!0x1);},{'priority':'high'});}),_0x4903c3['conversion']['for']('editingDowncast')['add'](_0x51014f=>{_0x51014f['on']('removeMarker:suggestion:attribute',(_0x12035f,_0x4e70ba,_0x5bd525)=>{_0x81ea78(0x0,_0x4e70ba,_0x5bd525,!0x0);},{'priority':'high'});}),_0x4903c3['conversion']['for']('dataDowncast')['add'](_0x5b6fb1=>{_0x5b6fb1['on']('addMarker:suggestion:formatBlock',(_0x13380c,_0x44b6dc,_0x262364)=>{_0x303f8d(_0x13380c,_0x44b6dc,_0x262364,!0x0,!0x1);},{'priority':'highest'});}),_0x4903c3['conversion']['for']('dataDowncast')['add'](_0x183eb4=>{_0x183eb4['on']('addMarker:suggestion:attribute',(_0xc42f56,_0x17b400,_0x14580b)=>{_0x303f8d(_0xc42f56,_0x17b400,_0x14580b,!0x0,!0x0);},{'priority':'highest'});}),_0x4903c3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x6367e3,_0x344b35)=>_0x344b35['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x6367e3['substr'](0xb)}});const _0x11451f=(_0xa06eaa,_0x2f103a,_0x281848,_0x4b8174,_0x1dae0a)=>{if(_0x4b8174&&!_0x281848['options']['showSuggestionHighlights'])return;if(!_0x281848['consumable']['test'](_0x2f103a['markerRange'],_0xa06eaa['name']))return;const _0x5724e3=this['_activeMarkers'],_0x39a4ec=_0x2f103a['markerRange']['getWalker'](),_0x3e4f9c=_0x2f103a['markerRange']['start'],_0x54c186=_0x4903c3['model']['schema'];let _0x58a261=null,_0x2e2971=null,_0x1b0b01=!0x1,_0x38ba58=!0x1;for(const _0x215a68 of _0x39a4ec){const _0x1bedd7=_0x215a68['item'];_0x1b0b01=_0x1b0b01||_0x54c186['isContent'](_0x1bedd7);const _0x1cbd0b=_0x281848['mapper']['toViewElement'](_0x1bedd7);if(_0x1cbd0b&&_0x1cbd0b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x215a68['type']&&(_0x54c186['isBlock'](_0x1bedd7)&&!_0x54c186['isLimit'](_0x1bedd7)&&(_0x1bedd7['nextSibling']||_0x3e4f9c['isAtEnd']?_0x58a261&&_0x58a261['parent']==_0x1bedd7||(_0x58a261=_0x1bedd7,_0x400159(_0x215a68['previousPosition']),_0x38ba58=!0x0):_0x2e2971=_0x2e2971||_0x215a68['previousPosition']));}function _0x400159(_0x5e296e){const {id:_0x3c2b24,authorId:_0x1d47da}=Y(_0x2f103a['markerName']),_0x2854fc=_0x281848['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1dae0a,'data-suggestion':_0x3c2b24,'data-author-id':_0x1d47da}),_0x15e35d=_0x281848['mapper']['toViewPosition'](_0x5e296e);!_0x4b8174&&_0x5724e3['includes'](_0x2f103a['markerName'])&&_0x281848['writer']['addClass']('ck-suggestion-marker--active',_0x2854fc),_0x281848['writer']['insert'](_0x15e35d,_0x2854fc),_0x281848['mapper']['bindElementToMarker'](_0x2854fc,_0x2f103a['markerName']);}_0x1b0b01||_0x38ba58||!_0x2e2971||_0x400159(_0x2e2971);};_0x4903c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x486dee,_0x4382d0,_0x275318)=>{_0x11451f(_0x486dee,_0x4382d0,_0x275318,!0x1,'merge');},{'priority':'high'}),_0x4903c3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x425f36,_0x18fa07,_0x38cb9b)=>{_0x11451f(_0x425f36,_0x18fa07,_0x38cb9b,!0x0,'merge');},{'priority':'high'}),_0x4903c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f9db5,_0x5006ee,_0x3557d9)=>{_0x11451f(_0x3f9db5,_0x5006ee,_0x3557d9,!0x1,'split');},{'priority':'high'}),_0x4903c3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa23c4d,_0x28f74c,_0x1b8dfe)=>{_0x11451f(_0xa23c4d,_0x28f74c,_0x1b8dfe,!0x0,'split');},{'priority':'high'}),_0x4903c3['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1924c7,_0x4c2d8c,_0x5519b2)=>{((_0x414759,_0x41f783,_0x43652e)=>{const _0x5e0171=_0x43652e['mapper']['markerNameToElements'](_0x41f783['markerName']);if(_0x5e0171){for(const _0x446f53 of _0x5e0171)(_0x446f53['hasClass']('ck-suggestion-marker-split')||_0x446f53['hasClass']('ck-suggestion-marker-merge'))&&(_0x43652e['mapper']['unbindElementFromMarkerName'](_0x446f53,_0x41f783['markerName']),_0x43652e['writer']['remove'](_0x446f53));}})(0x0,_0x4c2d8c,_0x5519b2);},{'priority':'high'});const _0x11e48b=(_0x3ce276,_0x517527,_0x54ab1a,_0x5cd697)=>{if(_0x5cd697&&!_0x54ab1a['options']['showSuggestionHighlights'])return;const _0x33a267=_0x517527['markerRange']['start'],_0xfa8d60=_0x517527['markerRange']['end'],_0x20fd8d=_0x4903c3['model']['schema'];if(!_0x33a267['isTouching'](_0xfa8d60)||!_0x33a267['nodeAfter'])return;const _0x40b1e5=_0x33a267['nodeAfter'];if(_0x20fd8d['isBlock'](_0x40b1e5)&&!_0x20fd8d['isLimit'](_0x40b1e5)&&_0x20fd8d['checkChild'](_0x40b1e5,'$text')){if(!_0x54ab1a['consumable']['consume'](_0x517527['markerRange'],_0x3ce276['name']))return;const {id:_0x1aea1f,authorId:_0x5d6aaa}=Y(_0x517527['markerName']),_0x245eaf=_0x54ab1a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1aea1f,'data-author-id':_0x5d6aaa}),_0x3cc426=_0x54ab1a['mapper']['toViewPosition'](_0xfa8d60);!_0x5cd697&&this['_activeMarkers']['includes'](_0x517527['markerName'])&&_0x54ab1a['writer']['addClass']('ck-suggestion-marker--active',_0x245eaf),_0x54ab1a['writer']['insert'](_0x3cc426,_0x245eaf),_0x54ab1a['mapper']['bindElementToMarker'](_0x245eaf,_0x517527['markerName']);}};_0x4903c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x21f245,_0xb29f84,_0x35cecc)=>{_0x11e48b(_0x21f245,_0xb29f84,_0x35cecc,!0x1);},{'priority':'high'}),_0x4903c3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c0ec2,_0x5f476b,_0x1858b5)=>{_0x11e48b(_0x3c0ec2,_0x5f476b,_0x1858b5,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x31085a,_0x3e8b21,_0x38418a)=>{this['_activeMarkers']=_0x38418a['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x36f5ed){this['_blockAttributeKeys']['add'](_0x36f5ed);}['registerInlineAttribute'](_0x577137){this['_inlineAttributeKeys']['add'](_0x577137);}['isBlockAttribute'](_0x241d9d){return this['_blockAttributeKeys']['has'](_0x241d9d);}['isInlineAttribute'](_0x5523e9){return this['_inlineAttributeKeys']['has'](_0x5523e9);}['isRegisteredAttribute'](_0x2bd944){return this['isInlineAttribute'](_0x2bd944)||this['isBlockAttribute'](_0x2bd944);}['_getClassName'](_0x43b58d,_0x467bf2){if('attribute'!=_0x43b58d)return'ck-suggestion-marker-'+_0x43b58d;const _0x2881b3=_0x467bf2['split']('|')[0x0];return this['isBlockAttribute'](_0x2881b3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x2cee95={},_0x398c58){if(void 0x0!==_0x2cee95['dateTimeFormat']&&'function'!=typeof _0x2cee95['dateTimeFormat'])throw new _0x2f307b('invalid-date-time-format');return _0x3f723f=>{const _0x21b0df='string'==typeof _0x3f723f?_0xaf8651['fromISO'](_0x3f723f):_0xaf8651['fromJSDate'](_0x3f723f),_0x3b07b8=_0xaf8651['now'](),_0x6d600e=Math['floor'](_0x3b07b8['diff'](_0x21b0df,'days')['days']);return _0x2cee95['dateTimeFormat']?_0x2cee95['dateTimeFormat'](_0x21b0df['toJSDate'](),_0x398c58&&_0x398c58['t']?_0x398c58['t']:void 0x0):0x0===_0x6d600e?_0x398c58?$(_0x398c58,'Today')+'\x20'+_0x21b0df['toFormat']('hh:mma'):_0x21b0df['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x6d600e?_0x398c58?$(_0x398c58,'Yesterday')+'\x20'+_0x21b0df['toFormat']('hh:mma'):_0x21b0df['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x6d600e<0x7?_0x398c58?$(_0x398c58,'Last')+'\x20'+$(_0x398c58,_0x21b0df['toFormat']('EEEE'))+'\x20'+_0x21b0df['toFormat']('hh:mma'):_0x21b0df['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x21b0df['toFormat']('LL-dd-yyyy\x20hh:mma');};}function xt(_0x20d167,_0x33b1d2){const _0x55f605=_0x20d167['mapper']['markerNameToElements'](_0x33b1d2['name']);if(!_0x55f605)return null;const _0x4ceafe=_0x589403(_0x55f605['values']());return _0x20d167['view']['domConverter']['mapViewToDom'](_0x4ceafe)||null;}function It(_0x1fcb0e,_0xded020){if(0x0===_0xded020['length'])return null;const _0x2d0497=[],_0x5b2128=_0x1fcb0e['view']['domConverter'];for(const _0x51a669 of _0xded020){const _0x5c9f55=_0x1fcb0e['mapper']['markerNameToElements'](_0x51a669['name']);if(!_0x5c9f55)continue;const _0x17dbbe=Array['from'](_0x5c9f55)['map'](_0x4a3967=>_0x5b2128['mapViewToDom'](_0x4a3967))['filter'](_0x3f3818=>!!_0x3f3818);_0x2d0497['push'](..._0x17dbbe);}if(0x0===_0x2d0497['length'])return null;const _0x7822d2=[];for(const _0x2acae6 of _0x2d0497){const _0x32e7e7=_0x2acae6['getClientRects']()['item'](0x0);_0x32e7e7&&_0x7822d2['push']({'x':_0x32e7e7['x'],'y':_0x32e7e7['y'],'domElement':_0x2acae6});}return 0x0===_0x7822d2['length']?null:(_0x7822d2['sort']((_0x166aed,_0x1a9eb2)=>_0x166aed['y']-_0x1a9eb2['y']||_0x166aed['x']-_0x1a9eb2['x']),_0x7822d2['map'](_0x47cb98=>_0x47cb98['domElement']));}function _t(_0x8aac4e,{limit:_0x5836a5,suffix:_0x5e0fce='...'}){const _0x379b5a=[];let _0x1f57bb=0x0;const _0x51b394=_0x8aac4e['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0xa52027=0x0;_0xa52027<_0x51b394['length'];_0xa52027++){let _0x3d6665=_0x51b394[_0xa52027];const _0x489593=St(_0x3d6665);if(_0x3d6665['startsWith']('<')){if(_0x1f57bb>=_0x5836a5){const _0x4031a0=_0x3d6665['match'](/[a-zA-Z]+/);if(!_0x4031a0){_0x51b394[_0xa52027]='';continue;}const _0xaeebaf=_0x4031a0[0x0];_0x3d6665['startsWith']('</')?(_0x379b5a['length']&&(_0x3d6665=''),_0x379b5a['pop']()):(_0x379b5a['push'](_0xaeebaf),_0x3d6665='');}}else{if(_0x1f57bb>=_0x5836a5)_0x3d6665='';else{if(_0x1f57bb+_0x489593['length']>=_0x5836a5){let _0xe6fdf0=_0x5836a5-_0x1f57bb;if('\x20'===_0x489593[_0xe6fdf0-0x1])_0xe6fdf0--;else{const _0x45059c=_0x489593['slice'](_0xe6fdf0)['indexOf']('\x20');-0x1!==_0x45059c?_0xe6fdf0+=_0x45059c:_0xe6fdf0=_0x3d6665['length'];}_0x3d6665=_0x489593['slice'](0x0,_0xe6fdf0)['join']('')+_0x5e0fce,_0x1f57bb=_0x5836a5;}else _0x1f57bb+=_0x489593['length'];}}_0x51b394[_0xa52027]=_0x3d6665;}return _0x51b394['join']('\x0a')['replace'](/\n/g,'');}function St(_0x1bd409){const _0x3b8ffa=[];for(let _0x2c72fd=0x0;_0x2c72fd<_0x1bd409['length'];_0x2c72fd++){const _0x3b2a27=_0x1bd409['substring'](_0x2c72fd)['match'](/^&[a-z0-9#]+;/);if(_0x3b2a27){const _0x4424f9=_0x3b2a27[0x0];_0x3b8ffa['push'](_0x4424f9),_0x2c72fd+=_0x4424f9['length']-0x1;}else _0x3b8ffa['push'](_0x1bd409[_0x2c72fd]);}return _0x3b8ffa;}class Et extends _0x1f9af4{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x2431c8){super(_0x2431c8);const _0x3e0024=this['bindTemplate'];this['set']('message',$(_0x2431c8,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x2431c8,$(_0x2431c8,'Yes'),_0x23ae13,'submit'),this['cancelView']=this['_createButtonView'](_0x2431c8,$(_0x2431c8,'No'),_0x1b7d9b,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x4418a9(),this['keystrokes']=new _0x5b5b57(),this['focusCycler']=new _0x2a7668({'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':_0x3e0024['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'](_0xc54a06,_0x1d9d97,_0x34fe34,_0x17093f){const _0x28071d=new _0x5332d6(_0xc54a06);return _0x28071d['label']=_0x1d9d97,_0x28071d['icon']=_0x34fe34,_0x28071d['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x17093f}}),_0x28071d['on']('execute',()=>this['fire'](_0x17093f)),_0x28071d;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x1720ab=>{this['keystrokes']['listenTo'](_0x1720ab['element']),this['focusTracker']['add'](_0x1720ab['element']);}),this['keystrokes']['set']('esc',(_0x359de1,_0x274286)=>{this['fire']('cancel'),_0x274286();});}}function At(_0x4f872b){return class extends _0x4f872b{['showConfirm'](_0x34f2aa,_0x57f523){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x34f2aa,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x57f523['appendChild'](this['confirmView']['element']),_0x57f523['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x37de23,_0x42721b,_0x12a8c0)=>{_0x12a8c0||_0x57f523['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x18903c=>this['confirmView']['on']('submit',_0x18903c));}['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 Mt(_0x228816){let _0x9d88b0=0x0,_0xa73d44=0x0;for(const _0x478d54 of Nt(_0x228816))_0x9d88b0=(_0x9d88b0<<0x5)-_0x9d88b0+_0x478d54,_0x9d88b0&=_0x9d88b0,[_0x9d88b0,_0xa73d44]=[_0xa73d44,_0x9d88b0];return Ot(_0x9d88b0)+Ot(_0xa73d44);}function*Tt(_0xb1b1d1){null==_0xb1b1d1||null==_0xb1b1d1?yield 0x12b9b0a1:0x0===_0xb1b1d1||!0x1===_0xb1b1d1?yield 0x0:0x1===_0xb1b1d1||0x1==_0xb1b1d1?yield 0x1:Array['isArray'](_0xb1b1d1)?yield*function*(_0x50370f){for(const _0x482acf of _0x50370f)yield*Tt(_0x482acf);}(_0xb1b1d1):'object'==typeof _0xb1b1d1?yield*Nt(_0xb1b1d1):'string'==typeof _0xb1b1d1?yield*Pt(_0xb1b1d1):'number'==typeof _0xb1b1d1&&(yield _0xb1b1d1);}function*Nt(_0x173912){if(yield Bt('{'),_0x173912){const _0x329020=Object['keys'](_0x173912)['sort']();for(const _0x371077 of _0x329020){yield*Pt(_0x371077),yield Bt(':');const _0x1d6c4a=_0x173912[_0x371077];yield*Tt(_0x1d6c4a);}}yield Bt('}');}function*Pt(_0xd6e7a9){yield Bt('\x22');for(const _0x1e03ae of _0xd6e7a9)yield Bt(_0x1e03ae);yield Bt('\x22');}function Bt(_0x4214f6){return _0x4214f6['charCodeAt'](0x0);}function Ot(_0xd4f2c5){return(_0xd4f2c5*=Math['sign'](_0xd4f2c5))['toString'](0x24);}const Dt=['root','roots','initialData','context','toolbar','rootsAttributes'],$t=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Lt(_0x2b40d3,_0x5f186f,_0x546d2e,_0x4511b4=[]){const _0xc7080a='string'==typeof _0x2b40d3?_0x546d2e['get'](_0x2b40d3)['constructor']:_0x2b40d3['prototype']['constructor'];if(_0x5f186f['has'](_0xc7080a))return _0x5f186f['get'](_0xc7080a);_0x5f186f['set'](_0xc7080a,!0x0);const _0x4473ef=[...$t,..._0x4511b4]['map'](_0x3e5b7c=>{if(_0x546d2e['has'](_0x3e5b7c))return _0x546d2e['get'](_0x3e5b7c)['constructor'];})['filter'](_0x2836e3=>_0x2836e3);if(_0xc7080a&&_0x4473ef['includes'](_0xc7080a))return _0x5f186f['set'](_0xc7080a,!0x1),!0x1;if(!_0xc7080a['requires'])return _0x5f186f['set'](_0xc7080a,!0x0),!0x0;const _0x476bec=_0xc7080a['requires']['every'](_0x4abd1b=>Lt(_0x4abd1b,_0x5f186f,_0x546d2e,_0x4511b4));return _0x5f186f['set'](_0xc7080a,_0x476bec),_0x476bec;}function Vt(_0x20af7a,_0x45a576){const _0x152aa5={};for(const _0x42710e of _0x20af7a['config']['names']())Dt['includes'](_0x42710e)||(_0x152aa5[_0x42710e]=_0x20af7a['config']['get'](_0x42710e));const _0x85a7ed=_0x152aa5['plugins']||[],_0x1299b8=_0x20af7a['constructor']['builtinPlugins']||[],_0x22b345=_0x85a7ed['length']?_0x85a7ed:_0x1299b8,_0xe3a7c2=_0x152aa5['extraPlugins']||[];delete _0x152aa5['extraPlugins'];const _0x5f4953=_0x152aa5['removePlugins']||[];delete _0x152aa5['removePlugins'];const _0x1ec05b=_0x20af7a['_context']['config']['get']('plugins')||[],_0x2b3815=_0x22b345['concat'](_0xe3a7c2)['concat'](_0x1ec05b)['map'](_0x5b01e2=>'string'==typeof _0x5b01e2?_0x1299b8['find'](_0xe156e2=>_0xe156e2['pluginName']==_0x5b01e2):_0x5b01e2)['filter'](_0x271154=>!_0x5f4953['includes'](_0x271154)&&!_0x5f4953['includes'](_0x271154['pluginName'])),_0x2a7d98=Array['from'](new Set(_0x2b3815)),_0x13e1fe=new Map();return _0x152aa5['plugins']=_0x2a7d98['filter'](_0xa925ef=>Lt(_0xa925ef,_0x13e1fe,_0x20af7a['plugins'],_0x45a576)),_0x152aa5;}function Ut(_0x166c05,_0x4b8de2){const _0x2e9e77=[];_0x166c05['document']['selection']['on']('change:range',()=>{const _0x251d17=function(_0x553de2,_0x1ecca7){const _0x257ce9=[];for(const _0xdc12e2 of _0x553de2['markers']){const _0x592228=_0xdc12e2['getRange']();(_0x592228['containsPosition'](_0x1ecca7)||_0x592228['start']['isEqual'](_0x1ecca7)||_0x592228['end']['isEqual'](_0x1ecca7))&&_0x257ce9['push'](_0xdc12e2);}return _0x257ce9;}(_0x166c05,_0x166c05['document']['selection']['focus']),_0x1183fa=[],_0x1083e9=[],_0x40bd0d=[];for(const _0x16c801 of _0x2e9e77)_0x251d17['includes'](_0x16c801)||_0x1183fa['push'](_0x16c801);for(const _0x3103e7 of _0x251d17)_0x2e9e77['includes'](_0x3103e7)||_0x1083e9['push'](_0x3103e7),_0x40bd0d['push'](_0x3103e7);(_0x1183fa['length']||_0x1083e9['length'])&&_0x4b8de2({'left':_0x1183fa,'entered':_0x1083e9}),_0x2e9e77['length']=0x0,_0x2e9e77['push'](..._0x40bd0d);});}const Rt='Ctrl+Shift+E';function Ft(_0x31510e,_0x3801e1){const _0x32b810=_0x31510e['element'];_0x31510e['keystrokes']['listenTo'](_0x32b810);for(const _0x5c8467 of _0x3801e1)Ht(_0x31510e,_0x5c8467);_0x3801e1['on']('change',(_0x3dd76d,_0x3652ef)=>{for(const _0x3797ea of _0x3652ef['removed'])zt(_0x31510e,_0x3797ea);for(const _0x1014d2 of Array['from'](_0x3652ef['added'])['reverse']())Ht(_0x31510e,_0x1014d2);}),_0x31510e['keystrokes']['set']('enter',(_0x31905b,_0x1d2069)=>{_0x32b810===_0x31905b['target']&&(_0x31510e['focusCycler']['focusFirst'](),_0x1d2069());},{'filter':_0x17580a=>_0x17580a['target']===_0x32b810}),_0x31510e['keystrokes']['set']('esc',(_0x2c8a47,_0x196a99)=>{_0x32b810!==_0x2c8a47['target']?_0x31510e['focus']():_0x31510e['fire']('escape'),_0x196a99();}),_0x31510e['keystrokes']['set']('arrowdown',(_0x13630e,_0x1c730f)=>{_0x32b810===_0x13630e['target']&&(_0x31510e['fire']('arrowdown'),_0x1c730f());}),_0x31510e['keystrokes']['set']('arrowup',(_0x223b43,_0x40b5c5)=>{_0x32b810===_0x223b43['target']&&(_0x31510e['fire']('arrowup'),_0x40b5c5());});}function Ht(_0x31f214,_0x94b7ac){_0x94b7ac['isRendered']&&(_0x31f214['focusTracker']['add'](_0x94b7ac['element']),_0x31f214['keystrokes']['listenTo'](_0x94b7ac['element']),_0x12dcb8(_0x94b7ac)&&function(_0x212d30,_0x5b821c){const _0x1fc03a=_0x212d30['actions'],_0x1b5628=_0x5b821c['actions'];for(const _0x29b6da of Object['keys'](_0x1fc03a))if(_0x29b6da in _0x1b5628&&_0x1fc03a[_0x29b6da]!==_0x1b5628[_0x29b6da])return!0x1;return!0x0;}(_0x31f214['focusCycler'],_0x94b7ac['focusCycler'])&&_0x31f214['focusCycler']['chain'](_0x94b7ac['focusCycler']));}function zt(_0x538ae9,_0x2b662d){_0x538ae9['focusTracker']['remove'](_0x2b662d['element']),_0x538ae9['keystrokes']['stopListening'](_0x2b662d['element']),_0x12dcb8(_0x2b662d)&&_0x538ae9['focusCycler']['unchain'](_0x2b662d['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x75a6b7{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x40fc69?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x6d90b5,_0x1afaa6)=>{_0x1afaa6['on']('ready',()=>{this['_integrateEditor'](_0x1afaa6);});});}get['editor'](){if(this['context']instanceof _0x40fc69)return this['context'];{const _0x183788=this['context']['editors']['first'];if(!_0x183788)throw new _0x2f307b('documentcompare-no-editor',this);return _0x183788;}}['getDiff'](_0x2f7d72,_0x255c8c,_0xffcc68={'anchor':'main','markDeletions':!0x1}){let _0x3f9f8b,_0x4f38bd;const _0x1de970=this['editor'];if('string'==typeof _0xffcc68['anchor']){const _0x4d686b=_0x1de970['model']['document']['getRoot'](_0xffcc68['anchor']);if(!_0x4d686b)throw new _0x2f307b('documentcompare-compare-no-root',this,{'anchor':_0xffcc68['anchor']});_0x3f9f8b=_0x4d686b,_0x4f38bd=_0x1de970['model']['createPositionAt'](_0x4d686b,0x0);}else _0x3f9f8b=_0xffcc68['anchor']['clone'](),_0x4f38bd=_0xffcc68['anchor']['clone']();const _0x2b1c4c=_0x1de970['data']['parse'](_0x2f7d72,_0x3f9f8b),_0x2e2995=_0x1de970['data']['parse'](_0x255c8c,_0x3f9f8b);return new Jt(_0x2b1c4c,_0x2e2995,_0x1de970,{'anchor':_0x4f38bd,'markDeletions':_0xffcc68['markDeletions']});}['isMarkedRemoveOperation'](_0x59ecc9){return'marker'==_0x59ecc9['type']&&_0x59ecc9['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x1cca2f){_0x1cca2f['conversion']['for']('upcast')['add'](_0x14d58e=>{_0x14d58e['on']('element',(_0x111c48,_0x25d123,_0x21422f)=>{if(_0x25d123['modelRange'])for(const _0xcc4240 of _0x25d123['modelRange']['getItems']({'shallow':!0x0})){if(_0xcc4240['is']('$textProxy'))continue;const _0x29b871=_0x25d123['viewItem']['getAttribute'](jt);_0x29b871&&_0x21422f['writer']['setAttribute'](Wt,_0x29b871,_0xcc4240);}},{'priority':'lowest'});}),_0x1cca2f['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x100d7b,_0x469bf6,_0xc793be,_0x1ce818){this['_editor']=_0xc793be,this['_markDeletions']=!!_0x1ce818['markDeletions'],this['_anchor']=_0x1ce818['anchor'];const _0x278cf8=this['_tokenizeModel'](_0x100d7b),_0x210be0=this['_tokenizeModel'](_0x469bf6);this['_diffItems']=this['_diffModelTokens'](_0x278cf8,_0x210be0),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x100d7b['markers'],_0x469bf6['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x446d90=this['_editor']['model']['document'],_0x2f37c4=[];let _0xe3ebc6=_0x446d90['version'];for(const _0x189f97 of this['_operationsData'])switch(_0x189f97['type']){case'attribute':{const _0x3872b3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['path']),_0x1b5a3d=_0x3872b3['getShiftedBy'](_0x189f97['howMany']),_0x3e2de9=new _0x3a005a(_0x3872b3,_0x1b5a3d),_0x402182=JSON['parse'](_0x189f97['oldValue']),_0x416640=JSON['parse'](_0x189f97['newValue']);_0x2f37c4['push'](new _0x4408ce(_0x3e2de9,_0x189f97['key'],_0x402182,_0x416640,_0xe3ebc6++));break;}case'insert':{const _0x3fe90c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['path']),_0xfd93fd=this['_makeModelFromTokens'](_0x189f97['tokens']);_0x2f37c4['push'](new _0x1ce4bd(_0x3fe90c,_0xfd93fd,_0xe3ebc6++));break;}case'remove':{const _0x4bffbd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['path']),_0x5c61a4=new _0x26d7d9(_0x446d90['graveyard'],[0x0]);_0x2f37c4['push'](new _0x3ea2e2(_0x4bffbd,_0x189f97['howMany'],_0x5c61a4,_0xe3ebc6++));break;}case'rename':{const _0x2ae42b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['path']);_0x2f37c4['push'](new _0x2e846f(_0x2ae42b,_0x189f97['oldName'],_0x189f97['newName'],_0xe3ebc6++));break;}case'split':{const _0xb03570=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['path']),_0x2a68ac=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['path']['slice'](0x0,-0x1));_0x2a68ac['offset']++,_0x2f37c4['push'](new _0x626496(_0xb03570,Number['NEGATIVE_INFINITY'],_0x2a68ac,null,_0xe3ebc6++));break;}case'merge':{const _0x2e793a=_0x189f97['path']['slice'](),_0x345530=_0x2e793a['slice'](0x0,-0x1);_0x345530[_0x345530['length']-0x1]++,_0x345530['push'](0x0);const _0x4f7fb7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x345530),_0x231c9b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2e793a),_0x30fd16=new _0x26d7d9(_0x446d90['graveyard'],[0x0]);_0x2f37c4['push'](new _0x3df2c0(_0x4f7fb7,Number['NEGATIVE_INFINITY'],_0x231c9b,_0x30fd16,_0xe3ebc6++));break;}case'marker':case'markedRemove':{let _0x1e42a8=null;if(_0x189f97['range']){const _0xf71fb3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['range']['start']),_0x54e883=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['range']['end']);_0x1e42a8=new _0x3a005a(_0xf71fb3,_0x54e883);}const _0x2aee34='marker'==_0x189f97['type']?_0x189f97['name']:'$markedRemove:'+_0x52be7a();_0x2f37c4['push'](new _0x455d9d(_0x2aee34,null,_0x1e42a8,_0x446d90['model']['markers'],!0x0,_0xe3ebc6++));break;}case'unwrap':{const _0x4823cf=_0x189f97['path']['slice']();_0x4823cf['push'](0x0);const _0x3de495=_0x189f97['path']['slice'](),_0x4ffab7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4823cf),_0x1c5fa6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3de495),_0x25afbe=new _0x26d7d9(_0x446d90['graveyard'],[0x0]);_0x2f37c4['push'](new _0x3ea2e2(_0x4ffab7,_0x189f97['howMany'],_0x1c5fa6,_0xe3ebc6++)),_0x2f37c4['push'](new _0x3ea2e2(_0x1c5fa6['getShiftedBy'](_0x189f97['howMany']),0x1,_0x25afbe,_0xe3ebc6++));break;}case'wrap':{const _0x1d4c22=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['range']['start']),_0x1e8a41=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x189f97['range']['end']),_0x1e7d18=_0x189f97['token']['element']['_clone'](!0x1),_0x397091=_0x189f97['range']['end']['slice']();_0x397091['push'](0x0);const _0x3a2fd9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x397091);_0x2f37c4['push'](new _0x1ce4bd(_0x1e8a41,_0x1e7d18,_0xe3ebc6++)),_0x2f37c4['push'](new _0x3ea2e2(_0x1d4c22,_0x1e8a41['offset']-_0x1d4c22['offset'],_0x3a2fd9,_0xe3ebc6++));break;}}return _0x2f37c4;}['_tokenizeModel'](_0x442e01){const _0x5dd833=[],_0x2fa18d=_0x3a005a['_createIn'](_0x442e01),_0x2d3da2=new _0x7df929({'boundaries':_0x2fa18d});let _0x52e3f5='',_0x2eaa66=null;const _0x4c6955=[''],_0x89394=new Map();for(const _0x38cd4f of _0x2d3da2)if('elementStart'==_0x38cd4f['type']||'elementEnd'==_0x38cd4f['type']){let _0x3f9b80=_0x4c6955[0x0];''!==_0x52e3f5&&(_0x5dd833['push'](...this['_makeTokensFromTextByWords'](_0x52e3f5,_0x2eaa66,_0x3f9b80)),_0x52e3f5='');const _0x1a07cc=_0x38cd4f['item'];let _0x3bafb0;_0x1a07cc['getAttribute'](Wt)?_0x3bafb0=_0x1a07cc['getAttribute'](Wt):'elementStart'==_0x38cd4f['type']?(_0x3bafb0=qt(_0x1a07cc),_0x89394['set'](_0x1a07cc,_0x3bafb0)):_0x3bafb0=_0x89394['get'](_0x1a07cc);const _0x338aee=this['_getElementCategory'](_0x1a07cc);'solid'==_0x338aee&&('elementStart'==_0x38cd4f['type']?(_0x3f9b80=_0x3bafb0,_0x4c6955['unshift'](_0x3f9b80)):_0x4c6955['shift']());const _0x153ddf={'type':'element','element':_0x1a07cc,'elementId':_0x3bafb0,'category':_0x338aee,'isStart':'elementStart'==_0x38cd4f['type'],'limitId':_0x3f9b80};_0x5dd833['push'](_0x153ddf);}else''==_0x52e3f5&&(_0x2eaa66=_0x38cd4f['previousPosition']['clone']()),_0x52e3f5+=_0x38cd4f['item']['data'];return''!==_0x52e3f5&&_0x5dd833['push'](...this['_makeTokensFromTextByWords'](_0x52e3f5,_0x2eaa66,_0x4c6955[0x0])),_0x5dd833;}['_makeTokensFromTextByWords'](_0x65962c,_0x53a884,_0x4b9d12){const _0x594f96=_0x65962c['matchAll'](/(\s)/g),_0xb3943c=Array['from'](_0x594f96)['map'](_0x54078b=>_0x54078b['index']);_0xb3943c['push'](_0x65962c['length']),0x0==_0xb3943c[0x0]&&_0xb3943c['shift']();const _0x20a085=[],_0x1886cf=_0x53a884['parent'];let _0x57751c=0x0,_0x3776a0=_0x53a884['offset'];for(let _0x1d7ab9=0x0;_0x1d7ab9<_0xb3943c['length'];_0x1d7ab9++)_0x20a085['push']({'type':'text','data':_0x65962c['slice'](_0x57751c,_0xb3943c[_0x1d7ab9]),'parent':_0x1886cf,'offset':_0x3776a0,'limitId':_0x4b9d12}),_0x57751c=_0xb3943c[_0x1d7ab9],_0x3776a0=_0x53a884['offset']+_0xb3943c[_0x1d7ab9];return _0x20a085;}['_getElementCategory'](_0x389b0d){const _0x245b52=this['_editor']['model']['schema'];return _0x245b52['isLimit'](_0x389b0d)||_0x245b52['isContent'](_0x389b0d)||_0x245b52['isInline'](_0x389b0d)?'solid':_0x245b52['isBlock'](_0x389b0d)?'block':'container';}['_diffModelTokens'](_0x3f1fc5,_0x328724){const _0x1b4d2e=_0x22cc63(_0x3f1fc5,_0x328724,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x1b4d2e);const _0x403eac=_0x1b4d2e['flatMap'](_0x278400=>{const _0x220535=_0x278400['added']?'added':_0x278400['removed']?'removed':'unchanged';return _0x278400['value']['map'](_0x2630b4=>({'token':_0x2630b4,'change':_0x220535}));});let _0x213356=0x0;for(const _0x29a9b2 of _0x403eac)'added'!=_0x29a9b2['change']&&('unchanged'==_0x29a9b2['change']&&(_0x29a9b2['before']=_0x3f1fc5[_0x213356]),_0x213356++);return _0x403eac;}['_handleUnclosedBlockOpeningTags'](_0x18545c){for(let _0x3960bb=0x0;_0x3960bb<_0x18545c['length']-0x1;_0x3960bb++)if(_0x18545c[_0x3960bb]['removed']&&_0x18545c[_0x3960bb+0x1]['added']){const _0x43afb2=this['_findUnclosedBlockOpeningToken'](_0x18545c[_0x3960bb]['value']);if(null!==_0x43afb2){const _0x1290d4=this['_findUnclosedBlockOpeningToken'](_0x18545c[_0x3960bb+0x1]['value']),_0x52d87b=_0x18545c[_0x3960bb]['value']['splice'](_0x43afb2),_0x16c47b=_0x18545c[_0x3960bb+0x1]['value']['splice'](_0x1290d4),_0x27d493=[_0x16c47b['shift']()];_0x52d87b['shift']();const _0x17e37e={'value':_0x52d87b,'removed':!0x0},_0x50b8cd={'value':_0x16c47b,'added':!0x0},_0xc5e80f={'value':_0x27d493};_0x18545c['splice'](_0x3960bb+0x2,0x0,_0xc5e80f,_0x17e37e,_0x50b8cd);}}}['_findUnclosedBlockOpeningToken'](_0x1e63b9){let _0x53285c=0x0,_0x78601b=-0x1;for(let _0x2606d6=0x0;_0x2606d6<_0x1e63b9['length'];_0x2606d6++){const _0x1263de=_0x1e63b9[_0x2606d6];'element'==_0x1263de['type']&&'block'==_0x1263de['category']&&(_0x53285c+=_0x1263de['isStart']?0x1:-0x1,_0x1263de['isStart']&&(_0x78601b=_0x2606d6));}return 0x0===_0x53285c?null:_0x78601b;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x4d7b14=0x0;_0x4d7b14<this['_diffItems']['length'];_0x4d7b14++){const _0x3ec50b=this['_diffItems'][_0x4d7b14]['change'],_0x28ced4=[];_0x28ced4['push'](this['_diffItems'][_0x4d7b14]);let _0xce1a2e=_0x4d7b14+0x1;for(;this['_diffItems'][_0xce1a2e]&&this['_diffItems'][_0xce1a2e]['change']==_0x3ec50b;)_0x28ced4['push'](this['_diffItems'][_0xce1a2e]),_0xce1a2e++,_0x4d7b14++;const _0x30316f=_0x28ced4['map'](_0x4ecaaf=>_0x4ecaaf['token']);if('unchanged'==_0x3ec50b)_0x28ced4['map'](_0x3d8935=>_0x3d8935['before'])['forEach'](_0x5063aa=>this['_traverseOverItem'](_0x5063aa));else{if('removed'==_0x3ec50b){if(this['_markDeletions']){const _0x1a5790=this['_path']['slice']();_0x30316f['forEach'](_0x4038fd=>this['_traverseOverItem'](_0x4038fd));const _0x86a142=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x1a5790,'end':_0x86a142}});}else this['_handleChanged'](_0x30316f,!0x0,this['_path']['slice']());}else{const _0x572fb6=_0x30316f['filter'](_0x465dcf=>'element'!=_0x465dcf['type']||'container'!=_0x465dcf['category']);this['_handleChanged'](_0x572fb6,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xaf6cbf=0x0;_0xaf6cbf<this['_diffItems']['length'];_0xaf6cbf++){const _0x1a0877=this['_diffItems'][_0xaf6cbf]['change'],_0x1e4ae4=[];_0x1e4ae4['push'](this['_diffItems'][_0xaf6cbf]);let _0x227ddb=_0xaf6cbf+0x1;for(;this['_diffItems'][_0x227ddb]&&this['_diffItems'][_0x227ddb]['change']==_0x1a0877;)_0x1e4ae4['push'](this['_diffItems'][_0x227ddb]),_0x227ddb++,_0xaf6cbf++;const _0x5c530b=_0x1e4ae4['map'](_0x52e0f4=>_0x52e0f4['token']);if('unchanged'==_0x1a0877){const _0x3599f5=_0x1e4ae4['map'](_0x11b8ab=>_0x11b8ab['before']);this['_handleUnchanged'](_0x3599f5,_0x5c530b);}else('removed'!=_0x1a0877||this['_markDeletions'])&&_0x5c530b['forEach'](_0x4c5849=>{this['_traverseOverItem'](_0x4c5849);});}}['_calculateMarkersOperationsData'](_0x2b2a8d,_0x58e26b){const _0x35f42d={};for(const [_0x491cc2]of _0x2b2a8d)_0x35f42d[_0x491cc2]=null;for(const [_0x3bdee8,_0x2411ec]of _0x58e26b)_0x35f42d[_0x3bdee8]=_0x2411ec;const _0x2f4650=Object['entries'](_0x35f42d)['map'](([_0x247f50,_0x15fe7d])=>({'type':'marker','name':_0x247f50,'range':_0x15fe7d?{'start':_0x15fe7d['start']['path']['slice'](),'end':_0x15fe7d['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x2f4650);}['_handleUnwraps'](){const _0x382782=new Map(),_0x36ee29=[],_0x43b8a1=[0x0];let _0x5bf8f8=this['_diffItems']['length']+0x1;for(let _0x3a24b1=this['_diffItems']['length']-0x1;_0x3a24b1>=0x0;_0x3a24b1--){const {token:_0x517d6a,before:_0x21a6ef,change:_0x4b6bba}=this['_diffItems'][_0x3a24b1];if('removed'!=_0x4b6bba&&(_0x5bf8f8=_0x3a24b1),'element'!=_0x517d6a['type']||'container'!=_0x517d6a['category']||'added'==_0x4b6bba)continue;const _0x15ecb3=_0x21a6ef?_0x21a6ef['element']:_0x517d6a['element'];if(_0x517d6a['isStart']){const _0x477f22=_0x382782['get'](_0x15ecb3),_0x125711=this['_diffItems'][_0x477f22];('removed'==_0x4b6bba||'removed'==_0x125711['change'])&&_0x5bf8f8<_0x477f22&&(this['_operationsData']['push']({'type':'unwrap','path':_0x15ecb3['getPath'](),'howMany':_0x15ecb3['maxOffset']+_0x43b8a1[0x0]}),_0x43b8a1['shift'](),_0x43b8a1[0x0]+=_0x15ecb3['maxOffset']-0x1,_0x36ee29['push'](_0x3a24b1),_0x36ee29['push'](_0x477f22));}else _0x382782['set'](_0x15ecb3,_0x3a24b1),_0x43b8a1['unshift'](0x0);}_0x36ee29['sort']((_0x57c96e,_0x5c0942)=>_0x5c0942-_0x57c96e),_0x36ee29['forEach'](_0x4d8fec=>{const _0x2707d2=this['_diffItems'][_0x4d8fec];'removed'==_0x2707d2['change']?this['_diffItems']['splice'](_0x4d8fec,0x1):(_0x2707d2['change']='added',delete _0x2707d2['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x22efd5=[];for(let _0x129718=0x0;_0x129718<this['_diffItems']['length'];_0x129718++){const {change:_0xa66cd3,token:_0x403881}=this['_diffItems'][_0x129718];if('added'==_0xa66cd3&&'element'==_0x403881['type']&&'container'==_0x403881['category']){if(_0x403881['isStart'])_0x22efd5['push'](this['_path']['slice']());else{if(!_0x403881['isStart']){const _0x15d9d9=_0x22efd5['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x15d9d9,'end':this['_path']['slice']()},'token':_0x403881}),this['_path'][this['_path']['length']-0x1]=_0x15d9d9[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0xa66cd3||this['_markDeletions'])&&this['_traverseOverItem'](_0x403881);}}['_handleUnchanged'](_0x5aa637,_0x25f493){for(let _0x88d499=0x0;_0x88d499<_0x5aa637['length'];_0x88d499++){const _0x550a0b=_0x5aa637[_0x88d499];if('element'==_0x550a0b['type']&&_0x550a0b['isStart']){const _0x5b3154=_0x25f493[_0x88d499];'block'==_0x550a0b['category']&&this['_handleElementRename'](_0x550a0b['element'],_0x5b3154['element'],this['_path']),this['_handleElementAttributeChanges'](_0x550a0b['element'],_0x5b3154['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x5b3154);}else{if('element'!=_0x550a0b['type']||_0x550a0b['isStart']){if('text'==_0x550a0b['type']){const _0x4dde44=this['_path']['slice'](),_0x4d741c=[],_0x35bcda=[];for(;_0x5aa637[_0x88d499]&&'text'==_0x5aa637[_0x88d499]['type'];)_0x4d741c['push'](_0x5aa637[_0x88d499]),_0x35bcda['push'](_0x25f493[_0x88d499]),this['_path'][this['_path']['length']-0x1]+=_0x5aa637[_0x88d499]['data']['length'],_0x88d499++;_0x88d499--,this['_handleTextAttributeChanges'](_0x4d741c,_0x35bcda,_0x4dde44);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x1af27f,_0x44b81d,_0x152cda){const _0x5d3eec=[],_0x5a17cc=[],_0x5b7e68=_0x152cda['slice']();for(let _0x66ea65=0x0;_0x66ea65<_0x1af27f['length'];_0x66ea65++){const _0x57f42c=_0x1af27f[_0x66ea65],_0x47e6a0=_0x152cda['slice']();if('element'!=_0x57f42c['type']||_0x57f42c['isStart'])'element'==_0x57f42c['type']&&_0x57f42c['isStart']?(_0x152cda['push'](0x0),_0x44b81d||this['_parents']['push'](_0x57f42c),_0x5a17cc['push']({'before':_0x47e6a0,'after':_0x152cda['slice'](),'index':_0x66ea65})):_0x152cda[_0x152cda['length']-0x1]+=_0x57f42c['data']['length'];else{let _0x211232;_0x152cda['pop'](),_0x152cda[_0x152cda['length']-0x1]++,_0x211232=_0x44b81d?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x5a17cc['length']?_0x5a17cc['pop']():_0x5d3eec['push']({'before':_0x47e6a0,'after':_0x152cda['slice'](),'index':_0x66ea65,'related':_0x211232});}}if(_0x5a17cc['length']!==_0x5d3eec['length'])throw new _0x2f307b('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x1af27f,'isRemove':_0x44b81d});const _0x5b919a=[{'after':_0x5b7e68['slice'](),'index':-0x1},..._0x5d3eec,..._0x5a17cc,{'before':_0x152cda['slice'](),'index':_0x1af27f['length']}];if(_0x44b81d){for(let _0x761988=_0x5b919a['length']-0x1;_0x761988>=0x1;_0x761988--){const _0x61f103=_0x5b919a[_0x761988-0x1]['after'],_0x3b333e=_0x5b919a[_0x761988]['before'],_0x82e9d5=_0x3b333e[_0x3b333e['length']-0x1]-_0x61f103[_0x61f103['length']-0x1];_0x82e9d5&&(this['_operationsData']['push']({'type':'remove','path':_0x61f103,'howMany':_0x82e9d5}),_0x3b333e[_0x3b333e['length']-0x1]-=_0x82e9d5);}for(const {before:_0x2f5731}of _0x5d3eec)this['_operationsData']['push']({'type':'merge','path':_0x2f5731});}else for(let _0x535665=0x0;_0x535665<_0x5b919a['length']-0x1;_0x535665++){const _0x970d65=_0x5b919a[_0x535665]['after'],_0x1d6de0=_0x5b919a[_0x535665+0x1]['before'],_0x189512=_0x5b919a[_0x535665]['index']+0x1,_0x3ca532=_0x5b919a[_0x535665+0x1]['index'];if(_0x189512!==_0x3ca532&&this['_operationsData']['push']({'type':'insert','path':_0x970d65,'tokens':_0x1af27f['slice'](_0x189512,_0x3ca532)}),_0x535665<_0x5d3eec['length']){this['_operationsData']['push']({'type':'split','path':_0x1d6de0});const _0x39fdc6=_0x1af27f[_0x5a17cc[_0x5a17cc['length']-0x1-_0x535665]['index']],_0x321288=_0x5d3eec[_0x535665]['after'],_0x35e0ff=_0x5d3eec[_0x535665]['related']['element'];this['_handleElementRename'](_0x35e0ff,_0x39fdc6['element'],_0x321288),this['_handleElementAttributeChanges'](_0x35e0ff,_0x39fdc6['element'],_0x321288);}}}['_traverseOverItem'](_0x32abcd){'element'==_0x32abcd['type']&&_0x32abcd['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x32abcd)):'element'!=_0x32abcd['type']||_0x32abcd['isStart']?'text'==_0x32abcd['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x32abcd['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x261355,_0x19e741,_0x1d5de3){_0x261355['name']!=_0x19e741['name']&&this['_operationsData']['push']({'type':'rename','path':_0x1d5de3['slice'](),'oldName':_0x261355['name'],'newName':_0x19e741['name']});}['_handleElementAttributeChanges'](_0x303701,_0x4a2959,_0x6a117a){const _0x1e1e7d=this['_getAttributeChanges'](_0x303701['getAttributes'](),_0x4a2959['getAttributes']());for(const _0x27f834 in _0x1e1e7d){const {oldValue:_0x4fdbd1,newValue:_0x3df1fe}=_0x1e1e7d[_0x27f834];this['_operationsData']['push']({'type':'attribute','path':_0x6a117a['slice'](),'howMany':0x1,'key':_0x27f834,'oldValue':_0x4fdbd1,'newValue':_0x3df1fe});}}['_handleTextAttributeChanges'](_0x2deeee,_0x1b9792,_0x26ffee){const _0x49190f=this['_operationsData'],_0x3b7563=_0x2deeee[0x0]['parent'],_0x3a3820=_0x2deeee[0x0]['offset'],_0x2f545c=_0x1b9792[0x0]['parent'],_0x38e0a6=_0x1b9792[0x0]['offset'],_0x341dbf=_0x2deeee['reduce']((_0x155510,_0x5f386c)=>_0x155510+_0x5f386c['data']['length'],0x0),_0x4c877f=this['_getAttrsForOffsets'](_0x3b7563,_0x3a3820,_0x341dbf),_0x2ffb7e=this['_getAttrsForOffsets'](_0x2f545c,_0x38e0a6,_0x341dbf),_0x2a1cb5={};for(let _0x1c7f1a=0x0;_0x1c7f1a<_0x341dbf;_0x1c7f1a++){const _0xf07978=_0x4c877f[_0x3a3820+_0x1c7f1a],_0x3f7472=_0x2ffb7e[_0x38e0a6+_0x1c7f1a],_0x52567f=this['_getAttributeChanges'](_0xf07978,_0x3f7472);for(const _0x1d7e3b in _0x2a1cb5)_0x52567f[_0x1d7e3b]||_0x3612b3(_0x1d7e3b);for(const _0x4d5ca9 in _0x52567f){const {oldValue:_0x80ea23,newValue:_0x15cdcd}=_0x52567f[_0x4d5ca9],_0xa64782=_0x2a1cb5[_0x4d5ca9];_0xa64782?_0xa64782['oldValue']==_0x80ea23&&_0xa64782['newValue']==_0x15cdcd?_0xa64782['length']++:(_0x3612b3(_0x4d5ca9),_0x2a1cb5[_0x4d5ca9]={'oldValue':_0x80ea23,'newValue':_0x15cdcd,'start':_0x1c7f1a,'length':0x1}):_0x2a1cb5[_0x4d5ca9]={'oldValue':_0x80ea23,'newValue':_0x15cdcd,'start':_0x1c7f1a,'length':0x1};}}for(const _0x533311 in _0x2a1cb5)_0x3612b3(_0x533311);function _0x3612b3(_0x41f9cc){const _0x271ecc=_0x2a1cb5[_0x41f9cc],_0x594f0d=_0x26ffee['slice']();_0x594f0d[_0x594f0d['length']-0x1]+=_0x271ecc['start'],_0x49190f['push']({'type':'attribute','path':_0x594f0d,'howMany':_0x271ecc['length'],'key':_0x41f9cc,'oldValue':_0x271ecc['oldValue'],'newValue':_0x271ecc['newValue']}),delete _0x2a1cb5[_0x41f9cc];}}['_getAttributeChanges'](_0xf8ee62,_0x44c045){const _0x2ec5d0={};for(const [_0x1aac65,_0x3f185d]of _0xf8ee62)_0x2ec5d0[_0x1aac65]={'oldValue':JSON['stringify'](_0x3f185d),'newValue':'null'};for(const [_0x49dd89,_0x21d659]of _0x44c045){const _0x1c26d0=JSON['stringify'](_0x21d659);_0x2ec5d0[_0x49dd89]?_0x2ec5d0[_0x49dd89]['oldValue']==_0x1c26d0?delete _0x2ec5d0[_0x49dd89]:_0x2ec5d0[_0x49dd89]['newValue']=_0x1c26d0:_0x2ec5d0[_0x49dd89]={'oldValue':'null','newValue':_0x1c26d0};}return delete _0x2ec5d0[Wt],_0x2ec5d0;}['_getAttrsForOffsets'](_0x1ca6fe,_0x39dd25,_0x5e3132){const _0x2e3242=new Array(_0x39dd25+_0x5e3132);let _0x27c511=_0x1ca6fe['getChildAtOffset'](_0x39dd25),_0x2f7807=_0x27c511['startOffset'];for(;_0x27c511&&_0x2f7807<_0x39dd25+_0x5e3132;){const _0x455497=Array['from'](_0x27c511['getAttributes']());_0x2e3242['fill'](_0x455497,_0x2f7807,_0x2f7807+_0x27c511['offsetSize']),_0x2f7807+=_0x27c511['offsetSize'],_0x27c511=_0x27c511['nextSibling'];}return _0x2e3242;}['_getPositionFromAnchorAndPath'](_0x1478be,_0x2a61d5){const _0x57a116=[..._0x1478be['path']['slice'](0x0,-0x1),_0x1478be['offset']+_0x2a61d5[0x0],..._0x2a61d5['slice'](0x1)];return new _0x26d7d9(_0x1478be['root'],_0x57a116);}['_makeModelFromTokens'](_0x457c4e){const _0x2a4352=[];let _0x2bc4ff=null;for(const _0x5bd61a of _0x457c4e)if('element'!=_0x5bd61a['type']||_0x5bd61a['isStart']||_0x2bc4ff!=_0x5bd61a['element']){if(!_0x2bc4ff){if('text'==_0x5bd61a['type']){const _0x385f23=_0x26d7d9['_createAt'](_0x5bd61a['parent'],_0x5bd61a['offset']),_0x11d550=_0x3a005a['_createFromPositionAndShift'](_0x385f23,_0x5bd61a['data']['length']),_0x2ab3d0=Array['from'](_0x11d550['getItems']())['map'](_0x222b19=>new _0x1ef998(_0x222b19['data'],_0x222b19['getAttributes']()));_0x2a4352['push'](..._0x2ab3d0);}else{_0x2bc4ff=_0x5bd61a['element'];const _0x3febc6=_0x5bd61a['element']['_clone'](!0x0);_0x3febc6['_removeAttribute'](Wt);for(const _0x77dcbf of this['_editor']['model']['createRangeIn'](_0x3febc6)['getItems']())_0x77dcbf['is']('element')&&_0x77dcbf['_removeAttribute'](Wt);_0x2a4352['push'](_0x3febc6);}}}else _0x2bc4ff=null;return _0x2a4352;}}function Kt(_0x5dfe04,_0x4c31a8){return _0x5dfe04['type']===_0x4c31a8['type']&&(_0x5dfe04['limitId']===_0x4c31a8['limitId']&&('text'==_0x5dfe04['type']?_0x5dfe04['data']==_0x4c31a8['data']:function(_0x4a88fc,_0x5b3364){if(_0x4a88fc['isStart']!=_0x5b3364['isStart'])return!0x1;if(_0x4a88fc['isStart']&&_0x4a88fc['elementId']!=_0x5b3364['elementId'])return!0x1;if(_0x4a88fc['category']!=_0x5b3364['category'])return!0x1;if('block'==_0x4a88fc['category'])return!0x0;if('container'==_0x4a88fc['category']&&_0x4a88fc['elementId']!=_0x5b3364['elementId'])return!0x1;return _0x4a88fc['element']['name']==_0x5b3364['element']['name'];}(_0x5dfe04,_0x4c31a8)));}function qt(_0x433294){return Mt({'name':_0x433294['name'],...Object['fromEntries'](_0x433294['getAttributes']())});}export{H as AriaDescriptionView,At as ConfirmMixin,Wt as DATA_ID_MODEL_ATTRIBUTE,jt as DATA_ID_VIEW_ATTRIBUTE,Yt as DocumentCompare,Rt as FOCUS_ANNOTATION_KEYSTROKE,z as LateFocusButtonView,W as LateFocusDropdownButtonView,D as Permissions,vt as SuggestionsConversion,F as UserView,L as Users,J as fixElementSuggestionRange,It as getAllMarkersDomElementsSorted,Ct as getDateTimeFormatter,xt as getMarkerDomElement,Mt as hashObject,Vt as sanitizeEditorConfig,Ft as setupThreadKeyboardNavigation,Y as splitSuggestionMarkerName,Ut as surroundingMarkersDetector,_t as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0x128ff8,Editor as _0x5402a0,Plugin as _0x12355c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5f123d,Collection as _0x2dc944,uid as _0x403a3d,toArray as _0x12c11e,first as _0x3baacd,FocusTracker as _0x39319c,KeystrokeHandler as _0x132f5e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x427d5a,IconView as _0x51514f,ButtonView as _0x281959,DropdownButtonView as _0x24c50f,FocusCycler as _0x330702,isViewWithFocusCycler as _0x216cda}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0xb013c3,IconCheck as _0xadbbeb,IconCancel as _0x224f6c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x5ee5b9,toWidget as _0x309f9a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x5cfd48}from'luxon';import{InsertOperation as _0x53a914,MoveOperation as _0x47aae0,ModelPosition as _0x10323b,ModelRange as _0x1f2d41,MarkerOperation as _0x553ec6,MergeOperation as _0x2234c6,SplitOperation as _0x551adc,RenameOperation as _0x1e0192,AttributeOperation as _0x2e2014,ModelTreeWalker as _0x560a61,ModelText as _0x152f56}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x271c18}from'diff';class O extends _0x128ff8{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x38fc5c,_0x4a75ef){let _0x4007cc;if(_0x4a75ef||(_0x4a75ef=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x4a75ef?_0x4007cc=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x4007cc=this['context']['editors']['find'](_0x25b710=>_0x25b710['config']['get']('collaboration.channelId')==_0x4a75ef)),!_0x4007cc)throw new _0x5f123d('permissions-set-permissions-invalid-channel-id',null);const _0x27ae73=_0x4007cc['plugins'],_0x573720=_0x27ae73['has']('CommentsRepository')?_0x27ae73['get']('CommentsRepository'):void 0x0,_0x4a23c6=_0x27ae73['has']('CommentsOnly')&&_0x27ae73['get']('CommentsOnly'),_0x4a80be=_0x38fc5c['includes']('document:write'),_0x5adbdc=_0x38fc5c['includes']('comment:modify_all'),_0x501fb4=_0x38fc5c['includes']('comment:admin'),_0x1fe549=_0x38fc5c['includes']('comment:write'),_0xcc4823=_0x1fe549||_0x501fb4,_0x23be68=_0xcc4823||_0x5adbdc,_0x3c3194=_0x4a80be||_0xcc4823;(_0x4a23c6&&(_0x4a23c6['isEnabled']=!_0x4a80be&&_0x23be68),_0x4007cc instanceof _0x5402a0)&&(!(_0x4a80be||_0x23be68&&_0x573720)?_0x4007cc['enableReadOnlyMode']('no-permissions'):_0x4007cc['disableReadOnlyMode']('no-permissions'));if(_0x573720){_0x573720['setPermissions']({'admin':_0x501fb4,'modifyAll':_0x5adbdc,'write':_0x1fe549,'resolve':_0x3c3194},_0x4a75ef);const _0x3431e9=_0x4007cc instanceof _0x5402a0&&_0x4007cc['commands']['get']('addCommentThread');_0x3431e9&&(_0xcc4823?_0x3431e9['clearForceDisabled']('noPermissions'):_0x3431e9['forceDisabled']('noPermissions'));}}}function V(_0x294c1a,_0x22e89e){const t=_0x294c1a['t'];switch(_0x22e89e){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class $ extends _0x128ff8{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}constructor(_0x36883f){super(_0x36883f),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x2dc944(),this['_locale']=_0x36883f['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:_0x571547,name:_0x15632e,..._0x84ee87}){if(!_0x571547||'string'!=typeof _0x571547)throw new _0x5f123d('users-add-invalid-id');if(this['users']['has'](_0x571547))throw new _0x5f123d('users-add-duplicated-id',null,{'id':_0x571547});const _0x5935fd=this['context']['config']['get']('users.getInitialsCallback'),_0x4401b2={..._0x84ee87,'id':_0x571547,'name':U(this['_locale'],_0x15632e),'color':this['_getNextColor']()};_0x4401b2['name']=U(this['_locale'],_0x4401b2['name']);const _0x1e0ddf=new L(_0x4401b2,_0x5935fd);return this['users']['add'](_0x1e0ddf),_0x1e0ddf;}['getUser'](_0x5ad61a){return this['users']['get'](_0x5ad61a);}['useAnonymousUser'](){const _0x15c649=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x15c649);}['defineMe'](_0x273e82){if(this['_myId'])throw new _0x5f123d('users-me-already-defined',null);const _0x41be67=this['getUser'](_0x273e82);if(!_0x41be67)throw new _0x5f123d('users-me-missing-user',null);this['_myId']=_0x273e82,_0x41be67['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x404196=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x404196&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0x1ca40c=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x1ca40c,'name':V(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class L{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x299d29,_0x13bcda){this['id']=_0x299d29['id'],this['color']=_0x299d29['color'],this['name']=_0x299d29['name'],this['initials']=_0x13bcda?_0x13bcda(this['name']):this['_computeInitials'](),this['avatar']=_0x299d29['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x3977af=this['name']['split']('\x20')['filter'](_0x1f4a97=>/^[\p{Letter}]/u['test'](_0x1f4a97));return 0x1===_0x3977af['length']?this['_getInitial'](_0x3977af[0x0]):0x0===_0x3977af['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x3977af[0x0])+this['_getInitial'](_0x3977af[_0x3977af['length']-0x1]);}['_getInitial'](_0x29479b){return String['fromCodePoint'](_0x29479b['codePointAt'](0x0))['toUpperCase']();}}function U(_0xb4bdcf,_0x3f3bbe=''){return''==(_0x3f3bbe=_0x3f3bbe['trim']())?V(_0xb4bdcf,'Anonymous'):_0x3f3bbe;}class R{['_id'];constructor(_0x3230c7){this['_id']=_0x3230c7;}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))';}}class F extends _0x427d5a{['name'];['notificationView'];constructor(_0x1354db,_0x11770c,_0x46e40f){super(_0x1354db),this['name']=_0x11770c['name'],this['notificationView']=null;const _0x4a8674=['ck','ck-user'],_0xdd4d4a=['ck','ck-user__img'];if(_0x11770c['isAnonymous']&&_0xdd4d4a['push']('ck-user__anonymous'),!_0x11770c['isAnonymous']&&_0x11770c['isMe']&&_0x4a8674['push']('ck-user_me'),_0x11770c['avatar']&&_0xdd4d4a['push']('ck-user__avatar'),_0x46e40f){const _0x55f26b=new _0x51514f();_0x55f26b['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x55f26b['content']=_0xb013c3,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x46e40f},'children':[_0x55f26b]};}const _0x58a4cb=[{'tag':'div','attributes':{'class':_0xdd4d4a,'style':{'background-image':_0x11770c['avatar']?'url(\x27'+_0x11770c['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x11770c['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x11770c['name']},'children':[{'text':_0x11770c['initials']}]}];this['notificationView']&&_0x58a4cb['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x4a8674,'data-user-id':_0x11770c['id']},'children':_0x58a4cb});}}class H extends _0x427d5a{['id'];constructor(_0x1c26dd,_0x550d5c){super(_0x1c26dd),this['id']='ck-aria-description-'+_0x403a3d(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x550d5c}]});}}class z extends _0x281959{['render'](){super['render'](),j(this);}}class W extends _0x24c50f{['render'](){super['render'](),j(this);}}function j(_0x1b4578){_0x1b4578['listenTo'](_0x1b4578['element'],'mousedown',(_0x4b7054,_0x4567b7)=>{_0x4567b7['stopPropagation'](),_0x4567b7['preventDefault']();}),_0x1b4578['listenTo'](_0x1b4578['element'],'mouseup',()=>{_0x1b4578['element']['focus']();});}function Y(_0x529a24){const _0x590ecd=_0x529a24['split'](':');return{'group':_0x590ecd[0x0],'type':_0x590ecd[0x1],'subType':_0x590ecd['length']>=0x5?_0x590ecd[0x2]:null,'id':_0x590ecd['length']<0x5?_0x590ecd[0x2]:_0x590ecd[0x3],'authorId':_0x590ecd['length']<0x5?_0x590ecd[0x3]:_0x590ecd[0x4],'markerCount':0x6==_0x590ecd['length']?_0x590ecd[0x5]:null};}function J(_0x1adcc3,_0x263a8c){const _0x5269ec=_0x1adcc3['end']['nodeBefore'];if(_0x5269ec&&_0x5269ec['is']('element')&&_0x263a8c['schema']['isBlock'](_0x5269ec)&&!_0x263a8c['schema']['isObject'](_0x5269ec)){const _0x10f40a=_0x263a8c['createPositionAt'](_0x5269ec,'end');return _0x263a8c['createRange'](_0x1adcc3['start'],_0x10f40a);}return _0x1adcc3;}class K extends _0x12355c{['afterInit'](){const _0x1975e1=this['editor'];if(!_0x1975e1['plugins']['has']('AlignmentEditing'))return;_0x1975e1['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x12355c{['afterInit'](){const _0x16a5aa=this['editor'],_0x28045c=_0x16a5aa['plugins']['get']('SuggestionsConversion');for(const _0xd0ff83 of q){if(!_0x16a5aa['plugins']['has'](_0xd0ff83))continue;const _0x1124f9=_0xd0ff83['slice'](0x0,-0x7)['toLowerCase']();_0x28045c['registerInlineAttribute'](_0x1124f9);}}}class Z extends _0x12355c{['afterInit'](){const _0x5f1ac9=this['editor'],_0xa2f023=_0x5f1ac9['plugins']['get']('SuggestionsConversion');_0x5f1ac9['plugins']['has']('BookmarkEditing')&&_0xa2f023['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x12355c{['afterInit'](){const _0x216fe6=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x1fc705,commandName:_0x3f5695}of Q)this['editor']['plugins']['has'](_0x1fc705)&&_0x216fe6['registerInlineAttribute'](_0x3f5695);}}class tt extends _0x12355c{['afterInit'](){const {editor:_0x5effc8}=this;if(!_0x5effc8['plugins']['has']('FootnotesPropertiesEditing'))return;const _0xc57a87=_0x5effc8['plugins']['get']('SuggestionsConversion');_0xc57a87['registerBlockAttribute']('footnotesListStyle'),_0xc57a87['registerBlockAttribute']('footnotesListStart');}}class et extends _0x12355c{['afterInit'](){const _0x5efb8c=this['editor'];if(!_0x5efb8c['plugins']['has']('HighlightEditing'))return;_0x5efb8c['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x12355c{['afterInit'](){const _0x2c3efd=this['editor'];if(!_0x2c3efd['plugins']['has']('HtmlEmbed'))return;_0x2c3efd['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x12355c{['afterInit'](){const _0x174d78=this['editor'];if(!_0x174d78['plugins']['has']('ImageEditing'))return;const _0x3bd435=_0x174d78['plugins']['get']('SuggestionsConversion');_0x3bd435['registerBlockAttribute']('src'),_0x174d78['plugins']['has']('ImageResize')&&_0x3bd435['registerBlockAttribute']('resizedWidth'),_0x174d78['plugins']['has']('ImageTextAlternativeEditing')&&_0x3bd435['registerBlockAttribute']('alt'),_0x174d78['plugins']['has']('PictureEditing')&&_0x3bd435['registerBlockAttribute']('sources'),_0x174d78['plugins']['has']('ImageSizeAttributes')&&(_0x3bd435['registerBlockAttribute']('width'),_0x3bd435['registerBlockAttribute']('height'));}}class nt extends _0x12355c{['afterInit'](){const _0x3568b7=this['editor'],_0x323807=_0x3568b7['plugins']['get']('SuggestionsConversion');_0x3568b7['plugins']['has']('IndentBlock')&&(_0x323807['registerBlockAttribute']('blockIndent'),_0x3568b7['plugins']['has']('ListEditing')&&(_0x323807['registerBlockAttribute']('blockIndentList'),_0x323807['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x12355c{['afterInit'](){const _0x464838=this['editor'];if(!_0x464838['plugins']['has']('LineHeight'))return;_0x464838['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x12355c{['afterInit'](){const _0x765984=this['editor'];if(!_0x765984['plugins']['has']('LinkEditing'))return;const _0x318504=_0x765984['plugins']['get']('SuggestionsConversion'),_0x2e7617=_0x765984['commands']['get']('link');_0x318504['registerInlineAttribute']('linkHref');for(const _0x2399e6 of _0x2e7617['manualDecorators'])_0x318504['registerInlineAttribute'](_0x2399e6['id']);}}class at extends _0x12355c{['afterInit'](){const _0x65b11b=this['editor'];if(!_0x65b11b['plugins']['has']('ListEditing'))return;const _0x23a2fc=_0x65b11b['plugins']['get']('SuggestionsConversion'),_0x25abf2=_0x65b11b['plugins']['has']('TodoListEditing');_0x23a2fc['registerBlockAttribute']('listItemId'),_0x23a2fc['registerBlockAttribute']('listType'),_0x23a2fc['registerBlockAttribute']('listIndent'),_0x25abf2&&_0x23a2fc['registerBlockAttribute']('todoListChecked');}}class ct extends _0x12355c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2b659a=this['editor']['config']['get']('list.properties'),_0x38a21a=this['editor']['plugins']['get']('SuggestionsConversion');_0x2b659a['styles']&&_0x38a21a['registerBlockAttribute']('listStyle'),_0x2b659a['reversed']&&_0x38a21a['registerBlockAttribute']('listReversed'),_0x2b659a['startIndex']&&_0x38a21a['registerBlockAttribute']('listStart');}}class lt extends _0x12355c{['afterInit'](){const _0x42d2c4=this['editor'],_0x2727e3=_0x42d2c4['plugins']['get']('SuggestionsConversion');_0x42d2c4['plugins']['has']('MultiLevelList')&&_0x2727e3['registerBlockAttribute']('listMarkerStyle');}}class ht extends _0x12355c{['afterInit'](){const _0x10674a=this['editor'];if(!_0x10674a['plugins']['has']('Style')||!_0x10674a['plugins']['has']('DataSchema')||!_0x10674a['config']['get']('style.definitions'))return;const _0x44a800=_0x10674a['plugins']['get']('SuggestionsConversion'),_0x20119a=_0x10674a['config']['get']('style.definitions'),_0x45b0ab=_0x10674a['plugins']['get']('GeneralHtmlSupport'),_0x220c10=_0x10674a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10674a['plugins']['get']('DataSchema'),_0x20119a),_0x2d4fc3=new Set();for(const _0x38ca8f of _0x220c10['block']){const _0x34158d=_0x45b0ab['getGhsAttributeNameForElement'](_0x38ca8f['element']);_0x2d4fc3['add'](_0x34158d);}const _0x1bac5b=new Set();for(const _0x175a77 of _0x220c10['inline']){const _0x100cbf=_0x45b0ab['getGhsAttributeNameForElement'](_0x175a77['element']);_0x1bac5b['add'](_0x100cbf);for(const _0x31b227 of _0x175a77['ghsAttributes'])_0x1bac5b['add'](_0x31b227);}for(const _0x2002b6 of _0x2d4fc3)_0x44a800['registerBlockAttribute'](_0x2002b6);for(const _0x5680a7 of _0x1bac5b)_0x44a800['registerInlineAttribute'](_0x5680a7);}}class ut extends _0x12355c{['afterInit'](){const _0x350a2a=this['editor'];if(!_0x350a2a['plugins']['has']('TableEditing'))return;const _0x1045d9=_0x350a2a['plugins']['get']('SuggestionsConversion');_0x1045d9['registerBlockAttribute']('headingRows'),_0x1045d9['registerBlockAttribute']('headingColumns');}}class dt extends _0x12355c{['afterInit'](){const {plugins:_0x2e736d}=this['editor'];if(!_0x2e736d['has']('TablePropertiesEditing'))return;const _0x1d0257=_0x2e736d['get']('SuggestionsConversion'),_0x6c791a=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x402ecc of _0x6c791a)_0x1d0257['registerBlockAttribute'](_0x402ecc);}}class ft extends _0x12355c{['afterInit'](){const _0x48f276=this['editor'],_0x2245ae=_0x48f276['plugins']['get']('SuggestionsConversion');_0x48f276['plugins']['has']('TableLayout')&&_0x2245ae['registerBlockAttribute']('tableType');}}class gt extends _0x12355c{['afterInit'](){const _0x13c7d2=this['editor'],_0x356166=this['editor']['plugins']['get']('SuggestionsConversion');_0x13c7d2['plugins']['has']('Uploadcare')&&_0x13c7d2['plugins']['has']('UploadcareImageEdit')&&_0x356166['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x12355c{['afterInit'](){const _0xd35920=this['editor'];if(!_0xd35920['plugins']['has']('ShiftEnter'))return;const _0x6670eb=_0xd35920['plugins']['get']('SuggestionsConversion'),_0x1cc0e2=(_0x13d08e,_0x4211fd,_0x583588,_0x149241)=>{if(_0x149241&&!_0x583588['options']['showSuggestionHighlights'])return;if(!_0x583588['consumable']['test'](_0x4211fd['markerRange'],_0x13d08e['name']))return;const _0xca582=_0xd35920['model'];for(const _0x2cd8ad of _0x4211fd['markerRange']['getItems']()){if(!_0x2cd8ad['is']('element','softBreak'))continue;const _0x1e546b='deletion'==_0x4211fd['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x411269,authorId:_0x4602a7}=Y(_0x4211fd['markerName']),_0x3b4908=_0x583588['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e546b,'data-suggestion':_0x411269,'data-author-id':_0x4602a7}),_0x5781f4=_0x583588['mapper']['toViewPosition'](_0xca582['createPositionBefore'](_0x2cd8ad));!_0x149241&&_0x6670eb['_activeMarkers']['includes'](_0x4211fd['markerName'])&&_0x583588['writer']['addClass']('ck-suggestion-marker--active',_0x3b4908),_0x583588['writer']['insert'](_0x5781f4,_0x3b4908),_0x583588['mapper']['bindElementToMarker'](_0x3b4908,_0x4211fd['markerName']);}};_0xd35920['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46d43f,_0x22ce88,_0x179e16)=>{_0x1cc0e2(_0x46d43f,_0x22ce88,_0x179e16,!0x1);},{'priority':'high'}),_0xd35920['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x377829,_0x436fda,_0x28dc46)=>{_0x1cc0e2(_0x377829,_0x436fda,_0x28dc46,!0x1);},{'priority':'high'}),_0xd35920['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x18de7d,_0x56cfda,_0x1eb66c)=>{_0x1cc0e2(_0x18de7d,_0x56cfda,_0x1eb66c,!0x0);},{'priority':'high'}),_0xd35920['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e2d8b,_0x13a63c,_0x4b0884)=>{_0x1cc0e2(_0x3e2d8b,_0x13a63c,_0x4b0884,!0x0);},{'priority':'high'});}}class kt extends _0x12355c{['afterInit'](){const _0x62c5ea=this['editor'];_0x62c5ea['plugins']['has']('MediaEmbedEditing')&&(_0x62c5ea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2b7b1d,{writer:_0x1ba56f,options:_0x25e3f8})=>{if(_0x25e3f8['showSuggestionHighlights'])return _0x1ba56f['createEmptyElement']('div');},'converterPriority':'high'}),_0x62c5ea['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2c003e,_0x4d5c9f,_0x314f68)=>{_0x314f68['options']['showSuggestionHighlights']&&_0x2c003e['stop']();},{'priority':'high'}));}}class pt extends _0x12355c{['afterInit'](){const _0x225825=this['editor'];if(!_0x225825['plugins']['has']('Table'))return;_0x225825['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18ad27,_0x4c0383,_0x57c082)=>{((_0x1c9143,_0x11da9f,_0x214349)=>{if(!_0x214349['options']['showSuggestionHighlights'])return;const _0x3bc3b3=_0x11da9f['item'];if(!_0x3bc3b3||!_0x3bc3b3['is']('element','tableCell'))return;const _0xb84bc6=_0x214349['mapper']['toViewElement'](_0x3bc3b3);if(_0xb84bc6){const {id:_0x4501ea,authorId:_0x3e71cc}=Y(_0x11da9f['markerName']);_0x5ee5b9(_0xb84bc6,_0x214349['writer'],(_0xe48bb4,_0x33e962,_0x5b65fc)=>{_0x5b65fc['addClass'](_0x12c11e(_0x33e962['classes']),_0xe48bb4),_0x5b65fc['setAttribute']('data-suggestion',_0x4501ea,_0xe48bb4),_0x5b65fc['setAttribute']('data-author-id',_0x3e71cc,_0xe48bb4);});}})(0x0,_0x4c0383,_0x57c082);},{'priority':'highest'});}}class yt extends _0x12355c{['afterInit'](){const _0x2a8511=this['editor'];_0x2a8511['plugins']['has']('HorizontalLineEditing')&&_0x2a8511['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b4db6,{writer:_0x3efe68,options:_0xbb4ccd})=>{if(!_0xbb4ccd['showSuggestionHighlights'])return null;const _0x14f881=_0x3efe68['createContainerElement']('div'),_0x198522=_0x3efe68['createEmptyElement']('hr');return _0x3efe68['addClass']('ck-horizontal-line',_0x14f881),_0x3efe68['insert'](_0x3efe68['createPositionAt'](_0x14f881,0x0),_0x198522),_0x14f881;},'converterPriority':'high'});}}class wt extends _0x12355c{['afterInit'](){const {plugins:_0x10d508,model:_0x2daaea}=this['editor'];if(!_0x10d508['has']('TableCellPropertiesEditing'))return;const _0x440193=_0x10d508['get']('SuggestionsConversion'),_0x5ad38d=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x30363f of _0x5ad38d)_0x440193['registerBlockAttribute'](_0x30363f);_0x2daaea['schema']['checkAttribute']('tableCell','tableCellType')&&_0x440193['registerBlockAttribute']('tableCellType');}}class bt extends _0x12355c{['afterInit'](){const _0x234200=this['editor'];if(!_0x234200['plugins']['has']('TableEditing')||!_0x234200['config']['get']('table.enableFooters'))return;_0x234200['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x12355c{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[K,G,Z,X,tt,et,yt,st,it,nt,ot,rt,at,ct,kt,lt,mt,ht,pt,ut,bt,ft,wt,dt,gt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x402f54=this['editor'],_0x23767f=(_0x324df7,_0x262ba1,_0x136e92)=>{const {id:_0x130e32,authorId:_0xa5f6bf,type:_0xaf8dfe,subType:_0x3d8e7f}=Y(_0x324df7['markerName']),_0x2809bf=['ck-suggestion-marker',this['_getClassName'](_0xaf8dfe,_0x3d8e7f)];let _0x4a8e49=0xbb8;return!_0x136e92&&(this['_activeMarkers']['includes'](_0x324df7['markerName'])&&(_0x2809bf['push']('ck-suggestion-marker--active'),_0x4a8e49=0xbc2)),('deletion'==_0xaf8dfe&&(_0x4a8e49+=0x5),{'classes':_0x2809bf,'attributes':{'data-suggestion':_0x130e32,'data-author-id':_0xa5f6bf},'priority':_0x4a8e49});};_0x402f54['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4a4b31,_0x5cfb76)=>_0x23767f(_0x4a4b31,0x0,!0x1)}),_0x402f54['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3a2f3a,_0x1a2634)=>_0x23767f(_0x3a2f3a,0x0,!0x0)}),_0x402f54['conversion']['for']('dataDowncast')['add'](_0x200664=>{_0x200664['on']('addMarker:suggestion',(_0x519f22,_0x36d3e3,_0x4a4590)=>{if(!_0x4a4590['options']['showSuggestionHighlights'])return;const _0x13dda7=_0x36d3e3['item'];if(!_0x13dda7)return;const _0xa9999=_0x4a4590['mapper']['toViewElement'](_0x13dda7);_0x402f54['model']['schema']['isObject'](_0x13dda7)&&_0xa9999&&!_0xa9999['getCustomProperty']('widget')&&_0xa9999['is']('containerElement')&&_0x309f9a(_0xa9999,_0x4a4590['writer']);},{'priority':'high'});});const _0x58e5d5=(_0x3ca53a,_0xc663b,_0x3dc7e1,_0x5d534b,_0x93edf9)=>{if(_0x5d534b&&!_0x3dc7e1['options']['showSuggestionHighlights'])return;if(!_0xc663b['item'])return;const {id:_0x2e8701,authorId:_0x8dc97f,subType:_0x11258b}=Y(_0xc663b['markerName']);if(_0x93edf9){const _0x467368=_0x11258b['split']('|')[0x0];if(!this['isBlockAttribute'](_0x467368))return;}if(_0xc663b['item']['is']('selection'))return void _0x3dc7e1['consumable']['consume'](_0xc663b['item'],_0x3ca53a['name']);const _0x3c7aee=_0x3dc7e1['mapper']['toViewElement'](_0xc663b['item']);if(_0xc663b['item']['is']('element')&&_0x402f54['model']['schema']['isBlock'](_0xc663b['item'])&&!_0x3c7aee['getCustomProperty']('addHighlight')){_0x3dc7e1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3c7aee),_0x3dc7e1['writer']['setAttribute']('data-suggestion',_0x2e8701,_0x3c7aee),_0x3dc7e1['writer']['setAttribute']('data-author-id',_0x8dc97f,_0x3c7aee),_0x3dc7e1['mapper']['bindElementToMarker'](_0x3c7aee,_0xc663b['markerName']),_0x5d534b||(this['_activeMarkers']['includes'](_0xc663b['markerName'])?_0x3dc7e1['writer']['addClass']('ck-suggestion-marker--active',_0x3c7aee):_0x3dc7e1['writer']['removeClass']('ck-suggestion-marker--active',_0x3c7aee));for(const _0x3d83dd of _0x402f54['model']['createRangeIn'](_0xc663b['item'])['getItems']())_0x3dc7e1['consumable']['consume'](_0x3d83dd,_0x3ca53a['name']);_0x3dc7e1['consumable']['consume'](_0xc663b['item'],_0x3ca53a['name']);}},_0x51ee58=(_0x55612e,_0x43caac,_0x2eb96f,_0x4667f7)=>{const _0x51e230=_0x2eb96f['mapper']['markerNameToElements'](_0x43caac['markerName']);if(_0x51e230){if(_0x4667f7){const {subType:_0x1c817f}=Y(_0x43caac['markerName']),_0x1fbaa2=_0x1c817f['split']('|')[0x0];if(!this['isBlockAttribute'](_0x1fbaa2))return;}for(const _0x33bd14 of _0x51e230)_0x33bd14['getCustomProperty']('addHighlight')||(_0x2eb96f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x33bd14),_0x2eb96f['writer']['removeAttribute']('data-suggestion',_0x33bd14),_0x2eb96f['writer']['removeAttribute']('data-author-id',_0x33bd14),_0x2eb96f['mapper']['unbindElementFromMarkerName'](_0x33bd14,_0x43caac['markerName']));}};_0x402f54['conversion']['for']('editingDowncast')['add'](_0x50d5e8=>{_0x50d5e8['on']('addMarker:suggestion:formatBlock',(_0x5b018f,_0x4464db,_0x11494e)=>{_0x58e5d5(_0x5b018f,_0x4464db,_0x11494e,!0x1,!0x1);},{'priority':'high'});}),_0x402f54['conversion']['for']('editingDowncast')['add'](_0x39fd9b=>{_0x39fd9b['on']('addMarker:suggestion:attribute',(_0x278d33,_0x47b6ca,_0x5069d0)=>{_0x58e5d5(_0x278d33,_0x47b6ca,_0x5069d0,!0x1,!0x0);},{'priority':'high'});}),_0x402f54['conversion']['for']('editingDowncast')['add'](_0x4c5ad4=>{_0x4c5ad4['on']('removeMarker:suggestion:formatBlock',(_0x4e49e4,_0x345771,_0x2a4458)=>{_0x51ee58(0x0,_0x345771,_0x2a4458,!0x1);},{'priority':'high'});}),_0x402f54['conversion']['for']('editingDowncast')['add'](_0x44a8d1=>{_0x44a8d1['on']('removeMarker:suggestion:attribute',(_0x42e7cd,_0x1c7196,_0x183264)=>{_0x51ee58(0x0,_0x1c7196,_0x183264,!0x0);},{'priority':'high'});}),_0x402f54['conversion']['for']('dataDowncast')['add'](_0x2c3140=>{_0x2c3140['on']('addMarker:suggestion:formatBlock',(_0x1f1cad,_0x5019ba,_0x234e57)=>{_0x58e5d5(_0x1f1cad,_0x5019ba,_0x234e57,!0x0,!0x1);},{'priority':'highest'});}),_0x402f54['conversion']['for']('dataDowncast')['add'](_0x39028c=>{_0x39028c['on']('addMarker:suggestion:attribute',(_0x416f18,_0x2ef0c1,_0xd47684)=>{_0x58e5d5(_0x416f18,_0x2ef0c1,_0xd47684,!0x0,!0x0);},{'priority':'highest'});}),_0x402f54['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x36b1dc,_0x14cccc)=>_0x14cccc['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x36b1dc['substr'](0xb)}});const _0x2a1b6f=(_0x483858,_0x5cca5f,_0xf9b5e,_0x368ddf,_0x3522c6)=>{if(_0x368ddf&&!_0xf9b5e['options']['showSuggestionHighlights'])return;if(!_0xf9b5e['consumable']['test'](_0x5cca5f['markerRange'],_0x483858['name']))return;const _0x2aaad0=this['_activeMarkers'],_0x24a64f=_0x5cca5f['markerRange']['getWalker'](),_0x4d3aa2=_0x5cca5f['markerRange']['start'],_0x232d3d=_0x402f54['model']['schema'];let _0x26073f=null,_0x40708d=null,_0x3be2c5=!0x1,_0x497193=!0x1;for(const _0xf12fdc of _0x24a64f){const _0x2a0c55=_0xf12fdc['item'];_0x3be2c5=_0x3be2c5||_0x232d3d['isContent'](_0x2a0c55);const _0x232546=_0xf9b5e['mapper']['toViewElement'](_0x2a0c55);if(_0x232546&&_0x232546['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xf12fdc['type']&&(_0x232d3d['isBlock'](_0x2a0c55)&&!_0x232d3d['isLimit'](_0x2a0c55)&&(_0x2a0c55['nextSibling']||_0x4d3aa2['isAtEnd']?_0x26073f&&_0x26073f['parent']==_0x2a0c55||(_0x26073f=_0x2a0c55,_0x220c7f(_0xf12fdc['previousPosition']),_0x497193=!0x0):_0x40708d=_0x40708d||_0xf12fdc['previousPosition']));}function _0x220c7f(_0x42e2b9){const {id:_0x4c30fd,authorId:_0x107075}=Y(_0x5cca5f['markerName']),_0x54aa1c=_0xf9b5e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3522c6,'data-suggestion':_0x4c30fd,'data-author-id':_0x107075}),_0x20f9c9=_0xf9b5e['mapper']['toViewPosition'](_0x42e2b9);!_0x368ddf&&_0x2aaad0['includes'](_0x5cca5f['markerName'])&&_0xf9b5e['writer']['addClass']('ck-suggestion-marker--active',_0x54aa1c),_0xf9b5e['writer']['insert'](_0x20f9c9,_0x54aa1c),_0xf9b5e['mapper']['bindElementToMarker'](_0x54aa1c,_0x5cca5f['markerName']);}_0x3be2c5||_0x497193||!_0x40708d||_0x220c7f(_0x40708d);};_0x402f54['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1dee0c,_0x13a1fd,_0x2934af)=>{_0x2a1b6f(_0x1dee0c,_0x13a1fd,_0x2934af,!0x1,'merge');},{'priority':'high'}),_0x402f54['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x505a7a,_0x33f668,_0x314aa4)=>{_0x2a1b6f(_0x505a7a,_0x33f668,_0x314aa4,!0x0,'merge');},{'priority':'high'}),_0x402f54['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd8dab6,_0x1f2d4e,_0x2601c7)=>{_0x2a1b6f(_0xd8dab6,_0x1f2d4e,_0x2601c7,!0x1,'split');},{'priority':'high'}),_0x402f54['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x7f3926,_0x1c0e52,_0x2e3c65)=>{_0x2a1b6f(_0x7f3926,_0x1c0e52,_0x2e3c65,!0x0,'split');},{'priority':'high'}),_0x402f54['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3a18ba,_0x538078,_0x39fc1d)=>{((_0x37a735,_0x40ad64,_0xb818e1)=>{const _0x4fb5fb=_0xb818e1['mapper']['markerNameToElements'](_0x40ad64['markerName']);if(_0x4fb5fb){for(const _0x2a6f22 of _0x4fb5fb)(_0x2a6f22['hasClass']('ck-suggestion-marker-split')||_0x2a6f22['hasClass']('ck-suggestion-marker-merge'))&&(_0xb818e1['mapper']['unbindElementFromMarkerName'](_0x2a6f22,_0x40ad64['markerName']),_0xb818e1['writer']['remove'](_0x2a6f22));}})(0x0,_0x538078,_0x39fc1d);},{'priority':'high'});const _0x10e5d9=(_0x469a16,_0x314424,_0x24b094,_0x11ab4d)=>{if(_0x11ab4d&&!_0x24b094['options']['showSuggestionHighlights'])return;const _0x5b33af=_0x314424['markerRange']['start'],_0x1a61d6=_0x314424['markerRange']['end'],_0x22886c=_0x402f54['model']['schema'];if(!_0x5b33af['isTouching'](_0x1a61d6)||!_0x5b33af['nodeAfter'])return;const _0x187d55=_0x5b33af['nodeAfter'];if(_0x22886c['isBlock'](_0x187d55)&&!_0x22886c['isLimit'](_0x187d55)&&_0x22886c['checkChild'](_0x187d55,'$text')){if(!_0x24b094['consumable']['consume'](_0x314424['markerRange'],_0x469a16['name']))return;const {id:_0x3711be,authorId:_0x36d9d1}=Y(_0x314424['markerName']),_0x210406=_0x24b094['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3711be,'data-author-id':_0x36d9d1}),_0x6cfa3=_0x24b094['mapper']['toViewPosition'](_0x1a61d6);!_0x11ab4d&&this['_activeMarkers']['includes'](_0x314424['markerName'])&&_0x24b094['writer']['addClass']('ck-suggestion-marker--active',_0x210406),_0x24b094['writer']['insert'](_0x6cfa3,_0x210406),_0x24b094['mapper']['bindElementToMarker'](_0x210406,_0x314424['markerName']);}};_0x402f54['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c8f2a,_0x3c6ff4,_0x4e7c3b)=>{_0x10e5d9(_0x5c8f2a,_0x3c6ff4,_0x4e7c3b,!0x1);},{'priority':'high'}),_0x402f54['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x50265c,_0x5b9d9b,_0x57ac03)=>{_0x10e5d9(_0x50265c,_0x5b9d9b,_0x57ac03,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x1fab8f,_0x192e10,_0xfb25b4)=>{this['_activeMarkers']=_0xfb25b4['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x21c85e){this['_blockAttributeKeys']['add'](_0x21c85e);}['registerInlineAttribute'](_0x59d960){this['_inlineAttributeKeys']['add'](_0x59d960);}['isBlockAttribute'](_0x37bdd3){return this['_blockAttributeKeys']['has'](_0x37bdd3);}['isInlineAttribute'](_0x562450){return this['_inlineAttributeKeys']['has'](_0x562450);}['isRegisteredAttribute'](_0x4600d3){return this['isInlineAttribute'](_0x4600d3)||this['isBlockAttribute'](_0x4600d3);}['_getClassName'](_0x27143f,_0x36f7c8){if('attribute'!=_0x27143f)return'ck-suggestion-marker-'+_0x27143f;const _0x65cd99=_0x36f7c8['split']('|')[0x0];return this['isBlockAttribute'](_0x65cd99)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x4f0c4d={},_0x5c3638){if(void 0x0!==_0x4f0c4d['dateTimeFormat']&&'function'!=typeof _0x4f0c4d['dateTimeFormat'])throw new _0x5f123d('invalid-date-time-format');return _0x4ab4bd=>{const _0x5edd17='string'==typeof _0x4ab4bd?_0x5cfd48['fromISO'](_0x4ab4bd):_0x5cfd48['fromJSDate'](_0x4ab4bd),_0x439775=_0x5cfd48['now'](),_0xc4117f=Math['floor'](_0x439775['diff'](_0x5edd17,'days')['days']);return _0x4f0c4d['dateTimeFormat']?_0x4f0c4d['dateTimeFormat'](_0x5edd17['toJSDate'](),_0x5c3638&&_0x5c3638['t']?_0x5c3638['t']:void 0x0):0x0===_0xc4117f?_0x5c3638?V(_0x5c3638,'Today')+'\x20'+_0x5edd17['toFormat']('hh:mma'):_0x5edd17['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0xc4117f?_0x5c3638?V(_0x5c3638,'Yesterday')+'\x20'+_0x5edd17['toFormat']('hh:mma'):_0x5edd17['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0xc4117f<0x7?_0x5c3638?V(_0x5c3638,'Last')+'\x20'+V(_0x5c3638,_0x5edd17['toFormat']('EEEE'))+'\x20'+_0x5edd17['toFormat']('hh:mma'):_0x5edd17['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x5edd17['toFormat']('LL-dd-yyyy\x20hh:mma');};}function _t(_0x18b96a,_0xa3ec17){const _0x577404=_0x18b96a['mapper']['markerNameToElements'](_0xa3ec17['name']);if(!_0x577404)return null;const _0xe8c87=_0x3baacd(_0x577404['values']());return _0x18b96a['view']['domConverter']['mapViewToDom'](_0xe8c87)||null;}function xt(_0x48219c,_0x3a2c6b){if(0x0===_0x3a2c6b['length'])return null;const _0x32711f=[],_0x5cb321=_0x48219c['view']['domConverter'];for(const _0x4d6f14 of _0x3a2c6b){const _0x288da3=_0x48219c['mapper']['markerNameToElements'](_0x4d6f14['name']);if(!_0x288da3)continue;const _0x2c6d71=Array['from'](_0x288da3)['map'](_0x375fe0=>_0x5cb321['mapViewToDom'](_0x375fe0))['filter'](_0x3781b2=>!!_0x3781b2);_0x32711f['push'](..._0x2c6d71);}if(0x0===_0x32711f['length'])return null;const _0x50c04=[];for(const _0x3d432e of _0x32711f){const _0xa4d12b=_0x3d432e['getClientRects']()['item'](0x0);_0xa4d12b&&_0x50c04['push']({'x':_0xa4d12b['x'],'y':_0xa4d12b['y'],'domElement':_0x3d432e});}return 0x0===_0x50c04['length']?null:(_0x50c04['sort']((_0x1abb72,_0xf6d13e)=>_0x1abb72['y']-_0xf6d13e['y']||_0x1abb72['x']-_0xf6d13e['x']),_0x50c04['map'](_0x4771df=>_0x4771df['domElement']));}function It(_0x3e77fa,{limit:_0x58203c,suffix:_0x57429a='...'}){const _0x231ec0=[];let _0x1030b4=0x0;const _0x1c0538=_0x3e77fa['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0xff87e4=0x0;_0xff87e4<_0x1c0538['length'];_0xff87e4++){let _0x26f2a6=_0x1c0538[_0xff87e4];const _0xc27c40=St(_0x26f2a6);if(_0x26f2a6['startsWith']('<')){if(_0x1030b4>=_0x58203c){const _0x26e4ff=_0x26f2a6['match'](/[a-zA-Z]+/);if(!_0x26e4ff){_0x1c0538[_0xff87e4]='';continue;}const _0x107b34=_0x26e4ff[0x0];_0x26f2a6['startsWith']('</')?(_0x231ec0['length']&&(_0x26f2a6=''),_0x231ec0['pop']()):(_0x231ec0['push'](_0x107b34),_0x26f2a6='');}}else{if(_0x1030b4>=_0x58203c)_0x26f2a6='';else{if(_0x1030b4+_0xc27c40['length']>=_0x58203c){let _0x132b64=_0x58203c-_0x1030b4;if('\x20'===_0xc27c40[_0x132b64-0x1])_0x132b64--;else{const _0x3ab5c2=_0xc27c40['slice'](_0x132b64)['indexOf']('\x20');-0x1!==_0x3ab5c2?_0x132b64+=_0x3ab5c2:_0x132b64=_0x26f2a6['length'];}_0x26f2a6=_0xc27c40['slice'](0x0,_0x132b64)['join']('')+_0x57429a,_0x1030b4=_0x58203c;}else _0x1030b4+=_0xc27c40['length'];}}_0x1c0538[_0xff87e4]=_0x26f2a6;}return _0x1c0538['join']('\x0a')['replace'](/\n/g,'');}function St(_0x17c9b5){const _0xc3ca35=[];for(let _0xffef69=0x0;_0xffef69<_0x17c9b5['length'];_0xffef69++){const _0x169d93=_0x17c9b5['substring'](_0xffef69)['match'](/^&[a-z0-9#]+;/);if(_0x169d93){const _0x25ba5f=_0x169d93[0x0];_0xc3ca35['push'](_0x25ba5f),_0xffef69+=_0x25ba5f['length']-0x1;}else _0xc3ca35['push'](_0x17c9b5[_0xffef69]);}return _0xc3ca35;}class Et extends _0x427d5a{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x2c4b7e){super(_0x2c4b7e);const _0x525753=this['bindTemplate'];this['set']('message',V(_0x2c4b7e,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x2c4b7e,V(_0x2c4b7e,'Yes'),_0xadbbeb,'submit'),this['cancelView']=this['_createButtonView'](_0x2c4b7e,V(_0x2c4b7e,'No'),_0x224f6c,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x39319c(),this['keystrokes']=new _0x132f5e(),this['focusCycler']=new _0x330702({'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':_0x525753['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'](_0x499f47,_0x40528b,_0x27e12d,_0xbd25de){const _0x5555e4=new _0x281959(_0x499f47);return _0x5555e4['label']=_0x40528b,_0x5555e4['icon']=_0x27e12d,_0x5555e4['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0xbd25de}}),_0x5555e4['on']('execute',()=>this['fire'](_0xbd25de)),_0x5555e4;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x11301=>{this['keystrokes']['listenTo'](_0x11301['element']),this['focusTracker']['add'](_0x11301['element']);}),this['keystrokes']['set']('esc',(_0x5652fc,_0x2d2fcd)=>{this['fire']('cancel'),_0x2d2fcd();});}}function Mt(_0x576b9a){return class extends _0x576b9a{['showConfirm'](_0x1555e9,_0x543f8b){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x1555e9,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x543f8b['appendChild'](this['confirmView']['element']),_0x543f8b['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x4c5327,_0x58a0a9,_0x27e1b6)=>{_0x27e1b6||_0x543f8b['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x1a1bef=>this['confirmView']['on']('submit',_0x1a1bef));}['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 At(_0x553fc5){let _0x189a19=0x0,_0x4a2998=0x0;for(const _0x55546f of Nt(_0x553fc5))_0x189a19=(_0x189a19<<0x5)-_0x189a19+_0x55546f,_0x189a19&=_0x189a19,[_0x189a19,_0x4a2998]=[_0x4a2998,_0x189a19];return Bt(_0x189a19)+Bt(_0x4a2998);}function*Tt(_0x39c066){null==_0x39c066||null==_0x39c066?yield 0x12b9b0a1:0x0===_0x39c066||!0x1===_0x39c066?yield 0x0:0x1===_0x39c066||0x1==_0x39c066?yield 0x1:Array['isArray'](_0x39c066)?yield*function*(_0x1809ed){for(const _0x226bb5 of _0x1809ed)yield*Tt(_0x226bb5);}(_0x39c066):'object'==typeof _0x39c066?yield*Nt(_0x39c066):'string'==typeof _0x39c066?yield*Pt(_0x39c066):'number'==typeof _0x39c066&&(yield _0x39c066);}function*Nt(_0x291c2d){if(yield Dt('{'),_0x291c2d){const _0x42ae8b=Object['keys'](_0x291c2d)['sort']();for(const _0x5d300f of _0x42ae8b){yield*Pt(_0x5d300f),yield Dt(':');const _0x3b8709=_0x291c2d[_0x5d300f];yield*Tt(_0x3b8709);}}yield Dt('}');}function*Pt(_0x484192){yield Dt('\x22');for(const _0x30aa98 of _0x484192)yield Dt(_0x30aa98);yield Dt('\x22');}function Dt(_0x3bc7d9){return _0x3bc7d9['charCodeAt'](0x0);}function Bt(_0x890bf6){return(_0x890bf6*=Math['sign'](_0x890bf6))['toString'](0x24);}const Ot=['root','roots','initialData','context','toolbar','rootsAttributes'],Vt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function $t(_0x3d3a93,_0x4c17b2,_0x4bfe9c,_0x4f648d=[]){const _0x226c6f='string'==typeof _0x3d3a93?_0x4bfe9c['get'](_0x3d3a93)['constructor']:_0x3d3a93['prototype']['constructor'];if(_0x4c17b2['has'](_0x226c6f))return _0x4c17b2['get'](_0x226c6f);_0x4c17b2['set'](_0x226c6f,!0x0);const _0x120612=[...Vt,..._0x4f648d]['map'](_0x57cfd9=>{if(_0x4bfe9c['has'](_0x57cfd9))return _0x4bfe9c['get'](_0x57cfd9)['constructor'];})['filter'](_0x2750af=>_0x2750af);if(_0x226c6f&&_0x120612['includes'](_0x226c6f))return _0x4c17b2['set'](_0x226c6f,!0x1),!0x1;if(!_0x226c6f['requires'])return _0x4c17b2['set'](_0x226c6f,!0x0),!0x0;const _0x10959=_0x226c6f['requires']['every'](_0x588704=>$t(_0x588704,_0x4c17b2,_0x4bfe9c,_0x4f648d));return _0x4c17b2['set'](_0x226c6f,_0x10959),_0x10959;}function Lt(_0x22b56b,_0xb9ec38){const _0x427c42={};for(const _0xb2d42 of _0x22b56b['config']['names']())Ot['includes'](_0xb2d42)||(_0x427c42[_0xb2d42]=_0x22b56b['config']['get'](_0xb2d42));const _0x2efd23=_0x427c42['plugins']||[],_0x287a80=_0x22b56b['constructor']['builtinPlugins']||[],_0xdb00aa=_0x2efd23['length']?_0x2efd23:_0x287a80,_0x558cac=_0x427c42['extraPlugins']||[];delete _0x427c42['extraPlugins'];const _0x3fcdfe=_0x427c42['removePlugins']||[];delete _0x427c42['removePlugins'];const _0x246e7d=_0x22b56b['_context']['config']['get']('plugins')||[],_0x465e00=_0xdb00aa['concat'](_0x558cac)['concat'](_0x246e7d)['map'](_0x213248=>'string'==typeof _0x213248?_0x287a80['find'](_0x220251=>_0x220251['pluginName']==_0x213248):_0x213248)['filter'](_0x31447d=>!_0x3fcdfe['includes'](_0x31447d)&&!_0x3fcdfe['includes'](_0x31447d['pluginName'])),_0xcc3541=Array['from'](new Set(_0x465e00)),_0x59b336=new Map();return _0x427c42['plugins']=_0xcc3541['filter'](_0x5e81ac=>$t(_0x5e81ac,_0x59b336,_0x22b56b['plugins'],_0xb9ec38)),_0x427c42;}function Ut(_0x2e8c79,_0x35cba6){const _0x33ff45=[];_0x2e8c79['document']['selection']['on']('change:range',()=>{const _0x15d5a9=function(_0x5ebfa7,_0x131f9b){const _0x115e59=[];for(const _0x5ba634 of _0x5ebfa7['markers']){const _0x24e3cd=_0x5ba634['getRange']();(_0x24e3cd['containsPosition'](_0x131f9b)||_0x24e3cd['start']['isEqual'](_0x131f9b)||_0x24e3cd['end']['isEqual'](_0x131f9b))&&_0x115e59['push'](_0x5ba634);}return _0x115e59;}(_0x2e8c79,_0x2e8c79['document']['selection']['focus']),_0x55683d=[],_0x134058=[],_0x3c0143=[];for(const _0x55b6c8 of _0x33ff45)_0x15d5a9['includes'](_0x55b6c8)||_0x55683d['push'](_0x55b6c8);for(const _0x9478c0 of _0x15d5a9)_0x33ff45['includes'](_0x9478c0)||_0x134058['push'](_0x9478c0),_0x3c0143['push'](_0x9478c0);(_0x55683d['length']||_0x134058['length'])&&_0x35cba6({'left':_0x55683d,'entered':_0x134058}),_0x33ff45['length']=0x0,_0x33ff45['push'](..._0x3c0143);});}const Rt='Ctrl+Shift+E';function Ft(_0x586510,_0x5492ac){const _0x36cd63=_0x586510['element'];_0x586510['keystrokes']['listenTo'](_0x36cd63);for(const _0x533eeb of _0x5492ac)Ht(_0x586510,_0x533eeb);_0x5492ac['on']('change',(_0x15fa98,_0x2825b3)=>{for(const _0x2338e5 of _0x2825b3['removed'])zt(_0x586510,_0x2338e5);for(const _0x378c41 of Array['from'](_0x2825b3['added'])['reverse']())Ht(_0x586510,_0x378c41);}),_0x586510['keystrokes']['set']('enter',(_0x41a3e0,_0x2fac40)=>{_0x36cd63===_0x41a3e0['target']&&(_0x586510['focusCycler']['focusFirst'](),_0x2fac40());},{'filter':_0x1b8de7=>_0x1b8de7['target']===_0x36cd63}),_0x586510['keystrokes']['set']('esc',(_0x1cac3c,_0x487a8c)=>{_0x36cd63!==_0x1cac3c['target']?_0x586510['focus']():_0x586510['fire']('escape'),_0x487a8c();}),_0x586510['keystrokes']['set']('arrowdown',(_0x15b056,_0xf5466c)=>{_0x36cd63===_0x15b056['target']&&(_0x586510['fire']('arrowdown'),_0xf5466c());}),_0x586510['keystrokes']['set']('arrowup',(_0x3ddbc9,_0x4260f7)=>{_0x36cd63===_0x3ddbc9['target']&&(_0x586510['fire']('arrowup'),_0x4260f7());});}function Ht(_0x3ade3c,_0x2cef5c){_0x2cef5c['isRendered']&&(_0x3ade3c['focusTracker']['add'](_0x2cef5c['element']),_0x3ade3c['keystrokes']['listenTo'](_0x2cef5c['element']),_0x216cda(_0x2cef5c)&&function(_0xa02e0,_0x2b4959){const _0x365c16=_0xa02e0['actions'],_0x5e19e6=_0x2b4959['actions'];for(const _0x51abef of Object['keys'](_0x365c16))if(_0x51abef in _0x5e19e6&&_0x365c16[_0x51abef]!==_0x5e19e6[_0x51abef])return!0x1;return!0x0;}(_0x3ade3c['focusCycler'],_0x2cef5c['focusCycler'])&&_0x3ade3c['focusCycler']['chain'](_0x2cef5c['focusCycler']));}function zt(_0x287c35,_0x1a842a){_0x287c35['focusTracker']['remove'](_0x1a842a['element']),_0x287c35['keystrokes']['stopListening'](_0x1a842a['element']),_0x216cda(_0x1a842a)&&_0x287c35['focusCycler']['unchain'](_0x1a842a['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x128ff8{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x5402a0?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x6fd6a3,_0x50d910)=>{_0x50d910['on']('ready',()=>{this['_integrateEditor'](_0x50d910);});});}get['editor'](){if(this['context']instanceof _0x5402a0)return this['context'];{const _0x46bad3=this['context']['editors']['first'];if(!_0x46bad3)throw new _0x5f123d('documentcompare-no-editor',this);return _0x46bad3;}}['getDiff'](_0x5ee781,_0x1bb635,_0x54787f={'anchor':'main','markDeletions':!0x1}){const _0xea916=_0x54787f['targetEditor']||this['editor'];let _0x972883,_0x43e93;if('string'==typeof _0x54787f['anchor']){const _0x2ed173=_0xea916['model']['document']['getRoot'](_0x54787f['anchor']);if(!_0x2ed173)throw new _0x5f123d('documentcompare-compare-no-root',this,{'anchor':_0x54787f['anchor']});_0x972883=_0x2ed173,_0x43e93=_0xea916['model']['createPositionAt'](_0x2ed173,0x0);}else _0x972883=_0x54787f['anchor']['clone'](),_0x43e93=_0x54787f['anchor']['clone']();const _0x4e5b52=_0xea916['data']['parse'](_0x5ee781,_0x972883),_0x234f9d=_0xea916['data']['parse'](_0x1bb635,_0x972883);return new Jt({'editor':_0xea916,'before':_0x4e5b52,'after':_0x234f9d,'options':{'anchor':_0x43e93,'markDeletions':_0x54787f['markDeletions']}});}['isMarkedRemoveOperation'](_0x4f2399){return'marker'==_0x4f2399['type']&&_0x4f2399['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x30794d){_0x30794d['conversion']['for']('upcast')['add'](_0x3b214e=>{_0x3b214e['on']('element',(_0xa05ae9,_0x1f7854,_0x2cbd22)=>{if(_0x1f7854['modelRange'])for(const _0x2b6278 of _0x1f7854['modelRange']['getItems']({'shallow':!0x0})){if(_0x2b6278['is']('$textProxy'))continue;const _0x336332=_0x1f7854['viewItem']['getAttribute'](jt);_0x336332&&_0x2cbd22['writer']['setAttribute'](Wt,_0x336332,_0x2b6278);}},{'priority':'lowest'});}),_0x30794d['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x4d1a99,before:_0x3bbd17,after:_0x540140,options:_0x1ac68d}){this['_editor']=_0x4d1a99,this['_markDeletions']=!!_0x1ac68d['markDeletions'],this['_anchor']=_0x1ac68d['anchor'];const _0x5a474e=this['_tokenizeModel'](_0x3bbd17),_0x3cfd4d=this['_tokenizeModel'](_0x540140);this['_diffItems']=this['_diffModelTokens'](_0x5a474e,_0x3cfd4d),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x3bbd17['markers'],_0x540140['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x3845d1=this['_editor']['model']['document'],_0x2d2d20=[];let _0x3803b8=_0x3845d1['version'];for(const _0xb6cf82 of this['_operationsData'])switch(_0xb6cf82['type']){case'attribute':{const _0x429c5c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['path']),_0x399d89=_0x429c5c['getShiftedBy'](_0xb6cf82['howMany']),_0x2327a5=new _0x1f2d41(_0x429c5c,_0x399d89),_0xc585ed=JSON['parse'](_0xb6cf82['oldValue']),_0x447486=JSON['parse'](_0xb6cf82['newValue']);_0x2d2d20['push'](new _0x2e2014(_0x2327a5,_0xb6cf82['key'],_0xc585ed,_0x447486,_0x3803b8++));break;}case'insert':{const _0xbbae27=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['path']),_0x418832=this['_makeModelFromTokens'](_0xb6cf82['tokens']);_0x2d2d20['push'](new _0x53a914(_0xbbae27,_0x418832,_0x3803b8++));break;}case'remove':{const _0xf28b6d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['path']),_0x2a3eef=new _0x10323b(_0x3845d1['graveyard'],[0x0]);_0x2d2d20['push'](new _0x47aae0(_0xf28b6d,_0xb6cf82['howMany'],_0x2a3eef,_0x3803b8++));break;}case'rename':{const _0x45c6d9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['path']);_0x2d2d20['push'](new _0x1e0192(_0x45c6d9,_0xb6cf82['oldName'],_0xb6cf82['newName'],_0x3803b8++));break;}case'split':{const _0x20b51d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['path']),_0x451d84=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['path']['slice'](0x0,-0x1));_0x451d84['offset']++,_0x2d2d20['push'](new _0x551adc(_0x20b51d,Number['NEGATIVE_INFINITY'],_0x451d84,null,_0x3803b8++));break;}case'merge':{const _0xac344c=_0xb6cf82['path']['slice'](),_0x2eebb3=_0xac344c['slice'](0x0,-0x1);_0x2eebb3[_0x2eebb3['length']-0x1]++,_0x2eebb3['push'](0x0);const _0x3b2ace=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2eebb3),_0x3723dd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xac344c),_0x4cd263=new _0x10323b(_0x3845d1['graveyard'],[0x0]);_0x2d2d20['push'](new _0x2234c6(_0x3b2ace,Number['NEGATIVE_INFINITY'],_0x3723dd,_0x4cd263,_0x3803b8++));break;}case'marker':case'markedRemove':{let _0x47a88f=null;if(_0xb6cf82['range']){const _0xb4e40e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['range']['start']),_0x3bfa13=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['range']['end']);_0x47a88f=new _0x1f2d41(_0xb4e40e,_0x3bfa13);}const _0x5504e2='marker'==_0xb6cf82['type']?_0xb6cf82['name']:'$markedRemove:'+_0x403a3d();_0x2d2d20['push'](new _0x553ec6(_0x5504e2,null,_0x47a88f,_0x3845d1['model']['markers'],!0x0,_0x3803b8++));break;}case'unwrap':{const _0x2dc04c=_0xb6cf82['path']['slice']();_0x2dc04c['push'](0x0);const _0x15db2d=_0xb6cf82['path']['slice'](),_0xde5962=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2dc04c),_0x161c67=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x15db2d),_0x3fa5b5=new _0x10323b(_0x3845d1['graveyard'],[0x0]);_0x2d2d20['push'](new _0x47aae0(_0xde5962,_0xb6cf82['howMany'],_0x161c67,_0x3803b8++)),_0x2d2d20['push'](new _0x47aae0(_0x161c67['getShiftedBy'](_0xb6cf82['howMany']),0x1,_0x3fa5b5,_0x3803b8++));break;}case'wrap':{const _0x5d2bd2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['range']['start']),_0x21cf80=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xb6cf82['range']['end']),_0x342048=_0xb6cf82['token']['element']['_clone'](!0x1),_0x2cef2c=_0xb6cf82['range']['end']['slice']();_0x2cef2c['push'](0x0);const _0x759c64=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2cef2c);_0x2d2d20['push'](new _0x53a914(_0x21cf80,_0x342048,_0x3803b8++)),_0x2d2d20['push'](new _0x47aae0(_0x5d2bd2,_0x21cf80['offset']-_0x5d2bd2['offset'],_0x759c64,_0x3803b8++));break;}}return _0x2d2d20;}['_tokenizeModel'](_0x876782){const _0x599b13=[],_0x41ed61=_0x1f2d41['_createIn'](_0x876782),_0x2edc20=new _0x560a61({'boundaries':_0x41ed61});let _0x4035a8='',_0x88cfbd=null;const _0x1954da=[''],_0x282bae=new Map();for(const _0x4ea134 of _0x2edc20)if('elementStart'==_0x4ea134['type']||'elementEnd'==_0x4ea134['type']){let _0xd30202=_0x1954da[0x0];''!==_0x4035a8&&(_0x599b13['push'](...this['_makeTokensFromTextByWords'](_0x4035a8,_0x88cfbd,_0xd30202)),_0x4035a8='');const _0x5a6f39=_0x4ea134['item'];let _0x13107f;_0x5a6f39['getAttribute'](Wt)?_0x13107f=_0x5a6f39['getAttribute'](Wt):'elementStart'==_0x4ea134['type']?(_0x13107f=qt(_0x5a6f39),_0x282bae['set'](_0x5a6f39,_0x13107f)):_0x13107f=_0x282bae['get'](_0x5a6f39);const _0x211056=this['_getElementCategory'](_0x5a6f39);'solid'==_0x211056&&('elementStart'==_0x4ea134['type']?(_0xd30202=_0x13107f,_0x1954da['unshift'](_0xd30202)):_0x1954da['shift']());const _0x79065b={'type':'element','element':_0x5a6f39,'elementId':_0x13107f,'category':_0x211056,'isStart':'elementStart'==_0x4ea134['type'],'limitId':_0xd30202};_0x599b13['push'](_0x79065b);}else''==_0x4035a8&&(_0x88cfbd=_0x4ea134['previousPosition']['clone']()),_0x4035a8+=_0x4ea134['item']['data'];return''!==_0x4035a8&&_0x599b13['push'](...this['_makeTokensFromTextByWords'](_0x4035a8,_0x88cfbd,_0x1954da[0x0])),_0x599b13;}['_makeTokensFromTextByWords'](_0x1df209,_0x529fd8,_0x1ebc33){const _0x4087f4=_0x1df209['matchAll'](/(\s)/g),_0x7f3f9c=Array['from'](_0x4087f4)['map'](_0x2f0dc2=>_0x2f0dc2['index']);_0x7f3f9c['push'](_0x1df209['length']),0x0==_0x7f3f9c[0x0]&&_0x7f3f9c['shift']();const _0x19d218=[],_0x29fba3=_0x529fd8['parent'];let _0x839879=0x0,_0x4b54fb=_0x529fd8['offset'];for(let _0xb7f4e7=0x0;_0xb7f4e7<_0x7f3f9c['length'];_0xb7f4e7++)_0x19d218['push']({'type':'text','data':_0x1df209['slice'](_0x839879,_0x7f3f9c[_0xb7f4e7]),'parent':_0x29fba3,'offset':_0x4b54fb,'limitId':_0x1ebc33}),_0x839879=_0x7f3f9c[_0xb7f4e7],_0x4b54fb=_0x529fd8['offset']+_0x7f3f9c[_0xb7f4e7];return _0x19d218;}['_getElementCategory'](_0xe77d72){const _0x53632e=this['_editor']['model']['schema'];return _0x53632e['isLimit'](_0xe77d72)||_0x53632e['isContent'](_0xe77d72)||_0x53632e['isInline'](_0xe77d72)?'solid':_0x53632e['isBlock'](_0xe77d72)?'block':'container';}['_diffModelTokens'](_0xb43a89,_0x1c82db){const _0x5e3d1c=_0x271c18(_0xb43a89,_0x1c82db,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x5e3d1c);const _0x4ff94d=_0x5e3d1c['flatMap'](_0x377d99=>{const _0x24c83f=_0x377d99['added']?'added':_0x377d99['removed']?'removed':'unchanged';return _0x377d99['value']['map'](_0x1a8624=>({'token':_0x1a8624,'change':_0x24c83f}));});let _0x5ba3f7=0x0;for(const _0x2eaa0a of _0x4ff94d)'added'!=_0x2eaa0a['change']&&('unchanged'==_0x2eaa0a['change']&&(_0x2eaa0a['before']=_0xb43a89[_0x5ba3f7]),_0x5ba3f7++);return _0x4ff94d;}['_handleUnclosedBlockOpeningTags'](_0x446069){for(let _0x20a127=0x0;_0x20a127<_0x446069['length']-0x1;_0x20a127++)if(_0x446069[_0x20a127]['removed']&&_0x446069[_0x20a127+0x1]['added']){const _0x8933cd=this['_findUnclosedBlockOpeningToken'](_0x446069[_0x20a127]['value']);if(null!==_0x8933cd){const _0x933962=this['_findUnclosedBlockOpeningToken'](_0x446069[_0x20a127+0x1]['value']),_0x2c88b5=_0x446069[_0x20a127]['value']['splice'](_0x8933cd),_0x116aba=_0x446069[_0x20a127+0x1]['value']['splice'](_0x933962),_0x4a7443=[_0x116aba['shift']()];_0x2c88b5['shift']();const _0x5e1302={'value':_0x2c88b5,'removed':!0x0},_0x1a5291={'value':_0x116aba,'added':!0x0},_0x38d83f={'value':_0x4a7443};_0x446069['splice'](_0x20a127+0x2,0x0,_0x38d83f,_0x5e1302,_0x1a5291);}}}['_findUnclosedBlockOpeningToken'](_0x381df9){let _0x41fec4=0x0,_0x37614c=-0x1;for(let _0x542b70=0x0;_0x542b70<_0x381df9['length'];_0x542b70++){const _0x114304=_0x381df9[_0x542b70];'element'==_0x114304['type']&&'block'==_0x114304['category']&&(_0x41fec4+=_0x114304['isStart']?0x1:-0x1,_0x114304['isStart']&&(_0x37614c=_0x542b70));}return 0x0===_0x41fec4?null:_0x37614c;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x35dbf3=0x0;_0x35dbf3<this['_diffItems']['length'];_0x35dbf3++){const _0x50f278=this['_diffItems'][_0x35dbf3]['change'],_0x3eba88=[];_0x3eba88['push'](this['_diffItems'][_0x35dbf3]);let _0x21096c=_0x35dbf3+0x1;for(;this['_diffItems'][_0x21096c]&&this['_diffItems'][_0x21096c]['change']==_0x50f278;)_0x3eba88['push'](this['_diffItems'][_0x21096c]),_0x21096c++,_0x35dbf3++;const _0x475b9d=_0x3eba88['map'](_0x16205e=>_0x16205e['token']);if('unchanged'==_0x50f278)_0x3eba88['map'](_0x4c17f4=>_0x4c17f4['before'])['forEach'](_0x3d02bf=>this['_traverseOverItem'](_0x3d02bf));else{if('removed'==_0x50f278){if(this['_markDeletions']){const _0x454f31=this['_path']['slice']();_0x475b9d['forEach'](_0x3be8df=>this['_traverseOverItem'](_0x3be8df));const _0x2e2fc3=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x454f31,'end':_0x2e2fc3}});}else this['_handleChanged'](_0x475b9d,!0x0,this['_path']['slice']());}else{const _0x5daf33=_0x475b9d['filter'](_0x121371=>'element'!=_0x121371['type']||'container'!=_0x121371['category']);this['_handleChanged'](_0x5daf33,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x1e56ea=0x0;_0x1e56ea<this['_diffItems']['length'];_0x1e56ea++){const _0x1b4516=this['_diffItems'][_0x1e56ea]['change'],_0x3e4b78=[];_0x3e4b78['push'](this['_diffItems'][_0x1e56ea]);let _0x3b8043=_0x1e56ea+0x1;for(;this['_diffItems'][_0x3b8043]&&this['_diffItems'][_0x3b8043]['change']==_0x1b4516;)_0x3e4b78['push'](this['_diffItems'][_0x3b8043]),_0x3b8043++,_0x1e56ea++;const _0x2aefe1=_0x3e4b78['map'](_0x5c96b8=>_0x5c96b8['token']);if('unchanged'==_0x1b4516){const _0xf7953c=_0x3e4b78['map'](_0x409811=>_0x409811['before']);this['_handleUnchanged'](_0xf7953c,_0x2aefe1);}else('added'==_0x1b4516||this['_markDeletions'])&&_0x2aefe1['forEach'](_0x1a5f96=>{'element'==_0x1a5f96['type']&&_0x1a5f96['isStart']&&this['_splitPostponedData']['has'](_0x1a5f96['element'])&&this['_handleSplitPostponedData'](_0x1a5f96['element'],this['_path']),this['_traverseOverItem'](_0x1a5f96);});}}['_handleSplitPostponedData'](_0x30eaaa,_0x38db62){const _0x5f221e=this['_splitPostponedData']['get'](_0x30eaaa);for(const _0x5a90d4 of _0x5f221e)'rename'==_0x5a90d4['type']?this['_operationsData']['push']({'type':'rename','path':_0x38db62['slice'](),'oldName':_0x5a90d4['oldValue'],'newName':_0x30eaaa['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x38db62['slice'](),'howMany':0x1,'key':_0x5a90d4['key'],'oldValue':_0x5a90d4['oldValue'],'newValue':JSON['stringify'](_0x30eaaa['getAttribute'](_0x5a90d4['key'])??null)});}['_calculateMarkersOperationsData'](_0x3cfb5f,_0xbdb287){const _0xb0b134={};for(const [_0x32df0d]of _0x3cfb5f)_0xb0b134[_0x32df0d]=null;for(const [_0x585b94,_0x2580c3]of _0xbdb287)_0xb0b134[_0x585b94]=_0x2580c3;const _0xe263b9=Object['entries'](_0xb0b134)['map'](([_0x3f3124,_0x3070eb])=>({'type':'marker','name':_0x3f3124,'range':_0x3070eb?{'start':_0x3070eb['start']['path']['slice'](),'end':_0x3070eb['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xe263b9);}['_handleUnwraps'](){const _0x20fe4f=new Map(),_0x58de97=[],_0x1cea99=[0x0];let _0x2b7b06=this['_diffItems']['length']+0x1;for(let _0x1cddc5=this['_diffItems']['length']-0x1;_0x1cddc5>=0x0;_0x1cddc5--){const {token:_0x492020,before:_0x47441c,change:_0x4b0d57}=this['_diffItems'][_0x1cddc5];if('removed'!=_0x4b0d57&&(_0x2b7b06=_0x1cddc5),'element'!=_0x492020['type']||'container'!=_0x492020['category']||'added'==_0x4b0d57)continue;const _0x3703c3=_0x47441c?_0x47441c['element']:_0x492020['element'];if(_0x492020['isStart']){const _0x130108=_0x20fe4f['get'](_0x3703c3),_0x1d1206=this['_diffItems'][_0x130108];('removed'==_0x4b0d57||'removed'==_0x1d1206['change'])&&_0x2b7b06<_0x130108&&(this['_operationsData']['push']({'type':'unwrap','path':_0x3703c3['getPath'](),'howMany':_0x3703c3['maxOffset']+_0x1cea99[0x0]}),_0x1cea99['shift'](),_0x1cea99[0x0]+=_0x3703c3['maxOffset']-0x1,_0x58de97['push'](_0x1cddc5),_0x58de97['push'](_0x130108));}else _0x20fe4f['set'](_0x3703c3,_0x1cddc5),_0x1cea99['unshift'](0x0);}_0x58de97['sort']((_0x3375b6,_0x2068a7)=>_0x2068a7-_0x3375b6),_0x58de97['forEach'](_0x186480=>{const _0x1fb4b9=this['_diffItems'][_0x186480];'removed'==_0x1fb4b9['change']?this['_diffItems']['splice'](_0x186480,0x1):(_0x1fb4b9['change']='added',delete _0x1fb4b9['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x238511=[];for(let _0x5d594b=0x0;_0x5d594b<this['_diffItems']['length'];_0x5d594b++){const {change:_0xc498ee,token:_0xfdfd4c}=this['_diffItems'][_0x5d594b];if('added'==_0xc498ee&&'element'==_0xfdfd4c['type']&&'container'==_0xfdfd4c['category']){if(_0xfdfd4c['isStart'])_0x238511['push'](this['_path']['slice']());else{if(!_0xfdfd4c['isStart']){const _0x460d58=_0x238511['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x460d58,'end':this['_path']['slice']()},'token':_0xfdfd4c}),this['_path'][this['_path']['length']-0x1]=_0x460d58[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0xc498ee||this['_markDeletions'])&&this['_traverseOverItem'](_0xfdfd4c);}}['_handleUnchanged'](_0x44885a,_0x232fe0){for(let _0x26eff5=0x0;_0x26eff5<_0x44885a['length'];_0x26eff5++){const _0x5c0a4a=_0x44885a[_0x26eff5];if('element'==_0x5c0a4a['type']&&_0x5c0a4a['isStart']){const _0x2027b0=_0x232fe0[_0x26eff5];'block'==_0x5c0a4a['category']&&this['_handleElementRename'](_0x5c0a4a['element'],_0x2027b0['element'],this['_path']),this['_handleElementAttributeChanges'](_0x5c0a4a['element'],_0x2027b0['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x2027b0);}else{if('element'!=_0x5c0a4a['type']||_0x5c0a4a['isStart']){if('text'==_0x5c0a4a['type']){const _0x2a5d7d=this['_path']['slice'](),_0xceadf9=[],_0x3dfe6e=[];for(;_0x44885a[_0x26eff5]&&'text'==_0x44885a[_0x26eff5]['type'];)_0xceadf9['push'](_0x44885a[_0x26eff5]),_0x3dfe6e['push'](_0x232fe0[_0x26eff5]),this['_path'][this['_path']['length']-0x1]+=_0x44885a[_0x26eff5]['data']['length'],_0x26eff5++;_0x26eff5--,this['_handleTextAttributeChanges'](_0xceadf9,_0x3dfe6e,_0x2a5d7d);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x237189,_0x21d5c4,_0x3db52d){const _0x594846=[],_0x5cd1fb=[],_0x5d3f33=_0x3db52d['slice']();let _0x15f9f6=this['_parents']['length']-0x1;for(let _0x5dfbf9=0x0;_0x5dfbf9<_0x237189['length'];_0x5dfbf9++){const _0x22b878=_0x237189[_0x5dfbf9],_0x5f429d=_0x3db52d['slice']();'element'!=_0x22b878['type']||_0x22b878['isStart']?'element'==_0x22b878['type']&&_0x22b878['isStart']?(_0x3db52d['push'](0x0),_0x15f9f6++,_0x5cd1fb['push']({'before':_0x5f429d,'after':_0x3db52d['slice'](),'index':_0x5dfbf9})):_0x3db52d[_0x3db52d['length']-0x1]+=_0x22b878['data']['length']:(_0x3db52d['pop'](),_0x3db52d[_0x3db52d['length']-0x1]++,_0x15f9f6--,_0x5cd1fb['length']?_0x5cd1fb['pop']():_0x594846['push']({'before':_0x5f429d,'after':_0x3db52d['slice'](),'index':_0x5dfbf9}));}if(_0x5cd1fb['length']!==_0x594846['length'])throw new _0x5f123d('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x237189,'isRemove':_0x21d5c4});const _0xf1c763=[{'after':_0x5d3f33['slice'](),'index':-0x1},..._0x594846,..._0x5cd1fb,{'before':_0x3db52d['slice'](),'index':_0x237189['length']}];if(_0x21d5c4){for(let _0x5eaf59=_0xf1c763['length']-0x1;_0x5eaf59>=0x1;_0x5eaf59--){const _0x566ba4=_0xf1c763[_0x5eaf59-0x1]['after'],_0x16c8d8=_0xf1c763[_0x5eaf59]['before'],_0x794dc9=_0x16c8d8[_0x16c8d8['length']-0x1]-_0x566ba4[_0x566ba4['length']-0x1];_0x794dc9&&(this['_operationsData']['push']({'type':'remove','path':_0x566ba4,'howMany':_0x794dc9}),_0x16c8d8[_0x16c8d8['length']-0x1]-=_0x794dc9);}for(const {before:_0x47efc0}of _0x594846)this['_operationsData']['push']({'type':'merge','path':_0x47efc0});}else for(let _0x3d7cca=0x0;_0x3d7cca<_0xf1c763['length']-0x1;_0x3d7cca++){const _0x46ebec=_0xf1c763[_0x3d7cca]['after'],_0x3e1514=_0xf1c763[_0x3d7cca+0x1]['before'],_0x301b4e=_0xf1c763[_0x3d7cca]['index']+0x1,_0x524ab2=_0xf1c763[_0x3d7cca+0x1]['index'];if(_0x301b4e!==_0x524ab2&&this['_operationsData']['push']({'type':'insert','path':_0x46ebec,'tokens':_0x237189['slice'](_0x301b4e,_0x524ab2)}),_0x3d7cca<_0x594846['length']){this['_operationsData']['push']({'type':'split','path':_0x3e1514});const _0x5bc2b0=_0x237189[_0x5cd1fb[_0x5cd1fb['length']-0x1-_0x3d7cca]['index']],_0x592847=this['_parents'][_0x15f9f6]['element'];_0x592847['name']!=_0x5bc2b0['element']['name']&&this['_addSplitPostponedData'](_0x5bc2b0['element'],{'type':'rename','oldValue':_0x592847['name']});const _0x4281e7=this['_getAttributeChanges'](_0x592847['getAttributes'](),_0x5bc2b0['element']['getAttributes']());for(const _0x52bbd9 in _0x4281e7){const _0x5a7d32=_0x4281e7[_0x52bbd9]['oldValue'];this['_addSplitPostponedData'](_0x5bc2b0['element'],{'type':'attribute','key':_0x52bbd9,'oldValue':_0x5a7d32});}}}}['_addSplitPostponedData'](_0x13af4e,_0x48804f){const _0x2242cf=this['_splitPostponedData']['get'](_0x13af4e)||[];_0x2242cf['push'](_0x48804f),this['_splitPostponedData']['set'](_0x13af4e,_0x2242cf);}['_traverseOverItem'](_0x330645){'element'==_0x330645['type']&&_0x330645['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x330645)):'element'!=_0x330645['type']||_0x330645['isStart']?'text'==_0x330645['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x330645['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x5a0287,_0x5e0169,_0x3c1c48){_0x5a0287['name']!=_0x5e0169['name']&&this['_operationsData']['push']({'type':'rename','path':_0x3c1c48['slice'](),'oldName':_0x5a0287['name'],'newName':_0x5e0169['name']});}['_handleElementAttributeChanges'](_0x7f1baa,_0x5b511a,_0x22b0c0){const _0x7420e2=this['_getAttributeChanges'](_0x7f1baa['getAttributes'](),_0x5b511a['getAttributes']());for(const _0x3ac17e in _0x7420e2){const {oldValue:_0x2f2658,newValue:_0x341b3e}=_0x7420e2[_0x3ac17e];this['_operationsData']['push']({'type':'attribute','path':_0x22b0c0['slice'](),'howMany':0x1,'key':_0x3ac17e,'oldValue':_0x2f2658,'newValue':_0x341b3e});}}['_handleTextAttributeChanges'](_0x321391,_0x18aea7,_0x411a50){const _0x21742d=this['_operationsData'],_0xf1e404=_0x321391[0x0]['parent'],_0x115a70=_0x321391[0x0]['offset'],_0x4a0a9c=_0x18aea7[0x0]['parent'],_0x238741=_0x18aea7[0x0]['offset'],_0x12da74=_0x321391['reduce']((_0x3aed37,_0x126a3c)=>_0x3aed37+_0x126a3c['data']['length'],0x0),_0x210205=this['_getAttrsForOffsets'](_0xf1e404,_0x115a70,_0x12da74),_0x5549e4=this['_getAttrsForOffsets'](_0x4a0a9c,_0x238741,_0x12da74),_0x1a5f0e={};for(let _0x199303=0x0;_0x199303<_0x12da74;_0x199303++){const _0x509b5d=_0x210205[_0x115a70+_0x199303],_0x5cf770=_0x5549e4[_0x238741+_0x199303],_0x368026=this['_getAttributeChanges'](_0x509b5d,_0x5cf770);for(const _0x570841 in _0x1a5f0e)_0x368026[_0x570841]||_0x5c2191(_0x570841);for(const _0x5298e3 in _0x368026){const {oldValue:_0x3db7bf,newValue:_0x13ffcf}=_0x368026[_0x5298e3],_0x4188d1=_0x1a5f0e[_0x5298e3];_0x4188d1?_0x4188d1['oldValue']==_0x3db7bf&&_0x4188d1['newValue']==_0x13ffcf?_0x4188d1['length']++:(_0x5c2191(_0x5298e3),_0x1a5f0e[_0x5298e3]={'oldValue':_0x3db7bf,'newValue':_0x13ffcf,'start':_0x199303,'length':0x1}):_0x1a5f0e[_0x5298e3]={'oldValue':_0x3db7bf,'newValue':_0x13ffcf,'start':_0x199303,'length':0x1};}}for(const _0x21310e in _0x1a5f0e)_0x5c2191(_0x21310e);function _0x5c2191(_0x4bf9b9){const _0x3f75f1=_0x1a5f0e[_0x4bf9b9],_0x18424b=_0x411a50['slice']();_0x18424b[_0x18424b['length']-0x1]+=_0x3f75f1['start'],_0x21742d['push']({'type':'attribute','path':_0x18424b,'howMany':_0x3f75f1['length'],'key':_0x4bf9b9,'oldValue':_0x3f75f1['oldValue'],'newValue':_0x3f75f1['newValue']}),delete _0x1a5f0e[_0x4bf9b9];}}['_getAttributeChanges'](_0x462a23,_0x586b57){const _0x190f4c={};for(const [_0x392a4f,_0x30cec2]of _0x462a23)_0x190f4c[_0x392a4f]={'oldValue':JSON['stringify'](_0x30cec2),'newValue':'null'};for(const [_0x1e6ded,_0x50ff0d]of _0x586b57){const _0x280885=JSON['stringify'](_0x50ff0d);_0x190f4c[_0x1e6ded]?_0x190f4c[_0x1e6ded]['oldValue']==_0x280885?delete _0x190f4c[_0x1e6ded]:_0x190f4c[_0x1e6ded]['newValue']=_0x280885:_0x190f4c[_0x1e6ded]={'oldValue':'null','newValue':_0x280885};}return delete _0x190f4c[Wt],_0x190f4c;}['_getAttrsForOffsets'](_0x506453,_0x25c81e,_0x17073c){const _0x7f68b9=new Array(_0x25c81e+_0x17073c);let _0xb8f142=_0x506453['getChildAtOffset'](_0x25c81e),_0x2d4b2c=_0xb8f142['startOffset'];for(;_0xb8f142&&_0x2d4b2c<_0x25c81e+_0x17073c;){const _0x4681b8=Array['from'](_0xb8f142['getAttributes']());_0x7f68b9['fill'](_0x4681b8,_0x2d4b2c,_0x2d4b2c+_0xb8f142['offsetSize']),_0x2d4b2c+=_0xb8f142['offsetSize'],_0xb8f142=_0xb8f142['nextSibling'];}return _0x7f68b9;}['_getPositionFromAnchorAndPath'](_0x144c84,_0x446e82){const _0x341fea=[..._0x144c84['path']['slice'](0x0,-0x1),_0x144c84['offset']+_0x446e82[0x0],..._0x446e82['slice'](0x1)];return new _0x10323b(_0x144c84['root'],_0x341fea);}['_makeModelFromTokens'](_0x147548){const _0x4e63f5=[];let _0x3b1a88=null;for(const _0x157a25 of _0x147548)if('element'!=_0x157a25['type']||_0x157a25['isStart']||_0x3b1a88!=_0x157a25['element']){if(!_0x3b1a88){if('text'==_0x157a25['type']){const _0x21875d=_0x10323b['_createAt'](_0x157a25['parent'],_0x157a25['offset']),_0x1e5b8d=_0x1f2d41['_createFromPositionAndShift'](_0x21875d,_0x157a25['data']['length']),_0x4f1028=Array['from'](_0x1e5b8d['getItems']())['map'](_0x9cf295=>new _0x152f56(_0x9cf295['data'],_0x9cf295['getAttributes']()));_0x4e63f5['push'](..._0x4f1028);}else{_0x3b1a88=_0x157a25['element'];const _0x3e359a=_0x157a25['element']['_clone'](!0x0);_0x3e359a['_removeAttribute'](Wt);for(const _0x42d973 of this['_editor']['model']['createRangeIn'](_0x3e359a)['getItems']())_0x42d973['is']('element')&&_0x42d973['_removeAttribute'](Wt);_0x4e63f5['push'](_0x3e359a);}}}else _0x3b1a88=null;return _0x4e63f5;}}function Kt(_0x1e31fc,_0x32242d){return _0x1e31fc['type']===_0x32242d['type']&&(_0x1e31fc['limitId']===_0x32242d['limitId']&&('text'==_0x1e31fc['type']?_0x1e31fc['data']==_0x32242d['data']:function(_0x11ad94,_0x2088ac){if(_0x11ad94['isStart']!=_0x2088ac['isStart'])return!0x1;if(_0x11ad94['isStart']&&_0x11ad94['elementId']!=_0x2088ac['elementId'])return!0x1;if(_0x11ad94['category']!=_0x2088ac['category'])return!0x1;if('block'==_0x11ad94['category'])return!0x0;if('container'==_0x11ad94['category']&&_0x11ad94['elementId']!=_0x2088ac['elementId'])return!0x1;return _0x11ad94['element']['name']==_0x2088ac['element']['name'];}(_0x1e31fc,_0x32242d)));}function qt(_0x5e984b){return At({'name':_0x5e984b['name'],...Object['fromEntries'](_0x5e984b['getAttributes']())});}export{H as AriaDescriptionView,R as CollaborationUserColor,Mt as ConfirmMixin,Wt as DATA_ID_MODEL_ATTRIBUTE,jt as DATA_ID_VIEW_ATTRIBUTE,Yt as DocumentCompare,Jt as DocumentDiff,Rt as FOCUS_ANNOTATION_KEYSTROKE,z as LateFocusButtonView,W as LateFocusDropdownButtonView,O as Permissions,vt as SuggestionsConversion,L as User,F as UserView,$ as Users,J as fixElementSuggestionRange,xt as getAllMarkersDomElementsSorted,Ct as getDateTimeFormatter,_t as getMarkerDomElement,At as hashObject,Lt as sanitizeEditorConfig,Ft as setupThreadKeyboardNavigation,Y as splitSuggestionMarkerName,Ut as surroundingMarkersDetector,It as trimHtml};
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module collaboration-core/suggestionstyles
|
|
7
|
+
*/
|
|
5
8
|
import '../theme/suggestion.css';
|
|
6
9
|
import '../theme/suggestionmarker.css';
|
|
7
10
|
import '../theme/ariadescription.css';
|
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':''},'getPluralForm':
|
|
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':''},'getPluralForm':_0x4c1830=>0x1!=_0x4c1830}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26072d=>{const {af:{dictionary:_0x39a692,getPluralForm:_0x523c43}}={'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0xd9349d=>0x1!=_0xd9349d}};_0x26072d['af']||={'dictionary':{},'getPluralForm':null},_0x26072d['af']['dictionary']=Object['assign'](_0x26072d['af']['dictionary'],_0x39a692),_0x26072d['af']['getPluralForm']=_0x523c43;})(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':'الأحد'},'getPluralForm':
|
|
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':'الأحد'},'getPluralForm':_0x75c14=>0x0==_0x75c14?0x0:0x1==_0x75c14?0x1:0x2==_0x75c14?0x2:_0x75c14%0x64>=0x3&&_0x75c14%0x64<=0xa?0x3:_0x75c14%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1152aa=>{const {ar:{dictionary:_0x4f3b63,getPluralForm:_0x3a52cf}}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x20b572=>0x0==_0x20b572?0x0:0x1==_0x20b572?0x1:0x2==_0x20b572?0x2:_0x20b572%0x64>=0x3&&_0x20b572%0x64<=0xa?0x3:_0x20b572%0x64>=0xb?0x4:0x5}};_0x1152aa['ar']||={'dictionary':{},'getPluralForm':null},_0x1152aa['ar']['dictionary']=Object['assign'](_0x1152aa['ar']['dictionary'],_0x4f3b63),_0x1152aa['ar']['getPluralForm']=_0x3a52cf;})(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':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x596431=>0x1!=_0x596431}};
|