@ckeditor/ckeditor5-comments 44.0.0-alpha.11 → 44.0.0-alpha.12
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/build/comments.js +1 -1
- package/dist/index.js +9 -9
- package/package.json +15 -15
- package/src/comments/commentsediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Editor as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
((()=>Qt)());constructor(_0x22a0ce={}){function _0x58b60e(_0x660065){return _0x660065['map'](_0x362344=>String['fromCharCode'](_0x362344))['join']('');}(_0x22a0ce=Object['assign']({},_0x22a0ce))['plugins']||(_0x22a0ce['plugins']=Rt['defaultPlugins']),super(_0x22a0ce),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[_0x58b60e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58b60e([0x76,0x69,0x65,0x77])][_0x58b60e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58b60e([0x61,0x75,0x74,0x6f]),this[_0x58b60e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58b60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58b60e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58b60e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58b60e([0x6f,0x6b])});}['create'](){const _0x5978ef=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5978ef))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x22465c=>{const _0xc59607=this['model']['document']['getRoot'](),_0x51a294=_0xc59607&&_0xc59607['getChild'](_0xc59607['childCount']-0x1);_0x22465c['setSelection'](_0x51a294,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x322a83=this['editing']['view'],_0x3b534b=_0x322a83['document']['getRoot'](),_0x5a20b6=_0x3b534b['getChild'](0x0);_0x3b534b['childCount']>0x1||!_0x5a20b6||'p'!=_0x5a20b6['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x322a83,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x5a20b6['placeholder']=this['placeholder']),St({'view':_0x322a83,'element':_0x5a20b6,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5a20b6);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x350220,_0x5b6b4e={}){super(_0x350220),this['editor']=null,this['_editorConfig']=_0x5b6b4e,this['set']('value',_0x5b6b4e['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x350220,'Reply...')),this['set']('submitLabel',S(_0x350220,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1c4a76(),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',(_0x5a6a9b,_0x15f92e)=>{this['cancelButtonView']['fire']('execute'),_0x15f92e();}),this['keystrokes']['set']('Ctrl+Enter',(_0x56d3f5,_0x41502a)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x41502a());}),this['on']('submit',(_0x2208e6,_0x29d445)=>{_0x29d445['length']>0xfde8?(alert(S(_0x350220,'TOO_LONG_COMMENT_ALERT',[_0x29d445['length'],0xfde8])),_0x2208e6['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x211065=this['editor'];this['element']['insertBefore'](_0x211065['ui']['element'],this['element']['firstChild']),_0x211065['model']['document']['on']('change',()=>this['value']=_0x211065['getData']()),_0x211065['bind']('placeholder')['to'](this),this['focusables']['add'](_0x211065['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xeb80b){-0x1===_0xeb80b?(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:_0x3089a5}=this,_0x2d037d=new _0x439fde(_0x3089a5);return _0x2d037d['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2d037d['withText']=!0x0,_0x2d037d['bind']('label')['to'](this,'submitLabel'),_0x2d037d['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2d037d['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x298714,_0x27fa4a)=>!_0x27fa4a&&!!_0x298714['trim']()),_0x2d037d;}['_createCancelButton'](){const {locale:_0x1cfe49}=this,_0x403fe9=new _0x439fde(_0x1cfe49);return _0x403fe9['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x403fe9['label']=S(_0x1cfe49,'Cancel'),_0x403fe9['withText']=!0x0,_0x403fe9['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x403fe9;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xf452b1=>{this['focusTracker']['add'](_0xf452b1['element']);}),this['focusables']['on']('change',(_0x35737c,_0x469580)=>{for(const _0x54c09e of Array['from'](_0x469580['added'])['reverse']())this['focusTracker']['add'](_0x54c09e['element']);});}}class ie extends kt{constructor(_0x4e8090,_0xcabc58,_0x1fd834){super(_0x4e8090),this['commentInputView']=new hs(_0x4e8090,_0x1fd834),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x365eb8,_0x5dcef7)=>_0x365eb8||!!_0x5dcef7),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 _0x37a5d6(_0x4e8090,_0xcabc58),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'](_0x555133){this['commentInputView']['focus'](_0x555133);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x491a67,_0x16a7ed)=>{const {submitButtonView:_0xb9cf9,cancelButtonView:_0x2566d6,editor:_0x56dc8c}=this['commentInputView'];[_0xb9cf9['element'],_0x2566d6['element'],_0x56dc8c?_0x56dc8c['editing']['view']['getDomRoot']():null]['filter'](_0x45a12a=>_0x45a12a)['some'](_0x1bf580=>_0x1bf580['contains'](_0x16a7ed['target']))||(this['focus'](),_0x16a7ed['preventDefault']());});}}class cs extends kt{constructor(_0x2f7edb){super(_0x2f7edb);const _0x1b15f5=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1b15f5['to']('count',_0x128841=>S(_0x2f7edb,'NUMBER_OF_COMMENTS',_0x128841))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x43334d,_0x56d248,_0x5c8e4f){super(_0x43334d);const _0x2962b3=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x56d248['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x56d248,this['_config']=_0x5c8e4f,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1c4a76(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xa5a22f=>this['commentViews']['map'](_0x58632e=>_0x58632e['element'])['includes'](_0xa5a22f['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x43334d),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1a736e=>_0x1a736e-this['_config']['maxCommentsWhenCollapsed']);for(const _0x505845 of _0x56d248['comments'])this['_handleNewCommentModel'](_0x505845);this['_handleInfoComment'](),this['listenTo'](_0x56d248['comments'],'add',(_0x5cc52c,_0x2fef7e)=>{const _0x49518d=this['_calculatePosition'](_0x2fef7e);this['length']++,this['_handleNewCommentModel'](_0x2fef7e,_0x49518d),this['refreshVisibleViews']();}),this['listenTo'](_0x56d248['comments'],'remove',(_0x5e792f,_0x41c093)=>{this['length']--,this['_handleRemoveCommentModel'](_0x41c093),this['refreshVisibleViews']();}),this['listenTo'](_0x56d248,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x56d248,'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',_0x2962b3['if']('length','ck-hidden',_0x5ccc2c=>!_0x5ccc2c)],'aria-label':S(_0x43334d,'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'](_0x5d7256){-0x1===_0x5d7256?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3d8af2 of this['commentViews'])_0x3d8af2['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x133688,_0x22e5cd){const _0x5be20a=new this['_config']['CommentView'](this['locale'],_0x133688,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x5be20a['viewUid']=_0x133688['id'],_0x5be20a['delegate']('removeComment')['to'](this),_0x5be20a['delegate']('updateComment')['to'](this),_0x5be20a['delegate']('resolveCommentThread')['to'](this),_0x5be20a['delegate']('editorReady')['to'](this),_0x5be20a['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x5be20a,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x5be20a,_0x22e5cd);}['_calculatePosition'](_0x49972e){const _0xf82394=this['_model']['_findOptimalIndex'](_0x49972e);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x49972e['authoredAt']?_0xf82394-0x1:_0xf82394:_0xf82394-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x29e930={'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'],_0x29e930,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x29e930));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0xdccc41){const _0x3de709=this['commentViews']['remove'](_0xdccc41['id']);this['stopListening'](_0x3de709),_0x3de709['isEditMode']&&this['_updateHasDirtyComment'](),_0x3de709['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x3d4841=>_0x3d4841['isEditMode']);}['_rearrangeCollapse'](){const _0x4c3883=function(_0x541601){const _0xcdccea=new _0x18e518();for(const _0x48ad7b of _0x541601)_0xcdccea['add'](_0x48ad7b);return _0xcdccea;}(this['commentViews']),_0x35682d=this['_collapsedCommentsView']['count'];for(let _0x335013=0x1;_0x335013<=_0x35682d;_0x335013++)_0x4c3883['remove'](0x1);for(const _0x97d98 of _0x4c3883)_0x97d98['collapse']();_0x35682d>0x0&&_0x4c3883['add'](this['_collapsedCommentsView'],0x1),ns(_0xdfc31(Array['from'](this['visibleViews']),Array['from'](_0x4c3883)),this['visibleViews'],_0x4c3883);}['_rearrangeExpand'](){ns(_0xdfc31(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4fb10c of this['visibleViews'])_0x4fb10c['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2a7460=>{this['focusTracker']['add'](_0x2a7460['element']),this['keystrokes']['listenTo'](_0x2a7460['element']);}),this['commentViews']['on']('change',(_0x5cf4b1,_0x4b05c0)=>{for(const _0x420777 of _0x4b05c0['removed'])this['focusTracker']['remove'](_0x420777['element']),this['keystrokes']['stopListening'](_0x420777['element']);for(const _0x21be4b of Array['from'](_0x4b05c0['added'])['reverse']())this['focusTracker']['add'](_0x21be4b['element']),this['keystrokes']['listenTo'](_0x21be4b['element']);});}}function ns(_0x5b25f1,_0x1f369a,_0x1f5388){let _0x465245=0x0;for(const _0x179db3 of _0x5b25f1)switch(_0x179db3){case'insert':_0x1f369a['add'](_0x1f5388['get'](_0x465245),_0x465245),_0x465245++;break;case'delete':_0x1f369a['remove'](_0x465245);break;case'equal':_0x465245++;}}class as extends kt{constructor(_0x3fa75a){super(_0x3fa75a);const _0x25cfdf=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x25cfdf['to']('contextValue',_0xeae2e3=>S(_0x3fa75a,'THREAD_CONTEXT_LABEL',_0xeae2e3)),'tabindex':-0x1},'children':[{'text':_0x25cfdf['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x401c74,_0x1eef35){super(_0x401c74);const _0x544f2d=this['bindTemplate'];this['_model']=_0x1eef35,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1c4a76(),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',_0x18eacc=>!!_0x18eacc),this['bind']('contextValue')['to'](this['_model'],'context',_0x53225e=>_0x53225e&&_0x53225e['value']?this['_trimContextValue'](_0x53225e['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',_0x544f2d['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 _0x197f07=new _0x439fde(this['locale']);return _0x197f07['label']=S(this['locale'],'Reopen'),_0x197f07['tooltip']=S(this['locale'],'Reopen'),_0x197f07['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>',_0x197f07['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x544db4=>!_0x544db4),_0x197f07['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x51ff7d,_0x5c4408)=>_0x51ff7d&&_0x5c4408),_0x197f07['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x197f07;}['_trimContextValue'](_0xa7c3e0){if(_0xa7c3e0['length']<0x96)return _0xa7c3e0;const _0x2eeb24=_0xa7c3e0['lastIndexOf']('\x20',0x93);return _0xa7c3e0['substring'](0x0,_0x2eeb24>-0x1?_0x2eeb24:0x93)+'...';}['_attachContextActions'](){const _0x57dddc=this['element']['querySelector']('.ck-context'),_0x32a03a=_0x57dddc['querySelector']('.ck-context__value');this['listenTo'](_0x57dddc,'mouseenter',()=>{_0x32a03a['offsetWidth']<_0x32a03a['scrollWidth']&&_0x57dddc['classList']['add']('overlay');}),this['listenTo'](_0x57dddc,'mouseleave',()=>{_0x57dddc['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3db3c4 of this['focusables'])this['focusTracker']['add'](_0x3db3c4['element']),this['keystrokes']['listenTo'](_0x3db3c4['element']);}['_createContextView'](){const _0x2c8c52=new as(this['locale']);return _0x2c8c52['bind']('contextValue')['to'](this),_0x2c8c52;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x42d1a3,_0x4f1cae,_0x5b19ac,_0xd4bb1f){super(_0x42d1a3),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4f1cae,this['_localUser']=_0x5b19ac,this['_config']=_0xd4bb1f,this['commentThreadHeaderView']=new Yt(_0x42d1a3,_0x4f1cae),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x42d1a3,S(_0x42d1a3,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x42d1a3,_0x4f1cae,Object['assign']({'CommentView':this['_config']['CommentView']},_0xd4bb1f)),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',(_0x22592a,_0x25cd2d)=>_0x22592a||!!_0x25cd2d),this['bind']('isUnlinked')['to'](_0x4f1cae,'unlinkedAt',_0x1e8c12=>!!_0x1e8c12),this['bind']('ariaLabel')['to'](this,'length',_0x5e29c4=>{const _0xca5127=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x5e29c4,_0xca5127]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1c4a76(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x49f785=>_0x49f785['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x7984aa=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3874af=_0x7984aa['commentInputView'];return _0x7984aa['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x3874af,'value',(_0x55098f,_0x2281a2,_0x23d346,_0x27b30a,_0x419e61)=>!!_0x419e61||!!_0x27b30a&&_0x23d346&&!_0x2281a2||_0x55098f&&_0x23d346&&!_0x2281a2),_0x3874af['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2bf30c,_0x175de4,_0x1afcf8)=>{let _0x417971;return _0x417971=_0x1afcf8&&_0x175de4?'Reply\x20to\x20reopen\x20discussion...':_0x2bf30c?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x417971);}),_0x3874af['bind']('submitLabel')['to'](this,'length',_0x3a1fc2=>S(this['locale'],_0x3a1fc2?'Reply':'Comment')),_0x3874af['on']('submit',(_0x559c0c,_0x17486f)=>{this['fire']('addComment',_0x17486f),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x3874af['on']('cancel',()=>{this['focus']();}),_0x3874af['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3874af['on']('cancel',_0x592e58=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x592e58['stop']());}),this['on']('change:isActive',(_0x41f540,_0x39c477,_0x4f8441)=>{_0x4f8441||this['length']||_0x3874af['value']||this['fire']('removeCommentThread');}),_0x7984aa;}}class Ct extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(os){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0x24377d(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x52e9ab,target:_0x2a4ed9,type:_0x34be30,isVisible:_0x39db07=!0x0}){super(),this['view']=_0x52e9ab,this['view']['element']||this['view']['render'](),this['_type']=_0x34be30,this['_target']=_0x2a4ed9,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x18e518([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x331084,_0x10e6e5)=>{this['view']['focusTracker']['add'](_0x10e6e5);}),this['focusableElements']['on']('remove',(_0x25b007,_0x2bbab2)=>{this['view']['focusTracker']['remove'](_0x2bbab2);}),this['set']('isVisible',_0x39db07);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x16b19e=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x16b19e),_0x16b19e;}get['targetRect'](){const _0x265d97=this['target'];if(null===_0x265d97)return null;if(_0x265d97 instanceof _0x2aa486)return _0x265d97;const _0x1965f3=_0x265d97['filter'](_0x5b551f=>function(_0x34d8ca){const _0x2f3739=_0x34d8ca['offsetParent'];if(_0x2f3739)return!0x0;const _0x4b903e=_0x34d8ca['getClientRects']()['item'](0x0);return!!_0x4b903e;}(_0x5b551f));return 0x0===_0x1965f3['length']?null:new _0x2aa486(_0x1965f3[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3857df){this['view']['isActive']=_0x3857df,this['view']['mainView']['isActive']=_0x3857df;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x260762){if(!(null===_0x260762||_0x260762 instanceof _0x2aa486||Array['isArray'](_0x260762)&&_0x260762['every'](_0x5038b8=>ne(_0x5038b8))))throw new _0x28afa1('annotation-invalid-target',null,{'target':_0x260762});}['_getNormalizedTarget'](){const _0x398f91='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x398f91)?[_0x398f91]:_0x398f91;}}function ne(_0x1b597b){return null!==_0x1b597b&&'object'==typeof _0x1b597b&&'nodeType'in _0x1b597b&&0x1===_0x1b597b['nodeType'];}class x extends _0x18e518{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x7584aa=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1c4a76(),this['_focusTracker']['on']('change:isFocused',(_0x207e5b,_0x1a7535,_0x423044)=>{_0x423044||this['fire']('blur');});for(const _0x363170 of _0x7584aa)this['add'](_0x363170);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x4dad49){if(this['has'](_0x4dad49))throw new _0x28afa1('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x4dad49['innerView'],_0x4dad49),this['_viewToAnnotation']['set'](_0x4dad49['view'],_0x4dad49);for(const _0x13c3e9 of _0x4dad49['focusableElements'])this['_focusTracker']['add'](_0x13c3e9);this['listenTo'](_0x4dad49['focusableElements'],'add',(_0xe2c526,_0x1f1788)=>{this['_focusTracker']['add'](_0x1f1788);}),this['listenTo'](_0x4dad49['focusableElements'],'remove',(_0x2d5890,_0x4c8118)=>{this['_focusTracker']['remove'](_0x4c8118);}),this['listenTo'](_0x4dad49['view']['focusTracker'],'change:isFocused',(_0x2a3f8d,_0x41c978,_0x588699)=>{_0x588699&&this['fire']('focus',_0x4dad49);}),_0x4dad49['updateTargetRect']();const _0x358330=this['_getOrderInContent'](_0x4dad49['view']['targetRect']);return super['add'](_0x4dad49,_0x358330);}['remove'](_0x595eae){if(!this['has'](_0x595eae))throw new _0x28afa1('annotationcollection-not-existing-item',null);this['stopListening'](_0x595eae['view']['focusTracker']),this['stopListening'](_0x595eae['focusableElements']);for(const _0x250d9a of _0x595eae['focusableElements'])this['_focusTracker']['remove'](_0x250d9a);return this['_viewToAnnotation']['delete'](_0x595eae['view']),this['_innerViewToAnnotation']['delete'](_0x595eae['innerView']),super['remove'](_0x595eae);}['getByInnerView'](_0x2798e5){return this['_innerViewToAnnotation']['get'](_0x2798e5);}['getByView'](_0x97c64a){return this['_viewToAnnotation']['get'](_0x97c64a);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x30cead of this)_0x30cead['updateTargetRect']();this['_sort']();}['_sort'](){const _0x526003=Array['from'](this)['sort']((_0x10d1ae,_0x1d9d9d)=>v(_0x10d1ae['view']['targetRect'],_0x1d9d9d['view']['targetRect']));for(let _0x17a598=_0x526003['length']-0x1;_0x17a598>0x0;_0x17a598--){const _0x42cbea=_0x526003[_0x17a598];_0x17a598!==this['getIndex'](_0x42cbea)&&(this['remove'](_0x42cbea),this['add'](_0x42cbea));}}['_getOrderInContent'](_0x418429){let _0x596cd2=0x0;if(!_0x418429)return this['length'];for(const _0x57c9d4 of this){const _0x24a262=_0x57c9d4['view']['targetRect'];if(_0x24a262){if(v(_0x418429,_0x24a262)<0x0)return _0x596cd2;_0x596cd2++;}}return _0x596cd2;}}function v(_0x542f22,_0x59145a){if(null===_0x542f22&&null===_0x59145a)return 0x0;if(null===_0x542f22)return-0x1;if(null===_0x59145a)return 0x1;const _0x165621=_0x542f22['top']-_0x59145a['top'];return 0x0==_0x165621?_0x542f22['left']-_0x59145a['left']:_0x165621;}class N extends _0x16e53b{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12b0a0){if(super(_0x12b0a0),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x12b0a0 instanceof _0x2aaf2){const _0x126ba7=_0x12b0a0['locale'];_0x12b0a0['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x126ba7,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x126ba7,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x126ba7,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x126ba7,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x126ba7,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x126ba7,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x126ba7,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2de6fe){this['collection']['add'](_0x2de6fe);}['remove'](_0x13f769){this['collection']['remove'](_0x13f769),_0x13f769['destroy']();}['refreshVisibility'](){for(const _0x4b7260 of this['collection'])_0x4b7260['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x8835fc){return this['collection']['getByInnerView'](_0x8835fc);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x102a5e of this['collection'])_0x102a5e['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x36cf67){this['fire']('_activateAnnotation',_0x36cf67);}['createAnnotation'](_0x1d6824){return new d(_0x1d6824);}['createAnnotationView'](_0x2fe33d,_0x5bffdd){return new T(_0x2fe33d,_0x5bffdd);}['_addActiveAnnotation'](_0x36736b){const _0xe4daf3=new Set(this['activeAnnotations']);_0xe4daf3['add'](_0x36736b),this['activeAnnotations']=_0xe4daf3;}['_removeActiveAnnotation'](_0x5721e9){const _0x324689=new Set(this['activeAnnotations']);_0x324689['delete'](_0x5721e9),this['activeAnnotations']=_0x324689;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3f2bf1=this['collection'],_0x20e2c8=this['_visibleAnnotations'];function _0x3609c6(_0x43da2d){const _0xafb3dc=_0x43da2d['source'];_0xafb3dc['isVisible']&&!_0x20e2c8['has'](_0xafb3dc)?_0x20e2c8['add'](_0xafb3dc):!_0xafb3dc['isVisible']&&_0x20e2c8['has'](_0xafb3dc)&&_0x20e2c8['remove'](_0xafb3dc),_0xafb3dc['view']['focusTracker']['remove'](_0xafb3dc['view']['element']),_0xafb3dc['view']['focusTracker']['add'](_0xafb3dc['view']['element']);}this['listenTo'](_0x3f2bf1,'add',(_0x599ec1,_0xa4e583)=>{_0xa4e583['isVisible']&&_0x20e2c8['add'](_0xa4e583),this['listenTo'](_0xa4e583,'change:isVisible',_0x3609c6);}),this['listenTo'](_0x3f2bf1,'remove',(_0x5af59e,_0x3841be)=>{_0x20e2c8['has'](_0x3841be)&&_0x20e2c8['remove'](_0x3841be),this['stopListening'](_0x3841be,'change:isVisible',_0x3609c6);});}['_setupEnterAnnotationKeystroke'](){const _0x4a996d=_0x223964=>{_0x223964['on']('ready',()=>{_0x223964['keystrokes']['set'](_0x4a5917,(_0x1c45c8,_0x505ea4)=>{const _0x19bde4=_0x100cec(this['activeAnnotations']['values']());_0x19bde4&&(_0x19bde4['view']['focus'](),_0x505ea4());});});};this['context']instanceof _0x2aaf2?_0x4a996d(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0xdc3c07,_0x5adbe3)=>{_0x4a996d(_0x5adbe3);});}['_setupEscapeAnnotationHandling'](){const _0x4a26d3=_0x209773=>{const _0x10377e=_0x209773['source'],_0x19d007=[];let _0x139cb4;if(Array['isArray'](_0x10377e['target'])){_0x139cb4=_0x10377e['target'][0x0],this['context']instanceof _0x2aaf2?_0x19d007['push'](this['context']):this['context']['editors']&&_0x19d007['push'](...this['context']['editors']);for(const _0x4f71ef of _0x19d007)for(const _0x38cf8a of _0x4f71ef['editing']['view']['domRoots']['values']())if(_0x38cf8a['contains'](_0x139cb4))return void _0x4f71ef['editing']['view']['focus']();_0x139cb4['focus']();}};this['listenTo'](this['collection'],'add',(_0x1b7758,_0x10bac5)=>{this['listenTo'](_0x10bac5,'escape',_0x4a26d3,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x593737,_0x4cf9b4)=>{this['stopListening'](_0x4cf9b4,'escape',_0x4a26d3);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x16e53b{['_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(_0x2c825d){super(_0x2c825d),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2ba81b=this['context']['config'];_0x2ba81b['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2ba81b['define']('comments.maxThreadTotalWeight',0x1f4),_0x2ba81b['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2ba81b['define']('comments.CommentThreadView',Ct),_0x2ba81b['define']('comments.CommentView',vt),_0x2ba81b['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x378327=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4de27f,_0x2d09bd)=>this['_addCommentThread'](_0x2d09bd)),this['on']('submitCommentThread',(_0x5ed51f,_0x1dd72b)=>this['_submitCommentThread'](_0x1dd72b)),this['on']('resolveCommentThread',(_0x3d9a5e,_0x29d17c)=>this['_resolveCommentThread'](_0x29d17c)),this['on']('resolveCommentThread',(_0x5ebd7e,_0x5bd522)=>this['_updateActiveAnnotation'](_0x5bd522),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5720db,_0x3cefc1)=>this['_reopenCommentThread'](_0x3cefc1)),this['on']('reopenCommentThread',(_0x5c5e7f,_0x34bda2)=>this['_updateActiveAnnotation'](_0x34bda2),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x41e4cd,_0x204649)=>this['_removeCommentThread'](_0x204649)),this['on']('updateCommentThread',(_0x4b4c95,_0x3edcd1)=>this['_updateCommentThread'](_0x3edcd1)),this['on']('updateCommentThread',(_0x43d36d,_0x576914)=>this['_updateActiveAnnotation'](_0x576914),{'priority':'lowest'}),this['on']('addComment',(_0x5afd2b,_0x11d836)=>this['_addComment'](_0x11d836)),this['on']('updateComment',(_0x58f431,_0x2561c1)=>this['_updateComment'](_0x2561c1)),this['on']('removeComment',(_0xed864b,_0xd178d3)=>this['_removeComment'](_0xd178d3)),this['on']('addComment',(_0x113f05,{threadId:_0x508a4a,isFromAdapter:_0x1e30c3})=>{if(_0x1e30c3)return;const _0x1ae0cf=this['getCommentThread'](_0x508a4a),_0x131bfa=_0x1ae0cf&&this['_threadToController']['get'](_0x1ae0cf);_0x131bfa&&_0x131bfa['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x378327,'change:activeAnnotations',(_0x51feda,_0x2ac985,_0x5e254b)=>{const _0x320286=Array['from'](_0x5e254b)['map'](_0x416a4c=>this['_viewToController']['get'](_0x416a4c['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x320286?_0x320286['model']:null;});}set['adapter'](_0x36cbe4){if(this['_adapter'])throw new _0x28afa1('commentsrepository-adapter-already-set');this['_adapter']=_0x36cbe4;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x37a2b5=gt,threadId:_0x5f0ea6=_0x178bc7(),comments:_0x63c189=[],unlinkedAt:_0x135741=null,resolvedAt:_0x43fae1=null,resolvedBy:_0x54ff4d=null,target:_0x1626bb=null,context:_0x43844c=null,attributes:_0x187d93={},isResolvable:_0x2341fb=!0x0,isSubmitted:_0x147de8=!0x1,isFromAdapter:_0x22d207=!0x1}={}){return this['fire'](_t('addCommentThread',_0x37a2b5),{'channelId':_0x37a2b5,'threadId':_0x5f0ea6,'comments':_0x63c189,'unlinkedAt':_0x135741,'resolvedAt':_0x43fae1,'resolvedBy':_0x54ff4d,'target':_0x1626bb,'context':_0x43844c,'attributes':_0x187d93,'isFromAdapter':_0x22d207,'isResolvable':_0x2341fb,'isSubmitted':_0x147de8}),this['getCommentThread'](_0x5f0ea6);}['openNewCommentThread']({channelId:_0x2b5980=gt,threadId:_0x560d9f=_0x178bc7(),target:_0x24573f,context:_0x5e8e80=null,isResolvable:_0x3acc22=!0x0}){if(this['_readOnlyChannels']['has'](_0x2b5980)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x24573f)throw new _0x28afa1('commentsrepository-missing-target');const _0x36480e=this['addCommentThread']({'channelId':_0x2b5980,'threadId':_0x560d9f,'target':_0x24573f,'context':_0x5e8e80,'isResolvable':_0x3acc22});if(!_0x36480e)return null;const _0x576ba7=this['_threadToController']['get'](_0x36480e),_0x224e34=_0x576ba7['view']['commentThreadInputView']['commentInputView'],_0x324e21=this['context']['plugins']['get'](N),_0x3f0a53=_0x324e21['getByInnerView'](_0x576ba7['view']);return _0x324e21['activate'](_0x3f0a53),_0x224e34['once']('editorReady',()=>_0x224e34['focus']()),_0x36480e;}['hasCommentThread'](_0x269953){if('string'!=typeof _0x269953)throw new _0x28afa1('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x269953);}['updateCommentThread']({channelId:_0x31926d=gt,threadId:_0x86be5,context:_0x7710b1,unlinkedAt:_0x5bd220,attributes:_0x325a06,isFromAdapter:_0x292097=!0x1}){return this['fire'](_t('updateCommentThread',_0x31926d),{'channelId':_0x31926d,'threadId':_0x86be5,'context':_0x7710b1,'unlinkedAt':_0x5bd220,'attributes':_0x325a06,'isFromAdapter':_0x292097}),this['getCommentThread'](_0x86be5);}['getCommentThread'](_0x215ad0){if('string'!=typeof _0x215ad0)throw new _0x28afa1('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x215ad0);}['fetchCommentThread']({channelId:_0x14f3af,threadId:_0x41e8ce}={}){const _0x19e91a=this['getCommentThread'](_0x41e8ce);if(_0x19e91a)return Promise['resolve'](_0x19e91a);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x28afa1('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x14f3af,'threadId':_0x41e8ce})['then'](_0x4d2d38=>this['hasCommentThread'](_0x41e8ce)?this['getCommentThread'](_0x41e8ce):_0x4d2d38?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x14f3af},_0x4d2d38)):void 0x0)['catch'](_0x1f5702=>{throw console['error'](_0x1f5702),new _0x28afa1('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x452216,skipNotAttached:_0x5d09e3=!0x1,skipEmpty:_0x1ae6b4=!0x1,toJSON:_0x5015ad=!0x1}={}){const _0x42dcd6=[];for(const _0x2a9a6b of this['_threads']['values']())_0x452216&&_0x2a9a6b['channelId']!==_0x452216||_0x5d09e3&&!_0x2a9a6b['isAttached']||_0x1ae6b4&&0x0===_0x2a9a6b['length']||_0x42dcd6['push'](_0x2a9a6b);return _0x5015ad?_0x42dcd6['map'](_0x50b275=>_0x50b275['toJSON']()):_0x42dcd6;}['setActiveCommentThread'](_0x56d165){const _0x4a6edb=this['context']['plugins']['get'](N);if(!_0x56d165)return void(this['activeCommentThread']&&_0x4a6edb['deactivateAll']());const _0x3a914d=this['getCommentThread'](_0x56d165);if(!_0x3a914d)throw new _0x28afa1('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x56d165});if(!this['_threadToController']['has'](_0x3a914d))throw new _0x28afa1('commentsrepository-active-not-attached',null,{'threadId':_0x56d165});const _0x554aad=_0x4a6edb['getByInnerView'](this['_threadToController']['get'](_0x3a914d)['view']);_0x4a6edb['activate'](_0x554aad);}['switchReadOnly'](_0x5675ff,_0x5ddd28){_0x5675ff?this['_readOnlyChannels']['add'](_0x5ddd28):this['_readOnlyChannels']['delete'](_0x5ddd28),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x235329){return this['_readOnlyChannels']['has'](_0x235329)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1e7d07,_0x485a57){return new yt(_0x1e7d07,_0x485a57);}['setPermissions'](_0x1302bf,_0xf2bca2=gt){this['_permissions']['set'](_0xf2bca2,_0x1302bf),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x10fcc9=gt){return this['_permissions']['has'](_0x10fcc9)?this['_permissions']['get'](_0x10fcc9):Tt;}['_addCommentThread']({channelId:_0x44aa76,threadId:_0x18ab8a,comments:_0xd3f685,unlinkedAt:_0x3a53aa,resolvedAt:_0x34d53b,resolvedBy:_0x3e77ce,target:_0x20c12d,context:_0x248491,attributes:_0xd23c6a,isFromAdapter:_0x53f45f,isResolvable:_0x53a855,isSubmitted:_0x5c9e63}){if('string'!=typeof _0x18ab8a)throw new _0x28afa1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x18ab8a});if(this['hasCommentThread'](_0x18ab8a))throw new _0x28afa1('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x18ab8a});const _0x38d6f1=new oe(this,{'channelId':_0x44aa76,'id':_0x18ab8a,'context':_0x248491,'attributes':_0xd23c6a,'unlinkedAt':_0x3a53aa,'resolvedAt':_0x34d53b,'resolvedBy':_0x3e77ce?this['context']['plugins']['get'](it)['getUser'](_0x3e77ce):null,'isResolvable':_0x53a855,'isSubmitted':_0x5c9e63||_0x53f45f});this['_threads']['set'](_0x18ab8a,_0x38d6f1);for(const _0x138cc7 of _0xd3f685)_0x38d6f1['_add'](this['_createNewComment']({'threadId':_0x18ab8a,..._0x138cc7}));return _0x20c12d&&_0x38d6f1['attachTo'](_0x20c12d),_0x53f45f||!_0x38d6f1['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x44aa76,'threadId':_0x18ab8a});}['_submitCommentThread']({channelId:_0x591990,threadId:_0x107e77}){if(!this['hasCommentThread'](_0x107e77))throw new _0x28afa1('commentsrepository-missing-comment-thread',this);const _0xed5aee=this['getCommentThread'](_0x107e77);if(_0xed5aee['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x541d2a,comments:_0xf438f5,resolvedAt:_0x462c0b,resolvedBy:_0x10a55f,context:_0x304a6c,attributes:_0x33330d}=_0xed5aee,_0x32affe=this['context']['plugins']['get']('PendingActions'),_0x5808d0=_0x32affe['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x591990,'threadId':_0x541d2a,'comments':_0xf438f5['map'](_0x44d251=>_0x44d251['toJSON']()),'resolvedAt':_0x462c0b,'resolvedBy':_0x10a55f?_0x10a55f['id']:_0x10a55f,'context':_0x304a6c,'attributes':_0x33330d})['then'](({comments:_0x2d10ec})=>{_0x32affe['remove'](_0x5808d0);for(const _0x12a205 of _0x2d10ec)this['_updateComment']({'channelId':_0x591990,'threadId':_0x107e77,'commentId':_0x12a205['commentId'],'createdAt':_0x12a205['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x46af70=>{throw console['error'](_0x46af70),new _0x28afa1('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2afd68,target:_0x49b8b8}){const _0x3ced80=this['getCommentThread'](_0x2afd68);if(!_0x3ced80)throw new _0x28afa1('commentsrepository-attach-missing-comment-thread',this);const _0x25136c=this['context']['plugins']['get']('PendingActions'),_0x154a93=this['context']['plugins']['get'](N),_0x1789a2=this['_createCommentThreadView'](_0x3ced80),_0x2d5054=new yt(_0x3ced80,_0x1789a2);let _0x8d1e5=null;_0x1789a2['on']('change:isDirty',(_0x268b81,_0x4b4990,_0x596c40)=>{_0x596c40?_0x8d1e5=_0x25136c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x8d1e5&&(_0x25136c['remove'](_0x8d1e5),_0x8d1e5=null);}),this['_threadToController']['set'](_0x3ced80,_0x2d5054),this['_viewToController']['set'](_0x1789a2,_0x2d5054);const _0x6777ca=new T(this['context']['locale'],_0x1789a2);_0x6777ca['bind']('length')['to'](_0x1789a2),_0x6777ca['bind']('isDirty')['to'](_0x1789a2,'isDirty',_0x1789a2,'length',(_0x172acf,_0x14c91b)=>_0x172acf||!_0x14c91b),_0x6777ca['bind']('isActive')['to'](_0x1789a2),_0x6777ca['type']='comment';const _0x26c588=new d({'view':_0x6777ca,'target':_0x49b8b8,'type':'comment','isVisible':!_0x3ced80['isResolved']});return _0x1789a2['on']('escape',()=>{_0x26c588['fire']('escape');}),this['_bindAnnotationToEditors'](_0x1789a2,_0x26c588),_0x154a93['add'](_0x26c588),_0x26c588;}['_bindAnnotationToEditors'](_0x3b4d88,_0x3c56ee){this['listenTo'](_0x3b4d88,'editorReady',(_0x3ef3d5,_0x2170b3)=>{const _0x2b6d3c=_0x2170b3['ui']['view']['body']['bodyCollectionContainer'];_0x3c56ee['focusableElements']['add'](_0x2b6d3c),this['context']instanceof _0x2aaf2&&this['context']['ui']['focusTracker']['add'](_0x2b6d3c);},{'priority':'highest'}),this['listenTo'](_0x3b4d88,'editorDestroyed',(_0x5f0654,_0x43b750)=>{const _0x107ce4=_0x43b750['ui']['view']['body']['bodyCollectionContainer'];_0x3c56ee['focusableElements']['has'](_0x107ce4)&&_0x3c56ee['focusableElements']['remove'](_0x107ce4),this['context']instanceof _0x2aaf2&&this['context']['ui']['focusTracker']['remove'](_0x107ce4);});}['_unbindEditors'](_0x54385c){this['stopListening'](_0x54385c,'editorReady'),this['stopListening'](_0x54385c,'editorDestroyed');}['_createCommentThreadView'](_0x4f81a0){const _0x322f4a=this['context']['plugins']['get'](it),{config:_0x4a6e9c,locale:_0x245cdf}=this['context'],_0x24c2d6=mt(_0x4a6e9c['get']('locale'));return new(0x0,(_0x4a6e9c['get']('comments'))['CommentThreadView'])(_0x245cdf,_0x4f81a0,_0x322f4a['me'],{'editorConfig':{..._0x4a6e9c['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4a6e9c['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4a6e9c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a6e9c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a6e9c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24c2d6,'CommentView':_0x4a6e9c['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x437b3d,channelId:_0x59e7e0,resolvedAt:_0x1b3311,resolvedBy:_0x1f3406,isFromAdapter:_0x428d13}){if(!this['hasCommentThread'](_0x437b3d))throw new _0x28afa1('commentsrepository-missing-comment-thread',null,{'threadId':_0x437b3d});const _0xde1a44=this['getCommentThread'](_0x437b3d);if(_0xde1a44['isResolved'])throw new _0x28afa1('commentsrepository-resolved-comment-thread',null,{'threadId':_0x437b3d});const _0x41c325=this['context']['plugins']['get'](it);if(_0xde1a44['resolvedBy']=_0x41c325['getUser'](_0x1f3406),_0xde1a44['resolvedAt']=_0x1b3311,_0x428d13||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5011a7=this['context']['plugins']['get']('PendingActions'),_0x597620=_0x5011a7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x59e7e0,'threadId':_0x437b3d})['then'](({resolvedAt:_0x2e0167,resolvedBy:_0x5e855f})=>{_0x5011a7['remove'](_0x597620),_0xde1a44['resolvedBy']['id']!==_0x5e855f&&(_0xde1a44['resolvedBy']=_0x41c325['getUser'](_0x5e855f)),_0xde1a44['resolvedAt']=_0x2e0167;})['catch'](_0x502679=>{throw console['error'](_0x502679),new _0x28afa1('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1216aa,channelId:_0x139cd4,isFromAdapter:_0x290f59}){if(!this['hasCommentThread'](_0x1216aa))throw new _0x28afa1('commentsrepository-missing-comment-thread',null,{'threadId':_0x1216aa});const _0x1d64dc=this['getCommentThread'](_0x1216aa);if(!_0x1d64dc['isResolved'])throw new _0x28afa1('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1216aa});if(_0x1d64dc['resolvedBy']=null,_0x1d64dc['resolvedAt']=null,_0x290f59||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3ed8ad=this['context']['plugins']['get']('PendingActions'),_0x594d44=_0x3ed8ad['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x139cd4,'threadId':_0x1216aa})['then'](()=>_0x3ed8ad['remove'](_0x594d44))['catch'](_0x3a29b3=>{throw console['error'](_0x3a29b3),new _0x28afa1('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x3fb9a3,isFromAdapter:_0x5c9c31}){const _0xdf1c22=this['getCommentThread'](_0x3fb9a3);if(!_0xdf1c22)throw new _0x28afa1('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x3fb9a3),this['_threads']['delete'](_0x3fb9a3),!_0xdf1c22['isSubmitted']||_0x5c9c31||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4ef12e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4c551f}=_0xdf1c22,_0x3f805d=_0x4ef12e['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x4c551f,'threadId':_0x3fb9a3})['then'](()=>_0x4ef12e['remove'](_0x3f805d))['catch'](_0x36188a=>{throw console['error'](_0x36188a),new _0x28afa1('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4dac23,unlinkedAt:_0x2697b8,context:_0x14fc29,attributes:_0x4d2b75,isFromAdapter:_0x2cc62e}){if('string'!=typeof _0x4dac23)throw new _0x28afa1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4dac23});if(!this['hasCommentThread'](_0x4dac23))throw new _0x28afa1('commentsrepository-missing-comment-thread',null,{'threadId':_0x4dac23});const _0x35d98a=this['getCommentThread'](_0x4dac23);let _0x148a90=!0x1;if(void 0x0!==_0x14fc29&&_0x35d98a['context']!==_0x14fc29&&(_0x35d98a['context']=_0x14fc29,_0x148a90=!0x0),void 0x0!==_0x2697b8&&_0x35d98a['unlinkedAt']!==_0x2697b8&&(_0x35d98a['unlinkedAt']=_0x2697b8,_0x148a90=!0x0),_0x4d2b75&&!It(_0x4d2b75,_0x35d98a['attributes'])&&(_0x35d98a['attributes']=_0x4d2b75,_0x148a90=!0x0),!_0x148a90)return Promise['resolve']();if(!_0x35d98a['isSubmitted']||_0x2cc62e||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x350d0b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x9bd699}=_0x35d98a,_0x21a4e1=_0x350d0b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x9bd699,'threadId':_0x4dac23,'context':_0x14fc29,'unlinkedAt':_0x2697b8,'attributes':_0x4d2b75})['then'](()=>_0x350d0b['remove'](_0x21a4e1))['catch'](_0x45c5ae=>{throw console['error'](_0x45c5ae),new _0x28afa1('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1ddeb6){const _0x30d009=this['context']['plugins']['get'](N),_0x5a5d72=this['getCommentThread'](_0x1ddeb6);if(this['_threadToController']['has'](_0x5a5d72)){const _0x43c7c6=this['_threadToController']['get'](_0x5a5d72),_0x3082c4=_0x43c7c6['view'],_0x3ec960=_0x30d009['getByInnerView'](_0x3082c4);this['_threadToController']['delete'](_0x5a5d72),this['_viewToController']['delete'](_0x3082c4),_0x3ec960&&_0x30d009['remove'](_0x3ec960),_0x43c7c6['destroy'](),_0x3082c4['destroy']()['then'](()=>{this['_unbindEditors'](_0x3082c4);});}}['_updateActiveAnnotation']({threadId:_0xe412ca,resolvedAt:_0x16c51c}){const _0x9c569b=!!_0x16c51c,_0x4793cc=this['context']['plugins']['get'](N),_0x2e857a=this['getCommentThread'](_0xe412ca);if(this['_threadToController']['has'](_0x2e857a)){const _0x3df1ab=this['_threadToController']['get'](_0x2e857a)['view'],_0x2ec575=_0x4793cc['getByInnerView'](_0x3df1ab);_0x2ec575&&(_0x9c569b&&_0x4793cc['_removeActiveAnnotation'](_0x2ec575),_0x2ec575['refreshVisibility']());}}['_getExternalAuthor'](_0xd3eff8){const _0x1e03a7=this['context']['plugins']['get'](it),_0x1996d7=lt('external:'+_0xd3eff8),_0x3be47c=_0x1e03a7['getUser'](_0x1996d7);return _0x3be47c||_0x1e03a7['addUser']({'id':_0x1996d7,'name':_0xd3eff8});}['_createNewComment']({threadId:_0xad5f19,commentId:_0xe7a3d3=_0x178bc7(),content:_0x1fc135,authorId:_0xc16916,createdAt:_0x57c6d6,attributes:_0x36af6b}){if('string'!=typeof _0xe7a3d3)throw new _0x28afa1('commentsrepository-invalid-commentid');if('string'!=typeof _0xc16916)throw new _0x28afa1('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1fc135||!_0x1fc135['trim']())throw new _0x28afa1('commentsrepository-invalid-comment-content');const _0x330866=this['context']['plugins']['get'](it)['getUser'](_0xc16916);if(!_0x330866)throw new _0x28afa1('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0xc16916});let _0x4518f5=null,_0x28fbd7=_0x57c6d6;return _0x36af6b&&_0x36af6b['@external']&&(_0x4518f5=this['_getExternalAuthor'](_0x36af6b['@external']['authorName']),_0x28fbd7=new Date(_0x36af6b['@external']['createdAt'])),new re(this,{'threadId':_0xad5f19,'id':_0xe7a3d3,'author':_0x4518f5||_0x330866,'creator':_0x330866,'content':_0x1fc135,'createdAt':_0x57c6d6,'authoredAt':_0x28fbd7,'attributes':_0x36af6b});}['_addComment'](_0x558009){let {threadId:_0x18b23f,content:_0x1e9704,attributes:_0x29665d,isFromAdapter:_0x2b36f0}=_0x558009;const _0xdd6005=this['getCommentThread'](_0x558009['threadId']);if(!_0xdd6005)throw new _0x28afa1('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x345eb9=this['_createNewComment'](_0x558009),{id:_0x6ccad0}=_0x345eb9;if(_0xdd6005['_add'](_0x345eb9),_0x2b36f0||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0xdd6005['isSubmitted'])return Promise['resolve']();const _0x4214a8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x257e04}=_0xdd6005,_0x22085e=_0x4214a8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x29665d||(_0x29665d={}),this['adapter']['addComment']({'channelId':_0x257e04,'threadId':_0x18b23f,'commentId':_0x6ccad0,'content':_0x1e9704,'attributes':_0x29665d})['then'](_0x1425aa=>{_0x4214a8['remove'](_0x22085e),_0x1425aa&&this['_updateComment']({'channelId':_0x257e04,'threadId':_0x18b23f,'commentId':_0x6ccad0,'createdAt':_0x1425aa['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x9d620b=>{throw console['error'](_0x9d620b),new _0x28afa1('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x431d75,commentId:_0x434ace,content:_0x1da077,createdAt:_0x1968f1,attributes:_0x217c5e,isFromAdapter:_0x462b31}){if(void 0x0!==_0x1da077&&('string'!=typeof _0x1da077||!_0x1da077['trim']()['length']))throw new _0x28afa1('commentsrepository-update-comment-invalid-content');const _0x1550d0=this['getCommentThread'](_0x431d75),_0xdd03fd=_0x1550d0['getComment'](_0x434ace);if(!_0xdd03fd)throw new _0x28afa1('commentsrepository-update-missing-comment',this);let _0xe7c55c=!0x1;if(_0x1da077&&_0x1da077!==_0xdd03fd['content']&&(_0xdd03fd['isEditable']||_0x462b31)&&(_0xdd03fd['content']=_0x1da077,_0xe7c55c=!0x0),_0x1968f1&&_0x1968f1!==_0xdd03fd['createdAt']&&(_0xdd03fd['createdAt']=_0x1968f1,_0xdd03fd['attributes']&&_0xdd03fd['attributes']['@external']||(_0xdd03fd['authoredAt']=_0x1968f1),_0xe7c55c=!0x0),_0x217c5e&&!It(_0x217c5e,_0xdd03fd['attributes'])&&(_0xdd03fd['attributes']=_0x217c5e,_0xe7c55c=!0x0),!_0xe7c55c)return Promise['resolve']();if(_0x1550d0['fire']('commentUpdated'),_0x462b31||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x3f653a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2d0d12}=this['getCommentThread'](_0xdd03fd['threadId']),_0x4e558c=_0x3f653a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x2d0d12,'threadId':_0x431d75,'commentId':_0x434ace,'content':_0x1da077,'attributes':_0x217c5e})['then'](()=>_0x3f653a['remove'](_0x4e558c))['catch'](_0x26b0e2=>{throw console['error'](_0x26b0e2),new _0x28afa1('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3fbd22,commentId:_0x11d373,isFromAdapter:_0x2a6ef1}){const _0x5e9806=this['getCommentThread'](_0x3fbd22),_0x593050=_0x5e9806['getComment'](_0x11d373);if(!_0x593050)throw new _0x28afa1('commentsrepository-remove-missing-comment',this);if(_0x5e9806['_remove'](_0x593050),_0x2a6ef1||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x182fc0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x663077}=_0x5e9806,_0x3ab4ad=_0x182fc0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x663077,'threadId':_0x3fbd22,'commentId':_0x11d373})['then'](()=>_0x182fc0['remove'](_0x3ab4ad))['catch'](_0x4b103c=>{throw console['error'](_0x4b103c),new _0x28afa1('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x24377d(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x41e64f,_0x26b683){super();const _0x48dcf3=_0x41e64f['context']['plugins']['get'](it)['me'],_0x5014c1=_0x41e64f['getCommentThread'](_0x26b683['threadId']),_0x2df5cd=0x0===_0x5014c1['comments']['length'],_0x32f7e5=_0x48dcf3===_0x26b683['author'];this['id']=_0x26b683['id'],this['threadId']=_0x26b683['threadId'],this['author']=_0x26b683['author'],this['creator']=_0x26b683['creator'],this['isExternal']=Boolean(_0x26b683['attributes']&&_0x26b683['attributes']['@external']),this['set']('content',_0x26b683['content']),this['createdAt']=_0x26b683['createdAt']||new Date(),this['set']('authoredAt',_0x26b683['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5014c1,'resolvedAt'),this['set']('attributes',_0x26b683['attributes']||{}),this['bind']('isEditable')['to'](_0x41e64f,'_permissions',()=>{const _0x64bd9=_0x41e64f['getPermissions'](_0x5014c1['channelId'])['write'],_0x302401=_0x41e64f['getPermissions'](_0x5014c1['channelId'])['modifyAll'];return _0x32f7e5&&_0x64bd9||!_0x32f7e5&&_0x302401;}),this['bind']('isRemovable')['to'](_0x5014c1,'isRemovable',_0x41e64f,'_permissions',_0x1cee6d=>{const _0x2ecb70=_0x41e64f['getPermissions'](_0x5014c1['channelId'])['write'],_0x350936=_0x41e64f['getPermissions'](_0x5014c1['channelId'])['modifyAll'];return _0x32f7e5&&_0x2ecb70||_0x1cee6d&&_0x2df5cd||!_0x32f7e5&&_0x350936&&!_0x2df5cd;}),this['bind']('isReadOnly')['to'](_0x5014c1,'isReadOnly'),this['_repository']=_0x41e64f;}get['weight'](){return Math['max'](function(_0x474af5){const _0x49ea7f=document['createElement']('div');return _0x49ea7f['innerHTML']=_0x474af5,_0x49ea7f['textContent']['length'];}(this['content']),0xc8);}['update'](_0x1fce04){const {threadId:_0xaef9d5,id:_0x1d0aa3}=this;if(!this['_repository']['hasCommentThread'](_0xaef9d5))throw new _0x28afa1('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4f0677}=this['_repository']['getCommentThread'](_0xaef9d5);this['_repository']['fire'](_t('updateComment',_0x4f0677,_0xaef9d5),{'channelId':_0x4f0677,'threadId':_0xaef9d5,'commentId':_0x1d0aa3,..._0x1fce04});}['setAttribute'](_0x1caa55,_0x10bf62){const _0x418181=pt(this['attributes']);wt(_0x418181,_0x1caa55,_0x10bf62),this['update']({'attributes':_0x418181});}['removeAttribute'](_0x5738e9){const _0x4f3c7d=pt(this['attributes']);At(_0x4f3c7d,_0x5738e9),this['update']({'attributes':_0x4f3c7d});}['remove'](_0x27845e={}){if(!_0x27845e['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x25453e,id:_0xbe6b6c}=this;if(!this['_repository']['hasCommentThread'](_0x25453e))throw new _0x28afa1('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4317c6}=this['_repository']['getCommentThread'](_0x25453e);this['_repository']['fire'](_t('removeComment',_0x4317c6,_0x25453e),{'channelId':_0x4317c6,'threadId':_0x25453e,'commentId':_0xbe6b6c,..._0x27845e});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x5ed2cb,..._0x3b4e4b){for(const _0x27ca46 of _0x3b4e4b)void 0x0!==_0x27ca46&&(_0x5ed2cb+=':'+String(_0x27ca46));return _0x5ed2cb;}class J extends _0x120356{['refresh'](){const _0x1025df=this['editor']['model']['document']['selection'];for(const _0x3d6036 of _0x1025df['getRanges']())if(this['_hasContent'](_0x3d6036))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x77c96b=_0x178bc7()}={}){const _0x5b0032=this['editor']['model'],_0x25d2f4=[];for(const _0x525008 of _0x5b0032['document']['selection']['getRanges']())this['_hasContent'](_0x525008)&&_0x25d2f4['push'](this['_trimToContent'](_0x525008));_0x5b0032['change'](_0x452aef=>{for(const _0x3c39ba of _0x25d2f4){const _0x1f6ba1=_0x178bc7()['substr'](0x1,0x5),_0x3fbc17='comment:'+_0x77c96b+':'+_0x1f6ba1;_0x452aef['addMarker'](_0x3fbc17,{'range':_0x3c39ba,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x2286fc){for(const _0x49f5f4 of _0x2286fc['getItems']())if(this['_itemIsContent'](_0x49f5f4))return!0x0;return!0x1;}['_itemIsContent'](_0x5b9ea8){return _0x5b9ea8['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5b9ea8)&&!_0x5b9ea8['is']('element','tableCell');}['_trimToContent'](_0x2ec53f){const _0x1e2c29=_0x4470db=>!this['_itemIsContent'](_0x4470db['item']),_0x569461=_0x2ec53f['start']['getLastMatchingPosition'](_0x1e2c29),_0x10450a=_0x2ec53f['end']['getLastMatchingPosition'](_0x1e2c29,{'direction':'backward'});return this['editor']['model']['createRange'](_0x569461,_0x10450a);}}class P extends _0x3ad107{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f9c62){super(_0x1f9c62),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4c4042=this['editor'],_0x489373=_0x4c4042['model']['document']['selection'],_0x11a823=_0x19d056(()=>this['refreshSelectedViews'](),0xa);_0x489373['on']('change:range',(_0x1626af,_0x5697ac)=>{_0x5697ac['directChange']&&(_0x11a823['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x4c4042['editing']['view']['document'],'change:isFocused',(_0x4c3c9b,_0x14dd2b,_0x10e65b)=>{_0x10e65b&&_0x11a823();}),this['listenTo'](_0x4c4042['ui']['focusTracker'],'change:isFocused',(_0x2979a1,_0x326d14,_0x31cd99)=>{_0x31cd99||_0x4c4042['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x5b6c0d=>this['_editorAnnotationsData']['has'](_0x5b6c0d['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x5a3259){if(this['_editorAnnotations']['has'](_0x5a3259['view']))return;this['_editorAnnotations']['add'](_0x5a3259['view']),this['editor']['ui']['focusTracker']['add'](_0x5a3259['view']['element']);const _0x483a01=this['editor']['plugins']['get'](N);this['listenTo'](_0x483a01['collection'],'remove',(_0x31deca,_0x352b6f)=>{this['editor']['ui']['focusTracker']['remove'](_0x352b6f['view']['element']),this['_editorAnnotations']['delete'](_0x352b6f['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1b3438){if('function'!=typeof _0x1b3438)throw new _0x28afa1('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1b3438);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x475adc,annotations:_0x3b58de}){const _0x1fffac=[],_0x401cf2=this['editor']['model']['document']['selection'],_0x50d330=Array['from'](_0x401cf2['getRanges']());for(const [_0x4beb26,_0xfe52fd]of this['_editorAnnotationsData']){const _0x36ea49=_0x85ea1a(_0xfe52fd),_0x7d4c2c=_0x3b58de['getByInnerView'](_0x4beb26);_0x36ea49&&_0x7d4c2c&&_0x1fffac['push']({'annotation':_0x7d4c2c,'range':_0x36ea49});}function _0x85ea1a(_0x43f84d){for(const _0x317ee4 of _0x43f84d)for(const _0x4b3eb6 of _0x50d330)if(_0x317ee4['containsRange'](_0x4b3eb6,!_0x401cf2['isCollapsed']))return _0x317ee4;return null;}return _0x1fffac['sort']((_0x134ebf,_0x1815a7)=>{const _0x4fe4b8=_0x134ebf['range'],_0xad1d7e=_0x1815a7['range'];if(!_0x4fe4b8['isEqual'](_0xad1d7e)){if(_0x4fe4b8['containsRange'](_0xad1d7e,!0x0))return 0x1;if(_0xad1d7e['containsRange'](_0x4fe4b8,!0x0))return-0x1;}return _0x134ebf['annotation']==_0x475adc?-0x1:_0x1815a7['annotation']==_0x475adc?0x1:0x0;})['map'](_0xf1976d=>_0xf1976d['annotation']);}get['_editorAnnotationsData'](){const _0x450191=new Map();for(const _0x4e5cd0 of Array['from'](this['_dataCollectors']))for(const [_0x26593d,_0x30e0c4]of _0x4e5cd0())_0x450191['set'](_0x26593d,_0x30e0c4);return _0x450191;}}class st extends _0x3ad107{['afterInit'](){const _0x10b15e=this['editor'];if(!_0x10b15e['plugins']['has']('RestrictedEditingModeEditing'))return;_0x10b15e['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3ad107{constructor(_0x56aa5f){super(_0x56aa5f),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x40808f=this['editor'],_0x5acb1c=_0x40808f['commands']['get']('importWord'),_0x1c338b=_0x40808f['plugins']['get'](it);_0x5acb1c&&(_0x5acb1c['on']('execute',(_0x4c3b4f,[,_0x3fbdbf])=>{_0x3fbdbf['collaboration_features']={'comments':!0x0,'user_id':_0x1c338b['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x5acb1c,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5925fe,_0x1204ec){const {comment_threads:_0x3e3689}=_0x1204ec;_0x3e3689&&_0x3e3689['forEach'](({thread_id:_0x44c22a,comments:_0x43878a,is_resolved:_0x154d35})=>{const _0x43de3c=new Date(),_0x5706ef=_0x43878a['map'](({author:_0x13c56c,content:_0x2b945a,created_at:_0x51a27b})=>({'content':_0x2b945a,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x43de3c,'attributes':{'@external':{'authorName':_0x13c56c,'createdAt':_0x51a27b?new Date(_0x51a27b):new Date(),'source':'importWord'}}})),_0x4983ae=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4983ae,'threadId':_0x44c22a,'comments':_0x5706ef,'resolvedAt':_0x154d35?_0x43de3c:null});});}}class at extends _0x3ad107{constructor(_0x56630e){super(_0x56630e),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5c07cf=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5c07cf,'contentInsertion',(_0x4602f6,_0x47f91c)=>this['_removeMarkersWithoutThreads'](_0x47f91c['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x1d024f){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x1d024f;const _0x2d3dac=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5b7f89 of _0x1d024f['keys']()){const [_0x45e786,_0x5b5ea6]=_0x5b7f89['split'](':');'comment'!=_0x45e786||_0x2d3dac['hasCommentThread'](_0x5b5ea6)||_0x1d024f['delete'](_0x5b7f89);}return _0x1d024f;}['_registerMarkerInClipboardPipeline'](){const _0x13e31f=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x19561d=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x19561d&&_0x13e31f['_registerMarkerToCopy']('comment',_0x19561d);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x45acb3){switch(_0x45acb3){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x3ad107{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d5b97){super(_0x4d5b97),this['set']('isThreadsLoadingPaused',!0x0),_0x4d5b97['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0xc3f549,_0x32f050,_0x4c6614,_0x3b7529)=>{const _0x222c68=_0x4c6614?he(_0x4c6614)['id']:null;if(_0x4d5b97['model']['change'](()=>{if(_0x222c68){const _0x53fd88=this['getAllMarkersForId'](_0x222c68);for(const _0x46820f of _0x53fd88)_0x4d5b97['editing']['reconvertMarker'](_0x46820f);}if(_0x3b7529){const {id:_0x109a76}=he(_0x3b7529),_0x1e36be=this['getAllMarkersForId'](_0x109a76);for(const _0x4ec841 of _0x1e36be)_0x4d5b97['editing']['reconvertMarker'](_0x4ec841);}}),_0x222c68){const _0xb64a75=_0x4d5b97['plugins']['get'](o)['getCommentThread'](_0x222c68);_0xb64a75&&_0xb64a75['isResolved']&&this['scrollToThreadMarker'](_0x222c68);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x384f9a=this['editor'],_0x19e861=_0x384f9a['plugins']['get'](o),_0x36328f=_0x384f9a['config']['get']('collaboration.channelId');_0x384f9a['commands']['add']('addCommentThread',new J(_0x384f9a)),this['listenTo'](_0x384f9a,'change:isReadOnly',(_0x206efe,_0xd34391,_0x9962f3)=>{_0x19e861['switchReadOnly'](_0x9962f3,_0x384f9a['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x19e861,ut('addCommentThread',_0x36328f),(_0x59a69c,{threadId:_0x445f34})=>{const _0x5cb366=this['editor']['plugins']['get'](o)['getCommentThread'](_0x445f34);_0x5cb366&&_0x5cb366['unlinkedAt']&&this['_attachArchivedThread'](_0x445f34);}),this['listenTo'](_0x19e861,ut('removeCommentThread',_0x36328f),(_0x537add,{threadId:_0x2ab115})=>{_0x384f9a['model']['enqueueChange']({'isUndoable':!0x1},_0x8cea64=>{const _0x3a2fd9=this['getAllMarkersForId'](_0x2ab115);for(const _0x149373 of _0x3a2fd9)_0x8cea64['removeMarker'](_0x149373);});}),this['listenTo'](_0x19e861,ut('resolveCommentThread',_0x36328f),(_0x21a1cd,{threadId:_0x5c3369})=>{(this['_reconvertMarkers'](_0x5c3369),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5c3369)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x19e861,ut('reopenCommentThread',_0x36328f),(_0x54d12c,{threadId:_0x1550a2})=>{this['_reconvertMarkers'](_0x1550a2);},{'priority':'low'}),this['listenTo'](_0x19e861,ut('addComment',_0x36328f),(_0x45325f,{threadId:_0x41bfd6,isFromAdapter:_0x1197de})=>{const _0x42b67c=this['getAllMarkersForId'](_0x41bfd6);if(_0x1197de||0x0==_0x42b67c['length']||!_0x19e861['hasCommentThread'](_0x41bfd6))return;0x1===_0x19e861['getCommentThread'](_0x41bfd6)['length']&&_0x384f9a['model']['enqueueChange']({'isUndoable':!0x1},_0x2f86fe=>{for(const _0x5da6a2 of _0x42b67c)_0x2f86fe['updateMarker'](_0x5da6a2,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x7ec1e2){const _0x2e1ef2=_0x29cf56([0x33,0x45,0x6f,0x70,0x41,0x5a,0x39,0x49,0x69,0x79,0x72,0x57,0x4e,0x50,0x37,0x38,0x42,0x65,0x43,0x7a,0x6b,0x4f,0x53,0x76,0x63,0x4d,0x61,0x36,0x51,0x6a,0x32,0x73,0x59,0x74,0x62,0x44,0x56,0x4c,0x52,0x58,0x67,0x35,0x4b,0x68,0x46,0x78,0x55,0x4a,0x75,0x6d,0x48,0x54,0x6e,0x30,0x47,0x64,0x34,0x6c,0x77,0x71,0x31,0x66]),_0x537ee1=0x4086cbcf,_0x231a77=0x408193bf^_0x537ee1,_0x3bed00=window[_0x29cf56([0x44,0x61,0x74,0x65])][_0x29cf56([0x6e,0x6f,0x77])](),_0x5282b4=_0x7ec1e2[_0x29cf56([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1bcd06=new window[(_0x29cf56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ab3e=>{_0x5282b4[_0x29cf56([0x6f,0x6e,0x63,0x65])](_0x29cf56([0x72,0x65,0x61,0x64,0x79]),_0x52ab3e);}),_0x4e50a6={[_0x29cf56([0x6b,0x74,0x79])]:_0x29cf56([0x45,0x43]),[_0x29cf56([0x75,0x73,0x65])]:_0x29cf56([0x73,0x69,0x67]),[_0x29cf56([0x63,0x72,0x76])]:_0x29cf56([0x50,0x2d,0x32,0x35,0x36]),[_0x29cf56([0x78])]:_0x29cf56([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]),[_0x29cf56([0x79])]:_0x29cf56([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]),[_0x29cf56([0x61,0x6c,0x67])]:_0x29cf56([0x45,0x53,0x32,0x35,0x36])},_0x141212=_0x5282b4[_0x29cf56([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29cf56([0x67,0x65,0x74])](_0x29cf56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x413743(){let _0x19a3f7,_0x117624=null,_0x49f268=null;try{if(_0x141212==_0x29cf56([0x47,0x50,0x4c]))return _0x29cf56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19a3f7=_0x745bf5(),!_0x19a3f7)return _0x29cf56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19a3f7[_0x29cf56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x49f268=_0x57795d(_0x19a3f7[_0x29cf56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19a3f7[_0x29cf56([0x6a,0x74,0x69])])),await _0x3c11d4()?_0x3b9284()?_0x3cc4c9()?_0x29cf56([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x420f42()?(_0x19a3f7[_0x29cf56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29cf56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x117624=_0x405235(_0x29cf56([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19a3f7[_0x29cf56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29cf56([0x74,0x72,0x69,0x61,0x6c])&&(_0x117624=_0x405235(_0x29cf56([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x19a3f7[_0x29cf56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29cf56([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x117624=_0x405235(_0x29cf56([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f17c1()):_0x29cf56([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29cf56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29cf56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5c2c20){return _0x29cf56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cc4c9(){const _0x412c92=[_0x29cf56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29cf56([0x74,0x72,0x69,0x61,0x6c])][_0x29cf56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19a3f7[_0x29cf56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3bed00/0x3e8:0xe10*_0x231a77;return _0x19a3f7[_0x29cf56([0x65,0x78,0x70])]<_0x412c92;}function _0x3b9284(){const _0x680ac5=_0x19a3f7[_0x29cf56([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x680ac5)return!0x1;if(_0x680ac5[_0x29cf56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cf56([0x2a])))return!0x0;if(_0x680ac5[_0x29cf56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cf56([0x43,0x4d,0x54])))return!0x0;if(_0x680ac5[_0x29cf56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cf56([0x52,0x43,0x4d,0x54]))){if(_0x37e695())return!0x0;if(_0xed2d43()||_0x5f5390())return!0x0;}return!0x1;}function _0x420f42(){const _0x3c0e23=_0x19a3f7[_0x29cf56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c0e23||0x0==_0x3c0e23[_0x29cf56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19efff}=new URL(window[_0x29cf56([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c0e23[_0x29cf56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19efff))return!0x0;const _0x27a611=_0x19efff[_0x29cf56([0x73,0x70,0x6c,0x69,0x74])](_0x29cf56([0x2e]));return _0x3c0e23[_0x29cf56([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x144450=>_0x144450[_0x29cf56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29cf56([0x2a])))[_0x29cf56([0x6d,0x61,0x70])](_0x43bc67=>_0x43bc67[_0x29cf56([0x73,0x70,0x6c,0x69,0x74])](_0x29cf56([0x2e])))[_0x29cf56([0x73,0x6f,0x6d,0x65])](_0x3ffbc2=>_0x27a611[_0x29cf56([0x65,0x76,0x65,0x72,0x79])]((_0x532c30,_0x662f8c)=>_0x3ffbc2[_0x662f8c]===_0x532c30||_0x3ffbc2[_0x662f8c]===_0x29cf56([0x2a])));}function _0x4f17c1(){return _0x117624&&_0x49f268?new window[(_0x29cf56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3622ac,_0x35402d)=>{_0x117624[_0x29cf56([0x74,0x68,0x65,0x6e])](_0x3622ac,_0x35402d),_0x49f268[_0x29cf56([0x74,0x68,0x65,0x6e])](_0x1a35b0=>{_0x1a35b0!=_0x29cf56([0x56,0x61,0x6c,0x69,0x64])&&_0x3622ac(_0x1a35b0);},_0x35402d);}):_0x117624||_0x49f268||_0x29cf56([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57795d(_0x1757ab,_0x4257e4){return new window[(_0x29cf56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1379de=>{if(_0x412245())return _0x1379de(_0x29cf56([0x56,0x61,0x6c,0x69,0x64]));_0x465ce6(),_0x5282b4[_0x29cf56([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29cf56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15e874=!0x1;const _0x53df35=_0x178bc7();function _0x39ae91(_0x5d7eda){return!!_0x5d7eda&&(typeof _0x5d7eda===_0x29cf56([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d7eda===_0x29cf56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d7eda[_0x29cf56([0x74,0x68,0x65,0x6e])]===_0x29cf56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d7eda[_0x29cf56([0x63,0x61,0x74,0x63,0x68])]===_0x29cf56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5608e5(_0x3f37ba){_0x31e23b(_0x3f37ba)[_0x29cf56([0x74,0x68,0x65,0x6e])](_0x53b56e=>{if(!_0x53b56e||_0x53b56e[_0x29cf56([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29cf56([0x6f,0x6b]))return _0x29cf56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x21224b(_0x4fe949(_0x53df35+_0x4257e4))!=_0x53b56e[_0x29cf56([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29cf56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29cf56([0x56,0x61,0x6c,0x69,0x64]);})[_0x29cf56([0x74,0x68,0x65,0x6e])](_0x562988=>(_0x488f03(),_0x562988),()=>{const _0x24d69f=_0x349910();return null==_0x24d69f?(_0x488f03(),_0x29cf56([0x56,0x61,0x6c,0x69,0x64])):_0x29cf56(_0x3bed00-_0x24d69f>(0x648a4fcf^_0x537ee1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29cf56([0x74,0x68,0x65,0x6e])](_0x1379de)[_0x29cf56([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1379de(_0x29cf56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd97328=0x40b0254f^_0x537ee1;function _0x488f03(){const _0x496aaa=_0x29cf56([0x6c,0x6c,0x63,0x74,0x2d])+_0x21224b(_0x4fe949(_0x1757ab)),_0x3f724c=_0x30aa1d(_0x21224b(window[_0x29cf56([0x4d,0x61,0x74,0x68])][_0x29cf56([0x63,0x65,0x69,0x6c])](_0x3bed00/_0xd97328)));window[_0x29cf56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29cf56([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x496aaa,_0x3f724c);}function _0x349910(){const _0x95ccbd=_0x29cf56([0x6c,0x6c,0x63,0x74,0x2d])+_0x21224b(_0x4fe949(_0x1757ab)),_0x32056b=window[_0x29cf56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29cf56([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x95ccbd);return _0x32056b?window[_0x29cf56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30aa1d(_0x32056b),0x10)*_0xd97328:null;}function _0x31e23b(_0x265b0c){return new window[(_0x29cf56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c5d34,_0x424740)=>{_0x265b0c[_0x29cf56([0x74,0x68,0x65,0x6e])](_0x4c5d34,_0x424740),window[_0x29cf56([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x424740,0x40871f0f^_0x537ee1);});}}_0x5282b4[_0x29cf56([0x6f,0x6e])](_0x29cf56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4db881,_0x2ee184)=>{if(_0x2ee184[0x0]!=_0x1757ab)return _0x1379de(_0x29cf56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ee184[0x1]={..._0x2ee184[0x1],[_0x29cf56([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53df35};},{[_0x29cf56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29cf56([0x68,0x69,0x67,0x68])}),_0x5282b4[_0x29cf56([0x6f,0x6e])](_0x29cf56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x537af6=>{_0x39ae91(_0x537af6[_0x29cf56([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15e874=!0x0,_0x5608e5(_0x537af6[_0x29cf56([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29cf56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29cf56([0x6c,0x6f,0x77])}),_0x1bcd06[_0x29cf56([0x74,0x68,0x65,0x6e])](()=>{_0x15e874||_0x1379de(_0x29cf56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x412245(){return _0x5282b4[_0x29cf56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29cf56([0x76,0x69,0x65,0x77])][_0x29cf56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29cf56([0x61,0x75,0x74,0x6f]);}function _0x465ce6(){_0x5282b4[_0x29cf56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29cf56([0x76,0x69,0x65,0x77])][_0x29cf56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29cf56([0x61,0x75,0x74,0x6f]);}}function _0x405235(_0x281cb1){const _0x45ab1d=[new window[(_0x29cf56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25071d=>setTimeout(_0x25071d,0x408ff503^_0x537ee1)),_0x1bcd06[_0x29cf56([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29cf56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53df23=>{let _0x2a3e69=0x0;_0x5282b4[_0x29cf56([0x6d,0x6f,0x64,0x65,0x6c])][_0x29cf56([0x6f,0x6e])](_0x29cf56([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x450fb7,_0x3ea040)=>{_0x3ea040[0x0][_0x29cf56([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a3e69++,_0x2a3e69==(0x4086ca37^_0x537ee1)&&(_0x53df23(),_0x450fb7[_0x29cf56([0x6f,0x66,0x66])]());});}))];return window[_0x29cf56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29cf56([0x72,0x61,0x63,0x65])](_0x45ab1d)[_0x29cf56([0x74,0x68,0x65,0x6e])](()=>_0x281cb1);}async function _0x2434b8(){await _0x1bcd06,_0x5282b4[_0x29cf56([0x6d,0x6f,0x64,0x65,0x6c])][_0x29cf56([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52f90d,_0x5282b4[_0x29cf56([0x6d,0x6f,0x64,0x65,0x6c])][_0x29cf56([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52f90d,_0x5282b4[_0x29cf56([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29cf56([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37e695(){return _0x383c94(_0x29cf56([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x16b8e5(_0x29cf56([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29cf56([0x73,0x74,0x61,0x74,0x65])]==_0x29cf56([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xed2d43(){return _0x383c94(_0x29cf56([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 _0x5f5390(){return _0x383c94(_0x29cf56([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x59e3bc(_0x210136){const _0x3e771d=_0x18cc2a();_0x5282b4[_0x3e771d]=_0x29cf56([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x210136,_0x210136!=_0x29cf56([0x56,0x61,0x6c,0x69,0x64])&&_0x2434b8();}function _0x18cc2a(){const _0x349eae=window[_0x29cf56([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29cf56([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29cf56([0x6e,0x6f,0x77])]())[_0x29cf56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29cf56([0x2e]),'');let _0x14b57d=_0x29cf56([0x45]);for(let _0x5c7275=0x0;_0x5c7275<_0x349eae[_0x29cf56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c7275+=0x2){let _0x33906d=window[_0x29cf56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x349eae[_0x29cf56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c7275,_0x5c7275+0x2));_0x33906d>=_0x2e1ef2[_0x29cf56([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33906d-=_0x2e1ef2[_0x29cf56([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14b57d+=_0x2e1ef2[_0x33906d];}return _0x14b57d;}function _0x745bf5(){const _0x14df8c=_0x141212[_0x29cf56([0x73,0x70,0x6c,0x69,0x74])](_0x29cf56([0x2e]));if(0x3!=_0x14df8c[_0x29cf56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x138ac7(_0x14df8c[0x1]);function _0x138ac7(_0x4310d0){const _0x113b2a=_0x4c7c23(_0x4310d0);return _0x113b2a&&_0x32131e()?_0x113b2a:null;function _0x32131e(){const _0xed4b1f=_0x113b2a[_0x29cf56([0x6a,0x74,0x69])],_0x8f4049=window[_0x29cf56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xed4b1f[_0x29cf56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xed4b1f[_0x29cf56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52a44c={..._0x113b2a,[_0x29cf56([0x6a,0x74,0x69])]:_0xed4b1f[_0x29cf56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xed4b1f[_0x29cf56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52a44c[_0x29cf56([0x76,0x63])],_0x4fe949(_0x52a44c)==_0x8f4049;}}}async function _0x3c11d4(){let _0x4f64ea=!0x0;try{const _0x5514e8=_0x141212[_0x29cf56([0x73,0x70,0x6c,0x69,0x74])](_0x29cf56([0x2e])),[_0x231082,_0x2b0775,_0x4c7640]=_0x5514e8;return _0x298e81(_0x231082),await _0xc3fba9(_0x231082,_0x2b0775,_0x4c7640),_0x4f64ea;}catch(_0x3832ca){return!0x1;}function _0x298e81(_0x3df273){const _0x8085b7=_0x4c7c23(_0x3df273);_0x8085b7&&_0x8085b7[_0x29cf56([0x61,0x6c,0x67])]==_0x29cf56([0x45,0x53,0x32,0x35,0x36])||(_0x4f64ea=!0x1);}async function _0xc3fba9(_0x51a9ff,_0x2af7c5,_0x23e0af){const _0x1205a5=window[_0x29cf56([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29cf56([0x66,0x72,0x6f,0x6d])](_0x340213(_0x23e0af),_0x1b81b1=>_0x1b81b1[_0x29cf56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37bcc3=new window[(_0x29cf56([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29cf56([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51a9ff+_0x29cf56([0x2e])+_0x2af7c5),_0x178687=window[_0x29cf56([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29cf56([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x178687)return;const _0x54a969=await _0x178687[_0x29cf56([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29cf56([0x6a,0x77,0x6b]),_0x4e50a6,{[_0x29cf56([0x6e,0x61,0x6d,0x65])]:_0x29cf56([0x45,0x43,0x44,0x53,0x41]),[_0x29cf56([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29cf56([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29cf56([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x178687[_0x29cf56([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29cf56([0x6e,0x61,0x6d,0x65])]:_0x29cf56([0x45,0x43,0x44,0x53,0x41]),[_0x29cf56([0x68,0x61,0x73,0x68])]:{[_0x29cf56([0x6e,0x61,0x6d,0x65])]:_0x29cf56([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54a969,_0x1205a5,_0x37bcc3)||(_0x4f64ea=!0x1);}}function _0x4c7c23(_0x17654a){return _0x17654a[_0x29cf56([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29cf56([0x65,0x79]))?JSON[_0x29cf56([0x70,0x61,0x72,0x73,0x65])](_0x340213(_0x17654a)):null;}function _0x340213(_0x42184a){return window[_0x29cf56([0x61,0x74,0x6f,0x62])](_0x42184a[_0x29cf56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29cf56([0x2b]))[_0x29cf56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29cf56([0x2f])));}function _0x4fe949(_0x5eb991){let _0x3926af=0x1505;function _0x113031(_0x48e12b){for(let _0x231366=0x0;_0x231366<_0x48e12b[_0x29cf56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x231366++){const _0x9acc3a=_0x48e12b[_0x29cf56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x231366);_0x3926af=(_0x3926af<<0x5)+_0x3926af+_0x9acc3a,_0x3926af&=_0x3926af;}}function _0x3fea51(_0x5795d6){Array[_0x29cf56([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5795d6)?_0x5795d6[_0x29cf56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3fea51):_0x5795d6&&typeof _0x5795d6==_0x29cf56([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29cf56([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5795d6)[_0x29cf56([0x73,0x6f,0x72,0x74])]()[_0x29cf56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1709ea,_0x322c4b])=>{_0x113031(_0x1709ea),_0x3fea51(_0x322c4b);}):_0x113031(window[_0x29cf56([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5795d6));}return _0x3fea51(_0x5eb991),_0x3926af>>>0x0;}function _0x21224b(_0x5ac9e4){return _0x5ac9e4[_0x29cf56([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29cf56([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29cf56([0x30]));}function _0x30aa1d(_0x121cb9){return _0x121cb9[_0x29cf56([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29cf56([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29cf56([0x6a,0x6f,0x69,0x6e])]('');}function _0x383c94(_0x589aea){return _0x5282b4[_0x29cf56([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29cf56([0x68,0x61,0x73])](_0x589aea);}function _0x16b8e5(_0x3eb8bf){return _0x5282b4[_0x29cf56([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29cf56([0x67,0x65,0x74])](_0x3eb8bf);}function _0x52f90d(){}function _0x29cf56(_0x1060c9){return _0x1060c9['map'](_0x4519f6=>String['fromCharCode'](_0x4519f6))['join']('');}_0x59e3bc(await _0x413743());}(this);}['destroy'](){const _0x1684fb=this['editor']['plugins']['get'](o),_0x135d3f=this['editor']['config']['get']('collaboration.channelId');for(const _0x37b70a of _0x1684fb['getCommentThreads']({'channelId':_0x135d3f}))_0x1684fb['_detachCommentThread'](_0x37b70a['id']),_0x1684fb['_threads']['delete'](_0x37b70a['id']);super['destroy']();}['hasMarkerForId'](_0x13408e){return this['getAllMarkersForId'](_0x13408e)['length']>0x0;}['getAllMarkersForId'](_0x37453c){const _0x36d49c=[];for(const _0x49d097 of this['editor']['model']['markers'])_0x49d097['name']['startsWith']('comment:'+_0x37453c)&&_0x36d49c['push'](_0x49d097);return _0x36d49c;}['scrollToThreadMarker'](_0x548d99){const _0x13ffd8=this['_getTargetForId'](_0x548d99);_0x13ffd8&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x548d99&&rt({'target':_0x13ffd8[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x111293){this['editor']['model']['change'](()=>{for(const _0x48d099 of this['getAllMarkersForId'](_0x111293))this['editor']['editing']['reconvertMarker'](_0x48d099);});}['_attachArchivedThread'](_0x41eb2e){const _0x4067d3=this['editor']['plugins']['get'](o),_0x4042a3=this['editor']['plugins']['get'](P),_0x536432=_0x4067d3['getCommentThread'](_0x41eb2e);if(!_0x536432['isAttached']){const _0x5065b=_0x536432['attachTo'](()=>this['_getTargetForId'](_0x536432['id']));_0x4042a3['registerAnnotation'](_0x5065b),_0x536432['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x2e1b20=this['editor'],_0x33d321=_0x2e1b20['plugins']['get'](it);_0x2e1b20['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xfbf2ae,_0x691b2d)=>{const {id:_0x9deef3}=he(_0xfbf2ae['markerName']),_0x539536=_0x2e1b20['plugins']['get'](o)['getCommentThread'](_0x9deef3),_0x39b9bc=this['activeMarker']&&he(this['activeMarker'])['id']===_0x9deef3;let _0x335efa;if(_0x539536&&_0x539536['isResolved']&&!_0x39b9bc&&_0xfbf2ae['item'])return _0x691b2d['consumable']['consume'](_0xfbf2ae['item'],'addMarker:'+_0xfbf2ae['markerName']),_0x691b2d['consumable']['consume'](_0xfbf2ae['item'],'removeMarker:'+_0xfbf2ae['markerName']),null;const _0x147473=['ck-comment-marker'];return _0x39b9bc&&_0x147473['push']('ck-comment-marker--active'),_0x335efa=_0x539536&&_0x539536['length']?_0x539536['comments']['first']['author']['id']:_0x33d321['me']['id'],{'classes':_0x147473,'attributes':{'data-comment':_0x9deef3,'data-author-id':_0x335efa}};}}),_0x2e1b20['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x479de1,{options:_0x3fe5fe})=>{const _0x2ae8ce=_0x2e1b20['plugins']['get'](o),_0x32b662=_0x2e1b20['model']['markers']['get'](_0x479de1),{id:_0x247980,part:_0x1e3ba2}=he(_0x479de1);if(_0x32b662&&!_0x32b662['affectsData'])return null;if(_0x3fe5fe['ignoreResolvedComments']){const _0x38b47b=_0x2ae8ce['getCommentThread'](_0x247980);if(_0x38b47b&&_0x38b47b['isResolved'])return null;}return{'group':'comment','name':_0x1e3ba2?_0x247980+':'+_0x1e3ba2:_0x247980};}}),_0x2e1b20['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x46982a,{writer:_0x4c2f30})=>_0x4c2f30['createElement']('$marker',{'data-name':'comment:'+_0x46982a['getAttribute']('id')})}),_0x2e1b20['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3bc964=this['editor'],_0x1a19cc=_0x3bc964['plugins']['get'](o),_0x4be5a5=new Set(),_0x1bf910=new Set();_0x3bc964['model']['document']['registerPostFixer'](_0x148e35=>{let _0x2dcbb7=!0x1;for(const {name:_0x4db937,data:_0x27c295}of _0x3bc964['model']['document']['differ']['getChangedMarkers']()){const {group:_0x305cae,id:_0x32d3d8}=he(_0x4db937);let _0x56e122=_0x27c295['newRange'];if('comment'!==_0x305cae||!_0x56e122)continue;const _0x5583f6='$graveyard'===_0x56e122['root']['rootName'];_0x5583f6||(_0x56e122=ft(_0x56e122,_0x3bc964['model']),!_0x56e122||_0x56e122['isCollapsed']||!_0x27c295['newRange']||_0x56e122['isEqual'](_0x27c295['newRange']))?_0x3bc964['model']['hasContent'](_0x56e122)&&!_0x5583f6?this['isThreadsLoadingPaused']?_0x4be5a5['add'](_0x4db937):this['_handleThreadMarker'](_0x4db937,_0x32d3d8):(_0x1bf910['add'](_0x4db937),_0x4be5a5['delete'](_0x4db937),_0x148e35['removeMarker'](_0x4db937),_0x2dcbb7=!0x0):(_0x148e35['updateMarker'](_0x4db937,{'range':_0x56e122}),_0x2dcbb7=!0x0);}return _0x2dcbb7;}),this['on']('change:isThreadsLoadingPaused',(_0x1e75f3,_0x37e1ae,_0x139d85)=>{if(!_0x139d85&&_0x4be5a5['size'])for(const _0x26162a of _0x4be5a5){const {id:_0x5242c8}=he(_0x26162a);_0x4be5a5['delete'](_0x26162a),_0x3bc964['model']['markers']['get'](_0x26162a)&&this['_handleThreadMarker'](_0x26162a,_0x5242c8);}}),this['listenTo'](_0x3bc964['model']['document'],'change',(_0x505669,_0x1bcd77)=>{for(const {name:_0x549cc5,data:{newRange:_0x43f039}}of _0x3bc964['model']['document']['differ']['getChangedMarkers']()){const {group:_0x51c941,id:_0x576fd9}=he(_0x549cc5);if('comment'!==_0x51c941)continue;const _0xf86480=_0x1a19cc['getCommentThread'](_0x576fd9),_0xad2030=this['hasMarkerForId'](_0x576fd9);_0xf86480&&(!_0xf86480['_hasTargetInContent']&&_0x43f039&&_0x3bc964['editing']['view']['once']('render',()=>{const _0x3a1e75=_0x3bc964['plugins']['get'](N),_0x2425ae=_0x1a19cc['_threadToController']['get'](_0xf86480)['view'];_0x3a1e75['getByInnerView'](_0x2425ae)['refreshVisibility']();},{'priority':'low'}),_0xf86480['_hasTargetInContent']=_0xad2030||!!_0x43f039),_0x43f039||(_0x1bf910['add'](_0x549cc5),_0x4be5a5['delete'](_0x549cc5));}if(_0x1bcd77['isLocal'])for(const _0x5d0eb2 of _0x1bf910){const {id:_0x40ec85}=he(_0x5d0eb2),_0x359191=_0x1a19cc['getCommentThread'](_0x40ec85),_0x3f22da=this['hasMarkerForId'](_0x40ec85);_0x4be5a5['delete'](_0x5d0eb2),!_0x359191||_0x3f22da||_0x359191['unlinkedAt']||_0x359191['setUnlinkedAt'](new Date());}_0x1bf910['clear']();});}['_getTargetForId'](_0x1ac5e8){const _0x1fdaae=this['editor'],_0x1ad36f=this['getAllMarkersForId'](_0x1ac5e8);return et(_0x1fdaae['editing'],_0x1ad36f);}['_getTextContext'](_0x499e65){const _0x2aedbb=this['getAllMarkersForId'](_0x499e65);let _0x480fbd='',_0x185c02=!0x1;for(const _0xfa20ea of _0x2aedbb){const _0xbeaf2f=_0xfa20ea['getRange']();for(const _0x880e41 of Array['from'](_0xbeaf2f['getItems']()))_0x880e41['is']('$textProxy')?(_0x480fbd&&_0x185c02&&(_0x480fbd+='\x20',_0x185c02=!0x1),_0x480fbd+=_0x880e41['data']):_0x185c02=!0x0;_0x185c02=!0x0;}return _0x480fbd['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x23ab41,_0x3c4564){const _0x50539c=this['editor'],_0x38f74e=_0x50539c['plugins']['get'](o);let _0x1ffa1d=_0x38f74e['getCommentThread'](_0x3c4564);const _0x579b1e=_0x50539c['config']['get']('collaboration.channelId'),_0x46c01f=_0x50539c['plugins']['get'](P);if(_0x1ffa1d&&(_0x1ffa1d['unlinkedAt']&&_0x1ffa1d['setUnlinkedAt'](null),_0x1ffa1d['isAttached']))return _0x1ffa1d;return!this['getAllMarkersForId'](_0x3c4564)[0x0]['managedUsingOperations']?_0x50539c['editing']['view']['once']('render',()=>{if(_0x38f74e['getCommentThread'](_0x3c4564))return;const _0x2e9d96=_0x50539c['plugins']['get'](N);_0x1ffa1d=_0x38f74e['openNewCommentThread']({'channelId':_0x579b1e,'threadId':_0x3c4564,'target':()=>this['_getTargetForId'](_0x3c4564),'context':{'type':'text','value':this['_getTextContext'](_0x3c4564)}});const _0x474f22=_0x38f74e['_threadToController']['get'](_0x1ffa1d)['view'],_0x3876d3=_0x2e9d96['getByInnerView'](_0x474f22);_0x3876d3&&_0x46c01f['registerAnnotation'](_0x3876d3);},{'priority':'low'}):_0x38f74e['fetchCommentThread']({'channelId':_0x579b1e,'threadId':_0x3c4564})['then'](_0x3fb289=>{if('destroyed'!==_0x50539c['state']){if(_0x1ffa1d=_0x3fb289,_0x1ffa1d&&!_0x1ffa1d['isAttached']){const _0x53d646=_0x1ffa1d['attachTo'](()=>this['_getTargetForId'](_0x3c4564));_0x46c01f['registerAnnotation'](_0x53d646),_0x1ffa1d['isResolved']&&this['_reconvertMarkers'](_0x3c4564);}else{if(!_0x1ffa1d){const _0x32999f=this['getAllMarkersForId'](_0x3c4564);_0x50539c['model']['change'](_0x38429f=>{for(const _0x3ac79c of _0x32999f)_0x38429f['removeMarker'](_0x3ac79c);});}}}}),_0x1ffa1d;}['_handleThreadMarker'](_0x35fd35,_0x35ac7d){const _0x51f661=this['_attachMarkerToThread'](_0x35fd35,_0x35ac7d);_0x51f661&&!_0x51f661['context']&&_0x51f661['setContext']({'type':'text','value':this['_getTextContext'](_0x35ac7d)});}['_initAriaMarkerChangeAnnouncements'](){const _0xa5d9d4=this['editor'];ot(_0xa5d9d4['model'],({left:_0x16e817,entered:_0xeca93a})=>{for(const _0x5997c5 of _0x16e817)if(dt(_0x5997c5)){_0xa5d9d4['ui']['ariaLiveAnnouncer']['announce'](S(_0xa5d9d4['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x7260e4 of _0xeca93a)if(dt(_0x7260e4)){_0xa5d9d4['ui']['ariaLiveAnnouncer']['announce'](S(_0xa5d9d4['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x51c379)));break;}});}}function ut(_0x28a8a1,_0x35b22a){return _0x35b22a?_0x28a8a1+':'+_0x35b22a:_0x28a8a1;}function he(_0x5c2725){const _0x5098cb=_0x5c2725['split'](':');return{'group':_0x5098cb[0x0],'id':_0x5098cb[0x1],'part':_0x5098cb[0x2]};}function ft(_0x566a11,_0x1217e7){const _0x56764c=_0x1217e7['schema'],_0x163219=_0x1217e7['createRange'](_0x566a11['start']);for(const _0x29f2f1 of _0x566a11['getWalker']()){const {type:_0xce882,item:_0x34f24b,nextPosition:_0x1bfe98}=_0x29f2f1;if('text'===_0xce882||_0x56764c['isObject'](_0x34f24b)){const _0x4d2c77=_0x1217e7['createPositionBefore'](_0x34f24b);_0x163219['isCollapsed']&&(_0x163219['start']=_0x4d2c77),_0x163219['end']=_0x1bfe98;}}return _0x163219;}function dt(_0x570c89){return'comment'===he(_0x570c89['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-2024,\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 _0x3ad107{['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 _0x565614=this['editor'],_0x27f5cf=_0x565614['plugins']['get'](o),_0x1dc960=_0x565614['plugins']['get'](r),_0x515ca0=_0x565614['plugins']['get'](N),_0x47a3df=_0x565614['plugins']['get'](P);_0x565614['ui']['componentFactory']['add']('comment',()=>{const _0x1efe79=this['_createUIButton'](_0x439fde);return _0x1efe79['tooltip']=!0x0,_0x1efe79;}),_0x565614['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0xe27958)),_0x47a3df['addSourceCollector'](()=>{const _0xa22bd3=[];for(const [_0x2e132d,_0x286092]of _0x27f5cf['_threadToController']){const _0x563111=_0x1dc960['getAllMarkersForId'](_0x2e132d['id']),_0x389e85=_0x563111['map'](_0x1fd9f7=>_0x1fd9f7['getRange']());_0x563111['length']>0x0&&_0xa22bd3['push']([_0x286092['view'],_0x389e85]);}return _0xa22bd3;}),this['listenTo'](_0x515ca0,'change:activeAnnotations',(_0x1db61b,_0xa66016,_0x248693)=>{const _0x399d3d=Array['from'](_0x248693)['map'](_0xe91b01=>_0xe91b01['innerView'])['find'](_0x26dad1=>_0x27f5cf['_viewToController']['has'](_0x26dad1));if(!_0x399d3d)return void(_0x1dc960['activeMarker']=null);const _0x19aaab=_0x27f5cf['_viewToController']['get'](_0x399d3d)['model']['id'],_0x577e38='comment:'+_0x19aaab;_0x19aaab&&_0x1dc960['hasMarkerForId'](_0x19aaab)?_0x1dc960['activeMarker']=_0x577e38:_0x1dc960['activeMarker']&&(_0x1dc960['activeMarker']=null);}),this['listenTo'](_0x27f5cf,'removeCommentThread',(_0x30c57b,{threadId:_0x588ddf,isFromAdapter:_0x481e49})=>{!_0x481e49&&_0x565614['ui']['focusTracker']['isFocused']&&_0x1dc960['hasMarkerForId'](_0x588ddf)&&_0x565614['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x27f5cf,'addComment',(_0x41ef47,{threadId:_0x27c7ba,isFromAdapter:_0x6c879d})=>{if(_0x6c879d||!_0x1dc960['hasMarkerForId'](_0x27c7ba)||!_0x27f5cf['hasCommentThread'](_0x27c7ba))return;0x1===_0x27f5cf['getCommentThread'](_0x27c7ba)['length']&&(_0x565614['editing']['view']['focus'](),_0x41ef47['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a178d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10bf34;for(const _0x4a1c97 in _0x5a178d){const _0x138191=_0x4a1c97,_0x10d75a=_0x5a178d[_0x138191];if('commentsLicenseKeyValid'==_0x10d75a||'commentsLicenseKeyInvalid'==_0x10d75a||'commentsLicenseKeyExpired'==_0x10d75a||'commentsLicenseKeyDomainLimit'==_0x10d75a||'commentsLicenseKeyNotAllowed'==_0x10d75a||'commentsLicenseKeyEvaluationLimit'==_0x10d75a||'commentsLicenseKeyTrialLimit'==_0x10d75a||'commentsLicenseKeyDevelopmentLimit'==_0x10d75a||'commentsLicenseKeyUsageLimit'==_0x10d75a){delete _0x5a178d[_0x138191],_0x10bf34=_0x10d75a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x10bf34&&_0x5a178d['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x10bf34&&_0x5a178d['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x10bf34&&_0x5a178d['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x10bf34&&_0x5a178d['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x10bf34&&_0x5a178d['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x10bf34&&_0x5a178d['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x10bf34&&_0x5a178d['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x10bf34&&_0x5a178d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x424902){const _0x36e2e9=this['editor'],_0x46e1e2=new _0x424902(_0x36e2e9['locale']),_0x354274=_0x36e2e9['commands']['get']('addCommentThread');return _0x46e1e2['set']({'label':S(_0x36e2e9['locale'],'Comment'),'icon':xt}),_0x46e1e2['bind']('isEnabled')['to'](_0x354274),this['listenTo'](_0x46e1e2,'execute',()=>_0x354274['execute']()),_0x46e1e2;}}class s extends _0x3ad107{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5ed9ca){super(_0x5ed9ca),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x540178,_0x223a1d,_0x3c2624)=>{_0x3c2624?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x3057c3,_0x32acbb]of this['editor']['commands'])_0x32acbb['affectsData']&&'addCommentThread'!==_0x3057c3&&_0x32acbb['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x3daf66=this['editor']['editing']['view']['document'];this['listenTo'](_0x3daf66,'cut',_0x49b4cc=>_0x49b4cc['stop'](),{'priority':'highest'}),this['listenTo'](_0x3daf66,'clipboardInput',_0x428bfb=>_0x428bfb['stop'](),{'priority':'highest'}),this['listenTo'](_0x3daf66,'delete',_0x261c3a=>_0x261c3a['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x580cf3,_0x5a12f3]of this['editor']['commands'])_0x5a12f3['affectsData']&&'addCommentThread'!==_0x580cf3&&_0x5a12f3['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x16e53b{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4311a6){super(_0x4311a6),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x5c5e9e=this['context']['plugins']['get'](N);this['listenTo'](_0x5c5e9e,'_activateAnnotation',(_0x5634f2,_0x1102ce)=>{for(const _0xbed56 of this['activeUIs']){const _0x61a80f=this['_uis']['get'](_0xbed56);(0x0,this['_uisData']['get'](_0xbed56)['filter'])(_0x1102ce)&&_0x61a80f['setActiveAnnotation'](_0x1102ce);}}),this['listenTo'](_0x5c5e9e,'_deactivateAllAnnotations',()=>{for(const _0x5b42d3 of this['activeUIs']){this['_uis']['get'](_0x5b42d3)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5c5e9e['_visibleAnnotations'],'add',(_0x842f03,_0x20bf68)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x20bf68);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x2f8d7d){return this['activeUIs']['has'](_0x2f8d7d);}['activate'](_0x16e702,_0x50d4d6=()=>!0x0){const _0x382165=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x16e702))throw new _0x28afa1('annotationsuis-missing-ui',this,{'uiName':_0x16e702});this['isActive'](_0x16e702)&&this['deactivate'](_0x16e702),this['activeUIs']['add'](_0x16e702);const _0x47a151=new x();!function({source:_0x47ccb6,target:_0x47cbbf,filter:_0x55af62}){for(const _0x161b23 of _0x47ccb6)_0x55af62(_0x161b23)&&_0x47cbbf['add'](_0x161b23);_0x47cbbf['listenTo'](_0x47ccb6,'add',(_0x26b3cb,_0x404aa8)=>{_0x55af62(_0x404aa8)&&_0x47cbbf['add'](_0x404aa8);}),_0x47cbbf['listenTo'](_0x47ccb6,'remove',(_0x37063a,_0x4eaec5)=>{_0x47cbbf['has'](_0x4eaec5)&&_0x47cbbf['remove'](_0x4eaec5);});}({'source':_0x382165['_visibleAnnotations'],'target':_0x47a151,'filter':_0x50d4d6}),this['_uisData']['set'](_0x16e702,{'collection':_0x47a151,'filter':_0x50d4d6});const _0x46f0c4=this['_uis']['get'](_0x16e702);_0x46f0c4['attach'](_0x47a151),this['listenTo'](_0x46f0c4,'change:activeAnnotation',(_0x10e932,_0x180db7,_0xa2c7f6,_0x3bd62a)=>{_0x3bd62a&&_0x382165['_removeActiveAnnotation'](_0x3bd62a),_0xa2c7f6&&_0x382165['_addActiveAnnotation'](_0xa2c7f6);});}['deactivate'](_0x345fdf){if(this['activeUIs']['delete'](_0x345fdf),!this['_uis']['has'](_0x345fdf))throw new _0x28afa1('annotationsuis-missing-ui',this,{'uiName':_0x345fdf});const _0xc66047=this['_uis']['get'](_0x345fdf);_0xc66047['detach'](),this['stopListening'](_0xc66047),this['_uisData']['get'](_0x345fdf)['collection']['destroy'](),this['_uisData']['delete'](_0x345fdf);}['switchTo'](_0x50c531){if(!this['_uis']['has'](_0x50c531))throw new _0x28afa1('annotationsuis-missing-ui',this,{'uiName':_0x50c531});const _0x48657a=this['context']['plugins']['get'](N),_0xb7c719=Array['from'](_0x48657a['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x50c531);const _0x24931f=this['_uis']['get'](_0x50c531);_0x24931f['setActiveAnnotation'](_0xb7c719),_0x24931f['_setSelectedAnnotations']&&_0xb7c719&&_0x24931f['_setSelectedAnnotations']([_0xb7c719]);}['deactivateAll'](){for(const _0x412f59 of this['activeUIs'])this['deactivate'](_0x412f59);}['register'](_0xfa2fd2,_0x38edb2){if(this['_uis']['has'](_0xfa2fd2))throw new _0x28afa1('annotationsuis-register-already-registered');if('function'!=typeof _0x38edb2['attach']||'function'!=typeof _0x38edb2['detach']||'function'!=typeof _0x38edb2['setActiveAnnotation'])throw new _0x28afa1('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0xfa2fd2,_0x38edb2);}['refilterAnnotations'](){const _0x5ebde4=this['context']['plugins']['get'](N)['collection'],_0x1e5a16=new Map(),_0x441b68=Array['from'](this['activeUIs']);for(const _0x21b436 of this['activeUIs']){const _0x4a426a=this['_uisData']['get'](_0x21b436)['collection'];for(const _0x1d5b91 of _0x4a426a)_0x1e5a16['set'](_0x1d5b91,_0x21b436);}for(const _0x58f914 of _0x5ebde4){const _0x444bfd=_0x1e5a16['get'](_0x58f914);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x58f914);const _0x2f273d=_0x441b68['find'](_0x17e518=>this['_uisData']['get'](_0x17e518)['filter'](_0x58f914));_0x444bfd!==_0x2f273d&&(_0x444bfd&&this['_uisData']['get'](_0x444bfd)['collection']['remove'](_0x58f914),_0x2f273d&&this['_uisData']['get'](_0x2f273d)['collection']['add'](_0x58f914));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x21035f){const _0x74367b=[];for(const _0x180fa1 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x180fa1)['filter'])(_0x21035f)&&_0x74367b['push'](_0x180fa1);}if(_0x74367b['length']>0x1)throw new _0x28afa1('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x74367b,'annotationType':_0x21035f['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x3a087f){super(_0x3a087f);const _0x4a9401=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 _0x1c4a76(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4a9401['to']('class')],'style':{'minHeight':_0x4a9401['to']('minHeight',_0x23ca62=>'number'==typeof _0x23ca62?ae(_0x23ca62+0xa):null)},'dir':_0x3a087f['uiLanguageDirection'],'role':'application','aria-label':S(_0x3a087f,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x3a087f,'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',_0x32e6dd=>{this['_updateItemPositionInFocusables'](_0x32e6dd['source']);}),this['list']['forEach'](_0x40ed0f=>{this['focusTracker']['add'](_0x40ed0f['element']),this['_updateItemPositionInFocusables'](_0x40ed0f);}),this['list']['on']('change',(_0x57b4ee,_0xeef3c8)=>{for(const _0x527124 of _0xeef3c8['removed'])this['focusTracker']['remove'](_0x527124['element']),this['focusables']['remove'](_0x527124);for(const _0x5f095e of _0xeef3c8['added'])this['focusTracker']['add'](_0x5f095e['element']),this['_updateItemPositionInFocusables'](_0x5f095e);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x385261){const _0x11fb12=this['focusables']['getIndex'](_0x385261);let _0x2844f6,_0x3b850d;for(const _0x3903b8 of this['focusables'])if(_0x385261['top']<_0x3903b8['top']){_0x2844f6=_0x3903b8;break;}if(_0x3b850d=_0x2844f6?this['focusables']['getIndex'](_0x2844f6):this['focusables']['length'],-0x1!==_0x11fb12){if(_0x11fb12===_0x3b850d-0x1)return;this['focusables']['remove'](_0x385261),_0x3b850d=_0x2844f6?this['focusables']['getIndex'](_0x2844f6):this['focusables']['length'];}this['focusables']['add'](_0x385261,_0x3b850d);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x147b5c){super(_0x147b5c),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x408235,_0x30f4cc)=>_0x408235+_0x30f4cc),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x2b164b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x2b164b['to']('isAnimationDisabled',_0x38713f=>_0x38713f?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x2b164b['to']('top',_0x5d4eea=>qt(_0x5d4eea))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x4d8628=this['element']['clientHeight'];_0x4d8628&&(this['height']=_0x4d8628);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x16e53b{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12ad34){super(_0x12ad34),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 _0x56f739=this['context']['config']['get']('sidebar.container');_0x56f739&&this['setContainer'](_0x56f739);}['setContainer'](_0x10afa0){if(!y(_0x10afa0))throw new _0x28afa1('sidebar-setcontainer-invalid-element');this['container']=_0x10afa0;}['_attachToContainer']({viewClass:_0x23792d='',spaceBetweenItems:_0x5a48e4=0x19}={}){if(!y(this['container']))throw new _0x28afa1('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x23792d,this['_spaceBetweenItems']=_0x5a48e4;}['rearrange']({removedAnnotation:_0x586713,previousAnnotation:_0x4fd79c,nextAnnotation:_0x3a48a0}){const _0x2f7007=this['getSidebarItemView'](_0x586713);this['view']['list']['remove'](_0x2f7007),this['_destroySidebarItemView'](_0x586713),_0x4fd79c&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4fd79c)),_0x3a48a0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3a48a0)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1bfb3d,activatedAnnotation:_0x8a7134,disableAnimationOnActivatedAnnotation:_0x545de0}){if(this['_activeAnnotation']=_0x8a7134,_0x1bfb3d){_0x1bfb3d['isActive']=!0x1;const _0x3d25fd=this['getSidebarItemView'](_0x1bfb3d);_0x3d25fd&&_0x545de0&&(_0x3d25fd['isAnimationDisabled']=!0x1);}if(_0x8a7134){const _0xd5f6d3=this['getSidebarItemView'](_0x8a7134);_0xd5f6d3&&(_0x8a7134['isActive']=!0x0,_0x545de0&&(_0xd5f6d3['isAnimationDisabled']=!0x0,_0xd5f6d3['top']+=0x1),this['_alignToTargetRect'](_0xd5f6d3));}}['_detachFromContainer'](_0x1af6e2){if(this['view']['element']['remove'](),_0x1af6e2){for(const _0x13a613 of _0x1af6e2)this['_destroySidebarItemView'](_0x13a613);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x385340,_0x10f712){_0x10f712||(_0x10f712=_0x385340['view']);const _0x799376=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x799376,_0x385340),this['_annotationToSidebarItemView']['set'](_0x385340,_0x799376),_0x799376['content']['add'](_0x10f712),this['listenTo'](_0x385340['view'],'change:targetRect',(_0x434f42,_0x200aaa,_0x1f9d7c)=>{const _0x213a84=this['_getTargetTop'](_0x385340,_0x1f9d7c);_0x799376['_targetTop']!=_0x213a84&&(_0x799376['_targetTop']=_0x213a84,this['_setItemTop'](_0x799376,_0x213a84));}),this['listenTo'](_0x799376,'change:top',()=>{this['_recalculate'](_0x799376,'top');}),this['listenTo'](_0x799376,'change:bottom',()=>{this['_recalculate'](_0x799376,'bottom');}),this['_alignToTargetRect'](_0x799376);const _0x29ddbf=this['_getItemBefore'](_0x799376);if(_0x29ddbf)this['_alignAfterItem'](_0x29ddbf,_0x799376)||this['_alignToTargetRect'](_0x799376);else this['_alignToTargetRect'](_0x799376);return this['_updateLastItem'](),this['view']['list']['add'](_0x799376),_0x799376;}['_alignForTopChange'](_0x4e4627){if(!_0x4e4627['content']['length'])return;const _0x38319c=this['_getItemBefore'](_0x4e4627);if(!_0x38319c)return;const _0x1f4c51=this['_sidebarItemViewToAnnotation']['get'](_0x38319c),_0x551415=this['_activeAnnotation'];_0x551415&&_0x551415===_0x1f4c51?this['_alignAfterItem'](_0x38319c,_0x4e4627):this['_alignBeforeItem'](_0x4e4627,_0x38319c);}['_alignForBottomChange'](_0x329f88){if(!_0x329f88['content']['length'])return;const _0x3f0026=this['_getItemAfter'](_0x329f88);if(!_0x3f0026)return;const _0x2fecbc=this['_sidebarItemViewToAnnotation']['get'](_0x3f0026),_0x1ae164=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x48dd47=this['_activeAnnotation'];_0x48dd47&&_0x48dd47===_0x2fecbc&&_0x1ae164?(this['_alignBeforeItem'](_0x3f0026,_0x329f88),this['_alignAfterItem'](_0x329f88,_0x3f0026)):_0x48dd47&&_0x48dd47===_0x2fecbc?this['_alignBeforeItem'](_0x3f0026,_0x329f88):this['_alignAfterItem'](_0x329f88,_0x3f0026);}['_recalculate'](_0xd177db,_0x5eeee0){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3b1e5b,changedProp:_0x14d228}of this['_recalculateBuffer'])'top'===_0x14d228?this['_alignForTopChange'](_0x3b1e5b):this['_alignForBottomChange'](_0x3b1e5b);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xd177db,'changedProp':_0x5eeee0});}['getSidebarItemView'](_0x417013){return this['_annotationToSidebarItemView']['get'](_0x417013);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4c963b){const _0x38b0d8=this['getSidebarItemView'](_0x4c963b);this['stopListening'](_0x38b0d8),this['stopListening'](_0x4c963b['view']),_0x38b0d8['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4c963b),this['_sidebarItemViewToAnnotation']['delete'](_0x38b0d8);}['_createSidebarView'](){const _0x5e6060=new V(this['context']['locale']);return _0x5e6060['render'](),this['on']('change:_lastItem',(_0x178f87,_0x107a1e,_0x47fb49,_0x4021fc)=>{_0x4021fc&&_0x5e6060['unbind']('minHeight'),_0x47fb49?_0x5e6060['bind']('minHeight')['to'](_0x47fb49,'bottom'):_0x5e6060['minHeight']=null;}),_0x5e6060;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x19319e){const _0x5eabd8=this['_sidebarItemViewToAnnotation']['get'](_0x19319e),_0x24a46f=_0x5eabd8&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5eabd8)-0x1);return _0x24a46f&&this['getSidebarItemView'](_0x24a46f)||null;}['_getItemAfter'](_0x2ab88a){const _0x4f295a=this['_sidebarItemViewToAnnotation']['get'](_0x2ab88a),_0x13b153=_0x4f295a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4f295a)+0x1);return _0x13b153&&this['getSidebarItemView'](_0x13b153)||null;}['_alignBeforeItem'](_0xafb5f4,_0xa4b38e){_0xafb5f4['updateHeight']();const _0x35e676=R(_0xa4b38e['bottom']+this['_spaceBetweenItems'],_0xafb5f4['top']);return!!_0x35e676&&(this['_setItemTop'](_0xa4b38e,_0xa4b38e['top']-_0x35e676),!0x0);}['_alignAfterItem'](_0x466e62,_0x4a8d4d){_0x466e62['updateHeight']();const _0x4f95e7=R(_0x466e62['bottom']+this['_spaceBetweenItems'],_0x4a8d4d['top']);return!!_0x4f95e7&&(this['_setItemTop'](_0x4a8d4d,_0x4a8d4d['top']+_0x4f95e7,!0x1),!0x0);}['_alignToTargetRect'](_0x521d3f){const _0x2bafed=this['_sidebarItemViewToAnnotation']['get'](_0x521d3f);if(!_0x2bafed||!_0x2bafed['target']||!_0x2bafed['targetRect'])return;const _0x37c6c3=this['_getTargetTop'](_0x2bafed,_0x2bafed['targetRect']);this['_setItemTop'](_0x521d3f,_0x37c6c3);}['_getTargetTop'](_0x3964fb,_0x55c91b){if(null===_0x55c91b)return 0x0;if(_0x3964fb['target']instanceof _0x2aa486)return _0x55c91b['top'];{const _0xe5ffe7=new _0x2aa486(this['view']['element'])['top'];return _0x55c91b['top']-_0xe5ffe7;}}['_setItemTop'](_0x4b9f17,_0x38e211,_0x59f82f=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x59f82f&&(_0x38e211=Math['max'](_0x38e211,this['_getMaxAvailableTop'](_0x4b9f17))),_0x4b9f17['top']=_0x38e211;}['_getMaxAvailableTop'](_0x3d890a){let _0x250189=this['_getItemBefore'](_0x3d890a),_0x55dd4e=0x0;for(;_0x250189;)_0x250189['updateHeight'](),_0x55dd4e+=this['_spaceBetweenItems']+_0x250189['height'],_0x250189=this['_getItemBefore'](_0x250189);return _0x55dd4e;}}function R(_0x154c33,_0x300f92){return Math['max'](_0x154c33-_0x300f92,0x0);}function y(_0x323265){return null!==_0x323265&&'object'==typeof _0x323265&&0x1===_0x323265['nodeType'];}class e extends _0x16e53b{['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(_0x51c27c){super(_0x51c27c),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x18e518(),this['_refreshPositioningDebounced']=_0x19d056(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x492924=this['context']['plugins']['get'](M),_0x3820f7=this['context']['plugins']['get'](z);_0x492924['register']('wideSidebar',this),_0x3820f7['container']&&_0x492924['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x2e35cd){if(_0x2e35cd===this['activeAnnotation'])return;const _0x383447=this['context']['plugins']['get'](z);_0x383447['_activeAnnotation']=_0x2e35cd;const _0x4420f8=this['activeAnnotation'];this['activeAnnotation']=_0x2e35cd,_0x383447['refresh']({'blurredAnnotation':_0x4420f8,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x540f9d){this['annotations']=_0x540f9d;const _0x55a7cb=this['context']['plugins']['get'](z);if(_0x55a7cb['_annotations']=_0x540f9d,this['isAttached'])throw new _0x28afa1('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x55a7cb,'set:container',()=>{this['detach'](),this['listenTo'](_0x55a7cb,'change:container',_0x1c2b57=>{_0x1c2b57['off'](),this['attach'](_0x540f9d);});}),_0x55a7cb['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x190de3=_0x5489ab=>{_0x5489ab['updateTargetRect'](),_0x55a7cb['addAnnotation'](_0x5489ab);};for(const _0x4d8d73 of _0x540f9d)_0x190de3(_0x4d8d73);this['listenTo'](_0x540f9d,'add',(_0x1706f3,_0x5eda4b)=>{_0x190de3(_0x5eda4b);}),this['listenTo'](_0x540f9d,'remove',(_0x59853f,_0x72b3ad,_0x1a8225)=>{_0x55a7cb['rearrange']({'removedAnnotation':_0x72b3ad,'previousAnnotation':_0x540f9d['get'](_0x1a8225-0x1),'nextAnnotation':_0x540f9d['get'](_0x1a8225+0x1)}),_0x72b3ad===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x540f9d,'focus',(_0x497083,_0x2eab93)=>{this['setActiveAnnotation'](_0x2eab93);}),this['listenTo'](_0x540f9d,'blur',()=>{this['setActiveAnnotation'](null);});const _0x561cbe=this['context']instanceof _0x1003f6?this['context']['editors']:new _0x18e518([this['context']]);for(const _0xcbf7b5 of _0x561cbe)this['_integrateWithEditorAnnotations'](_0xcbf7b5);this['listenTo'](_0x561cbe,'add',(_0x1b844d,_0x21e95d)=>{this['listenTo'](_0x21e95d,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x21e95d);});}),this['listenTo'](_0x561cbe,'remove',(_0x29fb13,_0x5f48e5)=>{_0x5f48e5['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5f48e5['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x28afa1('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4e8dcb=this['context']['plugins']['get'](z);_0x4e8dcb['_detachFromContainer'](this['annotations']),this['stopListening'](_0x4e8dcb),this['stopListening'](this['annotations']),this['context']instanceof _0x1003f6&&this['stopListening'](this['context']['editors']);for(const _0x5acddd of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5acddd);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3a3613){if(!_0x3a3613['plugins']['has']('EditorAnnotations'))return;const _0x3bf7e5=_0x3a3613['plugins']['get']('EditorAnnotations'),_0x496309=()=>{const _0x415df1=_0x3bf7e5['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x415df1[0x0]||null);};this['listenTo'](_0x3bf7e5,'refresh',_0x496309),this['listenTo'](_0x3bf7e5,'blur',(_0x4254e8,{isAnnotationTracked:_0x437f92})=>{this['activeAnnotation']&&_0x437f92(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3bf7e5,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x1c16cd=>{_0x3bf7e5['hasDomSelection']()&&(_0x496309(),_0x1c16cd['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3bf7e5);}['_destroyEditorAnnotationsIntegration'](_0x593ab0){this['stopListening'](_0x593ab0),this['_editorAnnotations']['remove'](_0x593ab0);}}class D extends _0x439fde{['counterView'];constructor(_0x29b616){super(_0x29b616);const _0x5c7f03=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x41fba6,_0xe58b73)=>_0x41fba6?'...':_0xe58b73['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',_0x5c7f03['to']('annotationType',_0x2c85e1=>'ck-annotation-counter__badge--'+_0x2c85e1),_0x5c7f03['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5c7f03['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x16e53b{['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(_0x506e7b){super(_0x506e7b),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x1a3030),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x18e518(),this['_refreshPositioningDebounced']=_0x19d056(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x50b099(this['context']['locale']),this['balloonPanelView']=new _0x5f2252(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x20cb91){this['annotations']=_0x20cb91;const _0x389e7b=this['context']['plugins']['get'](z),_0x128fde=this['balloonPanelView'];if(_0x389e7b['_annotations']=_0x20cb91,this['isAttached'])throw new _0x28afa1('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x389e7b,'set:container',()=>{this['detach'](),this['listenTo'](_0x389e7b,'change:container',_0x2f1057=>{_0x2f1057['off'](),this['attach'](_0x20cb91);});}),_0x389e7b['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3e3534=_0x1fda64=>{const _0x33f742=new D(this['context']['locale']);_0x389e7b['addAnnotation'](_0x1fda64,_0x33f742),this['_annotationToNarrowView']['set'](_0x1fda64,_0x33f742),_0x33f742['bind']('isDirty','annotationType','number')['to'](_0x1fda64['view'],'isDirty','type','length'),_0x33f742['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x128fde['content']['first']!==_0x1fda64['view']?(this['_showBalloon'](_0x1fda64),_0x1fda64['view']['element']['focus'](),this['setActiveAnnotation'](_0x1fda64)):this['setActiveAnnotation'](null);});};for(const _0x247cee of _0x20cb91)_0x3e3534(_0x247cee);this['listenTo'](_0x20cb91,'add',(_0x55dc13,_0x20e4f1)=>{_0x3e3534(_0x20e4f1);}),this['listenTo'](_0x20cb91,'remove',(_0x128455,_0x2c734e,_0x10e7e6)=>{this['_annotationToNarrowView']['get'](_0x2c734e)['destroy'](),this['_annotationToNarrowView']['delete'](_0x2c734e),_0x389e7b['rearrange']({'removedAnnotation':_0x2c734e,'previousAnnotation':_0x20cb91['get'](_0x10e7e6-0x1),'nextAnnotation':_0x20cb91['get'](_0x10e7e6+0x1)}),_0x2c734e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x20cb91,'focus',(_0x230ddc,_0x3f1cd6)=>{this['setActiveAnnotation'](_0x3f1cd6);}),this['listenTo'](_0x20cb91,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x49a4ae,_0x1e76a9)=>{_0x1e76a9['keyCode']===_0x5d46ec['esc']&&_0x128fde['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x128fde['content']['first']),this['_hideBalloon'](),_0x1e76a9['stopPropagation'](),_0x1e76a9['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3cd402,_0x4cee84)=>{const _0x28e7da=_0x4cee84['target'];_0x128fde['isVisible']&&_0x128fde['element']['contains'](_0x28e7da)||_0x389e7b['view']['element']['contains'](_0x28e7da)||_0x3cd402['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0xbd44ea=>_0xbd44ea['contains'](_0x28e7da))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x25f38f=this['context']instanceof _0x1003f6?this['context']['editors']:new _0x18e518([this['context']]);for(const _0x3cc2fe of _0x25f38f)this['_integrateWithEditorAnnotations'](_0x3cc2fe);this['listenTo'](_0x25f38f,'add',(_0x1d6f57,_0x458fac)=>{this['listenTo'](_0x458fac,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x458fac);});}),this['listenTo'](_0x25f38f,'remove',(_0x7c1668,_0x1c3a1c)=>{_0x1c3a1c['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1c3a1c['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2570f2){if(_0x2570f2===this['activeAnnotation'])return;const _0x39de73=this['context']['plugins']['get'](z);if(_0x39de73['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2570f2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2570f2)_0x39de73['getSidebarItemView'](_0x2570f2)?this['_showBalloon'](_0x2570f2):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2570f2;}['detach'](){if(!this['isAttached'])throw new _0x28afa1('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5deef4=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x332be6=>_0x332be6['destroy']()),this['_annotationToNarrowView']['clear'](),_0x5deef4['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x1003f6&&this['stopListening'](this['context']['editors']);for(const _0x1fcb51 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1fcb51);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'](_0x2c3d1a){if(!_0x2c3d1a['plugins']['has']('EditorAnnotations'))return;const _0x24bbec=_0x2c3d1a['plugins']['get']('EditorAnnotations'),_0x496a04=this['context']['plugins']['get'](z),_0x34c1ba=this['annotations'],_0xfb265e=this['balloonPanelView'],_0x3a7e16=()=>{const _0x4b97ee=_0x24bbec['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4b97ee),this['setActiveAnnotation'](_0x4b97ee[0x0]||null);};this['listenTo'](_0x24bbec,'refresh',_0x3a7e16),this['listenTo'](_0x24bbec,'blur',(_0x54b555,{isAnnotationTracked:_0x546ec7})=>{this['activeAnnotation']&&_0x546ec7(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x24bbec,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x34c1ba,'blur',_0x5dfd80=>{_0x24bbec['hasDomSelection']()&&_0x5dfd80['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x594d72,_0x2e6e67)=>{const _0x3ef5a4=_0x2e6e67['target'];_0xfb265e['isVisible']&&_0xfb265e['element']['contains'](_0x3ef5a4)||_0x496a04['view']['element']['contains'](_0x3ef5a4)||this['activeAnnotation']&&_0x24bbec['hasDomSelection']()&&(_0x3a7e16(),_0x594d72['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x24bbec);}['_destroyEditorAnnotationsIntegration'](_0x4613dd){_0x4613dd&&(this['stopListening'](_0x4613dd),this['_editorAnnotations']['remove'](_0x4613dd));}['_setSelectedAnnotations'](_0xfb52b8){for(const _0x21fdce of this['_selectedAnnotations'])_0xfb52b8['includes'](_0x21fdce)||this['_manuallyClosedAnnotationViews']['delete'](_0x21fdce['view']);this['_selectedAnnotations']=_0xfb52b8;}['_refreshPositioning'](){const _0x2039ea=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2039ea['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4a9b20){if(this['_manuallyClosedAnnotationViews']['has'](_0x4a9b20['view']))return;const _0x59901f=this['balloonPanelView']['content']['first'];_0x59901f!==_0x4a9b20['view']?(_0x59901f&&this['_detachListeners'](_0x59901f),this['_attachListeners'](_0x4a9b20['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4a9b20['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4be871=this['balloonPanelView']['content']['first'],_0x461b7d=_0x4be871&&this['annotations']['getByView'](_0x4be871);if(!_0x461b7d||!this['_annotationToNarrowView']['has'](_0x461b7d))return;const _0x4c60a3=this['_annotationToNarrowView']['get'](_0x461b7d)['element'],_0x30a119=(function(){const _0x2b5bca=_0x5f2252['defaultPositions'];return[_0x2b5bca['southArrowNorthEast'],_0x2b5bca['northArrowSouthEast'],_0x2b5bca['southArrowNorth'],_0x2b5bca['northArrowSouth'],_0x2b5bca['southArrowNorthWest'],_0x2b5bca['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x4c60a3,'positions':_0x30a119});}['_hideBalloon'](){const _0x57ba87=this['balloonPanelView'],_0x4f0b3d=_0x57ba87['content']['first'];_0x4f0b3d&&(this['_detachListeners'](_0x4f0b3d),_0x57ba87['unpin'](),_0x57ba87['content']['clear']());}['_attachListeners'](_0x223926){this['listenTo'](_0x223926,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x223926,'Esc',(_0xf1152,_0x4c2b8f)=>{this['_manuallyClosedAnnotationViews']['add'](_0x223926),this['_hideBalloon'](),_0x4c2b8f();});}['_detachListeners'](_0x309e5b){this['stopListening'](_0x309e5b);}}class c extends _0x3ad107{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x31b1b3,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39c497){super(_0x39c497),_0x39c497['editing']['view']['addObserver'](_0x4d457c),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x39c497['plugins']['get'](_0x31b1b3),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x44eec7=this['editor']['plugins']['get'](M);_0x44eec7['context']===this['editor']&&(_0x44eec7['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x3be99f,_0x420f8f)=>{const _0x2fa699=this['_balloon'];if(this['isAttached']&&_0x2fa699['visibleView']){const _0x19e85a=this['annotations']['getByView'](_0x2fa699['visibleView']);_0x19e85a&&this['_closeAnnotation'](_0x19e85a),_0x420f8f();}}));}['afterInit'](){const _0x845739=this['editor']['plugins']['get'](M);_0x845739['context']===this['editor']&&(_0x845739['hasActive']()||_0x845739['switchTo']('inline'));}['setActiveAnnotation'](_0x1625c1){_0x1625c1!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1625c1&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1625c1)&&this['_addAnnotationToBalloon'](_0x1625c1,!0x0),_0x1625c1['isActive']=!0x0),_0x1625c1||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1625c1);}['attach'](_0x3cddd7){this['annotations']=_0x3cddd7;const _0x283a7e=this['editor']['plugins']['get'](M),_0x6a1833=this['_balloon'];if(this['isAttached'])throw new _0x28afa1('inlineannotations-attach-already-attached',this);if(_0x283a7e['context']!==this['editor'])throw new _0x28afa1('inlineannotations-not-allowed-with-context',this);const _0x1cc908=this['editor']['plugins']['get'](P);this['listenTo'](_0x1cc908,'refresh',()=>{const _0x199eb0=_0x1cc908['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x3e300a,_0x55ede9;!this['_forceRefresh']&&(_0x3e300a=_0x199eb0,_0x55ede9=this['_selectedAnnotations'],_0x3e300a['length']===_0x55ede9['length']&&_0x3e300a['every'](_0x58c37a=>_0x55ede9['includes'](_0x58c37a)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x199eb0),this['setActiveAnnotation'](_0x199eb0[0x0]||null));}),this['listenTo'](_0x1cc908,'blur',(_0x1f68cb,{isAnnotationTracked:_0x1facd6})=>{this['activeAnnotation']&&_0x1facd6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1460f4,_0x698e1e,_0x3bb71e)=>{_0x3bb71e||this['setActiveAnnotation'](null);}),this['listenTo'](_0x3cddd7,'remove',(_0x2a1a20,_0x565c84)=>{this['_removeAnnotationFromBalloon'](_0x565c84),_0x565c84===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x6a1833,'change:visibleView',(_0x262b12,_0x278bed,_0x4aa609,_0x531a6e)=>{_0x531a6e&&this['stopListening'](_0x531a6e);const _0x184b77=_0x3cddd7['getByView'](_0x4aa609);_0x4aa609&&_0x184b77&&(this['listenTo'](_0x4aa609,'change:height',()=>{_0x6a1833['updatePosition']();}),this['listenTo'](_0x4aa609,'Esc',()=>{this['_closeAnnotation'](_0x184b77),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x184b77&&this['setActiveAnnotation'](_0x184b77));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x6a1833['visibleView']&&(_0x3cddd7['getByView'](_0x6a1833['visibleView'])&&_0x6a1833['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 _0x28afa1('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x5bd384 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x5bd384);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x1d8d4b){for(const _0x856592 of this['_selectedAnnotations'])_0x1d8d4b['includes'](_0x856592)||this['_manuallyClosed']['delete'](_0x856592);for(const _0x3fe108 of this['annotations'])_0x1d8d4b['includes'](_0x3fe108)||this['_removeAnnotationFromBalloon'](_0x3fe108);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x16f5fc of _0x1d8d4b)this['_addAnnotationToBalloon'](_0x16f5fc);}this['_selectedAnnotations']=_0x1d8d4b;}['_addAnnotationToBalloon'](_0x4eb858,_0x570753=!0x1){this['_manuallyClosed']['has'](_0x4eb858)||(this['_addedAnnotations']['has'](_0x4eb858)||this['_balloon']['hasView'](_0x4eb858['view'])||(this['_addedAnnotations']['add'](_0x4eb858),this['_balloon']['add']({'stackId':_0x4eb858['view']['id'],'view':_0x4eb858['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x4eb858)}})),_0x570753&&this['_balloon']['showStack'](_0x4eb858['view']['id']));}['_getBalloonTargetForAnnotation'](_0x486361){const _0x8c817f=_0x486361['target'],_0x58ff7d=this['editor']['editing']['view'],_0x4f9509=_0x58ff7d['document']['selection']['getFirstRange'](),_0x4667d5=_0x58ff7d['domConverter']['viewRangeToDom'](_0x4f9509);if(_0x4667d5['collapse'](!0x0),_0x8c817f){if(_0x8c817f instanceof _0x2aa486)return _0x8c817f;let _0x3fd231=[];for(const _0x42b53c of _0x8c817f)_0x3fd231['push'](...(_0x1349c9=_0x42b53c['getClientRects'](),Array['from'](_0x1349c9)['map'](DOMRect['fromRect'])));_0x3fd231=function(_0x1438cf){const _0x10d3bd=[];let _0x169948=_0x1438cf[0x0];for(let _0x1e1db3=0x1;_0x1e1db3<_0x1438cf['length'];_0x1e1db3++)b(_0x169948,_0x1438cf[_0x1e1db3])?_0x169948['width']+=_0x1438cf[_0x1e1db3]['width']:(_0x10d3bd['push'](_0x169948),_0x169948=_0x1438cf[_0x1e1db3]);return _0x10d3bd['push'](_0x169948),_0x10d3bd;}(_0x3fd231);const _0x3770a8=_0x4667d5['getBoundingClientRect']();return _0x3fd231['find'](_0x59d814=>_0x59d814['top']<=_0x3770a8['top']&&_0x59d814['bottom']>=_0x3770a8['bottom']&&_0x59d814['left']<=_0x3770a8['left']&&_0x59d814['right']>=_0x3770a8['right'])||_0x3fd231[0x0];}var _0x1349c9;return _0x486361['targetRect']||_0x4667d5;}['_removeAnnotationFromBalloon'](_0x6a0e53){this['_addedAnnotations']['has'](_0x6a0e53)&&this['_balloon']['hasView'](_0x6a0e53['view'])&&(this['_addedAnnotations']['delete'](_0x6a0e53),this['_balloon']['remove'](_0x6a0e53['view']));}['_closeAnnotation'](_0x192198){this['_manuallyClosed']['add'](_0x192198),this['_removeAnnotationFromBalloon'](_0x192198);}}function b(_0x19984f,_0x3f83df){return _0x19984f['top']===_0x3f83df['top']&&_0x19984f['bottom']===_0x3f83df['bottom']&&_0x19984f['right']===_0x3f83df['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-2024,\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(_0x48d138,_0xba1b4b){super(_0x48d138),this['set']('isEmpty',!_0xba1b4b['length']),this['focusTracker']=new _0x1c4a76(),this['_annotationViews']=_0xba1b4b,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0xba1b4b,'focusTracker':this['focusTracker']}),this['listenTo'](_0xba1b4b,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xba1b4b,'remove',(_0x4a9d94,_0x21038b)=>{_0x21038b['isActive']&&this['focus'](),_0xba1b4b['length']||(this['isEmpty']=!0x0);});const _0x66e9cc=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x48d138,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0xba1b4b},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x66e9cc['if']('isEmpty','ck-hidden',_0x1fe9fb=>!_0x1fe9fb)]},'children':[{'text':S(_0x48d138,'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 _0x55611b of this['_annotationViews'])this['focusTracker']['add'](_0x55611b['element']);this['_annotationViews']['on']('change',(_0x1ae3d8,{added:_0x346b09,removed:_0x1c5b88})=>{for(const _0x311b58 of _0x346b09)this['focusTracker']['add'](_0x311b58['element']);for(const _0x5ba2ac of _0x1c5b88)this['focusTracker']['remove'](_0x5ba2ac['element']);});}}class f extends _0x16e53b{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x145711){super(_0x145711),this['archivedThreads']=new _0x18e518();}['init'](){const _0xec3011=this['context'],_0x45fc54=_0xec3011['plugins']['get'](o),_0x501bc5=_0xec3011['plugins']['get'](N);this['listenTo'](_0x45fc54,'addCommentThread',(_0x3ef2b6,{threadId:_0x2cc61e})=>{const _0x2aa32a=_0x45fc54['getCommentThread'](_0x2cc61e);_0x2aa32a['archivedAt']&&this['archivedThreads']['add'](_0x2aa32a,this['_calculatePosition'](_0x2aa32a['archivedAt'])),this['listenTo'](_0x2aa32a,'change:archivedAt',(_0x5291ef,_0x311794,_0x3a5023)=>{_0x3a5023?this['archivedThreads']['has'](_0x2aa32a)||this['archivedThreads']['add'](_0x2aa32a,this['_calculatePosition'](_0x2aa32a['archivedAt'])):this['archivedThreads']['has'](_0x2aa32a)&&this['archivedThreads']['remove'](_0x2aa32a);});}),this['listenTo'](_0x45fc54,'removeCommentThread',(_0x491228,{threadId:_0x2e87f6})=>{const _0x34ccde=_0x45fc54['getCommentThread'](_0x2e87f6);this['stopListening'](_0x34ccde),this['archivedThreads']['has'](_0x34ccde)&&this['archivedThreads']['remove'](_0x34ccde);},{'priority':'highest'}),this['listenTo'](_0x501bc5['collection'],'focus',(_0x5b6175,_0x538b96)=>{_0x538b96['isVisible']||(_0x538b96['isActive']=!0x0,_0x501bc5['activate'](_0x538b96));});}['_calculatePosition'](_0x2b8144){const _0x3c8f2b=[...this['archivedThreads']]['findIndex'](_0x3debc6=>_0x3debc6['archivedAt']<_0x2b8144);return _0x3c8f2b>-0x1?_0x3c8f2b:this['archivedThreads']['length'];}}class a extends _0x3ad107{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x288daa];}constructor(_0x55fecb){super(_0x55fecb),this['annotationViews']=new _0x12dbb4(),this['_pendingThreads']=[];}['init'](){const _0x5803c6=this['editor'],_0x84de2d=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x5803c6['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x439fde,!0x0)),_0x5803c6['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x4c2550=this['_createCommentsArchiveButton'](_0xe27958);return _0x4c2550['set']({'role':'menuitemcheckbox'}),_0x4c2550;});const _0xc0ee7e=_0x5803c6['plugins']['get'](f),_0x206848=_0x5803c6['plugins']['get']('Annotations'),_0x926dde=_0x5803c6['plugins']['get']('CommentsRepository');this['listenTo'](_0xc0ee7e['archivedThreads'],'add',(_0x52fd35,_0x2927d5)=>{const _0x1d450d=_0x5803c6['config']['get']('collaboration.channelId');if(!_0x1d450d||_0x2927d5['channelId']===_0x1d450d){const _0x50e39f=_0x926dde['_threadToController']['get'](_0x2927d5);if(!_0x50e39f)return void this['_pendingThreads']['push'](_0x2927d5);const _0x3a4b39=this['_calculatePosition'](_0x2927d5['archivedAt']),_0x362c28=_0x206848['getByInnerView'](_0x50e39f['view']);_0x362c28['isVisible']&&_0x206848['_visibleAnnotations']['remove'](_0x362c28),this['annotationViews']['add'](_0x362c28['view'],_0x3a4b39);}}),this['listenTo'](_0x206848['collection'],'add',(_0x499eaa,_0x456af6)=>{const _0x218dfe=this['_pendingThreads']['find'](_0x1f8932=>{const _0x3633fa=_0x926dde['_threadToController']['get'](_0x1f8932);return _0x3633fa&&_0x456af6['innerView']===_0x3633fa['view'];});if(_0x218dfe){const _0x32dc5f=this['_calculatePosition'](_0x218dfe['archivedAt']);this['annotationViews']['add'](_0x456af6['view'],_0x32dc5f),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x218dfe),0x1);}}),this['listenTo'](_0xc0ee7e['archivedThreads'],'remove',(_0x15c0fb,_0xe7a291)=>{const _0x7e8fa3=_0x5803c6['config']['get']('collaboration.channelId');if(!_0x7e8fa3||_0xe7a291['channelId']===_0x7e8fa3){const _0x55bcf6=_0x926dde['_threadToController']['get'](_0xe7a291),_0x659a67=_0x206848['getByInnerView'](_0x55bcf6['view']);this['annotationViews']['remove'](_0x659a67['view']),this['stopListening'](_0x659a67['focusableElements']);}}),this['listenTo'](_0x206848['collection'],'add',(_0x44cf1a,_0x340d16)=>{this['listenTo'](_0x340d16,'escape',_0x84de2d);}),this['listenTo'](_0x206848['collection'],'remove',(_0x4bdc59,_0x193559)=>{this['stopListening'](_0x193559,'escape',_0x84de2d);});}['_calculatePosition'](_0x13b163){const _0x3a6cb1=this['editor']['config']['get']('collaboration.channelId'),_0x3e21c1=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0xa6f0ad=>_0xa6f0ad['channelId']===_0x3a6cb1)['findIndex'](_0x271366=>_0x271366['archivedAt']<_0x13b163);return _0x3e21c1<0x0||_0x3e21c1>this['annotationViews']['length']?this['annotationViews']['length']:_0x3e21c1-0x1;}['_toggleDialog'](){const _0x36e9f4=this['editor'],_0x3f2932=_0x36e9f4['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x36e9f4['locale'],this['annotationViews'])),'commentsArchive'===_0x3f2932['id']?_0x3f2932['hide']():_0x3f2932['show']({'id':'commentsArchive','title':S(_0x36e9f4['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x17c35a['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x6d1840,_0x1ed5a9=!0x1){const _0x5c5c5e=this['editor']['locale'],_0x477bd8=this['editor']['plugins']['get']('Dialog'),_0x298936=new _0x6d1840(_0x5c5c5e);return _0x298936['bind']('isEnabled')['to'](this,'isEnabled'),_0x298936['bind']('isOn')['to'](_0x477bd8,'id',_0x98249d=>'commentsArchive'===_0x98249d),_0x298936['set']({'label':S(_0x5c5c5e,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x1ed5a9&&(_0x298936['tooltip']=!0x0),this['listenTo'](_0x298936,'execute',()=>this['_toggleDialog']()),_0x298936;}['_hideDialogOnAnnotationEscape']=_0x42a866=>{const _0x27e5fc=_0x42a866['source'];if(!this['annotationViews']['has'](_0x27e5fc['view']))return;const _0x58df0c=this['editor']['plugins']['get']('Dialog');_0x58df0c['isOpen']&&'commentsArchive'===_0x58df0c['id']&&(_0x58df0c['hide'](),_0x42a866['stop']());};}class p extends _0x3ad107{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,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt 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 _0x2ca61f,icons as _0x380ea0,ContextPlugin as _0x2fb642,PendingActions as ht,Command as _0x16a21a,Plugin as _0x50d6a7,Context as _0x418396}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x57b099,uid as _0x216da5,KeystrokeHandler as jt,FocusTracker as _0x523031,diff as _0xab3921,Collection as _0x556725,Rect as _0x161c21,CKEditorError as _0x4eebb5,first as _0x5ba3c7,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x292265,keyCodes as _0x53ed79}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x4ecd00,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0xf6b86c,trimHtml as _0x2f604b,LateFocusDropdownButtonView as _0x1d4da7,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x526bde}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x4d24b5}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x30f492,ViewCollection as _0x53afa6,createDropdown as _0x119c38,ListView as _0x15165a,focusChildOnDropdownOpen as _0x5b3040,ListItemView as _0x51afc8,MenuBarMenuListItemButtonView as _0x7e9b73,BodyCollection as _0x237c71,BalloonPanelView as _0x7c24c2,ContextualBalloon as _0x45c664,Dialog as _0x3ca1f2,DialogViewPosition as _0x471e16}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x457f5f}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 Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x38cfa4}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x57b099(){['model'];['view'];constructor(_0x578b0d,_0x255826){super(),this['model']=_0x578b0d,this['model']['_isAttached']=!0x0,this['view']=_0x255826,this['listenTo'](_0x255826,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x255826,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x255826,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x255826,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x255826,'addComment',(_0x1636fb,_0x5831af)=>this['addComment'](_0x5831af)),this['listenTo'](_0x255826,'updateComment',(_0x2fbc28,_0x351933,_0x1e1b70)=>this['updateComment'](_0x351933,_0x1e1b70)),this['listenTo'](_0x255826,'removeComment',(_0x4fb1c6,_0x48b81b)=>this['removeComment'](_0x48b81b));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0xdc1720){this['model']['addComment']({'content':_0xdc1720,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x80fe1,_0x20d2a2){this['model']['getComment'](_0x80fe1)['update']({'content':_0x20d2a2});}['removeComment'](_0x461da1){this['model']['getComment'](_0x461da1)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x2f2cd7,_0x4ce6e1,_0x37f716){const t=_0x2f2cd7['t'];switch(_0x4ce6e1){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'},_0x37f716);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'},_0x37f716);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'},_0x37f716);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'},_0x37f716);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x37f716);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'},_0x37f716);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'},_0x37f716);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'},_0x37f716);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 Vt extends Xt{['main'];['editable'];constructor(_0x6ef35d,_0x47e247){super(_0x6ef35d);const _0x5a982e=_0x216da5();this['main']=this['createCollection'](),this['editable']=new $t(_0x6ef35d,_0x47e247,void 0x0,{'label':()=>S(_0x6ef35d,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x6ef35d['uiLanguageDirection'],'lang':_0x6ef35d['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5a982e},'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 Ut{['view'];constructor(_0x568476){super(_0x568476),this['view']=new Vt(_0x568476['locale'],_0x568476['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2bf81d=this['editor']['editing']['view'],_0x1d6f09=this['view']['editable'],_0x501ae3=_0x2bf81d['document']['getRoot']();_0x1d6f09['name']=_0x501ae3['rootName'],this['view']['render']();const _0xfb96ec=_0x1d6f09['element'];this['setEditableElement'](_0x1d6f09['name'],_0xfb96ec),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2bf81d['attachDomRoot'](_0xfb96ec),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x57b099(_0x2ca61f){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Qt)());constructor(_0x1b381a={}){function _0x5e65ea(_0x137088){return _0x137088['map'](_0x13350f=>String['fromCharCode'](_0x13350f))['join']('');}(_0x1b381a=Object['assign']({},_0x1b381a))['plugins']||(_0x1b381a['plugins']=Rt['defaultPlugins']),super(_0x1b381a),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[_0x5e65ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e65ea([0x76,0x69,0x65,0x77])][_0x5e65ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e65ea([0x61,0x75,0x74,0x6f]),this[_0x5e65ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5e65ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e65ea([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5e65ea([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5e65ea([0x6f,0x6b])});}['create'](){const _0x41434b=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x41434b))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x55e310=>{const _0x5db91d=this['model']['document']['getRoot'](),_0x167c96=_0x5db91d&&_0x5db91d['getChild'](_0x5db91d['childCount']-0x1);_0x55e310['setSelection'](_0x167c96,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x17ae11=this['editing']['view'],_0xb1c657=_0x17ae11['document']['getRoot'](),_0x3ee929=_0xb1c657['getChild'](0x0);_0xb1c657['childCount']>0x1||!_0x3ee929||'p'!=_0x3ee929['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x17ae11,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3ee929['placeholder']=this['placeholder']),St({'view':_0x17ae11,'element':_0x3ee929,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3ee929);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x1be408,_0x27e1c0={}){super(_0x1be408),this['editor']=null,this['_editorConfig']=_0x27e1c0,this['set']('value',_0x27e1c0['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x1be408,'Reply...')),this['set']('submitLabel',S(_0x1be408,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x523031(),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',(_0xe432a7,_0x2aab97)=>{this['cancelButtonView']['fire']('execute'),_0x2aab97();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4d6988,_0x2051c0)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2051c0());}),this['on']('submit',(_0x25d32b,_0x25fd83)=>{_0x25fd83['length']>0xfde8?(alert(S(_0x1be408,'TOO_LONG_COMMENT_ALERT',[_0x25fd83['length'],0xfde8])),_0x25d32b['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x2221a2=this['editor'];this['element']['insertBefore'](_0x2221a2['ui']['element'],this['element']['firstChild']),_0x2221a2['model']['document']['on']('change',()=>this['value']=_0x2221a2['getData']()),_0x2221a2['bind']('placeholder')['to'](this),this['focusables']['add'](_0x2221a2['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x5a3e75){-0x1===_0x5a3e75?(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:_0x404cc9}=this,_0x58abd2=new _0x30f492(_0x404cc9);return _0x58abd2['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x58abd2['withText']=!0x0,_0x58abd2['bind']('label')['to'](this,'submitLabel'),_0x58abd2['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x58abd2['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xe3c2bb,_0x4c0485)=>!_0x4c0485&&!!_0xe3c2bb['trim']()),_0x58abd2;}['_createCancelButton'](){const {locale:_0x536edd}=this,_0x59bc64=new _0x30f492(_0x536edd);return _0x59bc64['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x59bc64['label']=S(_0x536edd,'Cancel'),_0x59bc64['withText']=!0x0,_0x59bc64['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x59bc64;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x9aee60=>{this['focusTracker']['add'](_0x9aee60['element']);}),this['focusables']['on']('change',(_0x1962e6,_0x1171f7)=>{for(const _0x50e421 of Array['from'](_0x1171f7['added'])['reverse']())this['focusTracker']['add'](_0x50e421['element']);});}}class ie extends kt{constructor(_0x2b0ccc,_0x31391c,_0x2dafd0){super(_0x2b0ccc),this['commentInputView']=new hs(_0x2b0ccc,_0x2dafd0),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x3999a3,_0x5c2557)=>_0x3999a3||!!_0x5c2557),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 _0x4ecd00(_0x2b0ccc,_0x31391c),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'](_0x2ba18b){this['commentInputView']['focus'](_0x2ba18b);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xb02246,_0xdb9008)=>{const {submitButtonView:_0xbbf2b6,cancelButtonView:_0x1d4706,editor:_0x49ab78}=this['commentInputView'];[_0xbbf2b6['element'],_0x1d4706['element'],_0x49ab78?_0x49ab78['editing']['view']['getDomRoot']():null]['filter'](_0x21f58e=>_0x21f58e)['some'](_0x4deb6f=>_0x4deb6f['contains'](_0xdb9008['target']))||(this['focus'](),_0xdb9008['preventDefault']());});}}class cs extends kt{constructor(_0x559c96){super(_0x559c96);const _0x39e959=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x39e959['to']('count',_0x3bc2c9=>S(_0x559c96,'NUMBER_OF_COMMENTS',_0x3bc2c9))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x148cd1,_0xe1a73d,_0x111503){super(_0x148cd1);const _0x28cf0c=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0xe1a73d['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0xe1a73d,this['_config']=_0x111503,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x523031(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x59688b=>this['commentViews']['map'](_0x417f77=>_0x417f77['element'])['includes'](_0x59688b['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x148cd1),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x40824b=>_0x40824b-this['_config']['maxCommentsWhenCollapsed']);for(const _0x433df2 of _0xe1a73d['comments'])this['_handleNewCommentModel'](_0x433df2);this['_handleInfoComment'](),this['listenTo'](_0xe1a73d['comments'],'add',(_0x51dfcc,_0x4d7255)=>{const _0x40d24c=this['_calculatePosition'](_0x4d7255);this['length']++,this['_handleNewCommentModel'](_0x4d7255,_0x40d24c),this['refreshVisibleViews']();}),this['listenTo'](_0xe1a73d['comments'],'remove',(_0x1283bf,_0x8426a1)=>{this['length']--,this['_handleRemoveCommentModel'](_0x8426a1),this['refreshVisibleViews']();}),this['listenTo'](_0xe1a73d,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0xe1a73d,'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',_0x28cf0c['if']('length','ck-hidden',_0x4c09d4=>!_0x4c09d4)],'aria-label':S(_0x148cd1,'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'](_0x37d63c){-0x1===_0x37d63c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x22160e of this['commentViews'])_0x22160e['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3bb0dd,_0x4a2f36){const _0x2e8206=new this['_config']['CommentView'](this['locale'],_0x3bb0dd,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2e8206['viewUid']=_0x3bb0dd['id'],_0x2e8206['delegate']('removeComment')['to'](this),_0x2e8206['delegate']('updateComment')['to'](this),_0x2e8206['delegate']('resolveCommentThread')['to'](this),_0x2e8206['delegate']('editorReady')['to'](this),_0x2e8206['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2e8206,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2e8206,_0x4a2f36);}['_calculatePosition'](_0x2af0bf){const _0x3535ce=this['_model']['_findOptimalIndex'](_0x2af0bf);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2af0bf['authoredAt']?_0x3535ce-0x1:_0x3535ce:_0x3535ce-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x48f98b={'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'],_0x48f98b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x48f98b));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3a14a5){const _0x813aa2=this['commentViews']['remove'](_0x3a14a5['id']);this['stopListening'](_0x813aa2),_0x813aa2['isEditMode']&&this['_updateHasDirtyComment'](),_0x813aa2['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x3bf6e5=>_0x3bf6e5['isEditMode']);}['_rearrangeCollapse'](){const _0x3771ab=function(_0x42e671){const _0x5a231b=new _0x556725();for(const _0x41877d of _0x42e671)_0x5a231b['add'](_0x41877d);return _0x5a231b;}(this['commentViews']),_0x33af2f=this['_collapsedCommentsView']['count'];for(let _0x549680=0x1;_0x549680<=_0x33af2f;_0x549680++)_0x3771ab['remove'](0x1);for(const _0x415134 of _0x3771ab)_0x415134['collapse']();_0x33af2f>0x0&&_0x3771ab['add'](this['_collapsedCommentsView'],0x1),ns(_0xab3921(Array['from'](this['visibleViews']),Array['from'](_0x3771ab)),this['visibleViews'],_0x3771ab);}['_rearrangeExpand'](){ns(_0xab3921(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x2fe4d1 of this['visibleViews'])_0x2fe4d1['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x7aa126=>{this['focusTracker']['add'](_0x7aa126['element']),this['keystrokes']['listenTo'](_0x7aa126['element']);}),this['commentViews']['on']('change',(_0xfaa15c,_0xe2feb0)=>{for(const _0x280ef4 of _0xe2feb0['removed'])this['focusTracker']['remove'](_0x280ef4['element']),this['keystrokes']['stopListening'](_0x280ef4['element']);for(const _0x11ba03 of Array['from'](_0xe2feb0['added'])['reverse']())this['focusTracker']['add'](_0x11ba03['element']),this['keystrokes']['listenTo'](_0x11ba03['element']);});}}function ns(_0x5aec71,_0x52bfab,_0xc7b1ec){let _0x1cbce0=0x0;for(const _0x4d3519 of _0x5aec71)switch(_0x4d3519){case'insert':_0x52bfab['add'](_0xc7b1ec['get'](_0x1cbce0),_0x1cbce0),_0x1cbce0++;break;case'delete':_0x52bfab['remove'](_0x1cbce0);break;case'equal':_0x1cbce0++;}}class as extends kt{constructor(_0x17019e){super(_0x17019e);const _0x44dde9=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x44dde9['to']('contextValue',_0x59836b=>S(_0x17019e,'THREAD_CONTEXT_LABEL',_0x59836b)),'tabindex':-0x1},'children':[{'text':_0x44dde9['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xf97e1c,_0x1dfe9d){super(_0xf97e1c);const _0x2fdcdb=this['bindTemplate'];this['_model']=_0x1dfe9d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x523031(),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',_0x14dd56=>!!_0x14dd56),this['bind']('contextValue')['to'](this['_model'],'context',_0x54a695=>_0x54a695&&_0x54a695['value']?this['_trimContextValue'](_0x54a695['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',_0x2fdcdb['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 _0x3cfc45=new _0x30f492(this['locale']);return _0x3cfc45['label']=S(this['locale'],'Reopen'),_0x3cfc45['tooltip']=S(this['locale'],'Reopen'),_0x3cfc45['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>',_0x3cfc45['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2cdb05=>!_0x2cdb05),_0x3cfc45['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x14d9e9,_0x1dcced)=>_0x14d9e9&&_0x1dcced),_0x3cfc45['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3cfc45;}['_trimContextValue'](_0x1163d5){if(_0x1163d5['length']<0x96)return _0x1163d5;const _0x3a2c8a=_0x1163d5['lastIndexOf']('\x20',0x93);return _0x1163d5['substring'](0x0,_0x3a2c8a>-0x1?_0x3a2c8a:0x93)+'...';}['_attachContextActions'](){const _0xb3530=this['element']['querySelector']('.ck-context'),_0x2c09b1=_0xb3530['querySelector']('.ck-context__value');this['listenTo'](_0xb3530,'mouseenter',()=>{_0x2c09b1['offsetWidth']<_0x2c09b1['scrollWidth']&&_0xb3530['classList']['add']('overlay');}),this['listenTo'](_0xb3530,'mouseleave',()=>{_0xb3530['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x4da17b of this['focusables'])this['focusTracker']['add'](_0x4da17b['element']),this['keystrokes']['listenTo'](_0x4da17b['element']);}['_createContextView'](){const _0x40aa2a=new as(this['locale']);return _0x40aa2a['bind']('contextValue')['to'](this),_0x40aa2a;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xef848f,_0x5babf7,_0xd7570a,_0x342616){super(_0xef848f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5babf7,this['_localUser']=_0xd7570a,this['_config']=_0x342616,this['commentThreadHeaderView']=new Yt(_0xef848f,_0x5babf7),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0xef848f,S(_0xef848f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xef848f,_0x5babf7,Object['assign']({'CommentView':this['_config']['CommentView']},_0x342616)),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',(_0x564f9d,_0x534488)=>_0x564f9d||!!_0x534488),this['bind']('isUnlinked')['to'](_0x5babf7,'unlinkedAt',_0xaeba4a=>!!_0xaeba4a),this['bind']('ariaLabel')['to'](this,'length',_0x12e817=>{const _0x52b865=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x12e817,_0x52b865]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x523031(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a1c87=>_0x3a1c87['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1cee96=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x24b477=_0x1cee96['commentInputView'];return _0x1cee96['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x24b477,'value',(_0x2f2a40,_0x4e4a2c,_0x2dcb34,_0x1126ef,_0x184853)=>!!_0x184853||!!_0x1126ef&&_0x2dcb34&&!_0x4e4a2c||_0x2f2a40&&_0x2dcb34&&!_0x4e4a2c),_0x24b477['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4af45f,_0x449df7,_0x4cd7be)=>{let _0x1c2008;return _0x1c2008=_0x4cd7be&&_0x449df7?'Reply\x20to\x20reopen\x20discussion...':_0x4af45f?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x1c2008);}),_0x24b477['bind']('submitLabel')['to'](this,'length',_0x2e3b3b=>S(this['locale'],_0x2e3b3b?'Reply':'Comment')),_0x24b477['on']('submit',(_0x39ba83,_0x35e5e0)=>{this['fire']('addComment',_0x35e5e0),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x24b477['on']('cancel',()=>{this['focus']();}),_0x24b477['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x24b477['on']('cancel',_0x1366eb=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x1366eb['stop']());}),this['on']('change:isActive',(_0x4ee297,_0x22ed8e,_0x1ca1e3)=>{_0x1ca1e3||this['length']||_0x24b477['value']||this['fire']('removeCommentThread');}),_0x1cee96;}}class Ct extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x18f0ef,_0x5d0271,_0x1b8de9,_0x35af29){super(_0x18f0ef,_0x5d0271,_0x1b8de9,_0x35af29),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x18f0ef,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0xbf4250,_0x4eaba5,_0x28f7c9)=>{_0x28f7c9||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x10771a,_0x4b49a1,_0x5dbe52)=>{_0x5dbe52&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0xc796ab=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0xc796ab['if']('isActive','ck-thread--active'),_0xc796ab['if']('isUnlinked','ck-thread--unlinked'),_0xc796ab['if']('isConfirm','ck-thread--remove-confirmation'),_0xc796ab['to']('actionIndicator',_0x204408=>_0x204408?'ck-thread--'+_0x204408:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xc796ab['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 _0x49af95 of this['commentsListView']['commentViews'])_0x49af95['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0xe3ada9}=this,_0x3bfb32=this['commentsListView']['commentViews']['get'](0x0);_0x3bfb32===this['_boundFirstCommentView']||_0x3bfb32['isSystemComment']||(this['_boundFirstCommentView']=_0x3bfb32,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3bfb32,'actionIndicator',_0x19f459=>'remove'===_0x19f459?'remove':null),_0x3bfb32['placeholder']=S(_0xe3ada9,'Write\x20a\x20comment...'),_0x3bfb32['removeButton']['on']('execute',_0x555b60=>{_0x555b60['stop'](),this['showConfirm'](S(_0xe3ada9,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3bfb32['focus']();}),_0x3bfb32['actionBar']['add'](this['resolveButton'],0x0),_0x3bfb32['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x63a01d=new _0xf6b86c(this['locale']);return _0x63a01d['label']=S(this['locale'],'Resolve'),_0x63a01d['tooltip']=S(this['locale'],'Resolve'),_0x63a01d['icon']=_0x380ea0['check'],_0x63a01d['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x63a01d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x535398=>!_0x535398),_0x63a01d['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4faaaf,_0x1d9169)=>_0x4faaaf&&!_0x1d9169),_0x63a01d['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x63a01d;}['_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 es extends kt{constructor(_0x171d80){super(_0x171d80),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x2d889c,_0x5968f5,_0x25eff0)=>{this['element']['innerHTML']=_0x25eff0;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1bb0d9,_0x241588,_0x44ce0b){super(_0x1bb0d9),this['_model']=_0x241588,this['_config']=_0x44ce0b,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x241588,'content',_0x241588,'authoredAt',(_0x425a64,_0x46356f)=>S(_0x1bb0d9,'COMMENT_ARIA_LABEL',[_0x241588['author']['name'],_0x44ce0b['formatDateTime'](_0x46356f),new DOMParser()['parseFromString'](_0x425a64,'text/html')['body']['textContent'],_0x241588['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x1bb0d9,S(_0x1bb0d9,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x53afa6(),this['focusTracker']=new _0x523031(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42dcd3=>_0x42dcd3['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 _0x559492=new es(this['locale']);return _0x559492['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x59d21e,_0xa05c9e)=>_0xa05c9e?_0x2f604b(_0x59d21e,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x59d21e),_0x559492;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x3fb2d=new hs(this['locale'],this['_config']['editorConfig']);return _0x3fb2d['value']=this['_model']['content'],_0x3fb2d['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3fb2d['submitLabel']=S(this['locale'],'Save'),_0x3fb2d['on']('submit',(_0x451a91,_0x45c5aa)=>{this['fire']('updateComment',this['_model']['id'],_0x45c5aa),this['switchToDisplayMode'](),this['focus']();}),_0x3fb2d['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x3fb2d['once']('editorReady',()=>{_0x3fb2d['focus']();}),_0x3fb2d['createEditor'](),_0x3fb2d['delegate']('editorReady')['to'](this),_0x3fb2d['delegate']('editorDestroyed')['to'](this),_0x3fb2d;}['_setupKeyboardNavigation'](){const _0x5ac3f9=this['element'];this['keystrokes']['listenTo'](_0x5ac3f9);for(const _0x59f4a1 of this['focusables'])this['focusTracker']['add'](_0x59f4a1['element']),this['keystrokes']['listenTo'](_0x59f4a1['element']);this['focusables']['on']('change',(_0x51a2e3,_0x337394)=>{for(const _0x54cae6 of _0x337394['removed'])this['focusTracker']['remove'](_0x54cae6['element']),this['keystrokes']['stopListening'](_0x54cae6['element']);for(const _0x36db5b of _0x337394['added'])this['focusTracker']['add'](_0x36db5b['element']),this['keystrokes']['listenTo'](_0x36db5b['element']);}),this['keystrokes']['set']('enter',(_0x1bbf66,_0x329f5c)=>{_0x5ac3f9===_0x1bbf66['target']&&(this['focusCycler']['focusFirst'](),_0x329f5c());}),this['keystrokes']['set']('esc',(_0x5dc5aa,_0x323c7f)=>{_0x5ac3f9!==_0x5dc5aa['target']&&(this['focus'](),_0x323c7f());});}}class vt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(os){['actionBar'];['userView'];constructor(_0x1d695c,_0x1fc6cc,_0x548d8f){super(_0x1d695c,_0x1fc6cc,_0x548d8f),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x1d695c,'Reply...')),this['bind']('authoredAt')['to'](_0x1fc6cc),this['bind']('resolvedAt')['to'](_0x1fc6cc),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 _0x4ecd00(_0x1d695c,_0x1fc6cc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1fc6cc,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x50129e=this['bindTemplate'],_0x419866=[{'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']}},{'tag':'time','attributes':{'datetime':_0x50129e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x50129e['to']('authoredAt',_0xc414df=>this['_config']['formatDateTime'](_0xc414df))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x50129e['if']('isEditMode','ck-comment__actions--hidden'),_0x50129e['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']&&_0x419866['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x50129e['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x50129e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x50129e['if']('isEditMode','ck-comment--edit'),_0x50129e['if']('isSystemComment','ck-comment--info'),_0x50129e['to']('actionIndicator',_0x359bca=>_0x359bca?'ck-comment--'+_0x359bca:'')],'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':_0x419866}]}]};}['_createEditButton'](){const _0x318f6b=new _0x30f492(this['locale']);return _0x318f6b['label']=S(this['locale'],'Edit'),_0x318f6b['icon']=_0x380ea0['pencil'],_0x318f6b['withText']=!0x0,_0x318f6b['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x318f6b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x101873=>!_0x101873),_0x318f6b['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x318f6b['on']('execute',()=>this['switchToEditMode']()),_0x318f6b;}['_createRemoveButton'](){const _0x1869b3=new _0x30f492(this['locale']);return _0x1869b3['label']=S(this['locale'],'Remove'),_0x1869b3['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-2024,\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',_0x1869b3['withText']=!0x0,_0x1869b3['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1869b3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xe14ffa=>!_0xe14ffa),_0x1869b3['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1869b3['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1869b3;}['_createDropdown'](){const _0x1892eb=_0x119c38(this['locale'],_0x1d4da7),_0x527435=_0x1892eb['panelView']['children'],_0x7e73bf=new _0x15165a(this['locale']),_0x4052c7=_0x1892eb['bindTemplate'];_0x5b3040(_0x1892eb,()=>this['items']['find'](_0xb3d891=>_0xb3d891['isVisible'])),_0x1892eb['extendTemplate']({'attributes':{'class':[_0x4052c7['if']('isVisible','ck-hidden',_0x53fd1e=>!_0x53fd1e)]}});const _0x1f1596=(_0x409b6a,_0x1f738c=-0x1)=>{const _0x3e2354=new _0x51afc8(this['locale']);_0x3e2354['children']['add'](_0x409b6a);const _0x3d6bcd=_0x1f738c>-0x1?_0x1f738c:_0x7e73bf['items']['length'];_0x7e73bf['items']['add'](_0x3e2354,_0x3d6bcd);const _0x4ca31b=Array['from'](this['items']);_0x1892eb['unbind']('isEnabled','isVisible'),_0x1892eb['bind']('isEnabled')['toMany'](_0x4ca31b,'isEnabled',(..._0x30c78e)=>_0x30c78e['some'](_0x231434=>_0x231434)),_0x1892eb['bind']('isVisible')['toMany'](_0x4ca31b,'isVisible',(..._0x4ada72)=>_0x4ada72['some'](_0xeb42=>_0xeb42));};_0x1892eb['panelPosition']='sw',_0x1892eb['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x380ea0['threeVerticalDots']});for(const _0x39e493 of this['items'])_0x1f1596(_0x39e493);return _0x527435['add'](_0x7e73bf),_0x1892eb['listenTo'](this['items'],'add',(_0x1bc16c,_0x3b3387,_0x10a27e)=>{_0x1f1596(_0x3b3387,_0x10a27e);}),_0x1892eb['listenTo'](this['items'],'remove',(_0x186d37,_0x17ccb7,_0x353a3b)=>{_0x7e73bf['items']['remove'](_0x353a3b);}),_0x1892eb;}['_attachActions'](_0xca78c9,_0x44334a){const _0x28533b=_0xca78c9&&_0xca78c9['element'];_0x28533b&&(this['listenTo'](_0x28533b,'mouseenter',()=>this['actionIndicator']=_0x44334a),this['listenTo'](_0x28533b,'focus',()=>this['actionIndicator']=_0x44334a),this['listenTo'](_0x28533b,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x28533b,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x38c9a4=super['_createCommentInputView']();return _0x38c9a4['bind']('placeholder')['to'](this),_0x38c9a4;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x29bd7a){const _0x45b0b0=bt(_0x29bd7a,0x1e),_0x1f6088=new MutationObserver(_0x5c94df=>{for(const _0x11b2d1 of _0x5c94df)('attributes'==_0x11b2d1['type']&&'class'==_0x11b2d1['attributeName']||'childList'==_0x11b2d1['type']||'characterData'==_0x11b2d1['type'])&&_0x45b0b0();});return{'attach'(_0x236247){_0x1f6088['observe'](_0x236247,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1f6088['disconnect'](),_0x45b0b0['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x57e0bd,_0x2ffaf2){super(_0x57e0bd),this['id']=_0x216da5(),this['focusTracker']=new _0x523031(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x35c272,_0x236565)=>this['fire']('Esc',_0x236565)),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']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x2ffaf2),this['mainView']=_0x2ffaf2;const _0x4ff021=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4ff021['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 _0x2a6f2b=this['element']['clientHeight'];_0x2a6f2b&&(this['height']=_0x2a6f2b);}}class d extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x57b099(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1258dd,target:_0x138012,type:_0xe6bc56,isVisible:_0x3a8bdc=!0x0}){super(),this['view']=_0x1258dd,this['view']['element']||this['view']['render'](),this['_type']=_0xe6bc56,this['_target']=_0x138012,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x556725([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x47ccde,_0x1fc60d)=>{this['view']['focusTracker']['add'](_0x1fc60d);}),this['focusableElements']['on']('remove',(_0x63309,_0x5e1e35)=>{this['view']['focusTracker']['remove'](_0x5e1e35);}),this['set']('isVisible',_0x3a8bdc);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x2e7837=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x2e7837),_0x2e7837;}get['targetRect'](){const _0x35deed=this['target'];if(null===_0x35deed)return null;if(_0x35deed instanceof _0x161c21)return _0x35deed;const _0xe43b3d=_0x35deed['filter'](_0x348a16=>function(_0x1558c0){const _0x189fb6=_0x1558c0['offsetParent'];if(_0x189fb6)return!0x0;const _0x5156cf=_0x1558c0['getClientRects']()['item'](0x0);return!!_0x5156cf;}(_0x348a16));return 0x0===_0xe43b3d['length']?null:new _0x161c21(_0xe43b3d[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5cdc7f){this['view']['isActive']=_0x5cdc7f,this['view']['mainView']['isActive']=_0x5cdc7f;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xf64b28){if(!(null===_0xf64b28||_0xf64b28 instanceof _0x161c21||Array['isArray'](_0xf64b28)&&_0xf64b28['every'](_0x144883=>ne(_0x144883))))throw new _0x4eebb5('annotation-invalid-target',null,{'target':_0xf64b28});}['_getNormalizedTarget'](){const _0x4c6cc7='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x4c6cc7)?[_0x4c6cc7]:_0x4c6cc7;}}function ne(_0x116175){return null!==_0x116175&&'object'==typeof _0x116175&&'nodeType'in _0x116175&&0x1===_0x116175['nodeType'];}class x extends _0x556725{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2bde87=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x523031(),this['_focusTracker']['on']('change:isFocused',(_0x44a0a6,_0xe7d909,_0x2da66c)=>{_0x2da66c||this['fire']('blur');});for(const _0xfeac9e of _0x2bde87)this['add'](_0xfeac9e);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3cc619){if(this['has'](_0x3cc619))throw new _0x4eebb5('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3cc619['innerView'],_0x3cc619),this['_viewToAnnotation']['set'](_0x3cc619['view'],_0x3cc619);for(const _0x332d63 of _0x3cc619['focusableElements'])this['_focusTracker']['add'](_0x332d63);this['listenTo'](_0x3cc619['focusableElements'],'add',(_0x328ab5,_0x488e35)=>{this['_focusTracker']['add'](_0x488e35);}),this['listenTo'](_0x3cc619['focusableElements'],'remove',(_0x563634,_0x2369e4)=>{this['_focusTracker']['remove'](_0x2369e4);}),this['listenTo'](_0x3cc619['view']['focusTracker'],'change:isFocused',(_0x19e4d0,_0x47dd61,_0x1f6a2f)=>{_0x1f6a2f&&this['fire']('focus',_0x3cc619);}),_0x3cc619['updateTargetRect']();const _0x3335aa=this['_getOrderInContent'](_0x3cc619['view']['targetRect']);return super['add'](_0x3cc619,_0x3335aa);}['remove'](_0x27649d){if(!this['has'](_0x27649d))throw new _0x4eebb5('annotationcollection-not-existing-item',null);this['stopListening'](_0x27649d['view']['focusTracker']),this['stopListening'](_0x27649d['focusableElements']);for(const _0x5934ed of _0x27649d['focusableElements'])this['_focusTracker']['remove'](_0x5934ed);return this['_viewToAnnotation']['delete'](_0x27649d['view']),this['_innerViewToAnnotation']['delete'](_0x27649d['innerView']),super['remove'](_0x27649d);}['getByInnerView'](_0x811cd3){return this['_innerViewToAnnotation']['get'](_0x811cd3);}['getByView'](_0x342ca0){return this['_viewToAnnotation']['get'](_0x342ca0);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x37b2c6 of this)_0x37b2c6['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2f5235=Array['from'](this)['sort']((_0x5e6dd2,_0x482fbb)=>v(_0x5e6dd2['view']['targetRect'],_0x482fbb['view']['targetRect']));for(let _0x2a336e=_0x2f5235['length']-0x1;_0x2a336e>0x0;_0x2a336e--){const _0x5d8a2b=_0x2f5235[_0x2a336e];_0x2a336e!==this['getIndex'](_0x5d8a2b)&&(this['remove'](_0x5d8a2b),this['add'](_0x5d8a2b));}}['_getOrderInContent'](_0x28cb8a){let _0x5c532c=0x0;if(!_0x28cb8a)return this['length'];for(const _0x43e57e of this){const _0x1db0c0=_0x43e57e['view']['targetRect'];if(_0x1db0c0){if(v(_0x28cb8a,_0x1db0c0)<0x0)return _0x5c532c;_0x5c532c++;}}return _0x5c532c;}}function v(_0x2ac3e1,_0x5c4b73){if(null===_0x2ac3e1&&null===_0x5c4b73)return 0x0;if(null===_0x2ac3e1)return-0x1;if(null===_0x5c4b73)return 0x1;const _0x3212be=_0x2ac3e1['top']-_0x5c4b73['top'];return 0x0==_0x3212be?_0x2ac3e1['left']-_0x5c4b73['left']:_0x3212be;}class N extends _0x2fb642{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33ca15){if(super(_0x33ca15),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x33ca15 instanceof _0x2ca61f){const _0xe629af=_0x33ca15['locale'];_0x33ca15['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0xe629af,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2bda16){this['collection']['add'](_0x2bda16);}['remove'](_0x58404e){this['collection']['remove'](_0x58404e),_0x58404e['destroy']();}['refreshVisibility'](){for(const _0x5166aa of this['collection'])_0x5166aa['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x41f4f0){return this['collection']['getByInnerView'](_0x41f4f0);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x373700 of this['collection'])_0x373700['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x67104){this['fire']('_activateAnnotation',_0x67104);}['createAnnotation'](_0x53a3f5){return new d(_0x53a3f5);}['createAnnotationView'](_0x570e7e,_0x51e036){return new T(_0x570e7e,_0x51e036);}['_addActiveAnnotation'](_0x436f6f){const _0x5c077a=new Set(this['activeAnnotations']);_0x5c077a['add'](_0x436f6f),this['activeAnnotations']=_0x5c077a;}['_removeActiveAnnotation'](_0x5e1057){const _0x24c0f7=new Set(this['activeAnnotations']);_0x24c0f7['delete'](_0x5e1057),this['activeAnnotations']=_0x24c0f7;}['_bindAnnotationsToVisibleAnnotations'](){const _0x43388f=this['collection'],_0x89e77f=this['_visibleAnnotations'];function _0x3a35df(_0x4174aa){const _0x27f9db=_0x4174aa['source'];_0x27f9db['isVisible']&&!_0x89e77f['has'](_0x27f9db)?_0x89e77f['add'](_0x27f9db):!_0x27f9db['isVisible']&&_0x89e77f['has'](_0x27f9db)&&_0x89e77f['remove'](_0x27f9db),_0x27f9db['view']['focusTracker']['remove'](_0x27f9db['view']['element']),_0x27f9db['view']['focusTracker']['add'](_0x27f9db['view']['element']);}this['listenTo'](_0x43388f,'add',(_0x47d76c,_0x489837)=>{_0x489837['isVisible']&&_0x89e77f['add'](_0x489837),this['listenTo'](_0x489837,'change:isVisible',_0x3a35df);}),this['listenTo'](_0x43388f,'remove',(_0x16a244,_0x2d0832)=>{_0x89e77f['has'](_0x2d0832)&&_0x89e77f['remove'](_0x2d0832),this['stopListening'](_0x2d0832,'change:isVisible',_0x3a35df);});}['_setupEnterAnnotationKeystroke'](){const _0x2f69dd=_0x2ce8b2=>{_0x2ce8b2['on']('ready',()=>{_0x2ce8b2['keystrokes']['set'](_0x38cfa4,(_0x5ea89d,_0x34372d)=>{const _0x4baefd=_0x5ba3c7(this['activeAnnotations']['values']());_0x4baefd&&(_0x4baefd['view']['focus'](),_0x34372d());});});};this['context']instanceof _0x2ca61f?_0x2f69dd(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0xe8174d,_0x46258a)=>{_0x2f69dd(_0x46258a);});}['_setupEscapeAnnotationHandling'](){const _0x5e19e3=_0x981855=>{const _0x2dabee=_0x981855['source'],_0x2bee8b=[];let _0x2ae7b9;if(Array['isArray'](_0x2dabee['target'])){_0x2ae7b9=_0x2dabee['target'][0x0],this['context']instanceof _0x2ca61f?_0x2bee8b['push'](this['context']):this['context']['editors']&&_0x2bee8b['push'](...this['context']['editors']);for(const _0x2ba5dc of _0x2bee8b)for(const _0x3ea2c1 of _0x2ba5dc['editing']['view']['domRoots']['values']())if(_0x3ea2c1['contains'](_0x2ae7b9))return void _0x2ba5dc['editing']['view']['focus']();_0x2ae7b9['focus']();}};this['listenTo'](this['collection'],'add',(_0x2a53a7,_0x31cfc9)=>{this['listenTo'](_0x31cfc9,'escape',_0x5e19e3,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x2ef38a,_0x29a003)=>{this['stopListening'](_0x29a003,'escape',_0x5e19e3);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2fb642{['_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(_0x110394){super(_0x110394),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3bc7fb=this['context']['config'];_0x3bc7fb['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3bc7fb['define']('comments.maxThreadTotalWeight',0x1f4),_0x3bc7fb['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3bc7fb['define']('comments.CommentThreadView',Ct),_0x3bc7fb['define']('comments.CommentView',vt),_0x3bc7fb['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x20e07e=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x12dd0e,_0x92a130)=>this['_addCommentThread'](_0x92a130)),this['on']('submitCommentThread',(_0x2c82b8,_0x2e04ee)=>this['_submitCommentThread'](_0x2e04ee)),this['on']('resolveCommentThread',(_0x4d2fd2,_0x27fd3a)=>this['_resolveCommentThread'](_0x27fd3a)),this['on']('resolveCommentThread',(_0x45ffb,_0x2d057c)=>this['_updateActiveAnnotation'](_0x2d057c),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5322cf,_0xa065b5)=>this['_reopenCommentThread'](_0xa065b5)),this['on']('reopenCommentThread',(_0x54d714,_0x1c940f)=>this['_updateActiveAnnotation'](_0x1c940f),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4a4d6e,_0x189a7b)=>this['_removeCommentThread'](_0x189a7b)),this['on']('updateCommentThread',(_0x36ab74,_0x2f94c2)=>this['_updateCommentThread'](_0x2f94c2)),this['on']('updateCommentThread',(_0x5edb31,_0x12f75d)=>this['_updateActiveAnnotation'](_0x12f75d),{'priority':'lowest'}),this['on']('addComment',(_0x585d2f,_0x399d40)=>this['_addComment'](_0x399d40)),this['on']('updateComment',(_0xd6a6c8,_0x1af6fd)=>this['_updateComment'](_0x1af6fd)),this['on']('removeComment',(_0x2680db,_0x2b5afa)=>this['_removeComment'](_0x2b5afa)),this['on']('addComment',(_0x411496,{threadId:_0x1dac33,isFromAdapter:_0x42f7d8})=>{if(_0x42f7d8)return;const _0x1d1a81=this['getCommentThread'](_0x1dac33),_0x230106=_0x1d1a81&&this['_threadToController']['get'](_0x1d1a81);_0x230106&&_0x230106['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x20e07e,'change:activeAnnotations',(_0x4f3c84,_0x43dd8c,_0x129264)=>{const _0x2fe766=Array['from'](_0x129264)['map'](_0x287a46=>this['_viewToController']['get'](_0x287a46['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x2fe766?_0x2fe766['model']:null;});}set['adapter'](_0x1ced90){if(this['_adapter'])throw new _0x4eebb5('commentsrepository-adapter-already-set');this['_adapter']=_0x1ced90;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4c092a=gt,threadId:_0x2c562b=_0x216da5(),comments:_0x4c733c=[],unlinkedAt:_0x2ecea4=null,resolvedAt:_0x219f87=null,resolvedBy:_0x2f8db9=null,target:_0xabda18=null,context:_0x46e25c=null,attributes:_0x1f88f1={},isResolvable:_0x565c22=!0x0,isSubmitted:_0x4633f1=!0x1,isFromAdapter:_0x514e8e=!0x1}={}){return this['fire'](_t('addCommentThread',_0x4c092a),{'channelId':_0x4c092a,'threadId':_0x2c562b,'comments':_0x4c733c,'unlinkedAt':_0x2ecea4,'resolvedAt':_0x219f87,'resolvedBy':_0x2f8db9,'target':_0xabda18,'context':_0x46e25c,'attributes':_0x1f88f1,'isFromAdapter':_0x514e8e,'isResolvable':_0x565c22,'isSubmitted':_0x4633f1}),this['getCommentThread'](_0x2c562b);}['openNewCommentThread']({channelId:_0xe6bdd5=gt,threadId:_0x4c03f5=_0x216da5(),target:_0x40a0eb,context:_0x4b5683=null,isResolvable:_0x12c70d=!0x0}){if(this['_readOnlyChannels']['has'](_0xe6bdd5)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x40a0eb)throw new _0x4eebb5('commentsrepository-missing-target');const _0x1baeb1=this['addCommentThread']({'channelId':_0xe6bdd5,'threadId':_0x4c03f5,'target':_0x40a0eb,'context':_0x4b5683,'isResolvable':_0x12c70d});if(!_0x1baeb1)return null;const _0xa5c393=this['_threadToController']['get'](_0x1baeb1),_0x41765e=_0xa5c393['view']['commentThreadInputView']['commentInputView'],_0xb197e5=this['context']['plugins']['get'](N),_0x48c602=_0xb197e5['getByInnerView'](_0xa5c393['view']);return _0xb197e5['activate'](_0x48c602),_0x41765e['once']('editorReady',()=>_0x41765e['focus']()),_0x1baeb1;}['hasCommentThread'](_0x2560ab){if('string'!=typeof _0x2560ab)throw new _0x4eebb5('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2560ab);}['updateCommentThread']({channelId:_0x1ccec9=gt,threadId:_0x363906,context:_0xad2fcc,unlinkedAt:_0x13cb86,attributes:_0x8dccb3,isFromAdapter:_0x3fcc59=!0x1}){return this['fire'](_t('updateCommentThread',_0x1ccec9),{'channelId':_0x1ccec9,'threadId':_0x363906,'context':_0xad2fcc,'unlinkedAt':_0x13cb86,'attributes':_0x8dccb3,'isFromAdapter':_0x3fcc59}),this['getCommentThread'](_0x363906);}['getCommentThread'](_0x5b2342){if('string'!=typeof _0x5b2342)throw new _0x4eebb5('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x5b2342);}['fetchCommentThread']({channelId:_0x3c486a,threadId:_0x503632}={}){const _0xbc69ac=this['getCommentThread'](_0x503632);if(_0xbc69ac)return Promise['resolve'](_0xbc69ac);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4eebb5('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x3c486a,'threadId':_0x503632})['then'](_0x36a8ac=>this['hasCommentThread'](_0x503632)?this['getCommentThread'](_0x503632):_0x36a8ac?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3c486a},_0x36a8ac)):void 0x0)['catch'](_0x31c668=>{throw console['error'](_0x31c668),new _0x4eebb5('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x2c8c95,skipNotAttached:_0x130756=!0x1,skipEmpty:_0x1cb3ae=!0x1,toJSON:_0x537d31=!0x1}={}){const _0x4dd856=[];for(const _0x51b199 of this['_threads']['values']())_0x2c8c95&&_0x51b199['channelId']!==_0x2c8c95||_0x130756&&!_0x51b199['isAttached']||_0x1cb3ae&&0x0===_0x51b199['length']||_0x4dd856['push'](_0x51b199);return _0x537d31?_0x4dd856['map'](_0x392959=>_0x392959['toJSON']()):_0x4dd856;}['setActiveCommentThread'](_0x4ad359){const _0x4ac09f=this['context']['plugins']['get'](N);if(!_0x4ad359)return void(this['activeCommentThread']&&_0x4ac09f['deactivateAll']());const _0x4a0450=this['getCommentThread'](_0x4ad359);if(!_0x4a0450)throw new _0x4eebb5('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4ad359});if(!this['_threadToController']['has'](_0x4a0450))throw new _0x4eebb5('commentsrepository-active-not-attached',null,{'threadId':_0x4ad359});const _0x32dd90=_0x4ac09f['getByInnerView'](this['_threadToController']['get'](_0x4a0450)['view']);_0x4ac09f['activate'](_0x32dd90);}['switchReadOnly'](_0x441cb2,_0x4ac8cc){_0x441cb2?this['_readOnlyChannels']['add'](_0x4ac8cc):this['_readOnlyChannels']['delete'](_0x4ac8cc),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x19fe94){return this['_readOnlyChannels']['has'](_0x19fe94)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x219b49,_0x1d1dc6){return new yt(_0x219b49,_0x1d1dc6);}['setPermissions'](_0xdc40d0,_0x5c8d63=gt){this['_permissions']['set'](_0x5c8d63,_0xdc40d0),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x982c84=gt){return this['_permissions']['has'](_0x982c84)?this['_permissions']['get'](_0x982c84):Tt;}['_addCommentThread']({channelId:_0x3e6e9a,threadId:_0x193bea,comments:_0x2a4b11,unlinkedAt:_0xdb8347,resolvedAt:_0x10e81e,resolvedBy:_0x5423bc,target:_0x440fce,context:_0x1ba6dd,attributes:_0x44db38,isFromAdapter:_0x2495e1,isResolvable:_0x17d1e5,isSubmitted:_0x437def}){if('string'!=typeof _0x193bea)throw new _0x4eebb5('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x193bea});if(this['hasCommentThread'](_0x193bea))throw new _0x4eebb5('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x193bea});const _0x2b4099=new oe(this,{'channelId':_0x3e6e9a,'id':_0x193bea,'context':_0x1ba6dd,'attributes':_0x44db38,'unlinkedAt':_0xdb8347,'resolvedAt':_0x10e81e,'resolvedBy':_0x5423bc?this['context']['plugins']['get'](it)['getUser'](_0x5423bc):null,'isResolvable':_0x17d1e5,'isSubmitted':_0x437def||_0x2495e1});this['_threads']['set'](_0x193bea,_0x2b4099);for(const _0x4944e0 of _0x2a4b11)_0x2b4099['_add'](this['_createNewComment']({'threadId':_0x193bea,..._0x4944e0}));return _0x440fce&&_0x2b4099['attachTo'](_0x440fce),_0x2495e1||!_0x2b4099['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3e6e9a,'threadId':_0x193bea});}['_submitCommentThread']({channelId:_0x44d409,threadId:_0x22d1df}){if(!this['hasCommentThread'](_0x22d1df))throw new _0x4eebb5('commentsrepository-missing-comment-thread',this);const _0x19749f=this['getCommentThread'](_0x22d1df);if(_0x19749f['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x22d164,comments:_0x5d8c87,resolvedAt:_0x3db13d,resolvedBy:_0x20ca86,context:_0x2e5fad,attributes:_0x268868}=_0x19749f,_0x1bef68=this['context']['plugins']['get']('PendingActions'),_0xe9d87e=_0x1bef68['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x44d409,'threadId':_0x22d164,'comments':_0x5d8c87['map'](_0x1aab2a=>_0x1aab2a['toJSON']()),'resolvedAt':_0x3db13d,'resolvedBy':_0x20ca86?_0x20ca86['id']:_0x20ca86,'context':_0x2e5fad,'attributes':_0x268868})['then'](({comments:_0x3f4295})=>{_0x1bef68['remove'](_0xe9d87e);for(const _0x14e486 of _0x3f4295)this['_updateComment']({'channelId':_0x44d409,'threadId':_0x22d1df,'commentId':_0x14e486['commentId'],'createdAt':_0x14e486['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5b9261=>{throw console['error'](_0x5b9261),new _0x4eebb5('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4bf03b,target:_0x24c994}){const _0x4047ff=this['getCommentThread'](_0x4bf03b);if(!_0x4047ff)throw new _0x4eebb5('commentsrepository-attach-missing-comment-thread',this);const _0xd62704=this['context']['plugins']['get']('PendingActions'),_0x1a7cf4=this['context']['plugins']['get'](N),_0x17a7e9=this['_createCommentThreadView'](_0x4047ff),_0x57f868=new yt(_0x4047ff,_0x17a7e9);let _0x5ec9c6=null;_0x17a7e9['on']('change:isDirty',(_0x57cfe,_0x4a9f24,_0x49c8fb)=>{_0x49c8fb?_0x5ec9c6=_0xd62704['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5ec9c6&&(_0xd62704['remove'](_0x5ec9c6),_0x5ec9c6=null);}),this['_threadToController']['set'](_0x4047ff,_0x57f868),this['_viewToController']['set'](_0x17a7e9,_0x57f868);const _0x4af71e=new T(this['context']['locale'],_0x17a7e9);_0x4af71e['bind']('length')['to'](_0x17a7e9),_0x4af71e['bind']('isDirty')['to'](_0x17a7e9,'isDirty',_0x17a7e9,'length',(_0x4a124e,_0x5e072a)=>_0x4a124e||!_0x5e072a),_0x4af71e['bind']('isActive')['to'](_0x17a7e9),_0x4af71e['type']='comment';const _0x463904=new d({'view':_0x4af71e,'target':_0x24c994,'type':'comment','isVisible':!_0x4047ff['isResolved']});return _0x17a7e9['on']('escape',()=>{_0x463904['fire']('escape');}),this['_bindAnnotationToEditors'](_0x17a7e9,_0x463904),_0x1a7cf4['add'](_0x463904),_0x463904;}['_bindAnnotationToEditors'](_0x1ae264,_0x48eee3){this['listenTo'](_0x1ae264,'editorReady',(_0x4a706e,_0x3a4f06)=>{const _0x4989c2=_0x3a4f06['ui']['view']['body']['bodyCollectionContainer'];_0x48eee3['focusableElements']['add'](_0x4989c2),this['context']instanceof _0x2ca61f&&this['context']['ui']['focusTracker']['add'](_0x4989c2);},{'priority':'highest'}),this['listenTo'](_0x1ae264,'editorDestroyed',(_0xe6aea7,_0x383aef)=>{const _0x281757=_0x383aef['ui']['view']['body']['bodyCollectionContainer'];_0x48eee3['focusableElements']['has'](_0x281757)&&_0x48eee3['focusableElements']['remove'](_0x281757),this['context']instanceof _0x2ca61f&&this['context']['ui']['focusTracker']['remove'](_0x281757);});}['_unbindEditors'](_0x260ee9){this['stopListening'](_0x260ee9,'editorReady'),this['stopListening'](_0x260ee9,'editorDestroyed');}['_createCommentThreadView'](_0x2fcd59){const _0x21c372=this['context']['plugins']['get'](it),{config:_0x54ddf3,locale:_0x380da9}=this['context'],_0x591cd6=mt(_0x54ddf3['get']('locale'));return new(0x0,(_0x54ddf3['get']('comments'))['CommentThreadView'])(_0x380da9,_0x2fcd59,_0x21c372['me'],{'editorConfig':{..._0x54ddf3['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x54ddf3['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x54ddf3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x54ddf3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x54ddf3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x591cd6,'CommentView':_0x54ddf3['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x6f2720,channelId:_0x1e579f,resolvedAt:_0x3c101f,resolvedBy:_0x1a9096,isFromAdapter:_0xd6730a}){if(!this['hasCommentThread'](_0x6f2720))throw new _0x4eebb5('commentsrepository-missing-comment-thread',null,{'threadId':_0x6f2720});const _0x5792f3=this['getCommentThread'](_0x6f2720);if(_0x5792f3['isResolved'])throw new _0x4eebb5('commentsrepository-resolved-comment-thread',null,{'threadId':_0x6f2720});const _0x4c8284=this['context']['plugins']['get'](it);if(_0x5792f3['resolvedBy']=_0x4c8284['getUser'](_0x1a9096),_0x5792f3['resolvedAt']=_0x3c101f,_0xd6730a||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x52dcd0=this['context']['plugins']['get']('PendingActions'),_0xd846b4=_0x52dcd0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1e579f,'threadId':_0x6f2720})['then'](({resolvedAt:_0x333b55,resolvedBy:_0x2bce92})=>{_0x52dcd0['remove'](_0xd846b4),_0x5792f3['resolvedBy']['id']!==_0x2bce92&&(_0x5792f3['resolvedBy']=_0x4c8284['getUser'](_0x2bce92)),_0x5792f3['resolvedAt']=_0x333b55;})['catch'](_0x1559ef=>{throw console['error'](_0x1559ef),new _0x4eebb5('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x22a29a,channelId:_0x49e3cc,isFromAdapter:_0x4d949a}){if(!this['hasCommentThread'](_0x22a29a))throw new _0x4eebb5('commentsrepository-missing-comment-thread',null,{'threadId':_0x22a29a});const _0x23dd42=this['getCommentThread'](_0x22a29a);if(!_0x23dd42['isResolved'])throw new _0x4eebb5('commentsrepository-reopen-comment-thread',null,{'threadId':_0x22a29a});if(_0x23dd42['resolvedBy']=null,_0x23dd42['resolvedAt']=null,_0x4d949a||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3a4fd3=this['context']['plugins']['get']('PendingActions'),_0x244433=_0x3a4fd3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x49e3cc,'threadId':_0x22a29a})['then'](()=>_0x3a4fd3['remove'](_0x244433))['catch'](_0x11bd68=>{throw console['error'](_0x11bd68),new _0x4eebb5('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x2fb591,isFromAdapter:_0x1e0909}){const _0x47b227=this['getCommentThread'](_0x2fb591);if(!_0x47b227)throw new _0x4eebb5('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x2fb591),this['_threads']['delete'](_0x2fb591),!_0x47b227['isSubmitted']||_0x1e0909||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x46a726=this['context']['plugins']['get']('PendingActions'),{channelId:_0x55ff62}=_0x47b227,_0x4d328f=_0x46a726['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x55ff62,'threadId':_0x2fb591})['then'](()=>_0x46a726['remove'](_0x4d328f))['catch'](_0x49b632=>{throw console['error'](_0x49b632),new _0x4eebb5('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4ff8c5,unlinkedAt:_0x174fc3,context:_0x5e095d,attributes:_0x1327c8,isFromAdapter:_0x3a59e9}){if('string'!=typeof _0x4ff8c5)throw new _0x4eebb5('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4ff8c5});if(!this['hasCommentThread'](_0x4ff8c5))throw new _0x4eebb5('commentsrepository-missing-comment-thread',null,{'threadId':_0x4ff8c5});const _0x2932d2=this['getCommentThread'](_0x4ff8c5);let _0x2f52e4=!0x1;if(void 0x0!==_0x5e095d&&_0x2932d2['context']!==_0x5e095d&&(_0x2932d2['context']=_0x5e095d,_0x2f52e4=!0x0),void 0x0!==_0x174fc3&&_0x2932d2['unlinkedAt']!==_0x174fc3&&(_0x2932d2['unlinkedAt']=_0x174fc3,_0x2f52e4=!0x0),_0x1327c8&&!It(_0x1327c8,_0x2932d2['attributes'])&&(_0x2932d2['attributes']=_0x1327c8,_0x2f52e4=!0x0),!_0x2f52e4)return Promise['resolve']();if(!_0x2932d2['isSubmitted']||_0x3a59e9||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x59bac0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x396537}=_0x2932d2,_0x4c5666=_0x59bac0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x396537,'threadId':_0x4ff8c5,'context':_0x5e095d,'unlinkedAt':_0x174fc3,'attributes':_0x1327c8})['then'](()=>_0x59bac0['remove'](_0x4c5666))['catch'](_0x1331a=>{throw console['error'](_0x1331a),new _0x4eebb5('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x5c8a90){const _0x261523=this['context']['plugins']['get'](N),_0x44c8c0=this['getCommentThread'](_0x5c8a90);if(this['_threadToController']['has'](_0x44c8c0)){const _0x19bead=this['_threadToController']['get'](_0x44c8c0),_0x273356=_0x19bead['view'],_0xb5ea12=_0x261523['getByInnerView'](_0x273356);this['_threadToController']['delete'](_0x44c8c0),this['_viewToController']['delete'](_0x273356),_0xb5ea12&&_0x261523['remove'](_0xb5ea12),_0x19bead['destroy'](),_0x273356['destroy']()['then'](()=>{this['_unbindEditors'](_0x273356);});}}['_updateActiveAnnotation']({threadId:_0x4bef0a,resolvedAt:_0x4fbd03}){const _0x240d7a=!!_0x4fbd03,_0x4d33ae=this['context']['plugins']['get'](N),_0x44b486=this['getCommentThread'](_0x4bef0a);if(this['_threadToController']['has'](_0x44b486)){const _0xd5a349=this['_threadToController']['get'](_0x44b486)['view'],_0x1a6c6f=_0x4d33ae['getByInnerView'](_0xd5a349);_0x1a6c6f&&(_0x240d7a&&_0x4d33ae['_removeActiveAnnotation'](_0x1a6c6f),_0x1a6c6f['refreshVisibility']());}}['_getExternalAuthor'](_0x402d73){const _0x281b6e=this['context']['plugins']['get'](it),_0x422a3f=lt('external:'+_0x402d73),_0x4e21ae=_0x281b6e['getUser'](_0x422a3f);return _0x4e21ae||_0x281b6e['addUser']({'id':_0x422a3f,'name':_0x402d73});}['_createNewComment']({threadId:_0xbc5462,commentId:_0x54d565=_0x216da5(),content:_0x1a2167,authorId:_0x215e33,createdAt:_0x1b213e,attributes:_0x258611}){if('string'!=typeof _0x54d565)throw new _0x4eebb5('commentsrepository-invalid-commentid');if('string'!=typeof _0x215e33)throw new _0x4eebb5('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1a2167||!_0x1a2167['trim']())throw new _0x4eebb5('commentsrepository-invalid-comment-content');const _0x339f7b=this['context']['plugins']['get'](it)['getUser'](_0x215e33);if(!_0x339f7b)throw new _0x4eebb5('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x215e33});let _0x144c88=null,_0x1bb646=_0x1b213e;return _0x258611&&_0x258611['@external']&&(_0x144c88=this['_getExternalAuthor'](_0x258611['@external']['authorName']),_0x1bb646=new Date(_0x258611['@external']['createdAt'])),new re(this,{'threadId':_0xbc5462,'id':_0x54d565,'author':_0x144c88||_0x339f7b,'creator':_0x339f7b,'content':_0x1a2167,'createdAt':_0x1b213e,'authoredAt':_0x1bb646,'attributes':_0x258611});}['_addComment'](_0x4aaadf){let {threadId:_0xbf6c5c,content:_0x1ef981,attributes:_0x7fb0f4,isFromAdapter:_0x4f84ae}=_0x4aaadf;const _0x132b1a=this['getCommentThread'](_0x4aaadf['threadId']);if(!_0x132b1a)throw new _0x4eebb5('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x39fda4=this['_createNewComment'](_0x4aaadf),{id:_0x2b4c2c}=_0x39fda4;if(_0x132b1a['_add'](_0x39fda4),_0x4f84ae||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x132b1a['isSubmitted'])return Promise['resolve']();const _0x46fd22=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3226e4}=_0x132b1a,_0x35c3b3=_0x46fd22['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x7fb0f4||(_0x7fb0f4={}),this['adapter']['addComment']({'channelId':_0x3226e4,'threadId':_0xbf6c5c,'commentId':_0x2b4c2c,'content':_0x1ef981,'attributes':_0x7fb0f4})['then'](_0x28a020=>{_0x46fd22['remove'](_0x35c3b3),_0x28a020&&this['_updateComment']({'channelId':_0x3226e4,'threadId':_0xbf6c5c,'commentId':_0x2b4c2c,'createdAt':_0x28a020['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3a6325=>{throw console['error'](_0x3a6325),new _0x4eebb5('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x597cde,commentId:_0x1493c9,content:_0x1f506b,createdAt:_0x1ba631,attributes:_0x4926b7,isFromAdapter:_0x2880b5}){if(void 0x0!==_0x1f506b&&('string'!=typeof _0x1f506b||!_0x1f506b['trim']()['length']))throw new _0x4eebb5('commentsrepository-update-comment-invalid-content');const _0x1f23d9=this['getCommentThread'](_0x597cde),_0x31f2b7=_0x1f23d9['getComment'](_0x1493c9);if(!_0x31f2b7)throw new _0x4eebb5('commentsrepository-update-missing-comment',this);let _0x323ccf=!0x1;if(_0x1f506b&&_0x1f506b!==_0x31f2b7['content']&&(_0x31f2b7['isEditable']||_0x2880b5)&&(_0x31f2b7['content']=_0x1f506b,_0x323ccf=!0x0),_0x1ba631&&_0x1ba631!==_0x31f2b7['createdAt']&&(_0x31f2b7['createdAt']=_0x1ba631,_0x31f2b7['attributes']&&_0x31f2b7['attributes']['@external']||(_0x31f2b7['authoredAt']=_0x1ba631),_0x323ccf=!0x0),_0x4926b7&&!It(_0x4926b7,_0x31f2b7['attributes'])&&(_0x31f2b7['attributes']=_0x4926b7,_0x323ccf=!0x0),!_0x323ccf)return Promise['resolve']();if(_0x1f23d9['fire']('commentUpdated'),_0x2880b5||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x5328b2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x113ab1}=this['getCommentThread'](_0x31f2b7['threadId']),_0xb9f34d=_0x5328b2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x113ab1,'threadId':_0x597cde,'commentId':_0x1493c9,'content':_0x1f506b,'attributes':_0x4926b7})['then'](()=>_0x5328b2['remove'](_0xb9f34d))['catch'](_0x347d47=>{throw console['error'](_0x347d47),new _0x4eebb5('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x226389,commentId:_0xaf2562,isFromAdapter:_0x8cf55d}){const _0x64bd09=this['getCommentThread'](_0x226389),_0x154166=_0x64bd09['getComment'](_0xaf2562);if(!_0x154166)throw new _0x4eebb5('commentsrepository-remove-missing-comment',this);if(_0x64bd09['_remove'](_0x154166),_0x8cf55d||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2b1e10=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5ce504}=_0x64bd09,_0x334165=_0x2b1e10['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x5ce504,'threadId':_0x226389,'commentId':_0xaf2562})['then'](()=>_0x2b1e10['remove'](_0x334165))['catch'](_0x3a655f=>{throw console['error'](_0x3a655f),new _0x4eebb5('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x57b099(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x7c58c5,_0x7fc2cc){super();const _0x2b5690=_0x7fc2cc['isResolvable'];this['channelId']=_0x7fc2cc['channelId'],this['id']=_0x7fc2cc['id'],this['comments']=new _0x556725(),this['_repository']=_0x7c58c5,this['_isAttached']=!0x1,this['_isSubmitted']=_0x7fc2cc['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x7c58c5,'_permissions',_0x7c58c5,'_readOnlyChannels',()=>_0x7c58c5['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x7c58c5,'_permissions',()=>_0x7c58c5['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x7c58c5,'_permissions',()=>{const _0x26a3ec=_0x7c58c5['getPermissions'](this['channelId']);return _0x26a3ec['write']||_0x26a3ec['admin'];}),this['bind']('isResolvable')['to'](_0x7c58c5,'_permissions',()=>_0x2b5690&&_0x7c58c5['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x7fc2cc['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1fbd68,_0xc58a30)=>_0x1fbd68?_0xc58a30?_0x1fbd68<_0xc58a30?_0x1fbd68:_0xc58a30:_0x1fbd68:_0xc58a30),this['set']('unlinkedAt',_0x7fc2cc['unlinkedAt']||null),this['set']('resolvedAt',_0x7fc2cc['resolvedAt']||null),this['set']('resolvedBy',_0x7fc2cc['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x187149=>!!_0x187149),this['set']('attributes',_0x7fc2cc['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x29c34e,_0x113c42)=>_0x29c34e+_0x113c42['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x108dc5,id:_0x4cdb19}=this;this['_repository']['fire'](_t('submitCommentThread',_0x108dc5),{'channelId':_0x108dc5,'threadId':_0x4cdb19});}['setUnlinkedAt'](_0x5ab23d){this['_update']({'unlinkedAt':_0x5ab23d});}['resolve']({resolvedAt:_0x4b33f7=new Date(),resolvedBy:_0x9aa249=null,isFromAdapter:_0x1aee85=!0x1}={}){const _0x29b4a0=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x1d9899,id:_0x36e716}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x1d9899),{'channelId':_0x1d9899,'threadId':_0x36e716,'resolvedAt':_0x4b33f7,'resolvedBy':_0x9aa249||_0x29b4a0['id'],'isFromAdapter':_0x1aee85});}['reopen']({isFromAdapter:_0x4dbbee=!0x1}={}){const {channelId:_0x203e9b,id:_0x14098d}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x203e9b),{'channelId':_0x203e9b,'threadId':_0x14098d,'isFromAdapter':_0x4dbbee});}['setContext'](_0x47b741){this['context']||this['_update']({'context':_0x47b741});}['setAttribute'](_0x2b9f56,_0x1bdf92){const _0x5a5998=pt(this['attributes']);wt(_0x5a5998,_0x2b9f56,_0x1bdf92),this['_update']({'attributes':_0x5a5998});}['removeAttribute'](_0x2dde4c){const _0x1bff22=pt(this['attributes']);At(_0x1bff22,_0x2dde4c),this['_update']({'attributes':_0x1bff22});}['remove']({isFromAdapter:_0x239fa5=!0x1}={}){const {channelId:_0x15d3a7,id:_0x2ae2e7}=this;this['_repository']['fire'](_t('removeCommentThread',_0x15d3a7),{'channelId':_0x15d3a7,'threadId':_0x2ae2e7,'isFromAdapter':_0x239fa5});}['attachTo'](_0x569119){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x569119});}['addComment'](_0x5e26d4){const {channelId:_0x98aea2,id:_0x468002}=this;this['_repository']['fire'](_t('addComment',_0x98aea2,_0x468002),Object['assign']({'channelId':_0x98aea2,'threadId':_0x468002},_0x5e26d4));}['getComment'](_0x252d46){if('string'!=typeof _0x252d46)throw new _0x4eebb5('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x252d46});return this['comments']['get'](_0x252d46);}['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'](_0x663988=>_0x663988['toJSON']()),'attributes':this['attributes']};}['_add'](_0x6440f4){return this['listenTo'](_0x6440f4,'change:authoredAt',()=>{const _0x2a0a8f=this['_findOptimalIndex'](_0x6440f4),_0x5095e7=this['comments'];_0x2a0a8f-0x1!=_0x5095e7['getIndex'](_0x6440f4)&&_0x2a0a8f+0x1!=_0x5095e7['getIndex'](_0x6440f4)&&(this['_remove'](_0x6440f4),this['_add'](_0x6440f4));}),this['comments']['add'](_0x6440f4,this['_findOptimalIndex'](_0x6440f4));}['_update'](_0xa18db3){const {channelId:_0x2cae02,id:_0x515f68}=this;this['_repository']['fire'](_t('updateCommentThread',_0x2cae02),{..._0xa18db3,'channelId':_0x2cae02,'threadId':_0x515f68});}['_remove'](_0xcf5890){return this['stopListening'](_0xcf5890),_0xcf5890['destroy'](),this['comments']['remove'](_0xcf5890);}['_findOptimalIndex'](_0x34a80a){const _0x2906e2=this['comments']['find'](_0x3614a3=>new Date(_0x3614a3['authoredAt'])['getTime']()>new Date(_0x34a80a['authoredAt'])['getTime']());return _0x2906e2?this['comments']['getIndex'](_0x2906e2):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x57b099(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x51b6bd,_0x2a298f){super();const _0x15ab97=_0x51b6bd['context']['plugins']['get'](it)['me'],_0x25e3d3=_0x51b6bd['getCommentThread'](_0x2a298f['threadId']),_0x2f3151=0x0===_0x25e3d3['comments']['length'],_0x3687a4=_0x15ab97===_0x2a298f['author'];this['id']=_0x2a298f['id'],this['threadId']=_0x2a298f['threadId'],this['author']=_0x2a298f['author'],this['creator']=_0x2a298f['creator'],this['isExternal']=Boolean(_0x2a298f['attributes']&&_0x2a298f['attributes']['@external']),this['set']('content',_0x2a298f['content']),this['createdAt']=_0x2a298f['createdAt']||new Date(),this['set']('authoredAt',_0x2a298f['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x25e3d3,'resolvedAt'),this['set']('attributes',_0x2a298f['attributes']||{}),this['bind']('isEditable')['to'](_0x51b6bd,'_permissions',()=>{const _0x182e2a=_0x51b6bd['getPermissions'](_0x25e3d3['channelId'])['write'],_0x39c96b=_0x51b6bd['getPermissions'](_0x25e3d3['channelId'])['modifyAll'];return _0x3687a4&&_0x182e2a||!_0x3687a4&&_0x39c96b;}),this['bind']('isRemovable')['to'](_0x25e3d3,'isRemovable',_0x51b6bd,'_permissions',_0x3fa56b=>{const _0x2e9acb=_0x51b6bd['getPermissions'](_0x25e3d3['channelId'])['write'],_0x2f8bcf=_0x51b6bd['getPermissions'](_0x25e3d3['channelId'])['modifyAll'];return _0x3687a4&&_0x2e9acb||_0x3fa56b&&_0x2f3151||!_0x3687a4&&_0x2f8bcf&&!_0x2f3151;}),this['bind']('isReadOnly')['to'](_0x25e3d3,'isReadOnly'),this['_repository']=_0x51b6bd;}get['weight'](){return Math['max'](function(_0x370622){const _0x5a7751=document['createElement']('div');return _0x5a7751['innerHTML']=_0x370622,_0x5a7751['textContent']['length'];}(this['content']),0xc8);}['update'](_0x3df974){const {threadId:_0x1714c7,id:_0x5c4087}=this;if(!this['_repository']['hasCommentThread'](_0x1714c7))throw new _0x4eebb5('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x27a2cb}=this['_repository']['getCommentThread'](_0x1714c7);this['_repository']['fire'](_t('updateComment',_0x27a2cb,_0x1714c7),{'channelId':_0x27a2cb,'threadId':_0x1714c7,'commentId':_0x5c4087,..._0x3df974});}['setAttribute'](_0x5c8884,_0x40479b){const _0x197c4c=pt(this['attributes']);wt(_0x197c4c,_0x5c8884,_0x40479b),this['update']({'attributes':_0x197c4c});}['removeAttribute'](_0x16d635){const _0x504ade=pt(this['attributes']);At(_0x504ade,_0x16d635),this['update']({'attributes':_0x504ade});}['remove'](_0xa6240d={}){if(!_0xa6240d['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x1edff3,id:_0x4411d5}=this;if(!this['_repository']['hasCommentThread'](_0x1edff3))throw new _0x4eebb5('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0xf1a1da}=this['_repository']['getCommentThread'](_0x1edff3);this['_repository']['fire'](_t('removeComment',_0xf1a1da,_0x1edff3),{'channelId':_0xf1a1da,'threadId':_0x1edff3,'commentId':_0x4411d5,..._0xa6240d});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x50b79e,..._0x180895){for(const _0x51ed42 of _0x180895)void 0x0!==_0x51ed42&&(_0x50b79e+=':'+String(_0x51ed42));return _0x50b79e;}class J extends _0x16a21a{['refresh'](){const _0x1a36aa=this['editor']['model']['document']['selection'];for(const _0x3edbba of _0x1a36aa['getRanges']())if(this['_hasContent'](_0x3edbba))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x22bf3a=_0x216da5()}={}){const _0x9aa591=this['editor']['model'],_0x398fc5=[];for(const _0x379f0e of _0x9aa591['document']['selection']['getRanges']())this['_hasContent'](_0x379f0e)&&_0x398fc5['push'](this['_trimToContent'](_0x379f0e));_0x9aa591['change'](_0x3e7ed6=>{for(const _0x4d456b of _0x398fc5){const _0x1ae468=_0x216da5()['substr'](0x1,0x5),_0x5338da='comment:'+_0x22bf3a+':'+_0x1ae468;_0x3e7ed6['addMarker'](_0x5338da,{'range':_0x4d456b,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x822928){for(const _0x1609f0 of _0x822928['getItems']())if(this['_itemIsContent'](_0x1609f0))return!0x0;return!0x1;}['_itemIsContent'](_0x129b79){return _0x129b79['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x129b79)&&!_0x129b79['is']('element','tableCell');}['_trimToContent'](_0x5859b1){const _0x6eabda=_0x350f79=>!this['_itemIsContent'](_0x350f79['item']),_0x50b948=_0x5859b1['start']['getLastMatchingPosition'](_0x6eabda),_0xb19f11=_0x5859b1['end']['getLastMatchingPosition'](_0x6eabda,{'direction':'backward'});return this['editor']['model']['createRange'](_0x50b948,_0xb19f11);}}class P extends _0x50d6a7{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17f235){super(_0x17f235),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x493637=this['editor'],_0x1b0923=_0x493637['model']['document']['selection'],_0x57e58e=_0x4d24b5(()=>this['refreshSelectedViews'](),0xa);_0x1b0923['on']('change:range',(_0x534185,_0x5ed8c7)=>{_0x5ed8c7['directChange']&&(_0x57e58e['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x493637['editing']['view']['document'],'change:isFocused',(_0x14abbe,_0x2a2a51,_0x43592f)=>{_0x43592f&&_0x57e58e();}),this['listenTo'](_0x493637['ui']['focusTracker'],'change:isFocused',(_0x53c96b,_0x194213,_0x18248e)=>{_0x18248e||_0x493637['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x7156f7=>this['_editorAnnotationsData']['has'](_0x7156f7['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x5d89ee){if(this['_editorAnnotations']['has'](_0x5d89ee['view']))return;this['_editorAnnotations']['add'](_0x5d89ee['view']),this['editor']['ui']['focusTracker']['add'](_0x5d89ee['view']['element']);const _0x805bed=this['editor']['plugins']['get'](N);this['listenTo'](_0x805bed['collection'],'remove',(_0xe30c7e,_0xf9ac9)=>{this['editor']['ui']['focusTracker']['remove'](_0xf9ac9['view']['element']),this['_editorAnnotations']['delete'](_0xf9ac9['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4c9a39){if('function'!=typeof _0x4c9a39)throw new _0x4eebb5('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4c9a39);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2551f7,annotations:_0x4e4efe}){const _0x323a47=[],_0x58c9ff=this['editor']['model']['document']['selection'],_0x5ab596=Array['from'](_0x58c9ff['getRanges']());for(const [_0x31d4d9,_0x300ae1]of this['_editorAnnotationsData']){const _0x55a6f0=_0x8588b1(_0x300ae1),_0x2ee6f3=_0x4e4efe['getByInnerView'](_0x31d4d9);_0x55a6f0&&_0x2ee6f3&&_0x323a47['push']({'annotation':_0x2ee6f3,'range':_0x55a6f0});}function _0x8588b1(_0x510393){for(const _0x2cf224 of _0x510393)for(const _0x1d7f1a of _0x5ab596)if(_0x2cf224['containsRange'](_0x1d7f1a,!_0x58c9ff['isCollapsed']))return _0x2cf224;return null;}return _0x323a47['sort']((_0x517cb7,_0x5e306f)=>{const _0x1ac122=_0x517cb7['range'],_0x275b90=_0x5e306f['range'];if(!_0x1ac122['isEqual'](_0x275b90)){if(_0x1ac122['containsRange'](_0x275b90,!0x0))return 0x1;if(_0x275b90['containsRange'](_0x1ac122,!0x0))return-0x1;}return _0x517cb7['annotation']==_0x2551f7?-0x1:_0x5e306f['annotation']==_0x2551f7?0x1:0x0;})['map'](_0x4665fe=>_0x4665fe['annotation']);}get['_editorAnnotationsData'](){const _0x5af45e=new Map();for(const _0x2ec29d of Array['from'](this['_dataCollectors']))for(const [_0x133f15,_0x52df88]of _0x2ec29d())_0x5af45e['set'](_0x133f15,_0x52df88);return _0x5af45e;}}class st extends _0x50d6a7{['afterInit'](){const _0xef6225=this['editor'];if(!_0xef6225['plugins']['has']('RestrictedEditingModeEditing'))return;_0xef6225['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x50d6a7{constructor(_0x2397cf){super(_0x2397cf),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x22ac7e=this['editor'],_0x447f7c=_0x22ac7e['commands']['get']('importWord'),_0x1d031d=_0x22ac7e['plugins']['get'](it);_0x447f7c&&(_0x447f7c['on']('execute',(_0x5309e6,[,_0x21f5b2])=>{_0x21f5b2['collaboration_features']={'comments':!0x0,'user_id':_0x1d031d['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x447f7c,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x3d055a,_0x1036d8){const {comment_threads:_0x3fd7ce}=_0x1036d8;_0x3fd7ce&&_0x3fd7ce['forEach'](({thread_id:_0x2ae522,comments:_0x4ca624,is_resolved:_0x7d8f07})=>{const _0x31e8f1=new Date(),_0x42030d=_0x4ca624['map'](({author:_0xa3b7a5,content:_0xb81d9,created_at:_0x35ff7b})=>({'content':_0xb81d9,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x31e8f1,'attributes':{'@external':{'authorName':_0xa3b7a5,'createdAt':_0x35ff7b?new Date(_0x35ff7b):new Date(),'source':'importWord'}}})),_0x90043d=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x90043d,'threadId':_0x2ae522,'comments':_0x42030d,'resolvedAt':_0x7d8f07?_0x31e8f1:null});});}}class at extends _0x50d6a7{constructor(_0x4cf08c){super(_0x4cf08c),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x537e28=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x537e28,'contentInsertion',(_0x3ccad9,_0x3c5944)=>this['_removeMarkersWithoutThreads'](_0x3c5944['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x633771){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x633771;const _0x5a466d=this['editor']['plugins']['get']('CommentsRepository');for(const _0x52de6c of _0x633771['keys']()){const [_0x5f5900,_0x519f5c]=_0x52de6c['split'](':');'comment'!=_0x5f5900||_0x5a466d['hasCommentThread'](_0x519f5c)||_0x633771['delete'](_0x52de6c);}return _0x633771;}['_registerMarkerInClipboardPipeline'](){const _0x3d2958=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xead8d=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xead8d&&_0x3d2958['_registerMarkerToCopy']('comment',_0xead8d);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x169354){switch(_0x169354){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x50d6a7{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c8747){super(_0x5c8747),this['set']('isThreadsLoadingPaused',!0x0),_0x5c8747['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x495f75,_0x429886,_0x281f36,_0x18d345)=>{const _0x25b5ae=_0x281f36?he(_0x281f36)['id']:null;if(_0x5c8747['model']['change'](()=>{if(_0x25b5ae){const _0x2d3e89=this['getAllMarkersForId'](_0x25b5ae);for(const _0x4b2679 of _0x2d3e89)_0x5c8747['editing']['reconvertMarker'](_0x4b2679);}if(_0x18d345){const {id:_0x7a1b8f}=he(_0x18d345),_0x495634=this['getAllMarkersForId'](_0x7a1b8f);for(const _0x2f7db2 of _0x495634)_0x5c8747['editing']['reconvertMarker'](_0x2f7db2);}}),_0x25b5ae){const _0x3c57a8=_0x5c8747['plugins']['get'](o)['getCommentThread'](_0x25b5ae);_0x3c57a8&&_0x3c57a8['isResolved']&&this['scrollToThreadMarker'](_0x25b5ae);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2044e1=this['editor'],_0x201c80=_0x2044e1['plugins']['get'](o),_0x3cb432=_0x2044e1['config']['get']('collaboration.channelId');_0x2044e1['commands']['add']('addCommentThread',new J(_0x2044e1)),this['listenTo'](_0x2044e1,'change:isReadOnly',(_0x52c468,_0x557879,_0x54f4f2)=>{_0x201c80['switchReadOnly'](_0x54f4f2,_0x2044e1['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x201c80,ut('addCommentThread',_0x3cb432),(_0x5938cc,{threadId:_0x1fcae1})=>{const _0x4176fa=this['editor']['plugins']['get'](o)['getCommentThread'](_0x1fcae1);_0x4176fa&&_0x4176fa['unlinkedAt']&&this['_attachArchivedThread'](_0x1fcae1);}),this['listenTo'](_0x201c80,ut('removeCommentThread',_0x3cb432),(_0x9c3b89,{threadId:_0x43d4f0})=>{_0x2044e1['model']['enqueueChange']({'isUndoable':!0x1},_0x4015f5=>{const _0xfbc507=this['getAllMarkersForId'](_0x43d4f0);for(const _0x20308b of _0xfbc507)_0x4015f5['removeMarker'](_0x20308b);});}),this['listenTo'](_0x201c80,ut('resolveCommentThread',_0x3cb432),(_0x168208,{threadId:_0x59927f})=>{(this['_reconvertMarkers'](_0x59927f),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x59927f)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x201c80,ut('reopenCommentThread',_0x3cb432),(_0x229603,{threadId:_0x659089})=>{this['_reconvertMarkers'](_0x659089);},{'priority':'low'}),this['listenTo'](_0x201c80,ut('addComment',_0x3cb432),(_0x308ce7,{threadId:_0x31fabb,isFromAdapter:_0x5f1562})=>{const _0x3e0d64=this['getAllMarkersForId'](_0x31fabb);if(_0x5f1562||0x0==_0x3e0d64['length']||!_0x201c80['hasCommentThread'](_0x31fabb))return;0x1===_0x201c80['getCommentThread'](_0x31fabb)['length']&&_0x2044e1['model']['enqueueChange']({'isUndoable':!0x1},_0x291e27=>{for(const _0x36119e of _0x3e0d64)_0x291e27['updateMarker'](_0x36119e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x2b8487){const _0x17f128=_0x5f5118([0x66,0x6d,0x51,0x39,0x61,0x48,0x70,0x6f,0x4f,0x4d,0x77,0x54,0x4e,0x6e,0x42,0x76,0x49,0x50,0x75,0x6b,0x5a,0x56,0x30,0x31,0x46,0x79,0x4a,0x63,0x47,0x58,0x37,0x4c,0x36,0x55,0x38,0x67,0x53,0x73,0x33,0x62,0x44,0x52,0x64,0x71,0x74,0x6a,0x57,0x68,0x4b,0x69,0x59,0x7a,0x6c,0x34,0x72,0x45,0x41,0x32,0x43,0x65,0x35,0x78]),_0x3e32d4=0x605c4fb6,_0xee86ec=0x605b173e^_0x3e32d4,_0x228b01=window[_0x5f5118([0x44,0x61,0x74,0x65])][_0x5f5118([0x6e,0x6f,0x77])](),_0x103c06=_0x2b8487[_0x5f5118([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x257f97=new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17b958=>{_0x103c06[_0x5f5118([0x6f,0x6e,0x63,0x65])](_0x5f5118([0x72,0x65,0x61,0x64,0x79]),_0x17b958);}),_0x3687c7={[_0x5f5118([0x6b,0x74,0x79])]:_0x5f5118([0x45,0x43]),[_0x5f5118([0x75,0x73,0x65])]:_0x5f5118([0x73,0x69,0x67]),[_0x5f5118([0x63,0x72,0x76])]:_0x5f5118([0x50,0x2d,0x32,0x35,0x36]),[_0x5f5118([0x78])]:_0x5f5118([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]),[_0x5f5118([0x79])]:_0x5f5118([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]),[_0x5f5118([0x61,0x6c,0x67])]:_0x5f5118([0x45,0x53,0x32,0x35,0x36])},_0x1d40f4=_0x103c06[_0x5f5118([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f5118([0x67,0x65,0x74])](_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a9b09(){let _0x49b043,_0x5ec188=null,_0x9e4aab=null;try{if(_0x1d40f4==_0x5f5118([0x47,0x50,0x4c]))return _0x5f5118([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49b043=_0x588ca(),!_0x49b043)return _0x5f5118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49b043[_0x5f5118([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9e4aab=_0x40409d(_0x49b043[_0x5f5118([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49b043[_0x5f5118([0x6a,0x74,0x69])])),await _0x3ebb00()?_0x4d3de2()?_0x46dbdc()?_0x5f5118([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3bd807()?(_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5118([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ec188=_0x219bb2(_0x5f5118([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5118([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ec188=_0x219bb2(_0x5f5118([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5118([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x5ec188=_0x219bb2(_0x5f5118([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ecd06()):_0x5f5118([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5118([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f5118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2d456c){return _0x5f5118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46dbdc(){const _0x304b67=[_0x5f5118([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f5118([0x74,0x72,0x69,0x61,0x6c])][_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x228b01/0x3e8:0xe10*_0xee86ec;return _0x49b043[_0x5f5118([0x65,0x78,0x70])]<_0x304b67;}function _0x4d3de2(){const _0x46e6f3=_0x49b043[_0x5f5118([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x46e6f3)return!0x1;if(_0x46e6f3[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5118([0x2a])))return!0x0;if(_0x46e6f3[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5118([0x43,0x4d,0x54])))return!0x0;if(_0x46e6f3[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5118([0x52,0x43,0x4d,0x54]))){if(_0x58f124())return!0x0;if(_0x208afa()||_0x27c039())return!0x0;}return!0x1;}function _0x3bd807(){const _0xaa0005=_0x49b043[_0x5f5118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xaa0005||0x0==_0xaa0005[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x217299}=new URL(window[_0x5f5118([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xaa0005[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x217299))return!0x0;const _0x10d0a9=_0x217299[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])](_0x5f5118([0x2e]));return _0xaa0005[_0x5f5118([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33d25f=>_0x33d25f[_0x5f5118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5118([0x2a])))[_0x5f5118([0x6d,0x61,0x70])](_0x26c146=>_0x26c146[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])](_0x5f5118([0x2e])))[_0x5f5118([0x73,0x6f,0x6d,0x65])](_0xb3d3c=>_0x10d0a9[_0x5f5118([0x65,0x76,0x65,0x72,0x79])]((_0x3b2916,_0x4dc75f)=>_0xb3d3c[_0x4dc75f]===_0x3b2916||_0xb3d3c[_0x4dc75f]===_0x5f5118([0x2a])));}function _0x1ecd06(){return _0x5ec188&&_0x9e4aab?new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x219fd1,_0x17d4c9)=>{_0x5ec188[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x219fd1,_0x17d4c9),_0x9e4aab[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x571f6d=>{_0x571f6d!=_0x5f5118([0x56,0x61,0x6c,0x69,0x64])&&_0x219fd1(_0x571f6d);},_0x17d4c9);}):_0x5ec188||_0x9e4aab||_0x5f5118([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40409d(_0xf79170,_0x37b258){return new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x117ad2=>{if(_0x2c6bfa())return _0x117ad2(_0x5f5118([0x56,0x61,0x6c,0x69,0x64]));_0x447a04(),_0x103c06[_0x5f5118([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f5118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44b086=!0x1;const _0x558f3b=_0x216da5();function _0x195027(_0x4d9688){return!!_0x4d9688&&(typeof _0x4d9688===_0x5f5118([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d9688===_0x5f5118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d9688[_0x5f5118([0x74,0x68,0x65,0x6e])]===_0x5f5118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d9688[_0x5f5118([0x63,0x61,0x74,0x63,0x68])]===_0x5f5118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x455b09(_0x59ff55){_0x4b8d97(_0x59ff55)[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x1323f4=>{if(!_0x1323f4||_0x1323f4[_0x5f5118([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f5118([0x6f,0x6b]))return _0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41aada(_0x54eb75(_0x558f3b+_0x37b258))!=_0x1323f4[_0x5f5118([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5118([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x3d8e9d=>(_0x1946be(),_0x3d8e9d),()=>{const _0x2eee8b=_0xb5cf27();return null==_0x2eee8b?(_0x1946be(),_0x5f5118([0x56,0x61,0x6c,0x69,0x64])):_0x5f5118(_0x228b01-_0x2eee8b>(0x4450cbb6^_0x3e32d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x117ad2)[_0x5f5118([0x63,0x61,0x74,0x63,0x68])](()=>{_0x117ad2(_0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x8718c3=0x606aa136^_0x3e32d4;function _0x1946be(){const _0x15e1aa=_0x5f5118([0x6c,0x6c,0x63,0x74,0x2d])+_0x41aada(_0x54eb75(_0xf79170)),_0x408d01=_0x2a28de(_0x41aada(window[_0x5f5118([0x4d,0x61,0x74,0x68])][_0x5f5118([0x63,0x65,0x69,0x6c])](_0x228b01/_0x8718c3)));window[_0x5f5118([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5118([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15e1aa,_0x408d01);}function _0xb5cf27(){const _0x4fd99e=_0x5f5118([0x6c,0x6c,0x63,0x74,0x2d])+_0x41aada(_0x54eb75(_0xf79170)),_0x27d9b3=window[_0x5f5118([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5118([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fd99e);return _0x27d9b3?window[_0x5f5118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a28de(_0x27d9b3),0x10)*_0x8718c3:null;}function _0x4b8d97(_0x44c4dd){return new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ec8c7,_0x2873bd)=>{_0x44c4dd[_0x5f5118([0x74,0x68,0x65,0x6e])](_0x5ec8c7,_0x2873bd),window[_0x5f5118([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2873bd,0x605d9b76^_0x3e32d4);});}}_0x103c06[_0x5f5118([0x6f,0x6e])](_0x5f5118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x207293,_0x4e27a8)=>{if(_0x4e27a8[0x0]!=_0xf79170)return _0x117ad2(_0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e27a8[0x1]={..._0x4e27a8[0x1],[_0x5f5118([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x558f3b};},{[_0x5f5118([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5118([0x68,0x69,0x67,0x68])}),_0x103c06[_0x5f5118([0x6f,0x6e])](_0x5f5118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf29a61=>{_0x195027(_0xf29a61[_0x5f5118([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44b086=!0x0,_0x455b09(_0xf29a61[_0x5f5118([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f5118([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5118([0x6c,0x6f,0x77])}),_0x257f97[_0x5f5118([0x74,0x68,0x65,0x6e])](()=>{_0x44b086||_0x117ad2(_0x5f5118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c6bfa(){return _0x103c06[_0x5f5118([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5118([0x76,0x69,0x65,0x77])][_0x5f5118([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f5118([0x61,0x75,0x74,0x6f]);}function _0x447a04(){_0x103c06[_0x5f5118([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5118([0x76,0x69,0x65,0x77])][_0x5f5118([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f5118([0x61,0x75,0x74,0x6f]);}}function _0x219bb2(_0x42a8fd){const _0x5081b1=[new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x73e560=>setTimeout(_0x73e560,0x6055717a^_0x3e32d4)),_0x257f97[_0x5f5118([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x572502=>{let _0x4419f0=0x0;_0x103c06[_0x5f5118([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5118([0x6f,0x6e])](_0x5f5118([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x488fc8,_0x3161f2)=>{_0x3161f2[0x0][_0x5f5118([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4419f0++,_0x4419f0==(0x605c4e4e^_0x3e32d4)&&(_0x572502(),_0x488fc8[_0x5f5118([0x6f,0x66,0x66])]());});}))];return window[_0x5f5118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f5118([0x72,0x61,0x63,0x65])](_0x5081b1)[_0x5f5118([0x74,0x68,0x65,0x6e])](()=>_0x42a8fd);}async function _0x8ecc45(){await _0x257f97,_0x103c06[_0x5f5118([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5118([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ac1bb,_0x103c06[_0x5f5118([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5118([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ac1bb,_0x103c06[_0x5f5118([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f5118([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58f124(){return _0x506563(_0x5f5118([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3449c8(_0x5f5118([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f5118([0x73,0x74,0x61,0x74,0x65])]==_0x5f5118([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x208afa(){return _0x506563(_0x5f5118([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 _0x27c039(){return _0x506563(_0x5f5118([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x44149a(_0x39bec6){const _0x5c14aa=_0x3b399a();_0x103c06[_0x5c14aa]=_0x5f5118([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39bec6,_0x39bec6!=_0x5f5118([0x56,0x61,0x6c,0x69,0x64])&&_0x8ecc45();}function _0x3b399a(){const _0x4f4e9f=window[_0x5f5118([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f5118([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f5118([0x6e,0x6f,0x77])]())[_0x5f5118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f5118([0x2e]),'');let _0x301089=_0x5f5118([0x66]);for(let _0xa9bb81=0x0;_0xa9bb81<_0x4f4e9f[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa9bb81+=0x2){let _0x44c362=window[_0x5f5118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f4e9f[_0x5f5118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa9bb81,_0xa9bb81+0x2));_0x44c362>=_0x17f128[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44c362-=_0x17f128[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x301089+=_0x17f128[_0x44c362];}return _0x301089;}function _0x588ca(){const _0x1a7941=_0x1d40f4[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])](_0x5f5118([0x2e]));if(0x3!=_0x1a7941[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2df3cd(_0x1a7941[0x1]);function _0x2df3cd(_0x1e7448){const _0x4c97ed=_0x3443ee(_0x1e7448);return _0x4c97ed&&_0x1263e4()?_0x4c97ed:null;function _0x1263e4(){const _0x2d5ece=_0x4c97ed[_0x5f5118([0x6a,0x74,0x69])],_0x4602ad=window[_0x5f5118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5ece[_0x5f5118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d5ece[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f0742={..._0x4c97ed,[_0x5f5118([0x6a,0x74,0x69])]:_0x2d5ece[_0x5f5118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d5ece[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f0742[_0x5f5118([0x76,0x63])],_0x54eb75(_0x5f0742)==_0x4602ad;}}}async function _0x3ebb00(){let _0x57e544=!0x0;try{const _0x2dda95=_0x1d40f4[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])](_0x5f5118([0x2e])),[_0x464ebe,_0x90eef4,_0x2ca20b]=_0x2dda95;return _0x29f090(_0x464ebe),await _0x5c3f6b(_0x464ebe,_0x90eef4,_0x2ca20b),_0x57e544;}catch(_0x3a3cdd){return!0x1;}function _0x29f090(_0x895e05){const _0x12f5c2=_0x3443ee(_0x895e05);_0x12f5c2&&_0x12f5c2[_0x5f5118([0x61,0x6c,0x67])]==_0x5f5118([0x45,0x53,0x32,0x35,0x36])||(_0x57e544=!0x1);}async function _0x5c3f6b(_0x18a13e,_0x74f388,_0x40d684){const _0x2cee76=window[_0x5f5118([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f5118([0x66,0x72,0x6f,0x6d])](_0x1b94a7(_0x40d684),_0x450b66=>_0x450b66[_0x5f5118([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a1ee0=new window[(_0x5f5118([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f5118([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18a13e+_0x5f5118([0x2e])+_0x74f388),_0xce110c=window[_0x5f5118([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f5118([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xce110c)return;const _0x2a77e7=await _0xce110c[_0x5f5118([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f5118([0x6a,0x77,0x6b]),_0x3687c7,{[_0x5f5118([0x6e,0x61,0x6d,0x65])]:_0x5f5118([0x45,0x43,0x44,0x53,0x41]),[_0x5f5118([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f5118([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f5118([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xce110c[_0x5f5118([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f5118([0x6e,0x61,0x6d,0x65])]:_0x5f5118([0x45,0x43,0x44,0x53,0x41]),[_0x5f5118([0x68,0x61,0x73,0x68])]:{[_0x5f5118([0x6e,0x61,0x6d,0x65])]:_0x5f5118([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a77e7,_0x2cee76,_0x2a1ee0)||(_0x57e544=!0x1);}}function _0x3443ee(_0x58df4c){return _0x58df4c[_0x5f5118([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f5118([0x65,0x79]))?JSON[_0x5f5118([0x70,0x61,0x72,0x73,0x65])](_0x1b94a7(_0x58df4c)):null;}function _0x1b94a7(_0x568ec6){return window[_0x5f5118([0x61,0x74,0x6f,0x62])](_0x568ec6[_0x5f5118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f5118([0x2b]))[_0x5f5118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f5118([0x2f])));}function _0x54eb75(_0x2935c4){let _0x22feda=0x1505;function _0x3a4f00(_0x234808){for(let _0x5a82ed=0x0;_0x5a82ed<_0x234808[_0x5f5118([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a82ed++){const _0x355061=_0x234808[_0x5f5118([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a82ed);_0x22feda=(_0x22feda<<0x5)+_0x22feda+_0x355061,_0x22feda&=_0x22feda;}}function _0x348ad3(_0x28944d){Array[_0x5f5118([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28944d)?_0x28944d[_0x5f5118([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x348ad3):_0x28944d&&typeof _0x28944d==_0x5f5118([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f5118([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28944d)[_0x5f5118([0x73,0x6f,0x72,0x74])]()[_0x5f5118([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd3559d,_0x4e8e50])=>{_0x3a4f00(_0xd3559d),_0x348ad3(_0x4e8e50);}):_0x3a4f00(window[_0x5f5118([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28944d));}return _0x348ad3(_0x2935c4),_0x22feda>>>0x0;}function _0x41aada(_0x58bf22){return _0x58bf22[_0x5f5118([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f5118([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f5118([0x30]));}function _0x2a28de(_0x4dfaae){return _0x4dfaae[_0x5f5118([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f5118([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f5118([0x6a,0x6f,0x69,0x6e])]('');}function _0x506563(_0x23c754){return _0x103c06[_0x5f5118([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5118([0x68,0x61,0x73])](_0x23c754);}function _0x3449c8(_0x5e058b){return _0x103c06[_0x5f5118([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5118([0x67,0x65,0x74])](_0x5e058b);}function _0x2ac1bb(){}function _0x5f5118(_0x567811){return _0x567811['map'](_0x31e438=>String['fromCharCode'](_0x31e438))['join']('');}_0x44149a(await _0x2a9b09());}(this);}['destroy'](){const _0xd2297c=this['editor']['plugins']['get'](o),_0x926ea9=this['editor']['config']['get']('collaboration.channelId');for(const _0x41a86a of _0xd2297c['getCommentThreads']({'channelId':_0x926ea9}))_0xd2297c['_detachCommentThread'](_0x41a86a['id']),_0xd2297c['_threads']['delete'](_0x41a86a['id']);super['destroy']();}['hasMarkerForId'](_0x4bc639){return this['getAllMarkersForId'](_0x4bc639)['length']>0x0;}['getAllMarkersForId'](_0x99bff){const _0x1bea93=[];for(const _0x425941 of this['editor']['model']['markers'])_0x425941['name']['startsWith']('comment:'+_0x99bff)&&_0x1bea93['push'](_0x425941);return _0x1bea93;}['scrollToThreadMarker'](_0x2cd5b2){const _0x2a5943=this['_getTargetForId'](_0x2cd5b2);_0x2a5943&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x2cd5b2&&rt({'target':_0x2a5943[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x945d6c){this['editor']['model']['change'](()=>{for(const _0x4a871a of this['getAllMarkersForId'](_0x945d6c))this['editor']['editing']['reconvertMarker'](_0x4a871a);});}['_attachArchivedThread'](_0x5aafce){const _0x3797b5=this['editor']['plugins']['get'](o),_0x24fd70=this['editor']['plugins']['get'](P),_0x5c8a19=_0x3797b5['getCommentThread'](_0x5aafce);if(!_0x5c8a19['isAttached']){const _0x5612a5=_0x5c8a19['attachTo'](()=>this['_getTargetForId'](_0x5c8a19['id']));_0x24fd70['registerAnnotation'](_0x5612a5),_0x5c8a19['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x57882d=this['editor'],_0x57080e=_0x57882d['plugins']['get'](it);_0x57882d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x269e46,_0x211095)=>{const {id:_0x1413fb}=he(_0x269e46['markerName']),_0x2af681=_0x57882d['plugins']['get'](o)['getCommentThread'](_0x1413fb),_0xa2e64a=this['activeMarker']&&he(this['activeMarker'])['id']===_0x1413fb;let _0x44d2fe;if(_0x2af681&&_0x2af681['isResolved']&&!_0xa2e64a&&_0x269e46['item'])return _0x211095['consumable']['consume'](_0x269e46['item'],'addMarker:'+_0x269e46['markerName']),_0x211095['consumable']['consume'](_0x269e46['item'],'removeMarker:'+_0x269e46['markerName']),null;const _0x101c5c=['ck-comment-marker'];return _0xa2e64a&&_0x101c5c['push']('ck-comment-marker--active'),_0x44d2fe=_0x2af681&&_0x2af681['length']?_0x2af681['comments']['first']['author']['id']:_0x57080e['me']['id'],{'classes':_0x101c5c,'attributes':{'data-comment':_0x1413fb,'data-author-id':_0x44d2fe}};}}),_0x57882d['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4c21cb,{options:_0x5203ec})=>{const _0x200fe9=_0x57882d['plugins']['get'](o),_0xcbf9c9=_0x57882d['model']['markers']['get'](_0x4c21cb),{id:_0x5a3ae8,part:_0x31a133}=he(_0x4c21cb);if(_0xcbf9c9&&!_0xcbf9c9['affectsData'])return null;if(_0x5203ec['ignoreResolvedComments']){const _0x20572b=_0x200fe9['getCommentThread'](_0x5a3ae8);if(_0x20572b&&_0x20572b['isResolved'])return null;}return{'group':'comment','name':_0x31a133?_0x5a3ae8+':'+_0x31a133:_0x5a3ae8};}}),_0x57882d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x673127,{writer:_0x420bdc})=>_0x420bdc['createElement']('$marker',{'data-name':'comment:'+_0x673127['getAttribute']('id')})}),_0x57882d['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2cec48=this['editor'],_0x2d5bfa=_0x2cec48['plugins']['get'](o),_0x27a59e=new Set(),_0x52e0e2=new Set();_0x2cec48['model']['document']['registerPostFixer'](_0x124f7a=>{let _0x4e2c0c=!0x1;for(const {name:_0xe82ffa,data:_0x42c770}of _0x2cec48['model']['document']['differ']['getChangedMarkers']()){const {group:_0x27c992,id:_0x2ff6b1}=he(_0xe82ffa);let _0x21a54e=_0x42c770['newRange'];if('comment'!==_0x27c992||!_0x21a54e)continue;const _0x2c3b27='$graveyard'===_0x21a54e['root']['rootName'];_0x2c3b27||(_0x21a54e=ft(_0x21a54e,_0x2cec48['model']),!_0x21a54e||_0x21a54e['isCollapsed']||!_0x42c770['newRange']||_0x21a54e['isEqual'](_0x42c770['newRange']))?_0x2cec48['model']['hasContent'](_0x21a54e)&&!_0x2c3b27?this['isThreadsLoadingPaused']?_0x27a59e['add'](_0xe82ffa):this['_handleThreadMarker'](_0xe82ffa,_0x2ff6b1):(_0x52e0e2['add'](_0xe82ffa),_0x27a59e['delete'](_0xe82ffa),_0x124f7a['removeMarker'](_0xe82ffa),_0x4e2c0c=!0x0):(_0x124f7a['updateMarker'](_0xe82ffa,{'range':_0x21a54e}),_0x4e2c0c=!0x0);}return _0x4e2c0c;}),this['on']('change:isThreadsLoadingPaused',(_0x124093,_0x24713b,_0x3d12d0)=>{if(!_0x3d12d0&&_0x27a59e['size'])for(const _0x5e74b8 of _0x27a59e){const {id:_0x342305}=he(_0x5e74b8);_0x27a59e['delete'](_0x5e74b8),_0x2cec48['model']['markers']['get'](_0x5e74b8)&&this['_handleThreadMarker'](_0x5e74b8,_0x342305);}}),this['listenTo'](_0x2cec48['model']['document'],'change',(_0x395715,_0x2e6e9b)=>{for(const {name:_0x91615c,data:{newRange:_0x3eed50}}of _0x2cec48['model']['document']['differ']['getChangedMarkers']()){const {group:_0x37bba8,id:_0x2ee4ab}=he(_0x91615c);if('comment'!==_0x37bba8)continue;const _0x2c4e35=_0x2d5bfa['getCommentThread'](_0x2ee4ab),_0x1672c7=this['hasMarkerForId'](_0x2ee4ab);_0x2c4e35&&(!_0x2c4e35['_hasTargetInContent']&&_0x3eed50&&_0x2cec48['editing']['view']['once']('render',()=>{const _0x5a74d5=_0x2cec48['plugins']['get'](N),_0x52e0d4=_0x2d5bfa['_threadToController']['get'](_0x2c4e35)['view'];_0x5a74d5['getByInnerView'](_0x52e0d4)['refreshVisibility']();},{'priority':'low'}),_0x2c4e35['_hasTargetInContent']=_0x1672c7||!!_0x3eed50),_0x3eed50||(_0x52e0e2['add'](_0x91615c),_0x27a59e['delete'](_0x91615c));}if(_0x2e6e9b['isLocal'])for(const _0x1c1707 of _0x52e0e2){const {id:_0x509335}=he(_0x1c1707),_0x145d67=_0x2d5bfa['getCommentThread'](_0x509335),_0x4efc09=this['hasMarkerForId'](_0x509335);_0x27a59e['delete'](_0x1c1707),!_0x145d67||_0x4efc09||_0x145d67['unlinkedAt']||_0x145d67['setUnlinkedAt'](new Date());}_0x52e0e2['clear']();});}['_getTargetForId'](_0x18f30f){const _0x31bf2f=this['editor'],_0x2df4be=this['getAllMarkersForId'](_0x18f30f);return et(_0x31bf2f['editing'],_0x2df4be);}['_getTextContext'](_0x4f71a2){const _0x4d69e6=this['getAllMarkersForId'](_0x4f71a2);let _0x5c6771='',_0x30740e=!0x1;for(const _0xf41348 of _0x4d69e6){const _0x5a0484=_0xf41348['getRange']();for(const _0x2d4aae of Array['from'](_0x5a0484['getItems']()))_0x2d4aae['is']('$textProxy')?(_0x5c6771&&_0x30740e&&(_0x5c6771+='\x20',_0x30740e=!0x1),_0x5c6771+=_0x2d4aae['data']):_0x30740e=!0x0;_0x30740e=!0x0;}return _0x5c6771['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x46cbd2,_0x5ae1eb){const _0x5910da=this['editor'],_0xf977e9=_0x5910da['plugins']['get'](o);let _0x38008b=_0xf977e9['getCommentThread'](_0x5ae1eb);const _0x4eca61=_0x5910da['config']['get']('collaboration.channelId'),_0x36ce79=_0x5910da['plugins']['get'](P);if(_0x38008b&&(_0x38008b['unlinkedAt']&&_0x38008b['setUnlinkedAt'](null),_0x38008b['isAttached']))return _0x38008b;return!this['getAllMarkersForId'](_0x5ae1eb)[0x0]['managedUsingOperations']?_0x5910da['editing']['view']['once']('render',()=>{if(_0xf977e9['getCommentThread'](_0x5ae1eb))return;const _0x4ed2e2=_0x5910da['plugins']['get'](N);_0x38008b=_0xf977e9['openNewCommentThread']({'channelId':_0x4eca61,'threadId':_0x5ae1eb,'target':()=>this['_getTargetForId'](_0x5ae1eb),'context':{'type':'text','value':this['_getTextContext'](_0x5ae1eb)}});const _0x3e9b4a=_0xf977e9['_threadToController']['get'](_0x38008b)['view'],_0x38d9d4=_0x4ed2e2['getByInnerView'](_0x3e9b4a);_0x38d9d4&&_0x36ce79['registerAnnotation'](_0x38d9d4);},{'priority':'low'}):_0xf977e9['fetchCommentThread']({'channelId':_0x4eca61,'threadId':_0x5ae1eb})['then'](_0x3e9df4=>{if('destroyed'!==_0x5910da['state']){if(_0x38008b=_0x3e9df4,_0x38008b&&!_0x38008b['isAttached']){const _0x3ad026=_0x38008b['attachTo'](()=>this['_getTargetForId'](_0x5ae1eb));_0x36ce79['registerAnnotation'](_0x3ad026),_0x38008b['isResolved']&&this['_reconvertMarkers'](_0x5ae1eb);}else{if(!_0x38008b){const _0x49107=this['getAllMarkersForId'](_0x5ae1eb);_0x5910da['model']['change'](_0x17c2b1=>{for(const _0x4841f9 of _0x49107)_0x17c2b1['removeMarker'](_0x4841f9);});}}}}),_0x38008b;}['_handleThreadMarker'](_0x26a314,_0x68d1f5){const _0x14d9f2=this['_attachMarkerToThread'](_0x26a314,_0x68d1f5);_0x14d9f2&&!_0x14d9f2['context']&&_0x14d9f2['setContext']({'type':'text','value':this['_getTextContext'](_0x68d1f5)});}['_initAriaMarkerChangeAnnouncements'](){const _0x43c1f3=this['editor'];ot(_0x43c1f3['model'],({left:_0x52207c,entered:_0x2fdae0})=>{for(const _0x19db36 of _0x52207c)if(dt(_0x19db36)){_0x43c1f3['ui']['ariaLiveAnnouncer']['announce'](S(_0x43c1f3['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x540a21 of _0x2fdae0)if(dt(_0x540a21)){_0x43c1f3['ui']['ariaLiveAnnouncer']['announce'](S(_0x43c1f3['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x526bde)));break;}});}}function ut(_0x152b46,_0x655987){return _0x655987?_0x152b46+':'+_0x655987:_0x152b46;}function he(_0x1525d7){const _0xa71e25=_0x1525d7['split'](':');return{'group':_0xa71e25[0x0],'id':_0xa71e25[0x1],'part':_0xa71e25[0x2]};}function ft(_0x4e06a6,_0x13c1cc){const _0x1c2c01=_0x13c1cc['schema'],_0x23a73e=_0x13c1cc['createRange'](_0x4e06a6['start']);for(const _0x3397fa of _0x4e06a6['getWalker']()){const {type:_0x57f7e9,item:_0x373479,nextPosition:_0x5f0193}=_0x3397fa;if('text'===_0x57f7e9||_0x1c2c01['isObject'](_0x373479)){const _0x1aa822=_0x13c1cc['createPositionBefore'](_0x373479);_0x23a73e['isCollapsed']&&(_0x23a73e['start']=_0x1aa822),_0x23a73e['end']=_0x5f0193;}}return _0x23a73e;}function dt(_0x441664){return'comment'===he(_0x441664['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-2024,\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 _0x50d6a7{['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 _0x413241=this['editor'],_0x54c29e=_0x413241['plugins']['get'](o),_0x370857=_0x413241['plugins']['get'](r),_0x55cf59=_0x413241['plugins']['get'](N),_0x10f5c1=_0x413241['plugins']['get'](P);_0x413241['ui']['componentFactory']['add']('comment',()=>{const _0x4f74a7=this['_createUIButton'](_0x30f492);return _0x4f74a7['tooltip']=!0x0,_0x4f74a7;}),_0x413241['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x7e9b73)),_0x10f5c1['addSourceCollector'](()=>{const _0x2319d3=[];for(const [_0x1c8c82,_0x2bb96a]of _0x54c29e['_threadToController']){const _0x2e7724=_0x370857['getAllMarkersForId'](_0x1c8c82['id']),_0x20ef3a=_0x2e7724['map'](_0x4060e3=>_0x4060e3['getRange']());_0x2e7724['length']>0x0&&_0x2319d3['push']([_0x2bb96a['view'],_0x20ef3a]);}return _0x2319d3;}),this['listenTo'](_0x55cf59,'change:activeAnnotations',(_0x31fa71,_0x2c91ab,_0x4b1ae0)=>{const _0x2445f0=Array['from'](_0x4b1ae0)['map'](_0xa6eaee=>_0xa6eaee['innerView'])['find'](_0x3fb963=>_0x54c29e['_viewToController']['has'](_0x3fb963));if(!_0x2445f0)return void(_0x370857['activeMarker']=null);const _0xd700ee=_0x54c29e['_viewToController']['get'](_0x2445f0)['model']['id'],_0x31731d='comment:'+_0xd700ee;_0xd700ee&&_0x370857['hasMarkerForId'](_0xd700ee)?_0x370857['activeMarker']=_0x31731d:_0x370857['activeMarker']&&(_0x370857['activeMarker']=null);}),this['listenTo'](_0x54c29e,'removeCommentThread',(_0x484c50,{threadId:_0x5c9f7c,isFromAdapter:_0x5c1715})=>{!_0x5c1715&&_0x413241['ui']['focusTracker']['isFocused']&&_0x370857['hasMarkerForId'](_0x5c9f7c)&&_0x413241['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x54c29e,'addComment',(_0x1f3489,{threadId:_0x33f116,isFromAdapter:_0x3e67a4})=>{if(_0x3e67a4||!_0x370857['hasMarkerForId'](_0x33f116)||!_0x54c29e['hasCommentThread'](_0x33f116))return;0x1===_0x54c29e['getCommentThread'](_0x33f116)['length']&&(_0x413241['editing']['view']['focus'](),_0x1f3489['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3116db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7fcf53;for(const _0x4dbf47 in _0x3116db){const _0x778dd7=_0x4dbf47,_0x49c18a=_0x3116db[_0x778dd7];if('commentsLicenseKeyValid'==_0x49c18a||'commentsLicenseKeyInvalid'==_0x49c18a||'commentsLicenseKeyExpired'==_0x49c18a||'commentsLicenseKeyDomainLimit'==_0x49c18a||'commentsLicenseKeyNotAllowed'==_0x49c18a||'commentsLicenseKeyEvaluationLimit'==_0x49c18a||'commentsLicenseKeyTrialLimit'==_0x49c18a||'commentsLicenseKeyDevelopmentLimit'==_0x49c18a||'commentsLicenseKeyUsageLimit'==_0x49c18a){delete _0x3116db[_0x778dd7],_0x7fcf53=_0x49c18a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x7fcf53&&_0x3116db['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x7fcf53&&_0x3116db['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x7fcf53&&_0x3116db['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x7fcf53&&_0x3116db['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x1f8016){const _0x59c979=this['editor'],_0x383285=new _0x1f8016(_0x59c979['locale']),_0x1552ee=_0x59c979['commands']['get']('addCommentThread');return _0x383285['set']({'label':S(_0x59c979['locale'],'Comment'),'icon':xt}),_0x383285['bind']('isEnabled')['to'](_0x1552ee),this['listenTo'](_0x383285,'execute',()=>_0x1552ee['execute']()),_0x383285;}}class s extends _0x50d6a7{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x15c3a2){super(_0x15c3a2),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x652072,_0x168370,_0x3ec3d6)=>{_0x3ec3d6?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x336b49,_0x1f2c67]of this['editor']['commands'])_0x1f2c67['affectsData']&&'addCommentThread'!==_0x336b49&&_0x1f2c67['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x29f351=this['editor']['editing']['view']['document'];this['listenTo'](_0x29f351,'cut',_0xccee56=>_0xccee56['stop'](),{'priority':'highest'}),this['listenTo'](_0x29f351,'clipboardInput',_0x1a8c2d=>_0x1a8c2d['stop'](),{'priority':'highest'}),this['listenTo'](_0x29f351,'delete',_0x70607a=>_0x70607a['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1a8abd,_0x18ca06]of this['editor']['commands'])_0x18ca06['affectsData']&&'addCommentThread'!==_0x1a8abd&&_0x18ca06['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x2fb642{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36ad00){super(_0x36ad00),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x135534=this['context']['plugins']['get'](N);this['listenTo'](_0x135534,'_activateAnnotation',(_0x384a5a,_0x33fdeb)=>{for(const _0x5af6ed of this['activeUIs']){const _0x42f0ac=this['_uis']['get'](_0x5af6ed);(0x0,this['_uisData']['get'](_0x5af6ed)['filter'])(_0x33fdeb)&&_0x42f0ac['setActiveAnnotation'](_0x33fdeb);}}),this['listenTo'](_0x135534,'_deactivateAllAnnotations',()=>{for(const _0x52ea00 of this['activeUIs']){this['_uis']['get'](_0x52ea00)['setActiveAnnotation'](null);}}),this['listenTo'](_0x135534['_visibleAnnotations'],'add',(_0x419671,_0x12574f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x12574f);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4870ee){return this['activeUIs']['has'](_0x4870ee);}['activate'](_0x1786c3,_0x2825a6=()=>!0x0){const _0x23579a=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x1786c3))throw new _0x4eebb5('annotationsuis-missing-ui',this,{'uiName':_0x1786c3});this['isActive'](_0x1786c3)&&this['deactivate'](_0x1786c3),this['activeUIs']['add'](_0x1786c3);const _0x5b3ffe=new x();!function({source:_0x2af413,target:_0x20f70b,filter:_0x173615}){for(const _0x10bde7 of _0x2af413)_0x173615(_0x10bde7)&&_0x20f70b['add'](_0x10bde7);_0x20f70b['listenTo'](_0x2af413,'add',(_0x2301f5,_0x236a93)=>{_0x173615(_0x236a93)&&_0x20f70b['add'](_0x236a93);}),_0x20f70b['listenTo'](_0x2af413,'remove',(_0x1e04d0,_0x134fa6)=>{_0x20f70b['has'](_0x134fa6)&&_0x20f70b['remove'](_0x134fa6);});}({'source':_0x23579a['_visibleAnnotations'],'target':_0x5b3ffe,'filter':_0x2825a6}),this['_uisData']['set'](_0x1786c3,{'collection':_0x5b3ffe,'filter':_0x2825a6});const _0x381a37=this['_uis']['get'](_0x1786c3);_0x381a37['attach'](_0x5b3ffe),this['listenTo'](_0x381a37,'change:activeAnnotation',(_0x1585b2,_0x2a46da,_0x5e3231,_0x163f5b)=>{_0x163f5b&&_0x23579a['_removeActiveAnnotation'](_0x163f5b),_0x5e3231&&_0x23579a['_addActiveAnnotation'](_0x5e3231);});}['deactivate'](_0x395c67){if(this['activeUIs']['delete'](_0x395c67),!this['_uis']['has'](_0x395c67))throw new _0x4eebb5('annotationsuis-missing-ui',this,{'uiName':_0x395c67});const _0x274508=this['_uis']['get'](_0x395c67);_0x274508['detach'](),this['stopListening'](_0x274508),this['_uisData']['get'](_0x395c67)['collection']['destroy'](),this['_uisData']['delete'](_0x395c67);}['switchTo'](_0x4a386a){if(!this['_uis']['has'](_0x4a386a))throw new _0x4eebb5('annotationsuis-missing-ui',this,{'uiName':_0x4a386a});const _0x7064f6=this['context']['plugins']['get'](N),_0x2779a6=Array['from'](_0x7064f6['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4a386a);const _0x12bf47=this['_uis']['get'](_0x4a386a);_0x12bf47['setActiveAnnotation'](_0x2779a6),_0x12bf47['_setSelectedAnnotations']&&_0x2779a6&&_0x12bf47['_setSelectedAnnotations']([_0x2779a6]);}['deactivateAll'](){for(const _0x1d91ab of this['activeUIs'])this['deactivate'](_0x1d91ab);}['register'](_0x3571e6,_0x254b5d){if(this['_uis']['has'](_0x3571e6))throw new _0x4eebb5('annotationsuis-register-already-registered');if('function'!=typeof _0x254b5d['attach']||'function'!=typeof _0x254b5d['detach']||'function'!=typeof _0x254b5d['setActiveAnnotation'])throw new _0x4eebb5('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3571e6,_0x254b5d);}['refilterAnnotations'](){const _0x569398=this['context']['plugins']['get'](N)['collection'],_0x2d1582=new Map(),_0x1617f7=Array['from'](this['activeUIs']);for(const _0x329596 of this['activeUIs']){const _0x3891d3=this['_uisData']['get'](_0x329596)['collection'];for(const _0x381bde of _0x3891d3)_0x2d1582['set'](_0x381bde,_0x329596);}for(const _0x5df7ad of _0x569398){const _0x3706a1=_0x2d1582['get'](_0x5df7ad);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5df7ad);const _0x241b14=_0x1617f7['find'](_0x304e8b=>this['_uisData']['get'](_0x304e8b)['filter'](_0x5df7ad));_0x3706a1!==_0x241b14&&(_0x3706a1&&this['_uisData']['get'](_0x3706a1)['collection']['remove'](_0x5df7ad),_0x241b14&&this['_uisData']['get'](_0x241b14)['collection']['add'](_0x5df7ad));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x19e48a){const _0x4cc385=[];for(const _0x46568f of this['activeUIs']){(0x0,this['_uisData']['get'](_0x46568f)['filter'])(_0x19e48a)&&_0x4cc385['push'](_0x46568f);}if(_0x4cc385['length']>0x1)throw new _0x4eebb5('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4cc385,'annotationType':_0x19e48a['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x384177){super(_0x384177);const _0x20a4ec=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 _0x523031(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x20a4ec['to']('class')],'style':{'minHeight':_0x20a4ec['to']('minHeight',_0x1bb431=>'number'==typeof _0x1bb431?ae(_0x1bb431+0xa):null)},'dir':_0x384177['uiLanguageDirection'],'role':'application','aria-label':S(_0x384177,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x384177,'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',_0x33a548=>{this['_updateItemPositionInFocusables'](_0x33a548['source']);}),this['list']['forEach'](_0x40aec5=>{this['focusTracker']['add'](_0x40aec5['element']),this['_updateItemPositionInFocusables'](_0x40aec5);}),this['list']['on']('change',(_0x11f0f1,_0x1e83b6)=>{for(const _0x485036 of _0x1e83b6['removed'])this['focusTracker']['remove'](_0x485036['element']),this['focusables']['remove'](_0x485036);for(const _0x4c9dd0 of _0x1e83b6['added'])this['focusTracker']['add'](_0x4c9dd0['element']),this['_updateItemPositionInFocusables'](_0x4c9dd0);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3b8e7c){const _0x5cb04e=this['focusables']['getIndex'](_0x3b8e7c);let _0x29491c,_0x18046c;for(const _0x134a5f of this['focusables'])if(_0x3b8e7c['top']<_0x134a5f['top']){_0x29491c=_0x134a5f;break;}if(_0x18046c=_0x29491c?this['focusables']['getIndex'](_0x29491c):this['focusables']['length'],-0x1!==_0x5cb04e){if(_0x5cb04e===_0x18046c-0x1)return;this['focusables']['remove'](_0x3b8e7c),_0x18046c=_0x29491c?this['focusables']['getIndex'](_0x29491c):this['focusables']['length'];}this['focusables']['add'](_0x3b8e7c,_0x18046c);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x49109a){super(_0x49109a),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x197c37,_0x3910bf)=>_0x197c37+_0x3910bf),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3c8112=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3c8112['to']('isAnimationDisabled',_0x344068=>_0x344068?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3c8112['to']('top',_0xf1658e=>qt(_0xf1658e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xc99cfa=this['element']['clientHeight'];_0xc99cfa&&(this['height']=_0xc99cfa);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2fb642{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x553259){super(_0x553259),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 _0x59aae1=this['context']['config']['get']('sidebar.container');_0x59aae1&&this['setContainer'](_0x59aae1);}['setContainer'](_0xdfcb1c){if(!y(_0xdfcb1c))throw new _0x4eebb5('sidebar-setcontainer-invalid-element');this['container']=_0xdfcb1c;}['_attachToContainer']({viewClass:_0x139329='',spaceBetweenItems:_0x937fab=0x19}={}){if(!y(this['container']))throw new _0x4eebb5('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x139329,this['_spaceBetweenItems']=_0x937fab;}['rearrange']({removedAnnotation:_0x327f3d,previousAnnotation:_0x1b2e3d,nextAnnotation:_0xcbd9ed}){const _0x4f2b87=this['getSidebarItemView'](_0x327f3d);this['view']['list']['remove'](_0x4f2b87),this['_destroySidebarItemView'](_0x327f3d),_0x1b2e3d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1b2e3d)),_0xcbd9ed&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xcbd9ed)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x349584,activatedAnnotation:_0x181cf1,disableAnimationOnActivatedAnnotation:_0x70fc96}){if(this['_activeAnnotation']=_0x181cf1,_0x349584){_0x349584['isActive']=!0x1;const _0x12ebb5=this['getSidebarItemView'](_0x349584);_0x12ebb5&&_0x70fc96&&(_0x12ebb5['isAnimationDisabled']=!0x1);}if(_0x181cf1){const _0x3ccfe6=this['getSidebarItemView'](_0x181cf1);_0x3ccfe6&&(_0x181cf1['isActive']=!0x0,_0x70fc96&&(_0x3ccfe6['isAnimationDisabled']=!0x0,_0x3ccfe6['top']+=0x1),this['_alignToTargetRect'](_0x3ccfe6));}}['_detachFromContainer'](_0x596054){if(this['view']['element']['remove'](),_0x596054){for(const _0x4e5995 of _0x596054)this['_destroySidebarItemView'](_0x4e5995);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x229fb3,_0x163b54){_0x163b54||(_0x163b54=_0x229fb3['view']);const _0x5d3867=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5d3867,_0x229fb3),this['_annotationToSidebarItemView']['set'](_0x229fb3,_0x5d3867),_0x5d3867['content']['add'](_0x163b54),this['listenTo'](_0x229fb3['view'],'change:targetRect',(_0x4d8314,_0xbdf984,_0x5b5b94)=>{const _0x77631e=this['_getTargetTop'](_0x229fb3,_0x5b5b94);_0x5d3867['_targetTop']!=_0x77631e&&(_0x5d3867['_targetTop']=_0x77631e,this['_setItemTop'](_0x5d3867,_0x77631e));}),this['listenTo'](_0x5d3867,'change:top',()=>{this['_recalculate'](_0x5d3867,'top');}),this['listenTo'](_0x5d3867,'change:bottom',()=>{this['_recalculate'](_0x5d3867,'bottom');}),this['_alignToTargetRect'](_0x5d3867);const _0x5f5477=this['_getItemBefore'](_0x5d3867);if(_0x5f5477)this['_alignAfterItem'](_0x5f5477,_0x5d3867)||this['_alignToTargetRect'](_0x5d3867);else this['_alignToTargetRect'](_0x5d3867);return this['_updateLastItem'](),this['view']['list']['add'](_0x5d3867),_0x5d3867;}['_alignForTopChange'](_0xb9c9ca){if(!_0xb9c9ca['content']['length'])return;const _0x3889dd=this['_getItemBefore'](_0xb9c9ca);if(!_0x3889dd)return;const _0x2a09b2=this['_sidebarItemViewToAnnotation']['get'](_0x3889dd),_0x41967a=this['_activeAnnotation'];_0x41967a&&_0x41967a===_0x2a09b2?this['_alignAfterItem'](_0x3889dd,_0xb9c9ca):this['_alignBeforeItem'](_0xb9c9ca,_0x3889dd);}['_alignForBottomChange'](_0x5207a9){if(!_0x5207a9['content']['length'])return;const _0x4c57d4=this['_getItemAfter'](_0x5207a9);if(!_0x4c57d4)return;const _0x3d1ffc=this['_sidebarItemViewToAnnotation']['get'](_0x4c57d4),_0x4142e4=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3d2176=this['_activeAnnotation'];_0x3d2176&&_0x3d2176===_0x3d1ffc&&_0x4142e4?(this['_alignBeforeItem'](_0x4c57d4,_0x5207a9),this['_alignAfterItem'](_0x5207a9,_0x4c57d4)):_0x3d2176&&_0x3d2176===_0x3d1ffc?this['_alignBeforeItem'](_0x4c57d4,_0x5207a9):this['_alignAfterItem'](_0x5207a9,_0x4c57d4);}['_recalculate'](_0x2c2bda,_0x492f7b){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2ca646,changedProp:_0x47a6a7}of this['_recalculateBuffer'])'top'===_0x47a6a7?this['_alignForTopChange'](_0x2ca646):this['_alignForBottomChange'](_0x2ca646);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2c2bda,'changedProp':_0x492f7b});}['getSidebarItemView'](_0x2b0947){return this['_annotationToSidebarItemView']['get'](_0x2b0947);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x57dbe9){const _0x35fac6=this['getSidebarItemView'](_0x57dbe9);this['stopListening'](_0x35fac6),this['stopListening'](_0x57dbe9['view']),_0x35fac6['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x57dbe9),this['_sidebarItemViewToAnnotation']['delete'](_0x35fac6);}['_createSidebarView'](){const _0x185eb7=new V(this['context']['locale']);return _0x185eb7['render'](),this['on']('change:_lastItem',(_0x47c6bc,_0x210725,_0x48b5c9,_0x1c30b0)=>{_0x1c30b0&&_0x185eb7['unbind']('minHeight'),_0x48b5c9?_0x185eb7['bind']('minHeight')['to'](_0x48b5c9,'bottom'):_0x185eb7['minHeight']=null;}),_0x185eb7;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5178a4){const _0x4e5639=this['_sidebarItemViewToAnnotation']['get'](_0x5178a4),_0x19c308=_0x4e5639&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4e5639)-0x1);return _0x19c308&&this['getSidebarItemView'](_0x19c308)||null;}['_getItemAfter'](_0x1d0a71){const _0x5707b4=this['_sidebarItemViewToAnnotation']['get'](_0x1d0a71),_0x2a1d88=_0x5707b4&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5707b4)+0x1);return _0x2a1d88&&this['getSidebarItemView'](_0x2a1d88)||null;}['_alignBeforeItem'](_0x3de247,_0x290738){_0x3de247['updateHeight']();const _0x18050b=R(_0x290738['bottom']+this['_spaceBetweenItems'],_0x3de247['top']);return!!_0x18050b&&(this['_setItemTop'](_0x290738,_0x290738['top']-_0x18050b),!0x0);}['_alignAfterItem'](_0x127a7b,_0x3c4eb4){_0x127a7b['updateHeight']();const _0x558465=R(_0x127a7b['bottom']+this['_spaceBetweenItems'],_0x3c4eb4['top']);return!!_0x558465&&(this['_setItemTop'](_0x3c4eb4,_0x3c4eb4['top']+_0x558465,!0x1),!0x0);}['_alignToTargetRect'](_0x4cd840){const _0x40c997=this['_sidebarItemViewToAnnotation']['get'](_0x4cd840);if(!_0x40c997||!_0x40c997['target']||!_0x40c997['targetRect'])return;const _0x1ae301=this['_getTargetTop'](_0x40c997,_0x40c997['targetRect']);this['_setItemTop'](_0x4cd840,_0x1ae301);}['_getTargetTop'](_0x507575,_0x3937c3){if(null===_0x3937c3)return 0x0;if(_0x507575['target']instanceof _0x161c21)return _0x3937c3['top'];{const _0xfdb217=new _0x161c21(this['view']['element'])['top'];return _0x3937c3['top']-_0xfdb217;}}['_setItemTop'](_0xeecc43,_0x14fd5f,_0x117bb0=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x117bb0&&(_0x14fd5f=Math['max'](_0x14fd5f,this['_getMaxAvailableTop'](_0xeecc43))),_0xeecc43['top']=_0x14fd5f;}['_getMaxAvailableTop'](_0x14cb35){let _0x3a4e2a=this['_getItemBefore'](_0x14cb35),_0x51a617=0x0;for(;_0x3a4e2a;)_0x3a4e2a['updateHeight'](),_0x51a617+=this['_spaceBetweenItems']+_0x3a4e2a['height'],_0x3a4e2a=this['_getItemBefore'](_0x3a4e2a);return _0x51a617;}}function R(_0x31dded,_0x56acf5){return Math['max'](_0x31dded-_0x56acf5,0x0);}function y(_0x2018cb){return null!==_0x2018cb&&'object'==typeof _0x2018cb&&0x1===_0x2018cb['nodeType'];}class e extends _0x2fb642{['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(_0x3816b3){super(_0x3816b3),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x556725(),this['_refreshPositioningDebounced']=_0x4d24b5(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x256776=this['context']['plugins']['get'](M),_0x1392df=this['context']['plugins']['get'](z);_0x256776['register']('wideSidebar',this),_0x1392df['container']&&_0x256776['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x81962){if(_0x81962===this['activeAnnotation'])return;const _0x203a2b=this['context']['plugins']['get'](z);_0x203a2b['_activeAnnotation']=_0x81962;const _0x14e31b=this['activeAnnotation'];this['activeAnnotation']=_0x81962,_0x203a2b['refresh']({'blurredAnnotation':_0x14e31b,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x329cb3){this['annotations']=_0x329cb3;const _0x525223=this['context']['plugins']['get'](z);if(_0x525223['_annotations']=_0x329cb3,this['isAttached'])throw new _0x4eebb5('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x525223,'set:container',()=>{this['detach'](),this['listenTo'](_0x525223,'change:container',_0x121ca9=>{_0x121ca9['off'](),this['attach'](_0x329cb3);});}),_0x525223['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x4125e6=_0x38768f=>{_0x38768f['updateTargetRect'](),_0x525223['addAnnotation'](_0x38768f);};for(const _0x51d2db of _0x329cb3)_0x4125e6(_0x51d2db);this['listenTo'](_0x329cb3,'add',(_0x9f9c32,_0x3c56e5)=>{_0x4125e6(_0x3c56e5);}),this['listenTo'](_0x329cb3,'remove',(_0x4d63ee,_0x3f8074,_0x528b22)=>{_0x525223['rearrange']({'removedAnnotation':_0x3f8074,'previousAnnotation':_0x329cb3['get'](_0x528b22-0x1),'nextAnnotation':_0x329cb3['get'](_0x528b22+0x1)}),_0x3f8074===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x329cb3,'focus',(_0x5255fc,_0x57b4b1)=>{this['setActiveAnnotation'](_0x57b4b1);}),this['listenTo'](_0x329cb3,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5ddbc9=this['context']instanceof _0x418396?this['context']['editors']:new _0x556725([this['context']]);for(const _0xa95a88 of _0x5ddbc9)this['_integrateWithEditorAnnotations'](_0xa95a88);this['listenTo'](_0x5ddbc9,'add',(_0x3396dc,_0x540339)=>{this['listenTo'](_0x540339,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x540339);});}),this['listenTo'](_0x5ddbc9,'remove',(_0x24af18,_0x3502d3)=>{_0x3502d3['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3502d3['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4eebb5('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x195440=this['context']['plugins']['get'](z);_0x195440['_detachFromContainer'](this['annotations']),this['stopListening'](_0x195440),this['stopListening'](this['annotations']),this['context']instanceof _0x418396&&this['stopListening'](this['context']['editors']);for(const _0x9320ce of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x9320ce);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1eee6a){if(!_0x1eee6a['plugins']['has']('EditorAnnotations'))return;const _0x1bf285=_0x1eee6a['plugins']['get']('EditorAnnotations'),_0x4827d7=()=>{const _0x3fc780=_0x1bf285['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3fc780[0x0]||null);};this['listenTo'](_0x1bf285,'refresh',_0x4827d7),this['listenTo'](_0x1bf285,'blur',(_0x3a4566,{isAnnotationTracked:_0x52833c})=>{this['activeAnnotation']&&_0x52833c(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1bf285,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x54e66c=>{_0x1bf285['hasDomSelection']()&&(_0x4827d7(),_0x54e66c['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1bf285);}['_destroyEditorAnnotationsIntegration'](_0x1f884c){this['stopListening'](_0x1f884c),this['_editorAnnotations']['remove'](_0x1f884c);}}class D extends _0x30f492{['counterView'];constructor(_0x47d6a8){super(_0x47d6a8);const _0x4fa0cd=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x12ee83,_0x59b383)=>_0x12ee83?'...':_0x59b383['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',_0x4fa0cd['to']('annotationType',_0x127870=>'ck-annotation-counter__badge--'+_0x127870),_0x4fa0cd['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4fa0cd['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2fb642{['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(_0x5b6559){super(_0x5b6559),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x292265),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x556725(),this['_refreshPositioningDebounced']=_0x4d24b5(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x237c71(this['context']['locale']),this['balloonPanelView']=new _0x7c24c2(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x40403e){this['annotations']=_0x40403e;const _0x28f230=this['context']['plugins']['get'](z),_0x1be63e=this['balloonPanelView'];if(_0x28f230['_annotations']=_0x40403e,this['isAttached'])throw new _0x4eebb5('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x28f230,'set:container',()=>{this['detach'](),this['listenTo'](_0x28f230,'change:container',_0xe7fb0f=>{_0xe7fb0f['off'](),this['attach'](_0x40403e);});}),_0x28f230['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0xa1e989=_0x27170b=>{const _0x303186=new D(this['context']['locale']);_0x28f230['addAnnotation'](_0x27170b,_0x303186),this['_annotationToNarrowView']['set'](_0x27170b,_0x303186),_0x303186['bind']('isDirty','annotationType','number')['to'](_0x27170b['view'],'isDirty','type','length'),_0x303186['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1be63e['content']['first']!==_0x27170b['view']?(this['_showBalloon'](_0x27170b),_0x27170b['view']['element']['focus'](),this['setActiveAnnotation'](_0x27170b)):this['setActiveAnnotation'](null);});};for(const _0xa4e811 of _0x40403e)_0xa1e989(_0xa4e811);this['listenTo'](_0x40403e,'add',(_0x361705,_0xa4309)=>{_0xa1e989(_0xa4309);}),this['listenTo'](_0x40403e,'remove',(_0x19d9ad,_0x5e57bf,_0x565629)=>{this['_annotationToNarrowView']['get'](_0x5e57bf)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5e57bf),_0x28f230['rearrange']({'removedAnnotation':_0x5e57bf,'previousAnnotation':_0x40403e['get'](_0x565629-0x1),'nextAnnotation':_0x40403e['get'](_0x565629+0x1)}),_0x5e57bf===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x40403e,'focus',(_0x13bf58,_0x117d9b)=>{this['setActiveAnnotation'](_0x117d9b);}),this['listenTo'](_0x40403e,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x460b6d,_0x3c7d63)=>{_0x3c7d63['keyCode']===_0x53ed79['esc']&&_0x1be63e['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1be63e['content']['first']),this['_hideBalloon'](),_0x3c7d63['stopPropagation'](),_0x3c7d63['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x23c0d2,_0x14585c)=>{const _0x4850ba=_0x14585c['target'];_0x1be63e['isVisible']&&_0x1be63e['element']['contains'](_0x4850ba)||_0x28f230['view']['element']['contains'](_0x4850ba)||_0x23c0d2['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x3f7c47=>_0x3f7c47['contains'](_0x4850ba))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4aa181=this['context']instanceof _0x418396?this['context']['editors']:new _0x556725([this['context']]);for(const _0x1ec7c of _0x4aa181)this['_integrateWithEditorAnnotations'](_0x1ec7c);this['listenTo'](_0x4aa181,'add',(_0x241c35,_0x329ad8)=>{this['listenTo'](_0x329ad8,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x329ad8);});}),this['listenTo'](_0x4aa181,'remove',(_0x572031,_0x39aa6a)=>{_0x39aa6a['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x39aa6a['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x15c1b5){if(_0x15c1b5===this['activeAnnotation'])return;const _0x1d16ef=this['context']['plugins']['get'](z);if(_0x1d16ef['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x15c1b5,'disableAnimationOnActivatedAnnotation':!0x0}),_0x15c1b5)_0x1d16ef['getSidebarItemView'](_0x15c1b5)?this['_showBalloon'](_0x15c1b5):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x15c1b5;}['detach'](){if(!this['isAttached'])throw new _0x4eebb5('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x336652=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5af3d1=>_0x5af3d1['destroy']()),this['_annotationToNarrowView']['clear'](),_0x336652['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x418396&&this['stopListening'](this['context']['editors']);for(const _0x3ad983 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3ad983);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'](_0x3bc5f4){if(!_0x3bc5f4['plugins']['has']('EditorAnnotations'))return;const _0x4aa20b=_0x3bc5f4['plugins']['get']('EditorAnnotations'),_0x24fb58=this['context']['plugins']['get'](z),_0x3ff0a3=this['annotations'],_0x19aa52=this['balloonPanelView'],_0x390837=()=>{const _0x4857bf=_0x4aa20b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4857bf),this['setActiveAnnotation'](_0x4857bf[0x0]||null);};this['listenTo'](_0x4aa20b,'refresh',_0x390837),this['listenTo'](_0x4aa20b,'blur',(_0x2656bf,{isAnnotationTracked:_0x584abc})=>{this['activeAnnotation']&&_0x584abc(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4aa20b,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3ff0a3,'blur',_0x42b54e=>{_0x4aa20b['hasDomSelection']()&&_0x42b54e['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x348524,_0x1a868a)=>{const _0x36578a=_0x1a868a['target'];_0x19aa52['isVisible']&&_0x19aa52['element']['contains'](_0x36578a)||_0x24fb58['view']['element']['contains'](_0x36578a)||this['activeAnnotation']&&_0x4aa20b['hasDomSelection']()&&(_0x390837(),_0x348524['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4aa20b);}['_destroyEditorAnnotationsIntegration'](_0x35b00b){_0x35b00b&&(this['stopListening'](_0x35b00b),this['_editorAnnotations']['remove'](_0x35b00b));}['_setSelectedAnnotations'](_0x47ff4a){for(const _0x5f4942 of this['_selectedAnnotations'])_0x47ff4a['includes'](_0x5f4942)||this['_manuallyClosedAnnotationViews']['delete'](_0x5f4942['view']);this['_selectedAnnotations']=_0x47ff4a;}['_refreshPositioning'](){const _0x169625=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x169625['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x22a5ad){if(this['_manuallyClosedAnnotationViews']['has'](_0x22a5ad['view']))return;const _0x49a379=this['balloonPanelView']['content']['first'];_0x49a379!==_0x22a5ad['view']?(_0x49a379&&this['_detachListeners'](_0x49a379),this['_attachListeners'](_0x22a5ad['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x22a5ad['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x59a3e3=this['balloonPanelView']['content']['first'],_0x49e15c=_0x59a3e3&&this['annotations']['getByView'](_0x59a3e3);if(!_0x49e15c||!this['_annotationToNarrowView']['has'](_0x49e15c))return;const _0xc7366a=this['_annotationToNarrowView']['get'](_0x49e15c)['element'],_0x3dbf7d=(function(){const _0x3e73c9=_0x7c24c2['defaultPositions'];return[_0x3e73c9['southArrowNorthEast'],_0x3e73c9['northArrowSouthEast'],_0x3e73c9['southArrowNorth'],_0x3e73c9['northArrowSouth'],_0x3e73c9['southArrowNorthWest'],_0x3e73c9['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xc7366a,'positions':_0x3dbf7d});}['_hideBalloon'](){const _0x339563=this['balloonPanelView'],_0x2acd26=_0x339563['content']['first'];_0x2acd26&&(this['_detachListeners'](_0x2acd26),_0x339563['unpin'](),_0x339563['content']['clear']());}['_attachListeners'](_0x7244c3){this['listenTo'](_0x7244c3,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x7244c3,'Esc',(_0x518e41,_0x102a63)=>{this['_manuallyClosedAnnotationViews']['add'](_0x7244c3),this['_hideBalloon'](),_0x102a63();});}['_detachListeners'](_0x1cd255){this['stopListening'](_0x1cd255);}}class c extends _0x50d6a7{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x45c664,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37e7d2){super(_0x37e7d2),_0x37e7d2['editing']['view']['addObserver'](_0x457f5f),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x37e7d2['plugins']['get'](_0x45c664),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xa19874=this['editor']['plugins']['get'](M);_0xa19874['context']===this['editor']&&(_0xa19874['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x8c0001,_0xee23d3)=>{const _0x5c05b7=this['_balloon'];if(this['isAttached']&&_0x5c05b7['visibleView']){const _0x41c80e=this['annotations']['getByView'](_0x5c05b7['visibleView']);_0x41c80e&&this['_closeAnnotation'](_0x41c80e),_0xee23d3();}}));}['afterInit'](){const _0x2313b3=this['editor']['plugins']['get'](M);_0x2313b3['context']===this['editor']&&(_0x2313b3['hasActive']()||_0x2313b3['switchTo']('inline'));}['setActiveAnnotation'](_0x5baaa0){_0x5baaa0!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x5baaa0&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x5baaa0)&&this['_addAnnotationToBalloon'](_0x5baaa0,!0x0),_0x5baaa0['isActive']=!0x0),_0x5baaa0||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x5baaa0);}['attach'](_0x4311df){this['annotations']=_0x4311df;const _0x3e9a9e=this['editor']['plugins']['get'](M),_0xdf9a38=this['_balloon'];if(this['isAttached'])throw new _0x4eebb5('inlineannotations-attach-already-attached',this);if(_0x3e9a9e['context']!==this['editor'])throw new _0x4eebb5('inlineannotations-not-allowed-with-context',this);const _0x238e17=this['editor']['plugins']['get'](P);this['listenTo'](_0x238e17,'refresh',()=>{const _0x28f822=_0x238e17['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5bab03,_0xfb50dc;!this['_forceRefresh']&&(_0x5bab03=_0x28f822,_0xfb50dc=this['_selectedAnnotations'],_0x5bab03['length']===_0xfb50dc['length']&&_0x5bab03['every'](_0x391444=>_0xfb50dc['includes'](_0x391444)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x28f822),this['setActiveAnnotation'](_0x28f822[0x0]||null));}),this['listenTo'](_0x238e17,'blur',(_0x5accab,{isAnnotationTracked:_0x142ed1})=>{this['activeAnnotation']&&_0x142ed1(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0xa71ba1,_0x14345f,_0x2c5003)=>{_0x2c5003||this['setActiveAnnotation'](null);}),this['listenTo'](_0x4311df,'remove',(_0x2399f1,_0x1ea585)=>{this['_removeAnnotationFromBalloon'](_0x1ea585),_0x1ea585===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xdf9a38,'change:visibleView',(_0x20a948,_0xe08617,_0x4aa5db,_0x357c32)=>{_0x357c32&&this['stopListening'](_0x357c32);const _0xedc7f7=_0x4311df['getByView'](_0x4aa5db);_0x4aa5db&&_0xedc7f7&&(this['listenTo'](_0x4aa5db,'change:height',()=>{_0xdf9a38['updatePosition']();}),this['listenTo'](_0x4aa5db,'Esc',()=>{this['_closeAnnotation'](_0xedc7f7),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xedc7f7&&this['setActiveAnnotation'](_0xedc7f7));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0xdf9a38['visibleView']&&(_0x4311df['getByView'](_0xdf9a38['visibleView'])&&_0xdf9a38['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 _0x4eebb5('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x443f13 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x443f13);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x1441d4){for(const _0x1781c9 of this['_selectedAnnotations'])_0x1441d4['includes'](_0x1781c9)||this['_manuallyClosed']['delete'](_0x1781c9);for(const _0x3861bd of this['annotations'])_0x1441d4['includes'](_0x3861bd)||this['_removeAnnotationFromBalloon'](_0x3861bd);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5a4246 of _0x1441d4)this['_addAnnotationToBalloon'](_0x5a4246);}this['_selectedAnnotations']=_0x1441d4;}['_addAnnotationToBalloon'](_0x5368ed,_0x3426c8=!0x1){this['_manuallyClosed']['has'](_0x5368ed)||(this['_addedAnnotations']['has'](_0x5368ed)||this['_balloon']['hasView'](_0x5368ed['view'])||(this['_addedAnnotations']['add'](_0x5368ed),this['_balloon']['add']({'stackId':_0x5368ed['view']['id'],'view':_0x5368ed['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5368ed)}})),_0x3426c8&&this['_balloon']['showStack'](_0x5368ed['view']['id']));}['_getBalloonTargetForAnnotation'](_0x1711aa){const _0x20a300=_0x1711aa['target'],_0x1262cb=this['editor']['editing']['view'],_0x566ec3=_0x1262cb['document']['selection']['getFirstRange'](),_0x37c160=_0x1262cb['domConverter']['viewRangeToDom'](_0x566ec3);if(_0x37c160['collapse'](!0x0),_0x20a300){if(_0x20a300 instanceof _0x161c21)return _0x20a300;let _0x171a8e=[];for(const _0xfb1437 of _0x20a300)_0x171a8e['push'](...(_0x13c3d4=_0xfb1437['getClientRects'](),Array['from'](_0x13c3d4)['map'](DOMRect['fromRect'])));_0x171a8e=function(_0x55188e){const _0x50e727=[];let _0x1c47b4=_0x55188e[0x0];for(let _0x53b688=0x1;_0x53b688<_0x55188e['length'];_0x53b688++)b(_0x1c47b4,_0x55188e[_0x53b688])?_0x1c47b4['width']+=_0x55188e[_0x53b688]['width']:(_0x50e727['push'](_0x1c47b4),_0x1c47b4=_0x55188e[_0x53b688]);return _0x50e727['push'](_0x1c47b4),_0x50e727;}(_0x171a8e);const _0xf24454=_0x37c160['getBoundingClientRect']();return _0x171a8e['find'](_0x5823c9=>_0x5823c9['top']<=_0xf24454['top']&&_0x5823c9['bottom']>=_0xf24454['bottom']&&_0x5823c9['left']<=_0xf24454['left']&&_0x5823c9['right']>=_0xf24454['right'])||_0x171a8e[0x0];}var _0x13c3d4;return _0x1711aa['targetRect']||_0x37c160;}['_removeAnnotationFromBalloon'](_0x553b09){this['_addedAnnotations']['has'](_0x553b09)&&this['_balloon']['hasView'](_0x553b09['view'])&&(this['_addedAnnotations']['delete'](_0x553b09),this['_balloon']['remove'](_0x553b09['view']));}['_closeAnnotation'](_0x3c174e){this['_manuallyClosed']['add'](_0x3c174e),this['_removeAnnotationFromBalloon'](_0x3c174e);}}function b(_0x398e90,_0xabcef6){return _0x398e90['top']===_0xabcef6['top']&&_0x398e90['bottom']===_0xabcef6['bottom']&&_0x398e90['right']===_0xabcef6['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-2024,\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(_0x2c6fac,_0x17be3f){super(_0x2c6fac),this['set']('isEmpty',!_0x17be3f['length']),this['focusTracker']=new _0x523031(),this['_annotationViews']=_0x17be3f,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x17be3f,'focusTracker':this['focusTracker']}),this['listenTo'](_0x17be3f,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x17be3f,'remove',(_0x316f58,_0x42f9e2)=>{_0x42f9e2['isActive']&&this['focus'](),_0x17be3f['length']||(this['isEmpty']=!0x0);});const _0x3d7828=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x2c6fac,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x17be3f},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3d7828['if']('isEmpty','ck-hidden',_0x5b3ca0=>!_0x5b3ca0)]},'children':[{'text':S(_0x2c6fac,'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 _0x6eb025 of this['_annotationViews'])this['focusTracker']['add'](_0x6eb025['element']);this['_annotationViews']['on']('change',(_0x9d6599,{added:_0xfa3a87,removed:_0x27afcc})=>{for(const _0x3f04dd of _0xfa3a87)this['focusTracker']['add'](_0x3f04dd['element']);for(const _0x33318f of _0x27afcc)this['focusTracker']['remove'](_0x33318f['element']);});}}class f extends _0x2fb642{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x4d7893){super(_0x4d7893),this['archivedThreads']=new _0x556725();}['init'](){const _0x478961=this['context'],_0x40d924=_0x478961['plugins']['get'](o),_0x4ae258=_0x478961['plugins']['get'](N);this['listenTo'](_0x40d924,'addCommentThread',(_0x360800,{threadId:_0x54482a})=>{const _0x103f97=_0x40d924['getCommentThread'](_0x54482a);_0x103f97['archivedAt']&&this['archivedThreads']['add'](_0x103f97,this['_calculatePosition'](_0x103f97['archivedAt'])),this['listenTo'](_0x103f97,'change:archivedAt',(_0x364a07,_0x432e79,_0x44e327)=>{_0x44e327?this['archivedThreads']['has'](_0x103f97)||this['archivedThreads']['add'](_0x103f97,this['_calculatePosition'](_0x103f97['archivedAt'])):this['archivedThreads']['has'](_0x103f97)&&this['archivedThreads']['remove'](_0x103f97);});}),this['listenTo'](_0x40d924,'removeCommentThread',(_0x52a576,{threadId:_0xfbd7df})=>{const _0x4e4416=_0x40d924['getCommentThread'](_0xfbd7df);this['stopListening'](_0x4e4416),this['archivedThreads']['has'](_0x4e4416)&&this['archivedThreads']['remove'](_0x4e4416);},{'priority':'highest'}),this['listenTo'](_0x4ae258['collection'],'focus',(_0x4b91a4,_0x3883bb)=>{_0x3883bb['isVisible']||(_0x3883bb['isActive']=!0x0,_0x4ae258['activate'](_0x3883bb));});}['_calculatePosition'](_0x3e0147){const _0x3abe1c=[...this['archivedThreads']]['findIndex'](_0x65a1dd=>_0x65a1dd['archivedAt']<_0x3e0147);return _0x3abe1c>-0x1?_0x3abe1c:this['archivedThreads']['length'];}}class a extends _0x50d6a7{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x3ca1f2];}constructor(_0xef6c1b){super(_0xef6c1b),this['annotationViews']=new _0x53afa6(),this['_pendingThreads']=[];}['init'](){const _0x5b22c3=this['editor'],_0x36e012=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x5b22c3['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x30f492,!0x0)),_0x5b22c3['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0xb0a49a=this['_createCommentsArchiveButton'](_0x7e9b73);return _0xb0a49a['set']({'role':'menuitemcheckbox'}),_0xb0a49a;});const _0x590a18=_0x5b22c3['plugins']['get'](f),_0x2ac7c9=_0x5b22c3['plugins']['get']('Annotations'),_0x5847bf=_0x5b22c3['plugins']['get']('CommentsRepository');this['listenTo'](_0x590a18['archivedThreads'],'add',(_0x39e657,_0x4d9d98)=>{const _0x3ba260=_0x5b22c3['config']['get']('collaboration.channelId');if(!_0x3ba260||_0x4d9d98['channelId']===_0x3ba260){const _0x59fc72=_0x5847bf['_threadToController']['get'](_0x4d9d98);if(!_0x59fc72)return void this['_pendingThreads']['push'](_0x4d9d98);const _0x55eefd=this['_calculatePosition'](_0x4d9d98['archivedAt']),_0x4ad534=_0x2ac7c9['getByInnerView'](_0x59fc72['view']);_0x4ad534['isVisible']&&_0x2ac7c9['_visibleAnnotations']['remove'](_0x4ad534),this['annotationViews']['add'](_0x4ad534['view'],_0x55eefd);}}),this['listenTo'](_0x2ac7c9['collection'],'add',(_0x145b8f,_0x11aa5c)=>{const _0x555a48=this['_pendingThreads']['find'](_0x27dcd9=>{const _0x53554b=_0x5847bf['_threadToController']['get'](_0x27dcd9);return _0x53554b&&_0x11aa5c['innerView']===_0x53554b['view'];});if(_0x555a48){const _0x279797=this['_calculatePosition'](_0x555a48['archivedAt']);this['annotationViews']['add'](_0x11aa5c['view'],_0x279797),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x555a48),0x1);}}),this['listenTo'](_0x590a18['archivedThreads'],'remove',(_0x100ee8,_0xbe3bf0)=>{const _0x31716e=_0x5b22c3['config']['get']('collaboration.channelId');if(!_0x31716e||_0xbe3bf0['channelId']===_0x31716e){const _0x5b399c=_0x5847bf['_threadToController']['get'](_0xbe3bf0),_0x49f3d5=_0x2ac7c9['getByInnerView'](_0x5b399c['view']);this['annotationViews']['remove'](_0x49f3d5['view']),this['stopListening'](_0x49f3d5['focusableElements']);}}),this['listenTo'](_0x2ac7c9['collection'],'add',(_0x33c5e4,_0x37f6d1)=>{this['listenTo'](_0x37f6d1,'escape',_0x36e012);}),this['listenTo'](_0x2ac7c9['collection'],'remove',(_0x3f326f,_0x474b16)=>{this['stopListening'](_0x474b16,'escape',_0x36e012);});}['_calculatePosition'](_0x325f09){const _0x172e6d=this['editor']['config']['get']('collaboration.channelId'),_0x34d8ef=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x387dcd=>_0x387dcd['channelId']===_0x172e6d)['findIndex'](_0x1cc0f0=>_0x1cc0f0['archivedAt']<_0x325f09);return _0x34d8ef<0x0||_0x34d8ef>this['annotationViews']['length']?this['annotationViews']['length']:_0x34d8ef-0x1;}['_toggleDialog'](){const _0x3d9c37=this['editor'],_0x2f044c=_0x3d9c37['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x3d9c37['locale'],this['annotationViews'])),'commentsArchive'===_0x2f044c['id']?_0x2f044c['hide']():_0x2f044c['show']({'id':'commentsArchive','title':S(_0x3d9c37['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x471e16['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0xf7d3a,_0x1a5592=!0x1){const _0x2e6428=this['editor']['locale'],_0x5a8af8=this['editor']['plugins']['get']('Dialog'),_0x44d2e5=new _0xf7d3a(_0x2e6428);return _0x44d2e5['bind']('isEnabled')['to'](this,'isEnabled'),_0x44d2e5['bind']('isOn')['to'](_0x5a8af8,'id',_0x403609=>'commentsArchive'===_0x403609),_0x44d2e5['set']({'label':S(_0x2e6428,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x1a5592&&(_0x44d2e5['tooltip']=!0x0),this['listenTo'](_0x44d2e5,'execute',()=>this['_toggleDialog']()),_0x44d2e5;}['_hideDialogOnAnnotationEscape']=_0x1eaf02=>{const _0xae9785=_0x1eaf02['source'];if(!this['annotationViews']['has'](_0xae9785['view']))return;const _0x596051=this['editor']['plugins']['get']('Dialog');_0x596051['isOpen']&&'commentsArchive'===_0x596051['id']&&(_0x596051['hide'](),_0x1eaf02['stop']());};}class p extends _0x50d6a7{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,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt 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};
|