@ckeditor/ckeditor5-collaboration-core 48.0.0-alpha.4 → 48.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/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/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x5b9bc6,Editor as _0x4cded4,Plugin as _0x54dab4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x45484c,Collection as _0x5b4747,uid as _0x13ce8b,toArray as _0x4b65da,first as _0xd60680,FocusTracker as _0x721f3f,KeystrokeHandler as _0x188f5b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x531d32,IconView as _0x61f4b,ButtonView as _0x55be45,DropdownButtonView as _0x26121d,FocusCycler as _0x257c17,isViewWithFocusCycler as _0xe44688}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x3587e7,IconCheck as _0x428ff3,IconCancel as _0x130519}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0xc02b6b,toWidget as _0x51a3d8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x4d3a86}from'luxon';import{InsertOperation as _0x5965c7,MoveOperation as _0x4dbb02,ModelPosition as _0x4a6baf,ModelRange as _0x406260,MarkerOperation as _0xa5c8a6,MergeOperation as _0xb0f5c9,SplitOperation as _0x377929,RenameOperation as _0x6ea82c,AttributeOperation as _0x5c49ea,ModelTreeWalker as _0x28c4fd,ModelText as _0x2bd850}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x5a828b}from'diff';class D extends _0x5b9bc6{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0xbb84ca,_0x3d08fb){let _0xfb22ac;if(_0x3d08fb||(_0x3d08fb=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x3d08fb?_0xfb22ac=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0xfb22ac=this['context']['editors']['find'](_0x4299a0=>_0x4299a0['config']['get']('collaboration.channelId')==_0x3d08fb)),!_0xfb22ac)throw new _0x45484c('permissions-set-permissions-invalid-channel-id',null);const _0x3e571d=_0xfb22ac['plugins'],_0x10bf63=_0x3e571d['has']('CommentsRepository')?_0x3e571d['get']('CommentsRepository'):void 0x0,_0x440911=_0x3e571d['has']('CommentsOnly')&&_0x3e571d['get']('CommentsOnly'),_0x4dd370=_0xbb84ca['includes']('document:write'),_0x6ca17b=_0xbb84ca['includes']('comment:modify_all'),_0x9703ff=_0xbb84ca['includes']('comment:admin'),_0x130dd9=_0xbb84ca['includes']('comment:write'),_0x3a30eb=_0x130dd9||_0x9703ff,_0xee2ada=_0x3a30eb||_0x6ca17b,_0x52696e=_0x4dd370||_0x3a30eb;(_0x440911&&(_0x440911['isEnabled']=!_0x4dd370&&_0xee2ada),_0xfb22ac instanceof _0x4cded4)&&(!(_0x4dd370||_0xee2ada&&_0x10bf63)?_0xfb22ac['enableReadOnlyMode']('no-permissions'):_0xfb22ac['disableReadOnlyMode']('no-permissions'));if(_0x10bf63){_0x10bf63['setPermissions']({'admin':_0x9703ff,'modifyAll':_0x6ca17b,'write':_0x130dd9,'resolve':_0x52696e},_0x3d08fb);const _0xaf7fa9=_0xfb22ac instanceof _0x4cded4&&_0xfb22ac['commands']['get']('addCommentThread');_0xaf7fa9&&(_0x3a30eb?_0xaf7fa9['clearForceDisabled']('noPermissions'):_0xaf7fa9['forceDisabled']('noPermissions'));}}}function $(_0x2e6c57,_0x469233){const t=_0x2e6c57['t'];switch(_0x469233){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 _0x5b9bc6{['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(_0x2bd832){super(_0x2bd832),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x5b4747(),this['_locale']=_0x2bd832['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:_0x47fadf,name:_0x4cb912,..._0x58929b}){if(!_0x47fadf||'string'!=typeof _0x47fadf)throw new _0x45484c('users-add-invalid-id');if(this['users']['has'](_0x47fadf))throw new _0x45484c('users-add-duplicated-id',null,{'id':_0x47fadf});const _0x269d49=this['context']['config']['get']('users.getInitialsCallback'),_0x35700d={..._0x58929b,'id':_0x47fadf,'name':U(this['_locale'],_0x4cb912),'color':this['_getNextColor']()};_0x35700d['name']=U(this['_locale'],_0x35700d['name']);const _0x42af39=new V(_0x35700d,_0x269d49);return this['users']['add'](_0x42af39),_0x42af39;}['getUser'](_0x25588f){return this['users']['get'](_0x25588f);}['useAnonymousUser'](){const _0x29619d=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x29619d);}['defineMe'](_0x3e13db){if(this['_myId'])throw new _0x45484c('users-me-already-defined',null);const _0x355d35=this['getUser'](_0x3e13db);if(!_0x355d35)throw new _0x45484c('users-me-missing-user',null);this['_myId']=_0x3e13db,_0x355d35['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x2c5948=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x2c5948&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0x4bac83=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x4bac83,'name':$(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class V{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x1ee602,_0x5a0d73){this['id']=_0x1ee602['id'],this['color']=_0x1ee602['color'],this['name']=_0x1ee602['name'],this['initials']=_0x5a0d73?_0x5a0d73(this['name']):this['_computeInitials'](),this['avatar']=_0x1ee602['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x473973=this['name']['split']('\x20')['filter'](_0x3da3a7=>/^[\p{Letter}]/u['test'](_0x3da3a7));return 0x1===_0x473973['length']?this['_getInitial'](_0x473973[0x0]):0x0===_0x473973['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x473973[0x0])+this['_getInitial'](_0x473973[_0x473973['length']-0x1]);}['_getInitial'](_0x5316ea){return String['fromCodePoint'](_0x5316ea['codePointAt'](0x0))['toUpperCase']();}}function U(_0x180154,_0x4729e9=''){return''==(_0x4729e9=_0x4729e9['trim']())?$(_0x180154,'Anonymous'):_0x4729e9;}class R{['_id'];constructor(_0x5dda7e){this['_id']=_0x5dda7e;}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 _0x531d32{['name'];['notificationView'];constructor(_0x485259,_0x7b759d,_0x44b6d3){super(_0x485259),this['name']=_0x7b759d['name'],this['notificationView']=null;const _0x37ff8d=['ck','ck-user'],_0x5d379a=['ck','ck-user__img'];if(_0x7b759d['isAnonymous']&&_0x5d379a['push']('ck-user__anonymous'),!_0x7b759d['isAnonymous']&&_0x7b759d['isMe']&&_0x37ff8d['push']('ck-user_me'),_0x7b759d['avatar']&&_0x5d379a['push']('ck-user__avatar'),_0x44b6d3){const _0x4c4ecb=new _0x61f4b();_0x4c4ecb['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4c4ecb['content']=_0x3587e7,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x44b6d3},'children':[_0x4c4ecb]};}const _0x4644ab=[{'tag':'div','attributes':{'class':_0x5d379a,'style':{'background-image':_0x7b759d['avatar']?'url(\x27'+_0x7b759d['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x7b759d['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x7b759d['name']},'children':[{'text':_0x7b759d['initials']}]}];this['notificationView']&&_0x4644ab['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x37ff8d,'data-user-id':_0x7b759d['id']},'children':_0x4644ab});}}class H extends _0x531d32{['id'];constructor(_0x531653,_0x44d7d5){super(_0x531653),this['id']='ck-aria-description-'+_0x13ce8b(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x44d7d5}]});}}class z extends _0x55be45{['render'](){super['render'](),j(this);}}class W extends _0x26121d{['render'](){super['render'](),j(this);}}function j(_0x83eb5f){_0x83eb5f['listenTo'](_0x83eb5f['element'],'mousedown',(_0x33b985,_0x384b89)=>{_0x384b89['stopPropagation'](),_0x384b89['preventDefault']();}),_0x83eb5f['listenTo'](_0x83eb5f['element'],'mouseup',()=>{_0x83eb5f['element']['focus']();});}function Y(_0x5ca343){const _0x995efa=_0x5ca343['split'](':');return{'group':_0x995efa[0x0],'type':_0x995efa[0x1],'subType':_0x995efa['length']>=0x5?_0x995efa[0x2]:null,'id':_0x995efa['length']<0x5?_0x995efa[0x2]:_0x995efa[0x3],'authorId':_0x995efa['length']<0x5?_0x995efa[0x3]:_0x995efa[0x4],'markerCount':0x6==_0x995efa['length']?_0x995efa[0x5]:null};}function J(_0x4bb04a,_0x202542){const _0x2c93a9=_0x4bb04a['end']['nodeBefore'];if(_0x2c93a9&&_0x2c93a9['is']('element')&&_0x202542['schema']['isBlock'](_0x2c93a9)&&!_0x202542['schema']['isObject'](_0x2c93a9)){const _0x4e0e88=_0x202542['createPositionAt'](_0x2c93a9,'end');return _0x202542['createRange'](_0x4bb04a['start'],_0x4e0e88);}return _0x4bb04a;}class K extends _0x54dab4{['afterInit'](){const _0x48c2e9=this['editor'];if(!_0x48c2e9['plugins']['has']('AlignmentEditing'))return;_0x48c2e9['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x54dab4{['afterInit'](){const _0x119f7e=this['editor'],_0x19666d=_0x119f7e['plugins']['get']('SuggestionsConversion');for(const _0x1ca387 of q){if(!_0x119f7e['plugins']['has'](_0x1ca387))continue;const _0x2a4898=_0x1ca387['slice'](0x0,-0x7)['toLowerCase']();_0x19666d['registerInlineAttribute'](_0x2a4898);}}}class Z extends _0x54dab4{['afterInit'](){const _0x1c3201=this['editor'],_0x1164a6=_0x1c3201['plugins']['get']('SuggestionsConversion');_0x1c3201['plugins']['has']('BookmarkEditing')&&_0x1164a6['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x54dab4{['afterInit'](){const _0x34405b=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x21a6cf,commandName:_0x228369}of Q)this['editor']['plugins']['has'](_0x21a6cf)&&_0x34405b['registerInlineAttribute'](_0x228369);}}class tt extends _0x54dab4{['afterInit'](){const {editor:_0x587688}=this;if(!_0x587688['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x461fd4=_0x587688['plugins']['get']('SuggestionsConversion');_0x461fd4['registerBlockAttribute']('footnotesListStyle'),_0x461fd4['registerBlockAttribute']('footnotesListStart');}}class et extends _0x54dab4{['afterInit'](){const _0x4cb231=this['editor'];if(!_0x4cb231['plugins']['has']('HighlightEditing'))return;_0x4cb231['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x54dab4{['afterInit'](){const _0x5a1c11=this['editor'];if(!_0x5a1c11['plugins']['has']('HtmlEmbed'))return;_0x5a1c11['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x54dab4{['afterInit'](){const _0x16d06b=this['editor'];if(!_0x16d06b['plugins']['has']('ImageEditing'))return;const _0x39c08d=_0x16d06b['plugins']['get']('SuggestionsConversion');_0x39c08d['registerBlockAttribute']('src'),_0x16d06b['plugins']['has']('ImageResize')&&_0x39c08d['registerBlockAttribute']('resizedWidth'),_0x16d06b['plugins']['has']('ImageTextAlternativeEditing')&&_0x39c08d['registerBlockAttribute']('alt'),_0x16d06b['plugins']['has']('PictureEditing')&&_0x39c08d['registerBlockAttribute']('sources'),_0x16d06b['plugins']['has']('ImageSizeAttributes')&&(_0x39c08d['registerBlockAttribute']('width'),_0x39c08d['registerBlockAttribute']('height'));}}class nt extends _0x54dab4{['afterInit'](){const _0x388500=this['editor'],_0x4acd19=_0x388500['plugins']['get']('SuggestionsConversion');_0x388500['plugins']['has']('IndentBlock')&&(_0x4acd19['registerBlockAttribute']('blockIndent'),_0x388500['plugins']['has']('ListEditing')&&(_0x4acd19['registerBlockAttribute']('blockIndentList'),_0x4acd19['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x54dab4{['afterInit'](){const _0x5d14f3=this['editor'];if(!_0x5d14f3['plugins']['has']('LineHeight'))return;_0x5d14f3['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x54dab4{['afterInit'](){const _0x509559=this['editor'];if(!_0x509559['plugins']['has']('LinkEditing'))return;const _0x14c8ec=_0x509559['plugins']['get']('SuggestionsConversion'),_0x3f2070=_0x509559['commands']['get']('link');_0x14c8ec['registerInlineAttribute']('linkHref');for(const _0x1e2c5a of _0x3f2070['manualDecorators'])_0x14c8ec['registerInlineAttribute'](_0x1e2c5a['id']);}}class at extends _0x54dab4{['afterInit'](){const _0x17ccac=this['editor'];if(!_0x17ccac['plugins']['has']('ListEditing'))return;const _0x260dfe=_0x17ccac['plugins']['get']('SuggestionsConversion'),_0x3ff565=_0x17ccac['plugins']['has']('TodoListEditing');_0x260dfe['registerBlockAttribute']('listItemId'),_0x260dfe['registerBlockAttribute']('listType'),_0x260dfe['registerBlockAttribute']('listIndent'),_0x3ff565&&_0x260dfe['registerBlockAttribute']('todoListChecked');}}class ct extends _0x54dab4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x49f6d5=this['editor']['config']['get']('list.properties'),_0x3584bc=this['editor']['plugins']['get']('SuggestionsConversion');_0x49f6d5['styles']&&_0x3584bc['registerBlockAttribute']('listStyle'),_0x49f6d5['reversed']&&_0x3584bc['registerBlockAttribute']('listReversed'),_0x49f6d5['startIndex']&&_0x3584bc['registerBlockAttribute']('listStart');}}class lt extends _0x54dab4{['afterInit'](){const _0x2ef6f4=this['editor'],_0x274875=_0x2ef6f4['plugins']['get']('SuggestionsConversion');_0x2ef6f4['plugins']['has']('MultiLevelList')&&_0x274875['registerBlockAttribute']('listMarkerStyle');}}class ut extends _0x54dab4{['afterInit'](){const _0x57e9ab=this['editor'];if(!_0x57e9ab['plugins']['has']('Style')||!_0x57e9ab['plugins']['has']('DataSchema')||!_0x57e9ab['config']['get']('style.definitions'))return;const _0x48062b=_0x57e9ab['plugins']['get']('SuggestionsConversion'),_0x3702b7=_0x57e9ab['config']['get']('style.definitions'),_0x57e3ae=_0x57e9ab['plugins']['get']('GeneralHtmlSupport'),_0x11b991=_0x57e9ab['plugins']['get']('StyleUtils')['normalizeConfig'](_0x57e9ab['plugins']['get']('DataSchema'),_0x3702b7),_0x939133=new Set();for(const _0x34f3c0 of _0x11b991['block']){const _0x522d69=_0x57e3ae['getGhsAttributeNameForElement'](_0x34f3c0['element']);_0x939133['add'](_0x522d69);}const _0x5e2832=new Set();for(const _0x4224cb of _0x11b991['inline']){const _0x4218b4=_0x57e3ae['getGhsAttributeNameForElement'](_0x4224cb['element']);_0x5e2832['add'](_0x4218b4);for(const _0x5bff93 of _0x4224cb['ghsAttributes'])_0x5e2832['add'](_0x5bff93);}for(const _0x8a7f18 of _0x939133)_0x48062b['registerBlockAttribute'](_0x8a7f18);for(const _0x2071dc of _0x5e2832)_0x48062b['registerInlineAttribute'](_0x2071dc);}}class ht extends _0x54dab4{['afterInit'](){const _0x14370e=this['editor'];if(!_0x14370e['plugins']['has']('TableEditing'))return;const _0x14e474=_0x14370e['plugins']['get']('SuggestionsConversion');_0x14e474['registerBlockAttribute']('headingRows'),_0x14e474['registerBlockAttribute']('headingColumns');}}class dt extends _0x54dab4{['afterInit'](){const {plugins:_0x8cc3ab}=this['editor'];if(!_0x8cc3ab['has']('TablePropertiesEditing'))return;const _0x47170d=_0x8cc3ab['get']('SuggestionsConversion'),_0x4d316e=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x39887e of _0x4d316e)_0x47170d['registerBlockAttribute'](_0x39887e);}}class ft extends _0x54dab4{['afterInit'](){const _0x1e2041=this['editor'],_0x869e8e=_0x1e2041['plugins']['get']('SuggestionsConversion');_0x1e2041['plugins']['has']('TableLayout')&&_0x869e8e['registerBlockAttribute']('tableType');}}class gt extends _0x54dab4{['afterInit'](){const _0x3d6ea0=this['editor'],_0x106e4a=this['editor']['plugins']['get']('SuggestionsConversion');_0x3d6ea0['plugins']['has']('Uploadcare')&&_0x3d6ea0['plugins']['has']('UploadcareImageEdit')&&_0x106e4a['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x54dab4{['afterInit'](){const _0x1fa1cc=this['editor'];if(!_0x1fa1cc['plugins']['has']('ShiftEnter'))return;const _0x44f0ca=_0x1fa1cc['plugins']['get']('SuggestionsConversion'),_0x122f0f=(_0x5eddec,_0x55700a,_0x477fa6,_0x3da2c2)=>{if(_0x3da2c2&&!_0x477fa6['options']['showSuggestionHighlights'])return;if(!_0x477fa6['consumable']['test'](_0x55700a['markerRange'],_0x5eddec['name']))return;const _0x4d908d=_0x1fa1cc['model'];for(const _0xfa9927 of _0x55700a['markerRange']['getItems']()){if(!_0xfa9927['is']('element','softBreak'))continue;const _0x5ad83b='deletion'==_0x55700a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4cc0c6,authorId:_0x8d4711}=Y(_0x55700a['markerName']),_0xbfd027=_0x477fa6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ad83b,'data-suggestion':_0x4cc0c6,'data-author-id':_0x8d4711}),_0x35e327=_0x477fa6['mapper']['toViewPosition'](_0x4d908d['createPositionBefore'](_0xfa9927));!_0x3da2c2&&_0x44f0ca['_activeMarkers']['includes'](_0x55700a['markerName'])&&_0x477fa6['writer']['addClass']('ck-suggestion-marker--active',_0xbfd027),_0x477fa6['writer']['insert'](_0x35e327,_0xbfd027),_0x477fa6['mapper']['bindElementToMarker'](_0xbfd027,_0x55700a['markerName']);}};_0x1fa1cc['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59d874,_0x52cf9a,_0x19bd4e)=>{_0x122f0f(_0x59d874,_0x52cf9a,_0x19bd4e,!0x1);},{'priority':'high'}),_0x1fa1cc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1359fb,_0x2a64ca,_0x2cf2c2)=>{_0x122f0f(_0x1359fb,_0x2a64ca,_0x2cf2c2,!0x0);},{'priority':'high'});}}class kt extends _0x54dab4{['afterInit'](){const _0x1c44ef=this['editor'];_0x1c44ef['plugins']['has']('MediaEmbedEditing')&&(_0x1c44ef['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5d393d,{writer:_0x195d19,options:_0x45a882})=>{if(_0x45a882['showSuggestionHighlights'])return _0x195d19['createEmptyElement']('div');},'converterPriority':'high'}),_0x1c44ef['data']['downcastDispatcher']['on']('attribute:url:media',(_0x137d23,_0x424bc9,_0x386ed4)=>{_0x386ed4['options']['showSuggestionHighlights']&&_0x137d23['stop']();},{'priority':'high'}));}}class pt extends _0x54dab4{['afterInit'](){const _0x1d31c6=this['editor'];if(!_0x1d31c6['plugins']['has']('Table'))return;_0x1d31c6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c3747,_0x5830cd,_0x2eabed)=>{((_0x23dae0,_0x50ac86,_0x402c86)=>{if(!_0x402c86['options']['showSuggestionHighlights'])return;const _0x4d8dc4=_0x50ac86['item'];if(!_0x4d8dc4||!_0x4d8dc4['is']('element','tableCell'))return;const _0x5e35a7=_0x402c86['mapper']['toViewElement'](_0x4d8dc4);if(_0x5e35a7){const {id:_0x3d9c80,authorId:_0x5baba8}=Y(_0x50ac86['markerName']);_0xc02b6b(_0x5e35a7,_0x402c86['writer'],(_0x2d93c5,_0x552fd8,_0x50270)=>{_0x50270['addClass'](_0x4b65da(_0x552fd8['classes']),_0x2d93c5),_0x50270['setAttribute']('data-suggestion',_0x3d9c80,_0x2d93c5),_0x50270['setAttribute']('data-author-id',_0x5baba8,_0x2d93c5);});}})(0x0,_0x5830cd,_0x2eabed);},{'priority':'highest'});}}class yt extends _0x54dab4{['afterInit'](){const _0x2c26f8=this['editor'];_0x2c26f8['plugins']['has']('HorizontalLineEditing')&&_0x2c26f8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2e711d,{writer:_0x51152c,options:_0x208c7a})=>{if(!_0x208c7a['showSuggestionHighlights'])return null;const _0x3d9248=_0x51152c['createContainerElement']('div'),_0x19cda3=_0x51152c['createEmptyElement']('hr');return _0x51152c['addClass']('ck-horizontal-line',_0x3d9248),_0x51152c['insert'](_0x51152c['createPositionAt'](_0x3d9248,0x0),_0x19cda3),_0x3d9248;},'converterPriority':'high'});}}class wt extends _0x54dab4{['afterInit'](){const {plugins:_0x26c6af,model:_0x40df2c}=this['editor'];if(!_0x26c6af['has']('TableCellPropertiesEditing'))return;const _0x2fc580=_0x26c6af['get']('SuggestionsConversion'),_0x56fc68=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x5b0274 of _0x56fc68)_0x2fc580['registerBlockAttribute'](_0x5b0274);_0x40df2c['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2fc580['registerBlockAttribute']('tableCellType');}}class bt extends _0x54dab4{['afterInit'](){const _0x3316fe=this['editor'];if(!_0x3316fe['plugins']['has']('TableEditing')||!_0x3316fe['config']['get']('table.enableFooters'))return;_0x3316fe['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x54dab4{['_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 _0x2f3837=this['editor'],_0x569c87=(_0x3a1e9e,_0x40388c,_0x37a4c3)=>{const {id:_0x52847b,authorId:_0x217528,type:_0x137213,subType:_0x45ccf2}=Y(_0x3a1e9e['markerName']),_0x3f2151=['ck-suggestion-marker',this['_getClassName'](_0x137213,_0x45ccf2)];let _0x593d39=0xbb8;return!_0x37a4c3&&(this['_activeMarkers']['includes'](_0x3a1e9e['markerName'])&&(_0x3f2151['push']('ck-suggestion-marker--active'),_0x593d39=0xbc2)),('deletion'==_0x137213&&(_0x593d39+=0x5),{'classes':_0x3f2151,'attributes':{'data-suggestion':_0x52847b,'data-author-id':_0x217528},'priority':_0x593d39});};_0x2f3837['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2bbc81,_0x3ea239)=>_0x569c87(_0x2bbc81,0x0,!0x1)}),_0x2f3837['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23c45e,_0x2f6a08)=>_0x569c87(_0x23c45e,0x0,!0x0)}),_0x2f3837['conversion']['for']('dataDowncast')['add'](_0x2525ee=>{_0x2525ee['on']('addMarker:suggestion',(_0x466456,_0x24245f,_0x5bcae7)=>{if(!_0x5bcae7['options']['showSuggestionHighlights'])return;const _0xfe4131=_0x24245f['item'];if(!_0xfe4131)return;const _0x2dc54c=_0x5bcae7['mapper']['toViewElement'](_0xfe4131);_0x2f3837['model']['schema']['isObject'](_0xfe4131)&&_0x2dc54c&&!_0x2dc54c['getCustomProperty']('widget')&&_0x2dc54c['is']('containerElement')&&_0x51a3d8(_0x2dc54c,_0x5bcae7['writer']);},{'priority':'high'});});const _0x420b85=(_0x332a07,_0x3c10fe,_0x14c265,_0x2e5121,_0x101128)=>{if(_0x2e5121&&!_0x14c265['options']['showSuggestionHighlights'])return;if(!_0x3c10fe['item'])return;const {id:_0x48aeb4,authorId:_0x8727b4,subType:_0x1c81bf}=Y(_0x3c10fe['markerName']);if(_0x101128){const _0x1efa6e=_0x1c81bf['split']('|')[0x0];if(!this['isBlockAttribute'](_0x1efa6e))return;}if(_0x3c10fe['item']['is']('selection'))return void _0x14c265['consumable']['consume'](_0x3c10fe['item'],_0x332a07['name']);const _0x64a21a=_0x14c265['mapper']['toViewElement'](_0x3c10fe['item']);if(_0x3c10fe['item']['is']('element')&&_0x2f3837['model']['schema']['isBlock'](_0x3c10fe['item'])&&!_0x64a21a['getCustomProperty']('addHighlight')){_0x14c265['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x64a21a),_0x14c265['writer']['setAttribute']('data-suggestion',_0x48aeb4,_0x64a21a),_0x14c265['writer']['setAttribute']('data-author-id',_0x8727b4,_0x64a21a),_0x14c265['mapper']['bindElementToMarker'](_0x64a21a,_0x3c10fe['markerName']),_0x2e5121||(this['_activeMarkers']['includes'](_0x3c10fe['markerName'])?_0x14c265['writer']['addClass']('ck-suggestion-marker--active',_0x64a21a):_0x14c265['writer']['removeClass']('ck-suggestion-marker--active',_0x64a21a));for(const _0x29c3ab of _0x2f3837['model']['createRangeIn'](_0x3c10fe['item'])['getItems']())_0x14c265['consumable']['consume'](_0x29c3ab,_0x332a07['name']);_0x14c265['consumable']['consume'](_0x3c10fe['item'],_0x332a07['name']);}},_0x501e7b=(_0x361844,_0x2ee2c6,_0x2e1c60,_0x47560c)=>{const _0x5e156c=_0x2e1c60['mapper']['markerNameToElements'](_0x2ee2c6['markerName']);if(_0x5e156c){if(_0x47560c){const {subType:_0x4c9ef4}=Y(_0x2ee2c6['markerName']),_0x4c925c=_0x4c9ef4['split']('|')[0x0];if(!this['isBlockAttribute'](_0x4c925c))return;}for(const _0x1b28c0 of _0x5e156c)_0x1b28c0['getCustomProperty']('addHighlight')||(_0x2e1c60['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1b28c0),_0x2e1c60['writer']['removeAttribute']('data-suggestion',_0x1b28c0),_0x2e1c60['writer']['removeAttribute']('data-author-id',_0x1b28c0),_0x2e1c60['mapper']['unbindElementFromMarkerName'](_0x1b28c0,_0x2ee2c6['markerName']));}};_0x2f3837['conversion']['for']('editingDowncast')['add'](_0x3d5386=>{_0x3d5386['on']('addMarker:suggestion:formatBlock',(_0x2e1bcd,_0x173c46,_0x2f40ef)=>{_0x420b85(_0x2e1bcd,_0x173c46,_0x2f40ef,!0x1,!0x1);},{'priority':'high'});}),_0x2f3837['conversion']['for']('editingDowncast')['add'](_0x27d43f=>{_0x27d43f['on']('addMarker:suggestion:attribute',(_0x2250b0,_0x42adfe,_0x1a01b2)=>{_0x420b85(_0x2250b0,_0x42adfe,_0x1a01b2,!0x1,!0x0);},{'priority':'high'});}),_0x2f3837['conversion']['for']('editingDowncast')['add'](_0x1d8d97=>{_0x1d8d97['on']('removeMarker:suggestion:formatBlock',(_0x89477e,_0x229054,_0x46ae43)=>{_0x501e7b(0x0,_0x229054,_0x46ae43,!0x1);},{'priority':'high'});}),_0x2f3837['conversion']['for']('editingDowncast')['add'](_0x53bfbe=>{_0x53bfbe['on']('removeMarker:suggestion:attribute',(_0x453842,_0x3ac144,_0x5690c1)=>{_0x501e7b(0x0,_0x3ac144,_0x5690c1,!0x0);},{'priority':'high'});}),_0x2f3837['conversion']['for']('dataDowncast')['add'](_0x2d0918=>{_0x2d0918['on']('addMarker:suggestion:formatBlock',(_0x5db963,_0x4be776,_0x258a87)=>{_0x420b85(_0x5db963,_0x4be776,_0x258a87,!0x0,!0x1);},{'priority':'highest'});}),_0x2f3837['conversion']['for']('dataDowncast')['add'](_0x3b57b8=>{_0x3b57b8['on']('addMarker:suggestion:attribute',(_0x1fc0c5,_0x3fc199,_0x3a4064)=>{_0x420b85(_0x1fc0c5,_0x3fc199,_0x3a4064,!0x0,!0x0);},{'priority':'highest'});}),_0x2f3837['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fcac0,_0x5c1d35)=>_0x5c1d35['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fcac0['substr'](0xb)}});const _0x36f7cb=(_0x459305,_0x2d1815,_0x58ee00,_0x1975bf,_0x6d1eca)=>{if(_0x1975bf&&!_0x58ee00['options']['showSuggestionHighlights'])return;if(!_0x58ee00['consumable']['test'](_0x2d1815['markerRange'],_0x459305['name']))return;const _0x28ada6=this['_activeMarkers'],_0x1b025a=_0x2d1815['markerRange']['getWalker'](),_0x1caa3b=_0x2d1815['markerRange']['start'],_0x3e7289=_0x2f3837['model']['schema'];let _0x30ba97=null,_0xf0a2f5=null,_0x432e63=!0x1,_0xe9e3f3=!0x1;for(const _0x1cd955 of _0x1b025a){const _0x4228b2=_0x1cd955['item'];_0x432e63=_0x432e63||_0x3e7289['isContent'](_0x4228b2);const _0x4ee19b=_0x58ee00['mapper']['toViewElement'](_0x4228b2);if(_0x4ee19b&&_0x4ee19b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1cd955['type']&&(_0x3e7289['isBlock'](_0x4228b2)&&!_0x3e7289['isLimit'](_0x4228b2)&&(_0x4228b2['nextSibling']||_0x1caa3b['isAtEnd']?_0x30ba97&&_0x30ba97['parent']==_0x4228b2||(_0x30ba97=_0x4228b2,_0x1d4559(_0x1cd955['previousPosition']),_0xe9e3f3=!0x0):_0xf0a2f5=_0xf0a2f5||_0x1cd955['previousPosition']));}function _0x1d4559(_0x413998){const {id:_0x5bd73d,authorId:_0x4b564e}=Y(_0x2d1815['markerName']),_0x2e4c04=_0x58ee00['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d1eca,'data-suggestion':_0x5bd73d,'data-author-id':_0x4b564e}),_0x524f6f=_0x58ee00['mapper']['toViewPosition'](_0x413998);!_0x1975bf&&_0x28ada6['includes'](_0x2d1815['markerName'])&&_0x58ee00['writer']['addClass']('ck-suggestion-marker--active',_0x2e4c04),_0x58ee00['writer']['insert'](_0x524f6f,_0x2e4c04),_0x58ee00['mapper']['bindElementToMarker'](_0x2e4c04,_0x2d1815['markerName']);}_0x432e63||_0xe9e3f3||!_0xf0a2f5||_0x1d4559(_0xf0a2f5);};_0x2f3837['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3ac3a1,_0x4fc9d3,_0x2595f6)=>{_0x36f7cb(_0x3ac3a1,_0x4fc9d3,_0x2595f6,!0x1,'merge');},{'priority':'high'}),_0x2f3837['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xaaf2d4,_0x256ebc,_0x74c1dd)=>{_0x36f7cb(_0xaaf2d4,_0x256ebc,_0x74c1dd,!0x0,'merge');},{'priority':'high'}),_0x2f3837['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x51d26f,_0x999a1f,_0x3a273c)=>{_0x36f7cb(_0x51d26f,_0x999a1f,_0x3a273c,!0x1,'split');},{'priority':'high'}),_0x2f3837['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x235207,_0x5f1962,_0x33be97)=>{_0x36f7cb(_0x235207,_0x5f1962,_0x33be97,!0x0,'split');},{'priority':'high'}),_0x2f3837['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x47e671,_0x5cb82f,_0x5a620b)=>{((_0x5012d4,_0x444e78,_0x2dfa72)=>{const _0x3d5fb2=_0x2dfa72['mapper']['markerNameToElements'](_0x444e78['markerName']);if(_0x3d5fb2){for(const _0x381517 of _0x3d5fb2)(_0x381517['hasClass']('ck-suggestion-marker-split')||_0x381517['hasClass']('ck-suggestion-marker-merge'))&&(_0x2dfa72['mapper']['unbindElementFromMarkerName'](_0x381517,_0x444e78['markerName']),_0x2dfa72['writer']['remove'](_0x381517));}})(0x0,_0x5cb82f,_0x5a620b);},{'priority':'high'});const _0x12ead0=(_0x117d73,_0xbae654,_0x18463d,_0x846723)=>{if(_0x846723&&!_0x18463d['options']['showSuggestionHighlights'])return;const _0x2a5e0e=_0xbae654['markerRange']['start'],_0x10a494=_0xbae654['markerRange']['end'],_0x554fc9=_0x2f3837['model']['schema'];if(!_0x2a5e0e['isTouching'](_0x10a494)||!_0x2a5e0e['nodeAfter'])return;const _0x32617e=_0x2a5e0e['nodeAfter'];if(_0x554fc9['isBlock'](_0x32617e)&&!_0x554fc9['isLimit'](_0x32617e)&&_0x554fc9['checkChild'](_0x32617e,'$text')){if(!_0x18463d['consumable']['consume'](_0xbae654['markerRange'],_0x117d73['name']))return;const {id:_0x48768d,authorId:_0x1c78eb}=Y(_0xbae654['markerName']),_0x44a87a=_0x18463d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x48768d,'data-author-id':_0x1c78eb}),_0x306a4d=_0x18463d['mapper']['toViewPosition'](_0x10a494);!_0x846723&&this['_activeMarkers']['includes'](_0xbae654['markerName'])&&_0x18463d['writer']['addClass']('ck-suggestion-marker--active',_0x44a87a),_0x18463d['writer']['insert'](_0x306a4d,_0x44a87a),_0x18463d['mapper']['bindElementToMarker'](_0x44a87a,_0xbae654['markerName']);}};_0x2f3837['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x319b85,_0x5cdf01,_0x41cdee)=>{_0x12ead0(_0x319b85,_0x5cdf01,_0x41cdee,!0x1);},{'priority':'high'}),_0x2f3837['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x180dd1,_0x1028bb,_0x4f674f)=>{_0x12ead0(_0x180dd1,_0x1028bb,_0x4f674f,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x32448d,_0x3b72a3,_0x205348)=>{this['_activeMarkers']=_0x205348['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x31f83e){this['_blockAttributeKeys']['add'](_0x31f83e);}['registerInlineAttribute'](_0xd25f40){this['_inlineAttributeKeys']['add'](_0xd25f40);}['isBlockAttribute'](_0x4b54b5){return this['_blockAttributeKeys']['has'](_0x4b54b5);}['isInlineAttribute'](_0x577dd9){return this['_inlineAttributeKeys']['has'](_0x577dd9);}['isRegisteredAttribute'](_0x48f20d){return this['isInlineAttribute'](_0x48f20d)||this['isBlockAttribute'](_0x48f20d);}['_getClassName'](_0x47198e,_0x1caa7b){if('attribute'!=_0x47198e)return'ck-suggestion-marker-'+_0x47198e;const _0x49d8d7=_0x1caa7b['split']('|')[0x0];return this['isBlockAttribute'](_0x49d8d7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x5d4776={},_0x52d2df){if(void 0x0!==_0x5d4776['dateTimeFormat']&&'function'!=typeof _0x5d4776['dateTimeFormat'])throw new _0x45484c('invalid-date-time-format');return _0x526450=>{const _0x3e6bae='string'==typeof _0x526450?_0x4d3a86['fromISO'](_0x526450):_0x4d3a86['fromJSDate'](_0x526450),_0x4bdc9c=_0x4d3a86['now'](),_0x42361d=Math['floor'](_0x4bdc9c['diff'](_0x3e6bae,'days')['days']);return _0x5d4776['dateTimeFormat']?_0x5d4776['dateTimeFormat'](_0x3e6bae['toJSDate'](),_0x52d2df&&_0x52d2df['t']?_0x52d2df['t']:void 0x0):0x0===_0x42361d?_0x52d2df?$(_0x52d2df,'Today')+'\x20'+_0x3e6bae['toFormat']('hh:mma'):_0x3e6bae['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x42361d?_0x52d2df?$(_0x52d2df,'Yesterday')+'\x20'+_0x3e6bae['toFormat']('hh:mma'):_0x3e6bae['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x42361d<0x7?_0x52d2df?$(_0x52d2df,'Last')+'\x20'+$(_0x52d2df,_0x3e6bae['toFormat']('EEEE'))+'\x20'+_0x3e6bae['toFormat']('hh:mma'):_0x3e6bae['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x3e6bae['toFormat']('LL-dd-yyyy\x20hh:mma');};}function xt(_0x5d23a3,_0x5a12dc){const _0x416881=_0x5d23a3['mapper']['markerNameToElements'](_0x5a12dc['name']);if(!_0x416881)return null;const _0x17eb5a=_0xd60680(_0x416881['values']());return _0x5d23a3['view']['domConverter']['mapViewToDom'](_0x17eb5a)||null;}function It(_0x1a6733,_0x2d0a40){if(0x0===_0x2d0a40['length'])return null;const _0x5e9f5d=[],_0x5f2585=_0x1a6733['view']['domConverter'];for(const _0x3fc33f of _0x2d0a40){const _0x52fc78=_0x1a6733['mapper']['markerNameToElements'](_0x3fc33f['name']);if(!_0x52fc78)continue;const _0x167841=Array['from'](_0x52fc78)['map'](_0x1b4ccf=>_0x5f2585['mapViewToDom'](_0x1b4ccf))['filter'](_0x1722b0=>!!_0x1722b0);_0x5e9f5d['push'](..._0x167841);}if(0x0===_0x5e9f5d['length'])return null;const _0x4f1a83=[];for(const _0x3d9a91 of _0x5e9f5d){const _0x462cb6=_0x3d9a91['getClientRects']()['item'](0x0);_0x462cb6&&_0x4f1a83['push']({'x':_0x462cb6['x'],'y':_0x462cb6['y'],'domElement':_0x3d9a91});}return 0x0===_0x4f1a83['length']?null:(_0x4f1a83['sort']((_0x1f07ee,_0x1baf39)=>_0x1f07ee['y']-_0x1baf39['y']||_0x1f07ee['x']-_0x1baf39['x']),_0x4f1a83['map'](_0x126e6d=>_0x126e6d['domElement']));}function _t(_0x3de5bd,{limit:_0x12a160,suffix:_0x51ea0d='...'}){const _0xbd84eb=[];let _0x17f23d=0x0;const _0x391fec=_0x3de5bd['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x1032e5=0x0;_0x1032e5<_0x391fec['length'];_0x1032e5++){let _0x358f5c=_0x391fec[_0x1032e5];const _0x125fd6=St(_0x358f5c);if(_0x358f5c['startsWith']('<')){if(_0x17f23d>=_0x12a160){const _0xbb42da=_0x358f5c['match'](/[a-zA-Z]+/);if(!_0xbb42da){_0x391fec[_0x1032e5]='';continue;}const _0x284de3=_0xbb42da[0x0];_0x358f5c['startsWith']('</')?(_0xbd84eb['length']&&(_0x358f5c=''),_0xbd84eb['pop']()):(_0xbd84eb['push'](_0x284de3),_0x358f5c='');}}else{if(_0x17f23d>=_0x12a160)_0x358f5c='';else{if(_0x17f23d+_0x125fd6['length']>=_0x12a160){let _0x3ad1be=_0x12a160-_0x17f23d;if('\x20'===_0x125fd6[_0x3ad1be-0x1])_0x3ad1be--;else{const _0x150843=_0x125fd6['slice'](_0x3ad1be)['indexOf']('\x20');-0x1!==_0x150843?_0x3ad1be+=_0x150843:_0x3ad1be=_0x358f5c['length'];}_0x358f5c=_0x125fd6['slice'](0x0,_0x3ad1be)['join']('')+_0x51ea0d,_0x17f23d=_0x12a160;}else _0x17f23d+=_0x125fd6['length'];}}_0x391fec[_0x1032e5]=_0x358f5c;}return _0x391fec['join']('\x0a')['replace'](/\n/g,'');}function St(_0x168a1f){const _0x3b4943=[];for(let _0x1a857a=0x0;_0x1a857a<_0x168a1f['length'];_0x1a857a++){const _0x5b9fe0=_0x168a1f['substring'](_0x1a857a)['match'](/^&[a-z0-9#]+;/);if(_0x5b9fe0){const _0x10d30e=_0x5b9fe0[0x0];_0x3b4943['push'](_0x10d30e),_0x1a857a+=_0x10d30e['length']-0x1;}else _0x3b4943['push'](_0x168a1f[_0x1a857a]);}return _0x3b4943;}class Et extends _0x531d32{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x1d2df4){super(_0x1d2df4);const _0x4c039b=this['bindTemplate'];this['set']('message',$(_0x1d2df4,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x1d2df4,$(_0x1d2df4,'Yes'),_0x428ff3,'submit'),this['cancelView']=this['_createButtonView'](_0x1d2df4,$(_0x1d2df4,'No'),_0x130519,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x721f3f(),this['keystrokes']=new _0x188f5b(),this['focusCycler']=new _0x257c17({'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':_0x4c039b['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'](_0x5bd24b,_0x52f970,_0x12d120,_0x471ec6){const _0x385050=new _0x55be45(_0x5bd24b);return _0x385050['label']=_0x52f970,_0x385050['icon']=_0x12d120,_0x385050['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x471ec6}}),_0x385050['on']('execute',()=>this['fire'](_0x471ec6)),_0x385050;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x519d06=>{this['keystrokes']['listenTo'](_0x519d06['element']),this['focusTracker']['add'](_0x519d06['element']);}),this['keystrokes']['set']('esc',(_0x168a1a,_0xc94a73)=>{this['fire']('cancel'),_0xc94a73();});}}function At(_0x560db2){return class extends _0x560db2{['showConfirm'](_0x332e34,_0x55af20){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x332e34,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x55af20['appendChild'](this['confirmView']['element']),_0x55af20['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x503762,_0x238bd7,_0x34287b)=>{_0x34287b||_0x55af20['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x281463=>this['confirmView']['on']('submit',_0x281463));}['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(_0x4e233e){let _0xfb0743=0x0,_0x454c6a=0x0;for(const _0x39af3c of Nt(_0x4e233e))_0xfb0743=(_0xfb0743<<0x5)-_0xfb0743+_0x39af3c,_0xfb0743&=_0xfb0743,[_0xfb0743,_0x454c6a]=[_0x454c6a,_0xfb0743];return Ot(_0xfb0743)+Ot(_0x454c6a);}function*Tt(_0x21fa01){null==_0x21fa01||null==_0x21fa01?yield 0x12b9b0a1:0x0===_0x21fa01||!0x1===_0x21fa01?yield 0x0:0x1===_0x21fa01||0x1==_0x21fa01?yield 0x1:Array['isArray'](_0x21fa01)?yield*function*(_0x34d499){for(const _0x59d9ba of _0x34d499)yield*Tt(_0x59d9ba);}(_0x21fa01):'object'==typeof _0x21fa01?yield*Nt(_0x21fa01):'string'==typeof _0x21fa01?yield*Pt(_0x21fa01):'number'==typeof _0x21fa01&&(yield _0x21fa01);}function*Nt(_0x46a777){if(yield Bt('{'),_0x46a777){const _0x31da4c=Object['keys'](_0x46a777)['sort']();for(const _0x32e885 of _0x31da4c){yield*Pt(_0x32e885),yield Bt(':');const _0x41d746=_0x46a777[_0x32e885];yield*Tt(_0x41d746);}}yield Bt('}');}function*Pt(_0x4c48e8){yield Bt('\x22');for(const _0x3dadfb of _0x4c48e8)yield Bt(_0x3dadfb);yield Bt('\x22');}function Bt(_0x596edc){return _0x596edc['charCodeAt'](0x0);}function Ot(_0x3a094f){return(_0x3a094f*=Math['sign'](_0x3a094f))['toString'](0x24);}const Dt=['root','roots','initialData','context','toolbar','rootsAttributes'],$t=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Lt(_0x40b9f7,_0x55a014,_0x1f79d1,_0x177640=[]){const _0x577c28='string'==typeof _0x40b9f7?_0x1f79d1['get'](_0x40b9f7)['constructor']:_0x40b9f7['prototype']['constructor'];if(_0x55a014['has'](_0x577c28))return _0x55a014['get'](_0x577c28);_0x55a014['set'](_0x577c28,!0x0);const _0x34fd1b=[...$t,..._0x177640]['map'](_0x2d50a2=>{if(_0x1f79d1['has'](_0x2d50a2))return _0x1f79d1['get'](_0x2d50a2)['constructor'];})['filter'](_0x2037ed=>_0x2037ed);if(_0x577c28&&_0x34fd1b['includes'](_0x577c28))return _0x55a014['set'](_0x577c28,!0x1),!0x1;if(!_0x577c28['requires'])return _0x55a014['set'](_0x577c28,!0x0),!0x0;const _0x9c46c7=_0x577c28['requires']['every'](_0x4c2beb=>Lt(_0x4c2beb,_0x55a014,_0x1f79d1,_0x177640));return _0x55a014['set'](_0x577c28,_0x9c46c7),_0x9c46c7;}function Vt(_0x34e4d4,_0x5e6c24){const _0x532210={};for(const _0x22be19 of _0x34e4d4['config']['names']())Dt['includes'](_0x22be19)||(_0x532210[_0x22be19]=_0x34e4d4['config']['get'](_0x22be19));const _0x5be630=_0x532210['plugins']||[],_0x41a93e=_0x34e4d4['constructor']['builtinPlugins']||[],_0x181ba8=_0x5be630['length']?_0x5be630:_0x41a93e,_0x2a475e=_0x532210['extraPlugins']||[];delete _0x532210['extraPlugins'];const _0x5eb47b=_0x532210['removePlugins']||[];delete _0x532210['removePlugins'];const _0x3f4acc=_0x34e4d4['_context']['config']['get']('plugins')||[],_0x2f801f=_0x181ba8['concat'](_0x2a475e)['concat'](_0x3f4acc)['map'](_0x506911=>'string'==typeof _0x506911?_0x41a93e['find'](_0x1722f4=>_0x1722f4['pluginName']==_0x506911):_0x506911)['filter'](_0x2d1f29=>!_0x5eb47b['includes'](_0x2d1f29)&&!_0x5eb47b['includes'](_0x2d1f29['pluginName'])),_0x29b8b4=Array['from'](new Set(_0x2f801f)),_0x4dbf05=new Map();return _0x532210['plugins']=_0x29b8b4['filter'](_0x56e658=>Lt(_0x56e658,_0x4dbf05,_0x34e4d4['plugins'],_0x5e6c24)),_0x532210;}function Ut(_0xbef44a,_0x3bcf20){const _0x2b8ee5=[];_0xbef44a['document']['selection']['on']('change:range',()=>{const _0x49dc07=function(_0x464960,_0x3884cd){const _0x64572c=[];for(const _0x452c24 of _0x464960['markers']){const _0x46f652=_0x452c24['getRange']();(_0x46f652['containsPosition'](_0x3884cd)||_0x46f652['start']['isEqual'](_0x3884cd)||_0x46f652['end']['isEqual'](_0x3884cd))&&_0x64572c['push'](_0x452c24);}return _0x64572c;}(_0xbef44a,_0xbef44a['document']['selection']['focus']),_0x4f1434=[],_0x211469=[],_0x32d96a=[];for(const _0x3f6a07 of _0x2b8ee5)_0x49dc07['includes'](_0x3f6a07)||_0x4f1434['push'](_0x3f6a07);for(const _0x1b4ef9 of _0x49dc07)_0x2b8ee5['includes'](_0x1b4ef9)||_0x211469['push'](_0x1b4ef9),_0x32d96a['push'](_0x1b4ef9);(_0x4f1434['length']||_0x211469['length'])&&_0x3bcf20({'left':_0x4f1434,'entered':_0x211469}),_0x2b8ee5['length']=0x0,_0x2b8ee5['push'](..._0x32d96a);});}const Rt='Ctrl+Shift+E';function Ft(_0x36657c,_0x246ed4){const _0x421f47=_0x36657c['element'];_0x36657c['keystrokes']['listenTo'](_0x421f47);for(const _0x385f4b of _0x246ed4)Ht(_0x36657c,_0x385f4b);_0x246ed4['on']('change',(_0x542212,_0x7e9290)=>{for(const _0x331279 of _0x7e9290['removed'])zt(_0x36657c,_0x331279);for(const _0xb09d1 of Array['from'](_0x7e9290['added'])['reverse']())Ht(_0x36657c,_0xb09d1);}),_0x36657c['keystrokes']['set']('enter',(_0x17b6da,_0x16e58b)=>{_0x421f47===_0x17b6da['target']&&(_0x36657c['focusCycler']['focusFirst'](),_0x16e58b());},{'filter':_0x547759=>_0x547759['target']===_0x421f47}),_0x36657c['keystrokes']['set']('esc',(_0x4216f3,_0x5d9b11)=>{_0x421f47!==_0x4216f3['target']?_0x36657c['focus']():_0x36657c['fire']('escape'),_0x5d9b11();}),_0x36657c['keystrokes']['set']('arrowdown',(_0x385e2f,_0xb3989)=>{_0x421f47===_0x385e2f['target']&&(_0x36657c['fire']('arrowdown'),_0xb3989());}),_0x36657c['keystrokes']['set']('arrowup',(_0x3c64ed,_0x1bdd1a)=>{_0x421f47===_0x3c64ed['target']&&(_0x36657c['fire']('arrowup'),_0x1bdd1a());});}function Ht(_0x22e937,_0x55c43c){_0x55c43c['isRendered']&&(_0x22e937['focusTracker']['add'](_0x55c43c['element']),_0x22e937['keystrokes']['listenTo'](_0x55c43c['element']),_0xe44688(_0x55c43c)&&function(_0x35ab3f,_0x47fa4e){const _0xa62606=_0x35ab3f['actions'],_0x1ba37b=_0x47fa4e['actions'];for(const _0x50e2b6 of Object['keys'](_0xa62606))if(_0x50e2b6 in _0x1ba37b&&_0xa62606[_0x50e2b6]!==_0x1ba37b[_0x50e2b6])return!0x1;return!0x0;}(_0x22e937['focusCycler'],_0x55c43c['focusCycler'])&&_0x22e937['focusCycler']['chain'](_0x55c43c['focusCycler']));}function zt(_0x12b90c,_0x51078e){_0x12b90c['focusTracker']['remove'](_0x51078e['element']),_0x12b90c['keystrokes']['stopListening'](_0x51078e['element']),_0xe44688(_0x51078e)&&_0x12b90c['focusCycler']['unchain'](_0x51078e['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x5b9bc6{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x4cded4?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x173064,_0x147d9b)=>{_0x147d9b['on']('ready',()=>{this['_integrateEditor'](_0x147d9b);});});}get['editor'](){if(this['context']instanceof _0x4cded4)return this['context'];{const _0x57a657=this['context']['editors']['first'];if(!_0x57a657)throw new _0x45484c('documentcompare-no-editor',this);return _0x57a657;}}['getDiff'](_0x253690,_0xb7b3fe,_0x29d115={'anchor':'main','markDeletions':!0x1}){let _0x4c1a1f,_0x28ed6a;const _0x122dbc=this['editor'];if('string'==typeof _0x29d115['anchor']){const _0x487e58=_0x122dbc['model']['document']['getRoot'](_0x29d115['anchor']);if(!_0x487e58)throw new _0x45484c('documentcompare-compare-no-root',this,{'anchor':_0x29d115['anchor']});_0x4c1a1f=_0x487e58,_0x28ed6a=_0x122dbc['model']['createPositionAt'](_0x487e58,0x0);}else _0x4c1a1f=_0x29d115['anchor']['clone'](),_0x28ed6a=_0x29d115['anchor']['clone']();const _0x3aa090=_0x122dbc['data']['parse'](_0x253690,_0x4c1a1f),_0x43e8ae=_0x122dbc['data']['parse'](_0xb7b3fe,_0x4c1a1f);return new Jt(_0x3aa090,_0x43e8ae,_0x122dbc,{'anchor':_0x28ed6a,'markDeletions':_0x29d115['markDeletions']});}['isMarkedRemoveOperation'](_0x201adf){return'marker'==_0x201adf['type']&&_0x201adf['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x50248a){_0x50248a['conversion']['for']('upcast')['add'](_0x599fbe=>{_0x599fbe['on']('element',(_0x5702bd,_0x612dd4,_0x1c31ec)=>{if(_0x612dd4['modelRange'])for(const _0x140d11 of _0x612dd4['modelRange']['getItems']({'shallow':!0x0})){if(_0x140d11['is']('$textProxy'))continue;const _0x22a954=_0x612dd4['viewItem']['getAttribute'](jt);_0x22a954&&_0x1c31ec['writer']['setAttribute'](Wt,_0x22a954,_0x140d11);}},{'priority':'lowest'});}),_0x50248a['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x272535,_0x15bbde,_0x482a49,_0x3f1300){this['_editor']=_0x482a49,this['_markDeletions']=!!_0x3f1300['markDeletions'],this['_anchor']=_0x3f1300['anchor'];const _0x3e6b13=this['_tokenizeModel'](_0x272535),_0xfb5a65=this['_tokenizeModel'](_0x15bbde);this['_diffItems']=this['_diffModelTokens'](_0x3e6b13,_0xfb5a65),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x272535['markers'],_0x15bbde['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x4c57a9=this['_editor']['model']['document'],_0x12c775=[];let _0x265ad9=_0x4c57a9['version'];for(const _0x278d3a of this['_operationsData'])switch(_0x278d3a['type']){case'attribute':{const _0x6d9d7b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['path']),_0x32718e=_0x6d9d7b['getShiftedBy'](_0x278d3a['howMany']),_0x24d760=new _0x406260(_0x6d9d7b,_0x32718e),_0x570994=JSON['parse'](_0x278d3a['oldValue']),_0x11d277=JSON['parse'](_0x278d3a['newValue']);_0x12c775['push'](new _0x5c49ea(_0x24d760,_0x278d3a['key'],_0x570994,_0x11d277,_0x265ad9++));break;}case'insert':{const _0x52ce4d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['path']),_0xb28936=this['_makeModelFromTokens'](_0x278d3a['tokens']);_0x12c775['push'](new _0x5965c7(_0x52ce4d,_0xb28936,_0x265ad9++));break;}case'remove':{const _0x3804aa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['path']),_0x5cbed4=new _0x4a6baf(_0x4c57a9['graveyard'],[0x0]);_0x12c775['push'](new _0x4dbb02(_0x3804aa,_0x278d3a['howMany'],_0x5cbed4,_0x265ad9++));break;}case'rename':{const _0x382aad=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['path']);_0x12c775['push'](new _0x6ea82c(_0x382aad,_0x278d3a['oldName'],_0x278d3a['newName'],_0x265ad9++));break;}case'split':{const _0x4ee5b3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['path']),_0x3e1d53=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['path']['slice'](0x0,-0x1));_0x3e1d53['offset']++,_0x12c775['push'](new _0x377929(_0x4ee5b3,Number['NEGATIVE_INFINITY'],_0x3e1d53,null,_0x265ad9++));break;}case'merge':{const _0x125fad=_0x278d3a['path']['slice'](),_0x1bc9e6=_0x125fad['slice'](0x0,-0x1);_0x1bc9e6[_0x1bc9e6['length']-0x1]++,_0x1bc9e6['push'](0x0);const _0x44f4e9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1bc9e6),_0x2ea198=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x125fad),_0x2e71fa=new _0x4a6baf(_0x4c57a9['graveyard'],[0x0]);_0x12c775['push'](new _0xb0f5c9(_0x44f4e9,Number['NEGATIVE_INFINITY'],_0x2ea198,_0x2e71fa,_0x265ad9++));break;}case'marker':case'markedRemove':{let _0x2c410e=null;if(_0x278d3a['range']){const _0x4a8986=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['range']['start']),_0x40224e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['range']['end']);_0x2c410e=new _0x406260(_0x4a8986,_0x40224e);}const _0x24944b='marker'==_0x278d3a['type']?_0x278d3a['name']:'$markedRemove:'+_0x13ce8b();_0x12c775['push'](new _0xa5c8a6(_0x24944b,null,_0x2c410e,_0x4c57a9['model']['markers'],!0x0,_0x265ad9++));break;}case'unwrap':{const _0x319157=_0x278d3a['path']['slice']();_0x319157['push'](0x0);const _0x4de308=_0x278d3a['path']['slice'](),_0x4519cf=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x319157),_0x4dfb94=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4de308),_0x519617=new _0x4a6baf(_0x4c57a9['graveyard'],[0x0]);_0x12c775['push'](new _0x4dbb02(_0x4519cf,_0x278d3a['howMany'],_0x4dfb94,_0x265ad9++)),_0x12c775['push'](new _0x4dbb02(_0x4dfb94['getShiftedBy'](_0x278d3a['howMany']),0x1,_0x519617,_0x265ad9++));break;}case'wrap':{const _0x24ef8d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['range']['start']),_0xe51fe7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x278d3a['range']['end']),_0x97b197=_0x278d3a['token']['element']['_clone'](!0x1),_0x4314b0=_0x278d3a['range']['end']['slice']();_0x4314b0['push'](0x0);const _0x112622=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4314b0);_0x12c775['push'](new _0x5965c7(_0xe51fe7,_0x97b197,_0x265ad9++)),_0x12c775['push'](new _0x4dbb02(_0x24ef8d,_0xe51fe7['offset']-_0x24ef8d['offset'],_0x112622,_0x265ad9++));break;}}return _0x12c775;}['_tokenizeModel'](_0x2cacf0){const _0x255620=[],_0x47410d=_0x406260['_createIn'](_0x2cacf0),_0x20e741=new _0x28c4fd({'boundaries':_0x47410d});let _0x2fc093='',_0x16f194=null;const _0x33a16a=[''],_0x5923ae=new Map();for(const _0x153705 of _0x20e741)if('elementStart'==_0x153705['type']||'elementEnd'==_0x153705['type']){let _0x1062c8=_0x33a16a[0x0];''!==_0x2fc093&&(_0x255620['push'](...this['_makeTokensFromTextByWords'](_0x2fc093,_0x16f194,_0x1062c8)),_0x2fc093='');const _0x4f9aa1=_0x153705['item'];let _0x215f85;_0x4f9aa1['getAttribute'](Wt)?_0x215f85=_0x4f9aa1['getAttribute'](Wt):'elementStart'==_0x153705['type']?(_0x215f85=qt(_0x4f9aa1),_0x5923ae['set'](_0x4f9aa1,_0x215f85)):_0x215f85=_0x5923ae['get'](_0x4f9aa1);const _0x1e6cd0=this['_getElementCategory'](_0x4f9aa1);'solid'==_0x1e6cd0&&('elementStart'==_0x153705['type']?(_0x1062c8=_0x215f85,_0x33a16a['unshift'](_0x1062c8)):_0x33a16a['shift']());const _0x433a8b={'type':'element','element':_0x4f9aa1,'elementId':_0x215f85,'category':_0x1e6cd0,'isStart':'elementStart'==_0x153705['type'],'limitId':_0x1062c8};_0x255620['push'](_0x433a8b);}else''==_0x2fc093&&(_0x16f194=_0x153705['previousPosition']['clone']()),_0x2fc093+=_0x153705['item']['data'];return''!==_0x2fc093&&_0x255620['push'](...this['_makeTokensFromTextByWords'](_0x2fc093,_0x16f194,_0x33a16a[0x0])),_0x255620;}['_makeTokensFromTextByWords'](_0x978326,_0x59868e,_0x46c28d){const _0x11f25b=_0x978326['matchAll'](/(\s)/g),_0x488ad5=Array['from'](_0x11f25b)['map'](_0x20c01a=>_0x20c01a['index']);_0x488ad5['push'](_0x978326['length']),0x0==_0x488ad5[0x0]&&_0x488ad5['shift']();const _0x235d2c=[],_0xac2f5a=_0x59868e['parent'];let _0x3e6ee8=0x0,_0x4d7d94=_0x59868e['offset'];for(let _0x328b82=0x0;_0x328b82<_0x488ad5['length'];_0x328b82++)_0x235d2c['push']({'type':'text','data':_0x978326['slice'](_0x3e6ee8,_0x488ad5[_0x328b82]),'parent':_0xac2f5a,'offset':_0x4d7d94,'limitId':_0x46c28d}),_0x3e6ee8=_0x488ad5[_0x328b82],_0x4d7d94=_0x59868e['offset']+_0x488ad5[_0x328b82];return _0x235d2c;}['_getElementCategory'](_0x5767c0){const _0x4660c0=this['_editor']['model']['schema'];return _0x4660c0['isLimit'](_0x5767c0)||_0x4660c0['isContent'](_0x5767c0)||_0x4660c0['isInline'](_0x5767c0)?'solid':_0x4660c0['isBlock'](_0x5767c0)?'block':'container';}['_diffModelTokens'](_0x529a3c,_0x41f86e){const _0x30a5ea=_0x5a828b(_0x529a3c,_0x41f86e,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x30a5ea);const _0x5e809f=_0x30a5ea['flatMap'](_0x2571a6=>{const _0x312a7c=_0x2571a6['added']?'added':_0x2571a6['removed']?'removed':'unchanged';return _0x2571a6['value']['map'](_0x383f1e=>({'token':_0x383f1e,'change':_0x312a7c}));});let _0x231f9e=0x0;for(const _0x522dca of _0x5e809f)'added'!=_0x522dca['change']&&('unchanged'==_0x522dca['change']&&(_0x522dca['before']=_0x529a3c[_0x231f9e]),_0x231f9e++);return _0x5e809f;}['_handleUnclosedBlockOpeningTags'](_0x5ac735){for(let _0x3d27ae=0x0;_0x3d27ae<_0x5ac735['length']-0x1;_0x3d27ae++)if(_0x5ac735[_0x3d27ae]['removed']&&_0x5ac735[_0x3d27ae+0x1]['added']){const _0x3bc5da=this['_findUnclosedBlockOpeningToken'](_0x5ac735[_0x3d27ae]['value']);if(null!==_0x3bc5da){const _0x29b12c=this['_findUnclosedBlockOpeningToken'](_0x5ac735[_0x3d27ae+0x1]['value']),_0x2e67d5=_0x5ac735[_0x3d27ae]['value']['splice'](_0x3bc5da),_0x377a45=_0x5ac735[_0x3d27ae+0x1]['value']['splice'](_0x29b12c),_0x5f51a6=[_0x377a45['shift']()];_0x2e67d5['shift']();const _0x243d2c={'value':_0x2e67d5,'removed':!0x0},_0x505091={'value':_0x377a45,'added':!0x0},_0x50c65f={'value':_0x5f51a6};_0x5ac735['splice'](_0x3d27ae+0x2,0x0,_0x50c65f,_0x243d2c,_0x505091);}}}['_findUnclosedBlockOpeningToken'](_0x1d227a){let _0x2d2ef6=0x0,_0x26dd1b=-0x1;for(let _0x304410=0x0;_0x304410<_0x1d227a['length'];_0x304410++){const _0x598083=_0x1d227a[_0x304410];'element'==_0x598083['type']&&'block'==_0x598083['category']&&(_0x2d2ef6+=_0x598083['isStart']?0x1:-0x1,_0x598083['isStart']&&(_0x26dd1b=_0x304410));}return 0x0===_0x2d2ef6?null:_0x26dd1b;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x1e55e9=0x0;_0x1e55e9<this['_diffItems']['length'];_0x1e55e9++){const _0x2b2260=this['_diffItems'][_0x1e55e9]['change'],_0x1dea70=[];_0x1dea70['push'](this['_diffItems'][_0x1e55e9]);let _0x2e0c38=_0x1e55e9+0x1;for(;this['_diffItems'][_0x2e0c38]&&this['_diffItems'][_0x2e0c38]['change']==_0x2b2260;)_0x1dea70['push'](this['_diffItems'][_0x2e0c38]),_0x2e0c38++,_0x1e55e9++;const _0xc11b45=_0x1dea70['map'](_0x24158e=>_0x24158e['token']);if('unchanged'==_0x2b2260)_0x1dea70['map'](_0xdcf83c=>_0xdcf83c['before'])['forEach'](_0x116abf=>this['_traverseOverItem'](_0x116abf));else{if('removed'==_0x2b2260){if(this['_markDeletions']){const _0x29bfb8=this['_path']['slice']();_0xc11b45['forEach'](_0xb477c1=>this['_traverseOverItem'](_0xb477c1));const _0x20d7c8=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x29bfb8,'end':_0x20d7c8}});}else this['_handleChanged'](_0xc11b45,!0x0,this['_path']['slice']());}else{const _0x10ef17=_0xc11b45['filter'](_0x5b9c6c=>'element'!=_0x5b9c6c['type']||'container'!=_0x5b9c6c['category']);this['_handleChanged'](_0x10ef17,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x432f18=0x0;_0x432f18<this['_diffItems']['length'];_0x432f18++){const _0x223880=this['_diffItems'][_0x432f18]['change'],_0x6fd540=[];_0x6fd540['push'](this['_diffItems'][_0x432f18]);let _0x3dc09d=_0x432f18+0x1;for(;this['_diffItems'][_0x3dc09d]&&this['_diffItems'][_0x3dc09d]['change']==_0x223880;)_0x6fd540['push'](this['_diffItems'][_0x3dc09d]),_0x3dc09d++,_0x432f18++;const _0x4c0130=_0x6fd540['map'](_0x17219e=>_0x17219e['token']);if('unchanged'==_0x223880){const _0xd2fdff=_0x6fd540['map'](_0x51c9f1=>_0x51c9f1['before']);this['_handleUnchanged'](_0xd2fdff,_0x4c0130);}else('removed'!=_0x223880||this['_markDeletions'])&&_0x4c0130['forEach'](_0x100430=>{this['_traverseOverItem'](_0x100430);});}}['_calculateMarkersOperationsData'](_0x40c069,_0x539ea9){const _0x3a3e53={};for(const [_0x14ba57]of _0x40c069)_0x3a3e53[_0x14ba57]=null;for(const [_0x54bfa6,_0x42da0b]of _0x539ea9)_0x3a3e53[_0x54bfa6]=_0x42da0b;const _0x391738=Object['entries'](_0x3a3e53)['map'](([_0x277dc7,_0x33b3f6])=>({'type':'marker','name':_0x277dc7,'range':_0x33b3f6?{'start':_0x33b3f6['start']['path']['slice'](),'end':_0x33b3f6['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x391738);}['_handleUnwraps'](){const _0x1d95b4=new Map(),_0x46c87f=[],_0x393ae1=[0x0];let _0x77016b=this['_diffItems']['length']+0x1;for(let _0x414680=this['_diffItems']['length']-0x1;_0x414680>=0x0;_0x414680--){const {token:_0x3c5a93,before:_0x56f04d,change:_0x581e3d}=this['_diffItems'][_0x414680];if('removed'!=_0x581e3d&&(_0x77016b=_0x414680),'element'!=_0x3c5a93['type']||'container'!=_0x3c5a93['category']||'added'==_0x581e3d)continue;const _0xe5fea0=_0x56f04d?_0x56f04d['element']:_0x3c5a93['element'];if(_0x3c5a93['isStart']){const _0x197cd8=_0x1d95b4['get'](_0xe5fea0),_0x8e0e8b=this['_diffItems'][_0x197cd8];('removed'==_0x581e3d||'removed'==_0x8e0e8b['change'])&&_0x77016b<_0x197cd8&&(this['_operationsData']['push']({'type':'unwrap','path':_0xe5fea0['getPath'](),'howMany':_0xe5fea0['maxOffset']+_0x393ae1[0x0]}),_0x393ae1['shift'](),_0x393ae1[0x0]+=_0xe5fea0['maxOffset']-0x1,_0x46c87f['push'](_0x414680),_0x46c87f['push'](_0x197cd8));}else _0x1d95b4['set'](_0xe5fea0,_0x414680),_0x393ae1['unshift'](0x0);}_0x46c87f['sort']((_0x2782b6,_0x253e09)=>_0x253e09-_0x2782b6),_0x46c87f['forEach'](_0x4622bc=>{const _0x35686b=this['_diffItems'][_0x4622bc];'removed'==_0x35686b['change']?this['_diffItems']['splice'](_0x4622bc,0x1):(_0x35686b['change']='added',delete _0x35686b['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x2a812b=[];for(let _0x2a9402=0x0;_0x2a9402<this['_diffItems']['length'];_0x2a9402++){const {change:_0x5d4320,token:_0x9ef2a5}=this['_diffItems'][_0x2a9402];if('added'==_0x5d4320&&'element'==_0x9ef2a5['type']&&'container'==_0x9ef2a5['category']){if(_0x9ef2a5['isStart'])_0x2a812b['push'](this['_path']['slice']());else{if(!_0x9ef2a5['isStart']){const _0x1c2f89=_0x2a812b['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x1c2f89,'end':this['_path']['slice']()},'token':_0x9ef2a5}),this['_path'][this['_path']['length']-0x1]=_0x1c2f89[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x5d4320||this['_markDeletions'])&&this['_traverseOverItem'](_0x9ef2a5);}}['_handleUnchanged'](_0x32f018,_0x97a03c){for(let _0x456722=0x0;_0x456722<_0x32f018['length'];_0x456722++){const _0x350b49=_0x32f018[_0x456722];if('element'==_0x350b49['type']&&_0x350b49['isStart']){const _0x134d5b=_0x97a03c[_0x456722];'block'==_0x350b49['category']&&this['_handleElementRename'](_0x350b49['element'],_0x134d5b['element'],this['_path']),this['_handleElementAttributeChanges'](_0x350b49['element'],_0x134d5b['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x134d5b);}else{if('element'!=_0x350b49['type']||_0x350b49['isStart']){if('text'==_0x350b49['type']){const _0x48f61e=this['_path']['slice'](),_0x558e4e=[],_0xb6c483=[];for(;_0x32f018[_0x456722]&&'text'==_0x32f018[_0x456722]['type'];)_0x558e4e['push'](_0x32f018[_0x456722]),_0xb6c483['push'](_0x97a03c[_0x456722]),this['_path'][this['_path']['length']-0x1]+=_0x32f018[_0x456722]['data']['length'],_0x456722++;_0x456722--,this['_handleTextAttributeChanges'](_0x558e4e,_0xb6c483,_0x48f61e);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x2bbac0,_0x5bdad4,_0x1fc90a){const _0x348df0=[],_0x1c4e59=[],_0xc239b=_0x1fc90a['slice']();for(let _0x3702c9=0x0;_0x3702c9<_0x2bbac0['length'];_0x3702c9++){const _0x5f31cb=_0x2bbac0[_0x3702c9],_0x452ef5=_0x1fc90a['slice']();if('element'!=_0x5f31cb['type']||_0x5f31cb['isStart'])'element'==_0x5f31cb['type']&&_0x5f31cb['isStart']?(_0x1fc90a['push'](0x0),_0x5bdad4||this['_parents']['push'](_0x5f31cb),_0x1c4e59['push']({'before':_0x452ef5,'after':_0x1fc90a['slice'](),'index':_0x3702c9})):_0x1fc90a[_0x1fc90a['length']-0x1]+=_0x5f31cb['data']['length'];else{let _0x47794a;_0x1fc90a['pop'](),_0x1fc90a[_0x1fc90a['length']-0x1]++,_0x47794a=_0x5bdad4?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x1c4e59['length']?_0x1c4e59['pop']():_0x348df0['push']({'before':_0x452ef5,'after':_0x1fc90a['slice'](),'index':_0x3702c9,'related':_0x47794a});}}if(_0x1c4e59['length']!==_0x348df0['length'])throw new _0x45484c('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x2bbac0,'isRemove':_0x5bdad4});const _0x1f461d=[{'after':_0xc239b['slice'](),'index':-0x1},..._0x348df0,..._0x1c4e59,{'before':_0x1fc90a['slice'](),'index':_0x2bbac0['length']}];if(_0x5bdad4){for(let _0x1cc999=_0x1f461d['length']-0x1;_0x1cc999>=0x1;_0x1cc999--){const _0x4cf95f=_0x1f461d[_0x1cc999-0x1]['after'],_0x54b7cb=_0x1f461d[_0x1cc999]['before'],_0x4d9172=_0x54b7cb[_0x54b7cb['length']-0x1]-_0x4cf95f[_0x4cf95f['length']-0x1];_0x4d9172&&(this['_operationsData']['push']({'type':'remove','path':_0x4cf95f,'howMany':_0x4d9172}),_0x54b7cb[_0x54b7cb['length']-0x1]-=_0x4d9172);}for(const {before:_0x45c6f1}of _0x348df0)this['_operationsData']['push']({'type':'merge','path':_0x45c6f1});}else for(let _0x2025d6=0x0;_0x2025d6<_0x1f461d['length']-0x1;_0x2025d6++){const _0x4f527b=_0x1f461d[_0x2025d6]['after'],_0x2f246f=_0x1f461d[_0x2025d6+0x1]['before'],_0x1294ff=_0x1f461d[_0x2025d6]['index']+0x1,_0x46a548=_0x1f461d[_0x2025d6+0x1]['index'];if(_0x1294ff!==_0x46a548&&this['_operationsData']['push']({'type':'insert','path':_0x4f527b,'tokens':_0x2bbac0['slice'](_0x1294ff,_0x46a548)}),_0x2025d6<_0x348df0['length']){this['_operationsData']['push']({'type':'split','path':_0x2f246f});const _0x912287=_0x2bbac0[_0x1c4e59[_0x1c4e59['length']-0x1-_0x2025d6]['index']],_0x5f574e=_0x348df0[_0x2025d6]['after'],_0x22d335=_0x348df0[_0x2025d6]['related']['element'];this['_handleElementRename'](_0x22d335,_0x912287['element'],_0x5f574e),this['_handleElementAttributeChanges'](_0x22d335,_0x912287['element'],_0x5f574e);}}}['_traverseOverItem'](_0x1c5bbe){'element'==_0x1c5bbe['type']&&_0x1c5bbe['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x1c5bbe)):'element'!=_0x1c5bbe['type']||_0x1c5bbe['isStart']?'text'==_0x1c5bbe['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x1c5bbe['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x410dac,_0x1efff7,_0xa87293){_0x410dac['name']!=_0x1efff7['name']&&this['_operationsData']['push']({'type':'rename','path':_0xa87293['slice'](),'oldName':_0x410dac['name'],'newName':_0x1efff7['name']});}['_handleElementAttributeChanges'](_0xbcadec,_0xa0a197,_0x18e91e){const _0x1ebc4b=this['_getAttributeChanges'](_0xbcadec['getAttributes'](),_0xa0a197['getAttributes']());for(const _0x1d35a7 in _0x1ebc4b){const {oldValue:_0x32f4fd,newValue:_0x21770d}=_0x1ebc4b[_0x1d35a7];this['_operationsData']['push']({'type':'attribute','path':_0x18e91e['slice'](),'howMany':0x1,'key':_0x1d35a7,'oldValue':_0x32f4fd,'newValue':_0x21770d});}}['_handleTextAttributeChanges'](_0x2654fd,_0x4b1a67,_0x4ccb21){const _0x4e41a3=this['_operationsData'],_0x448e62=_0x2654fd[0x0]['parent'],_0x4cc87f=_0x2654fd[0x0]['offset'],_0x810218=_0x4b1a67[0x0]['parent'],_0x3ed7f2=_0x4b1a67[0x0]['offset'],_0x5ddd13=_0x2654fd['reduce']((_0x27a605,_0x1ae47d)=>_0x27a605+_0x1ae47d['data']['length'],0x0),_0x3c13ac=this['_getAttrsForOffsets'](_0x448e62,_0x4cc87f,_0x5ddd13),_0x263217=this['_getAttrsForOffsets'](_0x810218,_0x3ed7f2,_0x5ddd13),_0x3820ef={};for(let _0x9de5d5=0x0;_0x9de5d5<_0x5ddd13;_0x9de5d5++){const _0x18d405=_0x3c13ac[_0x4cc87f+_0x9de5d5],_0x2c3450=_0x263217[_0x3ed7f2+_0x9de5d5],_0x11c900=this['_getAttributeChanges'](_0x18d405,_0x2c3450);for(const _0x46b6d1 in _0x3820ef)_0x11c900[_0x46b6d1]||_0x1c482f(_0x46b6d1);for(const _0x859196 in _0x11c900){const {oldValue:_0x35a165,newValue:_0x5ccd2a}=_0x11c900[_0x859196],_0x31c536=_0x3820ef[_0x859196];_0x31c536?_0x31c536['oldValue']==_0x35a165&&_0x31c536['newValue']==_0x5ccd2a?_0x31c536['length']++:(_0x1c482f(_0x859196),_0x3820ef[_0x859196]={'oldValue':_0x35a165,'newValue':_0x5ccd2a,'start':_0x9de5d5,'length':0x1}):_0x3820ef[_0x859196]={'oldValue':_0x35a165,'newValue':_0x5ccd2a,'start':_0x9de5d5,'length':0x1};}}for(const _0x4a76fa in _0x3820ef)_0x1c482f(_0x4a76fa);function _0x1c482f(_0x395040){const _0xa3e923=_0x3820ef[_0x395040],_0x48b6be=_0x4ccb21['slice']();_0x48b6be[_0x48b6be['length']-0x1]+=_0xa3e923['start'],_0x4e41a3['push']({'type':'attribute','path':_0x48b6be,'howMany':_0xa3e923['length'],'key':_0x395040,'oldValue':_0xa3e923['oldValue'],'newValue':_0xa3e923['newValue']}),delete _0x3820ef[_0x395040];}}['_getAttributeChanges'](_0x4d663b,_0x204d91){const _0x219bf4={};for(const [_0x49dda8,_0x51b7f8]of _0x4d663b)_0x219bf4[_0x49dda8]={'oldValue':JSON['stringify'](_0x51b7f8),'newValue':'null'};for(const [_0x3bd275,_0x45fdae]of _0x204d91){const _0x44b8c9=JSON['stringify'](_0x45fdae);_0x219bf4[_0x3bd275]?_0x219bf4[_0x3bd275]['oldValue']==_0x44b8c9?delete _0x219bf4[_0x3bd275]:_0x219bf4[_0x3bd275]['newValue']=_0x44b8c9:_0x219bf4[_0x3bd275]={'oldValue':'null','newValue':_0x44b8c9};}return delete _0x219bf4[Wt],_0x219bf4;}['_getAttrsForOffsets'](_0x2c946b,_0x164cc2,_0x184c33){const _0x3d98db=new Array(_0x164cc2+_0x184c33);let _0x222ee1=_0x2c946b['getChildAtOffset'](_0x164cc2),_0x4a2311=_0x222ee1['startOffset'];for(;_0x222ee1&&_0x4a2311<_0x164cc2+_0x184c33;){const _0x58de6f=Array['from'](_0x222ee1['getAttributes']());_0x3d98db['fill'](_0x58de6f,_0x4a2311,_0x4a2311+_0x222ee1['offsetSize']),_0x4a2311+=_0x222ee1['offsetSize'],_0x222ee1=_0x222ee1['nextSibling'];}return _0x3d98db;}['_getPositionFromAnchorAndPath'](_0x4d62cd,_0x1191e9){const _0x5cb6bb=[..._0x4d62cd['path']['slice'](0x0,-0x1),_0x4d62cd['offset']+_0x1191e9[0x0],..._0x1191e9['slice'](0x1)];return new _0x4a6baf(_0x4d62cd['root'],_0x5cb6bb);}['_makeModelFromTokens'](_0x5da233){const _0x47d912=[];let _0x1b0b13=null;for(const _0x2b104a of _0x5da233)if('element'!=_0x2b104a['type']||_0x2b104a['isStart']||_0x1b0b13!=_0x2b104a['element']){if(!_0x1b0b13){if('text'==_0x2b104a['type']){const _0x23f7dd=_0x4a6baf['_createAt'](_0x2b104a['parent'],_0x2b104a['offset']),_0x31a229=_0x406260['_createFromPositionAndShift'](_0x23f7dd,_0x2b104a['data']['length']),_0x287ba0=Array['from'](_0x31a229['getItems']())['map'](_0xc94c29=>new _0x2bd850(_0xc94c29['data'],_0xc94c29['getAttributes']()));_0x47d912['push'](..._0x287ba0);}else{_0x1b0b13=_0x2b104a['element'];const _0x3707f7=_0x2b104a['element']['_clone'](!0x0);_0x3707f7['_removeAttribute'](Wt);for(const _0x10622f of this['_editor']['model']['createRangeIn'](_0x3707f7)['getItems']())_0x10622f['is']('element')&&_0x10622f['_removeAttribute'](Wt);_0x47d912['push'](_0x3707f7);}}}else _0x1b0b13=null;return _0x47d912;}}function Kt(_0x5d32c9,_0x4be7c7){return _0x5d32c9['type']===_0x4be7c7['type']&&(_0x5d32c9['limitId']===_0x4be7c7['limitId']&&('text'==_0x5d32c9['type']?_0x5d32c9['data']==_0x4be7c7['data']:function(_0x3072c6,_0xbc78e0){if(_0x3072c6['isStart']!=_0xbc78e0['isStart'])return!0x1;if(_0x3072c6['isStart']&&_0x3072c6['elementId']!=_0xbc78e0['elementId'])return!0x1;if(_0x3072c6['category']!=_0xbc78e0['category'])return!0x1;if('block'==_0x3072c6['category'])return!0x0;if('container'==_0x3072c6['category']&&_0x3072c6['elementId']!=_0xbc78e0['elementId'])return!0x1;return _0x3072c6['element']['name']==_0xbc78e0['element']['name'];}(_0x5d32c9,_0x4be7c7)));}function qt(_0x15f64d){return Mt({'name':_0x15f64d['name'],...Object['fromEntries'](_0x15f64d['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 _0x2cb7e7,Editor as _0x29f16e,Plugin as _0x54ac5f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xe9d00d,Collection as _0x45a218,uid as _0x5b45c5,toArray as _0x232883,first as _0x34ff48,FocusTracker as _0x309353,KeystrokeHandler as _0x52b229}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x345bc2,IconView as _0x331af0,ButtonView as _0x5118f7,DropdownButtonView as _0x253bf8,FocusCycler as _0x1fb3a5,isViewWithFocusCycler as _0x40d89c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x8d9886,IconCheck as _0x40e7cc,IconCancel as _0x331ed3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x15b139,toWidget as _0x5776ff}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x1a1a9a}from'luxon';import{InsertOperation as _0x5026ae,MoveOperation as _0x480534,ModelPosition as _0x26ea7f,ModelRange as _0x251037,MarkerOperation as _0x118df8,MergeOperation as _0x3f89d9,SplitOperation as _0x1c3130,RenameOperation as _0x43d6ce,AttributeOperation as _0x158898,ModelTreeWalker as _0x430b2d,ModelText as _0x5ce25e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0xd681d4}from'diff';class D extends _0x2cb7e7{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x26afda,_0x3c5c15){let _0x2ff8e6;if(_0x3c5c15||(_0x3c5c15=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x3c5c15?_0x2ff8e6=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x2ff8e6=this['context']['editors']['find'](_0x524966=>_0x524966['config']['get']('collaboration.channelId')==_0x3c5c15)),!_0x2ff8e6)throw new _0xe9d00d('permissions-set-permissions-invalid-channel-id',null);const _0x2a703f=_0x2ff8e6['plugins'],_0x51b195=_0x2a703f['has']('CommentsRepository')?_0x2a703f['get']('CommentsRepository'):void 0x0,_0x15cb2a=_0x2a703f['has']('CommentsOnly')&&_0x2a703f['get']('CommentsOnly'),_0x351f53=_0x26afda['includes']('document:write'),_0x493d2e=_0x26afda['includes']('comment:modify_all'),_0x47e320=_0x26afda['includes']('comment:admin'),_0x65d263=_0x26afda['includes']('comment:write'),_0x5f3da3=_0x65d263||_0x47e320,_0x56c828=_0x5f3da3||_0x493d2e,_0x11d56b=_0x351f53||_0x5f3da3;(_0x15cb2a&&(_0x15cb2a['isEnabled']=!_0x351f53&&_0x56c828),_0x2ff8e6 instanceof _0x29f16e)&&(!(_0x351f53||_0x56c828&&_0x51b195)?_0x2ff8e6['enableReadOnlyMode']('no-permissions'):_0x2ff8e6['disableReadOnlyMode']('no-permissions'));if(_0x51b195){_0x51b195['setPermissions']({'admin':_0x47e320,'modifyAll':_0x493d2e,'write':_0x65d263,'resolve':_0x11d56b},_0x3c5c15);const _0x5f26ee=_0x2ff8e6 instanceof _0x29f16e&&_0x2ff8e6['commands']['get']('addCommentThread');_0x5f26ee&&(_0x5f3da3?_0x5f26ee['clearForceDisabled']('noPermissions'):_0x5f26ee['forceDisabled']('noPermissions'));}}}function $(_0x5ab04b,_0x37ae3f){const t=_0x5ab04b['t'];switch(_0x37ae3f){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 _0x2cb7e7{['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(_0x3a0e18){super(_0x3a0e18),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x45a218(),this['_locale']=_0x3a0e18['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:_0x368a27,name:_0x168e75,..._0x25a70e}){if(!_0x368a27||'string'!=typeof _0x368a27)throw new _0xe9d00d('users-add-invalid-id');if(this['users']['has'](_0x368a27))throw new _0xe9d00d('users-add-duplicated-id',null,{'id':_0x368a27});const _0x148554=this['context']['config']['get']('users.getInitialsCallback'),_0x23cb9f={..._0x25a70e,'id':_0x368a27,'name':U(this['_locale'],_0x168e75),'color':this['_getNextColor']()};_0x23cb9f['name']=U(this['_locale'],_0x23cb9f['name']);const _0x36a6e2=new V(_0x23cb9f,_0x148554);return this['users']['add'](_0x36a6e2),_0x36a6e2;}['getUser'](_0x8d61ba){return this['users']['get'](_0x8d61ba);}['useAnonymousUser'](){const _0x2eb10d=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x2eb10d);}['defineMe'](_0x30882){if(this['_myId'])throw new _0xe9d00d('users-me-already-defined',null);const _0x4295c9=this['getUser'](_0x30882);if(!_0x4295c9)throw new _0xe9d00d('users-me-missing-user',null);this['_myId']=_0x30882,_0x4295c9['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x1cb56d=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x1cb56d&&(this['_lastColor']=0x0),new R(this['_lastColor']++);}['_addAnonymousUser'](){const _0xd6010f=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0xd6010f,'name':$(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class V{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x1c5f1a,_0xe120b6){this['id']=_0x1c5f1a['id'],this['color']=_0x1c5f1a['color'],this['name']=_0x1c5f1a['name'],this['initials']=_0xe120b6?_0xe120b6(this['name']):this['_computeInitials'](),this['avatar']=_0x1c5f1a['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x255411=this['name']['split']('\x20')['filter'](_0xd14f2e=>/^[\p{Letter}]/u['test'](_0xd14f2e));return 0x1===_0x255411['length']?this['_getInitial'](_0x255411[0x0]):0x0===_0x255411['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x255411[0x0])+this['_getInitial'](_0x255411[_0x255411['length']-0x1]);}['_getInitial'](_0x4ba0da){return String['fromCodePoint'](_0x4ba0da['codePointAt'](0x0))['toUpperCase']();}}function U(_0x2e7021,_0x11b91b=''){return''==(_0x11b91b=_0x11b91b['trim']())?$(_0x2e7021,'Anonymous'):_0x11b91b;}class R{['_id'];constructor(_0x38f4c6){this['_id']=_0x38f4c6;}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 _0x345bc2{['name'];['notificationView'];constructor(_0x2fcc22,_0x2aaf73,_0x3e726c){super(_0x2fcc22),this['name']=_0x2aaf73['name'],this['notificationView']=null;const _0xb6c582=['ck','ck-user'],_0x43187f=['ck','ck-user__img'];if(_0x2aaf73['isAnonymous']&&_0x43187f['push']('ck-user__anonymous'),!_0x2aaf73['isAnonymous']&&_0x2aaf73['isMe']&&_0xb6c582['push']('ck-user_me'),_0x2aaf73['avatar']&&_0x43187f['push']('ck-user__avatar'),_0x3e726c){const _0x34fe11=new _0x331af0();_0x34fe11['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x34fe11['content']=_0x8d9886,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3e726c},'children':[_0x34fe11]};}const _0x4af2b6=[{'tag':'div','attributes':{'class':_0x43187f,'style':{'background-image':_0x2aaf73['avatar']?'url(\x27'+_0x2aaf73['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x2aaf73['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x2aaf73['name']},'children':[{'text':_0x2aaf73['initials']}]}];this['notificationView']&&_0x4af2b6['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0xb6c582,'data-user-id':_0x2aaf73['id']},'children':_0x4af2b6});}}class H extends _0x345bc2{['id'];constructor(_0x37c88b,_0x4f8b18){super(_0x37c88b),this['id']='ck-aria-description-'+_0x5b45c5(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x4f8b18}]});}}class z extends _0x5118f7{['render'](){super['render'](),j(this);}}class W extends _0x253bf8{['render'](){super['render'](),j(this);}}function j(_0x8ca092){_0x8ca092['listenTo'](_0x8ca092['element'],'mousedown',(_0x1c86f7,_0x918145)=>{_0x918145['stopPropagation'](),_0x918145['preventDefault']();}),_0x8ca092['listenTo'](_0x8ca092['element'],'mouseup',()=>{_0x8ca092['element']['focus']();});}function Y(_0x570b92){const _0xc664f3=_0x570b92['split'](':');return{'group':_0xc664f3[0x0],'type':_0xc664f3[0x1],'subType':_0xc664f3['length']>=0x5?_0xc664f3[0x2]:null,'id':_0xc664f3['length']<0x5?_0xc664f3[0x2]:_0xc664f3[0x3],'authorId':_0xc664f3['length']<0x5?_0xc664f3[0x3]:_0xc664f3[0x4],'markerCount':0x6==_0xc664f3['length']?_0xc664f3[0x5]:null};}function J(_0x330231,_0x61011b){const _0x23ce05=_0x330231['end']['nodeBefore'];if(_0x23ce05&&_0x23ce05['is']('element')&&_0x61011b['schema']['isBlock'](_0x23ce05)&&!_0x61011b['schema']['isObject'](_0x23ce05)){const _0x184d1e=_0x61011b['createPositionAt'](_0x23ce05,'end');return _0x61011b['createRange'](_0x330231['start'],_0x184d1e);}return _0x330231;}class K extends _0x54ac5f{['afterInit'](){const _0x556c99=this['editor'];if(!_0x556c99['plugins']['has']('AlignmentEditing'))return;_0x556c99['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x54ac5f{['afterInit'](){const _0x21eede=this['editor'],_0x3dc0fe=_0x21eede['plugins']['get']('SuggestionsConversion');for(const _0x1e7d45 of q){if(!_0x21eede['plugins']['has'](_0x1e7d45))continue;const _0x145280=_0x1e7d45['slice'](0x0,-0x7)['toLowerCase']();_0x3dc0fe['registerInlineAttribute'](_0x145280);}}}class Z extends _0x54ac5f{['afterInit'](){const _0x12e725=this['editor'],_0x174047=_0x12e725['plugins']['get']('SuggestionsConversion');_0x12e725['plugins']['has']('BookmarkEditing')&&_0x174047['registerBlockAttribute']('bookmarkId');}}const Q=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x54ac5f{['afterInit'](){const _0x10ade0=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x4c42a3,commandName:_0x4f0e72}of Q)this['editor']['plugins']['has'](_0x4c42a3)&&_0x10ade0['registerInlineAttribute'](_0x4f0e72);}}class tt extends _0x54ac5f{['afterInit'](){const {editor:_0x1db934}=this;if(!_0x1db934['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x238dbf=_0x1db934['plugins']['get']('SuggestionsConversion');_0x238dbf['registerBlockAttribute']('footnotesListStyle'),_0x238dbf['registerBlockAttribute']('footnotesListStart');}}class et extends _0x54ac5f{['afterInit'](){const _0x361319=this['editor'];if(!_0x361319['plugins']['has']('HighlightEditing'))return;_0x361319['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class st extends _0x54ac5f{['afterInit'](){const _0x522fcb=this['editor'];if(!_0x522fcb['plugins']['has']('HtmlEmbed'))return;_0x522fcb['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x54ac5f{['afterInit'](){const _0x3fc653=this['editor'];if(!_0x3fc653['plugins']['has']('ImageEditing'))return;const _0x40b328=_0x3fc653['plugins']['get']('SuggestionsConversion');_0x40b328['registerBlockAttribute']('src'),_0x3fc653['plugins']['has']('ImageResize')&&_0x40b328['registerBlockAttribute']('resizedWidth'),_0x3fc653['plugins']['has']('ImageTextAlternativeEditing')&&_0x40b328['registerBlockAttribute']('alt'),_0x3fc653['plugins']['has']('PictureEditing')&&_0x40b328['registerBlockAttribute']('sources'),_0x3fc653['plugins']['has']('ImageSizeAttributes')&&(_0x40b328['registerBlockAttribute']('width'),_0x40b328['registerBlockAttribute']('height'));}}class nt extends _0x54ac5f{['afterInit'](){const _0x230e2b=this['editor'],_0x5e0fa1=_0x230e2b['plugins']['get']('SuggestionsConversion');_0x230e2b['plugins']['has']('IndentBlock')&&(_0x5e0fa1['registerBlockAttribute']('blockIndent'),_0x230e2b['plugins']['has']('ListEditing')&&(_0x5e0fa1['registerBlockAttribute']('blockIndentList'),_0x5e0fa1['registerBlockAttribute']('blockIndentListItem')));}}class ot extends _0x54ac5f{['afterInit'](){const _0x1e1ab3=this['editor'];if(!_0x1e1ab3['plugins']['has']('LineHeight'))return;_0x1e1ab3['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class rt extends _0x54ac5f{['afterInit'](){const _0x15c866=this['editor'];if(!_0x15c866['plugins']['has']('LinkEditing'))return;const _0x1f1518=_0x15c866['plugins']['get']('SuggestionsConversion'),_0x3f13c9=_0x15c866['commands']['get']('link');_0x1f1518['registerInlineAttribute']('linkHref');for(const _0x16aebb of _0x3f13c9['manualDecorators'])_0x1f1518['registerInlineAttribute'](_0x16aebb['id']);}}class at extends _0x54ac5f{['afterInit'](){const _0xde47de=this['editor'];if(!_0xde47de['plugins']['has']('ListEditing'))return;const _0x349100=_0xde47de['plugins']['get']('SuggestionsConversion'),_0x2e44a2=_0xde47de['plugins']['has']('TodoListEditing');_0x349100['registerBlockAttribute']('listItemId'),_0x349100['registerBlockAttribute']('listType'),_0x349100['registerBlockAttribute']('listIndent'),_0x2e44a2&&_0x349100['registerBlockAttribute']('todoListChecked');}}class ct extends _0x54ac5f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xfc5950=this['editor']['config']['get']('list.properties'),_0x3f9154=this['editor']['plugins']['get']('SuggestionsConversion');_0xfc5950['styles']&&_0x3f9154['registerBlockAttribute']('listStyle'),_0xfc5950['reversed']&&_0x3f9154['registerBlockAttribute']('listReversed'),_0xfc5950['startIndex']&&_0x3f9154['registerBlockAttribute']('listStart');}}class lt extends _0x54ac5f{['afterInit'](){const _0x53ec37=this['editor'],_0x1bb867=_0x53ec37['plugins']['get']('SuggestionsConversion');_0x53ec37['plugins']['has']('MultiLevelList')&&_0x1bb867['registerBlockAttribute']('listMarkerStyle');}}class ut extends _0x54ac5f{['afterInit'](){const _0x4e3b11=this['editor'];if(!_0x4e3b11['plugins']['has']('Style')||!_0x4e3b11['plugins']['has']('DataSchema')||!_0x4e3b11['config']['get']('style.definitions'))return;const _0x4f06d1=_0x4e3b11['plugins']['get']('SuggestionsConversion'),_0x1dcd98=_0x4e3b11['config']['get']('style.definitions'),_0x1d7c32=_0x4e3b11['plugins']['get']('GeneralHtmlSupport'),_0x34c87c=_0x4e3b11['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4e3b11['plugins']['get']('DataSchema'),_0x1dcd98),_0x47b03f=new Set();for(const _0x1ebef2 of _0x34c87c['block']){const _0x46d23b=_0x1d7c32['getGhsAttributeNameForElement'](_0x1ebef2['element']);_0x47b03f['add'](_0x46d23b);}const _0x53d931=new Set();for(const _0x1058b7 of _0x34c87c['inline']){const _0x567cd4=_0x1d7c32['getGhsAttributeNameForElement'](_0x1058b7['element']);_0x53d931['add'](_0x567cd4);for(const _0x20104d of _0x1058b7['ghsAttributes'])_0x53d931['add'](_0x20104d);}for(const _0x2b1511 of _0x47b03f)_0x4f06d1['registerBlockAttribute'](_0x2b1511);for(const _0x3137e9 of _0x53d931)_0x4f06d1['registerInlineAttribute'](_0x3137e9);}}class ht extends _0x54ac5f{['afterInit'](){const _0x5aa68e=this['editor'];if(!_0x5aa68e['plugins']['has']('TableEditing'))return;const _0x2b6beb=_0x5aa68e['plugins']['get']('SuggestionsConversion');_0x2b6beb['registerBlockAttribute']('headingRows'),_0x2b6beb['registerBlockAttribute']('headingColumns');}}class dt extends _0x54ac5f{['afterInit'](){const {plugins:_0x579de9}=this['editor'];if(!_0x579de9['has']('TablePropertiesEditing'))return;const _0x287619=_0x579de9['get']('SuggestionsConversion'),_0x4fd3e5=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x433ebb of _0x4fd3e5)_0x287619['registerBlockAttribute'](_0x433ebb);}}class ft extends _0x54ac5f{['afterInit'](){const _0x20eeaa=this['editor'],_0x1d3b9e=_0x20eeaa['plugins']['get']('SuggestionsConversion');_0x20eeaa['plugins']['has']('TableLayout')&&_0x1d3b9e['registerBlockAttribute']('tableType');}}class gt extends _0x54ac5f{['afterInit'](){const _0x2680dd=this['editor'],_0x36a953=this['editor']['plugins']['get']('SuggestionsConversion');_0x2680dd['plugins']['has']('Uploadcare')&&_0x2680dd['plugins']['has']('UploadcareImageEdit')&&_0x36a953['registerBlockAttribute']('uploadcareImageId');}}class mt extends _0x54ac5f{['afterInit'](){const _0x564dd2=this['editor'];if(!_0x564dd2['plugins']['has']('ShiftEnter'))return;const _0x5ade61=_0x564dd2['plugins']['get']('SuggestionsConversion'),_0x19153f=(_0x390160,_0x21538c,_0x14a519,_0x221c84)=>{if(_0x221c84&&!_0x14a519['options']['showSuggestionHighlights'])return;if(!_0x14a519['consumable']['test'](_0x21538c['markerRange'],_0x390160['name']))return;const _0xe8ce67=_0x564dd2['model'];for(const _0xa0bf3b of _0x21538c['markerRange']['getItems']()){if(!_0xa0bf3b['is']('element','softBreak'))continue;const _0x365932='deletion'==_0x21538c['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3d520e,authorId:_0xa370d}=Y(_0x21538c['markerName']),_0x4b168f=_0x14a519['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x365932,'data-suggestion':_0x3d520e,'data-author-id':_0xa370d}),_0x2bb66e=_0x14a519['mapper']['toViewPosition'](_0xe8ce67['createPositionBefore'](_0xa0bf3b));!_0x221c84&&_0x5ade61['_activeMarkers']['includes'](_0x21538c['markerName'])&&_0x14a519['writer']['addClass']('ck-suggestion-marker--active',_0x4b168f),_0x14a519['writer']['insert'](_0x2bb66e,_0x4b168f),_0x14a519['mapper']['bindElementToMarker'](_0x4b168f,_0x21538c['markerName']);}};_0x564dd2['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40de51,_0x11dc33,_0x3f60ea)=>{_0x19153f(_0x40de51,_0x11dc33,_0x3f60ea,!0x1);},{'priority':'high'}),_0x564dd2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27a539,_0x47b4f0,_0x451b9f)=>{_0x19153f(_0x27a539,_0x47b4f0,_0x451b9f,!0x0);},{'priority':'high'});}}class kt extends _0x54ac5f{['afterInit'](){const _0x359cb0=this['editor'];_0x359cb0['plugins']['has']('MediaEmbedEditing')&&(_0x359cb0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x432b2a,{writer:_0x225a75,options:_0x534782})=>{if(_0x534782['showSuggestionHighlights'])return _0x225a75['createEmptyElement']('div');},'converterPriority':'high'}),_0x359cb0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x129257,_0x13c04f,_0x29800b)=>{_0x29800b['options']['showSuggestionHighlights']&&_0x129257['stop']();},{'priority':'high'}));}}class pt extends _0x54ac5f{['afterInit'](){const _0x4e2658=this['editor'];if(!_0x4e2658['plugins']['has']('Table'))return;_0x4e2658['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x534a60,_0x43964a,_0x17dbf2)=>{((_0x3a01b8,_0x565147,_0x5157df)=>{if(!_0x5157df['options']['showSuggestionHighlights'])return;const _0x29b47a=_0x565147['item'];if(!_0x29b47a||!_0x29b47a['is']('element','tableCell'))return;const _0x589096=_0x5157df['mapper']['toViewElement'](_0x29b47a);if(_0x589096){const {id:_0x5c3926,authorId:_0x223b89}=Y(_0x565147['markerName']);_0x15b139(_0x589096,_0x5157df['writer'],(_0x36761e,_0x410fad,_0x1b9911)=>{_0x1b9911['addClass'](_0x232883(_0x410fad['classes']),_0x36761e),_0x1b9911['setAttribute']('data-suggestion',_0x5c3926,_0x36761e),_0x1b9911['setAttribute']('data-author-id',_0x223b89,_0x36761e);});}})(0x0,_0x43964a,_0x17dbf2);},{'priority':'highest'});}}class yt extends _0x54ac5f{['afterInit'](){const _0x5b7cd8=this['editor'];_0x5b7cd8['plugins']['has']('HorizontalLineEditing')&&_0x5b7cd8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x17bf8,{writer:_0x272802,options:_0x353b8d})=>{if(!_0x353b8d['showSuggestionHighlights'])return null;const _0x45aafe=_0x272802['createContainerElement']('div'),_0x4b8e0b=_0x272802['createEmptyElement']('hr');return _0x272802['addClass']('ck-horizontal-line',_0x45aafe),_0x272802['insert'](_0x272802['createPositionAt'](_0x45aafe,0x0),_0x4b8e0b),_0x45aafe;},'converterPriority':'high'});}}class wt extends _0x54ac5f{['afterInit'](){const {plugins:_0x4180c,model:_0x4cbf76}=this['editor'];if(!_0x4180c['has']('TableCellPropertiesEditing'))return;const _0x23deee=_0x4180c['get']('SuggestionsConversion'),_0x5151f4=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x60e1cc of _0x5151f4)_0x23deee['registerBlockAttribute'](_0x60e1cc);_0x4cbf76['schema']['checkAttribute']('tableCell','tableCellType')&&_0x23deee['registerBlockAttribute']('tableCellType');}}class bt extends _0x54ac5f{['afterInit'](){const _0x2e9873=this['editor'];if(!_0x2e9873['plugins']['has']('TableEditing')||!_0x2e9873['config']['get']('table.enableFooters'))return;_0x2e9873['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class vt extends _0x54ac5f{['_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 _0x2d345f=this['editor'],_0x395d1f=(_0x52050a,_0x33f306,_0x43da08)=>{const {id:_0x2e95c4,authorId:_0x419239,type:_0x401def,subType:_0x1b681d}=Y(_0x52050a['markerName']),_0x18497b=['ck-suggestion-marker',this['_getClassName'](_0x401def,_0x1b681d)];let _0x1bf7a3=0xbb8;return!_0x43da08&&(this['_activeMarkers']['includes'](_0x52050a['markerName'])&&(_0x18497b['push']('ck-suggestion-marker--active'),_0x1bf7a3=0xbc2)),('deletion'==_0x401def&&(_0x1bf7a3+=0x5),{'classes':_0x18497b,'attributes':{'data-suggestion':_0x2e95c4,'data-author-id':_0x419239},'priority':_0x1bf7a3});};_0x2d345f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4cbfa7,_0x4e1667)=>_0x395d1f(_0x4cbfa7,0x0,!0x1)}),_0x2d345f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x575d13,_0xe3fd92)=>_0x395d1f(_0x575d13,0x0,!0x0)}),_0x2d345f['conversion']['for']('dataDowncast')['add'](_0x283be2=>{_0x283be2['on']('addMarker:suggestion',(_0x3c16b8,_0x1825a8,_0x43afcd)=>{if(!_0x43afcd['options']['showSuggestionHighlights'])return;const _0x1e28b4=_0x1825a8['item'];if(!_0x1e28b4)return;const _0x5ed61b=_0x43afcd['mapper']['toViewElement'](_0x1e28b4);_0x2d345f['model']['schema']['isObject'](_0x1e28b4)&&_0x5ed61b&&!_0x5ed61b['getCustomProperty']('widget')&&_0x5ed61b['is']('containerElement')&&_0x5776ff(_0x5ed61b,_0x43afcd['writer']);},{'priority':'high'});});const _0x203159=(_0x452f6b,_0x17bdfa,_0x456a3c,_0x5cffd5,_0x339695)=>{if(_0x5cffd5&&!_0x456a3c['options']['showSuggestionHighlights'])return;if(!_0x17bdfa['item'])return;const {id:_0x6bf621,authorId:_0x4f41a1,subType:_0x25f88e}=Y(_0x17bdfa['markerName']);if(_0x339695){const _0x5d05aa=_0x25f88e['split']('|')[0x0];if(!this['isBlockAttribute'](_0x5d05aa))return;}if(_0x17bdfa['item']['is']('selection'))return void _0x456a3c['consumable']['consume'](_0x17bdfa['item'],_0x452f6b['name']);const _0x17803e=_0x456a3c['mapper']['toViewElement'](_0x17bdfa['item']);if(_0x17bdfa['item']['is']('element')&&_0x2d345f['model']['schema']['isBlock'](_0x17bdfa['item'])&&!_0x17803e['getCustomProperty']('addHighlight')){_0x456a3c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x17803e),_0x456a3c['writer']['setAttribute']('data-suggestion',_0x6bf621,_0x17803e),_0x456a3c['writer']['setAttribute']('data-author-id',_0x4f41a1,_0x17803e),_0x456a3c['mapper']['bindElementToMarker'](_0x17803e,_0x17bdfa['markerName']),_0x5cffd5||(this['_activeMarkers']['includes'](_0x17bdfa['markerName'])?_0x456a3c['writer']['addClass']('ck-suggestion-marker--active',_0x17803e):_0x456a3c['writer']['removeClass']('ck-suggestion-marker--active',_0x17803e));for(const _0x36f77f of _0x2d345f['model']['createRangeIn'](_0x17bdfa['item'])['getItems']())_0x456a3c['consumable']['consume'](_0x36f77f,_0x452f6b['name']);_0x456a3c['consumable']['consume'](_0x17bdfa['item'],_0x452f6b['name']);}},_0x51a996=(_0xa16bca,_0x3cbf8c,_0x4309bf,_0x15e98a)=>{const _0xa39a25=_0x4309bf['mapper']['markerNameToElements'](_0x3cbf8c['markerName']);if(_0xa39a25){if(_0x15e98a){const {subType:_0x40c27f}=Y(_0x3cbf8c['markerName']),_0xc75ecc=_0x40c27f['split']('|')[0x0];if(!this['isBlockAttribute'](_0xc75ecc))return;}for(const _0x2071c0 of _0xa39a25)_0x2071c0['getCustomProperty']('addHighlight')||(_0x4309bf['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2071c0),_0x4309bf['writer']['removeAttribute']('data-suggestion',_0x2071c0),_0x4309bf['writer']['removeAttribute']('data-author-id',_0x2071c0),_0x4309bf['mapper']['unbindElementFromMarkerName'](_0x2071c0,_0x3cbf8c['markerName']));}};_0x2d345f['conversion']['for']('editingDowncast')['add'](_0x42ad37=>{_0x42ad37['on']('addMarker:suggestion:formatBlock',(_0x50aa79,_0x11e87e,_0x5a277d)=>{_0x203159(_0x50aa79,_0x11e87e,_0x5a277d,!0x1,!0x1);},{'priority':'high'});}),_0x2d345f['conversion']['for']('editingDowncast')['add'](_0x504761=>{_0x504761['on']('addMarker:suggestion:attribute',(_0x2c0aed,_0x2c6eb4,_0xa62edd)=>{_0x203159(_0x2c0aed,_0x2c6eb4,_0xa62edd,!0x1,!0x0);},{'priority':'high'});}),_0x2d345f['conversion']['for']('editingDowncast')['add'](_0x10494c=>{_0x10494c['on']('removeMarker:suggestion:formatBlock',(_0x4d1826,_0x1abc36,_0x424dbd)=>{_0x51a996(0x0,_0x1abc36,_0x424dbd,!0x1);},{'priority':'high'});}),_0x2d345f['conversion']['for']('editingDowncast')['add'](_0x5dd23a=>{_0x5dd23a['on']('removeMarker:suggestion:attribute',(_0x4268b7,_0x14f9be,_0xeb0591)=>{_0x51a996(0x0,_0x14f9be,_0xeb0591,!0x0);},{'priority':'high'});}),_0x2d345f['conversion']['for']('dataDowncast')['add'](_0x152858=>{_0x152858['on']('addMarker:suggestion:formatBlock',(_0x4c8f7f,_0x394cf7,_0xe8c969)=>{_0x203159(_0x4c8f7f,_0x394cf7,_0xe8c969,!0x0,!0x1);},{'priority':'highest'});}),_0x2d345f['conversion']['for']('dataDowncast')['add'](_0x31b582=>{_0x31b582['on']('addMarker:suggestion:attribute',(_0x2efb19,_0x12bb9b,_0x757cca)=>{_0x203159(_0x2efb19,_0x12bb9b,_0x757cca,!0x0,!0x0);},{'priority':'highest'});}),_0x2d345f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5ca43f,_0x52cd56)=>_0x52cd56['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5ca43f['substr'](0xb)}});const _0x29bf30=(_0x4b7472,_0xb4ed3e,_0x1525b3,_0x438f4f,_0xaa4c63)=>{if(_0x438f4f&&!_0x1525b3['options']['showSuggestionHighlights'])return;if(!_0x1525b3['consumable']['test'](_0xb4ed3e['markerRange'],_0x4b7472['name']))return;const _0x14e43c=this['_activeMarkers'],_0xae8476=_0xb4ed3e['markerRange']['getWalker'](),_0x1945eb=_0xb4ed3e['markerRange']['start'],_0x30990b=_0x2d345f['model']['schema'];let _0x12dc3a=null,_0x925ee7=null,_0x1ffaf6=!0x1,_0xade993=!0x1;for(const _0x285b16 of _0xae8476){const _0x50cf68=_0x285b16['item'];_0x1ffaf6=_0x1ffaf6||_0x30990b['isContent'](_0x50cf68);const _0x399d9a=_0x1525b3['mapper']['toViewElement'](_0x50cf68);if(_0x399d9a&&_0x399d9a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x285b16['type']&&(_0x30990b['isBlock'](_0x50cf68)&&!_0x30990b['isLimit'](_0x50cf68)&&(_0x50cf68['nextSibling']||_0x1945eb['isAtEnd']?_0x12dc3a&&_0x12dc3a['parent']==_0x50cf68||(_0x12dc3a=_0x50cf68,_0x5c84a6(_0x285b16['previousPosition']),_0xade993=!0x0):_0x925ee7=_0x925ee7||_0x285b16['previousPosition']));}function _0x5c84a6(_0x5b3a7b){const {id:_0x47f2f4,authorId:_0x44a0d5}=Y(_0xb4ed3e['markerName']),_0x2c218f=_0x1525b3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xaa4c63,'data-suggestion':_0x47f2f4,'data-author-id':_0x44a0d5}),_0x320682=_0x1525b3['mapper']['toViewPosition'](_0x5b3a7b);!_0x438f4f&&_0x14e43c['includes'](_0xb4ed3e['markerName'])&&_0x1525b3['writer']['addClass']('ck-suggestion-marker--active',_0x2c218f),_0x1525b3['writer']['insert'](_0x320682,_0x2c218f),_0x1525b3['mapper']['bindElementToMarker'](_0x2c218f,_0xb4ed3e['markerName']);}_0x1ffaf6||_0xade993||!_0x925ee7||_0x5c84a6(_0x925ee7);};_0x2d345f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e3990,_0x5a8d7b,_0x22d5a9)=>{_0x29bf30(_0x4e3990,_0x5a8d7b,_0x22d5a9,!0x1,'merge');},{'priority':'high'}),_0x2d345f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x37b65a,_0x4c993f,_0x22d4b8)=>{_0x29bf30(_0x37b65a,_0x4c993f,_0x22d4b8,!0x0,'merge');},{'priority':'high'}),_0x2d345f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c0743,_0x22912b,_0x472b3a)=>{_0x29bf30(_0x1c0743,_0x22912b,_0x472b3a,!0x1,'split');},{'priority':'high'}),_0x2d345f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x31e5d7,_0x53b706,_0x3022fb)=>{_0x29bf30(_0x31e5d7,_0x53b706,_0x3022fb,!0x0,'split');},{'priority':'high'}),_0x2d345f['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x39426c,_0x29c699,_0x2c04cc)=>{((_0x43a876,_0x3f485c,_0x2f8dd5)=>{const _0x5e34e0=_0x2f8dd5['mapper']['markerNameToElements'](_0x3f485c['markerName']);if(_0x5e34e0){for(const _0x1d2117 of _0x5e34e0)(_0x1d2117['hasClass']('ck-suggestion-marker-split')||_0x1d2117['hasClass']('ck-suggestion-marker-merge'))&&(_0x2f8dd5['mapper']['unbindElementFromMarkerName'](_0x1d2117,_0x3f485c['markerName']),_0x2f8dd5['writer']['remove'](_0x1d2117));}})(0x0,_0x29c699,_0x2c04cc);},{'priority':'high'});const _0x1ff24d=(_0x215fa5,_0x57a903,_0x4cc374,_0x2264eb)=>{if(_0x2264eb&&!_0x4cc374['options']['showSuggestionHighlights'])return;const _0x6da766=_0x57a903['markerRange']['start'],_0x29b6ea=_0x57a903['markerRange']['end'],_0x375708=_0x2d345f['model']['schema'];if(!_0x6da766['isTouching'](_0x29b6ea)||!_0x6da766['nodeAfter'])return;const _0xff7f51=_0x6da766['nodeAfter'];if(_0x375708['isBlock'](_0xff7f51)&&!_0x375708['isLimit'](_0xff7f51)&&_0x375708['checkChild'](_0xff7f51,'$text')){if(!_0x4cc374['consumable']['consume'](_0x57a903['markerRange'],_0x215fa5['name']))return;const {id:_0x312257,authorId:_0x1055c2}=Y(_0x57a903['markerName']),_0x37022d=_0x4cc374['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x312257,'data-author-id':_0x1055c2}),_0x320d9d=_0x4cc374['mapper']['toViewPosition'](_0x29b6ea);!_0x2264eb&&this['_activeMarkers']['includes'](_0x57a903['markerName'])&&_0x4cc374['writer']['addClass']('ck-suggestion-marker--active',_0x37022d),_0x4cc374['writer']['insert'](_0x320d9d,_0x37022d),_0x4cc374['mapper']['bindElementToMarker'](_0x37022d,_0x57a903['markerName']);}};_0x2d345f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x225263,_0x38e764,_0x55fa55)=>{_0x1ff24d(_0x225263,_0x38e764,_0x55fa55,!0x1);},{'priority':'high'}),_0x2d345f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5136a5,_0x236f40,_0x2a3c6a)=>{_0x1ff24d(_0x5136a5,_0x236f40,_0x2a3c6a,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x17fc44,_0x37c90b,_0x24e1e0)=>{this['_activeMarkers']=_0x24e1e0['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0xf8e624){this['_blockAttributeKeys']['add'](_0xf8e624);}['registerInlineAttribute'](_0x331b62){this['_inlineAttributeKeys']['add'](_0x331b62);}['isBlockAttribute'](_0x56ea1d){return this['_blockAttributeKeys']['has'](_0x56ea1d);}['isInlineAttribute'](_0x5695ec){return this['_inlineAttributeKeys']['has'](_0x5695ec);}['isRegisteredAttribute'](_0x486682){return this['isInlineAttribute'](_0x486682)||this['isBlockAttribute'](_0x486682);}['_getClassName'](_0x206ba2,_0x22d3d8){if('attribute'!=_0x206ba2)return'ck-suggestion-marker-'+_0x206ba2;const _0x534e56=_0x22d3d8['split']('|')[0x0];return this['isBlockAttribute'](_0x534e56)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Ct(_0x1ab1ab={},_0x17eb94){if(void 0x0!==_0x1ab1ab['dateTimeFormat']&&'function'!=typeof _0x1ab1ab['dateTimeFormat'])throw new _0xe9d00d('invalid-date-time-format');return _0x4bfdb0=>{const _0x3d0a9d='string'==typeof _0x4bfdb0?_0x1a1a9a['fromISO'](_0x4bfdb0):_0x1a1a9a['fromJSDate'](_0x4bfdb0),_0xb3e902=_0x1a1a9a['now'](),_0x1c12ff=Math['floor'](_0xb3e902['diff'](_0x3d0a9d,'days')['days']);return _0x1ab1ab['dateTimeFormat']?_0x1ab1ab['dateTimeFormat'](_0x3d0a9d['toJSDate'](),_0x17eb94&&_0x17eb94['t']?_0x17eb94['t']:void 0x0):0x0===_0x1c12ff?_0x17eb94?$(_0x17eb94,'Today')+'\x20'+_0x3d0a9d['toFormat']('hh:mma'):_0x3d0a9d['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x1c12ff?_0x17eb94?$(_0x17eb94,'Yesterday')+'\x20'+_0x3d0a9d['toFormat']('hh:mma'):_0x3d0a9d['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x1c12ff<0x7?_0x17eb94?$(_0x17eb94,'Last')+'\x20'+$(_0x17eb94,_0x3d0a9d['toFormat']('EEEE'))+'\x20'+_0x3d0a9d['toFormat']('hh:mma'):_0x3d0a9d['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x3d0a9d['toFormat']('LL-dd-yyyy\x20hh:mma');};}function xt(_0xa0c664,_0x3303f8){const _0x3a2e87=_0xa0c664['mapper']['markerNameToElements'](_0x3303f8['name']);if(!_0x3a2e87)return null;const _0x5aa742=_0x34ff48(_0x3a2e87['values']());return _0xa0c664['view']['domConverter']['mapViewToDom'](_0x5aa742)||null;}function It(_0x481420,_0x3a332a){if(0x0===_0x3a332a['length'])return null;const _0x5cc122=[],_0x94b27e=_0x481420['view']['domConverter'];for(const _0x55de91 of _0x3a332a){const _0xafad67=_0x481420['mapper']['markerNameToElements'](_0x55de91['name']);if(!_0xafad67)continue;const _0x9db5f8=Array['from'](_0xafad67)['map'](_0x33e824=>_0x94b27e['mapViewToDom'](_0x33e824))['filter'](_0x4dcc64=>!!_0x4dcc64);_0x5cc122['push'](..._0x9db5f8);}if(0x0===_0x5cc122['length'])return null;const _0x2895cb=[];for(const _0x51d17b of _0x5cc122){const _0x54b9bd=_0x51d17b['getClientRects']()['item'](0x0);_0x54b9bd&&_0x2895cb['push']({'x':_0x54b9bd['x'],'y':_0x54b9bd['y'],'domElement':_0x51d17b});}return 0x0===_0x2895cb['length']?null:(_0x2895cb['sort']((_0x1706f4,_0x541813)=>_0x1706f4['y']-_0x541813['y']||_0x1706f4['x']-_0x541813['x']),_0x2895cb['map'](_0x1ae163=>_0x1ae163['domElement']));}function _t(_0x83e72b,{limit:_0x3d19ef,suffix:_0x559f8c='...'}){const _0x37bce6=[];let _0x302b63=0x0;const _0x4ede4f=_0x83e72b['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x41b1f8=0x0;_0x41b1f8<_0x4ede4f['length'];_0x41b1f8++){let _0x399404=_0x4ede4f[_0x41b1f8];const _0x1c8a4f=St(_0x399404);if(_0x399404['startsWith']('<')){if(_0x302b63>=_0x3d19ef){const _0x4523fb=_0x399404['match'](/[a-zA-Z]+/);if(!_0x4523fb){_0x4ede4f[_0x41b1f8]='';continue;}const _0x33c1e4=_0x4523fb[0x0];_0x399404['startsWith']('</')?(_0x37bce6['length']&&(_0x399404=''),_0x37bce6['pop']()):(_0x37bce6['push'](_0x33c1e4),_0x399404='');}}else{if(_0x302b63>=_0x3d19ef)_0x399404='';else{if(_0x302b63+_0x1c8a4f['length']>=_0x3d19ef){let _0x5c018a=_0x3d19ef-_0x302b63;if('\x20'===_0x1c8a4f[_0x5c018a-0x1])_0x5c018a--;else{const _0x54c74f=_0x1c8a4f['slice'](_0x5c018a)['indexOf']('\x20');-0x1!==_0x54c74f?_0x5c018a+=_0x54c74f:_0x5c018a=_0x399404['length'];}_0x399404=_0x1c8a4f['slice'](0x0,_0x5c018a)['join']('')+_0x559f8c,_0x302b63=_0x3d19ef;}else _0x302b63+=_0x1c8a4f['length'];}}_0x4ede4f[_0x41b1f8]=_0x399404;}return _0x4ede4f['join']('\x0a')['replace'](/\n/g,'');}function St(_0x338992){const _0xc9de57=[];for(let _0x5f3a79=0x0;_0x5f3a79<_0x338992['length'];_0x5f3a79++){const _0x48eae4=_0x338992['substring'](_0x5f3a79)['match'](/^&[a-z0-9#]+;/);if(_0x48eae4){const _0xf551c1=_0x48eae4[0x0];_0xc9de57['push'](_0xf551c1),_0x5f3a79+=_0xf551c1['length']-0x1;}else _0xc9de57['push'](_0x338992[_0x5f3a79]);}return _0xc9de57;}class Et extends _0x345bc2{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x1ab708){super(_0x1ab708);const _0x2d0cd0=this['bindTemplate'];this['set']('message',$(_0x1ab708,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x1ab708,$(_0x1ab708,'Yes'),_0x40e7cc,'submit'),this['cancelView']=this['_createButtonView'](_0x1ab708,$(_0x1ab708,'No'),_0x331ed3,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x309353(),this['keystrokes']=new _0x52b229(),this['focusCycler']=new _0x1fb3a5({'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':_0x2d0cd0['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'](_0x56216e,_0x1ff232,_0x323988,_0x176173){const _0x1ca763=new _0x5118f7(_0x56216e);return _0x1ca763['label']=_0x1ff232,_0x1ca763['icon']=_0x323988,_0x1ca763['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x176173}}),_0x1ca763['on']('execute',()=>this['fire'](_0x176173)),_0x1ca763;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x26b13d=>{this['keystrokes']['listenTo'](_0x26b13d['element']),this['focusTracker']['add'](_0x26b13d['element']);}),this['keystrokes']['set']('esc',(_0xa7c7f2,_0xe24ba4)=>{this['fire']('cancel'),_0xe24ba4();});}}function At(_0x7dc2bc){return class extends _0x7dc2bc{['showConfirm'](_0x1fe048,_0x4f622a){return this['confirmView']=new Et(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x1fe048,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x4f622a['appendChild'](this['confirmView']['element']),_0x4f622a['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x4ce6ba,_0x37f2df,_0x226727)=>{_0x226727||_0x4f622a['classList']['remove']('ck-confirm-view-active');}),new Promise(_0xf44e78=>this['confirmView']['on']('submit',_0xf44e78));}['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(_0x57b700){let _0x121c38=0x0,_0x143a1d=0x0;for(const _0x5f0ee0 of Nt(_0x57b700))_0x121c38=(_0x121c38<<0x5)-_0x121c38+_0x5f0ee0,_0x121c38&=_0x121c38,[_0x121c38,_0x143a1d]=[_0x143a1d,_0x121c38];return Ot(_0x121c38)+Ot(_0x143a1d);}function*Tt(_0x257638){null==_0x257638||null==_0x257638?yield 0x12b9b0a1:0x0===_0x257638||!0x1===_0x257638?yield 0x0:0x1===_0x257638||0x1==_0x257638?yield 0x1:Array['isArray'](_0x257638)?yield*function*(_0x891fdc){for(const _0x3a3cd5 of _0x891fdc)yield*Tt(_0x3a3cd5);}(_0x257638):'object'==typeof _0x257638?yield*Nt(_0x257638):'string'==typeof _0x257638?yield*Pt(_0x257638):'number'==typeof _0x257638&&(yield _0x257638);}function*Nt(_0x5945db){if(yield Bt('{'),_0x5945db){const _0x154564=Object['keys'](_0x5945db)['sort']();for(const _0x6e3018 of _0x154564){yield*Pt(_0x6e3018),yield Bt(':');const _0x38de31=_0x5945db[_0x6e3018];yield*Tt(_0x38de31);}}yield Bt('}');}function*Pt(_0xc2c832){yield Bt('\x22');for(const _0x5719c0 of _0xc2c832)yield Bt(_0x5719c0);yield Bt('\x22');}function Bt(_0x42370f){return _0x42370f['charCodeAt'](0x0);}function Ot(_0x1659bc){return(_0x1659bc*=Math['sign'](_0x1659bc))['toString'](0x24);}const Dt=['root','roots','initialData','context','toolbar','rootsAttributes'],$t=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Lt(_0x54f70f,_0x546b80,_0x2ec8f3,_0x957ad1=[]){const _0x5762c5='string'==typeof _0x54f70f?_0x2ec8f3['get'](_0x54f70f)['constructor']:_0x54f70f['prototype']['constructor'];if(_0x546b80['has'](_0x5762c5))return _0x546b80['get'](_0x5762c5);_0x546b80['set'](_0x5762c5,!0x0);const _0xbed085=[...$t,..._0x957ad1]['map'](_0x53e185=>{if(_0x2ec8f3['has'](_0x53e185))return _0x2ec8f3['get'](_0x53e185)['constructor'];})['filter'](_0x38dcc6=>_0x38dcc6);if(_0x5762c5&&_0xbed085['includes'](_0x5762c5))return _0x546b80['set'](_0x5762c5,!0x1),!0x1;if(!_0x5762c5['requires'])return _0x546b80['set'](_0x5762c5,!0x0),!0x0;const _0x5e3cb9=_0x5762c5['requires']['every'](_0xb06e84=>Lt(_0xb06e84,_0x546b80,_0x2ec8f3,_0x957ad1));return _0x546b80['set'](_0x5762c5,_0x5e3cb9),_0x5e3cb9;}function Vt(_0x387afb,_0x1d6dea){const _0x4588cd={};for(const _0x5d68ce of _0x387afb['config']['names']())Dt['includes'](_0x5d68ce)||(_0x4588cd[_0x5d68ce]=_0x387afb['config']['get'](_0x5d68ce));const _0x556710=_0x4588cd['plugins']||[],_0x33ea67=_0x387afb['constructor']['builtinPlugins']||[],_0x179662=_0x556710['length']?_0x556710:_0x33ea67,_0x217f48=_0x4588cd['extraPlugins']||[];delete _0x4588cd['extraPlugins'];const _0x5816f1=_0x4588cd['removePlugins']||[];delete _0x4588cd['removePlugins'];const _0x3f42e9=_0x387afb['_context']['config']['get']('plugins')||[],_0x340dab=_0x179662['concat'](_0x217f48)['concat'](_0x3f42e9)['map'](_0x2bc8e2=>'string'==typeof _0x2bc8e2?_0x33ea67['find'](_0x43e211=>_0x43e211['pluginName']==_0x2bc8e2):_0x2bc8e2)['filter'](_0x5178a0=>!_0x5816f1['includes'](_0x5178a0)&&!_0x5816f1['includes'](_0x5178a0['pluginName'])),_0x45d43c=Array['from'](new Set(_0x340dab)),_0x5e4fe5=new Map();return _0x4588cd['plugins']=_0x45d43c['filter'](_0x277a22=>Lt(_0x277a22,_0x5e4fe5,_0x387afb['plugins'],_0x1d6dea)),_0x4588cd;}function Ut(_0x463793,_0x2df127){const _0x5c0107=[];_0x463793['document']['selection']['on']('change:range',()=>{const _0x4e28e7=function(_0x328878,_0x238ae4){const _0x3b816d=[];for(const _0x458976 of _0x328878['markers']){const _0x4d600f=_0x458976['getRange']();(_0x4d600f['containsPosition'](_0x238ae4)||_0x4d600f['start']['isEqual'](_0x238ae4)||_0x4d600f['end']['isEqual'](_0x238ae4))&&_0x3b816d['push'](_0x458976);}return _0x3b816d;}(_0x463793,_0x463793['document']['selection']['focus']),_0x31ce19=[],_0x44a523=[],_0x13045a=[];for(const _0x6acda2 of _0x5c0107)_0x4e28e7['includes'](_0x6acda2)||_0x31ce19['push'](_0x6acda2);for(const _0x262095 of _0x4e28e7)_0x5c0107['includes'](_0x262095)||_0x44a523['push'](_0x262095),_0x13045a['push'](_0x262095);(_0x31ce19['length']||_0x44a523['length'])&&_0x2df127({'left':_0x31ce19,'entered':_0x44a523}),_0x5c0107['length']=0x0,_0x5c0107['push'](..._0x13045a);});}const Rt='Ctrl+Shift+E';function Ft(_0x249b31,_0x547c0f){const _0x47d2d3=_0x249b31['element'];_0x249b31['keystrokes']['listenTo'](_0x47d2d3);for(const _0x52451a of _0x547c0f)Ht(_0x249b31,_0x52451a);_0x547c0f['on']('change',(_0xab9eb5,_0x52524f)=>{for(const _0x1f2894 of _0x52524f['removed'])zt(_0x249b31,_0x1f2894);for(const _0x2958c3 of Array['from'](_0x52524f['added'])['reverse']())Ht(_0x249b31,_0x2958c3);}),_0x249b31['keystrokes']['set']('enter',(_0x4dd913,_0x46777f)=>{_0x47d2d3===_0x4dd913['target']&&(_0x249b31['focusCycler']['focusFirst'](),_0x46777f());},{'filter':_0x29bf87=>_0x29bf87['target']===_0x47d2d3}),_0x249b31['keystrokes']['set']('esc',(_0x1d19be,_0x3e5138)=>{_0x47d2d3!==_0x1d19be['target']?_0x249b31['focus']():_0x249b31['fire']('escape'),_0x3e5138();}),_0x249b31['keystrokes']['set']('arrowdown',(_0xf18c86,_0x41334a)=>{_0x47d2d3===_0xf18c86['target']&&(_0x249b31['fire']('arrowdown'),_0x41334a());}),_0x249b31['keystrokes']['set']('arrowup',(_0x2db2cb,_0x20033d)=>{_0x47d2d3===_0x2db2cb['target']&&(_0x249b31['fire']('arrowup'),_0x20033d());});}function Ht(_0x1c582c,_0x4d9ed2){_0x4d9ed2['isRendered']&&(_0x1c582c['focusTracker']['add'](_0x4d9ed2['element']),_0x1c582c['keystrokes']['listenTo'](_0x4d9ed2['element']),_0x40d89c(_0x4d9ed2)&&function(_0x83b8d4,_0x4190b2){const _0x5075ff=_0x83b8d4['actions'],_0xdb3381=_0x4190b2['actions'];for(const _0x5bb5cc of Object['keys'](_0x5075ff))if(_0x5bb5cc in _0xdb3381&&_0x5075ff[_0x5bb5cc]!==_0xdb3381[_0x5bb5cc])return!0x1;return!0x0;}(_0x1c582c['focusCycler'],_0x4d9ed2['focusCycler'])&&_0x1c582c['focusCycler']['chain'](_0x4d9ed2['focusCycler']));}function zt(_0x226f94,_0x96aa9a){_0x226f94['focusTracker']['remove'](_0x96aa9a['element']),_0x226f94['keystrokes']['stopListening'](_0x96aa9a['element']),_0x40d89c(_0x96aa9a)&&_0x226f94['focusCycler']['unchain'](_0x96aa9a['focusCycler']);}const Wt='$elementId',jt='data-id';class Yt extends _0x2cb7e7{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x29f16e?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x4044e0,_0x1e6285)=>{_0x1e6285['on']('ready',()=>{this['_integrateEditor'](_0x1e6285);});});}get['editor'](){if(this['context']instanceof _0x29f16e)return this['context'];{const _0xa8487c=this['context']['editors']['first'];if(!_0xa8487c)throw new _0xe9d00d('documentcompare-no-editor',this);return _0xa8487c;}}['getDiff'](_0x1e3584,_0x12cb7d,_0x415d76={'anchor':'main','markDeletions':!0x1}){let _0x18f1c2,_0x2e1423;const _0x32a48f=this['editor'];if('string'==typeof _0x415d76['anchor']){const _0x46864b=_0x32a48f['model']['document']['getRoot'](_0x415d76['anchor']);if(!_0x46864b)throw new _0xe9d00d('documentcompare-compare-no-root',this,{'anchor':_0x415d76['anchor']});_0x18f1c2=_0x46864b,_0x2e1423=_0x32a48f['model']['createPositionAt'](_0x46864b,0x0);}else _0x18f1c2=_0x415d76['anchor']['clone'](),_0x2e1423=_0x415d76['anchor']['clone']();const _0x366511=_0x32a48f['data']['parse'](_0x1e3584,_0x18f1c2),_0xea25e8=_0x32a48f['data']['parse'](_0x12cb7d,_0x18f1c2);return new Jt(_0x366511,_0xea25e8,_0x32a48f,{'anchor':_0x2e1423,'markDeletions':_0x415d76['markDeletions']});}['isMarkedRemoveOperation'](_0x29fea5){return'marker'==_0x29fea5['type']&&_0x29fea5['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x89c9ac){_0x89c9ac['conversion']['for']('upcast')['add'](_0x22cfbd=>{_0x22cfbd['on']('element',(_0x642bf7,_0x520572,_0x2faeb9)=>{if(_0x520572['modelRange'])for(const _0xddb604 of _0x520572['modelRange']['getItems']({'shallow':!0x0})){if(_0xddb604['is']('$textProxy'))continue;const _0x580cda=_0x520572['viewItem']['getAttribute'](jt);_0x580cda&&_0x2faeb9['writer']['setAttribute'](Wt,_0x580cda,_0xddb604);}},{'priority':'lowest'});}),_0x89c9ac['model']['schema']['addAttributeCheck'](()=>!0x0,Wt);}}class Jt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x527839,_0x11cec5,_0xd29909,_0x3cac58){this['_editor']=_0xd29909,this['_markDeletions']=!!_0x3cac58['markDeletions'],this['_anchor']=_0x3cac58['anchor'];const _0x704aba=this['_tokenizeModel'](_0x527839),_0x34e803=this['_tokenizeModel'](_0x11cec5);this['_diffItems']=this['_diffModelTokens'](_0x704aba,_0x34e803),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x527839['markers'],_0x11cec5['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x29a684=this['_editor']['model']['document'],_0x4570a6=[];let _0x35f1e6=_0x29a684['version'];for(const _0x5588e9 of this['_operationsData'])switch(_0x5588e9['type']){case'attribute':{const _0x3595b5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']),_0x4ed532=_0x3595b5['getShiftedBy'](_0x5588e9['howMany']),_0x5e6b87=new _0x251037(_0x3595b5,_0x4ed532),_0x46744e=JSON['parse'](_0x5588e9['oldValue']),_0x49b77c=JSON['parse'](_0x5588e9['newValue']);_0x4570a6['push'](new _0x158898(_0x5e6b87,_0x5588e9['key'],_0x46744e,_0x49b77c,_0x35f1e6++));break;}case'insert':{const _0x22223c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']),_0x30f283=this['_makeModelFromTokens'](_0x5588e9['tokens']);_0x4570a6['push'](new _0x5026ae(_0x22223c,_0x30f283,_0x35f1e6++));break;}case'remove':{const _0x3dfffd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']),_0x39d0a3=new _0x26ea7f(_0x29a684['graveyard'],[0x0]);_0x4570a6['push'](new _0x480534(_0x3dfffd,_0x5588e9['howMany'],_0x39d0a3,_0x35f1e6++));break;}case'rename':{const _0x30fd97=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']);_0x4570a6['push'](new _0x43d6ce(_0x30fd97,_0x5588e9['oldName'],_0x5588e9['newName'],_0x35f1e6++));break;}case'split':{const _0x2b4de3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']),_0xacc5aa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['path']['slice'](0x0,-0x1));_0xacc5aa['offset']++,_0x4570a6['push'](new _0x1c3130(_0x2b4de3,Number['NEGATIVE_INFINITY'],_0xacc5aa,null,_0x35f1e6++));break;}case'merge':{const _0x4709ce=_0x5588e9['path']['slice'](),_0x20de46=_0x4709ce['slice'](0x0,-0x1);_0x20de46[_0x20de46['length']-0x1]++,_0x20de46['push'](0x0);const _0x923992=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x20de46),_0x4ff990=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4709ce),_0x480ca2=new _0x26ea7f(_0x29a684['graveyard'],[0x0]);_0x4570a6['push'](new _0x3f89d9(_0x923992,Number['NEGATIVE_INFINITY'],_0x4ff990,_0x480ca2,_0x35f1e6++));break;}case'marker':case'markedRemove':{let _0x4a09c4=null;if(_0x5588e9['range']){const _0x125748=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['range']['start']),_0x42c3b1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['range']['end']);_0x4a09c4=new _0x251037(_0x125748,_0x42c3b1);}const _0x54187c='marker'==_0x5588e9['type']?_0x5588e9['name']:'$markedRemove:'+_0x5b45c5();_0x4570a6['push'](new _0x118df8(_0x54187c,null,_0x4a09c4,_0x29a684['model']['markers'],!0x0,_0x35f1e6++));break;}case'unwrap':{const _0x14ebc5=_0x5588e9['path']['slice']();_0x14ebc5['push'](0x0);const _0x273a27=_0x5588e9['path']['slice'](),_0x45edfa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x14ebc5),_0xe0d953=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x273a27),_0xe2f84a=new _0x26ea7f(_0x29a684['graveyard'],[0x0]);_0x4570a6['push'](new _0x480534(_0x45edfa,_0x5588e9['howMany'],_0xe0d953,_0x35f1e6++)),_0x4570a6['push'](new _0x480534(_0xe0d953['getShiftedBy'](_0x5588e9['howMany']),0x1,_0xe2f84a,_0x35f1e6++));break;}case'wrap':{const _0x301123=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['range']['start']),_0x1d10fd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5588e9['range']['end']),_0x4ca959=_0x5588e9['token']['element']['_clone'](!0x1),_0x2eaeb8=_0x5588e9['range']['end']['slice']();_0x2eaeb8['push'](0x0);const _0xe65a8c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2eaeb8);_0x4570a6['push'](new _0x5026ae(_0x1d10fd,_0x4ca959,_0x35f1e6++)),_0x4570a6['push'](new _0x480534(_0x301123,_0x1d10fd['offset']-_0x301123['offset'],_0xe65a8c,_0x35f1e6++));break;}}return _0x4570a6;}['_tokenizeModel'](_0x4fa28c){const _0x12fd0d=[],_0x3dcfea=_0x251037['_createIn'](_0x4fa28c),_0x778108=new _0x430b2d({'boundaries':_0x3dcfea});let _0x3cf1f8='',_0xb31125=null;const _0x57cdd5=[''],_0x544b8b=new Map();for(const _0x45159d of _0x778108)if('elementStart'==_0x45159d['type']||'elementEnd'==_0x45159d['type']){let _0x1686c6=_0x57cdd5[0x0];''!==_0x3cf1f8&&(_0x12fd0d['push'](...this['_makeTokensFromTextByWords'](_0x3cf1f8,_0xb31125,_0x1686c6)),_0x3cf1f8='');const _0x1a4450=_0x45159d['item'];let _0x20268b;_0x1a4450['getAttribute'](Wt)?_0x20268b=_0x1a4450['getAttribute'](Wt):'elementStart'==_0x45159d['type']?(_0x20268b=qt(_0x1a4450),_0x544b8b['set'](_0x1a4450,_0x20268b)):_0x20268b=_0x544b8b['get'](_0x1a4450);const _0x5d82cc=this['_getElementCategory'](_0x1a4450);'solid'==_0x5d82cc&&('elementStart'==_0x45159d['type']?(_0x1686c6=_0x20268b,_0x57cdd5['unshift'](_0x1686c6)):_0x57cdd5['shift']());const _0x5e73e4={'type':'element','element':_0x1a4450,'elementId':_0x20268b,'category':_0x5d82cc,'isStart':'elementStart'==_0x45159d['type'],'limitId':_0x1686c6};_0x12fd0d['push'](_0x5e73e4);}else''==_0x3cf1f8&&(_0xb31125=_0x45159d['previousPosition']['clone']()),_0x3cf1f8+=_0x45159d['item']['data'];return''!==_0x3cf1f8&&_0x12fd0d['push'](...this['_makeTokensFromTextByWords'](_0x3cf1f8,_0xb31125,_0x57cdd5[0x0])),_0x12fd0d;}['_makeTokensFromTextByWords'](_0x29744b,_0x2c9df4,_0x1430e0){const _0x49209=_0x29744b['matchAll'](/(\s)/g),_0xbcfe1a=Array['from'](_0x49209)['map'](_0x508564=>_0x508564['index']);_0xbcfe1a['push'](_0x29744b['length']),0x0==_0xbcfe1a[0x0]&&_0xbcfe1a['shift']();const _0x1d23f9=[],_0x220192=_0x2c9df4['parent'];let _0x19ed2f=0x0,_0x4e8d70=_0x2c9df4['offset'];for(let _0x3122ce=0x0;_0x3122ce<_0xbcfe1a['length'];_0x3122ce++)_0x1d23f9['push']({'type':'text','data':_0x29744b['slice'](_0x19ed2f,_0xbcfe1a[_0x3122ce]),'parent':_0x220192,'offset':_0x4e8d70,'limitId':_0x1430e0}),_0x19ed2f=_0xbcfe1a[_0x3122ce],_0x4e8d70=_0x2c9df4['offset']+_0xbcfe1a[_0x3122ce];return _0x1d23f9;}['_getElementCategory'](_0x256e41){const _0x5871f4=this['_editor']['model']['schema'];return _0x5871f4['isLimit'](_0x256e41)||_0x5871f4['isContent'](_0x256e41)||_0x5871f4['isInline'](_0x256e41)?'solid':_0x5871f4['isBlock'](_0x256e41)?'block':'container';}['_diffModelTokens'](_0x4705e1,_0x4795ce){const _0x364424=_0xd681d4(_0x4705e1,_0x4795ce,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0x364424);const _0x4d38ea=_0x364424['flatMap'](_0x2234b3=>{const _0x7e31d0=_0x2234b3['added']?'added':_0x2234b3['removed']?'removed':'unchanged';return _0x2234b3['value']['map'](_0x2224ba=>({'token':_0x2224ba,'change':_0x7e31d0}));});let _0x3c2810=0x0;for(const _0x3e7820 of _0x4d38ea)'added'!=_0x3e7820['change']&&('unchanged'==_0x3e7820['change']&&(_0x3e7820['before']=_0x4705e1[_0x3c2810]),_0x3c2810++);return _0x4d38ea;}['_handleUnclosedBlockOpeningTags'](_0x5c4736){for(let _0x4e63d6=0x0;_0x4e63d6<_0x5c4736['length']-0x1;_0x4e63d6++)if(_0x5c4736[_0x4e63d6]['removed']&&_0x5c4736[_0x4e63d6+0x1]['added']){const _0x38b573=this['_findUnclosedBlockOpeningToken'](_0x5c4736[_0x4e63d6]['value']);if(null!==_0x38b573){const _0x3bbb85=this['_findUnclosedBlockOpeningToken'](_0x5c4736[_0x4e63d6+0x1]['value']),_0x3c582c=_0x5c4736[_0x4e63d6]['value']['splice'](_0x38b573),_0x4d1fcf=_0x5c4736[_0x4e63d6+0x1]['value']['splice'](_0x3bbb85),_0x58828a=[_0x4d1fcf['shift']()];_0x3c582c['shift']();const _0x4a9697={'value':_0x3c582c,'removed':!0x0},_0x4bcaef={'value':_0x4d1fcf,'added':!0x0},_0xade87f={'value':_0x58828a};_0x5c4736['splice'](_0x4e63d6+0x2,0x0,_0xade87f,_0x4a9697,_0x4bcaef);}}}['_findUnclosedBlockOpeningToken'](_0x25cb1d){let _0x3953e3=0x0,_0x471f0b=-0x1;for(let _0x47050b=0x0;_0x47050b<_0x25cb1d['length'];_0x47050b++){const _0x8a2d1d=_0x25cb1d[_0x47050b];'element'==_0x8a2d1d['type']&&'block'==_0x8a2d1d['category']&&(_0x3953e3+=_0x8a2d1d['isStart']?0x1:-0x1,_0x8a2d1d['isStart']&&(_0x471f0b=_0x47050b));}return 0x0===_0x3953e3?null:_0x471f0b;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x51a514=0x0;_0x51a514<this['_diffItems']['length'];_0x51a514++){const _0x1571fd=this['_diffItems'][_0x51a514]['change'],_0x51e3b5=[];_0x51e3b5['push'](this['_diffItems'][_0x51a514]);let _0x3364ac=_0x51a514+0x1;for(;this['_diffItems'][_0x3364ac]&&this['_diffItems'][_0x3364ac]['change']==_0x1571fd;)_0x51e3b5['push'](this['_diffItems'][_0x3364ac]),_0x3364ac++,_0x51a514++;const _0x158f52=_0x51e3b5['map'](_0x1c4e81=>_0x1c4e81['token']);if('unchanged'==_0x1571fd)_0x51e3b5['map'](_0x282ba3=>_0x282ba3['before'])['forEach'](_0x150c19=>this['_traverseOverItem'](_0x150c19));else{if('removed'==_0x1571fd){if(this['_markDeletions']){const _0x5615e7=this['_path']['slice']();_0x158f52['forEach'](_0x1fc12c=>this['_traverseOverItem'](_0x1fc12c));const _0x7a6466=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x5615e7,'end':_0x7a6466}});}else this['_handleChanged'](_0x158f52,!0x0,this['_path']['slice']());}else{const _0x59477c=_0x158f52['filter'](_0x4eae95=>'element'!=_0x4eae95['type']||'container'!=_0x4eae95['category']);this['_handleChanged'](_0x59477c,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xd6f052=0x0;_0xd6f052<this['_diffItems']['length'];_0xd6f052++){const _0x3ab234=this['_diffItems'][_0xd6f052]['change'],_0x28c8c8=[];_0x28c8c8['push'](this['_diffItems'][_0xd6f052]);let _0x566559=_0xd6f052+0x1;for(;this['_diffItems'][_0x566559]&&this['_diffItems'][_0x566559]['change']==_0x3ab234;)_0x28c8c8['push'](this['_diffItems'][_0x566559]),_0x566559++,_0xd6f052++;const _0xc27b91=_0x28c8c8['map'](_0x5be39f=>_0x5be39f['token']);if('unchanged'==_0x3ab234){const _0x24678d=_0x28c8c8['map'](_0x45b360=>_0x45b360['before']);this['_handleUnchanged'](_0x24678d,_0xc27b91);}else('removed'!=_0x3ab234||this['_markDeletions'])&&_0xc27b91['forEach'](_0x336103=>{this['_traverseOverItem'](_0x336103);});}}['_calculateMarkersOperationsData'](_0x4dc842,_0x1527bb){const _0x51961f={};for(const [_0x5dad21]of _0x4dc842)_0x51961f[_0x5dad21]=null;for(const [_0x45954c,_0x39f8d7]of _0x1527bb)_0x51961f[_0x45954c]=_0x39f8d7;const _0x1a2e25=Object['entries'](_0x51961f)['map'](([_0x1d41d3,_0x836c52])=>({'type':'marker','name':_0x1d41d3,'range':_0x836c52?{'start':_0x836c52['start']['path']['slice'](),'end':_0x836c52['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x1a2e25);}['_handleUnwraps'](){const _0x466512=new Map(),_0x13e1d0=[],_0x391384=[0x0];let _0x13e0aa=this['_diffItems']['length']+0x1;for(let _0x2b670f=this['_diffItems']['length']-0x1;_0x2b670f>=0x0;_0x2b670f--){const {token:_0x2f0b6b,before:_0x22d1f8,change:_0x57f057}=this['_diffItems'][_0x2b670f];if('removed'!=_0x57f057&&(_0x13e0aa=_0x2b670f),'element'!=_0x2f0b6b['type']||'container'!=_0x2f0b6b['category']||'added'==_0x57f057)continue;const _0x17af41=_0x22d1f8?_0x22d1f8['element']:_0x2f0b6b['element'];if(_0x2f0b6b['isStart']){const _0x1deb25=_0x466512['get'](_0x17af41),_0x26bbb5=this['_diffItems'][_0x1deb25];('removed'==_0x57f057||'removed'==_0x26bbb5['change'])&&_0x13e0aa<_0x1deb25&&(this['_operationsData']['push']({'type':'unwrap','path':_0x17af41['getPath'](),'howMany':_0x17af41['maxOffset']+_0x391384[0x0]}),_0x391384['shift'](),_0x391384[0x0]+=_0x17af41['maxOffset']-0x1,_0x13e1d0['push'](_0x2b670f),_0x13e1d0['push'](_0x1deb25));}else _0x466512['set'](_0x17af41,_0x2b670f),_0x391384['unshift'](0x0);}_0x13e1d0['sort']((_0x1245cd,_0x328a0d)=>_0x328a0d-_0x1245cd),_0x13e1d0['forEach'](_0x436b9c=>{const _0x23e61b=this['_diffItems'][_0x436b9c];'removed'==_0x23e61b['change']?this['_diffItems']['splice'](_0x436b9c,0x1):(_0x23e61b['change']='added',delete _0x23e61b['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x3cf075=[];for(let _0x1db651=0x0;_0x1db651<this['_diffItems']['length'];_0x1db651++){const {change:_0x1683a9,token:_0x4b9500}=this['_diffItems'][_0x1db651];if('added'==_0x1683a9&&'element'==_0x4b9500['type']&&'container'==_0x4b9500['category']){if(_0x4b9500['isStart'])_0x3cf075['push'](this['_path']['slice']());else{if(!_0x4b9500['isStart']){const _0x4b4e2d=_0x3cf075['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x4b4e2d,'end':this['_path']['slice']()},'token':_0x4b9500}),this['_path'][this['_path']['length']-0x1]=_0x4b4e2d[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x1683a9||this['_markDeletions'])&&this['_traverseOverItem'](_0x4b9500);}}['_handleUnchanged'](_0x459e62,_0x556fb6){for(let _0x37f0cb=0x0;_0x37f0cb<_0x459e62['length'];_0x37f0cb++){const _0x5b6f80=_0x459e62[_0x37f0cb];if('element'==_0x5b6f80['type']&&_0x5b6f80['isStart']){const _0x437993=_0x556fb6[_0x37f0cb];'block'==_0x5b6f80['category']&&this['_handleElementRename'](_0x5b6f80['element'],_0x437993['element'],this['_path']),this['_handleElementAttributeChanges'](_0x5b6f80['element'],_0x437993['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x437993);}else{if('element'!=_0x5b6f80['type']||_0x5b6f80['isStart']){if('text'==_0x5b6f80['type']){const _0x4f7f68=this['_path']['slice'](),_0x497291=[],_0x4da829=[];for(;_0x459e62[_0x37f0cb]&&'text'==_0x459e62[_0x37f0cb]['type'];)_0x497291['push'](_0x459e62[_0x37f0cb]),_0x4da829['push'](_0x556fb6[_0x37f0cb]),this['_path'][this['_path']['length']-0x1]+=_0x459e62[_0x37f0cb]['data']['length'],_0x37f0cb++;_0x37f0cb--,this['_handleTextAttributeChanges'](_0x497291,_0x4da829,_0x4f7f68);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x40ea5d,_0x572db3,_0x425e0a){const _0xf023b=[],_0x49c510=[],_0x472808=_0x425e0a['slice']();for(let _0x4ca772=0x0;_0x4ca772<_0x40ea5d['length'];_0x4ca772++){const _0x3835d7=_0x40ea5d[_0x4ca772],_0x2947f5=_0x425e0a['slice']();if('element'!=_0x3835d7['type']||_0x3835d7['isStart'])'element'==_0x3835d7['type']&&_0x3835d7['isStart']?(_0x425e0a['push'](0x0),_0x572db3||this['_parents']['push'](_0x3835d7),_0x49c510['push']({'before':_0x2947f5,'after':_0x425e0a['slice'](),'index':_0x4ca772})):_0x425e0a[_0x425e0a['length']-0x1]+=_0x3835d7['data']['length'];else{let _0x16c459;_0x425e0a['pop'](),_0x425e0a[_0x425e0a['length']-0x1]++,_0x16c459=_0x572db3?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x49c510['length']?_0x49c510['pop']():_0xf023b['push']({'before':_0x2947f5,'after':_0x425e0a['slice'](),'index':_0x4ca772,'related':_0x16c459});}}if(_0x49c510['length']!==_0xf023b['length'])throw new _0xe9d00d('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x40ea5d,'isRemove':_0x572db3});const _0x5bf7cc=[{'after':_0x472808['slice'](),'index':-0x1},..._0xf023b,..._0x49c510,{'before':_0x425e0a['slice'](),'index':_0x40ea5d['length']}];if(_0x572db3){for(let _0x5b539a=_0x5bf7cc['length']-0x1;_0x5b539a>=0x1;_0x5b539a--){const _0x27e011=_0x5bf7cc[_0x5b539a-0x1]['after'],_0x167a20=_0x5bf7cc[_0x5b539a]['before'],_0x21d392=_0x167a20[_0x167a20['length']-0x1]-_0x27e011[_0x27e011['length']-0x1];_0x21d392&&(this['_operationsData']['push']({'type':'remove','path':_0x27e011,'howMany':_0x21d392}),_0x167a20[_0x167a20['length']-0x1]-=_0x21d392);}for(const {before:_0x5b50e1}of _0xf023b)this['_operationsData']['push']({'type':'merge','path':_0x5b50e1});}else for(let _0x336279=0x0;_0x336279<_0x5bf7cc['length']-0x1;_0x336279++){const _0x4a3b6f=_0x5bf7cc[_0x336279]['after'],_0x1e29c4=_0x5bf7cc[_0x336279+0x1]['before'],_0x27f58a=_0x5bf7cc[_0x336279]['index']+0x1,_0x58184c=_0x5bf7cc[_0x336279+0x1]['index'];if(_0x27f58a!==_0x58184c&&this['_operationsData']['push']({'type':'insert','path':_0x4a3b6f,'tokens':_0x40ea5d['slice'](_0x27f58a,_0x58184c)}),_0x336279<_0xf023b['length']){this['_operationsData']['push']({'type':'split','path':_0x1e29c4});const _0xaf6303=_0x40ea5d[_0x49c510[_0x49c510['length']-0x1-_0x336279]['index']],_0x28689b=_0xf023b[_0x336279]['after'],_0x116933=_0xf023b[_0x336279]['related']['element'];this['_handleElementRename'](_0x116933,_0xaf6303['element'],_0x28689b),this['_handleElementAttributeChanges'](_0x116933,_0xaf6303['element'],_0x28689b);}}}['_traverseOverItem'](_0x211d82){'element'==_0x211d82['type']&&_0x211d82['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x211d82)):'element'!=_0x211d82['type']||_0x211d82['isStart']?'text'==_0x211d82['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x211d82['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x5ec664,_0x326cbd,_0x1fa7e4){_0x5ec664['name']!=_0x326cbd['name']&&this['_operationsData']['push']({'type':'rename','path':_0x1fa7e4['slice'](),'oldName':_0x5ec664['name'],'newName':_0x326cbd['name']});}['_handleElementAttributeChanges'](_0x3dcc25,_0x58f6fb,_0x423a91){const _0x10cee4=this['_getAttributeChanges'](_0x3dcc25['getAttributes'](),_0x58f6fb['getAttributes']());for(const _0x1e9765 in _0x10cee4){const {oldValue:_0x293b25,newValue:_0x1f7be5}=_0x10cee4[_0x1e9765];this['_operationsData']['push']({'type':'attribute','path':_0x423a91['slice'](),'howMany':0x1,'key':_0x1e9765,'oldValue':_0x293b25,'newValue':_0x1f7be5});}}['_handleTextAttributeChanges'](_0x65455e,_0x31eda7,_0x40b686){const _0x32d47b=this['_operationsData'],_0x2a0ef5=_0x65455e[0x0]['parent'],_0x3b370c=_0x65455e[0x0]['offset'],_0x477a4c=_0x31eda7[0x0]['parent'],_0x58c983=_0x31eda7[0x0]['offset'],_0x2a44aa=_0x65455e['reduce']((_0x26d9f3,_0x2ab27e)=>_0x26d9f3+_0x2ab27e['data']['length'],0x0),_0x3ed118=this['_getAttrsForOffsets'](_0x2a0ef5,_0x3b370c,_0x2a44aa),_0x20726b=this['_getAttrsForOffsets'](_0x477a4c,_0x58c983,_0x2a44aa),_0x41d0c6={};for(let _0x1e651c=0x0;_0x1e651c<_0x2a44aa;_0x1e651c++){const _0x26dde4=_0x3ed118[_0x3b370c+_0x1e651c],_0x569a37=_0x20726b[_0x58c983+_0x1e651c],_0x3f30fd=this['_getAttributeChanges'](_0x26dde4,_0x569a37);for(const _0x176e39 in _0x41d0c6)_0x3f30fd[_0x176e39]||_0xc89073(_0x176e39);for(const _0x3d8cc3 in _0x3f30fd){const {oldValue:_0x2c06e0,newValue:_0x1fc1ca}=_0x3f30fd[_0x3d8cc3],_0x39c3ea=_0x41d0c6[_0x3d8cc3];_0x39c3ea?_0x39c3ea['oldValue']==_0x2c06e0&&_0x39c3ea['newValue']==_0x1fc1ca?_0x39c3ea['length']++:(_0xc89073(_0x3d8cc3),_0x41d0c6[_0x3d8cc3]={'oldValue':_0x2c06e0,'newValue':_0x1fc1ca,'start':_0x1e651c,'length':0x1}):_0x41d0c6[_0x3d8cc3]={'oldValue':_0x2c06e0,'newValue':_0x1fc1ca,'start':_0x1e651c,'length':0x1};}}for(const _0x1056e8 in _0x41d0c6)_0xc89073(_0x1056e8);function _0xc89073(_0x466d1d){const _0x54078c=_0x41d0c6[_0x466d1d],_0x5344a6=_0x40b686['slice']();_0x5344a6[_0x5344a6['length']-0x1]+=_0x54078c['start'],_0x32d47b['push']({'type':'attribute','path':_0x5344a6,'howMany':_0x54078c['length'],'key':_0x466d1d,'oldValue':_0x54078c['oldValue'],'newValue':_0x54078c['newValue']}),delete _0x41d0c6[_0x466d1d];}}['_getAttributeChanges'](_0x338338,_0x1ab3d6){const _0x451071={};for(const [_0x2eb4e4,_0x4d9884]of _0x338338)_0x451071[_0x2eb4e4]={'oldValue':JSON['stringify'](_0x4d9884),'newValue':'null'};for(const [_0xf3d0c6,_0x298c0a]of _0x1ab3d6){const _0x19301c=JSON['stringify'](_0x298c0a);_0x451071[_0xf3d0c6]?_0x451071[_0xf3d0c6]['oldValue']==_0x19301c?delete _0x451071[_0xf3d0c6]:_0x451071[_0xf3d0c6]['newValue']=_0x19301c:_0x451071[_0xf3d0c6]={'oldValue':'null','newValue':_0x19301c};}return delete _0x451071[Wt],_0x451071;}['_getAttrsForOffsets'](_0x282937,_0xe8797a,_0x324888){const _0x56112c=new Array(_0xe8797a+_0x324888);let _0x5c5951=_0x282937['getChildAtOffset'](_0xe8797a),_0x119983=_0x5c5951['startOffset'];for(;_0x5c5951&&_0x119983<_0xe8797a+_0x324888;){const _0x11ff39=Array['from'](_0x5c5951['getAttributes']());_0x56112c['fill'](_0x11ff39,_0x119983,_0x119983+_0x5c5951['offsetSize']),_0x119983+=_0x5c5951['offsetSize'],_0x5c5951=_0x5c5951['nextSibling'];}return _0x56112c;}['_getPositionFromAnchorAndPath'](_0x77a50e,_0xbd26c9){const _0x1d5c9b=[..._0x77a50e['path']['slice'](0x0,-0x1),_0x77a50e['offset']+_0xbd26c9[0x0],..._0xbd26c9['slice'](0x1)];return new _0x26ea7f(_0x77a50e['root'],_0x1d5c9b);}['_makeModelFromTokens'](_0x5e7812){const _0x55cfed=[];let _0x3d75f7=null;for(const _0x5e3be8 of _0x5e7812)if('element'!=_0x5e3be8['type']||_0x5e3be8['isStart']||_0x3d75f7!=_0x5e3be8['element']){if(!_0x3d75f7){if('text'==_0x5e3be8['type']){const _0x467fc4=_0x26ea7f['_createAt'](_0x5e3be8['parent'],_0x5e3be8['offset']),_0x138127=_0x251037['_createFromPositionAndShift'](_0x467fc4,_0x5e3be8['data']['length']),_0x192c88=Array['from'](_0x138127['getItems']())['map'](_0xb0d6a6=>new _0x5ce25e(_0xb0d6a6['data'],_0xb0d6a6['getAttributes']()));_0x55cfed['push'](..._0x192c88);}else{_0x3d75f7=_0x5e3be8['element'];const _0x3a4cc3=_0x5e3be8['element']['_clone'](!0x0);_0x3a4cc3['_removeAttribute'](Wt);for(const _0x27f9a2 of this['_editor']['model']['createRangeIn'](_0x3a4cc3)['getItems']())_0x27f9a2['is']('element')&&_0x27f9a2['_removeAttribute'](Wt);_0x55cfed['push'](_0x3a4cc3);}}}else _0x3d75f7=null;return _0x55cfed;}}function Kt(_0x5a74b8,_0x7a8dc7){return _0x5a74b8['type']===_0x7a8dc7['type']&&(_0x5a74b8['limitId']===_0x7a8dc7['limitId']&&('text'==_0x5a74b8['type']?_0x5a74b8['data']==_0x7a8dc7['data']:function(_0x3bda3a,_0x3bcef8){if(_0x3bda3a['isStart']!=_0x3bcef8['isStart'])return!0x1;if(_0x3bda3a['isStart']&&_0x3bda3a['elementId']!=_0x3bcef8['elementId'])return!0x1;if(_0x3bda3a['category']!=_0x3bcef8['category'])return!0x1;if('block'==_0x3bda3a['category'])return!0x0;if('container'==_0x3bda3a['category']&&_0x3bda3a['elementId']!=_0x3bcef8['elementId'])return!0x1;return _0x3bda3a['element']['name']==_0x3bcef8['element']['name'];}(_0x5a74b8,_0x7a8dc7)));}function qt(_0x1699c9){return Mt({'name':_0x1699c9['name'],...Object['fromEntries'](_0x1699c9['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};
|
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':_0x169803=>0x1!=_0x169803}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x23489d=>{const {af:{dictionary:_0x2b61dd,getPluralForm:_0x532984}}={'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':_0x3b8ad9=>0x1!=_0x3b8ad9}};_0x23489d['af']||={'dictionary':{},'getPluralForm':null},_0x23489d['af']['dictionary']=Object['assign'](_0x23489d['af']['dictionary'],_0x2b61dd),_0x23489d['af']['getPluralForm']=_0x532984;})(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':_0x22a6c8=>0x0==_0x22a6c8?0x0:0x1==_0x22a6c8?0x1:0x2==_0x22a6c8?0x2:_0x22a6c8%0x64>=0x3&&_0x22a6c8%0x64<=0xa?0x3:_0x22a6c8%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x9cc1bd=>{const {ar:{dictionary:_0x5cf027,getPluralForm:_0xf42ddc}}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x45d758=>0x0==_0x45d758?0x0:0x1==_0x45d758?0x1:0x2==_0x45d758?0x2:_0x45d758%0x64>=0x3&&_0x45d758%0x64<=0xa?0x3:_0x45d758%0x64>=0xb?0x4:0x5}};_0x9cc1bd['ar']||={'dictionary':{},'getPluralForm':null},_0x9cc1bd['ar']['dictionary']=Object['assign'](_0x9cc1bd['ar']['dictionary'],_0x5cf027),_0x9cc1bd['ar']['getPluralForm']=_0xf42ddc;})(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':_0x259000=>0x1!=_0x259000}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xba26b3=>{const {ast:{dictionary:_0x236a0f,getPluralForm:_0x4e1aaa}}={'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x571181=>0x1!=_0x571181}};_0xba26b3['ast']||={'dictionary':{},'getPluralForm':null},_0xba26b3['ast']['dictionary']=Object['assign'](_0xba26b3['ast']['dictionary'],_0x236a0f),_0xba26b3['ast']['getPluralForm']=_0x4e1aaa;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x3dc2be=>0x1!=_0x3dc2be}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1ddd6d=>{const {az:{dictionary:_0x1c0c47,getPluralForm:_0x35d7ca}}={'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x896cb7=>0x1!=_0x896cb7}};_0x1ddd6d['az']||={'dictionary':{},'getPluralForm':null},_0x1ddd6d['az']['dictionary']=Object['assign'](_0x1ddd6d['az']['dictionary'],_0x1c0c47),_0x1ddd6d['az']['getPluralForm']=_0x35d7ca;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x9e0f61=>_0x9e0f61%0xa==0x1&&_0x9e0f61%0x64!=0xb?0x0:_0x9e0f61%0xa>=0x2&&_0x9e0f61%0xa<=0x4&&(_0x9e0f61%0x64<0xa||_0x9e0f61%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x374994=>{const {be:{dictionary:_0x545b0b,getPluralForm:_0x3151f1}}={'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x4156c0=>_0x4156c0%0xa==0x1&&_0x4156c0%0x64!=0xb?0x0:_0x4156c0%0xa>=0x2&&_0x4156c0%0xa<=0x4&&(_0x4156c0%0x64<0xa||_0x4156c0%0x64>=0x14)?0x1:0x2}};_0x374994['be']||={'dictionary':{},'getPluralForm':null},_0x374994['be']['dictionary']=Object['assign'](_0x374994['be']['dictionary'],_0x545b0b),_0x374994['be']['getPluralForm']=_0x3151f1;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':_0xaf4c9d=>0x1!=_0xaf4c9d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x120c2e=>{const {bg:{dictionary:_0x47859c,getPluralForm:_0x360a73}}={'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':_0x242790=>0x1!=_0x242790}};_0x120c2e['bg']||={'dictionary':{},'getPluralForm':null},_0x120c2e['bg']['dictionary']=Object['assign'](_0x120c2e['bg']['dictionary'],_0x47859c),_0x120c2e['bg']['getPluralForm']=_0x360a73;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Anonymous':'নামহীন','Yes':'হ্যাঁ','No':'না','Are\x20you\x20sure?':'আপনি\x20কি\x20নিশ্চিত?','Today':'আজ','Yesterday':'গতকাল','Last':'সর্বশেষ','Monday':'সোমবার','Tuesday':'মঙ্গলবার','Wednesday':'বুধবার','Thursday':'বৃহস্পতিবার','Friday':'শুক্রবার','Saturday':'শনিবার','Sunday':'রবিবার'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Anonymous':'নামহীন','Yes':'হ্যাঁ','No':'না','Are\x20you\x20sure?':'আপনি\x20কি\x20নিশ্চিত?','Today':'আজ','Yesterday':'গতকাল','Last':'সর্বশেষ','Monday':'সোমবার','Tuesday':'মঙ্গলবার','Wednesday':'বুধবার','Thursday':'বৃহস্পতিবার','Friday':'শুক্রবার','Saturday':'শনিবার','Sunday':'রবিবার'},'getPluralForm':_0x434547=>0x1!=_0x434547}};
|