@ckeditor/ckeditor5-comments 44.2.0-alpha.5 → 44.2.0-alpha.6
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 +17 -17
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/integrations/showcommenthighlights.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/utils/createmutationobserver.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
|
-
((()=>Rt)());constructor(_0x3dd1df={}){function _0x49eac5(_0x5ef535){return _0x5ef535['map'](_0x18e786=>String['fromCharCode'](_0x18e786))['join']('');}(_0x3dd1df=Object['assign']({},_0x3dd1df))['plugins']||(_0x3dd1df['plugins']=Ut['defaultPlugins']),super(_0x3dd1df),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[_0x49eac5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49eac5([0x76,0x69,0x65,0x77])][_0x49eac5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49eac5([0x61,0x75,0x74,0x6f]),this[_0x49eac5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x49eac5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49eac5([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x49eac5([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x49eac5([0x6f,0x6b])});}['create'](){const _0x22d23e=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x22d23e))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x1987ed=>{const _0x287106=this['model']['document']['getRoot'](),_0x1502ab=_0x287106&&_0x287106['getChild'](_0x287106['childCount']-0x1);_0x1987ed['setSelection'](_0x1502ab,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x482b8e=this['editing']['view'],_0x8dcada=_0x482b8e['document']['getRoot'](),_0x5d31de=_0x8dcada['getChild'](0x0);_0x8dcada['childCount']>0x1||!_0x5d31de||'p'!=_0x5d31de['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x482b8e,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x5d31de['placeholder']=this['placeholder']),St({'view':_0x482b8e,'element':_0x5d31de,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5d31de);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x138754,_0x48c649={}){super(_0x138754),this['editor']=null,this['_editorConfig']=_0x48c649,this['set']('value',_0x48c649['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x138754,'Reply...')),this['set']('submitLabel',S(_0x138754,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x5414ac(),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',(_0x261577,_0x3ceaa1)=>{this['cancelButtonView']['fire']('execute'),_0x3ceaa1();}),this['keystrokes']['set']('Ctrl+Enter',(_0x5b1f6b,_0x395036)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x395036());}),this['on']('submit',(_0x1ffff9,_0x2f88fc)=>{_0x2f88fc['length']>0xfde8?(alert(S(_0x138754,'TOO_LONG_COMMENT_ALERT',[_0x2f88fc['length'],0xfde8])),_0x1ffff9['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x29f2e5=this['editor'];this['element']['insertBefore'](_0x29f2e5['ui']['element'],this['element']['firstChild']),_0x29f2e5['model']['document']['on']('change',()=>this['value']=_0x29f2e5['getData']()),_0x29f2e5['bind']('placeholder')['to'](this),this['focusables']['add'](_0x29f2e5['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x717acb){-0x1===_0x717acb?(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:_0x2d5ab8}=this,_0x280abf=new _0x3bfc4d(_0x2d5ab8);return _0x280abf['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x280abf['withText']=!0x0,_0x280abf['bind']('label')['to'](this,'submitLabel'),_0x280abf['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x280abf['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1b3c83,_0x246232)=>!_0x246232&&!!_0x1b3c83['trim']()),_0x280abf;}['_createCancelButton'](){const {locale:_0x2b3b4a}=this,_0x53812b=new _0x3bfc4d(_0x2b3b4a);return _0x53812b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x53812b['label']=S(_0x2b3b4a,'Cancel'),_0x53812b['withText']=!0x0,_0x53812b['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x53812b;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x2c7faf=>{this['focusTracker']['add'](_0x2c7faf['element']);}),this['focusables']['on']('change',(_0x593d76,_0xd64413)=>{for(const _0x56648c of Array['from'](_0xd64413['added'])['reverse']())this['focusTracker']['add'](_0x56648c['element']);});}}class ie extends kt{constructor(_0x3e7c2b,_0x403e1a,_0x2cf00f){super(_0x3e7c2b),this['commentInputView']=new os(_0x3e7c2b,_0x2cf00f),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x338f9d,_0x194dd9)=>_0x338f9d||!!_0x194dd9),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 _0x226fcb(_0x3e7c2b,_0x403e1a),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'](_0x35b818){this['commentInputView']['focus'](_0x35b818);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x498a9d,_0x39f0a3)=>{const {submitButtonView:_0xacf6f6,cancelButtonView:_0x527608,editor:_0x1bfb15}=this['commentInputView'];[_0xacf6f6['element'],_0x527608['element'],_0x1bfb15?_0x1bfb15['editing']['view']['getDomRoot']():null]['filter'](_0x1865bd=>_0x1865bd)['some'](_0x2ec973=>_0x2ec973['contains'](_0x39f0a3['target']))||(this['focus'](),_0x39f0a3['preventDefault']());});}}class cs extends kt{constructor(_0x3c3b1e){super(_0x3c3b1e);const _0x2bc2e5=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2bc2e5['to']('count',_0xb0b6da=>S(_0x3c3b1e,'NUMBER_OF_COMMENTS',_0xb0b6da))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x217c53,_0x25fe7b,_0x38dc3f){super(_0x217c53);const _0x1c1662=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x25fe7b['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x25fe7b,this['_config']=_0x38dc3f,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x5414ac(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xddcbbd=>this['commentViews']['map'](_0x4cb6a3=>_0x4cb6a3['element'])['includes'](_0xddcbbd['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x217c53),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1cf38b=>_0x1cf38b-this['_config']['maxCommentsWhenCollapsed']);for(const _0x579613 of _0x25fe7b['comments'])this['_handleNewCommentModel'](_0x579613);this['_handleInfoComment'](),this['listenTo'](_0x25fe7b['comments'],'add',(_0x5a8e4f,_0x54deb9)=>{const _0x29a88e=this['_calculatePosition'](_0x54deb9);this['length']++,this['_handleNewCommentModel'](_0x54deb9,_0x29a88e),this['refreshVisibleViews']();}),this['listenTo'](_0x25fe7b['comments'],'remove',(_0x17f62c,_0x1a6bd7)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1a6bd7),this['refreshVisibleViews']();}),this['listenTo'](_0x25fe7b,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x25fe7b,'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',_0x1c1662['if']('length','ck-hidden',_0x183ed0=>!_0x183ed0)],'aria-label':S(_0x217c53,'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'](_0x4e1465){-0x1===_0x4e1465?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x2679d4 of this['commentViews'])_0x2679d4['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0xb8eac2,_0x27bd24){const _0x1b2a54=new this['_config']['CommentView'](this['locale'],_0xb8eac2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1b2a54['viewUid']=_0xb8eac2['id'],_0x1b2a54['delegate']('removeComment')['to'](this),_0x1b2a54['delegate']('updateComment')['to'](this),_0x1b2a54['delegate']('resolveCommentThread')['to'](this),_0x1b2a54['delegate']('editorReady')['to'](this),_0x1b2a54['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1b2a54,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1b2a54,_0x27bd24);}['_calculatePosition'](_0x2f535c){const _0x1cae4d=this['_model']['_findOptimalIndex'](_0x2f535c);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2f535c['authoredAt']?_0x1cae4d-0x1:_0x1cae4d:_0x1cae4d-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3a363e={'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'],_0x3a363e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3a363e));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x1770ad){const _0x1bc4af=this['commentViews']['remove'](_0x1770ad['id']);this['stopListening'](_0x1bc4af),_0x1bc4af['isEditMode']&&this['_updateHasDirtyComment'](),_0x1bc4af['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x40d6b7=>_0x40d6b7['isEditMode']);}['_rearrangeCollapse'](){const _0x2998fd=function(_0x5fa237){const _0x746d3e=new _0x1c34e7();for(const _0x1db6c of _0x5fa237)_0x746d3e['add'](_0x1db6c);return _0x746d3e;}(this['commentViews']),_0x523df9=this['_collapsedCommentsView']['count'];for(let _0x2bf19a=0x1;_0x2bf19a<=_0x523df9;_0x2bf19a++)_0x2998fd['remove'](0x1);for(const _0x2c95e9 of _0x2998fd)_0x2c95e9['collapse']();_0x523df9>0x0&&_0x2998fd['add'](this['_collapsedCommentsView'],0x1),as(_0x4213ac(Array['from'](this['visibleViews']),Array['from'](_0x2998fd)),this['visibleViews'],_0x2998fd);}['_rearrangeExpand'](){as(_0x4213ac(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1299f8 of this['visibleViews'])_0x1299f8['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2ef4bb=>{this['focusTracker']['add'](_0x2ef4bb['element']),this['keystrokes']['listenTo'](_0x2ef4bb['element']);}),this['commentViews']['on']('change',(_0x47c63c,_0x17531e)=>{for(const _0x2fb9d2 of _0x17531e['removed'])this['focusTracker']['remove'](_0x2fb9d2['element']),this['keystrokes']['stopListening'](_0x2fb9d2['element']);for(const _0x589b1c of Array['from'](_0x17531e['added'])['reverse']())this['focusTracker']['add'](_0x589b1c['element']),this['keystrokes']['listenTo'](_0x589b1c['element']);});}}function as(_0x9e28ab,_0x5e259f,_0x891272){let _0x116669=0x0;for(const _0xdb40a0 of _0x9e28ab)switch(_0xdb40a0){case'insert':_0x5e259f['add'](_0x891272['get'](_0x116669),_0x116669),_0x116669++;break;case'delete':_0x5e259f['remove'](_0x116669);break;case'equal':_0x116669++;}}class ls extends kt{constructor(_0x57e4d8){super(_0x57e4d8);const _0x3101df=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3101df['to']('contextValue',_0x558003=>S(_0x57e4d8,'THREAD_CONTEXT_LABEL',_0x558003)),'tabindex':-0x1},'children':[{'text':_0x3101df['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3258a8,_0x3484e8){super(_0x3258a8);const _0x40de98=this['bindTemplate'];this['_model']=_0x3484e8,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x5414ac(),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',_0x4e2acc=>!!_0x4e2acc),this['bind']('contextValue')['to'](this['_model'],'context',_0x59e5f9=>_0x59e5f9&&_0x59e5f9['value']?this['_trimContextValue'](_0x59e5f9['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',_0x40de98['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 _0x338a32=new _0x3bfc4d(this['locale']);return _0x338a32['label']=S(this['locale'],'Reopen'),_0x338a32['tooltip']=S(this['locale'],'Reopen'),_0x338a32['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>',_0x338a32['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x50ae35=>!_0x50ae35),_0x338a32['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4eab7e,_0x4508f0)=>_0x4eab7e&&_0x4508f0),_0x338a32['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x338a32;}['_trimContextValue'](_0x1795c5){if(_0x1795c5['length']<0x96)return _0x1795c5;const _0x15ea19=_0x1795c5['lastIndexOf']('\x20',0x93);return _0x1795c5['substring'](0x0,_0x15ea19>-0x1?_0x15ea19:0x93)+'...';}['_attachContextActions'](){const _0x2b8e0f=this['element']['querySelector']('.ck-context'),_0x517c0b=_0x2b8e0f['querySelector']('.ck-context__value');this['listenTo'](_0x2b8e0f,'mouseenter',()=>{_0x517c0b['offsetWidth']<_0x517c0b['scrollWidth']&&_0x2b8e0f['classList']['add']('overlay');}),this['listenTo'](_0x2b8e0f,'mouseleave',()=>{_0x2b8e0f['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3a64a7 of this['focusables'])this['focusTracker']['add'](_0x3a64a7['element']),this['keystrokes']['listenTo'](_0x3a64a7['element']);}['_createContextView'](){const _0xd56913=new ls(this['locale']);return _0xd56913['bind']('contextValue')['to'](this),_0xd56913;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x34c491,_0x1ea733,_0x54c194,_0x51bd4e){super(_0x34c491),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1ea733,this['_localUser']=_0x54c194,this['_config']=_0x51bd4e,this['commentThreadHeaderView']=new Zt(_0x34c491,_0x1ea733),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x34c491,S(_0x34c491,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x34c491,_0x1ea733,Object['assign']({'CommentView':this['_config']['CommentView']},_0x51bd4e)),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',(_0x4f8c36,_0x168033)=>_0x4f8c36||!!_0x168033),this['bind']('isUnlinked')['to'](_0x1ea733,'unlinkedAt',_0x2bb0f5=>!!_0x2bb0f5),this['bind']('ariaLabel')['to'](this,'length',_0x2dde83=>{const _0x54b7ea=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x2dde83,_0x54b7ea]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x5414ac(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cd617=>_0x2cd617['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x423b7e(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x18bc8a=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x16a2e6=_0x18bc8a['commentInputView'];return _0x18bc8a['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x16a2e6,'value',(_0x49df14,_0x30adf3,_0x44fd48,_0x45ea8a,_0x17be0d)=>!!_0x17be0d||!!_0x45ea8a&&_0x44fd48&&!_0x30adf3||_0x49df14&&_0x44fd48&&!_0x30adf3),_0x16a2e6['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19187c,_0xcf06ed,_0xdd3441)=>{let _0x424c6e;return _0x424c6e=_0xdd3441&&_0xcf06ed?'Reply\x20to\x20reopen\x20discussion...':_0x19187c?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x424c6e);}),_0x16a2e6['bind']('submitLabel')['to'](this,'length',_0x273890=>S(this['locale'],_0x273890?'Reply':'Comment')),_0x16a2e6['on']('submit',(_0x155c18,_0x2731bd)=>{this['fire']('addComment',_0x2731bd),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x16a2e6['on']('cancel',()=>{this['focus']();}),_0x16a2e6['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x16a2e6['on']('cancel',_0x33accd=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x33accd['stop']());}),this['on']('change:isActive',(_0x4f7e99,_0x2cafef,_0x154cd9)=>{_0x154cd9||this['length']||_0x16a2e6['value']||this['fire']('removeCommentThread');}),_0x18bc8a;}}class vt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(rs){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0x269697(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x199eab,target:_0x24eb0f,type:_0x52efc5,isVisible:_0x156234=!0x0}){super(),this['view']=_0x199eab,this['view']['element']||this['view']['render'](),this['_type']=_0x52efc5,this['_target']=_0x24eb0f,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1c34e7([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x2cd06c,_0x22e99f)=>{this['view']['focusTracker']['add'](_0x22e99f);}),this['focusableElements']['on']('remove',(_0x22d7ac,_0x4600d5)=>{this['view']['focusTracker']['remove'](_0x4600d5);}),this['set']('isVisible',_0x156234);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x431fa3=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x431fa3),_0x431fa3;}get['targetRect'](){const _0x529ea4=this['target'];if(null===_0x529ea4)return null;if(_0x529ea4 instanceof _0x3b9eb0)return _0x529ea4;const _0x25bfee=_0x529ea4['filter'](_0x49a2c3=>function(_0x3d8e78){const _0x120253=_0x3d8e78['offsetParent'];if(_0x120253)return!0x0;const _0x2a9327=_0x3d8e78['getClientRects']()['item'](0x0);return!!_0x2a9327;}(_0x49a2c3));return 0x0===_0x25bfee['length']?null:new _0x3b9eb0(_0x25bfee[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x52bb5c){this['view']['isActive']=_0x52bb5c,this['view']['mainView']['isActive']=_0x52bb5c;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x1e8946){if(!(null===_0x1e8946||_0x1e8946 instanceof _0x3b9eb0||Array['isArray'](_0x1e8946)&&_0x1e8946['every'](_0x188384=>ne(_0x188384))))throw new _0x487ab6('annotation-invalid-target',null,{'target':_0x1e8946});}['_getNormalizedTarget'](){const _0x3e9fb4='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x3e9fb4)?[_0x3e9fb4]:_0x3e9fb4;}}function ne(_0x4ea43d){return null!==_0x4ea43d&&'object'==typeof _0x4ea43d&&'nodeType'in _0x4ea43d&&0x1===_0x4ea43d['nodeType'];}class x extends _0x1c34e7{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x1b5a07=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x5414ac(),this['_focusTracker']['on']('change:isFocused',(_0x29f5fd,_0x50d954,_0x5d1cda)=>{_0x5d1cda||this['fire']('blur');});for(const _0x7a7776 of _0x1b5a07)this['add'](_0x7a7776);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x423989){if(this['has'](_0x423989))throw new _0x487ab6('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x423989['innerView'],_0x423989),this['_viewToAnnotation']['set'](_0x423989['view'],_0x423989);for(const _0x421d45 of _0x423989['focusableElements'])this['_focusTracker']['add'](_0x421d45);this['listenTo'](_0x423989['focusableElements'],'add',(_0x397581,_0xe4bece)=>{this['_focusTracker']['add'](_0xe4bece);}),this['listenTo'](_0x423989['focusableElements'],'remove',(_0x266acc,_0x5d7345)=>{this['_focusTracker']['remove'](_0x5d7345);}),this['listenTo'](_0x423989['view']['focusTracker'],'change:isFocused',(_0x59c4d8,_0x3362c5,_0x4f9d42)=>{_0x4f9d42&&this['fire']('focus',_0x423989);}),_0x423989['updateTargetRect']();const _0x37dc65=this['_getOrderInContent'](_0x423989['view']['targetRect']);return super['add'](_0x423989,_0x37dc65);}['remove'](_0x28520f){if(!this['has'](_0x28520f))throw new _0x487ab6('annotationcollection-not-existing-item',null);this['stopListening'](_0x28520f['view']['focusTracker']),this['stopListening'](_0x28520f['focusableElements']);for(const _0x5ddeb5 of _0x28520f['focusableElements'])this['_focusTracker']['remove'](_0x5ddeb5);return this['_viewToAnnotation']['delete'](_0x28520f['view']),this['_innerViewToAnnotation']['delete'](_0x28520f['innerView']),super['remove'](_0x28520f);}['getByInnerView'](_0x3a639f){return this['_innerViewToAnnotation']['get'](_0x3a639f);}['getByView'](_0xa4e262){return this['_viewToAnnotation']['get'](_0xa4e262);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5614a3 of this)_0x5614a3['updateTargetRect']();this['_sort']();}['_sort'](){const _0x17a28e=Array['from'](this)['sort']((_0x2251db,_0x1ff137)=>v(_0x2251db['view']['targetRect'],_0x1ff137['view']['targetRect']));for(let _0x49319b=_0x17a28e['length']-0x1;_0x49319b>0x0;_0x49319b--){const _0x10c6f5=_0x17a28e[_0x49319b];_0x49319b!==this['getIndex'](_0x10c6f5)&&(this['remove'](_0x10c6f5),this['add'](_0x10c6f5));}}['_getOrderInContent'](_0x493a14){let _0x588153=0x0;if(!_0x493a14)return this['length'];for(const _0x5b2f9c of this){const _0xb6d87e=_0x5b2f9c['view']['targetRect'];if(_0xb6d87e){if(v(_0x493a14,_0xb6d87e)<0x0)return _0x588153;_0x588153++;}}return _0x588153;}}function v(_0x425db6,_0x4b317a){if(null===_0x425db6&&null===_0x4b317a)return 0x0;if(null===_0x425db6)return-0x1;if(null===_0x4b317a)return 0x1;const _0x2307ee=_0x425db6['top']-_0x4b317a['top'];return 0x0==_0x2307ee?_0x425db6['left']-_0x4b317a['left']:_0x2307ee;}class N extends _0x4ad5c3{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e3800){if(super(_0x2e3800),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2e3800 instanceof _0x7b514d){const _0x3271eb=_0x2e3800['locale'];_0x2e3800['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x4d4819){this['collection']['add'](_0x4d4819);}['remove'](_0x39d048){this['collection']['remove'](_0x39d048),_0x39d048['destroy']();}['refreshVisibility'](){for(const _0xca522b of this['collection'])_0xca522b['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x24dc2c){return this['collection']['getByInnerView'](_0x24dc2c);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x40622a of this['collection'])_0x40622a['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2141db){this['fire']('_activateAnnotation',_0x2141db);}['createAnnotation'](_0x5a2b7a){return new d(_0x5a2b7a);}['createAnnotationView'](_0x491b55,_0x33fe24){return new T(_0x491b55,_0x33fe24);}['_addActiveAnnotation'](_0x24eb84){const _0x12d355=new Set(this['activeAnnotations']);_0x12d355['add'](_0x24eb84),this['activeAnnotations']=_0x12d355;}['_removeActiveAnnotation'](_0x14a70c){const _0x103809=new Set(this['activeAnnotations']);_0x103809['delete'](_0x14a70c),this['activeAnnotations']=_0x103809;}['_bindAnnotationsToVisibleAnnotations'](){const _0x1ca4dc=this['collection'],_0x3ff4f0=this['_visibleAnnotations'];function _0x5200c4(_0x48ba10){const _0x4fb22c=_0x48ba10['source'];_0x4fb22c['isVisible']&&!_0x3ff4f0['has'](_0x4fb22c)?_0x3ff4f0['add'](_0x4fb22c):!_0x4fb22c['isVisible']&&_0x3ff4f0['has'](_0x4fb22c)&&_0x3ff4f0['remove'](_0x4fb22c),_0x4fb22c['view']['focusTracker']['remove'](_0x4fb22c['view']['element']),_0x4fb22c['view']['focusTracker']['add'](_0x4fb22c['view']['element']);}this['listenTo'](_0x1ca4dc,'add',(_0x58d9ef,_0x207eec)=>{_0x207eec['isVisible']&&_0x3ff4f0['add'](_0x207eec),this['listenTo'](_0x207eec,'change:isVisible',_0x5200c4);}),this['listenTo'](_0x1ca4dc,'remove',(_0x54674a,_0x583bee)=>{_0x3ff4f0['has'](_0x583bee)&&_0x3ff4f0['remove'](_0x583bee),this['stopListening'](_0x583bee,'change:isVisible',_0x5200c4);});}['_setupEnterAnnotationKeystroke'](){const _0x5790e8=_0x256094=>{_0x256094['on']('ready',()=>{_0x256094['keystrokes']['set'](_0x1c34b1,(_0x563045,_0x56a74a)=>{const _0x4f8a7c=_0x19ae8e(this['activeAnnotations']['values']());_0x4f8a7c&&(_0x4f8a7c['view']['focus'](),_0x56a74a());});});};this['context']instanceof _0x7b514d?_0x5790e8(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3b85e3,_0x137b9c)=>{_0x5790e8(_0x137b9c);});}['_setupEscapeAnnotationHandling'](){const _0x19af9e=_0x5d8fb8=>{const _0xd751e8=_0x5d8fb8['source'],_0x1d7764=[];let _0x1cf2c1;if(Array['isArray'](_0xd751e8['target'])){_0x1cf2c1=_0xd751e8['target'][0x0],this['context']instanceof _0x7b514d?_0x1d7764['push'](this['context']):this['context']['editors']&&_0x1d7764['push'](...this['context']['editors']);for(const _0x1717ff of _0x1d7764)for(const _0x1c8c9f of _0x1717ff['editing']['view']['domRoots']['values']())if(_0x1c8c9f['contains'](_0x1cf2c1))return void _0x1717ff['editing']['view']['focus']();_0x1cf2c1['focus']();}};this['listenTo'](this['collection'],'add',(_0x40867c,_0x235cb1)=>{this['listenTo'](_0x235cb1,'escape',_0x19af9e,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4d3d3d,_0x56df68)=>{this['stopListening'](_0x56df68,'escape',_0x19af9e);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4ad5c3{['_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(_0x3e3711){super(_0x3e3711),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3541ca=this['context']['config'];_0x3541ca['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3541ca['define']('comments.maxThreadTotalWeight',0x1f4),_0x3541ca['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3541ca['define']('comments.CommentThreadView',vt),_0x3541ca['define']('comments.CommentView',gt),_0x3541ca['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x5dd180=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x55ec8e,_0x217414)=>this['_addCommentThread'](_0x217414)),this['on']('submitCommentThread',(_0x5dedbd,_0x40d036)=>this['_submitCommentThread'](_0x40d036)),this['on']('resolveCommentThread',(_0x1618fc,_0x2a6081)=>this['_resolveCommentThread'](_0x2a6081)),this['on']('resolveCommentThread',(_0x1434cc,_0x190755)=>this['_updateActiveAnnotation'](_0x190755),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x51cb22,_0xb62964)=>this['_reopenCommentThread'](_0xb62964)),this['on']('reopenCommentThread',(_0x55d3d9,_0x4f9e17)=>this['_updateActiveAnnotation'](_0x4f9e17),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4e824d,_0x1d9cb9)=>this['_removeCommentThread'](_0x1d9cb9)),this['on']('updateCommentThread',(_0x386587,_0x5cb5a9)=>this['_updateCommentThread'](_0x5cb5a9)),this['on']('updateCommentThread',(_0x537ad1,_0x4da828)=>this['_updateActiveAnnotation'](_0x4da828),{'priority':'lowest'}),this['on']('addComment',(_0x1c059b,_0x4573f5)=>this['_addComment'](_0x4573f5)),this['on']('updateComment',(_0xdf6faa,_0x331692)=>this['_updateComment'](_0x331692)),this['on']('removeComment',(_0x3de69c,_0x500606)=>this['_removeComment'](_0x500606)),this['on']('addComment',(_0x51a78d,{threadId:_0x23853c,isFromAdapter:_0x580063})=>{if(_0x580063)return;const _0x4c3178=this['getCommentThread'](_0x23853c),_0x37dd21=_0x4c3178&&this['_threadToController']['get'](_0x4c3178);_0x37dd21&&_0x37dd21['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x5dd180,'change:activeAnnotations',(_0x5f7f68,_0x47cdf5,_0x3eee55)=>{const _0xdf45d2=Array['from'](_0x3eee55)['map'](_0xdbd33f=>this['_viewToController']['get'](_0xdbd33f['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xdf45d2?_0xdf45d2['model']:null;});}set['adapter'](_0x6a386d){if(this['_adapter'])throw new _0x487ab6('commentsrepository-adapter-already-set');this['_adapter']=_0x6a386d;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4e174c=Tt,threadId:_0x226d36=_0x23b87c(),comments:_0x3b5673=[],unlinkedAt:_0x593927=null,resolvedAt:_0x2b92ec=null,resolvedBy:_0x3ff5f4=null,target:_0x487957=null,context:_0x393604=null,attributes:_0x3440e0={},isResolvable:_0x253d7b=!0x0,isSubmitted:_0x979d64=!0x1,isFromAdapter:_0x2dcf00=!0x1}={}){return this['fire'](bt('addCommentThread',_0x4e174c),{'channelId':_0x4e174c,'threadId':_0x226d36,'comments':_0x3b5673,'unlinkedAt':_0x593927,'resolvedAt':_0x2b92ec,'resolvedBy':_0x3ff5f4,'target':_0x487957,'context':_0x393604,'attributes':_0x3440e0,'isFromAdapter':_0x2dcf00,'isResolvable':_0x253d7b,'isSubmitted':_0x979d64}),this['getCommentThread'](_0x226d36);}['openNewCommentThread']({channelId:_0x530cff=Tt,threadId:_0x26f725=_0x23b87c(),target:_0x4cb00e,context:_0x2a7a41=null,isResolvable:_0x593fc9=!0x0}){if(this['_readOnlyChannels']['has'](_0x530cff)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4cb00e)throw new _0x487ab6('commentsrepository-missing-target');const _0x1ebf35=this['addCommentThread']({'channelId':_0x530cff,'threadId':_0x26f725,'target':_0x4cb00e,'context':_0x2a7a41,'isResolvable':_0x593fc9});if(!_0x1ebf35)return null;const _0x3a6d04=this['_threadToController']['get'](_0x1ebf35),_0xaf1547=_0x3a6d04['view']['commentThreadInputView']['commentInputView'],_0x1e0dfa=this['context']['plugins']['get'](N),_0x24178d=_0x1e0dfa['getByInnerView'](_0x3a6d04['view']);return _0x1e0dfa['activate'](_0x24178d),_0xaf1547['once']('editorReady',()=>_0xaf1547['focus']()),_0x1ebf35;}['hasCommentThread'](_0x306ac7){if('string'!=typeof _0x306ac7)throw new _0x487ab6('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x306ac7);}['updateCommentThread']({channelId:_0x1ba16b=Tt,threadId:_0xd1205b,context:_0x161c9a,unlinkedAt:_0x3b9822,attributes:_0x27d0b5,isFromAdapter:_0x48ecae=!0x1}){return this['fire'](bt('updateCommentThread',_0x1ba16b),{'channelId':_0x1ba16b,'threadId':_0xd1205b,'context':_0x161c9a,'unlinkedAt':_0x3b9822,'attributes':_0x27d0b5,'isFromAdapter':_0x48ecae}),this['getCommentThread'](_0xd1205b);}['getCommentThread'](_0x2276bf){if('string'!=typeof _0x2276bf)throw new _0x487ab6('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2276bf);}['fetchCommentThread']({channelId:_0x327877,threadId:_0x4a9777}={}){const _0x351785=this['getCommentThread'](_0x4a9777);if(_0x351785)return Promise['resolve'](_0x351785);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x487ab6('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x327877,'threadId':_0x4a9777})['then'](_0x27f65a=>this['hasCommentThread'](_0x4a9777)?this['getCommentThread'](_0x4a9777):_0x27f65a?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x327877},_0x27f65a)):void 0x0)['catch'](_0xebda68=>{throw console['error'](_0xebda68),new _0x487ab6('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5ba4f5,skipNotAttached:_0x2bc95e=!0x1,skipEmpty:_0x470d6b=!0x1,toJSON:_0x36f74a=!0x1}={}){const _0x28da95=[];for(const _0x17024d of this['_threads']['values']())_0x5ba4f5&&_0x17024d['channelId']!==_0x5ba4f5||_0x2bc95e&&!_0x17024d['isAttached']||_0x470d6b&&0x0===_0x17024d['length']||_0x28da95['push'](_0x17024d);return _0x36f74a?_0x28da95['map'](_0x24dc5b=>_0x24dc5b['toJSON']()):_0x28da95;}['setActiveCommentThread'](_0x4de12e){const _0x3cb992=this['context']['plugins']['get'](N);if(!_0x4de12e)return void(this['activeCommentThread']&&_0x3cb992['deactivateAll']());const _0x3c0d3e=this['getCommentThread'](_0x4de12e);if(!_0x3c0d3e)throw new _0x487ab6('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4de12e});if(!this['_threadToController']['has'](_0x3c0d3e))throw new _0x487ab6('commentsrepository-active-not-attached',null,{'threadId':_0x4de12e});const _0xb5cbc6=_0x3cb992['getByInnerView'](this['_threadToController']['get'](_0x3c0d3e)['view']);_0x3cb992['activate'](_0xb5cbc6);}['switchReadOnly'](_0x3160e8,_0x56803d){_0x3160e8?this['_readOnlyChannels']['add'](_0x56803d):this['_readOnlyChannels']['delete'](_0x56803d),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x48f3f1){return this['_readOnlyChannels']['has'](_0x48f3f1)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1ca599,_0x2eba97){return new Ct(_0x1ca599,_0x2eba97);}['setPermissions'](_0xcb2d,_0x4e1679=Tt){this['_permissions']['set'](_0x4e1679,_0xcb2d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x22bab0=Tt){return this['_permissions']['has'](_0x22bab0)?this['_permissions']['get'](_0x22bab0):_t;}['_addCommentThread']({channelId:_0x179742,threadId:_0x409572,comments:_0x5c708a,unlinkedAt:_0x598166,resolvedAt:_0x3f500d,resolvedBy:_0x41216a,target:_0x4ec69f,context:_0x5d71a3,attributes:_0x456c97,isFromAdapter:_0x5a9843,isResolvable:_0x9024fc,isSubmitted:_0x488427}){if('string'!=typeof _0x409572)throw new _0x487ab6('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x409572});if(this['hasCommentThread'](_0x409572))throw new _0x487ab6('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x409572});const _0x367534=new oe(this,{'channelId':_0x179742,'id':_0x409572,'context':_0x5d71a3,'attributes':_0x456c97,'unlinkedAt':_0x598166,'resolvedAt':_0x3f500d,'resolvedBy':_0x41216a?this['context']['plugins']['get'](it)['getUser'](_0x41216a):null,'isResolvable':_0x9024fc,'isSubmitted':_0x488427||_0x5a9843});this['_threads']['set'](_0x409572,_0x367534);for(const _0x37db02 of _0x5c708a)_0x367534['_add'](this['_createNewComment']({'threadId':_0x409572,..._0x37db02}));return _0x4ec69f&&_0x367534['attachTo'](_0x4ec69f),_0x5a9843||!_0x367534['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x179742,'threadId':_0x409572});}['_submitCommentThread']({channelId:_0xfeb50,threadId:_0x1128b6}){if(!this['hasCommentThread'](_0x1128b6))throw new _0x487ab6('commentsrepository-missing-comment-thread',this);const _0x17e63f=this['getCommentThread'](_0x1128b6);if(_0x17e63f['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1f699b,comments:_0x525d1d,resolvedAt:_0x1ab022,resolvedBy:_0xa40f49,context:_0x21fc22,attributes:_0x4b3b0e}=_0x17e63f,_0x43800a=this['context']['plugins']['get']('PendingActions'),_0x76a4f8=_0x43800a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xfeb50,'threadId':_0x1f699b,'comments':_0x525d1d['map'](_0x21f96a=>_0x21f96a['toJSON']()),'resolvedAt':_0x1ab022,'resolvedBy':_0xa40f49?_0xa40f49['id']:_0xa40f49,'context':_0x21fc22,'attributes':_0x4b3b0e})['then'](({comments:_0x331755})=>{_0x43800a['remove'](_0x76a4f8);for(const _0xd63f88 of _0x331755)this['_updateComment']({'channelId':_0xfeb50,'threadId':_0x1128b6,'commentId':_0xd63f88['commentId'],'createdAt':_0xd63f88['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x60bb8d=>{throw console['error'](_0x60bb8d),new _0x487ab6('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4cf3e7,target:_0x57f1bc}){const _0x2037d6=this['getCommentThread'](_0x4cf3e7);if(!_0x2037d6)throw new _0x487ab6('commentsrepository-attach-missing-comment-thread',this);const _0x2a8083=this['context']['plugins']['get']('PendingActions'),_0xcb28c=this['context']['plugins']['get'](N),_0x3b6045=this['_createCommentThreadView'](_0x2037d6),_0x5d8134=new Ct(_0x2037d6,_0x3b6045);let _0x30b02d=null;_0x3b6045['on']('change:isDirty',(_0x799589,_0x29469e,_0x5a1eb0)=>{_0x5a1eb0?_0x30b02d=_0x2a8083['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x30b02d&&(_0x2a8083['remove'](_0x30b02d),_0x30b02d=null);}),this['_threadToController']['set'](_0x2037d6,_0x5d8134),this['_viewToController']['set'](_0x3b6045,_0x5d8134);const _0x3df990=new T(this['context']['locale'],_0x3b6045);_0x3df990['bind']('length')['to'](_0x3b6045),_0x3df990['bind']('isDirty')['to'](_0x3b6045,'isDirty',_0x3b6045,'length',(_0x2e8c0c,_0x4f7e68)=>_0x2e8c0c||!_0x4f7e68),_0x3df990['bind']('isActive')['to'](_0x3b6045),_0x3df990['type']='comment';const _0x5f2a79=new d({'view':_0x3df990,'target':_0x57f1bc,'type':'comment','isVisible':!_0x2037d6['archivedAt']});return _0x3b6045['on']('escape',()=>{_0x5f2a79['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3b6045,_0x5f2a79),_0xcb28c['add'](_0x5f2a79),_0x5f2a79;}['_bindAnnotationToEditors'](_0x49f8f1,_0x2d4a69){this['listenTo'](_0x49f8f1,'editorReady',(_0x2cabfc,_0x52f6f4)=>{const _0x32c085=_0x52f6f4['ui']['view']['body']['bodyCollectionContainer'];_0x2d4a69['focusableElements']['add'](_0x32c085),this['context']instanceof _0x7b514d&&this['context']['ui']['focusTracker']['add'](_0x32c085);},{'priority':'highest'}),this['listenTo'](_0x49f8f1,'editorDestroyed',(_0x1d3e9b,_0x31af5c)=>{const _0x2ee933=_0x31af5c['ui']['view']['body']['bodyCollectionContainer'];_0x2d4a69['focusableElements']['has'](_0x2ee933)&&_0x2d4a69['focusableElements']['remove'](_0x2ee933),this['context']instanceof _0x7b514d&&this['context']['ui']['focusTracker']['remove'](_0x2ee933);});}['_unbindEditors'](_0x547ab6){this['stopListening'](_0x547ab6,'editorReady'),this['stopListening'](_0x547ab6,'editorDestroyed');}['_createCommentThreadView'](_0x4694a0){const _0x54130c=this['context']['plugins']['get'](it),{config:_0x5593df,locale:_0x40d0bf}=this['context'],_0xd4a6c3=lt(_0x5593df['get']('locale'));return new(0x0,(_0x5593df['get']('comments'))['CommentThreadView'])(_0x40d0bf,_0x4694a0,_0x54130c['me'],{'editorConfig':{..._0x5593df['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x5593df['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x5593df['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5593df['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5593df['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xd4a6c3,'CommentView':_0x5593df['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3490a9,channelId:_0x125954,resolvedAt:_0x2cc21d,resolvedBy:_0x47656f,isFromAdapter:_0x219e5b}){if(!this['hasCommentThread'](_0x3490a9))throw new _0x487ab6('commentsrepository-missing-comment-thread',null,{'threadId':_0x3490a9});const _0x283566=this['getCommentThread'](_0x3490a9);if(_0x283566['isResolved'])throw new _0x487ab6('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3490a9});const _0x39d770=this['context']['plugins']['get'](it);if(_0x283566['resolvedBy']=_0x39d770['getUser'](_0x47656f),_0x283566['resolvedAt']=_0x2cc21d,_0x219e5b||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3406c4=this['context']['plugins']['get']('PendingActions'),_0x2e100f=_0x3406c4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x125954,'threadId':_0x3490a9})['then'](({resolvedAt:_0x5de2b6,resolvedBy:_0x4c51fb})=>{_0x3406c4['remove'](_0x2e100f),_0x283566['resolvedBy']['id']!==_0x4c51fb&&(_0x283566['resolvedBy']=_0x39d770['getUser'](_0x4c51fb)),_0x283566['resolvedAt']=_0x5de2b6;})['catch'](_0x1274ed=>{throw console['error'](_0x1274ed),new _0x487ab6('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x5d04cb,channelId:_0x10c2dc,isFromAdapter:_0x37eaee}){if(!this['hasCommentThread'](_0x5d04cb))throw new _0x487ab6('commentsrepository-missing-comment-thread',null,{'threadId':_0x5d04cb});const _0x46ac1e=this['getCommentThread'](_0x5d04cb);if(!_0x46ac1e['isResolved'])throw new _0x487ab6('commentsrepository-reopen-comment-thread',null,{'threadId':_0x5d04cb});if(_0x46ac1e['resolvedBy']=null,_0x46ac1e['resolvedAt']=null,_0x37eaee||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x23f9bb=this['context']['plugins']['get']('PendingActions'),_0x4bcaad=_0x23f9bb['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x10c2dc,'threadId':_0x5d04cb})['then'](()=>_0x23f9bb['remove'](_0x4bcaad))['catch'](_0x12351d=>{throw console['error'](_0x12351d),new _0x487ab6('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x47ba37,isFromAdapter:_0x39d550}){const _0x123daa=this['getCommentThread'](_0x47ba37);if(!_0x123daa)throw new _0x487ab6('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x47ba37),this['_threads']['delete'](_0x47ba37),!_0x123daa['isSubmitted']||_0x39d550||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x17f658=this['context']['plugins']['get']('PendingActions'),{channelId:_0x35c4a5}=_0x123daa,_0x37eef4=_0x17f658['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x35c4a5,'threadId':_0x47ba37})['then'](()=>_0x17f658['remove'](_0x37eef4))['catch'](_0x3b9b02=>{throw console['error'](_0x3b9b02),new _0x487ab6('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x474dbb,unlinkedAt:_0x158bb5,context:_0x17e25e,attributes:_0x1ea339,isFromAdapter:_0x146f27}){if('string'!=typeof _0x474dbb)throw new _0x487ab6('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x474dbb});if(!this['hasCommentThread'](_0x474dbb))throw new _0x487ab6('commentsrepository-missing-comment-thread',null,{'threadId':_0x474dbb});const _0x3e6636=this['getCommentThread'](_0x474dbb);let _0x342200=!0x1;if(void 0x0!==_0x17e25e&&_0x3e6636['context']!==_0x17e25e&&(_0x3e6636['context']=_0x17e25e,_0x342200=!0x0),void 0x0!==_0x158bb5&&_0x3e6636['unlinkedAt']!==_0x158bb5&&(_0x3e6636['unlinkedAt']=_0x158bb5,_0x342200=!0x0),_0x1ea339&&!wt(_0x1ea339,_0x3e6636['attributes'])&&(_0x3e6636['attributes']=_0x1ea339,_0x342200=!0x0),!_0x342200)return Promise['resolve']();if(!_0x3e6636['isSubmitted']||_0x146f27||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4ff2b8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x54bef1}=_0x3e6636,_0x370182=_0x4ff2b8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x54bef1,'threadId':_0x474dbb,'context':_0x17e25e,'unlinkedAt':_0x158bb5,'attributes':_0x1ea339})['then'](()=>_0x4ff2b8['remove'](_0x370182))['catch'](_0x149ac1=>{throw console['error'](_0x149ac1),new _0x487ab6('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x592229){const _0x4e01a1=this['context']['plugins']['get'](N),_0x5c24c7=this['getCommentThread'](_0x592229);if(_0x5c24c7['_isAttached']=!0x1,this['_threadToController']['has'](_0x5c24c7)){const _0x59a596=this['_threadToController']['get'](_0x5c24c7),_0x446704=_0x59a596['view'],_0x85039d=_0x4e01a1['getByInnerView'](_0x446704);this['_threadToController']['delete'](_0x5c24c7),this['_viewToController']['delete'](_0x446704),_0x85039d&&_0x4e01a1['remove'](_0x85039d),_0x59a596['destroy'](),_0x446704['destroy']()['then'](()=>{this['_unbindEditors'](_0x446704);});}}['_updateActiveAnnotation']({threadId:_0x2042a7,resolvedAt:_0x33808e}){const _0x4765dc=!!_0x33808e,_0x2d5f51=this['context']['plugins']['get'](N),_0x476a08=this['getCommentThread'](_0x2042a7);if(this['_threadToController']['has'](_0x476a08)){const _0x408db0=this['_threadToController']['get'](_0x476a08)['view'],_0x2a3b76=_0x2d5f51['getByInnerView'](_0x408db0);_0x2a3b76&&(_0x4765dc&&_0x2d5f51['_removeActiveAnnotation'](_0x2a3b76),_0x2a3b76['refreshVisibility']());}}['_getExternalAuthor'](_0x2fefc8){const _0x47a7fc=this['context']['plugins']['get'](it),_0xb7d3c7=pt('external:'+_0x2fefc8),_0x5df520=_0x47a7fc['getUser'](_0xb7d3c7);return _0x5df520||_0x47a7fc['addUser']({'id':_0xb7d3c7,'name':_0x2fefc8});}['_createNewComment']({threadId:_0x2830e8,commentId:_0x12fa6d=_0x23b87c(),content:_0x12a2a5,authorId:_0x3cfc76,createdAt:_0x3baca5,attributes:_0x38e7b6}){if('string'!=typeof _0x12fa6d)throw new _0x487ab6('commentsrepository-invalid-commentid');if('string'!=typeof _0x3cfc76)throw new _0x487ab6('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x12a2a5||!_0x12a2a5['trim']())throw new _0x487ab6('commentsrepository-invalid-comment-content');const _0x3b73a0=this['context']['plugins']['get'](it)['getUser'](_0x3cfc76);if(!_0x3b73a0)throw new _0x487ab6('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3cfc76});let _0xae5524=null,_0x15031a=_0x3baca5;return _0x38e7b6&&_0x38e7b6['@external']&&(_0xae5524=this['_getExternalAuthor'](_0x38e7b6['@external']['authorName']),_0x15031a=new Date(_0x38e7b6['@external']['createdAt'])),new re(this,{'threadId':_0x2830e8,'id':_0x12fa6d,'author':_0xae5524||_0x3b73a0,'creator':_0x3b73a0,'content':_0x12a2a5,'createdAt':_0x3baca5,'authoredAt':_0x15031a,'attributes':_0x38e7b6});}['_addComment'](_0x5efbdb){let {threadId:_0x1b8121,content:_0x4d4807,attributes:_0x239de2,isFromAdapter:_0x4467e7}=_0x5efbdb;const _0xfc40e=this['getCommentThread'](_0x5efbdb['threadId']);if(!_0xfc40e)throw new _0x487ab6('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x508d62=this['_createNewComment'](_0x5efbdb),{id:_0x74488}=_0x508d62;if(_0xfc40e['_add'](_0x508d62),_0x4467e7||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0xfc40e['isSubmitted'])return Promise['resolve']();const _0x3d1543=this['context']['plugins']['get']('PendingActions'),{channelId:_0x282c58}=_0xfc40e,_0x1f5922=_0x3d1543['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x239de2||(_0x239de2={}),this['adapter']['addComment']({'channelId':_0x282c58,'threadId':_0x1b8121,'commentId':_0x74488,'content':_0x4d4807,'attributes':_0x239de2})['then'](_0x3b8de0=>{_0x3d1543['remove'](_0x1f5922),_0x3b8de0&&this['_updateComment']({'channelId':_0x282c58,'threadId':_0x1b8121,'commentId':_0x74488,'createdAt':_0x3b8de0['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x19a6cd=>{throw console['error'](_0x19a6cd),new _0x487ab6('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x592ed5,commentId:_0x36a76d,content:_0x568fd1,createdAt:_0x579cf1,attributes:_0x3f761d,isFromAdapter:_0x38945e}){if(void 0x0!==_0x568fd1&&('string'!=typeof _0x568fd1||!_0x568fd1['trim']()['length']))throw new _0x487ab6('commentsrepository-update-comment-invalid-content');const _0x1fe549=this['getCommentThread'](_0x592ed5),_0x417a8e=_0x1fe549['getComment'](_0x36a76d);if(!_0x417a8e)throw new _0x487ab6('commentsrepository-update-missing-comment',this);let _0x27ab6e=!0x1;if(_0x568fd1&&_0x568fd1!==_0x417a8e['content']&&(_0x417a8e['isEditable']||_0x38945e)&&(_0x417a8e['content']=_0x568fd1,_0x27ab6e=!0x0),_0x579cf1&&_0x579cf1!==_0x417a8e['createdAt']&&(_0x417a8e['createdAt']=_0x579cf1,_0x417a8e['attributes']&&_0x417a8e['attributes']['@external']||(_0x417a8e['authoredAt']=_0x579cf1),_0x27ab6e=!0x0),_0x3f761d&&!wt(_0x3f761d,_0x417a8e['attributes'])&&(_0x417a8e['attributes']=_0x3f761d,_0x27ab6e=!0x0),!_0x27ab6e)return Promise['resolve']();if(_0x1fe549['fire']('commentUpdated'),_0x38945e||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x5a8855=this['context']['plugins']['get']('PendingActions'),{channelId:_0x356054}=this['getCommentThread'](_0x417a8e['threadId']),_0x49a020=_0x5a8855['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x356054,'threadId':_0x592ed5,'commentId':_0x36a76d,'content':_0x568fd1,'attributes':_0x3f761d})['then'](()=>_0x5a8855['remove'](_0x49a020))['catch'](_0x244721=>{throw console['error'](_0x244721),new _0x487ab6('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x21c515,commentId:_0x17a26e,isFromAdapter:_0x4a15e7}){const _0x5669ed=this['getCommentThread'](_0x21c515),_0x191ab4=_0x5669ed['getComment'](_0x17a26e);if(!_0x191ab4)throw new _0x487ab6('commentsrepository-remove-missing-comment',this);if(_0x5669ed['_remove'](_0x191ab4),_0x4a15e7||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x16ade8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x10af01}=_0x5669ed,_0x190170=_0x16ade8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x10af01,'threadId':_0x21c515,'commentId':_0x17a26e})['then'](()=>_0x16ade8['remove'](_0x190170))['catch'](_0x2b8744=>{throw console['error'](_0x2b8744),new _0x487ab6('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x269697(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5f5125,_0x44779d){super();const _0x527075=_0x5f5125['context']['plugins']['get'](it)['me'],_0x312051=_0x5f5125['getCommentThread'](_0x44779d['threadId']),_0xd21135=0x0===_0x312051['comments']['length'],_0x57dff9=_0x527075===_0x44779d['author'];this['id']=_0x44779d['id'],this['threadId']=_0x44779d['threadId'],this['author']=_0x44779d['author'],this['creator']=_0x44779d['creator'],this['isExternal']=Boolean(_0x44779d['attributes']&&_0x44779d['attributes']['@external']),this['set']('content',_0x44779d['content']),this['createdAt']=_0x44779d['createdAt']||new Date(),this['set']('authoredAt',_0x44779d['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x312051,'resolvedAt'),this['set']('attributes',_0x44779d['attributes']||{}),this['bind']('isEditable')['to'](_0x5f5125,'_permissions',()=>{const _0x52a79b=_0x5f5125['getPermissions'](_0x312051['channelId'])['write'],_0x4e3911=_0x5f5125['getPermissions'](_0x312051['channelId'])['modifyAll'];return _0x57dff9&&_0x52a79b||!_0x57dff9&&_0x4e3911;}),this['bind']('isRemovable')['to'](_0x312051,'isRemovable',_0x5f5125,'_permissions',_0x17db15=>{const _0x37a5b0=_0x5f5125['getPermissions'](_0x312051['channelId'])['write'],_0x29199f=_0x5f5125['getPermissions'](_0x312051['channelId'])['modifyAll'];return _0x57dff9&&_0x37a5b0||_0x17db15&&_0xd21135||!_0x57dff9&&_0x29199f&&!_0xd21135;}),this['bind']('isReadOnly')['to'](_0x312051,'isReadOnly'),this['_repository']=_0x5f5125;}get['weight'](){return Math['max'](function(_0x2dd542){const _0x2e0c50=document['createElement']('div');return _0x2e0c50['innerHTML']=_0x2dd542,_0x2e0c50['textContent']['length'];}(this['content']),0xc8);}['update'](_0x583709){const {threadId:_0x445734,id:_0x43edd8}=this;if(!this['_repository']['hasCommentThread'](_0x445734))throw new _0x487ab6('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x372893}=this['_repository']['getCommentThread'](_0x445734);this['_repository']['fire'](bt('updateComment',_0x372893,_0x445734),{'channelId':_0x372893,'threadId':_0x445734,'commentId':_0x43edd8,..._0x583709});}['setAttribute'](_0x3642df,_0x177bef){const _0x291cc9=It(this['attributes']);At(_0x291cc9,_0x3642df,_0x177bef),this['update']({'attributes':_0x291cc9});}['removeAttribute'](_0x26077c){const _0x8e772b=It(this['attributes']);yt(_0x8e772b,_0x26077c),this['update']({'attributes':_0x8e772b});}['remove'](_0x3b75fd={}){if(!_0x3b75fd['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x14ec33,id:_0x36d601}=this;if(!this['_repository']['hasCommentThread'](_0x14ec33))throw new _0x487ab6('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x28d913}=this['_repository']['getCommentThread'](_0x14ec33);this['_repository']['fire'](bt('removeComment',_0x28d913,_0x14ec33),{'channelId':_0x28d913,'threadId':_0x14ec33,'commentId':_0x36d601,..._0x3b75fd});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x16a610,..._0x10de54){for(const _0x555cd1 of _0x10de54)void 0x0!==_0x555cd1&&(_0x16a610+=':'+String(_0x555cd1));return _0x16a610;}class J extends _0x43fab0{['refresh'](){const _0x463fca=this['editor']['model']['document']['selection'];for(const _0x194694 of _0x463fca['getRanges']())if(this['_hasContent'](_0x194694))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x235d9f=_0x23b87c()}={}){const _0x407a9d=this['editor']['model'],_0x11b1b9=[];for(const _0x1846e8 of _0x407a9d['document']['selection']['getRanges']())this['_hasContent'](_0x1846e8)&&_0x11b1b9['push'](this['_trimToContent'](_0x1846e8));_0x407a9d['change'](_0x34e27e=>{for(const _0x69e223 of _0x11b1b9){const _0x3c83b5=_0x23b87c()['substr'](0x1,0x5),_0x137437='comment:'+_0x235d9f+':'+_0x3c83b5;_0x34e27e['addMarker'](_0x137437,{'range':_0x69e223,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x28bac1){for(const _0x16e263 of _0x28bac1['getItems']())if(this['_itemIsContent'](_0x16e263))return!0x0;return!0x1;}['_itemIsContent'](_0x5b9d9c){return _0x5b9d9c['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5b9d9c)&&!_0x5b9d9c['is']('element','tableCell');}['_trimToContent'](_0x5852ed){const _0x26fe61=_0x53356d=>!this['_itemIsContent'](_0x53356d['item']),_0x80b3d8=_0x5852ed['start']['getLastMatchingPosition'](_0x26fe61),_0x543ed8=_0x5852ed['end']['getLastMatchingPosition'](_0x26fe61,{'direction':'backward'});return this['editor']['model']['createRange'](_0x80b3d8,_0x543ed8);}}class P extends _0x5ab294{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28ba27){super(_0x28ba27),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3c0d77=this['editor'],_0x26731d=_0x3c0d77['model']['document']['selection'],_0x769d08=_0x1e4fec(()=>this['refreshSelectedViews'](),0xa);_0x26731d['on']('change:range',(_0x357a10,_0xf73897)=>{_0xf73897['directChange']&&(_0x769d08['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3c0d77['editing']['view']['document'],'change:isFocused',(_0x3c0bba,_0x5519cb,_0x2f2ef2)=>{_0x2f2ef2&&_0x769d08();}),this['listenTo'](_0x3c0d77['ui']['focusTracker'],'change:isFocused',(_0x35980f,_0x5afb0f,_0x2a8369)=>{_0x2a8369||_0x3c0d77['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3b83aa=>this['_editorAnnotationsData']['has'](_0x3b83aa['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1689eb){if(this['_editorAnnotations']['has'](_0x1689eb['view']))return;this['_editorAnnotations']['add'](_0x1689eb['view']),this['editor']['ui']['focusTracker']['add'](_0x1689eb['view']['element']);const _0x184714=this['editor']['plugins']['get'](N);this['listenTo'](_0x184714['collection'],'remove',(_0x368d4c,_0x2b6c8a)=>{this['editor']['ui']['focusTracker']['remove'](_0x2b6c8a['view']['element']),this['_editorAnnotations']['delete'](_0x2b6c8a['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x5d36da){if('function'!=typeof _0x5d36da)throw new _0x487ab6('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x5d36da);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4c72c5,annotations:_0xdd9018}){const _0x67e558=[],_0x3d957d=this['editor']['model']['document']['selection'],_0x348401=Array['from'](_0x3d957d['getRanges']());for(const [_0x2a1d92,_0x53cd0e]of this['_editorAnnotationsData']){const _0x102e9e=_0x5254de(_0x53cd0e),_0x1b6230=_0xdd9018['getByInnerView'](_0x2a1d92);_0x102e9e&&_0x1b6230&&_0x67e558['push']({'annotation':_0x1b6230,'range':_0x102e9e});}function _0x5254de(_0x283d80){for(const _0x4d3858 of _0x283d80)for(const _0x99cb05 of _0x348401)if(_0x4d3858['containsRange'](_0x99cb05,!_0x3d957d['isCollapsed']))return _0x4d3858;return null;}return _0x67e558['sort']((_0x4ea8bd,_0x3f36a9)=>{const _0x38b5fe=_0x4ea8bd['range'],_0x3f81b8=_0x3f36a9['range'];if(!_0x38b5fe['isEqual'](_0x3f81b8)){if(_0x38b5fe['containsRange'](_0x3f81b8,!0x0))return 0x1;if(_0x3f81b8['containsRange'](_0x38b5fe,!0x0))return-0x1;}return _0x4ea8bd['annotation']==_0x4c72c5?-0x1:_0x3f36a9['annotation']==_0x4c72c5?0x1:0x0;})['map'](_0x2789ff=>_0x2789ff['annotation']);}get['_editorAnnotationsData'](){const _0xad1e9=new Map();for(const _0x45e7bd of Array['from'](this['_dataCollectors']))for(const [_0x309587,_0x4cf49d]of _0x45e7bd())_0xad1e9['set'](_0x309587,_0x4cf49d);return _0xad1e9;}}class st extends _0x5ab294{['afterInit'](){const _0x196d02=this['editor'];if(!_0x196d02['plugins']['has']('RestrictedEditingModeEditing'))return;_0x196d02['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5ab294{constructor(_0x1dd9af){super(_0x1dd9af),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x46d223=this['editor'],_0x2258b1=_0x46d223['commands']['get']('importWord'),_0x31bdcd=_0x46d223['plugins']['get'](it);_0x2258b1&&(_0x2258b1['on']('execute',(_0x2cefcb,[,_0xeee810])=>{_0xeee810['collaboration_features']={'comments':!0x0,'user_id':_0x31bdcd['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2258b1,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x3dd4ea,_0x8a0d72){const {comment_threads:_0x4e9ed4}=_0x8a0d72;_0x4e9ed4&&_0x4e9ed4['forEach'](({thread_id:_0x418537,comments:_0x523c99,is_resolved:_0x24fc20})=>{const _0x189405=new Date(),_0x12fd4c=_0x523c99['map'](({author:_0x340528,content:_0xd96a5a,created_at:_0x1113a6})=>({'content':_0xd96a5a,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x189405,'attributes':{'@external':{'authorName':_0x340528,'createdAt':_0x1113a6?new Date(_0x1113a6):new Date(),'source':'importWord'}}})),_0x3df237=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3df237,'threadId':_0x418537,'comments':_0x12fd4c,'resolvedAt':_0x24fc20?_0x189405:null});});}}class at extends _0x5ab294{constructor(_0x3163f1){super(_0x3163f1),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5de7e6=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5de7e6,'contentInsertion',(_0x5e6757,_0x5e47ec)=>this['_removeMarkersWithoutThreads'](_0x5e47ec['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x41276c){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x41276c;const _0x48445c=this['editor']['plugins']['get']('CommentsRepository');for(const _0x40f150 of _0x41276c['keys']()){const [_0x1541f0,_0x3872cb]=_0x40f150['split'](':');'comment'!=_0x1541f0||_0x48445c['hasCommentThread'](_0x3872cb)||_0x41276c['delete'](_0x40f150);}return _0x41276c;}['_registerMarkerInClipboardPipeline'](){const _0x3b2bf4=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x177c67=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x177c67&&_0x3b2bf4['_registerMarkerToCopy']('comment',_0x177c67);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1c9919){switch(_0x1c9919){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x5ab294{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4eccc0,_0x391a6a)=>{if(!_0x391a6a['options']['showCommentHighlights'])return null;if(_0x391a6a['options']['ignoreResolvedComments']){const {id:_0x43d9f5}=er(_0x4eccc0['markerName']),_0x27a4ab=this['editor']['plugins']['get'](o)['getCommentThread'](_0x43d9f5);if(_0x27a4ab&&_0x27a4ab['isResolved']&&_0x4eccc0['item'])return _0x391a6a['consumable']['consume'](_0x4eccc0['item'],'addMarker:'+_0x4eccc0['markerName']),_0x391a6a['consumable']['consume'](_0x4eccc0['item'],'removeMarker:'+_0x4eccc0['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5af0c5=>{_0x5af0c5['on']('addMarker:comment',(_0x1b23bf,_0x55463f,_0x3a0726)=>{if(!_0x3a0726['options']['showCommentHighlights'])return;const _0x17a0e3=_0x55463f['item'];if(!_0x17a0e3)return;const _0xa25685=_0x3a0726['mapper']['toViewElement'](_0x17a0e3);this['editor']['model']['schema']['isObject'](_0x17a0e3)&&_0xa25685&&!_0xa25685['getCustomProperty']('widget')&&_0xa25685['is']('containerElement')&&_0x1bacff(_0xa25685,_0x3a0726['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x50bd10,{writer:_0x2c5608,options:_0x4f66c4})=>{if(!_0x4f66c4['showCommentHighlights'])return null;const _0x3d4e46=_0x2c5608['createContainerElement']('div'),_0x13599=_0x2c5608['createEmptyElement']('hr');return _0x2c5608['addClass']('ck-horizontal-line',_0x3d4e46),_0x2c5608['insert'](_0x2c5608['createPositionAt'](_0x3d4e46,0x0),_0x13599),_0x3d4e46;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x26becf,{writer:_0x5c6637,options:_0x560d07})=>{if(!_0x560d07['showCommentHighlights'])return null;const _0x4879d8=_0x5c6637['createContainerElement']('span'),_0x199d03=_0x5c6637['createEmptyElement']('img');return _0x5c6637['addClass']('image-inline',_0x4879d8),_0x5c6637['insert'](_0x5c6637['createPositionAt'](_0x4879d8,0x0),_0x199d03),_0x4879d8;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1a764a,{writer:_0x2d5083,options:_0x2ab0e4})=>{if(_0x2ab0e4['showCommentHighlights'])return _0x2d5083['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x55767c,_0x221ba5,_0x21f0f3)=>{_0x21f0f3['options']['showCommentHighlights']&&_0x55767c['stop']();},{'priority':'high'});}}class r extends _0x5ab294{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x593425){super(_0x593425),this['set']('isThreadsLoadingPaused',!0x0),_0x593425['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2b9827,_0x22ee8c,_0x39fd48,_0x496ef5)=>{const _0x2fdb14=_0x593425['plugins']['get'](o),_0x2df486=_0x39fd48?er(_0x39fd48)['id']:null;_0x593425['model']['change'](()=>{if(_0x2df486){const _0x52afbe=this['getAllMarkersForId'](_0x2df486);for(const _0x2652e2 of _0x52afbe)_0x593425['editing']['reconvertMarker'](_0x2652e2);}if(_0x496ef5){const {id:_0x4da189}=er(_0x496ef5),_0x483e0c=_0x2fdb14['getCommentThread'](_0x4da189);if(_0x483e0c&&!_0x483e0c['isAttached'])return;const _0x3aa9b4=this['getAllMarkersForId'](_0x4da189);for(const _0x4122b2 of _0x3aa9b4)_0x593425['editing']['reconvertMarker'](_0x4122b2);}}),_0x2df486&&this['scrollToThreadMarker'](_0x2df486);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4dcaf9=this['editor'],_0x4c4e33=_0x4dcaf9['plugins']['get'](o),_0x3b5b76=_0x4dcaf9['config']['get']('collaboration.channelId'),_0x143786=_0x4c4e33['getCommentThreads']()['filter'](_0x2ec515=>_0x2ec515['channelId']!==_0x3b5b76);_0x4dcaf9['commands']['add']('addCommentThread',new J(_0x4dcaf9)),this['listenTo'](_0x4dcaf9,'change:isReadOnly',(_0x3207aa,_0x56d058,_0x383017)=>{_0x4c4e33['switchReadOnly'](_0x383017,_0x4dcaf9['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x4c4e33,ft('addCommentThread',_0x3b5b76),(_0x43b832,{threadId:_0x43691a})=>{const _0x35c6e4=this['editor']['plugins']['get'](o)['getCommentThread'](_0x43691a);_0x35c6e4&&_0x35c6e4['unlinkedAt']&&this['_attachArchivedThread'](_0x43691a);}),this['listenTo'](_0x4c4e33,ft('removeCommentThread',_0x3b5b76),(_0xcc143e,{threadId:_0x19f9d4})=>{_0x4dcaf9['model']['enqueueChange']({'isUndoable':!0x1},_0x199e4c=>{const _0x598766=this['getAllMarkersForId'](_0x19f9d4);for(const _0x31c027 of _0x598766)_0x199e4c['removeMarker'](_0x31c027);});}),this['listenTo'](_0x4c4e33,ft('resolveCommentThread',_0x3b5b76),(_0x2c254d,{threadId:_0x4b4d18})=>{(this['_reconvertMarkers'](_0x4b4d18),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4b4d18)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x4c4e33,ft('reopenCommentThread',_0x3b5b76),(_0x50a01e,{threadId:_0x15e40e})=>{this['_reconvertMarkers'](_0x15e40e);},{'priority':'low'}),this['listenTo'](_0x4c4e33,ft('addComment',_0x3b5b76),(_0x448bce,{threadId:_0x145ff1,isFromAdapter:_0x28fb9d})=>{const _0x35a234=this['getAllMarkersForId'](_0x145ff1);if(_0x28fb9d||0x0==_0x35a234['length']||!_0x4c4e33['hasCommentThread'](_0x145ff1))return;0x1===_0x4c4e33['getCommentThread'](_0x145ff1)['length']&&_0x4dcaf9['model']['enqueueChange']({'isUndoable':!0x1},_0x49d1cb=>{for(const _0x49be8c of _0x35a234)_0x49d1cb['updateMarker'](_0x49be8c,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x143786);}['afterInit'](){!async function(_0x377236){const _0x3b7748=_0x38f111([0x6e,0x49,0x6f,0x78,0x66,0x37,0x54,0x74,0x4b,0x36,0x61,0x73,0x42,0x50,0x62,0x71,0x30,0x6d,0x4d,0x57,0x6b,0x39,0x31,0x79,0x72,0x58,0x7a,0x68,0x59,0x75,0x53,0x4e,0x47,0x4a,0x32,0x70,0x76,0x6c,0x67,0x77,0x64,0x34,0x44,0x56,0x45,0x65,0x33,0x51,0x5a,0x4f,0x52,0x41,0x55,0x43,0x69,0x48,0x46,0x6a,0x35,0x4c,0x63,0x38]),_0x18b5d0=0x71e1a044,_0xb1017f=0x71e6fe1c^_0x18b5d0,_0x2cea4d=window[_0x38f111([0x44,0x61,0x74,0x65])][_0x38f111([0x6e,0x6f,0x77])](),_0x104c3a=_0x377236[_0x38f111([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25e545=new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c4469=>{_0x104c3a[_0x38f111([0x6f,0x6e,0x63,0x65])](_0x38f111([0x72,0x65,0x61,0x64,0x79]),_0x5c4469);}),_0xa0ea86={[_0x38f111([0x6b,0x74,0x79])]:_0x38f111([0x45,0x43]),[_0x38f111([0x75,0x73,0x65])]:_0x38f111([0x73,0x69,0x67]),[_0x38f111([0x63,0x72,0x76])]:_0x38f111([0x50,0x2d,0x32,0x35,0x36]),[_0x38f111([0x78])]:_0x38f111([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]),[_0x38f111([0x79])]:_0x38f111([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]),[_0x38f111([0x61,0x6c,0x67])]:_0x38f111([0x45,0x53,0x32,0x35,0x36])},_0x4519c0=_0x104c3a[_0x38f111([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38f111([0x67,0x65,0x74])](_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cc0ce(){let _0x3ab8d2,_0x48e2b4=null,_0xebbded=null;try{if(_0x4519c0==_0x38f111([0x47,0x50,0x4c]))return _0x38f111([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ab8d2=_0x29060b(),!_0x3ab8d2)return _0x38f111([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ab8d2[_0x38f111([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xebbded=_0x2f2e39(_0x3ab8d2[_0x38f111([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ab8d2[_0x38f111([0x6a,0x74,0x69])])),await _0x5e644c()?_0x36c4d5()?_0x539682()?_0x38f111([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdfc9ba()?(_0x3ab8d2[_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38f111([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48e2b4=_0x465490(_0x38f111([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ab8d2[_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38f111([0x74,0x72,0x69,0x61,0x6c])&&(_0x48e2b4=_0x465490(_0x38f111([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b9d05()):_0x38f111([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38f111([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38f111([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5a2f3d){return _0x38f111([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x539682(){const _0x1b0a0c=[_0x38f111([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38f111([0x74,0x72,0x69,0x61,0x6c])][_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab8d2[_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cea4d/0x3e8:0xe10*_0xb1017f;return _0x3ab8d2[_0x38f111([0x65,0x78,0x70])]<_0x1b0a0c;}function _0x36c4d5(){const _0x6790f4=_0x3ab8d2[_0x38f111([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x6790f4)return!0x1;if(_0x6790f4[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f111([0x2a])))return!0x0;if(_0x6790f4[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f111([0x43,0x4d,0x54])))return!0x0;if(_0x6790f4[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f111([0x52,0x43,0x4d,0x54]))){if(_0x111686())return!0x0;if(_0x50a75a()||_0x126d5c())return!0x0;}return!0x1;}function _0xdfc9ba(){const _0x290705=_0x3ab8d2[_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x290705||0x0==_0x290705[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c4465}=new URL(window[_0x38f111([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x290705[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c4465))return!0x0;const _0x3f8f35=_0x1c4465[_0x38f111([0x73,0x70,0x6c,0x69,0x74])](_0x38f111([0x2e]));return _0x290705[_0x38f111([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c539c=>_0x5c539c[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f111([0x2a])))[_0x38f111([0x6d,0x61,0x70])](_0x57016c=>_0x57016c[_0x38f111([0x73,0x70,0x6c,0x69,0x74])](_0x38f111([0x2e])))[_0x38f111([0x73,0x6f,0x6d,0x65])](_0x2033ee=>_0x3f8f35[_0x38f111([0x65,0x76,0x65,0x72,0x79])]((_0x3aaa92,_0x2bc160)=>_0x2033ee[_0x2bc160]===_0x3aaa92||_0x2033ee[_0x2bc160]===_0x38f111([0x2a])));}function _0x4b9d05(){return _0x48e2b4&&_0xebbded?new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58ef66,_0x59f02c)=>{_0x48e2b4[_0x38f111([0x74,0x68,0x65,0x6e])](_0x58ef66,_0x59f02c),_0xebbded[_0x38f111([0x74,0x68,0x65,0x6e])](_0x4d332b=>{_0x4d332b!=_0x38f111([0x56,0x61,0x6c,0x69,0x64])&&_0x58ef66(_0x4d332b);},_0x59f02c);}):_0x48e2b4||_0xebbded||_0x38f111([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f2e39(_0x22fab4,_0x13b284){return new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xde3773=>{if(_0x1ba0eb())return _0xde3773(_0x38f111([0x56,0x61,0x6c,0x69,0x64]));_0x56a9eb(),_0x104c3a[_0x38f111([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38f111([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a576b=!0x1;const _0xd657b2=_0x23b87c();function _0x2c6813(_0x5ecb4e){return!!_0x5ecb4e&&(typeof _0x5ecb4e===_0x38f111([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ecb4e===_0x38f111([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ecb4e[_0x38f111([0x74,0x68,0x65,0x6e])]===_0x38f111([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ecb4e[_0x38f111([0x63,0x61,0x74,0x63,0x68])]===_0x38f111([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2753c7(_0x941a1){_0x4ec25c(_0x941a1)[_0x38f111([0x74,0x68,0x65,0x6e])](_0x1e1b30=>{if(!_0x1e1b30||_0x1e1b30[_0x38f111([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38f111([0x6f,0x6b]))return _0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a3219(_0x3e9a9a(_0xd657b2+_0x13b284))!=_0x1e1b30[_0x38f111([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38f111([0x56,0x61,0x6c,0x69,0x64]);})[_0x38f111([0x74,0x68,0x65,0x6e])](_0x129d09=>(_0x5a5bd9(),_0x129d09),()=>{const _0x39113a=_0x345f95();return null==_0x39113a?(_0x5a5bd9(),_0x38f111([0x56,0x61,0x6c,0x69,0x64])):_0x38f111(_0x2cea4d-_0x39113a>(0x55ed2444^_0x18b5d0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38f111([0x74,0x68,0x65,0x6e])](_0xde3773)[_0x38f111([0x63,0x61,0x74,0x63,0x68])](()=>{_0xde3773(_0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x531583=0x71d74ec4^_0x18b5d0;function _0x5a5bd9(){const _0x3a4a53=_0x38f111([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a3219(_0x3e9a9a(_0x22fab4)),_0x647376=_0x6dee71(_0x2a3219(window[_0x38f111([0x4d,0x61,0x74,0x68])][_0x38f111([0x63,0x65,0x69,0x6c])](_0x2cea4d/_0x531583)));window[_0x38f111([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38f111([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a4a53,_0x647376);}function _0x345f95(){const _0x4c9e59=_0x38f111([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a3219(_0x3e9a9a(_0x22fab4)),_0x17523d=window[_0x38f111([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38f111([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c9e59);return _0x17523d?window[_0x38f111([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6dee71(_0x17523d),0x10)*_0x531583:null;}function _0x4ec25c(_0x361dd9){return new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x526af3,_0x4b0485)=>{_0x361dd9[_0x38f111([0x74,0x68,0x65,0x6e])](_0x526af3,_0x4b0485),window[_0x38f111([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b0485,0x71e07484^_0x18b5d0);});}}_0x104c3a[_0x38f111([0x6f,0x6e])](_0x38f111([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x506655,_0x448105)=>{if(_0x448105[0x0]!=_0x22fab4)return _0xde3773(_0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x448105[0x1]={..._0x448105[0x1],[_0x38f111([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd657b2};},{[_0x38f111([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38f111([0x68,0x69,0x67,0x68])}),_0x104c3a[_0x38f111([0x6f,0x6e])](_0x38f111([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x169d90=>{_0x2c6813(_0x169d90[_0x38f111([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a576b=!0x0,_0x2753c7(_0x169d90[_0x38f111([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38f111([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38f111([0x6c,0x6f,0x77])}),_0x25e545[_0x38f111([0x74,0x68,0x65,0x6e])](()=>{_0x2a576b||_0xde3773(_0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ba0eb(){return _0x104c3a[_0x38f111([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38f111([0x76,0x69,0x65,0x77])][_0x38f111([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38f111([0x61,0x75,0x74,0x6f]);}function _0x56a9eb(){_0x104c3a[_0x38f111([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38f111([0x76,0x69,0x65,0x77])][_0x38f111([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38f111([0x61,0x75,0x74,0x6f]);}}function _0x465490(_0x2f01b9){const _0x316968=[new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2638a3=>setTimeout(_0x2638a3,0x71e89e88^_0x18b5d0)),_0x25e545[_0x38f111([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b1495=>{let _0x179aab=0x0;_0x104c3a[_0x38f111([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f111([0x6f,0x6e])](_0x38f111([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x244213,_0x4c5b6f)=>{_0x4c5b6f[0x0][_0x38f111([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x179aab++,_0x179aab==(0x71e1a1bc^_0x18b5d0)&&(_0x3b1495(),_0x244213[_0x38f111([0x6f,0x66,0x66])]());});}))];return window[_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38f111([0x72,0x61,0x63,0x65])](_0x316968)[_0x38f111([0x74,0x68,0x65,0x6e])](()=>_0x2f01b9);}async function _0x4d4bb0(){await _0x25e545,_0x104c3a[_0x38f111([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f111([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51110f,_0x104c3a[_0x38f111([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f111([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51110f,_0x104c3a[_0x38f111([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38f111([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x111686(){return _0x5bb198(_0x38f111([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5bf18e(_0x38f111([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38f111([0x73,0x74,0x61,0x74,0x65])]==_0x38f111([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x50a75a(){return _0x5bb198(_0x38f111([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 _0x126d5c(){return _0x5bb198(_0x38f111([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb2639f(_0xbcd550){const _0x203017=_0x2d1fb5();_0x104c3a[_0x203017]=_0x38f111([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbcd550,_0xbcd550!=_0x38f111([0x56,0x61,0x6c,0x69,0x64])&&_0x4d4bb0();}function _0x2d1fb5(){const _0x161eff=window[_0x38f111([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38f111([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38f111([0x6e,0x6f,0x77])]())[_0x38f111([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38f111([0x2e]),'');let _0x23f3e1=_0x38f111([0x6e]);for(let _0xc02238=0x0;_0xc02238<_0x161eff[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc02238+=0x2){let _0x50f653=window[_0x38f111([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x161eff[_0x38f111([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc02238,_0xc02238+0x2));_0x50f653>=_0x3b7748[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50f653-=_0x3b7748[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23f3e1+=_0x3b7748[_0x50f653];}return _0x23f3e1;}function _0x29060b(){const _0x3274ad=_0x4519c0[_0x38f111([0x73,0x70,0x6c,0x69,0x74])](_0x38f111([0x2e]));if(0x3!=_0x3274ad[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e7eca(_0x3274ad[0x1]);function _0x5e7eca(_0x573f1c){const _0x34aaf3=_0x104950(_0x573f1c);return _0x34aaf3&&_0x402c56()?_0x34aaf3:null;function _0x402c56(){const _0x4e0e08=_0x34aaf3[_0x38f111([0x6a,0x74,0x69])],_0x50070c=window[_0x38f111([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e0e08[_0x38f111([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e0e08[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b0c83={..._0x34aaf3,[_0x38f111([0x6a,0x74,0x69])]:_0x4e0e08[_0x38f111([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e0e08[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b0c83[_0x38f111([0x76,0x63])],_0x3e9a9a(_0x4b0c83)==_0x50070c;}}}async function _0x5e644c(){let _0x2bfcce=!0x0;try{const _0x477e3a=_0x4519c0[_0x38f111([0x73,0x70,0x6c,0x69,0x74])](_0x38f111([0x2e])),[_0x5a0628,_0x500c24,_0x5fd7c7]=_0x477e3a;return _0x14a283(_0x5a0628),await _0x4ef8f1(_0x5a0628,_0x500c24,_0x5fd7c7),_0x2bfcce;}catch(_0x10ea67){return!0x1;}function _0x14a283(_0x4eaaf1){const _0x4a515c=_0x104950(_0x4eaaf1);_0x4a515c&&_0x4a515c[_0x38f111([0x61,0x6c,0x67])]==_0x38f111([0x45,0x53,0x32,0x35,0x36])||(_0x2bfcce=!0x1);}async function _0x4ef8f1(_0x67de15,_0x32f451,_0x328cf3){const _0x381607=window[_0x38f111([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38f111([0x66,0x72,0x6f,0x6d])](_0x56978e(_0x328cf3),_0x1d097e=>_0x1d097e[_0x38f111([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4bcbf6=new window[(_0x38f111([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38f111([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x67de15+_0x38f111([0x2e])+_0x32f451),_0x227ff9=window[_0x38f111([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38f111([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x227ff9)return;const _0x3ad75f=await _0x227ff9[_0x38f111([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38f111([0x6a,0x77,0x6b]),_0xa0ea86,{[_0x38f111([0x6e,0x61,0x6d,0x65])]:_0x38f111([0x45,0x43,0x44,0x53,0x41]),[_0x38f111([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38f111([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38f111([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x227ff9[_0x38f111([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38f111([0x6e,0x61,0x6d,0x65])]:_0x38f111([0x45,0x43,0x44,0x53,0x41]),[_0x38f111([0x68,0x61,0x73,0x68])]:{[_0x38f111([0x6e,0x61,0x6d,0x65])]:_0x38f111([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ad75f,_0x381607,_0x4bcbf6)||(_0x2bfcce=!0x1);}}function _0x104950(_0x58fccb){return _0x58fccb[_0x38f111([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38f111([0x65,0x79]))?JSON[_0x38f111([0x70,0x61,0x72,0x73,0x65])](_0x56978e(_0x58fccb)):null;}function _0x56978e(_0x15d689){return window[_0x38f111([0x61,0x74,0x6f,0x62])](_0x15d689[_0x38f111([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38f111([0x2b]))[_0x38f111([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38f111([0x2f])));}function _0x3e9a9a(_0x177452){let _0x46ac53=0x1505;function _0x3f5ee1(_0x1f1696){for(let _0x1f82ca=0x0;_0x1f82ca<_0x1f1696[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f82ca++){const _0x2b1c94=_0x1f1696[_0x38f111([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f82ca);_0x46ac53=(_0x46ac53<<0x5)+_0x46ac53+_0x2b1c94,_0x46ac53&=_0x46ac53;}}function _0x122cf5(_0x16ba71){Array[_0x38f111([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16ba71)?_0x16ba71[_0x38f111([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x122cf5):_0x16ba71&&typeof _0x16ba71==_0x38f111([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38f111([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16ba71)[_0x38f111([0x73,0x6f,0x72,0x74])]()[_0x38f111([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ed103,_0x59cbd2])=>{_0x3f5ee1(_0x2ed103),_0x122cf5(_0x59cbd2);}):_0x3f5ee1(window[_0x38f111([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16ba71));}return _0x122cf5(_0x177452),_0x46ac53>>>0x0;}function _0x2a3219(_0x390a4d){return _0x390a4d[_0x38f111([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38f111([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38f111([0x30]));}function _0x6dee71(_0x2bdb8a){return _0x2bdb8a[_0x38f111([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38f111([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38f111([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bb198(_0x1051db){return _0x104c3a[_0x38f111([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38f111([0x68,0x61,0x73])](_0x1051db);}function _0x5bf18e(_0x3210a1){return _0x104c3a[_0x38f111([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38f111([0x67,0x65,0x74])](_0x3210a1);}function _0x51110f(){}function _0x38f111(_0x460f98){return _0x460f98['map'](_0x453fe9=>String['fromCharCode'](_0x453fe9))['join']('');}_0xb2639f(await _0x5cc0ce());}(this);}['destroy'](){const _0x3cf550=this['editor']['plugins']['get'](o),_0x29871c=this['editor']['config']['get']('collaboration.channelId');for(const _0x27d450 of _0x3cf550['getCommentThreads']({'channelId':_0x29871c}))_0x3cf550['_detachCommentThread'](_0x27d450['id']),_0x3cf550['_threads']['delete'](_0x27d450['id']);super['destroy']();}['hasMarkerForId'](_0x5f2c00){return this['getAllMarkersForId'](_0x5f2c00)['length']>0x0;}['getAllMarkersForId'](_0x15bbb8){const _0x5314bf=[];for(const _0x2cadd3 of this['editor']['model']['markers'])_0x2cadd3['name']['startsWith']('comment:'+_0x15bbb8)&&_0x5314bf['push'](_0x2cadd3);return _0x5314bf;}['scrollToThreadMarker'](_0xd33c72){const _0x5adcd6=this['_getTargetForId'](_0xd33c72);_0x5adcd6&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0xd33c72&&rt({'target':_0x5adcd6[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x562338){this['editor']['model']['change'](()=>{for(const _0xb6e430 of this['getAllMarkersForId'](_0x562338))this['editor']['editing']['reconvertMarker'](_0xb6e430);});}['_attachArchivedThread'](_0x1d260e){const _0x173433=this['editor']['plugins']['get'](o),_0x4cfb64=this['editor']['plugins']['get'](P),_0x463425=_0x173433['getCommentThread'](_0x1d260e);if(!_0x463425['isAttached']){const _0x418133=_0x463425['attachTo'](()=>this['_getTargetForId'](_0x463425['id']));_0x4cfb64['registerAnnotation'](_0x418133),_0x463425['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4a4607=this['editor'],_0xf28ee8=_0x4a4607['plugins']['get'](it);_0x4a4607['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1d9cfb,_0x3d8238)=>{const {id:_0x3cd089}=er(_0x1d9cfb['markerName']),_0x4d4307=_0x4a4607['plugins']['get'](o)['getCommentThread'](_0x3cd089),_0x157f47=this['activeMarker']&&er(this['activeMarker'])['id']===_0x3cd089;let _0x3a5aee;if(_0x4d4307&&_0x4d4307['isResolved']&&!_0x157f47&&_0x1d9cfb['item'])return _0x3d8238['consumable']['consume'](_0x1d9cfb['item'],'addMarker:'+_0x1d9cfb['markerName']),_0x3d8238['consumable']['consume'](_0x1d9cfb['item'],'removeMarker:'+_0x1d9cfb['markerName']),null;const _0x32c453=['ck-comment-marker'];return _0x157f47&&_0x32c453['push']('ck-comment-marker--active'),_0x3a5aee=_0x4d4307&&_0x4d4307['length']?_0x4d4307['comments']['first']['author']['id']:_0xf28ee8['me']['id'],{'classes':_0x32c453,'attributes':{'data-comment':_0x3cd089,'data-author-id':_0x3a5aee}};}}),_0x4a4607['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x5047b0,{options:_0x45a720})=>{if(_0x45a720['showCommentHighlights'])return null;const _0x7a28ab=_0x4a4607['plugins']['get'](o),_0x3b086b=_0x4a4607['model']['markers']['get'](_0x5047b0),{id:_0x9534d9,part:_0x4796a8}=er(_0x5047b0);if(_0x3b086b&&!_0x3b086b['affectsData'])return null;if(_0x45a720['ignoreResolvedComments']){const _0x3d058d=_0x7a28ab['getCommentThread'](_0x9534d9);if(_0x3d058d&&_0x3d058d['isResolved'])return null;}return{'group':'comment','name':_0x4796a8?_0x9534d9+':'+_0x4796a8:_0x9534d9};}}),_0x4a4607['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x41b477,{writer:_0x470b75})=>_0x470b75['createElement']('$marker',{'data-name':'comment:'+_0x41b477['getAttribute']('id')})}),_0x4a4607['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x41169b=this['editor'],_0xa09c3a=_0x41169b['plugins']['get'](o),_0x2bbab8=new Set(),_0xfa93b1=new Set();_0x41169b['model']['document']['registerPostFixer'](_0x49a80c=>{let _0x3216c7=!0x1;for(const {name:_0x440dc2,data:_0x2af374}of _0x41169b['model']['document']['differ']['getChangedMarkers']()){const {group:_0xd15ec8,id:_0x19c4bb}=er(_0x440dc2);let _0x1178f6=_0x2af374['newRange'];if('comment'!==_0xd15ec8||!_0x1178f6)continue;const _0xe5991a='$graveyard'===_0x1178f6['root']['rootName'];_0xe5991a||(_0x1178f6=dt(_0x1178f6,_0x41169b['model']),!_0x1178f6||_0x1178f6['isCollapsed']||!_0x2af374['newRange']||_0x1178f6['isEqual'](_0x2af374['newRange']))?_0x41169b['model']['hasContent'](_0x1178f6)&&!_0xe5991a?this['isThreadsLoadingPaused']?_0x2bbab8['add'](_0x440dc2):this['_handleThreadMarker'](_0x440dc2,_0x19c4bb):(_0xfa93b1['add'](_0x440dc2),_0x2bbab8['delete'](_0x440dc2),_0x49a80c['removeMarker'](_0x440dc2),_0x3216c7=!0x0):(_0x49a80c['updateMarker'](_0x440dc2,{'range':_0x1178f6}),_0x3216c7=!0x0);}return _0x3216c7;}),this['on']('change:isThreadsLoadingPaused',(_0x3ac955,_0x5f0900,_0x25c51c)=>{if(!_0x25c51c&&_0x2bbab8['size'])for(const _0x50b02e of _0x2bbab8){const {id:_0x555aac}=er(_0x50b02e);_0x2bbab8['delete'](_0x50b02e),_0x41169b['model']['markers']['get'](_0x50b02e)&&this['_handleThreadMarker'](_0x50b02e,_0x555aac);}}),this['listenTo'](_0x41169b['model']['document'],'change',()=>{for(const {name:_0x5df5e1,data:{newRange:_0x5d6b52}}of _0x41169b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x103ca1,id:_0x48112d}=er(_0x5df5e1);if('comment'!==_0x103ca1)continue;const _0x1fea6c=_0xa09c3a['getCommentThread'](_0x48112d),_0x202c0e=this['hasMarkerForId'](_0x48112d);_0x1fea6c&&(!_0x1fea6c['_hasTargetInContent']&&_0x5d6b52&&_0x41169b['editing']['view']['once']('render',()=>{const _0x245280=_0x41169b['plugins']['get'](N),_0x55b191=_0xa09c3a['_threadToController']['get'](_0x1fea6c)['view'];_0x245280['getByInnerView'](_0x55b191)['refreshVisibility']();},{'priority':'low'}),_0x1fea6c['_hasTargetInContent']=_0x202c0e||!!_0x5d6b52),_0x5d6b52||(_0xfa93b1['add'](_0x5df5e1),_0x2bbab8['delete'](_0x5df5e1));}for(const _0x15c352 of _0xfa93b1){const {id:_0x12321d}=er(_0x15c352),_0x3a1600=_0xa09c3a['getCommentThread'](_0x12321d);if(_0x2bbab8['delete'](_0x15c352),!_0x3a1600)continue;const _0x39b762=this['hasMarkerForId'](_0x12321d);_0x39b762||_0x3a1600['isSubmitted']?_0x39b762||_0x3a1600['unlinkedAt']||_0x3a1600['setUnlinkedAt'](new Date()):_0x3a1600['remove']();}_0xfa93b1['clear']();});}['_handleInitialThreads'](_0x5a6960){_0x5a6960['forEach'](_0x4fec19=>{_0x4fec19['unlinkedAt']&&this['_attachArchivedThread'](_0x4fec19['id']);});}['_getTargetForId'](_0x3669f6){const _0x282fc5=this['editor'],_0x4ac7c8=this['getAllMarkersForId'](_0x3669f6);return et(_0x282fc5['editing'],_0x4ac7c8);}['_getTextContext'](_0x170d54){const _0x4c5d25=this['getAllMarkersForId'](_0x170d54);let _0x54221f='',_0x44356c=!0x1;for(const _0x14b3ec of _0x4c5d25){const _0x220b8d=_0x14b3ec['getRange']();for(const _0x580905 of Array['from'](_0x220b8d['getItems']()))_0x580905['is']('$textProxy')?(_0x54221f&&_0x44356c&&(_0x54221f+='\x20',_0x44356c=!0x1),_0x54221f+=_0x580905['data']):_0x44356c=!0x0;_0x44356c=!0x0;}return _0x54221f['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x51e239,_0xc3f43e){const _0x286915=this['editor'],_0x20bba6=_0x286915['plugins']['get'](o);let _0x51c8e0=_0x20bba6['getCommentThread'](_0xc3f43e);const _0x428b95=_0x286915['config']['get']('collaboration.channelId'),_0x5f205b=_0x286915['plugins']['get'](P);if(_0x51c8e0&&(_0x51c8e0['unlinkedAt']&&_0x51c8e0['setUnlinkedAt'](null),_0x51c8e0['isAttached']))return _0x51c8e0;return!this['getAllMarkersForId'](_0xc3f43e)[0x0]['managedUsingOperations']?_0x286915['editing']['view']['once']('render',()=>{if(_0x20bba6['getCommentThread'](_0xc3f43e))return;const _0x302bc1=_0x286915['plugins']['get'](N);_0x51c8e0=_0x20bba6['openNewCommentThread']({'channelId':_0x428b95,'threadId':_0xc3f43e,'target':()=>this['_getTargetForId'](_0xc3f43e),'context':{'type':'text','value':this['_getTextContext'](_0xc3f43e)}});const _0x2f78ae=_0x20bba6['_threadToController']['get'](_0x51c8e0)['view'],_0x3494d2=_0x302bc1['getByInnerView'](_0x2f78ae);_0x3494d2&&_0x5f205b['registerAnnotation'](_0x3494d2);},{'priority':'low'}):_0x20bba6['fetchCommentThread']({'channelId':_0x428b95,'threadId':_0xc3f43e})['then'](_0x49a54f=>{if('destroyed'!==_0x286915['state']){if(_0x51c8e0=_0x49a54f,_0x51c8e0&&!_0x51c8e0['isAttached']){const _0x236c0f=_0x51c8e0['attachTo'](()=>this['_getTargetForId'](_0xc3f43e));_0x5f205b['registerAnnotation'](_0x236c0f),_0x51c8e0['isResolved']&&this['_reconvertMarkers'](_0xc3f43e);}else{if(!_0x51c8e0){const _0x8b3f8f=this['getAllMarkersForId'](_0xc3f43e);_0x286915['model']['change'](_0x89a6ee=>{for(const _0x4dd04a of _0x8b3f8f)_0x89a6ee['removeMarker'](_0x4dd04a);});}}}}),_0x51c8e0;}['_handleThreadMarker'](_0x987c27,_0x15a469){const _0x2599ca=this['_attachMarkerToThread'](_0x987c27,_0x15a469);_0x2599ca&&!_0x2599ca['context']&&_0x2599ca['setContext']({'type':'text','value':this['_getTextContext'](_0x15a469)});}['_initAriaMarkerChangeAnnouncements'](){const _0x15859c=this['editor'];ot(_0x15859c['model'],({left:_0x4e4a0c,entered:_0x2bb79b})=>{for(const _0x15feca of _0x4e4a0c)if(mt(_0x15feca)){_0x15859c['ui']['ariaLiveAnnouncer']['announce'](S(_0x15859c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x319ecb of _0x2bb79b)if(mt(_0x319ecb)){_0x15859c['ui']['ariaLiveAnnouncer']['announce'](S(_0x15859c['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x56abeb)));break;}});}}function ft(_0x1bd854,_0x70180e){return _0x70180e?_0x1bd854+':'+_0x70180e:_0x1bd854;}function er(_0x3294b7){const _0x1968b5=_0x3294b7['split'](':');return{'group':_0x1968b5[0x0],'id':_0x1968b5[0x1],'part':_0x1968b5[0x2]};}function dt(_0x2eb83c,_0x3e7cea){const _0xc97d8d=_0x3e7cea['schema'],_0x206a43=_0x3e7cea['createRange'](_0x2eb83c['start']);for(const _0x1d6b63 of _0x2eb83c['getWalker']()){const {type:_0x35846f,item:_0x49204f,nextPosition:_0x375ebc}=_0x1d6b63;if('text'===_0x35846f||_0xc97d8d['isObject'](_0x49204f)){const _0x322a48=_0x3e7cea['createPositionBefore'](_0x49204f);_0x206a43['isCollapsed']&&(_0x206a43['start']=_0x322a48),_0x206a43['end']=_0x375ebc;}}return _0x206a43;}function mt(_0x16ded2){return'comment'===er(_0x16ded2['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x5ab294{['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 _0x214304=this['editor'],_0x22af35=_0x214304['plugins']['get'](o),_0x3d5974=_0x214304['plugins']['get'](r),_0x2311dc=_0x214304['plugins']['get'](N),_0x597ade=_0x214304['plugins']['get'](P);_0x214304['ui']['componentFactory']['add']('comment',()=>{const _0x5b4ec7=this['_createUIButton'](_0x3bfc4d);return _0x5b4ec7['tooltip']=!0x0,_0x5b4ec7;}),_0x214304['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4cf37f)),_0x597ade['addSourceCollector'](()=>{const _0x171025=[];for(const [_0x69737e,_0x14927b]of _0x22af35['_threadToController']){const _0x5ac017=_0x3d5974['getAllMarkersForId'](_0x69737e['id']),_0x108f0d=_0x5ac017['map'](_0x1f1839=>_0x1f1839['getRange']());_0x5ac017['length']>0x0&&_0x171025['push']([_0x14927b['view'],_0x108f0d]);}return _0x171025;}),this['listenTo'](_0x2311dc,'change:activeAnnotations',(_0x16ca63,_0x56fe8b,_0x205243)=>{const _0x480331=Array['from'](_0x205243)['map'](_0x4141d4=>_0x4141d4['innerView'])['find'](_0x49bf13=>_0x22af35['_viewToController']['has'](_0x49bf13));if(!_0x480331)return void(_0x3d5974['activeMarker']=null);const _0x24eb0d=_0x22af35['_viewToController']['get'](_0x480331)['model']['id'],_0x554427='comment:'+_0x24eb0d;_0x24eb0d&&_0x3d5974['hasMarkerForId'](_0x24eb0d)?_0x3d5974['activeMarker']=_0x554427:_0x3d5974['activeMarker']&&(_0x3d5974['activeMarker']=null);}),this['listenTo'](_0x22af35,'removeCommentThread',(_0x2ef2d1,{threadId:_0x2e64f0,isFromAdapter:_0x59a1c2})=>{!_0x59a1c2&&_0x214304['ui']['focusTracker']['isFocused']&&_0x3d5974['hasMarkerForId'](_0x2e64f0)&&_0x214304['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x22af35,'addComment',(_0x20176c,{threadId:_0x2ee030,isFromAdapter:_0x11395c})=>{if(_0x11395c||!_0x3d5974['hasMarkerForId'](_0x2ee030)||!_0x22af35['hasCommentThread'](_0x2ee030))return;0x1===_0x22af35['getCommentThread'](_0x2ee030)['length']&&(_0x214304['editing']['view']['focus'](),_0x20176c['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x555259=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc85b9a;for(const _0x11eaf4 in _0x555259){const _0x9fff39=_0x11eaf4,_0x5bce68=_0x555259[_0x9fff39];if('commentsLicenseKeyValid'==_0x5bce68||'commentsLicenseKeyInvalid'==_0x5bce68||'commentsLicenseKeyExpired'==_0x5bce68||'commentsLicenseKeyDomainLimit'==_0x5bce68||'commentsLicenseKeyNotAllowed'==_0x5bce68||'commentsLicenseKeyEvaluationLimit'==_0x5bce68||'commentsLicenseKeyTrialLimit'==_0x5bce68||'commentsLicenseKeyUsageLimit'==_0x5bce68){delete _0x555259[_0x9fff39],_0xc85b9a=_0x5bce68,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0xc85b9a&&_0x555259['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0xc85b9a&&_0x555259['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0xc85b9a&&_0x555259['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0xc85b9a&&_0x555259['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0xc85b9a&&_0x555259['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0xc85b9a&&_0x555259['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0xc85b9a&&_0x555259['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x42b99f){const _0x2197bf=this['editor'],_0x2ae46f=new _0x42b99f(_0x2197bf['locale']),_0x365158=_0x2197bf['commands']['get']('addCommentThread');return _0x2ae46f['set']({'label':S(_0x2197bf['locale'],'Comment'),'icon':xt}),_0x2ae46f['bind']('isEnabled')['to'](_0x365158),this['listenTo'](_0x2ae46f,'execute',()=>{_0x2197bf['editing']['view']['focus'](),_0x365158['execute']();}),_0x2ae46f;}}class s extends _0x5ab294{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1c0967){super(_0x1c0967),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x219291,_0xf4a18,_0x85d9e3)=>{_0x85d9e3?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x14b62f,_0x11be19]of this['editor']['commands'])_0x11be19['affectsData']&&'addCommentThread'!==_0x14b62f&&_0x11be19['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x4fe266=this['editor']['editing']['view']['document'];this['listenTo'](_0x4fe266,'cut',_0x839c38=>_0x839c38['stop'](),{'priority':'highest'}),this['listenTo'](_0x4fe266,'clipboardInput',_0x546bed=>_0x546bed['stop'](),{'priority':'highest'}),this['listenTo'](_0x4fe266,'delete',_0x5990cf=>_0x5990cf['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x55ddbb,_0x443f8c]of this['editor']['commands'])_0x443f8c['affectsData']&&'addCommentThread'!==_0x55ddbb&&_0x443f8c['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x4ad5c3{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5eb384){super(_0x5eb384),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x4f8be8=this['context']['plugins']['get'](N);this['listenTo'](_0x4f8be8,'_activateAnnotation',(_0x343194,_0x2fbe8e)=>{for(const _0x49f71c of this['activeUIs']){const _0x1cd76f=this['_uis']['get'](_0x49f71c);(0x0,this['_uisData']['get'](_0x49f71c)['filter'])(_0x2fbe8e)&&_0x1cd76f['setActiveAnnotation'](_0x2fbe8e);}}),this['listenTo'](_0x4f8be8,'_deactivateAllAnnotations',()=>{for(const _0x25456f of this['activeUIs']){this['_uis']['get'](_0x25456f)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4f8be8['_visibleAnnotations'],'add',(_0x5a0da8,_0x3566fe)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3566fe);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x58e0fb){return this['activeUIs']['has'](_0x58e0fb);}['activate'](_0x151d6f,_0x1b2758=()=>!0x0){const _0x28b772=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x151d6f))throw new _0x487ab6('annotationsuis-missing-ui',this,{'uiName':_0x151d6f});this['isActive'](_0x151d6f)&&this['deactivate'](_0x151d6f),this['activeUIs']['add'](_0x151d6f);const _0x4048c0=new x();!function({source:_0x538a0b,target:_0x123fa7,filter:_0x46580c}){for(const _0x3bf9d3 of _0x538a0b)_0x46580c(_0x3bf9d3)&&_0x123fa7['add'](_0x3bf9d3);_0x123fa7['listenTo'](_0x538a0b,'add',(_0x43cf77,_0x32fdda)=>{_0x46580c(_0x32fdda)&&_0x123fa7['add'](_0x32fdda);}),_0x123fa7['listenTo'](_0x538a0b,'remove',(_0x128f1e,_0x5c0b24)=>{_0x123fa7['has'](_0x5c0b24)&&_0x123fa7['remove'](_0x5c0b24);});}({'source':_0x28b772['_visibleAnnotations'],'target':_0x4048c0,'filter':_0x1b2758}),this['_uisData']['set'](_0x151d6f,{'collection':_0x4048c0,'filter':_0x1b2758});const _0x5aff0d=this['_uis']['get'](_0x151d6f);_0x5aff0d['attach'](_0x4048c0),this['listenTo'](_0x5aff0d,'change:activeAnnotation',(_0x2cf43c,_0x4a5486,_0x2c1393,_0x1e4ccb)=>{_0x1e4ccb&&_0x28b772['_removeActiveAnnotation'](_0x1e4ccb),_0x2c1393&&_0x28b772['_addActiveAnnotation'](_0x2c1393);});}['deactivate'](_0x4c8016){if(this['activeUIs']['delete'](_0x4c8016),!this['_uis']['has'](_0x4c8016))throw new _0x487ab6('annotationsuis-missing-ui',this,{'uiName':_0x4c8016});const _0xc0cfbb=this['_uis']['get'](_0x4c8016);_0xc0cfbb['detach'](),this['stopListening'](_0xc0cfbb),this['_uisData']['get'](_0x4c8016)['collection']['destroy'](),this['_uisData']['delete'](_0x4c8016);}['switchTo'](_0x17b21c){if(!this['_uis']['has'](_0x17b21c))throw new _0x487ab6('annotationsuis-missing-ui',this,{'uiName':_0x17b21c});const _0x2bdd35=this['context']['plugins']['get'](N),_0x110ec9=Array['from'](_0x2bdd35['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x17b21c);const _0x4920ee=this['_uis']['get'](_0x17b21c);_0x4920ee['setActiveAnnotation'](_0x110ec9),_0x4920ee['_setSelectedAnnotations']&&_0x110ec9&&_0x4920ee['_setSelectedAnnotations']([_0x110ec9]);}['deactivateAll'](){for(const _0x4204eb of this['activeUIs'])this['deactivate'](_0x4204eb);}['register'](_0x120c57,_0x996608){if(this['_uis']['has'](_0x120c57))throw new _0x487ab6('annotationsuis-register-already-registered');if('function'!=typeof _0x996608['attach']||'function'!=typeof _0x996608['detach']||'function'!=typeof _0x996608['setActiveAnnotation'])throw new _0x487ab6('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x120c57,_0x996608);}['refilterAnnotations'](){const _0xd2cb0a=this['context']['plugins']['get'](N)['collection'],_0x17e8db=new Map(),_0x21a789=Array['from'](this['activeUIs']);for(const _0x49d90d of this['activeUIs']){const _0x2ec88b=this['_uisData']['get'](_0x49d90d)['collection'];for(const _0x51778d of _0x2ec88b)_0x17e8db['set'](_0x51778d,_0x49d90d);}for(const _0x4b3388 of _0xd2cb0a){const _0xbb569=_0x17e8db['get'](_0x4b3388);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4b3388);const _0x1e5a9f=_0x21a789['find'](_0x22f7ea=>this['_uisData']['get'](_0x22f7ea)['filter'](_0x4b3388));_0xbb569!==_0x1e5a9f&&(_0xbb569&&this['_uisData']['get'](_0xbb569)['collection']['remove'](_0x4b3388),_0x1e5a9f&&this['_uisData']['get'](_0x1e5a9f)['collection']['add'](_0x4b3388));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xb6ca72){const _0x5786dc=[];for(const _0x7b1ce3 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x7b1ce3)['filter'])(_0xb6ca72)&&_0x5786dc['push'](_0x7b1ce3);}if(_0x5786dc['length']>0x1)throw new _0x487ab6('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x5786dc,'annotationType':_0xb6ca72['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x154dec){super(_0x154dec);const _0x18d9c7=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 _0x5414ac(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x18d9c7['to']('class')],'style':{'minHeight':_0x18d9c7['to']('minHeight',_0x110a22=>'number'==typeof _0x110a22?he(_0x110a22+0xa):null)},'dir':_0x154dec['uiLanguageDirection'],'role':'application','aria-label':S(_0x154dec,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x154dec,'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',_0xfd8e18=>{this['_updateItemPositionInFocusables'](_0xfd8e18['source']);}),this['list']['forEach'](_0x4d8f51=>{this['focusTracker']['add'](_0x4d8f51['element']),this['_updateItemPositionInFocusables'](_0x4d8f51);}),this['list']['on']('change',(_0x3aaa42,_0xffd9a6)=>{for(const _0x222168 of _0xffd9a6['removed'])this['focusTracker']['remove'](_0x222168['element']),this['focusables']['remove'](_0x222168);for(const _0x525b0c of _0xffd9a6['added'])this['focusTracker']['add'](_0x525b0c['element']),this['_updateItemPositionInFocusables'](_0x525b0c);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x2b70a0){const _0x10ec9e=this['focusables']['getIndex'](_0x2b70a0);let _0x218e89,_0x4d57ce;for(const _0x40aaba of this['focusables'])if(_0x2b70a0['top']<_0x40aaba['top']){_0x218e89=_0x40aaba;break;}if(_0x4d57ce=_0x218e89?this['focusables']['getIndex'](_0x218e89):this['focusables']['length'],-0x1!==_0x10ec9e){if(_0x10ec9e===_0x4d57ce-0x1)return;this['focusables']['remove'](_0x2b70a0),_0x4d57ce=_0x218e89?this['focusables']['getIndex'](_0x218e89):this['focusables']['length'];}this['focusables']['add'](_0x2b70a0,_0x4d57ce);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3759ca){super(_0x3759ca),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x17ac12,_0x40856e)=>_0x17ac12+_0x40856e),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3fed4a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3fed4a['to']('isAnimationDisabled',_0x5e058c=>_0x5e058c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3fed4a['to']('top',_0xcde724=>qt(_0xcde724))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xf9871c=this['element']['clientHeight'];_0xf9871c&&(this['height']=_0xf9871c);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4ad5c3{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ba091){super(_0x5ba091),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 _0x51e899=this['context']['config']['get']('sidebar.container');_0x51e899&&this['setContainer'](_0x51e899);}['setContainer'](_0xf4fd28){if(!y(_0xf4fd28))throw new _0x487ab6('sidebar-setcontainer-invalid-element');this['container']=_0xf4fd28;}['_attachToContainer']({viewClass:_0x55f2f6='',spaceBetweenItems:_0x18c861=0x19}={}){if(!y(this['container']))throw new _0x487ab6('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x55f2f6,this['_spaceBetweenItems']=_0x18c861;}['rearrange']({removedAnnotation:_0x532f7d,previousAnnotation:_0x54e1e7,nextAnnotation:_0x19d387}){const _0x324416=this['getSidebarItemView'](_0x532f7d);this['view']['list']['remove'](_0x324416),this['_destroySidebarItemView'](_0x532f7d),_0x54e1e7&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x54e1e7)),_0x19d387&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x19d387)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x27e962,activatedAnnotation:_0x375fe2,disableAnimationOnActivatedAnnotation:_0x53d228}){if(this['_activeAnnotation']=_0x375fe2,_0x27e962){_0x27e962['isActive']=!0x1;const _0x3ce1d3=this['getSidebarItemView'](_0x27e962);_0x3ce1d3&&_0x53d228&&(_0x3ce1d3['isAnimationDisabled']=!0x1);}if(_0x375fe2){const _0xcbbb5a=this['getSidebarItemView'](_0x375fe2);_0xcbbb5a&&(_0x375fe2['isActive']=!0x0,_0x53d228&&(_0xcbbb5a['isAnimationDisabled']=!0x0,_0xcbbb5a['top']+=0x1),this['_alignToTargetRect'](_0xcbbb5a));}}['_detachFromContainer'](_0x31d3d3){if(this['view']['element']['remove'](),_0x31d3d3){for(const _0x2b794d of _0x31d3d3)this['_destroySidebarItemView'](_0x2b794d);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2cb60c,_0x5a30c5){_0x5a30c5||(_0x5a30c5=_0x2cb60c['view']);const _0x5b2b4a=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5b2b4a,_0x2cb60c),this['_annotationToSidebarItemView']['set'](_0x2cb60c,_0x5b2b4a),_0x5b2b4a['content']['add'](_0x5a30c5),this['listenTo'](_0x2cb60c['view'],'change:targetRect',(_0x36d391,_0x2aa762,_0x22039c)=>{const _0x5deebf=this['_getTargetTop'](_0x2cb60c,_0x22039c);_0x5b2b4a['_targetTop']!=_0x5deebf&&(_0x5b2b4a['_targetTop']=_0x5deebf,this['_setItemTop'](_0x5b2b4a,_0x5deebf));}),this['listenTo'](_0x5b2b4a,'change:top',()=>{this['_recalculate'](_0x5b2b4a,'top');}),this['listenTo'](_0x5b2b4a,'change:bottom',()=>{this['_recalculate'](_0x5b2b4a,'bottom');}),this['_alignToTargetRect'](_0x5b2b4a);const _0x1dc21a=this['_getItemBefore'](_0x5b2b4a);if(_0x1dc21a)this['_alignAfterItem'](_0x1dc21a,_0x5b2b4a)||this['_alignToTargetRect'](_0x5b2b4a);else this['_alignToTargetRect'](_0x5b2b4a);return this['_updateLastItem'](),this['view']['list']['add'](_0x5b2b4a),_0x5b2b4a;}['_alignForTopChange'](_0x17c995){if(!_0x17c995['content']['length'])return;const _0x52312f=this['_getItemBefore'](_0x17c995);if(!_0x52312f)return;const _0x3bb322=this['_sidebarItemViewToAnnotation']['get'](_0x52312f),_0x2064fa=this['_activeAnnotation'];_0x2064fa&&_0x2064fa===_0x3bb322?this['_alignAfterItem'](_0x52312f,_0x17c995):this['_alignBeforeItem'](_0x17c995,_0x52312f);}['_alignForBottomChange'](_0x3b0cbb){if(!_0x3b0cbb['content']['length'])return;const _0x45f391=this['_getItemAfter'](_0x3b0cbb);if(!_0x45f391)return;const _0x3638f0=this['_sidebarItemViewToAnnotation']['get'](_0x45f391),_0x5915f8=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x57cd8c=this['_activeAnnotation'];_0x57cd8c&&_0x57cd8c===_0x3638f0&&_0x5915f8?(this['_alignBeforeItem'](_0x45f391,_0x3b0cbb),this['_alignAfterItem'](_0x3b0cbb,_0x45f391)):_0x57cd8c&&_0x57cd8c===_0x3638f0?this['_alignBeforeItem'](_0x45f391,_0x3b0cbb):this['_alignAfterItem'](_0x3b0cbb,_0x45f391);}['_recalculate'](_0x4c094a,_0x26820c){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2fc6e9,changedProp:_0x5c2846}of this['_recalculateBuffer'])'top'===_0x5c2846?this['_alignForTopChange'](_0x2fc6e9):this['_alignForBottomChange'](_0x2fc6e9);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4c094a,'changedProp':_0x26820c});}['getSidebarItemView'](_0x44f662){return this['_annotationToSidebarItemView']['get'](_0x44f662);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2a67ea){const _0x24f4eb=this['getSidebarItemView'](_0x2a67ea);this['stopListening'](_0x24f4eb),this['stopListening'](_0x2a67ea['view']),_0x24f4eb['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2a67ea),this['_sidebarItemViewToAnnotation']['delete'](_0x24f4eb);}['_createSidebarView'](){const _0x7cbbbe=new V(this['context']['locale']);return _0x7cbbbe['render'](),this['on']('change:_lastItem',(_0x20f2e4,_0x50fa84,_0x2fe293,_0x3778c5)=>{_0x3778c5&&_0x7cbbbe['unbind']('minHeight'),_0x2fe293?_0x7cbbbe['bind']('minHeight')['to'](_0x2fe293,'bottom'):_0x7cbbbe['minHeight']=null;}),_0x7cbbbe;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x25e5c4){const _0xeed9b=this['_sidebarItemViewToAnnotation']['get'](_0x25e5c4),_0x488915=_0xeed9b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xeed9b)-0x1);return _0x488915&&this['getSidebarItemView'](_0x488915)||null;}['_getItemAfter'](_0x5098af){const _0x294006=this['_sidebarItemViewToAnnotation']['get'](_0x5098af),_0x1f233a=_0x294006&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x294006)+0x1);return _0x1f233a&&this['getSidebarItemView'](_0x1f233a)||null;}['_alignBeforeItem'](_0x2899db,_0x632e79){_0x2899db['updateHeight']();const _0x4fb59a=R(_0x632e79['bottom']+this['_spaceBetweenItems'],_0x2899db['top']);return!!_0x4fb59a&&(this['_setItemTop'](_0x632e79,_0x632e79['top']-_0x4fb59a),!0x0);}['_alignAfterItem'](_0x361b0b,_0x3942c6){_0x361b0b['updateHeight']();const _0x587ba5=R(_0x361b0b['bottom']+this['_spaceBetweenItems'],_0x3942c6['top']);return!!_0x587ba5&&(this['_setItemTop'](_0x3942c6,_0x3942c6['top']+_0x587ba5,!0x1),!0x0);}['_alignToTargetRect'](_0x45d121){const _0x5183db=this['_sidebarItemViewToAnnotation']['get'](_0x45d121);if(!_0x5183db||!_0x5183db['target']||!_0x5183db['targetRect'])return;const _0x959f03=this['_getTargetTop'](_0x5183db,_0x5183db['targetRect']);this['_setItemTop'](_0x45d121,_0x959f03);}['_getTargetTop'](_0x3ef41a,_0x171570){if(null===_0x171570)return 0x0;if(_0x3ef41a['target']instanceof _0x3b9eb0)return _0x171570['top'];{const _0x231502=new _0x3b9eb0(this['view']['element'])['top'];return _0x171570['top']-_0x231502;}}['_setItemTop'](_0x4e2afe,_0x42a8b3,_0x28ee21=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x28ee21&&(_0x42a8b3=Math['max'](_0x42a8b3,this['_getMaxAvailableTop'](_0x4e2afe))),_0x4e2afe['top']=_0x42a8b3;}['_getMaxAvailableTop'](_0x3648c4){let _0x479fa7=this['_getItemBefore'](_0x3648c4),_0x483dae=0x0;for(;_0x479fa7;)_0x479fa7['updateHeight'](),_0x483dae+=this['_spaceBetweenItems']+_0x479fa7['height'],_0x479fa7=this['_getItemBefore'](_0x479fa7);return _0x483dae;}}function R(_0x207332,_0x48479b){return Math['max'](_0x207332-_0x48479b,0x0);}function y(_0x451b2d){return null!==_0x451b2d&&'object'==typeof _0x451b2d&&0x1===_0x451b2d['nodeType'];}class e extends _0x4ad5c3{['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(_0x1dfb16){super(_0x1dfb16),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1c34e7(),this['_refreshPositioningDebounced']=_0x1e4fec(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2943a3=this['context']['plugins']['get'](M),_0x19e714=this['context']['plugins']['get'](z);_0x2943a3['register']('wideSidebar',this),_0x19e714['container']&&_0x2943a3['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x34aa5f){if(_0x34aa5f===this['activeAnnotation'])return;const _0x3ec274=this['context']['plugins']['get'](z);_0x3ec274['_activeAnnotation']=_0x34aa5f;const _0x2f80b9=this['activeAnnotation'];_0x3ec274['refresh']({'blurredAnnotation':_0x2f80b9,'activatedAnnotation':_0x34aa5f}),this['activeAnnotation']=_0x34aa5f;}['attach'](_0x5215e3){this['annotations']=_0x5215e3;const _0x73bcd2=this['context']['plugins']['get'](z);if(_0x73bcd2['_annotations']=_0x5215e3,this['isAttached'])throw new _0x487ab6('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x73bcd2,'set:container',()=>{this['detach'](),this['listenTo'](_0x73bcd2,'change:container',_0x3bf46a=>{_0x3bf46a['off'](),this['attach'](_0x5215e3);});}),_0x73bcd2['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x27e39a=_0x57402f=>{_0x57402f['updateTargetRect'](),_0x73bcd2['addAnnotation'](_0x57402f);};for(const _0x4a13d3 of _0x5215e3)_0x27e39a(_0x4a13d3);this['listenTo'](_0x5215e3,'add',(_0x44611e,_0x38bee4)=>{_0x27e39a(_0x38bee4);}),this['listenTo'](_0x5215e3,'remove',(_0x4dd8fc,_0x9e890c,_0x5765f0)=>{_0x73bcd2['rearrange']({'removedAnnotation':_0x9e890c,'previousAnnotation':_0x5215e3['get'](_0x5765f0-0x1),'nextAnnotation':_0x5215e3['get'](_0x5765f0+0x1)}),_0x9e890c===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5215e3,'focus',(_0x557c93,_0x3323b3)=>{this['setActiveAnnotation'](_0x3323b3);}),this['listenTo'](_0x5215e3,'blur',()=>{this['setActiveAnnotation'](null);});const _0x2b4bc7=this['context']instanceof _0x53f178?this['context']['editors']:new _0x1c34e7([this['context']]);for(const _0x210f01 of _0x2b4bc7)this['_integrateWithEditorAnnotations'](_0x210f01);this['listenTo'](_0x2b4bc7,'add',(_0x107f32,_0x32bdd7)=>{this['listenTo'](_0x32bdd7,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x32bdd7);});}),this['listenTo'](_0x2b4bc7,'remove',(_0x4a017d,_0x5a23b4)=>{_0x5a23b4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5a23b4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x487ab6('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x33ecd7=this['context']['plugins']['get'](z);_0x33ecd7['_detachFromContainer'](this['annotations']),this['stopListening'](_0x33ecd7),this['stopListening'](this['annotations']),this['context']instanceof _0x53f178&&this['stopListening'](this['context']['editors']);for(const _0x5a0aa5 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5a0aa5);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x478d05){if(!_0x478d05['plugins']['has']('EditorAnnotations'))return;const _0x1e11b0=_0x478d05['plugins']['get']('EditorAnnotations'),_0x467a0c=()=>{const _0x41c766=_0x1e11b0['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x41c766[0x0]||null);};this['listenTo'](_0x1e11b0,'refresh',_0x467a0c),this['listenTo'](_0x1e11b0,'blur',(_0x8da104,{isAnnotationTracked:_0x67104d})=>{this['activeAnnotation']&&_0x67104d(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1e11b0,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x2353aa=>{_0x1e11b0['hasDomSelection']()&&(_0x467a0c(),_0x2353aa['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1e11b0);}['_destroyEditorAnnotationsIntegration'](_0x555960){this['stopListening'](_0x555960),this['_editorAnnotations']['remove'](_0x555960);}}class D extends _0x3bfc4d{['counterView'];constructor(_0x289dfe){super(_0x289dfe);const _0x3c0aa9=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1c75f5,_0x5e581c)=>_0x1c75f5?'...':_0x5e581c['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',_0x3c0aa9['to']('annotationType',_0x35ebac=>'ck-annotation-counter__badge--'+_0x35ebac),_0x3c0aa9['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3c0aa9['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4ad5c3{['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(_0x17308e){super(_0x17308e),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x454a14),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1c34e7(),this['_refreshPositioningDebounced']=_0x1e4fec(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x92e78e(this['context']['locale']),this['balloonPanelView']=new _0x2a91a2(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x209ec0){this['annotations']=_0x209ec0;const _0x23aa27=this['context']['plugins']['get'](z),_0x2e8243=this['balloonPanelView'];if(_0x23aa27['_annotations']=_0x209ec0,this['isAttached'])throw new _0x487ab6('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x23aa27,'set:container',()=>{this['detach'](),this['listenTo'](_0x23aa27,'change:container',_0x3a256a=>{_0x3a256a['off'](),this['attach'](_0x209ec0);});}),_0x23aa27['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x33ea98=_0x304bbc=>{const _0x250181=new D(this['context']['locale']);_0x23aa27['addAnnotation'](_0x304bbc,_0x250181),this['_annotationToNarrowView']['set'](_0x304bbc,_0x250181),_0x250181['bind']('isDirty','annotationType','number')['to'](_0x304bbc['view'],'isDirty','type','length'),_0x250181['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2e8243['content']['first']!==_0x304bbc['view']?(this['_showBalloon'](_0x304bbc),_0x304bbc['view']['element']['focus'](),this['setActiveAnnotation'](_0x304bbc)):this['setActiveAnnotation'](null);});};for(const _0x298f2a of _0x209ec0)_0x33ea98(_0x298f2a);this['listenTo'](_0x209ec0,'add',(_0x100077,_0x37db25)=>{_0x33ea98(_0x37db25);}),this['listenTo'](_0x209ec0,'remove',(_0x204b72,_0x65f911,_0x363c9c)=>{this['_annotationToNarrowView']['get'](_0x65f911)['destroy'](),this['_annotationToNarrowView']['delete'](_0x65f911),_0x23aa27['rearrange']({'removedAnnotation':_0x65f911,'previousAnnotation':_0x209ec0['get'](_0x363c9c-0x1),'nextAnnotation':_0x209ec0['get'](_0x363c9c+0x1)}),_0x65f911===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x209ec0,'focus',(_0x552469,_0x3b202e)=>{this['setActiveAnnotation'](_0x3b202e);}),this['listenTo'](_0x209ec0,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x4e87e0,_0x39c9ca)=>{_0x39c9ca['keyCode']===_0x231b87['esc']&&_0x2e8243['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x2e8243['content']['first']),this['_hideBalloon'](),_0x39c9ca['stopPropagation'](),_0x39c9ca['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3f60e2,_0x37ee00)=>{const _0x2b2f24=_0x37ee00['target'];_0x2e8243['isVisible']&&_0x2e8243['element']['contains'](_0x2b2f24)||_0x23aa27['view']['element']['contains'](_0x2b2f24)||_0x3f60e2['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x542242=>_0x542242['contains'](_0x2b2f24))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2fd7a8=this['context']instanceof _0x53f178?this['context']['editors']:new _0x1c34e7([this['context']]);for(const _0x769ce9 of _0x2fd7a8)this['_integrateWithEditorAnnotations'](_0x769ce9);this['listenTo'](_0x2fd7a8,'add',(_0x31f53b,_0x2f9758)=>{this['listenTo'](_0x2f9758,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2f9758);});}),this['listenTo'](_0x2fd7a8,'remove',(_0x50eae1,_0x2b1b31)=>{_0x2b1b31['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2b1b31['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5f49c9){if(_0x5f49c9===this['activeAnnotation'])return;const _0x47bc00=this['context']['plugins']['get'](z);if(_0x47bc00['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5f49c9,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5f49c9)_0x47bc00['getSidebarItemView'](_0x5f49c9)?this['_showBalloon'](_0x5f49c9):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5f49c9;}['detach'](){if(!this['isAttached'])throw new _0x487ab6('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x44894a=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x31fa88=>_0x31fa88['destroy']()),this['_annotationToNarrowView']['clear'](),_0x44894a['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x53f178&&this['stopListening'](this['context']['editors']);for(const _0x508015 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x508015);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'](_0x2aab53){if(!_0x2aab53['plugins']['has']('EditorAnnotations'))return;const _0x188634=_0x2aab53['plugins']['get']('EditorAnnotations'),_0x24aa5d=this['context']['plugins']['get'](z),_0x2322f4=this['annotations'],_0x73426d=this['balloonPanelView'],_0x4cb027=()=>{const _0x39b3ef=_0x188634['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x39b3ef),this['setActiveAnnotation'](_0x39b3ef[0x0]||null);};this['listenTo'](_0x188634,'refresh',_0x4cb027),this['listenTo'](_0x188634,'blur',(_0x382b09,{isAnnotationTracked:_0x2b8624})=>{this['activeAnnotation']&&_0x2b8624(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x188634,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x2322f4,'blur',_0x351ee0=>{_0x188634['hasDomSelection']()&&_0x351ee0['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x335357,_0x155d0f)=>{const _0x14b45a=_0x155d0f['target'];_0x73426d['isVisible']&&_0x73426d['element']['contains'](_0x14b45a)||_0x24aa5d['view']['element']['contains'](_0x14b45a)||this['activeAnnotation']&&_0x188634['hasDomSelection']()&&(_0x4cb027(),_0x335357['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x188634);}['_destroyEditorAnnotationsIntegration'](_0x555a3b){_0x555a3b&&(this['stopListening'](_0x555a3b),this['_editorAnnotations']['remove'](_0x555a3b));}['_setSelectedAnnotations'](_0x4fa4b4){for(const _0x2fbd18 of this['_selectedAnnotations'])_0x4fa4b4['includes'](_0x2fbd18)||this['_manuallyClosedAnnotationViews']['delete'](_0x2fbd18['view']);this['_selectedAnnotations']=_0x4fa4b4;}['_refreshPositioning'](){const _0x16860c=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x16860c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2a5a3d){if(this['_manuallyClosedAnnotationViews']['has'](_0x2a5a3d['view']))return;const _0x1c7897=this['balloonPanelView']['content']['first'];_0x1c7897!==_0x2a5a3d['view']?(_0x1c7897&&this['_detachListeners'](_0x1c7897),this['_attachListeners'](_0x2a5a3d['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2a5a3d['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x698cbc=this['balloonPanelView']['content']['first'],_0x37b622=_0x698cbc&&this['annotations']['getByView'](_0x698cbc);if(!_0x37b622||!this['_annotationToNarrowView']['has'](_0x37b622))return;const _0x520e2f=this['_annotationToNarrowView']['get'](_0x37b622)['element'],_0x48a028=(function(){const _0x4d7517=_0x2a91a2['defaultPositions'];return[_0x4d7517['southArrowNorthEast'],_0x4d7517['northArrowSouthEast'],_0x4d7517['southArrowNorth'],_0x4d7517['northArrowSouth'],_0x4d7517['southArrowNorthWest'],_0x4d7517['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x520e2f,'positions':_0x48a028});}['_hideBalloon'](){const _0x581270=this['balloonPanelView'],_0xcaa77c=_0x581270['content']['first'];_0xcaa77c&&(this['_detachListeners'](_0xcaa77c),_0x581270['unpin'](),_0x581270['content']['clear']());}['_attachListeners'](_0x57cd29){this['listenTo'](_0x57cd29,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x57cd29,'Esc',(_0x48051d,_0x3bae85)=>{this['_manuallyClosedAnnotationViews']['add'](_0x57cd29),this['_hideBalloon'](),_0x3bae85();});}['_detachListeners'](_0xeb51a7){this['stopListening'](_0xeb51a7);}}class c extends _0x5ab294{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x24f819,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55dcb3){super(_0x55dcb3),_0x55dcb3['editing']['view']['addObserver'](_0x105c06),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x55dcb3['plugins']['get'](_0x24f819),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xdef570=this['editor']['plugins']['get'](M);_0xdef570['context']===this['editor']&&(_0xdef570['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x214155,_0x2cf8a0)=>{const _0x3cc8df=this['_balloon'];if(this['isAttached']&&_0x3cc8df['visibleView']){const _0x14d28c=this['annotations']['getByView'](_0x3cc8df['visibleView']);_0x14d28c&&this['_closeAnnotation'](_0x14d28c),_0x2cf8a0();}}));}['afterInit'](){const _0xbf4326=this['editor']['plugins']['get'](M);_0xbf4326['context']===this['editor']&&(_0xbf4326['hasActive']()||_0xbf4326['switchTo']('inline'));}['setActiveAnnotation'](_0x4865dd){_0x4865dd!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4865dd&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4865dd)&&this['_addAnnotationToBalloon'](_0x4865dd,!0x0),_0x4865dd['isActive']=!0x0),_0x4865dd||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4865dd);}['attach'](_0x33ff10){this['annotations']=_0x33ff10;const _0x107542=this['editor']['plugins']['get'](M),_0x2968b4=this['_balloon'];if(this['isAttached'])throw new _0x487ab6('inlineannotations-attach-already-attached',this);if(_0x107542['context']!==this['editor'])throw new _0x487ab6('inlineannotations-not-allowed-with-context',this);const _0x3f50de=this['editor']['plugins']['get'](P);this['listenTo'](_0x3f50de,'refresh',()=>{const _0x3507bf=_0x3f50de['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x52162c,_0x2b28ca;!this['_forceRefresh']&&(_0x52162c=_0x3507bf,_0x2b28ca=this['_selectedAnnotations'],_0x52162c['length']===_0x2b28ca['length']&&_0x52162c['every'](_0x1281e0=>_0x2b28ca['includes'](_0x1281e0)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x3507bf),this['setActiveAnnotation'](_0x3507bf[0x0]||null));}),this['listenTo'](_0x3f50de,'blur',(_0x11e154,{isAnnotationTracked:_0x39ae09})=>{this['activeAnnotation']&&_0x39ae09(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2d834b,_0xede70a,_0x537657)=>{_0x537657||this['setActiveAnnotation'](null);}),this['listenTo'](_0x33ff10,'remove',(_0x20c177,_0x162e27)=>{this['_removeAnnotationFromBalloon'](_0x162e27),_0x162e27===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2968b4,'change:visibleView',(_0x4cc15c,_0x1cb4e0,_0x1f43a0,_0x41577f)=>{_0x41577f&&this['stopListening'](_0x41577f);const _0x1a82ab=_0x33ff10['getByView'](_0x1f43a0);_0x1f43a0&&_0x1a82ab&&(this['listenTo'](_0x1f43a0,'change:height',()=>{_0x2968b4['updatePosition']();}),this['listenTo'](_0x1f43a0,'Esc',()=>{this['_closeAnnotation'](_0x1a82ab),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1a82ab&&this['setActiveAnnotation'](_0x1a82ab));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x2968b4['visibleView']&&(_0x33ff10['getByView'](_0x2968b4['visibleView'])&&_0x2968b4['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 _0x487ab6('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x5292c9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x5292c9);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5e689e){for(const _0x24f78c of this['_selectedAnnotations'])_0x5e689e['includes'](_0x24f78c)||this['_manuallyClosed']['delete'](_0x24f78c);for(const _0xa174eb of this['annotations'])_0x5e689e['includes'](_0xa174eb)||this['_removeAnnotationFromBalloon'](_0xa174eb);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x59e87e of _0x5e689e)this['_addAnnotationToBalloon'](_0x59e87e);}this['_selectedAnnotations']=_0x5e689e;}['_addAnnotationToBalloon'](_0x5cc623,_0x429af0=!0x1){this['_manuallyClosed']['has'](_0x5cc623)||(this['_addedAnnotations']['has'](_0x5cc623)||this['_balloon']['hasView'](_0x5cc623['view'])||(this['_addedAnnotations']['add'](_0x5cc623),this['_balloon']['add']({'stackId':_0x5cc623['view']['id'],'view':_0x5cc623['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5cc623)}})),_0x429af0&&this['_balloon']['showStack'](_0x5cc623['view']['id']));}['_getBalloonTargetForAnnotation'](_0x4ed930){const _0x5a772b=_0x4ed930['target'],_0x3f1ebf=this['editor']['editing']['view'],_0x28f686=_0x3f1ebf['document']['selection']['getFirstRange'](),_0x433468=_0x3f1ebf['domConverter']['viewRangeToDom'](_0x28f686);if(_0x433468['collapse'](!0x0),_0x5a772b){if(_0x5a772b instanceof _0x3b9eb0)return _0x5a772b;let _0x43d76e=[];for(const _0x3171ae of _0x5a772b)_0x43d76e['push'](...(_0x384e53=_0x3171ae['getClientRects'](),Array['from'](_0x384e53)['map'](DOMRect['fromRect'])));_0x43d76e=function(_0x1a1248){const _0x3251bd=[];let _0x2842f0=_0x1a1248[0x0];for(let _0x1bbd0c=0x1;_0x1bbd0c<_0x1a1248['length'];_0x1bbd0c++)b(_0x2842f0,_0x1a1248[_0x1bbd0c])?_0x2842f0['width']+=_0x1a1248[_0x1bbd0c]['width']:(_0x3251bd['push'](_0x2842f0),_0x2842f0=_0x1a1248[_0x1bbd0c]);return _0x3251bd['push'](_0x2842f0),_0x3251bd;}(_0x43d76e);const _0x5121bb=_0x433468['getBoundingClientRect']();return _0x43d76e['find'](_0x3235f2=>_0x3235f2['top']<=_0x5121bb['top']&&_0x3235f2['bottom']>=_0x5121bb['bottom']&&_0x3235f2['left']<=_0x5121bb['left']&&_0x3235f2['right']>=_0x5121bb['right'])||_0x43d76e[0x0];}var _0x384e53;return _0x4ed930['targetRect']||_0x433468;}['_removeAnnotationFromBalloon'](_0x157c86){this['_addedAnnotations']['has'](_0x157c86)&&this['_balloon']['hasView'](_0x157c86['view'])&&(this['_addedAnnotations']['delete'](_0x157c86),this['_balloon']['remove'](_0x157c86['view']));}['_closeAnnotation'](_0x20d440){this['_manuallyClosed']['add'](_0x20d440),this['_removeAnnotationFromBalloon'](_0x20d440);}}function b(_0x2f1e0f,_0x3a1a92){return _0x2f1e0f['top']===_0x3a1a92['top']&&_0x2f1e0f['bottom']===_0x3a1a92['bottom']&&_0x2f1e0f['right']===_0x3a1a92['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x23af29,_0xe4aa5e){super(_0x23af29),this['set']('isEmpty',!_0xe4aa5e['length']),this['focusTracker']=new _0x5414ac(),this['_annotationViews']=_0xe4aa5e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0xe4aa5e,'focusTracker':this['focusTracker']}),this['listenTo'](_0xe4aa5e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xe4aa5e,'remove',(_0x5ad1bd,_0x51f006)=>{_0x51f006['isActive']&&this['focus'](),_0xe4aa5e['length']||(this['isEmpty']=!0x0);});const _0x90f43a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x23af29,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0xe4aa5e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x90f43a['if']('isEmpty','ck-hidden',_0x488b9c=>!_0x488b9c)]},'children':[{'text':S(_0x23af29,'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 _0x114a53 of this['_annotationViews'])this['focusTracker']['add'](_0x114a53['element']);this['_annotationViews']['on']('change',(_0x3eb6f2,{added:_0x159b12,removed:_0x2bf61e})=>{for(const _0x5a2617 of _0x159b12)this['focusTracker']['add'](_0x5a2617['element']);for(const _0xa8c9d4 of _0x2bf61e)this['focusTracker']['remove'](_0xa8c9d4['element']);});}}class f extends _0x4ad5c3{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x15f890){super(_0x15f890),this['archivedThreads']=new _0x1c34e7();}['init'](){const _0x5d26d5=this['context'],_0x29640f=_0x5d26d5['plugins']['get'](o),_0x3b630d=_0x5d26d5['plugins']['get'](N);this['listenTo'](_0x29640f,'addCommentThread',(_0x3275f5,{threadId:_0x11ab78})=>{const _0x154b11=_0x29640f['getCommentThread'](_0x11ab78);_0x154b11['archivedAt']&&this['archivedThreads']['add'](_0x154b11,this['_calculatePosition'](_0x154b11['archivedAt'])),this['listenTo'](_0x154b11,'change:archivedAt',(_0x95545e,_0x129edb,_0x1c9a06)=>{_0x1c9a06?this['archivedThreads']['has'](_0x154b11)||this['archivedThreads']['add'](_0x154b11,this['_calculatePosition'](_0x154b11['archivedAt'])):this['archivedThreads']['has'](_0x154b11)&&this['archivedThreads']['remove'](_0x154b11);});}),this['listenTo'](_0x29640f,'removeCommentThread',(_0x3cce2b,{threadId:_0x68b7e6})=>{const _0x1f69e1=_0x29640f['getCommentThread'](_0x68b7e6);this['stopListening'](_0x1f69e1),this['archivedThreads']['has'](_0x1f69e1)&&this['archivedThreads']['remove'](_0x1f69e1);},{'priority':'highest'}),this['listenTo'](_0x3b630d['collection'],'focus',(_0x25696e,_0x551486)=>{_0x551486['isVisible']||(_0x551486['isActive']=!0x0,_0x3b630d['activate'](_0x551486));});}['_calculatePosition'](_0xdfd03f){const _0x513353=[...this['archivedThreads']]['findIndex'](_0xa3dbc8=>_0xa3dbc8['archivedAt']<_0xdfd03f);return _0x513353>-0x1?_0x513353:this['archivedThreads']['length'];}}class a extends _0x5ab294{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0xcf346a];}constructor(_0x4b4f39){super(_0x4b4f39),this['annotationViews']=new _0x3048f9(),this['_pendingThreads']=[];}['init'](){const _0x411e4b=this['editor'],_0x4372c0=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x411e4b['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3bfc4d,!0x0)),_0x411e4b['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x5dcf47=this['_createCommentsArchiveButton'](_0x4cf37f);return _0x5dcf47['set']({'role':'menuitemcheckbox'}),_0x5dcf47;});const _0x586a19=_0x411e4b['plugins']['get'](f),_0x395a90=_0x411e4b['plugins']['get']('Annotations'),_0x1222a2=_0x411e4b['plugins']['get']('CommentsRepository');_0x586a19['archivedThreads']['forEach'](_0x2830c1=>{this['_handleNewThread'](_0x2830c1);}),this['listenTo'](_0x586a19['archivedThreads'],'add',(_0x2a09e9,_0x4b610f)=>{this['_handleNewThread'](_0x4b610f);}),this['listenTo'](_0x395a90['collection'],'add',(_0x19942f,_0x2f20e9)=>{const _0x439aa1=this['_pendingThreads']['find'](_0xe4dc3e=>{const _0x309cb2=_0x1222a2['_threadToController']['get'](_0xe4dc3e);return _0x309cb2&&_0x2f20e9['innerView']===_0x309cb2['view'];});if(_0x439aa1){const _0x365c9f=this['_calculatePosition'](_0x439aa1['archivedAt']);this['annotationViews']['add'](_0x2f20e9['view'],_0x365c9f),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x439aa1),0x1);}}),this['listenTo'](_0x586a19['archivedThreads'],'remove',(_0x103cdf,_0x227ce5)=>{const _0x2d309b=_0x411e4b['config']['get']('collaboration.channelId');if(!_0x2d309b||_0x227ce5['channelId']===_0x2d309b){const _0x4bea62=_0x1222a2['_threadToController']['get'](_0x227ce5),_0x53b493=_0x395a90['getByInnerView'](_0x4bea62['view']);this['annotationViews']['remove'](_0x53b493['view']),this['stopListening'](_0x53b493['focusableElements']);}}),this['listenTo'](_0x395a90['collection'],'add',(_0x5058ad,_0x198538)=>{this['listenTo'](_0x198538,'escape',_0x4372c0);}),this['listenTo'](_0x395a90['collection'],'remove',(_0x2ca436,_0x18d19e)=>{this['stopListening'](_0x18d19e,'escape',_0x4372c0);});}['_handleNewThread'](_0x31a9a9){const _0x26b962=this['editor']['plugins']['get']('CommentsRepository'),_0x39bfa2=this['editor']['plugins']['get']('Annotations'),_0x5ae0d2=this['editor']['config']['get']('collaboration.channelId');if(!_0x5ae0d2||_0x31a9a9['channelId']===_0x5ae0d2){const _0x426eaf=_0x26b962['_threadToController']['get'](_0x31a9a9);if(!_0x426eaf)return void this['_pendingThreads']['push'](_0x31a9a9);const _0xad53bd=this['_calculatePosition'](_0x31a9a9['archivedAt']),_0x37e30a=_0x39bfa2['getByInnerView'](_0x426eaf['view']);_0x37e30a['isVisible']&&_0x39bfa2['_visibleAnnotations']['remove'](_0x37e30a),this['annotationViews']['add'](_0x37e30a['view'],_0xad53bd);}}['_calculatePosition'](_0x5c9675){const _0x5d040c=this['editor']['config']['get']('collaboration.channelId'),_0xdb65d0=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x5bcacb=>_0x5bcacb['channelId']===_0x5d040c)['findIndex'](_0x32f19f=>_0x32f19f['archivedAt']<_0x5c9675);return _0xdb65d0<0x0||_0xdb65d0>this['annotationViews']['length']?this['annotationViews']['length']:_0xdb65d0-0x1;}['_toggleDialog'](){const _0x3c935d=this['editor'],_0x4c9b5e=_0x3c935d['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x3c935d['locale'],this['annotationViews'])),'commentsArchive'===_0x4c9b5e['id']?_0x4c9b5e['hide']():_0x4c9b5e['show']({'id':'commentsArchive','title':S(_0x3c935d['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x381ed4['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x47762f,_0x132f9f=!0x1){const _0x2b102a=this['editor']['locale'],_0x3a86b6=this['editor']['plugins']['get']('Dialog'),_0x8dbfdd=new _0x47762f(_0x2b102a);return _0x8dbfdd['bind']('isEnabled')['to'](this,'isEnabled'),_0x8dbfdd['bind']('isOn')['to'](_0x3a86b6,'id',_0x441918=>'commentsArchive'===_0x441918),_0x8dbfdd['set']({'label':S(_0x2b102a,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x132f9f&&(_0x8dbfdd['tooltip']=!0x0),this['listenTo'](_0x8dbfdd,'execute',()=>this['_toggleDialog']()),_0x8dbfdd;}['_hideDialogOnAnnotationEscape']=_0x2c831d=>{const _0x46ee1e=_0x2c831d['source'];if(!this['annotationViews']['has'](_0x46ee1e['view']))return;const _0x5ef833=this['editor']['plugins']['get']('Dialog');_0x5ef833['isOpen']&&'commentsArchive'===_0x5ef833['id']&&(_0x5ef833['hide'](),_0x2c831d['stop']());};}class p extends _0x5ab294{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
|
|
23
|
+
import{Editor as _0x55ed32,icons as _0x324ac9,ContextPlugin as _0x397a12,PendingActions as pt,Command as _0x40b744,Plugin as _0x1cfa22,Context as _0x1e6563}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1178ff,uid as _0xcc3b5b,KeystrokeHandler as jt,FocusTracker as _0x337c5d,diff as _0x224544,Collection as _0x5cc10e,Rect as _0x19068a,CKEditorError as _0x376cd9,first as _0x531ac0,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Dt,DomEmitterMixin as _0x2be0f7,keyCodes as _0x281df7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1322b5,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x94d9f1,ConfirmMixin as ti,LateFocusButtonView as _0x457cfa,trimHtml as _0x111ff6,LateFocusDropdownButtonView as _0x580719,Users as ct,getDateTimeFormatter as It,hashObject as wt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0xd8bf65}from'ckeditor5-collaboration/dist/index.js';import{throttle as _0x181c30,isEqual as yt,cloneDeep as At,set as Ct,unset as vt,debounce as _0x36b1fa}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x6aa010,ViewCollection as _0xaf971f,createDropdown as _0x249fcd,ListView as _0x1a3a36,focusChildOnDropdownOpen as _0x3ae1dc,ListItemView as _0x42b312,MenuBarMenuListItemButtonView as _0x574a77,BodyCollection as _0x352e8b,BalloonPanelView as _0x5ca41f,ContextualBalloon as _0x4d02a6,Dialog as _0x1f0c1d,DialogViewPosition as tt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as qt,enablePlaceholder as St,MouseObserver as _0x2b404f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Rt,ClipboardPipeline as Mt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Bt,ShiftEnter as Et}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x43418d}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x40c727}from'@ckeditor/ckeditor5-widget/dist/index.js';class gt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1178ff(){['model'];['view'];constructor(_0x557f5a,_0x314892){super(),this['model']=_0x557f5a,this['model']['_isAttached']=!0x0,this['view']=_0x314892,this['listenTo'](_0x314892,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x314892,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x314892,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x314892,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x314892,'addComment',(_0x3ebd6c,_0x669d67)=>this['addComment'](_0x669d67)),this['listenTo'](_0x314892,'updateComment',(_0x16c714,_0x336f23,_0x22a503)=>this['updateComment'](_0x336f23,_0x22a503)),this['listenTo'](_0x314892,'removeComment',(_0x3ca61f,_0x4bf756)=>this['removeComment'](_0x4bf756));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x2b3396){this['model']['addComment']({'content':_0x2b3396,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x28eff,_0x847895){this['model']['getComment'](_0x28eff)['update']({'content':_0x847895});}['removeComment'](_0x2a4201){this['model']['getComment'](_0x2a4201)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x271210,_0x48f152,_0x5cd4d9){const t=_0x271210['t'];switch(_0x48f152){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'},_0x5cd4d9);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'},_0x5cd4d9);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'},_0x5cd4d9);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'},_0x5cd4d9);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5cd4d9);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'},_0x5cd4d9);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'},_0x5cd4d9);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'},_0x5cd4d9);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Xt extends Yt{['main'];['editable'];constructor(_0x42cb84,_0x293411){super(_0x42cb84);const _0x1792e4=_0xcc3b5b();this['main']=this['createCollection'](),this['editable']=new $t(_0x42cb84,_0x293411,void 0x0,{'label':()=>S(_0x42cb84,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x42cb84['uiLanguageDirection'],'lang':_0x42cb84['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1792e4},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Vt{['view'];constructor(_0x4763dd){super(_0x4763dd),this['view']=new Xt(_0x4763dd['locale'],_0x4763dd['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4a1ba9=this['editor']['editing']['view'],_0x2e4d92=this['view']['editable'],_0x5a665d=_0x4a1ba9['document']['getRoot']();_0x2e4d92['name']=_0x5a665d['rootName'],this['view']['render']();const _0x47471d=_0x2e4d92['element'];this['setEditableElement'](_0x2e4d92['name'],_0x47471d),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4a1ba9['attachDomRoot'](_0x47471d),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Ut extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1178ff(_0x55ed32){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Qt)());constructor(_0x424f7e={}){function _0x217244(_0xf1c01e){return _0xf1c01e['map'](_0x33b1d1=>String['fromCharCode'](_0x33b1d1))['join']('');}(_0x424f7e=Object['assign']({},_0x424f7e))['plugins']||(_0x424f7e['plugins']=Ut['defaultPlugins']),super(_0x424f7e),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[_0x217244([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x217244([0x76,0x69,0x65,0x77])][_0x217244([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x217244([0x61,0x75,0x74,0x6f]),this[_0x217244([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x217244([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x217244([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x217244([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x217244([0x6f,0x6b])});}['create'](){const _0x14576d=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x14576d))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x203520=>{const _0x4d7396=this['model']['document']['getRoot'](),_0x2ad56e=_0x4d7396&&_0x4d7396['getChild'](_0x4d7396['childCount']-0x1);_0x203520['setSelection'](_0x2ad56e,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0xf6bf60=this['editing']['view'],_0xacf63e=_0xf6bf60['document']['getRoot'](),_0x27e1fb=_0xacf63e['getChild'](0x0);_0xacf63e['childCount']>0x1||!_0x27e1fb||'p'!=_0x27e1fb['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0xf6bf60,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x27e1fb['placeholder']=this['placeholder']),St({'view':_0xf6bf60,'element':_0x27e1fb,'keepOnFocus':!0x0}),this['placeholderElement']=_0x27e1fb);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3cf7f0,_0x2c4cf3={}){super(_0x3cf7f0),this['editor']=null,this['_editorConfig']=_0x2c4cf3,this['set']('value',_0x2c4cf3['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x3cf7f0,'Reply...')),this['set']('submitLabel',S(_0x3cf7f0,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x337c5d(),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',(_0x573bb1,_0x374a7c)=>{this['cancelButtonView']['fire']('execute'),_0x374a7c();}),this['keystrokes']['set']('Ctrl+Enter',(_0x57685c,_0xb383a1)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0xb383a1());}),this['on']('submit',(_0x426b8b,_0x61ef35)=>{_0x61ef35['length']>0xfde8?(alert(S(_0x3cf7f0,'TOO_LONG_COMMENT_ALERT',[_0x61ef35['length'],0xfde8])),_0x426b8b['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4dbc12=this['editor'];this['element']['insertBefore'](_0x4dbc12['ui']['element'],this['element']['firstChild']),_0x4dbc12['model']['document']['on']('change',()=>this['value']=_0x4dbc12['getData']()),_0x4dbc12['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4dbc12['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1bcb2d){-0x1===_0x1bcb2d?(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:_0x1741ad}=this,_0x3787f0=new _0x6aa010(_0x1741ad);return _0x3787f0['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3787f0['withText']=!0x0,_0x3787f0['bind']('label')['to'](this,'submitLabel'),_0x3787f0['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3787f0['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x41d557,_0x4d89e1)=>!_0x4d89e1&&!!_0x41d557['trim']()),_0x3787f0;}['_createCancelButton'](){const {locale:_0x5ef9a1}=this,_0x3acb7c=new _0x6aa010(_0x5ef9a1);return _0x3acb7c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x3acb7c['label']=S(_0x5ef9a1,'Cancel'),_0x3acb7c['withText']=!0x0,_0x3acb7c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x3acb7c;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3e0e4e=>{this['focusTracker']['add'](_0x3e0e4e['element']);}),this['focusables']['on']('change',(_0xce8b24,_0xfe7c43)=>{for(const _0x35b3f4 of Array['from'](_0xfe7c43['added'])['reverse']())this['focusTracker']['add'](_0x35b3f4['element']);});}}class ie extends kt{constructor(_0x510e46,_0x39a614,_0x3fd9b0){super(_0x510e46),this['commentInputView']=new os(_0x510e46,_0x3fd9b0),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x3b36ba,_0x105dfe)=>_0x3b36ba||!!_0x105dfe),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 _0x1322b5(_0x510e46,_0x39a614),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'](_0x20a998){this['commentInputView']['focus'](_0x20a998);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x27dcd3,_0x3471a7)=>{const {submitButtonView:_0x481f16,cancelButtonView:_0x5d689d,editor:_0x27e039}=this['commentInputView'];[_0x481f16['element'],_0x5d689d['element'],_0x27e039?_0x27e039['editing']['view']['getDomRoot']():null]['filter'](_0x22e689=>_0x22e689)['some'](_0x459750=>_0x459750['contains'](_0x3471a7['target']))||(this['focus'](),_0x3471a7['preventDefault']());});}}class cs extends kt{constructor(_0x4ca405){super(_0x4ca405);const _0x48509b=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x48509b['to']('count',_0x3eb481=>S(_0x4ca405,'NUMBER_OF_COMMENTS',_0x3eb481))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2de64e,_0x5d64cb,_0x4ba45b){super(_0x2de64e);const _0x2f3a06=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x5d64cb['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x5d64cb,this['_config']=_0x4ba45b,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x337c5d(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x58a5b3=>this['commentViews']['map'](_0x493f6f=>_0x493f6f['element'])['includes'](_0x58a5b3['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x2de64e),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x42c232=>_0x42c232-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3e1c58 of _0x5d64cb['comments'])this['_handleNewCommentModel'](_0x3e1c58);this['_handleInfoComment'](),this['listenTo'](_0x5d64cb['comments'],'add',(_0x3b59cc,_0x198010)=>{const _0x3b5310=this['_calculatePosition'](_0x198010);this['length']++,this['_handleNewCommentModel'](_0x198010,_0x3b5310),this['refreshVisibleViews']();}),this['listenTo'](_0x5d64cb['comments'],'remove',(_0x51124f,_0x1b4d00)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1b4d00),this['refreshVisibleViews']();}),this['listenTo'](_0x5d64cb,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x5d64cb,'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',_0x2f3a06['if']('length','ck-hidden',_0x5e84b7=>!_0x5e84b7)],'aria-label':S(_0x2de64e,'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'](_0x5c4697){-0x1===_0x5c4697?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x5df4a8 of this['commentViews'])_0x5df4a8['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x35c82a,_0x40e259){const _0x2d9fdc=new this['_config']['CommentView'](this['locale'],_0x35c82a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2d9fdc['viewUid']=_0x35c82a['id'],_0x2d9fdc['delegate']('removeComment')['to'](this),_0x2d9fdc['delegate']('updateComment')['to'](this),_0x2d9fdc['delegate']('resolveCommentThread')['to'](this),_0x2d9fdc['delegate']('editorReady')['to'](this),_0x2d9fdc['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2d9fdc,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2d9fdc,_0x40e259);}['_calculatePosition'](_0x687c4c){const _0x50223e=this['_model']['_findOptimalIndex'](_0x687c4c);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x687c4c['authoredAt']?_0x50223e-0x1:_0x50223e:_0x50223e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x323775={'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'],_0x323775,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x323775));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x41a7c2){const _0x135ab0=this['commentViews']['remove'](_0x41a7c2['id']);this['stopListening'](_0x135ab0),_0x135ab0['isEditMode']&&this['_updateHasDirtyComment'](),_0x135ab0['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x461bc5=>_0x461bc5['isEditMode']);}['_rearrangeCollapse'](){const _0x1e3780=function(_0x227ffe){const _0x32abc2=new _0x5cc10e();for(const _0x2d3b02 of _0x227ffe)_0x32abc2['add'](_0x2d3b02);return _0x32abc2;}(this['commentViews']),_0x5c4a00=this['_collapsedCommentsView']['count'];for(let _0x4ce6d6=0x1;_0x4ce6d6<=_0x5c4a00;_0x4ce6d6++)_0x1e3780['remove'](0x1);for(const _0x33a069 of _0x1e3780)_0x33a069['collapse']();_0x5c4a00>0x0&&_0x1e3780['add'](this['_collapsedCommentsView'],0x1),as(_0x224544(Array['from'](this['visibleViews']),Array['from'](_0x1e3780)),this['visibleViews'],_0x1e3780);}['_rearrangeExpand'](){as(_0x224544(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x35916c of this['visibleViews'])_0x35916c['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2c9185=>{this['focusTracker']['add'](_0x2c9185['element']),this['keystrokes']['listenTo'](_0x2c9185['element']);}),this['commentViews']['on']('change',(_0x1a3e8f,_0x5546cc)=>{for(const _0x34127a of _0x5546cc['removed'])this['focusTracker']['remove'](_0x34127a['element']),this['keystrokes']['stopListening'](_0x34127a['element']);for(const _0x153a28 of Array['from'](_0x5546cc['added'])['reverse']())this['focusTracker']['add'](_0x153a28['element']),this['keystrokes']['listenTo'](_0x153a28['element']);});}}function as(_0x38c0ba,_0x358d7f,_0x469fb2){let _0x142bc2=0x0;for(const _0x3725cb of _0x38c0ba)switch(_0x3725cb){case'insert':_0x358d7f['add'](_0x469fb2['get'](_0x142bc2),_0x142bc2),_0x142bc2++;break;case'delete':_0x358d7f['remove'](_0x142bc2);break;case'equal':_0x142bc2++;}}class ls extends kt{constructor(_0x5e4418){super(_0x5e4418);const _0x566912=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x566912['to']('contextValue',_0x21aa24=>S(_0x5e4418,'THREAD_CONTEXT_LABEL',_0x21aa24)),'tabindex':-0x1},'children':[{'text':_0x566912['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2f048a,_0x4bdd5f){super(_0x2f048a);const _0xc18ce=this['bindTemplate'];this['_model']=_0x4bdd5f,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x337c5d(),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',_0x3dd164=>!!_0x3dd164),this['bind']('contextValue')['to'](this['_model'],'context',_0x3cd72c=>_0x3cd72c&&_0x3cd72c['value']?this['_trimContextValue'](_0x3cd72c['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',_0xc18ce['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 _0x41cdba=new _0x6aa010(this['locale']);return _0x41cdba['label']=S(this['locale'],'Reopen'),_0x41cdba['tooltip']=S(this['locale'],'Reopen'),_0x41cdba['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>',_0x41cdba['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2b1b5e=>!_0x2b1b5e),_0x41cdba['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x42ce02,_0x4b2ae0)=>_0x42ce02&&_0x4b2ae0),_0x41cdba['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x41cdba;}['_trimContextValue'](_0x2264f9){if(_0x2264f9['length']<0x96)return _0x2264f9;const _0x5cde76=_0x2264f9['lastIndexOf']('\x20',0x93);return _0x2264f9['substring'](0x0,_0x5cde76>-0x1?_0x5cde76:0x93)+'...';}['_attachContextActions'](){const _0x2e120e=this['element']['querySelector']('.ck-context'),_0x644d32=_0x2e120e['querySelector']('.ck-context__value');this['listenTo'](_0x2e120e,'mouseenter',()=>{_0x644d32['offsetWidth']<_0x644d32['scrollWidth']&&_0x2e120e['classList']['add']('overlay');}),this['listenTo'](_0x2e120e,'mouseleave',()=>{_0x2e120e['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x34cf4f of this['focusables'])this['focusTracker']['add'](_0x34cf4f['element']),this['keystrokes']['listenTo'](_0x34cf4f['element']);}['_createContextView'](){const _0x153a97=new ls(this['locale']);return _0x153a97['bind']('contextValue')['to'](this),_0x153a97;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x251ff7,_0x4cca17,_0x399c06,_0x4baab8){super(_0x251ff7),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4cca17,this['_localUser']=_0x399c06,this['_config']=_0x4baab8,this['commentThreadHeaderView']=new Zt(_0x251ff7,_0x4cca17),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x251ff7,S(_0x251ff7,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x251ff7,_0x4cca17,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4baab8)),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',(_0x37940b,_0x411753)=>_0x37940b||!!_0x411753),this['bind']('isUnlinked')['to'](_0x4cca17,'unlinkedAt',_0x1e77d3=>!!_0x1e77d3),this['bind']('ariaLabel')['to'](this,'length',_0x34d744=>{const _0x7886d8=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x34d744,_0x7886d8]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x337c5d(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x400b9e=>_0x400b9e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x94d9f1(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1e45bf=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x17fd5b=_0x1e45bf['commentInputView'];return _0x1e45bf['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x17fd5b,'value',(_0x120835,_0x2bd3f4,_0xac2892,_0x357f5c,_0x405678)=>!!_0x405678||!!_0x357f5c&&_0xac2892&&!_0x2bd3f4||_0x120835&&_0xac2892&&!_0x2bd3f4),_0x17fd5b['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x28f276,_0x296873,_0x3e9575)=>{let _0x57e4dc;return _0x57e4dc=_0x3e9575&&_0x296873?'Reply\x20to\x20reopen\x20discussion...':_0x28f276?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x57e4dc);}),_0x17fd5b['bind']('submitLabel')['to'](this,'length',_0x133d5a=>S(this['locale'],_0x133d5a?'Reply':'Comment')),_0x17fd5b['on']('submit',(_0x50db23,_0x52d7dd)=>{this['fire']('addComment',_0x52d7dd),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x17fd5b['on']('cancel',()=>{this['focus']();}),_0x17fd5b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x17fd5b['on']('cancel',_0x2e1492=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2e1492['stop']());}),this['on']('change:isActive',(_0x48dac4,_0xebc883,_0x3e9c3e)=>{_0x3e9c3e||this['length']||_0x17fd5b['value']||this['fire']('removeCommentThread');}),_0x1e45bf;}}class Tt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1d047c,_0x3e09fb,_0x3507a0,_0x4d38bd){super(_0x1d047c,_0x3e09fb,_0x3507a0,_0x4d38bd),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1d047c,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3c42fb,_0x448dc4,_0x1bcff0)=>{_0x1bcff0||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x234ad2,_0x9dcab4,_0x5ad76c)=>{_0x5ad76c&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1eb8e8=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1eb8e8['if']('isActive','ck-thread--active'),_0x1eb8e8['if']('isUnlinked','ck-thread--unlinked'),_0x1eb8e8['if']('isConfirm','ck-thread--remove-confirmation'),_0x1eb8e8['to']('actionIndicator',_0x1c7695=>_0x1c7695?'ck-thread--'+_0x1c7695:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1eb8e8['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 _0x2e1467 of this['commentsListView']['commentViews'])_0x2e1467['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x110a9a}=this,_0x4099b0=this['commentsListView']['commentViews']['get'](0x0);_0x4099b0===this['_boundFirstCommentView']||_0x4099b0['isSystemComment']||(this['_boundFirstCommentView']=_0x4099b0,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x4099b0,'actionIndicator',_0x313c9b=>'remove'===_0x313c9b?'remove':null),_0x4099b0['placeholder']=S(_0x110a9a,'Write\x20a\x20comment...'),_0x4099b0['removeButton']['on']('execute',_0x465f49=>{_0x465f49['stop'](),this['showConfirm'](S(_0x110a9a,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x4099b0['focus']();}),_0x4099b0['actionBar']['add'](this['resolveButton'],0x0),_0x4099b0['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x5a075e=new _0x457cfa(this['locale']);return _0x5a075e['label']=S(this['locale'],'Resolve'),_0x5a075e['tooltip']=S(this['locale'],'Resolve'),_0x5a075e['icon']=_0x324ac9['check'],_0x5a075e['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x5a075e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x593a70=>!_0x593a70),_0x5a075e['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x139155,_0x5c63b1)=>_0x139155&&!_0x5c63b1),_0x5a075e['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x5a075e;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class hs extends kt{constructor(_0x18084){super(_0x18084),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x22ba13,_0x108747,_0x12510f)=>{this['element']['innerHTML']=_0x12510f;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x14faad,_0x3591a0,_0x209244){super(_0x14faad),this['_model']=_0x3591a0,this['_config']=_0x209244,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3591a0,'content',_0x3591a0,'authoredAt',(_0x5adebb,_0x152d2a)=>S(_0x14faad,'COMMENT_ARIA_LABEL',[_0x3591a0['author']['name'],_0x209244['formatDateTime'](_0x152d2a),new DOMParser()['parseFromString'](_0x5adebb,'text/html')['body']['textContent'],_0x3591a0['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x14faad,S(_0x14faad,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xaf971f(),this['focusTracker']=new _0x337c5d(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x50e5a7=>_0x50e5a7['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 _0x515fca=new hs(this['locale']);return _0x515fca['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x566e0e,_0x117662)=>_0x117662?_0x111ff6(_0x566e0e,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x566e0e),_0x515fca;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0xaf3de1=new os(this['locale'],this['_config']['editorConfig']);return _0xaf3de1['value']=this['_model']['content'],_0xaf3de1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xaf3de1['submitLabel']=S(this['locale'],'Save'),_0xaf3de1['on']('submit',(_0x391a01,_0x546b20)=>{this['fire']('updateComment',this['_model']['id'],_0x546b20),this['switchToDisplayMode'](),this['focus']();}),_0xaf3de1['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0xaf3de1['once']('editorReady',()=>{_0xaf3de1['focus']();}),_0xaf3de1['createEditor'](),_0xaf3de1['delegate']('editorReady')['to'](this),_0xaf3de1['delegate']('editorDestroyed')['to'](this),_0xaf3de1;}['_setupKeyboardNavigation'](){const _0x3cb64c=this['element'];this['keystrokes']['listenTo'](_0x3cb64c);for(const _0x4f0d7e of this['focusables'])this['focusTracker']['add'](_0x4f0d7e['element']),this['keystrokes']['listenTo'](_0x4f0d7e['element']);this['focusables']['on']('change',(_0x4b01c9,_0x591e41)=>{for(const _0x84417e of _0x591e41['removed'])this['focusTracker']['remove'](_0x84417e['element']),this['keystrokes']['stopListening'](_0x84417e['element']);for(const _0x3d01e5 of _0x591e41['added'])this['focusTracker']['add'](_0x3d01e5['element']),this['keystrokes']['listenTo'](_0x3d01e5['element']);}),this['keystrokes']['set']('enter',(_0x2b9cf4,_0x2e8f28)=>{_0x3cb64c===_0x2b9cf4['target']&&(this['focusCycler']['focusFirst'](),_0x2e8f28());}),this['keystrokes']['set']('esc',(_0x5e141f,_0x1e9cdc)=>{_0x3cb64c!==_0x5e141f['target']&&(this['focus'](),_0x1e9cdc());});}}class _t extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(rs){['actionBar'];['userView'];constructor(_0x3a8e07,_0x54a16c,_0x282382){super(_0x3a8e07,_0x54a16c,_0x282382),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x3a8e07,'Reply...')),this['bind']('authoredAt')['to'](_0x54a16c),this['bind']('resolvedAt')['to'](_0x54a16c),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 _0x1322b5(_0x3a8e07,_0x54a16c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x54a16c,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x51f1de=this['bindTemplate'],_0x4cc92c=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x51f1de['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x51f1de['to']('authoredAt',_0xeabda2=>this['_config']['formatDateTime'](_0xeabda2))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x51f1de['if']('isEditMode','ck-comment__actions--hidden'),_0x51f1de['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']&&_0x4cc92c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x51f1de['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x51f1de['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x51f1de['if']('isEditMode','ck-comment--edit'),_0x51f1de['if']('isSystemComment','ck-comment--info'),_0x51f1de['to']('actionIndicator',_0x275105=>_0x275105?'ck-comment--'+_0x275105:'')],'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':_0x4cc92c}]}]};}['_createEditButton'](){const _0x8566aa=new _0x6aa010(this['locale']);return _0x8566aa['label']=S(this['locale'],'Edit'),_0x8566aa['icon']=_0x324ac9['pencil'],_0x8566aa['withText']=!0x0,_0x8566aa['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x8566aa['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x140d72=>!_0x140d72),_0x8566aa['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x8566aa['on']('execute',()=>this['switchToEditMode']()),_0x8566aa;}['_createRemoveButton'](){const _0x263bde=new _0x6aa010(this['locale']);return _0x263bde['label']=S(this['locale'],'Remove'),_0x263bde['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x263bde['withText']=!0x0,_0x263bde['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x263bde['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x58fce6=>!_0x58fce6),_0x263bde['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x263bde['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x263bde;}['_createDropdown'](){const _0x1fb308=_0x249fcd(this['locale'],_0x580719),_0x19b6dd=_0x1fb308['panelView']['children'],_0x33237c=new _0x1a3a36(this['locale']),_0x38da6b=_0x1fb308['bindTemplate'];_0x3ae1dc(_0x1fb308,()=>this['items']['find'](_0x506e97=>_0x506e97['isVisible'])),_0x1fb308['extendTemplate']({'attributes':{'class':[_0x38da6b['if']('isVisible','ck-hidden',_0x2fa191=>!_0x2fa191)]}});const _0x34c663=(_0x5e8db9,_0x4e200b=-0x1)=>{const _0x3f53d5=new _0x42b312(this['locale']);_0x3f53d5['children']['add'](_0x5e8db9);const _0x3d24af=_0x4e200b>-0x1?_0x4e200b:_0x33237c['items']['length'];_0x33237c['items']['add'](_0x3f53d5,_0x3d24af);const _0x5e1e6e=Array['from'](this['items']);_0x1fb308['unbind']('isEnabled','isVisible'),_0x1fb308['bind']('isEnabled')['toMany'](_0x5e1e6e,'isEnabled',(..._0xc0227d)=>_0xc0227d['some'](_0x9cb34f=>_0x9cb34f)),_0x1fb308['bind']('isVisible')['toMany'](_0x5e1e6e,'isVisible',(..._0x5bc232)=>_0x5bc232['some'](_0x115ff0=>_0x115ff0));};_0x1fb308['panelPosition']='sw',_0x1fb308['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x324ac9['threeVerticalDots']});for(const _0x51dea5 of this['items'])_0x34c663(_0x51dea5);return _0x19b6dd['add'](_0x33237c),_0x1fb308['listenTo'](this['items'],'add',(_0x50744a,_0x3e0333,_0x5b125e)=>{_0x34c663(_0x3e0333,_0x5b125e);}),_0x1fb308['listenTo'](this['items'],'remove',(_0x5722fd,_0x2b3b29,_0x4a918b)=>{_0x33237c['items']['remove'](_0x4a918b);}),_0x1fb308;}['_attachActions'](_0x4072fe,_0x28dea0){const _0x48e8e8=_0x4072fe&&_0x4072fe['element'];_0x48e8e8&&(this['listenTo'](_0x48e8e8,'mouseenter',()=>this['actionIndicator']=_0x28dea0),this['listenTo'](_0x48e8e8,'focus',()=>this['actionIndicator']=_0x28dea0),this['listenTo'](_0x48e8e8,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x48e8e8,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x6d8bfa=super['_createCommentInputView']();return _0x6d8bfa['bind']('placeholder')['to'](this),_0x6d8bfa;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function J(_0x2e6bd7){const _0x164e53=_0x181c30(_0x2e6bd7,0x1e),_0x259cf2=new MutationObserver(_0x489562=>{for(const _0x3edcf0 of _0x489562)('attributes'==_0x3edcf0['type']&&'class'==_0x3edcf0['attributeName']||'childList'==_0x3edcf0['type']||'characterData'==_0x3edcf0['type'])&&_0x164e53();});return{'attach'(_0x16218a){_0x259cf2['observe'](_0x16218a,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x259cf2['disconnect'](),_0x164e53['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x57bc03,_0x1fd6b1){super(_0x57bc03),this['id']=_0xcc3b5b(),this['focusTracker']=new _0x337c5d(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x40e0e8,_0x4a28a4)=>this['fire']('Esc',_0x4a28a4)),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']=J(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x1fd6b1),this['mainView']=_0x1fd6b1;const _0xb77816=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xb77816['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 _0x37cf45=this['element']['clientHeight'];_0x37cf45&&(this['height']=_0x37cf45);}}class d extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x1178ff(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x113e32,target:_0x427245,type:_0x4cd328,isVisible:_0x2a8569=!0x0}){super(),this['view']=_0x113e32,this['view']['element']||this['view']['render'](),this['_type']=_0x4cd328,this['_target']=_0x427245,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x5cc10e([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1ff2a8,_0x14bfec)=>{this['view']['focusTracker']['add'](_0x14bfec);}),this['focusableElements']['on']('remove',(_0x162697,_0x865fe8)=>{this['view']['focusTracker']['remove'](_0x865fe8);}),this['set']('isVisible',_0x2a8569);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1dedde=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x1dedde),_0x1dedde;}get['targetRect'](){const _0x44977a=this['target'];if(null===_0x44977a)return null;if(_0x44977a instanceof _0x19068a)return _0x44977a;const _0xdfa87d=_0x44977a['filter'](_0x10585a=>function(_0xf38a1f){const _0x119ca6=_0xf38a1f['offsetParent'];if(_0x119ca6)return!0x0;const _0x5edb73=_0xf38a1f['getClientRects']()['item'](0x0);return!!_0x5edb73;}(_0x10585a));return 0x0===_0xdfa87d['length']?null:new _0x19068a(_0xdfa87d[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3165ee){this['view']['isActive']=_0x3165ee,this['view']['mainView']['isActive']=_0x3165ee;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x136145){if(!(null===_0x136145||_0x136145 instanceof _0x19068a||Array['isArray'](_0x136145)&&_0x136145['every'](_0x23e6b5=>ne(_0x23e6b5))))throw new _0x376cd9('annotation-invalid-target',null,{'target':_0x136145});}['_getNormalizedTarget'](){const _0x3337e3='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x3337e3)?[_0x3337e3]:_0x3337e3;}}function ne(_0x4ab53e){return null!==_0x4ab53e&&'object'==typeof _0x4ab53e&&'nodeType'in _0x4ab53e&&0x1===_0x4ab53e['nodeType'];}class x extends _0x5cc10e{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x1db27c=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x337c5d(),this['_focusTracker']['on']('change:isFocused',(_0x347bae,_0x3bf0a1,_0x19fc52)=>{_0x19fc52||this['fire']('blur');});for(const _0x383f0d of _0x1db27c)this['add'](_0x383f0d);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0xfe8005){if(this['has'](_0xfe8005))throw new _0x376cd9('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0xfe8005['innerView'],_0xfe8005),this['_viewToAnnotation']['set'](_0xfe8005['view'],_0xfe8005);for(const _0x269352 of _0xfe8005['focusableElements'])this['_focusTracker']['add'](_0x269352);this['listenTo'](_0xfe8005['focusableElements'],'add',(_0x5302a7,_0x5e0f7a)=>{this['_focusTracker']['add'](_0x5e0f7a);}),this['listenTo'](_0xfe8005['focusableElements'],'remove',(_0x146ca8,_0x1f7a54)=>{this['_focusTracker']['remove'](_0x1f7a54);}),this['listenTo'](_0xfe8005['view']['focusTracker'],'change:isFocused',(_0x333265,_0x5562a0,_0x19c44b)=>{_0x19c44b&&this['fire']('focus',_0xfe8005);}),_0xfe8005['updateTargetRect']();const _0x318585=this['_getOrderInContent'](_0xfe8005['view']['targetRect']);return super['add'](_0xfe8005,_0x318585);}['remove'](_0xd5c4ad){if(!this['has'](_0xd5c4ad))throw new _0x376cd9('annotationcollection-not-existing-item',null);this['stopListening'](_0xd5c4ad['view']['focusTracker']),this['stopListening'](_0xd5c4ad['focusableElements']);for(const _0x28337d of _0xd5c4ad['focusableElements'])this['_focusTracker']['remove'](_0x28337d);return this['_viewToAnnotation']['delete'](_0xd5c4ad['view']),this['_innerViewToAnnotation']['delete'](_0xd5c4ad['innerView']),super['remove'](_0xd5c4ad);}['getByInnerView'](_0x17526c){return this['_innerViewToAnnotation']['get'](_0x17526c);}['getByView'](_0x4c4a6b){return this['_viewToAnnotation']['get'](_0x4c4a6b);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x262339 of this)_0x262339['updateTargetRect']();this['_sort']();}['_sort'](){const _0x33fe24=Array['from'](this)['sort']((_0xb51d0f,_0x3f0cb0)=>v(_0xb51d0f['view']['targetRect'],_0x3f0cb0['view']['targetRect']));for(let _0x53bc7c=_0x33fe24['length']-0x1;_0x53bc7c>0x0;_0x53bc7c--){const _0x21a3f1=_0x33fe24[_0x53bc7c];_0x53bc7c!==this['getIndex'](_0x21a3f1)&&(this['remove'](_0x21a3f1),this['add'](_0x21a3f1));}}['_getOrderInContent'](_0x542c1c){let _0x37d1cf=0x0;if(!_0x542c1c)return this['length'];for(const _0x88e38f of this){const _0x4f92ff=_0x88e38f['view']['targetRect'];if(_0x4f92ff){if(v(_0x542c1c,_0x4f92ff)<0x0)return _0x37d1cf;_0x37d1cf++;}}return _0x37d1cf;}}function v(_0x4be0eb,_0x517dd7){if(null===_0x4be0eb&&null===_0x517dd7)return 0x0;if(null===_0x4be0eb)return-0x1;if(null===_0x517dd7)return 0x1;const _0x3501b4=_0x4be0eb['top']-_0x517dd7['top'];return 0x0==_0x3501b4?_0x4be0eb['left']-_0x517dd7['left']:_0x3501b4;}class N extends _0x397a12{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f1de6){if(super(_0x1f1de6),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1f1de6 instanceof _0x55ed32){const _0x435d00=_0x1f1de6['locale'];_0x1f1de6['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x435d00,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x435d00,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x435d00,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x435d00,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x435d00,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x435d00,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x435d00,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x1da1bb){this['collection']['add'](_0x1da1bb);}['remove'](_0x4debce){this['collection']['remove'](_0x4debce),_0x4debce['destroy']();}['refreshVisibility'](){for(const _0x3012b9 of this['collection'])_0x3012b9['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x5569d2){return this['collection']['getByInnerView'](_0x5569d2);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1fcffc of this['collection'])_0x1fcffc['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x422280){this['fire']('_activateAnnotation',_0x422280);}['createAnnotation'](_0x2ebe86){return new d(_0x2ebe86);}['createAnnotationView'](_0x3b2bbf,_0x594856){return new T(_0x3b2bbf,_0x594856);}['_addActiveAnnotation'](_0x2dafd6){const _0x436bf5=new Set(this['activeAnnotations']);_0x436bf5['add'](_0x2dafd6),this['activeAnnotations']=_0x436bf5;}['_removeActiveAnnotation'](_0x49bfe3){const _0x1ce76a=new Set(this['activeAnnotations']);_0x1ce76a['delete'](_0x49bfe3),this['activeAnnotations']=_0x1ce76a;}['_bindAnnotationsToVisibleAnnotations'](){const _0x2f54de=this['collection'],_0x3eeffd=this['_visibleAnnotations'];function _0x315785(_0x11b4cb){const _0x5528d8=_0x11b4cb['source'];_0x5528d8['isVisible']&&!_0x3eeffd['has'](_0x5528d8)?_0x3eeffd['add'](_0x5528d8):!_0x5528d8['isVisible']&&_0x3eeffd['has'](_0x5528d8)&&_0x3eeffd['remove'](_0x5528d8),_0x5528d8['view']['focusTracker']['remove'](_0x5528d8['view']['element']),_0x5528d8['view']['focusTracker']['add'](_0x5528d8['view']['element']);}this['listenTo'](_0x2f54de,'add',(_0x3fb51c,_0x434c0e)=>{_0x434c0e['isVisible']&&_0x3eeffd['add'](_0x434c0e),this['listenTo'](_0x434c0e,'change:isVisible',_0x315785);}),this['listenTo'](_0x2f54de,'remove',(_0xc383ec,_0x43f229)=>{_0x3eeffd['has'](_0x43f229)&&_0x3eeffd['remove'](_0x43f229),this['stopListening'](_0x43f229,'change:isVisible',_0x315785);});}['_setupEnterAnnotationKeystroke'](){const _0xcfe0f7=_0x3673d0=>{_0x3673d0['on']('ready',()=>{_0x3673d0['keystrokes']['set'](_0x43418d,(_0x5e247b,_0x3a64fa)=>{const _0x565b14=_0x531ac0(this['activeAnnotations']['values']());_0x565b14&&(_0x565b14['view']['focus'](),_0x3a64fa());});});};this['context']instanceof _0x55ed32?_0xcfe0f7(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0xcc138b,_0x3966ac)=>{_0xcfe0f7(_0x3966ac);});}['_setupEscapeAnnotationHandling'](){const _0x9cb4b1=_0x4e2810=>{const _0xb2593a=_0x4e2810['source'],_0x2ec6b7=[];let _0x4f1fa1;if(Array['isArray'](_0xb2593a['target'])){_0x4f1fa1=_0xb2593a['target'][0x0],this['context']instanceof _0x55ed32?_0x2ec6b7['push'](this['context']):this['context']['editors']&&_0x2ec6b7['push'](...this['context']['editors']);for(const _0x41ccf0 of _0x2ec6b7)for(const _0x1729e8 of _0x41ccf0['editing']['view']['domRoots']['values']())if(_0x1729e8['contains'](_0x4f1fa1))return void _0x41ccf0['editing']['view']['focus']();_0x4f1fa1['focus']();}};this['listenTo'](this['collection'],'add',(_0x2ccfa5,_0x208e68)=>{this['listenTo'](_0x208e68,'escape',_0x9cb4b1,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x23e6c5,_0x2db8e2)=>{this['stopListening'](_0x2db8e2,'escape',_0x9cb4b1);});}}const bt=Symbol('noChannel'),Nt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x397a12{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,pt,ct];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd6a81e){super(_0xd6a81e),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x99649b=this['context']['config'];_0x99649b['define']('comments.maxCommentsWhenCollapsed',0x2),_0x99649b['define']('comments.maxThreadTotalWeight',0x1f4),_0x99649b['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x99649b['define']('comments.CommentThreadView',Tt),_0x99649b['define']('comments.CommentView',_t),_0x99649b['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x1fec41=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4ecaae,_0x228390)=>this['_addCommentThread'](_0x228390)),this['on']('submitCommentThread',(_0x2d631c,_0x17a81a)=>this['_submitCommentThread'](_0x17a81a)),this['on']('resolveCommentThread',(_0x4c5099,_0x3d427e)=>this['_resolveCommentThread'](_0x3d427e)),this['on']('resolveCommentThread',(_0x437744,_0x426087)=>this['_updateActiveAnnotation'](_0x426087),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x2903fb,_0x40c8ec)=>this['_reopenCommentThread'](_0x40c8ec)),this['on']('reopenCommentThread',(_0x4bdab4,_0x2adf40)=>this['_updateActiveAnnotation'](_0x2adf40),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x2ff25d,_0x450078)=>this['_removeCommentThread'](_0x450078)),this['on']('updateCommentThread',(_0x3840cb,_0x5a06fb)=>this['_updateCommentThread'](_0x5a06fb)),this['on']('updateCommentThread',(_0x40eeaf,_0x36395b)=>this['_updateActiveAnnotation'](_0x36395b),{'priority':'lowest'}),this['on']('addComment',(_0x50aee6,_0x5e0aa3)=>this['_addComment'](_0x5e0aa3)),this['on']('updateComment',(_0x2c6bd0,_0x53e1fd)=>this['_updateComment'](_0x53e1fd)),this['on']('removeComment',(_0xfe897d,_0x23a9b0)=>this['_removeComment'](_0x23a9b0)),this['on']('addComment',(_0x9d5885,{threadId:_0x2ab7c0,isFromAdapter:_0x372fda})=>{if(_0x372fda)return;const _0x4a35df=this['getCommentThread'](_0x2ab7c0),_0x50ed58=_0x4a35df&&this['_threadToController']['get'](_0x4a35df);_0x50ed58&&_0x50ed58['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x1fec41,'change:activeAnnotations',(_0x369a27,_0x3cfd6f,_0x50b79a)=>{const _0x1a2026=Array['from'](_0x50b79a)['map'](_0x175ed9=>this['_viewToController']['get'](_0x175ed9['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x1a2026?_0x1a2026['model']:null;});}set['adapter'](_0x44452e){if(this['_adapter'])throw new _0x376cd9('commentsrepository-adapter-already-set');this['_adapter']=_0x44452e;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5840d1=bt,threadId:_0x2838ef=_0xcc3b5b(),comments:_0xb2af82=[],unlinkedAt:_0x2218be=null,resolvedAt:_0x30b13a=null,resolvedBy:_0x52b34d=null,target:_0x43b96d=null,context:_0x5d0147=null,attributes:_0x28491a={},isResolvable:_0x5246ff=!0x0,isSubmitted:_0x549c84=!0x1,isFromAdapter:_0x36cf05=!0x1}={}){return this['fire'](Pt('addCommentThread',_0x5840d1),{'channelId':_0x5840d1,'threadId':_0x2838ef,'comments':_0xb2af82,'unlinkedAt':_0x2218be,'resolvedAt':_0x30b13a,'resolvedBy':_0x52b34d,'target':_0x43b96d,'context':_0x5d0147,'attributes':_0x28491a,'isFromAdapter':_0x36cf05,'isResolvable':_0x5246ff,'isSubmitted':_0x549c84}),this['getCommentThread'](_0x2838ef);}['openNewCommentThread']({channelId:_0x20a28f=bt,threadId:_0x15fb22=_0xcc3b5b(),target:_0x334f7b,context:_0x1bf98f=null,isResolvable:_0x4bf12e=!0x0}){if(this['_readOnlyChannels']['has'](_0x20a28f)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x334f7b)throw new _0x376cd9('commentsrepository-missing-target');const _0xe6a0a=this['addCommentThread']({'channelId':_0x20a28f,'threadId':_0x15fb22,'target':_0x334f7b,'context':_0x1bf98f,'isResolvable':_0x4bf12e});if(!_0xe6a0a)return null;const _0x315726=this['_threadToController']['get'](_0xe6a0a),_0x21e422=_0x315726['view']['commentThreadInputView']['commentInputView'],_0x58718f=this['context']['plugins']['get'](N),_0xca2a95=_0x58718f['getByInnerView'](_0x315726['view']);return _0x58718f['activate'](_0xca2a95),_0x21e422['once']('editorReady',()=>_0x21e422['focus']()),_0xe6a0a;}['hasCommentThread'](_0x3e5fb1){if('string'!=typeof _0x3e5fb1)throw new _0x376cd9('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x3e5fb1);}['updateCommentThread']({channelId:_0x2813ef=bt,threadId:_0x235ab6,context:_0x19d450,unlinkedAt:_0x41cb94,attributes:_0xe6ecf2,isFromAdapter:_0x2d08df=!0x1}){return this['fire'](Pt('updateCommentThread',_0x2813ef),{'channelId':_0x2813ef,'threadId':_0x235ab6,'context':_0x19d450,'unlinkedAt':_0x41cb94,'attributes':_0xe6ecf2,'isFromAdapter':_0x2d08df}),this['getCommentThread'](_0x235ab6);}['getCommentThread'](_0x2fe320){if('string'!=typeof _0x2fe320)throw new _0x376cd9('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2fe320);}['fetchCommentThread']({channelId:_0x3ed7a1,threadId:_0x4adce4}={}){const _0x5c16fe=this['getCommentThread'](_0x4adce4);if(_0x5c16fe)return Promise['resolve'](_0x5c16fe);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x376cd9('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x3ed7a1,'threadId':_0x4adce4})['then'](_0x2a9140=>this['hasCommentThread'](_0x4adce4)?this['getCommentThread'](_0x4adce4):_0x2a9140?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3ed7a1},_0x2a9140)):void 0x0)['catch'](_0x2396f0=>{throw console['error'](_0x2396f0),new _0x376cd9('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x27ba97,skipNotAttached:_0x1cd988=!0x1,skipEmpty:_0x32b561=!0x1,toJSON:_0x4d9d7=!0x1}={}){const _0x586469=[];for(const _0x29f868 of this['_threads']['values']())_0x27ba97&&_0x29f868['channelId']!==_0x27ba97||_0x1cd988&&!_0x29f868['isAttached']||_0x32b561&&0x0===_0x29f868['length']||_0x586469['push'](_0x29f868);return _0x4d9d7?_0x586469['map'](_0x1bd8aa=>_0x1bd8aa['toJSON']()):_0x586469;}['setActiveCommentThread'](_0x2f597e){const _0x4c821a=this['context']['plugins']['get'](N);if(!_0x2f597e)return void(this['activeCommentThread']&&_0x4c821a['deactivateAll']());const _0x249713=this['getCommentThread'](_0x2f597e);if(!_0x249713)throw new _0x376cd9('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x2f597e});if(!this['_threadToController']['has'](_0x249713))throw new _0x376cd9('commentsrepository-active-not-attached',null,{'threadId':_0x2f597e});const _0x237540=_0x4c821a['getByInnerView'](this['_threadToController']['get'](_0x249713)['view']);_0x4c821a['activate'](_0x237540);}['switchReadOnly'](_0x50e716,_0x46b5e4){_0x50e716?this['_readOnlyChannels']['add'](_0x46b5e4):this['_readOnlyChannels']['delete'](_0x46b5e4),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x3059a2){return this['_readOnlyChannels']['has'](_0x3059a2)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0xef123b,_0x13333c){return new gt(_0xef123b,_0x13333c);}['setPermissions'](_0x3248be,_0x5e2e00=bt){this['_permissions']['set'](_0x5e2e00,_0x3248be),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x41c429=bt){return this['_permissions']['has'](_0x41c429)?this['_permissions']['get'](_0x41c429):Nt;}['_addCommentThread']({channelId:_0x35f4b6,threadId:_0x203891,comments:_0x4d886b,unlinkedAt:_0x5a8459,resolvedAt:_0x4ac12c,resolvedBy:_0x5dd5dd,target:_0x4f554e,context:_0x10f413,attributes:_0x159e1d,isFromAdapter:_0xbea4c7,isResolvable:_0x4c1499,isSubmitted:_0x586b1c}){if('string'!=typeof _0x203891)throw new _0x376cd9('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x203891});if(this['hasCommentThread'](_0x203891))throw new _0x376cd9('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x203891});const _0x22847a=new oe(this,{'channelId':_0x35f4b6,'id':_0x203891,'context':_0x10f413,'attributes':_0x159e1d,'unlinkedAt':_0x5a8459,'resolvedAt':_0x4ac12c,'resolvedBy':_0x5dd5dd?this['context']['plugins']['get'](ct)['getUser'](_0x5dd5dd):null,'isResolvable':_0x4c1499,'isSubmitted':_0x586b1c||_0xbea4c7});this['_threads']['set'](_0x203891,_0x22847a);for(const _0x455882 of _0x4d886b)_0x22847a['_add'](this['_createNewComment']({'threadId':_0x203891,..._0x455882}));return _0x4f554e&&_0x22847a['attachTo'](_0x4f554e),_0xbea4c7||!_0x22847a['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x35f4b6,'threadId':_0x203891});}['_submitCommentThread']({channelId:_0x4114ae,threadId:_0x4a2ae7}){if(!this['hasCommentThread'](_0x4a2ae7))throw new _0x376cd9('commentsrepository-missing-comment-thread',this);const _0x290b61=this['getCommentThread'](_0x4a2ae7);if(_0x290b61['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0xbf2812,comments:_0x280c3a,resolvedAt:_0xfe3d2d,resolvedBy:_0x30c424,context:_0x4083f7,attributes:_0x30eb06}=_0x290b61,_0x29316a=this['context']['plugins']['get']('PendingActions'),_0xdb7025=_0x29316a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4114ae,'threadId':_0xbf2812,'comments':_0x280c3a['map'](_0x495ceb=>_0x495ceb['toJSON']()),'resolvedAt':_0xfe3d2d,'resolvedBy':_0x30c424?_0x30c424['id']:_0x30c424,'context':_0x4083f7,'attributes':_0x30eb06})['then'](({comments:_0x1a564e})=>{_0x29316a['remove'](_0xdb7025);for(const _0x430ff3 of _0x1a564e)this['_updateComment']({'channelId':_0x4114ae,'threadId':_0x4a2ae7,'commentId':_0x430ff3['commentId'],'createdAt':_0x430ff3['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4cca4a=>{throw console['error'](_0x4cca4a),new _0x376cd9('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x26a712,target:_0x7e1475}){const _0x523e29=this['getCommentThread'](_0x26a712);if(!_0x523e29)throw new _0x376cd9('commentsrepository-attach-missing-comment-thread',this);const _0x2161e5=this['context']['plugins']['get']('PendingActions'),_0x1f055b=this['context']['plugins']['get'](N),_0x2cca4a=this['_createCommentThreadView'](_0x523e29),_0x351e3e=new gt(_0x523e29,_0x2cca4a);let _0x4f00fc=null;_0x2cca4a['on']('change:isDirty',(_0x58e5ee,_0x459bd0,_0x4b0a08)=>{_0x4b0a08?_0x4f00fc=_0x2161e5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4f00fc&&(_0x2161e5['remove'](_0x4f00fc),_0x4f00fc=null);}),this['_threadToController']['set'](_0x523e29,_0x351e3e),this['_viewToController']['set'](_0x2cca4a,_0x351e3e);const _0x552438=new T(this['context']['locale'],_0x2cca4a);_0x552438['bind']('length')['to'](_0x2cca4a),_0x552438['bind']('isDirty')['to'](_0x2cca4a,'isDirty',_0x2cca4a,'length',(_0x188e4e,_0x155bbf)=>_0x188e4e||!_0x155bbf),_0x552438['bind']('isActive')['to'](_0x2cca4a),_0x552438['type']='comment';const _0x3d7f42=new d({'view':_0x552438,'target':_0x7e1475,'type':'comment','isVisible':!_0x523e29['archivedAt']});return _0x2cca4a['on']('escape',()=>{_0x3d7f42['fire']('escape');}),this['_bindAnnotationToEditors'](_0x2cca4a,_0x3d7f42),_0x1f055b['add'](_0x3d7f42),_0x3d7f42;}['_bindAnnotationToEditors'](_0x37c45a,_0x430667){this['listenTo'](_0x37c45a,'editorReady',(_0x5b3bc8,_0x2ed7d9)=>{const _0x3e591a=_0x2ed7d9['ui']['view']['body']['bodyCollectionContainer'];_0x430667['focusableElements']['add'](_0x3e591a),this['context']instanceof _0x55ed32&&this['context']['ui']['focusTracker']['add'](_0x3e591a);},{'priority':'highest'}),this['listenTo'](_0x37c45a,'editorDestroyed',(_0x57f0ee,_0x26de94)=>{const _0x2cc0ea=_0x26de94['ui']['view']['body']['bodyCollectionContainer'];_0x430667['focusableElements']['has'](_0x2cc0ea)&&_0x430667['focusableElements']['remove'](_0x2cc0ea),this['context']instanceof _0x55ed32&&this['context']['ui']['focusTracker']['remove'](_0x2cc0ea);});}['_unbindEditors'](_0x987377){this['stopListening'](_0x987377,'editorReady'),this['stopListening'](_0x987377,'editorDestroyed');}['_createCommentThreadView'](_0x1c25f3){const _0x33c1c2=this['context']['plugins']['get'](ct),{config:_0x47d2e1,locale:_0x3ee3fd}=this['context'],_0x3946dd=It(_0x47d2e1['get']('locale'));return new(0x0,(_0x47d2e1['get']('comments'))['CommentThreadView'])(_0x3ee3fd,_0x1c25f3,_0x33c1c2['me'],{'editorConfig':{..._0x47d2e1['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x47d2e1['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x47d2e1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x47d2e1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x47d2e1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3946dd,'CommentView':_0x47d2e1['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4ee927,channelId:_0x4d59c9,resolvedAt:_0x1b14be,resolvedBy:_0x5c1f5a,isFromAdapter:_0xb3182d}){if(!this['hasCommentThread'](_0x4ee927))throw new _0x376cd9('commentsrepository-missing-comment-thread',null,{'threadId':_0x4ee927});const _0x4aca40=this['getCommentThread'](_0x4ee927);if(_0x4aca40['isResolved'])throw new _0x376cd9('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4ee927});const _0x4514c0=this['context']['plugins']['get'](ct);if(_0x4aca40['resolvedBy']=_0x4514c0['getUser'](_0x5c1f5a),_0x4aca40['resolvedAt']=_0x1b14be,_0xb3182d||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x241433=this['context']['plugins']['get']('PendingActions'),_0x4a68db=_0x241433['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x4d59c9,'threadId':_0x4ee927})['then'](({resolvedAt:_0x2291e1,resolvedBy:_0x4d042a})=>{_0x241433['remove'](_0x4a68db),_0x4aca40['resolvedBy']['id']!==_0x4d042a&&(_0x4aca40['resolvedBy']=_0x4514c0['getUser'](_0x4d042a)),_0x4aca40['resolvedAt']=_0x2291e1;})['catch'](_0x257588=>{throw console['error'](_0x257588),new _0x376cd9('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x14703a,channelId:_0x413849,isFromAdapter:_0x2039ac}){if(!this['hasCommentThread'](_0x14703a))throw new _0x376cd9('commentsrepository-missing-comment-thread',null,{'threadId':_0x14703a});const _0x2656fe=this['getCommentThread'](_0x14703a);if(!_0x2656fe['isResolved'])throw new _0x376cd9('commentsrepository-reopen-comment-thread',null,{'threadId':_0x14703a});if(_0x2656fe['resolvedBy']=null,_0x2656fe['resolvedAt']=null,_0x2039ac||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x22353a=this['context']['plugins']['get']('PendingActions'),_0x211ae7=_0x22353a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x413849,'threadId':_0x14703a})['then'](()=>_0x22353a['remove'](_0x211ae7))['catch'](_0xdde901=>{throw console['error'](_0xdde901),new _0x376cd9('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x4beaba,isFromAdapter:_0x41bd57}){const _0x1531ea=this['getCommentThread'](_0x4beaba);if(!_0x1531ea)throw new _0x376cd9('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x4beaba),this['_threads']['delete'](_0x4beaba),!_0x1531ea['isSubmitted']||_0x41bd57||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x262e07=this['context']['plugins']['get']('PendingActions'),{channelId:_0x25b5db}=_0x1531ea,_0x3c9763=_0x262e07['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x25b5db,'threadId':_0x4beaba})['then'](()=>_0x262e07['remove'](_0x3c9763))['catch'](_0x4df69a=>{throw console['error'](_0x4df69a),new _0x376cd9('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x59904b,unlinkedAt:_0x109126,context:_0x465e26,attributes:_0x2ffc5a,isFromAdapter:_0x5e45b1}){if('string'!=typeof _0x59904b)throw new _0x376cd9('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x59904b});if(!this['hasCommentThread'](_0x59904b))throw new _0x376cd9('commentsrepository-missing-comment-thread',null,{'threadId':_0x59904b});const _0x356233=this['getCommentThread'](_0x59904b);let _0x229375=!0x1;if(void 0x0!==_0x465e26&&_0x356233['context']!==_0x465e26&&(_0x356233['context']=_0x465e26,_0x229375=!0x0),void 0x0!==_0x109126&&_0x356233['unlinkedAt']!==_0x109126&&(_0x356233['unlinkedAt']=_0x109126,_0x229375=!0x0),_0x2ffc5a&&!yt(_0x2ffc5a,_0x356233['attributes'])&&(_0x356233['attributes']=_0x2ffc5a,_0x229375=!0x0),!_0x229375)return Promise['resolve']();if(!_0x356233['isSubmitted']||_0x5e45b1||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x128bc0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x249a54}=_0x356233,_0x27df6e=_0x128bc0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x249a54,'threadId':_0x59904b,'context':_0x465e26,'unlinkedAt':_0x109126,'attributes':_0x2ffc5a})['then'](()=>_0x128bc0['remove'](_0x27df6e))['catch'](_0x1e1802=>{throw console['error'](_0x1e1802),new _0x376cd9('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x26e8ff){const _0x3079ac=this['context']['plugins']['get'](N),_0x52483e=this['getCommentThread'](_0x26e8ff);if(_0x52483e['_isAttached']=!0x1,this['_threadToController']['has'](_0x52483e)){const _0x3faba5=this['_threadToController']['get'](_0x52483e),_0x519d99=_0x3faba5['view'],_0x4bb17e=_0x3079ac['getByInnerView'](_0x519d99);this['_threadToController']['delete'](_0x52483e),this['_viewToController']['delete'](_0x519d99),_0x4bb17e&&_0x3079ac['remove'](_0x4bb17e),_0x3faba5['destroy'](),_0x519d99['destroy']()['then'](()=>{this['_unbindEditors'](_0x519d99);});}}['_updateActiveAnnotation']({threadId:_0x2bf0fd,resolvedAt:_0x223e89}){const _0x5c4003=!!_0x223e89,_0x3423ae=this['context']['plugins']['get'](N),_0x1daf8a=this['getCommentThread'](_0x2bf0fd);if(this['_threadToController']['has'](_0x1daf8a)){const _0x488226=this['_threadToController']['get'](_0x1daf8a)['view'],_0x11b659=_0x3423ae['getByInnerView'](_0x488226);_0x11b659&&(_0x5c4003&&_0x3423ae['_removeActiveAnnotation'](_0x11b659),_0x11b659['refreshVisibility']());}}['_getExternalAuthor'](_0x4013d2){const _0x3182f8=this['context']['plugins']['get'](ct),_0x29dce6=wt('external:'+_0x4013d2),_0x519982=_0x3182f8['getUser'](_0x29dce6);return _0x519982||_0x3182f8['addUser']({'id':_0x29dce6,'name':_0x4013d2});}['_createNewComment']({threadId:_0xe9649d,commentId:_0x4bda08=_0xcc3b5b(),content:_0x3a3907,authorId:_0xab4e6,createdAt:_0x5ea22e,attributes:_0x3c0ef6}){if('string'!=typeof _0x4bda08)throw new _0x376cd9('commentsrepository-invalid-commentid');if('string'!=typeof _0xab4e6)throw new _0x376cd9('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x3a3907||!_0x3a3907['trim']())throw new _0x376cd9('commentsrepository-invalid-comment-content');const _0x41e351=this['context']['plugins']['get'](ct)['getUser'](_0xab4e6);if(!_0x41e351)throw new _0x376cd9('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0xab4e6});let _0x12d83b=null,_0x3fbf4a=_0x5ea22e;return _0x3c0ef6&&_0x3c0ef6['@external']&&(_0x12d83b=this['_getExternalAuthor'](_0x3c0ef6['@external']['authorName']),_0x3fbf4a=new Date(_0x3c0ef6['@external']['createdAt'])),new re(this,{'threadId':_0xe9649d,'id':_0x4bda08,'author':_0x12d83b||_0x41e351,'creator':_0x41e351,'content':_0x3a3907,'createdAt':_0x5ea22e,'authoredAt':_0x3fbf4a,'attributes':_0x3c0ef6});}['_addComment'](_0x11d56a){let {threadId:_0x1c19df,content:_0x5e5a48,attributes:_0x520855,isFromAdapter:_0x30ce6e}=_0x11d56a;const _0x4aa8a2=this['getCommentThread'](_0x11d56a['threadId']);if(!_0x4aa8a2)throw new _0x376cd9('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x37fe61=this['_createNewComment'](_0x11d56a),{id:_0x3b545b}=_0x37fe61;if(_0x4aa8a2['_add'](_0x37fe61),_0x30ce6e||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4aa8a2['isSubmitted'])return Promise['resolve']();const _0x4b95b6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x41b705}=_0x4aa8a2,_0x53451a=_0x4b95b6['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x520855||(_0x520855={}),this['adapter']['addComment']({'channelId':_0x41b705,'threadId':_0x1c19df,'commentId':_0x3b545b,'content':_0x5e5a48,'attributes':_0x520855})['then'](_0x1ae667=>{_0x4b95b6['remove'](_0x53451a),_0x1ae667&&this['_updateComment']({'channelId':_0x41b705,'threadId':_0x1c19df,'commentId':_0x3b545b,'createdAt':_0x1ae667['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xbaf4dc=>{throw console['error'](_0xbaf4dc),new _0x376cd9('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x53239f,commentId:_0x171d03,content:_0x27ee51,createdAt:_0x28b705,attributes:_0x5d335f,isFromAdapter:_0x53463b}){if(void 0x0!==_0x27ee51&&('string'!=typeof _0x27ee51||!_0x27ee51['trim']()['length']))throw new _0x376cd9('commentsrepository-update-comment-invalid-content');const _0xb11747=this['getCommentThread'](_0x53239f),_0x5be868=_0xb11747['getComment'](_0x171d03);if(!_0x5be868)throw new _0x376cd9('commentsrepository-update-missing-comment',this);let _0x12cf6f=!0x1;if(_0x27ee51&&_0x27ee51!==_0x5be868['content']&&(_0x5be868['isEditable']||_0x53463b)&&(_0x5be868['content']=_0x27ee51,_0x12cf6f=!0x0),_0x28b705&&_0x28b705!==_0x5be868['createdAt']&&(_0x5be868['createdAt']=_0x28b705,_0x5be868['attributes']&&_0x5be868['attributes']['@external']||(_0x5be868['authoredAt']=_0x28b705),_0x12cf6f=!0x0),_0x5d335f&&!yt(_0x5d335f,_0x5be868['attributes'])&&(_0x5be868['attributes']=_0x5d335f,_0x12cf6f=!0x0),!_0x12cf6f)return Promise['resolve']();if(_0xb11747['fire']('commentUpdated'),_0x53463b||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x48c3b6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x409567}=this['getCommentThread'](_0x5be868['threadId']),_0x51cacb=_0x48c3b6['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x409567,'threadId':_0x53239f,'commentId':_0x171d03,'content':_0x27ee51,'attributes':_0x5d335f})['then'](()=>_0x48c3b6['remove'](_0x51cacb))['catch'](_0x3c6253=>{throw console['error'](_0x3c6253),new _0x376cd9('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x619a04,commentId:_0x3951a5,isFromAdapter:_0x444efc}){const _0x506908=this['getCommentThread'](_0x619a04),_0x5d4463=_0x506908['getComment'](_0x3951a5);if(!_0x5d4463)throw new _0x376cd9('commentsrepository-remove-missing-comment',this);if(_0x506908['_remove'](_0x5d4463),_0x444efc||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2dcc30=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2f7a0e}=_0x506908,_0x44bb1c=_0x2dcc30['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2f7a0e,'threadId':_0x619a04,'commentId':_0x3951a5})['then'](()=>_0x2dcc30['remove'](_0x44bb1c))['catch'](_0x9d06f4=>{throw console['error'](_0x9d06f4),new _0x376cd9('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1178ff(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x3435d7,_0x3c362a){super();const _0x569d0d=_0x3c362a['isResolvable'];this['channelId']=_0x3c362a['channelId'],this['id']=_0x3c362a['id'],this['comments']=new _0x5cc10e(),this['_repository']=_0x3435d7,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3c362a['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x3435d7,'_permissions',_0x3435d7,'_readOnlyChannels',()=>_0x3435d7['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x3435d7,'_permissions',()=>_0x3435d7['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x3435d7,'_permissions',()=>{const _0x14eadb=_0x3435d7['getPermissions'](this['channelId']);return _0x14eadb['write']||_0x14eadb['admin'];}),this['bind']('isResolvable')['to'](_0x3435d7,'_permissions',()=>_0x569d0d&&_0x3435d7['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3c362a['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x118bae,_0x144f5b)=>_0x118bae?_0x144f5b?_0x118bae<_0x144f5b?_0x118bae:_0x144f5b:_0x118bae:_0x144f5b),this['set']('unlinkedAt',_0x3c362a['unlinkedAt']||null),this['set']('resolvedAt',_0x3c362a['resolvedAt']||null),this['set']('resolvedBy',_0x3c362a['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0xe6741=>!!_0xe6741),this['set']('attributes',_0x3c362a['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x57709b,_0x12ea31)=>_0x57709b+_0x12ea31['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x240eaa,id:_0x523dd3}=this;this['_repository']['fire'](Pt('submitCommentThread',_0x240eaa),{'channelId':_0x240eaa,'threadId':_0x523dd3});}['setUnlinkedAt'](_0x1da940){this['_update']({'unlinkedAt':_0x1da940});}['resolve']({resolvedAt:_0x434816=new Date(),resolvedBy:_0x141882=null,isFromAdapter:_0x2a6aaf=!0x1}={}){const _0x326b5e=this['_repository']['context']['plugins']['get'](ct)['me'],{channelId:_0x5e9fa7,id:_0x2dabd7}=this;this['_repository']['fire'](Pt('resolveCommentThread',_0x5e9fa7),{'channelId':_0x5e9fa7,'threadId':_0x2dabd7,'resolvedAt':_0x434816,'resolvedBy':_0x141882||_0x326b5e['id'],'isFromAdapter':_0x2a6aaf});}['reopen']({isFromAdapter:_0x16febc=!0x1}={}){const {channelId:_0x332258,id:_0x2407a4}=this;this['_repository']['fire'](Pt('reopenCommentThread',_0x332258),{'channelId':_0x332258,'threadId':_0x2407a4,'isFromAdapter':_0x16febc});}['setContext'](_0x360274){this['context']||this['_update']({'context':_0x360274});}['setAttribute'](_0x370d30,_0x291681){const _0x9e6e7f=At(this['attributes']);Ct(_0x9e6e7f,_0x370d30,_0x291681),this['_update']({'attributes':_0x9e6e7f});}['removeAttribute'](_0x1f7b95){const _0xf6dde1=At(this['attributes']);vt(_0xf6dde1,_0x1f7b95),this['_update']({'attributes':_0xf6dde1});}['remove']({isFromAdapter:_0x339f8c=!0x1}={}){const {channelId:_0x5520a3,id:_0x56db66}=this;this['_repository']['fire'](Pt('removeCommentThread',_0x5520a3),{'channelId':_0x5520a3,'threadId':_0x56db66,'isFromAdapter':_0x339f8c});}['attachTo'](_0x3be5fc){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x3be5fc});}['addComment'](_0x21143e){const {channelId:_0x364f91,id:_0x4eae9b}=this;this['_repository']['fire'](Pt('addComment',_0x364f91,_0x4eae9b),Object['assign']({'channelId':_0x364f91,'threadId':_0x4eae9b},_0x21143e));}['getComment'](_0x52a864){if('string'!=typeof _0x52a864)throw new _0x376cd9('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x52a864});return this['comments']['get'](_0x52a864);}['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'](_0x18c960=>_0x18c960['toJSON']()),'attributes':this['attributes']};}['_add'](_0x10e493){return this['listenTo'](_0x10e493,'change:authoredAt',()=>{const _0x1ca959=this['_findOptimalIndex'](_0x10e493),_0x229114=this['comments'];_0x1ca959-0x1!=_0x229114['getIndex'](_0x10e493)&&_0x1ca959+0x1!=_0x229114['getIndex'](_0x10e493)&&(this['_remove'](_0x10e493),this['_add'](_0x10e493));}),this['comments']['add'](_0x10e493,this['_findOptimalIndex'](_0x10e493));}['_update'](_0x5aa898){const {channelId:_0x13ead3,id:_0x5103eb}=this;this['_repository']['fire'](Pt('updateCommentThread',_0x13ead3),{..._0x5aa898,'channelId':_0x13ead3,'threadId':_0x5103eb});}['_remove'](_0x4355d8){return this['stopListening'](_0x4355d8),_0x4355d8['destroy'](),this['comments']['remove'](_0x4355d8);}['_findOptimalIndex'](_0x3de7b0){const _0x11a439=this['comments']['find'](_0x596e82=>new Date(_0x596e82['authoredAt'])['getTime']()>new Date(_0x3de7b0['authoredAt'])['getTime']());return _0x11a439?this['comments']['getIndex'](_0x11a439):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x1178ff(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x8097eb,_0x2b5d0e){super();const _0x48f4e2=_0x8097eb['context']['plugins']['get'](ct)['me'],_0x48bd49=_0x8097eb['getCommentThread'](_0x2b5d0e['threadId']),_0xfbaae2=0x0===_0x48bd49['comments']['length'],_0x38802d=_0x48f4e2===_0x2b5d0e['author'];this['id']=_0x2b5d0e['id'],this['threadId']=_0x2b5d0e['threadId'],this['author']=_0x2b5d0e['author'],this['creator']=_0x2b5d0e['creator'],this['isExternal']=Boolean(_0x2b5d0e['attributes']&&_0x2b5d0e['attributes']['@external']),this['set']('content',_0x2b5d0e['content']),this['createdAt']=_0x2b5d0e['createdAt']||new Date(),this['set']('authoredAt',_0x2b5d0e['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x48bd49,'resolvedAt'),this['set']('attributes',_0x2b5d0e['attributes']||{}),this['bind']('isEditable')['to'](_0x8097eb,'_permissions',()=>{const _0x307952=_0x8097eb['getPermissions'](_0x48bd49['channelId'])['write'],_0x18174e=_0x8097eb['getPermissions'](_0x48bd49['channelId'])['modifyAll'];return _0x38802d&&_0x307952||!_0x38802d&&_0x18174e;}),this['bind']('isRemovable')['to'](_0x48bd49,'isRemovable',_0x8097eb,'_permissions',_0x1b2cd0=>{const _0x32aaa7=_0x8097eb['getPermissions'](_0x48bd49['channelId'])['write'],_0x249ee6=_0x8097eb['getPermissions'](_0x48bd49['channelId'])['modifyAll'];return _0x38802d&&_0x32aaa7||_0x1b2cd0&&_0xfbaae2||!_0x38802d&&_0x249ee6&&!_0xfbaae2;}),this['bind']('isReadOnly')['to'](_0x48bd49,'isReadOnly'),this['_repository']=_0x8097eb;}get['weight'](){return Math['max'](function(_0x53a55a){const _0x1d0b1f=document['createElement']('div');return _0x1d0b1f['innerHTML']=_0x53a55a,_0x1d0b1f['textContent']['length'];}(this['content']),0xc8);}['update'](_0x10e2b7){const {threadId:_0x5886f6,id:_0xc259e9}=this;if(!this['_repository']['hasCommentThread'](_0x5886f6))throw new _0x376cd9('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x8b7d23}=this['_repository']['getCommentThread'](_0x5886f6);this['_repository']['fire'](Pt('updateComment',_0x8b7d23,_0x5886f6),{'channelId':_0x8b7d23,'threadId':_0x5886f6,'commentId':_0xc259e9,..._0x10e2b7});}['setAttribute'](_0x3af026,_0x2bf984){const _0x576473=At(this['attributes']);Ct(_0x576473,_0x3af026,_0x2bf984),this['update']({'attributes':_0x576473});}['removeAttribute'](_0x5b0d26){const _0x35c506=At(this['attributes']);vt(_0x35c506,_0x5b0d26),this['update']({'attributes':_0x35c506});}['remove'](_0x32fb69={}){if(!_0x32fb69['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0xe5e858,id:_0x55263b}=this;if(!this['_repository']['hasCommentThread'](_0xe5e858))throw new _0x376cd9('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x361f96}=this['_repository']['getCommentThread'](_0xe5e858);this['_repository']['fire'](Pt('removeComment',_0x361f96,_0xe5e858),{'channelId':_0x361f96,'threadId':_0xe5e858,'commentId':_0x55263b,..._0x32fb69});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Pt(_0x3d38b1,..._0x380fa5){for(const _0x4400c6 of _0x380fa5)void 0x0!==_0x4400c6&&(_0x3d38b1+=':'+String(_0x4400c6));return _0x3d38b1;}class Q extends _0x40b744{['refresh'](){const _0x3569e4=this['editor']['model']['document']['selection'];for(const _0x31d60b of _0x3569e4['getRanges']())if(this['_hasContent'](_0x31d60b))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x4729fd=_0xcc3b5b()}={}){const _0x4deddf=this['editor']['model'],_0x265b18=[];for(const _0xb80566 of _0x4deddf['document']['selection']['getRanges']())this['_hasContent'](_0xb80566)&&_0x265b18['push'](this['_trimToContent'](_0xb80566));_0x4deddf['change'](_0x3fca52=>{for(const _0x262300 of _0x265b18){const _0x18643d=_0xcc3b5b()['substr'](0x1,0x5),_0x3bded4='comment:'+_0x4729fd+':'+_0x18643d;_0x3fca52['addMarker'](_0x3bded4,{'range':_0x262300,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x29f29c){for(const _0x33de79 of _0x29f29c['getItems']())if(this['_itemIsContent'](_0x33de79))return!0x0;return!0x1;}['_itemIsContent'](_0x2ce9ae){return _0x2ce9ae['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x2ce9ae)&&!_0x2ce9ae['is']('element','tableCell');}['_trimToContent'](_0x34d3e9){const _0x25109d=_0x182e97=>!this['_itemIsContent'](_0x182e97['item']),_0x4303fc=_0x34d3e9['start']['getLastMatchingPosition'](_0x25109d),_0x3d9f41=_0x34d3e9['end']['getLastMatchingPosition'](_0x25109d,{'direction':'backward'});return this['editor']['model']['createRange'](_0x4303fc,_0x3d9f41);}}class P extends _0x1cfa22{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12b570){super(_0x12b570),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x92771=this['editor'],_0x3f54a1=_0x92771['model']['document']['selection'],_0x443636=_0x36b1fa(()=>this['refreshSelectedViews'](),0xa);_0x3f54a1['on']('change:range',(_0x464bd1,_0x452b25)=>{_0x452b25['directChange']&&(_0x443636['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x92771['editing']['view']['document'],'change:isFocused',(_0x52167d,_0x26692d,_0x1b6bb2)=>{_0x1b6bb2&&_0x443636();}),this['listenTo'](_0x92771['ui']['focusTracker'],'change:isFocused',(_0x1e42f5,_0x926300,_0x3739e8)=>{_0x3739e8||_0x92771['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x123a83=>this['_editorAnnotationsData']['has'](_0x123a83['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x464f2b){if(this['_editorAnnotations']['has'](_0x464f2b['view']))return;this['_editorAnnotations']['add'](_0x464f2b['view']),this['editor']['ui']['focusTracker']['add'](_0x464f2b['view']['element']);const _0xb8b63c=this['editor']['plugins']['get'](N);this['listenTo'](_0xb8b63c['collection'],'remove',(_0x504a39,_0x56f9d7)=>{this['editor']['ui']['focusTracker']['remove'](_0x56f9d7['view']['element']),this['_editorAnnotations']['delete'](_0x56f9d7['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x17246e){if('function'!=typeof _0x17246e)throw new _0x376cd9('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x17246e);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3ae79a,annotations:_0x93bc8d}){const _0x568d0c=[],_0x2eafb6=this['editor']['model']['document']['selection'],_0x3e2d33=Array['from'](_0x2eafb6['getRanges']());for(const [_0x5c7235,_0xcb10fd]of this['_editorAnnotationsData']){const _0x34df78=_0x24a6fe(_0xcb10fd),_0x4e130b=_0x93bc8d['getByInnerView'](_0x5c7235);_0x34df78&&_0x4e130b&&_0x568d0c['push']({'annotation':_0x4e130b,'range':_0x34df78});}function _0x24a6fe(_0x8eedb4){for(const _0x181097 of _0x8eedb4)for(const _0x41f028 of _0x3e2d33)if(_0x181097['containsRange'](_0x41f028,!_0x2eafb6['isCollapsed']))return _0x181097;return null;}return _0x568d0c['sort']((_0x1038ae,_0x5b6c40)=>{const _0x2595a2=_0x1038ae['range'],_0x4dedb0=_0x5b6c40['range'];if(!_0x2595a2['isEqual'](_0x4dedb0)){if(_0x2595a2['containsRange'](_0x4dedb0,!0x0))return 0x1;if(_0x4dedb0['containsRange'](_0x2595a2,!0x0))return-0x1;}return _0x1038ae['annotation']==_0x3ae79a?-0x1:_0x5b6c40['annotation']==_0x3ae79a?0x1:0x0;})['map'](_0x59521e=>_0x59521e['annotation']);}get['_editorAnnotationsData'](){const _0x396c74=new Map();for(const _0x29c2be of Array['from'](this['_dataCollectors']))for(const [_0xa72ba1,_0x28a88a]of _0x29c2be())_0x396c74['set'](_0xa72ba1,_0x28a88a);return _0x396c74;}}class at extends _0x1cfa22{['afterInit'](){const _0x3fba37=this['editor'];if(!_0x3fba37['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3fba37['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ut extends _0x1cfa22{constructor(_0x3d7d62){super(_0x3d7d62),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2c649c=this['editor'],_0x4d6472=_0x2c649c['commands']['get']('importWord'),_0x49dd7b=_0x2c649c['plugins']['get'](ct);_0x4d6472&&(_0x4d6472['on']('execute',(_0x589c11,[,_0x151330])=>{_0x151330['collaboration_features']={'comments':!0x0,'user_id':_0x49dd7b['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4d6472,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0xbaa658,_0x1da69e){const {comment_threads:_0x43d9e8}=_0x1da69e;_0x43d9e8&&_0x43d9e8['forEach'](({thread_id:_0x2bc75d,comments:_0xffe676,is_resolved:_0x210888})=>{const _0x9a847c=new Date(),_0x468ef9=_0xffe676['map'](({author:_0x3edad0,content:_0x376cbe,created_at:_0x3b1888})=>({'content':_0x376cbe,'authorId':this['editor']['plugins']['get'](ct)['me']['id'],'createdAt':_0x9a847c,'attributes':{'@external':{'authorName':_0x3edad0,'createdAt':_0x3b1888?new Date(_0x3b1888):new Date(),'source':'importWord'}}})),_0x2c1766=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2c1766,'threadId':_0x2bc75d,'comments':_0x468ef9,'resolvedAt':_0x210888?_0x9a847c:null});});}}class ft extends _0x1cfa22{constructor(_0x372421){super(_0x372421),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Rt,Mt];}['afterInit'](){const _0x23b59d=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x23b59d,'contentInsertion',(_0x348dde,_0xfce655)=>this['_removeMarkersWithoutThreads'](_0xfce655['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x32f978){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x32f978;const _0x3b9a5c=this['editor']['plugins']['get']('CommentsRepository');for(const _0x1bbb48 of _0x32f978['keys']()){const [_0x1e836c,_0x186bd8]=_0x1bbb48['split'](':');'comment'!=_0x1e836c||_0x3b9a5c['hasCommentThread'](_0x186bd8)||_0x32f978['delete'](_0x1bbb48);}return _0x32f978;}['_registerMarkerInClipboardPipeline'](){const _0x3fe519=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x51132c=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x51132c&&_0x3fe519['_registerMarkerToCopy']('comment',_0x51132c);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x455712){switch(_0x455712){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class dt extends _0x1cfa22{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1a0d8c,_0x5c2881)=>{if(!_0x5c2881['options']['showCommentHighlights'])return null;if(_0x5c2881['options']['ignoreResolvedComments']){const {id:_0xfc36a5}=er(_0x1a0d8c['markerName']),_0x2ef594=this['editor']['plugins']['get'](o)['getCommentThread'](_0xfc36a5);if(_0x2ef594&&_0x2ef594['isResolved']&&_0x1a0d8c['item'])return _0x5c2881['consumable']['consume'](_0x1a0d8c['item'],'addMarker:'+_0x1a0d8c['markerName']),_0x5c2881['consumable']['consume'](_0x1a0d8c['item'],'removeMarker:'+_0x1a0d8c['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x159081=>{_0x159081['on']('addMarker:comment',(_0x5ef443,_0x121327,_0x3ffb7a)=>{if(!_0x3ffb7a['options']['showCommentHighlights'])return;const _0x57e267=_0x121327['item'];if(!_0x57e267)return;const _0x151318=_0x3ffb7a['mapper']['toViewElement'](_0x57e267);this['editor']['model']['schema']['isObject'](_0x57e267)&&_0x151318&&!_0x151318['getCustomProperty']('widget')&&_0x151318['is']('containerElement')&&_0x40c727(_0x151318,_0x3ffb7a['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x50762,{writer:_0x2d4690,options:_0x5777a5})=>{if(!_0x5777a5['showCommentHighlights'])return null;const _0x2c2518=_0x2d4690['createContainerElement']('div'),_0x135bf7=_0x2d4690['createEmptyElement']('hr');return _0x2d4690['addClass']('ck-horizontal-line',_0x2c2518),_0x2d4690['insert'](_0x2d4690['createPositionAt'](_0x2c2518,0x0),_0x135bf7),_0x2c2518;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1da664,{writer:_0x20649d,options:_0x2f256e})=>{if(!_0x2f256e['showCommentHighlights'])return null;const _0x5685e1=_0x20649d['createContainerElement']('span'),_0x15324c=_0x20649d['createEmptyElement']('img');return _0x20649d['addClass']('image-inline',_0x5685e1),_0x20649d['insert'](_0x20649d['createPositionAt'](_0x5685e1,0x0),_0x15324c),_0x5685e1;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x31976f,{writer:_0x120546,options:_0x18226d})=>{if(_0x18226d['showCommentHighlights'])return _0x120546['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x32b2c1,_0x3453c8,_0x42de13)=>{_0x42de13['options']['showCommentHighlights']&&_0x32b2c1['stop']();},{'priority':'high'});}}class r extends _0x1cfa22{static get['requires'](){return[o,P,ct,at,ut,ft,dt];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d0ae2){super(_0x4d0ae2),this['set']('isThreadsLoadingPaused',!0x0),_0x4d0ae2['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x187359,_0x142feb,_0x7a171,_0x2cee13)=>{const _0x29254f=_0x4d0ae2['plugins']['get'](o),_0x33d106=_0x7a171?er(_0x7a171)['id']:null;_0x4d0ae2['model']['change'](()=>{if(_0x33d106){const _0x12dceb=this['getAllMarkersForId'](_0x33d106);for(const _0x52dba5 of _0x12dceb)_0x4d0ae2['editing']['reconvertMarker'](_0x52dba5);}if(_0x2cee13){const {id:_0x32f9a6}=er(_0x2cee13),_0x68ef52=_0x29254f['getCommentThread'](_0x32f9a6);if(_0x68ef52&&!_0x68ef52['isAttached'])return;const _0x48953c=this['getAllMarkersForId'](_0x32f9a6);for(const _0xee7b66 of _0x48953c)_0x4d0ae2['editing']['reconvertMarker'](_0xee7b66);}}),_0x33d106&&this['scrollToThreadMarker'](_0x33d106);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3685e9=this['editor'],_0xe6b00c=_0x3685e9['plugins']['get'](o),_0x27baaa=_0x3685e9['config']['get']('collaboration.channelId'),_0x432c40=_0xe6b00c['getCommentThreads']()['filter'](_0x3f99fd=>_0x3f99fd['channelId']!==_0x27baaa);_0x3685e9['commands']['add']('addCommentThread',new Q(_0x3685e9)),this['listenTo'](_0x3685e9,'change:isReadOnly',(_0x5cf6e4,_0x333f1f,_0x30ca2c)=>{_0xe6b00c['switchReadOnly'](_0x30ca2c,_0x3685e9['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xe6b00c,mt('addCommentThread',_0x27baaa),(_0x26b79e,{threadId:_0x2c9b5c})=>{const _0xde3494=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2c9b5c);_0xde3494&&_0xde3494['unlinkedAt']&&this['_attachArchivedThread'](_0x2c9b5c);}),this['listenTo'](_0xe6b00c,mt('removeCommentThread',_0x27baaa),(_0x3655a1,{threadId:_0x25b017})=>{_0x3685e9['model']['enqueueChange']({'isUndoable':!0x1},_0x3a4a4a=>{const _0x309715=this['getAllMarkersForId'](_0x25b017);for(const _0x35249f of _0x309715)_0x3a4a4a['removeMarker'](_0x35249f);});}),this['listenTo'](_0xe6b00c,mt('resolveCommentThread',_0x27baaa),(_0x58a165,{threadId:_0x4d561e})=>{(this['_reconvertMarkers'](_0x4d561e),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4d561e)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xe6b00c,mt('reopenCommentThread',_0x27baaa),(_0x20760d,{threadId:_0x49397c})=>{this['_reconvertMarkers'](_0x49397c);},{'priority':'low'}),this['listenTo'](_0xe6b00c,mt('addComment',_0x27baaa),(_0x589741,{threadId:_0x450132,isFromAdapter:_0x29af8b})=>{const _0x2f3bf9=this['getAllMarkersForId'](_0x450132);if(_0x29af8b||0x0==_0x2f3bf9['length']||!_0xe6b00c['hasCommentThread'](_0x450132))return;0x1===_0xe6b00c['getCommentThread'](_0x450132)['length']&&_0x3685e9['model']['enqueueChange']({'isUndoable':!0x1},_0x5e9294=>{for(const _0x18277b of _0x2f3bf9)_0x5e9294['updateMarker'](_0x18277b,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x432c40);}['afterInit'](){!async function(_0xefdccb){const _0x593e8d=_0x1c5aa2([0x39,0x4f,0x49,0x56,0x57,0x52,0x75,0x4a,0x69,0x33,0x58,0x65,0x73,0x38,0x71,0x63,0x43,0x6b,0x35,0x76,0x62,0x34,0x66,0x4e,0x53,0x46,0x37,0x44,0x64,0x70,0x55,0x31,0x54,0x72,0x47,0x6a,0x51,0x67,0x5a,0x6f,0x6d,0x36,0x41,0x32,0x74,0x48,0x6c,0x4d,0x79,0x61,0x78,0x4b,0x50,0x6e,0x4c,0x42,0x7a,0x77,0x68,0x59,0x30,0x45]),_0x186216=0x23262441,_0x4865fd=0x23217a31^_0x186216,_0x126224=window[_0x1c5aa2([0x44,0x61,0x74,0x65])][_0x1c5aa2([0x6e,0x6f,0x77])](),_0x4597e6=_0xefdccb[_0x1c5aa2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f1368=new window[(_0x1c5aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52726e=>{_0x4597e6[_0x1c5aa2([0x6f,0x6e,0x63,0x65])](_0x1c5aa2([0x72,0x65,0x61,0x64,0x79]),_0x52726e);}),_0x44bd62={[_0x1c5aa2([0x6b,0x74,0x79])]:_0x1c5aa2([0x45,0x43]),[_0x1c5aa2([0x75,0x73,0x65])]:_0x1c5aa2([0x73,0x69,0x67]),[_0x1c5aa2([0x63,0x72,0x76])]:_0x1c5aa2([0x50,0x2d,0x32,0x35,0x36]),[_0x1c5aa2([0x78])]:_0x1c5aa2([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]),[_0x1c5aa2([0x79])]:_0x1c5aa2([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]),[_0x1c5aa2([0x61,0x6c,0x67])]:_0x1c5aa2([0x45,0x53,0x32,0x35,0x36])},_0x31dd51=_0x4597e6[_0x1c5aa2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c5aa2([0x67,0x65,0x74])](_0x1c5aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c43e1(){let _0x1ab63e,_0x29e46e=null,_0x39f1fe=null;try{if(_0x31dd51==_0x1c5aa2([0x47,0x50,0x4c]))return _0x1c5aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ab63e=_0x41d8d7(),!_0x1ab63e)return _0x1c5aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ab63e[_0x1c5aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39f1fe=_0x1d808d(_0x1ab63e[_0x1c5aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ab63e[_0x1c5aa2([0x6a,0x74,0x69])])),await _0x16a995()?_0x3e0d4b()?_0x2d1165()?_0x1c5aa2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d74ec()?(_0x1ab63e[_0x1c5aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c5aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29e46e=_0x500cdd(_0x1c5aa2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ab63e[_0x1c5aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c5aa2([0x74,0x72,0x69,0x61,0x6c])&&(_0x29e46e=_0x500cdd(_0x1c5aa2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f1885()):_0x1c5aa2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c5aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c5aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3fbd1d){return _0x1c5aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d1165(){const _0x338679=[_0x1c5aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c5aa2([0x74,0x72,0x69,0x61,0x6c])][_0x1c5aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab63e[_0x1c5aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x126224/0x3e8:0xe10*_0x4865fd;return _0x1ab63e[_0x1c5aa2([0x65,0x78,0x70])]<_0x338679;}function _0x3e0d4b(){const _0x58e9fd=_0x1ab63e[_0x1c5aa2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x58e9fd)return!0x1;if(_0x58e9fd[_0x1c5aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c5aa2([0x2a])))return!0x0;if(_0x58e9fd[_0x1c5aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c5aa2([0x43,0x4d,0x54])))return!0x0;if(_0x58e9fd[_0x1c5aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c5aa2([0x52,0x43,0x4d,0x54]))){if(_0x52fe98())return!0x0;if(_0xd66fa7()||_0x3df102())return!0x0;}return!0x1;}function _0x2d74ec(){const _0x33a879=_0x1ab63e[_0x1c5aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33a879||0x0==_0x33a879[_0x1c5aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x448654}=new URL(window[_0x1c5aa2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33a879[_0x1c5aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x448654))return!0x0;const _0x77311d=_0x448654[_0x1c5aa2([0x73,0x70,0x6c,0x69,0x74])](_0x1c5aa2([0x2e]));return _0x33a879[_0x1c5aa2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c9f4e=>_0x3c9f4e[_0x1c5aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c5aa2([0x2a])))[_0x1c5aa2([0x6d,0x61,0x70])](_0x5d01e4=>_0x5d01e4[_0x1c5aa2([0x73,0x70,0x6c,0x69,0x74])](_0x1c5aa2([0x2e])))[_0x1c5aa2([0x73,0x6f,0x6d,0x65])](_0x4ac562=>_0x77311d[_0x1c5aa2([0x65,0x76,0x65,0x72,0x79])]((_0x3d9c07,_0x4698df)=>_0x4ac562[_0x4698df]===_0x3d9c07||_0x4ac562[_0x4698df]===_0x1c5aa2([0x2a])));}function _0x1f1885(){return _0x29e46e&&_0x39f1fe?new window[(_0x1c5aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d2756,_0x5ca55f)=>{_0x29e46e[_0x1c5aa2([0x74,0x68,0x65,0x6e])](_0x4d2756,_0x5ca55f),_0x39f1fe[_0x1c5aa2([0x74,0x68,0x65,0x6e])](_0x2d8cd9=>{_0x2d8cd9!=_0x1c5aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x4d2756(_0x2d8cd9);},_0x5ca55f);}):_0x29e46e||_0x39f1fe||_0x1c5aa2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d808d(_0x1f148c,_0x380e1f){return new window[(_0x1c5aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58e250=>{if(_0x3f8898())return _0x58e250(_0x1c5aa2([0x56,0x61,0x6c,0x69,0x64]));_0x2f7438(),_0x4597e6[_0x1c5aa2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c5aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d91a9=!0x1;const _0x49e2b7=_0xcc3b5b();function _0x467421(_0x229423){return!!_0x229423&&(typeof _0x229423===_0x1c5aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x229423===_0x1c5aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x229423[_0x1c5aa2([0x74,0x68,0x65,0x6e])]===_0x1c5aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x229423[_0x1c5aa2([0x63,0x61,0x74,0x63,0x68])]===_0x1c5aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bbf49(_0x4105a1){_0x266824(_0x4105a1)[_0x1c5aa2([0x74,0x68,0x65,0x6e])](_0x355aa5=>{if(!_0x355aa5||_0x355aa5[_0x1c5aa2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c5aa2([0x6f,0x6b]))return _0x1c5aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2659cc(_0x3ac13c(_0x49e2b7+_0x380e1f))!=_0x355aa5[_0x1c5aa2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c5aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c5aa2([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c5aa2([0x74,0x68,0x65,0x6e])](_0x125148=>(_0x4dd64f(),_0x125148),()=>{const _0x5d0247=_0x2ef672();return null==_0x5d0247?(_0x4dd64f(),_0x1c5aa2([0x56,0x61,0x6c,0x69,0x64])):_0x1c5aa2(_0x126224-_0x5d0247>(0x72aa041^_0x186216)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c5aa2([0x74,0x68,0x65,0x6e])](_0x58e250)[_0x1c5aa2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58e250(_0x1c5aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a8eec=0x2310cac1^_0x186216;function _0x4dd64f(){const _0x58d382=_0x1c5aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2659cc(_0x3ac13c(_0x1f148c)),_0x28245e=_0xc52d17(_0x2659cc(window[_0x1c5aa2([0x4d,0x61,0x74,0x68])][_0x1c5aa2([0x63,0x65,0x69,0x6c])](_0x126224/_0x3a8eec)));window[_0x1c5aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c5aa2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58d382,_0x28245e);}function _0x2ef672(){const _0x4d0d8d=_0x1c5aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2659cc(_0x3ac13c(_0x1f148c)),_0x5256f1=window[_0x1c5aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c5aa2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d0d8d);return _0x5256f1?window[_0x1c5aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc52d17(_0x5256f1),0x10)*_0x3a8eec:null;}function _0x266824(_0x58aafc){return new window[(_0x1c5aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5da2f9,_0x136ad2)=>{_0x58aafc[_0x1c5aa2([0x74,0x68,0x65,0x6e])](_0x5da2f9,_0x136ad2),window[_0x1c5aa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x136ad2,0x2327f081^_0x186216);});}}_0x4597e6[_0x1c5aa2([0x6f,0x6e])](_0x1c5aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13c519,_0x6d2a1a)=>{if(_0x6d2a1a[0x0]!=_0x1f148c)return _0x58e250(_0x1c5aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6d2a1a[0x1]={..._0x6d2a1a[0x1],[_0x1c5aa2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49e2b7};},{[_0x1c5aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c5aa2([0x68,0x69,0x67,0x68])}),_0x4597e6[_0x1c5aa2([0x6f,0x6e])](_0x1c5aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24d2d2=>{_0x467421(_0x24d2d2[_0x1c5aa2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d91a9=!0x0,_0x3bbf49(_0x24d2d2[_0x1c5aa2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c5aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c5aa2([0x6c,0x6f,0x77])}),_0x2f1368[_0x1c5aa2([0x74,0x68,0x65,0x6e])](()=>{_0x1d91a9||_0x58e250(_0x1c5aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f8898(){return _0x4597e6[_0x1c5aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c5aa2([0x76,0x69,0x65,0x77])][_0x1c5aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c5aa2([0x61,0x75,0x74,0x6f]);}function _0x2f7438(){_0x4597e6[_0x1c5aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c5aa2([0x76,0x69,0x65,0x77])][_0x1c5aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c5aa2([0x61,0x75,0x74,0x6f]);}}function _0x500cdd(_0x44f58e){const _0x4020a8=[new window[(_0x1c5aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42fe61=>setTimeout(_0x42fe61,0x232f1a8d^_0x186216)),_0x2f1368[_0x1c5aa2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c5aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eb7e8=>{let _0x129fa9=0x0;_0x4597e6[_0x1c5aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c5aa2([0x6f,0x6e])](_0x1c5aa2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52ef85,_0x3338ef)=>{_0x3338ef[0x0][_0x1c5aa2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x129fa9++,_0x129fa9==(0x232625b9^_0x186216)&&(_0x5eb7e8(),_0x52ef85[_0x1c5aa2([0x6f,0x66,0x66])]());});}))];return window[_0x1c5aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c5aa2([0x72,0x61,0x63,0x65])](_0x4020a8)[_0x1c5aa2([0x74,0x68,0x65,0x6e])](()=>_0x44f58e);}async function _0x49d4ec(){await _0x2f1368,_0x4597e6[_0x1c5aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c5aa2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d9b71,_0x4597e6[_0x1c5aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c5aa2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d9b71,_0x4597e6[_0x1c5aa2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c5aa2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52fe98(){return _0x215e6c(_0x1c5aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5f2d3f(_0x1c5aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1c5aa2([0x73,0x74,0x61,0x74,0x65])]==_0x1c5aa2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xd66fa7(){return _0x215e6c(_0x1c5aa2([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 _0x3df102(){return _0x215e6c(_0x1c5aa2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x11bc78(_0x5ba3c0){const _0x5a9089=_0x20c369();_0x4597e6[_0x5a9089]=_0x1c5aa2([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5ba3c0,_0x5ba3c0!=_0x1c5aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x49d4ec();}function _0x20c369(){const _0x144e57=window[_0x1c5aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c5aa2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c5aa2([0x6e,0x6f,0x77])]())[_0x1c5aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c5aa2([0x2e]),'');let _0x3eb215=_0x1c5aa2([0x4f]);for(let _0x531490=0x0;_0x531490<_0x144e57[_0x1c5aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x531490+=0x2){let _0x128823=window[_0x1c5aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x144e57[_0x1c5aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x531490,_0x531490+0x2));_0x128823>=_0x593e8d[_0x1c5aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x128823-=_0x593e8d[_0x1c5aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3eb215+=_0x593e8d[_0x128823];}return _0x3eb215;}function _0x41d8d7(){const _0x1932dc=_0x31dd51[_0x1c5aa2([0x73,0x70,0x6c,0x69,0x74])](_0x1c5aa2([0x2e]));if(0x3!=_0x1932dc[_0x1c5aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13a97f(_0x1932dc[0x1]);function _0x13a97f(_0x8d185c){const _0x20b681=_0x272eba(_0x8d185c);return _0x20b681&&_0x3bb86d()?_0x20b681:null;function _0x3bb86d(){const _0xe5eb64=_0x20b681[_0x1c5aa2([0x6a,0x74,0x69])],_0x56b5b0=window[_0x1c5aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe5eb64[_0x1c5aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe5eb64[_0x1c5aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59fd79={..._0x20b681,[_0x1c5aa2([0x6a,0x74,0x69])]:_0xe5eb64[_0x1c5aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe5eb64[_0x1c5aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59fd79[_0x1c5aa2([0x76,0x63])],_0x3ac13c(_0x59fd79)==_0x56b5b0;}}}async function _0x16a995(){let _0x27ea29=!0x0;try{const _0x1a716f=_0x31dd51[_0x1c5aa2([0x73,0x70,0x6c,0x69,0x74])](_0x1c5aa2([0x2e])),[_0x4877fe,_0x42bc69,_0x198edb]=_0x1a716f;return _0xc16094(_0x4877fe),await _0x39e91c(_0x4877fe,_0x42bc69,_0x198edb),_0x27ea29;}catch(_0x4cc342){return!0x1;}function _0xc16094(_0x499e83){const _0x324ed7=_0x272eba(_0x499e83);_0x324ed7&&_0x324ed7[_0x1c5aa2([0x61,0x6c,0x67])]==_0x1c5aa2([0x45,0x53,0x32,0x35,0x36])||(_0x27ea29=!0x1);}async function _0x39e91c(_0x47d31c,_0x49d7a7,_0x58a003){const _0x49a56f=window[_0x1c5aa2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c5aa2([0x66,0x72,0x6f,0x6d])](_0x54009d(_0x58a003),_0xa4bab6=>_0xa4bab6[_0x1c5aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31540e=new window[(_0x1c5aa2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c5aa2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47d31c+_0x1c5aa2([0x2e])+_0x49d7a7),_0x13be7d=window[_0x1c5aa2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c5aa2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13be7d)return;const _0x49b63f=await _0x13be7d[_0x1c5aa2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c5aa2([0x6a,0x77,0x6b]),_0x44bd62,{[_0x1c5aa2([0x6e,0x61,0x6d,0x65])]:_0x1c5aa2([0x45,0x43,0x44,0x53,0x41]),[_0x1c5aa2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c5aa2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c5aa2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13be7d[_0x1c5aa2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c5aa2([0x6e,0x61,0x6d,0x65])]:_0x1c5aa2([0x45,0x43,0x44,0x53,0x41]),[_0x1c5aa2([0x68,0x61,0x73,0x68])]:{[_0x1c5aa2([0x6e,0x61,0x6d,0x65])]:_0x1c5aa2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49b63f,_0x49a56f,_0x31540e)||(_0x27ea29=!0x1);}}function _0x272eba(_0x47cc9a){return _0x47cc9a[_0x1c5aa2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c5aa2([0x65,0x79]))?JSON[_0x1c5aa2([0x70,0x61,0x72,0x73,0x65])](_0x54009d(_0x47cc9a)):null;}function _0x54009d(_0x2370c9){return window[_0x1c5aa2([0x61,0x74,0x6f,0x62])](_0x2370c9[_0x1c5aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c5aa2([0x2b]))[_0x1c5aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c5aa2([0x2f])));}function _0x3ac13c(_0x7e4336){let _0x13721a=0x1505;function _0x2a00e9(_0x5e3290){for(let _0x565136=0x0;_0x565136<_0x5e3290[_0x1c5aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x565136++){const _0x32ee45=_0x5e3290[_0x1c5aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x565136);_0x13721a=(_0x13721a<<0x5)+_0x13721a+_0x32ee45,_0x13721a&=_0x13721a;}}function _0x2e4873(_0x31f635){Array[_0x1c5aa2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31f635)?_0x31f635[_0x1c5aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e4873):_0x31f635&&typeof _0x31f635==_0x1c5aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c5aa2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31f635)[_0x1c5aa2([0x73,0x6f,0x72,0x74])]()[_0x1c5aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36d1b3,_0x2523e0])=>{_0x2a00e9(_0x36d1b3),_0x2e4873(_0x2523e0);}):_0x2a00e9(window[_0x1c5aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31f635));}return _0x2e4873(_0x7e4336),_0x13721a>>>0x0;}function _0x2659cc(_0x2e8d66){return _0x2e8d66[_0x1c5aa2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c5aa2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c5aa2([0x30]));}function _0xc52d17(_0x319c3d){return _0x319c3d[_0x1c5aa2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c5aa2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c5aa2([0x6a,0x6f,0x69,0x6e])]('');}function _0x215e6c(_0x4caef1){return _0x4597e6[_0x1c5aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1c5aa2([0x68,0x61,0x73])](_0x4caef1);}function _0x5f2d3f(_0x1e8c46){return _0x4597e6[_0x1c5aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1c5aa2([0x67,0x65,0x74])](_0x1e8c46);}function _0x1d9b71(){}function _0x1c5aa2(_0x872a58){return _0x872a58['map'](_0x394790=>String['fromCharCode'](_0x394790))['join']('');}_0x11bc78(await _0x1c43e1());}(this);}['destroy'](){const _0x215f13=this['editor']['plugins']['get'](o),_0x685304=this['editor']['config']['get']('collaboration.channelId');for(const _0x1b6343 of _0x215f13['getCommentThreads']({'channelId':_0x685304}))_0x215f13['_detachCommentThread'](_0x1b6343['id']),_0x215f13['_threads']['delete'](_0x1b6343['id']);super['destroy']();}['hasMarkerForId'](_0x33d41e){return this['getAllMarkersForId'](_0x33d41e)['length']>0x0;}['getAllMarkersForId'](_0x2b0bfe){const _0x15a0e5=[];for(const _0x325cfe of this['editor']['model']['markers'])_0x325cfe['name']['startsWith']('comment:'+_0x2b0bfe)&&_0x15a0e5['push'](_0x325cfe);return _0x15a0e5;}['scrollToThreadMarker'](_0x16205f){const _0x56a2f1=this['_getTargetForId'](_0x16205f);_0x56a2f1&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x16205f&&rt({'target':_0x56a2f1[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4451ab){this['editor']['model']['change'](()=>{for(const _0x33fa86 of this['getAllMarkersForId'](_0x4451ab))this['editor']['editing']['reconvertMarker'](_0x33fa86);});}['_attachArchivedThread'](_0x280e90){const _0x1da692=this['editor']['plugins']['get'](o),_0x205fd5=this['editor']['plugins']['get'](P),_0x2270e6=_0x1da692['getCommentThread'](_0x280e90);if(!_0x2270e6['isAttached']){const _0xbbfd66=_0x2270e6['attachTo'](()=>this['_getTargetForId'](_0x2270e6['id']));_0x205fd5['registerAnnotation'](_0xbbfd66),_0x2270e6['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xfb5248=this['editor'],_0x4e45ec=_0xfb5248['plugins']['get'](ct);_0xfb5248['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x948de,_0x18324f)=>{const {id:_0x44e4e2}=er(_0x948de['markerName']),_0x31c8dd=_0xfb5248['plugins']['get'](o)['getCommentThread'](_0x44e4e2),_0xa85837=this['activeMarker']&&er(this['activeMarker'])['id']===_0x44e4e2;let _0x4d429b;if(_0x31c8dd&&_0x31c8dd['isResolved']&&!_0xa85837&&_0x948de['item'])return _0x18324f['consumable']['consume'](_0x948de['item'],'addMarker:'+_0x948de['markerName']),_0x18324f['consumable']['consume'](_0x948de['item'],'removeMarker:'+_0x948de['markerName']),null;const _0x2815b1=['ck-comment-marker'];return _0xa85837&&_0x2815b1['push']('ck-comment-marker--active'),_0x4d429b=_0x31c8dd&&_0x31c8dd['length']?_0x31c8dd['comments']['first']['author']['id']:_0x4e45ec['me']['id'],{'classes':_0x2815b1,'attributes':{'data-comment':_0x44e4e2,'data-author-id':_0x4d429b}};}}),_0xfb5248['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3fcc74,{options:_0x5072a8})=>{if(_0x5072a8['showCommentHighlights'])return null;const _0x4697a1=_0xfb5248['plugins']['get'](o),_0x91721d=_0xfb5248['model']['markers']['get'](_0x3fcc74),{id:_0xfef175,part:_0x5f2229}=er(_0x3fcc74);if(_0x91721d&&!_0x91721d['affectsData'])return null;if(_0x5072a8['ignoreResolvedComments']){const _0x27486d=_0x4697a1['getCommentThread'](_0xfef175);if(_0x27486d&&_0x27486d['isResolved'])return null;}return{'group':'comment','name':_0x5f2229?_0xfef175+':'+_0x5f2229:_0xfef175};}}),_0xfb5248['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x309d71,{writer:_0x4a4299})=>_0x4a4299['createElement']('$marker',{'data-name':'comment:'+_0x309d71['getAttribute']('id')})}),_0xfb5248['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x426882=this['editor'],_0x2e5faa=_0x426882['plugins']['get'](o),_0x15a4d6=new Set(),_0x20023=new Set();_0x426882['model']['document']['registerPostFixer'](_0x20d127=>{let _0x3c890b=!0x1;for(const {name:_0xcb1a10,data:_0x5b8f4e}of _0x426882['model']['document']['differ']['getChangedMarkers']()){const {group:_0x495073,id:_0x197d1e}=er(_0xcb1a10);let _0xbbb6d3=_0x5b8f4e['newRange'];if('comment'!==_0x495073||!_0xbbb6d3)continue;const _0x318912='$graveyard'===_0xbbb6d3['root']['rootName'];_0x318912||(_0xbbb6d3=ht(_0xbbb6d3,_0x426882['model']),!_0xbbb6d3||_0xbbb6d3['isCollapsed']||!_0x5b8f4e['newRange']||_0xbbb6d3['isEqual'](_0x5b8f4e['newRange']))?_0x426882['model']['hasContent'](_0xbbb6d3)&&!_0x318912?this['isThreadsLoadingPaused']?_0x15a4d6['add'](_0xcb1a10):this['_handleThreadMarker'](_0xcb1a10,_0x197d1e):(_0x20023['add'](_0xcb1a10),_0x15a4d6['delete'](_0xcb1a10),_0x20d127['removeMarker'](_0xcb1a10),_0x3c890b=!0x0):(_0x20d127['updateMarker'](_0xcb1a10,{'range':_0xbbb6d3}),_0x3c890b=!0x0);}return _0x3c890b;}),this['on']('change:isThreadsLoadingPaused',(_0x4d9098,_0x5d35d3,_0x3370fb)=>{if(!_0x3370fb&&_0x15a4d6['size'])for(const _0x2644a7 of _0x15a4d6){const {id:_0x9f89f0}=er(_0x2644a7);_0x15a4d6['delete'](_0x2644a7),_0x426882['model']['markers']['get'](_0x2644a7)&&this['_handleThreadMarker'](_0x2644a7,_0x9f89f0);}}),this['listenTo'](_0x426882['model']['document'],'change',()=>{for(const {name:_0x2f15b4,data:{newRange:_0x44c97a}}of _0x426882['model']['document']['differ']['getChangedMarkers']()){const {group:_0xe32918,id:_0x516de0}=er(_0x2f15b4);if('comment'!==_0xe32918)continue;const _0x131fae=_0x2e5faa['getCommentThread'](_0x516de0),_0x4972b1=this['hasMarkerForId'](_0x516de0);_0x131fae&&(!_0x131fae['_hasTargetInContent']&&_0x44c97a&&_0x426882['editing']['view']['once']('render',()=>{const _0x1f43cd=_0x426882['plugins']['get'](N),_0x1b9472=_0x2e5faa['_threadToController']['get'](_0x131fae)['view'];_0x1f43cd['getByInnerView'](_0x1b9472)['refreshVisibility']();},{'priority':'low'}),_0x131fae['_hasTargetInContent']=_0x4972b1||!!_0x44c97a),_0x44c97a||(_0x20023['add'](_0x2f15b4),_0x15a4d6['delete'](_0x2f15b4));}for(const _0x44539c of _0x20023){const {id:_0x506ef0}=er(_0x44539c),_0x62f9d1=_0x2e5faa['getCommentThread'](_0x506ef0);if(_0x15a4d6['delete'](_0x44539c),!_0x62f9d1)continue;const _0x514a57=this['hasMarkerForId'](_0x506ef0);_0x514a57||_0x62f9d1['isSubmitted']?_0x514a57||_0x62f9d1['unlinkedAt']||_0x62f9d1['setUnlinkedAt'](new Date()):_0x62f9d1['remove']();}_0x20023['clear']();});}['_handleInitialThreads'](_0x10a7aa){_0x10a7aa['forEach'](_0x39524b=>{_0x39524b['unlinkedAt']&&this['_attachArchivedThread'](_0x39524b['id']);});}['_getTargetForId'](_0x11665c){const _0x2dc567=this['editor'],_0x33b763=this['getAllMarkersForId'](_0x11665c);return et(_0x2dc567['editing'],_0x33b763);}['_getTextContext'](_0x3891b9){const _0x752475=this['getAllMarkersForId'](_0x3891b9);let _0x420cae='',_0x415262=!0x1;for(const _0x443604 of _0x752475){const _0x50fa7b=_0x443604['getRange']();for(const _0x5b95a0 of Array['from'](_0x50fa7b['getItems']()))_0x5b95a0['is']('$textProxy')?(_0x420cae&&_0x415262&&(_0x420cae+='\x20',_0x415262=!0x1),_0x420cae+=_0x5b95a0['data']):_0x415262=!0x0;_0x415262=!0x0;}return _0x420cae['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x1c3413,_0x57c587){const _0x42845b=this['editor'],_0x243587=_0x42845b['plugins']['get'](o);let _0x46ba70=_0x243587['getCommentThread'](_0x57c587);const _0x3e51ed=_0x42845b['config']['get']('collaboration.channelId'),_0x4116b6=_0x42845b['plugins']['get'](P);if(_0x46ba70&&(_0x46ba70['unlinkedAt']&&_0x46ba70['setUnlinkedAt'](null),_0x46ba70['isAttached']))return _0x46ba70;return!this['getAllMarkersForId'](_0x57c587)[0x0]['managedUsingOperations']?_0x42845b['editing']['view']['once']('render',()=>{if(_0x243587['getCommentThread'](_0x57c587))return;const _0x437abe=_0x42845b['plugins']['get'](N);_0x46ba70=_0x243587['openNewCommentThread']({'channelId':_0x3e51ed,'threadId':_0x57c587,'target':()=>this['_getTargetForId'](_0x57c587),'context':{'type':'text','value':this['_getTextContext'](_0x57c587)}});const _0x57f495=_0x243587['_threadToController']['get'](_0x46ba70)['view'],_0x19b2fd=_0x437abe['getByInnerView'](_0x57f495);_0x19b2fd&&_0x4116b6['registerAnnotation'](_0x19b2fd);},{'priority':'low'}):_0x243587['fetchCommentThread']({'channelId':_0x3e51ed,'threadId':_0x57c587})['then'](_0x224acb=>{if('destroyed'!==_0x42845b['state']){if(_0x46ba70=_0x224acb,_0x46ba70&&!_0x46ba70['isAttached']){const _0x44a30a=_0x46ba70['attachTo'](()=>this['_getTargetForId'](_0x57c587));_0x4116b6['registerAnnotation'](_0x44a30a),_0x46ba70['isResolved']&&this['_reconvertMarkers'](_0x57c587);}else{if(!_0x46ba70){const _0x2506cf=this['getAllMarkersForId'](_0x57c587);_0x42845b['model']['change'](_0x4e20d6=>{for(const _0x3c906c of _0x2506cf)_0x4e20d6['removeMarker'](_0x3c906c);});}}}}),_0x46ba70;}['_handleThreadMarker'](_0x400d0a,_0xca85f){const _0x56f237=this['_attachMarkerToThread'](_0x400d0a,_0xca85f);_0x56f237&&!_0x56f237['context']&&_0x56f237['setContext']({'type':'text','value':this['_getTextContext'](_0xca85f)});}['_initAriaMarkerChangeAnnouncements'](){const _0x35b5c2=this['editor'];ot(_0x35b5c2['model'],({left:_0x1c54aa,entered:_0x16ac5f})=>{for(const _0x5872b5 of _0x1c54aa)if(lt(_0x5872b5)){_0x35b5c2['ui']['ariaLiveAnnouncer']['announce'](S(_0x35b5c2['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x59fa41 of _0x16ac5f)if(lt(_0x59fa41)){_0x35b5c2['ui']['ariaLiveAnnouncer']['announce'](S(_0x35b5c2['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0xd8bf65)));break;}});}}function mt(_0x1e4590,_0x1f9f30){return _0x1f9f30?_0x1e4590+':'+_0x1f9f30:_0x1e4590;}function er(_0x1ea27a){const _0x1b9e1c=_0x1ea27a['split'](':');return{'group':_0x1b9e1c[0x0],'id':_0x1b9e1c[0x1],'part':_0x1b9e1c[0x2]};}function ht(_0x84fc45,_0x3a4cc7){const _0x3957c8=_0x3a4cc7['schema'],_0x1f0998=_0x3a4cc7['createRange'](_0x84fc45['start']);for(const _0x11fe73 of _0x84fc45['getWalker']()){const {type:_0x2682d7,item:_0x405785,nextPosition:_0x57796a}=_0x11fe73;if('text'===_0x2682d7||_0x3957c8['isObject'](_0x405785)){const _0x22ed44=_0x3a4cc7['createPositionBefore'](_0x405785);_0x1f0998['isCollapsed']&&(_0x1f0998['start']=_0x22ed44),_0x1f0998['end']=_0x57796a;}}return _0x1f0998;}function lt(_0x324083){return'comment'===er(_0x324083['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x1cfa22{['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 _0x59bb82=this['editor'],_0xbce73d=_0x59bb82['plugins']['get'](o),_0x1959cb=_0x59bb82['plugins']['get'](r),_0x39c6be=_0x59bb82['plugins']['get'](N),_0x120102=_0x59bb82['plugins']['get'](P);_0x59bb82['ui']['componentFactory']['add']('comment',()=>{const _0x21404e=this['_createUIButton'](_0x6aa010);return _0x21404e['tooltip']=!0x0,_0x21404e;}),_0x59bb82['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x574a77)),_0x120102['addSourceCollector'](()=>{const _0x1fd5a7=[];for(const [_0x3a9fd5,_0x3b80ce]of _0xbce73d['_threadToController']){const _0x317a72=_0x1959cb['getAllMarkersForId'](_0x3a9fd5['id']),_0x3a05af=_0x317a72['map'](_0x9de61a=>_0x9de61a['getRange']());_0x317a72['length']>0x0&&_0x1fd5a7['push']([_0x3b80ce['view'],_0x3a05af]);}return _0x1fd5a7;}),this['listenTo'](_0x39c6be,'change:activeAnnotations',(_0x13e06f,_0x19aa21,_0x574cec)=>{const _0x28d8bf=Array['from'](_0x574cec)['map'](_0x239526=>_0x239526['innerView'])['find'](_0x1f1924=>_0xbce73d['_viewToController']['has'](_0x1f1924));if(!_0x28d8bf)return void(_0x1959cb['activeMarker']=null);const _0x278590=_0xbce73d['_viewToController']['get'](_0x28d8bf)['model']['id'],_0x1711a3='comment:'+_0x278590;_0x278590&&_0x1959cb['hasMarkerForId'](_0x278590)?_0x1959cb['activeMarker']=_0x1711a3:_0x1959cb['activeMarker']&&(_0x1959cb['activeMarker']=null);}),this['listenTo'](_0xbce73d,'removeCommentThread',(_0x53ae58,{threadId:_0x20fdcc,isFromAdapter:_0x5ab38a})=>{!_0x5ab38a&&_0x59bb82['ui']['focusTracker']['isFocused']&&_0x1959cb['hasMarkerForId'](_0x20fdcc)&&_0x59bb82['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xbce73d,'addComment',(_0x2d1a6d,{threadId:_0xa5adb7,isFromAdapter:_0x42d840})=>{if(_0x42d840||!_0x1959cb['hasMarkerForId'](_0xa5adb7)||!_0xbce73d['hasCommentThread'](_0xa5adb7))return;0x1===_0xbce73d['getCommentThread'](_0xa5adb7)['length']&&(_0x59bb82['editing']['view']['focus'](),_0x2d1a6d['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c03e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x25caa9;for(const _0x74f29a in _0x3c03e4){const _0x445e36=_0x74f29a,_0x2c34ae=_0x3c03e4[_0x445e36];if('commentsLicenseKeyValid'==_0x2c34ae||'commentsLicenseKeyInvalid'==_0x2c34ae||'commentsLicenseKeyExpired'==_0x2c34ae||'commentsLicenseKeyDomainLimit'==_0x2c34ae||'commentsLicenseKeyNotAllowed'==_0x2c34ae||'commentsLicenseKeyEvaluationLimit'==_0x2c34ae||'commentsLicenseKeyTrialLimit'==_0x2c34ae||'commentsLicenseKeyUsageLimit'==_0x2c34ae){delete _0x3c03e4[_0x445e36],_0x25caa9=_0x2c34ae,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x25caa9&&_0x3c03e4['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x25caa9&&_0x3c03e4['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x25caa9&&_0x3c03e4['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x25caa9&&_0x3c03e4['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x25caa9&&_0x3c03e4['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x25caa9&&_0x3c03e4['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x25caa9&&_0x3c03e4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2a9952){const _0x3612d5=this['editor'],_0x44ea8d=new _0x2a9952(_0x3612d5['locale']),_0x45dc7f=_0x3612d5['commands']['get']('addCommentThread');return _0x44ea8d['set']({'label':S(_0x3612d5['locale'],'Comment'),'icon':xt}),_0x44ea8d['bind']('isEnabled')['to'](_0x45dc7f),this['listenTo'](_0x44ea8d,'execute',()=>{_0x3612d5['editing']['view']['focus'](),_0x45dc7f['execute']();}),_0x44ea8d;}}class s extends _0x1cfa22{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x276c7d){super(_0x276c7d),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x445158,_0x9fda23,_0x2734f5)=>{_0x2734f5?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x904b02,_0x2f21f6]of this['editor']['commands'])_0x2f21f6['affectsData']&&'addCommentThread'!==_0x904b02&&_0x2f21f6['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x5be25e=this['editor']['editing']['view']['document'];this['listenTo'](_0x5be25e,'cut',_0x57c78b=>_0x57c78b['stop'](),{'priority':'highest'}),this['listenTo'](_0x5be25e,'clipboardInput',_0x3d55ba=>_0x3d55ba['stop'](),{'priority':'highest'}),this['listenTo'](_0x5be25e,'delete',_0x5c2aa0=>_0x5c2aa0['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x4951c1,_0x8a1ed1]of this['editor']['commands'])_0x8a1ed1['affectsData']&&'addCommentThread'!==_0x4951c1&&_0x8a1ed1['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x397a12{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x292a55){super(_0x292a55),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x2a8549=this['context']['plugins']['get'](N);this['listenTo'](_0x2a8549,'_activateAnnotation',(_0x268bf1,_0x7e9fe7)=>{for(const _0x575052 of this['activeUIs']){const _0x1d7d32=this['_uis']['get'](_0x575052);(0x0,this['_uisData']['get'](_0x575052)['filter'])(_0x7e9fe7)&&_0x1d7d32['setActiveAnnotation'](_0x7e9fe7);}}),this['listenTo'](_0x2a8549,'_deactivateAllAnnotations',()=>{for(const _0x51ee8e of this['activeUIs']){this['_uis']['get'](_0x51ee8e)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2a8549['_visibleAnnotations'],'add',(_0x30e5f0,_0x150919)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x150919);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x5259f8){return this['activeUIs']['has'](_0x5259f8);}['activate'](_0x3b2293,_0x342b85=()=>!0x0){const _0x4d77c5=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x3b2293))throw new _0x376cd9('annotationsuis-missing-ui',this,{'uiName':_0x3b2293});this['isActive'](_0x3b2293)&&this['deactivate'](_0x3b2293),this['activeUIs']['add'](_0x3b2293);const _0x1f54df=new x();!function({source:_0x56ec44,target:_0x478559,filter:_0x4e04f3}){for(const _0x1efbc1 of _0x56ec44)_0x4e04f3(_0x1efbc1)&&_0x478559['add'](_0x1efbc1);_0x478559['listenTo'](_0x56ec44,'add',(_0x827a41,_0x3f5a1b)=>{_0x4e04f3(_0x3f5a1b)&&_0x478559['add'](_0x3f5a1b);}),_0x478559['listenTo'](_0x56ec44,'remove',(_0x237dca,_0x202597)=>{_0x478559['has'](_0x202597)&&_0x478559['remove'](_0x202597);});}({'source':_0x4d77c5['_visibleAnnotations'],'target':_0x1f54df,'filter':_0x342b85}),this['_uisData']['set'](_0x3b2293,{'collection':_0x1f54df,'filter':_0x342b85});const _0x260a9d=this['_uis']['get'](_0x3b2293);_0x260a9d['attach'](_0x1f54df),this['listenTo'](_0x260a9d,'change:activeAnnotation',(_0x625dd6,_0x491a60,_0x450c3f,_0xa1511f)=>{_0xa1511f&&_0x4d77c5['_removeActiveAnnotation'](_0xa1511f),_0x450c3f&&_0x4d77c5['_addActiveAnnotation'](_0x450c3f);});}['deactivate'](_0x2380b6){if(this['activeUIs']['delete'](_0x2380b6),!this['_uis']['has'](_0x2380b6))throw new _0x376cd9('annotationsuis-missing-ui',this,{'uiName':_0x2380b6});const _0x4a105f=this['_uis']['get'](_0x2380b6);_0x4a105f['detach'](),this['stopListening'](_0x4a105f),this['_uisData']['get'](_0x2380b6)['collection']['destroy'](),this['_uisData']['delete'](_0x2380b6);}['switchTo'](_0x46b91e){if(!this['_uis']['has'](_0x46b91e))throw new _0x376cd9('annotationsuis-missing-ui',this,{'uiName':_0x46b91e});const _0x1998e7=this['context']['plugins']['get'](N),_0x51106c=Array['from'](_0x1998e7['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x46b91e);const _0x585747=this['_uis']['get'](_0x46b91e);_0x585747['setActiveAnnotation'](_0x51106c),_0x585747['_setSelectedAnnotations']&&_0x51106c&&_0x585747['_setSelectedAnnotations']([_0x51106c]);}['deactivateAll'](){for(const _0x5e8cbf of this['activeUIs'])this['deactivate'](_0x5e8cbf);}['register'](_0x91dd05,_0x1f7267){if(this['_uis']['has'](_0x91dd05))throw new _0x376cd9('annotationsuis-register-already-registered');if('function'!=typeof _0x1f7267['attach']||'function'!=typeof _0x1f7267['detach']||'function'!=typeof _0x1f7267['setActiveAnnotation'])throw new _0x376cd9('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x91dd05,_0x1f7267);}['refilterAnnotations'](){const _0xcb052d=this['context']['plugins']['get'](N)['collection'],_0x42baf5=new Map(),_0x1c7e22=Array['from'](this['activeUIs']);for(const _0x17980f of this['activeUIs']){const _0x59d48d=this['_uisData']['get'](_0x17980f)['collection'];for(const _0x3a3514 of _0x59d48d)_0x42baf5['set'](_0x3a3514,_0x17980f);}for(const _0x2222f8 of _0xcb052d){const _0x2cd4f2=_0x42baf5['get'](_0x2222f8);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2222f8);const _0xdfde75=_0x1c7e22['find'](_0x4b7e9b=>this['_uisData']['get'](_0x4b7e9b)['filter'](_0x2222f8));_0x2cd4f2!==_0xdfde75&&(_0x2cd4f2&&this['_uisData']['get'](_0x2cd4f2)['collection']['remove'](_0x2222f8),_0xdfde75&&this['_uisData']['get'](_0xdfde75)['collection']['add'](_0x2222f8));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x58a51a){const _0x173aac=[];for(const _0x113d1a of this['activeUIs']){(0x0,this['_uisData']['get'](_0x113d1a)['filter'])(_0x58a51a)&&_0x173aac['push'](_0x113d1a);}if(_0x173aac['length']>0x1)throw new _0x376cd9('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x173aac,'annotationType':_0x58a51a['type']});}}const he=Dt('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x199a0b){super(_0x199a0b);const _0x542f26=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 _0x337c5d(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x542f26['to']('class')],'style':{'minHeight':_0x542f26['to']('minHeight',_0x539ac4=>'number'==typeof _0x539ac4?he(_0x539ac4+0xa):null)},'dir':_0x199a0b['uiLanguageDirection'],'role':'application','aria-label':S(_0x199a0b,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x199a0b,'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',_0x2ce506=>{this['_updateItemPositionInFocusables'](_0x2ce506['source']);}),this['list']['forEach'](_0x34cbda=>{this['focusTracker']['add'](_0x34cbda['element']),this['_updateItemPositionInFocusables'](_0x34cbda);}),this['list']['on']('change',(_0x47aa8f,_0x595fb5)=>{for(const _0x1f2c27 of _0x595fb5['removed'])this['focusTracker']['remove'](_0x1f2c27['element']),this['focusables']['remove'](_0x1f2c27);for(const _0x2d1d3a of _0x595fb5['added'])this['focusTracker']['add'](_0x2d1d3a['element']),this['_updateItemPositionInFocusables'](_0x2d1d3a);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x1167f7){const _0xad703b=this['focusables']['getIndex'](_0x1167f7);let _0x52f21b,_0x585232;for(const _0x5718fc of this['focusables'])if(_0x1167f7['top']<_0x5718fc['top']){_0x52f21b=_0x5718fc;break;}if(_0x585232=_0x52f21b?this['focusables']['getIndex'](_0x52f21b):this['focusables']['length'],-0x1!==_0xad703b){if(_0xad703b===_0x585232-0x1)return;this['focusables']['remove'](_0x1167f7),_0x585232=_0x52f21b?this['focusables']['getIndex'](_0x52f21b):this['focusables']['length'];}this['focusables']['add'](_0x1167f7,_0x585232);}}const Ht=Dt('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3b451d){super(_0x3b451d),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x469584,_0x25f9e3)=>_0x469584+_0x25f9e3),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=J(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x5e2709=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x5e2709['to']('isAnimationDisabled',_0x5f1b6c=>_0x5f1b6c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5e2709['to']('top',_0x4e29ac=>Ht(_0x4e29ac))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5024e2=this['element']['clientHeight'];_0x5024e2&&(this['height']=_0x5024e2);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x397a12{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x683d89){super(_0x683d89),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 _0x54d53c=this['context']['config']['get']('sidebar.container');_0x54d53c&&this['setContainer'](_0x54d53c);}['setContainer'](_0x236b22){if(!y(_0x236b22))throw new _0x376cd9('sidebar-setcontainer-invalid-element');this['container']=_0x236b22;}['_attachToContainer']({viewClass:_0x4df403='',spaceBetweenItems:_0x30b5bd=0x19}={}){if(!y(this['container']))throw new _0x376cd9('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x4df403,this['_spaceBetweenItems']=_0x30b5bd;}['rearrange']({removedAnnotation:_0x5b1d82,previousAnnotation:_0x57bfd4,nextAnnotation:_0x7f555}){const _0x3ddb49=this['getSidebarItemView'](_0x5b1d82);this['view']['list']['remove'](_0x3ddb49),this['_destroySidebarItemView'](_0x5b1d82),_0x57bfd4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x57bfd4)),_0x7f555&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x7f555)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x99f0d1,activatedAnnotation:_0x12ba46,disableAnimationOnActivatedAnnotation:_0x3c23d2}){if(this['_activeAnnotation']=_0x12ba46,_0x99f0d1){_0x99f0d1['isActive']=!0x1;const _0x1f65c7=this['getSidebarItemView'](_0x99f0d1);_0x1f65c7&&_0x3c23d2&&(_0x1f65c7['isAnimationDisabled']=!0x1);}if(_0x12ba46){const _0x2d1f34=this['getSidebarItemView'](_0x12ba46);_0x2d1f34&&(_0x12ba46['isActive']=!0x0,_0x3c23d2&&(_0x2d1f34['isAnimationDisabled']=!0x0,_0x2d1f34['top']+=0x1),this['_alignToTargetRect'](_0x2d1f34));}}['_detachFromContainer'](_0x2a9ea7){if(this['view']['element']['remove'](),_0x2a9ea7){for(const _0x42d54f of _0x2a9ea7)this['_destroySidebarItemView'](_0x42d54f);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xd632dc,_0x4460c2){_0x4460c2||(_0x4460c2=_0xd632dc['view']);const _0x1a71aa=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x1a71aa,_0xd632dc),this['_annotationToSidebarItemView']['set'](_0xd632dc,_0x1a71aa),_0x1a71aa['content']['add'](_0x4460c2),this['listenTo'](_0xd632dc['view'],'change:targetRect',(_0x5e2f0e,_0x409402,_0xab61db)=>{const _0xff01b5=this['_getTargetTop'](_0xd632dc,_0xab61db);_0x1a71aa['_targetTop']!=_0xff01b5&&(_0x1a71aa['_targetTop']=_0xff01b5,this['_setItemTop'](_0x1a71aa,_0xff01b5));}),this['listenTo'](_0x1a71aa,'change:top',()=>{this['_recalculate'](_0x1a71aa,'top');}),this['listenTo'](_0x1a71aa,'change:bottom',()=>{this['_recalculate'](_0x1a71aa,'bottom');}),this['_alignToTargetRect'](_0x1a71aa);const _0x440d68=this['_getItemBefore'](_0x1a71aa);if(_0x440d68)this['_alignAfterItem'](_0x440d68,_0x1a71aa)||this['_alignToTargetRect'](_0x1a71aa);else this['_alignToTargetRect'](_0x1a71aa);return this['_updateLastItem'](),this['view']['list']['add'](_0x1a71aa),_0x1a71aa;}['_alignForTopChange'](_0x26278c){if(!_0x26278c['content']['length'])return;const _0xffe50b=this['_getItemBefore'](_0x26278c);if(!_0xffe50b)return;const _0x6b12f=this['_sidebarItemViewToAnnotation']['get'](_0xffe50b),_0x5c63a3=this['_activeAnnotation'];_0x5c63a3&&_0x5c63a3===_0x6b12f?this['_alignAfterItem'](_0xffe50b,_0x26278c):this['_alignBeforeItem'](_0x26278c,_0xffe50b);}['_alignForBottomChange'](_0x48ff5a){if(!_0x48ff5a['content']['length'])return;const _0x347b77=this['_getItemAfter'](_0x48ff5a);if(!_0x347b77)return;const _0x5ca665=this['_sidebarItemViewToAnnotation']['get'](_0x347b77),_0x447254=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x418905=this['_activeAnnotation'];_0x418905&&_0x418905===_0x5ca665&&_0x447254?(this['_alignBeforeItem'](_0x347b77,_0x48ff5a),this['_alignAfterItem'](_0x48ff5a,_0x347b77)):_0x418905&&_0x418905===_0x5ca665?this['_alignBeforeItem'](_0x347b77,_0x48ff5a):this['_alignAfterItem'](_0x48ff5a,_0x347b77);}['_recalculate'](_0x5b9958,_0x21f35f){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x478ab0,changedProp:_0x4ec11f}of this['_recalculateBuffer'])'top'===_0x4ec11f?this['_alignForTopChange'](_0x478ab0):this['_alignForBottomChange'](_0x478ab0);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5b9958,'changedProp':_0x21f35f});}['getSidebarItemView'](_0x5204d9){return this['_annotationToSidebarItemView']['get'](_0x5204d9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2f529d){const _0xff5172=this['getSidebarItemView'](_0x2f529d);this['stopListening'](_0xff5172),this['stopListening'](_0x2f529d['view']),_0xff5172['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2f529d),this['_sidebarItemViewToAnnotation']['delete'](_0xff5172);}['_createSidebarView'](){const _0x10e35d=new V(this['context']['locale']);return _0x10e35d['render'](),this['on']('change:_lastItem',(_0x2a8a6f,_0x293087,_0x306ef0,_0x40e3ff)=>{_0x40e3ff&&_0x10e35d['unbind']('minHeight'),_0x306ef0?_0x10e35d['bind']('minHeight')['to'](_0x306ef0,'bottom'):_0x10e35d['minHeight']=null;}),_0x10e35d;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0xfba988){const _0x143c8c=this['_sidebarItemViewToAnnotation']['get'](_0xfba988),_0x511ed1=_0x143c8c&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x143c8c)-0x1);return _0x511ed1&&this['getSidebarItemView'](_0x511ed1)||null;}['_getItemAfter'](_0x4297ec){const _0x38624b=this['_sidebarItemViewToAnnotation']['get'](_0x4297ec),_0x5a53bf=_0x38624b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x38624b)+0x1);return _0x5a53bf&&this['getSidebarItemView'](_0x5a53bf)||null;}['_alignBeforeItem'](_0x59d892,_0x577448){_0x59d892['updateHeight']();const _0x5c467a=R(_0x577448['bottom']+this['_spaceBetweenItems'],_0x59d892['top']);return!!_0x5c467a&&(this['_setItemTop'](_0x577448,_0x577448['top']-_0x5c467a),!0x0);}['_alignAfterItem'](_0x4cae77,_0x13ec8c){_0x4cae77['updateHeight']();const _0xa78271=R(_0x4cae77['bottom']+this['_spaceBetweenItems'],_0x13ec8c['top']);return!!_0xa78271&&(this['_setItemTop'](_0x13ec8c,_0x13ec8c['top']+_0xa78271,!0x1),!0x0);}['_alignToTargetRect'](_0x192acc){const _0x47ecec=this['_sidebarItemViewToAnnotation']['get'](_0x192acc);if(!_0x47ecec||!_0x47ecec['target']||!_0x47ecec['targetRect'])return;const _0x470eab=this['_getTargetTop'](_0x47ecec,_0x47ecec['targetRect']);this['_setItemTop'](_0x192acc,_0x470eab);}['_getTargetTop'](_0x5b7883,_0x3d517e){if(null===_0x3d517e)return 0x0;if(_0x5b7883['target']instanceof _0x19068a)return _0x3d517e['top'];{const _0x27adbc=new _0x19068a(this['view']['element'])['top'];return _0x3d517e['top']-_0x27adbc;}}['_setItemTop'](_0x5aca88,_0x43e6b0,_0x4b3b8a=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x4b3b8a&&(_0x43e6b0=Math['max'](_0x43e6b0,this['_getMaxAvailableTop'](_0x5aca88))),_0x5aca88['top']=_0x43e6b0;}['_getMaxAvailableTop'](_0x3f1355){let _0x4eb4b8=this['_getItemBefore'](_0x3f1355),_0x57f458=0x0;for(;_0x4eb4b8;)_0x4eb4b8['updateHeight'](),_0x57f458+=this['_spaceBetweenItems']+_0x4eb4b8['height'],_0x4eb4b8=this['_getItemBefore'](_0x4eb4b8);return _0x57f458;}}function R(_0x3bcc0f,_0x1abffc){return Math['max'](_0x3bcc0f-_0x1abffc,0x0);}function y(_0x22eed0){return null!==_0x22eed0&&'object'==typeof _0x22eed0&&0x1===_0x22eed0['nodeType'];}class e extends _0x397a12{['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(_0x5f5b62){super(_0x5f5b62),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x5cc10e(),this['_refreshPositioningDebounced']=_0x36b1fa(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x58318c=this['context']['plugins']['get'](M),_0x3740a3=this['context']['plugins']['get'](z);_0x58318c['register']('wideSidebar',this),_0x3740a3['container']&&_0x58318c['switchTo']('wideSidebar');}['setActiveAnnotation'](_0xb321c){if(_0xb321c===this['activeAnnotation'])return;const _0x33be2f=this['context']['plugins']['get'](z);_0x33be2f['_activeAnnotation']=_0xb321c;const _0x372b1e=this['activeAnnotation'];_0x33be2f['refresh']({'blurredAnnotation':_0x372b1e,'activatedAnnotation':_0xb321c}),this['activeAnnotation']=_0xb321c;}['attach'](_0x30b370){this['annotations']=_0x30b370;const _0x210f7a=this['context']['plugins']['get'](z);if(_0x210f7a['_annotations']=_0x30b370,this['isAttached'])throw new _0x376cd9('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x210f7a,'set:container',()=>{this['detach'](),this['listenTo'](_0x210f7a,'change:container',_0x59d911=>{_0x59d911['off'](),this['attach'](_0x30b370);});}),_0x210f7a['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x53fe72=_0x1962e2=>{_0x1962e2['updateTargetRect'](),_0x210f7a['addAnnotation'](_0x1962e2);};for(const _0x229270 of _0x30b370)_0x53fe72(_0x229270);this['listenTo'](_0x30b370,'add',(_0x1f9ffc,_0x326aa0)=>{_0x53fe72(_0x326aa0);}),this['listenTo'](_0x30b370,'remove',(_0x342d14,_0x30076a,_0x4209dc)=>{_0x210f7a['rearrange']({'removedAnnotation':_0x30076a,'previousAnnotation':_0x30b370['get'](_0x4209dc-0x1),'nextAnnotation':_0x30b370['get'](_0x4209dc+0x1)}),_0x30076a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x30b370,'focus',(_0x1c960f,_0x21700a)=>{this['setActiveAnnotation'](_0x21700a);}),this['listenTo'](_0x30b370,'blur',()=>{this['setActiveAnnotation'](null);});const _0x33a3ba=this['context']instanceof _0x1e6563?this['context']['editors']:new _0x5cc10e([this['context']]);for(const _0xdaa3fe of _0x33a3ba)this['_integrateWithEditorAnnotations'](_0xdaa3fe);this['listenTo'](_0x33a3ba,'add',(_0x39bf9c,_0x186b0e)=>{this['listenTo'](_0x186b0e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x186b0e);});}),this['listenTo'](_0x33a3ba,'remove',(_0x3696ba,_0x573016)=>{_0x573016['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x573016['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x376cd9('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1b8c19=this['context']['plugins']['get'](z);_0x1b8c19['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1b8c19),this['stopListening'](this['annotations']),this['context']instanceof _0x1e6563&&this['stopListening'](this['context']['editors']);for(const _0x3e703b of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3e703b);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x5287ba){if(!_0x5287ba['plugins']['has']('EditorAnnotations'))return;const _0x446546=_0x5287ba['plugins']['get']('EditorAnnotations'),_0x13c0fb=()=>{const _0x47a49d=_0x446546['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x47a49d[0x0]||null);};this['listenTo'](_0x446546,'refresh',_0x13c0fb),this['listenTo'](_0x446546,'blur',(_0x40fad0,{isAnnotationTracked:_0x60e320})=>{this['activeAnnotation']&&_0x60e320(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x446546,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x11c392=>{_0x446546['hasDomSelection']()&&(_0x13c0fb(),_0x11c392['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x446546);}['_destroyEditorAnnotationsIntegration'](_0x24c5dc){this['stopListening'](_0x24c5dc),this['_editorAnnotations']['remove'](_0x24c5dc);}}class D extends _0x6aa010{['counterView'];constructor(_0x46331d){super(_0x46331d);const _0x3d4929=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4d715b,_0x13834e)=>_0x4d715b?'...':_0x13834e['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',_0x3d4929['to']('annotationType',_0x4dc990=>'ck-annotation-counter__badge--'+_0x4dc990),_0x3d4929['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3d4929['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x397a12{['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(_0xbcc15b){super(_0xbcc15b),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x2be0f7),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5cc10e(),this['_refreshPositioningDebounced']=_0x36b1fa(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x352e8b(this['context']['locale']),this['balloonPanelView']=new _0x5ca41f(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x9a2b8f){this['annotations']=_0x9a2b8f;const _0x34280b=this['context']['plugins']['get'](z),_0x95548=this['balloonPanelView'];if(_0x34280b['_annotations']=_0x9a2b8f,this['isAttached'])throw new _0x376cd9('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x34280b,'set:container',()=>{this['detach'](),this['listenTo'](_0x34280b,'change:container',_0x4111bd=>{_0x4111bd['off'](),this['attach'](_0x9a2b8f);});}),_0x34280b['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3334d5=_0x57ef88=>{const _0x403f4f=new D(this['context']['locale']);_0x34280b['addAnnotation'](_0x57ef88,_0x403f4f),this['_annotationToNarrowView']['set'](_0x57ef88,_0x403f4f),_0x403f4f['bind']('isDirty','annotationType','number')['to'](_0x57ef88['view'],'isDirty','type','length'),_0x403f4f['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x95548['content']['first']!==_0x57ef88['view']?(this['_showBalloon'](_0x57ef88),_0x57ef88['view']['element']['focus'](),this['setActiveAnnotation'](_0x57ef88)):this['setActiveAnnotation'](null);});};for(const _0x7b780a of _0x9a2b8f)_0x3334d5(_0x7b780a);this['listenTo'](_0x9a2b8f,'add',(_0x15fc3e,_0x31eab7)=>{_0x3334d5(_0x31eab7);}),this['listenTo'](_0x9a2b8f,'remove',(_0x36fd58,_0x419f49,_0x45160d)=>{this['_annotationToNarrowView']['get'](_0x419f49)['destroy'](),this['_annotationToNarrowView']['delete'](_0x419f49),_0x34280b['rearrange']({'removedAnnotation':_0x419f49,'previousAnnotation':_0x9a2b8f['get'](_0x45160d-0x1),'nextAnnotation':_0x9a2b8f['get'](_0x45160d+0x1)}),_0x419f49===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x9a2b8f,'focus',(_0x52608b,_0x2aadf0)=>{this['setActiveAnnotation'](_0x2aadf0);}),this['listenTo'](_0x9a2b8f,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x14e2bb,_0x518e9d)=>{_0x518e9d['keyCode']===_0x281df7['esc']&&_0x95548['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x95548['content']['first']),this['_hideBalloon'](),_0x518e9d['stopPropagation'](),_0x518e9d['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x312696,_0x30610f)=>{const _0x32243d=_0x30610f['target'];_0x95548['isVisible']&&_0x95548['element']['contains'](_0x32243d)||_0x34280b['view']['element']['contains'](_0x32243d)||_0x312696['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x29f8d4=>_0x29f8d4['contains'](_0x32243d))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x502254=this['context']instanceof _0x1e6563?this['context']['editors']:new _0x5cc10e([this['context']]);for(const _0x505319 of _0x502254)this['_integrateWithEditorAnnotations'](_0x505319);this['listenTo'](_0x502254,'add',(_0x380e32,_0x11c0ec)=>{this['listenTo'](_0x11c0ec,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x11c0ec);});}),this['listenTo'](_0x502254,'remove',(_0x2be6ae,_0x50935b)=>{_0x50935b['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x50935b['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x3e8e7f){if(_0x3e8e7f===this['activeAnnotation'])return;const _0xaf2945=this['context']['plugins']['get'](z);if(_0xaf2945['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x3e8e7f,'disableAnimationOnActivatedAnnotation':!0x0}),_0x3e8e7f)_0xaf2945['getSidebarItemView'](_0x3e8e7f)?this['_showBalloon'](_0x3e8e7f):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x3e8e7f;}['detach'](){if(!this['isAttached'])throw new _0x376cd9('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1151be=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x159a33=>_0x159a33['destroy']()),this['_annotationToNarrowView']['clear'](),_0x1151be['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x1e6563&&this['stopListening'](this['context']['editors']);for(const _0x15487d of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x15487d);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'](_0x515769){if(!_0x515769['plugins']['has']('EditorAnnotations'))return;const _0x31a629=_0x515769['plugins']['get']('EditorAnnotations'),_0x5d478e=this['context']['plugins']['get'](z),_0x5359d8=this['annotations'],_0x4d67e8=this['balloonPanelView'],_0x2c59be=()=>{const _0x2c6186=_0x31a629['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2c6186),this['setActiveAnnotation'](_0x2c6186[0x0]||null);};this['listenTo'](_0x31a629,'refresh',_0x2c59be),this['listenTo'](_0x31a629,'blur',(_0x5beb28,{isAnnotationTracked:_0x18f835})=>{this['activeAnnotation']&&_0x18f835(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x31a629,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5359d8,'blur',_0x5d4b67=>{_0x31a629['hasDomSelection']()&&_0x5d4b67['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x49d2cf,_0x2ea833)=>{const _0x2ea76d=_0x2ea833['target'];_0x4d67e8['isVisible']&&_0x4d67e8['element']['contains'](_0x2ea76d)||_0x5d478e['view']['element']['contains'](_0x2ea76d)||this['activeAnnotation']&&_0x31a629['hasDomSelection']()&&(_0x2c59be(),_0x49d2cf['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x31a629);}['_destroyEditorAnnotationsIntegration'](_0x5c9dc1){_0x5c9dc1&&(this['stopListening'](_0x5c9dc1),this['_editorAnnotations']['remove'](_0x5c9dc1));}['_setSelectedAnnotations'](_0x2e4bbc){for(const _0x1c7ea1 of this['_selectedAnnotations'])_0x2e4bbc['includes'](_0x1c7ea1)||this['_manuallyClosedAnnotationViews']['delete'](_0x1c7ea1['view']);this['_selectedAnnotations']=_0x2e4bbc;}['_refreshPositioning'](){const _0x451913=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x451913['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4658e2){if(this['_manuallyClosedAnnotationViews']['has'](_0x4658e2['view']))return;const _0x293372=this['balloonPanelView']['content']['first'];_0x293372!==_0x4658e2['view']?(_0x293372&&this['_detachListeners'](_0x293372),this['_attachListeners'](_0x4658e2['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4658e2['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x1db32c=this['balloonPanelView']['content']['first'],_0x256d75=_0x1db32c&&this['annotations']['getByView'](_0x1db32c);if(!_0x256d75||!this['_annotationToNarrowView']['has'](_0x256d75))return;const _0x4748f5=this['_annotationToNarrowView']['get'](_0x256d75)['element'],_0x1a399d=(function(){const _0x5b6f3b=_0x5ca41f['defaultPositions'];return[_0x5b6f3b['southArrowNorthEast'],_0x5b6f3b['northArrowSouthEast'],_0x5b6f3b['southArrowNorth'],_0x5b6f3b['northArrowSouth'],_0x5b6f3b['southArrowNorthWest'],_0x5b6f3b['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x4748f5,'positions':_0x1a399d});}['_hideBalloon'](){const _0x388916=this['balloonPanelView'],_0x5daaf2=_0x388916['content']['first'];_0x5daaf2&&(this['_detachListeners'](_0x5daaf2),_0x388916['unpin'](),_0x388916['content']['clear']());}['_attachListeners'](_0x1944ba){this['listenTo'](_0x1944ba,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x1944ba,'Esc',(_0x226df2,_0x39df18)=>{this['_manuallyClosedAnnotationViews']['add'](_0x1944ba),this['_hideBalloon'](),_0x39df18();});}['_detachListeners'](_0x359da2){this['stopListening'](_0x359da2);}}class c extends _0x1cfa22{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x4d02a6,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49cf5d){super(_0x49cf5d),_0x49cf5d['editing']['view']['addObserver'](_0x2b404f),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x49cf5d['plugins']['get'](_0x4d02a6),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x274994=this['editor']['plugins']['get'](M);_0x274994['context']===this['editor']&&(_0x274994['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x2a42d2,_0x3b1c3c)=>{const _0x48d1c6=this['_balloon'];if(this['isAttached']&&_0x48d1c6['visibleView']){const _0x4bca2c=this['annotations']['getByView'](_0x48d1c6['visibleView']);_0x4bca2c&&this['_closeAnnotation'](_0x4bca2c),_0x3b1c3c();}}));}['afterInit'](){const _0x5ae3d8=this['editor']['plugins']['get'](M);_0x5ae3d8['context']===this['editor']&&(_0x5ae3d8['hasActive']()||_0x5ae3d8['switchTo']('inline'));}['setActiveAnnotation'](_0x39bc31){_0x39bc31!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x39bc31&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x39bc31)&&this['_addAnnotationToBalloon'](_0x39bc31,!0x0),_0x39bc31['isActive']=!0x0),_0x39bc31||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x39bc31);}['attach'](_0x53cbec){this['annotations']=_0x53cbec;const _0x25d8a2=this['editor']['plugins']['get'](M),_0x315ab0=this['_balloon'];if(this['isAttached'])throw new _0x376cd9('inlineannotations-attach-already-attached',this);if(_0x25d8a2['context']!==this['editor'])throw new _0x376cd9('inlineannotations-not-allowed-with-context',this);const _0x4fc700=this['editor']['plugins']['get'](P);this['listenTo'](_0x4fc700,'refresh',()=>{const _0x108ed8=_0x4fc700['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x27b079,_0x2cf5de;!this['_forceRefresh']&&(_0x27b079=_0x108ed8,_0x2cf5de=this['_selectedAnnotations'],_0x27b079['length']===_0x2cf5de['length']&&_0x27b079['every'](_0x5c5d4a=>_0x2cf5de['includes'](_0x5c5d4a)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x108ed8),this['setActiveAnnotation'](_0x108ed8[0x0]||null));}),this['listenTo'](_0x4fc700,'blur',(_0x4bfa44,{isAnnotationTracked:_0x265f4c})=>{this['activeAnnotation']&&_0x265f4c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x52f5e9,_0x3ca04e,_0x25dbf1)=>{_0x25dbf1||this['setActiveAnnotation'](null);}),this['listenTo'](_0x53cbec,'remove',(_0x212d31,_0x131023)=>{this['_removeAnnotationFromBalloon'](_0x131023),_0x131023===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x315ab0,'change:visibleView',(_0x4536db,_0x4b41e9,_0x4068fc,_0x23f767)=>{_0x23f767&&this['stopListening'](_0x23f767);const _0x5f0410=_0x53cbec['getByView'](_0x4068fc);_0x4068fc&&_0x5f0410&&(this['listenTo'](_0x4068fc,'change:height',()=>{_0x315ab0['updatePosition']();}),this['listenTo'](_0x4068fc,'Esc',()=>{this['_closeAnnotation'](_0x5f0410),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x5f0410&&this['setActiveAnnotation'](_0x5f0410));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x315ab0['visibleView']&&(_0x53cbec['getByView'](_0x315ab0['visibleView'])&&_0x315ab0['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 _0x376cd9('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4f645b of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4f645b);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x3acbd8){for(const _0xc3b545 of this['_selectedAnnotations'])_0x3acbd8['includes'](_0xc3b545)||this['_manuallyClosed']['delete'](_0xc3b545);for(const _0x3429ab of this['annotations'])_0x3acbd8['includes'](_0x3429ab)||this['_removeAnnotationFromBalloon'](_0x3429ab);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1081a6 of _0x3acbd8)this['_addAnnotationToBalloon'](_0x1081a6);}this['_selectedAnnotations']=_0x3acbd8;}['_addAnnotationToBalloon'](_0x48ef0d,_0x5a6b5c=!0x1){this['_manuallyClosed']['has'](_0x48ef0d)||(this['_addedAnnotations']['has'](_0x48ef0d)||this['_balloon']['hasView'](_0x48ef0d['view'])||(this['_addedAnnotations']['add'](_0x48ef0d),this['_balloon']['add']({'stackId':_0x48ef0d['view']['id'],'view':_0x48ef0d['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x48ef0d)}})),_0x5a6b5c&&this['_balloon']['showStack'](_0x48ef0d['view']['id']));}['_getBalloonTargetForAnnotation'](_0x1c8cea){const _0x1084b3=_0x1c8cea['target'],_0x5aa4f0=this['editor']['editing']['view'],_0x3782f0=_0x5aa4f0['document']['selection']['getFirstRange'](),_0x27b5f1=_0x5aa4f0['domConverter']['viewRangeToDom'](_0x3782f0);if(_0x27b5f1['collapse'](!0x0),_0x1084b3){if(_0x1084b3 instanceof _0x19068a)return _0x1084b3;let _0x53b837=[];for(const _0x150edd of _0x1084b3)_0x53b837['push'](...(_0x5a1c1e=_0x150edd['getClientRects'](),Array['from'](_0x5a1c1e)['map'](DOMRect['fromRect'])));_0x53b837=function(_0x14c09e){const _0x3bb0d2=[];let _0x533ed4=_0x14c09e[0x0];for(let _0x84f959=0x1;_0x84f959<_0x14c09e['length'];_0x84f959++)b(_0x533ed4,_0x14c09e[_0x84f959])?_0x533ed4['width']+=_0x14c09e[_0x84f959]['width']:(_0x3bb0d2['push'](_0x533ed4),_0x533ed4=_0x14c09e[_0x84f959]);return _0x3bb0d2['push'](_0x533ed4),_0x3bb0d2;}(_0x53b837);const _0x1039a0=_0x27b5f1['getBoundingClientRect']();return _0x53b837['find'](_0x1304a2=>_0x1304a2['top']<=_0x1039a0['top']&&_0x1304a2['bottom']>=_0x1039a0['bottom']&&_0x1304a2['left']<=_0x1039a0['left']&&_0x1304a2['right']>=_0x1039a0['right'])||_0x53b837[0x0];}var _0x5a1c1e;return _0x1c8cea['targetRect']||_0x27b5f1;}['_removeAnnotationFromBalloon'](_0x5dbaf4){this['_addedAnnotations']['has'](_0x5dbaf4)&&this['_balloon']['hasView'](_0x5dbaf4['view'])&&(this['_addedAnnotations']['delete'](_0x5dbaf4),this['_balloon']['remove'](_0x5dbaf4['view']));}['_closeAnnotation'](_0x192f47){this['_manuallyClosed']['add'](_0x192f47),this['_removeAnnotationFromBalloon'](_0x192f47);}}function b(_0x37b4ef,_0x1c5b1c){return _0x37b4ef['top']===_0x1c5b1c['top']&&_0x37b4ef['bottom']===_0x1c5b1c['bottom']&&_0x37b4ef['right']===_0x1c5b1c['left'];}var it='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class st extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x3b42b0,_0x263acb){super(_0x3b42b0),this['set']('isEmpty',!_0x263acb['length']),this['focusTracker']=new _0x337c5d(),this['_annotationViews']=_0x263acb,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x263acb,'focusTracker':this['focusTracker']}),this['listenTo'](_0x263acb,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x263acb,'remove',(_0x4c1774,_0x28843e)=>{_0x28843e['isActive']&&this['focus'](),_0x263acb['length']||(this['isEmpty']=!0x0);});const _0x3f3836=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3b42b0,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x263acb},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3f3836['if']('isEmpty','ck-hidden',_0x4e73ba=>!_0x4e73ba)]},'children':[{'text':S(_0x3b42b0,'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 _0x5bfcda of this['_annotationViews'])this['focusTracker']['add'](_0x5bfcda['element']);this['_annotationViews']['on']('change',(_0x2c4452,{added:_0x4b48ae,removed:_0x3c3cc0})=>{for(const _0xb0ba40 of _0x4b48ae)this['focusTracker']['add'](_0xb0ba40['element']);for(const _0x4083ad of _0x3c3cc0)this['focusTracker']['remove'](_0x4083ad['element']);});}}class f extends _0x397a12{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x3352f1){super(_0x3352f1),this['archivedThreads']=new _0x5cc10e();}['init'](){const _0x3ca6f8=this['context'],_0x3ee520=_0x3ca6f8['plugins']['get'](o),_0x3ee75d=_0x3ca6f8['plugins']['get'](N);this['listenTo'](_0x3ee520,'addCommentThread',(_0x3a27e8,{threadId:_0x10bf9e})=>{const _0x4c0f78=_0x3ee520['getCommentThread'](_0x10bf9e);_0x4c0f78['archivedAt']&&this['archivedThreads']['add'](_0x4c0f78,this['_calculatePosition'](_0x4c0f78['archivedAt'])),this['listenTo'](_0x4c0f78,'change:archivedAt',(_0x54e63a,_0x220dff,_0x3db240)=>{_0x3db240?this['archivedThreads']['has'](_0x4c0f78)||this['archivedThreads']['add'](_0x4c0f78,this['_calculatePosition'](_0x4c0f78['archivedAt'])):this['archivedThreads']['has'](_0x4c0f78)&&this['archivedThreads']['remove'](_0x4c0f78);});}),this['listenTo'](_0x3ee520,'removeCommentThread',(_0x32dbbc,{threadId:_0xb7bc6d})=>{const _0x3c2f95=_0x3ee520['getCommentThread'](_0xb7bc6d);this['stopListening'](_0x3c2f95),this['archivedThreads']['has'](_0x3c2f95)&&this['archivedThreads']['remove'](_0x3c2f95);},{'priority':'highest'}),this['listenTo'](_0x3ee75d['collection'],'focus',(_0x162ab5,_0x4f60ed)=>{_0x4f60ed['isVisible']||(_0x4f60ed['isActive']=!0x0,_0x3ee75d['activate'](_0x4f60ed));});}['_calculatePosition'](_0x339316){const _0x867fc4=[...this['archivedThreads']]['findIndex'](_0x2cfa98=>_0x2cfa98['archivedAt']<_0x339316);return _0x867fc4>-0x1?_0x867fc4:this['archivedThreads']['length'];}}class a extends _0x1cfa22{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x1f0c1d];}constructor(_0x1c8c81){super(_0x1c8c81),this['annotationViews']=new _0xaf971f(),this['_pendingThreads']=[];}['init'](){const _0x64c322=this['editor'],_0x4c99dd=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x64c322['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x6aa010,!0x0)),_0x64c322['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x412a62=this['_createCommentsArchiveButton'](_0x574a77);return _0x412a62['set']({'role':'menuitemcheckbox'}),_0x412a62;});const _0x32534c=_0x64c322['plugins']['get'](f),_0xd8e551=_0x64c322['plugins']['get']('Annotations'),_0x13f19=_0x64c322['plugins']['get']('CommentsRepository');_0x32534c['archivedThreads']['forEach'](_0x56455f=>{this['_handleNewThread'](_0x56455f);}),this['listenTo'](_0x32534c['archivedThreads'],'add',(_0x8ba846,_0x4d019d)=>{this['_handleNewThread'](_0x4d019d);}),this['listenTo'](_0xd8e551['collection'],'add',(_0x4ea692,_0x46cc81)=>{const _0x1c5266=this['_pendingThreads']['find'](_0xa961f3=>{const _0x3fb408=_0x13f19['_threadToController']['get'](_0xa961f3);return _0x3fb408&&_0x46cc81['innerView']===_0x3fb408['view'];});if(_0x1c5266){const _0x162b87=this['_calculatePosition'](_0x1c5266['archivedAt']);this['annotationViews']['add'](_0x46cc81['view'],_0x162b87),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1c5266),0x1);}}),this['listenTo'](_0x32534c['archivedThreads'],'remove',(_0x52555b,_0x42a858)=>{const _0x1e06e1=_0x64c322['config']['get']('collaboration.channelId');if(!_0x1e06e1||_0x42a858['channelId']===_0x1e06e1){const _0x279cc5=_0x13f19['_threadToController']['get'](_0x42a858),_0x5efe38=_0xd8e551['getByInnerView'](_0x279cc5['view']);this['annotationViews']['remove'](_0x5efe38['view']),this['stopListening'](_0x5efe38['focusableElements']);}}),this['listenTo'](_0xd8e551['collection'],'add',(_0x2d4344,_0x4ab10b)=>{this['listenTo'](_0x4ab10b,'escape',_0x4c99dd);}),this['listenTo'](_0xd8e551['collection'],'remove',(_0x3dba14,_0x546797)=>{this['stopListening'](_0x546797,'escape',_0x4c99dd);});}['_handleNewThread'](_0x39f621){const _0x12f9ef=this['editor']['plugins']['get']('CommentsRepository'),_0x529d82=this['editor']['plugins']['get']('Annotations'),_0x3923a4=this['editor']['config']['get']('collaboration.channelId');if(!_0x3923a4||_0x39f621['channelId']===_0x3923a4){const _0x301178=_0x12f9ef['_threadToController']['get'](_0x39f621);if(!_0x301178)return void this['_pendingThreads']['push'](_0x39f621);const _0x17b8a5=this['_calculatePosition'](_0x39f621['archivedAt']),_0x4544ec=_0x529d82['getByInnerView'](_0x301178['view']);_0x4544ec['isVisible']&&_0x529d82['_visibleAnnotations']['remove'](_0x4544ec),this['annotationViews']['add'](_0x4544ec['view'],_0x17b8a5);}}['_calculatePosition'](_0xc89e12){const _0x2475ec=this['editor']['config']['get']('collaboration.channelId'),_0x1bdfb6=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x494968=>_0x494968['channelId']===_0x2475ec)['findIndex'](_0x14a8fe=>_0x14a8fe['archivedAt']<_0xc89e12);return _0x1bdfb6<0x0||_0x1bdfb6>this['annotationViews']['length']?this['annotationViews']['length']:_0x1bdfb6-0x1;}['_toggleDialog'](){const _0x25cbba=this['editor'],_0x59a6c1=_0x25cbba['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new st(_0x25cbba['locale'],this['annotationViews'])),'commentsArchive'===_0x59a6c1['id']?_0x59a6c1['hide']():_0x59a6c1['show']({'id':'commentsArchive','title':S(_0x25cbba['locale'],'COMMENTS_ARCHIVE'),'icon':it,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':tt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x533707,_0x1d2a13=!0x1){const _0x302ca7=this['editor']['locale'],_0x43b0ca=this['editor']['plugins']['get']('Dialog'),_0x1877da=new _0x533707(_0x302ca7);return _0x1877da['bind']('isEnabled')['to'](this,'isEnabled'),_0x1877da['bind']('isOn')['to'](_0x43b0ca,'id',_0x40eddb=>'commentsArchive'===_0x40eddb),_0x1877da['set']({'label':S(_0x302ca7,'COMMENTS_ARCHIVE'),'icon':it,'isToggleable':!0x0}),_0x1d2a13&&(_0x1877da['tooltip']=!0x0),this['listenTo'](_0x1877da,'execute',()=>this['_toggleDialog']()),_0x1877da;}['_hideDialogOnAnnotationEscape']=_0x1de32a=>{const _0x452a30=_0x1de32a['source'];if(!this['annotationViews']['has'](_0x452a30['view']))return;const _0x321c8d=this['editor']['plugins']['get']('Dialog');_0x321c8d['isOpen']&&'commentsArchive'===_0x321c8d['id']&&(_0x321c8d['hide'](),_0x1de32a['stop']());};}class p extends _0x1cfa22{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,gt as CommentThreadController,ie as CommentThreadInputView,Tt as CommentThreadView,_t 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};
|