@ckeditor/ckeditor5-comments 44.2.0-alpha.13 → 44.2.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,12 +20,12 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x213630,icons as _0x367246,ContextPlugin as _0x2202fd,PendingActions as ht,Command as _0x4ef206,Plugin as _0x399bf5,Context as _0x2badc3}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1c8171,uid as _0x567062,KeystrokeHandler as jt,FocusTracker as _0x44b40c,diff as _0x4e25ba,Collection as _0x3dbdfa,Rect as _0x38f653,CKEditorError as _0x18900f,first as _0xee77ec,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x2a1702,keyCodes as _0xdb3ba0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x343769,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x44c80b,ConfirmMixin as ti,LateFocusButtonView as _0x1f382a,trimHtml as _0x383a3e,LateFocusDropdownButtonView as _0x2133b5,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x5ccfe8}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x107122}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x2060e4,ViewCollection as _0xc86170,createDropdown as _0x105978,ListView as _0x554a3c,focusChildOnDropdownOpen as _0x1e9093,ListItemView as _0x38638f,MenuBarMenuListItemButtonView as _0x234f00,BodyCollection as _0x55167b,BalloonPanelView as _0x29e13a,ContextualBalloon as _0x17d05f,Dialog as _0x5e7835,DialogViewPosition as _0x31eced}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x1b0633}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x2b3754}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x4ee768}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x1c8171(){['model'];['view'];constructor(_0x3b8022,_0x3ddfea){super(),this['model']=_0x3b8022,this['model']['_isAttached']=!0x0,this['view']=_0x3ddfea,this['listenTo'](_0x3ddfea,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x3ddfea,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x3ddfea,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x3ddfea,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x3ddfea,'addComment',(_0x5b470e,_0x29d264)=>this['addComment'](_0x29d264)),this['listenTo'](_0x3ddfea,'updateComment',(_0x15a3c4,_0x13bb94,_0x57c526)=>this['updateComment'](_0x13bb94,_0x57c526)),this['listenTo'](_0x3ddfea,'removeComment',(_0x22f7e6,_0x59cfc0)=>this['removeComment'](_0x59cfc0));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x12391f){this['model']['addComment']({'content':_0x12391f,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x335ba5,_0x573145){this['model']['getComment'](_0x335ba5)['update']({'content':_0x573145});}['removeComment'](_0x210743){this['model']['getComment'](_0x210743)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0xc2afa4,_0x4cbbac,_0x43c9eb){const t=_0xc2afa4['t'];switch(_0x4cbbac){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x43c9eb);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x43c9eb);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x43c9eb);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x43c9eb);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x43c9eb);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x43c9eb);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x43c9eb);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x43c9eb);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Xt extends Yt{['main'];['editable'];constructor(_0x29596c,_0x461618){super(_0x29596c);const _0x40f8b6=_0x567062();this['main']=this['createCollection'](),this['editable']=new $t(_0x29596c,_0x461618,void 0x0,{'label':()=>S(_0x29596c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x29596c['uiLanguageDirection'],'lang':_0x29596c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x40f8b6},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Vt{['view'];constructor(_0x26df81){super(_0x26df81),this['view']=new Xt(_0x26df81['locale'],_0x26df81['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1f2f86=this['editor']['editing']['view'],_0x29ab0f=this['view']['editable'],_0x59b069=_0x1f2f86['document']['getRoot']();_0x29ab0f['name']=_0x59b069['rootName'],this['view']['render']();const _0x110e8d=_0x29ab0f['element'];this['setEditableElement'](_0x29ab0f['name'],_0x110e8d),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1f2f86['attachDomRoot'](_0x110e8d),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
- _0x1c8171(_0x213630){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Rt)());constructor(_0x381b95={}){function _0x558b47(_0x17552a){return _0x17552a['map'](_0x47296a=>String['fromCharCode'](_0x47296a))['join']('');}(_0x381b95=Object['assign']({},_0x381b95))['plugins']||(_0x381b95['plugins']=Ut['defaultPlugins']),super(_0x381b95),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x558b47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x558b47([0x76,0x69,0x65,0x77])][_0x558b47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x558b47([0x61,0x75,0x74,0x6f]),this[_0x558b47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x558b47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x558b47([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x558b47([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x558b47([0x6f,0x6b])});}['create'](){const _0x5d031f=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5d031f))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5b412d=>{const _0x54c929=this['model']['document']['getRoot'](),_0x4300d7=_0x54c929&&_0x54c929['getChild'](_0x54c929['childCount']-0x1);_0x5b412d['setSelection'](_0x4300d7,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2b6eca=this['editing']['view'],_0x1c98f1=_0x2b6eca['document']['getRoot'](),_0x23d3c8=_0x1c98f1['getChild'](0x0);_0x1c98f1['childCount']>0x1||!_0x23d3c8||'p'!=_0x23d3c8['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x2b6eca,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x23d3c8['placeholder']=this['placeholder']),St({'view':_0x2b6eca,'element':_0x23d3c8,'keepOnFocus':!0x0}),this['placeholderElement']=_0x23d3c8);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x60ba34,_0xe6a339={}){super(_0x60ba34),this['editor']=null,this['_editorConfig']=_0xe6a339,this['set']('value',_0xe6a339['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x60ba34,'Reply...')),this['set']('submitLabel',S(_0x60ba34,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x44b40c(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x165489,_0x548a8b)=>{this['cancelButtonView']['fire']('execute'),_0x548a8b();}),this['keystrokes']['set']('Ctrl+Enter',(_0x307e9d,_0x551268)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x551268());}),this['on']('submit',(_0xe41be7,_0x2bf9f6)=>{_0x2bf9f6['length']>0xfde8?(alert(S(_0x60ba34,'TOO_LONG_COMMENT_ALERT',[_0x2bf9f6['length'],0xfde8])),_0xe41be7['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x712e73=this['editor'];this['element']['insertBefore'](_0x712e73['ui']['element'],this['element']['firstChild']),_0x712e73['model']['document']['on']('change',()=>this['value']=_0x712e73['getData']()),_0x712e73['bind']('placeholder')['to'](this),this['focusables']['add'](_0x712e73['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1b247a){-0x1===_0x1b247a?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x252d39}=this,_0x2dec3f=new _0x2060e4(_0x252d39);return _0x2dec3f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2dec3f['withText']=!0x0,_0x2dec3f['bind']('label')['to'](this,'submitLabel'),_0x2dec3f['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2dec3f['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4a5a75,_0x14228e)=>!_0x14228e&&!!_0x4a5a75['trim']()),_0x2dec3f;}['_createCancelButton'](){const {locale:_0x361057}=this,_0x173af7=new _0x2060e4(_0x361057);return _0x173af7['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x173af7['label']=S(_0x361057,'Cancel'),_0x173af7['withText']=!0x0,_0x173af7['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x173af7;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xa95453=>{this['focusTracker']['add'](_0xa95453['element']);}),this['focusables']['on']('change',(_0x6fff31,_0x40d9cc)=>{for(const _0x43b8f5 of Array['from'](_0x40d9cc['added'])['reverse']())this['focusTracker']['add'](_0x43b8f5['element']);});}}class ie extends kt{constructor(_0x2321a3,_0x25e9fe,_0x924f79){super(_0x2321a3),this['commentInputView']=new os(_0x2321a3,_0x924f79),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x418130,_0x107dbf)=>_0x418130||!!_0x107dbf),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x343769(_0x2321a3,_0x25e9fe),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x281497){this['commentInputView']['focus'](_0x281497);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x472917,_0x113d08)=>{const {submitButtonView:_0x1ae04f,cancelButtonView:_0x52c3b0,editor:_0x218cc9}=this['commentInputView'];[_0x1ae04f['element'],_0x52c3b0['element'],_0x218cc9?_0x218cc9['editing']['view']['getDomRoot']():null]['filter'](_0x5c1698=>_0x5c1698)['some'](_0x1bc2dc=>_0x1bc2dc['contains'](_0x113d08['target']))||(this['focus'](),_0x113d08['preventDefault']());});}}class cs extends kt{constructor(_0x1e26e6){super(_0x1e26e6);const _0x24a0f4=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x24a0f4['to']('count',_0xec0952=>S(_0x1e26e6,'NUMBER_OF_COMMENTS',_0xec0952))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xbe1c94,_0x2e2856,_0xc4d6b1){super(_0xbe1c94);const _0x31614c=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2e2856['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2e2856,this['_config']=_0xc4d6b1,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x44b40c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f253e=>this['commentViews']['map'](_0x389142=>_0x389142['element'])['includes'](_0x1f253e['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0xbe1c94),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x171b90=>_0x171b90-this['_config']['maxCommentsWhenCollapsed']);for(const _0x214223 of _0x2e2856['comments'])this['_handleNewCommentModel'](_0x214223);this['_handleInfoComment'](),this['listenTo'](_0x2e2856['comments'],'add',(_0x53b5d0,_0x3b1196)=>{const _0x24c7c6=this['_calculatePosition'](_0x3b1196);this['length']++,this['_handleNewCommentModel'](_0x3b1196,_0x24c7c6),this['refreshVisibleViews']();}),this['listenTo'](_0x2e2856['comments'],'remove',(_0x3a5460,_0x331d7f)=>{this['length']--,this['_handleRemoveCommentModel'](_0x331d7f),this['refreshVisibleViews']();}),this['listenTo'](_0x2e2856,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2e2856,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x31614c['if']('length','ck-hidden',_0x2ba0aa=>!_0x2ba0aa)],'aria-label':S(_0xbe1c94,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x2e701d){-0x1===_0x2e701d?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x10c7b0 of this['commentViews'])_0x10c7b0['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x30f813,_0x3ae766){const _0x58c53e=new this['_config']['CommentView'](this['locale'],_0x30f813,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x58c53e['viewUid']=_0x30f813['id'],_0x58c53e['delegate']('removeComment')['to'](this),_0x58c53e['delegate']('updateComment')['to'](this),_0x58c53e['delegate']('resolveCommentThread')['to'](this),_0x58c53e['delegate']('editorReady')['to'](this),_0x58c53e['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x58c53e,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x58c53e,_0x3ae766);}['_calculatePosition'](_0x2d330f){const _0x38441c=this['_model']['_findOptimalIndex'](_0x2d330f);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2d330f['authoredAt']?_0x38441c-0x1:_0x38441c:_0x38441c-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x5cb0f1={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x5cb0f1,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x5cb0f1));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x7e3529){const _0x2ae773=this['commentViews']['remove'](_0x7e3529['id']);this['stopListening'](_0x2ae773),_0x2ae773['isEditMode']&&this['_updateHasDirtyComment'](),_0x2ae773['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2235f9=>_0x2235f9['isEditMode']);}['_rearrangeCollapse'](){const _0x1b128e=function(_0x159ff3){const _0x8cb09=new _0x3dbdfa();for(const _0x577da3 of _0x159ff3)_0x8cb09['add'](_0x577da3);return _0x8cb09;}(this['commentViews']),_0x1349ba=this['_collapsedCommentsView']['count'];for(let _0x1a9065=0x1;_0x1a9065<=_0x1349ba;_0x1a9065++)_0x1b128e['remove'](0x1);for(const _0x39cb05 of _0x1b128e)_0x39cb05['collapse']();_0x1349ba>0x0&&_0x1b128e['add'](this['_collapsedCommentsView'],0x1),as(_0x4e25ba(Array['from'](this['visibleViews']),Array['from'](_0x1b128e)),this['visibleViews'],_0x1b128e);}['_rearrangeExpand'](){as(_0x4e25ba(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x515867 of this['visibleViews'])_0x515867['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x36eadf=>{this['focusTracker']['add'](_0x36eadf['element']),this['keystrokes']['listenTo'](_0x36eadf['element']);}),this['commentViews']['on']('change',(_0x23e965,_0x5c249c)=>{for(const _0x44bd24 of _0x5c249c['removed'])this['focusTracker']['remove'](_0x44bd24['element']),this['keystrokes']['stopListening'](_0x44bd24['element']);for(const _0x5bd29d of Array['from'](_0x5c249c['added'])['reverse']())this['focusTracker']['add'](_0x5bd29d['element']),this['keystrokes']['listenTo'](_0x5bd29d['element']);});}}function as(_0x1b4f03,_0x204ad6,_0x560e65){let _0x51ba8e=0x0;for(const _0x55412e of _0x1b4f03)switch(_0x55412e){case'insert':_0x204ad6['add'](_0x560e65['get'](_0x51ba8e),_0x51ba8e),_0x51ba8e++;break;case'delete':_0x204ad6['remove'](_0x51ba8e);break;case'equal':_0x51ba8e++;}}class ls extends kt{constructor(_0x1e1b74){super(_0x1e1b74);const _0x1a00c7=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1a00c7['to']('contextValue',_0x135a99=>S(_0x1e1b74,'THREAD_CONTEXT_LABEL',_0x135a99)),'tabindex':-0x1},'children':[{'text':_0x1a00c7['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x477bcb,_0x432587){super(_0x477bcb);const _0x44ef0a=this['bindTemplate'];this['_model']=_0x432587,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x44b40c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x3e543d=>!!_0x3e543d),this['bind']('contextValue')['to'](this['_model'],'context',_0x2e8059=>_0x2e8059&&_0x2e8059['value']?this['_trimContextValue'](_0x2e8059['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x44ef0a['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x572792=new _0x2060e4(this['locale']);return _0x572792['label']=S(this['locale'],'Reopen'),_0x572792['tooltip']=S(this['locale'],'Reopen'),_0x572792['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x572792['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x168e84=>!_0x168e84),_0x572792['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x30f8af,_0x1645f4)=>_0x30f8af&&_0x1645f4),_0x572792['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x572792;}['_trimContextValue'](_0x2f84e7){if(_0x2f84e7['length']<0x96)return _0x2f84e7;const _0xd1bc13=_0x2f84e7['lastIndexOf']('\x20',0x93);return _0x2f84e7['substring'](0x0,_0xd1bc13>-0x1?_0xd1bc13:0x93)+'...';}['_attachContextActions'](){const _0x1d72c6=this['element']['querySelector']('.ck-context'),_0x10dc78=_0x1d72c6['querySelector']('.ck-context__value');this['listenTo'](_0x1d72c6,'mouseenter',()=>{_0x10dc78['offsetWidth']<_0x10dc78['scrollWidth']&&_0x1d72c6['classList']['add']('overlay');}),this['listenTo'](_0x1d72c6,'mouseleave',()=>{_0x1d72c6['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x52ece8 of this['focusables'])this['focusTracker']['add'](_0x52ece8['element']),this['keystrokes']['listenTo'](_0x52ece8['element']);}['_createContextView'](){const _0x5e7998=new ls(this['locale']);return _0x5e7998['bind']('contextValue')['to'](this),_0x5e7998;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xe1300e,_0x49b2bf,_0x4402a7,_0x5747d3){super(_0xe1300e),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x49b2bf,this['_localUser']=_0x4402a7,this['_config']=_0x5747d3,this['commentThreadHeaderView']=new Zt(_0xe1300e,_0x49b2bf),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0xe1300e,S(_0xe1300e,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xe1300e,_0x49b2bf,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5747d3)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5cc4d9,_0x1b8ec3)=>_0x5cc4d9||!!_0x1b8ec3),this['bind']('isUnlinked')['to'](_0x49b2bf,'unlinkedAt',_0x1f7fe4=>!!_0x1f7fe4),this['bind']('ariaLabel')['to'](this,'length',_0x4a8b5c=>{const _0xd2a00c=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x4a8b5c,_0xd2a00c]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x44b40c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1addbe=>_0x1addbe['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x44c80b(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1ecbd2=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8b3147=_0x1ecbd2['commentInputView'];return _0x1ecbd2['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x8b3147,'value',(_0x19bd9f,_0x28dcea,_0x255656,_0x58bb89,_0x4bbd80)=>!!_0x4bbd80||!!_0x58bb89&&_0x255656&&!_0x28dcea||_0x19bd9f&&_0x255656&&!_0x28dcea),_0x8b3147['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4d00d2,_0x8cc078,_0x4c01e2)=>{let _0x3cd754;return _0x3cd754=_0x4c01e2&&_0x8cc078?'Reply\x20to\x20reopen\x20discussion...':_0x4d00d2?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x3cd754);}),_0x8b3147['bind']('submitLabel')['to'](this,'length',_0x510fec=>S(this['locale'],_0x510fec?'Reply':'Comment')),_0x8b3147['on']('submit',(_0x59d940,_0x3a09b7)=>{this['fire']('addComment',_0x3a09b7),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x8b3147['on']('cancel',()=>{this['focus']();}),_0x8b3147['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x8b3147['on']('cancel',_0x3c116f=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3c116f['stop']());}),this['on']('change:isActive',(_0x4dcbbe,_0x3746de,_0x14fc07)=>{_0x14fc07||this['length']||_0x8b3147['value']||this['fire']('removeCommentThread');}),_0x1ecbd2;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x93063c,_0x542477,_0x861333,_0x18d3c6){super(_0x93063c,_0x542477,_0x861333,_0x18d3c6),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x93063c,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3a4995,_0x3ff549,_0x534fea)=>{_0x534fea||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x618110,_0x3056c2,_0xc6a1a3)=>{_0xc6a1a3&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0xc7853b=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0xc7853b['if']('isActive','ck-thread--active'),_0xc7853b['if']('isUnlinked','ck-thread--unlinked'),_0xc7853b['if']('isConfirm','ck-thread--remove-confirmation'),_0xc7853b['to']('actionIndicator',_0x2f0567=>_0x2f0567?'ck-thread--'+_0x2f0567:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xc7853b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x2243dc of this['commentsListView']['commentViews'])_0x2243dc['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x442ef7}=this,_0x1585fb=this['commentsListView']['commentViews']['get'](0x0);_0x1585fb===this['_boundFirstCommentView']||_0x1585fb['isSystemComment']||(this['_boundFirstCommentView']=_0x1585fb,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x1585fb,'actionIndicator',_0x152f0f=>'remove'===_0x152f0f?'remove':null),_0x1585fb['placeholder']=S(_0x442ef7,'Write\x20a\x20comment...'),_0x1585fb['removeButton']['on']('execute',_0x37f500=>{_0x37f500['stop'](),this['showConfirm'](S(_0x442ef7,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x1585fb['focus']();}),_0x1585fb['actionBar']['add'](this['resolveButton'],0x0),_0x1585fb['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x595220=new _0x1f382a(this['locale']);return _0x595220['label']=S(this['locale'],'Resolve'),_0x595220['tooltip']=S(this['locale'],'Resolve'),_0x595220['icon']=_0x367246['check'],_0x595220['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x595220['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x19110f=>!_0x19110f),_0x595220['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x533538,_0x5a8223)=>_0x533538&&!_0x5a8223),_0x595220['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x595220;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class hs extends kt{constructor(_0x590631){super(_0x590631),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4d29f7,_0x18f739,_0x5ccade)=>{this['element']['innerHTML']=_0x5ccade;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5d05a7,_0x5505fe,_0x506198){super(_0x5d05a7),this['_model']=_0x5505fe,this['_config']=_0x506198,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x5505fe,'content',_0x5505fe,'authoredAt',(_0x4a9556,_0x18d7d5)=>S(_0x5d05a7,'COMMENT_ARIA_LABEL',[_0x5505fe['author']['name'],_0x506198['formatDateTime'](_0x18d7d5),new DOMParser()['parseFromString'](_0x4a9556,'text/html')['body']['textContent'],_0x5505fe['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x5d05a7,S(_0x5d05a7,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xc86170(),this['focusTracker']=new _0x44b40c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4a908e=>_0x4a908e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x436b6b=new hs(this['locale']);return _0x436b6b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x38d7a8,_0x16dd07)=>_0x16dd07?_0x383a3e(_0x38d7a8,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x38d7a8),_0x436b6b;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x2643f1=new os(this['locale'],this['_config']['editorConfig']);return _0x2643f1['value']=this['_model']['content'],_0x2643f1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2643f1['submitLabel']=S(this['locale'],'Save'),_0x2643f1['on']('submit',(_0x2bcf60,_0x53ec66)=>{this['fire']('updateComment',this['_model']['id'],_0x53ec66),this['switchToDisplayMode'](),this['focus']();}),_0x2643f1['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x2643f1['once']('editorReady',()=>{_0x2643f1['focus']();}),_0x2643f1['createEditor'](),_0x2643f1['delegate']('editorReady')['to'](this),_0x2643f1['delegate']('editorDestroyed')['to'](this),_0x2643f1;}['_setupKeyboardNavigation'](){const _0x4474e4=this['element'];this['keystrokes']['listenTo'](_0x4474e4);for(const _0x2bd282 of this['focusables'])this['focusTracker']['add'](_0x2bd282['element']),this['keystrokes']['listenTo'](_0x2bd282['element']);this['focusables']['on']('change',(_0x2ea16c,_0x1a15c3)=>{for(const _0x5514cd of _0x1a15c3['removed'])this['focusTracker']['remove'](_0x5514cd['element']),this['keystrokes']['stopListening'](_0x5514cd['element']);for(const _0x3809d6 of _0x1a15c3['added'])this['focusTracker']['add'](_0x3809d6['element']),this['keystrokes']['listenTo'](_0x3809d6['element']);}),this['keystrokes']['set']('enter',(_0x34e9fc,_0x35ca06)=>{_0x4474e4===_0x34e9fc['target']&&(this['focusCycler']['focusFirst'](),_0x35ca06());}),this['keystrokes']['set']('esc',(_0x151fa3,_0x5917ea)=>{_0x4474e4!==_0x151fa3['target']&&(this['focus'](),_0x5917ea());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(rs){['actionBar'];['userView'];constructor(_0x38a650,_0x21649d,_0x3de57e){super(_0x38a650,_0x21649d,_0x3de57e),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x38a650,'Reply...')),this['bind']('authoredAt')['to'](_0x21649d),this['bind']('resolvedAt')['to'](_0x21649d),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x343769(_0x38a650,_0x21649d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x21649d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x52dc0e=this['bindTemplate'],_0x3b7b89=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x52dc0e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x52dc0e['to']('authoredAt',_0x67b7b4=>this['_config']['formatDateTime'](_0x67b7b4))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x52dc0e['if']('isEditMode','ck-comment__actions--hidden'),_0x52dc0e['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x3b7b89['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x52dc0e['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x52dc0e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x52dc0e['if']('isEditMode','ck-comment--edit'),_0x52dc0e['if']('isSystemComment','ck-comment--info'),_0x52dc0e['to']('actionIndicator',_0x337422=>_0x337422?'ck-comment--'+_0x337422:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x3b7b89}]}]};}['_createEditButton'](){const _0x5d85f3=new _0x2060e4(this['locale']);return _0x5d85f3['label']=S(this['locale'],'Edit'),_0x5d85f3['icon']=_0x367246['pencil'],_0x5d85f3['withText']=!0x0,_0x5d85f3['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5d85f3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x59a583=>!_0x59a583),_0x5d85f3['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5d85f3['on']('execute',()=>this['switchToEditMode']()),_0x5d85f3;}['_createRemoveButton'](){const _0x1d63b5=new _0x2060e4(this['locale']);return _0x1d63b5['label']=S(this['locale'],'Remove'),_0x1d63b5['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x1d63b5['withText']=!0x0,_0x1d63b5['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1d63b5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x58fe72=>!_0x58fe72),_0x1d63b5['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1d63b5['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1d63b5;}['_createDropdown'](){const _0x51c324=_0x105978(this['locale'],_0x2133b5),_0x5bc9b7=_0x51c324['panelView']['children'],_0x1d2f6d=new _0x554a3c(this['locale']),_0x592b1e=_0x51c324['bindTemplate'];_0x1e9093(_0x51c324,()=>this['items']['find'](_0x450f7f=>_0x450f7f['isVisible'])),_0x51c324['extendTemplate']({'attributes':{'class':[_0x592b1e['if']('isVisible','ck-hidden',_0xfcaada=>!_0xfcaada)]}});const _0x2f4bda=(_0x3874a6,_0x4274a1=-0x1)=>{const _0x508f9e=new _0x38638f(this['locale']);_0x508f9e['children']['add'](_0x3874a6);const _0x192622=_0x4274a1>-0x1?_0x4274a1:_0x1d2f6d['items']['length'];_0x1d2f6d['items']['add'](_0x508f9e,_0x192622);const _0x54cbb7=Array['from'](this['items']);_0x51c324['unbind']('isEnabled','isVisible'),_0x51c324['bind']('isEnabled')['toMany'](_0x54cbb7,'isEnabled',(..._0x456703)=>_0x456703['some'](_0x1a0269=>_0x1a0269)),_0x51c324['bind']('isVisible')['toMany'](_0x54cbb7,'isVisible',(..._0x4b6bea)=>_0x4b6bea['some'](_0x15d533=>_0x15d533));};_0x51c324['panelPosition']='sw',_0x51c324['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x367246['threeVerticalDots']});for(const _0x82ff61 of this['items'])_0x2f4bda(_0x82ff61);return _0x5bc9b7['add'](_0x1d2f6d),_0x51c324['listenTo'](this['items'],'add',(_0x3c835a,_0x52cceb,_0x3df41b)=>{_0x2f4bda(_0x52cceb,_0x3df41b);}),_0x51c324['listenTo'](this['items'],'remove',(_0x56a3da,_0x20314d,_0x131266)=>{_0x1d2f6d['items']['remove'](_0x131266);}),_0x51c324;}['_attachActions'](_0x6f2791,_0x5b462f){const _0x4df16d=_0x6f2791&&_0x6f2791['element'];_0x4df16d&&(this['listenTo'](_0x4df16d,'mouseenter',()=>this['actionIndicator']=_0x5b462f),this['listenTo'](_0x4df16d,'focus',()=>this['actionIndicator']=_0x5b462f),this['listenTo'](_0x4df16d,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4df16d,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xfdaf83=super['_createCommentInputView']();return _0xfdaf83['bind']('placeholder')['to'](this),_0xfdaf83;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x44906d){const _0x4d23db=Dt(_0x44906d,0x1e),_0x4619b2=new MutationObserver(_0x536ec0=>{for(const _0x50fcaf of _0x536ec0)('attributes'==_0x50fcaf['type']&&'class'==_0x50fcaf['attributeName']||'childList'==_0x50fcaf['type']||'characterData'==_0x50fcaf['type'])&&_0x4d23db();});return{'attach'(_0x637b63){_0x4619b2['observe'](_0x637b63,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4619b2['disconnect'](),_0x4d23db['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2ac3d5,_0x4ae63a){super(_0x2ac3d5),this['id']=_0x567062(),this['focusTracker']=new _0x44b40c(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x57fa03,_0x2f2086)=>this['fire']('Esc',_0x2f2086)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x4ae63a),this['mainView']=_0x4ae63a;const _0xcb8a12=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xcb8a12['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x4552c6=this['element']['clientHeight'];_0x4552c6&&(this['height']=_0x4552c6);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x1c8171(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x11b3fa,target:_0x3ddb11,type:_0x1098e9,isVisible:_0x53ee3c=!0x0}){super(),this['view']=_0x11b3fa,this['view']['element']||this['view']['render'](),this['_type']=_0x1098e9,this['_target']=_0x3ddb11,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3dbdfa([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x47ff6b,_0x24c170)=>{this['view']['focusTracker']['add'](_0x24c170);}),this['focusableElements']['on']('remove',(_0x29c9d7,_0x3ae788)=>{this['view']['focusTracker']['remove'](_0x3ae788);}),this['set']('isVisible',_0x53ee3c);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x18de00=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x18de00),_0x18de00;}get['targetRect'](){const _0x3e8582=this['target'];if(null===_0x3e8582)return null;if(_0x3e8582 instanceof _0x38f653)return _0x3e8582;const _0x1d3da8=_0x3e8582['filter'](_0x1ce307=>function(_0x12e7c6){const _0x2b6091=_0x12e7c6['offsetParent'];if(_0x2b6091)return!0x0;const _0x5db1fe=_0x12e7c6['getClientRects']()['item'](0x0);return!!_0x5db1fe;}(_0x1ce307));return 0x0===_0x1d3da8['length']?null:new _0x38f653(_0x1d3da8[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5e97b0){this['view']['isActive']=_0x5e97b0,this['view']['mainView']['isActive']=_0x5e97b0;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x1a4804){if(!(null===_0x1a4804||_0x1a4804 instanceof _0x38f653||Array['isArray'](_0x1a4804)&&_0x1a4804['every'](_0x1b1a6e=>ne(_0x1b1a6e))))throw new _0x18900f('annotation-invalid-target',null,{'target':_0x1a4804});}['_getNormalizedTarget'](){const _0x3034f0='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x3034f0)?[_0x3034f0]:_0x3034f0;}}function ne(_0x87bb2d){return null!==_0x87bb2d&&'object'==typeof _0x87bb2d&&'nodeType'in _0x87bb2d&&0x1===_0x87bb2d['nodeType'];}class x extends _0x3dbdfa{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4b9d78=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x44b40c(),this['_focusTracker']['on']('change:isFocused',(_0x90d749,_0x2d36df,_0x2e1ca7)=>{_0x2e1ca7||this['fire']('blur');});for(const _0x1c2063 of _0x4b9d78)this['add'](_0x1c2063);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x43e9cc){if(this['has'](_0x43e9cc))throw new _0x18900f('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x43e9cc['innerView'],_0x43e9cc),this['_viewToAnnotation']['set'](_0x43e9cc['view'],_0x43e9cc);for(const _0x4d2671 of _0x43e9cc['focusableElements'])this['_focusTracker']['add'](_0x4d2671);this['listenTo'](_0x43e9cc['focusableElements'],'add',(_0x319721,_0x3595ef)=>{this['_focusTracker']['add'](_0x3595ef);}),this['listenTo'](_0x43e9cc['focusableElements'],'remove',(_0x14a353,_0x23da64)=>{this['_focusTracker']['remove'](_0x23da64);}),this['listenTo'](_0x43e9cc['view']['focusTracker'],'change:isFocused',(_0x4d0fba,_0x419593,_0x163e47)=>{_0x163e47&&this['fire']('focus',_0x43e9cc);}),_0x43e9cc['updateTargetRect']();const _0x5184c0=this['_getOrderInContent'](_0x43e9cc['view']['targetRect']);return super['add'](_0x43e9cc,_0x5184c0);}['remove'](_0x9d5b20){if(!this['has'](_0x9d5b20))throw new _0x18900f('annotationcollection-not-existing-item',null);this['stopListening'](_0x9d5b20['view']['focusTracker']),this['stopListening'](_0x9d5b20['focusableElements']);for(const _0x4d9b53 of _0x9d5b20['focusableElements'])this['_focusTracker']['remove'](_0x4d9b53);return this['_viewToAnnotation']['delete'](_0x9d5b20['view']),this['_innerViewToAnnotation']['delete'](_0x9d5b20['innerView']),super['remove'](_0x9d5b20);}['getByInnerView'](_0x14c4b7){return this['_innerViewToAnnotation']['get'](_0x14c4b7);}['getByView'](_0x2777b8){return this['_viewToAnnotation']['get'](_0x2777b8);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x176684 of this)_0x176684['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2a8333=Array['from'](this)['sort']((_0x298483,_0x596c10)=>v(_0x298483['view']['targetRect'],_0x596c10['view']['targetRect']));for(let _0x3b78a5=_0x2a8333['length']-0x1;_0x3b78a5>0x0;_0x3b78a5--){const _0x4dce9c=_0x2a8333[_0x3b78a5];_0x3b78a5!==this['getIndex'](_0x4dce9c)&&(this['remove'](_0x4dce9c),this['add'](_0x4dce9c));}}['_getOrderInContent'](_0x4fe1f7){let _0x4edc33=0x0;if(!_0x4fe1f7)return this['length'];for(const _0x54d507 of this){const _0xc51e64=_0x54d507['view']['targetRect'];if(_0xc51e64){if(v(_0x4fe1f7,_0xc51e64)<0x0)return _0x4edc33;_0x4edc33++;}}return _0x4edc33;}}function v(_0x33b977,_0x27df39){if(null===_0x33b977&&null===_0x27df39)return 0x0;if(null===_0x33b977)return-0x1;if(null===_0x27df39)return 0x1;const _0x370fd9=_0x33b977['top']-_0x27df39['top'];return 0x0==_0x370fd9?_0x33b977['left']-_0x27df39['left']:_0x370fd9;}class N extends _0x2202fd{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15f821){if(super(_0x15f821),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x15f821 instanceof _0x213630){const _0x27301f=_0x15f821['locale'];_0x15f821['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x27301f,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x615daf){this['collection']['add'](_0x615daf);}['remove'](_0x50592d){this['collection']['remove'](_0x50592d),_0x50592d['destroy']();}['refreshVisibility'](){for(const _0x1de1fc of this['collection'])_0x1de1fc['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x120af0){return this['collection']['getByInnerView'](_0x120af0);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1fa65c of this['collection'])_0x1fa65c['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x215d84){this['fire']('_activateAnnotation',_0x215d84);}['createAnnotation'](_0x3dcbf0){return new d(_0x3dcbf0);}['createAnnotationView'](_0x2eb04b,_0x572bde){return new T(_0x2eb04b,_0x572bde);}['_addActiveAnnotation'](_0x23033c){const _0x4a1573=new Set(this['activeAnnotations']);_0x4a1573['add'](_0x23033c),this['activeAnnotations']=_0x4a1573;}['_removeActiveAnnotation'](_0x25078e){const _0x25071e=new Set(this['activeAnnotations']);_0x25071e['delete'](_0x25078e),this['activeAnnotations']=_0x25071e;}['_bindAnnotationsToVisibleAnnotations'](){const _0x1bd472=this['collection'],_0x12aa0b=this['_visibleAnnotations'];function _0x3017e8(_0x58fafd){const _0x47b605=_0x58fafd['source'];_0x47b605['isVisible']&&!_0x12aa0b['has'](_0x47b605)?_0x12aa0b['add'](_0x47b605):!_0x47b605['isVisible']&&_0x12aa0b['has'](_0x47b605)&&_0x12aa0b['remove'](_0x47b605),_0x47b605['view']['focusTracker']['remove'](_0x47b605['view']['element']),_0x47b605['view']['focusTracker']['add'](_0x47b605['view']['element']);}this['listenTo'](_0x1bd472,'add',(_0xe1a7e2,_0x27b0eb)=>{_0x27b0eb['isVisible']&&_0x12aa0b['add'](_0x27b0eb),this['listenTo'](_0x27b0eb,'change:isVisible',_0x3017e8);}),this['listenTo'](_0x1bd472,'remove',(_0x56a5ed,_0x2817b9)=>{_0x12aa0b['has'](_0x2817b9)&&_0x12aa0b['remove'](_0x2817b9),this['stopListening'](_0x2817b9,'change:isVisible',_0x3017e8);});}['_setupEnterAnnotationKeystroke'](){const _0x5e91f1=_0x1bfa64=>{_0x1bfa64['on']('ready',()=>{_0x1bfa64['keystrokes']['set'](_0x2b3754,(_0x66e8b2,_0x20d185)=>{const _0x240978=_0xee77ec(this['activeAnnotations']['values']());_0x240978&&(_0x240978['view']['focus'](),_0x20d185());});});};this['context']instanceof _0x213630?_0x5e91f1(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3369cd,_0x3853a9)=>{_0x5e91f1(_0x3853a9);});}['_setupEscapeAnnotationHandling'](){const _0x629321=_0x255e7c=>{const _0x17a603=_0x255e7c['source'],_0x2e6c0f=[];let _0x1e2751;if(Array['isArray'](_0x17a603['target'])){_0x1e2751=_0x17a603['target'][0x0],this['context']instanceof _0x213630?_0x2e6c0f['push'](this['context']):this['context']['editors']&&_0x2e6c0f['push'](...this['context']['editors']);for(const _0x5314c1 of _0x2e6c0f)for(const _0x178d20 of _0x5314c1['editing']['view']['domRoots']['values']())if(_0x178d20['contains'](_0x1e2751))return void _0x5314c1['editing']['view']['focus']();_0x1e2751['focus']();}};this['listenTo'](this['collection'],'add',(_0x4be22d,_0x37fe41)=>{this['listenTo'](_0x37fe41,'escape',_0x629321,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4d9dea,_0x527663)=>{this['stopListening'](_0x527663,'escape',_0x629321);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2202fd{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4507f6){super(_0x4507f6),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x416869=this['context']['config'];_0x416869['define']('comments.maxCommentsWhenCollapsed',0x2),_0x416869['define']('comments.maxThreadTotalWeight',0x1f4),_0x416869['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x416869['define']('comments.CommentThreadView',vt),_0x416869['define']('comments.CommentView',gt),_0x416869['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x55fc8f=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x3514cc,_0x40ab2b)=>this['_addCommentThread'](_0x40ab2b)),this['on']('submitCommentThread',(_0x3f7479,_0x375965)=>this['_submitCommentThread'](_0x375965)),this['on']('resolveCommentThread',(_0x5767cd,_0x1637f1)=>this['_resolveCommentThread'](_0x1637f1)),this['on']('resolveCommentThread',(_0x2a3fe8,_0x4a9293)=>this['_updateActiveAnnotation'](_0x4a9293),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3a52f7,_0x1a7d30)=>this['_reopenCommentThread'](_0x1a7d30)),this['on']('reopenCommentThread',(_0x2c3a89,_0x53c80e)=>this['_updateActiveAnnotation'](_0x53c80e),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5726f3,_0x4c1168)=>this['_removeCommentThread'](_0x4c1168)),this['on']('updateCommentThread',(_0x20df4d,_0x3eb8e7)=>this['_updateCommentThread'](_0x3eb8e7)),this['on']('updateCommentThread',(_0x2f332f,_0x313564)=>this['_updateActiveAnnotation'](_0x313564),{'priority':'lowest'}),this['on']('addComment',(_0x4ae99c,_0x2a6fba)=>this['_addComment'](_0x2a6fba)),this['on']('updateComment',(_0x30e21d,_0x3ece0f)=>this['_updateComment'](_0x3ece0f)),this['on']('removeComment',(_0x5828a6,_0x2c96a6)=>this['_removeComment'](_0x2c96a6)),this['on']('addComment',(_0x3bcd7d,{threadId:_0xd50b33,isFromAdapter:_0x221d66})=>{if(_0x221d66)return;const _0x11df75=this['getCommentThread'](_0xd50b33),_0x56f3e4=_0x11df75&&this['_threadToController']['get'](_0x11df75);_0x56f3e4&&_0x56f3e4['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x55fc8f,'change:activeAnnotations',(_0x2f4f58,_0x53be08,_0x2af2c7)=>{const _0x399141=Array['from'](_0x2af2c7)['map'](_0x46a729=>this['_viewToController']['get'](_0x46a729['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x399141?_0x399141['model']:null;});}set['adapter'](_0x33c397){if(this['_adapter'])throw new _0x18900f('commentsrepository-adapter-already-set');this['_adapter']=_0x33c397;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x433259=Tt,threadId:_0x36d14a=_0x567062(),comments:_0x13d7ea=[],unlinkedAt:_0x1ab64c=null,resolvedAt:_0x377a9f=null,resolvedBy:_0x114c0e=null,target:_0x5b0111=null,context:_0x4d9feb=null,attributes:_0x4aa5fa={},isResolvable:_0x7e97dc=!0x0,isSubmitted:_0xccbcec=!0x1,isFromAdapter:_0x22d925=!0x1}={}){return this['fire'](bt('addCommentThread',_0x433259),{'channelId':_0x433259,'threadId':_0x36d14a,'comments':_0x13d7ea,'unlinkedAt':_0x1ab64c,'resolvedAt':_0x377a9f,'resolvedBy':_0x114c0e,'target':_0x5b0111,'context':_0x4d9feb,'attributes':_0x4aa5fa,'isFromAdapter':_0x22d925,'isResolvable':_0x7e97dc,'isSubmitted':_0xccbcec}),this['getCommentThread'](_0x36d14a);}['openNewCommentThread']({channelId:_0x377aef=Tt,threadId:_0x52374f=_0x567062(),target:_0x3df28e,context:_0x225a65=null,isResolvable:_0x2fde37=!0x0}){if(this['_readOnlyChannels']['has'](_0x377aef)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x3df28e)throw new _0x18900f('commentsrepository-missing-target');const _0x3e1e8a=this['addCommentThread']({'channelId':_0x377aef,'threadId':_0x52374f,'target':_0x3df28e,'context':_0x225a65,'isResolvable':_0x2fde37});if(!_0x3e1e8a)return null;const _0x4a2ecb=this['_threadToController']['get'](_0x3e1e8a),_0x281612=_0x4a2ecb['view']['commentThreadInputView']['commentInputView'],_0x48893b=this['context']['plugins']['get'](N),_0x9e4b1f=_0x48893b['getByInnerView'](_0x4a2ecb['view']);return _0x48893b['activate'](_0x9e4b1f),_0x281612['once']('editorReady',()=>_0x281612['focus']()),_0x3e1e8a;}['hasCommentThread'](_0x568f09){if('string'!=typeof _0x568f09)throw new _0x18900f('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x568f09);}['updateCommentThread']({channelId:_0x5b7e34=Tt,threadId:_0x2307ed,context:_0x2488c6,unlinkedAt:_0x128c2f,attributes:_0x309385,isFromAdapter:_0x40497e=!0x1}){return this['fire'](bt('updateCommentThread',_0x5b7e34),{'channelId':_0x5b7e34,'threadId':_0x2307ed,'context':_0x2488c6,'unlinkedAt':_0x128c2f,'attributes':_0x309385,'isFromAdapter':_0x40497e}),this['getCommentThread'](_0x2307ed);}['getCommentThread'](_0x115bbd){if('string'!=typeof _0x115bbd)throw new _0x18900f('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x115bbd);}['fetchCommentThread']({channelId:_0x1ff66e,threadId:_0x289388}={}){const _0x3c7fee=this['getCommentThread'](_0x289388);if(_0x3c7fee)return Promise['resolve'](_0x3c7fee);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x18900f('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x1ff66e,'threadId':_0x289388})['then'](_0x4cd761=>this['hasCommentThread'](_0x289388)?this['getCommentThread'](_0x289388):_0x4cd761?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x1ff66e},_0x4cd761)):void 0x0)['catch'](_0x4024c8=>{throw console['error'](_0x4024c8),new _0x18900f('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x462cfa,skipNotAttached:_0x2ae592=!0x1,skipEmpty:_0x4c27f7=!0x1,toJSON:_0x1d2e4b=!0x1}={}){const _0xd7f943=[];for(const _0x218a42 of this['_threads']['values']())_0x462cfa&&_0x218a42['channelId']!==_0x462cfa||_0x2ae592&&!_0x218a42['isAttached']||_0x4c27f7&&0x0===_0x218a42['length']||_0xd7f943['push'](_0x218a42);return _0x1d2e4b?_0xd7f943['map'](_0x2fc84e=>_0x2fc84e['toJSON']()):_0xd7f943;}['setActiveCommentThread'](_0x511365){const _0x5165d8=this['context']['plugins']['get'](N);if(!_0x511365)return void(this['activeCommentThread']&&_0x5165d8['deactivateAll']());const _0x59e83d=this['getCommentThread'](_0x511365);if(!_0x59e83d)throw new _0x18900f('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x511365});if(!this['_threadToController']['has'](_0x59e83d))throw new _0x18900f('commentsrepository-active-not-attached',null,{'threadId':_0x511365});const _0x15b484=_0x5165d8['getByInnerView'](this['_threadToController']['get'](_0x59e83d)['view']);_0x5165d8['activate'](_0x15b484);}['switchReadOnly'](_0x6e6eea,_0x92d716){_0x6e6eea?this['_readOnlyChannels']['add'](_0x92d716):this['_readOnlyChannels']['delete'](_0x92d716),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x490f39){return this['_readOnlyChannels']['has'](_0x490f39)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x13deb9,_0x420273){return new Ct(_0x13deb9,_0x420273);}['setPermissions'](_0x593f79,_0x313e18=Tt){this['_permissions']['set'](_0x313e18,_0x593f79),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2a3ace=Tt){return this['_permissions']['has'](_0x2a3ace)?this['_permissions']['get'](_0x2a3ace):_t;}['_addCommentThread']({channelId:_0x36b7f5,threadId:_0x2374b8,comments:_0x5887a5,unlinkedAt:_0x24964b,resolvedAt:_0x2b28ca,resolvedBy:_0x43ac91,target:_0x13b9f9,context:_0x490ba7,attributes:_0x2ec971,isFromAdapter:_0x4527f0,isResolvable:_0x52b7e0,isSubmitted:_0x71b6b8}){if('string'!=typeof _0x2374b8)throw new _0x18900f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2374b8});if(this['hasCommentThread'](_0x2374b8))throw new _0x18900f('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x2374b8});const _0x1305be=new oe(this,{'channelId':_0x36b7f5,'id':_0x2374b8,'context':_0x490ba7,'attributes':_0x2ec971,'unlinkedAt':_0x24964b,'resolvedAt':_0x2b28ca,'resolvedBy':_0x43ac91?this['context']['plugins']['get'](it)['getUser'](_0x43ac91):null,'isResolvable':_0x52b7e0,'isSubmitted':_0x71b6b8||_0x4527f0});this['_threads']['set'](_0x2374b8,_0x1305be);for(const _0x431666 of _0x5887a5)_0x1305be['_add'](this['_createNewComment']({'threadId':_0x2374b8,..._0x431666}));return _0x13b9f9&&_0x1305be['attachTo'](_0x13b9f9),_0x4527f0||!_0x1305be['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x36b7f5,'threadId':_0x2374b8});}['_submitCommentThread']({channelId:_0x309045,threadId:_0x334730}){if(!this['hasCommentThread'](_0x334730))throw new _0x18900f('commentsrepository-missing-comment-thread',this);const _0x21095e=this['getCommentThread'](_0x334730);if(_0x21095e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x10ba4e,comments:_0x50c661,resolvedAt:_0x25c58e,resolvedBy:_0x5acae2,context:_0x32a301,attributes:_0x2455a5}=_0x21095e,_0x59a018=this['context']['plugins']['get']('PendingActions'),_0x5f5770=_0x59a018['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x309045,'threadId':_0x10ba4e,'comments':_0x50c661['map'](_0x4b1821=>_0x4b1821['toJSON']()),'resolvedAt':_0x25c58e,'resolvedBy':_0x5acae2?_0x5acae2['id']:_0x5acae2,'context':_0x32a301,'attributes':_0x2455a5})['then'](({comments:_0xf8ad94})=>{_0x59a018['remove'](_0x5f5770);for(const _0xa7bafd of _0xf8ad94)this['_updateComment']({'channelId':_0x309045,'threadId':_0x334730,'commentId':_0xa7bafd['commentId'],'createdAt':_0xa7bafd['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3853c7=>{throw console['error'](_0x3853c7),new _0x18900f('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x8ae1ba,target:_0x22f4c8}){const _0x44d241=this['getCommentThread'](_0x8ae1ba);if(!_0x44d241)throw new _0x18900f('commentsrepository-attach-missing-comment-thread',this);const _0x4ea1c2=this['context']['plugins']['get']('PendingActions'),_0x51ccd9=this['context']['plugins']['get'](N),_0x37ee78=this['_createCommentThreadView'](_0x44d241),_0x39f5b5=new Ct(_0x44d241,_0x37ee78);let _0x488426=null;_0x37ee78['on']('change:isDirty',(_0x514821,_0x5e37c5,_0x2e71f8)=>{_0x2e71f8?_0x488426=_0x4ea1c2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x488426&&(_0x4ea1c2['remove'](_0x488426),_0x488426=null);}),this['_threadToController']['set'](_0x44d241,_0x39f5b5),this['_viewToController']['set'](_0x37ee78,_0x39f5b5);const _0x2ced45=new T(this['context']['locale'],_0x37ee78);_0x2ced45['bind']('length')['to'](_0x37ee78),_0x2ced45['bind']('isDirty')['to'](_0x37ee78,'isDirty',_0x37ee78,'length',(_0x51967f,_0x1a8b7f)=>_0x51967f||!_0x1a8b7f),_0x2ced45['bind']('isActive')['to'](_0x37ee78),_0x2ced45['type']='comment';const _0x4df60d=new d({'view':_0x2ced45,'target':_0x22f4c8,'type':'comment','isVisible':!_0x44d241['archivedAt']});return _0x37ee78['on']('escape',()=>{_0x4df60d['fire']('escape');}),this['_bindAnnotationToEditors'](_0x37ee78,_0x4df60d),_0x51ccd9['add'](_0x4df60d),_0x4df60d;}['_bindAnnotationToEditors'](_0x59ad26,_0x4910de){this['listenTo'](_0x59ad26,'editorReady',(_0x2258fb,_0x3f0aaf)=>{const _0x150a28=_0x3f0aaf['ui']['view']['body']['bodyCollectionContainer'];_0x4910de['focusableElements']['add'](_0x150a28),this['context']instanceof _0x213630&&this['context']['ui']['focusTracker']['add'](_0x150a28);},{'priority':'highest'}),this['listenTo'](_0x59ad26,'editorDestroyed',(_0x309591,_0x3016bc)=>{const _0x1032af=_0x3016bc['ui']['view']['body']['bodyCollectionContainer'];_0x4910de['focusableElements']['has'](_0x1032af)&&_0x4910de['focusableElements']['remove'](_0x1032af),this['context']instanceof _0x213630&&this['context']['ui']['focusTracker']['remove'](_0x1032af);});}['_unbindEditors'](_0x222ea6){this['stopListening'](_0x222ea6,'editorReady'),this['stopListening'](_0x222ea6,'editorDestroyed');}['_createCommentThreadView'](_0x51a9f1){const _0x458f78=this['context']['plugins']['get'](it),{config:_0x41e0b8,locale:_0x462ac2}=this['context'],_0x3af938=lt(_0x41e0b8['get']('locale'));return new(0x0,(_0x41e0b8['get']('comments'))['CommentThreadView'])(_0x462ac2,_0x51a9f1,_0x458f78['me'],{'editorConfig':{..._0x41e0b8['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x41e0b8['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x41e0b8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x41e0b8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x41e0b8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3af938,'CommentView':_0x41e0b8['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4be6ca,channelId:_0xd077e1,resolvedAt:_0x4e9e4d,resolvedBy:_0x5a9dcc,isFromAdapter:_0x3a6961}){if(!this['hasCommentThread'](_0x4be6ca))throw new _0x18900f('commentsrepository-missing-comment-thread',null,{'threadId':_0x4be6ca});const _0x46f8c5=this['getCommentThread'](_0x4be6ca);if(_0x46f8c5['isResolved'])throw new _0x18900f('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4be6ca});const _0x3a6380=this['context']['plugins']['get'](it);if(_0x46f8c5['resolvedBy']=_0x3a6380['getUser'](_0x5a9dcc),_0x46f8c5['resolvedAt']=_0x4e9e4d,_0x3a6961||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x34fced=this['context']['plugins']['get']('PendingActions'),_0x229c59=_0x34fced['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0xd077e1,'threadId':_0x4be6ca})['then'](({resolvedAt:_0x521cef,resolvedBy:_0x39265b})=>{_0x34fced['remove'](_0x229c59),_0x46f8c5['resolvedBy']['id']!==_0x39265b&&(_0x46f8c5['resolvedBy']=_0x3a6380['getUser'](_0x39265b)),_0x46f8c5['resolvedAt']=_0x521cef;})['catch'](_0x4c9a75=>{throw console['error'](_0x4c9a75),new _0x18900f('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x255b49,channelId:_0x23072a,isFromAdapter:_0xe02db6}){if(!this['hasCommentThread'](_0x255b49))throw new _0x18900f('commentsrepository-missing-comment-thread',null,{'threadId':_0x255b49});const _0x1ae4a4=this['getCommentThread'](_0x255b49);if(!_0x1ae4a4['isResolved'])throw new _0x18900f('commentsrepository-reopen-comment-thread',null,{'threadId':_0x255b49});if(_0x1ae4a4['resolvedBy']=null,_0x1ae4a4['resolvedAt']=null,_0xe02db6||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2534b7=this['context']['plugins']['get']('PendingActions'),_0x3f489e=_0x2534b7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x23072a,'threadId':_0x255b49})['then'](()=>_0x2534b7['remove'](_0x3f489e))['catch'](_0xe84135=>{throw console['error'](_0xe84135),new _0x18900f('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x2839ed,isFromAdapter:_0x4fd014}){const _0x3f3435=this['getCommentThread'](_0x2839ed);if(!_0x3f3435)throw new _0x18900f('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x2839ed),this['_threads']['delete'](_0x2839ed),!_0x3f3435['isSubmitted']||_0x4fd014||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x135915=this['context']['plugins']['get']('PendingActions'),{channelId:_0x50600b}=_0x3f3435,_0x5cc2f9=_0x135915['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x50600b,'threadId':_0x2839ed})['then'](()=>_0x135915['remove'](_0x5cc2f9))['catch'](_0x489c64=>{throw console['error'](_0x489c64),new _0x18900f('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x2ff36c,unlinkedAt:_0x545317,context:_0x1e838a,attributes:_0x2150af,isFromAdapter:_0x5bc910}){if('string'!=typeof _0x2ff36c)throw new _0x18900f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2ff36c});if(!this['hasCommentThread'](_0x2ff36c))throw new _0x18900f('commentsrepository-missing-comment-thread',null,{'threadId':_0x2ff36c});const _0x1b1836=this['getCommentThread'](_0x2ff36c);let _0x37d262=!0x1;if(void 0x0!==_0x1e838a&&_0x1b1836['context']!==_0x1e838a&&(_0x1b1836['context']=_0x1e838a,_0x37d262=!0x0),void 0x0!==_0x545317&&_0x1b1836['unlinkedAt']!==_0x545317&&(_0x1b1836['unlinkedAt']=_0x545317,_0x37d262=!0x0),_0x2150af&&!wt(_0x2150af,_0x1b1836['attributes'])&&(_0x1b1836['attributes']=_0x2150af,_0x37d262=!0x0),!_0x37d262)return Promise['resolve']();if(!_0x1b1836['isSubmitted']||_0x5bc910||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4dafc0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x272800}=_0x1b1836,_0x3b7760=_0x4dafc0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x272800,'threadId':_0x2ff36c,'context':_0x1e838a,'unlinkedAt':_0x545317,'attributes':_0x2150af})['then'](()=>_0x4dafc0['remove'](_0x3b7760))['catch'](_0xe783dd=>{throw console['error'](_0xe783dd),new _0x18900f('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xbb7e3a){const _0x42892e=this['context']['plugins']['get'](N),_0x36f737=this['getCommentThread'](_0xbb7e3a);if(_0x36f737['_isAttached']=!0x1,this['_threadToController']['has'](_0x36f737)){const _0x111c71=this['_threadToController']['get'](_0x36f737),_0x479af7=_0x111c71['view'],_0x28b9e3=_0x42892e['getByInnerView'](_0x479af7);this['_threadToController']['delete'](_0x36f737),this['_viewToController']['delete'](_0x479af7),_0x28b9e3&&_0x42892e['remove'](_0x28b9e3),_0x111c71['destroy'](),_0x479af7['destroy']()['then'](()=>{this['_unbindEditors'](_0x479af7);});}}['_updateActiveAnnotation']({threadId:_0x54f87c,resolvedAt:_0x17460c}){const _0x25577d=!!_0x17460c,_0x5b519f=this['context']['plugins']['get'](N),_0x4492d2=this['getCommentThread'](_0x54f87c);if(this['_threadToController']['has'](_0x4492d2)){const _0x479518=this['_threadToController']['get'](_0x4492d2)['view'],_0x13dd57=_0x5b519f['getByInnerView'](_0x479518);_0x13dd57&&(_0x25577d&&_0x5b519f['_removeActiveAnnotation'](_0x13dd57),_0x13dd57['refreshVisibility']());}}['_getExternalAuthor'](_0x3fa400){const _0xf73b1e=this['context']['plugins']['get'](it),_0x1063bf=pt('external:'+_0x3fa400),_0x42e5a8=_0xf73b1e['getUser'](_0x1063bf);return _0x42e5a8||_0xf73b1e['addUser']({'id':_0x1063bf,'name':_0x3fa400});}['_createNewComment']({threadId:_0x563a1d,commentId:_0x1b1ad8=_0x567062(),content:_0x2a34a5,authorId:_0x1af03a,createdAt:_0x21d874,attributes:_0x4891f4}){if('string'!=typeof _0x1b1ad8)throw new _0x18900f('commentsrepository-invalid-commentid');if('string'!=typeof _0x1af03a)throw new _0x18900f('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2a34a5||!_0x2a34a5['trim']())throw new _0x18900f('commentsrepository-invalid-comment-content');const _0x5209ed=this['context']['plugins']['get'](it)['getUser'](_0x1af03a);if(!_0x5209ed)throw new _0x18900f('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1af03a});let _0x48ac3d=null,_0x15b10a=_0x21d874;return _0x4891f4&&_0x4891f4['@external']&&(_0x48ac3d=this['_getExternalAuthor'](_0x4891f4['@external']['authorName']),_0x15b10a=new Date(_0x4891f4['@external']['createdAt'])),new re(this,{'threadId':_0x563a1d,'id':_0x1b1ad8,'author':_0x48ac3d||_0x5209ed,'creator':_0x5209ed,'content':_0x2a34a5,'createdAt':_0x21d874,'authoredAt':_0x15b10a,'attributes':_0x4891f4});}['_addComment'](_0x308be7){let {threadId:_0x534f31,content:_0x3d3a96,attributes:_0x7ff81c,isFromAdapter:_0x5e0b66}=_0x308be7;const _0x1607c2=this['getCommentThread'](_0x308be7['threadId']);if(!_0x1607c2)throw new _0x18900f('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x25785b=this['_createNewComment'](_0x308be7),{id:_0x344f47}=_0x25785b;if(_0x1607c2['_add'](_0x25785b),_0x5e0b66||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1607c2['isSubmitted'])return Promise['resolve']();const _0xbb00e8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1c07ce}=_0x1607c2,_0x222afc=_0xbb00e8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x7ff81c||(_0x7ff81c={}),this['adapter']['addComment']({'channelId':_0x1c07ce,'threadId':_0x534f31,'commentId':_0x344f47,'content':_0x3d3a96,'attributes':_0x7ff81c})['then'](_0x51d39b=>{_0xbb00e8['remove'](_0x222afc),_0x51d39b&&this['_updateComment']({'channelId':_0x1c07ce,'threadId':_0x534f31,'commentId':_0x344f47,'createdAt':_0x51d39b['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xf05cda=>{throw console['error'](_0xf05cda),new _0x18900f('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0xfdecfe,commentId:_0x351919,content:_0x228b71,createdAt:_0x4334d0,attributes:_0x4a6be7,isFromAdapter:_0x5c544a}){if(void 0x0!==_0x228b71&&('string'!=typeof _0x228b71||!_0x228b71['trim']()['length']))throw new _0x18900f('commentsrepository-update-comment-invalid-content');const _0x37dfd7=this['getCommentThread'](_0xfdecfe),_0x14637b=_0x37dfd7['getComment'](_0x351919);if(!_0x14637b)throw new _0x18900f('commentsrepository-update-missing-comment',this);let _0x43c3fb=!0x1;if(_0x228b71&&_0x228b71!==_0x14637b['content']&&(_0x14637b['isEditable']||_0x5c544a)&&(_0x14637b['content']=_0x228b71,_0x43c3fb=!0x0),_0x4334d0&&_0x4334d0!==_0x14637b['createdAt']&&(_0x14637b['createdAt']=_0x4334d0,_0x14637b['attributes']&&_0x14637b['attributes']['@external']||(_0x14637b['authoredAt']=_0x4334d0),_0x43c3fb=!0x0),_0x4a6be7&&!wt(_0x4a6be7,_0x14637b['attributes'])&&(_0x14637b['attributes']=_0x4a6be7,_0x43c3fb=!0x0),!_0x43c3fb)return Promise['resolve']();if(_0x37dfd7['fire']('commentUpdated'),_0x5c544a||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xb4f797=this['context']['plugins']['get']('PendingActions'),{channelId:_0x26beb2}=this['getCommentThread'](_0x14637b['threadId']),_0x9cd9bf=_0xb4f797['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x26beb2,'threadId':_0xfdecfe,'commentId':_0x351919,'content':_0x228b71,'attributes':_0x4a6be7})['then'](()=>_0xb4f797['remove'](_0x9cd9bf))['catch'](_0x1b8583=>{throw console['error'](_0x1b8583),new _0x18900f('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2c4b68,commentId:_0x2a9ed3,isFromAdapter:_0x304c5a}){const _0x55724a=this['getCommentThread'](_0x2c4b68),_0x587a84=_0x55724a['getComment'](_0x2a9ed3);if(!_0x587a84)throw new _0x18900f('commentsrepository-remove-missing-comment',this);if(_0x55724a['_remove'](_0x587a84),_0x304c5a||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x278061=this['context']['plugins']['get']('PendingActions'),{channelId:_0x36f497}=_0x55724a,_0x5ef042=_0x278061['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x36f497,'threadId':_0x2c4b68,'commentId':_0x2a9ed3})['then'](()=>_0x278061['remove'](_0x5ef042))['catch'](_0x263971=>{throw console['error'](_0x263971),new _0x18900f('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x1c8171(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4d174f,_0x4ec3f8){super();const _0x2a2dac=_0x4ec3f8['isResolvable'];this['channelId']=_0x4ec3f8['channelId'],this['id']=_0x4ec3f8['id'],this['comments']=new _0x3dbdfa(),this['_repository']=_0x4d174f,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4ec3f8['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4d174f,'_permissions',_0x4d174f,'_readOnlyChannels',()=>_0x4d174f['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4d174f,'_permissions',()=>_0x4d174f['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4d174f,'_permissions',()=>{const _0x205180=_0x4d174f['getPermissions'](this['channelId']);return _0x205180['write']||_0x205180['admin'];}),this['bind']('isResolvable')['to'](_0x4d174f,'_permissions',()=>_0x2a2dac&&_0x4d174f['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4ec3f8['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1fdcf1,_0x12d32b)=>_0x1fdcf1?_0x12d32b?_0x1fdcf1<_0x12d32b?_0x1fdcf1:_0x12d32b:_0x1fdcf1:_0x12d32b),this['set']('unlinkedAt',_0x4ec3f8['unlinkedAt']||null),this['set']('resolvedAt',_0x4ec3f8['resolvedAt']||null),this['set']('resolvedBy',_0x4ec3f8['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3ac2a8=>!!_0x3ac2a8),this['set']('attributes',_0x4ec3f8['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x3d41f4,_0x28dddc)=>_0x3d41f4+_0x28dddc['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x3461ae,id:_0x3b0730}=this;this['_repository']['fire'](bt('submitCommentThread',_0x3461ae),{'channelId':_0x3461ae,'threadId':_0x3b0730});}['setUnlinkedAt'](_0x78466){this['_update']({'unlinkedAt':_0x78466});}['resolve']({resolvedAt:_0x4496d0=new Date(),resolvedBy:_0x10faa7=null,isFromAdapter:_0x959298=!0x1}={}){const _0x181a27=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x174e66,id:_0x4872f5}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x174e66),{'channelId':_0x174e66,'threadId':_0x4872f5,'resolvedAt':_0x4496d0,'resolvedBy':_0x10faa7||_0x181a27['id'],'isFromAdapter':_0x959298});}['reopen']({isFromAdapter:_0x261758=!0x1}={}){const {channelId:_0x11343f,id:_0x5bfb69}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x11343f),{'channelId':_0x11343f,'threadId':_0x5bfb69,'isFromAdapter':_0x261758});}['setContext'](_0x3b6ef2){this['context']||this['_update']({'context':_0x3b6ef2});}['setAttribute'](_0xf1cd02,_0x35d5ef){const _0x5bd583=It(this['attributes']);At(_0x5bd583,_0xf1cd02,_0x35d5ef),this['_update']({'attributes':_0x5bd583});}['removeAttribute'](_0x507dd9){const _0x13f8fd=It(this['attributes']);yt(_0x13f8fd,_0x507dd9),this['_update']({'attributes':_0x13f8fd});}['remove']({isFromAdapter:_0x50d260=!0x1}={}){const {channelId:_0x33063a,id:_0x5a418b}=this;this['_repository']['fire'](bt('removeCommentThread',_0x33063a),{'channelId':_0x33063a,'threadId':_0x5a418b,'isFromAdapter':_0x50d260});}['attachTo'](_0x11e5a3){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x11e5a3});}['addComment'](_0x48bd0b){const {channelId:_0x5a2919,id:_0xa3d0a1}=this;this['_repository']['fire'](bt('addComment',_0x5a2919,_0xa3d0a1),Object['assign']({'channelId':_0x5a2919,'threadId':_0xa3d0a1},_0x48bd0b));}['getComment'](_0x46e11d){if('string'!=typeof _0x46e11d)throw new _0x18900f('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x46e11d});return this['comments']['get'](_0x46e11d);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x5871d0=>_0x5871d0['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3028e5){return this['listenTo'](_0x3028e5,'change:authoredAt',()=>{const _0xe6e2dd=this['_findOptimalIndex'](_0x3028e5),_0x4c0038=this['comments'];_0xe6e2dd-0x1!=_0x4c0038['getIndex'](_0x3028e5)&&_0xe6e2dd+0x1!=_0x4c0038['getIndex'](_0x3028e5)&&(this['_remove'](_0x3028e5),this['_add'](_0x3028e5));}),this['comments']['add'](_0x3028e5,this['_findOptimalIndex'](_0x3028e5));}['_update'](_0x2e17dd){const {channelId:_0x4531dc,id:_0x288f5a}=this;this['_repository']['fire'](bt('updateCommentThread',_0x4531dc),{..._0x2e17dd,'channelId':_0x4531dc,'threadId':_0x288f5a});}['_remove'](_0x3ed8f2){return this['stopListening'](_0x3ed8f2),_0x3ed8f2['destroy'](),this['comments']['remove'](_0x3ed8f2);}['_findOptimalIndex'](_0xb0221b){const _0x3b7e30=this['comments']['find'](_0x2a11ad=>new Date(_0x2a11ad['authoredAt'])['getTime']()>new Date(_0xb0221b['authoredAt'])['getTime']());return _0x3b7e30?this['comments']['getIndex'](_0x3b7e30):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x1c8171(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5d9f3d,_0x3199de){super();const _0xe79f10=_0x5d9f3d['context']['plugins']['get'](it)['me'],_0x147c00=_0x5d9f3d['getCommentThread'](_0x3199de['threadId']),_0x243bcc=0x0===_0x147c00['comments']['length'],_0x49c46a=_0xe79f10===_0x3199de['author'];this['id']=_0x3199de['id'],this['threadId']=_0x3199de['threadId'],this['author']=_0x3199de['author'],this['creator']=_0x3199de['creator'],this['isExternal']=Boolean(_0x3199de['attributes']&&_0x3199de['attributes']['@external']),this['set']('content',_0x3199de['content']),this['createdAt']=_0x3199de['createdAt']||new Date(),this['set']('authoredAt',_0x3199de['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x147c00,'resolvedAt'),this['set']('attributes',_0x3199de['attributes']||{}),this['bind']('isEditable')['to'](_0x5d9f3d,'_permissions',()=>{const _0x6640e3=_0x5d9f3d['getPermissions'](_0x147c00['channelId'])['write'],_0x3d640b=_0x5d9f3d['getPermissions'](_0x147c00['channelId'])['modifyAll'];return _0x49c46a&&_0x6640e3||!_0x49c46a&&_0x3d640b;}),this['bind']('isRemovable')['to'](_0x147c00,'isRemovable',_0x5d9f3d,'_permissions',_0x3bd01a=>{const _0x3af208=_0x5d9f3d['getPermissions'](_0x147c00['channelId'])['write'],_0x456704=_0x5d9f3d['getPermissions'](_0x147c00['channelId'])['modifyAll'];return _0x49c46a&&_0x3af208||_0x3bd01a&&_0x243bcc||!_0x49c46a&&_0x456704&&!_0x243bcc;}),this['bind']('isReadOnly')['to'](_0x147c00,'isReadOnly'),this['_repository']=_0x5d9f3d;}get['weight'](){return Math['max'](function(_0x51f454){const _0x38c1e8=document['createElement']('div');return _0x38c1e8['innerHTML']=_0x51f454,_0x38c1e8['textContent']['length'];}(this['content']),0xc8);}['update'](_0x26b630){const {threadId:_0x3ebad8,id:_0x539a0d}=this;if(!this['_repository']['hasCommentThread'](_0x3ebad8))throw new _0x18900f('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3897ac}=this['_repository']['getCommentThread'](_0x3ebad8);this['_repository']['fire'](bt('updateComment',_0x3897ac,_0x3ebad8),{'channelId':_0x3897ac,'threadId':_0x3ebad8,'commentId':_0x539a0d,..._0x26b630});}['setAttribute'](_0x175ed0,_0x760feb){const _0x8ed319=It(this['attributes']);At(_0x8ed319,_0x175ed0,_0x760feb),this['update']({'attributes':_0x8ed319});}['removeAttribute'](_0x22140a){const _0x5e496b=It(this['attributes']);yt(_0x5e496b,_0x22140a),this['update']({'attributes':_0x5e496b});}['remove'](_0x2ba8f1={}){if(!_0x2ba8f1['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x36cb61,id:_0x3703f0}=this;if(!this['_repository']['hasCommentThread'](_0x36cb61))throw new _0x18900f('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x54488c}=this['_repository']['getCommentThread'](_0x36cb61);this['_repository']['fire'](bt('removeComment',_0x54488c,_0x36cb61),{'channelId':_0x54488c,'threadId':_0x36cb61,'commentId':_0x3703f0,..._0x2ba8f1});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x652f21,..._0x9ede47){for(const _0x1524f4 of _0x9ede47)void 0x0!==_0x1524f4&&(_0x652f21+=':'+String(_0x1524f4));return _0x652f21;}class J extends _0x4ef206{['refresh'](){const _0x319a3c=this['editor']['model']['document']['selection'];for(const _0x179931 of _0x319a3c['getRanges']())if(this['_hasContent'](_0x179931))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x9d04b=_0x567062()}={}){const _0x52f5b5=this['editor']['model'],_0x4f678c=[];for(const _0x1479d of _0x52f5b5['document']['selection']['getRanges']())this['_hasContent'](_0x1479d)&&_0x4f678c['push'](this['_trimToContent'](_0x1479d));_0x52f5b5['change'](_0x2fb7c2=>{for(const _0x3b5097 of _0x4f678c){const _0x242a75=_0x567062()['substr'](0x1,0x5),_0x22a3d6='comment:'+_0x9d04b+':'+_0x242a75;_0x2fb7c2['addMarker'](_0x22a3d6,{'range':_0x3b5097,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x4abdbe){for(const _0x31c5d9 of _0x4abdbe['getItems']())if(this['_itemIsContent'](_0x31c5d9))return!0x0;return!0x1;}['_itemIsContent'](_0x3cfb7e){return _0x3cfb7e['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3cfb7e)&&!_0x3cfb7e['is']('element','tableCell');}['_trimToContent'](_0x2f0939){const _0x4d6644=_0x3b4351=>!this['_itemIsContent'](_0x3b4351['item']),_0x2deea3=_0x2f0939['start']['getLastMatchingPosition'](_0x4d6644),_0x5a5568=_0x2f0939['end']['getLastMatchingPosition'](_0x4d6644,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2deea3,_0x5a5568);}}class P extends _0x399bf5{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a73ac){super(_0x4a73ac),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x324299=this['editor'],_0x267e24=_0x324299['model']['document']['selection'],_0x19f2fc=_0x107122(()=>this['refreshSelectedViews'](),0xa);_0x267e24['on']('change:range',(_0x26729d,_0x219365)=>{_0x219365['directChange']&&(_0x19f2fc['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x324299['editing']['view']['document'],'change:isFocused',(_0x2cea00,_0x39c4d2,_0x2fe01a)=>{_0x2fe01a&&_0x19f2fc();}),this['listenTo'](_0x324299['ui']['focusTracker'],'change:isFocused',(_0x283f23,_0xa6ed78,_0x16acdc)=>{_0x16acdc||_0x324299['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x306eec=>this['_editorAnnotationsData']['has'](_0x306eec['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x41334c){if(this['_editorAnnotations']['has'](_0x41334c['view']))return;this['_editorAnnotations']['add'](_0x41334c['view']),this['editor']['ui']['focusTracker']['add'](_0x41334c['view']['element']);const _0x4a074f=this['editor']['plugins']['get'](N);this['listenTo'](_0x4a074f['collection'],'remove',(_0x3cfcf4,_0x32b17c)=>{this['editor']['ui']['focusTracker']['remove'](_0x32b17c['view']['element']),this['_editorAnnotations']['delete'](_0x32b17c['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x12e929){if('function'!=typeof _0x12e929)throw new _0x18900f('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x12e929);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x5526a8,annotations:_0x588d4f}){const _0x124d38=[],_0x560314=this['editor']['model']['document']['selection'],_0x1231e4=Array['from'](_0x560314['getRanges']());for(const [_0xe3d896,_0x50dbb0]of this['_editorAnnotationsData']){const _0x10bc1e=_0x5718d9(_0x50dbb0),_0x16c34d=_0x588d4f['getByInnerView'](_0xe3d896);_0x10bc1e&&_0x16c34d&&_0x124d38['push']({'annotation':_0x16c34d,'range':_0x10bc1e});}function _0x5718d9(_0x3333e2){for(const _0x58a6af of _0x3333e2)for(const _0x117401 of _0x1231e4)if(_0x58a6af['containsRange'](_0x117401,!_0x560314['isCollapsed']))return _0x58a6af;return null;}return _0x124d38['sort']((_0x157d4c,_0x66a9b4)=>{const _0x1cc17=_0x157d4c['range'],_0x500391=_0x66a9b4['range'];if(!_0x1cc17['isEqual'](_0x500391)){if(_0x1cc17['containsRange'](_0x500391,!0x0))return 0x1;if(_0x500391['containsRange'](_0x1cc17,!0x0))return-0x1;}return _0x157d4c['annotation']==_0x5526a8?-0x1:_0x66a9b4['annotation']==_0x5526a8?0x1:0x0;})['map'](_0x12ccce=>_0x12ccce['annotation']);}get['_editorAnnotationsData'](){const _0xb2531=new Map();for(const _0x41f7d5 of Array['from'](this['_dataCollectors']))for(const [_0x21261d,_0x3fa4f6]of _0x41f7d5())_0xb2531['set'](_0x21261d,_0x3fa4f6);return _0xb2531;}}class st extends _0x399bf5{['afterInit'](){const _0x4bf6bc=this['editor'];if(!_0x4bf6bc['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4bf6bc['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x399bf5{constructor(_0x53abc5){super(_0x53abc5),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x5ebf95=this['editor'],_0x516a5d=_0x5ebf95['commands']['get']('importWord'),_0x254a37=_0x5ebf95['plugins']['get'](it);_0x516a5d&&(_0x516a5d['on']('execute',(_0x5a59ee,[,_0x33043a])=>{_0x33043a['collaboration_features']={'comments':!0x0,'user_id':_0x254a37['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x516a5d,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x30cf11,_0x1b0f43){const {comment_threads:_0x3b7bc0}=_0x1b0f43;_0x3b7bc0&&_0x3b7bc0['forEach'](({thread_id:_0x44ab39,comments:_0x2fbcae,is_resolved:_0x2f8de9})=>{const _0x2cc13a=new Date(),_0x374cd0=_0x2fbcae['map'](({author:_0x2fcd48,content:_0x4d24c4,created_at:_0xbea17f})=>({'content':_0x4d24c4,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x2cc13a,'attributes':{'@external':{'authorName':_0x2fcd48,'createdAt':_0xbea17f?new Date(_0xbea17f):new Date(),'source':'importWord'}}})),_0x3a9215=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3a9215,'threadId':_0x44ab39,'comments':_0x374cd0,'resolvedAt':_0x2f8de9?_0x2cc13a:null});});}}class at extends _0x399bf5{constructor(_0x4a8f6f){super(_0x4a8f6f),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5ed966=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5ed966,'contentInsertion',(_0x4557d8,_0xb05a1d)=>this['_removeMarkersWithoutThreads'](_0xb05a1d['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xb39e65){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xb39e65;const _0x35863f=this['editor']['plugins']['get']('CommentsRepository');for(const _0x9dd2c6 of _0xb39e65['keys']()){const [_0x44fd77,_0xcf9964]=_0x9dd2c6['split'](':');'comment'!=_0x44fd77||_0x35863f['hasCommentThread'](_0xcf9964)||_0xb39e65['delete'](_0x9dd2c6);}return _0xb39e65;}['_registerMarkerInClipboardPipeline'](){const _0x3d2804=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1893f8=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1893f8&&_0x3d2804['_registerMarkerToCopy']('comment',_0x1893f8);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x3053d2){switch(_0x3053d2){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x399bf5{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x373099,_0x2e1f34)=>{if(!_0x2e1f34['options']['showCommentHighlights'])return null;if(_0x2e1f34['options']['ignoreResolvedComments']){const {id:_0x25bb99}=er(_0x373099['markerName']),_0x3e1e81=this['editor']['plugins']['get'](o)['getCommentThread'](_0x25bb99);if(_0x3e1e81&&_0x3e1e81['isResolved']&&_0x373099['item'])return _0x2e1f34['consumable']['consume'](_0x373099['item'],'addMarker:'+_0x373099['markerName']),_0x2e1f34['consumable']['consume'](_0x373099['item'],'removeMarker:'+_0x373099['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x380060=>{_0x380060['on']('addMarker:comment',(_0x5e66f1,_0x55369a,_0x4b7871)=>{if(!_0x4b7871['options']['showCommentHighlights'])return;const _0x39b13a=_0x55369a['item'];if(!_0x39b13a)return;const _0x5e2560=_0x4b7871['mapper']['toViewElement'](_0x39b13a);this['editor']['model']['schema']['isObject'](_0x39b13a)&&_0x5e2560&&!_0x5e2560['getCustomProperty']('widget')&&_0x5e2560['is']('containerElement')&&_0x4ee768(_0x5e2560,_0x4b7871['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x17faa7,{writer:_0xf64d19,options:_0xb85309})=>{if(!_0xb85309['showCommentHighlights'])return null;const _0xcffbc5=_0xf64d19['createContainerElement']('div'),_0x3d0ea8=_0xf64d19['createEmptyElement']('hr');return _0xf64d19['addClass']('ck-horizontal-line',_0xcffbc5),_0xf64d19['insert'](_0xf64d19['createPositionAt'](_0xcffbc5,0x0),_0x3d0ea8),_0xcffbc5;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x480179,{writer:_0x2d5b11,options:_0x17636a})=>{if(!_0x17636a['showCommentHighlights'])return null;const _0x3a5e63=_0x2d5b11['createContainerElement']('span'),_0x25a4a0=_0x2d5b11['createEmptyElement']('img');return _0x2d5b11['addClass']('image-inline',_0x3a5e63),_0x2d5b11['insert'](_0x2d5b11['createPositionAt'](_0x3a5e63,0x0),_0x25a4a0),_0x3a5e63;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x497a08,{writer:_0x29e12a,options:_0x12c717})=>{if(_0x12c717['showCommentHighlights'])return _0x29e12a['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x42b3e1,_0x2d880a,_0x450cc4)=>{_0x450cc4['options']['showCommentHighlights']&&_0x42b3e1['stop']();},{'priority':'high'});}}class r extends _0x399bf5{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xde5c77){super(_0xde5c77),this['set']('isThreadsLoadingPaused',!0x0),_0xde5c77['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x1da277,_0x2c22c1,_0x3ba786,_0x3df4ec)=>{const _0x247afc=_0xde5c77['plugins']['get'](o),_0x45562b=_0x3ba786?er(_0x3ba786)['id']:null;_0xde5c77['model']['change'](()=>{if(_0x45562b){const _0x5d897a=this['getAllMarkersForId'](_0x45562b);for(const _0x3ff46a of _0x5d897a)_0xde5c77['editing']['reconvertMarker'](_0x3ff46a);}if(_0x3df4ec){const {id:_0x12e806}=er(_0x3df4ec),_0x1e73ea=_0x247afc['getCommentThread'](_0x12e806);if(_0x1e73ea&&!_0x1e73ea['isAttached'])return;const _0x1ff81d=this['getAllMarkersForId'](_0x12e806);for(const _0x521f3b of _0x1ff81d)_0xde5c77['editing']['reconvertMarker'](_0x521f3b);}}),_0x45562b&&this['scrollToThreadMarker'](_0x45562b);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x395b78=this['editor'],_0x5f2f55=_0x395b78['plugins']['get'](o),_0x4587fc=_0x395b78['config']['get']('collaboration.channelId'),_0x4797fc=_0x5f2f55['getCommentThreads']()['filter'](_0x45f0bf=>_0x45f0bf['channelId']!==_0x4587fc);_0x395b78['commands']['add']('addCommentThread',new J(_0x395b78)),this['listenTo'](_0x395b78,'change:isReadOnly',(_0x1bec73,_0x3c453e,_0x100fc0)=>{_0x5f2f55['switchReadOnly'](_0x100fc0,_0x395b78['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5f2f55,ft('addCommentThread',_0x4587fc),(_0x198880,{threadId:_0x30aac5})=>{const _0x516130=this['editor']['plugins']['get'](o)['getCommentThread'](_0x30aac5);_0x516130&&_0x516130['unlinkedAt']&&this['_attachArchivedThread'](_0x30aac5);}),this['listenTo'](_0x5f2f55,ft('removeCommentThread',_0x4587fc),(_0x110bc0,{threadId:_0x4966d1})=>{_0x395b78['model']['enqueueChange']({'isUndoable':!0x1},_0x475d77=>{const _0x20e87b=this['getAllMarkersForId'](_0x4966d1);for(const _0x53a445 of _0x20e87b)_0x475d77['removeMarker'](_0x53a445);});}),this['listenTo'](_0x5f2f55,ft('resolveCommentThread',_0x4587fc),(_0x1e0a61,{threadId:_0x2e771c})=>{(this['_reconvertMarkers'](_0x2e771c),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x2e771c)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5f2f55,ft('reopenCommentThread',_0x4587fc),(_0x8ba51f,{threadId:_0x3eb8dc})=>{this['_reconvertMarkers'](_0x3eb8dc);},{'priority':'low'}),this['listenTo'](_0x5f2f55,ft('addComment',_0x4587fc),(_0x25a77d,{threadId:_0x19b8b1,isFromAdapter:_0x2af42c})=>{const _0x522c44=this['getAllMarkersForId'](_0x19b8b1);if(_0x2af42c||0x0==_0x522c44['length']||!_0x5f2f55['hasCommentThread'](_0x19b8b1))return;0x1===_0x5f2f55['getCommentThread'](_0x19b8b1)['length']&&_0x395b78['model']['enqueueChange']({'isUndoable':!0x1},_0x1a1ecf=>{for(const _0xa7087 of _0x522c44)_0x1a1ecf['updateMarker'](_0xa7087,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4797fc);}['afterInit'](){!async function(_0x369b7a){const _0x3bd0ad=_0x4705fa([0x47,0x64,0x6d,0x56,0x74,0x53,0x4c,0x44,0x4f,0x79,0x45,0x31,0x6a,0x42,0x76,0x70,0x5a,0x78,0x77,0x32,0x73,0x37,0x48,0x4d,0x30,0x7a,0x54,0x67,0x34,0x65,0x6b,0x58,0x52,0x50,0x43,0x59,0x6c,0x51,0x33,0x63,0x6e,0x38,0x66,0x62,0x71,0x4a,0x61,0x6f,0x68,0x35,0x46,0x41,0x57,0x4b,0x49,0x36,0x69,0x55,0x39,0x72,0x4e,0x75]),_0x2b81e2=0x4ed00411,_0x220b0a=0x4ed75b11^_0x2b81e2,_0x2651e0=window[_0x4705fa([0x44,0x61,0x74,0x65])][_0x4705fa([0x6e,0x6f,0x77])](),_0xd078c9=_0x369b7a[_0x4705fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa3f69=new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39beda=>{_0xd078c9[_0x4705fa([0x6f,0x6e,0x63,0x65])](_0x4705fa([0x72,0x65,0x61,0x64,0x79]),_0x39beda);}),_0x44af0e={[_0x4705fa([0x6b,0x74,0x79])]:_0x4705fa([0x45,0x43]),[_0x4705fa([0x75,0x73,0x65])]:_0x4705fa([0x73,0x69,0x67]),[_0x4705fa([0x63,0x72,0x76])]:_0x4705fa([0x50,0x2d,0x32,0x35,0x36]),[_0x4705fa([0x78])]:_0x4705fa([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4705fa([0x79])]:_0x4705fa([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4705fa([0x61,0x6c,0x67])]:_0x4705fa([0x45,0x53,0x32,0x35,0x36])},_0xf041ca=_0xd078c9[_0x4705fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4705fa([0x67,0x65,0x74])](_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x50a638(){let _0x50c381,_0x4d8376=null,_0x4ce6c6=null;try{if(_0xf041ca==_0x4705fa([0x47,0x50,0x4c]))return _0x4705fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50c381=_0x2ef506(),!_0x50c381)return _0x4705fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50c381[_0x4705fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ce6c6=_0x4a27f0(_0x50c381[_0x4705fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50c381[_0x4705fa([0x6a,0x74,0x69])])),await _0x2359e8()?_0x44109e()?_0x1064bd()?_0x4705fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x422911()?(_0x50c381[_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4705fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d8376=_0x3d3715(_0x4705fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50c381[_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4705fa([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d8376=_0x3d3715(_0x4705fa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31b56d()):_0x4705fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4705fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4705fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x40f2cf){return _0x4705fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1064bd(){const _0x2f4fe6=[_0x4705fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4705fa([0x74,0x72,0x69,0x61,0x6c])][_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c381[_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2651e0/0x3e8:0xe10*_0x220b0a;return _0x50c381[_0x4705fa([0x65,0x78,0x70])]<_0x2f4fe6;}function _0x44109e(){const _0xa32163=_0x50c381[_0x4705fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa32163)return!0x1;if(_0xa32163[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4705fa([0x2a])))return!0x0;if(_0xa32163[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4705fa([0x43,0x4d,0x54])))return!0x0;if(_0xa32163[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4705fa([0x52,0x43,0x4d,0x54]))){if(_0x19167e())return!0x0;if(_0xc0ab2f()||_0x2e283e())return!0x0;}return!0x1;}function _0x422911(){const _0x56d725=_0x50c381[_0x4705fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56d725||0x0==_0x56d725[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d6405}=new URL(window[_0x4705fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56d725[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d6405))return!0x0;const _0x57b236=_0x3d6405[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])](_0x4705fa([0x2e]));return _0x56d725[_0x4705fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5e8a7=>_0xe5e8a7[_0x4705fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4705fa([0x2a])))[_0x4705fa([0x6d,0x61,0x70])](_0x1c2f05=>_0x1c2f05[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])](_0x4705fa([0x2e])))[_0x4705fa([0x73,0x6f,0x6d,0x65])](_0x4a363d=>_0x57b236[_0x4705fa([0x65,0x76,0x65,0x72,0x79])]((_0x46a850,_0x6696ff)=>_0x4a363d[_0x6696ff]===_0x46a850||_0x4a363d[_0x6696ff]===_0x4705fa([0x2a])));}function _0x31b56d(){return _0x4d8376&&_0x4ce6c6?new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xaad64d,_0x5009fc)=>{_0x4d8376[_0x4705fa([0x74,0x68,0x65,0x6e])](_0xaad64d,_0x5009fc),_0x4ce6c6[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x25ffb4=>{_0x25ffb4!=_0x4705fa([0x56,0x61,0x6c,0x69,0x64])&&_0xaad64d(_0x25ffb4);},_0x5009fc);}):_0x4d8376||_0x4ce6c6||_0x4705fa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a27f0(_0x3a8709,_0x5d865d){return new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b2d50=>{if(_0x58c726())return _0x1b2d50(_0x4705fa([0x56,0x61,0x6c,0x69,0x64]));_0x347dc9(),_0xd078c9[_0x4705fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4705fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d6586=!0x1;const _0x579534=_0x567062();function _0x10493a(_0x413603){return!!_0x413603&&(typeof _0x413603===_0x4705fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x413603===_0x4705fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x413603[_0x4705fa([0x74,0x68,0x65,0x6e])]===_0x4705fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x413603[_0x4705fa([0x63,0x61,0x74,0x63,0x68])]===_0x4705fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59ed4c(_0xaff755){_0x299a7f(_0xaff755)[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x17ec05=>{if(!_0x17ec05||_0x17ec05[_0x4705fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4705fa([0x6f,0x6b]))return _0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c9532(_0x5edaec(_0x579534+_0x5d865d))!=_0x17ec05[_0x4705fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4705fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x1761f7=>(_0x532619(),_0x1761f7),()=>{const _0x114c2f=_0x4d0cd3();return null==_0x114c2f?(_0x532619(),_0x4705fa([0x56,0x61,0x6c,0x69,0x64])):_0x4705fa(_0x2651e0-_0x114c2f>(0x6adc8011^_0x2b81e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x1b2d50)[_0x4705fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b2d50(_0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15e423=0x4ee6ea91^_0x2b81e2;function _0x532619(){const _0xf26e63=_0x4705fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c9532(_0x5edaec(_0x3a8709)),_0x3a4d14=_0x50a064(_0x3c9532(window[_0x4705fa([0x4d,0x61,0x74,0x68])][_0x4705fa([0x63,0x65,0x69,0x6c])](_0x2651e0/_0x15e423)));window[_0x4705fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4705fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf26e63,_0x3a4d14);}function _0x4d0cd3(){const _0x31ff41=_0x4705fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c9532(_0x5edaec(_0x3a8709)),_0x180991=window[_0x4705fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4705fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ff41);return _0x180991?window[_0x4705fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a064(_0x180991),0x10)*_0x15e423:null;}function _0x299a7f(_0x209f1c){return new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b7d25,_0x4b9af2)=>{_0x209f1c[_0x4705fa([0x74,0x68,0x65,0x6e])](_0x1b7d25,_0x4b9af2),window[_0x4705fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b9af2,0x4ed1d0d1^_0x2b81e2);});}}_0xd078c9[_0x4705fa([0x6f,0x6e])](_0x4705fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c6f54,_0x1caf22)=>{if(_0x1caf22[0x0]!=_0x3a8709)return _0x1b2d50(_0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1caf22[0x1]={..._0x1caf22[0x1],[_0x4705fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x579534};},{[_0x4705fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4705fa([0x68,0x69,0x67,0x68])}),_0xd078c9[_0x4705fa([0x6f,0x6e])](_0x4705fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44a2fc=>{_0x10493a(_0x44a2fc[_0x4705fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d6586=!0x0,_0x59ed4c(_0x44a2fc[_0x4705fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4705fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4705fa([0x6c,0x6f,0x77])}),_0xa3f69[_0x4705fa([0x74,0x68,0x65,0x6e])](()=>{_0x3d6586||_0x1b2d50(_0x4705fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58c726(){return _0xd078c9[_0x4705fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4705fa([0x76,0x69,0x65,0x77])][_0x4705fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4705fa([0x61,0x75,0x74,0x6f]);}function _0x347dc9(){_0xd078c9[_0x4705fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4705fa([0x76,0x69,0x65,0x77])][_0x4705fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4705fa([0x61,0x75,0x74,0x6f]);}}function _0x3d3715(_0x1bead7){const _0x482d17=[new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x321f79=>setTimeout(_0x321f79,0x4ed93add^_0x2b81e2)),_0xa3f69[_0x4705fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7b2b5e=>{let _0x1b20e5=0x0;_0xd078c9[_0x4705fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x4705fa([0x6f,0x6e])](_0x4705fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a6984,_0x3f6e89)=>{_0x3f6e89[0x0][_0x4705fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b20e5++,_0x1b20e5==(0x4ed005e9^_0x2b81e2)&&(_0x7b2b5e(),_0x4a6984[_0x4705fa([0x6f,0x66,0x66])]());});}))];return window[_0x4705fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4705fa([0x72,0x61,0x63,0x65])](_0x482d17)[_0x4705fa([0x74,0x68,0x65,0x6e])](()=>_0x1bead7);}async function _0x5a02e0(){await _0xa3f69,_0xd078c9[_0x4705fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x4705fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26561a,_0xd078c9[_0x4705fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x4705fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26561a,_0xd078c9[_0x4705fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4705fa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19167e(){return _0x2d756a(_0x4705fa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ae891(_0x4705fa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4705fa([0x73,0x74,0x61,0x74,0x65])]==_0x4705fa([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xc0ab2f(){return _0x2d756a(_0x4705fa([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2e283e(){return _0x2d756a(_0x4705fa([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xe3b07d(_0x486a83){const _0x142c0d=_0x4f2b2c();_0xd078c9[_0x142c0d]=_0x4705fa([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x486a83,_0x486a83!=_0x4705fa([0x56,0x61,0x6c,0x69,0x64])&&_0x5a02e0();}function _0x4f2b2c(){const _0x44fd94=window[_0x4705fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4705fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4705fa([0x6e,0x6f,0x77])]())[_0x4705fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4705fa([0x2e]),'');let _0x587a2a=_0x4705fa([0x47]);for(let _0xa5aa77=0x0;_0xa5aa77<_0x44fd94[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa5aa77+=0x2){let _0x504911=window[_0x4705fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44fd94[_0x4705fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa5aa77,_0xa5aa77+0x2));_0x504911>=_0x3bd0ad[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x504911-=_0x3bd0ad[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x587a2a+=_0x3bd0ad[_0x504911];}return _0x587a2a;}function _0x2ef506(){const _0x5df94b=_0xf041ca[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])](_0x4705fa([0x2e]));if(0x3!=_0x5df94b[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5add69(_0x5df94b[0x1]);function _0x5add69(_0x3ddfcb){const _0x1dfcf8=_0x32581c(_0x3ddfcb);return _0x1dfcf8&&_0x2288ef()?_0x1dfcf8:null;function _0x2288ef(){const _0x3f3025=_0x1dfcf8[_0x4705fa([0x6a,0x74,0x69])],_0x10fc97=window[_0x4705fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f3025[_0x4705fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f3025[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb85177={..._0x1dfcf8,[_0x4705fa([0x6a,0x74,0x69])]:_0x3f3025[_0x4705fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f3025[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb85177[_0x4705fa([0x76,0x63])],_0x5edaec(_0xb85177)==_0x10fc97;}}}async function _0x2359e8(){let _0x57c397=!0x0;try{const _0x47b9ed=_0xf041ca[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])](_0x4705fa([0x2e])),[_0x3d9c65,_0x110d0c,_0x61cf6a]=_0x47b9ed;return _0x4b05d5(_0x3d9c65),await _0x409808(_0x3d9c65,_0x110d0c,_0x61cf6a),_0x57c397;}catch(_0x2a727e){return!0x1;}function _0x4b05d5(_0x16ac9c){const _0x5e0044=_0x32581c(_0x16ac9c);_0x5e0044&&_0x5e0044[_0x4705fa([0x61,0x6c,0x67])]==_0x4705fa([0x45,0x53,0x32,0x35,0x36])||(_0x57c397=!0x1);}async function _0x409808(_0xfebbc,_0x2a8f6e,_0x276499){const _0x10a9cb=window[_0x4705fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4705fa([0x66,0x72,0x6f,0x6d])](_0x58514d(_0x276499),_0x17ca71=>_0x17ca71[_0x4705fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39ff6e=new window[(_0x4705fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4705fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfebbc+_0x4705fa([0x2e])+_0x2a8f6e),_0x4d9e05=window[_0x4705fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4705fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d9e05)return;const _0x555928=await _0x4d9e05[_0x4705fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4705fa([0x6a,0x77,0x6b]),_0x44af0e,{[_0x4705fa([0x6e,0x61,0x6d,0x65])]:_0x4705fa([0x45,0x43,0x44,0x53,0x41]),[_0x4705fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4705fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4705fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d9e05[_0x4705fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4705fa([0x6e,0x61,0x6d,0x65])]:_0x4705fa([0x45,0x43,0x44,0x53,0x41]),[_0x4705fa([0x68,0x61,0x73,0x68])]:{[_0x4705fa([0x6e,0x61,0x6d,0x65])]:_0x4705fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x555928,_0x10a9cb,_0x39ff6e)||(_0x57c397=!0x1);}}function _0x32581c(_0x394ac1){return _0x394ac1[_0x4705fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4705fa([0x65,0x79]))?JSON[_0x4705fa([0x70,0x61,0x72,0x73,0x65])](_0x58514d(_0x394ac1)):null;}function _0x58514d(_0x4451fc){return window[_0x4705fa([0x61,0x74,0x6f,0x62])](_0x4451fc[_0x4705fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4705fa([0x2b]))[_0x4705fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4705fa([0x2f])));}function _0x5edaec(_0x3bfc1a){let _0x1cf241=0x1505;function _0x344974(_0x17308b){for(let _0x1ee619=0x0;_0x1ee619<_0x17308b[_0x4705fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ee619++){const _0x585e61=_0x17308b[_0x4705fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ee619);_0x1cf241=(_0x1cf241<<0x5)+_0x1cf241+_0x585e61,_0x1cf241&=_0x1cf241;}}function _0x528d90(_0x1ba392){Array[_0x4705fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ba392)?_0x1ba392[_0x4705fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x528d90):_0x1ba392&&typeof _0x1ba392==_0x4705fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4705fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ba392)[_0x4705fa([0x73,0x6f,0x72,0x74])]()[_0x4705fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf71e3d,_0x52d806])=>{_0x344974(_0xf71e3d),_0x528d90(_0x52d806);}):_0x344974(window[_0x4705fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ba392));}return _0x528d90(_0x3bfc1a),_0x1cf241>>>0x0;}function _0x3c9532(_0x3926ac){return _0x3926ac[_0x4705fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4705fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4705fa([0x30]));}function _0x50a064(_0x3ef6c2){return _0x3ef6c2[_0x4705fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4705fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4705fa([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d756a(_0x42b6d5){return _0xd078c9[_0x4705fa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4705fa([0x68,0x61,0x73])](_0x42b6d5);}function _0x1ae891(_0x3863c1){return _0xd078c9[_0x4705fa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4705fa([0x67,0x65,0x74])](_0x3863c1);}function _0x26561a(){}function _0x4705fa(_0x1d25a3){return _0x1d25a3['map'](_0x5bb069=>String['fromCharCode'](_0x5bb069))['join']('');}_0xe3b07d(await _0x50a638());}(this);}['destroy'](){const _0x25f958=this['editor']['plugins']['get'](o),_0x4ebad2=this['editor']['config']['get']('collaboration.channelId');for(const _0x4c53ed of _0x25f958['getCommentThreads']({'channelId':_0x4ebad2}))_0x25f958['_detachCommentThread'](_0x4c53ed['id']),_0x25f958['_threads']['delete'](_0x4c53ed['id']);super['destroy']();}['hasMarkerForId'](_0x1d3d78){return this['getAllMarkersForId'](_0x1d3d78)['length']>0x0;}['getAllMarkersForId'](_0x380e35){const _0x5ce272=[];for(const _0x2b2f58 of this['editor']['model']['markers'])_0x2b2f58['name']['startsWith']('comment:'+_0x380e35)&&_0x5ce272['push'](_0x2b2f58);return _0x5ce272;}['scrollToThreadMarker'](_0x21f1df){const _0x1d5615=this['_getTargetForId'](_0x21f1df);_0x1d5615&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x21f1df&&rt({'target':_0x1d5615[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1e05f5){this['editor']['model']['change'](()=>{for(const _0x40d11f of this['getAllMarkersForId'](_0x1e05f5))this['editor']['editing']['reconvertMarker'](_0x40d11f);});}['_attachArchivedThread'](_0x3208e9){const _0x2b3538=this['editor']['plugins']['get'](o),_0x1f382b=this['editor']['plugins']['get'](P),_0x24f40d=_0x2b3538['getCommentThread'](_0x3208e9);if(!_0x24f40d['isAttached']){const _0x549f43=_0x24f40d['attachTo'](()=>this['_getTargetForId'](_0x24f40d['id']));_0x1f382b['registerAnnotation'](_0x549f43),_0x24f40d['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x453cb9=this['editor'],_0x3212a1=_0x453cb9['plugins']['get'](it);_0x453cb9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x5de160,_0x4ee1f0)=>{const {id:_0x3b1f1a}=er(_0x5de160['markerName']),_0x4c98c7=_0x453cb9['plugins']['get'](o)['getCommentThread'](_0x3b1f1a),_0x1f2363=this['activeMarker']&&er(this['activeMarker'])['id']===_0x3b1f1a;let _0x36473c;if(_0x4c98c7&&_0x4c98c7['isResolved']&&!_0x1f2363&&_0x5de160['item'])return _0x4ee1f0['consumable']['consume'](_0x5de160['item'],'addMarker:'+_0x5de160['markerName']),_0x4ee1f0['consumable']['consume'](_0x5de160['item'],'removeMarker:'+_0x5de160['markerName']),null;const _0x5e6f03=['ck-comment-marker'];return _0x1f2363&&_0x5e6f03['push']('ck-comment-marker--active'),_0x36473c=_0x4c98c7&&_0x4c98c7['length']?_0x4c98c7['comments']['first']['author']['id']:_0x3212a1['me']['id'],{'classes':_0x5e6f03,'attributes':{'data-comment':_0x3b1f1a,'data-author-id':_0x36473c}};}}),_0x453cb9['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x97f46b,{options:_0x256608})=>{if(_0x256608['showCommentHighlights'])return null;const _0x71d1be=_0x453cb9['plugins']['get'](o),_0x2b0d32=_0x453cb9['model']['markers']['get'](_0x97f46b),{id:_0x256bbd,part:_0x3d3c9a}=er(_0x97f46b);if(_0x2b0d32&&!_0x2b0d32['affectsData'])return null;if(_0x256608['ignoreResolvedComments']){const _0x520bca=_0x71d1be['getCommentThread'](_0x256bbd);if(_0x520bca&&_0x520bca['isResolved'])return null;}return{'group':'comment','name':_0x3d3c9a?_0x256bbd+':'+_0x3d3c9a:_0x256bbd};}}),_0x453cb9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x47c939,{writer:_0x38c85e})=>_0x38c85e['createElement']('$marker',{'data-name':'comment:'+_0x47c939['getAttribute']('id')})}),_0x453cb9['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2a9525=this['editor'],_0x2ec3c8=_0x2a9525['plugins']['get'](o),_0x4c50ab=new Set(),_0x580559=new Set();_0x2a9525['model']['document']['registerPostFixer'](_0x2d9b2b=>{let _0x2604d0=!0x1;for(const {name:_0x13924a,data:_0x1e1fa1}of _0x2a9525['model']['document']['differ']['getChangedMarkers']()){const {group:_0x9efd1d,id:_0x587049}=er(_0x13924a);let _0x3151bc=_0x1e1fa1['newRange'];if('comment'!==_0x9efd1d||!_0x3151bc)continue;const _0x412d77='$graveyard'===_0x3151bc['root']['rootName'];_0x412d77||(_0x3151bc=dt(_0x3151bc,_0x2a9525['model']),!_0x3151bc||_0x3151bc['isCollapsed']||!_0x1e1fa1['newRange']||_0x3151bc['isEqual'](_0x1e1fa1['newRange']))?_0x2a9525['model']['hasContent'](_0x3151bc)&&!_0x412d77?this['isThreadsLoadingPaused']?_0x4c50ab['add'](_0x13924a):this['_handleThreadMarker'](_0x13924a,_0x587049):(_0x580559['add'](_0x13924a),_0x4c50ab['delete'](_0x13924a),_0x2d9b2b['removeMarker'](_0x13924a),_0x2604d0=!0x0):(_0x2d9b2b['updateMarker'](_0x13924a,{'range':_0x3151bc}),_0x2604d0=!0x0);}return _0x2604d0;}),this['on']('change:isThreadsLoadingPaused',(_0x2f516a,_0x5dce7a,_0x2de635)=>{if(!_0x2de635&&_0x4c50ab['size'])for(const _0x582974 of _0x4c50ab){const {id:_0x41cda1}=er(_0x582974);_0x4c50ab['delete'](_0x582974),_0x2a9525['model']['markers']['get'](_0x582974)&&this['_handleThreadMarker'](_0x582974,_0x41cda1);}}),this['listenTo'](_0x2a9525['model']['document'],'change',()=>{for(const {name:_0x183495,data:{newRange:_0x5de2e1}}of _0x2a9525['model']['document']['differ']['getChangedMarkers']()){const {group:_0x28da25,id:_0x33eb0d}=er(_0x183495);if('comment'!==_0x28da25)continue;const _0xd3a17c=_0x2ec3c8['getCommentThread'](_0x33eb0d),_0x2b7c56=this['hasMarkerForId'](_0x33eb0d);_0xd3a17c&&(!_0xd3a17c['_hasTargetInContent']&&_0x5de2e1&&_0x2a9525['editing']['view']['once']('render',()=>{const _0x23b2cb=_0x2a9525['plugins']['get'](N),_0x38f99d=_0x2ec3c8['_threadToController']['get'](_0xd3a17c)['view'];_0x23b2cb['getByInnerView'](_0x38f99d)['refreshVisibility']();},{'priority':'low'}),_0xd3a17c['_hasTargetInContent']=_0x2b7c56||!!_0x5de2e1),_0x5de2e1||(_0x580559['add'](_0x183495),_0x4c50ab['delete'](_0x183495));}for(const _0x32b6dd of _0x580559){const {id:_0x4a8dfb}=er(_0x32b6dd),_0x2e0958=_0x2ec3c8['getCommentThread'](_0x4a8dfb);if(_0x4c50ab['delete'](_0x32b6dd),!_0x2e0958)continue;const _0xec774a=this['hasMarkerForId'](_0x4a8dfb);_0xec774a||_0x2e0958['isSubmitted']?_0xec774a||_0x2e0958['unlinkedAt']||_0x2e0958['setUnlinkedAt'](new Date()):_0x2e0958['remove']();}_0x580559['clear']();});}['_handleInitialThreads'](_0x5b8c83){_0x5b8c83['forEach'](_0x2996c6=>{_0x2996c6['unlinkedAt']&&this['_attachArchivedThread'](_0x2996c6['id']);});}['_getTargetForId'](_0x38af86){const _0x3c7626=this['editor'],_0x3441b8=this['getAllMarkersForId'](_0x38af86);return et(_0x3c7626['editing'],_0x3441b8);}['_getTextContext'](_0x278cb7){const _0x205efc=this['getAllMarkersForId'](_0x278cb7);let _0x457eda='',_0x200f23=!0x1;for(const _0x14ee0c of _0x205efc){const _0x5d2443=_0x14ee0c['getRange']();for(const _0xb50fef of Array['from'](_0x5d2443['getItems']()))_0xb50fef['is']('$textProxy')?(_0x457eda&&_0x200f23&&(_0x457eda+='\x20',_0x200f23=!0x1),_0x457eda+=_0xb50fef['data']):_0x200f23=!0x0;_0x200f23=!0x0;}return _0x457eda['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x163f34,_0x1fef0b){const _0x4f305a=this['editor'],_0x4b6b3b=_0x4f305a['plugins']['get'](o);let _0x1f5a5e=_0x4b6b3b['getCommentThread'](_0x1fef0b);const _0x35734e=_0x4f305a['config']['get']('collaboration.channelId'),_0x5bef7d=_0x4f305a['plugins']['get'](P);if(_0x1f5a5e&&(_0x1f5a5e['unlinkedAt']&&_0x1f5a5e['setUnlinkedAt'](null),_0x1f5a5e['isAttached']))return _0x1f5a5e;return!this['getAllMarkersForId'](_0x1fef0b)[0x0]['managedUsingOperations']?_0x4f305a['editing']['view']['once']('render',()=>{if(_0x4b6b3b['getCommentThread'](_0x1fef0b))return;const _0xb608c3=_0x4f305a['plugins']['get'](N);_0x1f5a5e=_0x4b6b3b['openNewCommentThread']({'channelId':_0x35734e,'threadId':_0x1fef0b,'target':()=>this['_getTargetForId'](_0x1fef0b),'context':{'type':'text','value':this['_getTextContext'](_0x1fef0b)}});const _0x541f0b=_0x4b6b3b['_threadToController']['get'](_0x1f5a5e)['view'],_0x545759=_0xb608c3['getByInnerView'](_0x541f0b);_0x545759&&_0x5bef7d['registerAnnotation'](_0x545759);},{'priority':'low'}):_0x4b6b3b['fetchCommentThread']({'channelId':_0x35734e,'threadId':_0x1fef0b})['then'](_0x1d90b1=>{if('destroyed'!==_0x4f305a['state']){if(_0x1f5a5e=_0x1d90b1,_0x1f5a5e&&!_0x1f5a5e['isAttached']){const _0x4ec3f7=_0x1f5a5e['attachTo'](()=>this['_getTargetForId'](_0x1fef0b));_0x5bef7d['registerAnnotation'](_0x4ec3f7),_0x1f5a5e['isResolved']&&this['_reconvertMarkers'](_0x1fef0b);}else{if(!_0x1f5a5e){const _0x2e62f3=this['getAllMarkersForId'](_0x1fef0b);_0x4f305a['model']['change'](_0x4d3f67=>{for(const _0x47ac1d of _0x2e62f3)_0x4d3f67['removeMarker'](_0x47ac1d);});}}}}),_0x1f5a5e;}['_handleThreadMarker'](_0x3e5213,_0x2b9ddb){const _0x4d4505=this['_attachMarkerToThread'](_0x3e5213,_0x2b9ddb);_0x4d4505&&!_0x4d4505['context']&&_0x4d4505['setContext']({'type':'text','value':this['_getTextContext'](_0x2b9ddb)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4a123c=this['editor'];ot(_0x4a123c['model'],({left:_0x20e9b9,entered:_0x56ba95})=>{for(const _0x1aa97d of _0x20e9b9)if(mt(_0x1aa97d)){_0x4a123c['ui']['ariaLiveAnnouncer']['announce'](S(_0x4a123c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x5a44a1 of _0x56ba95)if(mt(_0x5a44a1)){_0x4a123c['ui']['ariaLiveAnnouncer']['announce'](S(_0x4a123c['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x5ccfe8)));break;}});}}function ft(_0x303a56,_0xff31a0){return _0xff31a0?_0x303a56+':'+_0xff31a0:_0x303a56;}function er(_0x38d939){const _0x124e5b=_0x38d939['split'](':');return{'group':_0x124e5b[0x0],'id':_0x124e5b[0x1],'part':_0x124e5b[0x2]};}function dt(_0x6828a3,_0x2fa90b){const _0x40de15=_0x2fa90b['schema'],_0x1a2273=_0x2fa90b['createRange'](_0x6828a3['start']);for(const _0x3ea38a of _0x6828a3['getWalker']()){const {type:_0x45eec0,item:_0xc1215e,nextPosition:_0x1255ed}=_0x3ea38a;if('text'===_0x45eec0||_0x40de15['isObject'](_0xc1215e)){const _0x20970f=_0x2fa90b['createPositionBefore'](_0xc1215e);_0x1a2273['isCollapsed']&&(_0x1a2273['start']=_0x20970f),_0x1a2273['end']=_0x1255ed;}}return _0x1a2273;}function mt(_0x4c0dca){return'comment'===er(_0x4c0dca['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x399bf5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x4b7397=this['editor'],_0x281035=_0x4b7397['plugins']['get'](o),_0x353b0b=_0x4b7397['plugins']['get'](r),_0x4f3988=_0x4b7397['plugins']['get'](N),_0x29de21=_0x4b7397['plugins']['get'](P);_0x4b7397['ui']['componentFactory']['add']('comment',()=>{const _0x11091d=this['_createUIButton'](_0x2060e4);return _0x11091d['tooltip']=!0x0,_0x11091d;}),_0x4b7397['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x234f00)),_0x29de21['addSourceCollector'](()=>{const _0x2aba42=[];for(const [_0x33714a,_0x50dd99]of _0x281035['_threadToController']){const _0x4d8db8=_0x353b0b['getAllMarkersForId'](_0x33714a['id']),_0x219e66=_0x4d8db8['map'](_0xc09e60=>_0xc09e60['getRange']());_0x4d8db8['length']>0x0&&_0x2aba42['push']([_0x50dd99['view'],_0x219e66]);}return _0x2aba42;}),this['listenTo'](_0x4f3988,'change:activeAnnotations',(_0x4b8d7d,_0x3ee790,_0xcdf82a)=>{const _0x4351a1=Array['from'](_0xcdf82a)['map'](_0x4e15a2=>_0x4e15a2['innerView'])['find'](_0x3fe936=>_0x281035['_viewToController']['has'](_0x3fe936));if(!_0x4351a1)return void(_0x353b0b['activeMarker']=null);const _0xd902d2=_0x281035['_viewToController']['get'](_0x4351a1)['model']['id'],_0x2f1ee8='comment:'+_0xd902d2;_0xd902d2&&_0x353b0b['hasMarkerForId'](_0xd902d2)?_0x353b0b['activeMarker']=_0x2f1ee8:_0x353b0b['activeMarker']&&(_0x353b0b['activeMarker']=null);}),this['listenTo'](_0x281035,'removeCommentThread',(_0x3c6d4e,{threadId:_0x1d6d65,isFromAdapter:_0x5c349f})=>{!_0x5c349f&&_0x4b7397['ui']['focusTracker']['isFocused']&&_0x353b0b['hasMarkerForId'](_0x1d6d65)&&_0x4b7397['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x281035,'addComment',(_0x2fc0ab,{threadId:_0x424b73,isFromAdapter:_0x44eea6})=>{if(_0x44eea6||!_0x353b0b['hasMarkerForId'](_0x424b73)||!_0x281035['hasCommentThread'](_0x424b73))return;0x1===_0x281035['getCommentThread'](_0x424b73)['length']&&(_0x4b7397['editing']['view']['focus'](),_0x2fc0ab['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x45c6e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x464b5a;for(const _0x482247 in _0x45c6e4){const _0x2b0cb1=_0x482247,_0x1a34a8=_0x45c6e4[_0x2b0cb1];if('commentsLicenseKeyValid'==_0x1a34a8||'commentsLicenseKeyInvalid'==_0x1a34a8||'commentsLicenseKeyExpired'==_0x1a34a8||'commentsLicenseKeyDomainLimit'==_0x1a34a8||'commentsLicenseKeyNotAllowed'==_0x1a34a8||'commentsLicenseKeyEvaluationLimit'==_0x1a34a8||'commentsLicenseKeyTrialLimit'==_0x1a34a8||'commentsLicenseKeyUsageLimit'==_0x1a34a8){delete _0x45c6e4[_0x2b0cb1],_0x464b5a=_0x1a34a8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x464b5a&&_0x45c6e4['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x464b5a&&_0x45c6e4['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x464b5a&&_0x45c6e4['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x464b5a&&_0x45c6e4['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x464b5a&&_0x45c6e4['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x464b5a&&_0x45c6e4['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x464b5a&&_0x45c6e4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x4163db){const _0x1bbcb7=this['editor'],_0x2cf815=new _0x4163db(_0x1bbcb7['locale']),_0x2aef9e=_0x1bbcb7['commands']['get']('addCommentThread');return _0x2cf815['set']({'label':S(_0x1bbcb7['locale'],'Comment'),'icon':xt}),_0x2cf815['bind']('isEnabled')['to'](_0x2aef9e),this['listenTo'](_0x2cf815,'execute',()=>{_0x1bbcb7['editing']['view']['focus'](),_0x2aef9e['execute']();}),_0x2cf815;}}class s extends _0x399bf5{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1e8f3b){super(_0x1e8f3b),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2ede92,_0x267a7f,_0x47f454)=>{_0x47f454?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5ad897,_0x5c78ab]of this['editor']['commands'])_0x5c78ab['affectsData']&&'addCommentThread'!==_0x5ad897&&_0x5c78ab['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1147de=this['editor']['editing']['view']['document'];this['listenTo'](_0x1147de,'cut',_0x267b12=>_0x267b12['stop'](),{'priority':'highest'}),this['listenTo'](_0x1147de,'clipboardInput',_0x4626f8=>_0x4626f8['stop'](),{'priority':'highest'}),this['listenTo'](_0x1147de,'delete',_0x533c13=>_0x533c13['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x35d327,_0x5cdf04]of this['editor']['commands'])_0x5cdf04['affectsData']&&'addCommentThread'!==_0x35d327&&_0x5cdf04['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x2202fd{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e3245){super(_0x3e3245),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x337ce9=this['context']['plugins']['get'](N);this['listenTo'](_0x337ce9,'_activateAnnotation',(_0x266443,_0x4eea24)=>{for(const _0x32e91b of this['activeUIs']){const _0x854d27=this['_uis']['get'](_0x32e91b);(0x0,this['_uisData']['get'](_0x32e91b)['filter'])(_0x4eea24)&&_0x854d27['setActiveAnnotation'](_0x4eea24);}}),this['listenTo'](_0x337ce9,'_deactivateAllAnnotations',()=>{for(const _0x14aff6 of this['activeUIs']){this['_uis']['get'](_0x14aff6)['setActiveAnnotation'](null);}}),this['listenTo'](_0x337ce9['_visibleAnnotations'],'add',(_0x1740ae,_0x139b86)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x139b86);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x350934){return this['activeUIs']['has'](_0x350934);}['activate'](_0x3e5280,_0xab3264=()=>!0x0){const _0x21a07e=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x3e5280))throw new _0x18900f('annotationsuis-missing-ui',this,{'uiName':_0x3e5280});this['isActive'](_0x3e5280)&&this['deactivate'](_0x3e5280),this['activeUIs']['add'](_0x3e5280);const _0x398a5b=new x();!function({source:_0x22d4f0,target:_0x3efc85,filter:_0x10ca2c}){for(const _0x1ba411 of _0x22d4f0)_0x10ca2c(_0x1ba411)&&_0x3efc85['add'](_0x1ba411);_0x3efc85['listenTo'](_0x22d4f0,'add',(_0x58b0b9,_0x556851)=>{_0x10ca2c(_0x556851)&&_0x3efc85['add'](_0x556851);}),_0x3efc85['listenTo'](_0x22d4f0,'remove',(_0xf19954,_0x470927)=>{_0x3efc85['has'](_0x470927)&&_0x3efc85['remove'](_0x470927);});}({'source':_0x21a07e['_visibleAnnotations'],'target':_0x398a5b,'filter':_0xab3264}),this['_uisData']['set'](_0x3e5280,{'collection':_0x398a5b,'filter':_0xab3264});const _0x5a759e=this['_uis']['get'](_0x3e5280);_0x5a759e['attach'](_0x398a5b),this['listenTo'](_0x5a759e,'change:activeAnnotation',(_0x2fb4df,_0x1fcc1f,_0x55d475,_0xbfcdd2)=>{_0xbfcdd2&&_0x21a07e['_removeActiveAnnotation'](_0xbfcdd2),_0x55d475&&_0x21a07e['_addActiveAnnotation'](_0x55d475);});}['deactivate'](_0xf8296){if(this['activeUIs']['delete'](_0xf8296),!this['_uis']['has'](_0xf8296))throw new _0x18900f('annotationsuis-missing-ui',this,{'uiName':_0xf8296});const _0x37ada8=this['_uis']['get'](_0xf8296);_0x37ada8['detach'](),this['stopListening'](_0x37ada8),this['_uisData']['get'](_0xf8296)['collection']['destroy'](),this['_uisData']['delete'](_0xf8296);}['switchTo'](_0x21116a){if(!this['_uis']['has'](_0x21116a))throw new _0x18900f('annotationsuis-missing-ui',this,{'uiName':_0x21116a});const _0xfc4a70=this['context']['plugins']['get'](N),_0x45cb60=Array['from'](_0xfc4a70['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x21116a);const _0x58dbd9=this['_uis']['get'](_0x21116a);_0x58dbd9['setActiveAnnotation'](_0x45cb60),_0x58dbd9['_setSelectedAnnotations']&&_0x45cb60&&_0x58dbd9['_setSelectedAnnotations']([_0x45cb60]);}['deactivateAll'](){for(const _0x3e0afa of this['activeUIs'])this['deactivate'](_0x3e0afa);}['register'](_0x5b7577,_0x1f4305){if(this['_uis']['has'](_0x5b7577))throw new _0x18900f('annotationsuis-register-already-registered');if('function'!=typeof _0x1f4305['attach']||'function'!=typeof _0x1f4305['detach']||'function'!=typeof _0x1f4305['setActiveAnnotation'])throw new _0x18900f('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5b7577,_0x1f4305);}['refilterAnnotations'](){const _0xa5cf99=this['context']['plugins']['get'](N)['collection'],_0x287b51=new Map(),_0x11a7e2=Array['from'](this['activeUIs']);for(const _0x1c3267 of this['activeUIs']){const _0x28f60a=this['_uisData']['get'](_0x1c3267)['collection'];for(const _0xfa8f20 of _0x28f60a)_0x287b51['set'](_0xfa8f20,_0x1c3267);}for(const _0x5d8e77 of _0xa5cf99){const _0x5b8a57=_0x287b51['get'](_0x5d8e77);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5d8e77);const _0x54bdbf=_0x11a7e2['find'](_0x48fa6f=>this['_uisData']['get'](_0x48fa6f)['filter'](_0x5d8e77));_0x5b8a57!==_0x54bdbf&&(_0x5b8a57&&this['_uisData']['get'](_0x5b8a57)['collection']['remove'](_0x5d8e77),_0x54bdbf&&this['_uisData']['get'](_0x54bdbf)['collection']['add'](_0x5d8e77));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x222eea){const _0x2f0052=[];for(const _0x5f4724 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x5f4724)['filter'])(_0x222eea)&&_0x2f0052['push'](_0x5f4724);}if(_0x2f0052['length']>0x1)throw new _0x18900f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x2f0052,'annotationType':_0x222eea['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x19c738){super(_0x19c738);const _0x5bace7=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x44b40c(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x5bace7['to']('class')],'style':{'minHeight':_0x5bace7['to']('minHeight',_0x50d5d7=>'number'==typeof _0x50d5d7?he(_0x50d5d7+0xa):null)},'dir':_0x19c738['uiLanguageDirection'],'role':'application','aria-label':S(_0x19c738,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x19c738,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x28dfbe=>{this['_updateItemPositionInFocusables'](_0x28dfbe['source']);}),this['list']['forEach'](_0x5bbe8c=>{this['focusTracker']['add'](_0x5bbe8c['element']),this['_updateItemPositionInFocusables'](_0x5bbe8c);}),this['list']['on']('change',(_0x45b1df,_0x52f83b)=>{for(const _0x325997 of _0x52f83b['removed'])this['focusTracker']['remove'](_0x325997['element']),this['focusables']['remove'](_0x325997);for(const _0x2aa01f of _0x52f83b['added'])this['focusTracker']['add'](_0x2aa01f['element']),this['_updateItemPositionInFocusables'](_0x2aa01f);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3db888){const _0xdd2c67=this['focusables']['getIndex'](_0x3db888);let _0x15d7f7,_0xc584e9;for(const _0x35a891 of this['focusables'])if(_0x3db888['top']<_0x35a891['top']){_0x15d7f7=_0x35a891;break;}if(_0xc584e9=_0x15d7f7?this['focusables']['getIndex'](_0x15d7f7):this['focusables']['length'],-0x1!==_0xdd2c67){if(_0xdd2c67===_0xc584e9-0x1)return;this['focusables']['remove'](_0x3db888),_0xc584e9=_0x15d7f7?this['focusables']['getIndex'](_0x15d7f7):this['focusables']['length'];}this['focusables']['add'](_0x3db888,_0xc584e9);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x498ebd){super(_0x498ebd),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5bd680,_0x101009)=>_0x5bd680+_0x101009),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x24dec3=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x24dec3['to']('isAnimationDisabled',_0xf8cde9=>_0xf8cde9?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x24dec3['to']('top',_0x5062ad=>qt(_0x5062ad))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5d8de9=this['element']['clientHeight'];_0x5d8de9&&(this['height']=_0x5d8de9);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2202fd{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x221fe3){super(_0x221fe3),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x100419=this['context']['config']['get']('sidebar.container');_0x100419&&this['setContainer'](_0x100419);}['setContainer'](_0x23465b){if(!y(_0x23465b))throw new _0x18900f('sidebar-setcontainer-invalid-element');this['container']=_0x23465b;}['_attachToContainer']({viewClass:_0x33cfbe='',spaceBetweenItems:_0x345408=0x19}={}){if(!y(this['container']))throw new _0x18900f('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x33cfbe,this['_spaceBetweenItems']=_0x345408;}['rearrange']({removedAnnotation:_0x2820fc,previousAnnotation:_0x9f6fc3,nextAnnotation:_0x4fe870}){const _0x346b4f=this['getSidebarItemView'](_0x2820fc);this['view']['list']['remove'](_0x346b4f),this['_destroySidebarItemView'](_0x2820fc),_0x9f6fc3&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x9f6fc3)),_0x4fe870&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4fe870)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x19a236,activatedAnnotation:_0xe1130c,disableAnimationOnActivatedAnnotation:_0x139b6f}){if(this['_activeAnnotation']=_0xe1130c,_0x19a236){_0x19a236['isActive']=!0x1;const _0x4bf647=this['getSidebarItemView'](_0x19a236);_0x4bf647&&_0x139b6f&&(_0x4bf647['isAnimationDisabled']=!0x1);}if(_0xe1130c){const _0x3c53a0=this['getSidebarItemView'](_0xe1130c);_0x3c53a0&&(_0xe1130c['isActive']=!0x0,_0x139b6f&&(_0x3c53a0['isAnimationDisabled']=!0x0,_0x3c53a0['top']+=0x1),this['_alignToTargetRect'](_0x3c53a0));}}['_detachFromContainer'](_0x3dc732){if(this['view']['element']['remove'](),_0x3dc732){for(const _0x118b7c of _0x3dc732)this['_destroySidebarItemView'](_0x118b7c);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5191cc,_0x3e986f){_0x3e986f||(_0x3e986f=_0x5191cc['view']);const _0xeca2a5=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0xeca2a5,_0x5191cc),this['_annotationToSidebarItemView']['set'](_0x5191cc,_0xeca2a5),_0xeca2a5['content']['add'](_0x3e986f),this['listenTo'](_0x5191cc['view'],'change:targetRect',(_0x4d6a95,_0x50ebc1,_0x12ed4a)=>{const _0x14f9f6=this['_getTargetTop'](_0x5191cc,_0x12ed4a);_0xeca2a5['_targetTop']!=_0x14f9f6&&(_0xeca2a5['_targetTop']=_0x14f9f6,this['_setItemTop'](_0xeca2a5,_0x14f9f6));}),this['listenTo'](_0xeca2a5,'change:top',()=>{this['_recalculate'](_0xeca2a5,'top');}),this['listenTo'](_0xeca2a5,'change:bottom',()=>{this['_recalculate'](_0xeca2a5,'bottom');}),this['_alignToTargetRect'](_0xeca2a5);const _0x5d25f4=this['_getItemBefore'](_0xeca2a5);if(_0x5d25f4)this['_alignAfterItem'](_0x5d25f4,_0xeca2a5)||this['_alignToTargetRect'](_0xeca2a5);else this['_alignToTargetRect'](_0xeca2a5);return this['_updateLastItem'](),this['view']['list']['add'](_0xeca2a5),_0xeca2a5;}['_alignForTopChange'](_0x246353){if(!_0x246353['content']['length'])return;const _0x5520f7=this['_getItemBefore'](_0x246353);if(!_0x5520f7)return;const _0x1f5e53=this['_sidebarItemViewToAnnotation']['get'](_0x5520f7),_0x1ab86f=this['_activeAnnotation'];_0x1ab86f&&_0x1ab86f===_0x1f5e53?this['_alignAfterItem'](_0x5520f7,_0x246353):this['_alignBeforeItem'](_0x246353,_0x5520f7);}['_alignForBottomChange'](_0x456ced){if(!_0x456ced['content']['length'])return;const _0x233f48=this['_getItemAfter'](_0x456ced);if(!_0x233f48)return;const _0x50254a=this['_sidebarItemViewToAnnotation']['get'](_0x233f48),_0x118e55=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2114db=this['_activeAnnotation'];_0x2114db&&_0x2114db===_0x50254a&&_0x118e55?(this['_alignBeforeItem'](_0x233f48,_0x456ced),this['_alignAfterItem'](_0x456ced,_0x233f48)):_0x2114db&&_0x2114db===_0x50254a?this['_alignBeforeItem'](_0x233f48,_0x456ced):this['_alignAfterItem'](_0x456ced,_0x233f48);}['_recalculate'](_0x398e97,_0x26535e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2c6c5d,changedProp:_0x5282e6}of this['_recalculateBuffer'])'top'===_0x5282e6?this['_alignForTopChange'](_0x2c6c5d):this['_alignForBottomChange'](_0x2c6c5d);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x398e97,'changedProp':_0x26535e});}['getSidebarItemView'](_0x498ca9){return this['_annotationToSidebarItemView']['get'](_0x498ca9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2f5c25){const _0x2650ec=this['getSidebarItemView'](_0x2f5c25);this['stopListening'](_0x2650ec),this['stopListening'](_0x2f5c25['view']),_0x2650ec['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2f5c25),this['_sidebarItemViewToAnnotation']['delete'](_0x2650ec);}['_createSidebarView'](){const _0x587ad1=new V(this['context']['locale']);return _0x587ad1['render'](),this['on']('change:_lastItem',(_0x19cb6a,_0x485b00,_0x31e59d,_0x41ec1b)=>{_0x41ec1b&&_0x587ad1['unbind']('minHeight'),_0x31e59d?_0x587ad1['bind']('minHeight')['to'](_0x31e59d,'bottom'):_0x587ad1['minHeight']=null;}),_0x587ad1;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x8244b9){const _0x23388a=this['_sidebarItemViewToAnnotation']['get'](_0x8244b9),_0x51d570=_0x23388a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x23388a)-0x1);return _0x51d570&&this['getSidebarItemView'](_0x51d570)||null;}['_getItemAfter'](_0x5ec4ce){const _0x16313f=this['_sidebarItemViewToAnnotation']['get'](_0x5ec4ce),_0x1bcddb=_0x16313f&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x16313f)+0x1);return _0x1bcddb&&this['getSidebarItemView'](_0x1bcddb)||null;}['_alignBeforeItem'](_0x1ed8e2,_0xfa0256){_0x1ed8e2['updateHeight']();const _0x3fd323=R(_0xfa0256['bottom']+this['_spaceBetweenItems'],_0x1ed8e2['top']);return!!_0x3fd323&&(this['_setItemTop'](_0xfa0256,_0xfa0256['top']-_0x3fd323),!0x0);}['_alignAfterItem'](_0x469058,_0x42d2df){_0x469058['updateHeight']();const _0x316543=R(_0x469058['bottom']+this['_spaceBetweenItems'],_0x42d2df['top']);return!!_0x316543&&(this['_setItemTop'](_0x42d2df,_0x42d2df['top']+_0x316543,!0x1),!0x0);}['_alignToTargetRect'](_0x395721){const _0x4cadc0=this['_sidebarItemViewToAnnotation']['get'](_0x395721);if(!_0x4cadc0||!_0x4cadc0['target']||!_0x4cadc0['targetRect'])return;const _0x19736b=this['_getTargetTop'](_0x4cadc0,_0x4cadc0['targetRect']);this['_setItemTop'](_0x395721,_0x19736b);}['_getTargetTop'](_0x80089d,_0x113240){if(null===_0x113240)return 0x0;if(_0x80089d['target']instanceof _0x38f653)return _0x113240['top'];{const _0x402a52=new _0x38f653(this['view']['element'])['top'];return _0x113240['top']-_0x402a52;}}['_setItemTop'](_0xafeb11,_0x145312,_0x3fb5c9=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x3fb5c9&&(_0x145312=Math['max'](_0x145312,this['_getMaxAvailableTop'](_0xafeb11))),_0xafeb11['top']=_0x145312;}['_getMaxAvailableTop'](_0x5ea525){let _0x43ba03=this['_getItemBefore'](_0x5ea525),_0x108153=0x0;for(;_0x43ba03;)_0x43ba03['updateHeight'](),_0x108153+=this['_spaceBetweenItems']+_0x43ba03['height'],_0x43ba03=this['_getItemBefore'](_0x43ba03);return _0x108153;}}function R(_0x51432e,_0x16b627){return Math['max'](_0x51432e-_0x16b627,0x0);}function y(_0x5c649e){return null!==_0x5c649e&&'object'==typeof _0x5c649e&&0x1===_0x5c649e['nodeType'];}class e extends _0x2202fd{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc3e3a0){super(_0xc3e3a0),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x3dbdfa(),this['_refreshPositioningDebounced']=_0x107122(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x20e033=this['context']['plugins']['get'](M),_0x2eb89f=this['context']['plugins']['get'](z);_0x20e033['register']('wideSidebar',this),_0x2eb89f['container']&&_0x20e033['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3f1c58){if(_0x3f1c58===this['activeAnnotation'])return;const _0x2565b6=this['context']['plugins']['get'](z);_0x2565b6['_activeAnnotation']=_0x3f1c58;const _0x4df889=this['activeAnnotation'];_0x2565b6['refresh']({'blurredAnnotation':_0x4df889,'activatedAnnotation':_0x3f1c58}),this['activeAnnotation']=_0x3f1c58;}['attach'](_0x184177){this['annotations']=_0x184177;const _0x358b76=this['context']['plugins']['get'](z);if(_0x358b76['_annotations']=_0x184177,this['isAttached'])throw new _0x18900f('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x358b76,'set:container',()=>{this['detach'](),this['listenTo'](_0x358b76,'change:container',_0x3745f5=>{_0x3745f5['off'](),this['attach'](_0x184177);});}),_0x358b76['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x46c9e3=_0x43beb1=>{_0x43beb1['updateTargetRect'](),_0x358b76['addAnnotation'](_0x43beb1);};for(const _0x584180 of _0x184177)_0x46c9e3(_0x584180);this['listenTo'](_0x184177,'add',(_0x4d5dc0,_0x281a76)=>{_0x46c9e3(_0x281a76);}),this['listenTo'](_0x184177,'remove',(_0x2ca9b6,_0x2c159e,_0x3b47a7)=>{_0x358b76['rearrange']({'removedAnnotation':_0x2c159e,'previousAnnotation':_0x184177['get'](_0x3b47a7-0x1),'nextAnnotation':_0x184177['get'](_0x3b47a7+0x1)}),_0x2c159e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x184177,'focus',(_0x2e585a,_0x39ef23)=>{this['setActiveAnnotation'](_0x39ef23);}),this['listenTo'](_0x184177,'blur',()=>{this['setActiveAnnotation'](null);});const _0x303c15=this['context']instanceof _0x2badc3?this['context']['editors']:new _0x3dbdfa([this['context']]);for(const _0x14bba8 of _0x303c15)this['_integrateWithEditorAnnotations'](_0x14bba8);this['listenTo'](_0x303c15,'add',(_0x2b2ef0,_0x16dd90)=>{this['listenTo'](_0x16dd90,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x16dd90);});}),this['listenTo'](_0x303c15,'remove',(_0x12f718,_0x1b53ef)=>{_0x1b53ef['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1b53ef['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x18900f('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x501ec3=this['context']['plugins']['get'](z);_0x501ec3['_detachFromContainer'](this['annotations']),this['stopListening'](_0x501ec3),this['stopListening'](this['annotations']),this['context']instanceof _0x2badc3&&this['stopListening'](this['context']['editors']);for(const _0x1dbc4b of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1dbc4b);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x986c5b){if(!_0x986c5b['plugins']['has']('EditorAnnotations'))return;const _0x444f27=_0x986c5b['plugins']['get']('EditorAnnotations'),_0x3de74e=()=>{const _0x4eba0b=_0x444f27['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4eba0b[0x0]||null);};this['listenTo'](_0x444f27,'refresh',_0x3de74e),this['listenTo'](_0x444f27,'blur',(_0xfaba46,{isAnnotationTracked:_0x3cdc29})=>{this['activeAnnotation']&&_0x3cdc29(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x444f27,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x59fa83=>{_0x444f27['hasDomSelection']()&&(_0x3de74e(),_0x59fa83['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x444f27);}['_destroyEditorAnnotationsIntegration'](_0x2811cb){this['stopListening'](_0x2811cb),this['_editorAnnotations']['remove'](_0x2811cb);}}class D extends _0x2060e4{['counterView'];constructor(_0x44217f){super(_0x44217f);const _0x4e419a=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4791bd,_0x1cd640)=>_0x4791bd?'...':_0x1cd640['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4e419a['to']('annotationType',_0x31cfb2=>'ck-annotation-counter__badge--'+_0x31cfb2),_0x4e419a['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4e419a['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2202fd{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52c913){super(_0x52c913),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x2a1702),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x3dbdfa(),this['_refreshPositioningDebounced']=_0x107122(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x55167b(this['context']['locale']),this['balloonPanelView']=new _0x29e13a(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x349a42){this['annotations']=_0x349a42;const _0x56b28b=this['context']['plugins']['get'](z),_0x4af112=this['balloonPanelView'];if(_0x56b28b['_annotations']=_0x349a42,this['isAttached'])throw new _0x18900f('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x56b28b,'set:container',()=>{this['detach'](),this['listenTo'](_0x56b28b,'change:container',_0x40a03e=>{_0x40a03e['off'](),this['attach'](_0x349a42);});}),_0x56b28b['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x5662a5=_0x24339e=>{const _0x552f12=new D(this['context']['locale']);_0x56b28b['addAnnotation'](_0x24339e,_0x552f12),this['_annotationToNarrowView']['set'](_0x24339e,_0x552f12),_0x552f12['bind']('isDirty','annotationType','number')['to'](_0x24339e['view'],'isDirty','type','length'),_0x552f12['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4af112['content']['first']!==_0x24339e['view']?(this['_showBalloon'](_0x24339e),_0x24339e['view']['element']['focus'](),this['setActiveAnnotation'](_0x24339e)):this['setActiveAnnotation'](null);});};for(const _0x5b597f of _0x349a42)_0x5662a5(_0x5b597f);this['listenTo'](_0x349a42,'add',(_0xd76e37,_0x3034ba)=>{_0x5662a5(_0x3034ba);}),this['listenTo'](_0x349a42,'remove',(_0x226434,_0x5a1905,_0x2248b6)=>{this['_annotationToNarrowView']['get'](_0x5a1905)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5a1905),_0x56b28b['rearrange']({'removedAnnotation':_0x5a1905,'previousAnnotation':_0x349a42['get'](_0x2248b6-0x1),'nextAnnotation':_0x349a42['get'](_0x2248b6+0x1)}),_0x5a1905===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x349a42,'focus',(_0x45ccfa,_0x208562)=>{this['setActiveAnnotation'](_0x208562);}),this['listenTo'](_0x349a42,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x514885,_0x48b0be)=>{_0x48b0be['keyCode']===_0xdb3ba0['esc']&&_0x4af112['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4af112['content']['first']),this['_hideBalloon'](),_0x48b0be['stopPropagation'](),_0x48b0be['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x40493c,_0x30029a)=>{const _0x39079d=_0x30029a['target'];_0x4af112['isVisible']&&_0x4af112['element']['contains'](_0x39079d)||_0x56b28b['view']['element']['contains'](_0x39079d)||_0x40493c['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x5081c0=>_0x5081c0['contains'](_0x39079d))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1ee0d8=this['context']instanceof _0x2badc3?this['context']['editors']:new _0x3dbdfa([this['context']]);for(const _0x3eca4a of _0x1ee0d8)this['_integrateWithEditorAnnotations'](_0x3eca4a);this['listenTo'](_0x1ee0d8,'add',(_0x26b981,_0x5b0b12)=>{this['listenTo'](_0x5b0b12,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5b0b12);});}),this['listenTo'](_0x1ee0d8,'remove',(_0x3c6f15,_0x52c542)=>{_0x52c542['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x52c542['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x42c9b4){if(_0x42c9b4===this['activeAnnotation'])return;const _0x39d433=this['context']['plugins']['get'](z);if(_0x39d433['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x42c9b4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x42c9b4)_0x39d433['getSidebarItemView'](_0x42c9b4)?this['_showBalloon'](_0x42c9b4):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x42c9b4;}['detach'](){if(!this['isAttached'])throw new _0x18900f('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2ffa61=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x1e61bd=>_0x1e61bd['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2ffa61['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2badc3&&this['stopListening'](this['context']['editors']);for(const _0x5bd32e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5bd32e);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x4c8480){if(!_0x4c8480['plugins']['has']('EditorAnnotations'))return;const _0x462105=_0x4c8480['plugins']['get']('EditorAnnotations'),_0x24e793=this['context']['plugins']['get'](z),_0xbb1d8f=this['annotations'],_0x378a85=this['balloonPanelView'],_0x2cc430=()=>{const _0x8230af=_0x462105['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x8230af),this['setActiveAnnotation'](_0x8230af[0x0]||null);};this['listenTo'](_0x462105,'refresh',_0x2cc430),this['listenTo'](_0x462105,'blur',(_0xc8e997,{isAnnotationTracked:_0x530771})=>{this['activeAnnotation']&&_0x530771(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x462105,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0xbb1d8f,'blur',_0xabb98b=>{_0x462105['hasDomSelection']()&&_0xabb98b['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x3eb1b4,_0x2b9b6a)=>{const _0x46b2df=_0x2b9b6a['target'];_0x378a85['isVisible']&&_0x378a85['element']['contains'](_0x46b2df)||_0x24e793['view']['element']['contains'](_0x46b2df)||this['activeAnnotation']&&_0x462105['hasDomSelection']()&&(_0x2cc430(),_0x3eb1b4['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x462105);}['_destroyEditorAnnotationsIntegration'](_0xb1db37){_0xb1db37&&(this['stopListening'](_0xb1db37),this['_editorAnnotations']['remove'](_0xb1db37));}['_setSelectedAnnotations'](_0x389c5f){for(const _0x1c4fc5 of this['_selectedAnnotations'])_0x389c5f['includes'](_0x1c4fc5)||this['_manuallyClosedAnnotationViews']['delete'](_0x1c4fc5['view']);this['_selectedAnnotations']=_0x389c5f;}['_refreshPositioning'](){const _0x229f68=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x229f68['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x35abdd){if(this['_manuallyClosedAnnotationViews']['has'](_0x35abdd['view']))return;const _0x2973ed=this['balloonPanelView']['content']['first'];_0x2973ed!==_0x35abdd['view']?(_0x2973ed&&this['_detachListeners'](_0x2973ed),this['_attachListeners'](_0x35abdd['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x35abdd['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x48757c=this['balloonPanelView']['content']['first'],_0x2881d2=_0x48757c&&this['annotations']['getByView'](_0x48757c);if(!_0x2881d2||!this['_annotationToNarrowView']['has'](_0x2881d2))return;const _0x3ca0df=this['_annotationToNarrowView']['get'](_0x2881d2)['element'],_0x541082=(function(){const _0x2d994b=_0x29e13a['defaultPositions'];return[_0x2d994b['southArrowNorthEast'],_0x2d994b['northArrowSouthEast'],_0x2d994b['southArrowNorth'],_0x2d994b['northArrowSouth'],_0x2d994b['southArrowNorthWest'],_0x2d994b['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x3ca0df,'positions':_0x541082});}['_hideBalloon'](){const _0x1a172a=this['balloonPanelView'],_0x405383=_0x1a172a['content']['first'];_0x405383&&(this['_detachListeners'](_0x405383),_0x1a172a['unpin'](),_0x1a172a['content']['clear']());}['_attachListeners'](_0x7cab2){this['listenTo'](_0x7cab2,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x7cab2,'Esc',(_0x556c0e,_0x3e0ab5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x7cab2),this['_hideBalloon'](),_0x3e0ab5();});}['_detachListeners'](_0x4d2e27){this['stopListening'](_0x4d2e27);}}class c extends _0x399bf5{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x17d05f,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bae4f){super(_0x5bae4f),_0x5bae4f['editing']['view']['addObserver'](_0x1b0633),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x5bae4f['plugins']['get'](_0x17d05f),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x257c8f=this['editor']['plugins']['get'](M);_0x257c8f['context']===this['editor']&&(_0x257c8f['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x110ba7,_0x1c423e)=>{const _0x3373c6=this['_balloon'];if(this['isAttached']&&_0x3373c6['visibleView']){const _0x4d2aa3=this['annotations']['getByView'](_0x3373c6['visibleView']);_0x4d2aa3&&this['_closeAnnotation'](_0x4d2aa3),_0x1c423e();}}));}['afterInit'](){const _0x34948e=this['editor']['plugins']['get'](M);_0x34948e['context']===this['editor']&&(_0x34948e['hasActive']()||_0x34948e['switchTo']('inline'));}['setActiveAnnotation'](_0x192ec7){_0x192ec7!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x192ec7&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x192ec7)&&this['_addAnnotationToBalloon'](_0x192ec7,!0x0),_0x192ec7['isActive']=!0x0),_0x192ec7||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x192ec7);}['attach'](_0x145811){this['annotations']=_0x145811;const _0x266da3=this['editor']['plugins']['get'](M),_0x29e4ff=this['_balloon'];if(this['isAttached'])throw new _0x18900f('inlineannotations-attach-already-attached',this);if(_0x266da3['context']!==this['editor'])throw new _0x18900f('inlineannotations-not-allowed-with-context',this);const _0x513655=this['editor']['plugins']['get'](P);this['listenTo'](_0x513655,'refresh',()=>{const _0x201037=_0x513655['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x54f081,_0x453634;!this['_forceRefresh']&&(_0x54f081=_0x201037,_0x453634=this['_selectedAnnotations'],_0x54f081['length']===_0x453634['length']&&_0x54f081['every'](_0x3e727c=>_0x453634['includes'](_0x3e727c)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x201037),this['setActiveAnnotation'](_0x201037[0x0]||null));}),this['listenTo'](_0x513655,'blur',(_0x286eea,{isAnnotationTracked:_0x5a7fce})=>{this['activeAnnotation']&&_0x5a7fce(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3c103e,_0x1ba9af,_0x574e20)=>{_0x574e20||this['setActiveAnnotation'](null);}),this['listenTo'](_0x145811,'remove',(_0x3ff78a,_0x3db59c)=>{this['_removeAnnotationFromBalloon'](_0x3db59c),_0x3db59c===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x29e4ff,'change:visibleView',(_0x3219ea,_0x1bf5f9,_0x49a2fb,_0x36fea0)=>{_0x36fea0&&this['stopListening'](_0x36fea0);const _0xb423cc=_0x145811['getByView'](_0x49a2fb);_0x49a2fb&&_0xb423cc&&(this['listenTo'](_0x49a2fb,'change:height',()=>{_0x29e4ff['updatePosition']();}),this['listenTo'](_0x49a2fb,'Esc',()=>{this['_closeAnnotation'](_0xb423cc),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xb423cc&&this['setActiveAnnotation'](_0xb423cc));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x29e4ff['visibleView']&&(_0x145811['getByView'](_0x29e4ff['visibleView'])&&_0x29e4ff['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x18900f('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4800ae of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4800ae);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x368fd6){for(const _0x5580d4 of this['_selectedAnnotations'])_0x368fd6['includes'](_0x5580d4)||this['_manuallyClosed']['delete'](_0x5580d4);for(const _0x4b564f of this['annotations'])_0x368fd6['includes'](_0x4b564f)||this['_removeAnnotationFromBalloon'](_0x4b564f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5ab7f0 of _0x368fd6)this['_addAnnotationToBalloon'](_0x5ab7f0);}this['_selectedAnnotations']=_0x368fd6;}['_addAnnotationToBalloon'](_0xf16133,_0x2a0ce7=!0x1){this['_manuallyClosed']['has'](_0xf16133)||(this['_addedAnnotations']['has'](_0xf16133)||this['_balloon']['hasView'](_0xf16133['view'])||(this['_addedAnnotations']['add'](_0xf16133),this['_balloon']['add']({'stackId':_0xf16133['view']['id'],'view':_0xf16133['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xf16133)}})),_0x2a0ce7&&this['_balloon']['showStack'](_0xf16133['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3d8349){const _0x2cf73e=_0x3d8349['target'],_0x5a0b68=this['editor']['editing']['view'],_0x47624e=_0x5a0b68['document']['selection']['getFirstRange'](),_0x1c22e9=_0x5a0b68['domConverter']['viewRangeToDom'](_0x47624e);if(_0x1c22e9['collapse'](!0x0),_0x2cf73e){if(_0x2cf73e instanceof _0x38f653)return _0x2cf73e;let _0x5b6f57=[];for(const _0x1ded0d of _0x2cf73e)_0x5b6f57['push'](...(_0x46c2fe=_0x1ded0d['getClientRects'](),Array['from'](_0x46c2fe)['map'](DOMRect['fromRect'])));_0x5b6f57=function(_0x357ae3){const _0x5cddea=[];let _0x49d588=_0x357ae3[0x0];for(let _0x5789e8=0x1;_0x5789e8<_0x357ae3['length'];_0x5789e8++)b(_0x49d588,_0x357ae3[_0x5789e8])?_0x49d588['width']+=_0x357ae3[_0x5789e8]['width']:(_0x5cddea['push'](_0x49d588),_0x49d588=_0x357ae3[_0x5789e8]);return _0x5cddea['push'](_0x49d588),_0x5cddea;}(_0x5b6f57);const _0x21bfd9=_0x1c22e9['getBoundingClientRect']();return _0x5b6f57['find'](_0x5288a8=>_0x5288a8['top']<=_0x21bfd9['top']&&_0x5288a8['bottom']>=_0x21bfd9['bottom']&&_0x5288a8['left']<=_0x21bfd9['left']&&_0x5288a8['right']>=_0x21bfd9['right'])||_0x5b6f57[0x0];}var _0x46c2fe;return _0x3d8349['targetRect']||_0x1c22e9;}['_removeAnnotationFromBalloon'](_0x49869f){this['_addedAnnotations']['has'](_0x49869f)&&this['_balloon']['hasView'](_0x49869f['view'])&&(this['_addedAnnotations']['delete'](_0x49869f),this['_balloon']['remove'](_0x49869f['view']));}['_closeAnnotation'](_0x551866){this['_manuallyClosed']['add'](_0x551866),this['_removeAnnotationFromBalloon'](_0x551866);}}function b(_0x4f0508,_0x32bfb1){return _0x4f0508['top']===_0x32bfb1['top']&&_0x4f0508['bottom']===_0x32bfb1['bottom']&&_0x4f0508['right']===_0x32bfb1['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x380cbc,_0x51a1d0){super(_0x380cbc),this['set']('isEmpty',!_0x51a1d0['length']),this['focusTracker']=new _0x44b40c(),this['_annotationViews']=_0x51a1d0,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x51a1d0,'focusTracker':this['focusTracker']}),this['listenTo'](_0x51a1d0,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x51a1d0,'remove',(_0x2bb2cb,_0x533547)=>{_0x533547['isActive']&&this['focus'](),_0x51a1d0['length']||(this['isEmpty']=!0x0);});const _0x3cbd45=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x380cbc,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x51a1d0},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3cbd45['if']('isEmpty','ck-hidden',_0x22d058=>!_0x22d058)]},'children':[{'text':S(_0x380cbc,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x4e5a8f of this['_annotationViews'])this['focusTracker']['add'](_0x4e5a8f['element']);this['_annotationViews']['on']('change',(_0x2cc926,{added:_0x29a8b2,removed:_0x531002})=>{for(const _0x8335d9 of _0x29a8b2)this['focusTracker']['add'](_0x8335d9['element']);for(const _0x2811e1 of _0x531002)this['focusTracker']['remove'](_0x2811e1['element']);});}}class f extends _0x2202fd{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x5adb5c){super(_0x5adb5c),this['archivedThreads']=new _0x3dbdfa();}['init'](){const _0x52ca2a=this['context'],_0x1a6aa6=_0x52ca2a['plugins']['get'](o),_0x2b4f35=_0x52ca2a['plugins']['get'](N);this['listenTo'](_0x1a6aa6,'addCommentThread',(_0xc5f087,{threadId:_0x52ee12})=>{const _0x1f2852=_0x1a6aa6['getCommentThread'](_0x52ee12);_0x1f2852['archivedAt']&&this['archivedThreads']['add'](_0x1f2852,this['_calculatePosition'](_0x1f2852['archivedAt'])),this['listenTo'](_0x1f2852,'change:archivedAt',(_0x5ac2dc,_0x552542,_0x55c272)=>{_0x55c272?this['archivedThreads']['has'](_0x1f2852)||this['archivedThreads']['add'](_0x1f2852,this['_calculatePosition'](_0x1f2852['archivedAt'])):this['archivedThreads']['has'](_0x1f2852)&&this['archivedThreads']['remove'](_0x1f2852);});}),this['listenTo'](_0x1a6aa6,'removeCommentThread',(_0x1e97fc,{threadId:_0x1f4aa0})=>{const _0x3424b8=_0x1a6aa6['getCommentThread'](_0x1f4aa0);this['stopListening'](_0x3424b8),this['archivedThreads']['has'](_0x3424b8)&&this['archivedThreads']['remove'](_0x3424b8);},{'priority':'highest'}),this['listenTo'](_0x2b4f35['collection'],'focus',(_0x1b50e6,_0x13c6af)=>{_0x13c6af['isVisible']||(_0x13c6af['isActive']=!0x0,_0x2b4f35['activate'](_0x13c6af));});}['_calculatePosition'](_0x54baf7){const _0x33289c=[...this['archivedThreads']]['findIndex'](_0x5c6222=>_0x5c6222['archivedAt']<_0x54baf7);return _0x33289c>-0x1?_0x33289c:this['archivedThreads']['length'];}}class a extends _0x399bf5{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x5e7835];}constructor(_0x153d51){super(_0x153d51),this['annotationViews']=new _0xc86170(),this['_pendingThreads']=[];}['init'](){const _0x1f8326=this['editor'],_0x395773=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1f8326['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2060e4,!0x0)),_0x1f8326['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x445214=this['_createCommentsArchiveButton'](_0x234f00);return _0x445214['set']({'role':'menuitemcheckbox'}),_0x445214;});const _0x52157e=_0x1f8326['plugins']['get'](f),_0x306592=_0x1f8326['plugins']['get']('Annotations'),_0x2342ca=_0x1f8326['plugins']['get']('CommentsRepository');_0x52157e['archivedThreads']['forEach'](_0xd32866=>{this['_handleNewThread'](_0xd32866);}),this['listenTo'](_0x52157e['archivedThreads'],'add',(_0x4837db,_0x2eb45e)=>{this['_handleNewThread'](_0x2eb45e);}),this['listenTo'](_0x306592['collection'],'add',(_0x2e2381,_0x2ad146)=>{const _0x3a767a=this['_pendingThreads']['find'](_0x27f9ae=>{const _0x1e6015=_0x2342ca['_threadToController']['get'](_0x27f9ae);return _0x1e6015&&_0x2ad146['innerView']===_0x1e6015['view'];});if(_0x3a767a){const _0x6293f6=this['_calculatePosition'](_0x3a767a['archivedAt']);this['annotationViews']['add'](_0x2ad146['view'],_0x6293f6),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3a767a),0x1);}}),this['listenTo'](_0x52157e['archivedThreads'],'remove',(_0x464ce7,_0x124dbd)=>{const _0x44a3c3=_0x1f8326['config']['get']('collaboration.channelId');if(!_0x44a3c3||_0x124dbd['channelId']===_0x44a3c3){const _0x5ae6f5=_0x2342ca['_threadToController']['get'](_0x124dbd),_0x23810f=_0x306592['getByInnerView'](_0x5ae6f5['view']);this['annotationViews']['remove'](_0x23810f['view']),this['stopListening'](_0x23810f['focusableElements']);}}),this['listenTo'](_0x306592['collection'],'add',(_0x23a2f6,_0x2fd269)=>{this['listenTo'](_0x2fd269,'escape',_0x395773);}),this['listenTo'](_0x306592['collection'],'remove',(_0x3c949e,_0x1b480e)=>{this['stopListening'](_0x1b480e,'escape',_0x395773);});}['_handleNewThread'](_0x59f0fe){const _0x52d598=this['editor']['plugins']['get']('CommentsRepository'),_0x1a4312=this['editor']['plugins']['get']('Annotations'),_0x483624=this['editor']['config']['get']('collaboration.channelId');if(!_0x483624||_0x59f0fe['channelId']===_0x483624){const _0x11ff1d=_0x52d598['_threadToController']['get'](_0x59f0fe);if(!_0x11ff1d)return void this['_pendingThreads']['push'](_0x59f0fe);const _0x555be3=this['_calculatePosition'](_0x59f0fe['archivedAt']),_0x4be126=_0x1a4312['getByInnerView'](_0x11ff1d['view']);_0x4be126['isVisible']&&_0x1a4312['_visibleAnnotations']['remove'](_0x4be126),this['annotationViews']['add'](_0x4be126['view'],_0x555be3);}}['_calculatePosition'](_0x2f7e7c){const _0x3330c0=this['editor']['config']['get']('collaboration.channelId'),_0x119dbc=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x2d2a5a=>_0x2d2a5a['channelId']===_0x3330c0)['findIndex'](_0x5aefd=>_0x5aefd['archivedAt']<_0x2f7e7c);return _0x119dbc<0x0||_0x119dbc>this['annotationViews']['length']?this['annotationViews']['length']:_0x119dbc-0x1;}['_toggleDialog'](){const _0x2cef75=this['editor'],_0x1454ea=_0x2cef75['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x2cef75['locale'],this['annotationViews'])),'commentsArchive'===_0x1454ea['id']?_0x1454ea['hide']():_0x1454ea['show']({'id':'commentsArchive','title':S(_0x2cef75['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x31eced['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x48cc03,_0x4547f6=!0x1){const _0x494595=this['editor']['locale'],_0x44a439=this['editor']['plugins']['get']('Dialog'),_0x531760=new _0x48cc03(_0x494595);return _0x531760['bind']('isEnabled')['to'](this,'isEnabled'),_0x531760['bind']('isOn')['to'](_0x44a439,'id',_0xf194b8=>'commentsArchive'===_0xf194b8),_0x531760['set']({'label':S(_0x494595,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x4547f6&&(_0x531760['tooltip']=!0x0),this['listenTo'](_0x531760,'execute',()=>this['_toggleDialog']()),_0x531760;}['_hideDialogOnAnnotationEscape']=_0x5bf0fd=>{const _0x2571e2=_0x5bf0fd['source'];if(!this['annotationViews']['has'](_0x2571e2['view']))return;const _0x2e8474=this['editor']['plugins']['get']('Dialog');_0x2e8474['isOpen']&&'commentsArchive'===_0x2e8474['id']&&(_0x2e8474['hide'](),_0x5bf0fd['stop']());};}class p extends _0x399bf5{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
23
+ import{Editor as _0x51f104,icons as _0x2cab2d,ContextPlugin as _0x123b50,PendingActions as ht,Command as _0x3e8e7,Plugin as _0x278cf9,Context as _0x5d1973}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x180a11,uid as _0x92000b,KeystrokeHandler as jt,FocusTracker as _0x56d5a4,diff as _0x363d0a,Collection as _0x2017ed,Rect as _0x1d5435,CKEditorError as _0x25287e,first as _0x46af0f,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x3d1100,keyCodes as _0xda4e75}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x356f24,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x4bdbdf,ConfirmMixin as ti,LateFocusButtonView as _0x260d00,trimHtml as _0x285a43,LateFocusDropdownButtonView as _0x2f73f0,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x54f3b9}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x5166da}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x3db312,ViewCollection as _0x101026,createDropdown as _0x4b8d1e,ListView as _0x5ee27a,focusChildOnDropdownOpen as _0x369a23,ListItemView as _0x10c4ea,MenuBarMenuListItemButtonView as _0x235168,BodyCollection as _0x39a051,BalloonPanelView as _0x37802a,ContextualBalloon as _0x1f3bfe,Dialog as _0x5a2f6b,DialogViewPosition as _0x549358}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x455ac6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x3968c6}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x4bc955}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x180a11(){['model'];['view'];constructor(_0x297552,_0x4140fc){super(),this['model']=_0x297552,this['model']['_isAttached']=!0x0,this['view']=_0x4140fc,this['listenTo'](_0x4140fc,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4140fc,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4140fc,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4140fc,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4140fc,'addComment',(_0xbd938d,_0x5155b1)=>this['addComment'](_0x5155b1)),this['listenTo'](_0x4140fc,'updateComment',(_0x5959cb,_0x169d39,_0x3b7dbf)=>this['updateComment'](_0x169d39,_0x3b7dbf)),this['listenTo'](_0x4140fc,'removeComment',(_0xf92007,_0x2fdb99)=>this['removeComment'](_0x2fdb99));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x4bfcde){this['model']['addComment']({'content':_0x4bfcde,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x26f7f0,_0x22b770){this['model']['getComment'](_0x26f7f0)['update']({'content':_0x22b770});}['removeComment'](_0x5d0848){this['model']['getComment'](_0x5d0848)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x241712,_0xac14a7,_0xa16acc){const t=_0x241712['t'];switch(_0xac14a7){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0xa16acc);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0xa16acc);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0xa16acc);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0xa16acc);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0xa16acc);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0xa16acc);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xa16acc);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xa16acc);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Xt extends Yt{['main'];['editable'];constructor(_0x447e0d,_0x48b33a){super(_0x447e0d);const _0x5182bc=_0x92000b();this['main']=this['createCollection'](),this['editable']=new $t(_0x447e0d,_0x48b33a,void 0x0,{'label':()=>S(_0x447e0d,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x447e0d['uiLanguageDirection'],'lang':_0x447e0d['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5182bc},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Vt{['view'];constructor(_0x265b9b){super(_0x265b9b),this['view']=new Xt(_0x265b9b['locale'],_0x265b9b['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x49e0d0=this['editor']['editing']['view'],_0xb82459=this['view']['editable'],_0x86292d=_0x49e0d0['document']['getRoot']();_0xb82459['name']=_0x86292d['rootName'],this['view']['render']();const _0x548e7d=_0xb82459['element'];this['setEditableElement'](_0xb82459['name'],_0x548e7d),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x49e0d0['attachDomRoot'](_0x548e7d),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
+ _0x180a11(_0x51f104){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Rt)());constructor(_0x1300bf={}){function _0x3419dd(_0x43b16b){return _0x43b16b['map'](_0x100c24=>String['fromCharCode'](_0x100c24))['join']('');}(_0x1300bf=Object['assign']({},_0x1300bf))['plugins']||(_0x1300bf['plugins']=Ut['defaultPlugins']),super(_0x1300bf),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x3419dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3419dd([0x76,0x69,0x65,0x77])][_0x3419dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3419dd([0x61,0x75,0x74,0x6f]),this[_0x3419dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3419dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3419dd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3419dd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3419dd([0x6f,0x6b])});}['create'](){const _0x2a5848=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2a5848))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x3011e6=>{const _0x11d2c3=this['model']['document']['getRoot'](),_0x3bc077=_0x11d2c3&&_0x11d2c3['getChild'](_0x11d2c3['childCount']-0x1);_0x3011e6['setSelection'](_0x3bc077,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x372f77=this['editing']['view'],_0x4af91c=_0x372f77['document']['getRoot'](),_0x4bb7b4=_0x4af91c['getChild'](0x0);_0x4af91c['childCount']>0x1||!_0x4bb7b4||'p'!=_0x4bb7b4['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x372f77,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x4bb7b4['placeholder']=this['placeholder']),St({'view':_0x372f77,'element':_0x4bb7b4,'keepOnFocus':!0x0}),this['placeholderElement']=_0x4bb7b4);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x8a54a5,_0x1478a1={}){super(_0x8a54a5),this['editor']=null,this['_editorConfig']=_0x1478a1,this['set']('value',_0x1478a1['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x8a54a5,'Reply...')),this['set']('submitLabel',S(_0x8a54a5,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x56d5a4(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x3938c9,_0x50fb1d)=>{this['cancelButtonView']['fire']('execute'),_0x50fb1d();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4e3397,_0x1afcf1)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x1afcf1());}),this['on']('submit',(_0x38d9cc,_0x13db50)=>{_0x13db50['length']>0xfde8?(alert(S(_0x8a54a5,'TOO_LONG_COMMENT_ALERT',[_0x13db50['length'],0xfde8])),_0x38d9cc['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4cbf04=this['editor'];this['element']['insertBefore'](_0x4cbf04['ui']['element'],this['element']['firstChild']),_0x4cbf04['model']['document']['on']('change',()=>this['value']=_0x4cbf04['getData']()),_0x4cbf04['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4cbf04['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1eeba2){-0x1===_0x1eeba2?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x27025a}=this,_0x15baaf=new _0x3db312(_0x27025a);return _0x15baaf['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x15baaf['withText']=!0x0,_0x15baaf['bind']('label')['to'](this,'submitLabel'),_0x15baaf['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x15baaf['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x17116a,_0xa6bf1c)=>!_0xa6bf1c&&!!_0x17116a['trim']()),_0x15baaf;}['_createCancelButton'](){const {locale:_0x4380ce}=this,_0x2abbb6=new _0x3db312(_0x4380ce);return _0x2abbb6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2abbb6['label']=S(_0x4380ce,'Cancel'),_0x2abbb6['withText']=!0x0,_0x2abbb6['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2abbb6;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x179cf5=>{this['focusTracker']['add'](_0x179cf5['element']);}),this['focusables']['on']('change',(_0x11cf03,_0x47048c)=>{for(const _0x12d3ff of Array['from'](_0x47048c['added'])['reverse']())this['focusTracker']['add'](_0x12d3ff['element']);});}}class ie extends kt{constructor(_0x685b90,_0x141cad,_0x1130be){super(_0x685b90),this['commentInputView']=new os(_0x685b90,_0x1130be),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x5cae14,_0x34e9d8)=>_0x5cae14||!!_0x34e9d8),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x356f24(_0x685b90,_0x141cad),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x332fff){this['commentInputView']['focus'](_0x332fff);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x16e569,_0x127d65)=>{const {submitButtonView:_0x55219a,cancelButtonView:_0x2037bf,editor:_0x1c8e3a}=this['commentInputView'];[_0x55219a['element'],_0x2037bf['element'],_0x1c8e3a?_0x1c8e3a['editing']['view']['getDomRoot']():null]['filter'](_0x2a242e=>_0x2a242e)['some'](_0xbe5919=>_0xbe5919['contains'](_0x127d65['target']))||(this['focus'](),_0x127d65['preventDefault']());});}}class cs extends kt{constructor(_0x40920e){super(_0x40920e);const _0x48ff36=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x48ff36['to']('count',_0x20895d=>S(_0x40920e,'NUMBER_OF_COMMENTS',_0x20895d))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x1f7615,_0x260b11,_0x549971){super(_0x1f7615);const _0x242600=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x260b11['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x260b11,this['_config']=_0x549971,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x56d5a4(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5c57a9=>this['commentViews']['map'](_0x159535=>_0x159535['element'])['includes'](_0x5c57a9['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x1f7615),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x408a0e=>_0x408a0e-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3af95a of _0x260b11['comments'])this['_handleNewCommentModel'](_0x3af95a);this['_handleInfoComment'](),this['listenTo'](_0x260b11['comments'],'add',(_0x141c6d,_0x91f404)=>{const _0x347520=this['_calculatePosition'](_0x91f404);this['length']++,this['_handleNewCommentModel'](_0x91f404,_0x347520),this['refreshVisibleViews']();}),this['listenTo'](_0x260b11['comments'],'remove',(_0x4b6ec1,_0x16b768)=>{this['length']--,this['_handleRemoveCommentModel'](_0x16b768),this['refreshVisibleViews']();}),this['listenTo'](_0x260b11,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x260b11,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x242600['if']('length','ck-hidden',_0x53264b=>!_0x53264b)],'aria-label':S(_0x1f7615,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x60fb2b){-0x1===_0x60fb2b?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x396348 of this['commentViews'])_0x396348['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3ca6d4,_0x58c536){const _0xd23d6=new this['_config']['CommentView'](this['locale'],_0x3ca6d4,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0xd23d6['viewUid']=_0x3ca6d4['id'],_0xd23d6['delegate']('removeComment')['to'](this),_0xd23d6['delegate']('updateComment')['to'](this),_0xd23d6['delegate']('resolveCommentThread')['to'](this),_0xd23d6['delegate']('editorReady')['to'](this),_0xd23d6['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0xd23d6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0xd23d6,_0x58c536);}['_calculatePosition'](_0x480e2c){const _0x2a7092=this['_model']['_findOptimalIndex'](_0x480e2c);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x480e2c['authoredAt']?_0x2a7092-0x1:_0x2a7092:_0x2a7092-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x74289d={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x74289d,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x74289d));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0xe77a89){const _0xcf87a7=this['commentViews']['remove'](_0xe77a89['id']);this['stopListening'](_0xcf87a7),_0xcf87a7['isEditMode']&&this['_updateHasDirtyComment'](),_0xcf87a7['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0xeb101=>_0xeb101['isEditMode']);}['_rearrangeCollapse'](){const _0x974d34=function(_0x3e2206){const _0x32ff2f=new _0x2017ed();for(const _0x5363ba of _0x3e2206)_0x32ff2f['add'](_0x5363ba);return _0x32ff2f;}(this['commentViews']),_0x53d59b=this['_collapsedCommentsView']['count'];for(let _0x5c18db=0x1;_0x5c18db<=_0x53d59b;_0x5c18db++)_0x974d34['remove'](0x1);for(const _0x216a9f of _0x974d34)_0x216a9f['collapse']();_0x53d59b>0x0&&_0x974d34['add'](this['_collapsedCommentsView'],0x1),as(_0x363d0a(Array['from'](this['visibleViews']),Array['from'](_0x974d34)),this['visibleViews'],_0x974d34);}['_rearrangeExpand'](){as(_0x363d0a(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4b675d of this['visibleViews'])_0x4b675d['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x1c5398=>{this['focusTracker']['add'](_0x1c5398['element']),this['keystrokes']['listenTo'](_0x1c5398['element']);}),this['commentViews']['on']('change',(_0x6b62f,_0x22dd4c)=>{for(const _0x4157dc of _0x22dd4c['removed'])this['focusTracker']['remove'](_0x4157dc['element']),this['keystrokes']['stopListening'](_0x4157dc['element']);for(const _0x552229 of Array['from'](_0x22dd4c['added'])['reverse']())this['focusTracker']['add'](_0x552229['element']),this['keystrokes']['listenTo'](_0x552229['element']);});}}function as(_0x182b7b,_0x4377ce,_0x36ec76){let _0x2e33f4=0x0;for(const _0x4e5dbd of _0x182b7b)switch(_0x4e5dbd){case'insert':_0x4377ce['add'](_0x36ec76['get'](_0x2e33f4),_0x2e33f4),_0x2e33f4++;break;case'delete':_0x4377ce['remove'](_0x2e33f4);break;case'equal':_0x2e33f4++;}}class ls extends kt{constructor(_0x4a5f8c){super(_0x4a5f8c);const _0x339e8d=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x339e8d['to']('contextValue',_0xb83be9=>S(_0x4a5f8c,'THREAD_CONTEXT_LABEL',_0xb83be9)),'tabindex':-0x1},'children':[{'text':_0x339e8d['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x58bbdd,_0x461b5c){super(_0x58bbdd);const _0x12c351=this['bindTemplate'];this['_model']=_0x461b5c,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x56d5a4(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x7e0bf0=>!!_0x7e0bf0),this['bind']('contextValue')['to'](this['_model'],'context',_0x24c479=>_0x24c479&&_0x24c479['value']?this['_trimContextValue'](_0x24c479['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x12c351['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x50ed95=new _0x3db312(this['locale']);return _0x50ed95['label']=S(this['locale'],'Reopen'),_0x50ed95['tooltip']=S(this['locale'],'Reopen'),_0x50ed95['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x50ed95['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4fc442=>!_0x4fc442),_0x50ed95['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4026af,_0x79b4ca)=>_0x4026af&&_0x79b4ca),_0x50ed95['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x50ed95;}['_trimContextValue'](_0x477d9f){if(_0x477d9f['length']<0x96)return _0x477d9f;const _0x4d5483=_0x477d9f['lastIndexOf']('\x20',0x93);return _0x477d9f['substring'](0x0,_0x4d5483>-0x1?_0x4d5483:0x93)+'...';}['_attachContextActions'](){const _0x9072a3=this['element']['querySelector']('.ck-context'),_0x96c1a=_0x9072a3['querySelector']('.ck-context__value');this['listenTo'](_0x9072a3,'mouseenter',()=>{_0x96c1a['offsetWidth']<_0x96c1a['scrollWidth']&&_0x9072a3['classList']['add']('overlay');}),this['listenTo'](_0x9072a3,'mouseleave',()=>{_0x9072a3['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5a56b5 of this['focusables'])this['focusTracker']['add'](_0x5a56b5['element']),this['keystrokes']['listenTo'](_0x5a56b5['element']);}['_createContextView'](){const _0x340617=new ls(this['locale']);return _0x340617['bind']('contextValue')['to'](this),_0x340617;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2118cb,_0xdda4db,_0x66d44c,_0x2d4ad8){super(_0x2118cb),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xdda4db,this['_localUser']=_0x66d44c,this['_config']=_0x2d4ad8,this['commentThreadHeaderView']=new Zt(_0x2118cb,_0xdda4db),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x2118cb,S(_0x2118cb,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2118cb,_0xdda4db,Object['assign']({'CommentView':this['_config']['CommentView']},_0x2d4ad8)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x36dab9,_0x131c5e)=>_0x36dab9||!!_0x131c5e),this['bind']('isUnlinked')['to'](_0xdda4db,'unlinkedAt',_0x236ad9=>!!_0x236ad9),this['bind']('ariaLabel')['to'](this,'length',_0x47f055=>{const _0xde18ec=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x47f055,_0xde18ec]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x56d5a4(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x36a215=>_0x36a215['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x4bdbdf(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0xa8987c=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1d808d=_0xa8987c['commentInputView'];return _0xa8987c['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x1d808d,'value',(_0x418d1a,_0x4241b7,_0x2e88d8,_0x3f7bcd,_0x1201a1)=>!!_0x1201a1||!!_0x3f7bcd&&_0x2e88d8&&!_0x4241b7||_0x418d1a&&_0x2e88d8&&!_0x4241b7),_0x1d808d['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19cb78,_0x40c17e,_0x5d894f)=>{let _0x658f04;return _0x658f04=_0x5d894f&&_0x40c17e?'Reply\x20to\x20reopen\x20discussion...':_0x19cb78?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x658f04);}),_0x1d808d['bind']('submitLabel')['to'](this,'length',_0x1edee4=>S(this['locale'],_0x1edee4?'Reply':'Comment')),_0x1d808d['on']('submit',(_0x571293,_0x1aac4d)=>{this['fire']('addComment',_0x1aac4d),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x1d808d['on']('cancel',()=>{this['focus']();}),_0x1d808d['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1d808d['on']('cancel',_0x3a92b9=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3a92b9['stop']());}),this['on']('change:isActive',(_0x2aa289,_0x324286,_0xf6add5)=>{_0xf6add5||this['length']||_0x1d808d['value']||this['fire']('removeCommentThread');}),_0xa8987c;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x76f05,_0x3cd794,_0x27875c,_0x57107b){super(_0x76f05,_0x3cd794,_0x27875c,_0x57107b),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x76f05,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x21d630,_0x270df0,_0x1e54bd)=>{_0x1e54bd||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4f9a96,_0x38725b,_0x5b2203)=>{_0x5b2203&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1f53d5=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1f53d5['if']('isActive','ck-thread--active'),_0x1f53d5['if']('isUnlinked','ck-thread--unlinked'),_0x1f53d5['if']('isConfirm','ck-thread--remove-confirmation'),_0x1f53d5['to']('actionIndicator',_0x3366aa=>_0x3366aa?'ck-thread--'+_0x3366aa:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1f53d5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x3a1cc9 of this['commentsListView']['commentViews'])_0x3a1cc9['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x145f8d}=this,_0x589e96=this['commentsListView']['commentViews']['get'](0x0);_0x589e96===this['_boundFirstCommentView']||_0x589e96['isSystemComment']||(this['_boundFirstCommentView']=_0x589e96,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x589e96,'actionIndicator',_0x4f25e0=>'remove'===_0x4f25e0?'remove':null),_0x589e96['placeholder']=S(_0x145f8d,'Write\x20a\x20comment...'),_0x589e96['removeButton']['on']('execute',_0x48ab2c=>{_0x48ab2c['stop'](),this['showConfirm'](S(_0x145f8d,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x589e96['focus']();}),_0x589e96['actionBar']['add'](this['resolveButton'],0x0),_0x589e96['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x4090d6=new _0x260d00(this['locale']);return _0x4090d6['label']=S(this['locale'],'Resolve'),_0x4090d6['tooltip']=S(this['locale'],'Resolve'),_0x4090d6['icon']=_0x2cab2d['check'],_0x4090d6['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x4090d6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x23a6bd=>!_0x23a6bd),_0x4090d6['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xa1d812,_0x446ac4)=>_0xa1d812&&!_0x446ac4),_0x4090d6['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x4090d6;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class hs extends kt{constructor(_0x1302af){super(_0x1302af),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x30a000,_0x2cfaf3,_0x1b77ba)=>{this['element']['innerHTML']=_0x1b77ba;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4a334e,_0x339368,_0x32aa74){super(_0x4a334e),this['_model']=_0x339368,this['_config']=_0x32aa74,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x339368,'content',_0x339368,'authoredAt',(_0x1c23f8,_0x4b2861)=>S(_0x4a334e,'COMMENT_ARIA_LABEL',[_0x339368['author']['name'],_0x32aa74['formatDateTime'](_0x4b2861),new DOMParser()['parseFromString'](_0x1c23f8,'text/html')['body']['textContent'],_0x339368['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x4a334e,S(_0x4a334e,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x101026(),this['focusTracker']=new _0x56d5a4(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x567210=>_0x567210['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x4b90e8=new hs(this['locale']);return _0x4b90e8['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x449b5c,_0x3b357a)=>_0x3b357a?_0x285a43(_0x449b5c,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x449b5c),_0x4b90e8;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x15e77f=new os(this['locale'],this['_config']['editorConfig']);return _0x15e77f['value']=this['_model']['content'],_0x15e77f['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x15e77f['submitLabel']=S(this['locale'],'Save'),_0x15e77f['on']('submit',(_0x1dc5bd,_0x4771bc)=>{this['fire']('updateComment',this['_model']['id'],_0x4771bc),this['switchToDisplayMode'](),this['focus']();}),_0x15e77f['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x15e77f['once']('editorReady',()=>{_0x15e77f['focus']();}),_0x15e77f['createEditor'](),_0x15e77f['delegate']('editorReady')['to'](this),_0x15e77f['delegate']('editorDestroyed')['to'](this),_0x15e77f;}['_setupKeyboardNavigation'](){const _0x1da6a5=this['element'];this['keystrokes']['listenTo'](_0x1da6a5);for(const _0x2dae44 of this['focusables'])this['focusTracker']['add'](_0x2dae44['element']),this['keystrokes']['listenTo'](_0x2dae44['element']);this['focusables']['on']('change',(_0x4eedd5,_0x1f4cc3)=>{for(const _0x5aedcf of _0x1f4cc3['removed'])this['focusTracker']['remove'](_0x5aedcf['element']),this['keystrokes']['stopListening'](_0x5aedcf['element']);for(const _0x57fcd1 of _0x1f4cc3['added'])this['focusTracker']['add'](_0x57fcd1['element']),this['keystrokes']['listenTo'](_0x57fcd1['element']);}),this['keystrokes']['set']('enter',(_0x55e062,_0x5c93e1)=>{_0x1da6a5===_0x55e062['target']&&(this['focusCycler']['focusFirst'](),_0x5c93e1());}),this['keystrokes']['set']('esc',(_0xaf1b20,_0x43e4ad)=>{_0x1da6a5!==_0xaf1b20['target']&&(this['focus'](),_0x43e4ad());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x4ec4d5,_0x1dac57,_0x2c4611){super(_0x4ec4d5,_0x1dac57,_0x2c4611),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x4ec4d5,'Reply...')),this['bind']('authoredAt')['to'](_0x1dac57),this['bind']('resolvedAt')['to'](_0x1dac57),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x356f24(_0x4ec4d5,_0x1dac57['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1dac57,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x59cf07=this['bindTemplate'],_0x424d1a=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x59cf07['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59cf07['to']('authoredAt',_0x4fa087=>this['_config']['formatDateTime'](_0x4fa087))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x59cf07['if']('isEditMode','ck-comment__actions--hidden'),_0x59cf07['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x424d1a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x59cf07['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x59cf07['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x59cf07['if']('isEditMode','ck-comment--edit'),_0x59cf07['if']('isSystemComment','ck-comment--info'),_0x59cf07['to']('actionIndicator',_0x47e6ef=>_0x47e6ef?'ck-comment--'+_0x47e6ef:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x424d1a}]}]};}['_createEditButton'](){const _0x241b44=new _0x3db312(this['locale']);return _0x241b44['label']=S(this['locale'],'Edit'),_0x241b44['icon']=_0x2cab2d['pencil'],_0x241b44['withText']=!0x0,_0x241b44['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x241b44['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x31d187=>!_0x31d187),_0x241b44['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x241b44['on']('execute',()=>this['switchToEditMode']()),_0x241b44;}['_createRemoveButton'](){const _0x5f1465=new _0x3db312(this['locale']);return _0x5f1465['label']=S(this['locale'],'Remove'),_0x5f1465['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x5f1465['withText']=!0x0,_0x5f1465['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5f1465['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x16a3cc=>!_0x16a3cc),_0x5f1465['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5f1465['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5f1465;}['_createDropdown'](){const _0x5102d1=_0x4b8d1e(this['locale'],_0x2f73f0),_0x345d98=_0x5102d1['panelView']['children'],_0x131739=new _0x5ee27a(this['locale']),_0x576bee=_0x5102d1['bindTemplate'];_0x369a23(_0x5102d1,()=>this['items']['find'](_0x125380=>_0x125380['isVisible'])),_0x5102d1['extendTemplate']({'attributes':{'class':[_0x576bee['if']('isVisible','ck-hidden',_0x44e9cf=>!_0x44e9cf)]}});const _0x5b7304=(_0x1b654a,_0x3e8a12=-0x1)=>{const _0x57fd45=new _0x10c4ea(this['locale']);_0x57fd45['children']['add'](_0x1b654a);const _0x472f04=_0x3e8a12>-0x1?_0x3e8a12:_0x131739['items']['length'];_0x131739['items']['add'](_0x57fd45,_0x472f04);const _0x1a090e=Array['from'](this['items']);_0x5102d1['unbind']('isEnabled','isVisible'),_0x5102d1['bind']('isEnabled')['toMany'](_0x1a090e,'isEnabled',(..._0x485860)=>_0x485860['some'](_0x44d21d=>_0x44d21d)),_0x5102d1['bind']('isVisible')['toMany'](_0x1a090e,'isVisible',(..._0xd044af)=>_0xd044af['some'](_0x5a7b95=>_0x5a7b95));};_0x5102d1['panelPosition']='sw',_0x5102d1['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x2cab2d['threeVerticalDots']});for(const _0x592d88 of this['items'])_0x5b7304(_0x592d88);return _0x345d98['add'](_0x131739),_0x5102d1['listenTo'](this['items'],'add',(_0x1e1f14,_0x35f0aa,_0x1edf5e)=>{_0x5b7304(_0x35f0aa,_0x1edf5e);}),_0x5102d1['listenTo'](this['items'],'remove',(_0x5a0bd9,_0x3c017f,_0x31fabe)=>{_0x131739['items']['remove'](_0x31fabe);}),_0x5102d1;}['_attachActions'](_0x52047b,_0x27e891){const _0x37d20d=_0x52047b&&_0x52047b['element'];_0x37d20d&&(this['listenTo'](_0x37d20d,'mouseenter',()=>this['actionIndicator']=_0x27e891),this['listenTo'](_0x37d20d,'focus',()=>this['actionIndicator']=_0x27e891),this['listenTo'](_0x37d20d,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x37d20d,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x29e77f=super['_createCommentInputView']();return _0x29e77f['bind']('placeholder')['to'](this),_0x29e77f;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x2f2386){const _0x6d6b66=Dt(_0x2f2386,0x1e),_0xe586c4=new MutationObserver(_0x4e1abd=>{for(const _0x472635 of _0x4e1abd)('attributes'==_0x472635['type']&&'class'==_0x472635['attributeName']||'childList'==_0x472635['type']||'characterData'==_0x472635['type'])&&_0x6d6b66();});return{'attach'(_0x41cca4){_0xe586c4['observe'](_0x41cca4,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0xe586c4['disconnect'](),_0x6d6b66['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x4ae052,_0x425050){super(_0x4ae052),this['id']=_0x92000b(),this['focusTracker']=new _0x56d5a4(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x3f5e62,_0x4fe28b)=>this['fire']('Esc',_0x4fe28b)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x425050),this['mainView']=_0x425050;const _0x743afc=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x743afc['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x15c97d=this['element']['clientHeight'];_0x15c97d&&(this['height']=_0x15c97d);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x180a11(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x15c75a,target:_0x46c1f5,type:_0x4fc4f7,isVisible:_0x360813=!0x0}){super(),this['view']=_0x15c75a,this['view']['element']||this['view']['render'](),this['_type']=_0x4fc4f7,this['_target']=_0x46c1f5,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x2017ed([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x856c9e,_0x1fb895)=>{this['view']['focusTracker']['add'](_0x1fb895);}),this['focusableElements']['on']('remove',(_0x2f626d,_0x1a3065)=>{this['view']['focusTracker']['remove'](_0x1a3065);}),this['set']('isVisible',_0x360813);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3db6f9=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x3db6f9),_0x3db6f9;}get['targetRect'](){const _0x1ebbe4=this['target'];if(null===_0x1ebbe4)return null;if(_0x1ebbe4 instanceof _0x1d5435)return _0x1ebbe4;const _0x49d77e=_0x1ebbe4['filter'](_0x5f3ef6=>function(_0x180a7f){const _0x27feca=_0x180a7f['offsetParent'];if(_0x27feca)return!0x0;const _0x5e3491=_0x180a7f['getClientRects']()['item'](0x0);return!!_0x5e3491;}(_0x5f3ef6));return 0x0===_0x49d77e['length']?null:new _0x1d5435(_0x49d77e[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x48ddfd){this['view']['isActive']=_0x48ddfd,this['view']['mainView']['isActive']=_0x48ddfd;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xf6290f){if(!(null===_0xf6290f||_0xf6290f instanceof _0x1d5435||Array['isArray'](_0xf6290f)&&_0xf6290f['every'](_0x8b8ccd=>ne(_0x8b8ccd))))throw new _0x25287e('annotation-invalid-target',null,{'target':_0xf6290f});}['_getNormalizedTarget'](){const _0x3d2330='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x3d2330)?[_0x3d2330]:_0x3d2330;}}function ne(_0x1c3565){return null!==_0x1c3565&&'object'==typeof _0x1c3565&&'nodeType'in _0x1c3565&&0x1===_0x1c3565['nodeType'];}class x extends _0x2017ed{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x23ba59=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x56d5a4(),this['_focusTracker']['on']('change:isFocused',(_0x2abfdb,_0x1e3a85,_0x402288)=>{_0x402288||this['fire']('blur');});for(const _0x325a97 of _0x23ba59)this['add'](_0x325a97);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x537fe6){if(this['has'](_0x537fe6))throw new _0x25287e('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x537fe6['innerView'],_0x537fe6),this['_viewToAnnotation']['set'](_0x537fe6['view'],_0x537fe6);for(const _0x594959 of _0x537fe6['focusableElements'])this['_focusTracker']['add'](_0x594959);this['listenTo'](_0x537fe6['focusableElements'],'add',(_0x5a6673,_0x2c99f4)=>{this['_focusTracker']['add'](_0x2c99f4);}),this['listenTo'](_0x537fe6['focusableElements'],'remove',(_0xebd7a3,_0x4f1970)=>{this['_focusTracker']['remove'](_0x4f1970);}),this['listenTo'](_0x537fe6['view']['focusTracker'],'change:isFocused',(_0x415cf0,_0x544cc1,_0x2a6422)=>{_0x2a6422&&this['fire']('focus',_0x537fe6);}),_0x537fe6['updateTargetRect']();const _0x12efcc=this['_getOrderInContent'](_0x537fe6['view']['targetRect']);return super['add'](_0x537fe6,_0x12efcc);}['remove'](_0x57ceae){if(!this['has'](_0x57ceae))throw new _0x25287e('annotationcollection-not-existing-item',null);this['stopListening'](_0x57ceae['view']['focusTracker']),this['stopListening'](_0x57ceae['focusableElements']);for(const _0x5912f9 of _0x57ceae['focusableElements'])this['_focusTracker']['remove'](_0x5912f9);return this['_viewToAnnotation']['delete'](_0x57ceae['view']),this['_innerViewToAnnotation']['delete'](_0x57ceae['innerView']),super['remove'](_0x57ceae);}['getByInnerView'](_0x47f740){return this['_innerViewToAnnotation']['get'](_0x47f740);}['getByView'](_0x5d194f){return this['_viewToAnnotation']['get'](_0x5d194f);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x532fae of this)_0x532fae['updateTargetRect']();this['_sort']();}['_sort'](){const _0x158c76=Array['from'](this)['sort']((_0x1d16ec,_0x2f289e)=>v(_0x1d16ec['view']['targetRect'],_0x2f289e['view']['targetRect']));for(let _0x450c52=_0x158c76['length']-0x1;_0x450c52>0x0;_0x450c52--){const _0x1735d2=_0x158c76[_0x450c52];_0x450c52!==this['getIndex'](_0x1735d2)&&(this['remove'](_0x1735d2),this['add'](_0x1735d2));}}['_getOrderInContent'](_0x4e4065){let _0x2cf7bd=0x0;if(!_0x4e4065)return this['length'];for(const _0xcd6960 of this){const _0x41244f=_0xcd6960['view']['targetRect'];if(_0x41244f){if(v(_0x4e4065,_0x41244f)<0x0)return _0x2cf7bd;_0x2cf7bd++;}}return _0x2cf7bd;}}function v(_0xd16fba,_0x5e2b66){if(null===_0xd16fba&&null===_0x5e2b66)return 0x0;if(null===_0xd16fba)return-0x1;if(null===_0x5e2b66)return 0x1;const _0x5cd944=_0xd16fba['top']-_0x5e2b66['top'];return 0x0==_0x5cd944?_0xd16fba['left']-_0x5e2b66['left']:_0x5cd944;}class N extends _0x123b50{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2142f){if(super(_0x2142f),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2142f instanceof _0x51f104){const _0x51d785=_0x2142f['locale'];_0x2142f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x51d785,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x51d785,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x51d785,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x51d785,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x51d785,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x51d785,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x51d785,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3c7665){this['collection']['add'](_0x3c7665);}['remove'](_0x182f89){this['collection']['remove'](_0x182f89),_0x182f89['destroy']();}['refreshVisibility'](){for(const _0x2a50ee of this['collection'])_0x2a50ee['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x58f42b){return this['collection']['getByInnerView'](_0x58f42b);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2cef41 of this['collection'])_0x2cef41['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x384642){this['fire']('_activateAnnotation',_0x384642);}['createAnnotation'](_0x582087){return new d(_0x582087);}['createAnnotationView'](_0x3f7f42,_0x36be2c){return new T(_0x3f7f42,_0x36be2c);}['_addActiveAnnotation'](_0x265fd5){const _0x23cc81=new Set(this['activeAnnotations']);_0x23cc81['add'](_0x265fd5),this['activeAnnotations']=_0x23cc81;}['_removeActiveAnnotation'](_0x26bf61){const _0x3826e4=new Set(this['activeAnnotations']);_0x3826e4['delete'](_0x26bf61),this['activeAnnotations']=_0x3826e4;}['_bindAnnotationsToVisibleAnnotations'](){const _0x56f2ab=this['collection'],_0x4a2e54=this['_visibleAnnotations'];function _0x27d3f7(_0x595f6c){const _0x271cef=_0x595f6c['source'];_0x271cef['isVisible']&&!_0x4a2e54['has'](_0x271cef)?_0x4a2e54['add'](_0x271cef):!_0x271cef['isVisible']&&_0x4a2e54['has'](_0x271cef)&&_0x4a2e54['remove'](_0x271cef),_0x271cef['view']['focusTracker']['remove'](_0x271cef['view']['element']),_0x271cef['view']['focusTracker']['add'](_0x271cef['view']['element']);}this['listenTo'](_0x56f2ab,'add',(_0x9f77d3,_0xaefa52)=>{_0xaefa52['isVisible']&&_0x4a2e54['add'](_0xaefa52),this['listenTo'](_0xaefa52,'change:isVisible',_0x27d3f7);}),this['listenTo'](_0x56f2ab,'remove',(_0x4e4839,_0x54c3d5)=>{_0x4a2e54['has'](_0x54c3d5)&&_0x4a2e54['remove'](_0x54c3d5),this['stopListening'](_0x54c3d5,'change:isVisible',_0x27d3f7);});}['_setupEnterAnnotationKeystroke'](){const _0x1f9ae7=_0x37cc2d=>{_0x37cc2d['on']('ready',()=>{_0x37cc2d['keystrokes']['set'](_0x3968c6,(_0x360e88,_0x34945b)=>{const _0x341e1c=_0x46af0f(this['activeAnnotations']['values']());_0x341e1c&&(_0x341e1c['view']['focus'](),_0x34945b());});});};this['context']instanceof _0x51f104?_0x1f9ae7(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x4717a9,_0x43acf1)=>{_0x1f9ae7(_0x43acf1);});}['_setupEscapeAnnotationHandling'](){const _0x31593d=_0x396378=>{const _0x1aa41a=_0x396378['source'],_0x5ebca0=[];let _0xc2ee0a;if(Array['isArray'](_0x1aa41a['target'])){_0xc2ee0a=_0x1aa41a['target'][0x0],this['context']instanceof _0x51f104?_0x5ebca0['push'](this['context']):this['context']['editors']&&_0x5ebca0['push'](...this['context']['editors']);for(const _0x3cdd40 of _0x5ebca0)for(const _0xb501af of _0x3cdd40['editing']['view']['domRoots']['values']())if(_0xb501af['contains'](_0xc2ee0a))return void _0x3cdd40['editing']['view']['focus']();_0xc2ee0a['focus']();}};this['listenTo'](this['collection'],'add',(_0xd07600,_0xadc517)=>{this['listenTo'](_0xadc517,'escape',_0x31593d,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0xada522,_0x5c6b00)=>{this['stopListening'](_0x5c6b00,'escape',_0x31593d);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x123b50{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d19de){super(_0x3d19de),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4a52cf=this['context']['config'];_0x4a52cf['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4a52cf['define']('comments.maxThreadTotalWeight',0x1f4),_0x4a52cf['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4a52cf['define']('comments.CommentThreadView',vt),_0x4a52cf['define']('comments.CommentView',gt),_0x4a52cf['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x278b30=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x397d72,_0xd98bc9)=>this['_addCommentThread'](_0xd98bc9)),this['on']('submitCommentThread',(_0x5175b7,_0x2558cf)=>this['_submitCommentThread'](_0x2558cf)),this['on']('resolveCommentThread',(_0x559000,_0x5393cf)=>this['_resolveCommentThread'](_0x5393cf)),this['on']('resolveCommentThread',(_0xad91d0,_0x53bd89)=>this['_updateActiveAnnotation'](_0x53bd89),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x53bab8,_0x538b8e)=>this['_reopenCommentThread'](_0x538b8e)),this['on']('reopenCommentThread',(_0x2a72c6,_0x26fc5f)=>this['_updateActiveAnnotation'](_0x26fc5f),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x2fd3cb,_0x283efc)=>this['_removeCommentThread'](_0x283efc)),this['on']('updateCommentThread',(_0x226dfa,_0x572949)=>this['_updateCommentThread'](_0x572949)),this['on']('updateCommentThread',(_0x4a9d31,_0x532e84)=>this['_updateActiveAnnotation'](_0x532e84),{'priority':'lowest'}),this['on']('addComment',(_0x41101e,_0x55f389)=>this['_addComment'](_0x55f389)),this['on']('updateComment',(_0x87f473,_0x24e675)=>this['_updateComment'](_0x24e675)),this['on']('removeComment',(_0x596a90,_0x1f79a2)=>this['_removeComment'](_0x1f79a2)),this['on']('addComment',(_0x103051,{threadId:_0x2e845f,isFromAdapter:_0x530119})=>{if(_0x530119)return;const _0x145664=this['getCommentThread'](_0x2e845f),_0x16356c=_0x145664&&this['_threadToController']['get'](_0x145664);_0x16356c&&_0x16356c['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x278b30,'change:activeAnnotations',(_0x2d331f,_0x2ea38,_0x582b4b)=>{const _0x485d08=Array['from'](_0x582b4b)['map'](_0x3cf958=>this['_viewToController']['get'](_0x3cf958['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x485d08?_0x485d08['model']:null;});}set['adapter'](_0xc438d6){if(this['_adapter'])throw new _0x25287e('commentsrepository-adapter-already-set');this['_adapter']=_0xc438d6;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x58fc0c=Tt,threadId:_0x78bfb0=_0x92000b(),comments:_0x4a0dbc=[],unlinkedAt:_0x36db40=null,resolvedAt:_0xd2ce68=null,resolvedBy:_0x5e30a2=null,target:_0x4a4dec=null,context:_0x2859ae=null,attributes:_0x4a10b6={},isResolvable:_0x590944=!0x0,isSubmitted:_0x13bb17=!0x1,isFromAdapter:_0x137aed=!0x1}={}){return this['fire'](bt('addCommentThread',_0x58fc0c),{'channelId':_0x58fc0c,'threadId':_0x78bfb0,'comments':_0x4a0dbc,'unlinkedAt':_0x36db40,'resolvedAt':_0xd2ce68,'resolvedBy':_0x5e30a2,'target':_0x4a4dec,'context':_0x2859ae,'attributes':_0x4a10b6,'isFromAdapter':_0x137aed,'isResolvable':_0x590944,'isSubmitted':_0x13bb17}),this['getCommentThread'](_0x78bfb0);}['openNewCommentThread']({channelId:_0x1dc6fc=Tt,threadId:_0x40bc3c=_0x92000b(),target:_0x51de03,context:_0x32577a=null,isResolvable:_0x52b541=!0x0}){if(this['_readOnlyChannels']['has'](_0x1dc6fc)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x51de03)throw new _0x25287e('commentsrepository-missing-target');const _0x486ed3=this['addCommentThread']({'channelId':_0x1dc6fc,'threadId':_0x40bc3c,'target':_0x51de03,'context':_0x32577a,'isResolvable':_0x52b541});if(!_0x486ed3)return null;const _0x356256=this['_threadToController']['get'](_0x486ed3),_0x485e63=_0x356256['view']['commentThreadInputView']['commentInputView'],_0x10e7b1=this['context']['plugins']['get'](N),_0x54cdd1=_0x10e7b1['getByInnerView'](_0x356256['view']);return _0x10e7b1['activate'](_0x54cdd1),_0x485e63['once']('editorReady',()=>_0x485e63['focus']()),_0x486ed3;}['hasCommentThread'](_0x56b0a0){if('string'!=typeof _0x56b0a0)throw new _0x25287e('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x56b0a0);}['updateCommentThread']({channelId:_0x26122f=Tt,threadId:_0x586cc8,context:_0x50f863,unlinkedAt:_0x595dbd,attributes:_0x489fac,isFromAdapter:_0x3904c0=!0x1}){return this['fire'](bt('updateCommentThread',_0x26122f),{'channelId':_0x26122f,'threadId':_0x586cc8,'context':_0x50f863,'unlinkedAt':_0x595dbd,'attributes':_0x489fac,'isFromAdapter':_0x3904c0}),this['getCommentThread'](_0x586cc8);}['getCommentThread'](_0x42eb7b){if('string'!=typeof _0x42eb7b)throw new _0x25287e('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x42eb7b);}['fetchCommentThread']({channelId:_0x307e64,threadId:_0x4b27f5}={}){const _0x9084e6=this['getCommentThread'](_0x4b27f5);if(_0x9084e6)return Promise['resolve'](_0x9084e6);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x25287e('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x307e64,'threadId':_0x4b27f5})['then'](_0x54869e=>this['hasCommentThread'](_0x4b27f5)?this['getCommentThread'](_0x4b27f5):_0x54869e?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x307e64},_0x54869e)):void 0x0)['catch'](_0x125ca9=>{throw console['error'](_0x125ca9),new _0x25287e('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4ae15c,skipNotAttached:_0x32d2cf=!0x1,skipEmpty:_0x43108b=!0x1,toJSON:_0x57e97a=!0x1}={}){const _0x3b4e70=[];for(const _0xfd9a08 of this['_threads']['values']())_0x4ae15c&&_0xfd9a08['channelId']!==_0x4ae15c||_0x32d2cf&&!_0xfd9a08['isAttached']||_0x43108b&&0x0===_0xfd9a08['length']||_0x3b4e70['push'](_0xfd9a08);return _0x57e97a?_0x3b4e70['map'](_0x3fc3fe=>_0x3fc3fe['toJSON']()):_0x3b4e70;}['setActiveCommentThread'](_0xbf4fcd){const _0x31ea5=this['context']['plugins']['get'](N);if(!_0xbf4fcd)return void(this['activeCommentThread']&&_0x31ea5['deactivateAll']());const _0x39a9d5=this['getCommentThread'](_0xbf4fcd);if(!_0x39a9d5)throw new _0x25287e('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xbf4fcd});if(!this['_threadToController']['has'](_0x39a9d5))throw new _0x25287e('commentsrepository-active-not-attached',null,{'threadId':_0xbf4fcd});const _0x22ef10=_0x31ea5['getByInnerView'](this['_threadToController']['get'](_0x39a9d5)['view']);_0x31ea5['activate'](_0x22ef10);}['switchReadOnly'](_0x85626f,_0x59b9f5){_0x85626f?this['_readOnlyChannels']['add'](_0x59b9f5):this['_readOnlyChannels']['delete'](_0x59b9f5),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x8896e8){return this['_readOnlyChannels']['has'](_0x8896e8)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x56e34c,_0xb58091){return new Ct(_0x56e34c,_0xb58091);}['setPermissions'](_0x3ed01a,_0xf2f9b6=Tt){this['_permissions']['set'](_0xf2f9b6,_0x3ed01a),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x148fb1=Tt){return this['_permissions']['has'](_0x148fb1)?this['_permissions']['get'](_0x148fb1):_t;}['_addCommentThread']({channelId:_0x4b71ea,threadId:_0x2fbf7a,comments:_0x8fcce3,unlinkedAt:_0x2702eb,resolvedAt:_0x1e972b,resolvedBy:_0x1bbbbc,target:_0x151227,context:_0x410a70,attributes:_0x164616,isFromAdapter:_0x605e83,isResolvable:_0x50e8e7,isSubmitted:_0x3a34bb}){if('string'!=typeof _0x2fbf7a)throw new _0x25287e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2fbf7a});if(this['hasCommentThread'](_0x2fbf7a))throw new _0x25287e('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x2fbf7a});const _0x2fcee1=new oe(this,{'channelId':_0x4b71ea,'id':_0x2fbf7a,'context':_0x410a70,'attributes':_0x164616,'unlinkedAt':_0x2702eb,'resolvedAt':_0x1e972b,'resolvedBy':_0x1bbbbc?this['context']['plugins']['get'](it)['getUser'](_0x1bbbbc):null,'isResolvable':_0x50e8e7,'isSubmitted':_0x3a34bb||_0x605e83});this['_threads']['set'](_0x2fbf7a,_0x2fcee1);for(const _0x520dc2 of _0x8fcce3)_0x2fcee1['_add'](this['_createNewComment']({'threadId':_0x2fbf7a,..._0x520dc2}));return _0x151227&&_0x2fcee1['attachTo'](_0x151227),_0x605e83||!_0x2fcee1['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4b71ea,'threadId':_0x2fbf7a});}['_submitCommentThread']({channelId:_0x281de2,threadId:_0xae2ad5}){if(!this['hasCommentThread'](_0xae2ad5))throw new _0x25287e('commentsrepository-missing-comment-thread',this);const _0x32a498=this['getCommentThread'](_0xae2ad5);if(_0x32a498['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x398bfa,comments:_0x341f22,resolvedAt:_0x4356cf,resolvedBy:_0x313662,context:_0x3d4db2,attributes:_0x45985c}=_0x32a498,_0x5cb9b0=this['context']['plugins']['get']('PendingActions'),_0x2787bd=_0x5cb9b0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x281de2,'threadId':_0x398bfa,'comments':_0x341f22['map'](_0xea4197=>_0xea4197['toJSON']()),'resolvedAt':_0x4356cf,'resolvedBy':_0x313662?_0x313662['id']:_0x313662,'context':_0x3d4db2,'attributes':_0x45985c})['then'](({comments:_0xd47bed})=>{_0x5cb9b0['remove'](_0x2787bd);for(const _0x3a405f of _0xd47bed)this['_updateComment']({'channelId':_0x281de2,'threadId':_0xae2ad5,'commentId':_0x3a405f['commentId'],'createdAt':_0x3a405f['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x215df6=>{throw console['error'](_0x215df6),new _0x25287e('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x58d1cd,target:_0x37d566}){const _0x2eb75a=this['getCommentThread'](_0x58d1cd);if(!_0x2eb75a)throw new _0x25287e('commentsrepository-attach-missing-comment-thread',this);const _0xc108e4=this['context']['plugins']['get']('PendingActions'),_0x3921c4=this['context']['plugins']['get'](N),_0x214624=this['_createCommentThreadView'](_0x2eb75a),_0x5e84fa=new Ct(_0x2eb75a,_0x214624);let _0x299fc0=null;_0x214624['on']('change:isDirty',(_0x203428,_0x147f80,_0x36fcd3)=>{_0x36fcd3?_0x299fc0=_0xc108e4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x299fc0&&(_0xc108e4['remove'](_0x299fc0),_0x299fc0=null);}),this['_threadToController']['set'](_0x2eb75a,_0x5e84fa),this['_viewToController']['set'](_0x214624,_0x5e84fa);const _0x2a8954=new T(this['context']['locale'],_0x214624);_0x2a8954['bind']('length')['to'](_0x214624),_0x2a8954['bind']('isDirty')['to'](_0x214624,'isDirty',_0x214624,'length',(_0x3a08e9,_0x32fe33)=>_0x3a08e9||!_0x32fe33),_0x2a8954['bind']('isActive')['to'](_0x214624),_0x2a8954['type']='comment';const _0xd64c8a=new d({'view':_0x2a8954,'target':_0x37d566,'type':'comment','isVisible':!_0x2eb75a['archivedAt']});return _0x214624['on']('escape',()=>{_0xd64c8a['fire']('escape');}),this['_bindAnnotationToEditors'](_0x214624,_0xd64c8a),_0x3921c4['add'](_0xd64c8a),_0xd64c8a;}['_bindAnnotationToEditors'](_0xa8e527,_0x5c779c){this['listenTo'](_0xa8e527,'editorReady',(_0x2b501f,_0x53cf0d)=>{const _0x589362=_0x53cf0d['ui']['view']['body']['bodyCollectionContainer'];_0x5c779c['focusableElements']['add'](_0x589362),this['context']instanceof _0x51f104&&this['context']['ui']['focusTracker']['add'](_0x589362);},{'priority':'highest'}),this['listenTo'](_0xa8e527,'editorDestroyed',(_0x336091,_0x2bce77)=>{const _0x44281e=_0x2bce77['ui']['view']['body']['bodyCollectionContainer'];_0x5c779c['focusableElements']['has'](_0x44281e)&&_0x5c779c['focusableElements']['remove'](_0x44281e),this['context']instanceof _0x51f104&&this['context']['ui']['focusTracker']['remove'](_0x44281e);});}['_unbindEditors'](_0x3703db){this['stopListening'](_0x3703db,'editorReady'),this['stopListening'](_0x3703db,'editorDestroyed');}['_createCommentThreadView'](_0x331f3f){const _0x3b7527=this['context']['plugins']['get'](it),{config:_0x2d7ea5,locale:_0x5968b6}=this['context'],_0x4bae0d=lt(_0x2d7ea5['get']('locale'));return new(0x0,(_0x2d7ea5['get']('comments'))['CommentThreadView'])(_0x5968b6,_0x331f3f,_0x3b7527['me'],{'editorConfig':{..._0x2d7ea5['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x2d7ea5['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x2d7ea5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2d7ea5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2d7ea5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4bae0d,'CommentView':_0x2d7ea5['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x476ce8,channelId:_0x553f20,resolvedAt:_0x33d833,resolvedBy:_0x2192d9,isFromAdapter:_0x22520a}){if(!this['hasCommentThread'](_0x476ce8))throw new _0x25287e('commentsrepository-missing-comment-thread',null,{'threadId':_0x476ce8});const _0x4d52b9=this['getCommentThread'](_0x476ce8);if(_0x4d52b9['isResolved'])throw new _0x25287e('commentsrepository-resolved-comment-thread',null,{'threadId':_0x476ce8});const _0x1524cf=this['context']['plugins']['get'](it);if(_0x4d52b9['resolvedBy']=_0x1524cf['getUser'](_0x2192d9),_0x4d52b9['resolvedAt']=_0x33d833,_0x22520a||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x110d3a=this['context']['plugins']['get']('PendingActions'),_0x3a78d5=_0x110d3a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x553f20,'threadId':_0x476ce8})['then'](({resolvedAt:_0x54756d,resolvedBy:_0x4ff97a})=>{_0x110d3a['remove'](_0x3a78d5),_0x4d52b9['resolvedBy']['id']!==_0x4ff97a&&(_0x4d52b9['resolvedBy']=_0x1524cf['getUser'](_0x4ff97a)),_0x4d52b9['resolvedAt']=_0x54756d;})['catch'](_0x2f06c4=>{throw console['error'](_0x2f06c4),new _0x25287e('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3a1b4a,channelId:_0x404a0a,isFromAdapter:_0x32ae17}){if(!this['hasCommentThread'](_0x3a1b4a))throw new _0x25287e('commentsrepository-missing-comment-thread',null,{'threadId':_0x3a1b4a});const _0xd468c8=this['getCommentThread'](_0x3a1b4a);if(!_0xd468c8['isResolved'])throw new _0x25287e('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3a1b4a});if(_0xd468c8['resolvedBy']=null,_0xd468c8['resolvedAt']=null,_0x32ae17||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1013b3=this['context']['plugins']['get']('PendingActions'),_0x3fadef=_0x1013b3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x404a0a,'threadId':_0x3a1b4a})['then'](()=>_0x1013b3['remove'](_0x3fadef))['catch'](_0x12f5ad=>{throw console['error'](_0x12f5ad),new _0x25287e('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xe796a1,isFromAdapter:_0x133a94}){const _0x335dfb=this['getCommentThread'](_0xe796a1);if(!_0x335dfb)throw new _0x25287e('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xe796a1),this['_threads']['delete'](_0xe796a1),!_0x335dfb['isSubmitted']||_0x133a94||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x31b340=this['context']['plugins']['get']('PendingActions'),{channelId:_0x495db4}=_0x335dfb,_0x1a36e8=_0x31b340['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x495db4,'threadId':_0xe796a1})['then'](()=>_0x31b340['remove'](_0x1a36e8))['catch'](_0x3b4bbc=>{throw console['error'](_0x3b4bbc),new _0x25287e('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5f4d9d,unlinkedAt:_0x4f5690,context:_0x3e4363,attributes:_0x545310,isFromAdapter:_0x2f04bf}){if('string'!=typeof _0x5f4d9d)throw new _0x25287e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5f4d9d});if(!this['hasCommentThread'](_0x5f4d9d))throw new _0x25287e('commentsrepository-missing-comment-thread',null,{'threadId':_0x5f4d9d});const _0x185063=this['getCommentThread'](_0x5f4d9d);let _0x268b01=!0x1;if(void 0x0!==_0x3e4363&&_0x185063['context']!==_0x3e4363&&(_0x185063['context']=_0x3e4363,_0x268b01=!0x0),void 0x0!==_0x4f5690&&_0x185063['unlinkedAt']!==_0x4f5690&&(_0x185063['unlinkedAt']=_0x4f5690,_0x268b01=!0x0),_0x545310&&!wt(_0x545310,_0x185063['attributes'])&&(_0x185063['attributes']=_0x545310,_0x268b01=!0x0),!_0x268b01)return Promise['resolve']();if(!_0x185063['isSubmitted']||_0x2f04bf||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x1661c4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x172acf}=_0x185063,_0x40890f=_0x1661c4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x172acf,'threadId':_0x5f4d9d,'context':_0x3e4363,'unlinkedAt':_0x4f5690,'attributes':_0x545310})['then'](()=>_0x1661c4['remove'](_0x40890f))['catch'](_0x344c3b=>{throw console['error'](_0x344c3b),new _0x25287e('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x5bf5b5){const _0x812f51=this['context']['plugins']['get'](N),_0x115015=this['getCommentThread'](_0x5bf5b5);if(_0x115015['_isAttached']=!0x1,this['_threadToController']['has'](_0x115015)){const _0x20151a=this['_threadToController']['get'](_0x115015),_0x42de14=_0x20151a['view'],_0x213ed6=_0x812f51['getByInnerView'](_0x42de14);this['_threadToController']['delete'](_0x115015),this['_viewToController']['delete'](_0x42de14),_0x213ed6&&_0x812f51['remove'](_0x213ed6),_0x20151a['destroy'](),_0x42de14['destroy']()['then'](()=>{this['_unbindEditors'](_0x42de14);});}}['_updateActiveAnnotation']({threadId:_0x3c751d,resolvedAt:_0x24c36c}){const _0x2f891c=!!_0x24c36c,_0xccfb9d=this['context']['plugins']['get'](N),_0x371598=this['getCommentThread'](_0x3c751d);if(this['_threadToController']['has'](_0x371598)){const _0x36ab3a=this['_threadToController']['get'](_0x371598)['view'],_0x536b32=_0xccfb9d['getByInnerView'](_0x36ab3a);_0x536b32&&(_0x2f891c&&_0xccfb9d['_removeActiveAnnotation'](_0x536b32),_0x536b32['refreshVisibility']());}}['_getExternalAuthor'](_0x1178ed){const _0x18d9f7=this['context']['plugins']['get'](it),_0xc7af51=pt('external:'+_0x1178ed),_0x1e033c=_0x18d9f7['getUser'](_0xc7af51);return _0x1e033c||_0x18d9f7['addUser']({'id':_0xc7af51,'name':_0x1178ed});}['_createNewComment']({threadId:_0x455581,commentId:_0x41e762=_0x92000b(),content:_0x515206,authorId:_0x3dd39f,createdAt:_0x3eefd6,attributes:_0xc67324}){if('string'!=typeof _0x41e762)throw new _0x25287e('commentsrepository-invalid-commentid');if('string'!=typeof _0x3dd39f)throw new _0x25287e('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x515206||!_0x515206['trim']())throw new _0x25287e('commentsrepository-invalid-comment-content');const _0x296883=this['context']['plugins']['get'](it)['getUser'](_0x3dd39f);if(!_0x296883)throw new _0x25287e('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3dd39f});let _0xccbe6a=null,_0x1f2898=_0x3eefd6;return _0xc67324&&_0xc67324['@external']&&(_0xccbe6a=this['_getExternalAuthor'](_0xc67324['@external']['authorName']),_0x1f2898=new Date(_0xc67324['@external']['createdAt'])),new re(this,{'threadId':_0x455581,'id':_0x41e762,'author':_0xccbe6a||_0x296883,'creator':_0x296883,'content':_0x515206,'createdAt':_0x3eefd6,'authoredAt':_0x1f2898,'attributes':_0xc67324});}['_addComment'](_0x3c93c9){let {threadId:_0x4a67ec,content:_0x2d9aae,attributes:_0x3deed0,isFromAdapter:_0x1bd693}=_0x3c93c9;const _0x381b74=this['getCommentThread'](_0x3c93c9['threadId']);if(!_0x381b74)throw new _0x25287e('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4faba6=this['_createNewComment'](_0x3c93c9),{id:_0x31fd79}=_0x4faba6;if(_0x381b74['_add'](_0x4faba6),_0x1bd693||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x381b74['isSubmitted'])return Promise['resolve']();const _0x483370=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1f6ee4}=_0x381b74,_0x4d65c6=_0x483370['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3deed0||(_0x3deed0={}),this['adapter']['addComment']({'channelId':_0x1f6ee4,'threadId':_0x4a67ec,'commentId':_0x31fd79,'content':_0x2d9aae,'attributes':_0x3deed0})['then'](_0x84a71d=>{_0x483370['remove'](_0x4d65c6),_0x84a71d&&this['_updateComment']({'channelId':_0x1f6ee4,'threadId':_0x4a67ec,'commentId':_0x31fd79,'createdAt':_0x84a71d['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x57bc31=>{throw console['error'](_0x57bc31),new _0x25287e('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x28fa79,commentId:_0x571f7f,content:_0x513cd2,createdAt:_0x5b8a10,attributes:_0xa1e467,isFromAdapter:_0xf36910}){if(void 0x0!==_0x513cd2&&('string'!=typeof _0x513cd2||!_0x513cd2['trim']()['length']))throw new _0x25287e('commentsrepository-update-comment-invalid-content');const _0x9af5fa=this['getCommentThread'](_0x28fa79),_0xf69564=_0x9af5fa['getComment'](_0x571f7f);if(!_0xf69564)throw new _0x25287e('commentsrepository-update-missing-comment',this);let _0x359631=!0x1;if(_0x513cd2&&_0x513cd2!==_0xf69564['content']&&(_0xf69564['isEditable']||_0xf36910)&&(_0xf69564['content']=_0x513cd2,_0x359631=!0x0),_0x5b8a10&&_0x5b8a10!==_0xf69564['createdAt']&&(_0xf69564['createdAt']=_0x5b8a10,_0xf69564['attributes']&&_0xf69564['attributes']['@external']||(_0xf69564['authoredAt']=_0x5b8a10),_0x359631=!0x0),_0xa1e467&&!wt(_0xa1e467,_0xf69564['attributes'])&&(_0xf69564['attributes']=_0xa1e467,_0x359631=!0x0),!_0x359631)return Promise['resolve']();if(_0x9af5fa['fire']('commentUpdated'),_0xf36910||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x44cc71=this['context']['plugins']['get']('PendingActions'),{channelId:_0x58c2d6}=this['getCommentThread'](_0xf69564['threadId']),_0x979fad=_0x44cc71['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x58c2d6,'threadId':_0x28fa79,'commentId':_0x571f7f,'content':_0x513cd2,'attributes':_0xa1e467})['then'](()=>_0x44cc71['remove'](_0x979fad))['catch'](_0x7778f=>{throw console['error'](_0x7778f),new _0x25287e('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x17b8ff,commentId:_0x2738fc,isFromAdapter:_0x274cd9}){const _0x306eb4=this['getCommentThread'](_0x17b8ff),_0x2c8c65=_0x306eb4['getComment'](_0x2738fc);if(!_0x2c8c65)throw new _0x25287e('commentsrepository-remove-missing-comment',this);if(_0x306eb4['_remove'](_0x2c8c65),_0x274cd9||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x5e441c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2925b1}=_0x306eb4,_0x4f05a0=_0x5e441c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2925b1,'threadId':_0x17b8ff,'commentId':_0x2738fc})['then'](()=>_0x5e441c['remove'](_0x4f05a0))['catch'](_0x46fb16=>{throw console['error'](_0x46fb16),new _0x25287e('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x180a11(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x237e17,_0x327d02){super();const _0x19a3d9=_0x327d02['isResolvable'];this['channelId']=_0x327d02['channelId'],this['id']=_0x327d02['id'],this['comments']=new _0x2017ed(),this['_repository']=_0x237e17,this['_isAttached']=!0x1,this['_isSubmitted']=_0x327d02['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x237e17,'_permissions',_0x237e17,'_readOnlyChannels',()=>_0x237e17['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x237e17,'_permissions',()=>_0x237e17['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x237e17,'_permissions',()=>{const _0x4c20af=_0x237e17['getPermissions'](this['channelId']);return _0x4c20af['write']||_0x4c20af['admin'];}),this['bind']('isResolvable')['to'](_0x237e17,'_permissions',()=>_0x19a3d9&&_0x237e17['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x327d02['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0xb47c14,_0xe059f1)=>_0xb47c14?_0xe059f1?_0xb47c14<_0xe059f1?_0xb47c14:_0xe059f1:_0xb47c14:_0xe059f1),this['set']('unlinkedAt',_0x327d02['unlinkedAt']||null),this['set']('resolvedAt',_0x327d02['resolvedAt']||null),this['set']('resolvedBy',_0x327d02['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x133619=>!!_0x133619),this['set']('attributes',_0x327d02['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x17ef8c,_0x3d584f)=>_0x17ef8c+_0x3d584f['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x36a875,id:_0x584cf4}=this;this['_repository']['fire'](bt('submitCommentThread',_0x36a875),{'channelId':_0x36a875,'threadId':_0x584cf4});}['setUnlinkedAt'](_0x3bc70e){this['_update']({'unlinkedAt':_0x3bc70e});}['resolve']({resolvedAt:_0x375460=new Date(),resolvedBy:_0x583f6a=null,isFromAdapter:_0x4a8655=!0x1}={}){const _0x472b1f=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x33aedf,id:_0x384cb2}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x33aedf),{'channelId':_0x33aedf,'threadId':_0x384cb2,'resolvedAt':_0x375460,'resolvedBy':_0x583f6a||_0x472b1f['id'],'isFromAdapter':_0x4a8655});}['reopen']({isFromAdapter:_0x18e5fb=!0x1}={}){const {channelId:_0x423b78,id:_0xe5bb9b}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x423b78),{'channelId':_0x423b78,'threadId':_0xe5bb9b,'isFromAdapter':_0x18e5fb});}['setContext'](_0x450432){this['context']||this['_update']({'context':_0x450432});}['setAttribute'](_0x3e217f,_0x5498fd){const _0x57520d=It(this['attributes']);At(_0x57520d,_0x3e217f,_0x5498fd),this['_update']({'attributes':_0x57520d});}['removeAttribute'](_0x2a808e){const _0x413bc5=It(this['attributes']);yt(_0x413bc5,_0x2a808e),this['_update']({'attributes':_0x413bc5});}['remove']({isFromAdapter:_0x6698cd=!0x1}={}){const {channelId:_0x4b1953,id:_0x2ed3d0}=this;this['_repository']['fire'](bt('removeCommentThread',_0x4b1953),{'channelId':_0x4b1953,'threadId':_0x2ed3d0,'isFromAdapter':_0x6698cd});}['attachTo'](_0x4b99e0){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x4b99e0});}['addComment'](_0x14caa3){const {channelId:_0xf0a11,id:_0x14c950}=this;this['_repository']['fire'](bt('addComment',_0xf0a11,_0x14c950),Object['assign']({'channelId':_0xf0a11,'threadId':_0x14c950},_0x14caa3));}['getComment'](_0x2a9b73){if('string'!=typeof _0x2a9b73)throw new _0x25287e('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2a9b73});return this['comments']['get'](_0x2a9b73);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x5940e7=>_0x5940e7['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3e8c6a){return this['listenTo'](_0x3e8c6a,'change:authoredAt',()=>{const _0x42d3f5=this['_findOptimalIndex'](_0x3e8c6a),_0x4cb8f6=this['comments'];_0x42d3f5-0x1!=_0x4cb8f6['getIndex'](_0x3e8c6a)&&_0x42d3f5+0x1!=_0x4cb8f6['getIndex'](_0x3e8c6a)&&(this['_remove'](_0x3e8c6a),this['_add'](_0x3e8c6a));}),this['comments']['add'](_0x3e8c6a,this['_findOptimalIndex'](_0x3e8c6a));}['_update'](_0x5e4695){const {channelId:_0x4abaf0,id:_0x1268d8}=this;this['_repository']['fire'](bt('updateCommentThread',_0x4abaf0),{..._0x5e4695,'channelId':_0x4abaf0,'threadId':_0x1268d8});}['_remove'](_0x1f8ec1){return this['stopListening'](_0x1f8ec1),_0x1f8ec1['destroy'](),this['comments']['remove'](_0x1f8ec1);}['_findOptimalIndex'](_0x5a8873){const _0x5e42d6=this['comments']['find'](_0x53db0f=>new Date(_0x53db0f['authoredAt'])['getTime']()>new Date(_0x5a8873['authoredAt'])['getTime']());return _0x5e42d6?this['comments']['getIndex'](_0x5e42d6):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x180a11(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x531d4b,_0x1dcc3b){super();const _0x11fb95=_0x531d4b['context']['plugins']['get'](it)['me'],_0x5e085a=_0x531d4b['getCommentThread'](_0x1dcc3b['threadId']),_0x5acbac=0x0===_0x5e085a['comments']['length'],_0x76ad51=_0x11fb95===_0x1dcc3b['author'];this['id']=_0x1dcc3b['id'],this['threadId']=_0x1dcc3b['threadId'],this['author']=_0x1dcc3b['author'],this['creator']=_0x1dcc3b['creator'],this['isExternal']=Boolean(_0x1dcc3b['attributes']&&_0x1dcc3b['attributes']['@external']),this['set']('content',_0x1dcc3b['content']),this['createdAt']=_0x1dcc3b['createdAt']||new Date(),this['set']('authoredAt',_0x1dcc3b['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5e085a,'resolvedAt'),this['set']('attributes',_0x1dcc3b['attributes']||{}),this['bind']('isEditable')['to'](_0x531d4b,'_permissions',()=>{const _0xd139bc=_0x531d4b['getPermissions'](_0x5e085a['channelId'])['write'],_0x72e54f=_0x531d4b['getPermissions'](_0x5e085a['channelId'])['modifyAll'];return _0x76ad51&&_0xd139bc||!_0x76ad51&&_0x72e54f;}),this['bind']('isRemovable')['to'](_0x5e085a,'isRemovable',_0x531d4b,'_permissions',_0x33a339=>{const _0x551633=_0x531d4b['getPermissions'](_0x5e085a['channelId'])['write'],_0x4ccc8a=_0x531d4b['getPermissions'](_0x5e085a['channelId'])['modifyAll'];return _0x76ad51&&_0x551633||_0x33a339&&_0x5acbac||!_0x76ad51&&_0x4ccc8a&&!_0x5acbac;}),this['bind']('isReadOnly')['to'](_0x5e085a,'isReadOnly'),this['_repository']=_0x531d4b;}get['weight'](){return Math['max'](function(_0x518591){const _0x2d495d=document['createElement']('div');return _0x2d495d['innerHTML']=_0x518591,_0x2d495d['textContent']['length'];}(this['content']),0xc8);}['update'](_0x26ecdd){const {threadId:_0x4ba4cd,id:_0x1875a2}=this;if(!this['_repository']['hasCommentThread'](_0x4ba4cd))throw new _0x25287e('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4697c4}=this['_repository']['getCommentThread'](_0x4ba4cd);this['_repository']['fire'](bt('updateComment',_0x4697c4,_0x4ba4cd),{'channelId':_0x4697c4,'threadId':_0x4ba4cd,'commentId':_0x1875a2,..._0x26ecdd});}['setAttribute'](_0x525f61,_0x33db7f){const _0x570cb0=It(this['attributes']);At(_0x570cb0,_0x525f61,_0x33db7f),this['update']({'attributes':_0x570cb0});}['removeAttribute'](_0x483178){const _0x2955cb=It(this['attributes']);yt(_0x2955cb,_0x483178),this['update']({'attributes':_0x2955cb});}['remove'](_0x1085d1={}){if(!_0x1085d1['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x272196,id:_0x3e56fa}=this;if(!this['_repository']['hasCommentThread'](_0x272196))throw new _0x25287e('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x362da8}=this['_repository']['getCommentThread'](_0x272196);this['_repository']['fire'](bt('removeComment',_0x362da8,_0x272196),{'channelId':_0x362da8,'threadId':_0x272196,'commentId':_0x3e56fa,..._0x1085d1});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x2ab51f,..._0x5b5fa1){for(const _0x411d6a of _0x5b5fa1)void 0x0!==_0x411d6a&&(_0x2ab51f+=':'+String(_0x411d6a));return _0x2ab51f;}class J extends _0x3e8e7{['refresh'](){const _0x41667d=this['editor']['model']['document']['selection'];for(const _0x5667bb of _0x41667d['getRanges']())if(this['_hasContent'](_0x5667bb))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0xf01377=_0x92000b()}={}){const _0x15f144=this['editor']['model'],_0x218e41=[];for(const _0x319308 of _0x15f144['document']['selection']['getRanges']())this['_hasContent'](_0x319308)&&_0x218e41['push'](this['_trimToContent'](_0x319308));_0x15f144['change'](_0x20443d=>{for(const _0x1b5ea4 of _0x218e41){const _0x42ad57=_0x92000b()['substr'](0x1,0x5),_0x5e61a1='comment:'+_0xf01377+':'+_0x42ad57;_0x20443d['addMarker'](_0x5e61a1,{'range':_0x1b5ea4,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x34a6c1){for(const _0x283c91 of _0x34a6c1['getItems']())if(this['_itemIsContent'](_0x283c91))return!0x0;return!0x1;}['_itemIsContent'](_0x4e3c30){return _0x4e3c30['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4e3c30)&&!_0x4e3c30['is']('element','tableCell');}['_trimToContent'](_0x2eb5f8){const _0x1f3f59=_0x1ea40c=>!this['_itemIsContent'](_0x1ea40c['item']),_0x5f35b0=_0x2eb5f8['start']['getLastMatchingPosition'](_0x1f3f59),_0x2589b1=_0x2eb5f8['end']['getLastMatchingPosition'](_0x1f3f59,{'direction':'backward'});return this['editor']['model']['createRange'](_0x5f35b0,_0x2589b1);}}class P extends _0x278cf9{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ae6b4){super(_0x4ae6b4),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x32eeaa=this['editor'],_0x53d73f=_0x32eeaa['model']['document']['selection'],_0x529d2f=_0x5166da(()=>this['refreshSelectedViews'](),0xa);_0x53d73f['on']('change:range',(_0x7a085c,_0x243682)=>{_0x243682['directChange']&&(_0x529d2f['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x32eeaa['editing']['view']['document'],'change:isFocused',(_0x1e44bb,_0x361e39,_0x2e25f6)=>{_0x2e25f6&&_0x529d2f();}),this['listenTo'](_0x32eeaa['ui']['focusTracker'],'change:isFocused',(_0x451900,_0x4ca049,_0x1ed44b)=>{_0x1ed44b||_0x32eeaa['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x20f49c=>this['_editorAnnotationsData']['has'](_0x20f49c['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x387eb3){if(this['_editorAnnotations']['has'](_0x387eb3['view']))return;this['_editorAnnotations']['add'](_0x387eb3['view']),this['editor']['ui']['focusTracker']['add'](_0x387eb3['view']['element']);const _0x419501=this['editor']['plugins']['get'](N);this['listenTo'](_0x419501['collection'],'remove',(_0x24ed47,_0x208541)=>{this['editor']['ui']['focusTracker']['remove'](_0x208541['view']['element']),this['_editorAnnotations']['delete'](_0x208541['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0xb26f87){if('function'!=typeof _0xb26f87)throw new _0x25287e('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0xb26f87);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x345b3b,annotations:_0x320cde}){const _0x1f3bd7=[],_0x50a6a8=this['editor']['model']['document']['selection'],_0x4ca369=Array['from'](_0x50a6a8['getRanges']());for(const [_0x487b30,_0x1cd85e]of this['_editorAnnotationsData']){const _0x3733b9=_0x860f4b(_0x1cd85e),_0x20fafd=_0x320cde['getByInnerView'](_0x487b30);_0x3733b9&&_0x20fafd&&_0x1f3bd7['push']({'annotation':_0x20fafd,'range':_0x3733b9});}function _0x860f4b(_0x407f02){for(const _0x41d311 of _0x407f02)for(const _0x4b22d1 of _0x4ca369)if(_0x41d311['containsRange'](_0x4b22d1,!_0x50a6a8['isCollapsed']))return _0x41d311;return null;}return _0x1f3bd7['sort']((_0x1a35ef,_0x564607)=>{const _0xba654f=_0x1a35ef['range'],_0x3c8192=_0x564607['range'];if(!_0xba654f['isEqual'](_0x3c8192)){if(_0xba654f['containsRange'](_0x3c8192,!0x0))return 0x1;if(_0x3c8192['containsRange'](_0xba654f,!0x0))return-0x1;}return _0x1a35ef['annotation']==_0x345b3b?-0x1:_0x564607['annotation']==_0x345b3b?0x1:0x0;})['map'](_0x566c83=>_0x566c83['annotation']);}get['_editorAnnotationsData'](){const _0xa13b65=new Map();for(const _0x53d0f5 of Array['from'](this['_dataCollectors']))for(const [_0x39e563,_0x428628]of _0x53d0f5())_0xa13b65['set'](_0x39e563,_0x428628);return _0xa13b65;}}class st extends _0x278cf9{['afterInit'](){const _0x5c344d=this['editor'];if(!_0x5c344d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5c344d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x278cf9{constructor(_0x5eab0d){super(_0x5eab0d),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x4748e4=this['editor'],_0x4f74c7=_0x4748e4['commands']['get']('importWord'),_0x59c05a=_0x4748e4['plugins']['get'](it);_0x4f74c7&&(_0x4f74c7['on']('execute',(_0x38ee94,[,_0x585576])=>{_0x585576['collaboration_features']={'comments':!0x0,'user_id':_0x59c05a['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4f74c7,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5f5b3b,_0x246a16){const {comment_threads:_0x25e510}=_0x246a16;_0x25e510&&_0x25e510['forEach'](({thread_id:_0x398bb4,comments:_0x3bbf11,is_resolved:_0x189460})=>{const _0x164fae=new Date(),_0x469a00=_0x3bbf11['map'](({author:_0x4804ff,content:_0x27bd23,created_at:_0x28bdbd})=>({'content':_0x27bd23,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x164fae,'attributes':{'@external':{'authorName':_0x4804ff,'createdAt':_0x28bdbd?new Date(_0x28bdbd):new Date(),'source':'importWord'}}})),_0x267116=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x267116,'threadId':_0x398bb4,'comments':_0x469a00,'resolvedAt':_0x189460?_0x164fae:null});});}}class at extends _0x278cf9{constructor(_0x223d27){super(_0x223d27),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x425de3=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x425de3,'contentInsertion',(_0x5d46cc,_0xc5cbf1)=>this['_removeMarkersWithoutThreads'](_0xc5cbf1['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xf94cb2){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xf94cb2;const _0x3a96d5=this['editor']['plugins']['get']('CommentsRepository');for(const _0x569f76 of _0xf94cb2['keys']()){const [_0x3a323d,_0x1eb330]=_0x569f76['split'](':');'comment'!=_0x3a323d||_0x3a96d5['hasCommentThread'](_0x1eb330)||_0xf94cb2['delete'](_0x569f76);}return _0xf94cb2;}['_registerMarkerInClipboardPipeline'](){const _0x17954d=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1bae19=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1bae19&&_0x17954d['_registerMarkerToCopy']('comment',_0x1bae19);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0xf19beb){switch(_0xf19beb){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x278cf9{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0xcb6d55,_0x208e62)=>{if(!_0x208e62['options']['showCommentHighlights'])return null;if(_0x208e62['options']['ignoreResolvedComments']){const {id:_0x8a1bf0}=er(_0xcb6d55['markerName']),_0x5246d3=this['editor']['plugins']['get'](o)['getCommentThread'](_0x8a1bf0);if(_0x5246d3&&_0x5246d3['isResolved']&&_0xcb6d55['item'])return _0x208e62['consumable']['consume'](_0xcb6d55['item'],'addMarker:'+_0xcb6d55['markerName']),_0x208e62['consumable']['consume'](_0xcb6d55['item'],'removeMarker:'+_0xcb6d55['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5171f4=>{_0x5171f4['on']('addMarker:comment',(_0x2fea37,_0xc8f372,_0x28c07b)=>{if(!_0x28c07b['options']['showCommentHighlights'])return;const _0x58ae76=_0xc8f372['item'];if(!_0x58ae76)return;const _0x5bcaf9=_0x28c07b['mapper']['toViewElement'](_0x58ae76);this['editor']['model']['schema']['isObject'](_0x58ae76)&&_0x5bcaf9&&!_0x5bcaf9['getCustomProperty']('widget')&&_0x5bcaf9['is']('containerElement')&&_0x4bc955(_0x5bcaf9,_0x28c07b['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x50fdff,{writer:_0x229dad,options:_0xc93686})=>{if(!_0xc93686['showCommentHighlights'])return null;const _0x1d19d9=_0x229dad['createContainerElement']('div'),_0x435e6f=_0x229dad['createEmptyElement']('hr');return _0x229dad['addClass']('ck-horizontal-line',_0x1d19d9),_0x229dad['insert'](_0x229dad['createPositionAt'](_0x1d19d9,0x0),_0x435e6f),_0x1d19d9;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x3bbfb3,{writer:_0xe8a1c7,options:_0x1650a3})=>{if(!_0x1650a3['showCommentHighlights'])return null;const _0xa4cb65=_0xe8a1c7['createContainerElement']('span'),_0xbb8c9f=_0xe8a1c7['createEmptyElement']('img');return _0xe8a1c7['addClass']('image-inline',_0xa4cb65),_0xe8a1c7['insert'](_0xe8a1c7['createPositionAt'](_0xa4cb65,0x0),_0xbb8c9f),_0xa4cb65;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3c74bd,{writer:_0x54433b,options:_0x1d24e4})=>{if(_0x1d24e4['showCommentHighlights'])return _0x54433b['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x44f326,_0x20b8de,_0x10ee91)=>{_0x10ee91['options']['showCommentHighlights']&&_0x44f326['stop']();},{'priority':'high'});}}class r extends _0x278cf9{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33b0f2){super(_0x33b0f2),this['set']('isThreadsLoadingPaused',!0x0),_0x33b0f2['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3e4b68,_0x449ae3,_0x27e9ee,_0x4cde92)=>{const _0x5e100b=_0x33b0f2['plugins']['get'](o),_0x9514d1=_0x27e9ee?er(_0x27e9ee)['id']:null;_0x33b0f2['model']['change'](()=>{if(_0x9514d1){const _0x4d835c=this['getAllMarkersForId'](_0x9514d1);for(const _0x361a7b of _0x4d835c)_0x33b0f2['editing']['reconvertMarker'](_0x361a7b);}if(_0x4cde92){const {id:_0x387dd6}=er(_0x4cde92),_0x951471=_0x5e100b['getCommentThread'](_0x387dd6);if(_0x951471&&!_0x951471['isAttached'])return;const _0x5104ec=this['getAllMarkersForId'](_0x387dd6);for(const _0x1bfb16 of _0x5104ec)_0x33b0f2['editing']['reconvertMarker'](_0x1bfb16);}}),_0x9514d1&&this['scrollToThreadMarker'](_0x9514d1);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x58e9ea=this['editor'],_0x391b77=_0x58e9ea['plugins']['get'](o),_0xb07191=_0x58e9ea['config']['get']('collaboration.channelId'),_0x1055b2=_0x391b77['getCommentThreads']()['filter'](_0x1538e0=>_0x1538e0['channelId']!==_0xb07191);_0x58e9ea['commands']['add']('addCommentThread',new J(_0x58e9ea)),this['listenTo'](_0x58e9ea,'change:isReadOnly',(_0x3b5a22,_0x248597,_0x22ab5c)=>{_0x391b77['switchReadOnly'](_0x22ab5c,_0x58e9ea['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x391b77,ft('addCommentThread',_0xb07191),(_0x2ea34a,{threadId:_0xf9c9a4})=>{const _0x3f1618=this['editor']['plugins']['get'](o)['getCommentThread'](_0xf9c9a4);_0x3f1618&&_0x3f1618['unlinkedAt']&&this['_attachArchivedThread'](_0xf9c9a4);}),this['listenTo'](_0x391b77,ft('removeCommentThread',_0xb07191),(_0xe50bf0,{threadId:_0x1d590a})=>{_0x58e9ea['model']['enqueueChange']({'isUndoable':!0x1},_0x248009=>{const _0x34cda8=this['getAllMarkersForId'](_0x1d590a);for(const _0x26bc04 of _0x34cda8)_0x248009['removeMarker'](_0x26bc04);});}),this['listenTo'](_0x391b77,ft('resolveCommentThread',_0xb07191),(_0x51cc00,{threadId:_0x938a88})=>{(this['_reconvertMarkers'](_0x938a88),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x938a88)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x391b77,ft('reopenCommentThread',_0xb07191),(_0x379b00,{threadId:_0x257bfd})=>{this['_reconvertMarkers'](_0x257bfd);},{'priority':'low'}),this['listenTo'](_0x391b77,ft('addComment',_0xb07191),(_0x80e329,{threadId:_0x2f41e8,isFromAdapter:_0x5f0270})=>{const _0x388731=this['getAllMarkersForId'](_0x2f41e8);if(_0x5f0270||0x0==_0x388731['length']||!_0x391b77['hasCommentThread'](_0x2f41e8))return;0x1===_0x391b77['getCommentThread'](_0x2f41e8)['length']&&_0x58e9ea['model']['enqueueChange']({'isUndoable':!0x1},_0x27229b=>{for(const _0x44a3e4 of _0x388731)_0x27229b['updateMarker'](_0x44a3e4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x1055b2);}['afterInit'](){!async function(_0x2b97d1){const _0x3a9203=_0x307359([0x52,0x50,0x56,0x55,0x77,0x32,0x30,0x54,0x35,0x4e,0x65,0x46,0x69,0x64,0x53,0x4f,0x4c,0x6a,0x43,0x44,0x61,0x62,0x6d,0x57,0x72,0x49,0x47,0x33,0x6f,0x31,0x6c,0x51,0x63,0x66,0x37,0x48,0x38,0x6e,0x71,0x75,0x45,0x4b,0x4d,0x79,0x41,0x76,0x73,0x74,0x78,0x7a,0x70,0x58,0x67,0x36,0x59,0x68,0x4a,0x39,0x5a,0x34,0x42,0x6b]),_0x2b1835=0x13aecb5b,_0x5299fc=0x13a99443^_0x2b1835,_0x1a3f0d=window[_0x307359([0x44,0x61,0x74,0x65])][_0x307359([0x6e,0x6f,0x77])](),_0x2cba0b=_0x2b97d1[_0x307359([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x14f76e=new window[(_0x307359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329dec=>{_0x2cba0b[_0x307359([0x6f,0x6e,0x63,0x65])](_0x307359([0x72,0x65,0x61,0x64,0x79]),_0x329dec);}),_0x14fda1={[_0x307359([0x6b,0x74,0x79])]:_0x307359([0x45,0x43]),[_0x307359([0x75,0x73,0x65])]:_0x307359([0x73,0x69,0x67]),[_0x307359([0x63,0x72,0x76])]:_0x307359([0x50,0x2d,0x32,0x35,0x36]),[_0x307359([0x78])]:_0x307359([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x307359([0x79])]:_0x307359([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x307359([0x61,0x6c,0x67])]:_0x307359([0x45,0x53,0x32,0x35,0x36])},_0x4ed7e8=_0x2cba0b[_0x307359([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x307359([0x67,0x65,0x74])](_0x307359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x21d086(){let _0x1c54f3,_0x3f09f3=null,_0x1cce00=null;try{if(_0x4ed7e8==_0x307359([0x47,0x50,0x4c]))return _0x307359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c54f3=_0x1efb50(),!_0x1c54f3)return _0x307359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c54f3[_0x307359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cce00=_0x36d777(_0x1c54f3[_0x307359([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c54f3[_0x307359([0x6a,0x74,0x69])])),await _0x2d769f()?_0x239c76()?_0x170a4d()?_0x307359([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9deedc()?(_0x1c54f3[_0x307359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x307359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f09f3=_0x312af2(_0x307359([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c54f3[_0x307359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x307359([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f09f3=_0x312af2(_0x307359([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x469160()):_0x307359([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x307359([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x307359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x367f0b){return _0x307359([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x170a4d(){const _0x27e287=[_0x307359([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x307359([0x74,0x72,0x69,0x61,0x6c])][_0x307359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c54f3[_0x307359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a3f0d/0x3e8:0xe10*_0x5299fc;return _0x1c54f3[_0x307359([0x65,0x78,0x70])]<_0x27e287;}function _0x239c76(){const _0x56c1b0=_0x1c54f3[_0x307359([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x56c1b0)return!0x1;if(_0x56c1b0[_0x307359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x307359([0x2a])))return!0x0;if(_0x56c1b0[_0x307359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x307359([0x43,0x4d,0x54])))return!0x0;if(_0x56c1b0[_0x307359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x307359([0x52,0x43,0x4d,0x54]))){if(_0x5f030d())return!0x0;if(_0x3655c0()||_0x56a7f2())return!0x0;}return!0x1;}function _0x9deedc(){const _0x4c84a8=_0x1c54f3[_0x307359([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c84a8||0x0==_0x4c84a8[_0x307359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c8b6c}=new URL(window[_0x307359([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c84a8[_0x307359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c8b6c))return!0x0;const _0x4723d2=_0x5c8b6c[_0x307359([0x73,0x70,0x6c,0x69,0x74])](_0x307359([0x2e]));return _0x4c84a8[_0x307359([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1008c1=>_0x1008c1[_0x307359([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x307359([0x2a])))[_0x307359([0x6d,0x61,0x70])](_0x3a54ae=>_0x3a54ae[_0x307359([0x73,0x70,0x6c,0x69,0x74])](_0x307359([0x2e])))[_0x307359([0x73,0x6f,0x6d,0x65])](_0x4f110a=>_0x4723d2[_0x307359([0x65,0x76,0x65,0x72,0x79])]((_0x2d85e9,_0x25a1c6)=>_0x4f110a[_0x25a1c6]===_0x2d85e9||_0x4f110a[_0x25a1c6]===_0x307359([0x2a])));}function _0x469160(){return _0x3f09f3&&_0x1cce00?new window[(_0x307359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fc4a0,_0x44d02e)=>{_0x3f09f3[_0x307359([0x74,0x68,0x65,0x6e])](_0x4fc4a0,_0x44d02e),_0x1cce00[_0x307359([0x74,0x68,0x65,0x6e])](_0x22cdbb=>{_0x22cdbb!=_0x307359([0x56,0x61,0x6c,0x69,0x64])&&_0x4fc4a0(_0x22cdbb);},_0x44d02e);}):_0x3f09f3||_0x1cce00||_0x307359([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36d777(_0x31770d,_0x11f609){return new window[(_0x307359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c7c36=>{if(_0x4ad2cc())return _0x1c7c36(_0x307359([0x56,0x61,0x6c,0x69,0x64]));_0x3e4362(),_0x2cba0b[_0x307359([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x307359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xbca3d2=!0x1;const _0x4836ff=_0x92000b();function _0x3b317f(_0x52c3d2){return!!_0x52c3d2&&(typeof _0x52c3d2===_0x307359([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x52c3d2===_0x307359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x52c3d2[_0x307359([0x74,0x68,0x65,0x6e])]===_0x307359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x52c3d2[_0x307359([0x63,0x61,0x74,0x63,0x68])]===_0x307359([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc09820(_0x10bed3){_0x4231ac(_0x10bed3)[_0x307359([0x74,0x68,0x65,0x6e])](_0x15042f=>{if(!_0x15042f||_0x15042f[_0x307359([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x307359([0x6f,0x6b]))return _0x307359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe061da(_0x1220a3(_0x4836ff+_0x11f609))!=_0x15042f[_0x307359([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x307359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x307359([0x56,0x61,0x6c,0x69,0x64]);})[_0x307359([0x74,0x68,0x65,0x6e])](_0x129fd4=>(_0x3c8bd0(),_0x129fd4),()=>{const _0x40a482=_0x108534();return null==_0x40a482?(_0x3c8bd0(),_0x307359([0x56,0x61,0x6c,0x69,0x64])):_0x307359(_0x1a3f0d-_0x40a482>(0x37a24f5b^_0x2b1835)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x307359([0x74,0x68,0x65,0x6e])](_0x1c7c36)[_0x307359([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c7c36(_0x307359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12b17e=0x139825db^_0x2b1835;function _0x3c8bd0(){const _0x2ef872=_0x307359([0x6c,0x6c,0x63,0x74,0x2d])+_0xe061da(_0x1220a3(_0x31770d)),_0x2268e3=_0x4003dc(_0xe061da(window[_0x307359([0x4d,0x61,0x74,0x68])][_0x307359([0x63,0x65,0x69,0x6c])](_0x1a3f0d/_0x12b17e)));window[_0x307359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x307359([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ef872,_0x2268e3);}function _0x108534(){const _0x4d5a47=_0x307359([0x6c,0x6c,0x63,0x74,0x2d])+_0xe061da(_0x1220a3(_0x31770d)),_0x16dee1=window[_0x307359([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x307359([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d5a47);return _0x16dee1?window[_0x307359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4003dc(_0x16dee1),0x10)*_0x12b17e:null;}function _0x4231ac(_0xd3c1ab){return new window[(_0x307359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a1d77,_0x1327f4)=>{_0xd3c1ab[_0x307359([0x74,0x68,0x65,0x6e])](_0x4a1d77,_0x1327f4),window[_0x307359([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1327f4,0x13af1f9b^_0x2b1835);});}}_0x2cba0b[_0x307359([0x6f,0x6e])](_0x307359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f1a30,_0x5b9a8b)=>{if(_0x5b9a8b[0x0]!=_0x31770d)return _0x1c7c36(_0x307359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b9a8b[0x1]={..._0x5b9a8b[0x1],[_0x307359([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4836ff};},{[_0x307359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x307359([0x68,0x69,0x67,0x68])}),_0x2cba0b[_0x307359([0x6f,0x6e])](_0x307359([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e74eb=>{_0x3b317f(_0x3e74eb[_0x307359([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xbca3d2=!0x0,_0xc09820(_0x3e74eb[_0x307359([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x307359([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x307359([0x6c,0x6f,0x77])}),_0x14f76e[_0x307359([0x74,0x68,0x65,0x6e])](()=>{_0xbca3d2||_0x1c7c36(_0x307359([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ad2cc(){return _0x2cba0b[_0x307359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x307359([0x76,0x69,0x65,0x77])][_0x307359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x307359([0x61,0x75,0x74,0x6f]);}function _0x3e4362(){_0x2cba0b[_0x307359([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x307359([0x76,0x69,0x65,0x77])][_0x307359([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x307359([0x61,0x75,0x74,0x6f]);}}function _0x312af2(_0xa867b){const _0x436a61=[new window[(_0x307359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172381=>setTimeout(_0x172381,0x13a7f597^_0x2b1835)),_0x14f76e[_0x307359([0x74,0x68,0x65,0x6e])](()=>new window[(_0x307359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x808286=>{let _0x39f4a7=0x0;_0x2cba0b[_0x307359([0x6d,0x6f,0x64,0x65,0x6c])][_0x307359([0x6f,0x6e])](_0x307359([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x343580,_0x45acb9)=>{_0x45acb9[0x0][_0x307359([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39f4a7++,_0x39f4a7==(0x13aecaa3^_0x2b1835)&&(_0x808286(),_0x343580[_0x307359([0x6f,0x66,0x66])]());});}))];return window[_0x307359([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x307359([0x72,0x61,0x63,0x65])](_0x436a61)[_0x307359([0x74,0x68,0x65,0x6e])](()=>_0xa867b);}async function _0x5251a5(){await _0x14f76e,_0x2cba0b[_0x307359([0x6d,0x6f,0x64,0x65,0x6c])][_0x307359([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25e7af,_0x2cba0b[_0x307359([0x6d,0x6f,0x64,0x65,0x6c])][_0x307359([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25e7af,_0x2cba0b[_0x307359([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x307359([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f030d(){return _0xad8554(_0x307359([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1e0290(_0x307359([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x307359([0x73,0x74,0x61,0x74,0x65])]==_0x307359([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3655c0(){return _0xad8554(_0x307359([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x56a7f2(){return _0xad8554(_0x307359([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xed6821(_0x29a208){const _0x36d577=_0x3e282d();_0x2cba0b[_0x36d577]=_0x307359([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29a208,_0x29a208!=_0x307359([0x56,0x61,0x6c,0x69,0x64])&&_0x5251a5();}function _0x3e282d(){const _0x1bcbe8=window[_0x307359([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x307359([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x307359([0x6e,0x6f,0x77])]())[_0x307359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x307359([0x2e]),'');let _0x3f07cb=_0x307359([0x52]);for(let _0x29cf0e=0x0;_0x29cf0e<_0x1bcbe8[_0x307359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29cf0e+=0x2){let _0x3b493f=window[_0x307359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bcbe8[_0x307359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29cf0e,_0x29cf0e+0x2));_0x3b493f>=_0x3a9203[_0x307359([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b493f-=_0x3a9203[_0x307359([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f07cb+=_0x3a9203[_0x3b493f];}return _0x3f07cb;}function _0x1efb50(){const _0x389d4a=_0x4ed7e8[_0x307359([0x73,0x70,0x6c,0x69,0x74])](_0x307359([0x2e]));if(0x3!=_0x389d4a[_0x307359([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7da7d4(_0x389d4a[0x1]);function _0x7da7d4(_0x3bfbc0){const _0x4071f4=_0xfd02c2(_0x3bfbc0);return _0x4071f4&&_0x41afe2()?_0x4071f4:null;function _0x41afe2(){const _0x2940d0=_0x4071f4[_0x307359([0x6a,0x74,0x69])],_0x4cce32=window[_0x307359([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2940d0[_0x307359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2940d0[_0x307359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x140bbc={..._0x4071f4,[_0x307359([0x6a,0x74,0x69])]:_0x2940d0[_0x307359([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2940d0[_0x307359([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x140bbc[_0x307359([0x76,0x63])],_0x1220a3(_0x140bbc)==_0x4cce32;}}}async function _0x2d769f(){let _0x22b6a2=!0x0;try{const _0x33143b=_0x4ed7e8[_0x307359([0x73,0x70,0x6c,0x69,0x74])](_0x307359([0x2e])),[_0x45c669,_0x425160,_0x1f74f9]=_0x33143b;return _0x122a5c(_0x45c669),await _0x5ca22a(_0x45c669,_0x425160,_0x1f74f9),_0x22b6a2;}catch(_0x2932f1){return!0x1;}function _0x122a5c(_0x4e0cc2){const _0x8dd944=_0xfd02c2(_0x4e0cc2);_0x8dd944&&_0x8dd944[_0x307359([0x61,0x6c,0x67])]==_0x307359([0x45,0x53,0x32,0x35,0x36])||(_0x22b6a2=!0x1);}async function _0x5ca22a(_0x1ba0d8,_0x224ac4,_0x492369){const _0x4e6303=window[_0x307359([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x307359([0x66,0x72,0x6f,0x6d])](_0x57250f(_0x492369),_0x200e3d=>_0x200e3d[_0x307359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x326def=new window[(_0x307359([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x307359([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ba0d8+_0x307359([0x2e])+_0x224ac4),_0x1276b1=window[_0x307359([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x307359([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1276b1)return;const _0x2e2afd=await _0x1276b1[_0x307359([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x307359([0x6a,0x77,0x6b]),_0x14fda1,{[_0x307359([0x6e,0x61,0x6d,0x65])]:_0x307359([0x45,0x43,0x44,0x53,0x41]),[_0x307359([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x307359([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x307359([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1276b1[_0x307359([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x307359([0x6e,0x61,0x6d,0x65])]:_0x307359([0x45,0x43,0x44,0x53,0x41]),[_0x307359([0x68,0x61,0x73,0x68])]:{[_0x307359([0x6e,0x61,0x6d,0x65])]:_0x307359([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e2afd,_0x4e6303,_0x326def)||(_0x22b6a2=!0x1);}}function _0xfd02c2(_0x5ef7e6){return _0x5ef7e6[_0x307359([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x307359([0x65,0x79]))?JSON[_0x307359([0x70,0x61,0x72,0x73,0x65])](_0x57250f(_0x5ef7e6)):null;}function _0x57250f(_0x375ff7){return window[_0x307359([0x61,0x74,0x6f,0x62])](_0x375ff7[_0x307359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x307359([0x2b]))[_0x307359([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x307359([0x2f])));}function _0x1220a3(_0x4a9ec8){let _0x59c9ea=0x1505;function _0x16a671(_0x1a422d){for(let _0x43879b=0x0;_0x43879b<_0x1a422d[_0x307359([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43879b++){const _0x1a1c7f=_0x1a422d[_0x307359([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43879b);_0x59c9ea=(_0x59c9ea<<0x5)+_0x59c9ea+_0x1a1c7f,_0x59c9ea&=_0x59c9ea;}}function _0xd7164f(_0x19ba01){Array[_0x307359([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19ba01)?_0x19ba01[_0x307359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd7164f):_0x19ba01&&typeof _0x19ba01==_0x307359([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x307359([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19ba01)[_0x307359([0x73,0x6f,0x72,0x74])]()[_0x307359([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x510b8c,_0x5e0109])=>{_0x16a671(_0x510b8c),_0xd7164f(_0x5e0109);}):_0x16a671(window[_0x307359([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19ba01));}return _0xd7164f(_0x4a9ec8),_0x59c9ea>>>0x0;}function _0xe061da(_0x488b67){return _0x488b67[_0x307359([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x307359([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x307359([0x30]));}function _0x4003dc(_0x4a8055){return _0x4a8055[_0x307359([0x73,0x70,0x6c,0x69,0x74])]('')[_0x307359([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x307359([0x6a,0x6f,0x69,0x6e])]('');}function _0xad8554(_0x470e2d){return _0x2cba0b[_0x307359([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x307359([0x68,0x61,0x73])](_0x470e2d);}function _0x1e0290(_0x33fdce){return _0x2cba0b[_0x307359([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x307359([0x67,0x65,0x74])](_0x33fdce);}function _0x25e7af(){}function _0x307359(_0x19f8ce){return _0x19f8ce['map'](_0x1bff4f=>String['fromCharCode'](_0x1bff4f))['join']('');}_0xed6821(await _0x21d086());}(this);}['destroy'](){const _0x3f3b39=this['editor']['plugins']['get'](o),_0x25ec0b=this['editor']['config']['get']('collaboration.channelId');for(const _0x51ca3e of _0x3f3b39['getCommentThreads']({'channelId':_0x25ec0b}))_0x3f3b39['_detachCommentThread'](_0x51ca3e['id']),_0x3f3b39['_threads']['delete'](_0x51ca3e['id']);super['destroy']();}['hasMarkerForId'](_0x38c773){return this['getAllMarkersForId'](_0x38c773)['length']>0x0;}['getAllMarkersForId'](_0x40bf3a){const _0x3a9e3f=[];for(const _0xb8bc1f of this['editor']['model']['markers'])_0xb8bc1f['name']['startsWith']('comment:'+_0x40bf3a)&&_0x3a9e3f['push'](_0xb8bc1f);return _0x3a9e3f;}['scrollToThreadMarker'](_0x138fa9){const _0x5e3b62=this['_getTargetForId'](_0x138fa9);_0x5e3b62&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x138fa9&&rt({'target':_0x5e3b62[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1b7944){this['editor']['model']['change'](()=>{for(const _0x52c5ad of this['getAllMarkersForId'](_0x1b7944))this['editor']['editing']['reconvertMarker'](_0x52c5ad);});}['_attachArchivedThread'](_0x28d886){const _0x19cd60=this['editor']['plugins']['get'](o),_0x3c61a4=this['editor']['plugins']['get'](P),_0x1db2e5=_0x19cd60['getCommentThread'](_0x28d886);if(!_0x1db2e5['isAttached']){const _0x1a12c4=_0x1db2e5['attachTo'](()=>this['_getTargetForId'](_0x1db2e5['id']));_0x3c61a4['registerAnnotation'](_0x1a12c4),_0x1db2e5['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x3bd596=this['editor'],_0x2a4bf5=_0x3bd596['plugins']['get'](it);_0x3bd596['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x25a239,_0x49d843)=>{const {id:_0x3dce26}=er(_0x25a239['markerName']),_0x1398d7=_0x3bd596['plugins']['get'](o)['getCommentThread'](_0x3dce26),_0x453807=this['activeMarker']&&er(this['activeMarker'])['id']===_0x3dce26;let _0x595bfd;if(_0x1398d7&&_0x1398d7['isResolved']&&!_0x453807&&_0x25a239['item'])return _0x49d843['consumable']['consume'](_0x25a239['item'],'addMarker:'+_0x25a239['markerName']),_0x49d843['consumable']['consume'](_0x25a239['item'],'removeMarker:'+_0x25a239['markerName']),null;const _0x2f62d4=['ck-comment-marker'];return _0x453807&&_0x2f62d4['push']('ck-comment-marker--active'),_0x595bfd=_0x1398d7&&_0x1398d7['length']?_0x1398d7['comments']['first']['author']['id']:_0x2a4bf5['me']['id'],{'classes':_0x2f62d4,'attributes':{'data-comment':_0x3dce26,'data-author-id':_0x595bfd}};}}),_0x3bd596['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x9512e1,{options:_0x459ed6})=>{if(_0x459ed6['showCommentHighlights'])return null;const _0x457a1e=_0x3bd596['plugins']['get'](o),_0x3dde48=_0x3bd596['model']['markers']['get'](_0x9512e1),{id:_0x43ae91,part:_0x3ec6e0}=er(_0x9512e1);if(_0x3dde48&&!_0x3dde48['affectsData'])return null;if(_0x459ed6['ignoreResolvedComments']){const _0x4eefae=_0x457a1e['getCommentThread'](_0x43ae91);if(_0x4eefae&&_0x4eefae['isResolved'])return null;}return{'group':'comment','name':_0x3ec6e0?_0x43ae91+':'+_0x3ec6e0:_0x43ae91};}}),_0x3bd596['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x15504b,{writer:_0x21c963})=>_0x21c963['createElement']('$marker',{'data-name':'comment:'+_0x15504b['getAttribute']('id')})}),_0x3bd596['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x26ecae=this['editor'],_0x1c7b97=_0x26ecae['plugins']['get'](o),_0x9e4093=new Set(),_0x3e8948=new Set();_0x26ecae['model']['document']['registerPostFixer'](_0x41c878=>{let _0x1457f9=!0x1;for(const {name:_0x5776c7,data:_0x47c5fc}of _0x26ecae['model']['document']['differ']['getChangedMarkers']()){const {group:_0x568a2d,id:_0x36b079}=er(_0x5776c7);let _0x227032=_0x47c5fc['newRange'];if('comment'!==_0x568a2d||!_0x227032)continue;const _0x261741='$graveyard'===_0x227032['root']['rootName'];_0x261741||(_0x227032=dt(_0x227032,_0x26ecae['model']),!_0x227032||_0x227032['isCollapsed']||!_0x47c5fc['newRange']||_0x227032['isEqual'](_0x47c5fc['newRange']))?_0x26ecae['model']['hasContent'](_0x227032)&&!_0x261741?this['isThreadsLoadingPaused']?_0x9e4093['add'](_0x5776c7):this['_handleThreadMarker'](_0x5776c7,_0x36b079):(_0x3e8948['add'](_0x5776c7),_0x9e4093['delete'](_0x5776c7),_0x41c878['removeMarker'](_0x5776c7),_0x1457f9=!0x0):(_0x41c878['updateMarker'](_0x5776c7,{'range':_0x227032}),_0x1457f9=!0x0);}return _0x1457f9;}),this['on']('change:isThreadsLoadingPaused',(_0x3c7587,_0x1a95dc,_0x1d81eb)=>{if(!_0x1d81eb&&_0x9e4093['size'])for(const _0x64dcde of _0x9e4093){const {id:_0x7f6634}=er(_0x64dcde);_0x9e4093['delete'](_0x64dcde),_0x26ecae['model']['markers']['get'](_0x64dcde)&&this['_handleThreadMarker'](_0x64dcde,_0x7f6634);}}),this['listenTo'](_0x26ecae['model']['document'],'change',()=>{for(const {name:_0x8a96e6,data:{newRange:_0x3e654d}}of _0x26ecae['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1eb12c,id:_0x3197bf}=er(_0x8a96e6);if('comment'!==_0x1eb12c)continue;const _0x2ccbf4=_0x1c7b97['getCommentThread'](_0x3197bf),_0x3b3e2a=this['hasMarkerForId'](_0x3197bf);_0x2ccbf4&&(!_0x2ccbf4['_hasTargetInContent']&&_0x3e654d&&_0x26ecae['editing']['view']['once']('render',()=>{const _0x2763b7=_0x26ecae['plugins']['get'](N),_0x15f9d0=_0x1c7b97['_threadToController']['get'](_0x2ccbf4)['view'];_0x2763b7['getByInnerView'](_0x15f9d0)['refreshVisibility']();},{'priority':'low'}),_0x2ccbf4['_hasTargetInContent']=_0x3b3e2a||!!_0x3e654d),_0x3e654d||(_0x3e8948['add'](_0x8a96e6),_0x9e4093['delete'](_0x8a96e6));}for(const _0x31c0f8 of _0x3e8948){const {id:_0x4608ba}=er(_0x31c0f8),_0x396f53=_0x1c7b97['getCommentThread'](_0x4608ba);if(_0x9e4093['delete'](_0x31c0f8),!_0x396f53)continue;const _0x2616de=this['hasMarkerForId'](_0x4608ba);_0x2616de||_0x396f53['isSubmitted']?_0x2616de||_0x396f53['unlinkedAt']||_0x396f53['setUnlinkedAt'](new Date()):_0x396f53['remove']();}_0x3e8948['clear']();});}['_handleInitialThreads'](_0x67405a){_0x67405a['forEach'](_0x3e501c=>{_0x3e501c['unlinkedAt']&&this['_attachArchivedThread'](_0x3e501c['id']);});}['_getTargetForId'](_0x4d1d45){const _0x3f9a2f=this['editor'],_0x1917ee=this['getAllMarkersForId'](_0x4d1d45);return et(_0x3f9a2f['editing'],_0x1917ee);}['_getTextContext'](_0x4bed40){const _0x16419d=this['getAllMarkersForId'](_0x4bed40);let _0x498ee7='',_0x1d9677=!0x1;for(const _0x4fac86 of _0x16419d){const _0x3d4821=_0x4fac86['getRange']();for(const _0x3a69ec of Array['from'](_0x3d4821['getItems']()))_0x3a69ec['is']('$textProxy')?(_0x498ee7&&_0x1d9677&&(_0x498ee7+='\x20',_0x1d9677=!0x1),_0x498ee7+=_0x3a69ec['data']):_0x1d9677=!0x0;_0x1d9677=!0x0;}return _0x498ee7['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x178e50,_0x2293ff){const _0x1f2b01=this['editor'],_0x1601fd=_0x1f2b01['plugins']['get'](o);let _0x2ac0db=_0x1601fd['getCommentThread'](_0x2293ff);const _0x1ffb21=_0x1f2b01['config']['get']('collaboration.channelId'),_0x44ebd8=_0x1f2b01['plugins']['get'](P);if(_0x2ac0db&&(_0x2ac0db['unlinkedAt']&&_0x2ac0db['setUnlinkedAt'](null),_0x2ac0db['isAttached']))return _0x2ac0db;return!this['getAllMarkersForId'](_0x2293ff)[0x0]['managedUsingOperations']?_0x1f2b01['editing']['view']['once']('render',()=>{if(_0x1601fd['getCommentThread'](_0x2293ff))return;const _0x29a2d8=_0x1f2b01['plugins']['get'](N);_0x2ac0db=_0x1601fd['openNewCommentThread']({'channelId':_0x1ffb21,'threadId':_0x2293ff,'target':()=>this['_getTargetForId'](_0x2293ff),'context':{'type':'text','value':this['_getTextContext'](_0x2293ff)}});const _0x4e2daa=_0x1601fd['_threadToController']['get'](_0x2ac0db)['view'],_0x33583a=_0x29a2d8['getByInnerView'](_0x4e2daa);_0x33583a&&_0x44ebd8['registerAnnotation'](_0x33583a);},{'priority':'low'}):_0x1601fd['fetchCommentThread']({'channelId':_0x1ffb21,'threadId':_0x2293ff})['then'](_0x3c97c9=>{if('destroyed'!==_0x1f2b01['state']){if(_0x2ac0db=_0x3c97c9,_0x2ac0db&&!_0x2ac0db['isAttached']){const _0x477797=_0x2ac0db['attachTo'](()=>this['_getTargetForId'](_0x2293ff));_0x44ebd8['registerAnnotation'](_0x477797),_0x2ac0db['isResolved']&&this['_reconvertMarkers'](_0x2293ff);}else{if(!_0x2ac0db){const _0x116049=this['getAllMarkersForId'](_0x2293ff);_0x1f2b01['model']['change'](_0x1bd3ec=>{for(const _0x564c06 of _0x116049)_0x1bd3ec['removeMarker'](_0x564c06);});}}}}),_0x2ac0db;}['_handleThreadMarker'](_0x47e362,_0x55da1a){const _0xc70a12=this['_attachMarkerToThread'](_0x47e362,_0x55da1a);_0xc70a12&&!_0xc70a12['context']&&_0xc70a12['setContext']({'type':'text','value':this['_getTextContext'](_0x55da1a)});}['_initAriaMarkerChangeAnnouncements'](){const _0x1cdc4f=this['editor'];ot(_0x1cdc4f['model'],({left:_0x1fdc9a,entered:_0x5ca3b7})=>{for(const _0xaa1ff8 of _0x1fdc9a)if(mt(_0xaa1ff8)){_0x1cdc4f['ui']['ariaLiveAnnouncer']['announce'](S(_0x1cdc4f['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x4c5ebb of _0x5ca3b7)if(mt(_0x4c5ebb)){_0x1cdc4f['ui']['ariaLiveAnnouncer']['announce'](S(_0x1cdc4f['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x54f3b9)));break;}});}}function ft(_0x1e5341,_0x139203){return _0x139203?_0x1e5341+':'+_0x139203:_0x1e5341;}function er(_0x1c0d67){const _0x50366a=_0x1c0d67['split'](':');return{'group':_0x50366a[0x0],'id':_0x50366a[0x1],'part':_0x50366a[0x2]};}function dt(_0x475332,_0x634345){const _0x2ebfa7=_0x634345['schema'],_0x5e1c10=_0x634345['createRange'](_0x475332['start']);for(const _0x524e4e of _0x475332['getWalker']()){const {type:_0x5911f0,item:_0x4906a5,nextPosition:_0x2c8b5b}=_0x524e4e;if('text'===_0x5911f0||_0x2ebfa7['isObject'](_0x4906a5)){const _0x57e74d=_0x634345['createPositionBefore'](_0x4906a5);_0x5e1c10['isCollapsed']&&(_0x5e1c10['start']=_0x57e74d),_0x5e1c10['end']=_0x2c8b5b;}}return _0x5e1c10;}function mt(_0x41439b){return'comment'===er(_0x41439b['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x278cf9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x3e5aee=this['editor'],_0x272820=_0x3e5aee['plugins']['get'](o),_0x5cd62e=_0x3e5aee['plugins']['get'](r),_0x22abda=_0x3e5aee['plugins']['get'](N),_0x503820=_0x3e5aee['plugins']['get'](P);_0x3e5aee['ui']['componentFactory']['add']('comment',()=>{const _0x456c12=this['_createUIButton'](_0x3db312);return _0x456c12['tooltip']=!0x0,_0x456c12;}),_0x3e5aee['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x235168)),_0x503820['addSourceCollector'](()=>{const _0x3b8d48=[];for(const [_0x100c6f,_0x5a878a]of _0x272820['_threadToController']){const _0x109448=_0x5cd62e['getAllMarkersForId'](_0x100c6f['id']),_0x23e94e=_0x109448['map'](_0x150a07=>_0x150a07['getRange']());_0x109448['length']>0x0&&_0x3b8d48['push']([_0x5a878a['view'],_0x23e94e]);}return _0x3b8d48;}),this['listenTo'](_0x22abda,'change:activeAnnotations',(_0x17b756,_0x5a06ce,_0x342f70)=>{const _0x3b02ad=Array['from'](_0x342f70)['map'](_0x2e4ce4=>_0x2e4ce4['innerView'])['find'](_0xb6c674=>_0x272820['_viewToController']['has'](_0xb6c674));if(!_0x3b02ad)return void(_0x5cd62e['activeMarker']=null);const _0x4a3b2e=_0x272820['_viewToController']['get'](_0x3b02ad)['model']['id'],_0x3ab588='comment:'+_0x4a3b2e;_0x4a3b2e&&_0x5cd62e['hasMarkerForId'](_0x4a3b2e)?_0x5cd62e['activeMarker']=_0x3ab588:_0x5cd62e['activeMarker']&&(_0x5cd62e['activeMarker']=null);}),this['listenTo'](_0x272820,'removeCommentThread',(_0x5087d6,{threadId:_0x5f5b6a,isFromAdapter:_0x51cff5})=>{!_0x51cff5&&_0x3e5aee['ui']['focusTracker']['isFocused']&&_0x5cd62e['hasMarkerForId'](_0x5f5b6a)&&_0x3e5aee['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x272820,'addComment',(_0xe86480,{threadId:_0x439f6e,isFromAdapter:_0x50531c})=>{if(_0x50531c||!_0x5cd62e['hasMarkerForId'](_0x439f6e)||!_0x272820['hasCommentThread'](_0x439f6e))return;0x1===_0x272820['getCommentThread'](_0x439f6e)['length']&&(_0x3e5aee['editing']['view']['focus'](),_0xe86480['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ef705=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x465cf8;for(const _0x476d9a in _0x2ef705){const _0x4ac848=_0x476d9a,_0xf5e29f=_0x2ef705[_0x4ac848];if('commentsLicenseKeyValid'==_0xf5e29f||'commentsLicenseKeyInvalid'==_0xf5e29f||'commentsLicenseKeyExpired'==_0xf5e29f||'commentsLicenseKeyDomainLimit'==_0xf5e29f||'commentsLicenseKeyNotAllowed'==_0xf5e29f||'commentsLicenseKeyEvaluationLimit'==_0xf5e29f||'commentsLicenseKeyTrialLimit'==_0xf5e29f||'commentsLicenseKeyUsageLimit'==_0xf5e29f){delete _0x2ef705[_0x4ac848],_0x465cf8=_0xf5e29f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x465cf8&&_0x2ef705['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x465cf8&&_0x2ef705['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x465cf8&&_0x2ef705['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x465cf8&&_0x2ef705['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x465cf8&&_0x2ef705['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x465cf8&&_0x2ef705['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x465cf8&&_0x2ef705['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x5d4d75){const _0x318a43=this['editor'],_0x56e5fc=new _0x5d4d75(_0x318a43['locale']),_0x2c98f1=_0x318a43['commands']['get']('addCommentThread');return _0x56e5fc['set']({'label':S(_0x318a43['locale'],'Comment'),'icon':xt}),_0x56e5fc['bind']('isEnabled')['to'](_0x2c98f1),this['listenTo'](_0x56e5fc,'execute',()=>{_0x318a43['editing']['view']['focus'](),_0x2c98f1['execute']();}),_0x56e5fc;}}class s extends _0x278cf9{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x58b6ac){super(_0x58b6ac),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5aaf4d,_0x45390d,_0x1400fd)=>{_0x1400fd?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x324dde,_0x149431]of this['editor']['commands'])_0x149431['affectsData']&&'addCommentThread'!==_0x324dde&&_0x149431['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x21c4ac=this['editor']['editing']['view']['document'];this['listenTo'](_0x21c4ac,'cut',_0x47a530=>_0x47a530['stop'](),{'priority':'highest'}),this['listenTo'](_0x21c4ac,'clipboardInput',_0x1bf915=>_0x1bf915['stop'](),{'priority':'highest'}),this['listenTo'](_0x21c4ac,'delete',_0x199ef2=>_0x199ef2['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x164a5f,_0x58d356]of this['editor']['commands'])_0x58d356['affectsData']&&'addCommentThread'!==_0x164a5f&&_0x58d356['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x123b50{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x360ae5){super(_0x360ae5),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x40cfd7=this['context']['plugins']['get'](N);this['listenTo'](_0x40cfd7,'_activateAnnotation',(_0x30cc55,_0x547454)=>{for(const _0x11e451 of this['activeUIs']){const _0x215eb7=this['_uis']['get'](_0x11e451);(0x0,this['_uisData']['get'](_0x11e451)['filter'])(_0x547454)&&_0x215eb7['setActiveAnnotation'](_0x547454);}}),this['listenTo'](_0x40cfd7,'_deactivateAllAnnotations',()=>{for(const _0x56218a of this['activeUIs']){this['_uis']['get'](_0x56218a)['setActiveAnnotation'](null);}}),this['listenTo'](_0x40cfd7['_visibleAnnotations'],'add',(_0x2145ca,_0x1180db)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1180db);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3d6513){return this['activeUIs']['has'](_0x3d6513);}['activate'](_0xa49d8,_0x55c72c=()=>!0x0){const _0x277d82=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0xa49d8))throw new _0x25287e('annotationsuis-missing-ui',this,{'uiName':_0xa49d8});this['isActive'](_0xa49d8)&&this['deactivate'](_0xa49d8),this['activeUIs']['add'](_0xa49d8);const _0xd41d51=new x();!function({source:_0x26b317,target:_0x181636,filter:_0x3aad47}){for(const _0x1bdc3c of _0x26b317)_0x3aad47(_0x1bdc3c)&&_0x181636['add'](_0x1bdc3c);_0x181636['listenTo'](_0x26b317,'add',(_0x3c7234,_0x42ea04)=>{_0x3aad47(_0x42ea04)&&_0x181636['add'](_0x42ea04);}),_0x181636['listenTo'](_0x26b317,'remove',(_0x3027f3,_0x3f8242)=>{_0x181636['has'](_0x3f8242)&&_0x181636['remove'](_0x3f8242);});}({'source':_0x277d82['_visibleAnnotations'],'target':_0xd41d51,'filter':_0x55c72c}),this['_uisData']['set'](_0xa49d8,{'collection':_0xd41d51,'filter':_0x55c72c});const _0x2d1f44=this['_uis']['get'](_0xa49d8);_0x2d1f44['attach'](_0xd41d51),this['listenTo'](_0x2d1f44,'change:activeAnnotation',(_0x196308,_0x570926,_0x6e47e3,_0x20f43c)=>{_0x20f43c&&_0x277d82['_removeActiveAnnotation'](_0x20f43c),_0x6e47e3&&_0x277d82['_addActiveAnnotation'](_0x6e47e3);});}['deactivate'](_0x536b1a){if(this['activeUIs']['delete'](_0x536b1a),!this['_uis']['has'](_0x536b1a))throw new _0x25287e('annotationsuis-missing-ui',this,{'uiName':_0x536b1a});const _0x3dbfde=this['_uis']['get'](_0x536b1a);_0x3dbfde['detach'](),this['stopListening'](_0x3dbfde),this['_uisData']['get'](_0x536b1a)['collection']['destroy'](),this['_uisData']['delete'](_0x536b1a);}['switchTo'](_0x46d10a){if(!this['_uis']['has'](_0x46d10a))throw new _0x25287e('annotationsuis-missing-ui',this,{'uiName':_0x46d10a});const _0x5cf3d2=this['context']['plugins']['get'](N),_0x125ce1=Array['from'](_0x5cf3d2['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x46d10a);const _0x478245=this['_uis']['get'](_0x46d10a);_0x478245['setActiveAnnotation'](_0x125ce1),_0x478245['_setSelectedAnnotations']&&_0x125ce1&&_0x478245['_setSelectedAnnotations']([_0x125ce1]);}['deactivateAll'](){for(const _0x5cff91 of this['activeUIs'])this['deactivate'](_0x5cff91);}['register'](_0xfadbb4,_0x5acadc){if(this['_uis']['has'](_0xfadbb4))throw new _0x25287e('annotationsuis-register-already-registered');if('function'!=typeof _0x5acadc['attach']||'function'!=typeof _0x5acadc['detach']||'function'!=typeof _0x5acadc['setActiveAnnotation'])throw new _0x25287e('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0xfadbb4,_0x5acadc);}['refilterAnnotations'](){const _0x5fe926=this['context']['plugins']['get'](N)['collection'],_0x3aaf27=new Map(),_0x318771=Array['from'](this['activeUIs']);for(const _0x199b19 of this['activeUIs']){const _0x18b857=this['_uisData']['get'](_0x199b19)['collection'];for(const _0x2441f9 of _0x18b857)_0x3aaf27['set'](_0x2441f9,_0x199b19);}for(const _0x17e73f of _0x5fe926){const _0xc42064=_0x3aaf27['get'](_0x17e73f);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x17e73f);const _0xb6dc77=_0x318771['find'](_0x5dd87f=>this['_uisData']['get'](_0x5dd87f)['filter'](_0x17e73f));_0xc42064!==_0xb6dc77&&(_0xc42064&&this['_uisData']['get'](_0xc42064)['collection']['remove'](_0x17e73f),_0xb6dc77&&this['_uisData']['get'](_0xb6dc77)['collection']['add'](_0x17e73f));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x54a031){const _0x5bb050=[];for(const _0x161e2a of this['activeUIs']){(0x0,this['_uisData']['get'](_0x161e2a)['filter'])(_0x54a031)&&_0x5bb050['push'](_0x161e2a);}if(_0x5bb050['length']>0x1)throw new _0x25287e('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x5bb050,'annotationType':_0x54a031['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x2a8e61){super(_0x2a8e61);const _0x3fbfcc=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x56d5a4(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x3fbfcc['to']('class')],'style':{'minHeight':_0x3fbfcc['to']('minHeight',_0xfd69a0=>'number'==typeof _0xfd69a0?he(_0xfd69a0+0xa):null)},'dir':_0x2a8e61['uiLanguageDirection'],'role':'application','aria-label':S(_0x2a8e61,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x2a8e61,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x47e11d=>{this['_updateItemPositionInFocusables'](_0x47e11d['source']);}),this['list']['forEach'](_0x472537=>{this['focusTracker']['add'](_0x472537['element']),this['_updateItemPositionInFocusables'](_0x472537);}),this['list']['on']('change',(_0x1d53de,_0x3c850f)=>{for(const _0x159847 of _0x3c850f['removed'])this['focusTracker']['remove'](_0x159847['element']),this['focusables']['remove'](_0x159847);for(const _0x53af2c of _0x3c850f['added'])this['focusTracker']['add'](_0x53af2c['element']),this['_updateItemPositionInFocusables'](_0x53af2c);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x54424d){const _0xcc07cc=this['focusables']['getIndex'](_0x54424d);let _0x5be60a,_0x238e63;for(const _0xedf25 of this['focusables'])if(_0x54424d['top']<_0xedf25['top']){_0x5be60a=_0xedf25;break;}if(_0x238e63=_0x5be60a?this['focusables']['getIndex'](_0x5be60a):this['focusables']['length'],-0x1!==_0xcc07cc){if(_0xcc07cc===_0x238e63-0x1)return;this['focusables']['remove'](_0x54424d),_0x238e63=_0x5be60a?this['focusables']['getIndex'](_0x5be60a):this['focusables']['length'];}this['focusables']['add'](_0x54424d,_0x238e63);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1821f0){super(_0x1821f0),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x3e3065,_0x424fa0)=>_0x3e3065+_0x424fa0),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0xbd0078=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0xbd0078['to']('isAnimationDisabled',_0x419436=>_0x419436?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xbd0078['to']('top',_0x5e0172=>qt(_0x5e0172))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x280936=this['element']['clientHeight'];_0x280936&&(this['height']=_0x280936);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x123b50{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57665d){super(_0x57665d),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x25c6f9=this['context']['config']['get']('sidebar.container');_0x25c6f9&&this['setContainer'](_0x25c6f9);}['setContainer'](_0x5af876){if(!y(_0x5af876))throw new _0x25287e('sidebar-setcontainer-invalid-element');this['container']=_0x5af876;}['_attachToContainer']({viewClass:_0x5ead26='',spaceBetweenItems:_0x2f6463=0x19}={}){if(!y(this['container']))throw new _0x25287e('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x5ead26,this['_spaceBetweenItems']=_0x2f6463;}['rearrange']({removedAnnotation:_0x341f28,previousAnnotation:_0xea02b8,nextAnnotation:_0x32decd}){const _0x5e664c=this['getSidebarItemView'](_0x341f28);this['view']['list']['remove'](_0x5e664c),this['_destroySidebarItemView'](_0x341f28),_0xea02b8&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xea02b8)),_0x32decd&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x32decd)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x226c6b,activatedAnnotation:_0x416c8c,disableAnimationOnActivatedAnnotation:_0x4e3c37}){if(this['_activeAnnotation']=_0x416c8c,_0x226c6b){_0x226c6b['isActive']=!0x1;const _0x2db21b=this['getSidebarItemView'](_0x226c6b);_0x2db21b&&_0x4e3c37&&(_0x2db21b['isAnimationDisabled']=!0x1);}if(_0x416c8c){const _0x4a69c2=this['getSidebarItemView'](_0x416c8c);_0x4a69c2&&(_0x416c8c['isActive']=!0x0,_0x4e3c37&&(_0x4a69c2['isAnimationDisabled']=!0x0,_0x4a69c2['top']+=0x1),this['_alignToTargetRect'](_0x4a69c2));}}['_detachFromContainer'](_0x23f1ce){if(this['view']['element']['remove'](),_0x23f1ce){for(const _0x3028df of _0x23f1ce)this['_destroySidebarItemView'](_0x3028df);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x305c76,_0x9f8d80){_0x9f8d80||(_0x9f8d80=_0x305c76['view']);const _0x114927=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x114927,_0x305c76),this['_annotationToSidebarItemView']['set'](_0x305c76,_0x114927),_0x114927['content']['add'](_0x9f8d80),this['listenTo'](_0x305c76['view'],'change:targetRect',(_0x5f4ab5,_0x6d0e4,_0x525768)=>{const _0x39b01e=this['_getTargetTop'](_0x305c76,_0x525768);_0x114927['_targetTop']!=_0x39b01e&&(_0x114927['_targetTop']=_0x39b01e,this['_setItemTop'](_0x114927,_0x39b01e));}),this['listenTo'](_0x114927,'change:top',()=>{this['_recalculate'](_0x114927,'top');}),this['listenTo'](_0x114927,'change:bottom',()=>{this['_recalculate'](_0x114927,'bottom');}),this['_alignToTargetRect'](_0x114927);const _0x1e1d8d=this['_getItemBefore'](_0x114927);if(_0x1e1d8d)this['_alignAfterItem'](_0x1e1d8d,_0x114927)||this['_alignToTargetRect'](_0x114927);else this['_alignToTargetRect'](_0x114927);return this['_updateLastItem'](),this['view']['list']['add'](_0x114927),_0x114927;}['_alignForTopChange'](_0x28e3fb){if(!_0x28e3fb['content']['length'])return;const _0xdf1adc=this['_getItemBefore'](_0x28e3fb);if(!_0xdf1adc)return;const _0x449eff=this['_sidebarItemViewToAnnotation']['get'](_0xdf1adc),_0x371475=this['_activeAnnotation'];_0x371475&&_0x371475===_0x449eff?this['_alignAfterItem'](_0xdf1adc,_0x28e3fb):this['_alignBeforeItem'](_0x28e3fb,_0xdf1adc);}['_alignForBottomChange'](_0x2e655b){if(!_0x2e655b['content']['length'])return;const _0x109168=this['_getItemAfter'](_0x2e655b);if(!_0x109168)return;const _0x1223f5=this['_sidebarItemViewToAnnotation']['get'](_0x109168),_0x44b170=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x153634=this['_activeAnnotation'];_0x153634&&_0x153634===_0x1223f5&&_0x44b170?(this['_alignBeforeItem'](_0x109168,_0x2e655b),this['_alignAfterItem'](_0x2e655b,_0x109168)):_0x153634&&_0x153634===_0x1223f5?this['_alignBeforeItem'](_0x109168,_0x2e655b):this['_alignAfterItem'](_0x2e655b,_0x109168);}['_recalculate'](_0xfcc0c5,_0x4f38f4){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x50031a,changedProp:_0x3acdee}of this['_recalculateBuffer'])'top'===_0x3acdee?this['_alignForTopChange'](_0x50031a):this['_alignForBottomChange'](_0x50031a);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xfcc0c5,'changedProp':_0x4f38f4});}['getSidebarItemView'](_0x48a5f7){return this['_annotationToSidebarItemView']['get'](_0x48a5f7);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0xb29ec2){const _0x4c7f43=this['getSidebarItemView'](_0xb29ec2);this['stopListening'](_0x4c7f43),this['stopListening'](_0xb29ec2['view']),_0x4c7f43['destroy'](),this['_annotationToSidebarItemView']['delete'](_0xb29ec2),this['_sidebarItemViewToAnnotation']['delete'](_0x4c7f43);}['_createSidebarView'](){const _0x5d1c72=new V(this['context']['locale']);return _0x5d1c72['render'](),this['on']('change:_lastItem',(_0x5f447b,_0x5d91d3,_0x5526e9,_0x2e83df)=>{_0x2e83df&&_0x5d1c72['unbind']('minHeight'),_0x5526e9?_0x5d1c72['bind']('minHeight')['to'](_0x5526e9,'bottom'):_0x5d1c72['minHeight']=null;}),_0x5d1c72;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x20ce08){const _0x18e4f1=this['_sidebarItemViewToAnnotation']['get'](_0x20ce08),_0x550d07=_0x18e4f1&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x18e4f1)-0x1);return _0x550d07&&this['getSidebarItemView'](_0x550d07)||null;}['_getItemAfter'](_0x228216){const _0xf68ccb=this['_sidebarItemViewToAnnotation']['get'](_0x228216),_0x57b539=_0xf68ccb&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xf68ccb)+0x1);return _0x57b539&&this['getSidebarItemView'](_0x57b539)||null;}['_alignBeforeItem'](_0x1806dc,_0x4fc5fe){_0x1806dc['updateHeight']();const _0x1ebe8e=R(_0x4fc5fe['bottom']+this['_spaceBetweenItems'],_0x1806dc['top']);return!!_0x1ebe8e&&(this['_setItemTop'](_0x4fc5fe,_0x4fc5fe['top']-_0x1ebe8e),!0x0);}['_alignAfterItem'](_0x1e43f7,_0x3a283b){_0x1e43f7['updateHeight']();const _0x576294=R(_0x1e43f7['bottom']+this['_spaceBetweenItems'],_0x3a283b['top']);return!!_0x576294&&(this['_setItemTop'](_0x3a283b,_0x3a283b['top']+_0x576294,!0x1),!0x0);}['_alignToTargetRect'](_0x3baa88){const _0x357cee=this['_sidebarItemViewToAnnotation']['get'](_0x3baa88);if(!_0x357cee||!_0x357cee['target']||!_0x357cee['targetRect'])return;const _0x293fe7=this['_getTargetTop'](_0x357cee,_0x357cee['targetRect']);this['_setItemTop'](_0x3baa88,_0x293fe7);}['_getTargetTop'](_0x347fd9,_0x38707f){if(null===_0x38707f)return 0x0;if(_0x347fd9['target']instanceof _0x1d5435)return _0x38707f['top'];{const _0x1dc18a=new _0x1d5435(this['view']['element'])['top'];return _0x38707f['top']-_0x1dc18a;}}['_setItemTop'](_0x305088,_0x4046e3,_0x84a775=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x84a775&&(_0x4046e3=Math['max'](_0x4046e3,this['_getMaxAvailableTop'](_0x305088))),_0x305088['top']=_0x4046e3;}['_getMaxAvailableTop'](_0x566100){let _0x3a1d4e=this['_getItemBefore'](_0x566100),_0x21f9b1=0x0;for(;_0x3a1d4e;)_0x3a1d4e['updateHeight'](),_0x21f9b1+=this['_spaceBetweenItems']+_0x3a1d4e['height'],_0x3a1d4e=this['_getItemBefore'](_0x3a1d4e);return _0x21f9b1;}}function R(_0x46bfd3,_0x56468a){return Math['max'](_0x46bfd3-_0x56468a,0x0);}function y(_0x29d46a){return null!==_0x29d46a&&'object'==typeof _0x29d46a&&0x1===_0x29d46a['nodeType'];}class e extends _0x123b50{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51b5d5){super(_0x51b5d5),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x2017ed(),this['_refreshPositioningDebounced']=_0x5166da(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x120835=this['context']['plugins']['get'](M),_0x4caea7=this['context']['plugins']['get'](z);_0x120835['register']('wideSidebar',this),_0x4caea7['container']&&_0x120835['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x23d756){if(_0x23d756===this['activeAnnotation'])return;const _0x436c54=this['context']['plugins']['get'](z);_0x436c54['_activeAnnotation']=_0x23d756;const _0x1ea32c=this['activeAnnotation'];_0x436c54['refresh']({'blurredAnnotation':_0x1ea32c,'activatedAnnotation':_0x23d756}),this['activeAnnotation']=_0x23d756;}['attach'](_0x3f7a10){this['annotations']=_0x3f7a10;const _0x4b55ec=this['context']['plugins']['get'](z);if(_0x4b55ec['_annotations']=_0x3f7a10,this['isAttached'])throw new _0x25287e('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4b55ec,'set:container',()=>{this['detach'](),this['listenTo'](_0x4b55ec,'change:container',_0x4fd9c6=>{_0x4fd9c6['off'](),this['attach'](_0x3f7a10);});}),_0x4b55ec['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x53ab27=_0x125fe0=>{_0x125fe0['updateTargetRect'](),_0x4b55ec['addAnnotation'](_0x125fe0);};for(const _0x2b5887 of _0x3f7a10)_0x53ab27(_0x2b5887);this['listenTo'](_0x3f7a10,'add',(_0x2f52ed,_0x53c1e1)=>{_0x53ab27(_0x53c1e1);}),this['listenTo'](_0x3f7a10,'remove',(_0x5e0607,_0x321357,_0x430a1d)=>{_0x4b55ec['rearrange']({'removedAnnotation':_0x321357,'previousAnnotation':_0x3f7a10['get'](_0x430a1d-0x1),'nextAnnotation':_0x3f7a10['get'](_0x430a1d+0x1)}),_0x321357===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x3f7a10,'focus',(_0xcd446c,_0x576e55)=>{this['setActiveAnnotation'](_0x576e55);}),this['listenTo'](_0x3f7a10,'blur',()=>{this['setActiveAnnotation'](null);});const _0x4683cd=this['context']instanceof _0x5d1973?this['context']['editors']:new _0x2017ed([this['context']]);for(const _0x7b6c6a of _0x4683cd)this['_integrateWithEditorAnnotations'](_0x7b6c6a);this['listenTo'](_0x4683cd,'add',(_0x3f18cd,_0x2de0d6)=>{this['listenTo'](_0x2de0d6,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2de0d6);});}),this['listenTo'](_0x4683cd,'remove',(_0x274a5f,_0x803430)=>{_0x803430['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x803430['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x25287e('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xebc82f=this['context']['plugins']['get'](z);_0xebc82f['_detachFromContainer'](this['annotations']),this['stopListening'](_0xebc82f),this['stopListening'](this['annotations']),this['context']instanceof _0x5d1973&&this['stopListening'](this['context']['editors']);for(const _0x1c2636 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1c2636);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3b2d1d){if(!_0x3b2d1d['plugins']['has']('EditorAnnotations'))return;const _0x3a7503=_0x3b2d1d['plugins']['get']('EditorAnnotations'),_0x19fd54=()=>{const _0x5884d6=_0x3a7503['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x5884d6[0x0]||null);};this['listenTo'](_0x3a7503,'refresh',_0x19fd54),this['listenTo'](_0x3a7503,'blur',(_0x4c9d44,{isAnnotationTracked:_0x42e5cc})=>{this['activeAnnotation']&&_0x42e5cc(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3a7503,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x411f7d=>{_0x3a7503['hasDomSelection']()&&(_0x19fd54(),_0x411f7d['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3a7503);}['_destroyEditorAnnotationsIntegration'](_0x4c684d){this['stopListening'](_0x4c684d),this['_editorAnnotations']['remove'](_0x4c684d);}}class D extends _0x3db312{['counterView'];constructor(_0x15c9a9){super(_0x15c9a9);const _0x1cd926=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3bd811,_0x350aca)=>_0x3bd811?'...':_0x350aca['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x1cd926['to']('annotationType',_0x432d64=>'ck-annotation-counter__badge--'+_0x432d64),_0x1cd926['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1cd926['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x123b50{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cc63d){super(_0x2cc63d),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x3d1100),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x2017ed(),this['_refreshPositioningDebounced']=_0x5166da(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x39a051(this['context']['locale']),this['balloonPanelView']=new _0x37802a(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x41602d){this['annotations']=_0x41602d;const _0x149d51=this['context']['plugins']['get'](z),_0x265167=this['balloonPanelView'];if(_0x149d51['_annotations']=_0x41602d,this['isAttached'])throw new _0x25287e('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x149d51,'set:container',()=>{this['detach'](),this['listenTo'](_0x149d51,'change:container',_0x1d9c98=>{_0x1d9c98['off'](),this['attach'](_0x41602d);});}),_0x149d51['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x5b73d0=_0x3c471a=>{const _0x39e22b=new D(this['context']['locale']);_0x149d51['addAnnotation'](_0x3c471a,_0x39e22b),this['_annotationToNarrowView']['set'](_0x3c471a,_0x39e22b),_0x39e22b['bind']('isDirty','annotationType','number')['to'](_0x3c471a['view'],'isDirty','type','length'),_0x39e22b['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x265167['content']['first']!==_0x3c471a['view']?(this['_showBalloon'](_0x3c471a),_0x3c471a['view']['element']['focus'](),this['setActiveAnnotation'](_0x3c471a)):this['setActiveAnnotation'](null);});};for(const _0x39277d of _0x41602d)_0x5b73d0(_0x39277d);this['listenTo'](_0x41602d,'add',(_0xa585c4,_0x4ba900)=>{_0x5b73d0(_0x4ba900);}),this['listenTo'](_0x41602d,'remove',(_0x2c6410,_0x152ceb,_0x256dfc)=>{this['_annotationToNarrowView']['get'](_0x152ceb)['destroy'](),this['_annotationToNarrowView']['delete'](_0x152ceb),_0x149d51['rearrange']({'removedAnnotation':_0x152ceb,'previousAnnotation':_0x41602d['get'](_0x256dfc-0x1),'nextAnnotation':_0x41602d['get'](_0x256dfc+0x1)}),_0x152ceb===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x41602d,'focus',(_0x28ecb1,_0x805278)=>{this['setActiveAnnotation'](_0x805278);}),this['listenTo'](_0x41602d,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x12faff,_0x43ff3c)=>{_0x43ff3c['keyCode']===_0xda4e75['esc']&&_0x265167['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x265167['content']['first']),this['_hideBalloon'](),_0x43ff3c['stopPropagation'](),_0x43ff3c['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1184ae,_0x9af98d)=>{const _0x36dfc5=_0x9af98d['target'];_0x265167['isVisible']&&_0x265167['element']['contains'](_0x36dfc5)||_0x149d51['view']['element']['contains'](_0x36dfc5)||_0x1184ae['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x1330d9=>_0x1330d9['contains'](_0x36dfc5))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x543291=this['context']instanceof _0x5d1973?this['context']['editors']:new _0x2017ed([this['context']]);for(const _0x25e662 of _0x543291)this['_integrateWithEditorAnnotations'](_0x25e662);this['listenTo'](_0x543291,'add',(_0x307423,_0x51df5a)=>{this['listenTo'](_0x51df5a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x51df5a);});}),this['listenTo'](_0x543291,'remove',(_0xafe75a,_0x5f5616)=>{_0x5f5616['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5f5616['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x57434b){if(_0x57434b===this['activeAnnotation'])return;const _0x5f1f67=this['context']['plugins']['get'](z);if(_0x5f1f67['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x57434b,'disableAnimationOnActivatedAnnotation':!0x0}),_0x57434b)_0x5f1f67['getSidebarItemView'](_0x57434b)?this['_showBalloon'](_0x57434b):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x57434b;}['detach'](){if(!this['isAttached'])throw new _0x25287e('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x291024=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5c751c=>_0x5c751c['destroy']()),this['_annotationToNarrowView']['clear'](),_0x291024['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x5d1973&&this['stopListening'](this['context']['editors']);for(const _0xc91980 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xc91980);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x1009f5){if(!_0x1009f5['plugins']['has']('EditorAnnotations'))return;const _0x25d56a=_0x1009f5['plugins']['get']('EditorAnnotations'),_0x59fc80=this['context']['plugins']['get'](z),_0x34cb1a=this['annotations'],_0x3cb4c8=this['balloonPanelView'],_0xc18c7=()=>{const _0x48131f=_0x25d56a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x48131f),this['setActiveAnnotation'](_0x48131f[0x0]||null);};this['listenTo'](_0x25d56a,'refresh',_0xc18c7),this['listenTo'](_0x25d56a,'blur',(_0x25b516,{isAnnotationTracked:_0x3e38a3})=>{this['activeAnnotation']&&_0x3e38a3(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x25d56a,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x34cb1a,'blur',_0x5d4a36=>{_0x25d56a['hasDomSelection']()&&_0x5d4a36['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x8bdb8d,_0x2396d3)=>{const _0x58a8aa=_0x2396d3['target'];_0x3cb4c8['isVisible']&&_0x3cb4c8['element']['contains'](_0x58a8aa)||_0x59fc80['view']['element']['contains'](_0x58a8aa)||this['activeAnnotation']&&_0x25d56a['hasDomSelection']()&&(_0xc18c7(),_0x8bdb8d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x25d56a);}['_destroyEditorAnnotationsIntegration'](_0x465cba){_0x465cba&&(this['stopListening'](_0x465cba),this['_editorAnnotations']['remove'](_0x465cba));}['_setSelectedAnnotations'](_0x975e1a){for(const _0x1c2d30 of this['_selectedAnnotations'])_0x975e1a['includes'](_0x1c2d30)||this['_manuallyClosedAnnotationViews']['delete'](_0x1c2d30['view']);this['_selectedAnnotations']=_0x975e1a;}['_refreshPositioning'](){const _0x3690a8=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x3690a8['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x8133da){if(this['_manuallyClosedAnnotationViews']['has'](_0x8133da['view']))return;const _0x42d6c2=this['balloonPanelView']['content']['first'];_0x42d6c2!==_0x8133da['view']?(_0x42d6c2&&this['_detachListeners'](_0x42d6c2),this['_attachListeners'](_0x8133da['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x8133da['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x47f820=this['balloonPanelView']['content']['first'],_0xb8b9a9=_0x47f820&&this['annotations']['getByView'](_0x47f820);if(!_0xb8b9a9||!this['_annotationToNarrowView']['has'](_0xb8b9a9))return;const _0x41481e=this['_annotationToNarrowView']['get'](_0xb8b9a9)['element'],_0xdfb3d8=(function(){const _0x1a66c3=_0x37802a['defaultPositions'];return[_0x1a66c3['southArrowNorthEast'],_0x1a66c3['northArrowSouthEast'],_0x1a66c3['southArrowNorth'],_0x1a66c3['northArrowSouth'],_0x1a66c3['southArrowNorthWest'],_0x1a66c3['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x41481e,'positions':_0xdfb3d8});}['_hideBalloon'](){const _0x4a4dc0=this['balloonPanelView'],_0x3ae281=_0x4a4dc0['content']['first'];_0x3ae281&&(this['_detachListeners'](_0x3ae281),_0x4a4dc0['unpin'](),_0x4a4dc0['content']['clear']());}['_attachListeners'](_0xe3eb61){this['listenTo'](_0xe3eb61,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0xe3eb61,'Esc',(_0xc41287,_0x353bb2)=>{this['_manuallyClosedAnnotationViews']['add'](_0xe3eb61),this['_hideBalloon'](),_0x353bb2();});}['_detachListeners'](_0x123c51){this['stopListening'](_0x123c51);}}class c extends _0x278cf9{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x1f3bfe,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c20f8){super(_0x4c20f8),_0x4c20f8['editing']['view']['addObserver'](_0x455ac6),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4c20f8['plugins']['get'](_0x1f3bfe),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x64d8ef=this['editor']['plugins']['get'](M);_0x64d8ef['context']===this['editor']&&(_0x64d8ef['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x354aeb,_0x56938e)=>{const _0x165735=this['_balloon'];if(this['isAttached']&&_0x165735['visibleView']){const _0x1c2fd6=this['annotations']['getByView'](_0x165735['visibleView']);_0x1c2fd6&&this['_closeAnnotation'](_0x1c2fd6),_0x56938e();}}));}['afterInit'](){const _0x310b7b=this['editor']['plugins']['get'](M);_0x310b7b['context']===this['editor']&&(_0x310b7b['hasActive']()||_0x310b7b['switchTo']('inline'));}['setActiveAnnotation'](_0x25133d){_0x25133d!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x25133d&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x25133d)&&this['_addAnnotationToBalloon'](_0x25133d,!0x0),_0x25133d['isActive']=!0x0),_0x25133d||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x25133d);}['attach'](_0x4ac1e6){this['annotations']=_0x4ac1e6;const _0x231d3f=this['editor']['plugins']['get'](M),_0x1d6ab8=this['_balloon'];if(this['isAttached'])throw new _0x25287e('inlineannotations-attach-already-attached',this);if(_0x231d3f['context']!==this['editor'])throw new _0x25287e('inlineannotations-not-allowed-with-context',this);const _0x5bb9a1=this['editor']['plugins']['get'](P);this['listenTo'](_0x5bb9a1,'refresh',()=>{const _0x549088=_0x5bb9a1['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x4a826c,_0x2a8fff;!this['_forceRefresh']&&(_0x4a826c=_0x549088,_0x2a8fff=this['_selectedAnnotations'],_0x4a826c['length']===_0x2a8fff['length']&&_0x4a826c['every'](_0x32b29d=>_0x2a8fff['includes'](_0x32b29d)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x549088),this['setActiveAnnotation'](_0x549088[0x0]||null));}),this['listenTo'](_0x5bb9a1,'blur',(_0x44422a,{isAnnotationTracked:_0x380968})=>{this['activeAnnotation']&&_0x380968(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x33682a,_0x2a6e8b,_0x3b47eb)=>{_0x3b47eb||this['setActiveAnnotation'](null);}),this['listenTo'](_0x4ac1e6,'remove',(_0x3609af,_0x82458a)=>{this['_removeAnnotationFromBalloon'](_0x82458a),_0x82458a===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1d6ab8,'change:visibleView',(_0x308d8c,_0x1eca7d,_0x1439d2,_0x3ea1b5)=>{_0x3ea1b5&&this['stopListening'](_0x3ea1b5);const _0x59d507=_0x4ac1e6['getByView'](_0x1439d2);_0x1439d2&&_0x59d507&&(this['listenTo'](_0x1439d2,'change:height',()=>{_0x1d6ab8['updatePosition']();}),this['listenTo'](_0x1439d2,'Esc',()=>{this['_closeAnnotation'](_0x59d507),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x59d507&&this['setActiveAnnotation'](_0x59d507));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x1d6ab8['visibleView']&&(_0x4ac1e6['getByView'](_0x1d6ab8['visibleView'])&&_0x1d6ab8['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x25287e('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x49746c of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x49746c);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xea0d75){for(const _0x5eae7f of this['_selectedAnnotations'])_0xea0d75['includes'](_0x5eae7f)||this['_manuallyClosed']['delete'](_0x5eae7f);for(const _0x27aabb of this['annotations'])_0xea0d75['includes'](_0x27aabb)||this['_removeAnnotationFromBalloon'](_0x27aabb);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3dcf8e of _0xea0d75)this['_addAnnotationToBalloon'](_0x3dcf8e);}this['_selectedAnnotations']=_0xea0d75;}['_addAnnotationToBalloon'](_0x3c08d5,_0x40685f=!0x1){this['_manuallyClosed']['has'](_0x3c08d5)||(this['_addedAnnotations']['has'](_0x3c08d5)||this['_balloon']['hasView'](_0x3c08d5['view'])||(this['_addedAnnotations']['add'](_0x3c08d5),this['_balloon']['add']({'stackId':_0x3c08d5['view']['id'],'view':_0x3c08d5['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3c08d5)}})),_0x40685f&&this['_balloon']['showStack'](_0x3c08d5['view']['id']));}['_getBalloonTargetForAnnotation'](_0xdca1a1){const _0x27c6ef=_0xdca1a1['target'],_0x5eab09=this['editor']['editing']['view'],_0x5946e5=_0x5eab09['document']['selection']['getFirstRange'](),_0x5e1e6e=_0x5eab09['domConverter']['viewRangeToDom'](_0x5946e5);if(_0x5e1e6e['collapse'](!0x0),_0x27c6ef){if(_0x27c6ef instanceof _0x1d5435)return _0x27c6ef;let _0x585c18=[];for(const _0x5b4fc6 of _0x27c6ef)_0x585c18['push'](...(_0x585507=_0x5b4fc6['getClientRects'](),Array['from'](_0x585507)['map'](DOMRect['fromRect'])));_0x585c18=function(_0x1ca83b){const _0x20142c=[];let _0x4a0c7c=_0x1ca83b[0x0];for(let _0x161d8b=0x1;_0x161d8b<_0x1ca83b['length'];_0x161d8b++)b(_0x4a0c7c,_0x1ca83b[_0x161d8b])?_0x4a0c7c['width']+=_0x1ca83b[_0x161d8b]['width']:(_0x20142c['push'](_0x4a0c7c),_0x4a0c7c=_0x1ca83b[_0x161d8b]);return _0x20142c['push'](_0x4a0c7c),_0x20142c;}(_0x585c18);const _0x32d2b4=_0x5e1e6e['getBoundingClientRect']();return _0x585c18['find'](_0x4a9c75=>_0x4a9c75['top']<=_0x32d2b4['top']&&_0x4a9c75['bottom']>=_0x32d2b4['bottom']&&_0x4a9c75['left']<=_0x32d2b4['left']&&_0x4a9c75['right']>=_0x32d2b4['right'])||_0x585c18[0x0];}var _0x585507;return _0xdca1a1['targetRect']||_0x5e1e6e;}['_removeAnnotationFromBalloon'](_0x3d14ea){this['_addedAnnotations']['has'](_0x3d14ea)&&this['_balloon']['hasView'](_0x3d14ea['view'])&&(this['_addedAnnotations']['delete'](_0x3d14ea),this['_balloon']['remove'](_0x3d14ea['view']));}['_closeAnnotation'](_0x32f8b5){this['_manuallyClosed']['add'](_0x32f8b5),this['_removeAnnotationFromBalloon'](_0x32f8b5);}}function b(_0x18b1cf,_0x170d24){return _0x18b1cf['top']===_0x170d24['top']&&_0x18b1cf['bottom']===_0x170d24['bottom']&&_0x18b1cf['right']===_0x170d24['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x4e89a2,_0x3c7ce4){super(_0x4e89a2),this['set']('isEmpty',!_0x3c7ce4['length']),this['focusTracker']=new _0x56d5a4(),this['_annotationViews']=_0x3c7ce4,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x3c7ce4,'focusTracker':this['focusTracker']}),this['listenTo'](_0x3c7ce4,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x3c7ce4,'remove',(_0x3908a2,_0x32a874)=>{_0x32a874['isActive']&&this['focus'](),_0x3c7ce4['length']||(this['isEmpty']=!0x0);});const _0x4abe64=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x4e89a2,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x3c7ce4},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4abe64['if']('isEmpty','ck-hidden',_0x332625=>!_0x332625)]},'children':[{'text':S(_0x4e89a2,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x483954 of this['_annotationViews'])this['focusTracker']['add'](_0x483954['element']);this['_annotationViews']['on']('change',(_0x56533a,{added:_0x20cd2a,removed:_0x46e147})=>{for(const _0x5c233c of _0x20cd2a)this['focusTracker']['add'](_0x5c233c['element']);for(const _0x2e17e0 of _0x46e147)this['focusTracker']['remove'](_0x2e17e0['element']);});}}class f extends _0x123b50{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x23e531){super(_0x23e531),this['archivedThreads']=new _0x2017ed();}['init'](){const _0x3be22b=this['context'],_0x547234=_0x3be22b['plugins']['get'](o),_0x3bca92=_0x3be22b['plugins']['get'](N);this['listenTo'](_0x547234,'addCommentThread',(_0x26df0d,{threadId:_0x488cba})=>{const _0x619331=_0x547234['getCommentThread'](_0x488cba);_0x619331['archivedAt']&&this['archivedThreads']['add'](_0x619331,this['_calculatePosition'](_0x619331['archivedAt'])),this['listenTo'](_0x619331,'change:archivedAt',(_0x37e2b1,_0x31ccb2,_0x18f1c5)=>{_0x18f1c5?this['archivedThreads']['has'](_0x619331)||this['archivedThreads']['add'](_0x619331,this['_calculatePosition'](_0x619331['archivedAt'])):this['archivedThreads']['has'](_0x619331)&&this['archivedThreads']['remove'](_0x619331);});}),this['listenTo'](_0x547234,'removeCommentThread',(_0x571130,{threadId:_0x505a66})=>{const _0x40ae61=_0x547234['getCommentThread'](_0x505a66);this['stopListening'](_0x40ae61),this['archivedThreads']['has'](_0x40ae61)&&this['archivedThreads']['remove'](_0x40ae61);},{'priority':'highest'}),this['listenTo'](_0x3bca92['collection'],'focus',(_0x2e5b73,_0xd81c77)=>{_0xd81c77['isVisible']||(_0xd81c77['isActive']=!0x0,_0x3bca92['activate'](_0xd81c77));});}['_calculatePosition'](_0xa3f92d){const _0x258445=[...this['archivedThreads']]['findIndex'](_0x15877f=>_0x15877f['archivedAt']<_0xa3f92d);return _0x258445>-0x1?_0x258445:this['archivedThreads']['length'];}}class a extends _0x278cf9{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x5a2f6b];}constructor(_0xd475bd){super(_0xd475bd),this['annotationViews']=new _0x101026(),this['_pendingThreads']=[];}['init'](){const _0x3c3ff2=this['editor'],_0xf44f4a=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x3c3ff2['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3db312,!0x0)),_0x3c3ff2['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3697a1=this['_createCommentsArchiveButton'](_0x235168);return _0x3697a1['set']({'role':'menuitemcheckbox'}),_0x3697a1;});const _0x353e3a=_0x3c3ff2['plugins']['get'](f),_0x5b1b41=_0x3c3ff2['plugins']['get']('Annotations'),_0x19f502=_0x3c3ff2['plugins']['get']('CommentsRepository');_0x353e3a['archivedThreads']['forEach'](_0x2c01b9=>{this['_handleNewThread'](_0x2c01b9);}),this['listenTo'](_0x353e3a['archivedThreads'],'add',(_0x3acdb5,_0x348a10)=>{this['_handleNewThread'](_0x348a10);}),this['listenTo'](_0x5b1b41['collection'],'add',(_0x19f852,_0x5b3ef3)=>{const _0x6581f8=this['_pendingThreads']['find'](_0x1af790=>{const _0xf0cb92=_0x19f502['_threadToController']['get'](_0x1af790);return _0xf0cb92&&_0x5b3ef3['innerView']===_0xf0cb92['view'];});if(_0x6581f8){const _0xb59fbe=this['_calculatePosition'](_0x6581f8['archivedAt']);this['annotationViews']['add'](_0x5b3ef3['view'],_0xb59fbe),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x6581f8),0x1);}}),this['listenTo'](_0x353e3a['archivedThreads'],'remove',(_0x29e885,_0x46e940)=>{const _0x3a53ed=_0x3c3ff2['config']['get']('collaboration.channelId');if(!_0x3a53ed||_0x46e940['channelId']===_0x3a53ed){const _0x36436f=_0x19f502['_threadToController']['get'](_0x46e940),_0x204eb6=_0x5b1b41['getByInnerView'](_0x36436f['view']);this['annotationViews']['remove'](_0x204eb6['view']),this['stopListening'](_0x204eb6['focusableElements']);}}),this['listenTo'](_0x5b1b41['collection'],'add',(_0x510515,_0x2f0148)=>{this['listenTo'](_0x2f0148,'escape',_0xf44f4a);}),this['listenTo'](_0x5b1b41['collection'],'remove',(_0x97fe04,_0x144622)=>{this['stopListening'](_0x144622,'escape',_0xf44f4a);});}['_handleNewThread'](_0x5877af){const _0x5c39bb=this['editor']['plugins']['get']('CommentsRepository'),_0x409b1f=this['editor']['plugins']['get']('Annotations'),_0x70f737=this['editor']['config']['get']('collaboration.channelId');if(!_0x70f737||_0x5877af['channelId']===_0x70f737){const _0x464070=_0x5c39bb['_threadToController']['get'](_0x5877af);if(!_0x464070)return void this['_pendingThreads']['push'](_0x5877af);const _0x1a495a=this['_calculatePosition'](_0x5877af['archivedAt']),_0x2ad1bf=_0x409b1f['getByInnerView'](_0x464070['view']);_0x2ad1bf['isVisible']&&_0x409b1f['_visibleAnnotations']['remove'](_0x2ad1bf),this['annotationViews']['add'](_0x2ad1bf['view'],_0x1a495a);}}['_calculatePosition'](_0x3a77cc){const _0x383eff=this['editor']['config']['get']('collaboration.channelId'),_0x51f138=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x203699=>_0x203699['channelId']===_0x383eff)['findIndex'](_0x520077=>_0x520077['archivedAt']<_0x3a77cc);return _0x51f138<0x0||_0x51f138>this['annotationViews']['length']?this['annotationViews']['length']:_0x51f138-0x1;}['_toggleDialog'](){const _0x447a25=this['editor'],_0x69981c=_0x447a25['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x447a25['locale'],this['annotationViews'])),'commentsArchive'===_0x69981c['id']?_0x69981c['hide']():_0x69981c['show']({'id':'commentsArchive','title':S(_0x447a25['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x549358['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x387e20,_0x5d7ce2=!0x1){const _0x1b5ce1=this['editor']['locale'],_0x57ca23=this['editor']['plugins']['get']('Dialog'),_0x55b7c1=new _0x387e20(_0x1b5ce1);return _0x55b7c1['bind']('isEnabled')['to'](this,'isEnabled'),_0x55b7c1['bind']('isOn')['to'](_0x57ca23,'id',_0x72a695=>'commentsArchive'===_0x72a695),_0x55b7c1['set']({'label':S(_0x1b5ce1,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x5d7ce2&&(_0x55b7c1['tooltip']=!0x0),this['listenTo'](_0x55b7c1,'execute',()=>this['_toggleDialog']()),_0x55b7c1;}['_hideDialogOnAnnotationEscape']=_0xd35341=>{const _0xb21560=_0xd35341['source'];if(!this['annotationViews']['has'](_0xb21560['view']))return;const _0x27ffa2=this['editor']['plugins']['get']('Dialog');_0x27ffa2['isOpen']&&'commentsArchive'===_0x27ffa2['id']&&(_0x27ffa2['hide'](),_0xd35341['stop']());};}class p extends _0x278cf9{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};