@ckeditor/ckeditor5-comments 44.0.0-alpha.10 → 44.0.0-alpha.11
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(_0x5043be={}){function _0x3a0275(_0x1b1764){return _0x1b1764['map'](_0x5153c4=>String['fromCharCode'](_0x5153c4))['join']('');}(_0x5043be=Object['assign']({},_0x5043be))['plugins']||(_0x5043be['plugins']=Rt['defaultPlugins']),super(_0x5043be),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[_0x3a0275([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a0275([0x76,0x69,0x65,0x77])][_0x3a0275([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a0275([0x61,0x75,0x74,0x6f]),this[_0x3a0275([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3a0275([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a0275([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3a0275([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3a0275([0x6f,0x6b])});}['create'](){const _0x10ab27=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x10ab27))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x4e8942=>{const _0x110057=this['model']['document']['getRoot'](),_0x30b215=_0x110057&&_0x110057['getChild'](_0x110057['childCount']-0x1);_0x4e8942['setSelection'](_0x30b215,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0xa42764=this['editing']['view'],_0x1ba42c=_0xa42764['document']['getRoot'](),_0x2fdcaa=_0x1ba42c['getChild'](0x0);_0x1ba42c['childCount']>0x1||!_0x2fdcaa||'p'!=_0x2fdcaa['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0xa42764,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x2fdcaa['placeholder']=this['placeholder']),St({'view':_0xa42764,'element':_0x2fdcaa,'keepOnFocus':!0x0}),this['placeholderElement']=_0x2fdcaa);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x298b3c,_0x192eb1={}){super(_0x298b3c),this['editor']=null,this['_editorConfig']=_0x192eb1,this['set']('value',_0x192eb1['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x298b3c,'Reply...')),this['set']('submitLabel',S(_0x298b3c,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1a1568(),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',(_0x500e06,_0x17ca1b)=>{this['cancelButtonView']['fire']('execute'),_0x17ca1b();}),this['keystrokes']['set']('Ctrl+Enter',(_0x105ddc,_0x26a311)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x26a311());}),this['on']('submit',(_0x44ca6b,_0x5ad5a9)=>{_0x5ad5a9['length']>0xfde8?(alert(S(_0x298b3c,'TOO_LONG_COMMENT_ALERT',[_0x5ad5a9['length'],0xfde8])),_0x44ca6b['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 _0x7a4f2c=this['editor'];this['element']['insertBefore'](_0x7a4f2c['ui']['element'],this['element']['firstChild']),_0x7a4f2c['model']['document']['on']('change',()=>this['value']=_0x7a4f2c['getData']()),_0x7a4f2c['bind']('placeholder')['to'](this),this['focusables']['add'](_0x7a4f2c['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x251bbe){-0x1===_0x251bbe?(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:_0x39af49}=this,_0x1b1b60=new _0xc22dd3(_0x39af49);return _0x1b1b60['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x1b1b60['withText']=!0x0,_0x1b1b60['bind']('label')['to'](this,'submitLabel'),_0x1b1b60['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x1b1b60['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xb18e78,_0x1de8b6)=>!_0x1de8b6&&!!_0xb18e78['trim']()),_0x1b1b60;}['_createCancelButton'](){const {locale:_0x572e03}=this,_0x598481=new _0xc22dd3(_0x572e03);return _0x598481['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x598481['label']=S(_0x572e03,'Cancel'),_0x598481['withText']=!0x0,_0x598481['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x598481;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x1525e3=>{this['focusTracker']['add'](_0x1525e3['element']);}),this['focusables']['on']('change',(_0x21895b,_0x4e5cba)=>{for(const _0x507aeb of Array['from'](_0x4e5cba['added'])['reverse']())this['focusTracker']['add'](_0x507aeb['element']);});}}class ie extends kt{constructor(_0x567b7c,_0x34472b,_0x31711e){super(_0x567b7c),this['commentInputView']=new hs(_0x567b7c,_0x31711e),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4b55d1,_0x542289)=>_0x4b55d1||!!_0x542289),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 _0x1dda2f(_0x567b7c,_0x34472b),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'](_0x20f4f4){this['commentInputView']['focus'](_0x20f4f4);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x509b27,_0x42801b)=>{const {submitButtonView:_0x3563b3,cancelButtonView:_0x2ad064,editor:_0x3e5117}=this['commentInputView'];[_0x3563b3['element'],_0x2ad064['element'],_0x3e5117?_0x3e5117['editing']['view']['getDomRoot']():null]['filter'](_0x4044f7=>_0x4044f7)['some'](_0x517e0b=>_0x517e0b['contains'](_0x42801b['target']))||(this['focus'](),_0x42801b['preventDefault']());});}}class cs extends kt{constructor(_0x1a32e0){super(_0x1a32e0);const _0x2edeec=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2edeec['to']('count',_0x2b0602=>S(_0x1a32e0,'NUMBER_OF_COMMENTS',_0x2b0602))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x4bff97,_0x39b970,_0x42e5f5){super(_0x4bff97);const _0x3609e4=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x39b970['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x39b970,this['_config']=_0x42e5f5,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1a1568(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x12a0b4=>this['commentViews']['map'](_0x17632f=>_0x17632f['element'])['includes'](_0x12a0b4['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x4bff97),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3a6cc0=>_0x3a6cc0-this['_config']['maxCommentsWhenCollapsed']);for(const _0x20018a of _0x39b970['comments'])this['_handleNewCommentModel'](_0x20018a);this['_handleInfoComment'](),this['listenTo'](_0x39b970['comments'],'add',(_0x115c36,_0x3a3a38)=>{const _0x28b09c=this['_calculatePosition'](_0x3a3a38);this['length']++,this['_handleNewCommentModel'](_0x3a3a38,_0x28b09c),this['refreshVisibleViews']();}),this['listenTo'](_0x39b970['comments'],'remove',(_0x23d3ae,_0x354485)=>{this['length']--,this['_handleRemoveCommentModel'](_0x354485),this['refreshVisibleViews']();}),this['listenTo'](_0x39b970,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x39b970,'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',_0x3609e4['if']('length','ck-hidden',_0x62c3c9=>!_0x62c3c9)],'aria-label':S(_0x4bff97,'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'](_0x2c2793){-0x1===_0x2c2793?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3a160c of this['commentViews'])_0x3a160c['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x25b6d2,_0x3fa342){const _0x30f4fb=new this['_config']['CommentView'](this['locale'],_0x25b6d2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x30f4fb['viewUid']=_0x25b6d2['id'],_0x30f4fb['delegate']('removeComment')['to'](this),_0x30f4fb['delegate']('updateComment')['to'](this),_0x30f4fb['delegate']('resolveCommentThread')['to'](this),_0x30f4fb['delegate']('editorReady')['to'](this),_0x30f4fb['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x30f4fb,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x30f4fb,_0x3fa342);}['_calculatePosition'](_0x3ccbc4){const _0x29cab6=this['_model']['_findOptimalIndex'](_0x3ccbc4);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x3ccbc4['authoredAt']?_0x29cab6-0x1:_0x29cab6:_0x29cab6-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x20be37={'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'],_0x20be37,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x20be37));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x47d182){const _0xacfb5=this['commentViews']['remove'](_0x47d182['id']);this['stopListening'](_0xacfb5),_0xacfb5['isEditMode']&&this['_updateHasDirtyComment'](),_0xacfb5['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x236216=>_0x236216['isEditMode']);}['_rearrangeCollapse'](){const _0x1daef5=function(_0x7615fc){const _0x3d12dd=new _0x55dc60();for(const _0x43d1f0 of _0x7615fc)_0x3d12dd['add'](_0x43d1f0);return _0x3d12dd;}(this['commentViews']),_0x2dcd71=this['_collapsedCommentsView']['count'];for(let _0x4a7485=0x1;_0x4a7485<=_0x2dcd71;_0x4a7485++)_0x1daef5['remove'](0x1);for(const _0x1c0a58 of _0x1daef5)_0x1c0a58['collapse']();_0x2dcd71>0x0&&_0x1daef5['add'](this['_collapsedCommentsView'],0x1),ns(_0x6f790e(Array['from'](this['visibleViews']),Array['from'](_0x1daef5)),this['visibleViews'],_0x1daef5);}['_rearrangeExpand'](){ns(_0x6f790e(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4eb5bf of this['visibleViews'])_0x4eb5bf['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4d3b87=>{this['focusTracker']['add'](_0x4d3b87['element']),this['keystrokes']['listenTo'](_0x4d3b87['element']);}),this['commentViews']['on']('change',(_0x484f39,_0x1662b7)=>{for(const _0x56ebfc of _0x1662b7['removed'])this['focusTracker']['remove'](_0x56ebfc['element']),this['keystrokes']['stopListening'](_0x56ebfc['element']);for(const _0x264a3f of Array['from'](_0x1662b7['added'])['reverse']())this['focusTracker']['add'](_0x264a3f['element']),this['keystrokes']['listenTo'](_0x264a3f['element']);});}}function ns(_0xe141b4,_0x4cb8de,_0x63d76b){let _0xb81869=0x0;for(const _0x4afca2 of _0xe141b4)switch(_0x4afca2){case'insert':_0x4cb8de['add'](_0x63d76b['get'](_0xb81869),_0xb81869),_0xb81869++;break;case'delete':_0x4cb8de['remove'](_0xb81869);break;case'equal':_0xb81869++;}}class as extends kt{constructor(_0xd73a16){super(_0xd73a16);const _0x23e579=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x23e579['to']('contextValue',_0x46c563=>S(_0xd73a16,'THREAD_CONTEXT_LABEL',_0x46c563)),'tabindex':-0x1},'children':[{'text':_0x23e579['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x120523,_0xb1d37b){super(_0x120523);const _0x5c8dd5=this['bindTemplate'];this['_model']=_0xb1d37b,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1a1568(),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',_0x238f68=>!!_0x238f68),this['bind']('contextValue')['to'](this['_model'],'context',_0x5d0ec6=>_0x5d0ec6&&_0x5d0ec6['value']?this['_trimContextValue'](_0x5d0ec6['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',_0x5c8dd5['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 _0x3445a3=new _0xc22dd3(this['locale']);return _0x3445a3['label']=S(this['locale'],'Reopen'),_0x3445a3['tooltip']=S(this['locale'],'Reopen'),_0x3445a3['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>',_0x3445a3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4c8589=>!_0x4c8589),_0x3445a3['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x300dc6,_0x3d2ec9)=>_0x300dc6&&_0x3d2ec9),_0x3445a3['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3445a3;}['_trimContextValue'](_0x3f825d){if(_0x3f825d['length']<0x96)return _0x3f825d;const _0x2f4dc7=_0x3f825d['lastIndexOf']('\x20',0x93);return _0x3f825d['substring'](0x0,_0x2f4dc7>-0x1?_0x2f4dc7:0x93)+'...';}['_attachContextActions'](){const _0x4bf9a8=this['element']['querySelector']('.ck-context'),_0x24ecb6=_0x4bf9a8['querySelector']('.ck-context__value');this['listenTo'](_0x4bf9a8,'mouseenter',()=>{_0x24ecb6['offsetWidth']<_0x24ecb6['scrollWidth']&&_0x4bf9a8['classList']['add']('overlay');}),this['listenTo'](_0x4bf9a8,'mouseleave',()=>{_0x4bf9a8['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3870f3 of this['focusables'])this['focusTracker']['add'](_0x3870f3['element']),this['keystrokes']['listenTo'](_0x3870f3['element']);}['_createContextView'](){const _0x213079=new as(this['locale']);return _0x213079['bind']('contextValue')['to'](this),_0x213079;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xb48209,_0x423230,_0xbcf035,_0x171642){super(_0xb48209),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x423230,this['_localUser']=_0xbcf035,this['_config']=_0x171642,this['commentThreadHeaderView']=new Yt(_0xb48209,_0x423230),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0xb48209,S(_0xb48209,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xb48209,_0x423230,Object['assign']({'CommentView':this['_config']['CommentView']},_0x171642)),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',(_0x62ab94,_0x42e8e0)=>_0x62ab94||!!_0x42e8e0),this['bind']('isUnlinked')['to'](_0x423230,'unlinkedAt',_0x391057=>!!_0x391057),this['bind']('ariaLabel')['to'](this,'length',_0x1f5567=>{const _0x3100be=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x1f5567,_0x3100be]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1a1568(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x178bb5=>_0x178bb5['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 _0x51e8b0=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2a6d49=_0x51e8b0['commentInputView'];return _0x51e8b0['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x2a6d49,'value',(_0x1c2743,_0x44a863,_0x3532a1,_0x24e5f8,_0x3dd2bb)=>!!_0x3dd2bb||!!_0x24e5f8&&_0x3532a1&&!_0x44a863||_0x1c2743&&_0x3532a1&&!_0x44a863),_0x2a6d49['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x761727,_0x2bda0f,_0x5e63fb)=>{let _0x334509;return _0x334509=_0x5e63fb&&_0x2bda0f?'Reply\x20to\x20reopen\x20discussion...':_0x761727?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x334509);}),_0x2a6d49['bind']('submitLabel')['to'](this,'length',_0x443897=>S(this['locale'],_0x443897?'Reply':'Comment')),_0x2a6d49['on']('submit',(_0xc16b3,_0x200638)=>{this['fire']('addComment',_0x200638),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x2a6d49['on']('cancel',()=>{this['focus']();}),_0x2a6d49['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2a6d49['on']('cancel',_0x3f4bbf=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3f4bbf['stop']());}),this['on']('change:isActive',(_0x200440,_0x4f609b,_0x3fe58f)=>{_0x3fe58f||this['length']||_0x2a6d49['value']||this['fire']('removeCommentThread');}),_0x51e8b0;}}class Ct extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(os){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0x18e63e(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1fb0bb,target:_0x1e8a39,type:_0x1fa694,isVisible:_0x5abbaa=!0x0}){super(),this['view']=_0x1fb0bb,this['view']['element']||this['view']['render'](),this['_type']=_0x1fa694,this['_target']=_0x1e8a39,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x55dc60([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x222f72,_0x8747a8)=>{this['view']['focusTracker']['add'](_0x8747a8);}),this['focusableElements']['on']('remove',(_0x4ac788,_0x46cabd)=>{this['view']['focusTracker']['remove'](_0x46cabd);}),this['set']('isVisible',_0x5abbaa);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x38fee5=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x38fee5),_0x38fee5;}get['targetRect'](){const _0x3cfc57=this['target'];if(null===_0x3cfc57)return null;if(_0x3cfc57 instanceof _0x5c15ed)return _0x3cfc57;const _0x2a8dd7=_0x3cfc57['filter'](_0x1fdcf2=>function(_0x330f16){const _0x332d6d=_0x330f16['offsetParent'];if(_0x332d6d)return!0x0;const _0xfbdbce=_0x330f16['getClientRects']()['item'](0x0);return!!_0xfbdbce;}(_0x1fdcf2));return 0x0===_0x2a8dd7['length']?null:new _0x5c15ed(_0x2a8dd7[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x44d7f5){this['view']['isActive']=_0x44d7f5,this['view']['mainView']['isActive']=_0x44d7f5;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x31ebf2){if(!(null===_0x31ebf2||_0x31ebf2 instanceof _0x5c15ed||Array['isArray'](_0x31ebf2)&&_0x31ebf2['every'](_0x358787=>ne(_0x358787))))throw new _0x441e7c('annotation-invalid-target',null,{'target':_0x31ebf2});}['_getNormalizedTarget'](){const _0x5e2b2d='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x5e2b2d)?[_0x5e2b2d]:_0x5e2b2d;}}function ne(_0x59a5c5){return null!==_0x59a5c5&&'object'==typeof _0x59a5c5&&'nodeType'in _0x59a5c5&&0x1===_0x59a5c5['nodeType'];}class x extends _0x55dc60{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x572ca9=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1a1568(),this['_focusTracker']['on']('change:isFocused',(_0x20919a,_0x403519,_0x57fb9c)=>{_0x57fb9c||this['fire']('blur');});for(const _0x1db6e0 of _0x572ca9)this['add'](_0x1db6e0);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x342657){if(this['has'](_0x342657))throw new _0x441e7c('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x342657['innerView'],_0x342657),this['_viewToAnnotation']['set'](_0x342657['view'],_0x342657);for(const _0x140f25 of _0x342657['focusableElements'])this['_focusTracker']['add'](_0x140f25);this['listenTo'](_0x342657['focusableElements'],'add',(_0x303b33,_0xc85fc8)=>{this['_focusTracker']['add'](_0xc85fc8);}),this['listenTo'](_0x342657['focusableElements'],'remove',(_0x2ea142,_0x10f8d8)=>{this['_focusTracker']['remove'](_0x10f8d8);}),this['listenTo'](_0x342657['view']['focusTracker'],'change:isFocused',(_0x154f60,_0x4b4845,_0xfefd5e)=>{_0xfefd5e&&this['fire']('focus',_0x342657);}),_0x342657['updateTargetRect']();const _0x2a3f09=this['_getOrderInContent'](_0x342657['view']['targetRect']);return super['add'](_0x342657,_0x2a3f09);}['remove'](_0xa1d9e9){if(!this['has'](_0xa1d9e9))throw new _0x441e7c('annotationcollection-not-existing-item',null);this['stopListening'](_0xa1d9e9['view']['focusTracker']),this['stopListening'](_0xa1d9e9['focusableElements']);for(const _0x5da7aa of _0xa1d9e9['focusableElements'])this['_focusTracker']['remove'](_0x5da7aa);return this['_viewToAnnotation']['delete'](_0xa1d9e9['view']),this['_innerViewToAnnotation']['delete'](_0xa1d9e9['innerView']),super['remove'](_0xa1d9e9);}['getByInnerView'](_0xebb289){return this['_innerViewToAnnotation']['get'](_0xebb289);}['getByView'](_0x2fbf87){return this['_viewToAnnotation']['get'](_0x2fbf87);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x9023f5 of this)_0x9023f5['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3a70d1=Array['from'](this)['sort']((_0x39429f,_0x50ab01)=>v(_0x39429f['view']['targetRect'],_0x50ab01['view']['targetRect']));for(let _0x5a877b=_0x3a70d1['length']-0x1;_0x5a877b>0x0;_0x5a877b--){const _0x2aac27=_0x3a70d1[_0x5a877b];_0x5a877b!==this['getIndex'](_0x2aac27)&&(this['remove'](_0x2aac27),this['add'](_0x2aac27));}}['_getOrderInContent'](_0x5da4bd){let _0x575f16=0x0;if(!_0x5da4bd)return this['length'];for(const _0x806734 of this){const _0x51c049=_0x806734['view']['targetRect'];if(_0x51c049){if(v(_0x5da4bd,_0x51c049)<0x0)return _0x575f16;_0x575f16++;}}return _0x575f16;}}function v(_0xc64a68,_0x1ac4a4){if(null===_0xc64a68&&null===_0x1ac4a4)return 0x0;if(null===_0xc64a68)return-0x1;if(null===_0x1ac4a4)return 0x1;const _0x52d469=_0xc64a68['top']-_0x1ac4a4['top'];return 0x0==_0x52d469?_0xc64a68['left']-_0x1ac4a4['left']:_0x52d469;}class N extends _0x298ec9{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f6858){if(super(_0x4f6858),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4f6858 instanceof _0x32421a){const _0x543b01=_0x4f6858['locale'];_0x4f6858['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x543b01,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x54174c){this['collection']['add'](_0x54174c);}['remove'](_0x1c820f){this['collection']['remove'](_0x1c820f),_0x1c820f['destroy']();}['refreshVisibility'](){for(const _0x174ae4 of this['collection'])_0x174ae4['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x16e256){return this['collection']['getByInnerView'](_0x16e256);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1d8634 of this['collection'])_0x1d8634['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2f1c4a){this['fire']('_activateAnnotation',_0x2f1c4a);}['createAnnotation'](_0x1823e6){return new d(_0x1823e6);}['createAnnotationView'](_0xbc2245,_0x2badb5){return new T(_0xbc2245,_0x2badb5);}['_addActiveAnnotation'](_0x5bb987){const _0x199df8=new Set(this['activeAnnotations']);_0x199df8['add'](_0x5bb987),this['activeAnnotations']=_0x199df8;}['_removeActiveAnnotation'](_0x49cff3){const _0x26f146=new Set(this['activeAnnotations']);_0x26f146['delete'](_0x49cff3),this['activeAnnotations']=_0x26f146;}['_bindAnnotationsToVisibleAnnotations'](){const _0x270e05=this['collection'],_0x2c99ce=this['_visibleAnnotations'];function _0x4e92f1(_0x1517dd){const _0x586397=_0x1517dd['source'];_0x586397['isVisible']&&!_0x2c99ce['has'](_0x586397)?_0x2c99ce['add'](_0x586397):!_0x586397['isVisible']&&_0x2c99ce['has'](_0x586397)&&_0x2c99ce['remove'](_0x586397),_0x586397['view']['focusTracker']['remove'](_0x586397['view']['element']),_0x586397['view']['focusTracker']['add'](_0x586397['view']['element']);}this['listenTo'](_0x270e05,'add',(_0x43feaf,_0x37b250)=>{_0x37b250['isVisible']&&_0x2c99ce['add'](_0x37b250),this['listenTo'](_0x37b250,'change:isVisible',_0x4e92f1);}),this['listenTo'](_0x270e05,'remove',(_0x3a58a4,_0x23e72f)=>{_0x2c99ce['has'](_0x23e72f)&&_0x2c99ce['remove'](_0x23e72f),this['stopListening'](_0x23e72f,'change:isVisible',_0x4e92f1);});}['_setupEnterAnnotationKeystroke'](){const _0x5d4088=_0x8eb7b0=>{_0x8eb7b0['on']('ready',()=>{_0x8eb7b0['keystrokes']['set'](_0x3f5078,(_0x32a5ab,_0x291079)=>{const _0x3e8c2d=_0x29ae78(this['activeAnnotations']['values']());_0x3e8c2d&&(_0x3e8c2d['view']['focus'](),_0x291079());});});};this['context']instanceof _0x32421a?_0x5d4088(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x20a910,_0x394a37)=>{_0x5d4088(_0x394a37);});}['_setupEscapeAnnotationHandling'](){const _0x276b15=_0x4a11b1=>{const _0x284e89=_0x4a11b1['source'],_0x318f3b=[];let _0x48726b;if(Array['isArray'](_0x284e89['target'])){_0x48726b=_0x284e89['target'][0x0],this['context']instanceof _0x32421a?_0x318f3b['push'](this['context']):this['context']['editors']&&_0x318f3b['push'](...this['context']['editors']);for(const _0x976064 of _0x318f3b)for(const _0x2a07ac of _0x976064['editing']['view']['domRoots']['values']())if(_0x2a07ac['contains'](_0x48726b))return void _0x976064['editing']['view']['focus']();_0x48726b['focus']();}};this['listenTo'](this['collection'],'add',(_0xdc816f,_0x1bafad)=>{this['listenTo'](_0x1bafad,'escape',_0x276b15,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x953d03,_0x44fe1c)=>{this['stopListening'](_0x44fe1c,'escape',_0x276b15);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x298ec9{['_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(_0x539aa8){super(_0x539aa8),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1de077=this['context']['config'];_0x1de077['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1de077['define']('comments.maxThreadTotalWeight',0x1f4),_0x1de077['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1de077['define']('comments.CommentThreadView',Ct),_0x1de077['define']('comments.CommentView',vt),_0x1de077['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0xbdf9bc=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x863421,_0x1922f3)=>this['_addCommentThread'](_0x1922f3)),this['on']('submitCommentThread',(_0x5b3706,_0x3ac6f9)=>this['_submitCommentThread'](_0x3ac6f9)),this['on']('resolveCommentThread',(_0x152dfd,_0x5a115f)=>this['_resolveCommentThread'](_0x5a115f)),this['on']('resolveCommentThread',(_0x579513,_0x35f75f)=>this['_updateActiveAnnotation'](_0x35f75f),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3684c5,_0xaddef4)=>this['_reopenCommentThread'](_0xaddef4)),this['on']('reopenCommentThread',(_0x180e4a,_0x3102d9)=>this['_updateActiveAnnotation'](_0x3102d9),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x286b36,_0x344ae2)=>this['_removeCommentThread'](_0x344ae2)),this['on']('updateCommentThread',(_0x504564,_0x505fb0)=>this['_updateCommentThread'](_0x505fb0)),this['on']('updateCommentThread',(_0x389632,_0x556659)=>this['_updateActiveAnnotation'](_0x556659),{'priority':'lowest'}),this['on']('addComment',(_0x2dce52,_0x3f9250)=>this['_addComment'](_0x3f9250)),this['on']('updateComment',(_0x53a120,_0x37200d)=>this['_updateComment'](_0x37200d)),this['on']('removeComment',(_0x5e7163,_0xd764c4)=>this['_removeComment'](_0xd764c4)),this['on']('addComment',(_0xe97c8b,{threadId:_0x3f08c4,isFromAdapter:_0x3aae6b})=>{if(_0x3aae6b)return;const _0x3baff1=this['getCommentThread'](_0x3f08c4),_0xe8e24=_0x3baff1&&this['_threadToController']['get'](_0x3baff1);_0xe8e24&&_0xe8e24['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0xbdf9bc,'change:activeAnnotations',(_0x20a5c0,_0x2d8373,_0x1d87ab)=>{const _0x58b0cc=Array['from'](_0x1d87ab)['map'](_0x101203=>this['_viewToController']['get'](_0x101203['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x58b0cc?_0x58b0cc['model']:null;});}set['adapter'](_0x2dd2b0){if(this['_adapter'])throw new _0x441e7c('commentsrepository-adapter-already-set');this['_adapter']=_0x2dd2b0;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0xab2501=gt,threadId:_0x3bd8e7=_0x4e9e8d(),comments:_0x10ad0c=[],unlinkedAt:_0x250b53=null,resolvedAt:_0x3b979e=null,resolvedBy:_0x15cf3e=null,target:_0x337813=null,context:_0x2b737e=null,attributes:_0x8d8a2={},isResolvable:_0x35322c=!0x0,isSubmitted:_0x475a0f=!0x1,isFromAdapter:_0x276c90=!0x1}={}){return this['fire'](_t('addCommentThread',_0xab2501),{'channelId':_0xab2501,'threadId':_0x3bd8e7,'comments':_0x10ad0c,'unlinkedAt':_0x250b53,'resolvedAt':_0x3b979e,'resolvedBy':_0x15cf3e,'target':_0x337813,'context':_0x2b737e,'attributes':_0x8d8a2,'isFromAdapter':_0x276c90,'isResolvable':_0x35322c,'isSubmitted':_0x475a0f}),this['getCommentThread'](_0x3bd8e7);}['openNewCommentThread']({channelId:_0x343526=gt,threadId:_0x151265=_0x4e9e8d(),target:_0x43563b,context:_0x1cedb2=null,isResolvable:_0xff8aed=!0x0}){if(this['_readOnlyChannels']['has'](_0x343526)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x43563b)throw new _0x441e7c('commentsrepository-missing-target');const _0x2c2b42=this['addCommentThread']({'channelId':_0x343526,'threadId':_0x151265,'target':_0x43563b,'context':_0x1cedb2,'isResolvable':_0xff8aed});if(!_0x2c2b42)return null;const _0xb3b6fc=this['_threadToController']['get'](_0x2c2b42),_0x4aea7e=_0xb3b6fc['view']['commentThreadInputView']['commentInputView'],_0x47adb0=this['context']['plugins']['get'](N),_0x4ce212=_0x47adb0['getByInnerView'](_0xb3b6fc['view']);return _0x47adb0['activate'](_0x4ce212),_0x4aea7e['once']('editorReady',()=>_0x4aea7e['focus']()),_0x2c2b42;}['hasCommentThread'](_0x5da77c){if('string'!=typeof _0x5da77c)throw new _0x441e7c('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x5da77c);}['updateCommentThread']({channelId:_0x597646=gt,threadId:_0x343af1,context:_0x57d195,unlinkedAt:_0x25cb58,attributes:_0x54957a,isFromAdapter:_0x1cd9b7=!0x1}){return this['fire'](_t('updateCommentThread',_0x597646),{'channelId':_0x597646,'threadId':_0x343af1,'context':_0x57d195,'unlinkedAt':_0x25cb58,'attributes':_0x54957a,'isFromAdapter':_0x1cd9b7}),this['getCommentThread'](_0x343af1);}['getCommentThread'](_0x356253){if('string'!=typeof _0x356253)throw new _0x441e7c('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x356253);}['fetchCommentThread']({channelId:_0x5502b6,threadId:_0x201222}={}){const _0x6768bb=this['getCommentThread'](_0x201222);if(_0x6768bb)return Promise['resolve'](_0x6768bb);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x441e7c('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5502b6,'threadId':_0x201222})['then'](_0x19392d=>this['hasCommentThread'](_0x201222)?this['getCommentThread'](_0x201222):_0x19392d?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5502b6},_0x19392d)):void 0x0)['catch'](_0x3103fc=>{throw console['error'](_0x3103fc),new _0x441e7c('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x35343b,skipNotAttached:_0x31fdf3=!0x1,skipEmpty:_0x5841c5=!0x1,toJSON:_0x2fc36e=!0x1}={}){const _0x27ec3e=[];for(const _0x8c03c0 of this['_threads']['values']())_0x35343b&&_0x8c03c0['channelId']!==_0x35343b||_0x31fdf3&&!_0x8c03c0['isAttached']||_0x5841c5&&0x0===_0x8c03c0['length']||_0x27ec3e['push'](_0x8c03c0);return _0x2fc36e?_0x27ec3e['map'](_0x424c01=>_0x424c01['toJSON']()):_0x27ec3e;}['setActiveCommentThread'](_0xb8841d){const _0x2688ef=this['context']['plugins']['get'](N);if(!_0xb8841d)return void(this['activeCommentThread']&&_0x2688ef['deactivateAll']());const _0x181e14=this['getCommentThread'](_0xb8841d);if(!_0x181e14)throw new _0x441e7c('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xb8841d});if(!this['_threadToController']['has'](_0x181e14))throw new _0x441e7c('commentsrepository-active-not-attached',null,{'threadId':_0xb8841d});const _0x25bc29=_0x2688ef['getByInnerView'](this['_threadToController']['get'](_0x181e14)['view']);_0x2688ef['activate'](_0x25bc29);}['switchReadOnly'](_0x11c6f9,_0x30c0e2){_0x11c6f9?this['_readOnlyChannels']['add'](_0x30c0e2):this['_readOnlyChannels']['delete'](_0x30c0e2),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x406013){return this['_readOnlyChannels']['has'](_0x406013)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3653e7,_0x13b789){return new yt(_0x3653e7,_0x13b789);}['setPermissions'](_0x24ff9d,_0x697ee8=gt){this['_permissions']['set'](_0x697ee8,_0x24ff9d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4e5a8f=gt){return this['_permissions']['has'](_0x4e5a8f)?this['_permissions']['get'](_0x4e5a8f):Tt;}['_addCommentThread']({channelId:_0x2db373,threadId:_0x484cc2,comments:_0x348cb9,unlinkedAt:_0x3d4722,resolvedAt:_0x2e9510,resolvedBy:_0x5e47b2,target:_0x4e88eb,context:_0x578c4d,attributes:_0x2f3e24,isFromAdapter:_0x3b1373,isResolvable:_0x4e4a81,isSubmitted:_0x122bf8}){if('string'!=typeof _0x484cc2)throw new _0x441e7c('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x484cc2});if(this['hasCommentThread'](_0x484cc2))throw new _0x441e7c('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x484cc2});const _0x36e46e=new oe(this,{'channelId':_0x2db373,'id':_0x484cc2,'context':_0x578c4d,'attributes':_0x2f3e24,'unlinkedAt':_0x3d4722,'resolvedAt':_0x2e9510,'resolvedBy':_0x5e47b2?this['context']['plugins']['get'](it)['getUser'](_0x5e47b2):null,'isResolvable':_0x4e4a81,'isSubmitted':_0x122bf8||_0x3b1373});this['_threads']['set'](_0x484cc2,_0x36e46e);for(const _0x5af580 of _0x348cb9)_0x36e46e['_add'](this['_createNewComment']({'threadId':_0x484cc2,..._0x5af580}));return _0x4e88eb&&_0x36e46e['attachTo'](_0x4e88eb),_0x3b1373||!_0x36e46e['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x2db373,'threadId':_0x484cc2});}['_submitCommentThread']({channelId:_0x319092,threadId:_0xbf71bb}){if(!this['hasCommentThread'](_0xbf71bb))throw new _0x441e7c('commentsrepository-missing-comment-thread',this);const _0x53ca8e=this['getCommentThread'](_0xbf71bb);if(_0x53ca8e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x214744,comments:_0x3b04cb,resolvedAt:_0x473685,resolvedBy:_0x36ef3e,context:_0x5cb9bb,attributes:_0x22966d}=_0x53ca8e,_0x481e7b=this['context']['plugins']['get']('PendingActions'),_0x5609d8=_0x481e7b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x319092,'threadId':_0x214744,'comments':_0x3b04cb['map'](_0x1675eb=>_0x1675eb['toJSON']()),'resolvedAt':_0x473685,'resolvedBy':_0x36ef3e?_0x36ef3e['id']:_0x36ef3e,'context':_0x5cb9bb,'attributes':_0x22966d})['then'](({comments:_0x538ee4})=>{_0x481e7b['remove'](_0x5609d8);for(const _0x48618f of _0x538ee4)this['_updateComment']({'channelId':_0x319092,'threadId':_0xbf71bb,'commentId':_0x48618f['commentId'],'createdAt':_0x48618f['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4ea3f2=>{throw console['error'](_0x4ea3f2),new _0x441e7c('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x47ca0f,target:_0x22c4d0}){const _0x284fa7=this['getCommentThread'](_0x47ca0f);if(!_0x284fa7)throw new _0x441e7c('commentsrepository-attach-missing-comment-thread',this);const _0x537d2c=this['context']['plugins']['get']('PendingActions'),_0x396e03=this['context']['plugins']['get'](N),_0x3c9dbc=this['_createCommentThreadView'](_0x284fa7),_0x39732d=new yt(_0x284fa7,_0x3c9dbc);let _0x334a9f=null;_0x3c9dbc['on']('change:isDirty',(_0x2244be,_0xe885c,_0x104910)=>{_0x104910?_0x334a9f=_0x537d2c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x334a9f&&(_0x537d2c['remove'](_0x334a9f),_0x334a9f=null);}),this['_threadToController']['set'](_0x284fa7,_0x39732d),this['_viewToController']['set'](_0x3c9dbc,_0x39732d);const _0x3466c4=new T(this['context']['locale'],_0x3c9dbc);_0x3466c4['bind']('length')['to'](_0x3c9dbc),_0x3466c4['bind']('isDirty')['to'](_0x3c9dbc,'isDirty',_0x3c9dbc,'length',(_0x37d25d,_0x12b450)=>_0x37d25d||!_0x12b450),_0x3466c4['bind']('isActive')['to'](_0x3c9dbc),_0x3466c4['type']='comment';const _0x53c1f2=new d({'view':_0x3466c4,'target':_0x22c4d0,'type':'comment','isVisible':!_0x284fa7['isResolved']});return _0x3c9dbc['on']('escape',()=>{_0x53c1f2['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3c9dbc,_0x53c1f2),_0x396e03['add'](_0x53c1f2),_0x53c1f2;}['_bindAnnotationToEditors'](_0x52c4cd,_0x336834){this['listenTo'](_0x52c4cd,'editorReady',(_0x33b85d,_0x3c0bbb)=>{const _0x2ef38d=_0x3c0bbb['ui']['view']['body']['bodyCollectionContainer'];_0x336834['focusableElements']['add'](_0x2ef38d),this['context']instanceof _0x32421a&&this['context']['ui']['focusTracker']['add'](_0x2ef38d);},{'priority':'highest'}),this['listenTo'](_0x52c4cd,'editorDestroyed',(_0x390bec,_0x36eea2)=>{const _0x4d9ffd=_0x36eea2['ui']['view']['body']['bodyCollectionContainer'];_0x336834['focusableElements']['has'](_0x4d9ffd)&&_0x336834['focusableElements']['remove'](_0x4d9ffd),this['context']instanceof _0x32421a&&this['context']['ui']['focusTracker']['remove'](_0x4d9ffd);});}['_unbindEditors'](_0x51a11d){this['stopListening'](_0x51a11d,'editorReady'),this['stopListening'](_0x51a11d,'editorDestroyed');}['_createCommentThreadView'](_0x4841e5){const _0x2e2678=this['context']['plugins']['get'](it),{config:_0x3be331,locale:_0xc5e785}=this['context'],_0x1daffe=mt(_0x3be331['get']('locale'));return new(0x0,(_0x3be331['get']('comments'))['CommentThreadView'])(_0xc5e785,_0x4841e5,_0x2e2678['me'],{'editorConfig':{..._0x3be331['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x3be331['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x3be331['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3be331['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3be331['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1daffe,'CommentView':_0x3be331['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x2cdf8a,channelId:_0x24e226,resolvedAt:_0x4bcb54,resolvedBy:_0x5c003e,isFromAdapter:_0x485ac3}){if(!this['hasCommentThread'](_0x2cdf8a))throw new _0x441e7c('commentsrepository-missing-comment-thread',null,{'threadId':_0x2cdf8a});const _0x18e152=this['getCommentThread'](_0x2cdf8a);if(_0x18e152['isResolved'])throw new _0x441e7c('commentsrepository-resolved-comment-thread',null,{'threadId':_0x2cdf8a});const _0x399721=this['context']['plugins']['get'](it);if(_0x18e152['resolvedBy']=_0x399721['getUser'](_0x5c003e),_0x18e152['resolvedAt']=_0x4bcb54,_0x485ac3||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x2333c3=this['context']['plugins']['get']('PendingActions'),_0x179919=_0x2333c3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x24e226,'threadId':_0x2cdf8a})['then'](({resolvedAt:_0x23a812,resolvedBy:_0xa35ab3})=>{_0x2333c3['remove'](_0x179919),_0x18e152['resolvedBy']['id']!==_0xa35ab3&&(_0x18e152['resolvedBy']=_0x399721['getUser'](_0xa35ab3)),_0x18e152['resolvedAt']=_0x23a812;})['catch'](_0x52a341=>{throw console['error'](_0x52a341),new _0x441e7c('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3f3f55,channelId:_0x387bf2,isFromAdapter:_0x33128b}){if(!this['hasCommentThread'](_0x3f3f55))throw new _0x441e7c('commentsrepository-missing-comment-thread',null,{'threadId':_0x3f3f55});const _0x2cea02=this['getCommentThread'](_0x3f3f55);if(!_0x2cea02['isResolved'])throw new _0x441e7c('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3f3f55});if(_0x2cea02['resolvedBy']=null,_0x2cea02['resolvedAt']=null,_0x33128b||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3b4e06=this['context']['plugins']['get']('PendingActions'),_0x526e70=_0x3b4e06['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x387bf2,'threadId':_0x3f3f55})['then'](()=>_0x3b4e06['remove'](_0x526e70))['catch'](_0x542640=>{throw console['error'](_0x542640),new _0x441e7c('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x32285f,isFromAdapter:_0x10ecbb}){const _0x47d482=this['getCommentThread'](_0x32285f);if(!_0x47d482)throw new _0x441e7c('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x32285f),this['_threads']['delete'](_0x32285f),!_0x47d482['isSubmitted']||_0x10ecbb||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4b5a97=this['context']['plugins']['get']('PendingActions'),{channelId:_0x41b65f}=_0x47d482,_0x224f9a=_0x4b5a97['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x41b65f,'threadId':_0x32285f})['then'](()=>_0x4b5a97['remove'](_0x224f9a))['catch'](_0x55eb06=>{throw console['error'](_0x55eb06),new _0x441e7c('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x33b38c,unlinkedAt:_0x18307,context:_0x39ba89,attributes:_0x12459a,isFromAdapter:_0x15d47c}){if('string'!=typeof _0x33b38c)throw new _0x441e7c('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x33b38c});if(!this['hasCommentThread'](_0x33b38c))throw new _0x441e7c('commentsrepository-missing-comment-thread',null,{'threadId':_0x33b38c});const _0x339d9e=this['getCommentThread'](_0x33b38c);let _0x261219=!0x1;if(void 0x0!==_0x39ba89&&_0x339d9e['context']!==_0x39ba89&&(_0x339d9e['context']=_0x39ba89,_0x261219=!0x0),void 0x0!==_0x18307&&_0x339d9e['unlinkedAt']!==_0x18307&&(_0x339d9e['unlinkedAt']=_0x18307,_0x261219=!0x0),_0x12459a&&!It(_0x12459a,_0x339d9e['attributes'])&&(_0x339d9e['attributes']=_0x12459a,_0x261219=!0x0),!_0x261219)return Promise['resolve']();if(!_0x339d9e['isSubmitted']||_0x15d47c||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x51085d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2cb5f4}=_0x339d9e,_0x108c7f=_0x51085d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x2cb5f4,'threadId':_0x33b38c,'context':_0x39ba89,'unlinkedAt':_0x18307,'attributes':_0x12459a})['then'](()=>_0x51085d['remove'](_0x108c7f))['catch'](_0x2eff2a=>{throw console['error'](_0x2eff2a),new _0x441e7c('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x567f17){const _0x446538=this['context']['plugins']['get'](N),_0xb12eb9=this['getCommentThread'](_0x567f17);if(this['_threadToController']['has'](_0xb12eb9)){const _0x5d019a=this['_threadToController']['get'](_0xb12eb9),_0x16eb5d=_0x5d019a['view'],_0x5b797e=_0x446538['getByInnerView'](_0x16eb5d);this['_threadToController']['delete'](_0xb12eb9),this['_viewToController']['delete'](_0x16eb5d),_0x5b797e&&_0x446538['remove'](_0x5b797e),_0x5d019a['destroy'](),_0x16eb5d['destroy']()['then'](()=>{this['_unbindEditors'](_0x16eb5d);});}}['_updateActiveAnnotation']({threadId:_0xb727e2,resolvedAt:_0x1d7ff0}){const _0x13bcf4=!!_0x1d7ff0,_0x5edc55=this['context']['plugins']['get'](N),_0x47ad8f=this['getCommentThread'](_0xb727e2);if(this['_threadToController']['has'](_0x47ad8f)){const _0x5ae7e9=this['_threadToController']['get'](_0x47ad8f)['view'],_0x314df7=_0x5edc55['getByInnerView'](_0x5ae7e9);_0x314df7&&(_0x13bcf4&&_0x5edc55['_removeActiveAnnotation'](_0x314df7),_0x314df7['refreshVisibility']());}}['_getExternalAuthor'](_0x4ea42b){const _0x4a77fc=this['context']['plugins']['get'](it),_0x32cedf=lt('external:'+_0x4ea42b),_0x299a9e=_0x4a77fc['getUser'](_0x32cedf);return _0x299a9e||_0x4a77fc['addUser']({'id':_0x32cedf,'name':_0x4ea42b});}['_createNewComment']({threadId:_0x55ac67,commentId:_0x59633c=_0x4e9e8d(),content:_0x45c515,authorId:_0x743aa6,createdAt:_0x430b80,attributes:_0x67adf3}){if('string'!=typeof _0x59633c)throw new _0x441e7c('commentsrepository-invalid-commentid');if('string'!=typeof _0x743aa6)throw new _0x441e7c('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x45c515||!_0x45c515['trim']())throw new _0x441e7c('commentsrepository-invalid-comment-content');const _0x49fe11=this['context']['plugins']['get'](it)['getUser'](_0x743aa6);if(!_0x49fe11)throw new _0x441e7c('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x743aa6});let _0x2e9fed=null,_0x33eea4=_0x430b80;return _0x67adf3&&_0x67adf3['@external']&&(_0x2e9fed=this['_getExternalAuthor'](_0x67adf3['@external']['authorName']),_0x33eea4=new Date(_0x67adf3['@external']['createdAt'])),new re(this,{'threadId':_0x55ac67,'id':_0x59633c,'author':_0x2e9fed||_0x49fe11,'creator':_0x49fe11,'content':_0x45c515,'createdAt':_0x430b80,'authoredAt':_0x33eea4,'attributes':_0x67adf3});}['_addComment'](_0x4ba28a){let {threadId:_0x220155,content:_0x40bca5,attributes:_0x930f33,isFromAdapter:_0x306b35}=_0x4ba28a;const _0x843880=this['getCommentThread'](_0x4ba28a['threadId']);if(!_0x843880)throw new _0x441e7c('commentsrepository-add-comment-to-missing-comment-thread',this);const _0xee56e7=this['_createNewComment'](_0x4ba28a),{id:_0x318b11}=_0xee56e7;if(_0x843880['_add'](_0xee56e7),_0x306b35||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x843880['isSubmitted'])return Promise['resolve']();const _0x5d7330=this['context']['plugins']['get']('PendingActions'),{channelId:_0x53f187}=_0x843880,_0x42d462=_0x5d7330['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x930f33||(_0x930f33={}),this['adapter']['addComment']({'channelId':_0x53f187,'threadId':_0x220155,'commentId':_0x318b11,'content':_0x40bca5,'attributes':_0x930f33})['then'](_0x5a107e=>{_0x5d7330['remove'](_0x42d462),_0x5a107e&&this['_updateComment']({'channelId':_0x53f187,'threadId':_0x220155,'commentId':_0x318b11,'createdAt':_0x5a107e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2804f0=>{throw console['error'](_0x2804f0),new _0x441e7c('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2b537e,commentId:_0x468487,content:_0x554459,createdAt:_0x13bac4,attributes:_0x27fa4a,isFromAdapter:_0x1e5132}){if(void 0x0!==_0x554459&&('string'!=typeof _0x554459||!_0x554459['trim']()['length']))throw new _0x441e7c('commentsrepository-update-comment-invalid-content');const _0x3ddf6c=this['getCommentThread'](_0x2b537e),_0x3e9ad6=_0x3ddf6c['getComment'](_0x468487);if(!_0x3e9ad6)throw new _0x441e7c('commentsrepository-update-missing-comment',this);let _0x3036de=!0x1;if(_0x554459&&_0x554459!==_0x3e9ad6['content']&&(_0x3e9ad6['isEditable']||_0x1e5132)&&(_0x3e9ad6['content']=_0x554459,_0x3036de=!0x0),_0x13bac4&&_0x13bac4!==_0x3e9ad6['createdAt']&&(_0x3e9ad6['createdAt']=_0x13bac4,_0x3e9ad6['attributes']&&_0x3e9ad6['attributes']['@external']||(_0x3e9ad6['authoredAt']=_0x13bac4),_0x3036de=!0x0),_0x27fa4a&&!It(_0x27fa4a,_0x3e9ad6['attributes'])&&(_0x3e9ad6['attributes']=_0x27fa4a,_0x3036de=!0x0),!_0x3036de)return Promise['resolve']();if(_0x3ddf6c['fire']('commentUpdated'),_0x1e5132||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x3a605b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x469e46}=this['getCommentThread'](_0x3e9ad6['threadId']),_0x59193a=_0x3a605b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x469e46,'threadId':_0x2b537e,'commentId':_0x468487,'content':_0x554459,'attributes':_0x27fa4a})['then'](()=>_0x3a605b['remove'](_0x59193a))['catch'](_0x48a044=>{throw console['error'](_0x48a044),new _0x441e7c('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2e0833,commentId:_0x23e200,isFromAdapter:_0x62179b}){const _0x1a42f0=this['getCommentThread'](_0x2e0833),_0x410e45=_0x1a42f0['getComment'](_0x23e200);if(!_0x410e45)throw new _0x441e7c('commentsrepository-remove-missing-comment',this);if(_0x1a42f0['_remove'](_0x410e45),_0x62179b||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x55edf7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5e8c52}=_0x1a42f0,_0x273cb1=_0x55edf7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x5e8c52,'threadId':_0x2e0833,'commentId':_0x23e200})['then'](()=>_0x55edf7['remove'](_0x273cb1))['catch'](_0x457ae2=>{throw console['error'](_0x457ae2),new _0x441e7c('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x18e63e(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3b74f7,_0x3b6b16){super();const _0x9324db=_0x3b74f7['context']['plugins']['get'](it)['me'],_0x335d17=_0x3b74f7['getCommentThread'](_0x3b6b16['threadId']),_0x43d331=0x0===_0x335d17['comments']['length'],_0x5ae2c3=_0x9324db===_0x3b6b16['author'];this['id']=_0x3b6b16['id'],this['threadId']=_0x3b6b16['threadId'],this['author']=_0x3b6b16['author'],this['creator']=_0x3b6b16['creator'],this['isExternal']=Boolean(_0x3b6b16['attributes']&&_0x3b6b16['attributes']['@external']),this['set']('content',_0x3b6b16['content']),this['createdAt']=_0x3b6b16['createdAt']||new Date(),this['set']('authoredAt',_0x3b6b16['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x335d17,'resolvedAt'),this['set']('attributes',_0x3b6b16['attributes']||{}),this['bind']('isEditable')['to'](_0x3b74f7,'_permissions',()=>{const _0x2c0ced=_0x3b74f7['getPermissions'](_0x335d17['channelId'])['write'],_0x33c744=_0x3b74f7['getPermissions'](_0x335d17['channelId'])['modifyAll'];return _0x5ae2c3&&_0x2c0ced||!_0x5ae2c3&&_0x33c744;}),this['bind']('isRemovable')['to'](_0x335d17,'isRemovable',_0x3b74f7,'_permissions',_0x36f217=>{const _0x42ad2c=_0x3b74f7['getPermissions'](_0x335d17['channelId'])['write'],_0x5a4312=_0x3b74f7['getPermissions'](_0x335d17['channelId'])['modifyAll'];return _0x5ae2c3&&_0x42ad2c||_0x36f217&&_0x43d331||!_0x5ae2c3&&_0x5a4312&&!_0x43d331;}),this['bind']('isReadOnly')['to'](_0x335d17,'isReadOnly'),this['_repository']=_0x3b74f7;}get['weight'](){return Math['max'](function(_0x2f5d33){const _0x193705=document['createElement']('div');return _0x193705['innerHTML']=_0x2f5d33,_0x193705['textContent']['length'];}(this['content']),0xc8);}['update'](_0x396096){const {threadId:_0x26880c,id:_0x290173}=this;if(!this['_repository']['hasCommentThread'](_0x26880c))throw new _0x441e7c('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x387efd}=this['_repository']['getCommentThread'](_0x26880c);this['_repository']['fire'](_t('updateComment',_0x387efd,_0x26880c),{'channelId':_0x387efd,'threadId':_0x26880c,'commentId':_0x290173,..._0x396096});}['setAttribute'](_0x596d2b,_0x1f7cf8){const _0x3fa07f=pt(this['attributes']);wt(_0x3fa07f,_0x596d2b,_0x1f7cf8),this['update']({'attributes':_0x3fa07f});}['removeAttribute'](_0xb1a080){const _0x10923a=pt(this['attributes']);At(_0x10923a,_0xb1a080),this['update']({'attributes':_0x10923a});}['remove'](_0x50b378={}){if(!_0x50b378['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x10bbdc,id:_0x2f7c88}=this;if(!this['_repository']['hasCommentThread'](_0x10bbdc))throw new _0x441e7c('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x2e696f}=this['_repository']['getCommentThread'](_0x10bbdc);this['_repository']['fire'](_t('removeComment',_0x2e696f,_0x10bbdc),{'channelId':_0x2e696f,'threadId':_0x10bbdc,'commentId':_0x2f7c88,..._0x50b378});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x588e45,..._0x286174){for(const _0x155103 of _0x286174)void 0x0!==_0x155103&&(_0x588e45+=':'+String(_0x155103));return _0x588e45;}class J extends _0x4826d4{['refresh'](){const _0xe2d5e2=this['editor']['model']['document']['selection'];for(const _0x51edb3 of _0xe2d5e2['getRanges']())if(this['_hasContent'](_0x51edb3))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x5304a0=_0x4e9e8d()}={}){const _0x37e2fd=this['editor']['model'],_0x47eeb1=[];for(const _0x177ae8 of _0x37e2fd['document']['selection']['getRanges']())this['_hasContent'](_0x177ae8)&&_0x47eeb1['push'](this['_trimToContent'](_0x177ae8));_0x37e2fd['change'](_0x5da6d6=>{for(const _0x426a73 of _0x47eeb1){const _0x5c3c70=_0x4e9e8d()['substr'](0x1,0x5),_0x595e38='comment:'+_0x5304a0+':'+_0x5c3c70;_0x5da6d6['addMarker'](_0x595e38,{'range':_0x426a73,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x506c76){for(const _0x5ea6b6 of _0x506c76['getItems']())if(this['_itemIsContent'](_0x5ea6b6))return!0x0;return!0x1;}['_itemIsContent'](_0x4174d1){return _0x4174d1['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4174d1)&&!_0x4174d1['is']('element','tableCell');}['_trimToContent'](_0x37b6af){const _0x115685=_0x463a1f=>!this['_itemIsContent'](_0x463a1f['item']),_0x4d69a3=_0x37b6af['start']['getLastMatchingPosition'](_0x115685),_0x57b974=_0x37b6af['end']['getLastMatchingPosition'](_0x115685,{'direction':'backward'});return this['editor']['model']['createRange'](_0x4d69a3,_0x57b974);}}class P extends _0x3d936c{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x385e16){super(_0x385e16),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xdb7b54=this['editor'],_0x3ce2de=_0xdb7b54['model']['document']['selection'],_0x2937b7=_0x2023a9(()=>this['refreshSelectedViews'](),0xa);_0x3ce2de['on']('change:range',(_0x11eb66,_0x29c117)=>{_0x29c117['directChange']&&(_0x2937b7['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xdb7b54['editing']['view']['document'],'change:isFocused',(_0x10db09,_0x15b30b,_0x379cb3)=>{_0x379cb3&&_0x2937b7();}),this['listenTo'](_0xdb7b54['ui']['focusTracker'],'change:isFocused',(_0x56f8fa,_0x49c40c,_0x5de4b5)=>{_0x5de4b5||_0xdb7b54['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4d5193=>this['_editorAnnotationsData']['has'](_0x4d5193['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x5cd401){if(this['_editorAnnotations']['has'](_0x5cd401['view']))return;this['_editorAnnotations']['add'](_0x5cd401['view']),this['editor']['ui']['focusTracker']['add'](_0x5cd401['view']['element']);const _0x27f39f=this['editor']['plugins']['get'](N);this['listenTo'](_0x27f39f['collection'],'remove',(_0x43120a,_0x35eaf8)=>{this['editor']['ui']['focusTracker']['remove'](_0x35eaf8['view']['element']),this['_editorAnnotations']['delete'](_0x35eaf8['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x210447){if('function'!=typeof _0x210447)throw new _0x441e7c('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x210447);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1d5a97,annotations:_0x437d75}){const _0x29b7e9=[],_0x487b8e=this['editor']['model']['document']['selection'],_0xb4d0bf=Array['from'](_0x487b8e['getRanges']());for(const [_0x101b06,_0x368b64]of this['_editorAnnotationsData']){const _0x1f14de=_0x544e5c(_0x368b64),_0x457108=_0x437d75['getByInnerView'](_0x101b06);_0x1f14de&&_0x457108&&_0x29b7e9['push']({'annotation':_0x457108,'range':_0x1f14de});}function _0x544e5c(_0x4fc75d){for(const _0x53bb12 of _0x4fc75d)for(const _0x17ccc0 of _0xb4d0bf)if(_0x53bb12['containsRange'](_0x17ccc0,!_0x487b8e['isCollapsed']))return _0x53bb12;return null;}return _0x29b7e9['sort']((_0x2802ec,_0x3916bd)=>{const _0x106dcf=_0x2802ec['range'],_0x51f12f=_0x3916bd['range'];if(!_0x106dcf['isEqual'](_0x51f12f)){if(_0x106dcf['containsRange'](_0x51f12f,!0x0))return 0x1;if(_0x51f12f['containsRange'](_0x106dcf,!0x0))return-0x1;}return _0x2802ec['annotation']==_0x1d5a97?-0x1:_0x3916bd['annotation']==_0x1d5a97?0x1:0x0;})['map'](_0x5c2bac=>_0x5c2bac['annotation']);}get['_editorAnnotationsData'](){const _0x528497=new Map();for(const _0x59d236 of Array['from'](this['_dataCollectors']))for(const [_0x3c91bb,_0x369144]of _0x59d236())_0x528497['set'](_0x3c91bb,_0x369144);return _0x528497;}}class st extends _0x3d936c{['afterInit'](){const _0x12e1f1=this['editor'];if(!_0x12e1f1['plugins']['has']('RestrictedEditingModeEditing'))return;_0x12e1f1['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3d936c{constructor(_0x144b87){super(_0x144b87),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x7d4f96=this['editor'],_0x2ddf81=_0x7d4f96['commands']['get']('importWord'),_0x2622cc=_0x7d4f96['plugins']['get'](it);_0x2ddf81&&(_0x2ddf81['on']('execute',(_0x134e7e,[,_0x13c8c7])=>{_0x13c8c7['collaboration_features']={'comments':!0x0,'user_id':_0x2622cc['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2ddf81,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x218c62,_0x2e3ffe){const {comment_threads:_0x15722b}=_0x2e3ffe;_0x15722b&&_0x15722b['forEach'](({thread_id:_0x24bea4,comments:_0x361b07,is_resolved:_0x1fa78c})=>{const _0x45f58f=new Date(),_0x25f7ec=_0x361b07['map'](({author:_0x4c7224,content:_0x578620,created_at:_0x15678b})=>({'content':_0x578620,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x45f58f,'attributes':{'@external':{'authorName':_0x4c7224,'createdAt':_0x15678b?new Date(_0x15678b):new Date(),'source':'importWord'}}})),_0xfb82ad=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xfb82ad,'threadId':_0x24bea4,'comments':_0x25f7ec,'resolvedAt':_0x1fa78c?_0x45f58f:null});});}}class at extends _0x3d936c{constructor(_0x12dab0){super(_0x12dab0),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x3a1f1e=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x3a1f1e,'contentInsertion',(_0x145a3a,_0x189527)=>this['_removeMarkersWithoutThreads'](_0x189527['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xda70bf){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xda70bf;const _0x11510b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5686df of _0xda70bf['keys']()){const [_0x4dfd1b,_0xddf5b9]=_0x5686df['split'](':');'comment'!=_0x4dfd1b||_0x11510b['hasCommentThread'](_0xddf5b9)||_0xda70bf['delete'](_0x5686df);}return _0xda70bf;}['_registerMarkerInClipboardPipeline'](){const _0x467dfa=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x475edb=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x475edb&&_0x467dfa['_registerMarkerToCopy']('comment',_0x475edb);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x35a13f){switch(_0x35a13f){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 _0x3d936c{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(_0x50a0c4){super(_0x50a0c4),this['set']('isThreadsLoadingPaused',!0x0),_0x50a0c4['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3a2d91,_0x9ddcf5,_0x129bd2,_0x321c3e)=>{const _0x45daf3=_0x129bd2?he(_0x129bd2)['id']:null;if(_0x50a0c4['model']['change'](()=>{if(_0x45daf3){const _0x4b8057=this['getAllMarkersForId'](_0x45daf3);for(const _0x5ccfbc of _0x4b8057)_0x50a0c4['editing']['reconvertMarker'](_0x5ccfbc);}if(_0x321c3e){const {id:_0x3b9b9a}=he(_0x321c3e),_0x204036=this['getAllMarkersForId'](_0x3b9b9a);for(const _0x14ec32 of _0x204036)_0x50a0c4['editing']['reconvertMarker'](_0x14ec32);}}),_0x45daf3){const _0x2c8351=_0x50a0c4['plugins']['get'](o)['getCommentThread'](_0x45daf3);_0x2c8351&&_0x2c8351['isResolved']&&this['scrollToThreadMarker'](_0x45daf3);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4ac4f0=this['editor'],_0x18cf76=_0x4ac4f0['plugins']['get'](o),_0x2185d0=_0x4ac4f0['config']['get']('collaboration.channelId');_0x4ac4f0['commands']['add']('addCommentThread',new J(_0x4ac4f0)),this['listenTo'](_0x4ac4f0,'change:isReadOnly',(_0x5e5587,_0x52c247,_0x1cb78d)=>{_0x18cf76['switchReadOnly'](_0x1cb78d,_0x4ac4f0['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x18cf76,ut('addCommentThread',_0x2185d0),(_0x47bd34,{threadId:_0x369094})=>{const _0x1ae9b2=this['editor']['plugins']['get'](o)['getCommentThread'](_0x369094);_0x1ae9b2&&_0x1ae9b2['unlinkedAt']&&this['_attachArchivedThread'](_0x369094);}),this['listenTo'](_0x18cf76,ut('removeCommentThread',_0x2185d0),(_0x193af3,{threadId:_0x5e4bb9})=>{_0x4ac4f0['model']['enqueueChange']({'isUndoable':!0x1},_0x17224a=>{const _0x191c0e=this['getAllMarkersForId'](_0x5e4bb9);for(const _0x3a46f8 of _0x191c0e)_0x17224a['removeMarker'](_0x3a46f8);});}),this['listenTo'](_0x18cf76,ut('resolveCommentThread',_0x2185d0),(_0x2d86d2,{threadId:_0x17e65a})=>{(this['_reconvertMarkers'](_0x17e65a),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x17e65a)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x18cf76,ut('reopenCommentThread',_0x2185d0),(_0x207bf9,{threadId:_0x365cd4})=>{this['_reconvertMarkers'](_0x365cd4);},{'priority':'low'}),this['listenTo'](_0x18cf76,ut('addComment',_0x2185d0),(_0x27a8d6,{threadId:_0x1ad502,isFromAdapter:_0x5755a2})=>{const _0x5098d7=this['getAllMarkersForId'](_0x1ad502);if(_0x5755a2||0x0==_0x5098d7['length']||!_0x18cf76['hasCommentThread'](_0x1ad502))return;0x1===_0x18cf76['getCommentThread'](_0x1ad502)['length']&&_0x4ac4f0['model']['enqueueChange']({'isUndoable':!0x1},_0x5b6af3=>{for(const _0xe376de of _0x5098d7)_0x5b6af3['updateMarker'](_0xe376de,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x1870f3){const _0x9541f4=_0x509292([0x37,0x68,0x48,0x46,0x69,0x44,0x6b,0x58,0x4d,0x42,0x6d,0x36,0x74,0x75,0x6e,0x61,0x54,0x59,0x56,0x6a,0x4f,0x4e,0x49,0x7a,0x65,0x57,0x71,0x35,0x55,0x4c,0x6c,0x34,0x67,0x62,0x64,0x6f,0x32,0x72,0x79,0x52,0x47,0x78,0x43,0x66,0x33,0x63,0x76,0x53,0x51,0x30,0x38,0x73,0x77,0x5a,0x45,0x70,0x39,0x4b,0x41,0x31,0x50,0x4a]),_0x48e7c5=0x7c5dcfc6,_0x204f00=0x7c5a979e^_0x48e7c5,_0x44cedd=window[_0x509292([0x44,0x61,0x74,0x65])][_0x509292([0x6e,0x6f,0x77])](),_0x1f5efe=_0x1870f3[_0x509292([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e94e2=new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x372298=>{_0x1f5efe[_0x509292([0x6f,0x6e,0x63,0x65])](_0x509292([0x72,0x65,0x61,0x64,0x79]),_0x372298);}),_0x52f446={[_0x509292([0x6b,0x74,0x79])]:_0x509292([0x45,0x43]),[_0x509292([0x75,0x73,0x65])]:_0x509292([0x73,0x69,0x67]),[_0x509292([0x63,0x72,0x76])]:_0x509292([0x50,0x2d,0x32,0x35,0x36]),[_0x509292([0x78])]:_0x509292([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]),[_0x509292([0x79])]:_0x509292([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]),[_0x509292([0x61,0x6c,0x67])]:_0x509292([0x45,0x53,0x32,0x35,0x36])},_0x3c491c=_0x1f5efe[_0x509292([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x509292([0x67,0x65,0x74])](_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23021b(){let _0xcaad4b,_0x368d0d=null,_0x84db02=null;try{if(_0x3c491c==_0x509292([0x47,0x50,0x4c]))return _0x509292([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcaad4b=_0x45228a(),!_0xcaad4b)return _0x509292([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcaad4b[_0x509292([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x84db02=_0x2bd5dc(_0xcaad4b[_0x509292([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcaad4b[_0x509292([0x6a,0x74,0x69])])),await _0x531d58()?_0x29cc01()?_0x3d175e()?_0x509292([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23f642()?(_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x509292([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x368d0d=_0x3c64ba(_0x509292([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x509292([0x74,0x72,0x69,0x61,0x6c])&&(_0x368d0d=_0x3c64ba(_0x509292([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x509292([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x368d0d=_0x3c64ba(_0x509292([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x72b1c8()):_0x509292([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x509292([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x509292([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x29006f){return _0x509292([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d175e(){const _0x104ccf=[_0x509292([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x509292([0x74,0x72,0x69,0x61,0x6c])][_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44cedd/0x3e8:0xe10*_0x204f00;return _0xcaad4b[_0x509292([0x65,0x78,0x70])]<_0x104ccf;}function _0x29cc01(){const _0xaadd87=_0xcaad4b[_0x509292([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xaadd87)return!0x1;if(_0xaadd87[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x509292([0x2a])))return!0x0;if(_0xaadd87[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x509292([0x43,0x4d,0x54])))return!0x0;if(_0xaadd87[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x509292([0x52,0x43,0x4d,0x54]))){if(_0x2094a5())return!0x0;if(_0xa1792c()||_0x203b7f())return!0x0;}return!0x1;}function _0x23f642(){const _0x144842=_0xcaad4b[_0x509292([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x144842||0x0==_0x144842[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e8d33}=new URL(window[_0x509292([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x144842[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e8d33))return!0x0;const _0x4a0b1a=_0x5e8d33[_0x509292([0x73,0x70,0x6c,0x69,0x74])](_0x509292([0x2e]));return _0x144842[_0x509292([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b4282=>_0x2b4282[_0x509292([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x509292([0x2a])))[_0x509292([0x6d,0x61,0x70])](_0x356a59=>_0x356a59[_0x509292([0x73,0x70,0x6c,0x69,0x74])](_0x509292([0x2e])))[_0x509292([0x73,0x6f,0x6d,0x65])](_0x233f28=>_0x4a0b1a[_0x509292([0x65,0x76,0x65,0x72,0x79])]((_0x55473a,_0x1aa25f)=>_0x233f28[_0x1aa25f]===_0x55473a||_0x233f28[_0x1aa25f]===_0x509292([0x2a])));}function _0x72b1c8(){return _0x368d0d&&_0x84db02?new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3480e7,_0x5dd86e)=>{_0x368d0d[_0x509292([0x74,0x68,0x65,0x6e])](_0x3480e7,_0x5dd86e),_0x84db02[_0x509292([0x74,0x68,0x65,0x6e])](_0x224f7b=>{_0x224f7b!=_0x509292([0x56,0x61,0x6c,0x69,0x64])&&_0x3480e7(_0x224f7b);},_0x5dd86e);}):_0x368d0d||_0x84db02||_0x509292([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2bd5dc(_0xc8f765,_0x5919cd){return new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf1b7dd=>{if(_0x3b26df())return _0xf1b7dd(_0x509292([0x56,0x61,0x6c,0x69,0x64]));_0x143d6a(),_0x1f5efe[_0x509292([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x509292([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3441da=!0x1;const _0x325c8b=_0x4e9e8d();function _0x17c0cd(_0x585338){return!!_0x585338&&(typeof _0x585338===_0x509292([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x585338===_0x509292([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x585338[_0x509292([0x74,0x68,0x65,0x6e])]===_0x509292([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x585338[_0x509292([0x63,0x61,0x74,0x63,0x68])]===_0x509292([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32dfd4(_0x290e24){_0x322cf1(_0x290e24)[_0x509292([0x74,0x68,0x65,0x6e])](_0x5db1f0=>{if(!_0x5db1f0||_0x5db1f0[_0x509292([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x509292([0x6f,0x6b]))return _0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4586ee(_0x252d13(_0x325c8b+_0x5919cd))!=_0x5db1f0[_0x509292([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x509292([0x56,0x61,0x6c,0x69,0x64]);})[_0x509292([0x74,0x68,0x65,0x6e])](_0x2e623b=>(_0xe26037(),_0x2e623b),()=>{const _0x342f81=_0x419e1b();return null==_0x342f81?(_0xe26037(),_0x509292([0x56,0x61,0x6c,0x69,0x64])):_0x509292(_0x44cedd-_0x342f81>(0x58514bc6^_0x48e7c5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x509292([0x74,0x68,0x65,0x6e])](_0xf1b7dd)[_0x509292([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf1b7dd(_0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd455cb=0x7c6b2146^_0x48e7c5;function _0xe26037(){const _0x165912=_0x509292([0x6c,0x6c,0x63,0x74,0x2d])+_0x4586ee(_0x252d13(_0xc8f765)),_0x284f9f=_0x2b2fa3(_0x4586ee(window[_0x509292([0x4d,0x61,0x74,0x68])][_0x509292([0x63,0x65,0x69,0x6c])](_0x44cedd/_0xd455cb)));window[_0x509292([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x509292([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x165912,_0x284f9f);}function _0x419e1b(){const _0x3240d5=_0x509292([0x6c,0x6c,0x63,0x74,0x2d])+_0x4586ee(_0x252d13(_0xc8f765)),_0x3a7f52=window[_0x509292([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x509292([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3240d5);return _0x3a7f52?window[_0x509292([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b2fa3(_0x3a7f52),0x10)*_0xd455cb:null;}function _0x322cf1(_0x1408cd){return new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x200ac6,_0x33277e)=>{_0x1408cd[_0x509292([0x74,0x68,0x65,0x6e])](_0x200ac6,_0x33277e),window[_0x509292([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33277e,0x7c5c1b06^_0x48e7c5);});}}_0x1f5efe[_0x509292([0x6f,0x6e])](_0x509292([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41c2ab,_0x34c89a)=>{if(_0x34c89a[0x0]!=_0xc8f765)return _0xf1b7dd(_0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34c89a[0x1]={..._0x34c89a[0x1],[_0x509292([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x325c8b};},{[_0x509292([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x509292([0x68,0x69,0x67,0x68])}),_0x1f5efe[_0x509292([0x6f,0x6e])](_0x509292([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1decbf=>{_0x17c0cd(_0x1decbf[_0x509292([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3441da=!0x0,_0x32dfd4(_0x1decbf[_0x509292([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x509292([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x509292([0x6c,0x6f,0x77])}),_0x3e94e2[_0x509292([0x74,0x68,0x65,0x6e])](()=>{_0x3441da||_0xf1b7dd(_0x509292([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b26df(){return _0x1f5efe[_0x509292([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x509292([0x76,0x69,0x65,0x77])][_0x509292([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x509292([0x61,0x75,0x74,0x6f]);}function _0x143d6a(){_0x1f5efe[_0x509292([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x509292([0x76,0x69,0x65,0x77])][_0x509292([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x509292([0x61,0x75,0x74,0x6f]);}}function _0x3c64ba(_0x3c2d70){const _0x3c24fe=[new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a77ce=>setTimeout(_0x3a77ce,0x7c54f10a^_0x48e7c5)),_0x3e94e2[_0x509292([0x74,0x68,0x65,0x6e])](()=>new window[(_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57cc4b=>{let _0x5e84b0=0x0;_0x1f5efe[_0x509292([0x6d,0x6f,0x64,0x65,0x6c])][_0x509292([0x6f,0x6e])](_0x509292([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19a4ea,_0x176bfa)=>{_0x176bfa[0x0][_0x509292([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e84b0++,_0x5e84b0==(0x7c5dce3e^_0x48e7c5)&&(_0x57cc4b(),_0x19a4ea[_0x509292([0x6f,0x66,0x66])]());});}))];return window[_0x509292([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x509292([0x72,0x61,0x63,0x65])](_0x3c24fe)[_0x509292([0x74,0x68,0x65,0x6e])](()=>_0x3c2d70);}async function _0x1616ca(){await _0x3e94e2,_0x1f5efe[_0x509292([0x6d,0x6f,0x64,0x65,0x6c])][_0x509292([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8ab7db,_0x1f5efe[_0x509292([0x6d,0x6f,0x64,0x65,0x6c])][_0x509292([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8ab7db,_0x1f5efe[_0x509292([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x509292([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2094a5(){return _0x5db0e6(_0x509292([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c5a8d(_0x509292([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x509292([0x73,0x74,0x61,0x74,0x65])]==_0x509292([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa1792c(){return _0x5db0e6(_0x509292([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 _0x203b7f(){return _0x5db0e6(_0x509292([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4acd04(_0xee0fc7){const _0x15fc8b=_0x43e1b8();_0x1f5efe[_0x15fc8b]=_0x509292([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xee0fc7,_0xee0fc7!=_0x509292([0x56,0x61,0x6c,0x69,0x64])&&_0x1616ca();}function _0x43e1b8(){const _0x509ff5=window[_0x509292([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x509292([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x509292([0x6e,0x6f,0x77])]())[_0x509292([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x509292([0x2e]),'');let _0x5ad175=_0x509292([0x68]);for(let _0x59a75b=0x0;_0x59a75b<_0x509ff5[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59a75b+=0x2){let _0x46e1f5=window[_0x509292([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x509ff5[_0x509292([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59a75b,_0x59a75b+0x2));_0x46e1f5>=_0x9541f4[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46e1f5-=_0x9541f4[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ad175+=_0x9541f4[_0x46e1f5];}return _0x5ad175;}function _0x45228a(){const _0x2e3210=_0x3c491c[_0x509292([0x73,0x70,0x6c,0x69,0x74])](_0x509292([0x2e]));if(0x3!=_0x2e3210[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56b072(_0x2e3210[0x1]);function _0x56b072(_0x299d6f){const _0x439011=_0x416f92(_0x299d6f);return _0x439011&&_0x2ebaf9()?_0x439011:null;function _0x2ebaf9(){const _0x1edca6=_0x439011[_0x509292([0x6a,0x74,0x69])],_0x2d8ca5=window[_0x509292([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1edca6[_0x509292([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1edca6[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x598be6={..._0x439011,[_0x509292([0x6a,0x74,0x69])]:_0x1edca6[_0x509292([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1edca6[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x598be6[_0x509292([0x76,0x63])],_0x252d13(_0x598be6)==_0x2d8ca5;}}}async function _0x531d58(){let _0x35ef26=!0x0;try{const _0x433612=_0x3c491c[_0x509292([0x73,0x70,0x6c,0x69,0x74])](_0x509292([0x2e])),[_0x2534cb,_0x378720,_0x49c13f]=_0x433612;return _0x306a44(_0x2534cb),await _0x366cf6(_0x2534cb,_0x378720,_0x49c13f),_0x35ef26;}catch(_0x2bb4a6){return!0x1;}function _0x306a44(_0x4b237f){const _0x2f9870=_0x416f92(_0x4b237f);_0x2f9870&&_0x2f9870[_0x509292([0x61,0x6c,0x67])]==_0x509292([0x45,0x53,0x32,0x35,0x36])||(_0x35ef26=!0x1);}async function _0x366cf6(_0x4ccb07,_0x246dff,_0x25fb95){const _0x418ebc=window[_0x509292([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x509292([0x66,0x72,0x6f,0x6d])](_0x1643d8(_0x25fb95),_0x381c6d=>_0x381c6d[_0x509292([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd4bd01=new window[(_0x509292([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x509292([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ccb07+_0x509292([0x2e])+_0x246dff),_0x6609c7=window[_0x509292([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x509292([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6609c7)return;const _0x9ef46e=await _0x6609c7[_0x509292([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x509292([0x6a,0x77,0x6b]),_0x52f446,{[_0x509292([0x6e,0x61,0x6d,0x65])]:_0x509292([0x45,0x43,0x44,0x53,0x41]),[_0x509292([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x509292([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x509292([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6609c7[_0x509292([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x509292([0x6e,0x61,0x6d,0x65])]:_0x509292([0x45,0x43,0x44,0x53,0x41]),[_0x509292([0x68,0x61,0x73,0x68])]:{[_0x509292([0x6e,0x61,0x6d,0x65])]:_0x509292([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9ef46e,_0x418ebc,_0xd4bd01)||(_0x35ef26=!0x1);}}function _0x416f92(_0x2401d1){return _0x2401d1[_0x509292([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x509292([0x65,0x79]))?JSON[_0x509292([0x70,0x61,0x72,0x73,0x65])](_0x1643d8(_0x2401d1)):null;}function _0x1643d8(_0x5a1553){return window[_0x509292([0x61,0x74,0x6f,0x62])](_0x5a1553[_0x509292([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x509292([0x2b]))[_0x509292([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x509292([0x2f])));}function _0x252d13(_0x1b58c4){let _0x23955a=0x1505;function _0x644661(_0x12d817){for(let _0x1a08f3=0x0;_0x1a08f3<_0x12d817[_0x509292([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a08f3++){const _0x11fa25=_0x12d817[_0x509292([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a08f3);_0x23955a=(_0x23955a<<0x5)+_0x23955a+_0x11fa25,_0x23955a&=_0x23955a;}}function _0x1ed328(_0x3c7466){Array[_0x509292([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c7466)?_0x3c7466[_0x509292([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ed328):_0x3c7466&&typeof _0x3c7466==_0x509292([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x509292([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c7466)[_0x509292([0x73,0x6f,0x72,0x74])]()[_0x509292([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31a627,_0x309e2b])=>{_0x644661(_0x31a627),_0x1ed328(_0x309e2b);}):_0x644661(window[_0x509292([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c7466));}return _0x1ed328(_0x1b58c4),_0x23955a>>>0x0;}function _0x4586ee(_0x364a3d){return _0x364a3d[_0x509292([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x509292([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x509292([0x30]));}function _0x2b2fa3(_0x3107df){return _0x3107df[_0x509292([0x73,0x70,0x6c,0x69,0x74])]('')[_0x509292([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x509292([0x6a,0x6f,0x69,0x6e])]('');}function _0x5db0e6(_0x120295){return _0x1f5efe[_0x509292([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x509292([0x68,0x61,0x73])](_0x120295);}function _0x5c5a8d(_0x54404d){return _0x1f5efe[_0x509292([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x509292([0x67,0x65,0x74])](_0x54404d);}function _0x8ab7db(){}function _0x509292(_0x1b46c2){return _0x1b46c2['map'](_0x254524=>String['fromCharCode'](_0x254524))['join']('');}_0x4acd04(await _0x23021b());}(this);}['destroy'](){const _0x41fe0a=this['editor']['plugins']['get'](o),_0x3dcd24=this['editor']['config']['get']('collaboration.channelId');for(const _0x210f1c of _0x41fe0a['getCommentThreads']({'channelId':_0x3dcd24}))_0x41fe0a['_detachCommentThread'](_0x210f1c['id']),_0x41fe0a['_threads']['delete'](_0x210f1c['id']);super['destroy']();}['hasMarkerForId'](_0x48c096){return this['getAllMarkersForId'](_0x48c096)['length']>0x0;}['getAllMarkersForId'](_0x31ee06){const _0x1f28e1=[];for(const _0x5aae5b of this['editor']['model']['markers'])_0x5aae5b['name']['startsWith']('comment:'+_0x31ee06)&&_0x1f28e1['push'](_0x5aae5b);return _0x1f28e1;}['scrollToThreadMarker'](_0x8a5bcd){const _0x5c4731=this['_getTargetForId'](_0x8a5bcd);_0x5c4731&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x8a5bcd&&rt({'target':_0x5c4731[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x16b223){this['editor']['model']['change'](()=>{for(const _0x3ef84d of this['getAllMarkersForId'](_0x16b223))this['editor']['editing']['reconvertMarker'](_0x3ef84d);});}['_attachArchivedThread'](_0x409fad){const _0x245634=this['editor']['plugins']['get'](o),_0x515519=this['editor']['plugins']['get'](P),_0x318865=_0x245634['getCommentThread'](_0x409fad);if(!_0x318865['isAttached']){const _0x50585c=_0x318865['attachTo'](()=>this['_getTargetForId'](_0x318865['id']));_0x515519['registerAnnotation'](_0x50585c),_0x318865['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x27f149=this['editor'],_0x144cba=_0x27f149['plugins']['get'](it);_0x27f149['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x237a62,_0x44859c)=>{const {id:_0x2a2667}=he(_0x237a62['markerName']),_0x491b29=_0x27f149['plugins']['get'](o)['getCommentThread'](_0x2a2667),_0x8060dd=this['activeMarker']&&he(this['activeMarker'])['id']===_0x2a2667;let _0x1f96ab;if(_0x491b29&&_0x491b29['isResolved']&&!_0x8060dd&&_0x237a62['item'])return _0x44859c['consumable']['consume'](_0x237a62['item'],'addMarker:'+_0x237a62['markerName']),_0x44859c['consumable']['consume'](_0x237a62['item'],'removeMarker:'+_0x237a62['markerName']),null;const _0x2da990=['ck-comment-marker'];return _0x8060dd&&_0x2da990['push']('ck-comment-marker--active'),_0x1f96ab=_0x491b29&&_0x491b29['length']?_0x491b29['comments']['first']['author']['id']:_0x144cba['me']['id'],{'classes':_0x2da990,'attributes':{'data-comment':_0x2a2667,'data-author-id':_0x1f96ab}};}}),_0x27f149['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x25fd56,{options:_0x327be6})=>{const _0x2c77a2=_0x27f149['plugins']['get'](o),_0x58afa7=_0x27f149['model']['markers']['get'](_0x25fd56),{id:_0x429afb,part:_0x16a5b0}=he(_0x25fd56);if(_0x58afa7&&!_0x58afa7['affectsData'])return null;if(_0x327be6['ignoreResolvedComments']){const _0x32319a=_0x2c77a2['getCommentThread'](_0x429afb);if(_0x32319a&&_0x32319a['isResolved'])return null;}return{'group':'comment','name':_0x16a5b0?_0x429afb+':'+_0x16a5b0:_0x429afb};}}),_0x27f149['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3dcc3f,{writer:_0x468337})=>_0x468337['createElement']('$marker',{'data-name':'comment:'+_0x3dcc3f['getAttribute']('id')})}),_0x27f149['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3767c3=this['editor'],_0xc87dbc=_0x3767c3['plugins']['get'](o),_0x3d29a5=new Set(),_0x340ddf=new Set();_0x3767c3['model']['document']['registerPostFixer'](_0xd43b8e=>{let _0x15d3b6=!0x1;for(const {name:_0x580f72,data:_0x5e89cd}of _0x3767c3['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4ed3be,id:_0x21108b}=he(_0x580f72);let _0x3297c4=_0x5e89cd['newRange'];if('comment'!==_0x4ed3be||!_0x3297c4)continue;const _0x509c6f='$graveyard'===_0x3297c4['root']['rootName'];_0x509c6f||(_0x3297c4=ft(_0x3297c4,_0x3767c3['model']),!_0x3297c4||_0x3297c4['isCollapsed']||!_0x5e89cd['newRange']||_0x3297c4['isEqual'](_0x5e89cd['newRange']))?_0x3767c3['model']['hasContent'](_0x3297c4)&&!_0x509c6f?this['isThreadsLoadingPaused']?_0x3d29a5['add'](_0x580f72):this['_handleThreadMarker'](_0x580f72,_0x21108b):(_0x340ddf['add'](_0x580f72),_0x3d29a5['delete'](_0x580f72),_0xd43b8e['removeMarker'](_0x580f72),_0x15d3b6=!0x0):(_0xd43b8e['updateMarker'](_0x580f72,{'range':_0x3297c4}),_0x15d3b6=!0x0);}return _0x15d3b6;}),this['on']('change:isThreadsLoadingPaused',(_0x5789b5,_0x7016e2,_0x1b27d6)=>{if(!_0x1b27d6&&_0x3d29a5['size'])for(const _0x5009e7 of _0x3d29a5){const {id:_0x3d1533}=he(_0x5009e7);_0x3d29a5['delete'](_0x5009e7),_0x3767c3['model']['markers']['get'](_0x5009e7)&&this['_handleThreadMarker'](_0x5009e7,_0x3d1533);}}),this['listenTo'](_0x3767c3['model']['document'],'change',(_0x11a7ee,_0x214927)=>{for(const {name:_0x5987bc,data:{newRange:_0x2880fa}}of _0x3767c3['model']['document']['differ']['getChangedMarkers']()){const {group:_0x31cc2d,id:_0x349e21}=he(_0x5987bc);if('comment'!==_0x31cc2d)continue;const _0x136219=_0xc87dbc['getCommentThread'](_0x349e21),_0x56c159=this['hasMarkerForId'](_0x349e21);_0x136219&&(!_0x136219['_hasTargetInContent']&&_0x2880fa&&_0x3767c3['editing']['view']['once']('render',()=>{const _0x411921=_0x3767c3['plugins']['get'](N),_0x4640b1=_0xc87dbc['_threadToController']['get'](_0x136219)['view'];_0x411921['getByInnerView'](_0x4640b1)['refreshVisibility']();},{'priority':'low'}),_0x136219['_hasTargetInContent']=_0x56c159||!!_0x2880fa),_0x2880fa||(_0x340ddf['add'](_0x5987bc),_0x3d29a5['delete'](_0x5987bc));}if(_0x214927['isLocal'])for(const _0x330589 of _0x340ddf){const {id:_0x402d52}=he(_0x330589),_0x24d557=_0xc87dbc['getCommentThread'](_0x402d52),_0x103a80=this['hasMarkerForId'](_0x402d52);_0x3d29a5['delete'](_0x330589),!_0x24d557||_0x103a80||_0x24d557['unlinkedAt']||_0x24d557['setUnlinkedAt'](new Date());}_0x340ddf['clear']();});}['_getTargetForId'](_0x5a729e){const _0xcea38d=this['editor'],_0x5df352=this['getAllMarkersForId'](_0x5a729e);return et(_0xcea38d['editing'],_0x5df352);}['_getTextContext'](_0x165751){const _0x1b2c07=this['getAllMarkersForId'](_0x165751);let _0x2330b7='',_0x16853f=!0x1;for(const _0x5d87ff of _0x1b2c07){const _0x94b4ea=_0x5d87ff['getRange']();for(const _0xbd3de4 of Array['from'](_0x94b4ea['getItems']()))_0xbd3de4['is']('$textProxy')?(_0x2330b7&&_0x16853f&&(_0x2330b7+='\x20',_0x16853f=!0x1),_0x2330b7+=_0xbd3de4['data']):_0x16853f=!0x0;_0x16853f=!0x0;}return _0x2330b7['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x10bde4,_0x24b5a6){const _0x3621dd=this['editor'],_0x1feded=_0x3621dd['plugins']['get'](o);let _0x4167cd=_0x1feded['getCommentThread'](_0x24b5a6);const _0x16d6b3=_0x3621dd['config']['get']('collaboration.channelId'),_0x21e1a3=_0x3621dd['plugins']['get'](P);if(_0x4167cd&&(_0x4167cd['unlinkedAt']&&_0x4167cd['setUnlinkedAt'](null),_0x4167cd['isAttached']))return _0x4167cd;return!this['getAllMarkersForId'](_0x24b5a6)[0x0]['managedUsingOperations']?_0x3621dd['editing']['view']['once']('render',()=>{if(_0x1feded['getCommentThread'](_0x24b5a6))return;const _0x4f4b82=_0x3621dd['plugins']['get'](N);_0x4167cd=_0x1feded['openNewCommentThread']({'channelId':_0x16d6b3,'threadId':_0x24b5a6,'target':()=>this['_getTargetForId'](_0x24b5a6),'context':{'type':'text','value':this['_getTextContext'](_0x24b5a6)}});const _0x4ce54a=_0x1feded['_threadToController']['get'](_0x4167cd)['view'],_0x2c9240=_0x4f4b82['getByInnerView'](_0x4ce54a);_0x2c9240&&_0x21e1a3['registerAnnotation'](_0x2c9240);},{'priority':'low'}):_0x1feded['fetchCommentThread']({'channelId':_0x16d6b3,'threadId':_0x24b5a6})['then'](_0x1d4785=>{if('destroyed'!==_0x3621dd['state']){if(_0x4167cd=_0x1d4785,_0x4167cd&&!_0x4167cd['isAttached']){const _0x4fc529=_0x4167cd['attachTo'](()=>this['_getTargetForId'](_0x24b5a6));_0x21e1a3['registerAnnotation'](_0x4fc529),_0x4167cd['isResolved']&&this['_reconvertMarkers'](_0x24b5a6);}else{if(!_0x4167cd){const _0x4190e4=this['getAllMarkersForId'](_0x24b5a6);_0x3621dd['model']['change'](_0x42b148=>{for(const _0x2f2430 of _0x4190e4)_0x42b148['removeMarker'](_0x2f2430);});}}}}),_0x4167cd;}['_handleThreadMarker'](_0x32a5f7,_0x35d6e0){const _0x573a56=this['_attachMarkerToThread'](_0x32a5f7,_0x35d6e0);_0x573a56&&!_0x573a56['context']&&_0x573a56['setContext']({'type':'text','value':this['_getTextContext'](_0x35d6e0)});}['_initAriaMarkerChangeAnnouncements'](){const _0x191a44=this['editor'];ot(_0x191a44['model'],({left:_0x2ff2f5,entered:_0x1c99c2})=>{for(const _0x57b8cc of _0x2ff2f5)if(dt(_0x57b8cc)){_0x191a44['ui']['ariaLiveAnnouncer']['announce'](S(_0x191a44['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3b4bf3 of _0x1c99c2)if(dt(_0x3b4bf3)){_0x191a44['ui']['ariaLiveAnnouncer']['announce'](S(_0x191a44['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x4e5257)));break;}});}}function ut(_0x354259,_0x4fd4bf){return _0x4fd4bf?_0x354259+':'+_0x4fd4bf:_0x354259;}function he(_0x18eb11){const _0x271fc1=_0x18eb11['split'](':');return{'group':_0x271fc1[0x0],'id':_0x271fc1[0x1],'part':_0x271fc1[0x2]};}function ft(_0x52a651,_0x3a9622){const _0x56515f=_0x3a9622['schema'],_0x4a70b9=_0x3a9622['createRange'](_0x52a651['start']);for(const _0x54f103 of _0x52a651['getWalker']()){const {type:_0x376a72,item:_0x47e894,nextPosition:_0xc5f446}=_0x54f103;if('text'===_0x376a72||_0x56515f['isObject'](_0x47e894)){const _0x2983b5=_0x3a9622['createPositionBefore'](_0x47e894);_0x4a70b9['isCollapsed']&&(_0x4a70b9['start']=_0x2983b5),_0x4a70b9['end']=_0xc5f446;}}return _0x4a70b9;}function dt(_0x5e8399){return'comment'===he(_0x5e8399['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 _0x3d936c{['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 _0xf0f848=this['editor'],_0x3cbac2=_0xf0f848['plugins']['get'](o),_0x2fa197=_0xf0f848['plugins']['get'](r),_0xc26ba3=_0xf0f848['plugins']['get'](N),_0x1f6a2e=_0xf0f848['plugins']['get'](P);_0xf0f848['ui']['componentFactory']['add']('comment',()=>{const _0x2b6ea8=this['_createUIButton'](_0xc22dd3);return _0x2b6ea8['tooltip']=!0x0,_0x2b6ea8;}),_0xf0f848['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x1920af)),_0x1f6a2e['addSourceCollector'](()=>{const _0x584152=[];for(const [_0x3e433b,_0x3b1cca]of _0x3cbac2['_threadToController']){const _0x4d6339=_0x2fa197['getAllMarkersForId'](_0x3e433b['id']),_0x4561b4=_0x4d6339['map'](_0x4b29bd=>_0x4b29bd['getRange']());_0x4d6339['length']>0x0&&_0x584152['push']([_0x3b1cca['view'],_0x4561b4]);}return _0x584152;}),this['listenTo'](_0xc26ba3,'change:activeAnnotations',(_0x1e8900,_0x585f19,_0x2c899d)=>{const _0x4441cc=Array['from'](_0x2c899d)['map'](_0x496abe=>_0x496abe['innerView'])['find'](_0xdce180=>_0x3cbac2['_viewToController']['has'](_0xdce180));if(!_0x4441cc)return void(_0x2fa197['activeMarker']=null);const _0x426dd7=_0x3cbac2['_viewToController']['get'](_0x4441cc)['model']['id'],_0x2b6cd5='comment:'+_0x426dd7;_0x426dd7&&_0x2fa197['hasMarkerForId'](_0x426dd7)?_0x2fa197['activeMarker']=_0x2b6cd5:_0x2fa197['activeMarker']&&(_0x2fa197['activeMarker']=null);}),this['listenTo'](_0x3cbac2,'removeCommentThread',(_0x197069,{threadId:_0x93f9c7,isFromAdapter:_0x5302c8})=>{!_0x5302c8&&_0xf0f848['ui']['focusTracker']['isFocused']&&_0x2fa197['hasMarkerForId'](_0x93f9c7)&&_0xf0f848['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3cbac2,'addComment',(_0x1fa0f6,{threadId:_0x3d7645,isFromAdapter:_0x57f499})=>{if(_0x57f499||!_0x2fa197['hasMarkerForId'](_0x3d7645)||!_0x3cbac2['hasCommentThread'](_0x3d7645))return;0x1===_0x3cbac2['getCommentThread'](_0x3d7645)['length']&&(_0xf0f848['editing']['view']['focus'](),_0x1fa0f6['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3561c3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3eed53;for(const _0x515d74 in _0x3561c3){const _0x565859=_0x515d74,_0x39858a=_0x3561c3[_0x565859];if('commentsLicenseKeyValid'==_0x39858a||'commentsLicenseKeyInvalid'==_0x39858a||'commentsLicenseKeyExpired'==_0x39858a||'commentsLicenseKeyDomainLimit'==_0x39858a||'commentsLicenseKeyNotAllowed'==_0x39858a||'commentsLicenseKeyEvaluationLimit'==_0x39858a||'commentsLicenseKeyTrialLimit'==_0x39858a||'commentsLicenseKeyDevelopmentLimit'==_0x39858a||'commentsLicenseKeyUsageLimit'==_0x39858a){delete _0x3561c3[_0x565859],_0x3eed53=_0x39858a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3eed53&&_0x3561c3['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3eed53&&_0x3561c3['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3eed53&&_0x3561c3['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x3eed53&&_0x3561c3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x41458e){const _0x190008=this['editor'],_0x18000d=new _0x41458e(_0x190008['locale']),_0x2369ba=_0x190008['commands']['get']('addCommentThread');return _0x18000d['set']({'label':S(_0x190008['locale'],'Comment'),'icon':xt}),_0x18000d['bind']('isEnabled')['to'](_0x2369ba),this['listenTo'](_0x18000d,'execute',()=>_0x2369ba['execute']()),_0x18000d;}}class s extends _0x3d936c{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x360a63){super(_0x360a63),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x4bc84c,_0x2d4ec9,_0x5d9b8d)=>{_0x5d9b8d?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x23fc48,_0x244fbc]of this['editor']['commands'])_0x244fbc['affectsData']&&'addCommentThread'!==_0x23fc48&&_0x244fbc['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x27b552=this['editor']['editing']['view']['document'];this['listenTo'](_0x27b552,'cut',_0x4acbd3=>_0x4acbd3['stop'](),{'priority':'highest'}),this['listenTo'](_0x27b552,'clipboardInput',_0x1f5a0b=>_0x1f5a0b['stop'](),{'priority':'highest'}),this['listenTo'](_0x27b552,'delete',_0x53e4b1=>_0x53e4b1['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x570a7b,_0x46f55d]of this['editor']['commands'])_0x46f55d['affectsData']&&'addCommentThread'!==_0x570a7b&&_0x46f55d['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x298ec9{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59ade2){super(_0x59ade2),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x16c54f=this['context']['plugins']['get'](N);this['listenTo'](_0x16c54f,'_activateAnnotation',(_0x511d94,_0x4ce8d2)=>{for(const _0x2b5d99 of this['activeUIs']){const _0xb5131a=this['_uis']['get'](_0x2b5d99);(0x0,this['_uisData']['get'](_0x2b5d99)['filter'])(_0x4ce8d2)&&_0xb5131a['setActiveAnnotation'](_0x4ce8d2);}}),this['listenTo'](_0x16c54f,'_deactivateAllAnnotations',()=>{for(const _0x281479 of this['activeUIs']){this['_uis']['get'](_0x281479)['setActiveAnnotation'](null);}}),this['listenTo'](_0x16c54f['_visibleAnnotations'],'add',(_0xe705c,_0x50d1d2)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x50d1d2);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x46be01){return this['activeUIs']['has'](_0x46be01);}['activate'](_0x30c696,_0x11806b=()=>!0x0){const _0xe46282=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x30c696))throw new _0x441e7c('annotationsuis-missing-ui',this,{'uiName':_0x30c696});this['isActive'](_0x30c696)&&this['deactivate'](_0x30c696),this['activeUIs']['add'](_0x30c696);const _0x5b3e3b=new x();!function({source:_0x5e7dd2,target:_0x191a4b,filter:_0x404f78}){for(const _0x40e27b of _0x5e7dd2)_0x404f78(_0x40e27b)&&_0x191a4b['add'](_0x40e27b);_0x191a4b['listenTo'](_0x5e7dd2,'add',(_0x3846ff,_0x28ba64)=>{_0x404f78(_0x28ba64)&&_0x191a4b['add'](_0x28ba64);}),_0x191a4b['listenTo'](_0x5e7dd2,'remove',(_0x188246,_0x164d07)=>{_0x191a4b['has'](_0x164d07)&&_0x191a4b['remove'](_0x164d07);});}({'source':_0xe46282['_visibleAnnotations'],'target':_0x5b3e3b,'filter':_0x11806b}),this['_uisData']['set'](_0x30c696,{'collection':_0x5b3e3b,'filter':_0x11806b});const _0x29ba02=this['_uis']['get'](_0x30c696);_0x29ba02['attach'](_0x5b3e3b),this['listenTo'](_0x29ba02,'change:activeAnnotation',(_0xd6c89b,_0x3d7cf6,_0x19936f,_0x4d0c9c)=>{_0x4d0c9c&&_0xe46282['_removeActiveAnnotation'](_0x4d0c9c),_0x19936f&&_0xe46282['_addActiveAnnotation'](_0x19936f);});}['deactivate'](_0x3abf54){if(this['activeUIs']['delete'](_0x3abf54),!this['_uis']['has'](_0x3abf54))throw new _0x441e7c('annotationsuis-missing-ui',this,{'uiName':_0x3abf54});const _0x133cda=this['_uis']['get'](_0x3abf54);_0x133cda['detach'](),this['stopListening'](_0x133cda),this['_uisData']['get'](_0x3abf54)['collection']['destroy'](),this['_uisData']['delete'](_0x3abf54);}['switchTo'](_0x3850f5){if(!this['_uis']['has'](_0x3850f5))throw new _0x441e7c('annotationsuis-missing-ui',this,{'uiName':_0x3850f5});const _0x21d7a3=this['context']['plugins']['get'](N),_0x11d648=Array['from'](_0x21d7a3['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3850f5);const _0x5ac2bc=this['_uis']['get'](_0x3850f5);_0x5ac2bc['setActiveAnnotation'](_0x11d648),_0x5ac2bc['_setSelectedAnnotations']&&_0x11d648&&_0x5ac2bc['_setSelectedAnnotations']([_0x11d648]);}['deactivateAll'](){for(const _0x245965 of this['activeUIs'])this['deactivate'](_0x245965);}['register'](_0x476691,_0x46238f){if(this['_uis']['has'](_0x476691))throw new _0x441e7c('annotationsuis-register-already-registered');if('function'!=typeof _0x46238f['attach']||'function'!=typeof _0x46238f['detach']||'function'!=typeof _0x46238f['setActiveAnnotation'])throw new _0x441e7c('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x476691,_0x46238f);}['refilterAnnotations'](){const _0x3e6d65=this['context']['plugins']['get'](N)['collection'],_0x32f6f4=new Map(),_0x22140a=Array['from'](this['activeUIs']);for(const _0x2af306 of this['activeUIs']){const _0x11660f=this['_uisData']['get'](_0x2af306)['collection'];for(const _0x3f66e8 of _0x11660f)_0x32f6f4['set'](_0x3f66e8,_0x2af306);}for(const _0x38f68a of _0x3e6d65){const _0x49ab4b=_0x32f6f4['get'](_0x38f68a);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x38f68a);const _0x760301=_0x22140a['find'](_0x59b936=>this['_uisData']['get'](_0x59b936)['filter'](_0x38f68a));_0x49ab4b!==_0x760301&&(_0x49ab4b&&this['_uisData']['get'](_0x49ab4b)['collection']['remove'](_0x38f68a),_0x760301&&this['_uisData']['get'](_0x760301)['collection']['add'](_0x38f68a));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x536a4e){const _0xbad8c3=[];for(const _0x4f1747 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x4f1747)['filter'])(_0x536a4e)&&_0xbad8c3['push'](_0x4f1747);}if(_0xbad8c3['length']>0x1)throw new _0x441e7c('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xbad8c3,'annotationType':_0x536a4e['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4bf569){super(_0x4bf569);const _0x222315=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 _0x1a1568(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x222315['to']('class')],'style':{'minHeight':_0x222315['to']('minHeight',_0x356625=>'number'==typeof _0x356625?ae(_0x356625+0xa):null)},'dir':_0x4bf569['uiLanguageDirection'],'role':'application','aria-label':S(_0x4bf569,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x4bf569,'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',_0x269f81=>{this['_updateItemPositionInFocusables'](_0x269f81['source']);}),this['list']['forEach'](_0x4af998=>{this['focusTracker']['add'](_0x4af998['element']),this['_updateItemPositionInFocusables'](_0x4af998);}),this['list']['on']('change',(_0x49337f,_0x375e81)=>{for(const _0x6aa8b4 of _0x375e81['removed'])this['focusTracker']['remove'](_0x6aa8b4['element']),this['focusables']['remove'](_0x6aa8b4);for(const _0x43b1e4 of _0x375e81['added'])this['focusTracker']['add'](_0x43b1e4['element']),this['_updateItemPositionInFocusables'](_0x43b1e4);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x2921f4){const _0x29bfc4=this['focusables']['getIndex'](_0x2921f4);let _0x110ce6,_0xdcd3ae;for(const _0x4568c9 of this['focusables'])if(_0x2921f4['top']<_0x4568c9['top']){_0x110ce6=_0x4568c9;break;}if(_0xdcd3ae=_0x110ce6?this['focusables']['getIndex'](_0x110ce6):this['focusables']['length'],-0x1!==_0x29bfc4){if(_0x29bfc4===_0xdcd3ae-0x1)return;this['focusables']['remove'](_0x2921f4),_0xdcd3ae=_0x110ce6?this['focusables']['getIndex'](_0x110ce6):this['focusables']['length'];}this['focusables']['add'](_0x2921f4,_0xdcd3ae);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1223c5){super(_0x1223c5),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5b9f71,_0x3f0db1)=>_0x5b9f71+_0x3f0db1),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x54055f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x54055f['to']('isAnimationDisabled',_0x169c0d=>_0x169c0d?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x54055f['to']('top',_0x4d9536=>qt(_0x4d9536))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x2124ca=this['element']['clientHeight'];_0x2124ca&&(this['height']=_0x2124ca);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x298ec9{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b88cb){super(_0x1b88cb),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 _0x515e14=this['context']['config']['get']('sidebar.container');_0x515e14&&this['setContainer'](_0x515e14);}['setContainer'](_0x44700b){if(!y(_0x44700b))throw new _0x441e7c('sidebar-setcontainer-invalid-element');this['container']=_0x44700b;}['_attachToContainer']({viewClass:_0x49caf5='',spaceBetweenItems:_0x51536d=0x19}={}){if(!y(this['container']))throw new _0x441e7c('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x49caf5,this['_spaceBetweenItems']=_0x51536d;}['rearrange']({removedAnnotation:_0x36e685,previousAnnotation:_0x198262,nextAnnotation:_0x34cca0}){const _0xd53a3c=this['getSidebarItemView'](_0x36e685);this['view']['list']['remove'](_0xd53a3c),this['_destroySidebarItemView'](_0x36e685),_0x198262&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x198262)),_0x34cca0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x34cca0)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3b5d43,activatedAnnotation:_0xa32507,disableAnimationOnActivatedAnnotation:_0x5b7757}){if(this['_activeAnnotation']=_0xa32507,_0x3b5d43){_0x3b5d43['isActive']=!0x1;const _0x440c58=this['getSidebarItemView'](_0x3b5d43);_0x440c58&&_0x5b7757&&(_0x440c58['isAnimationDisabled']=!0x1);}if(_0xa32507){const _0x27d084=this['getSidebarItemView'](_0xa32507);_0x27d084&&(_0xa32507['isActive']=!0x0,_0x5b7757&&(_0x27d084['isAnimationDisabled']=!0x0,_0x27d084['top']+=0x1),this['_alignToTargetRect'](_0x27d084));}}['_detachFromContainer'](_0x1fc1e8){if(this['view']['element']['remove'](),_0x1fc1e8){for(const _0x4132be of _0x1fc1e8)this['_destroySidebarItemView'](_0x4132be);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5660bb,_0xd8a9b2){_0xd8a9b2||(_0xd8a9b2=_0x5660bb['view']);const _0x58a578=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x58a578,_0x5660bb),this['_annotationToSidebarItemView']['set'](_0x5660bb,_0x58a578),_0x58a578['content']['add'](_0xd8a9b2),this['listenTo'](_0x5660bb['view'],'change:targetRect',(_0xd656c1,_0x2ac642,_0x490029)=>{const _0x4f1911=this['_getTargetTop'](_0x5660bb,_0x490029);_0x58a578['_targetTop']!=_0x4f1911&&(_0x58a578['_targetTop']=_0x4f1911,this['_setItemTop'](_0x58a578,_0x4f1911));}),this['listenTo'](_0x58a578,'change:top',()=>{this['_recalculate'](_0x58a578,'top');}),this['listenTo'](_0x58a578,'change:bottom',()=>{this['_recalculate'](_0x58a578,'bottom');}),this['_alignToTargetRect'](_0x58a578);const _0x5bfdf7=this['_getItemBefore'](_0x58a578);if(_0x5bfdf7)this['_alignAfterItem'](_0x5bfdf7,_0x58a578)||this['_alignToTargetRect'](_0x58a578);else this['_alignToTargetRect'](_0x58a578);return this['_updateLastItem'](),this['view']['list']['add'](_0x58a578),_0x58a578;}['_alignForTopChange'](_0x355a11){if(!_0x355a11['content']['length'])return;const _0x5d270b=this['_getItemBefore'](_0x355a11);if(!_0x5d270b)return;const _0x2b7e0f=this['_sidebarItemViewToAnnotation']['get'](_0x5d270b),_0x4c0ff2=this['_activeAnnotation'];_0x4c0ff2&&_0x4c0ff2===_0x2b7e0f?this['_alignAfterItem'](_0x5d270b,_0x355a11):this['_alignBeforeItem'](_0x355a11,_0x5d270b);}['_alignForBottomChange'](_0x51f12e){if(!_0x51f12e['content']['length'])return;const _0x4aa857=this['_getItemAfter'](_0x51f12e);if(!_0x4aa857)return;const _0x471412=this['_sidebarItemViewToAnnotation']['get'](_0x4aa857),_0x53ba4a=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x26b4a9=this['_activeAnnotation'];_0x26b4a9&&_0x26b4a9===_0x471412&&_0x53ba4a?(this['_alignBeforeItem'](_0x4aa857,_0x51f12e),this['_alignAfterItem'](_0x51f12e,_0x4aa857)):_0x26b4a9&&_0x26b4a9===_0x471412?this['_alignBeforeItem'](_0x4aa857,_0x51f12e):this['_alignAfterItem'](_0x51f12e,_0x4aa857);}['_recalculate'](_0xca515d,_0x5861f8){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xf8c62c,changedProp:_0x2ee496}of this['_recalculateBuffer'])'top'===_0x2ee496?this['_alignForTopChange'](_0xf8c62c):this['_alignForBottomChange'](_0xf8c62c);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xca515d,'changedProp':_0x5861f8});}['getSidebarItemView'](_0x56dd12){return this['_annotationToSidebarItemView']['get'](_0x56dd12);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x150fc3){const _0x2c7ef3=this['getSidebarItemView'](_0x150fc3);this['stopListening'](_0x2c7ef3),this['stopListening'](_0x150fc3['view']),_0x2c7ef3['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x150fc3),this['_sidebarItemViewToAnnotation']['delete'](_0x2c7ef3);}['_createSidebarView'](){const _0x5482c1=new V(this['context']['locale']);return _0x5482c1['render'](),this['on']('change:_lastItem',(_0x4042fc,_0x3dfe2f,_0xf944fc,_0x1caf06)=>{_0x1caf06&&_0x5482c1['unbind']('minHeight'),_0xf944fc?_0x5482c1['bind']('minHeight')['to'](_0xf944fc,'bottom'):_0x5482c1['minHeight']=null;}),_0x5482c1;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3e27e3){const _0x1e3cc2=this['_sidebarItemViewToAnnotation']['get'](_0x3e27e3),_0x22b7dd=_0x1e3cc2&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1e3cc2)-0x1);return _0x22b7dd&&this['getSidebarItemView'](_0x22b7dd)||null;}['_getItemAfter'](_0x4921aa){const _0x27cb41=this['_sidebarItemViewToAnnotation']['get'](_0x4921aa),_0x5f49c5=_0x27cb41&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x27cb41)+0x1);return _0x5f49c5&&this['getSidebarItemView'](_0x5f49c5)||null;}['_alignBeforeItem'](_0x3bb549,_0x1198db){_0x3bb549['updateHeight']();const _0x17637f=R(_0x1198db['bottom']+this['_spaceBetweenItems'],_0x3bb549['top']);return!!_0x17637f&&(this['_setItemTop'](_0x1198db,_0x1198db['top']-_0x17637f),!0x0);}['_alignAfterItem'](_0x12e84d,_0x1e30b8){_0x12e84d['updateHeight']();const _0x1ea147=R(_0x12e84d['bottom']+this['_spaceBetweenItems'],_0x1e30b8['top']);return!!_0x1ea147&&(this['_setItemTop'](_0x1e30b8,_0x1e30b8['top']+_0x1ea147,!0x1),!0x0);}['_alignToTargetRect'](_0x449a02){const _0x4ba6b3=this['_sidebarItemViewToAnnotation']['get'](_0x449a02);if(!_0x4ba6b3||!_0x4ba6b3['target']||!_0x4ba6b3['targetRect'])return;const _0xae4276=this['_getTargetTop'](_0x4ba6b3,_0x4ba6b3['targetRect']);this['_setItemTop'](_0x449a02,_0xae4276);}['_getTargetTop'](_0x312cc5,_0x1f8999){if(null===_0x1f8999)return 0x0;if(_0x312cc5['target']instanceof _0x5c15ed)return _0x1f8999['top'];{const _0x164bfd=new _0x5c15ed(this['view']['element'])['top'];return _0x1f8999['top']-_0x164bfd;}}['_setItemTop'](_0x50ba7f,_0x35b0ce,_0x22d385=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x22d385&&(_0x35b0ce=Math['max'](_0x35b0ce,this['_getMaxAvailableTop'](_0x50ba7f))),_0x50ba7f['top']=_0x35b0ce;}['_getMaxAvailableTop'](_0x3331ff){let _0x596a89=this['_getItemBefore'](_0x3331ff),_0x2fa929=0x0;for(;_0x596a89;)_0x596a89['updateHeight'](),_0x2fa929+=this['_spaceBetweenItems']+_0x596a89['height'],_0x596a89=this['_getItemBefore'](_0x596a89);return _0x2fa929;}}function R(_0x8cc83b,_0x1d9156){return Math['max'](_0x8cc83b-_0x1d9156,0x0);}function y(_0x31b1e3){return null!==_0x31b1e3&&'object'==typeof _0x31b1e3&&0x1===_0x31b1e3['nodeType'];}class e extends _0x298ec9{['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(_0x45c38){super(_0x45c38),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x55dc60(),this['_refreshPositioningDebounced']=_0x2023a9(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3cf867=this['context']['plugins']['get'](M),_0x17c205=this['context']['plugins']['get'](z);_0x3cf867['register']('wideSidebar',this),_0x17c205['container']&&_0x3cf867['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x293d92){if(_0x293d92===this['activeAnnotation'])return;const _0x5b9283=this['context']['plugins']['get'](z);_0x5b9283['_activeAnnotation']=_0x293d92;const _0x5423dd=this['activeAnnotation'];this['activeAnnotation']=_0x293d92,_0x5b9283['refresh']({'blurredAnnotation':_0x5423dd,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x460696){this['annotations']=_0x460696;const _0x4a06ca=this['context']['plugins']['get'](z);if(_0x4a06ca['_annotations']=_0x460696,this['isAttached'])throw new _0x441e7c('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4a06ca,'set:container',()=>{this['detach'](),this['listenTo'](_0x4a06ca,'change:container',_0x574308=>{_0x574308['off'](),this['attach'](_0x460696);});}),_0x4a06ca['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x562f53=_0x191b34=>{_0x191b34['updateTargetRect'](),_0x4a06ca['addAnnotation'](_0x191b34);};for(const _0x129b0f of _0x460696)_0x562f53(_0x129b0f);this['listenTo'](_0x460696,'add',(_0x5ca666,_0x30a1ec)=>{_0x562f53(_0x30a1ec);}),this['listenTo'](_0x460696,'remove',(_0x43a33c,_0x28a182,_0x458342)=>{_0x4a06ca['rearrange']({'removedAnnotation':_0x28a182,'previousAnnotation':_0x460696['get'](_0x458342-0x1),'nextAnnotation':_0x460696['get'](_0x458342+0x1)}),_0x28a182===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x460696,'focus',(_0x11ea18,_0x315040)=>{this['setActiveAnnotation'](_0x315040);}),this['listenTo'](_0x460696,'blur',()=>{this['setActiveAnnotation'](null);});const _0x594855=this['context']instanceof _0x289012?this['context']['editors']:new _0x55dc60([this['context']]);for(const _0x21000f of _0x594855)this['_integrateWithEditorAnnotations'](_0x21000f);this['listenTo'](_0x594855,'add',(_0x269825,_0x4567b3)=>{this['listenTo'](_0x4567b3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4567b3);});}),this['listenTo'](_0x594855,'remove',(_0x4e1a9b,_0x49ec37)=>{_0x49ec37['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x49ec37['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x441e7c('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5e0679=this['context']['plugins']['get'](z);_0x5e0679['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5e0679),this['stopListening'](this['annotations']),this['context']instanceof _0x289012&&this['stopListening'](this['context']['editors']);for(const _0x5aa96f of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5aa96f);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3a0ab8){if(!_0x3a0ab8['plugins']['has']('EditorAnnotations'))return;const _0x150172=_0x3a0ab8['plugins']['get']('EditorAnnotations'),_0x4c5b66=()=>{const _0x58d76e=_0x150172['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x58d76e[0x0]||null);};this['listenTo'](_0x150172,'refresh',_0x4c5b66),this['listenTo'](_0x150172,'blur',(_0x44af6c,{isAnnotationTracked:_0xed549f})=>{this['activeAnnotation']&&_0xed549f(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x150172,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x20734d=>{_0x150172['hasDomSelection']()&&(_0x4c5b66(),_0x20734d['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x150172);}['_destroyEditorAnnotationsIntegration'](_0x5ecd29){this['stopListening'](_0x5ecd29),this['_editorAnnotations']['remove'](_0x5ecd29);}}class D extends _0xc22dd3{['counterView'];constructor(_0x2c41c7){super(_0x2c41c7);const _0x2d106b=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x16e410,_0xa6cfc0)=>_0x16e410?'...':_0xa6cfc0['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',_0x2d106b['to']('annotationType',_0x3ae773=>'ck-annotation-counter__badge--'+_0x3ae773),_0x2d106b['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2d106b['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x298ec9{['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(_0x35c19f){super(_0x35c19f),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xb88ef1),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x55dc60(),this['_refreshPositioningDebounced']=_0x2023a9(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x51f277(this['context']['locale']),this['balloonPanelView']=new _0x202708(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4782cf){this['annotations']=_0x4782cf;const _0x56bd3c=this['context']['plugins']['get'](z),_0x423d73=this['balloonPanelView'];if(_0x56bd3c['_annotations']=_0x4782cf,this['isAttached'])throw new _0x441e7c('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x56bd3c,'set:container',()=>{this['detach'](),this['listenTo'](_0x56bd3c,'change:container',_0x15ea92=>{_0x15ea92['off'](),this['attach'](_0x4782cf);});}),_0x56bd3c['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x7b8e61=_0x269a8d=>{const _0x54c673=new D(this['context']['locale']);_0x56bd3c['addAnnotation'](_0x269a8d,_0x54c673),this['_annotationToNarrowView']['set'](_0x269a8d,_0x54c673),_0x54c673['bind']('isDirty','annotationType','number')['to'](_0x269a8d['view'],'isDirty','type','length'),_0x54c673['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x423d73['content']['first']!==_0x269a8d['view']?(this['_showBalloon'](_0x269a8d),_0x269a8d['view']['element']['focus'](),this['setActiveAnnotation'](_0x269a8d)):this['setActiveAnnotation'](null);});};for(const _0x1674de of _0x4782cf)_0x7b8e61(_0x1674de);this['listenTo'](_0x4782cf,'add',(_0x52451c,_0x30ee27)=>{_0x7b8e61(_0x30ee27);}),this['listenTo'](_0x4782cf,'remove',(_0xe7b35b,_0x166972,_0x3ce4ae)=>{this['_annotationToNarrowView']['get'](_0x166972)['destroy'](),this['_annotationToNarrowView']['delete'](_0x166972),_0x56bd3c['rearrange']({'removedAnnotation':_0x166972,'previousAnnotation':_0x4782cf['get'](_0x3ce4ae-0x1),'nextAnnotation':_0x4782cf['get'](_0x3ce4ae+0x1)}),_0x166972===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4782cf,'focus',(_0xa58287,_0x1727ae)=>{this['setActiveAnnotation'](_0x1727ae);}),this['listenTo'](_0x4782cf,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x213164,_0x402dc8)=>{_0x402dc8['keyCode']===_0x1ca6aa['esc']&&_0x423d73['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x423d73['content']['first']),this['_hideBalloon'](),_0x402dc8['stopPropagation'](),_0x402dc8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x4ae5f4,_0x1e62a2)=>{const _0x39c3ca=_0x1e62a2['target'];_0x423d73['isVisible']&&_0x423d73['element']['contains'](_0x39c3ca)||_0x56bd3c['view']['element']['contains'](_0x39c3ca)||_0x4ae5f4['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x448207=>_0x448207['contains'](_0x39c3ca))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4ce949=this['context']instanceof _0x289012?this['context']['editors']:new _0x55dc60([this['context']]);for(const _0x5ea6b4 of _0x4ce949)this['_integrateWithEditorAnnotations'](_0x5ea6b4);this['listenTo'](_0x4ce949,'add',(_0x1caacb,_0x15bdc2)=>{this['listenTo'](_0x15bdc2,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x15bdc2);});}),this['listenTo'](_0x4ce949,'remove',(_0x5523ad,_0x13c1a4)=>{_0x13c1a4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x13c1a4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5a90ff){if(_0x5a90ff===this['activeAnnotation'])return;const _0x399784=this['context']['plugins']['get'](z);if(_0x399784['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5a90ff,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5a90ff)_0x399784['getSidebarItemView'](_0x5a90ff)?this['_showBalloon'](_0x5a90ff):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5a90ff;}['detach'](){if(!this['isAttached'])throw new _0x441e7c('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3b8738=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x2470ee=>_0x2470ee['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3b8738['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x289012&&this['stopListening'](this['context']['editors']);for(const _0x1477ce of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1477ce);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'](_0x27f850){if(!_0x27f850['plugins']['has']('EditorAnnotations'))return;const _0x20595c=_0x27f850['plugins']['get']('EditorAnnotations'),_0x4295b5=this['context']['plugins']['get'](z),_0x37dadc=this['annotations'],_0x282509=this['balloonPanelView'],_0x2b7f7a=()=>{const _0x447696=_0x20595c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x447696),this['setActiveAnnotation'](_0x447696[0x0]||null);};this['listenTo'](_0x20595c,'refresh',_0x2b7f7a),this['listenTo'](_0x20595c,'blur',(_0x4c1e6c,{isAnnotationTracked:_0x5612a1})=>{this['activeAnnotation']&&_0x5612a1(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x20595c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x37dadc,'blur',_0x4f806b=>{_0x20595c['hasDomSelection']()&&_0x4f806b['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x17eadf,_0x562b99)=>{const _0x443eeb=_0x562b99['target'];_0x282509['isVisible']&&_0x282509['element']['contains'](_0x443eeb)||_0x4295b5['view']['element']['contains'](_0x443eeb)||this['activeAnnotation']&&_0x20595c['hasDomSelection']()&&(_0x2b7f7a(),_0x17eadf['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x20595c);}['_destroyEditorAnnotationsIntegration'](_0x367a6a){_0x367a6a&&(this['stopListening'](_0x367a6a),this['_editorAnnotations']['remove'](_0x367a6a));}['_setSelectedAnnotations'](_0x238504){for(const _0x4e93f8 of this['_selectedAnnotations'])_0x238504['includes'](_0x4e93f8)||this['_manuallyClosedAnnotationViews']['delete'](_0x4e93f8['view']);this['_selectedAnnotations']=_0x238504;}['_refreshPositioning'](){const _0x2635e5=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2635e5['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3b43b7){if(this['_manuallyClosedAnnotationViews']['has'](_0x3b43b7['view']))return;const _0x23313d=this['balloonPanelView']['content']['first'];_0x23313d!==_0x3b43b7['view']?(_0x23313d&&this['_detachListeners'](_0x23313d),this['_attachListeners'](_0x3b43b7['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3b43b7['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x194aec=this['balloonPanelView']['content']['first'],_0x41b5eb=_0x194aec&&this['annotations']['getByView'](_0x194aec);if(!_0x41b5eb||!this['_annotationToNarrowView']['has'](_0x41b5eb))return;const _0xae9ac2=this['_annotationToNarrowView']['get'](_0x41b5eb)['element'],_0x16eff1=(function(){const _0x4b3345=_0x202708['defaultPositions'];return[_0x4b3345['southArrowNorthEast'],_0x4b3345['northArrowSouthEast'],_0x4b3345['southArrowNorth'],_0x4b3345['northArrowSouth'],_0x4b3345['southArrowNorthWest'],_0x4b3345['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xae9ac2,'positions':_0x16eff1});}['_hideBalloon'](){const _0x44a00b=this['balloonPanelView'],_0x11313f=_0x44a00b['content']['first'];_0x11313f&&(this['_detachListeners'](_0x11313f),_0x44a00b['unpin'](),_0x44a00b['content']['clear']());}['_attachListeners'](_0x5f1d85){this['listenTo'](_0x5f1d85,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x5f1d85,'Esc',(_0x2676a3,_0x4b4c8a)=>{this['_manuallyClosedAnnotationViews']['add'](_0x5f1d85),this['_hideBalloon'](),_0x4b4c8a();});}['_detachListeners'](_0x11f498){this['stopListening'](_0x11f498);}}class c extends _0x3d936c{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x4684a2,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x368db9){super(_0x368db9),_0x368db9['editing']['view']['addObserver'](_0xc309fc),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x368db9['plugins']['get'](_0x4684a2),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x34ab26=this['editor']['plugins']['get'](M);_0x34ab26['context']===this['editor']&&(_0x34ab26['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x3c947a,_0x46e884)=>{const _0x5e14b5=this['_balloon'];if(this['isAttached']&&_0x5e14b5['visibleView']){const _0x18ad81=this['annotations']['getByView'](_0x5e14b5['visibleView']);_0x18ad81&&this['_closeAnnotation'](_0x18ad81),_0x46e884();}}));}['afterInit'](){const _0x487dac=this['editor']['plugins']['get'](M);_0x487dac['context']===this['editor']&&(_0x487dac['hasActive']()||_0x487dac['switchTo']('inline'));}['setActiveAnnotation'](_0xf57fbe){_0xf57fbe!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0xf57fbe&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0xf57fbe)&&this['_addAnnotationToBalloon'](_0xf57fbe,!0x0),_0xf57fbe['isActive']=!0x0),_0xf57fbe||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0xf57fbe);}['attach'](_0x44812f){this['annotations']=_0x44812f;const _0x1b933d=this['editor']['plugins']['get'](M),_0x25f058=this['_balloon'];if(this['isAttached'])throw new _0x441e7c('inlineannotations-attach-already-attached',this);if(_0x1b933d['context']!==this['editor'])throw new _0x441e7c('inlineannotations-not-allowed-with-context',this);const _0x257c10=this['editor']['plugins']['get'](P);this['listenTo'](_0x257c10,'refresh',()=>{const _0x205107=_0x257c10['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x4d6ba2,_0x5be8f8;!this['_forceRefresh']&&(_0x4d6ba2=_0x205107,_0x5be8f8=this['_selectedAnnotations'],_0x4d6ba2['length']===_0x5be8f8['length']&&_0x4d6ba2['every'](_0x2d7f55=>_0x5be8f8['includes'](_0x2d7f55)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x205107),this['setActiveAnnotation'](_0x205107[0x0]||null));}),this['listenTo'](_0x257c10,'blur',(_0x5f5cbb,{isAnnotationTracked:_0xbe96d2})=>{this['activeAnnotation']&&_0xbe96d2(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x166921,_0x594e5a,_0x1b2c84)=>{_0x1b2c84||this['setActiveAnnotation'](null);}),this['listenTo'](_0x44812f,'remove',(_0x7408bc,_0x4c0459)=>{this['_removeAnnotationFromBalloon'](_0x4c0459),_0x4c0459===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x25f058,'change:visibleView',(_0x7be6ad,_0x2fb453,_0x19c59e,_0x1a85d4)=>{_0x1a85d4&&this['stopListening'](_0x1a85d4);const _0x4d7955=_0x44812f['getByView'](_0x19c59e);_0x19c59e&&_0x4d7955&&(this['listenTo'](_0x19c59e,'change:height',()=>{_0x25f058['updatePosition']();}),this['listenTo'](_0x19c59e,'Esc',()=>{this['_closeAnnotation'](_0x4d7955),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4d7955&&this['setActiveAnnotation'](_0x4d7955));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x25f058['visibleView']&&(_0x44812f['getByView'](_0x25f058['visibleView'])&&_0x25f058['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 _0x441e7c('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xb40cf9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xb40cf9);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x25501f){for(const _0x3aec0b of this['_selectedAnnotations'])_0x25501f['includes'](_0x3aec0b)||this['_manuallyClosed']['delete'](_0x3aec0b);for(const _0x59c1c2 of this['annotations'])_0x25501f['includes'](_0x59c1c2)||this['_removeAnnotationFromBalloon'](_0x59c1c2);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4fcf9d of _0x25501f)this['_addAnnotationToBalloon'](_0x4fcf9d);}this['_selectedAnnotations']=_0x25501f;}['_addAnnotationToBalloon'](_0x536119,_0x256b8c=!0x1){this['_manuallyClosed']['has'](_0x536119)||(this['_addedAnnotations']['has'](_0x536119)||this['_balloon']['hasView'](_0x536119['view'])||(this['_addedAnnotations']['add'](_0x536119),this['_balloon']['add']({'stackId':_0x536119['view']['id'],'view':_0x536119['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x536119)}})),_0x256b8c&&this['_balloon']['showStack'](_0x536119['view']['id']));}['_getBalloonTargetForAnnotation'](_0x5600a9){const _0x3b1dbe=_0x5600a9['target'],_0xfcc3ed=this['editor']['editing']['view'],_0x19f043=_0xfcc3ed['document']['selection']['getFirstRange'](),_0x2922f8=_0xfcc3ed['domConverter']['viewRangeToDom'](_0x19f043);if(_0x2922f8['collapse'](!0x0),_0x3b1dbe){if(_0x3b1dbe instanceof _0x5c15ed)return _0x3b1dbe;let _0x1c887=[];for(const _0x1cccbe of _0x3b1dbe)_0x1c887['push'](...(_0x1d8ff1=_0x1cccbe['getClientRects'](),Array['from'](_0x1d8ff1)['map'](DOMRect['fromRect'])));_0x1c887=function(_0x400635){const _0x4db2c9=[];let _0x589e5a=_0x400635[0x0];for(let _0x153162=0x1;_0x153162<_0x400635['length'];_0x153162++)b(_0x589e5a,_0x400635[_0x153162])?_0x589e5a['width']+=_0x400635[_0x153162]['width']:(_0x4db2c9['push'](_0x589e5a),_0x589e5a=_0x400635[_0x153162]);return _0x4db2c9['push'](_0x589e5a),_0x4db2c9;}(_0x1c887);const _0x71e43c=_0x2922f8['getBoundingClientRect']();return _0x1c887['find'](_0x40e3fa=>_0x40e3fa['top']<=_0x71e43c['top']&&_0x40e3fa['bottom']>=_0x71e43c['bottom']&&_0x40e3fa['left']<=_0x71e43c['left']&&_0x40e3fa['right']>=_0x71e43c['right'])||_0x1c887[0x0];}var _0x1d8ff1;return _0x5600a9['targetRect']||_0x2922f8;}['_removeAnnotationFromBalloon'](_0x6f566){this['_addedAnnotations']['has'](_0x6f566)&&this['_balloon']['hasView'](_0x6f566['view'])&&(this['_addedAnnotations']['delete'](_0x6f566),this['_balloon']['remove'](_0x6f566['view']));}['_closeAnnotation'](_0x3d4fe4){this['_manuallyClosed']['add'](_0x3d4fe4),this['_removeAnnotationFromBalloon'](_0x3d4fe4);}}function b(_0x25dfa2,_0x1e8117){return _0x25dfa2['top']===_0x1e8117['top']&&_0x25dfa2['bottom']===_0x1e8117['bottom']&&_0x25dfa2['right']===_0x1e8117['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(_0x3e6995,_0x37d560){super(_0x3e6995),this['set']('isEmpty',!_0x37d560['length']),this['focusTracker']=new _0x1a1568(),this['_annotationViews']=_0x37d560,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x37d560,'focusTracker':this['focusTracker']}),this['listenTo'](_0x37d560,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x37d560,'remove',(_0x1cddc9,_0x24a00f)=>{_0x24a00f['isActive']&&this['focus'](),_0x37d560['length']||(this['isEmpty']=!0x0);});const _0x1b0549=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3e6995,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x37d560},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x1b0549['if']('isEmpty','ck-hidden',_0x2d9387=>!_0x2d9387)]},'children':[{'text':S(_0x3e6995,'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 _0x3466de of this['_annotationViews'])this['focusTracker']['add'](_0x3466de['element']);this['_annotationViews']['on']('change',(_0x16f167,{added:_0x70edf2,removed:_0x4e79a5})=>{for(const _0x4d167c of _0x70edf2)this['focusTracker']['add'](_0x4d167c['element']);for(const _0x19ec82 of _0x4e79a5)this['focusTracker']['remove'](_0x19ec82['element']);});}}class f extends _0x298ec9{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x1e0cfc){super(_0x1e0cfc),this['archivedThreads']=new _0x55dc60();}['init'](){const _0x3f6d59=this['context'],_0x4a6bdf=_0x3f6d59['plugins']['get'](o),_0x18bdd2=_0x3f6d59['plugins']['get'](N);this['listenTo'](_0x4a6bdf,'addCommentThread',(_0x4276a8,{threadId:_0x852166})=>{const _0x5535d1=_0x4a6bdf['getCommentThread'](_0x852166);_0x5535d1['archivedAt']&&this['archivedThreads']['add'](_0x5535d1,this['_calculatePosition'](_0x5535d1['archivedAt'])),this['listenTo'](_0x5535d1,'change:archivedAt',(_0xd57da8,_0x20a242,_0x5b5fb5)=>{_0x5b5fb5?this['archivedThreads']['has'](_0x5535d1)||this['archivedThreads']['add'](_0x5535d1,this['_calculatePosition'](_0x5535d1['archivedAt'])):this['archivedThreads']['has'](_0x5535d1)&&this['archivedThreads']['remove'](_0x5535d1);});}),this['listenTo'](_0x4a6bdf,'removeCommentThread',(_0x4e874c,{threadId:_0x33fbc1})=>{const _0x556ed1=_0x4a6bdf['getCommentThread'](_0x33fbc1);this['stopListening'](_0x556ed1),this['archivedThreads']['has'](_0x556ed1)&&this['archivedThreads']['remove'](_0x556ed1);},{'priority':'highest'}),this['listenTo'](_0x18bdd2['collection'],'focus',(_0x164b75,_0x15860b)=>{_0x15860b['isVisible']||(_0x15860b['isActive']=!0x0,_0x18bdd2['activate'](_0x15860b));});}['_calculatePosition'](_0x1987ad){const _0x550d55=[...this['archivedThreads']]['findIndex'](_0x56145c=>_0x56145c['archivedAt']<_0x1987ad);return _0x550d55>-0x1?_0x550d55:this['archivedThreads']['length'];}}class a extends _0x3d936c{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x3c8ef9];}constructor(_0xf3be1){super(_0xf3be1),this['annotationViews']=new _0x2ff85e(),this['_pendingThreads']=[];}['init'](){const _0x7e477=this['editor'],_0x2b96e1=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x7e477['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0xc22dd3,!0x0)),_0x7e477['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x4de30d=this['_createCommentsArchiveButton'](_0x1920af);return _0x4de30d['set']({'role':'menuitemcheckbox'}),_0x4de30d;});const _0x18dfea=_0x7e477['plugins']['get'](f),_0x28053e=_0x7e477['plugins']['get']('Annotations'),_0x3fcc45=_0x7e477['plugins']['get']('CommentsRepository');this['listenTo'](_0x18dfea['archivedThreads'],'add',(_0x3a2a75,_0x3fd246)=>{const _0x4188b4=_0x7e477['config']['get']('collaboration.channelId');if(!_0x4188b4||_0x3fd246['channelId']===_0x4188b4){const _0x150877=_0x3fcc45['_threadToController']['get'](_0x3fd246);if(!_0x150877)return void this['_pendingThreads']['push'](_0x3fd246);const _0x749c1a=this['_calculatePosition'](_0x3fd246['archivedAt']),_0x2a56d0=_0x28053e['getByInnerView'](_0x150877['view']);_0x2a56d0['isVisible']&&_0x28053e['_visibleAnnotations']['remove'](_0x2a56d0),this['annotationViews']['add'](_0x2a56d0['view'],_0x749c1a);}}),this['listenTo'](_0x28053e['collection'],'add',(_0x292b98,_0xe7b88b)=>{const _0x10323a=this['_pendingThreads']['find'](_0x560245=>{const _0x5ea3fe=_0x3fcc45['_threadToController']['get'](_0x560245);return _0x5ea3fe&&_0xe7b88b['innerView']===_0x5ea3fe['view'];});if(_0x10323a){const _0x19c9ee=this['_calculatePosition'](_0x10323a['archivedAt']);this['annotationViews']['add'](_0xe7b88b['view'],_0x19c9ee),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x10323a),0x1);}}),this['listenTo'](_0x18dfea['archivedThreads'],'remove',(_0xea2ada,_0x32ce14)=>{const _0x2a7c2c=_0x7e477['config']['get']('collaboration.channelId');if(!_0x2a7c2c||_0x32ce14['channelId']===_0x2a7c2c){const _0x194490=_0x3fcc45['_threadToController']['get'](_0x32ce14),_0x5b116b=_0x28053e['getByInnerView'](_0x194490['view']);this['annotationViews']['remove'](_0x5b116b['view']),this['stopListening'](_0x5b116b['focusableElements']);}}),this['listenTo'](_0x28053e['collection'],'add',(_0x578f02,_0x47421f)=>{this['listenTo'](_0x47421f,'escape',_0x2b96e1);}),this['listenTo'](_0x28053e['collection'],'remove',(_0xca760b,_0x121df0)=>{this['stopListening'](_0x121df0,'escape',_0x2b96e1);});}['_calculatePosition'](_0x4b219e){const _0x58bd11=this['editor']['config']['get']('collaboration.channelId'),_0x39cefc=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0xedbc22=>_0xedbc22['channelId']===_0x58bd11)['findIndex'](_0x333766=>_0x333766['archivedAt']<_0x4b219e);return _0x39cefc<0x0||_0x39cefc>this['annotationViews']['length']?this['annotationViews']['length']:_0x39cefc-0x1;}['_toggleDialog'](){const _0x523b3b=this['editor'],_0xcabf13=_0x523b3b['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x523b3b['locale'],this['annotationViews'])),'commentsArchive'===_0xcabf13['id']?_0xcabf13['hide']():_0xcabf13['show']({'id':'commentsArchive','title':S(_0x523b3b['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x2f9a26['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x604e60,_0x2ce359=!0x1){const _0x214a3e=this['editor']['locale'],_0xbb05ba=this['editor']['plugins']['get']('Dialog'),_0x48e402=new _0x604e60(_0x214a3e);return _0x48e402['bind']('isEnabled')['to'](this,'isEnabled'),_0x48e402['bind']('isOn')['to'](_0xbb05ba,'id',_0x45a482=>'commentsArchive'===_0x45a482),_0x48e402['set']({'label':S(_0x214a3e,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x2ce359&&(_0x48e402['tooltip']=!0x0),this['listenTo'](_0x48e402,'execute',()=>this['_toggleDialog']()),_0x48e402;}['_hideDialogOnAnnotationEscape']=_0x271bba=>{const _0x529108=_0x271bba['source'];if(!this['annotationViews']['has'](_0x529108['view']))return;const _0x15f3d6=this['editor']['plugins']['get']('Dialog');_0x15f3d6['isOpen']&&'commentsArchive'===_0x15f3d6['id']&&(_0x15f3d6['hide'](),_0x271bba['stop']());};}class p extends _0x3d936c{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 _0x2aaf2,icons as _0x20f001,ContextPlugin as _0x16e53b,PendingActions as ht,Command as _0x120356,Plugin as _0x3ad107,Context as _0x1003f6}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x24377d,uid as _0x178bc7,KeystrokeHandler as jt,FocusTracker as _0x1c4a76,diff as _0xdfc31,Collection as _0x18e518,Rect as _0x2aa486,CKEditorError as _0x28afa1,first as _0x100cec,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x1a3030,keyCodes as _0x5d46ec}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x37a5d6,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x11af84,trimHtml as _0x33d574,LateFocusDropdownButtonView as _0x17dbe6,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x51c379}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x19d056}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x439fde,ViewCollection as _0x12dbb4,createDropdown as _0x172049,ListView as _0xc0b108,focusChildOnDropdownOpen as _0xa95111,ListItemView as _0x38c47a,MenuBarMenuListItemButtonView as _0xe27958,BodyCollection as _0x50b099,BalloonPanelView as _0x5f2252,ContextualBalloon as _0x31b1b3,Dialog as _0x288daa,DialogViewPosition as _0x17c35a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x4d457c}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 _0x4a5917}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x24377d(){['model'];['view'];constructor(_0x183d4a,_0x1f1f5e){super(),this['model']=_0x183d4a,this['model']['_isAttached']=!0x0,this['view']=_0x1f1f5e,this['listenTo'](_0x1f1f5e,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x1f1f5e,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x1f1f5e,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x1f1f5e,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x1f1f5e,'addComment',(_0x4555a9,_0xfc49d3)=>this['addComment'](_0xfc49d3)),this['listenTo'](_0x1f1f5e,'updateComment',(_0x175751,_0x4d2cea,_0x50ab16)=>this['updateComment'](_0x4d2cea,_0x50ab16)),this['listenTo'](_0x1f1f5e,'removeComment',(_0x11da08,_0x12d045)=>this['removeComment'](_0x12d045));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x10901b){this['model']['addComment']({'content':_0x10901b,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3e492f,_0x2900e7){this['model']['getComment'](_0x3e492f)['update']({'content':_0x2900e7});}['removeComment'](_0x1d72da){this['model']['getComment'](_0x1d72da)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x2181c5,_0x4ed271,_0x47d1e6){const t=_0x2181c5['t'];switch(_0x4ed271){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'},_0x47d1e6);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'},_0x47d1e6);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'},_0x47d1e6);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'},_0x47d1e6);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x47d1e6);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'},_0x47d1e6);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'},_0x47d1e6);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'},_0x47d1e6);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(_0xb5e03f,_0x3d05d7){super(_0xb5e03f);const _0x4f4e9f=_0x178bc7();this['main']=this['createCollection'](),this['editable']=new $t(_0xb5e03f,_0x3d05d7,void 0x0,{'label':()=>S(_0xb5e03f,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xb5e03f['uiLanguageDirection'],'lang':_0xb5e03f['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x4f4e9f},'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(_0x546e34){super(_0x546e34),this['view']=new Vt(_0x546e34['locale'],_0x546e34['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x479754=this['editor']['editing']['view'],_0x89e7a1=this['view']['editable'],_0x29034d=_0x479754['document']['getRoot']();_0x89e7a1['name']=_0x29034d['rootName'],this['view']['render']();const _0x85acef=_0x89e7a1['element'];this['setEditableElement'](_0x89e7a1['name'],_0x85acef),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x479754['attachDomRoot'](_0x85acef),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x24377d(_0x2aaf2){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
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(_0x1dc717,_0x20b322,_0x3cc94d,_0x5a2ec8){super(_0x1dc717,_0x20b322,_0x3cc94d,_0x5a2ec8),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1dc717,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4323e4,_0x13dd24,_0x44becb)=>{_0x44becb||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5be82c,_0x5cd461,_0x510eff)=>{_0x510eff&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1e69b0=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1e69b0['if']('isActive','ck-thread--active'),_0x1e69b0['if']('isUnlinked','ck-thread--unlinked'),_0x1e69b0['if']('isConfirm','ck-thread--remove-confirmation'),_0x1e69b0['to']('actionIndicator',_0x3a1dee=>_0x3a1dee?'ck-thread--'+_0x3a1dee:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1e69b0['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 _0xb4d95 of this['commentsListView']['commentViews'])_0xb4d95['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x802f6f}=this,_0x2287b5=this['commentsListView']['commentViews']['get'](0x0);_0x2287b5===this['_boundFirstCommentView']||_0x2287b5['isSystemComment']||(this['_boundFirstCommentView']=_0x2287b5,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x2287b5,'actionIndicator',_0x11dc32=>'remove'===_0x11dc32?'remove':null),_0x2287b5['placeholder']=S(_0x802f6f,'Write\x20a\x20comment...'),_0x2287b5['removeButton']['on']('execute',_0x1a3e96=>{_0x1a3e96['stop'](),this['showConfirm'](S(_0x802f6f,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x2287b5['focus']();}),_0x2287b5['actionBar']['add'](this['resolveButton'],0x0),_0x2287b5['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x7be7fc=new _0x11af84(this['locale']);return _0x7be7fc['label']=S(this['locale'],'Resolve'),_0x7be7fc['tooltip']=S(this['locale'],'Resolve'),_0x7be7fc['icon']=_0x20f001['check'],_0x7be7fc['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x7be7fc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xa32798=>!_0xa32798),_0x7be7fc['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3ef5b5,_0xce094b)=>_0x3ef5b5&&!_0xce094b),_0x7be7fc['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x7be7fc;}['_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(_0x46cc3d){super(_0x46cc3d),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x68fc19,_0x132263,_0x48a0c0)=>{this['element']['innerHTML']=_0x48a0c0;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5f0717,_0x52236e,_0x3381fe){super(_0x5f0717),this['_model']=_0x52236e,this['_config']=_0x3381fe,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x52236e,'content',_0x52236e,'authoredAt',(_0x4e705b,_0xbc75a5)=>S(_0x5f0717,'COMMENT_ARIA_LABEL',[_0x52236e['author']['name'],_0x3381fe['formatDateTime'](_0xbc75a5),new DOMParser()['parseFromString'](_0x4e705b,'text/html')['body']['textContent'],_0x52236e['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x5f0717,S(_0x5f0717,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x12dbb4(),this['focusTracker']=new _0x1c4a76(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2a26b4=>_0x2a26b4['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 _0x46e3be=new es(this['locale']);return _0x46e3be['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x3cf5dc,_0x14b619)=>_0x14b619?_0x33d574(_0x3cf5dc,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x3cf5dc),_0x46e3be;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x2f6ae9=new hs(this['locale'],this['_config']['editorConfig']);return _0x2f6ae9['value']=this['_model']['content'],_0x2f6ae9['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2f6ae9['submitLabel']=S(this['locale'],'Save'),_0x2f6ae9['on']('submit',(_0x2d75dd,_0x13e500)=>{this['fire']('updateComment',this['_model']['id'],_0x13e500),this['switchToDisplayMode'](),this['focus']();}),_0x2f6ae9['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x2f6ae9['once']('editorReady',()=>{_0x2f6ae9['focus']();}),_0x2f6ae9['createEditor'](),_0x2f6ae9['delegate']('editorReady')['to'](this),_0x2f6ae9['delegate']('editorDestroyed')['to'](this),_0x2f6ae9;}['_setupKeyboardNavigation'](){const _0x47a619=this['element'];this['keystrokes']['listenTo'](_0x47a619);for(const _0x558c2a of this['focusables'])this['focusTracker']['add'](_0x558c2a['element']),this['keystrokes']['listenTo'](_0x558c2a['element']);this['focusables']['on']('change',(_0x399f3c,_0x3ed730)=>{for(const _0xd362e6 of _0x3ed730['removed'])this['focusTracker']['remove'](_0xd362e6['element']),this['keystrokes']['stopListening'](_0xd362e6['element']);for(const _0x15309 of _0x3ed730['added'])this['focusTracker']['add'](_0x15309['element']),this['keystrokes']['listenTo'](_0x15309['element']);}),this['keystrokes']['set']('enter',(_0x1ceb8d,_0x4b3d93)=>{_0x47a619===_0x1ceb8d['target']&&(this['focusCycler']['focusFirst'](),_0x4b3d93());}),this['keystrokes']['set']('esc',(_0x14aaba,_0x3f6ccd)=>{_0x47a619!==_0x14aaba['target']&&(this['focus'](),_0x3f6ccd());});}}class vt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(os){['actionBar'];['userView'];constructor(_0x334693,_0x3ae9bb,_0x574416){super(_0x334693,_0x3ae9bb,_0x574416),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x334693,'Reply...')),this['bind']('authoredAt')['to'](_0x3ae9bb),this['bind']('resolvedAt')['to'](_0x3ae9bb),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 _0x37a5d6(_0x334693,_0x3ae9bb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3ae9bb,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4a65af=this['bindTemplate'],_0x28b315=[{'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':_0x4a65af['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4a65af['to']('authoredAt',_0x26864e=>this['_config']['formatDateTime'](_0x26864e))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x4a65af['if']('isEditMode','ck-comment__actions--hidden'),_0x4a65af['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']&&_0x28b315['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x4a65af['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x4a65af['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x4a65af['if']('isEditMode','ck-comment--edit'),_0x4a65af['if']('isSystemComment','ck-comment--info'),_0x4a65af['to']('actionIndicator',_0x3a51d3=>_0x3a51d3?'ck-comment--'+_0x3a51d3:'')],'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':_0x28b315}]}]};}['_createEditButton'](){const _0x36e188=new _0x439fde(this['locale']);return _0x36e188['label']=S(this['locale'],'Edit'),_0x36e188['icon']=_0x20f001['pencil'],_0x36e188['withText']=!0x0,_0x36e188['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x36e188['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x20c60f=>!_0x20c60f),_0x36e188['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x36e188['on']('execute',()=>this['switchToEditMode']()),_0x36e188;}['_createRemoveButton'](){const _0x251613=new _0x439fde(this['locale']);return _0x251613['label']=S(this['locale'],'Remove'),_0x251613['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',_0x251613['withText']=!0x0,_0x251613['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x251613['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x6a882c=>!_0x6a882c),_0x251613['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x251613['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x251613;}['_createDropdown'](){const _0x9514f2=_0x172049(this['locale'],_0x17dbe6),_0x171863=_0x9514f2['panelView']['children'],_0x28d588=new _0xc0b108(this['locale']),_0x2c9bf6=_0x9514f2['bindTemplate'];_0xa95111(_0x9514f2,()=>this['items']['find'](_0x3c7a35=>_0x3c7a35['isVisible'])),_0x9514f2['extendTemplate']({'attributes':{'class':[_0x2c9bf6['if']('isVisible','ck-hidden',_0x25bc0a=>!_0x25bc0a)]}});const _0xcf13ae=(_0x25e80d,_0x1d05b1=-0x1)=>{const _0xd43066=new _0x38c47a(this['locale']);_0xd43066['children']['add'](_0x25e80d);const _0x33a509=_0x1d05b1>-0x1?_0x1d05b1:_0x28d588['items']['length'];_0x28d588['items']['add'](_0xd43066,_0x33a509);const _0x468c54=Array['from'](this['items']);_0x9514f2['unbind']('isEnabled','isVisible'),_0x9514f2['bind']('isEnabled')['toMany'](_0x468c54,'isEnabled',(..._0x27ed88)=>_0x27ed88['some'](_0x432884=>_0x432884)),_0x9514f2['bind']('isVisible')['toMany'](_0x468c54,'isVisible',(..._0x33e260)=>_0x33e260['some'](_0x38c4ba=>_0x38c4ba));};_0x9514f2['panelPosition']='sw',_0x9514f2['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x20f001['threeVerticalDots']});for(const _0x2a6228 of this['items'])_0xcf13ae(_0x2a6228);return _0x171863['add'](_0x28d588),_0x9514f2['listenTo'](this['items'],'add',(_0x214acc,_0x5673b8,_0x3ffe55)=>{_0xcf13ae(_0x5673b8,_0x3ffe55);}),_0x9514f2['listenTo'](this['items'],'remove',(_0x2635d0,_0x263629,_0x3b399e)=>{_0x28d588['items']['remove'](_0x3b399e);}),_0x9514f2;}['_attachActions'](_0x4f6925,_0x5f5a0d){const _0x3cdf53=_0x4f6925&&_0x4f6925['element'];_0x3cdf53&&(this['listenTo'](_0x3cdf53,'mouseenter',()=>this['actionIndicator']=_0x5f5a0d),this['listenTo'](_0x3cdf53,'focus',()=>this['actionIndicator']=_0x5f5a0d),this['listenTo'](_0x3cdf53,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3cdf53,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xdc4a6e=super['_createCommentInputView']();return _0xdc4a6e['bind']('placeholder')['to'](this),_0xdc4a6e;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x11645a){const _0x548627=bt(_0x11645a,0x1e),_0x26994c=new MutationObserver(_0xf7f18c=>{for(const _0x10594b of _0xf7f18c)('attributes'==_0x10594b['type']&&'class'==_0x10594b['attributeName']||'childList'==_0x10594b['type']||'characterData'==_0x10594b['type'])&&_0x548627();});return{'attach'(_0x13783b){_0x26994c['observe'](_0x13783b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x26994c['disconnect'](),_0x548627['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x36ab71,_0x1da1fc){super(_0x36ab71),this['id']=_0x178bc7(),this['focusTracker']=new _0x1c4a76(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x483d42,_0x564eec)=>this['fire']('Esc',_0x564eec)),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'](_0x1da1fc),this['mainView']=_0x1da1fc;const _0x1bec75=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x1bec75['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 _0x4770e5=this['element']['clientHeight'];_0x4770e5&&(this['height']=_0x4770e5);}}class d extends/* #__PURE__ -- @preserve */
|
|
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
|
+
_0x24377d(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4e0ee9,_0x6fc5af){super();const _0x466bc0=_0x6fc5af['isResolvable'];this['channelId']=_0x6fc5af['channelId'],this['id']=_0x6fc5af['id'],this['comments']=new _0x18e518(),this['_repository']=_0x4e0ee9,this['_isAttached']=!0x1,this['_isSubmitted']=_0x6fc5af['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4e0ee9,'_permissions',_0x4e0ee9,'_readOnlyChannels',()=>_0x4e0ee9['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4e0ee9,'_permissions',()=>_0x4e0ee9['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4e0ee9,'_permissions',()=>{const _0x565a9b=_0x4e0ee9['getPermissions'](this['channelId']);return _0x565a9b['write']||_0x565a9b['admin'];}),this['bind']('isResolvable')['to'](_0x4e0ee9,'_permissions',()=>_0x466bc0&&_0x4e0ee9['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x6fc5af['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x456677,_0x10c74a)=>_0x456677?_0x10c74a?_0x456677<_0x10c74a?_0x456677:_0x10c74a:_0x456677:_0x10c74a),this['set']('unlinkedAt',_0x6fc5af['unlinkedAt']||null),this['set']('resolvedAt',_0x6fc5af['resolvedAt']||null),this['set']('resolvedBy',_0x6fc5af['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3a026a=>!!_0x3a026a),this['set']('attributes',_0x6fc5af['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x52523a,_0x3b94da)=>_0x52523a+_0x3b94da['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x258e4b,id:_0x5044b2}=this;this['_repository']['fire'](_t('submitCommentThread',_0x258e4b),{'channelId':_0x258e4b,'threadId':_0x5044b2});}['setUnlinkedAt'](_0x5666f7){this['_update']({'unlinkedAt':_0x5666f7});}['resolve']({resolvedAt:_0x53f333=new Date(),resolvedBy:_0x57d24c=null,isFromAdapter:_0x2c3486=!0x1}={}){const _0x5a45a7=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x5d3565,id:_0x4199a0}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x5d3565),{'channelId':_0x5d3565,'threadId':_0x4199a0,'resolvedAt':_0x53f333,'resolvedBy':_0x57d24c||_0x5a45a7['id'],'isFromAdapter':_0x2c3486});}['reopen']({isFromAdapter:_0x3bdfc6=!0x1}={}){const {channelId:_0x110a22,id:_0x3bc23c}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x110a22),{'channelId':_0x110a22,'threadId':_0x3bc23c,'isFromAdapter':_0x3bdfc6});}['setContext'](_0x55afa1){this['context']||this['_update']({'context':_0x55afa1});}['setAttribute'](_0x3cc2c9,_0x427315){const _0x453b66=pt(this['attributes']);wt(_0x453b66,_0x3cc2c9,_0x427315),this['_update']({'attributes':_0x453b66});}['removeAttribute'](_0x8c5e08){const _0x350ce2=pt(this['attributes']);At(_0x350ce2,_0x8c5e08),this['_update']({'attributes':_0x350ce2});}['remove']({isFromAdapter:_0x8f768b=!0x1}={}){const {channelId:_0x3dbea5,id:_0x339519}=this;this['_repository']['fire'](_t('removeCommentThread',_0x3dbea5),{'channelId':_0x3dbea5,'threadId':_0x339519,'isFromAdapter':_0x8f768b});}['attachTo'](_0x22daa5){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x22daa5});}['addComment'](_0x54aedb){const {channelId:_0x4e7f98,id:_0x172fe5}=this;this['_repository']['fire'](_t('addComment',_0x4e7f98,_0x172fe5),Object['assign']({'channelId':_0x4e7f98,'threadId':_0x172fe5},_0x54aedb));}['getComment'](_0x47ffdb){if('string'!=typeof _0x47ffdb)throw new _0x28afa1('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x47ffdb});return this['comments']['get'](_0x47ffdb);}['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'](_0x554555=>_0x554555['toJSON']()),'attributes':this['attributes']};}['_add'](_0x2b41fc){return this['listenTo'](_0x2b41fc,'change:authoredAt',()=>{const _0x47a56e=this['_findOptimalIndex'](_0x2b41fc),_0x1f7f62=this['comments'];_0x47a56e-0x1!=_0x1f7f62['getIndex'](_0x2b41fc)&&_0x47a56e+0x1!=_0x1f7f62['getIndex'](_0x2b41fc)&&(this['_remove'](_0x2b41fc),this['_add'](_0x2b41fc));}),this['comments']['add'](_0x2b41fc,this['_findOptimalIndex'](_0x2b41fc));}['_update'](_0x248a1c){const {channelId:_0x1df24f,id:_0x4b4ec3}=this;this['_repository']['fire'](_t('updateCommentThread',_0x1df24f),{..._0x248a1c,'channelId':_0x1df24f,'threadId':_0x4b4ec3});}['_remove'](_0x4ace0e){return this['stopListening'](_0x4ace0e),_0x4ace0e['destroy'](),this['comments']['remove'](_0x4ace0e);}['_findOptimalIndex'](_0x321dfb){const _0x208716=this['comments']['find'](_0xde803=>new Date(_0xde803['authoredAt'])['getTime']()>new Date(_0x321dfb['authoredAt'])['getTime']());return _0x208716?this['comments']['getIndex'](_0x208716):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
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};
|