@ckeditor/ckeditor5-collaboration-core 48.0.1 → 48.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 _0x4b279e,Editor as _0x3bdf31,Plugin as _0x1c2df5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5675da,Collection as _0x8bcf89,uid as _0x23ae99,toArray as _0x1c09fa,first as _0x26c3e2,FocusTracker as _0x46fcf1,KeystrokeHandler as _0x406563}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x3ab7ca,IconView as _0x42aceb,ButtonView as _0x2a2dc6,DropdownButtonView as _0x19ba48,FocusCycler as _0x4513aa,isViewWithFocusCycler as _0x4f29aa}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x56b631,IconCheck as _0x4e3a90,IconCancel as _0x3fd0c7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x1e1611,toWidget as _0x4a13e3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x48b124}from'luxon';import{InsertOperation as _0x46fb72,MoveOperation as _0xea6f1,ModelPosition as _0x39e7fb,ModelRange as _0x3dfc79,MarkerOperation as _0x4b5242,MergeOperation as _0x2913cb,SplitOperation as _0x3b9cda,RenameOperation as _0x4fb90e,AttributeOperation as _0x411947,ModelTreeWalker as _0x226586,ModelText as _0x222f90}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x4dadb3}from'diff';class O extends _0x4b279e{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x21781d,_0x2e6223){let _0x574e36;if(_0x2e6223||(_0x2e6223=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x2e6223?_0x574e36=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x574e36=this['context']['editors']['find'](_0x295a30=>_0x295a30['config']['get']('collaboration.channelId')==_0x2e6223)),!_0x574e36)throw new _0x5675da('permissions-set-permissions-invalid-channel-id',null);const _0x65dfc7=_0x574e36['plugins'],_0x21a30c=_0x65dfc7['has']('CommentsRepository')?_0x65dfc7['get']('CommentsRepository'):void 0x0,_0x336579=_0x65dfc7['has']('CommentsOnly')&&_0x65dfc7['get']('CommentsOnly'),_0xe90b34=_0x21781d['includes']('document:write'),_0x47d782=_0x21781d['includes']('comment:modify_all'),_0x515319=_0x21781d['includes']('comment:admin'),_0x16e4f8=_0x21781d['includes']('comment:write'),_0xd94e8f=_0x16e4f8||_0x515319,_0x206748=_0xd94e8f||_0x47d782,_0x4f950f=_0xe90b34||_0xd94e8f;(_0x336579&&(_0x336579['isEnabled']=!_0xe90b34&&_0x206748),_0x574e36 instanceof _0x3bdf31)&&(!(_0xe90b34||_0x206748&&_0x21a30c)?_0x574e36['enableReadOnlyMode']('no-permissions'):_0x574e36['disableReadOnlyMode']('no-permissions'));if(_0x21a30c){_0x21a30c['setPermissions']({'admin':_0x515319,'modifyAll':_0x47d782,'write':_0x16e4f8,'resolve':_0x4f950f},_0x2e6223);const _0x3eab51=_0x574e36 instanceof _0x3bdf31&&_0x574e36['commands']['get']('addCommentThread');_0x3eab51&&(_0xd94e8f?_0x3eab51['clearForceDisabled']('noPermissions'):_0x3eab51['forceDisabled']('noPermissions'));}}}function V(_0x47cd67,_0x22176c){const t=_0x47cd67['t'];switch(_0x22176c){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 _0x4b279e{['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(_0x3f9386){super(_0x3f9386),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x8bcf89(),this['_locale']=_0x3f9386['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:_0x572ba1,name:_0x500896,..._0x260aae}){if(!_0x572ba1||'string'!=typeof _0x572ba1)throw new _0x5675da('users-add-invalid-id');if(this['users']['has'](_0x572ba1))throw new _0x5675da('users-add-duplicated-id',null,{'id':_0x572ba1});const _0x2abe10=this['context']['config']['get']('users.getInitialsCallback'),_0x2427e6={..._0x260aae,'id':_0x572ba1,'name':U(this['_locale'],_0x500896),'color':this['_getNextColor']()};_0x2427e6['name']=U(this['_locale'],_0x2427e6['name']);const _0x136f96=new L(_0x2427e6,_0x2abe10);return this['users']['add'](_0x136f96),_0x136f96;}['getUser'](_0x25179a){return this['users']['get'](_0x25179a);}['useAnonymousUser'](){const _0x3da0ed=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x3da0ed);}['defineMe'](_0x368fc2){if(this['_myId'])throw new _0x5675da('users-me-already-defined',null);const _0x54fdd5=this['getUser'](_0x368fc2);if(!_0x54fdd5)throw new _0x5675da('users-me-missing-user',null);this['_myId']=_0x368fc2,_0x54fdd5['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x2b7433=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x2b7433&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0x3beb4c=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3beb4c,'name':V(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class L{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x23122a,_0x3ac544){this['id']=_0x23122a['id'],this['color']=_0x23122a['color'],this['name']=_0x23122a['name'],this['initials']=_0x3ac544?_0x3ac544(this['name']):this['_computeInitials'](),this['avatar']=_0x23122a['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x4de20e=this['name']['split']('\x20')['filter'](_0x3a871f=>/^[\p{Letter}]/u['test'](_0x3a871f));return 0x1===_0x4de20e['length']?this['_getInitial'](_0x4de20e[0x0]):0x0===_0x4de20e['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x4de20e[0x0])+this['_getInitial'](_0x4de20e[_0x4de20e['length']-0x1]);}['_getInitial'](_0x15e6ae){return String['fromCodePoint'](_0x15e6ae['codePointAt'](0x0))['toUpperCase']();}}function U(_0x3849d4,_0x3e2e9a=''){return''==(_0x3e2e9a=_0x3e2e9a['trim']())?V(_0x3849d4,'Anonymous'):_0x3e2e9a;}class R{['_id'];constructor(_0x4a4a21){this['_id']=_0x4a4a21;}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 _0x3ab7ca{['name'];['notificationView'];constructor(_0x1b4c15,_0x3b64c4,_0x2b16bc){super(_0x1b4c15),this['name']=_0x3b64c4['name'],this['notificationView']=null;const _0x48abb4=['ck','ck-user'],_0x5261d4=['ck','ck-user__img'];if(_0x3b64c4['isAnonymous']&&_0x5261d4['push']('ck-user__anonymous'),!_0x3b64c4['isAnonymous']&&_0x3b64c4['isMe']&&_0x48abb4['push']('ck-user_me'),_0x3b64c4['avatar']&&_0x5261d4['push']('ck-user__avatar'),_0x2b16bc){const _0x19a030=new _0x42aceb();_0x19a030['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x19a030['content']=_0x56b631,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2b16bc},'children':[_0x19a030]};}const _0x5d17c0=[{'tag':'div','attributes':{'class':_0x5261d4,'style':{'background-image':_0x3b64c4['avatar']?'url(\x27'+_0x3b64c4['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x3b64c4['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x3b64c4['name']},'children':[{'text':_0x3b64c4['initials']}]}];this['notificationView']&&_0x5d17c0['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x48abb4,'data-user-id':_0x3b64c4['id']},'children':_0x5d17c0});}}class H extends _0x3ab7ca{['id'];constructor(_0x155f61,_0x48f8e4){super(_0x155f61),this['id']='ck-aria-description-'+_0x23ae99(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x48f8e4}]});}}class z extends _0x2a2dc6{['render'](){super['render'](),j(this);}}class W extends _0x19ba48{['render'](){super['render'](),j(this);}}function j(_0x503f7b){_0x503f7b['listenTo'](_0x503f7b['element'],'mousedown',(_0x38b76e,_0x30da4e)=>{_0x30da4e['stopPropagation'](),_0x30da4e['preventDefault']();}),_0x503f7b['listenTo'](_0x503f7b['element'],'mouseup',()=>{_0x503f7b['element']['focus']();});}function Y(_0x5dd85d){const _0x5b7fe4=_0x5dd85d['split'](':');return{'group':_0x5b7fe4[0x0],'type':_0x5b7fe4[0x1],'subType':_0x5b7fe4['length']>=0x5?_0x5b7fe4[0x2]:null,'id':_0x5b7fe4['length']<0x5?_0x5b7fe4[0x2]:_0x5b7fe4[0x3],'authorId':_0x5b7fe4['length']<0x5?_0x5b7fe4[0x3]:_0x5b7fe4[0x4],'markerCount':0x6==_0x5b7fe4['length']?_0x5b7fe4[0x5]:null};}function J(_0x2434dd,_0x4b0b7f){const _0x5c20f1=_0x2434dd['end']['nodeBefore'];if(_0x5c20f1&&_0x5c20f1['is']('element')&&_0x4b0b7f['schema']['isBlock'](_0x5c20f1)&&!_0x4b0b7f['schema']['isObject'](_0x5c20f1)){const _0x579493=_0x4b0b7f['createPositionAt'](_0x5c20f1,'end');return _0x4b0b7f['createRange'](_0x2434dd['start'],_0x579493);}return _0x2434dd;}class K extends _0x1c2df5{['afterInit'](){const _0x3148fa=this['editor'];if(!_0x3148fa['plugins']['has']('AlignmentEditing'))return;_0x3148fa['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1c2df5{['afterInit'](){const _0x169671=this['editor'],_0x204a57=_0x169671['plugins']['get']('SuggestionsConversion');for(const _0x49d920 of q){if(!_0x169671['plugins']['has'](_0x49d920))continue;const _0x4b83ab=_0x49d920['slice'](0x0,-0x7)['toLowerCase']();_0x204a57['registerInlineAttribute'](_0x4b83ab);}}}class Z extends _0x1c2df5{['afterInit'](){const _0x3b7bad=this['editor'],_0xa32070=_0x3b7bad['plugins']['get']('SuggestionsConversion');_0x3b7bad['plugins']['has']('BookmarkEditing')&&_0xa32070['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x1c2df5{['afterInit'](){const _0x2b9885=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x3c77f9,commandName:_0x11cd9f}of Q)this['editor']['plugins']['has'](_0x3c77f9)&&_0x2b9885['registerInlineAttribute'](_0x11cd9f);}}class tt extends _0x1c2df5{['afterInit'](){const {editor:_0x3a6d0c}=this;if(!_0x3a6d0c['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x43c322=_0x3a6d0c['plugins']['get']('SuggestionsConversion');_0x43c322['registerBlockAttribute']('footnotesListStyle'),_0x43c322['registerBlockAttribute']('footnotesListStart');}}class et extends _0x1c2df5{['afterInit'](){const _0x4547be=this['editor'];if(!_0x4547be['plugins']['has']('HighlightEditing'))return;_0x4547be['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x1c2df5{['afterInit'](){const _0x1ff6b6=this['editor'];if(!_0x1ff6b6['plugins']['has']('HtmlEmbed'))return;_0x1ff6b6['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x1c2df5{['afterInit'](){const _0x439ed7=this['editor'];if(!_0x439ed7['plugins']['has']('ImageEditing'))return;const _0x26c87d=_0x439ed7['plugins']['get']('SuggestionsConversion');_0x26c87d['registerBlockAttribute']('src'),_0x439ed7['plugins']['has']('ImageResize')&&_0x26c87d['registerBlockAttribute']('resizedWidth'),_0x439ed7['plugins']['has']('ImageTextAlternativeEditing')&&_0x26c87d['registerBlockAttribute']('alt'),_0x439ed7['plugins']['has']('PictureEditing')&&_0x26c87d['registerBlockAttribute']('sources'),_0x439ed7['plugins']['has']('ImageSizeAttributes')&&(_0x26c87d['registerBlockAttribute']('width'),_0x26c87d['registerBlockAttribute']('height'));}}class nt extends _0x1c2df5{['afterInit'](){const _0x3aad9c=this['editor'],_0x442e9a=_0x3aad9c['plugins']['get']('SuggestionsConversion');_0x3aad9c['plugins']['has']('IndentBlock')&&(_0x442e9a['registerBlockAttribute']('blockIndent'),_0x3aad9c['plugins']['has']('ListEditing')&&(_0x442e9a['registerBlockAttribute']('blockIndentList'),_0x442e9a['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x1c2df5{['afterInit'](){const _0x5155a5=this['editor'];if(!_0x5155a5['plugins']['has']('LineHeight'))return;_0x5155a5['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x1c2df5{['afterInit'](){const _0x2fc367=this['editor'];if(!_0x2fc367['plugins']['has']('LinkEditing'))return;const _0x4dab9d=_0x2fc367['plugins']['get']('SuggestionsConversion'),_0x4bf519=_0x2fc367['commands']['get']('link');_0x4dab9d['registerInlineAttribute']('linkHref');for(const _0x3df104 of _0x4bf519['manualDecorators'])_0x4dab9d['registerInlineAttribute'](_0x3df104['id']);}}class at extends _0x1c2df5{['afterInit'](){const _0x4b477e=this['editor'];if(!_0x4b477e['plugins']['has']('ListEditing'))return;const _0x41d2a6=_0x4b477e['plugins']['get']('SuggestionsConversion'),_0x2b72b5=_0x4b477e['plugins']['has']('TodoListEditing');_0x41d2a6['registerBlockAttribute']('listItemId'),_0x41d2a6['registerBlockAttribute']('listType'),_0x41d2a6['registerBlockAttribute']('listIndent'),_0x2b72b5&&_0x41d2a6['registerBlockAttribute']('todoListChecked');}}class ct extends _0x1c2df5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3ffa9c=this['editor']['config']['get']('list.properties'),_0x106302=this['editor']['plugins']['get']('SuggestionsConversion');_0x3ffa9c['styles']&&_0x106302['registerBlockAttribute']('listStyle'),_0x3ffa9c['reversed']&&_0x106302['registerBlockAttribute']('listReversed'),_0x3ffa9c['startIndex']&&_0x106302['registerBlockAttribute']('listStart');}}class lt extends _0x1c2df5{['afterInit'](){const _0x1f76a1=this['editor'],_0x10645e=_0x1f76a1['plugins']['get']('SuggestionsConversion');_0x1f76a1['plugins']['has']('MultiLevelList')&&_0x10645e['registerBlockAttribute']('listMarkerStyle');}}class ht extends _0x1c2df5{['afterInit'](){const _0x3e75b0=this['editor'];if(!_0x3e75b0['plugins']['has']('Style')||!_0x3e75b0['plugins']['has']('DataSchema')||!_0x3e75b0['config']['get']('style.definitions'))return;const _0x18a5d5=_0x3e75b0['plugins']['get']('SuggestionsConversion'),_0x43f00a=_0x3e75b0['config']['get']('style.definitions'),_0x177c92=_0x3e75b0['plugins']['get']('GeneralHtmlSupport'),_0x2e550c=_0x3e75b0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3e75b0['plugins']['get']('DataSchema'),_0x43f00a),_0x1a87bb=new Set();for(const _0x58a5d1 of _0x2e550c['block']){const _0x548887=_0x177c92['getGhsAttributeNameForElement'](_0x58a5d1['element']);_0x1a87bb['add'](_0x548887);}const _0x4bbab1=new Set();for(const _0x59b27d of _0x2e550c['inline']){const _0x4c9a19=_0x177c92['getGhsAttributeNameForElement'](_0x59b27d['element']);_0x4bbab1['add'](_0x4c9a19);for(const _0x5c7440 of _0x59b27d['ghsAttributes'])_0x4bbab1['add'](_0x5c7440);}for(const _0x3c26d2 of _0x1a87bb)_0x18a5d5['registerBlockAttribute'](_0x3c26d2);for(const _0x4833b1 of _0x4bbab1)_0x18a5d5['registerInlineAttribute'](_0x4833b1);}}class ut extends _0x1c2df5{['afterInit'](){const _0x34281a=this['editor'];if(!_0x34281a['plugins']['has']('TableEditing'))return;const _0x10338d=_0x34281a['plugins']['get']('SuggestionsConversion');_0x10338d['registerBlockAttribute']('headingRows'),_0x10338d['registerBlockAttribute']('headingColumns');}}class dt extends _0x1c2df5{['afterInit'](){const {plugins:_0x1efee7}=this['editor'];if(!_0x1efee7['has']('TablePropertiesEditing'))return;const _0x442aa5=_0x1efee7['get']('SuggestionsConversion'),_0xb6d15d=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x2cbffe of _0xb6d15d)_0x442aa5['registerBlockAttribute'](_0x2cbffe);}}class ft extends _0x1c2df5{['afterInit'](){const _0x2b7331=this['editor'],_0x327fa2=_0x2b7331['plugins']['get']('SuggestionsConversion');_0x2b7331['plugins']['has']('TableLayout')&&_0x327fa2['registerBlockAttribute']('tableType');}}class gt extends _0x1c2df5{['afterInit'](){const _0x48d3e5=this['editor'],_0x35f706=this['editor']['plugins']['get']('SuggestionsConversion');_0x48d3e5['plugins']['has']('Uploadcare')&&_0x48d3e5['plugins']['has']('UploadcareImageEdit')&&_0x35f706['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x1c2df5{['afterInit'](){const _0x27215f=this['editor'];if(!_0x27215f['plugins']['has']('ShiftEnter'))return;const _0x3df4e2=_0x27215f['plugins']['get']('SuggestionsConversion'),_0x367538=(_0x1bf2fd,_0x325131,_0x5f369e,_0x337aca)=>{if(_0x337aca&&!_0x5f369e['options']['showSuggestionHighlights'])return;if(!_0x5f369e['consumable']['test'](_0x325131['markerRange'],_0x1bf2fd['name']))return;const _0x22e326=_0x27215f['model'];for(const _0x2371e5 of _0x325131['markerRange']['getItems']()){if(!_0x2371e5['is']('element','softBreak'))continue;const _0x2e0574='deletion'==_0x325131['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x270ffa,authorId:_0x509cd9}=Y(_0x325131['markerName']),_0x4b7bac=_0x5f369e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e0574,'data-suggestion':_0x270ffa,'data-author-id':_0x509cd9}),_0x2ece33=_0x5f369e['mapper']['toViewPosition'](_0x22e326['createPositionBefore'](_0x2371e5));!_0x337aca&&_0x3df4e2['_activeMarkers']['includes'](_0x325131['markerName'])&&_0x5f369e['writer']['addClass']('ck-suggestion-marker--active',_0x4b7bac),_0x5f369e['writer']['insert'](_0x2ece33,_0x4b7bac),_0x5f369e['mapper']['bindElementToMarker'](_0x4b7bac,_0x325131['markerName']);}};_0x27215f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x50feb9,_0x115431,_0x2f135e)=>{_0x367538(_0x50feb9,_0x115431,_0x2f135e,!0x1);},{'priority':'high'}),_0x27215f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x507890,_0x44d076,_0x1b6de4)=>{_0x367538(_0x507890,_0x44d076,_0x1b6de4,!0x1);},{'priority':'high'}),_0x27215f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2a6f5d,_0x3652d0,_0x17b25c)=>{_0x367538(_0x2a6f5d,_0x3652d0,_0x17b25c,!0x0);},{'priority':'high'}),_0x27215f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4b91a5,_0x275128,_0x51967a)=>{_0x367538(_0x4b91a5,_0x275128,_0x51967a,!0x0);},{'priority':'high'});}}class kt extends _0x1c2df5{['afterInit'](){const _0x226cb9=this['editor'];_0x226cb9['plugins']['has']('MediaEmbedEditing')&&(_0x226cb9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2744a5,{writer:_0x291d3a,options:_0x36ee5c})=>{if(_0x36ee5c['showSuggestionHighlights'])return _0x291d3a['createEmptyElement']('div');},'converterPriority':'high'}),_0x226cb9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1e4755,_0xae742c,_0x1a6dae)=>{_0x1a6dae['options']['showSuggestionHighlights']&&_0x1e4755['stop']();},{'priority':'high'}));}}class pt extends _0x1c2df5{['afterInit'](){const _0x20b2a3=this['editor'];if(!_0x20b2a3['plugins']['has']('Table'))return;_0x20b2a3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x277153,_0x2a5ee4,_0x32e608)=>{((_0x58f1e1,_0x2e9a9b,_0x364f33)=>{if(!_0x364f33['options']['showSuggestionHighlights'])return;const _0x4260fd=_0x2e9a9b['item'];if(!_0x4260fd||!_0x4260fd['is']('element','tableCell'))return;const _0x5f1b48=_0x364f33['mapper']['toViewElement'](_0x4260fd);if(_0x5f1b48){const {id:_0x468d98,authorId:_0x139dab}=Y(_0x2e9a9b['markerName']);_0x1e1611(_0x5f1b48,_0x364f33['writer'],(_0x2943ff,_0x987cf0,_0x4a2796)=>{_0x4a2796['addClass'](_0x1c09fa(_0x987cf0['classes']),_0x2943ff),_0x4a2796['setAttribute']('data-suggestion',_0x468d98,_0x2943ff),_0x4a2796['setAttribute']('data-author-id',_0x139dab,_0x2943ff);});}})(0x0,_0x2a5ee4,_0x32e608);},{'priority':'highest'});}}class yt extends _0x1c2df5{['afterInit'](){const _0x834630=this['editor'];_0x834630['plugins']['has']('HorizontalLineEditing')&&_0x834630['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x46e8f3,{writer:_0xb2fb57,options:_0x3e117f})=>{if(!_0x3e117f['showSuggestionHighlights'])return null;const _0x5b58e6=_0xb2fb57['createContainerElement']('div'),_0x439b41=_0xb2fb57['createEmptyElement']('hr');return _0xb2fb57['addClass']('ck-horizontal-line',_0x5b58e6),_0xb2fb57['insert'](_0xb2fb57['createPositionAt'](_0x5b58e6,0x0),_0x439b41),_0x5b58e6;},'converterPriority':'high'});}}class wt extends _0x1c2df5{['afterInit'](){const {plugins:_0x4852ff,model:_0xb91a5e}=this['editor'];if(!_0x4852ff['has']('TableCellPropertiesEditing'))return;const _0x383840=_0x4852ff['get']('SuggestionsConversion'),_0x471f96=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x475d57 of _0x471f96)_0x383840['registerBlockAttribute'](_0x475d57);_0xb91a5e['schema']['checkAttribute']('tableCell','tableCellType')&&_0x383840['registerBlockAttribute']('tableCellType');}}class bt extends _0x1c2df5{['afterInit'](){const _0x30b882=this['editor'];if(!_0x30b882['plugins']['has']('TableEditing')||!_0x30b882['config']['get']('table.enableFooters'))return;_0x30b882['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x1c2df5{['_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 _0x430586=this['editor'],_0x566adb=(_0x55542a,_0x37750a,_0xaebd87)=>{const {id:_0xf6f124,authorId:_0xb679e0,type:_0x19dcd7,subType:_0x29f06a}=Y(_0x55542a['markerName']),_0x475704=['ck-suggestion-marker',this['_getClassName'](_0x19dcd7,_0x29f06a)];let _0x530d44=0xbb8;return!_0xaebd87&&(this['_activeMarkers']['includes'](_0x55542a['markerName'])&&(_0x475704['push']('ck-suggestion-marker--active'),_0x530d44=0xbc2)),('deletion'==_0x19dcd7&&(_0x530d44+=0x5),{'classes':_0x475704,'attributes':{'data-suggestion':_0xf6f124,'data-author-id':_0xb679e0},'priority':_0x530d44});};_0x430586['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4d6174,_0x1b95ae)=>_0x566adb(_0x4d6174,0x0,!0x1)}),_0x430586['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a3de1,_0x1f5dc3)=>_0x566adb(_0x2a3de1,0x0,!0x0)}),_0x430586['conversion']['for']('dataDowncast')['add'](_0x53a10b=>{_0x53a10b['on']('addMarker:suggestion',(_0x375221,_0x4e2941,_0x4315fd)=>{if(!_0x4315fd['options']['showSuggestionHighlights'])return;const _0x39d6e1=_0x4e2941['item'];if(!_0x39d6e1)return;const _0x542ae0=_0x4315fd['mapper']['toViewElement'](_0x39d6e1);_0x430586['model']['schema']['isObject'](_0x39d6e1)&&_0x542ae0&&!_0x542ae0['getCustomProperty']('widget')&&_0x542ae0['is']('containerElement')&&_0x4a13e3(_0x542ae0,_0x4315fd['writer']);},{'priority':'high'});});const _0x6a9dc6=(_0x3ea2c1,_0x2949ef,_0x3465e2,_0x23b365,_0x5ee825)=>{if(_0x23b365&&!_0x3465e2['options']['showSuggestionHighlights'])return;if(!_0x2949ef['item'])return;const {id:_0x43ec44,authorId:_0x376237,subType:_0x56d00b}=Y(_0x2949ef['markerName']);if(_0x5ee825){const _0x5241d3=_0x56d00b['split']('|')[0x0];if(!this['isBlockAttribute'](_0x5241d3))return;}if(_0x2949ef['item']['is']('selection'))return void _0x3465e2['consumable']['consume'](_0x2949ef['item'],_0x3ea2c1['name']);const _0x1a5d3e=_0x3465e2['mapper']['toViewElement'](_0x2949ef['item']);if(_0x2949ef['item']['is']('element')&&_0x430586['model']['schema']['isBlock'](_0x2949ef['item'])&&!_0x1a5d3e['getCustomProperty']('addHighlight')){_0x3465e2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1a5d3e),_0x3465e2['writer']['setAttribute']('data-suggestion',_0x43ec44,_0x1a5d3e),_0x3465e2['writer']['setAttribute']('data-author-id',_0x376237,_0x1a5d3e),_0x3465e2['mapper']['bindElementToMarker'](_0x1a5d3e,_0x2949ef['markerName']),_0x23b365||(this['_activeMarkers']['includes'](_0x2949ef['markerName'])?_0x3465e2['writer']['addClass']('ck-suggestion-marker--active',_0x1a5d3e):_0x3465e2['writer']['removeClass']('ck-suggestion-marker--active',_0x1a5d3e));for(const _0x5387b2 of _0x430586['model']['createRangeIn'](_0x2949ef['item'])['getItems']())_0x3465e2['consumable']['consume'](_0x5387b2,_0x3ea2c1['name']);_0x3465e2['consumable']['consume'](_0x2949ef['item'],_0x3ea2c1['name']);}},_0x5ef2b1=(_0x5b3c3e,_0x345fe7,_0x4b6044,_0x6b9e3c)=>{const _0x589ffe=_0x4b6044['mapper']['markerNameToElements'](_0x345fe7['markerName']);if(_0x589ffe){if(_0x6b9e3c){const {subType:_0x50c84d}=Y(_0x345fe7['markerName']),_0xc70b36=_0x50c84d['split']('|')[0x0];if(!this['isBlockAttribute'](_0xc70b36))return;}for(const _0x19d839 of _0x589ffe)_0x19d839['getCustomProperty']('addHighlight')||(_0x4b6044['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19d839),_0x4b6044['writer']['removeAttribute']('data-suggestion',_0x19d839),_0x4b6044['writer']['removeAttribute']('data-author-id',_0x19d839),_0x4b6044['mapper']['unbindElementFromMarkerName'](_0x19d839,_0x345fe7['markerName']));}};_0x430586['conversion']['for']('editingDowncast')['add'](_0x103213=>{_0x103213['on']('addMarker:suggestion:formatBlock',(_0x1a6e46,_0xad3c2f,_0x120d0e)=>{_0x6a9dc6(_0x1a6e46,_0xad3c2f,_0x120d0e,!0x1,!0x1);},{'priority':'high'});}),_0x430586['conversion']['for']('editingDowncast')['add'](_0x5a1d79=>{_0x5a1d79['on']('addMarker:suggestion:attribute',(_0x4cb679,_0x491921,_0x32827f)=>{_0x6a9dc6(_0x4cb679,_0x491921,_0x32827f,!0x1,!0x0);},{'priority':'high'});}),_0x430586['conversion']['for']('editingDowncast')['add'](_0x5c13d0=>{_0x5c13d0['on']('removeMarker:suggestion:formatBlock',(_0x2a9d0f,_0x31a06c,_0x750771)=>{_0x5ef2b1(0x0,_0x31a06c,_0x750771,!0x1);},{'priority':'high'});}),_0x430586['conversion']['for']('editingDowncast')['add'](_0x39b91b=>{_0x39b91b['on']('removeMarker:suggestion:attribute',(_0x3f1db2,_0x335a04,_0x1e442b)=>{_0x5ef2b1(0x0,_0x335a04,_0x1e442b,!0x0);},{'priority':'high'});}),_0x430586['conversion']['for']('dataDowncast')['add'](_0x19ba20=>{_0x19ba20['on']('addMarker:suggestion:formatBlock',(_0x814a5c,_0x21d680,_0x377071)=>{_0x6a9dc6(_0x814a5c,_0x21d680,_0x377071,!0x0,!0x1);},{'priority':'highest'});}),_0x430586['conversion']['for']('dataDowncast')['add'](_0x4b4c34=>{_0x4b4c34['on']('addMarker:suggestion:attribute',(_0x5e471b,_0x5b257c,_0x189126)=>{_0x6a9dc6(_0x5e471b,_0x5b257c,_0x189126,!0x0,!0x0);},{'priority':'highest'});}),_0x430586['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xfe076d,_0x4fdde2)=>_0x4fdde2['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xfe076d['substr'](0xb)}});const _0x4b0cb8=(_0x441421,_0x3fa0a5,_0x250847,_0x4a95f4,_0x30865a)=>{if(_0x4a95f4&&!_0x250847['options']['showSuggestionHighlights'])return;if(!_0x250847['consumable']['test'](_0x3fa0a5['markerRange'],_0x441421['name']))return;const _0x16d5ba=this['_activeMarkers'],_0x10ad8b=_0x3fa0a5['markerRange']['getWalker'](),_0xcccf2a=_0x3fa0a5['markerRange']['start'],_0x161836=_0x430586['model']['schema'];let _0x909f98=null,_0x5d1de0=null,_0x6ce9f5=!0x1,_0x3a2b51=!0x1;for(const _0x588db4 of _0x10ad8b){const _0x2d4169=_0x588db4['item'];_0x6ce9f5=_0x6ce9f5||_0x161836['isContent'](_0x2d4169);const _0x3c635b=_0x250847['mapper']['toViewElement'](_0x2d4169);if(_0x3c635b&&_0x3c635b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x588db4['type']&&(_0x161836['isBlock'](_0x2d4169)&&!_0x161836['isLimit'](_0x2d4169)&&(_0x2d4169['nextSibling']||_0xcccf2a['isAtEnd']?_0x909f98&&_0x909f98['parent']==_0x2d4169||(_0x909f98=_0x2d4169,_0x16dcf6(_0x588db4['previousPosition']),_0x3a2b51=!0x0):_0x5d1de0=_0x5d1de0||_0x588db4['previousPosition']));}function _0x16dcf6(_0x43579b){const {id:_0x436121,authorId:_0x279cb2}=Y(_0x3fa0a5['markerName']),_0xdb34e=_0x250847['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30865a,'data-suggestion':_0x436121,'data-author-id':_0x279cb2}),_0x256523=_0x250847['mapper']['toViewPosition'](_0x43579b);!_0x4a95f4&&_0x16d5ba['includes'](_0x3fa0a5['markerName'])&&_0x250847['writer']['addClass']('ck-suggestion-marker--active',_0xdb34e),_0x250847['writer']['insert'](_0x256523,_0xdb34e),_0x250847['mapper']['bindElementToMarker'](_0xdb34e,_0x3fa0a5['markerName']);}_0x6ce9f5||_0x3a2b51||!_0x5d1de0||_0x16dcf6(_0x5d1de0);};_0x430586['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x99fd3,_0x4a4e33,_0x1f566d)=>{_0x4b0cb8(_0x99fd3,_0x4a4e33,_0x1f566d,!0x1,'merge');},{'priority':'high'}),_0x430586['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51121e,_0x1ff08a,_0x4842f4)=>{_0x4b0cb8(_0x51121e,_0x1ff08a,_0x4842f4,!0x0,'merge');},{'priority':'high'}),_0x430586['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f8df9,_0x28ea02,_0x118322)=>{_0x4b0cb8(_0x3f8df9,_0x28ea02,_0x118322,!0x1,'split');},{'priority':'high'}),_0x430586['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x149eaa,_0x20d2d3,_0x2b0496)=>{_0x4b0cb8(_0x149eaa,_0x20d2d3,_0x2b0496,!0x0,'split');},{'priority':'high'}),_0x430586['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x278cbf,_0x58465a,_0x2fe117)=>{((_0x35981a,_0x4e9778,_0xb68086)=>{const _0x46104a=_0xb68086['mapper']['markerNameToElements'](_0x4e9778['markerName']);if(_0x46104a){for(const _0x5690c8 of _0x46104a)(_0x5690c8['hasClass']('ck-suggestion-marker-split')||_0x5690c8['hasClass']('ck-suggestion-marker-merge'))&&(_0xb68086['mapper']['unbindElementFromMarkerName'](_0x5690c8,_0x4e9778['markerName']),_0xb68086['writer']['remove'](_0x5690c8));}})(0x0,_0x58465a,_0x2fe117);},{'priority':'high'});const _0x4713f4=(_0xb4e5b2,_0x4470cc,_0xea3eb1,_0x553be5)=>{if(_0x553be5&&!_0xea3eb1['options']['showSuggestionHighlights'])return;const _0x3d9345=_0x4470cc['markerRange']['start'],_0xf8c137=_0x4470cc['markerRange']['end'],_0x33d912=_0x430586['model']['schema'];if(!_0x3d9345['isTouching'](_0xf8c137)||!_0x3d9345['nodeAfter'])return;const _0x522749=_0x3d9345['nodeAfter'];if(_0x33d912['isBlock'](_0x522749)&&!_0x33d912['isLimit'](_0x522749)&&_0x33d912['checkChild'](_0x522749,'$text')){if(!_0xea3eb1['consumable']['consume'](_0x4470cc['markerRange'],_0xb4e5b2['name']))return;const {id:_0x1b288e,authorId:_0x24888c}=Y(_0x4470cc['markerName']),_0x2c44ec=_0xea3eb1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1b288e,'data-author-id':_0x24888c}),_0x2887db=_0xea3eb1['mapper']['toViewPosition'](_0xf8c137);!_0x553be5&&this['_activeMarkers']['includes'](_0x4470cc['markerName'])&&_0xea3eb1['writer']['addClass']('ck-suggestion-marker--active',_0x2c44ec),_0xea3eb1['writer']['insert'](_0x2887db,_0x2c44ec),_0xea3eb1['mapper']['bindElementToMarker'](_0x2c44ec,_0x4470cc['markerName']);}};_0x430586['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3821ef,_0x2d6be4,_0x4baf77)=>{_0x4713f4(_0x3821ef,_0x2d6be4,_0x4baf77,!0x1);},{'priority':'high'}),_0x430586['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x587648,_0x4047b5,_0xd01834)=>{_0x4713f4(_0x587648,_0x4047b5,_0xd01834,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x2fbffd,_0xdd702,_0x595a4d)=>{this['_activeMarkers']=_0x595a4d['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x369e3f){this['_blockAttributeKeys']['add'](_0x369e3f);}['registerInlineAttribute'](_0x5a6ce2){this['_inlineAttributeKeys']['add'](_0x5a6ce2);}['isBlockAttribute'](_0x5471a5){return this['_blockAttributeKeys']['has'](_0x5471a5);}['isInlineAttribute'](_0x53411b){return this['_inlineAttributeKeys']['has'](_0x53411b);}['isRegisteredAttribute'](_0x5379ac){return this['isInlineAttribute'](_0x5379ac)||this['isBlockAttribute'](_0x5379ac);}['_getClassName'](_0x49a0df,_0x3fa30e){if('attribute'!=_0x49a0df)return'ck-suggestion-marker-'+_0x49a0df;const _0x11c32c=_0x3fa30e['split']('|')[0x0];return this['isBlockAttribute'](_0x11c32c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0xe0f5c7={},_0x131cd6){if(void 0x0!==_0xe0f5c7['dateTimeFormat']&&'function'!=typeof _0xe0f5c7['dateTimeFormat'])throw new _0x5675da('invalid-date-time-format');return _0x205dbd=>{const _0x15d7c5='string'==typeof _0x205dbd?_0x48b124['fromISO'](_0x205dbd):_0x48b124['fromJSDate'](_0x205dbd),_0x49f1c5=_0x48b124['now'](),_0x1bcc1d=Math['floor'](_0x49f1c5['diff'](_0x15d7c5,'days')['days']);return _0xe0f5c7['dateTimeFormat']?_0xe0f5c7['dateTimeFormat'](_0x15d7c5['toJSDate'](),_0x131cd6&&_0x131cd6['t']?_0x131cd6['t']:void 0x0):0x0===_0x1bcc1d?_0x131cd6?V(_0x131cd6,'Today')+'\x20'+_0x15d7c5['toFormat']('hh:mma'):_0x15d7c5['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x1bcc1d?_0x131cd6?V(_0x131cd6,'Yesterday')+'\x20'+_0x15d7c5['toFormat']('hh:mma'):_0x15d7c5['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x1bcc1d<0x7?_0x131cd6?V(_0x131cd6,'Last')+'\x20'+V(_0x131cd6,_0x15d7c5['toFormat']('EEEE'))+'\x20'+_0x15d7c5['toFormat']('hh:mma'):_0x15d7c5['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x15d7c5['toFormat']('LL-dd-yyyy\x20hh:mma');};}function _t(_0x3d0113,_0x2da2f4){const _0x4ead0a=_0x3d0113['mapper']['markerNameToElements'](_0x2da2f4['name']);if(!_0x4ead0a)return null;const _0x56e9cf=_0x26c3e2(_0x4ead0a['values']());return _0x3d0113['view']['domConverter']['mapViewToDom'](_0x56e9cf)||null;}function xt(_0x503c7e,_0x29a027){if(0x0===_0x29a027['length'])return null;const _0x10d09b=[],_0xf632ea=_0x503c7e['view']['domConverter'];for(const _0x375f8b of _0x29a027){const _0x1f0468=_0x503c7e['mapper']['markerNameToElements'](_0x375f8b['name']);if(!_0x1f0468)continue;const _0x3767c5=Array['from'](_0x1f0468)['map'](_0x102993=>_0xf632ea['mapViewToDom'](_0x102993))['filter'](_0x411622=>!!_0x411622);_0x10d09b['push'](..._0x3767c5);}if(0x0===_0x10d09b['length'])return null;const _0x55db18=[];for(const _0x38bc02 of _0x10d09b){const _0x4ae498=_0x38bc02['getClientRects']()['item'](0x0);_0x4ae498&&_0x55db18['push']({'x':_0x4ae498['x'],'y':_0x4ae498['y'],'domElement':_0x38bc02});}return 0x0===_0x55db18['length']?null:(_0x55db18['sort']((_0x166d0e,_0x508e7d)=>_0x166d0e['y']-_0x508e7d['y']||_0x166d0e['x']-_0x508e7d['x']),_0x55db18['map'](_0x11bcb5=>_0x11bcb5['domElement']));}function It(_0x4acac2,{limit:_0x4226fd,suffix:_0x379551='...'}){const _0x275e84=[];let _0x6578a6=0x0;const _0x52097b=_0x4acac2['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x38770f=0x0;_0x38770f<_0x52097b['length'];_0x38770f++){let _0x146407=_0x52097b[_0x38770f];const _0x1058ff=St(_0x146407);if(_0x146407['startsWith']('<')){if(_0x6578a6>=_0x4226fd){const _0x4b1d75=_0x146407['match'](/[a-zA-Z]+/);if(!_0x4b1d75){_0x52097b[_0x38770f]='';continue;}const _0x172d42=_0x4b1d75[0x0];_0x146407['startsWith']('</')?(_0x275e84['length']&&(_0x146407=''),_0x275e84['pop']()):(_0x275e84['push'](_0x172d42),_0x146407='');}}else{if(_0x6578a6>=_0x4226fd)_0x146407='';else{if(_0x6578a6+_0x1058ff['length']>=_0x4226fd){let _0x5378f8=_0x4226fd-_0x6578a6;if('\x20'===_0x1058ff[_0x5378f8-0x1])_0x5378f8--;else{const _0x5a1014=_0x1058ff['slice'](_0x5378f8)['indexOf']('\x20');-0x1!==_0x5a1014?_0x5378f8+=_0x5a1014:_0x5378f8=_0x146407['length'];}_0x146407=_0x1058ff['slice'](0x0,_0x5378f8)['join']('')+_0x379551,_0x6578a6=_0x4226fd;}else _0x6578a6+=_0x1058ff['length'];}}_0x52097b[_0x38770f]=_0x146407;}return _0x52097b['join']('\x0a')['replace'](/\n/g,'');}function St(_0xfbf0e4){const _0x1d66fa=[];for(let _0xa4c00c=0x0;_0xa4c00c<_0xfbf0e4['length'];_0xa4c00c++){const _0x591839=_0xfbf0e4['substring'](_0xa4c00c)['match'](/^&[a-z0-9#]+;/);if(_0x591839){const _0x3b42de=_0x591839[0x0];_0x1d66fa['push'](_0x3b42de),_0xa4c00c+=_0x3b42de['length']-0x1;}else _0x1d66fa['push'](_0xfbf0e4[_0xa4c00c]);}return _0x1d66fa;}class Et extends _0x3ab7ca{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x18a74e){super(_0x18a74e);const _0x2026f1=this['bindTemplate'];this['set']('message',V(_0x18a74e,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x18a74e,V(_0x18a74e,'Yes'),_0x4e3a90,'submit'),this['cancelView']=this['_createButtonView'](_0x18a74e,V(_0x18a74e,'No'),_0x3fd0c7,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x46fcf1(),this['keystrokes']=new _0x406563(),this['focusCycler']=new _0x4513aa({'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':_0x2026f1['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'](_0x28e091,_0xc594e4,_0x304c91,_0x4edd4a){const _0x3add26=new _0x2a2dc6(_0x28e091);return _0x3add26['label']=_0xc594e4,_0x3add26['icon']=_0x304c91,_0x3add26['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x4edd4a}}),_0x3add26['on']('execute',()=>this['fire'](_0x4edd4a)),_0x3add26;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x5938a4=>{this['keystrokes']['listenTo'](_0x5938a4['element']),this['focusTracker']['add'](_0x5938a4['element']);}),this['keystrokes']['set']('esc',(_0x41049b,_0x4ea5a0)=>{this['fire']('cancel'),_0x4ea5a0();});}}function Mt(_0x1d274d){return class extends _0x1d274d{['showConfirm'](_0x23bb2f,_0x594266){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x23bb2f,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x594266['appendChild'](this['confirmView']['element']),_0x594266['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x1a9619,_0x33a318,_0x2fc028)=>{_0x2fc028||_0x594266['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x3d6b0c=>this['confirmView']['on']('submit',_0x3d6b0c));}['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(_0x3b9277){let _0x4a1e2a=0x0,_0x4dae4d=0x0;for(const _0x377abd of Nt(_0x3b9277))_0x4a1e2a=(_0x4a1e2a<<0x5)-_0x4a1e2a+_0x377abd,_0x4a1e2a&=_0x4a1e2a,[_0x4a1e2a,_0x4dae4d]=[_0x4dae4d,_0x4a1e2a];return Bt(_0x4a1e2a)+Bt(_0x4dae4d);}function*Tt(_0x6cb104){null==_0x6cb104||null==_0x6cb104?yield 0x12b9b0a1:0x0===_0x6cb104||!0x1===_0x6cb104?yield 0x0:0x1===_0x6cb104||0x1==_0x6cb104?yield 0x1:Array['isArray'](_0x6cb104)?yield*function*(_0x31de68){for(const _0x191417 of _0x31de68)yield*Tt(_0x191417);}(_0x6cb104):'object'==typeof _0x6cb104?yield*Nt(_0x6cb104):'string'==typeof _0x6cb104?yield*Pt(_0x6cb104):'number'==typeof _0x6cb104&&(yield _0x6cb104);}function*Nt(_0x1bd62d){if(yield Dt('{'),_0x1bd62d){const _0x4ce8da=Object['keys'](_0x1bd62d)['sort']();for(const _0x1aa414 of _0x4ce8da){yield*Pt(_0x1aa414),yield Dt(':');const _0x593102=_0x1bd62d[_0x1aa414];yield*Tt(_0x593102);}}yield Dt('}');}function*Pt(_0x5a9ef4){yield Dt('\x22');for(const _0x182dbf of _0x5a9ef4)yield Dt(_0x182dbf);yield Dt('\x22');}function Dt(_0x3da20e){return _0x3da20e['charCodeAt'](0x0);}function Bt(_0x1460f0){return(_0x1460f0*=Math['sign'](_0x1460f0))['toString'](0x24);}const Ot=['root','roots','initialData','context','toolbar','rootsAttributes'],Vt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function $t(_0x2dbafa,_0xa429cd,_0x192ed1,_0x306519=[]){const _0x1d3676='string'==typeof _0x2dbafa?_0x192ed1['get'](_0x2dbafa)['constructor']:_0x2dbafa['prototype']['constructor'];if(_0xa429cd['has'](_0x1d3676))return _0xa429cd['get'](_0x1d3676);_0xa429cd['set'](_0x1d3676,!0x0);const _0x5588d2=[...Vt,..._0x306519]['map'](_0x3832b4=>{if(_0x192ed1['has'](_0x3832b4))return _0x192ed1['get'](_0x3832b4)['constructor'];})['filter'](_0x3ae76d=>_0x3ae76d);if(_0x1d3676&&_0x5588d2['includes'](_0x1d3676))return _0xa429cd['set'](_0x1d3676,!0x1),!0x1;if(!_0x1d3676['requires'])return _0xa429cd['set'](_0x1d3676,!0x0),!0x0;const _0x447415=_0x1d3676['requires']['every'](_0x1883b4=>$t(_0x1883b4,_0xa429cd,_0x192ed1,_0x306519));return _0xa429cd['set'](_0x1d3676,_0x447415),_0x447415;}function Lt(_0x244f48,_0x571a73){const _0x1dde91={};for(const _0x1b7429 of _0x244f48['config']['names']())Ot['includes'](_0x1b7429)||(_0x1dde91[_0x1b7429]=_0x244f48['config']['get'](_0x1b7429));const _0x332883=_0x1dde91['plugins']||[],_0x246aa9=_0x244f48['constructor']['builtinPlugins']||[],_0x50b678=_0x332883['length']?_0x332883:_0x246aa9,_0x23b0c4=_0x1dde91['extraPlugins']||[];delete _0x1dde91['extraPlugins'];const _0xbd875b=_0x1dde91['removePlugins']||[];delete _0x1dde91['removePlugins'];const _0x5d4c31=_0x244f48['_context']['config']['get']('plugins')||[],_0x11560b=_0x50b678['concat'](_0x23b0c4)['concat'](_0x5d4c31)['map'](_0x1984ea=>'string'==typeof _0x1984ea?_0x246aa9['find'](_0x1d74ee=>_0x1d74ee['pluginName']==_0x1984ea):_0x1984ea)['filter'](_0x5e9992=>!_0xbd875b['includes'](_0x5e9992)&&!_0xbd875b['includes'](_0x5e9992['pluginName'])),_0x1ad86b=Array['from'](new Set(_0x11560b)),_0x24417a=new Map();return _0x1dde91['plugins']=_0x1ad86b['filter'](_0x4603df=>$t(_0x4603df,_0x24417a,_0x244f48['plugins'],_0x571a73)),_0x1dde91;}function Ut(_0x367f15,_0x10dcee){const _0x5d0b82=[];_0x367f15['document']['selection']['on']('change:range',()=>{const _0x485401=function(_0x5e5ca3,_0x36d4bb){const _0xca833e=[];for(const _0xe4ff81 of _0x5e5ca3['markers']){const _0x488b9d=_0xe4ff81['getRange']();(_0x488b9d['containsPosition'](_0x36d4bb)||_0x488b9d['start']['isEqual'](_0x36d4bb)||_0x488b9d['end']['isEqual'](_0x36d4bb))&&_0xca833e['push'](_0xe4ff81);}return _0xca833e;}(_0x367f15,_0x367f15['document']['selection']['focus']),_0x8dc619=[],_0x29674b=[],_0x38f605=[];for(const _0x1e5828 of _0x5d0b82)_0x485401['includes'](_0x1e5828)||_0x8dc619['push'](_0x1e5828);for(const _0x239a0b of _0x485401)_0x5d0b82['includes'](_0x239a0b)||_0x29674b['push'](_0x239a0b),_0x38f605['push'](_0x239a0b);(_0x8dc619['length']||_0x29674b['length'])&&_0x10dcee({'left':_0x8dc619,'entered':_0x29674b}),_0x5d0b82['length']=0x0,_0x5d0b82['push'](..._0x38f605);});}const Rt='Ctrl+Shift+E';function Ft(_0x192b79,_0x53b7f8){const _0x43427f=_0x192b79['element'];_0x192b79['keystrokes']['listenTo'](_0x43427f);for(const _0x2b8660 of _0x53b7f8)Ht(_0x192b79,_0x2b8660);_0x53b7f8['on']('change',(_0x2a2402,_0x5ac9b1)=>{for(const _0x579757 of _0x5ac9b1['removed'])zt(_0x192b79,_0x579757);for(const _0x2c710d of Array['from'](_0x5ac9b1['added'])['reverse']())Ht(_0x192b79,_0x2c710d);}),_0x192b79['keystrokes']['set']('enter',(_0x5a3bc2,_0x1875d7)=>{_0x43427f===_0x5a3bc2['target']&&(_0x192b79['focusCycler']['focusFirst'](),_0x1875d7());},{'filter':_0x3a2c4c=>_0x3a2c4c['target']===_0x43427f}),_0x192b79['keystrokes']['set']('esc',(_0xf27e1e,_0x42766b)=>{_0x43427f!==_0xf27e1e['target']?_0x192b79['focus']():_0x192b79['fire']('escape'),_0x42766b();}),_0x192b79['keystrokes']['set']('arrowdown',(_0x318e82,_0x1e76ce)=>{_0x43427f===_0x318e82['target']&&(_0x192b79['fire']('arrowdown'),_0x1e76ce());}),_0x192b79['keystrokes']['set']('arrowup',(_0x3f98bc,_0x108001)=>{_0x43427f===_0x3f98bc['target']&&(_0x192b79['fire']('arrowup'),_0x108001());});}function Ht(_0x4c8b4d,_0x5e833d){_0x5e833d['isRendered']&&(_0x4c8b4d['focusTracker']['add'](_0x5e833d['element']),_0x4c8b4d['keystrokes']['listenTo'](_0x5e833d['element']),_0x4f29aa(_0x5e833d)&&function(_0x17faa0,_0x552d4f){const _0x5ad632=_0x17faa0['actions'],_0x12edda=_0x552d4f['actions'];for(const _0x5b91c4 of Object['keys'](_0x5ad632))if(_0x5b91c4 in _0x12edda&&_0x5ad632[_0x5b91c4]!==_0x12edda[_0x5b91c4])return!0x1;return!0x0;}(_0x4c8b4d['focusCycler'],_0x5e833d['focusCycler'])&&_0x4c8b4d['focusCycler']['chain'](_0x5e833d['focusCycler']));}function zt(_0x39811e,_0x42abf6){_0x39811e['focusTracker']['remove'](_0x42abf6['element']),_0x39811e['keystrokes']['stopListening'](_0x42abf6['element']),_0x4f29aa(_0x42abf6)&&_0x39811e['focusCycler']['unchain'](_0x42abf6['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x4b279e{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x3bdf31?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x172364,_0xac317a)=>{_0xac317a['on']('ready',()=>{this['_integrateEditor'](_0xac317a);});});}get['editor'](){if(this['context']instanceof _0x3bdf31)return this['context'];{const _0x202b83=this['context']['editors']['first'];if(!_0x202b83)throw new _0x5675da('documentcompare-no-editor',this);return _0x202b83;}}['getDiff'](_0x5aa23b,_0x20b187,_0xcc7ef2={'anchor':'main','markDeletions':!0x1}){const _0x517aa4=_0xcc7ef2['targetEditor']||this['editor'];let _0x524d14,_0x3497bc;if('string'==typeof _0xcc7ef2['anchor']){const _0x21e43e=_0x517aa4['model']['document']['getRoot'](_0xcc7ef2['anchor']);if(!_0x21e43e)throw new _0x5675da('documentcompare-compare-no-root',this,{'anchor':_0xcc7ef2['anchor']});_0x524d14=_0x21e43e,_0x3497bc=_0x517aa4['model']['createPositionAt'](_0x21e43e,0x0);}else _0x524d14=_0xcc7ef2['anchor']['clone'](),_0x3497bc=_0xcc7ef2['anchor']['clone']();const _0x516d18=_0x517aa4['data']['parse'](_0x5aa23b,_0x524d14),_0x5425bb=_0x517aa4['data']['parse'](_0x20b187,_0x524d14);return new Jt({'editor':_0x517aa4,'before':_0x516d18,'after':_0x5425bb,'options':{'anchor':_0x3497bc,'markDeletions':_0xcc7ef2['markDeletions']}});}['isMarkedRemoveOperation'](_0x4ea63a){return'marker'==_0x4ea63a['type']&&_0x4ea63a['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x358b96){_0x358b96['conversion']['for']('upcast')['add'](_0x3a476e=>{_0x3a476e['on']('element',(_0xec2ff9,_0x243999,_0x2d4baa)=>{if(_0x243999['modelRange'])for(const _0x2cdc34 of _0x243999['modelRange']['getItems']({'shallow':!0x0})){if(_0x2cdc34['is']('$textProxy'))continue;const _0x3aa80b=_0x243999['viewItem']['getAttribute'](jt);_0x3aa80b&&_0x2d4baa['writer']['setAttribute'](Wt,_0x3aa80b,_0x2cdc34);}},{'priority':'lowest'});}),_0x358b96['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x37f792,before:_0x1a822f,after:_0x1871e0,options:_0x20c6bd}){this['_editor']=_0x37f792,this['_markDeletions']=!!_0x20c6bd['markDeletions'],this['_anchor']=_0x20c6bd['anchor'];const _0x2c4628=this['_tokenizeModel'](_0x1a822f),_0x17360a=this['_tokenizeModel'](_0x1871e0);this['_diffItems']=this['_diffModelTokens'](_0x2c4628,_0x17360a),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x1a822f['markers'],_0x1871e0['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x5ef73c=this['_editor']['model']['document'],_0x43a1ba=[];let _0x234df1=_0x5ef73c['version'];for(const _0x4e9a64 of this['_operationsData'])switch(_0x4e9a64['type']){case'attribute':{const _0x4c8ce5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['path']),_0x269c65=_0x4c8ce5['getShiftedBy'](_0x4e9a64['howMany']),_0x188a1e=new _0x3dfc79(_0x4c8ce5,_0x269c65),_0x56b742=JSON['parse'](_0x4e9a64['oldValue']),_0x2777dd=JSON['parse'](_0x4e9a64['newValue']);_0x43a1ba['push'](new _0x411947(_0x188a1e,_0x4e9a64['key'],_0x56b742,_0x2777dd,_0x234df1++));break;}case'insert':{const _0x4b7e05=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['path']),_0x510ec4=this['_makeModelFromTokens'](_0x4e9a64['tokens']);_0x43a1ba['push'](new _0x46fb72(_0x4b7e05,_0x510ec4,_0x234df1++));break;}case'remove':{const _0x285a09=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['path']),_0x4510ae=new _0x39e7fb(_0x5ef73c['graveyard'],[0x0]);_0x43a1ba['push'](new _0xea6f1(_0x285a09,_0x4e9a64['howMany'],_0x4510ae,_0x234df1++));break;}case'rename':{const _0x55a86a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['path']);_0x43a1ba['push'](new _0x4fb90e(_0x55a86a,_0x4e9a64['oldName'],_0x4e9a64['newName'],_0x234df1++));break;}case'split':{const _0x3e38cb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['path']),_0x3af8fc=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['path']['slice'](0x0,-0x1));_0x3af8fc['offset']++,_0x43a1ba['push'](new _0x3b9cda(_0x3e38cb,Number['NEGATIVE_INFINITY'],_0x3af8fc,null,_0x234df1++));break;}case'merge':{const _0x387e4f=_0x4e9a64['path']['slice'](),_0x3655e9=_0x387e4f['slice'](0x0,-0x1);_0x3655e9[_0x3655e9['length']-0x1]++,_0x3655e9['push'](0x0);const _0xc2c3ee=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3655e9),_0x13773a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x387e4f),_0xff2860=new _0x39e7fb(_0x5ef73c['graveyard'],[0x0]);_0x43a1ba['push'](new _0x2913cb(_0xc2c3ee,Number['NEGATIVE_INFINITY'],_0x13773a,_0xff2860,_0x234df1++));break;}case'marker':case'markedRemove':{let _0x22db70=null;if(_0x4e9a64['range']){const _0x4551b3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['range']['start']),_0x1bf403=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['range']['end']);_0x22db70=new _0x3dfc79(_0x4551b3,_0x1bf403);}const _0x5bea18='marker'==_0x4e9a64['type']?_0x4e9a64['name']:'$markedRemove:'+_0x23ae99();_0x43a1ba['push'](new _0x4b5242(_0x5bea18,null,_0x22db70,_0x5ef73c['model']['markers'],!0x0,_0x234df1++));break;}case'unwrap':{const _0x42cf8d=_0x4e9a64['path']['slice']();_0x42cf8d['push'](0x0);const _0xe1f2d4=_0x4e9a64['path']['slice'](),_0x376371=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x42cf8d),_0x1ee926=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe1f2d4),_0x1c237e=new _0x39e7fb(_0x5ef73c['graveyard'],[0x0]);_0x43a1ba['push'](new _0xea6f1(_0x376371,_0x4e9a64['howMany'],_0x1ee926,_0x234df1++)),_0x43a1ba['push'](new _0xea6f1(_0x1ee926['getShiftedBy'](_0x4e9a64['howMany']),0x1,_0x1c237e,_0x234df1++));break;}case'wrap':{const _0x25d31b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['range']['start']),_0x2e08a0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e9a64['range']['end']),_0x45a707=_0x4e9a64['token']['element']['_clone'](!0x1),_0x3be3ca=_0x4e9a64['range']['end']['slice']();_0x3be3ca['push'](0x0);const _0x3f41df=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3be3ca);_0x43a1ba['push'](new _0x46fb72(_0x2e08a0,_0x45a707,_0x234df1++)),_0x43a1ba['push'](new _0xea6f1(_0x25d31b,_0x2e08a0['offset']-_0x25d31b['offset'],_0x3f41df,_0x234df1++));break;}}return _0x43a1ba;}['_tokenizeModel'](_0x2eccd8){const _0x4126c7=[],_0x5f44fd=_0x3dfc79['_createIn'](_0x2eccd8),_0x9c4171=new _0x226586({'boundaries':_0x5f44fd});let _0x1b37aa='',_0x2bcc71=null;const _0x29200a=[''],_0x59142=new Map();for(const _0x163866 of _0x9c4171)if('elementStart'==_0x163866['type']||'elementEnd'==_0x163866['type']){let _0x41b154=_0x29200a[0x0];''!==_0x1b37aa&&(_0x4126c7['push'](...this['_makeTokensFromTextByWords'](_0x1b37aa,_0x2bcc71,_0x41b154)),_0x1b37aa='');const _0x45fb37=_0x163866['item'];let _0x5df28a;_0x45fb37['getAttribute'](Wt)?_0x5df28a=_0x45fb37['getAttribute'](Wt):'elementStart'==_0x163866['type']?(_0x5df28a=qt(_0x45fb37),_0x59142['set'](_0x45fb37,_0x5df28a)):_0x5df28a=_0x59142['get'](_0x45fb37);const _0x47d11d=this['_getElementCategory'](_0x45fb37);'solid'==_0x47d11d&&('elementStart'==_0x163866['type']?(_0x41b154=_0x5df28a,_0x29200a['unshift'](_0x41b154)):_0x29200a['shift']());const _0x4e50c3={'type':'element','element':_0x45fb37,'elementId':_0x5df28a,'category':_0x47d11d,'isStart':'elementStart'==_0x163866['type'],'limitId':_0x41b154};_0x4126c7['push'](_0x4e50c3);}else''==_0x1b37aa&&(_0x2bcc71=_0x163866['previousPosition']['clone']()),_0x1b37aa+=_0x163866['item']['data'];return''!==_0x1b37aa&&_0x4126c7['push'](...this['_makeTokensFromTextByWords'](_0x1b37aa,_0x2bcc71,_0x29200a[0x0])),_0x4126c7;}['_makeTokensFromTextByWords'](_0xe3e4c5,_0x3aabcd,_0xeb3913){const _0x51d747=_0xe3e4c5['matchAll'](/(\s)/g),_0x2a16a1=Array['from'](_0x51d747)['map'](_0x1d0766=>_0x1d0766['index']);_0x2a16a1['push'](_0xe3e4c5['length']),0x0==_0x2a16a1[0x0]&&_0x2a16a1['shift']();const _0x4542c9=[],_0x52505d=_0x3aabcd['parent'];let _0x33d348=0x0,_0x66b7b7=_0x3aabcd['offset'];for(let _0x484140=0x0;_0x484140<_0x2a16a1['length'];_0x484140++)_0x4542c9['push']({'type':'text','data':_0xe3e4c5['slice'](_0x33d348,_0x2a16a1[_0x484140]),'parent':_0x52505d,'offset':_0x66b7b7,'limitId':_0xeb3913}),_0x33d348=_0x2a16a1[_0x484140],_0x66b7b7=_0x3aabcd['offset']+_0x2a16a1[_0x484140];return _0x4542c9;}['_getElementCategory'](_0x22fa83){const _0x379f20=this['_editor']['model']['schema'];return _0x379f20['isLimit'](_0x22fa83)||_0x379f20['isContent'](_0x22fa83)||_0x379f20['isInline'](_0x22fa83)?'solid':_0x379f20['isBlock'](_0x22fa83)?'block':'container';}['_diffModelTokens'](_0x224e59,_0x59ae35){const _0x1c89d6=_0x4dadb3(_0x224e59,_0x59ae35,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x1c89d6);const _0x333242=_0x1c89d6['flatMap'](_0x465d35=>{const _0x5c4f49=_0x465d35['added']?'added':_0x465d35['removed']?'removed':'unchanged';return _0x465d35['value']['map'](_0x2736d6=>({'token':_0x2736d6,'change':_0x5c4f49}));});let _0x58d33c=0x0;for(const _0x3db9d0 of _0x333242)'added'!=_0x3db9d0['change']&&('unchanged'==_0x3db9d0['change']&&(_0x3db9d0['before']=_0x224e59[_0x58d33c]),_0x58d33c++);return _0x333242;}['_handleUnclosedBlockOpeningTags'](_0x38062a){for(let _0x23947e=0x0;_0x23947e<_0x38062a['length']-0x1;_0x23947e++)if(_0x38062a[_0x23947e]['removed']&&_0x38062a[_0x23947e+0x1]['added']){const _0x5d3acc=this['_findUnclosedBlockOpeningToken'](_0x38062a[_0x23947e]['value']);if(null!==_0x5d3acc){const _0x39481e=this['_findUnclosedBlockOpeningToken'](_0x38062a[_0x23947e+0x1]['value']),_0x37b642=_0x38062a[_0x23947e]['value']['splice'](_0x5d3acc),_0xfe8723=_0x38062a[_0x23947e+0x1]['value']['splice'](_0x39481e),_0x2d32a1=[_0xfe8723['shift']()];_0x37b642['shift']();const _0x3a0f65={'value':_0x37b642,'removed':!0x0},_0x1f20ec={'value':_0xfe8723,'added':!0x0},_0x5ea0ee={'value':_0x2d32a1};_0x38062a['splice'](_0x23947e+0x2,0x0,_0x5ea0ee,_0x3a0f65,_0x1f20ec);}}}['_findUnclosedBlockOpeningToken'](_0x286d4d){let _0x1797df=0x0,_0x13afaf=-0x1;for(let _0x319595=0x0;_0x319595<_0x286d4d['length'];_0x319595++){const _0x5ede5e=_0x286d4d[_0x319595];'element'==_0x5ede5e['type']&&'block'==_0x5ede5e['category']&&(_0x1797df+=_0x5ede5e['isStart']?0x1:-0x1,_0x5ede5e['isStart']&&(_0x13afaf=_0x319595));}return 0x0===_0x1797df?null:_0x13afaf;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x14ae4e=0x0;_0x14ae4e<this['_diffItems']['length'];_0x14ae4e++){const _0x46ad48=this['_diffItems'][_0x14ae4e]['change'],_0x90c6e3=[];_0x90c6e3['push'](this['_diffItems'][_0x14ae4e]);let _0x51681c=_0x14ae4e+0x1;for(;this['_diffItems'][_0x51681c]&&this['_diffItems'][_0x51681c]['change']==_0x46ad48;)_0x90c6e3['push'](this['_diffItems'][_0x51681c]),_0x51681c++,_0x14ae4e++;const _0x58e72b=_0x90c6e3['map'](_0x5cff72=>_0x5cff72['token']);if('unchanged'==_0x46ad48)_0x90c6e3['map'](_0x48e29a=>_0x48e29a['before'])['forEach'](_0x3f4a01=>this['_traverseOverItem'](_0x3f4a01));else{if('removed'==_0x46ad48){if(this['_markDeletions']){const _0x10e195=this['_path']['slice']();_0x58e72b['forEach'](_0x386114=>this['_traverseOverItem'](_0x386114));const _0x1a6d18=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x10e195,'end':_0x1a6d18}});}else this['_handleChanged'](_0x58e72b,!0x0,this['_path']['slice']());}else{const _0x1f900e=_0x58e72b['filter'](_0x19ac0b=>'element'!=_0x19ac0b['type']||'container'!=_0x19ac0b['category']);this['_handleChanged'](_0x1f900e,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x12d512=0x0;_0x12d512<this['_diffItems']['length'];_0x12d512++){const _0x5b10cb=this['_diffItems'][_0x12d512]['change'],_0x3e3d7b=[];_0x3e3d7b['push'](this['_diffItems'][_0x12d512]);let _0x2d7bfa=_0x12d512+0x1;for(;this['_diffItems'][_0x2d7bfa]&&this['_diffItems'][_0x2d7bfa]['change']==_0x5b10cb;)_0x3e3d7b['push'](this['_diffItems'][_0x2d7bfa]),_0x2d7bfa++,_0x12d512++;const _0x158e8d=_0x3e3d7b['map'](_0x26bf30=>_0x26bf30['token']);if('unchanged'==_0x5b10cb){const _0x1f518c=_0x3e3d7b['map'](_0xeef03e=>_0xeef03e['before']);this['_handleUnchanged'](_0x1f518c,_0x158e8d);}else('added'==_0x5b10cb||this['_markDeletions'])&&_0x158e8d['forEach'](_0x5d931e=>{'element'==_0x5d931e['type']&&_0x5d931e['isStart']&&this['_splitPostponedData']['has'](_0x5d931e['element'])&&this['_handleSplitPostponedData'](_0x5d931e['element'],this['_path']),this['_traverseOverItem'](_0x5d931e);});}}['_handleSplitPostponedData'](_0x3ea444,_0xfa9d74){const _0x15d17a=this['_splitPostponedData']['get'](_0x3ea444);for(const _0x51748e of _0x15d17a)'rename'==_0x51748e['type']?this['_operationsData']['push']({'type':'rename','path':_0xfa9d74['slice'](),'oldName':_0x51748e['oldValue'],'newName':_0x3ea444['name']}):this['_operationsData']['push']({'type':'attribute','path':_0xfa9d74['slice'](),'howMany':0x1,'key':_0x51748e['key'],'oldValue':_0x51748e['oldValue'],'newValue':JSON['stringify'](_0x3ea444['getAttribute'](_0x51748e['key'])??null)});}['_calculateMarkersOperationsData'](_0xa44901,_0x51c06b){const _0x368d4f={};for(const [_0x28e4be]of _0xa44901)_0x368d4f[_0x28e4be]=null;for(const [_0x5f264e,_0x43b2d4]of _0x51c06b)_0x368d4f[_0x5f264e]=_0x43b2d4;const _0x9eb569=Object['entries'](_0x368d4f)['map'](([_0x1e3dad,_0x40e9c4])=>({'type':'marker','name':_0x1e3dad,'range':_0x40e9c4?{'start':_0x40e9c4['start']['path']['slice'](),'end':_0x40e9c4['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x9eb569);}['_handleUnwraps'](){const _0x50d878=new Map(),_0x4c1c4a=[],_0xc20154=[0x0];let _0x3db3b5=this['_diffItems']['length']+0x1;for(let _0x50c951=this['_diffItems']['length']-0x1;_0x50c951>=0x0;_0x50c951--){const {token:_0x52aae8,before:_0x327dd8,change:_0x2683a0}=this['_diffItems'][_0x50c951];if('removed'!=_0x2683a0&&(_0x3db3b5=_0x50c951),'element'!=_0x52aae8['type']||'container'!=_0x52aae8['category']||'added'==_0x2683a0)continue;const _0x2b5a1a=_0x327dd8?_0x327dd8['element']:_0x52aae8['element'];if(_0x52aae8['isStart']){const _0x529b9d=_0x50d878['get'](_0x2b5a1a),_0x27529d=this['_diffItems'][_0x529b9d];('removed'==_0x2683a0||'removed'==_0x27529d['change'])&&_0x3db3b5<_0x529b9d&&(this['_operationsData']['push']({'type':'unwrap','path':_0x2b5a1a['getPath'](),'howMany':_0x2b5a1a['maxOffset']+_0xc20154[0x0]}),_0xc20154['shift'](),_0xc20154[0x0]+=_0x2b5a1a['maxOffset']-0x1,_0x4c1c4a['push'](_0x50c951),_0x4c1c4a['push'](_0x529b9d));}else _0x50d878['set'](_0x2b5a1a,_0x50c951),_0xc20154['unshift'](0x0);}_0x4c1c4a['sort']((_0x9b5ff0,_0x23c791)=>_0x23c791-_0x9b5ff0),_0x4c1c4a['forEach'](_0x1e42b7=>{const _0x263c0e=this['_diffItems'][_0x1e42b7];'removed'==_0x263c0e['change']?this['_diffItems']['splice'](_0x1e42b7,0x1):(_0x263c0e['change']='added',delete _0x263c0e['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x215f5c=[];for(let _0x2a1e65=0x0;_0x2a1e65<this['_diffItems']['length'];_0x2a1e65++){const {change:_0x999c32,token:_0x564076}=this['_diffItems'][_0x2a1e65];if('added'==_0x999c32&&'element'==_0x564076['type']&&'container'==_0x564076['category']){if(_0x564076['isStart'])_0x215f5c['push'](this['_path']['slice']());else{if(!_0x564076['isStart']){const _0x3f8da4=_0x215f5c['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x3f8da4,'end':this['_path']['slice']()},'token':_0x564076}),this['_path'][this['_path']['length']-0x1]=_0x3f8da4[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x999c32||this['_markDeletions'])&&this['_traverseOverItem'](_0x564076);}}['_handleUnchanged'](_0x37558e,_0x46ead5){for(let _0x2d2664=0x0;_0x2d2664<_0x37558e['length'];_0x2d2664++){const _0x10a536=_0x37558e[_0x2d2664];if('element'==_0x10a536['type']&&_0x10a536['isStart']){const _0xbc9f83=_0x46ead5[_0x2d2664];'block'==_0x10a536['category']&&this['_handleElementRename'](_0x10a536['element'],_0xbc9f83['element'],this['_path']),this['_handleElementAttributeChanges'](_0x10a536['element'],_0xbc9f83['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0xbc9f83);}else{if('element'!=_0x10a536['type']||_0x10a536['isStart']){if('text'==_0x10a536['type']){const _0x233148=this['_path']['slice'](),_0x39da12=[],_0x5a3d66=[];for(;_0x37558e[_0x2d2664]&&'text'==_0x37558e[_0x2d2664]['type'];)_0x39da12['push'](_0x37558e[_0x2d2664]),_0x5a3d66['push'](_0x46ead5[_0x2d2664]),this['_path'][this['_path']['length']-0x1]+=_0x37558e[_0x2d2664]['data']['length'],_0x2d2664++;_0x2d2664--,this['_handleTextAttributeChanges'](_0x39da12,_0x5a3d66,_0x233148);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x3170b6,_0x1cf1b6,_0x33bfba){const _0x55b065=[],_0x1dae50=[],_0x30e00b=_0x33bfba['slice']();let _0x2f504a=this['_parents']['length']-0x1;for(let _0x2aca68=0x0;_0x2aca68<_0x3170b6['length'];_0x2aca68++){const _0x3ed6b8=_0x3170b6[_0x2aca68],_0x1752db=_0x33bfba['slice']();'element'!=_0x3ed6b8['type']||_0x3ed6b8['isStart']?'element'==_0x3ed6b8['type']&&_0x3ed6b8['isStart']?(_0x33bfba['push'](0x0),_0x2f504a++,_0x1dae50['push']({'before':_0x1752db,'after':_0x33bfba['slice'](),'index':_0x2aca68})):_0x33bfba[_0x33bfba['length']-0x1]+=_0x3ed6b8['data']['length']:(_0x33bfba['pop'](),_0x33bfba[_0x33bfba['length']-0x1]++,_0x2f504a--,_0x1dae50['length']?_0x1dae50['pop']():_0x55b065['push']({'before':_0x1752db,'after':_0x33bfba['slice'](),'index':_0x2aca68}));}if(_0x1dae50['length']!==_0x55b065['length'])throw new _0x5675da('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x3170b6,'isRemove':_0x1cf1b6});const _0x45c6a5=[{'after':_0x30e00b['slice'](),'index':-0x1},..._0x55b065,..._0x1dae50,{'before':_0x33bfba['slice'](),'index':_0x3170b6['length']}];if(_0x1cf1b6){for(let _0xdc428f=_0x45c6a5['length']-0x1;_0xdc428f>=0x1;_0xdc428f--){const _0x449a9f=_0x45c6a5[_0xdc428f-0x1]['after'],_0x155a1a=_0x45c6a5[_0xdc428f]['before'],_0x4eb1bb=_0x155a1a[_0x155a1a['length']-0x1]-_0x449a9f[_0x449a9f['length']-0x1];_0x4eb1bb&&(this['_operationsData']['push']({'type':'remove','path':_0x449a9f,'howMany':_0x4eb1bb}),_0x155a1a[_0x155a1a['length']-0x1]-=_0x4eb1bb);}for(const {before:_0x582e39}of _0x55b065)this['_operationsData']['push']({'type':'merge','path':_0x582e39});}else for(let _0x118eb5=0x0;_0x118eb5<_0x45c6a5['length']-0x1;_0x118eb5++){const _0x179147=_0x45c6a5[_0x118eb5]['after'],_0x11f35b=_0x45c6a5[_0x118eb5+0x1]['before'],_0x54a228=_0x45c6a5[_0x118eb5]['index']+0x1,_0x36ce67=_0x45c6a5[_0x118eb5+0x1]['index'];if(_0x54a228!==_0x36ce67&&this['_operationsData']['push']({'type':'insert','path':_0x179147,'tokens':_0x3170b6['slice'](_0x54a228,_0x36ce67)}),_0x118eb5<_0x55b065['length']){this['_operationsData']['push']({'type':'split','path':_0x11f35b});const _0x1b0ef2=_0x3170b6[_0x1dae50[_0x1dae50['length']-0x1-_0x118eb5]['index']],_0x2069f7=this['_parents'][_0x2f504a]['element'];_0x2069f7['name']!=_0x1b0ef2['element']['name']&&this['_addSplitPostponedData'](_0x1b0ef2['element'],{'type':'rename','oldValue':_0x2069f7['name']});const _0x796db5=this['_getAttributeChanges'](_0x2069f7['getAttributes'](),_0x1b0ef2['element']['getAttributes']());for(const _0x5acecf in _0x796db5){const _0x314d77=_0x796db5[_0x5acecf]['oldValue'];this['_addSplitPostponedData'](_0x1b0ef2['element'],{'type':'attribute','key':_0x5acecf,'oldValue':_0x314d77});}}}}['_addSplitPostponedData'](_0x3f545e,_0x9885b0){const _0x4f591b=this['_splitPostponedData']['get'](_0x3f545e)||[];_0x4f591b['push'](_0x9885b0),this['_splitPostponedData']['set'](_0x3f545e,_0x4f591b);}['_traverseOverItem'](_0x4f7092){'element'==_0x4f7092['type']&&_0x4f7092['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x4f7092)):'element'!=_0x4f7092['type']||_0x4f7092['isStart']?'text'==_0x4f7092['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x4f7092['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x10f550,_0x260a5d,_0x5c0a7e){_0x10f550['name']!=_0x260a5d['name']&&this['_operationsData']['push']({'type':'rename','path':_0x5c0a7e['slice'](),'oldName':_0x10f550['name'],'newName':_0x260a5d['name']});}['_handleElementAttributeChanges'](_0x3e5951,_0x2cfabd,_0x4fde18){const _0x4ed870=this['_getAttributeChanges'](_0x3e5951['getAttributes'](),_0x2cfabd['getAttributes']());for(const _0x440458 in _0x4ed870){const {oldValue:_0x45a0fc,newValue:_0x1a2906}=_0x4ed870[_0x440458];this['_operationsData']['push']({'type':'attribute','path':_0x4fde18['slice'](),'howMany':0x1,'key':_0x440458,'oldValue':_0x45a0fc,'newValue':_0x1a2906});}}['_handleTextAttributeChanges'](_0x4b4902,_0x1c0427,_0x24a4a5){const _0x2ac188=this['_operationsData'],_0x51e147=_0x4b4902[0x0]['parent'],_0x5dc3f6=_0x4b4902[0x0]['offset'],_0x17f701=_0x1c0427[0x0]['parent'],_0x330796=_0x1c0427[0x0]['offset'],_0x439599=_0x4b4902['reduce']((_0x6f9b2a,_0x47f05c)=>_0x6f9b2a+_0x47f05c['data']['length'],0x0),_0x5e8103=this['_getAttrsForOffsets'](_0x51e147,_0x5dc3f6,_0x439599),_0x51cbcf=this['_getAttrsForOffsets'](_0x17f701,_0x330796,_0x439599),_0xb168f6={};for(let _0x513f80=0x0;_0x513f80<_0x439599;_0x513f80++){const _0x37dad1=_0x5e8103[_0x5dc3f6+_0x513f80],_0x367702=_0x51cbcf[_0x330796+_0x513f80],_0x51b940=this['_getAttributeChanges'](_0x37dad1,_0x367702);for(const _0x437ace in _0xb168f6)_0x51b940[_0x437ace]||_0x3f17e2(_0x437ace);for(const _0x295d75 in _0x51b940){const {oldValue:_0x3e9967,newValue:_0x4cbd4b}=_0x51b940[_0x295d75],_0x28a322=_0xb168f6[_0x295d75];_0x28a322?_0x28a322['oldValue']==_0x3e9967&&_0x28a322['newValue']==_0x4cbd4b?_0x28a322['length']++:(_0x3f17e2(_0x295d75),_0xb168f6[_0x295d75]={'oldValue':_0x3e9967,'newValue':_0x4cbd4b,'start':_0x513f80,'length':0x1}):_0xb168f6[_0x295d75]={'oldValue':_0x3e9967,'newValue':_0x4cbd4b,'start':_0x513f80,'length':0x1};}}for(const _0x1e8737 in _0xb168f6)_0x3f17e2(_0x1e8737);function _0x3f17e2(_0x3a7a20){const _0x5d934a=_0xb168f6[_0x3a7a20],_0x2c3ff4=_0x24a4a5['slice']();_0x2c3ff4[_0x2c3ff4['length']-0x1]+=_0x5d934a['start'],_0x2ac188['push']({'type':'attribute','path':_0x2c3ff4,'howMany':_0x5d934a['length'],'key':_0x3a7a20,'oldValue':_0x5d934a['oldValue'],'newValue':_0x5d934a['newValue']}),delete _0xb168f6[_0x3a7a20];}}['_getAttributeChanges'](_0xd16f24,_0x38418b){const _0x48a41c={};for(const [_0x57b4e5,_0x5d8562]of _0xd16f24)_0x48a41c[_0x57b4e5]={'oldValue':JSON['stringify'](_0x5d8562),'newValue':'null'};for(const [_0x3db468,_0x317637]of _0x38418b){const _0x111f3b=JSON['stringify'](_0x317637);_0x48a41c[_0x3db468]?_0x48a41c[_0x3db468]['oldValue']==_0x111f3b?delete _0x48a41c[_0x3db468]:_0x48a41c[_0x3db468]['newValue']=_0x111f3b:_0x48a41c[_0x3db468]={'oldValue':'null','newValue':_0x111f3b};}return delete _0x48a41c[Wt],_0x48a41c;}['_getAttrsForOffsets'](_0xecc3b7,_0x4baecc,_0x1731f9){const _0x4d27b3=new Array(_0x4baecc+_0x1731f9);let _0x7ad8c0=_0xecc3b7['getChildAtOffset'](_0x4baecc),_0x1f6358=_0x7ad8c0['startOffset'];for(;_0x7ad8c0&&_0x1f6358<_0x4baecc+_0x1731f9;){const _0x40c02c=Array['from'](_0x7ad8c0['getAttributes']());_0x4d27b3['fill'](_0x40c02c,_0x1f6358,_0x1f6358+_0x7ad8c0['offsetSize']),_0x1f6358+=_0x7ad8c0['offsetSize'],_0x7ad8c0=_0x7ad8c0['nextSibling'];}return _0x4d27b3;}['_getPositionFromAnchorAndPath'](_0x2be021,_0x4c2dc4){const _0x1af47d=[..._0x2be021['path']['slice'](0x0,-0x1),_0x2be021['offset']+_0x4c2dc4[0x0],..._0x4c2dc4['slice'](0x1)];return new _0x39e7fb(_0x2be021['root'],_0x1af47d);}['_makeModelFromTokens'](_0x308ce2){const _0x32218b=[];let _0x224b7a=null;for(const _0x7882aa of _0x308ce2)if('element'!=_0x7882aa['type']||_0x7882aa['isStart']||_0x224b7a!=_0x7882aa['element']){if(!_0x224b7a){if('text'==_0x7882aa['type']){const _0x5d494b=_0x39e7fb['_createAt'](_0x7882aa['parent'],_0x7882aa['offset']),_0x2e03c9=_0x3dfc79['_createFromPositionAndShift'](_0x5d494b,_0x7882aa['data']['length']),_0x3a6f98=Array['from'](_0x2e03c9['getItems']())['map'](_0x127a42=>new _0x222f90(_0x127a42['data'],_0x127a42['getAttributes']()));_0x32218b['push'](..._0x3a6f98);}else{_0x224b7a=_0x7882aa['element'];const _0x17ac63=_0x7882aa['element']['_clone'](!0x0);_0x17ac63['_removeAttribute'](Wt);for(const _0x5863b3 of this['_editor']['model']['createRangeIn'](_0x17ac63)['getItems']())_0x5863b3['is']('element')&&_0x5863b3['_removeAttribute'](Wt);_0x32218b['push'](_0x17ac63);}}}else _0x224b7a=null;return _0x32218b;}}function Kt(_0x93bc96,_0x1d8f7a){return _0x93bc96['type']===_0x1d8f7a['type']&&(_0x93bc96['limitId']===_0x1d8f7a['limitId']&&('text'==_0x93bc96['type']?_0x93bc96['data']==_0x1d8f7a['data']:function(_0x443d16,_0x52533a){if(_0x443d16['isStart']!=_0x52533a['isStart'])return!0x1;if(_0x443d16['isStart']&&_0x443d16['elementId']!=_0x52533a['elementId'])return!0x1;if(_0x443d16['category']!=_0x52533a['category'])return!0x1;if('block'==_0x443d16['category'])return!0x0;if('container'==_0x443d16['category']&&_0x443d16['elementId']!=_0x52533a['elementId'])return!0x1;return _0x443d16['element']['name']==_0x52533a['element']['name'];}(_0x93bc96,_0x1d8f7a)));}function qt(_0x2954fa){return At({'name':_0x2954fa['name'],...Object['fromEntries'](_0x2954fa['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':_0x1d22c3=>0x1!=_0x1d22c3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x598753=>{const {af:{dictionary:_0x17692c,getPluralForm:_0x40c42c}}={'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':_0x1e027d=>0x1!=_0x1e027d}};_0x598753['af']||={'dictionary':{},'getPluralForm':null},_0x598753['af']['dictionary']=Object['assign'](_0x598753['af']['dictionary'],_0x17692c),_0x598753['af']['getPluralForm']=_0x40c42c;})(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':_0x55132b=>0x0==_0x55132b?0x0:0x1==_0x55132b?0x1:0x2==_0x55132b?0x2:_0x55132b%0x64>=0x3&&_0x55132b%0x64<=0xa?0x3:_0x55132b%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18e840=>{const {ar:{dictionary:_0x2e3498,getPluralForm:_0x1f6bd3}}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x40f59e=>0x0==_0x40f59e?0x0:0x1==_0x40f59e?0x1:0x2==_0x40f59e?0x2:_0x40f59e%0x64>=0x3&&_0x40f59e%0x64<=0xa?0x3:_0x40f59e%0x64>=0xb?0x4:0x5}};_0x18e840['ar']||={'dictionary':{},'getPluralForm':null},_0x18e840['ar']['dictionary']=Object['assign'](_0x18e840['ar']['dictionary'],_0x2e3498),_0x18e840['ar']['getPluralForm']=_0x1f6bd3;})(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':_0x5b5358=>0x1!=_0x5b5358}};
|