@ckeditor/ckeditor5-comments 44.0.0 → 44.1.0-alpha.0
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/annotations/annotation.d.ts +1 -1
- package/dist/annotations/annotationcollection.d.ts +1 -1
- package/dist/annotations/annotations.d.ts +1 -1
- package/dist/annotations/annotationsuis.d.ts +1 -1
- package/dist/annotations/editorannotations.d.ts +1 -1
- package/dist/annotations/inlineannotations.d.ts +1 -1
- package/dist/annotations/narrowsidebar.d.ts +1 -1
- package/dist/annotations/sidebar.d.ts +1 -1
- package/dist/annotations/view/annotationcounterbuttonview.d.ts +1 -1
- package/dist/annotations/view/annotationview.d.ts +1 -1
- package/dist/annotations/view/sidebaritemview.d.ts +1 -1
- package/dist/annotations/view/sidebarview.d.ts +1 -1
- package/dist/annotations/widesidebar.d.ts +1 -1
- package/dist/augmentation.d.ts +1 -1
- package/dist/comments/addcommentthreadcommand.d.ts +1 -1
- package/dist/comments/commentsarchive.d.ts +1 -1
- package/dist/comments/commentsarchiveui.d.ts +1 -1
- package/dist/comments/commentsediting.d.ts +3 -2
- package/dist/comments/commentsrepository.d.ts +1 -1
- package/dist/comments/commentsui.d.ts +1 -1
- package/dist/comments/integrations/clipboard.d.ts +1 -1
- package/dist/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/dist/comments/integrations/importword.d.ts +1 -1
- package/dist/comments/integrations/showcommenthighlights.d.ts +23 -0
- package/dist/comments/ui/commenteditor/commenteditor.d.ts +1 -1
- package/dist/comments/ui/commenteditor/commenteditorui.d.ts +1 -1
- package/dist/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
- package/dist/comments/ui/commentthreadcontroller.d.ts +1 -1
- package/dist/comments/ui/view/basecommentthreadview.d.ts +1 -1
- package/dist/comments/ui/view/basecommentview.d.ts +1 -1
- package/dist/comments/ui/view/collapsedcommentsview.d.ts +1 -1
- package/dist/comments/ui/view/commentcontentview.d.ts +1 -1
- package/dist/comments/ui/view/commentinputview.d.ts +1 -1
- package/dist/comments/ui/view/commentsarchiveview.d.ts +1 -1
- package/dist/comments/ui/view/commentslistview.d.ts +1 -1
- package/dist/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
- package/dist/comments/ui/view/commentthreadheaderview.d.ts +1 -1
- package/dist/comments/ui/view/commentthreadinputview.d.ts +1 -1
- package/dist/comments/ui/view/commentthreadview.d.ts +1 -1
- package/dist/comments/ui/view/commentview.d.ts +1 -1
- package/dist/comments.d.ts +1 -1
- package/dist/commentsonly.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/index-content.css +30 -0
- package/dist/index-editor.css +0 -27
- package/dist/index.css +19 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -9
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/common-translations.d.ts +1 -1
- package/dist/utils/createmutationobserver.d.ts +1 -1
- package/package.json +16 -15
- package/src/annotations/annotation.d.ts +1 -1
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +3 -2
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1 -1
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.d.ts +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.d.ts +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/integrations/showcommenthighlights.d.ts +19 -0
- package/src/comments/integrations/showcommenthighlights.js +23 -0
- package/src/comments/ui/commenteditor/commenteditor.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +1 -1
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +1 -1
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +1 -1
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/annotation-inline.css +1 -1
- package/theme/annotation.css +1 -1
- package/theme/comment.css +1 -1
- package/theme/commentinput.css +1 -1
- package/theme/commentmarker.css +3 -3
- package/theme/commentsarchive.css +1 -1
- package/theme/commentthread.css +1 -1
- package/theme/sidebar-narrow.css +1 -1
- package/theme/sidebar.css +1 -1
package/dist/index.js
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Editor as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
((()=>Qt)());constructor(_0x3abaec={}){function _0x578f3c(_0x2f0bf9){return _0x2f0bf9['map'](_0x547f77=>String['fromCharCode'](_0x547f77))['join']('');}(_0x3abaec=Object['assign']({},_0x3abaec))['plugins']||(_0x3abaec['plugins']=Rt['defaultPlugins']),super(_0x3abaec),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[_0x578f3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x578f3c([0x76,0x69,0x65,0x77])][_0x578f3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x578f3c([0x61,0x75,0x74,0x6f]),this[_0x578f3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x578f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x578f3c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x578f3c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x578f3c([0x6f,0x6b])});}['create'](){const _0x42c8ab=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x42c8ab))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5b768f=>{const _0x5c557e=this['model']['document']['getRoot'](),_0x34bfdc=_0x5c557e&&_0x5c557e['getChild'](_0x5c557e['childCount']-0x1);_0x5b768f['setSelection'](_0x34bfdc,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x193384=this['editing']['view'],_0x522f9d=_0x193384['document']['getRoot'](),_0x17140f=_0x522f9d['getChild'](0x0);_0x522f9d['childCount']>0x1||!_0x17140f||'p'!=_0x17140f['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x193384,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x17140f['placeholder']=this['placeholder']),St({'view':_0x193384,'element':_0x17140f,'keepOnFocus':!0x0}),this['placeholderElement']=_0x17140f);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x321975,_0x1cf929={}){super(_0x321975),this['editor']=null,this['_editorConfig']=_0x1cf929,this['set']('value',_0x1cf929['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x321975,'Reply...')),this['set']('submitLabel',S(_0x321975,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x5ad3fb(),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',(_0x1c0649,_0x24def9)=>{this['cancelButtonView']['fire']('execute'),_0x24def9();}),this['keystrokes']['set']('Ctrl+Enter',(_0x438b24,_0x570bd6)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x570bd6());}),this['on']('submit',(_0x279b7c,_0x10d002)=>{_0x10d002['length']>0xfde8?(alert(S(_0x321975,'TOO_LONG_COMMENT_ALERT',[_0x10d002['length'],0xfde8])),_0x279b7c['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x117e4c=this['editor'];this['element']['insertBefore'](_0x117e4c['ui']['element'],this['element']['firstChild']),_0x117e4c['model']['document']['on']('change',()=>this['value']=_0x117e4c['getData']()),_0x117e4c['bind']('placeholder')['to'](this),this['focusables']['add'](_0x117e4c['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4f6e8e){-0x1===_0x4f6e8e?(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:_0x4acdc7}=this,_0x552398=new _0x59879a(_0x4acdc7);return _0x552398['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x552398['withText']=!0x0,_0x552398['bind']('label')['to'](this,'submitLabel'),_0x552398['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x552398['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x356501,_0x549cff)=>!_0x549cff&&!!_0x356501['trim']()),_0x552398;}['_createCancelButton'](){const {locale:_0x151305}=this,_0x496ccc=new _0x59879a(_0x151305);return _0x496ccc['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x496ccc['label']=S(_0x151305,'Cancel'),_0x496ccc['withText']=!0x0,_0x496ccc['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x496ccc;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4764fe=>{this['focusTracker']['add'](_0x4764fe['element']);}),this['focusables']['on']('change',(_0x59550c,_0xd1fa2)=>{for(const _0x28b88d of Array['from'](_0xd1fa2['added'])['reverse']())this['focusTracker']['add'](_0x28b88d['element']);});}}class ie extends kt{constructor(_0x1ddaf2,_0x556ba8,_0x18af8d){super(_0x1ddaf2),this['commentInputView']=new hs(_0x1ddaf2,_0x18af8d),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x59a4cb,_0x275e27)=>_0x59a4cb||!!_0x275e27),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 _0x5e4afb(_0x1ddaf2,_0x556ba8),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'](_0xa91a90){this['commentInputView']['focus'](_0xa91a90);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x31fbfe,_0x21827f)=>{const {submitButtonView:_0x22a52d,cancelButtonView:_0x5dd105,editor:_0x295675}=this['commentInputView'];[_0x22a52d['element'],_0x5dd105['element'],_0x295675?_0x295675['editing']['view']['getDomRoot']():null]['filter'](_0xef4e70=>_0xef4e70)['some'](_0xca6f3a=>_0xca6f3a['contains'](_0x21827f['target']))||(this['focus'](),_0x21827f['preventDefault']());});}}class cs extends kt{constructor(_0x3aefd7){super(_0x3aefd7);const _0x293e78=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x293e78['to']('count',_0xbf5c70=>S(_0x3aefd7,'NUMBER_OF_COMMENTS',_0xbf5c70))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x388ca5,_0x1dd6c3,_0x210b2d){super(_0x388ca5);const _0x79f81c=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1dd6c3['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1dd6c3,this['_config']=_0x210b2d,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x5ad3fb(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3e6b19=>this['commentViews']['map'](_0x1ba4b3=>_0x1ba4b3['element'])['includes'](_0x3e6b19['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x388ca5),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x31eaff=>_0x31eaff-this['_config']['maxCommentsWhenCollapsed']);for(const _0x153715 of _0x1dd6c3['comments'])this['_handleNewCommentModel'](_0x153715);this['_handleInfoComment'](),this['listenTo'](_0x1dd6c3['comments'],'add',(_0x6571f3,_0x3e2864)=>{const _0x3aec64=this['_calculatePosition'](_0x3e2864);this['length']++,this['_handleNewCommentModel'](_0x3e2864,_0x3aec64),this['refreshVisibleViews']();}),this['listenTo'](_0x1dd6c3['comments'],'remove',(_0x55dc6a,_0x978255)=>{this['length']--,this['_handleRemoveCommentModel'](_0x978255),this['refreshVisibleViews']();}),this['listenTo'](_0x1dd6c3,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1dd6c3,'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',_0x79f81c['if']('length','ck-hidden',_0x2e784c=>!_0x2e784c)],'aria-label':S(_0x388ca5,'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'](_0x57003a){-0x1===_0x57003a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x36e669 of this['commentViews'])_0x36e669['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x36a559,_0x2c5fa5){const _0x1df4f5=new this['_config']['CommentView'](this['locale'],_0x36a559,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1df4f5['viewUid']=_0x36a559['id'],_0x1df4f5['delegate']('removeComment')['to'](this),_0x1df4f5['delegate']('updateComment')['to'](this),_0x1df4f5['delegate']('resolveCommentThread')['to'](this),_0x1df4f5['delegate']('editorReady')['to'](this),_0x1df4f5['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1df4f5,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1df4f5,_0x2c5fa5);}['_calculatePosition'](_0xb564){const _0x5cde25=this['_model']['_findOptimalIndex'](_0xb564);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0xb564['authoredAt']?_0x5cde25-0x1:_0x5cde25:_0x5cde25-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4b3450={'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'],_0x4b3450,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4b3450));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x7c1823){const _0x16f56b=this['commentViews']['remove'](_0x7c1823['id']);this['stopListening'](_0x16f56b),_0x16f56b['isEditMode']&&this['_updateHasDirtyComment'](),_0x16f56b['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x38b233=>_0x38b233['isEditMode']);}['_rearrangeCollapse'](){const _0x55ae48=function(_0x46a2aa){const _0x49f634=new _0x836a36();for(const _0x1ba9df of _0x46a2aa)_0x49f634['add'](_0x1ba9df);return _0x49f634;}(this['commentViews']),_0x158ae5=this['_collapsedCommentsView']['count'];for(let _0x2e7224=0x1;_0x2e7224<=_0x158ae5;_0x2e7224++)_0x55ae48['remove'](0x1);for(const _0x503e67 of _0x55ae48)_0x503e67['collapse']();_0x158ae5>0x0&&_0x55ae48['add'](this['_collapsedCommentsView'],0x1),ns(_0x13ef69(Array['from'](this['visibleViews']),Array['from'](_0x55ae48)),this['visibleViews'],_0x55ae48);}['_rearrangeExpand'](){ns(_0x13ef69(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x536123 of this['visibleViews'])_0x536123['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2c87a1=>{this['focusTracker']['add'](_0x2c87a1['element']),this['keystrokes']['listenTo'](_0x2c87a1['element']);}),this['commentViews']['on']('change',(_0x365746,_0x9bb3e0)=>{for(const _0x22413a of _0x9bb3e0['removed'])this['focusTracker']['remove'](_0x22413a['element']),this['keystrokes']['stopListening'](_0x22413a['element']);for(const _0xb545b1 of Array['from'](_0x9bb3e0['added'])['reverse']())this['focusTracker']['add'](_0xb545b1['element']),this['keystrokes']['listenTo'](_0xb545b1['element']);});}}function ns(_0x8b8dd9,_0x286555,_0x5b6eeb){let _0x4e4878=0x0;for(const _0xc91747 of _0x8b8dd9)switch(_0xc91747){case'insert':_0x286555['add'](_0x5b6eeb['get'](_0x4e4878),_0x4e4878),_0x4e4878++;break;case'delete':_0x286555['remove'](_0x4e4878);break;case'equal':_0x4e4878++;}}class as extends kt{constructor(_0x163853){super(_0x163853);const _0x2d1c0d=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x2d1c0d['to']('contextValue',_0x1c9630=>S(_0x163853,'THREAD_CONTEXT_LABEL',_0x1c9630)),'tabindex':-0x1},'children':[{'text':_0x2d1c0d['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xf3aa09,_0x1755ad){super(_0xf3aa09);const _0x28034a=this['bindTemplate'];this['_model']=_0x1755ad,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x5ad3fb(),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',_0x563517=>!!_0x563517),this['bind']('contextValue')['to'](this['_model'],'context',_0x578f28=>_0x578f28&&_0x578f28['value']?this['_trimContextValue'](_0x578f28['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',_0x28034a['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 _0x1618f6=new _0x59879a(this['locale']);return _0x1618f6['label']=S(this['locale'],'Reopen'),_0x1618f6['tooltip']=S(this['locale'],'Reopen'),_0x1618f6['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>',_0x1618f6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5ac321=>!_0x5ac321),_0x1618f6['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x707098,_0x48aae3)=>_0x707098&&_0x48aae3),_0x1618f6['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1618f6;}['_trimContextValue'](_0x1dc465){if(_0x1dc465['length']<0x96)return _0x1dc465;const _0x223aa8=_0x1dc465['lastIndexOf']('\x20',0x93);return _0x1dc465['substring'](0x0,_0x223aa8>-0x1?_0x223aa8:0x93)+'...';}['_attachContextActions'](){const _0x23633d=this['element']['querySelector']('.ck-context'),_0x2454bd=_0x23633d['querySelector']('.ck-context__value');this['listenTo'](_0x23633d,'mouseenter',()=>{_0x2454bd['offsetWidth']<_0x2454bd['scrollWidth']&&_0x23633d['classList']['add']('overlay');}),this['listenTo'](_0x23633d,'mouseleave',()=>{_0x23633d['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x840054 of this['focusables'])this['focusTracker']['add'](_0x840054['element']),this['keystrokes']['listenTo'](_0x840054['element']);}['_createContextView'](){const _0x593555=new as(this['locale']);return _0x593555['bind']('contextValue')['to'](this),_0x593555;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x45db8f,_0xccb840,_0x37d038,_0x4fdd25){super(_0x45db8f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xccb840,this['_localUser']=_0x37d038,this['_config']=_0x4fdd25,this['commentThreadHeaderView']=new Yt(_0x45db8f,_0xccb840),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x45db8f,S(_0x45db8f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x45db8f,_0xccb840,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4fdd25)),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',(_0x2f1026,_0x523af7)=>_0x2f1026||!!_0x523af7),this['bind']('isUnlinked')['to'](_0xccb840,'unlinkedAt',_0x2c7085=>!!_0x2c7085),this['bind']('ariaLabel')['to'](this,'length',_0x29f85b=>{const _0x3e911a=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x29f85b,_0x3e911a]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x5ad3fb(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xc24f6e=>_0xc24f6e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4796b7=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5df266=_0x4796b7['commentInputView'];return _0x4796b7['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5df266,'value',(_0x545673,_0x5184c4,_0x40a9ec,_0x2ba560,_0x1c3c83)=>!!_0x1c3c83||!!_0x2ba560&&_0x40a9ec&&!_0x5184c4||_0x545673&&_0x40a9ec&&!_0x5184c4),_0x5df266['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x12f9f5,_0x2ac499,_0x564357)=>{let _0x1808b9;return _0x1808b9=_0x564357&&_0x2ac499?'Reply\x20to\x20reopen\x20discussion...':_0x12f9f5?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x1808b9);}),_0x5df266['bind']('submitLabel')['to'](this,'length',_0x461a17=>S(this['locale'],_0x461a17?'Reply':'Comment')),_0x5df266['on']('submit',(_0x930a9b,_0x2ccae1)=>{this['fire']('addComment',_0x2ccae1),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5df266['on']('cancel',()=>{this['focus']();}),_0x5df266['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5df266['on']('cancel',_0x2701b8=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2701b8['stop']());}),this['on']('change:isActive',(_0x2a2261,_0x4ac8e6,_0x1c6e7c)=>{_0x1c6e7c||this['length']||_0x5df266['value']||this['fire']('removeCommentThread');}),_0x4796b7;}}class Ct extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(
|
|
28
|
-
ti(
|
|
29
|
-
_0x10bc89(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x4f15b7,target:_0x3e061b,type:_0x47e035,isVisible:_0x25ec67=!0x0}){super(),this['view']=_0x4f15b7,this['view']['element']||this['view']['render'](),this['_type']=_0x47e035,this['_target']=_0x3e061b,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x836a36([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x34823e,_0x2e985a)=>{this['view']['focusTracker']['add'](_0x2e985a);}),this['focusableElements']['on']('remove',(_0x54845e,_0x2c5d6e)=>{this['view']['focusTracker']['remove'](_0x2c5d6e);}),this['set']('isVisible',_0x25ec67);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x5e8172=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x5e8172),_0x5e8172;}get['targetRect'](){const _0x3029c1=this['target'];if(null===_0x3029c1)return null;if(_0x3029c1 instanceof _0x2a3eae)return _0x3029c1;const _0xfb5feb=_0x3029c1['filter'](_0x420796=>function(_0x56af49){const _0x15cbd9=_0x56af49['offsetParent'];if(_0x15cbd9)return!0x0;const _0x44a200=_0x56af49['getClientRects']()['item'](0x0);return!!_0x44a200;}(_0x420796));return 0x0===_0xfb5feb['length']?null:new _0x2a3eae(_0xfb5feb[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3d892c){this['view']['isActive']=_0x3d892c,this['view']['mainView']['isActive']=_0x3d892c;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x142bb8){if(!(null===_0x142bb8||_0x142bb8 instanceof _0x2a3eae||Array['isArray'](_0x142bb8)&&_0x142bb8['every'](_0xc75725=>ne(_0xc75725))))throw new _0x2569ef('annotation-invalid-target',null,{'target':_0x142bb8});}['_getNormalizedTarget'](){const _0x503911='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x503911)?[_0x503911]:_0x503911;}}function ne(_0x5d7231){return null!==_0x5d7231&&'object'==typeof _0x5d7231&&'nodeType'in _0x5d7231&&0x1===_0x5d7231['nodeType'];}class x extends _0x836a36{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x34af27=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x5ad3fb(),this['_focusTracker']['on']('change:isFocused',(_0x5b38dd,_0x48941a,_0x4757)=>{_0x4757||this['fire']('blur');});for(const _0x5b2391 of _0x34af27)this['add'](_0x5b2391);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x33132d){if(this['has'](_0x33132d))throw new _0x2569ef('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x33132d['innerView'],_0x33132d),this['_viewToAnnotation']['set'](_0x33132d['view'],_0x33132d);for(const _0x1bd7ba of _0x33132d['focusableElements'])this['_focusTracker']['add'](_0x1bd7ba);this['listenTo'](_0x33132d['focusableElements'],'add',(_0x33da4a,_0x494096)=>{this['_focusTracker']['add'](_0x494096);}),this['listenTo'](_0x33132d['focusableElements'],'remove',(_0x2ad61d,_0x4d21b5)=>{this['_focusTracker']['remove'](_0x4d21b5);}),this['listenTo'](_0x33132d['view']['focusTracker'],'change:isFocused',(_0x53e4da,_0x5a1ca7,_0x369afe)=>{_0x369afe&&this['fire']('focus',_0x33132d);}),_0x33132d['updateTargetRect']();const _0x5ab272=this['_getOrderInContent'](_0x33132d['view']['targetRect']);return super['add'](_0x33132d,_0x5ab272);}['remove'](_0x53f813){if(!this['has'](_0x53f813))throw new _0x2569ef('annotationcollection-not-existing-item',null);this['stopListening'](_0x53f813['view']['focusTracker']),this['stopListening'](_0x53f813['focusableElements']);for(const _0x5ee2d3 of _0x53f813['focusableElements'])this['_focusTracker']['remove'](_0x5ee2d3);return this['_viewToAnnotation']['delete'](_0x53f813['view']),this['_innerViewToAnnotation']['delete'](_0x53f813['innerView']),super['remove'](_0x53f813);}['getByInnerView'](_0x45a14a){return this['_innerViewToAnnotation']['get'](_0x45a14a);}['getByView'](_0x21135e){return this['_viewToAnnotation']['get'](_0x21135e);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0xfc8fa of this)_0xfc8fa['updateTargetRect']();this['_sort']();}['_sort'](){const _0x18bf0e=Array['from'](this)['sort']((_0x55161a,_0x3ffe2d)=>v(_0x55161a['view']['targetRect'],_0x3ffe2d['view']['targetRect']));for(let _0x54d1b7=_0x18bf0e['length']-0x1;_0x54d1b7>0x0;_0x54d1b7--){const _0x263c01=_0x18bf0e[_0x54d1b7];_0x54d1b7!==this['getIndex'](_0x263c01)&&(this['remove'](_0x263c01),this['add'](_0x263c01));}}['_getOrderInContent'](_0xf7b26f){let _0x507f94=0x0;if(!_0xf7b26f)return this['length'];for(const _0x6f6828 of this){const _0x5e329a=_0x6f6828['view']['targetRect'];if(_0x5e329a){if(v(_0xf7b26f,_0x5e329a)<0x0)return _0x507f94;_0x507f94++;}}return _0x507f94;}}function v(_0x498445,_0x1040ac){if(null===_0x498445&&null===_0x1040ac)return 0x0;if(null===_0x498445)return-0x1;if(null===_0x1040ac)return 0x1;const _0x1f4879=_0x498445['top']-_0x1040ac['top'];return 0x0==_0x1f4879?_0x498445['left']-_0x1040ac['left']:_0x1f4879;}class N extends _0x100c9b{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43cd6f){if(super(_0x43cd6f),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x43cd6f instanceof _0xded787){const _0x17fd39=_0x43cd6f['locale'];_0x43cd6f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x21cb28){this['collection']['add'](_0x21cb28);}['remove'](_0x5e4ca0){this['collection']['remove'](_0x5e4ca0),_0x5e4ca0['destroy']();}['refreshVisibility'](){for(const _0x8cb222 of this['collection'])_0x8cb222['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x1ef5f8){return this['collection']['getByInnerView'](_0x1ef5f8);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1aef1c of this['collection'])_0x1aef1c['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2f084e){this['fire']('_activateAnnotation',_0x2f084e);}['createAnnotation'](_0x2d7f4c){return new d(_0x2d7f4c);}['createAnnotationView'](_0x61f9ce,_0x2fbaea){return new T(_0x61f9ce,_0x2fbaea);}['_addActiveAnnotation'](_0x454a8b){const _0x287af6=new Set(this['activeAnnotations']);_0x287af6['add'](_0x454a8b),this['activeAnnotations']=_0x287af6;}['_removeActiveAnnotation'](_0x33eb2f){const _0x1222ac=new Set(this['activeAnnotations']);_0x1222ac['delete'](_0x33eb2f),this['activeAnnotations']=_0x1222ac;}['_bindAnnotationsToVisibleAnnotations'](){const _0x49bd58=this['collection'],_0x5929e5=this['_visibleAnnotations'];function _0x1a653e(_0x19d61b){const _0x27fcc0=_0x19d61b['source'];_0x27fcc0['isVisible']&&!_0x5929e5['has'](_0x27fcc0)?_0x5929e5['add'](_0x27fcc0):!_0x27fcc0['isVisible']&&_0x5929e5['has'](_0x27fcc0)&&_0x5929e5['remove'](_0x27fcc0),_0x27fcc0['view']['focusTracker']['remove'](_0x27fcc0['view']['element']),_0x27fcc0['view']['focusTracker']['add'](_0x27fcc0['view']['element']);}this['listenTo'](_0x49bd58,'add',(_0x206766,_0x4ccd3b)=>{_0x4ccd3b['isVisible']&&_0x5929e5['add'](_0x4ccd3b),this['listenTo'](_0x4ccd3b,'change:isVisible',_0x1a653e);}),this['listenTo'](_0x49bd58,'remove',(_0xb0733f,_0x4ed69b)=>{_0x5929e5['has'](_0x4ed69b)&&_0x5929e5['remove'](_0x4ed69b),this['stopListening'](_0x4ed69b,'change:isVisible',_0x1a653e);});}['_setupEnterAnnotationKeystroke'](){const _0x19af29=_0x42d103=>{_0x42d103['on']('ready',()=>{_0x42d103['keystrokes']['set'](_0x25b99b,(_0x3d4770,_0x42408b)=>{const _0x50cd95=_0x4e3be5(this['activeAnnotations']['values']());_0x50cd95&&(_0x50cd95['view']['focus'](),_0x42408b());});});};this['context']instanceof _0xded787?_0x19af29(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x568a73,_0x3ef97e)=>{_0x19af29(_0x3ef97e);});}['_setupEscapeAnnotationHandling'](){const _0x3d5b19=_0x453f7f=>{const _0x83569f=_0x453f7f['source'],_0x3f34c0=[];let _0x3f647e;if(Array['isArray'](_0x83569f['target'])){_0x3f647e=_0x83569f['target'][0x0],this['context']instanceof _0xded787?_0x3f34c0['push'](this['context']):this['context']['editors']&&_0x3f34c0['push'](...this['context']['editors']);for(const _0x49454d of _0x3f34c0)for(const _0x1a2db9 of _0x49454d['editing']['view']['domRoots']['values']())if(_0x1a2db9['contains'](_0x3f647e))return void _0x49454d['editing']['view']['focus']();_0x3f647e['focus']();}};this['listenTo'](this['collection'],'add',(_0x4eeffa,_0x32bcd8)=>{this['listenTo'](_0x32bcd8,'escape',_0x3d5b19,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4ecf63,_0x175f30)=>{this['stopListening'](_0x175f30,'escape',_0x3d5b19);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x100c9b{['_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(_0x2fec7c){super(_0x2fec7c),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4733dd=this['context']['config'];_0x4733dd['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4733dd['define']('comments.maxThreadTotalWeight',0x1f4),_0x4733dd['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4733dd['define']('comments.CommentThreadView',Ct),_0x4733dd['define']('comments.CommentView',vt),_0x4733dd['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x12d96a=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4ac1e6,_0x28dac6)=>this['_addCommentThread'](_0x28dac6)),this['on']('submitCommentThread',(_0x152e0b,_0xac6ea6)=>this['_submitCommentThread'](_0xac6ea6)),this['on']('resolveCommentThread',(_0x134cc8,_0x168130)=>this['_resolveCommentThread'](_0x168130)),this['on']('resolveCommentThread',(_0x31a48e,_0x4b7502)=>this['_updateActiveAnnotation'](_0x4b7502),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5384fb,_0x4f4523)=>this['_reopenCommentThread'](_0x4f4523)),this['on']('reopenCommentThread',(_0x36dd91,_0x32402b)=>this['_updateActiveAnnotation'](_0x32402b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5b1092,_0x512359)=>this['_removeCommentThread'](_0x512359)),this['on']('updateCommentThread',(_0x2dba9a,_0x186e7b)=>this['_updateCommentThread'](_0x186e7b)),this['on']('updateCommentThread',(_0x97fdf4,_0x4246f4)=>this['_updateActiveAnnotation'](_0x4246f4),{'priority':'lowest'}),this['on']('addComment',(_0x3aa38c,_0x5027b1)=>this['_addComment'](_0x5027b1)),this['on']('updateComment',(_0x492bce,_0x501508)=>this['_updateComment'](_0x501508)),this['on']('removeComment',(_0x177e61,_0x77093e)=>this['_removeComment'](_0x77093e)),this['on']('addComment',(_0x300884,{threadId:_0x496f8e,isFromAdapter:_0x22645})=>{if(_0x22645)return;const _0x57ff02=this['getCommentThread'](_0x496f8e),_0x228257=_0x57ff02&&this['_threadToController']['get'](_0x57ff02);_0x228257&&_0x228257['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x12d96a,'change:activeAnnotations',(_0x5e8242,_0x44aa48,_0x30b06b)=>{const _0x5a591d=Array['from'](_0x30b06b)['map'](_0x114de1=>this['_viewToController']['get'](_0x114de1['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5a591d?_0x5a591d['model']:null;});}set['adapter'](_0x21fe15){if(this['_adapter'])throw new _0x2569ef('commentsrepository-adapter-already-set');this['_adapter']=_0x21fe15;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5bc7e3=gt,threadId:_0x27adea=_0x5567a4(),comments:_0x4eac8f=[],unlinkedAt:_0x45bd98=null,resolvedAt:_0x61464d=null,resolvedBy:_0x14e59a=null,target:_0x3c0c21=null,context:_0x414fae=null,attributes:_0xe0be63={},isResolvable:_0x4389a8=!0x0,isSubmitted:_0x2fb82c=!0x1,isFromAdapter:_0x263042=!0x1}={}){return this['fire'](_t('addCommentThread',_0x5bc7e3),{'channelId':_0x5bc7e3,'threadId':_0x27adea,'comments':_0x4eac8f,'unlinkedAt':_0x45bd98,'resolvedAt':_0x61464d,'resolvedBy':_0x14e59a,'target':_0x3c0c21,'context':_0x414fae,'attributes':_0xe0be63,'isFromAdapter':_0x263042,'isResolvable':_0x4389a8,'isSubmitted':_0x2fb82c}),this['getCommentThread'](_0x27adea);}['openNewCommentThread']({channelId:_0x17864c=gt,threadId:_0x5d043a=_0x5567a4(),target:_0x4d74f3,context:_0x464c30=null,isResolvable:_0x3b962d=!0x0}){if(this['_readOnlyChannels']['has'](_0x17864c)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4d74f3)throw new _0x2569ef('commentsrepository-missing-target');const _0x392d99=this['addCommentThread']({'channelId':_0x17864c,'threadId':_0x5d043a,'target':_0x4d74f3,'context':_0x464c30,'isResolvable':_0x3b962d});if(!_0x392d99)return null;const _0x112606=this['_threadToController']['get'](_0x392d99),_0xffb2e8=_0x112606['view']['commentThreadInputView']['commentInputView'],_0x53236c=this['context']['plugins']['get'](N),_0x3e9a7c=_0x53236c['getByInnerView'](_0x112606['view']);return _0x53236c['activate'](_0x3e9a7c),_0xffb2e8['once']('editorReady',()=>_0xffb2e8['focus']()),_0x392d99;}['hasCommentThread'](_0x20bec5){if('string'!=typeof _0x20bec5)throw new _0x2569ef('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x20bec5);}['updateCommentThread']({channelId:_0x4bd429=gt,threadId:_0xf56256,context:_0x3d7f72,unlinkedAt:_0x1a8510,attributes:_0x2d2e58,isFromAdapter:_0x4bc2c7=!0x1}){return this['fire'](_t('updateCommentThread',_0x4bd429),{'channelId':_0x4bd429,'threadId':_0xf56256,'context':_0x3d7f72,'unlinkedAt':_0x1a8510,'attributes':_0x2d2e58,'isFromAdapter':_0x4bc2c7}),this['getCommentThread'](_0xf56256);}['getCommentThread'](_0x213c7b){if('string'!=typeof _0x213c7b)throw new _0x2569ef('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x213c7b);}['fetchCommentThread']({channelId:_0x9c3c90,threadId:_0x2bef86}={}){const _0x121c20=this['getCommentThread'](_0x2bef86);if(_0x121c20)return Promise['resolve'](_0x121c20);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2569ef('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x9c3c90,'threadId':_0x2bef86})['then'](_0xb807dc=>this['hasCommentThread'](_0x2bef86)?this['getCommentThread'](_0x2bef86):_0xb807dc?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x9c3c90},_0xb807dc)):void 0x0)['catch'](_0x1cde18=>{throw console['error'](_0x1cde18),new _0x2569ef('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5eefdd,skipNotAttached:_0x257f29=!0x1,skipEmpty:_0x177bf2=!0x1,toJSON:_0x1fc9e0=!0x1}={}){const _0x59a0f4=[];for(const _0x583c2b of this['_threads']['values']())_0x5eefdd&&_0x583c2b['channelId']!==_0x5eefdd||_0x257f29&&!_0x583c2b['isAttached']||_0x177bf2&&0x0===_0x583c2b['length']||_0x59a0f4['push'](_0x583c2b);return _0x1fc9e0?_0x59a0f4['map'](_0x2c297a=>_0x2c297a['toJSON']()):_0x59a0f4;}['setActiveCommentThread'](_0xf38988){const _0x1d8064=this['context']['plugins']['get'](N);if(!_0xf38988)return void(this['activeCommentThread']&&_0x1d8064['deactivateAll']());const _0x4b5ea1=this['getCommentThread'](_0xf38988);if(!_0x4b5ea1)throw new _0x2569ef('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xf38988});if(!this['_threadToController']['has'](_0x4b5ea1))throw new _0x2569ef('commentsrepository-active-not-attached',null,{'threadId':_0xf38988});const _0x5e92e8=_0x1d8064['getByInnerView'](this['_threadToController']['get'](_0x4b5ea1)['view']);_0x1d8064['activate'](_0x5e92e8);}['switchReadOnly'](_0x54340a,_0x394620){_0x54340a?this['_readOnlyChannels']['add'](_0x394620):this['_readOnlyChannels']['delete'](_0x394620),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x59dac7){return this['_readOnlyChannels']['has'](_0x59dac7)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x2466b3,_0x1d895f){return new yt(_0x2466b3,_0x1d895f);}['setPermissions'](_0xe7124b,_0x1f2839=gt){this['_permissions']['set'](_0x1f2839,_0xe7124b),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3571d5=gt){return this['_permissions']['has'](_0x3571d5)?this['_permissions']['get'](_0x3571d5):Tt;}['_addCommentThread']({channelId:_0x22fd6a,threadId:_0x1070a3,comments:_0x5bc732,unlinkedAt:_0x5e093a,resolvedAt:_0x441f5d,resolvedBy:_0x5c5629,target:_0x2b7488,context:_0x4a8b8b,attributes:_0x14d963,isFromAdapter:_0x4c5559,isResolvable:_0x366d44,isSubmitted:_0x54bd00}){if('string'!=typeof _0x1070a3)throw new _0x2569ef('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1070a3});if(this['hasCommentThread'](_0x1070a3))throw new _0x2569ef('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1070a3});const _0x33cd2d=new oe(this,{'channelId':_0x22fd6a,'id':_0x1070a3,'context':_0x4a8b8b,'attributes':_0x14d963,'unlinkedAt':_0x5e093a,'resolvedAt':_0x441f5d,'resolvedBy':_0x5c5629?this['context']['plugins']['get'](it)['getUser'](_0x5c5629):null,'isResolvable':_0x366d44,'isSubmitted':_0x54bd00||_0x4c5559});this['_threads']['set'](_0x1070a3,_0x33cd2d);for(const _0x40ff2d of _0x5bc732)_0x33cd2d['_add'](this['_createNewComment']({'threadId':_0x1070a3,..._0x40ff2d}));return _0x2b7488&&_0x33cd2d['attachTo'](_0x2b7488),_0x4c5559||!_0x33cd2d['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x22fd6a,'threadId':_0x1070a3});}['_submitCommentThread']({channelId:_0xb104dc,threadId:_0x4d5dfc}){if(!this['hasCommentThread'](_0x4d5dfc))throw new _0x2569ef('commentsrepository-missing-comment-thread',this);const _0x114552=this['getCommentThread'](_0x4d5dfc);if(_0x114552['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x2248a7,comments:_0x392fba,resolvedAt:_0x56538f,resolvedBy:_0x49cc12,context:_0x438b27,attributes:_0xb4a309}=_0x114552,_0x248fd4=this['context']['plugins']['get']('PendingActions'),_0x27fba4=_0x248fd4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xb104dc,'threadId':_0x2248a7,'comments':_0x392fba['map'](_0x195965=>_0x195965['toJSON']()),'resolvedAt':_0x56538f,'resolvedBy':_0x49cc12?_0x49cc12['id']:_0x49cc12,'context':_0x438b27,'attributes':_0xb4a309})['then'](({comments:_0x140ddb})=>{_0x248fd4['remove'](_0x27fba4);for(const _0x1d4f20 of _0x140ddb)this['_updateComment']({'channelId':_0xb104dc,'threadId':_0x4d5dfc,'commentId':_0x1d4f20['commentId'],'createdAt':_0x1d4f20['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x36b00a=>{throw console['error'](_0x36b00a),new _0x2569ef('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3393f9,target:_0x4e20b5}){const _0x43a64a=this['getCommentThread'](_0x3393f9);if(!_0x43a64a)throw new _0x2569ef('commentsrepository-attach-missing-comment-thread',this);const _0x385a1c=this['context']['plugins']['get']('PendingActions'),_0x307d9d=this['context']['plugins']['get'](N),_0x53340d=this['_createCommentThreadView'](_0x43a64a),_0x30bc25=new yt(_0x43a64a,_0x53340d);let _0xac4aca=null;_0x53340d['on']('change:isDirty',(_0x81d3be,_0x3a0276,_0x3f3a01)=>{_0x3f3a01?_0xac4aca=_0x385a1c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0xac4aca&&(_0x385a1c['remove'](_0xac4aca),_0xac4aca=null);}),this['_threadToController']['set'](_0x43a64a,_0x30bc25),this['_viewToController']['set'](_0x53340d,_0x30bc25);const _0x3e11f5=new T(this['context']['locale'],_0x53340d);_0x3e11f5['bind']('length')['to'](_0x53340d),_0x3e11f5['bind']('isDirty')['to'](_0x53340d,'isDirty',_0x53340d,'length',(_0x4a456e,_0x73d5f0)=>_0x4a456e||!_0x73d5f0),_0x3e11f5['bind']('isActive')['to'](_0x53340d),_0x3e11f5['type']='comment';const _0x3d3347=new d({'view':_0x3e11f5,'target':_0x4e20b5,'type':'comment','isVisible':!_0x43a64a['isResolved']});return _0x53340d['on']('escape',()=>{_0x3d3347['fire']('escape');}),this['_bindAnnotationToEditors'](_0x53340d,_0x3d3347),_0x307d9d['add'](_0x3d3347),_0x3d3347;}['_bindAnnotationToEditors'](_0x29d0e1,_0x1ca434){this['listenTo'](_0x29d0e1,'editorReady',(_0x29f6d4,_0x48e102)=>{const _0x5caca4=_0x48e102['ui']['view']['body']['bodyCollectionContainer'];_0x1ca434['focusableElements']['add'](_0x5caca4),this['context']instanceof _0xded787&&this['context']['ui']['focusTracker']['add'](_0x5caca4);},{'priority':'highest'}),this['listenTo'](_0x29d0e1,'editorDestroyed',(_0x2ce339,_0x5bdd6a)=>{const _0x2bd570=_0x5bdd6a['ui']['view']['body']['bodyCollectionContainer'];_0x1ca434['focusableElements']['has'](_0x2bd570)&&_0x1ca434['focusableElements']['remove'](_0x2bd570),this['context']instanceof _0xded787&&this['context']['ui']['focusTracker']['remove'](_0x2bd570);});}['_unbindEditors'](_0x5eb77b){this['stopListening'](_0x5eb77b,'editorReady'),this['stopListening'](_0x5eb77b,'editorDestroyed');}['_createCommentThreadView'](_0x26cbf1){const _0x4119ec=this['context']['plugins']['get'](it),{config:_0x20349e,locale:_0x1646b1}=this['context'],_0x4c7d6a=mt(_0x20349e['get']('locale'));return new(0x0,(_0x20349e['get']('comments'))['CommentThreadView'])(_0x1646b1,_0x26cbf1,_0x4119ec['me'],{'editorConfig':{..._0x20349e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x20349e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x20349e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x20349e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x20349e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c7d6a,'CommentView':_0x20349e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x96e49c,channelId:_0x5c3f56,resolvedAt:_0x5777d3,resolvedBy:_0xa67e21,isFromAdapter:_0x36a699}){if(!this['hasCommentThread'](_0x96e49c))throw new _0x2569ef('commentsrepository-missing-comment-thread',null,{'threadId':_0x96e49c});const _0x2b403f=this['getCommentThread'](_0x96e49c);if(_0x2b403f['isResolved'])throw new _0x2569ef('commentsrepository-resolved-comment-thread',null,{'threadId':_0x96e49c});const _0x2c8e19=this['context']['plugins']['get'](it);if(_0x2b403f['resolvedBy']=_0x2c8e19['getUser'](_0xa67e21),_0x2b403f['resolvedAt']=_0x5777d3,_0x36a699||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x578582=this['context']['plugins']['get']('PendingActions'),_0x167cc3=_0x578582['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x5c3f56,'threadId':_0x96e49c})['then'](({resolvedAt:_0x470638,resolvedBy:_0x200e23})=>{_0x578582['remove'](_0x167cc3),_0x2b403f['resolvedBy']['id']!==_0x200e23&&(_0x2b403f['resolvedBy']=_0x2c8e19['getUser'](_0x200e23)),_0x2b403f['resolvedAt']=_0x470638;})['catch'](_0x4465c4=>{throw console['error'](_0x4465c4),new _0x2569ef('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4e9afc,channelId:_0x15e6e3,isFromAdapter:_0x21271a}){if(!this['hasCommentThread'](_0x4e9afc))throw new _0x2569ef('commentsrepository-missing-comment-thread',null,{'threadId':_0x4e9afc});const _0x43e1cd=this['getCommentThread'](_0x4e9afc);if(!_0x43e1cd['isResolved'])throw new _0x2569ef('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4e9afc});if(_0x43e1cd['resolvedBy']=null,_0x43e1cd['resolvedAt']=null,_0x21271a||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x41441d=this['context']['plugins']['get']('PendingActions'),_0x45e783=_0x41441d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x15e6e3,'threadId':_0x4e9afc})['then'](()=>_0x41441d['remove'](_0x45e783))['catch'](_0x3c3227=>{throw console['error'](_0x3c3227),new _0x2569ef('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x269154,isFromAdapter:_0x11ae7b}){const _0x3d489e=this['getCommentThread'](_0x269154);if(!_0x3d489e)throw new _0x2569ef('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x269154),this['_threads']['delete'](_0x269154),!_0x3d489e['isSubmitted']||_0x11ae7b||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1038a5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x503211}=_0x3d489e,_0x52e0ad=_0x1038a5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x503211,'threadId':_0x269154})['then'](()=>_0x1038a5['remove'](_0x52e0ad))['catch'](_0x53a47c=>{throw console['error'](_0x53a47c),new _0x2569ef('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x36810c,unlinkedAt:_0x20d6f7,context:_0x13a94c,attributes:_0x97e8cc,isFromAdapter:_0x5de730}){if('string'!=typeof _0x36810c)throw new _0x2569ef('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x36810c});if(!this['hasCommentThread'](_0x36810c))throw new _0x2569ef('commentsrepository-missing-comment-thread',null,{'threadId':_0x36810c});const _0x267bfe=this['getCommentThread'](_0x36810c);let _0x49868c=!0x1;if(void 0x0!==_0x13a94c&&_0x267bfe['context']!==_0x13a94c&&(_0x267bfe['context']=_0x13a94c,_0x49868c=!0x0),void 0x0!==_0x20d6f7&&_0x267bfe['unlinkedAt']!==_0x20d6f7&&(_0x267bfe['unlinkedAt']=_0x20d6f7,_0x49868c=!0x0),_0x97e8cc&&!It(_0x97e8cc,_0x267bfe['attributes'])&&(_0x267bfe['attributes']=_0x97e8cc,_0x49868c=!0x0),!_0x49868c)return Promise['resolve']();if(!_0x267bfe['isSubmitted']||_0x5de730||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4416e9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1d5fdb}=_0x267bfe,_0x2ac7cd=_0x4416e9['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1d5fdb,'threadId':_0x36810c,'context':_0x13a94c,'unlinkedAt':_0x20d6f7,'attributes':_0x97e8cc})['then'](()=>_0x4416e9['remove'](_0x2ac7cd))['catch'](_0x37ff7e=>{throw console['error'](_0x37ff7e),new _0x2569ef('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x374cdd){const _0x16a21a=this['context']['plugins']['get'](N),_0x2f10bb=this['getCommentThread'](_0x374cdd);if(this['_threadToController']['has'](_0x2f10bb)){const _0x58ae69=this['_threadToController']['get'](_0x2f10bb),_0x507d70=_0x58ae69['view'],_0x1859dd=_0x16a21a['getByInnerView'](_0x507d70);this['_threadToController']['delete'](_0x2f10bb),this['_viewToController']['delete'](_0x507d70),_0x1859dd&&_0x16a21a['remove'](_0x1859dd),_0x58ae69['destroy'](),_0x507d70['destroy']()['then'](()=>{this['_unbindEditors'](_0x507d70);});}}['_updateActiveAnnotation']({threadId:_0x3af96e,resolvedAt:_0x31b182}){const _0x29cd04=!!_0x31b182,_0x44e69b=this['context']['plugins']['get'](N),_0x1ab8ae=this['getCommentThread'](_0x3af96e);if(this['_threadToController']['has'](_0x1ab8ae)){const _0x5a2ce9=this['_threadToController']['get'](_0x1ab8ae)['view'],_0x12ffec=_0x44e69b['getByInnerView'](_0x5a2ce9);_0x12ffec&&(_0x29cd04&&_0x44e69b['_removeActiveAnnotation'](_0x12ffec),_0x12ffec['refreshVisibility']());}}['_getExternalAuthor'](_0x5c180d){const _0x282d4d=this['context']['plugins']['get'](it),_0x65f421=lt('external:'+_0x5c180d),_0x242e0b=_0x282d4d['getUser'](_0x65f421);return _0x242e0b||_0x282d4d['addUser']({'id':_0x65f421,'name':_0x5c180d});}['_createNewComment']({threadId:_0x1350d5,commentId:_0x1250b6=_0x5567a4(),content:_0x12f65b,authorId:_0x5ed700,createdAt:_0x1abef6,attributes:_0x20cc02}){if('string'!=typeof _0x1250b6)throw new _0x2569ef('commentsrepository-invalid-commentid');if('string'!=typeof _0x5ed700)throw new _0x2569ef('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x12f65b||!_0x12f65b['trim']())throw new _0x2569ef('commentsrepository-invalid-comment-content');const _0x300039=this['context']['plugins']['get'](it)['getUser'](_0x5ed700);if(!_0x300039)throw new _0x2569ef('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x5ed700});let _0x1474db=null,_0x4a693d=_0x1abef6;return _0x20cc02&&_0x20cc02['@external']&&(_0x1474db=this['_getExternalAuthor'](_0x20cc02['@external']['authorName']),_0x4a693d=new Date(_0x20cc02['@external']['createdAt'])),new re(this,{'threadId':_0x1350d5,'id':_0x1250b6,'author':_0x1474db||_0x300039,'creator':_0x300039,'content':_0x12f65b,'createdAt':_0x1abef6,'authoredAt':_0x4a693d,'attributes':_0x20cc02});}['_addComment'](_0x527f25){let {threadId:_0x2f1b1b,content:_0x59267a,attributes:_0x1e9fbb,isFromAdapter:_0x17e3d7}=_0x527f25;const _0x57f2d6=this['getCommentThread'](_0x527f25['threadId']);if(!_0x57f2d6)throw new _0x2569ef('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x39fa66=this['_createNewComment'](_0x527f25),{id:_0x5a8da7}=_0x39fa66;if(_0x57f2d6['_add'](_0x39fa66),_0x17e3d7||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x57f2d6['isSubmitted'])return Promise['resolve']();const _0x485c8a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5d8eb5}=_0x57f2d6,_0xa69cf1=_0x485c8a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1e9fbb||(_0x1e9fbb={}),this['adapter']['addComment']({'channelId':_0x5d8eb5,'threadId':_0x2f1b1b,'commentId':_0x5a8da7,'content':_0x59267a,'attributes':_0x1e9fbb})['then'](_0x2c659d=>{_0x485c8a['remove'](_0xa69cf1),_0x2c659d&&this['_updateComment']({'channelId':_0x5d8eb5,'threadId':_0x2f1b1b,'commentId':_0x5a8da7,'createdAt':_0x2c659d['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x8e8c1e=>{throw console['error'](_0x8e8c1e),new _0x2569ef('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x49c038,commentId:_0x39f54b,content:_0x3ea40b,createdAt:_0x146af0,attributes:_0x5e54b5,isFromAdapter:_0x14aedd}){if(void 0x0!==_0x3ea40b&&('string'!=typeof _0x3ea40b||!_0x3ea40b['trim']()['length']))throw new _0x2569ef('commentsrepository-update-comment-invalid-content');const _0xec00b7=this['getCommentThread'](_0x49c038),_0x3341c4=_0xec00b7['getComment'](_0x39f54b);if(!_0x3341c4)throw new _0x2569ef('commentsrepository-update-missing-comment',this);let _0x477ace=!0x1;if(_0x3ea40b&&_0x3ea40b!==_0x3341c4['content']&&(_0x3341c4['isEditable']||_0x14aedd)&&(_0x3341c4['content']=_0x3ea40b,_0x477ace=!0x0),_0x146af0&&_0x146af0!==_0x3341c4['createdAt']&&(_0x3341c4['createdAt']=_0x146af0,_0x3341c4['attributes']&&_0x3341c4['attributes']['@external']||(_0x3341c4['authoredAt']=_0x146af0),_0x477ace=!0x0),_0x5e54b5&&!It(_0x5e54b5,_0x3341c4['attributes'])&&(_0x3341c4['attributes']=_0x5e54b5,_0x477ace=!0x0),!_0x477ace)return Promise['resolve']();if(_0xec00b7['fire']('commentUpdated'),_0x14aedd||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2ad7e5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4396f8}=this['getCommentThread'](_0x3341c4['threadId']),_0x4efb70=_0x2ad7e5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x4396f8,'threadId':_0x49c038,'commentId':_0x39f54b,'content':_0x3ea40b,'attributes':_0x5e54b5})['then'](()=>_0x2ad7e5['remove'](_0x4efb70))['catch'](_0x3d4b12=>{throw console['error'](_0x3d4b12),new _0x2569ef('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x282902,commentId:_0xd4d5f3,isFromAdapter:_0x2fb974}){const _0x42c1a9=this['getCommentThread'](_0x282902),_0x324201=_0x42c1a9['getComment'](_0xd4d5f3);if(!_0x324201)throw new _0x2569ef('commentsrepository-remove-missing-comment',this);if(_0x42c1a9['_remove'](_0x324201),_0x2fb974||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x38b212=this['context']['plugins']['get']('PendingActions'),{channelId:_0x369b96}=_0x42c1a9,_0x5d037d=_0x38b212['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x369b96,'threadId':_0x282902,'commentId':_0xd4d5f3})['then'](()=>_0x38b212['remove'](_0x5d037d))['catch'](_0x3e95ef=>{throw console['error'](_0x3e95ef),new _0x2569ef('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x10bc89(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x41c162,_0x1dec67){super();const _0x177056=_0x41c162['context']['plugins']['get'](it)['me'],_0x117895=_0x41c162['getCommentThread'](_0x1dec67['threadId']),_0x2b8aed=0x0===_0x117895['comments']['length'],_0x5aab31=_0x177056===_0x1dec67['author'];this['id']=_0x1dec67['id'],this['threadId']=_0x1dec67['threadId'],this['author']=_0x1dec67['author'],this['creator']=_0x1dec67['creator'],this['isExternal']=Boolean(_0x1dec67['attributes']&&_0x1dec67['attributes']['@external']),this['set']('content',_0x1dec67['content']),this['createdAt']=_0x1dec67['createdAt']||new Date(),this['set']('authoredAt',_0x1dec67['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x117895,'resolvedAt'),this['set']('attributes',_0x1dec67['attributes']||{}),this['bind']('isEditable')['to'](_0x41c162,'_permissions',()=>{const _0x330395=_0x41c162['getPermissions'](_0x117895['channelId'])['write'],_0x49b193=_0x41c162['getPermissions'](_0x117895['channelId'])['modifyAll'];return _0x5aab31&&_0x330395||!_0x5aab31&&_0x49b193;}),this['bind']('isRemovable')['to'](_0x117895,'isRemovable',_0x41c162,'_permissions',_0xa7d704=>{const _0x3298eb=_0x41c162['getPermissions'](_0x117895['channelId'])['write'],_0x4ae097=_0x41c162['getPermissions'](_0x117895['channelId'])['modifyAll'];return _0x5aab31&&_0x3298eb||_0xa7d704&&_0x2b8aed||!_0x5aab31&&_0x4ae097&&!_0x2b8aed;}),this['bind']('isReadOnly')['to'](_0x117895,'isReadOnly'),this['_repository']=_0x41c162;}get['weight'](){return Math['max'](function(_0x486f90){const _0x193cc8=document['createElement']('div');return _0x193cc8['innerHTML']=_0x486f90,_0x193cc8['textContent']['length'];}(this['content']),0xc8);}['update'](_0x55c4a1){const {threadId:_0x5ae7db,id:_0x155bf0}=this;if(!this['_repository']['hasCommentThread'](_0x5ae7db))throw new _0x2569ef('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x451d95}=this['_repository']['getCommentThread'](_0x5ae7db);this['_repository']['fire'](_t('updateComment',_0x451d95,_0x5ae7db),{'channelId':_0x451d95,'threadId':_0x5ae7db,'commentId':_0x155bf0,..._0x55c4a1});}['setAttribute'](_0x2f5560,_0x595be9){const _0x104942=pt(this['attributes']);wt(_0x104942,_0x2f5560,_0x595be9),this['update']({'attributes':_0x104942});}['removeAttribute'](_0xe24dcb){const _0x2ca5e8=pt(this['attributes']);At(_0x2ca5e8,_0xe24dcb),this['update']({'attributes':_0x2ca5e8});}['remove'](_0x2c65cb={}){if(!_0x2c65cb['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x57136e,id:_0x2393f2}=this;if(!this['_repository']['hasCommentThread'](_0x57136e))throw new _0x2569ef('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4aaee3}=this['_repository']['getCommentThread'](_0x57136e);this['_repository']['fire'](_t('removeComment',_0x4aaee3,_0x57136e),{'channelId':_0x4aaee3,'threadId':_0x57136e,'commentId':_0x2393f2,..._0x2c65cb});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0xb04292,..._0x20bd0e){for(const _0x426761 of _0x20bd0e)void 0x0!==_0x426761&&(_0xb04292+=':'+String(_0x426761));return _0xb04292;}class J extends _0x47a299{['refresh'](){const _0x47bf86=this['editor']['model']['document']['selection'];for(const _0x1d8d99 of _0x47bf86['getRanges']())if(this['_hasContent'](_0x1d8d99))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x409e6d=_0x5567a4()}={}){const _0x576862=this['editor']['model'],_0x17db7b=[];for(const _0x494381 of _0x576862['document']['selection']['getRanges']())this['_hasContent'](_0x494381)&&_0x17db7b['push'](this['_trimToContent'](_0x494381));_0x576862['change'](_0x1b95a3=>{for(const _0x366130 of _0x17db7b){const _0x546524=_0x5567a4()['substr'](0x1,0x5),_0xd95665='comment:'+_0x409e6d+':'+_0x546524;_0x1b95a3['addMarker'](_0xd95665,{'range':_0x366130,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1947d2){for(const _0x1a9cd9 of _0x1947d2['getItems']())if(this['_itemIsContent'](_0x1a9cd9))return!0x0;return!0x1;}['_itemIsContent'](_0x4b3b4e){return _0x4b3b4e['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4b3b4e)&&!_0x4b3b4e['is']('element','tableCell');}['_trimToContent'](_0x3f0087){const _0x1a6146=_0x4c3d44=>!this['_itemIsContent'](_0x4c3d44['item']),_0x153319=_0x3f0087['start']['getLastMatchingPosition'](_0x1a6146),_0x1fbcba=_0x3f0087['end']['getLastMatchingPosition'](_0x1a6146,{'direction':'backward'});return this['editor']['model']['createRange'](_0x153319,_0x1fbcba);}}class P extends _0x3731df{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a9a29){super(_0x2a9a29),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4941c6=this['editor'],_0x207646=_0x4941c6['model']['document']['selection'],_0x477c4d=_0x56ae16(()=>this['refreshSelectedViews'](),0xa);_0x207646['on']('change:range',(_0x2d32fd,_0x45ae24)=>{_0x45ae24['directChange']&&(_0x477c4d['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x4941c6['editing']['view']['document'],'change:isFocused',(_0x22bd9b,_0x5a68e7,_0x4dc789)=>{_0x4dc789&&_0x477c4d();}),this['listenTo'](_0x4941c6['ui']['focusTracker'],'change:isFocused',(_0x4988b0,_0x22313b,_0x47e0d8)=>{_0x47e0d8||_0x4941c6['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0xc2e78e=>this['_editorAnnotationsData']['has'](_0xc2e78e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1e8967){if(this['_editorAnnotations']['has'](_0x1e8967['view']))return;this['_editorAnnotations']['add'](_0x1e8967['view']),this['editor']['ui']['focusTracker']['add'](_0x1e8967['view']['element']);const _0x5c661d=this['editor']['plugins']['get'](N);this['listenTo'](_0x5c661d['collection'],'remove',(_0x58a7ea,_0x5677f6)=>{this['editor']['ui']['focusTracker']['remove'](_0x5677f6['view']['element']),this['_editorAnnotations']['delete'](_0x5677f6['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x3d8553){if('function'!=typeof _0x3d8553)throw new _0x2569ef('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x3d8553);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4655a4,annotations:_0xcb78f7}){const _0x7d0a8a=[],_0x458f07=this['editor']['model']['document']['selection'],_0x141efc=Array['from'](_0x458f07['getRanges']());for(const [_0xd720c2,_0x5ab38]of this['_editorAnnotationsData']){const _0xabdc1c=_0x469d36(_0x5ab38),_0x486846=_0xcb78f7['getByInnerView'](_0xd720c2);_0xabdc1c&&_0x486846&&_0x7d0a8a['push']({'annotation':_0x486846,'range':_0xabdc1c});}function _0x469d36(_0x12298c){for(const _0x50f62c of _0x12298c)for(const _0x49f2af of _0x141efc)if(_0x50f62c['containsRange'](_0x49f2af,!_0x458f07['isCollapsed']))return _0x50f62c;return null;}return _0x7d0a8a['sort']((_0x3c3996,_0x192e27)=>{const _0x54f726=_0x3c3996['range'],_0x15958e=_0x192e27['range'];if(!_0x54f726['isEqual'](_0x15958e)){if(_0x54f726['containsRange'](_0x15958e,!0x0))return 0x1;if(_0x15958e['containsRange'](_0x54f726,!0x0))return-0x1;}return _0x3c3996['annotation']==_0x4655a4?-0x1:_0x192e27['annotation']==_0x4655a4?0x1:0x0;})['map'](_0x1a5c2f=>_0x1a5c2f['annotation']);}get['_editorAnnotationsData'](){const _0x15a3a7=new Map();for(const _0x2b355c of Array['from'](this['_dataCollectors']))for(const [_0x15c224,_0x2dbaa5]of _0x2b355c())_0x15a3a7['set'](_0x15c224,_0x2dbaa5);return _0x15a3a7;}}class st extends _0x3731df{['afterInit'](){const _0x2d7dbc=this['editor'];if(!_0x2d7dbc['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2d7dbc['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3731df{constructor(_0x4c005f){super(_0x4c005f),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x4d3718=this['editor'],_0x57259c=_0x4d3718['commands']['get']('importWord'),_0x41103e=_0x4d3718['plugins']['get'](it);_0x57259c&&(_0x57259c['on']('execute',(_0x363002,[,_0x1d385a])=>{_0x1d385a['collaboration_features']={'comments':!0x0,'user_id':_0x41103e['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x57259c,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0xb3bd9f,_0x137cfd){const {comment_threads:_0x563b02}=_0x137cfd;_0x563b02&&_0x563b02['forEach'](({thread_id:_0x1c44d4,comments:_0x5896bb,is_resolved:_0xd0f152})=>{const _0x1f040d=new Date(),_0x5e19a7=_0x5896bb['map'](({author:_0x39c7d9,content:_0x41a038,created_at:_0x189c51})=>({'content':_0x41a038,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1f040d,'attributes':{'@external':{'authorName':_0x39c7d9,'createdAt':_0x189c51?new Date(_0x189c51):new Date(),'source':'importWord'}}})),_0x4c580a=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4c580a,'threadId':_0x1c44d4,'comments':_0x5e19a7,'resolvedAt':_0xd0f152?_0x1f040d:null});});}}class at extends _0x3731df{constructor(_0xa5a5dd){super(_0xa5a5dd),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2d8018=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2d8018,'contentInsertion',(_0x3724f2,_0x2dfd72)=>this['_removeMarkersWithoutThreads'](_0x2dfd72['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4f2375){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4f2375;const _0x295b71=this['editor']['plugins']['get']('CommentsRepository');for(const _0x37aabb of _0x4f2375['keys']()){const [_0x586fb6,_0x2ec1e3]=_0x37aabb['split'](':');'comment'!=_0x586fb6||_0x295b71['hasCommentThread'](_0x2ec1e3)||_0x4f2375['delete'](_0x37aabb);}return _0x4f2375;}['_registerMarkerInClipboardPipeline'](){const _0x27d723=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x317f6b=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x317f6b&&_0x27d723['_registerMarkerToCopy']('comment',_0x317f6b);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x56ec29){switch(_0x56ec29){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x3731df{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55697){super(_0x55697),this['set']('isThreadsLoadingPaused',!0x0),_0x55697['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x57beb6,_0xde3d88,_0x283986,_0x2f9a19)=>{const _0x333868=_0x283986?he(_0x283986)['id']:null;if(_0x55697['model']['change'](()=>{if(_0x333868){const _0x4433b4=this['getAllMarkersForId'](_0x333868);for(const _0x24f68f of _0x4433b4)_0x55697['editing']['reconvertMarker'](_0x24f68f);}if(_0x2f9a19){const {id:_0x3c384f}=he(_0x2f9a19),_0xac8e55=this['getAllMarkersForId'](_0x3c384f);for(const _0x36bea9 of _0xac8e55)_0x55697['editing']['reconvertMarker'](_0x36bea9);}}),_0x333868){const _0x5f518d=_0x55697['plugins']['get'](o)['getCommentThread'](_0x333868);_0x5f518d&&_0x5f518d['isResolved']&&this['scrollToThreadMarker'](_0x333868);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x6194aa=this['editor'],_0x460d67=_0x6194aa['plugins']['get'](o),_0x41a955=_0x6194aa['config']['get']('collaboration.channelId');_0x6194aa['commands']['add']('addCommentThread',new J(_0x6194aa)),this['listenTo'](_0x6194aa,'change:isReadOnly',(_0x3f886b,_0x3954ce,_0x242aae)=>{_0x460d67['switchReadOnly'](_0x242aae,_0x6194aa['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x460d67,ut('addCommentThread',_0x41a955),(_0xf00c1e,{threadId:_0x3e7128})=>{const _0x5d0b26=this['editor']['plugins']['get'](o)['getCommentThread'](_0x3e7128);_0x5d0b26&&_0x5d0b26['unlinkedAt']&&this['_attachArchivedThread'](_0x3e7128);}),this['listenTo'](_0x460d67,ut('removeCommentThread',_0x41a955),(_0x1a927e,{threadId:_0x398ccd})=>{_0x6194aa['model']['enqueueChange']({'isUndoable':!0x1},_0x29db91=>{const _0x2da27e=this['getAllMarkersForId'](_0x398ccd);for(const _0x107417 of _0x2da27e)_0x29db91['removeMarker'](_0x107417);});}),this['listenTo'](_0x460d67,ut('resolveCommentThread',_0x41a955),(_0x6a7706,{threadId:_0xd3a24d})=>{(this['_reconvertMarkers'](_0xd3a24d),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xd3a24d)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x460d67,ut('reopenCommentThread',_0x41a955),(_0xb320ea,{threadId:_0x5d8959})=>{this['_reconvertMarkers'](_0x5d8959);},{'priority':'low'}),this['listenTo'](_0x460d67,ut('addComment',_0x41a955),(_0xca1ceb,{threadId:_0x2c9dd4,isFromAdapter:_0x119964})=>{const _0x3810c1=this['getAllMarkersForId'](_0x2c9dd4);if(_0x119964||0x0==_0x3810c1['length']||!_0x460d67['hasCommentThread'](_0x2c9dd4))return;0x1===_0x460d67['getCommentThread'](_0x2c9dd4)['length']&&_0x6194aa['model']['enqueueChange']({'isUndoable':!0x1},_0x5a5abd=>{for(const _0x292c2f of _0x3810c1)_0x5a5abd['updateMarker'](_0x292c2f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x1302ff){const _0x515d29=_0x54d172([0x47,0x61,0x6f,0x69,0x77,0x38,0x64,0x55,0x68,0x4c,0x56,0x46,0x42,0x32,0x58,0x39,0x79,0x72,0x66,0x62,0x75,0x30,0x6b,0x4a,0x6a,0x4f,0x6c,0x73,0x71,0x67,0x50,0x7a,0x4b,0x57,0x43,0x44,0x34,0x52,0x51,0x59,0x48,0x70,0x54,0x5a,0x76,0x31,0x4d,0x37,0x49,0x53,0x36,0x6e,0x63,0x78,0x74,0x45,0x33,0x6d,0x35,0x4e,0x65,0x41]),_0x52e7bd=0x44869f17,_0x474d6c=0x4481c79f^_0x52e7bd,_0xee9b45=window[_0x54d172([0x44,0x61,0x74,0x65])][_0x54d172([0x6e,0x6f,0x77])](),_0x475ad3=_0x1302ff[_0x54d172([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc6ec12=new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b663f=>{_0x475ad3[_0x54d172([0x6f,0x6e,0x63,0x65])](_0x54d172([0x72,0x65,0x61,0x64,0x79]),_0x3b663f);}),_0x4afbcd={[_0x54d172([0x6b,0x74,0x79])]:_0x54d172([0x45,0x43]),[_0x54d172([0x75,0x73,0x65])]:_0x54d172([0x73,0x69,0x67]),[_0x54d172([0x63,0x72,0x76])]:_0x54d172([0x50,0x2d,0x32,0x35,0x36]),[_0x54d172([0x78])]:_0x54d172([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]),[_0x54d172([0x79])]:_0x54d172([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]),[_0x54d172([0x61,0x6c,0x67])]:_0x54d172([0x45,0x53,0x32,0x35,0x36])},_0xd443f5=_0x475ad3[_0x54d172([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54d172([0x67,0x65,0x74])](_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5df410(){let _0x311869,_0x8f67f4=null,_0x3035bd=null;try{if(_0xd443f5==_0x54d172([0x47,0x50,0x4c]))return _0x54d172([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x311869=_0x39dde1(),!_0x311869)return _0x54d172([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x311869[_0x54d172([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3035bd=_0x227167(_0x311869[_0x54d172([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x311869[_0x54d172([0x6a,0x74,0x69])])),await _0x441d70()?_0x3f4423()?_0x76e4eb()?_0x54d172([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6e6256()?(_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54d172([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x8f67f4=_0x540ea2(_0x54d172([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54d172([0x74,0x72,0x69,0x61,0x6c])&&(_0x8f67f4=_0x540ea2(_0x54d172([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54d172([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x8f67f4=_0x540ea2(_0x54d172([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e67de()):_0x54d172([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54d172([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54d172([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x413da1){return _0x54d172([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x76e4eb(){const _0x4e6cd4=[_0x54d172([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54d172([0x74,0x72,0x69,0x61,0x6c])][_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xee9b45/0x3e8:0xe10*_0x474d6c;return _0x311869[_0x54d172([0x65,0x78,0x70])]<_0x4e6cd4;}function _0x3f4423(){const _0x342f03=_0x311869[_0x54d172([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x342f03)return!0x1;if(_0x342f03[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d172([0x2a])))return!0x0;if(_0x342f03[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d172([0x43,0x4d,0x54])))return!0x0;if(_0x342f03[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d172([0x52,0x43,0x4d,0x54]))){if(_0x5f5492())return!0x0;if(_0x49914a()||_0x4edf55())return!0x0;}return!0x1;}function _0x6e6256(){const _0x487d49=_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x487d49||0x0==_0x487d49[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x209878}=new URL(window[_0x54d172([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x487d49[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x209878))return!0x0;const _0x213dde=_0x209878[_0x54d172([0x73,0x70,0x6c,0x69,0x74])](_0x54d172([0x2e]));return _0x487d49[_0x54d172([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x545f67=>_0x545f67[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d172([0x2a])))[_0x54d172([0x6d,0x61,0x70])](_0x239461=>_0x239461[_0x54d172([0x73,0x70,0x6c,0x69,0x74])](_0x54d172([0x2e])))[_0x54d172([0x73,0x6f,0x6d,0x65])](_0x2a5451=>_0x213dde[_0x54d172([0x65,0x76,0x65,0x72,0x79])]((_0x516025,_0x58d229)=>_0x2a5451[_0x58d229]===_0x516025||_0x2a5451[_0x58d229]===_0x54d172([0x2a])));}function _0x5e67de(){return _0x8f67f4&&_0x3035bd?new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26de0f,_0x307fe5)=>{_0x8f67f4[_0x54d172([0x74,0x68,0x65,0x6e])](_0x26de0f,_0x307fe5),_0x3035bd[_0x54d172([0x74,0x68,0x65,0x6e])](_0x541763=>{_0x541763!=_0x54d172([0x56,0x61,0x6c,0x69,0x64])&&_0x26de0f(_0x541763);},_0x307fe5);}):_0x8f67f4||_0x3035bd||_0x54d172([0x56,0x61,0x6c,0x69,0x64]);}}function _0x227167(_0x4e17c3,_0x1c5eb6){return new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b2e24=>{if(_0x324b94())return _0x2b2e24(_0x54d172([0x56,0x61,0x6c,0x69,0x64]));_0xe18cae(),_0x475ad3[_0x54d172([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54d172([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x53433d=!0x1;const _0xe30af8=_0x5567a4();function _0x2c1eb7(_0x568d18){return!!_0x568d18&&(typeof _0x568d18===_0x54d172([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x568d18===_0x54d172([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x568d18[_0x54d172([0x74,0x68,0x65,0x6e])]===_0x54d172([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x568d18[_0x54d172([0x63,0x61,0x74,0x63,0x68])]===_0x54d172([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c47b3(_0x3bda64){_0xd9f61c(_0x3bda64)[_0x54d172([0x74,0x68,0x65,0x6e])](_0x4cb7be=>{if(!_0x4cb7be||_0x4cb7be[_0x54d172([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54d172([0x6f,0x6b]))return _0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd2a1a(_0x4833e0(_0xe30af8+_0x1c5eb6))!=_0x4cb7be[_0x54d172([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54d172([0x56,0x61,0x6c,0x69,0x64]);})[_0x54d172([0x74,0x68,0x65,0x6e])](_0x276dc9=>(_0x2d798c(),_0x276dc9),()=>{const _0x2852b8=_0x3e416e();return null==_0x2852b8?(_0x2d798c(),_0x54d172([0x56,0x61,0x6c,0x69,0x64])):_0x54d172(_0xee9b45-_0x2852b8>(0x608a1b17^_0x52e7bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54d172([0x74,0x68,0x65,0x6e])](_0x2b2e24)[_0x54d172([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b2e24(_0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1cc442=0x44b07197^_0x52e7bd;function _0x2d798c(){const _0x3fcadc=_0x54d172([0x6c,0x6c,0x63,0x74,0x2d])+_0xd2a1a(_0x4833e0(_0x4e17c3)),_0x1a2b1b=_0x515dfb(_0xd2a1a(window[_0x54d172([0x4d,0x61,0x74,0x68])][_0x54d172([0x63,0x65,0x69,0x6c])](_0xee9b45/_0x1cc442)));window[_0x54d172([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54d172([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fcadc,_0x1a2b1b);}function _0x3e416e(){const _0x5f2c5d=_0x54d172([0x6c,0x6c,0x63,0x74,0x2d])+_0xd2a1a(_0x4833e0(_0x4e17c3)),_0xabb748=window[_0x54d172([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54d172([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f2c5d);return _0xabb748?window[_0x54d172([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x515dfb(_0xabb748),0x10)*_0x1cc442:null;}function _0xd9f61c(_0x50efb3){return new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ea9c5,_0x182515)=>{_0x50efb3[_0x54d172([0x74,0x68,0x65,0x6e])](_0x1ea9c5,_0x182515),window[_0x54d172([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x182515,0x44874bd7^_0x52e7bd);});}}_0x475ad3[_0x54d172([0x6f,0x6e])](_0x54d172([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58787b,_0x3d6c4a)=>{if(_0x3d6c4a[0x0]!=_0x4e17c3)return _0x2b2e24(_0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d6c4a[0x1]={..._0x3d6c4a[0x1],[_0x54d172([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe30af8};},{[_0x54d172([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54d172([0x68,0x69,0x67,0x68])}),_0x475ad3[_0x54d172([0x6f,0x6e])](_0x54d172([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4392a5=>{_0x2c1eb7(_0x4392a5[_0x54d172([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x53433d=!0x0,_0x4c47b3(_0x4392a5[_0x54d172([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54d172([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54d172([0x6c,0x6f,0x77])}),_0xc6ec12[_0x54d172([0x74,0x68,0x65,0x6e])](()=>{_0x53433d||_0x2b2e24(_0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x324b94(){return _0x475ad3[_0x54d172([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54d172([0x76,0x69,0x65,0x77])][_0x54d172([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54d172([0x61,0x75,0x74,0x6f]);}function _0xe18cae(){_0x475ad3[_0x54d172([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54d172([0x76,0x69,0x65,0x77])][_0x54d172([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54d172([0x61,0x75,0x74,0x6f]);}}function _0x540ea2(_0x4385f8){const _0xa5d629=[new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c84ed=>setTimeout(_0x3c84ed,0x448fa1db^_0x52e7bd)),_0xc6ec12[_0x54d172([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575228=>{let _0xbaea84=0x0;_0x475ad3[_0x54d172([0x6d,0x6f,0x64,0x65,0x6c])][_0x54d172([0x6f,0x6e])](_0x54d172([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40f85a,_0x158bbb)=>{_0x158bbb[0x0][_0x54d172([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xbaea84++,_0xbaea84==(0x44869eef^_0x52e7bd)&&(_0x575228(),_0x40f85a[_0x54d172([0x6f,0x66,0x66])]());});}))];return window[_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54d172([0x72,0x61,0x63,0x65])](_0xa5d629)[_0x54d172([0x74,0x68,0x65,0x6e])](()=>_0x4385f8);}async function _0xdbd331(){await _0xc6ec12,_0x475ad3[_0x54d172([0x6d,0x6f,0x64,0x65,0x6c])][_0x54d172([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x151775,_0x475ad3[_0x54d172([0x6d,0x6f,0x64,0x65,0x6c])][_0x54d172([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x151775,_0x475ad3[_0x54d172([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54d172([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f5492(){return _0x53f101(_0x54d172([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x446577(_0x54d172([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x54d172([0x73,0x74,0x61,0x74,0x65])]==_0x54d172([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x49914a(){return _0x53f101(_0x54d172([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 _0x4edf55(){return _0x53f101(_0x54d172([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47c5c2(_0x142df8){const _0x525361=_0x327613();_0x475ad3[_0x525361]=_0x54d172([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x142df8,_0x142df8!=_0x54d172([0x56,0x61,0x6c,0x69,0x64])&&_0xdbd331();}function _0x327613(){const _0x2a0c1c=window[_0x54d172([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54d172([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54d172([0x6e,0x6f,0x77])]())[_0x54d172([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54d172([0x2e]),'');let _0x5d95d2=_0x54d172([0x47]);for(let _0x4fb6c9=0x0;_0x4fb6c9<_0x2a0c1c[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fb6c9+=0x2){let _0x5193a3=window[_0x54d172([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a0c1c[_0x54d172([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fb6c9,_0x4fb6c9+0x2));_0x5193a3>=_0x515d29[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5193a3-=_0x515d29[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d95d2+=_0x515d29[_0x5193a3];}return _0x5d95d2;}function _0x39dde1(){const _0x20376a=_0xd443f5[_0x54d172([0x73,0x70,0x6c,0x69,0x74])](_0x54d172([0x2e]));if(0x3!=_0x20376a[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x36e822(_0x20376a[0x1]);function _0x36e822(_0x2436ee){const _0x43759d=_0x275e4a(_0x2436ee);return _0x43759d&&_0x4a7868()?_0x43759d:null;function _0x4a7868(){const _0x59c4cc=_0x43759d[_0x54d172([0x6a,0x74,0x69])],_0x406849=window[_0x54d172([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c4cc[_0x54d172([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59c4cc[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a434b={..._0x43759d,[_0x54d172([0x6a,0x74,0x69])]:_0x59c4cc[_0x54d172([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59c4cc[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a434b[_0x54d172([0x76,0x63])],_0x4833e0(_0x5a434b)==_0x406849;}}}async function _0x441d70(){let _0xd657d=!0x0;try{const _0x555e1f=_0xd443f5[_0x54d172([0x73,0x70,0x6c,0x69,0x74])](_0x54d172([0x2e])),[_0x3cc25d,_0x424805,_0x311a32]=_0x555e1f;return _0xa84a20(_0x3cc25d),await _0x390bf3(_0x3cc25d,_0x424805,_0x311a32),_0xd657d;}catch(_0x41960e){return!0x1;}function _0xa84a20(_0x501736){const _0x137e47=_0x275e4a(_0x501736);_0x137e47&&_0x137e47[_0x54d172([0x61,0x6c,0x67])]==_0x54d172([0x45,0x53,0x32,0x35,0x36])||(_0xd657d=!0x1);}async function _0x390bf3(_0x1a2a64,_0x57042a,_0x272ef7){const _0x4ffcff=window[_0x54d172([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54d172([0x66,0x72,0x6f,0x6d])](_0xaaa4f0(_0x272ef7),_0x9877e7=>_0x9877e7[_0x54d172([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3221bd=new window[(_0x54d172([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54d172([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a2a64+_0x54d172([0x2e])+_0x57042a),_0x25a351=window[_0x54d172([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54d172([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25a351)return;const _0x5da202=await _0x25a351[_0x54d172([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54d172([0x6a,0x77,0x6b]),_0x4afbcd,{[_0x54d172([0x6e,0x61,0x6d,0x65])]:_0x54d172([0x45,0x43,0x44,0x53,0x41]),[_0x54d172([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54d172([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54d172([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25a351[_0x54d172([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54d172([0x6e,0x61,0x6d,0x65])]:_0x54d172([0x45,0x43,0x44,0x53,0x41]),[_0x54d172([0x68,0x61,0x73,0x68])]:{[_0x54d172([0x6e,0x61,0x6d,0x65])]:_0x54d172([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5da202,_0x4ffcff,_0x3221bd)||(_0xd657d=!0x1);}}function _0x275e4a(_0x10d8b5){return _0x10d8b5[_0x54d172([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54d172([0x65,0x79]))?JSON[_0x54d172([0x70,0x61,0x72,0x73,0x65])](_0xaaa4f0(_0x10d8b5)):null;}function _0xaaa4f0(_0x477982){return window[_0x54d172([0x61,0x74,0x6f,0x62])](_0x477982[_0x54d172([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54d172([0x2b]))[_0x54d172([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54d172([0x2f])));}function _0x4833e0(_0x48b964){let _0xc24b9f=0x1505;function _0x48b8b6(_0x1ed24c){for(let _0x34644c=0x0;_0x34644c<_0x1ed24c[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34644c++){const _0x46f920=_0x1ed24c[_0x54d172([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34644c);_0xc24b9f=(_0xc24b9f<<0x5)+_0xc24b9f+_0x46f920,_0xc24b9f&=_0xc24b9f;}}function _0x232ce0(_0x2dceae){Array[_0x54d172([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dceae)?_0x2dceae[_0x54d172([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x232ce0):_0x2dceae&&typeof _0x2dceae==_0x54d172([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54d172([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dceae)[_0x54d172([0x73,0x6f,0x72,0x74])]()[_0x54d172([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3978ec,_0x296a78])=>{_0x48b8b6(_0x3978ec),_0x232ce0(_0x296a78);}):_0x48b8b6(window[_0x54d172([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dceae));}return _0x232ce0(_0x48b964),_0xc24b9f>>>0x0;}function _0xd2a1a(_0xb8161a){return _0xb8161a[_0x54d172([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54d172([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54d172([0x30]));}function _0x515dfb(_0x12d388){return _0x12d388[_0x54d172([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54d172([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54d172([0x6a,0x6f,0x69,0x6e])]('');}function _0x53f101(_0x1ee99b){return _0x475ad3[_0x54d172([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54d172([0x68,0x61,0x73])](_0x1ee99b);}function _0x446577(_0x4cdd01){return _0x475ad3[_0x54d172([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54d172([0x67,0x65,0x74])](_0x4cdd01);}function _0x151775(){}function _0x54d172(_0x1b3237){return _0x1b3237['map'](_0x1cfacc=>String['fromCharCode'](_0x1cfacc))['join']('');}_0x47c5c2(await _0x5df410());}(this);}['destroy'](){const _0x31ad41=this['editor']['plugins']['get'](o),_0x4c6a53=this['editor']['config']['get']('collaboration.channelId');for(const _0x4bc9af of _0x31ad41['getCommentThreads']({'channelId':_0x4c6a53}))_0x31ad41['_detachCommentThread'](_0x4bc9af['id']),_0x31ad41['_threads']['delete'](_0x4bc9af['id']);super['destroy']();}['hasMarkerForId'](_0x4eea5f){return this['getAllMarkersForId'](_0x4eea5f)['length']>0x0;}['getAllMarkersForId'](_0x429e53){const _0x2df61a=[];for(const _0x58cfe3 of this['editor']['model']['markers'])_0x58cfe3['name']['startsWith']('comment:'+_0x429e53)&&_0x2df61a['push'](_0x58cfe3);return _0x2df61a;}['scrollToThreadMarker'](_0x5dd9c9){const _0x351635=this['_getTargetForId'](_0x5dd9c9);_0x351635&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x5dd9c9&&rt({'target':_0x351635[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x133773){this['editor']['model']['change'](()=>{for(const _0x895cf8 of this['getAllMarkersForId'](_0x133773))this['editor']['editing']['reconvertMarker'](_0x895cf8);});}['_attachArchivedThread'](_0x10c18a){const _0x1cb84e=this['editor']['plugins']['get'](o),_0xf0867b=this['editor']['plugins']['get'](P),_0x2eca6f=_0x1cb84e['getCommentThread'](_0x10c18a);if(!_0x2eca6f['isAttached']){const _0x274651=_0x2eca6f['attachTo'](()=>this['_getTargetForId'](_0x2eca6f['id']));_0xf0867b['registerAnnotation'](_0x274651),_0x2eca6f['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x30b984=this['editor'],_0x7662a7=_0x30b984['plugins']['get'](it);_0x30b984['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4068a2,_0x2218cf)=>{const {id:_0x39f099}=he(_0x4068a2['markerName']),_0x176330=_0x30b984['plugins']['get'](o)['getCommentThread'](_0x39f099),_0x237c99=this['activeMarker']&&he(this['activeMarker'])['id']===_0x39f099;let _0x7a3d09;if(_0x176330&&_0x176330['isResolved']&&!_0x237c99&&_0x4068a2['item'])return _0x2218cf['consumable']['consume'](_0x4068a2['item'],'addMarker:'+_0x4068a2['markerName']),_0x2218cf['consumable']['consume'](_0x4068a2['item'],'removeMarker:'+_0x4068a2['markerName']),null;const _0x341e33=['ck-comment-marker'];return _0x237c99&&_0x341e33['push']('ck-comment-marker--active'),_0x7a3d09=_0x176330&&_0x176330['length']?_0x176330['comments']['first']['author']['id']:_0x7662a7['me']['id'],{'classes':_0x341e33,'attributes':{'data-comment':_0x39f099,'data-author-id':_0x7a3d09}};}}),_0x30b984['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3f98df,{options:_0x3cee39})=>{const _0xf1f939=_0x30b984['plugins']['get'](o),_0x7534fb=_0x30b984['model']['markers']['get'](_0x3f98df),{id:_0x4804e7,part:_0x4ac457}=he(_0x3f98df);if(_0x7534fb&&!_0x7534fb['affectsData'])return null;if(_0x3cee39['ignoreResolvedComments']){const _0x458dbe=_0xf1f939['getCommentThread'](_0x4804e7);if(_0x458dbe&&_0x458dbe['isResolved'])return null;}return{'group':'comment','name':_0x4ac457?_0x4804e7+':'+_0x4ac457:_0x4804e7};}}),_0x30b984['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x4ca2ca,{writer:_0x401be1})=>_0x401be1['createElement']('$marker',{'data-name':'comment:'+_0x4ca2ca['getAttribute']('id')})}),_0x30b984['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0xb9536d=this['editor'],_0x29e62a=_0xb9536d['plugins']['get'](o),_0x641881=new Set(),_0x237e03=new Set();_0xb9536d['model']['document']['registerPostFixer'](_0x3d05c7=>{let _0x43520a=!0x1;for(const {name:_0x2ec3ee,data:_0x5c2de9}of _0xb9536d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2e488d,id:_0x168696}=he(_0x2ec3ee);let _0x391130=_0x5c2de9['newRange'];if('comment'!==_0x2e488d||!_0x391130)continue;const _0x1035e0='$graveyard'===_0x391130['root']['rootName'];_0x1035e0||(_0x391130=ft(_0x391130,_0xb9536d['model']),!_0x391130||_0x391130['isCollapsed']||!_0x5c2de9['newRange']||_0x391130['isEqual'](_0x5c2de9['newRange']))?_0xb9536d['model']['hasContent'](_0x391130)&&!_0x1035e0?this['isThreadsLoadingPaused']?_0x641881['add'](_0x2ec3ee):this['_handleThreadMarker'](_0x2ec3ee,_0x168696):(_0x237e03['add'](_0x2ec3ee),_0x641881['delete'](_0x2ec3ee),_0x3d05c7['removeMarker'](_0x2ec3ee),_0x43520a=!0x0):(_0x3d05c7['updateMarker'](_0x2ec3ee,{'range':_0x391130}),_0x43520a=!0x0);}return _0x43520a;}),this['on']('change:isThreadsLoadingPaused',(_0x130a1c,_0x200a13,_0x422a0e)=>{if(!_0x422a0e&&_0x641881['size'])for(const _0x3a01ce of _0x641881){const {id:_0x2134e4}=he(_0x3a01ce);_0x641881['delete'](_0x3a01ce),_0xb9536d['model']['markers']['get'](_0x3a01ce)&&this['_handleThreadMarker'](_0x3a01ce,_0x2134e4);}}),this['listenTo'](_0xb9536d['model']['document'],'change',(_0x18e8ae,_0x52225d)=>{for(const {name:_0x46235d,data:{newRange:_0x25200d}}of _0xb9536d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2c5837,id:_0xab2c14}=he(_0x46235d);if('comment'!==_0x2c5837)continue;const _0x5cd12d=_0x29e62a['getCommentThread'](_0xab2c14),_0x3ac9a3=this['hasMarkerForId'](_0xab2c14);_0x5cd12d&&(!_0x5cd12d['_hasTargetInContent']&&_0x25200d&&_0xb9536d['editing']['view']['once']('render',()=>{const _0x2bc309=_0xb9536d['plugins']['get'](N),_0x4b9ca4=_0x29e62a['_threadToController']['get'](_0x5cd12d)['view'];_0x2bc309['getByInnerView'](_0x4b9ca4)['refreshVisibility']();},{'priority':'low'}),_0x5cd12d['_hasTargetInContent']=_0x3ac9a3||!!_0x25200d),_0x25200d||(_0x237e03['add'](_0x46235d),_0x641881['delete'](_0x46235d));}if(_0x52225d['isLocal'])for(const _0x138713 of _0x237e03){const {id:_0x51e06d}=he(_0x138713),_0xddb3da=_0x29e62a['getCommentThread'](_0x51e06d),_0x18deaf=this['hasMarkerForId'](_0x51e06d);_0x641881['delete'](_0x138713),!_0xddb3da||_0x18deaf||_0xddb3da['unlinkedAt']||_0xddb3da['setUnlinkedAt'](new Date());}_0x237e03['clear']();});}['_getTargetForId'](_0x5a5189){const _0x642c3d=this['editor'],_0x397955=this['getAllMarkersForId'](_0x5a5189);return et(_0x642c3d['editing'],_0x397955);}['_getTextContext'](_0x4beae8){const _0x4d7051=this['getAllMarkersForId'](_0x4beae8);let _0x5b0465='',_0x3b3d4f=!0x1;for(const _0x57f91a of _0x4d7051){const _0x3fb479=_0x57f91a['getRange']();for(const _0xbbe1ad of Array['from'](_0x3fb479['getItems']()))_0xbbe1ad['is']('$textProxy')?(_0x5b0465&&_0x3b3d4f&&(_0x5b0465+='\x20',_0x3b3d4f=!0x1),_0x5b0465+=_0xbbe1ad['data']):_0x3b3d4f=!0x0;_0x3b3d4f=!0x0;}return _0x5b0465['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5cd5e5,_0x2c1aa7){const _0x12d49e=this['editor'],_0x1adef7=_0x12d49e['plugins']['get'](o);let _0xcdcf4d=_0x1adef7['getCommentThread'](_0x2c1aa7);const _0x2791f9=_0x12d49e['config']['get']('collaboration.channelId'),_0x18c2a3=_0x12d49e['plugins']['get'](P);if(_0xcdcf4d&&(_0xcdcf4d['unlinkedAt']&&_0xcdcf4d['setUnlinkedAt'](null),_0xcdcf4d['isAttached']))return _0xcdcf4d;return!this['getAllMarkersForId'](_0x2c1aa7)[0x0]['managedUsingOperations']?_0x12d49e['editing']['view']['once']('render',()=>{if(_0x1adef7['getCommentThread'](_0x2c1aa7))return;const _0x3d17b6=_0x12d49e['plugins']['get'](N);_0xcdcf4d=_0x1adef7['openNewCommentThread']({'channelId':_0x2791f9,'threadId':_0x2c1aa7,'target':()=>this['_getTargetForId'](_0x2c1aa7),'context':{'type':'text','value':this['_getTextContext'](_0x2c1aa7)}});const _0x158e61=_0x1adef7['_threadToController']['get'](_0xcdcf4d)['view'],_0x1ae86c=_0x3d17b6['getByInnerView'](_0x158e61);_0x1ae86c&&_0x18c2a3['registerAnnotation'](_0x1ae86c);},{'priority':'low'}):_0x1adef7['fetchCommentThread']({'channelId':_0x2791f9,'threadId':_0x2c1aa7})['then'](_0x28c56b=>{if('destroyed'!==_0x12d49e['state']){if(_0xcdcf4d=_0x28c56b,_0xcdcf4d&&!_0xcdcf4d['isAttached']){const _0x481d43=_0xcdcf4d['attachTo'](()=>this['_getTargetForId'](_0x2c1aa7));_0x18c2a3['registerAnnotation'](_0x481d43),_0xcdcf4d['isResolved']&&this['_reconvertMarkers'](_0x2c1aa7);}else{if(!_0xcdcf4d){const _0x54f559=this['getAllMarkersForId'](_0x2c1aa7);_0x12d49e['model']['change'](_0x342ae9=>{for(const _0x4add25 of _0x54f559)_0x342ae9['removeMarker'](_0x4add25);});}}}}),_0xcdcf4d;}['_handleThreadMarker'](_0x315e1b,_0x4bbdd2){const _0x1b0679=this['_attachMarkerToThread'](_0x315e1b,_0x4bbdd2);_0x1b0679&&!_0x1b0679['context']&&_0x1b0679['setContext']({'type':'text','value':this['_getTextContext'](_0x4bbdd2)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5f1d36=this['editor'];ot(_0x5f1d36['model'],({left:_0x21483a,entered:_0xa24628})=>{for(const _0x25a25c of _0x21483a)if(dt(_0x25a25c)){_0x5f1d36['ui']['ariaLiveAnnouncer']['announce'](S(_0x5f1d36['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x45fe12 of _0xa24628)if(dt(_0x45fe12)){_0x5f1d36['ui']['ariaLiveAnnouncer']['announce'](S(_0x5f1d36['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0xf6ad3)));break;}});}}function ut(_0x28c181,_0xd1e21e){return _0xd1e21e?_0x28c181+':'+_0xd1e21e:_0x28c181;}function he(_0x579036){const _0x28cd00=_0x579036['split'](':');return{'group':_0x28cd00[0x0],'id':_0x28cd00[0x1],'part':_0x28cd00[0x2]};}function ft(_0x554c44,_0xa99521){const _0x36fde8=_0xa99521['schema'],_0x441e79=_0xa99521['createRange'](_0x554c44['start']);for(const _0x50e7bc of _0x554c44['getWalker']()){const {type:_0x386168,item:_0x547d44,nextPosition:_0x5d0b04}=_0x50e7bc;if('text'===_0x386168||_0x36fde8['isObject'](_0x547d44)){const _0x4618bc=_0xa99521['createPositionBefore'](_0x547d44);_0x441e79['isCollapsed']&&(_0x441e79['start']=_0x4618bc),_0x441e79['end']=_0x5d0b04;}}return _0x441e79;}function dt(_0x360577){return'comment'===he(_0x360577['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x3731df{['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 _0x52b59e=this['editor'],_0x21d41a=_0x52b59e['plugins']['get'](o),_0x16237d=_0x52b59e['plugins']['get'](r),_0x52eed0=_0x52b59e['plugins']['get'](N),_0x5bd7dc=_0x52b59e['plugins']['get'](P);_0x52b59e['ui']['componentFactory']['add']('comment',()=>{const _0x5a02bb=this['_createUIButton'](_0x59879a);return _0x5a02bb['tooltip']=!0x0,_0x5a02bb;}),_0x52b59e['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x16cede)),_0x5bd7dc['addSourceCollector'](()=>{const _0x5a482e=[];for(const [_0x1872a0,_0x680b02]of _0x21d41a['_threadToController']){const _0x3d8ff7=_0x16237d['getAllMarkersForId'](_0x1872a0['id']),_0x510edf=_0x3d8ff7['map'](_0x363666=>_0x363666['getRange']());_0x3d8ff7['length']>0x0&&_0x5a482e['push']([_0x680b02['view'],_0x510edf]);}return _0x5a482e;}),this['listenTo'](_0x52eed0,'change:activeAnnotations',(_0x22b71a,_0x3306e0,_0x5e7e9a)=>{const _0x28f130=Array['from'](_0x5e7e9a)['map'](_0x22fd41=>_0x22fd41['innerView'])['find'](_0x18e684=>_0x21d41a['_viewToController']['has'](_0x18e684));if(!_0x28f130)return void(_0x16237d['activeMarker']=null);const _0x4d5626=_0x21d41a['_viewToController']['get'](_0x28f130)['model']['id'],_0x4183b7='comment:'+_0x4d5626;_0x4d5626&&_0x16237d['hasMarkerForId'](_0x4d5626)?_0x16237d['activeMarker']=_0x4183b7:_0x16237d['activeMarker']&&(_0x16237d['activeMarker']=null);}),this['listenTo'](_0x21d41a,'removeCommentThread',(_0x198671,{threadId:_0x13cf85,isFromAdapter:_0x10f48c})=>{!_0x10f48c&&_0x52b59e['ui']['focusTracker']['isFocused']&&_0x16237d['hasMarkerForId'](_0x13cf85)&&_0x52b59e['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x21d41a,'addComment',(_0x35f7db,{threadId:_0x19cca5,isFromAdapter:_0x3e30db})=>{if(_0x3e30db||!_0x16237d['hasMarkerForId'](_0x19cca5)||!_0x21d41a['hasCommentThread'](_0x19cca5))return;0x1===_0x21d41a['getCommentThread'](_0x19cca5)['length']&&(_0x52b59e['editing']['view']['focus'](),_0x35f7db['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5b5685=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4feed6;for(const _0x1268a3 in _0x5b5685){const _0x69e572=_0x1268a3,_0x2864fc=_0x5b5685[_0x69e572];if('commentsLicenseKeyValid'==_0x2864fc||'commentsLicenseKeyInvalid'==_0x2864fc||'commentsLicenseKeyExpired'==_0x2864fc||'commentsLicenseKeyDomainLimit'==_0x2864fc||'commentsLicenseKeyNotAllowed'==_0x2864fc||'commentsLicenseKeyEvaluationLimit'==_0x2864fc||'commentsLicenseKeyTrialLimit'==_0x2864fc||'commentsLicenseKeyDevelopmentLimit'==_0x2864fc||'commentsLicenseKeyUsageLimit'==_0x2864fc){delete _0x5b5685[_0x69e572],_0x4feed6=_0x2864fc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4feed6&&_0x5b5685['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4feed6&&_0x5b5685['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4feed6&&_0x5b5685['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x484b3d){const _0x223f5e=this['editor'],_0x239f86=new _0x484b3d(_0x223f5e['locale']),_0x5d0e1e=_0x223f5e['commands']['get']('addCommentThread');return _0x239f86['set']({'label':S(_0x223f5e['locale'],'Comment'),'icon':xt}),_0x239f86['bind']('isEnabled')['to'](_0x5d0e1e),this['listenTo'](_0x239f86,'execute',()=>_0x5d0e1e['execute']()),_0x239f86;}}class s extends _0x3731df{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x215a65){super(_0x215a65),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x3932fc,_0x5728ac,_0xfac992)=>{_0xfac992?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0xd8247e,_0x3b6c85]of this['editor']['commands'])_0x3b6c85['affectsData']&&'addCommentThread'!==_0xd8247e&&_0x3b6c85['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x48f913=this['editor']['editing']['view']['document'];this['listenTo'](_0x48f913,'cut',_0x257db=>_0x257db['stop'](),{'priority':'highest'}),this['listenTo'](_0x48f913,'clipboardInput',_0x492e96=>_0x492e96['stop'](),{'priority':'highest'}),this['listenTo'](_0x48f913,'delete',_0x1efaad=>_0x1efaad['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5b9d80,_0x181f67]of this['editor']['commands'])_0x181f67['affectsData']&&'addCommentThread'!==_0x5b9d80&&_0x181f67['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x100c9b{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x309bfb){super(_0x309bfb),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x5c7e32=this['context']['plugins']['get'](N);this['listenTo'](_0x5c7e32,'_activateAnnotation',(_0x344f2d,_0x5b1590)=>{for(const _0x1962f7 of this['activeUIs']){const _0x4e413b=this['_uis']['get'](_0x1962f7);(0x0,this['_uisData']['get'](_0x1962f7)['filter'])(_0x5b1590)&&_0x4e413b['setActiveAnnotation'](_0x5b1590);}}),this['listenTo'](_0x5c7e32,'_deactivateAllAnnotations',()=>{for(const _0x205456 of this['activeUIs']){this['_uis']['get'](_0x205456)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5c7e32['_visibleAnnotations'],'add',(_0x567876,_0x1f1c71)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1f1c71);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x19271e){return this['activeUIs']['has'](_0x19271e);}['activate'](_0x380ed3,_0x558fdb=()=>!0x0){const _0x242854=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x380ed3))throw new _0x2569ef('annotationsuis-missing-ui',this,{'uiName':_0x380ed3});this['isActive'](_0x380ed3)&&this['deactivate'](_0x380ed3),this['activeUIs']['add'](_0x380ed3);const _0x16e2e7=new x();!function({source:_0x437e09,target:_0x2a40c0,filter:_0x140179}){for(const _0x1eabe9 of _0x437e09)_0x140179(_0x1eabe9)&&_0x2a40c0['add'](_0x1eabe9);_0x2a40c0['listenTo'](_0x437e09,'add',(_0x48c170,_0x3ae2a9)=>{_0x140179(_0x3ae2a9)&&_0x2a40c0['add'](_0x3ae2a9);}),_0x2a40c0['listenTo'](_0x437e09,'remove',(_0x23578f,_0x23cfa5)=>{_0x2a40c0['has'](_0x23cfa5)&&_0x2a40c0['remove'](_0x23cfa5);});}({'source':_0x242854['_visibleAnnotations'],'target':_0x16e2e7,'filter':_0x558fdb}),this['_uisData']['set'](_0x380ed3,{'collection':_0x16e2e7,'filter':_0x558fdb});const _0x57e8ae=this['_uis']['get'](_0x380ed3);_0x57e8ae['attach'](_0x16e2e7),this['listenTo'](_0x57e8ae,'change:activeAnnotation',(_0x4eab8b,_0x3158ba,_0x25d8b8,_0x32d427)=>{_0x32d427&&_0x242854['_removeActiveAnnotation'](_0x32d427),_0x25d8b8&&_0x242854['_addActiveAnnotation'](_0x25d8b8);});}['deactivate'](_0x59965f){if(this['activeUIs']['delete'](_0x59965f),!this['_uis']['has'](_0x59965f))throw new _0x2569ef('annotationsuis-missing-ui',this,{'uiName':_0x59965f});const _0x2f9206=this['_uis']['get'](_0x59965f);_0x2f9206['detach'](),this['stopListening'](_0x2f9206),this['_uisData']['get'](_0x59965f)['collection']['destroy'](),this['_uisData']['delete'](_0x59965f);}['switchTo'](_0x3c6f92){if(!this['_uis']['has'](_0x3c6f92))throw new _0x2569ef('annotationsuis-missing-ui',this,{'uiName':_0x3c6f92});const _0x564d79=this['context']['plugins']['get'](N),_0x24f06d=Array['from'](_0x564d79['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3c6f92);const _0x50360c=this['_uis']['get'](_0x3c6f92);_0x50360c['setActiveAnnotation'](_0x24f06d),_0x50360c['_setSelectedAnnotations']&&_0x24f06d&&_0x50360c['_setSelectedAnnotations']([_0x24f06d]);}['deactivateAll'](){for(const _0x48cc52 of this['activeUIs'])this['deactivate'](_0x48cc52);}['register'](_0x1d45b9,_0x3f3413){if(this['_uis']['has'](_0x1d45b9))throw new _0x2569ef('annotationsuis-register-already-registered');if('function'!=typeof _0x3f3413['attach']||'function'!=typeof _0x3f3413['detach']||'function'!=typeof _0x3f3413['setActiveAnnotation'])throw new _0x2569ef('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1d45b9,_0x3f3413);}['refilterAnnotations'](){const _0x2b0be0=this['context']['plugins']['get'](N)['collection'],_0x5446d3=new Map(),_0x4948f3=Array['from'](this['activeUIs']);for(const _0x5e06d6 of this['activeUIs']){const _0x48e2fc=this['_uisData']['get'](_0x5e06d6)['collection'];for(const _0x281f50 of _0x48e2fc)_0x5446d3['set'](_0x281f50,_0x5e06d6);}for(const _0xbf6ba0 of _0x2b0be0){const _0x475afb=_0x5446d3['get'](_0xbf6ba0);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xbf6ba0);const _0x11e0d6=_0x4948f3['find'](_0x226e63=>this['_uisData']['get'](_0x226e63)['filter'](_0xbf6ba0));_0x475afb!==_0x11e0d6&&(_0x475afb&&this['_uisData']['get'](_0x475afb)['collection']['remove'](_0xbf6ba0),_0x11e0d6&&this['_uisData']['get'](_0x11e0d6)['collection']['add'](_0xbf6ba0));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x279725){const _0x2c201b=[];for(const _0x187bc0 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x187bc0)['filter'])(_0x279725)&&_0x2c201b['push'](_0x187bc0);}if(_0x2c201b['length']>0x1)throw new _0x2569ef('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x2c201b,'annotationType':_0x279725['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x562b1e){super(_0x562b1e);const _0x1cb3fb=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 _0x5ad3fb(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x1cb3fb['to']('class')],'style':{'minHeight':_0x1cb3fb['to']('minHeight',_0x2f4751=>'number'==typeof _0x2f4751?ae(_0x2f4751+0xa):null)},'dir':_0x562b1e['uiLanguageDirection'],'role':'application','aria-label':S(_0x562b1e,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x562b1e,'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',_0x108826=>{this['_updateItemPositionInFocusables'](_0x108826['source']);}),this['list']['forEach'](_0x5c7693=>{this['focusTracker']['add'](_0x5c7693['element']),this['_updateItemPositionInFocusables'](_0x5c7693);}),this['list']['on']('change',(_0x114cec,_0x22aa53)=>{for(const _0x279047 of _0x22aa53['removed'])this['focusTracker']['remove'](_0x279047['element']),this['focusables']['remove'](_0x279047);for(const _0x12ade4 of _0x22aa53['added'])this['focusTracker']['add'](_0x12ade4['element']),this['_updateItemPositionInFocusables'](_0x12ade4);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x5bffd7){const _0x3c3909=this['focusables']['getIndex'](_0x5bffd7);let _0x48cc8a,_0x1f3b6a;for(const _0x173c7d of this['focusables'])if(_0x5bffd7['top']<_0x173c7d['top']){_0x48cc8a=_0x173c7d;break;}if(_0x1f3b6a=_0x48cc8a?this['focusables']['getIndex'](_0x48cc8a):this['focusables']['length'],-0x1!==_0x3c3909){if(_0x3c3909===_0x1f3b6a-0x1)return;this['focusables']['remove'](_0x5bffd7),_0x1f3b6a=_0x48cc8a?this['focusables']['getIndex'](_0x48cc8a):this['focusables']['length'];}this['focusables']['add'](_0x5bffd7,_0x1f3b6a);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x558001){super(_0x558001),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5e173e,_0xb6bbd3)=>_0x5e173e+_0xb6bbd3),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x572e2a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x572e2a['to']('isAnimationDisabled',_0x51d5ec=>_0x51d5ec?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x572e2a['to']('top',_0x4ed62c=>qt(_0x4ed62c))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1f352f=this['element']['clientHeight'];_0x1f352f&&(this['height']=_0x1f352f);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x100c9b{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f48ff){super(_0x4f48ff),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 _0x3ff9ed=this['context']['config']['get']('sidebar.container');_0x3ff9ed&&this['setContainer'](_0x3ff9ed);}['setContainer'](_0x57bdb7){if(!y(_0x57bdb7))throw new _0x2569ef('sidebar-setcontainer-invalid-element');this['container']=_0x57bdb7;}['_attachToContainer']({viewClass:_0x48bdb5='',spaceBetweenItems:_0x56ecd1=0x19}={}){if(!y(this['container']))throw new _0x2569ef('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x48bdb5,this['_spaceBetweenItems']=_0x56ecd1;}['rearrange']({removedAnnotation:_0x48b5f6,previousAnnotation:_0x29e5b9,nextAnnotation:_0x213c9d}){const _0x3d5a10=this['getSidebarItemView'](_0x48b5f6);this['view']['list']['remove'](_0x3d5a10),this['_destroySidebarItemView'](_0x48b5f6),_0x29e5b9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x29e5b9)),_0x213c9d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x213c9d)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x28a71b,activatedAnnotation:_0x41f11a,disableAnimationOnActivatedAnnotation:_0x14844e}){if(this['_activeAnnotation']=_0x41f11a,_0x28a71b){_0x28a71b['isActive']=!0x1;const _0x934092=this['getSidebarItemView'](_0x28a71b);_0x934092&&_0x14844e&&(_0x934092['isAnimationDisabled']=!0x1);}if(_0x41f11a){const _0x169b89=this['getSidebarItemView'](_0x41f11a);_0x169b89&&(_0x41f11a['isActive']=!0x0,_0x14844e&&(_0x169b89['isAnimationDisabled']=!0x0,_0x169b89['top']+=0x1),this['_alignToTargetRect'](_0x169b89));}}['_detachFromContainer'](_0x56ee1a){if(this['view']['element']['remove'](),_0x56ee1a){for(const _0x17b068 of _0x56ee1a)this['_destroySidebarItemView'](_0x17b068);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x170c05,_0x215440){_0x215440||(_0x215440=_0x170c05['view']);const _0x2edbf8=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2edbf8,_0x170c05),this['_annotationToSidebarItemView']['set'](_0x170c05,_0x2edbf8),_0x2edbf8['content']['add'](_0x215440),this['listenTo'](_0x170c05['view'],'change:targetRect',(_0x3aed51,_0x5cd4ea,_0x3f1460)=>{const _0x292274=this['_getTargetTop'](_0x170c05,_0x3f1460);_0x2edbf8['_targetTop']!=_0x292274&&(_0x2edbf8['_targetTop']=_0x292274,this['_setItemTop'](_0x2edbf8,_0x292274));}),this['listenTo'](_0x2edbf8,'change:top',()=>{this['_recalculate'](_0x2edbf8,'top');}),this['listenTo'](_0x2edbf8,'change:bottom',()=>{this['_recalculate'](_0x2edbf8,'bottom');}),this['_alignToTargetRect'](_0x2edbf8);const _0x5308e3=this['_getItemBefore'](_0x2edbf8);if(_0x5308e3)this['_alignAfterItem'](_0x5308e3,_0x2edbf8)||this['_alignToTargetRect'](_0x2edbf8);else this['_alignToTargetRect'](_0x2edbf8);return this['_updateLastItem'](),this['view']['list']['add'](_0x2edbf8),_0x2edbf8;}['_alignForTopChange'](_0xfc08a3){if(!_0xfc08a3['content']['length'])return;const _0x50b32f=this['_getItemBefore'](_0xfc08a3);if(!_0x50b32f)return;const _0x2ace79=this['_sidebarItemViewToAnnotation']['get'](_0x50b32f),_0x2a1991=this['_activeAnnotation'];_0x2a1991&&_0x2a1991===_0x2ace79?this['_alignAfterItem'](_0x50b32f,_0xfc08a3):this['_alignBeforeItem'](_0xfc08a3,_0x50b32f);}['_alignForBottomChange'](_0x925ff1){if(!_0x925ff1['content']['length'])return;const _0x1108eb=this['_getItemAfter'](_0x925ff1);if(!_0x1108eb)return;const _0x46a335=this['_sidebarItemViewToAnnotation']['get'](_0x1108eb),_0x3a2d53=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2409e5=this['_activeAnnotation'];_0x2409e5&&_0x2409e5===_0x46a335&&_0x3a2d53?(this['_alignBeforeItem'](_0x1108eb,_0x925ff1),this['_alignAfterItem'](_0x925ff1,_0x1108eb)):_0x2409e5&&_0x2409e5===_0x46a335?this['_alignBeforeItem'](_0x1108eb,_0x925ff1):this['_alignAfterItem'](_0x925ff1,_0x1108eb);}['_recalculate'](_0x21b395,_0x229580){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x465104,changedProp:_0x1028c4}of this['_recalculateBuffer'])'top'===_0x1028c4?this['_alignForTopChange'](_0x465104):this['_alignForBottomChange'](_0x465104);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x21b395,'changedProp':_0x229580});}['getSidebarItemView'](_0x1373e9){return this['_annotationToSidebarItemView']['get'](_0x1373e9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1da7e6){const _0x1018b9=this['getSidebarItemView'](_0x1da7e6);this['stopListening'](_0x1018b9),this['stopListening'](_0x1da7e6['view']),_0x1018b9['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1da7e6),this['_sidebarItemViewToAnnotation']['delete'](_0x1018b9);}['_createSidebarView'](){const _0x2b0daa=new V(this['context']['locale']);return _0x2b0daa['render'](),this['on']('change:_lastItem',(_0x5c1a97,_0x2fa04a,_0x46e33a,_0x544eb0)=>{_0x544eb0&&_0x2b0daa['unbind']('minHeight'),_0x46e33a?_0x2b0daa['bind']('minHeight')['to'](_0x46e33a,'bottom'):_0x2b0daa['minHeight']=null;}),_0x2b0daa;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3e704c){const _0x1797e0=this['_sidebarItemViewToAnnotation']['get'](_0x3e704c),_0x5cda0c=_0x1797e0&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1797e0)-0x1);return _0x5cda0c&&this['getSidebarItemView'](_0x5cda0c)||null;}['_getItemAfter'](_0x3aa149){const _0x3c40db=this['_sidebarItemViewToAnnotation']['get'](_0x3aa149),_0x36409a=_0x3c40db&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3c40db)+0x1);return _0x36409a&&this['getSidebarItemView'](_0x36409a)||null;}['_alignBeforeItem'](_0x1764ca,_0xdbeb38){_0x1764ca['updateHeight']();const _0x595882=R(_0xdbeb38['bottom']+this['_spaceBetweenItems'],_0x1764ca['top']);return!!_0x595882&&(this['_setItemTop'](_0xdbeb38,_0xdbeb38['top']-_0x595882),!0x0);}['_alignAfterItem'](_0x3a0271,_0x5924b6){_0x3a0271['updateHeight']();const _0x5dcf20=R(_0x3a0271['bottom']+this['_spaceBetweenItems'],_0x5924b6['top']);return!!_0x5dcf20&&(this['_setItemTop'](_0x5924b6,_0x5924b6['top']+_0x5dcf20,!0x1),!0x0);}['_alignToTargetRect'](_0x5ad140){const _0x245b38=this['_sidebarItemViewToAnnotation']['get'](_0x5ad140);if(!_0x245b38||!_0x245b38['target']||!_0x245b38['targetRect'])return;const _0x1ba1e4=this['_getTargetTop'](_0x245b38,_0x245b38['targetRect']);this['_setItemTop'](_0x5ad140,_0x1ba1e4);}['_getTargetTop'](_0x3548f5,_0x44a777){if(null===_0x44a777)return 0x0;if(_0x3548f5['target']instanceof _0x2a3eae)return _0x44a777['top'];{const _0x1f7373=new _0x2a3eae(this['view']['element'])['top'];return _0x44a777['top']-_0x1f7373;}}['_setItemTop'](_0x1e4ece,_0x876c8f,_0x242dbd=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x242dbd&&(_0x876c8f=Math['max'](_0x876c8f,this['_getMaxAvailableTop'](_0x1e4ece))),_0x1e4ece['top']=_0x876c8f;}['_getMaxAvailableTop'](_0x1c4674){let _0x15b8c8=this['_getItemBefore'](_0x1c4674),_0x1875e4=0x0;for(;_0x15b8c8;)_0x15b8c8['updateHeight'](),_0x1875e4+=this['_spaceBetweenItems']+_0x15b8c8['height'],_0x15b8c8=this['_getItemBefore'](_0x15b8c8);return _0x1875e4;}}function R(_0xd3925b,_0x51d596){return Math['max'](_0xd3925b-_0x51d596,0x0);}function y(_0x146481){return null!==_0x146481&&'object'==typeof _0x146481&&0x1===_0x146481['nodeType'];}class e extends _0x100c9b{['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(_0x3c0ace){super(_0x3c0ace),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x836a36(),this['_refreshPositioningDebounced']=_0x56ae16(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x48cc45=this['context']['plugins']['get'](M),_0x18dbc0=this['context']['plugins']['get'](z);_0x48cc45['register']('wideSidebar',this),_0x18dbc0['container']&&_0x48cc45['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x54d999){if(_0x54d999===this['activeAnnotation'])return;const _0x3e1014=this['context']['plugins']['get'](z);_0x3e1014['_activeAnnotation']=_0x54d999;const _0xf1896a=this['activeAnnotation'];this['activeAnnotation']=_0x54d999,_0x3e1014['refresh']({'blurredAnnotation':_0xf1896a,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x4d7723){this['annotations']=_0x4d7723;const _0x163dac=this['context']['plugins']['get'](z);if(_0x163dac['_annotations']=_0x4d7723,this['isAttached'])throw new _0x2569ef('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x163dac,'set:container',()=>{this['detach'](),this['listenTo'](_0x163dac,'change:container',_0x243ab9=>{_0x243ab9['off'](),this['attach'](_0x4d7723);});}),_0x163dac['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3e2f45=_0x1c0b68=>{_0x1c0b68['updateTargetRect'](),_0x163dac['addAnnotation'](_0x1c0b68);};for(const _0x4462a5 of _0x4d7723)_0x3e2f45(_0x4462a5);this['listenTo'](_0x4d7723,'add',(_0x2bfb15,_0x1dbf33)=>{_0x3e2f45(_0x1dbf33);}),this['listenTo'](_0x4d7723,'remove',(_0x3f64f4,_0x41d0f7,_0x43756d)=>{_0x163dac['rearrange']({'removedAnnotation':_0x41d0f7,'previousAnnotation':_0x4d7723['get'](_0x43756d-0x1),'nextAnnotation':_0x4d7723['get'](_0x43756d+0x1)}),_0x41d0f7===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4d7723,'focus',(_0x2cc5e4,_0x149fd8)=>{this['setActiveAnnotation'](_0x149fd8);}),this['listenTo'](_0x4d7723,'blur',()=>{this['setActiveAnnotation'](null);});const _0x3fb122=this['context']instanceof _0x4f4139?this['context']['editors']:new _0x836a36([this['context']]);for(const _0x2679e4 of _0x3fb122)this['_integrateWithEditorAnnotations'](_0x2679e4);this['listenTo'](_0x3fb122,'add',(_0x3c5305,_0x50fe3f)=>{this['listenTo'](_0x50fe3f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x50fe3f);});}),this['listenTo'](_0x3fb122,'remove',(_0x48c016,_0x47e55b)=>{_0x47e55b['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x47e55b['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2569ef('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x43e26b=this['context']['plugins']['get'](z);_0x43e26b['_detachFromContainer'](this['annotations']),this['stopListening'](_0x43e26b),this['stopListening'](this['annotations']),this['context']instanceof _0x4f4139&&this['stopListening'](this['context']['editors']);for(const _0x48efce of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x48efce);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0xfae82e){if(!_0xfae82e['plugins']['has']('EditorAnnotations'))return;const _0x3ed690=_0xfae82e['plugins']['get']('EditorAnnotations'),_0x2404f7=()=>{const _0x4fa3b4=_0x3ed690['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4fa3b4[0x0]||null);};this['listenTo'](_0x3ed690,'refresh',_0x2404f7),this['listenTo'](_0x3ed690,'blur',(_0x15597a,{isAnnotationTracked:_0x336ea4})=>{this['activeAnnotation']&&_0x336ea4(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3ed690,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x34b2c6=>{_0x3ed690['hasDomSelection']()&&(_0x2404f7(),_0x34b2c6['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3ed690);}['_destroyEditorAnnotationsIntegration'](_0x5079e3){this['stopListening'](_0x5079e3),this['_editorAnnotations']['remove'](_0x5079e3);}}class D extends _0x59879a{['counterView'];constructor(_0x827887){super(_0x827887);const _0xb52176=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x233620,_0x100c80)=>_0x233620?'...':_0x100c80['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',_0xb52176['to']('annotationType',_0x4d1b40=>'ck-annotation-counter__badge--'+_0x4d1b40),_0xb52176['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0xb52176['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x100c9b{['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(_0x5f3c72){super(_0x5f3c72),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x5c62f8),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x836a36(),this['_refreshPositioningDebounced']=_0x56ae16(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x2f4a53(this['context']['locale']),this['balloonPanelView']=new _0x1dbba4(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x1977a2){this['annotations']=_0x1977a2;const _0x18fd9f=this['context']['plugins']['get'](z),_0x1afb9a=this['balloonPanelView'];if(_0x18fd9f['_annotations']=_0x1977a2,this['isAttached'])throw new _0x2569ef('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x18fd9f,'set:container',()=>{this['detach'](),this['listenTo'](_0x18fd9f,'change:container',_0x4667c9=>{_0x4667c9['off'](),this['attach'](_0x1977a2);});}),_0x18fd9f['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2dc012=_0x579215=>{const _0x231b1e=new D(this['context']['locale']);_0x18fd9f['addAnnotation'](_0x579215,_0x231b1e),this['_annotationToNarrowView']['set'](_0x579215,_0x231b1e),_0x231b1e['bind']('isDirty','annotationType','number')['to'](_0x579215['view'],'isDirty','type','length'),_0x231b1e['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1afb9a['content']['first']!==_0x579215['view']?(this['_showBalloon'](_0x579215),_0x579215['view']['element']['focus'](),this['setActiveAnnotation'](_0x579215)):this['setActiveAnnotation'](null);});};for(const _0xa59dcf of _0x1977a2)_0x2dc012(_0xa59dcf);this['listenTo'](_0x1977a2,'add',(_0x2dfbdf,_0x3c9fc8)=>{_0x2dc012(_0x3c9fc8);}),this['listenTo'](_0x1977a2,'remove',(_0x3d31ab,_0x4182b6,_0x34850e)=>{this['_annotationToNarrowView']['get'](_0x4182b6)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4182b6),_0x18fd9f['rearrange']({'removedAnnotation':_0x4182b6,'previousAnnotation':_0x1977a2['get'](_0x34850e-0x1),'nextAnnotation':_0x1977a2['get'](_0x34850e+0x1)}),_0x4182b6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x1977a2,'focus',(_0x5c4b88,_0x23d00a)=>{this['setActiveAnnotation'](_0x23d00a);}),this['listenTo'](_0x1977a2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x25fe75,_0x28160f)=>{_0x28160f['keyCode']===_0x18edba['esc']&&_0x1afb9a['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1afb9a['content']['first']),this['_hideBalloon'](),_0x28160f['stopPropagation'](),_0x28160f['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x14ded4,_0x990f1d)=>{const _0x45e6af=_0x990f1d['target'];_0x1afb9a['isVisible']&&_0x1afb9a['element']['contains'](_0x45e6af)||_0x18fd9f['view']['element']['contains'](_0x45e6af)||_0x14ded4['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2348ca=>_0x2348ca['contains'](_0x45e6af))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x47c365=this['context']instanceof _0x4f4139?this['context']['editors']:new _0x836a36([this['context']]);for(const _0x1e34f7 of _0x47c365)this['_integrateWithEditorAnnotations'](_0x1e34f7);this['listenTo'](_0x47c365,'add',(_0x401a9f,_0x41d092)=>{this['listenTo'](_0x41d092,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x41d092);});}),this['listenTo'](_0x47c365,'remove',(_0x53d0ab,_0x34369f)=>{_0x34369f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x34369f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x45a8b2){if(_0x45a8b2===this['activeAnnotation'])return;const _0x1ab166=this['context']['plugins']['get'](z);if(_0x1ab166['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x45a8b2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x45a8b2)_0x1ab166['getSidebarItemView'](_0x45a8b2)?this['_showBalloon'](_0x45a8b2):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x45a8b2;}['detach'](){if(!this['isAttached'])throw new _0x2569ef('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xb02d4f=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x596211=>_0x596211['destroy']()),this['_annotationToNarrowView']['clear'](),_0xb02d4f['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4f4139&&this['stopListening'](this['context']['editors']);for(const _0x416d4f of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x416d4f);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'](_0x55ccb5){if(!_0x55ccb5['plugins']['has']('EditorAnnotations'))return;const _0x695a51=_0x55ccb5['plugins']['get']('EditorAnnotations'),_0x8e5d06=this['context']['plugins']['get'](z),_0x3c51f4=this['annotations'],_0x56a97a=this['balloonPanelView'],_0x280d0c=()=>{const _0x86db58=_0x695a51['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x86db58),this['setActiveAnnotation'](_0x86db58[0x0]||null);};this['listenTo'](_0x695a51,'refresh',_0x280d0c),this['listenTo'](_0x695a51,'blur',(_0x5e7524,{isAnnotationTracked:_0x3f930d})=>{this['activeAnnotation']&&_0x3f930d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x695a51,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3c51f4,'blur',_0x4cad41=>{_0x695a51['hasDomSelection']()&&_0x4cad41['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x45c624,_0x236453)=>{const _0x28ab47=_0x236453['target'];_0x56a97a['isVisible']&&_0x56a97a['element']['contains'](_0x28ab47)||_0x8e5d06['view']['element']['contains'](_0x28ab47)||this['activeAnnotation']&&_0x695a51['hasDomSelection']()&&(_0x280d0c(),_0x45c624['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x695a51);}['_destroyEditorAnnotationsIntegration'](_0x530680){_0x530680&&(this['stopListening'](_0x530680),this['_editorAnnotations']['remove'](_0x530680));}['_setSelectedAnnotations'](_0x2b10d9){for(const _0x4bec22 of this['_selectedAnnotations'])_0x2b10d9['includes'](_0x4bec22)||this['_manuallyClosedAnnotationViews']['delete'](_0x4bec22['view']);this['_selectedAnnotations']=_0x2b10d9;}['_refreshPositioning'](){const _0x25b814=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x25b814['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x6f3782){if(this['_manuallyClosedAnnotationViews']['has'](_0x6f3782['view']))return;const _0xd10d5d=this['balloonPanelView']['content']['first'];_0xd10d5d!==_0x6f3782['view']?(_0xd10d5d&&this['_detachListeners'](_0xd10d5d),this['_attachListeners'](_0x6f3782['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x6f3782['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x587132=this['balloonPanelView']['content']['first'],_0x2897af=_0x587132&&this['annotations']['getByView'](_0x587132);if(!_0x2897af||!this['_annotationToNarrowView']['has'](_0x2897af))return;const _0x14fd75=this['_annotationToNarrowView']['get'](_0x2897af)['element'],_0x488059=(function(){const _0x597a77=_0x1dbba4['defaultPositions'];return[_0x597a77['southArrowNorthEast'],_0x597a77['northArrowSouthEast'],_0x597a77['southArrowNorth'],_0x597a77['northArrowSouth'],_0x597a77['southArrowNorthWest'],_0x597a77['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x14fd75,'positions':_0x488059});}['_hideBalloon'](){const _0x400a9b=this['balloonPanelView'],_0x3cae68=_0x400a9b['content']['first'];_0x3cae68&&(this['_detachListeners'](_0x3cae68),_0x400a9b['unpin'](),_0x400a9b['content']['clear']());}['_attachListeners'](_0x4ce603){this['listenTo'](_0x4ce603,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4ce603,'Esc',(_0x5764de,_0x5b8eb5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4ce603),this['_hideBalloon'](),_0x5b8eb5();});}['_detachListeners'](_0x558e17){this['stopListening'](_0x558e17);}}class c extends _0x3731df{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x169945,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40405d){super(_0x40405d),_0x40405d['editing']['view']['addObserver'](_0xf633b7),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x40405d['plugins']['get'](_0x169945),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x2a2309=this['editor']['plugins']['get'](M);_0x2a2309['context']===this['editor']&&(_0x2a2309['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x1e8d05,_0x396126)=>{const _0x258e93=this['_balloon'];if(this['isAttached']&&_0x258e93['visibleView']){const _0x430df1=this['annotations']['getByView'](_0x258e93['visibleView']);_0x430df1&&this['_closeAnnotation'](_0x430df1),_0x396126();}}));}['afterInit'](){const _0x307773=this['editor']['plugins']['get'](M);_0x307773['context']===this['editor']&&(_0x307773['hasActive']()||_0x307773['switchTo']('inline'));}['setActiveAnnotation'](_0x473bb4){_0x473bb4!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x473bb4&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x473bb4)&&this['_addAnnotationToBalloon'](_0x473bb4,!0x0),_0x473bb4['isActive']=!0x0),_0x473bb4||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x473bb4);}['attach'](_0x5efaf8){this['annotations']=_0x5efaf8;const _0x34a52f=this['editor']['plugins']['get'](M),_0x299326=this['_balloon'];if(this['isAttached'])throw new _0x2569ef('inlineannotations-attach-already-attached',this);if(_0x34a52f['context']!==this['editor'])throw new _0x2569ef('inlineannotations-not-allowed-with-context',this);const _0x15bc3b=this['editor']['plugins']['get'](P);this['listenTo'](_0x15bc3b,'refresh',()=>{const _0x10de24=_0x15bc3b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5d7f3f,_0x1c3c72;!this['_forceRefresh']&&(_0x5d7f3f=_0x10de24,_0x1c3c72=this['_selectedAnnotations'],_0x5d7f3f['length']===_0x1c3c72['length']&&_0x5d7f3f['every'](_0x56bdb5=>_0x1c3c72['includes'](_0x56bdb5)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x10de24),this['setActiveAnnotation'](_0x10de24[0x0]||null));}),this['listenTo'](_0x15bc3b,'blur',(_0xef2174,{isAnnotationTracked:_0x15a9c1})=>{this['activeAnnotation']&&_0x15a9c1(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0xac16f0,_0x212fdd,_0x5d3fb5)=>{_0x5d3fb5||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5efaf8,'remove',(_0x177e06,_0x437e69)=>{this['_removeAnnotationFromBalloon'](_0x437e69),_0x437e69===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x299326,'change:visibleView',(_0x1ee42b,_0x3acd17,_0x1806cc,_0x5e18b9)=>{_0x5e18b9&&this['stopListening'](_0x5e18b9);const _0x420ac8=_0x5efaf8['getByView'](_0x1806cc);_0x1806cc&&_0x420ac8&&(this['listenTo'](_0x1806cc,'change:height',()=>{_0x299326['updatePosition']();}),this['listenTo'](_0x1806cc,'Esc',()=>{this['_closeAnnotation'](_0x420ac8),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x420ac8&&this['setActiveAnnotation'](_0x420ac8));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x299326['visibleView']&&(_0x5efaf8['getByView'](_0x299326['visibleView'])&&_0x299326['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 _0x2569ef('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1f0faa of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1f0faa);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x497be){for(const _0x46a7d0 of this['_selectedAnnotations'])_0x497be['includes'](_0x46a7d0)||this['_manuallyClosed']['delete'](_0x46a7d0);for(const _0x106440 of this['annotations'])_0x497be['includes'](_0x106440)||this['_removeAnnotationFromBalloon'](_0x106440);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4e2916 of _0x497be)this['_addAnnotationToBalloon'](_0x4e2916);}this['_selectedAnnotations']=_0x497be;}['_addAnnotationToBalloon'](_0x5a35c8,_0xe264b8=!0x1){this['_manuallyClosed']['has'](_0x5a35c8)||(this['_addedAnnotations']['has'](_0x5a35c8)||this['_balloon']['hasView'](_0x5a35c8['view'])||(this['_addedAnnotations']['add'](_0x5a35c8),this['_balloon']['add']({'stackId':_0x5a35c8['view']['id'],'view':_0x5a35c8['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5a35c8)}})),_0xe264b8&&this['_balloon']['showStack'](_0x5a35c8['view']['id']));}['_getBalloonTargetForAnnotation'](_0x139b53){const _0x128be2=_0x139b53['target'],_0x4025c9=this['editor']['editing']['view'],_0x1a3103=_0x4025c9['document']['selection']['getFirstRange'](),_0x2e5806=_0x4025c9['domConverter']['viewRangeToDom'](_0x1a3103);if(_0x2e5806['collapse'](!0x0),_0x128be2){if(_0x128be2 instanceof _0x2a3eae)return _0x128be2;let _0x448293=[];for(const _0x3561e9 of _0x128be2)_0x448293['push'](...(_0x49b912=_0x3561e9['getClientRects'](),Array['from'](_0x49b912)['map'](DOMRect['fromRect'])));_0x448293=function(_0x87e0d4){const _0x122605=[];let _0x1c98e6=_0x87e0d4[0x0];for(let _0x137584=0x1;_0x137584<_0x87e0d4['length'];_0x137584++)b(_0x1c98e6,_0x87e0d4[_0x137584])?_0x1c98e6['width']+=_0x87e0d4[_0x137584]['width']:(_0x122605['push'](_0x1c98e6),_0x1c98e6=_0x87e0d4[_0x137584]);return _0x122605['push'](_0x1c98e6),_0x122605;}(_0x448293);const _0x293cef=_0x2e5806['getBoundingClientRect']();return _0x448293['find'](_0xc5402d=>_0xc5402d['top']<=_0x293cef['top']&&_0xc5402d['bottom']>=_0x293cef['bottom']&&_0xc5402d['left']<=_0x293cef['left']&&_0xc5402d['right']>=_0x293cef['right'])||_0x448293[0x0];}var _0x49b912;return _0x139b53['targetRect']||_0x2e5806;}['_removeAnnotationFromBalloon'](_0x8f1dd9){this['_addedAnnotations']['has'](_0x8f1dd9)&&this['_balloon']['hasView'](_0x8f1dd9['view'])&&(this['_addedAnnotations']['delete'](_0x8f1dd9),this['_balloon']['remove'](_0x8f1dd9['view']));}['_closeAnnotation'](_0xd27b03){this['_manuallyClosed']['add'](_0xd27b03),this['_removeAnnotationFromBalloon'](_0xd27b03);}}function b(_0x46efbf,_0x4ab60a){return _0x46efbf['top']===_0x4ab60a['top']&&_0x46efbf['bottom']===_0x4ab60a['bottom']&&_0x46efbf['right']===_0x4ab60a['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x2f71e1,_0x198a5b){super(_0x2f71e1),this['set']('isEmpty',!_0x198a5b['length']),this['focusTracker']=new _0x5ad3fb(),this['_annotationViews']=_0x198a5b,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x198a5b,'focusTracker':this['focusTracker']}),this['listenTo'](_0x198a5b,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x198a5b,'remove',(_0x2868c6,_0x20582e)=>{_0x20582e['isActive']&&this['focus'](),_0x198a5b['length']||(this['isEmpty']=!0x0);});const _0x21047b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x2f71e1,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x198a5b},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x21047b['if']('isEmpty','ck-hidden',_0x329135=>!_0x329135)]},'children':[{'text':S(_0x2f71e1,'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 _0x16f0ab of this['_annotationViews'])this['focusTracker']['add'](_0x16f0ab['element']);this['_annotationViews']['on']('change',(_0x58bb38,{added:_0x4bbfca,removed:_0x4fa104})=>{for(const _0x4ca8cb of _0x4bbfca)this['focusTracker']['add'](_0x4ca8cb['element']);for(const _0x54f799 of _0x4fa104)this['focusTracker']['remove'](_0x54f799['element']);});}}class f extends _0x100c9b{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x1c75d9){super(_0x1c75d9),this['archivedThreads']=new _0x836a36();}['init'](){const _0x301236=this['context'],_0x2cf171=_0x301236['plugins']['get'](o),_0x3f8a49=_0x301236['plugins']['get'](N);this['listenTo'](_0x2cf171,'addCommentThread',(_0x2c1274,{threadId:_0x2f7720})=>{const _0x4f9fe=_0x2cf171['getCommentThread'](_0x2f7720);_0x4f9fe['archivedAt']&&this['archivedThreads']['add'](_0x4f9fe,this['_calculatePosition'](_0x4f9fe['archivedAt'])),this['listenTo'](_0x4f9fe,'change:archivedAt',(_0x27dc72,_0x39c4fc,_0x424ae7)=>{_0x424ae7?this['archivedThreads']['has'](_0x4f9fe)||this['archivedThreads']['add'](_0x4f9fe,this['_calculatePosition'](_0x4f9fe['archivedAt'])):this['archivedThreads']['has'](_0x4f9fe)&&this['archivedThreads']['remove'](_0x4f9fe);});}),this['listenTo'](_0x2cf171,'removeCommentThread',(_0x46a00d,{threadId:_0x10a5ed})=>{const _0x34f4d4=_0x2cf171['getCommentThread'](_0x10a5ed);this['stopListening'](_0x34f4d4),this['archivedThreads']['has'](_0x34f4d4)&&this['archivedThreads']['remove'](_0x34f4d4);},{'priority':'highest'}),this['listenTo'](_0x3f8a49['collection'],'focus',(_0x404e9f,_0x47c1e6)=>{_0x47c1e6['isVisible']||(_0x47c1e6['isActive']=!0x0,_0x3f8a49['activate'](_0x47c1e6));});}['_calculatePosition'](_0xb0a67f){const _0x380d3a=[...this['archivedThreads']]['findIndex'](_0x2564a3=>_0x2564a3['archivedAt']<_0xb0a67f);return _0x380d3a>-0x1?_0x380d3a:this['archivedThreads']['length'];}}class a extends _0x3731df{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x56a89c];}constructor(_0x4776ef){super(_0x4776ef),this['annotationViews']=new _0x21afed(),this['_pendingThreads']=[];}['init'](){const _0x4045c5=this['editor'],_0x3c334a=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x4045c5['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x59879a,!0x0)),_0x4045c5['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x1a0b16=this['_createCommentsArchiveButton'](_0x16cede);return _0x1a0b16['set']({'role':'menuitemcheckbox'}),_0x1a0b16;});const _0x17a297=_0x4045c5['plugins']['get'](f),_0x455bc4=_0x4045c5['plugins']['get']('Annotations'),_0x3d928b=_0x4045c5['plugins']['get']('CommentsRepository');this['listenTo'](_0x17a297['archivedThreads'],'add',(_0x196e28,_0x2e64c6)=>{const _0x5589e2=_0x4045c5['config']['get']('collaboration.channelId');if(!_0x5589e2||_0x2e64c6['channelId']===_0x5589e2){const _0x264797=_0x3d928b['_threadToController']['get'](_0x2e64c6);if(!_0x264797)return void this['_pendingThreads']['push'](_0x2e64c6);const _0x31456e=this['_calculatePosition'](_0x2e64c6['archivedAt']),_0x10165b=_0x455bc4['getByInnerView'](_0x264797['view']);_0x10165b['isVisible']&&_0x455bc4['_visibleAnnotations']['remove'](_0x10165b),this['annotationViews']['add'](_0x10165b['view'],_0x31456e);}}),this['listenTo'](_0x455bc4['collection'],'add',(_0x2f6561,_0xdb4729)=>{const _0x2f06fd=this['_pendingThreads']['find'](_0x902b94=>{const _0xc1303a=_0x3d928b['_threadToController']['get'](_0x902b94);return _0xc1303a&&_0xdb4729['innerView']===_0xc1303a['view'];});if(_0x2f06fd){const _0x8666bf=this['_calculatePosition'](_0x2f06fd['archivedAt']);this['annotationViews']['add'](_0xdb4729['view'],_0x8666bf),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2f06fd),0x1);}}),this['listenTo'](_0x17a297['archivedThreads'],'remove',(_0x5ae82d,_0x1624ac)=>{const _0x3706ec=_0x4045c5['config']['get']('collaboration.channelId');if(!_0x3706ec||_0x1624ac['channelId']===_0x3706ec){const _0x4cd6a9=_0x3d928b['_threadToController']['get'](_0x1624ac),_0x495bff=_0x455bc4['getByInnerView'](_0x4cd6a9['view']);this['annotationViews']['remove'](_0x495bff['view']),this['stopListening'](_0x495bff['focusableElements']);}}),this['listenTo'](_0x455bc4['collection'],'add',(_0x4ad124,_0x2feeb5)=>{this['listenTo'](_0x2feeb5,'escape',_0x3c334a);}),this['listenTo'](_0x455bc4['collection'],'remove',(_0x5d3c8f,_0x51ad0b)=>{this['stopListening'](_0x51ad0b,'escape',_0x3c334a);});}['_calculatePosition'](_0x17cff9){const _0x41c305=this['editor']['config']['get']('collaboration.channelId'),_0x1f6ed4=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x4660d3=>_0x4660d3['channelId']===_0x41c305)['findIndex'](_0x60cf9c=>_0x60cf9c['archivedAt']<_0x17cff9);return _0x1f6ed4<0x0||_0x1f6ed4>this['annotationViews']['length']?this['annotationViews']['length']:_0x1f6ed4-0x1;}['_toggleDialog'](){const _0x25f133=this['editor'],_0x45c1d3=_0x25f133['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x25f133['locale'],this['annotationViews'])),'commentsArchive'===_0x45c1d3['id']?_0x45c1d3['hide']():_0x45c1d3['show']({'id':'commentsArchive','title':S(_0x25f133['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x68270e['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0xa6de4e,_0x1e0a62=!0x1){const _0x21f054=this['editor']['locale'],_0x344c6b=this['editor']['plugins']['get']('Dialog'),_0x20b549=new _0xa6de4e(_0x21f054);return _0x20b549['bind']('isEnabled')['to'](this,'isEnabled'),_0x20b549['bind']('isOn')['to'](_0x344c6b,'id',_0x2c3ace=>'commentsArchive'===_0x2c3ace),_0x20b549['set']({'label':S(_0x21f054,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x1e0a62&&(_0x20b549['tooltip']=!0x0),this['listenTo'](_0x20b549,'execute',()=>this['_toggleDialog']()),_0x20b549;}['_hideDialogOnAnnotationEscape']=_0x5c6498=>{const _0x3f3ed8=_0x5c6498['source'];if(!this['annotationViews']['has'](_0x3f3ed8['view']))return;const _0x9cedf4=this['editor']['plugins']['get']('Dialog');_0x9cedf4['isOpen']&&'commentsArchive'===_0x9cedf4['id']&&(_0x9cedf4['hide'](),_0x5c6498['stop']());};}class p extends _0x3731df{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
|
|
23
|
+
import{Editor as _0xbf2aaf,icons as _0x31e9b7,ContextPlugin as _0x4f99d3,PendingActions as ht,Command as _0x2cf7ec,Plugin as _0xb0a682,Context as _0xc1088d}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x8dc7e,uid as _0x487f3d,KeystrokeHandler as jt,FocusTracker as _0x144181,diff as _0x22acd8,Collection as _0x51030a,Rect as _0x53dfa2,CKEditorError as _0x26d752,first as _0xe44e66,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x1ff6fb,keyCodes as _0x4c5305}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x37eaec,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x4a843e,ConfirmMixin as ti,LateFocusButtonView as _0x306c75,trimHtml as _0x574aa7,LateFocusDropdownButtonView as _0x12fcb7,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x49e971}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x251a97}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x39ffad,ViewCollection as _0x93391d,createDropdown as _0x17c6b8,ListView as _0x5ee7c8,focusChildOnDropdownOpen as _0x4e45fd,ListItemView as _0x352b11,MenuBarMenuListItemButtonView as _0x21e538,BodyCollection as _0x429d36,BalloonPanelView as _0x582297,ContextualBalloon as _0x4bec97,Dialog as _0x8e3935,DialogViewPosition as _0x173aa8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x724e50}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x404b40}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x3e1065}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x8dc7e(){['model'];['view'];constructor(_0x57da44,_0x374eb0){super(),this['model']=_0x57da44,this['model']['_isAttached']=!0x0,this['view']=_0x374eb0,this['listenTo'](_0x374eb0,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x374eb0,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x374eb0,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x374eb0,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x374eb0,'addComment',(_0x2a606f,_0x49ba14)=>this['addComment'](_0x49ba14)),this['listenTo'](_0x374eb0,'updateComment',(_0x2ea762,_0x63b3d5,_0x502534)=>this['updateComment'](_0x63b3d5,_0x502534)),this['listenTo'](_0x374eb0,'removeComment',(_0x561d58,_0x220290)=>this['removeComment'](_0x220290));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x167b70){this['model']['addComment']({'content':_0x167b70,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x530745,_0x275900){this['model']['getComment'](_0x530745)['update']({'content':_0x275900});}['removeComment'](_0x9bb578){this['model']['getComment'](_0x9bb578)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x289ec2,_0x330f13,_0x545f0a){const t=_0x289ec2['t'];switch(_0x330f13){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'},_0x545f0a);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'},_0x545f0a);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'},_0x545f0a);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'},_0x545f0a);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x545f0a);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'},_0x545f0a);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'},_0x545f0a);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'},_0x545f0a);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(_0x6fff59,_0x5c1044){super(_0x6fff59);const _0x1a1d49=_0x487f3d();this['main']=this['createCollection'](),this['editable']=new $t(_0x6fff59,_0x5c1044,void 0x0,{'label':()=>S(_0x6fff59,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x6fff59['uiLanguageDirection'],'lang':_0x6fff59['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1a1d49},'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(_0x2786d5){super(_0x2786d5),this['view']=new Xt(_0x2786d5['locale'],_0x2786d5['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x11ec82=this['editor']['editing']['view'],_0x234c94=this['view']['editable'],_0x4f9fab=_0x11ec82['document']['getRoot']();_0x234c94['name']=_0x4f9fab['rootName'],this['view']['render']();const _0x5c9c30=_0x234c94['element'];this['setEditableElement'](_0x234c94['name'],_0x5c9c30),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x11ec82['attachDomRoot'](_0x5c9c30),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x8dc7e(_0xbf2aaf){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Rt)());constructor(_0x27bce6={}){function _0x29f9c8(_0x1ff327){return _0x1ff327['map'](_0x34cf61=>String['fromCharCode'](_0x34cf61))['join']('');}(_0x27bce6=Object['assign']({},_0x27bce6))['plugins']||(_0x27bce6['plugins']=Ut['defaultPlugins']),super(_0x27bce6),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[_0x29f9c8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29f9c8([0x76,0x69,0x65,0x77])][_0x29f9c8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29f9c8([0x61,0x75,0x74,0x6f]),this[_0x29f9c8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x29f9c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29f9c8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x29f9c8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x29f9c8([0x6f,0x6b])});}['create'](){const _0xeb8df8=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xeb8df8))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x4f14a4=>{const _0x29cc91=this['model']['document']['getRoot'](),_0x4b894d=_0x29cc91&&_0x29cc91['getChild'](_0x29cc91['childCount']-0x1);_0x4f14a4['setSelection'](_0x4b894d,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x554cbb=this['editing']['view'],_0x420f3e=_0x554cbb['document']['getRoot'](),_0x14d194=_0x420f3e['getChild'](0x0);_0x420f3e['childCount']>0x1||!_0x14d194||'p'!=_0x14d194['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x554cbb,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x14d194['placeholder']=this['placeholder']),St({'view':_0x554cbb,'element':_0x14d194,'keepOnFocus':!0x0}),this['placeholderElement']=_0x14d194);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3f2aa2,_0x238c09={}){super(_0x3f2aa2),this['editor']=null,this['_editorConfig']=_0x238c09,this['set']('value',_0x238c09['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x3f2aa2,'Reply...')),this['set']('submitLabel',S(_0x3f2aa2,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x144181(),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',(_0x197474,_0x146d0f)=>{this['cancelButtonView']['fire']('execute'),_0x146d0f();}),this['keystrokes']['set']('Ctrl+Enter',(_0x17a909,_0x32592c)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x32592c());}),this['on']('submit',(_0x3e0e50,_0x3dfceb)=>{_0x3dfceb['length']>0xfde8?(alert(S(_0x3f2aa2,'TOO_LONG_COMMENT_ALERT',[_0x3dfceb['length'],0xfde8])),_0x3e0e50['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 _0x28194d=this['editor'];this['element']['insertBefore'](_0x28194d['ui']['element'],this['element']['firstChild']),_0x28194d['model']['document']['on']('change',()=>this['value']=_0x28194d['getData']()),_0x28194d['bind']('placeholder')['to'](this),this['focusables']['add'](_0x28194d['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x525ccd){-0x1===_0x525ccd?(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:_0x5cf730}=this,_0x4a0143=new _0x39ffad(_0x5cf730);return _0x4a0143['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4a0143['withText']=!0x0,_0x4a0143['bind']('label')['to'](this,'submitLabel'),_0x4a0143['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4a0143['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x59c448,_0x13d1e1)=>!_0x13d1e1&&!!_0x59c448['trim']()),_0x4a0143;}['_createCancelButton'](){const {locale:_0x158e99}=this,_0x177a2f=new _0x39ffad(_0x158e99);return _0x177a2f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x177a2f['label']=S(_0x158e99,'Cancel'),_0x177a2f['withText']=!0x0,_0x177a2f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x177a2f;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5202bc=>{this['focusTracker']['add'](_0x5202bc['element']);}),this['focusables']['on']('change',(_0x4caf50,_0x12cdba)=>{for(const _0x3db03c of Array['from'](_0x12cdba['added'])['reverse']())this['focusTracker']['add'](_0x3db03c['element']);});}}class ie extends kt{constructor(_0x3db40c,_0x1036c9,_0x2dfa00){super(_0x3db40c),this['commentInputView']=new os(_0x3db40c,_0x2dfa00),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x53f021,_0x372b95)=>_0x53f021||!!_0x372b95),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 _0x37eaec(_0x3db40c,_0x1036c9),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'](_0x13d0a1){this['commentInputView']['focus'](_0x13d0a1);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xb0a602,_0x4c388d)=>{const {submitButtonView:_0x209fb9,cancelButtonView:_0xb6d25d,editor:_0x338e45}=this['commentInputView'];[_0x209fb9['element'],_0xb6d25d['element'],_0x338e45?_0x338e45['editing']['view']['getDomRoot']():null]['filter'](_0x504522=>_0x504522)['some'](_0x1e1632=>_0x1e1632['contains'](_0x4c388d['target']))||(this['focus'](),_0x4c388d['preventDefault']());});}}class cs extends kt{constructor(_0x202b0f){super(_0x202b0f);const _0x121344=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x121344['to']('count',_0x3057da=>S(_0x202b0f,'NUMBER_OF_COMMENTS',_0x3057da))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xb1f158,_0x8eb057,_0x10bd49){super(_0xb1f158);const _0x43d0b9=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x8eb057['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x8eb057,this['_config']=_0x10bd49,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x144181(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x415db2=>this['commentViews']['map'](_0x5bed18=>_0x5bed18['element'])['includes'](_0x415db2['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0xb1f158),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x542492=>_0x542492-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3e1208 of _0x8eb057['comments'])this['_handleNewCommentModel'](_0x3e1208);this['_handleInfoComment'](),this['listenTo'](_0x8eb057['comments'],'add',(_0x5d910d,_0x2378c4)=>{const _0x5cd36a=this['_calculatePosition'](_0x2378c4);this['length']++,this['_handleNewCommentModel'](_0x2378c4,_0x5cd36a),this['refreshVisibleViews']();}),this['listenTo'](_0x8eb057['comments'],'remove',(_0x1fb084,_0x2a5c14)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2a5c14),this['refreshVisibleViews']();}),this['listenTo'](_0x8eb057,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x8eb057,'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',_0x43d0b9['if']('length','ck-hidden',_0x34fa84=>!_0x34fa84)],'aria-label':S(_0xb1f158,'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'](_0x2aca1a){-0x1===_0x2aca1a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xc68193 of this['commentViews'])_0xc68193['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x422a1a,_0x4ad0b3){const _0x2d7495=new this['_config']['CommentView'](this['locale'],_0x422a1a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2d7495['viewUid']=_0x422a1a['id'],_0x2d7495['delegate']('removeComment')['to'](this),_0x2d7495['delegate']('updateComment')['to'](this),_0x2d7495['delegate']('resolveCommentThread')['to'](this),_0x2d7495['delegate']('editorReady')['to'](this),_0x2d7495['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2d7495,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2d7495,_0x4ad0b3);}['_calculatePosition'](_0x14a41d){const _0xe69800=this['_model']['_findOptimalIndex'](_0x14a41d);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x14a41d['authoredAt']?_0xe69800-0x1:_0xe69800:_0xe69800-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x11de58={'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'],_0x11de58,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x11de58));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5382ee){const _0x2246b1=this['commentViews']['remove'](_0x5382ee['id']);this['stopListening'](_0x2246b1),_0x2246b1['isEditMode']&&this['_updateHasDirtyComment'](),_0x2246b1['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x17243e=>_0x17243e['isEditMode']);}['_rearrangeCollapse'](){const _0x551c39=function(_0x18db93){const _0x4973be=new _0x51030a();for(const _0x5c43b5 of _0x18db93)_0x4973be['add'](_0x5c43b5);return _0x4973be;}(this['commentViews']),_0xa838d2=this['_collapsedCommentsView']['count'];for(let _0x3f4afe=0x1;_0x3f4afe<=_0xa838d2;_0x3f4afe++)_0x551c39['remove'](0x1);for(const _0x3e7c6b of _0x551c39)_0x3e7c6b['collapse']();_0xa838d2>0x0&&_0x551c39['add'](this['_collapsedCommentsView'],0x1),as(_0x22acd8(Array['from'](this['visibleViews']),Array['from'](_0x551c39)),this['visibleViews'],_0x551c39);}['_rearrangeExpand'](){as(_0x22acd8(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x164b9b of this['visibleViews'])_0x164b9b['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x96179d=>{this['focusTracker']['add'](_0x96179d['element']),this['keystrokes']['listenTo'](_0x96179d['element']);}),this['commentViews']['on']('change',(_0x39b7a4,_0x1e14dd)=>{for(const _0x2cd8b8 of _0x1e14dd['removed'])this['focusTracker']['remove'](_0x2cd8b8['element']),this['keystrokes']['stopListening'](_0x2cd8b8['element']);for(const _0x46de9f of Array['from'](_0x1e14dd['added'])['reverse']())this['focusTracker']['add'](_0x46de9f['element']),this['keystrokes']['listenTo'](_0x46de9f['element']);});}}function as(_0x157e65,_0x458915,_0x5af836){let _0x4c8f67=0x0;for(const _0x4fc335 of _0x157e65)switch(_0x4fc335){case'insert':_0x458915['add'](_0x5af836['get'](_0x4c8f67),_0x4c8f67),_0x4c8f67++;break;case'delete':_0x458915['remove'](_0x4c8f67);break;case'equal':_0x4c8f67++;}}class ls extends kt{constructor(_0x597def){super(_0x597def);const _0x5a3c53=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x5a3c53['to']('contextValue',_0x37defb=>S(_0x597def,'THREAD_CONTEXT_LABEL',_0x37defb)),'tabindex':-0x1},'children':[{'text':_0x5a3c53['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1ab3e5,_0x32cf16){super(_0x1ab3e5);const _0xeb9385=this['bindTemplate'];this['_model']=_0x32cf16,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x144181(),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',_0x139c20=>!!_0x139c20),this['bind']('contextValue')['to'](this['_model'],'context',_0x215f04=>_0x215f04&&_0x215f04['value']?this['_trimContextValue'](_0x215f04['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',_0xeb9385['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 _0x3687e0=new _0x39ffad(this['locale']);return _0x3687e0['label']=S(this['locale'],'Reopen'),_0x3687e0['tooltip']=S(this['locale'],'Reopen'),_0x3687e0['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>',_0x3687e0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x75a8dc=>!_0x75a8dc),_0x3687e0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x15c9ed,_0x210962)=>_0x15c9ed&&_0x210962),_0x3687e0['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3687e0;}['_trimContextValue'](_0x34ab96){if(_0x34ab96['length']<0x96)return _0x34ab96;const _0x20fcd1=_0x34ab96['lastIndexOf']('\x20',0x93);return _0x34ab96['substring'](0x0,_0x20fcd1>-0x1?_0x20fcd1:0x93)+'...';}['_attachContextActions'](){const _0x4bbecf=this['element']['querySelector']('.ck-context'),_0x3db7b7=_0x4bbecf['querySelector']('.ck-context__value');this['listenTo'](_0x4bbecf,'mouseenter',()=>{_0x3db7b7['offsetWidth']<_0x3db7b7['scrollWidth']&&_0x4bbecf['classList']['add']('overlay');}),this['listenTo'](_0x4bbecf,'mouseleave',()=>{_0x4bbecf['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x1e95e0 of this['focusables'])this['focusTracker']['add'](_0x1e95e0['element']),this['keystrokes']['listenTo'](_0x1e95e0['element']);}['_createContextView'](){const _0x46472b=new ls(this['locale']);return _0x46472b['bind']('contextValue')['to'](this),_0x46472b;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xda9e36,_0x9c595d,_0x2fc781,_0x1fc573){super(_0xda9e36),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x9c595d,this['_localUser']=_0x2fc781,this['_config']=_0x1fc573,this['commentThreadHeaderView']=new Zt(_0xda9e36,_0x9c595d),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0xda9e36,S(_0xda9e36,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xda9e36,_0x9c595d,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1fc573)),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',(_0x2e2576,_0x590211)=>_0x2e2576||!!_0x590211),this['bind']('isUnlinked')['to'](_0x9c595d,'unlinkedAt',_0x50ab1b=>!!_0x50ab1b),this['bind']('ariaLabel')['to'](this,'length',_0x29ca06=>{const _0x539fa1=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x29ca06,_0x539fa1]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x144181(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x41565f=>_0x41565f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x4a843e(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x2249e0=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d1215=_0x2249e0['commentInputView'];return _0x2249e0['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5d1215,'value',(_0x1d8f77,_0x3f1d1a,_0x5747cd,_0xaadf70,_0x50548c)=>!!_0x50548c||!!_0xaadf70&&_0x5747cd&&!_0x3f1d1a||_0x1d8f77&&_0x5747cd&&!_0x3f1d1a),_0x5d1215['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x55dc31,_0x1e976e,_0x445b24)=>{let _0xe03480;return _0xe03480=_0x445b24&&_0x1e976e?'Reply\x20to\x20reopen\x20discussion...':_0x55dc31?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0xe03480);}),_0x5d1215['bind']('submitLabel')['to'](this,'length',_0x5b48c4=>S(this['locale'],_0x5b48c4?'Reply':'Comment')),_0x5d1215['on']('submit',(_0x52f53d,_0x4477b0)=>{this['fire']('addComment',_0x4477b0),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5d1215['on']('cancel',()=>{this['focus']();}),_0x5d1215['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5d1215['on']('cancel',_0x5aa52d=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x5aa52d['stop']());}),this['on']('change:isActive',(_0x166d11,_0x30d543,_0xdc50cb)=>{_0xdc50cb||this['length']||_0x5d1215['value']||this['fire']('removeCommentThread');}),_0x2249e0;}}class vt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1b8fc4,_0x2a29fd,_0xf5281f,_0x13e342){super(_0x1b8fc4,_0x2a29fd,_0xf5281f,_0x13e342),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1b8fc4,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x402c2a,_0x19b740,_0x2cae82)=>{_0x2cae82||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x41a1ba,_0x3b86d4,_0x232ae5)=>{_0x232ae5&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0xf849b6=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0xf849b6['if']('isActive','ck-thread--active'),_0xf849b6['if']('isUnlinked','ck-thread--unlinked'),_0xf849b6['if']('isConfirm','ck-thread--remove-confirmation'),_0xf849b6['to']('actionIndicator',_0x15a011=>_0x15a011?'ck-thread--'+_0x15a011:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xf849b6['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 _0x474b8f of this['commentsListView']['commentViews'])_0x474b8f['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x4cde32}=this,_0x12e12e=this['commentsListView']['commentViews']['get'](0x0);_0x12e12e===this['_boundFirstCommentView']||_0x12e12e['isSystemComment']||(this['_boundFirstCommentView']=_0x12e12e,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x12e12e,'actionIndicator',_0x81df=>'remove'===_0x81df?'remove':null),_0x12e12e['placeholder']=S(_0x4cde32,'Write\x20a\x20comment...'),_0x12e12e['removeButton']['on']('execute',_0x218a47=>{_0x218a47['stop'](),this['showConfirm'](S(_0x4cde32,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x12e12e['focus']();}),_0x12e12e['actionBar']['add'](this['resolveButton'],0x0),_0x12e12e['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x205e2a=new _0x306c75(this['locale']);return _0x205e2a['label']=S(this['locale'],'Resolve'),_0x205e2a['tooltip']=S(this['locale'],'Resolve'),_0x205e2a['icon']=_0x31e9b7['check'],_0x205e2a['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x205e2a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x32b884=>!_0x32b884),_0x205e2a['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4d3cd5,_0xf94c33)=>_0x4d3cd5&&!_0xf94c33),_0x205e2a['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x205e2a;}['_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(_0xaa4580){super(_0xaa4580),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x29b06a,_0x3f88fd,_0xe9a10c)=>{this['element']['innerHTML']=_0xe9a10c;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x51596e,_0x28ecdc,_0x43de5c){super(_0x51596e),this['_model']=_0x28ecdc,this['_config']=_0x43de5c,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x28ecdc,'content',_0x28ecdc,'authoredAt',(_0x1e9a95,_0x5a4994)=>S(_0x51596e,'COMMENT_ARIA_LABEL',[_0x28ecdc['author']['name'],_0x43de5c['formatDateTime'](_0x5a4994),new DOMParser()['parseFromString'](_0x1e9a95,'text/html')['body']['textContent'],_0x28ecdc['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x51596e,S(_0x51596e,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x93391d(),this['focusTracker']=new _0x144181(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2dd472=>_0x2dd472['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 _0x3665a1=new hs(this['locale']);return _0x3665a1['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4b802c,_0x1984c4)=>_0x1984c4?_0x574aa7(_0x4b802c,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x4b802c),_0x3665a1;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x25574f=new os(this['locale'],this['_config']['editorConfig']);return _0x25574f['value']=this['_model']['content'],_0x25574f['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x25574f['submitLabel']=S(this['locale'],'Save'),_0x25574f['on']('submit',(_0x1f9b7e,_0x25455f)=>{this['fire']('updateComment',this['_model']['id'],_0x25455f),this['switchToDisplayMode'](),this['focus']();}),_0x25574f['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x25574f['once']('editorReady',()=>{_0x25574f['focus']();}),_0x25574f['createEditor'](),_0x25574f['delegate']('editorReady')['to'](this),_0x25574f['delegate']('editorDestroyed')['to'](this),_0x25574f;}['_setupKeyboardNavigation'](){const _0x5844f5=this['element'];this['keystrokes']['listenTo'](_0x5844f5);for(const _0x46f9ee of this['focusables'])this['focusTracker']['add'](_0x46f9ee['element']),this['keystrokes']['listenTo'](_0x46f9ee['element']);this['focusables']['on']('change',(_0x3af6d5,_0x4e27ef)=>{for(const _0x11560d of _0x4e27ef['removed'])this['focusTracker']['remove'](_0x11560d['element']),this['keystrokes']['stopListening'](_0x11560d['element']);for(const _0x15487e of _0x4e27ef['added'])this['focusTracker']['add'](_0x15487e['element']),this['keystrokes']['listenTo'](_0x15487e['element']);}),this['keystrokes']['set']('enter',(_0xcd8edf,_0x2e6f01)=>{_0x5844f5===_0xcd8edf['target']&&(this['focusCycler']['focusFirst'](),_0x2e6f01());}),this['keystrokes']['set']('esc',(_0x406614,_0x5970cd)=>{_0x5844f5!==_0x406614['target']&&(this['focus'](),_0x5970cd());});}}class gt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(rs){['actionBar'];['userView'];constructor(_0x170134,_0x269dc9,_0x4eb4ad){super(_0x170134,_0x269dc9,_0x4eb4ad),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x170134,'Reply...')),this['bind']('authoredAt')['to'](_0x269dc9),this['bind']('resolvedAt')['to'](_0x269dc9),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 _0x37eaec(_0x170134,_0x269dc9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x269dc9,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x28182e=this['bindTemplate'],_0x8a1d35=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x28182e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x28182e['to']('authoredAt',_0x2c6322=>this['_config']['formatDateTime'](_0x2c6322))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x28182e['if']('isEditMode','ck-comment__actions--hidden'),_0x28182e['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']&&_0x8a1d35['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x28182e['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x28182e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x28182e['if']('isEditMode','ck-comment--edit'),_0x28182e['if']('isSystemComment','ck-comment--info'),_0x28182e['to']('actionIndicator',_0x9da81b=>_0x9da81b?'ck-comment--'+_0x9da81b:'')],'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':_0x8a1d35}]}]};}['_createEditButton'](){const _0x2ad592=new _0x39ffad(this['locale']);return _0x2ad592['label']=S(this['locale'],'Edit'),_0x2ad592['icon']=_0x31e9b7['pencil'],_0x2ad592['withText']=!0x0,_0x2ad592['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2ad592['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x57d814=>!_0x57d814),_0x2ad592['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2ad592['on']('execute',()=>this['switchToEditMode']()),_0x2ad592;}['_createRemoveButton'](){const _0x1348cb=new _0x39ffad(this['locale']);return _0x1348cb['label']=S(this['locale'],'Remove'),_0x1348cb['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x1348cb['withText']=!0x0,_0x1348cb['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1348cb['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x578869=>!_0x578869),_0x1348cb['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1348cb['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1348cb;}['_createDropdown'](){const _0x28644e=_0x17c6b8(this['locale'],_0x12fcb7),_0x2ffbeb=_0x28644e['panelView']['children'],_0xe5355c=new _0x5ee7c8(this['locale']),_0x47765f=_0x28644e['bindTemplate'];_0x4e45fd(_0x28644e,()=>this['items']['find'](_0x85f50c=>_0x85f50c['isVisible'])),_0x28644e['extendTemplate']({'attributes':{'class':[_0x47765f['if']('isVisible','ck-hidden',_0x29655d=>!_0x29655d)]}});const _0x2c1d03=(_0x2de212,_0xda350c=-0x1)=>{const _0x42cc84=new _0x352b11(this['locale']);_0x42cc84['children']['add'](_0x2de212);const _0x413a99=_0xda350c>-0x1?_0xda350c:_0xe5355c['items']['length'];_0xe5355c['items']['add'](_0x42cc84,_0x413a99);const _0x2eca48=Array['from'](this['items']);_0x28644e['unbind']('isEnabled','isVisible'),_0x28644e['bind']('isEnabled')['toMany'](_0x2eca48,'isEnabled',(..._0x3a6421)=>_0x3a6421['some'](_0x4b62cf=>_0x4b62cf)),_0x28644e['bind']('isVisible')['toMany'](_0x2eca48,'isVisible',(..._0x17e0e9)=>_0x17e0e9['some'](_0x2390bf=>_0x2390bf));};_0x28644e['panelPosition']='sw',_0x28644e['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x31e9b7['threeVerticalDots']});for(const _0x3b0fa5 of this['items'])_0x2c1d03(_0x3b0fa5);return _0x2ffbeb['add'](_0xe5355c),_0x28644e['listenTo'](this['items'],'add',(_0x4f5734,_0x24f606,_0xe1ae2d)=>{_0x2c1d03(_0x24f606,_0xe1ae2d);}),_0x28644e['listenTo'](this['items'],'remove',(_0x3874b9,_0x773c26,_0x53bbe4)=>{_0xe5355c['items']['remove'](_0x53bbe4);}),_0x28644e;}['_attachActions'](_0x1e2967,_0x4385fa){const _0x95620a=_0x1e2967&&_0x1e2967['element'];_0x95620a&&(this['listenTo'](_0x95620a,'mouseenter',()=>this['actionIndicator']=_0x4385fa),this['listenTo'](_0x95620a,'focus',()=>this['actionIndicator']=_0x4385fa),this['listenTo'](_0x95620a,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x95620a,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x3b26a8=super['_createCommentInputView']();return _0x3b26a8['bind']('placeholder')['to'](this),_0x3b26a8;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x422328){const _0x5ed43d=Dt(_0x422328,0x1e),_0x2fffe8=new MutationObserver(_0x299092=>{for(const _0x39535c of _0x299092)('attributes'==_0x39535c['type']&&'class'==_0x39535c['attributeName']||'childList'==_0x39535c['type']||'characterData'==_0x39535c['type'])&&_0x5ed43d();});return{'attach'(_0x42a080){_0x2fffe8['observe'](_0x42a080,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2fffe8['disconnect'](),_0x5ed43d['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2ed837,_0xf3fc94){super(_0x2ed837),this['id']=_0x487f3d(),this['focusTracker']=new _0x144181(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x4eb178,_0x202046)=>this['fire']('Esc',_0x202046)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0xf3fc94),this['mainView']=_0xf3fc94;const _0x1b2fec=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x1b2fec['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 _0x3c277a=this['element']['clientHeight'];_0x3c277a&&(this['height']=_0x3c277a);}}class d extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x8dc7e(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1a1f98,target:_0x566d34,type:_0x254007,isVisible:_0x2a8614=!0x0}){super(),this['view']=_0x1a1f98,this['view']['element']||this['view']['render'](),this['_type']=_0x254007,this['_target']=_0x566d34,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x51030a([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x5da4b3,_0x5c6523)=>{this['view']['focusTracker']['add'](_0x5c6523);}),this['focusableElements']['on']('remove',(_0x4ffe95,_0x13b396)=>{this['view']['focusTracker']['remove'](_0x13b396);}),this['set']('isVisible',_0x2a8614);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x146fed=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x146fed),_0x146fed;}get['targetRect'](){const _0x5172d8=this['target'];if(null===_0x5172d8)return null;if(_0x5172d8 instanceof _0x53dfa2)return _0x5172d8;const _0x19c8a2=_0x5172d8['filter'](_0x2b56fe=>function(_0x426f53){const _0x5cf808=_0x426f53['offsetParent'];if(_0x5cf808)return!0x0;const _0x4c0e61=_0x426f53['getClientRects']()['item'](0x0);return!!_0x4c0e61;}(_0x2b56fe));return 0x0===_0x19c8a2['length']?null:new _0x53dfa2(_0x19c8a2[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x40a0f8){this['view']['isActive']=_0x40a0f8,this['view']['mainView']['isActive']=_0x40a0f8;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x47d53f){if(!(null===_0x47d53f||_0x47d53f instanceof _0x53dfa2||Array['isArray'](_0x47d53f)&&_0x47d53f['every'](_0xa2be0=>ne(_0xa2be0))))throw new _0x26d752('annotation-invalid-target',null,{'target':_0x47d53f});}['_getNormalizedTarget'](){const _0xc9546d='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0xc9546d)?[_0xc9546d]:_0xc9546d;}}function ne(_0x55443f){return null!==_0x55443f&&'object'==typeof _0x55443f&&'nodeType'in _0x55443f&&0x1===_0x55443f['nodeType'];}class x extends _0x51030a{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2f0bd0=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x144181(),this['_focusTracker']['on']('change:isFocused',(_0x54a9fd,_0x508c21,_0x51267a)=>{_0x51267a||this['fire']('blur');});for(const _0x4353b2 of _0x2f0bd0)this['add'](_0x4353b2);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x20a0b7){if(this['has'](_0x20a0b7))throw new _0x26d752('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x20a0b7['innerView'],_0x20a0b7),this['_viewToAnnotation']['set'](_0x20a0b7['view'],_0x20a0b7);for(const _0x3f04e5 of _0x20a0b7['focusableElements'])this['_focusTracker']['add'](_0x3f04e5);this['listenTo'](_0x20a0b7['focusableElements'],'add',(_0xe11996,_0x364100)=>{this['_focusTracker']['add'](_0x364100);}),this['listenTo'](_0x20a0b7['focusableElements'],'remove',(_0x57b802,_0x51c275)=>{this['_focusTracker']['remove'](_0x51c275);}),this['listenTo'](_0x20a0b7['view']['focusTracker'],'change:isFocused',(_0x5df2a4,_0x5c20f4,_0x56ace5)=>{_0x56ace5&&this['fire']('focus',_0x20a0b7);}),_0x20a0b7['updateTargetRect']();const _0x41d0da=this['_getOrderInContent'](_0x20a0b7['view']['targetRect']);return super['add'](_0x20a0b7,_0x41d0da);}['remove'](_0x3b3e55){if(!this['has'](_0x3b3e55))throw new _0x26d752('annotationcollection-not-existing-item',null);this['stopListening'](_0x3b3e55['view']['focusTracker']),this['stopListening'](_0x3b3e55['focusableElements']);for(const _0x3505c3 of _0x3b3e55['focusableElements'])this['_focusTracker']['remove'](_0x3505c3);return this['_viewToAnnotation']['delete'](_0x3b3e55['view']),this['_innerViewToAnnotation']['delete'](_0x3b3e55['innerView']),super['remove'](_0x3b3e55);}['getByInnerView'](_0x1135ef){return this['_innerViewToAnnotation']['get'](_0x1135ef);}['getByView'](_0x381f77){return this['_viewToAnnotation']['get'](_0x381f77);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5dcf1f of this)_0x5dcf1f['updateTargetRect']();this['_sort']();}['_sort'](){const _0x5571a0=Array['from'](this)['sort']((_0x35f49b,_0x4963d5)=>v(_0x35f49b['view']['targetRect'],_0x4963d5['view']['targetRect']));for(let _0x4596e0=_0x5571a0['length']-0x1;_0x4596e0>0x0;_0x4596e0--){const _0x57efe2=_0x5571a0[_0x4596e0];_0x4596e0!==this['getIndex'](_0x57efe2)&&(this['remove'](_0x57efe2),this['add'](_0x57efe2));}}['_getOrderInContent'](_0x3ce4e6){let _0x503cf8=0x0;if(!_0x3ce4e6)return this['length'];for(const _0x2f9358 of this){const _0x21e4a6=_0x2f9358['view']['targetRect'];if(_0x21e4a6){if(v(_0x3ce4e6,_0x21e4a6)<0x0)return _0x503cf8;_0x503cf8++;}}return _0x503cf8;}}function v(_0x187b6d,_0x58fee5){if(null===_0x187b6d&&null===_0x58fee5)return 0x0;if(null===_0x187b6d)return-0x1;if(null===_0x58fee5)return 0x1;const _0x514d5c=_0x187b6d['top']-_0x58fee5['top'];return 0x0==_0x514d5c?_0x187b6d['left']-_0x58fee5['left']:_0x514d5c;}class N extends _0x4f99d3{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8a2e6b){if(super(_0x8a2e6b),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x8a2e6b instanceof _0xbf2aaf){const _0x558799=_0x8a2e6b['locale'];_0x8a2e6b['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x558799,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x558799,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x558799,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x558799,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x558799,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x558799,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x558799,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x40a0a4){this['collection']['add'](_0x40a0a4);}['remove'](_0x54f14a){this['collection']['remove'](_0x54f14a),_0x54f14a['destroy']();}['refreshVisibility'](){for(const _0x3205b1 of this['collection'])_0x3205b1['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x3f0974){return this['collection']['getByInnerView'](_0x3f0974);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0xbbcb6b of this['collection'])_0xbbcb6b['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x410b57){this['fire']('_activateAnnotation',_0x410b57);}['createAnnotation'](_0xa716e6){return new d(_0xa716e6);}['createAnnotationView'](_0x307330,_0x553f34){return new T(_0x307330,_0x553f34);}['_addActiveAnnotation'](_0x3201a5){const _0x5057be=new Set(this['activeAnnotations']);_0x5057be['add'](_0x3201a5),this['activeAnnotations']=_0x5057be;}['_removeActiveAnnotation'](_0x468c76){const _0x3fbe4e=new Set(this['activeAnnotations']);_0x3fbe4e['delete'](_0x468c76),this['activeAnnotations']=_0x3fbe4e;}['_bindAnnotationsToVisibleAnnotations'](){const _0x55ee11=this['collection'],_0x3e4b60=this['_visibleAnnotations'];function _0x3b236b(_0x4fc525){const _0x98f2d1=_0x4fc525['source'];_0x98f2d1['isVisible']&&!_0x3e4b60['has'](_0x98f2d1)?_0x3e4b60['add'](_0x98f2d1):!_0x98f2d1['isVisible']&&_0x3e4b60['has'](_0x98f2d1)&&_0x3e4b60['remove'](_0x98f2d1),_0x98f2d1['view']['focusTracker']['remove'](_0x98f2d1['view']['element']),_0x98f2d1['view']['focusTracker']['add'](_0x98f2d1['view']['element']);}this['listenTo'](_0x55ee11,'add',(_0x181155,_0x1cf5a6)=>{_0x1cf5a6['isVisible']&&_0x3e4b60['add'](_0x1cf5a6),this['listenTo'](_0x1cf5a6,'change:isVisible',_0x3b236b);}),this['listenTo'](_0x55ee11,'remove',(_0x26b3dc,_0x41482e)=>{_0x3e4b60['has'](_0x41482e)&&_0x3e4b60['remove'](_0x41482e),this['stopListening'](_0x41482e,'change:isVisible',_0x3b236b);});}['_setupEnterAnnotationKeystroke'](){const _0x5110e5=_0x134f13=>{_0x134f13['on']('ready',()=>{_0x134f13['keystrokes']['set'](_0x404b40,(_0x302520,_0x12793d)=>{const _0x31ed03=_0xe44e66(this['activeAnnotations']['values']());_0x31ed03&&(_0x31ed03['view']['focus'](),_0x12793d());});});};this['context']instanceof _0xbf2aaf?_0x5110e5(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x5b0d1e,_0xec8be8)=>{_0x5110e5(_0xec8be8);});}['_setupEscapeAnnotationHandling'](){const _0x58bdf2=_0x2e8eb6=>{const _0x68dd51=_0x2e8eb6['source'],_0x28e99d=[];let _0x2378e1;if(Array['isArray'](_0x68dd51['target'])){_0x2378e1=_0x68dd51['target'][0x0],this['context']instanceof _0xbf2aaf?_0x28e99d['push'](this['context']):this['context']['editors']&&_0x28e99d['push'](...this['context']['editors']);for(const _0x2f32c3 of _0x28e99d)for(const _0x5af30a of _0x2f32c3['editing']['view']['domRoots']['values']())if(_0x5af30a['contains'](_0x2378e1))return void _0x2f32c3['editing']['view']['focus']();_0x2378e1['focus']();}};this['listenTo'](this['collection'],'add',(_0x1a980b,_0x21a1a8)=>{this['listenTo'](_0x21a1a8,'escape',_0x58bdf2,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x9322b9,_0x5a3c15)=>{this['stopListening'](_0x5a3c15,'escape',_0x58bdf2);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4f99d3{['_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(_0x2b347f){super(_0x2b347f),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4e9945=this['context']['config'];_0x4e9945['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4e9945['define']('comments.maxThreadTotalWeight',0x1f4),_0x4e9945['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4e9945['define']('comments.CommentThreadView',vt),_0x4e9945['define']('comments.CommentView',gt),_0x4e9945['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x425b88=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x37ac01,_0x4a351d)=>this['_addCommentThread'](_0x4a351d)),this['on']('submitCommentThread',(_0x4d7431,_0x1395de)=>this['_submitCommentThread'](_0x1395de)),this['on']('resolveCommentThread',(_0x4ff4fc,_0x96b910)=>this['_resolveCommentThread'](_0x96b910)),this['on']('resolveCommentThread',(_0x7bd7e6,_0x43e908)=>this['_updateActiveAnnotation'](_0x43e908),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x236194,_0x208148)=>this['_reopenCommentThread'](_0x208148)),this['on']('reopenCommentThread',(_0x3091c0,_0x3951ed)=>this['_updateActiveAnnotation'](_0x3951ed),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x25b8fc,_0xa38b6c)=>this['_removeCommentThread'](_0xa38b6c)),this['on']('updateCommentThread',(_0x5c4974,_0x1aa75d)=>this['_updateCommentThread'](_0x1aa75d)),this['on']('updateCommentThread',(_0x573f7a,_0x30a5f8)=>this['_updateActiveAnnotation'](_0x30a5f8),{'priority':'lowest'}),this['on']('addComment',(_0x375e3f,_0x1d543d)=>this['_addComment'](_0x1d543d)),this['on']('updateComment',(_0x18fbf3,_0x152d8d)=>this['_updateComment'](_0x152d8d)),this['on']('removeComment',(_0x7c9484,_0x2a2c0f)=>this['_removeComment'](_0x2a2c0f)),this['on']('addComment',(_0xe45cbe,{threadId:_0x177ae4,isFromAdapter:_0x189f10})=>{if(_0x189f10)return;const _0x58f93a=this['getCommentThread'](_0x177ae4),_0x2ed022=_0x58f93a&&this['_threadToController']['get'](_0x58f93a);_0x2ed022&&_0x2ed022['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x425b88,'change:activeAnnotations',(_0x1b33b4,_0x54cdea,_0x4945e6)=>{const _0x3dc291=Array['from'](_0x4945e6)['map'](_0xd62946=>this['_viewToController']['get'](_0xd62946['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3dc291?_0x3dc291['model']:null;});}set['adapter'](_0x2d03bd){if(this['_adapter'])throw new _0x26d752('commentsrepository-adapter-already-set');this['_adapter']=_0x2d03bd;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x3b99bc=Tt,threadId:_0x2062cf=_0x487f3d(),comments:_0x567c71=[],unlinkedAt:_0x28525a=null,resolvedAt:_0x54af28=null,resolvedBy:_0x207317=null,target:_0x1cbd57=null,context:_0x2f2104=null,attributes:_0x493846={},isResolvable:_0x36eebc=!0x0,isSubmitted:_0x234e5b=!0x1,isFromAdapter:_0x302ba4=!0x1}={}){return this['fire'](bt('addCommentThread',_0x3b99bc),{'channelId':_0x3b99bc,'threadId':_0x2062cf,'comments':_0x567c71,'unlinkedAt':_0x28525a,'resolvedAt':_0x54af28,'resolvedBy':_0x207317,'target':_0x1cbd57,'context':_0x2f2104,'attributes':_0x493846,'isFromAdapter':_0x302ba4,'isResolvable':_0x36eebc,'isSubmitted':_0x234e5b}),this['getCommentThread'](_0x2062cf);}['openNewCommentThread']({channelId:_0x18483a=Tt,threadId:_0x32042e=_0x487f3d(),target:_0x834edd,context:_0x4ec9e6=null,isResolvable:_0x7ee975=!0x0}){if(this['_readOnlyChannels']['has'](_0x18483a)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x834edd)throw new _0x26d752('commentsrepository-missing-target');const _0x48b804=this['addCommentThread']({'channelId':_0x18483a,'threadId':_0x32042e,'target':_0x834edd,'context':_0x4ec9e6,'isResolvable':_0x7ee975});if(!_0x48b804)return null;const _0x33cc76=this['_threadToController']['get'](_0x48b804),_0x51281c=_0x33cc76['view']['commentThreadInputView']['commentInputView'],_0x29916d=this['context']['plugins']['get'](N),_0x26cb72=_0x29916d['getByInnerView'](_0x33cc76['view']);return _0x29916d['activate'](_0x26cb72),_0x51281c['once']('editorReady',()=>_0x51281c['focus']()),_0x48b804;}['hasCommentThread'](_0x57d882){if('string'!=typeof _0x57d882)throw new _0x26d752('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x57d882);}['updateCommentThread']({channelId:_0x535140=Tt,threadId:_0x54a858,context:_0x57acff,unlinkedAt:_0x1e18b6,attributes:_0x2f1445,isFromAdapter:_0x44b99c=!0x1}){return this['fire'](bt('updateCommentThread',_0x535140),{'channelId':_0x535140,'threadId':_0x54a858,'context':_0x57acff,'unlinkedAt':_0x1e18b6,'attributes':_0x2f1445,'isFromAdapter':_0x44b99c}),this['getCommentThread'](_0x54a858);}['getCommentThread'](_0x9e7d75){if('string'!=typeof _0x9e7d75)throw new _0x26d752('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x9e7d75);}['fetchCommentThread']({channelId:_0x26ad49,threadId:_0xd33d6d}={}){const _0x2f960f=this['getCommentThread'](_0xd33d6d);if(_0x2f960f)return Promise['resolve'](_0x2f960f);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x26d752('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x26ad49,'threadId':_0xd33d6d})['then'](_0x298c81=>this['hasCommentThread'](_0xd33d6d)?this['getCommentThread'](_0xd33d6d):_0x298c81?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x26ad49},_0x298c81)):void 0x0)['catch'](_0x5819a3=>{throw console['error'](_0x5819a3),new _0x26d752('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1a3f79,skipNotAttached:_0x29d965=!0x1,skipEmpty:_0x419880=!0x1,toJSON:_0x5ae733=!0x1}={}){const _0xb48bc3=[];for(const _0x226592 of this['_threads']['values']())_0x1a3f79&&_0x226592['channelId']!==_0x1a3f79||_0x29d965&&!_0x226592['isAttached']||_0x419880&&0x0===_0x226592['length']||_0xb48bc3['push'](_0x226592);return _0x5ae733?_0xb48bc3['map'](_0x5cba89=>_0x5cba89['toJSON']()):_0xb48bc3;}['setActiveCommentThread'](_0xbba488){const _0x390842=this['context']['plugins']['get'](N);if(!_0xbba488)return void(this['activeCommentThread']&&_0x390842['deactivateAll']());const _0x3488c1=this['getCommentThread'](_0xbba488);if(!_0x3488c1)throw new _0x26d752('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xbba488});if(!this['_threadToController']['has'](_0x3488c1))throw new _0x26d752('commentsrepository-active-not-attached',null,{'threadId':_0xbba488});const _0x1fa554=_0x390842['getByInnerView'](this['_threadToController']['get'](_0x3488c1)['view']);_0x390842['activate'](_0x1fa554);}['switchReadOnly'](_0x109527,_0x4f2c9d){_0x109527?this['_readOnlyChannels']['add'](_0x4f2c9d):this['_readOnlyChannels']['delete'](_0x4f2c9d),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1b6737){return this['_readOnlyChannels']['has'](_0x1b6737)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x5e7727,_0x5b2788){return new Ct(_0x5e7727,_0x5b2788);}['setPermissions'](_0x5cac5a,_0x36f7b4=Tt){this['_permissions']['set'](_0x36f7b4,_0x5cac5a),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x46ab9d=Tt){return this['_permissions']['has'](_0x46ab9d)?this['_permissions']['get'](_0x46ab9d):_t;}['_addCommentThread']({channelId:_0x1cb4c0,threadId:_0x1ea34c,comments:_0x1d326b,unlinkedAt:_0x22b180,resolvedAt:_0x287f9d,resolvedBy:_0x3b3e9c,target:_0x173c69,context:_0x2784b9,attributes:_0x3db7d3,isFromAdapter:_0xcdb0fb,isResolvable:_0x545291,isSubmitted:_0x452d68}){if('string'!=typeof _0x1ea34c)throw new _0x26d752('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1ea34c});if(this['hasCommentThread'](_0x1ea34c))throw new _0x26d752('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1ea34c});const _0x362d12=new oe(this,{'channelId':_0x1cb4c0,'id':_0x1ea34c,'context':_0x2784b9,'attributes':_0x3db7d3,'unlinkedAt':_0x22b180,'resolvedAt':_0x287f9d,'resolvedBy':_0x3b3e9c?this['context']['plugins']['get'](it)['getUser'](_0x3b3e9c):null,'isResolvable':_0x545291,'isSubmitted':_0x452d68||_0xcdb0fb});this['_threads']['set'](_0x1ea34c,_0x362d12);for(const _0x4b2c3e of _0x1d326b)_0x362d12['_add'](this['_createNewComment']({'threadId':_0x1ea34c,..._0x4b2c3e}));return _0x173c69&&_0x362d12['attachTo'](_0x173c69),_0xcdb0fb||!_0x362d12['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1cb4c0,'threadId':_0x1ea34c});}['_submitCommentThread']({channelId:_0x22d6f8,threadId:_0x6ba937}){if(!this['hasCommentThread'](_0x6ba937))throw new _0x26d752('commentsrepository-missing-comment-thread',this);const _0x1ee4d0=this['getCommentThread'](_0x6ba937);if(_0x1ee4d0['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x80f42a,comments:_0x1d6262,resolvedAt:_0x55c8fb,resolvedBy:_0x4ee0ea,context:_0x24ea17,attributes:_0x52931a}=_0x1ee4d0,_0x6d78c6=this['context']['plugins']['get']('PendingActions'),_0x36ba41=_0x6d78c6['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x22d6f8,'threadId':_0x80f42a,'comments':_0x1d6262['map'](_0x2b19fb=>_0x2b19fb['toJSON']()),'resolvedAt':_0x55c8fb,'resolvedBy':_0x4ee0ea?_0x4ee0ea['id']:_0x4ee0ea,'context':_0x24ea17,'attributes':_0x52931a})['then'](({comments:_0x5d5af2})=>{_0x6d78c6['remove'](_0x36ba41);for(const _0x44d3ae of _0x5d5af2)this['_updateComment']({'channelId':_0x22d6f8,'threadId':_0x6ba937,'commentId':_0x44d3ae['commentId'],'createdAt':_0x44d3ae['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4a578f=>{throw console['error'](_0x4a578f),new _0x26d752('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x1f9f10,target:_0x2c383f}){const _0x3db231=this['getCommentThread'](_0x1f9f10);if(!_0x3db231)throw new _0x26d752('commentsrepository-attach-missing-comment-thread',this);const _0x184d92=this['context']['plugins']['get']('PendingActions'),_0x1700ca=this['context']['plugins']['get'](N),_0x450b52=this['_createCommentThreadView'](_0x3db231),_0xf7c7c8=new Ct(_0x3db231,_0x450b52);let _0x18b9e3=null;_0x450b52['on']('change:isDirty',(_0x25986d,_0x3c156d,_0x577a3c)=>{_0x577a3c?_0x18b9e3=_0x184d92['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x18b9e3&&(_0x184d92['remove'](_0x18b9e3),_0x18b9e3=null);}),this['_threadToController']['set'](_0x3db231,_0xf7c7c8),this['_viewToController']['set'](_0x450b52,_0xf7c7c8);const _0x2d1cb8=new T(this['context']['locale'],_0x450b52);_0x2d1cb8['bind']('length')['to'](_0x450b52),_0x2d1cb8['bind']('isDirty')['to'](_0x450b52,'isDirty',_0x450b52,'length',(_0x18487e,_0x4d96e9)=>_0x18487e||!_0x4d96e9),_0x2d1cb8['bind']('isActive')['to'](_0x450b52),_0x2d1cb8['type']='comment';const _0x4c70ee=new d({'view':_0x2d1cb8,'target':_0x2c383f,'type':'comment','isVisible':!_0x3db231['isResolved']});return _0x450b52['on']('escape',()=>{_0x4c70ee['fire']('escape');}),this['_bindAnnotationToEditors'](_0x450b52,_0x4c70ee),_0x1700ca['add'](_0x4c70ee),_0x4c70ee;}['_bindAnnotationToEditors'](_0x24d75f,_0x88f297){this['listenTo'](_0x24d75f,'editorReady',(_0x253b47,_0x5a4df0)=>{const _0x1b94ff=_0x5a4df0['ui']['view']['body']['bodyCollectionContainer'];_0x88f297['focusableElements']['add'](_0x1b94ff),this['context']instanceof _0xbf2aaf&&this['context']['ui']['focusTracker']['add'](_0x1b94ff);},{'priority':'highest'}),this['listenTo'](_0x24d75f,'editorDestroyed',(_0x9d262a,_0xfe838f)=>{const _0x58a134=_0xfe838f['ui']['view']['body']['bodyCollectionContainer'];_0x88f297['focusableElements']['has'](_0x58a134)&&_0x88f297['focusableElements']['remove'](_0x58a134),this['context']instanceof _0xbf2aaf&&this['context']['ui']['focusTracker']['remove'](_0x58a134);});}['_unbindEditors'](_0x58db6a){this['stopListening'](_0x58db6a,'editorReady'),this['stopListening'](_0x58db6a,'editorDestroyed');}['_createCommentThreadView'](_0xf6a6fe){const _0x12fa50=this['context']['plugins']['get'](it),{config:_0x37bddf,locale:_0x3b548c}=this['context'],_0x44a929=lt(_0x37bddf['get']('locale'));return new(0x0,(_0x37bddf['get']('comments'))['CommentThreadView'])(_0x3b548c,_0xf6a6fe,_0x12fa50['me'],{'editorConfig':{..._0x37bddf['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x37bddf['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x37bddf['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x37bddf['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x37bddf['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x44a929,'CommentView':_0x37bddf['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0xa4c728,channelId:_0x3d76d4,resolvedAt:_0x1967fd,resolvedBy:_0x13a4c1,isFromAdapter:_0x288a57}){if(!this['hasCommentThread'](_0xa4c728))throw new _0x26d752('commentsrepository-missing-comment-thread',null,{'threadId':_0xa4c728});const _0x5761c9=this['getCommentThread'](_0xa4c728);if(_0x5761c9['isResolved'])throw new _0x26d752('commentsrepository-resolved-comment-thread',null,{'threadId':_0xa4c728});const _0x1dda2f=this['context']['plugins']['get'](it);if(_0x5761c9['resolvedBy']=_0x1dda2f['getUser'](_0x13a4c1),_0x5761c9['resolvedAt']=_0x1967fd,_0x288a57||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x41d45b=this['context']['plugins']['get']('PendingActions'),_0x443012=_0x41d45b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x3d76d4,'threadId':_0xa4c728})['then'](({resolvedAt:_0x164c8b,resolvedBy:_0x5b6ccc})=>{_0x41d45b['remove'](_0x443012),_0x5761c9['resolvedBy']['id']!==_0x5b6ccc&&(_0x5761c9['resolvedBy']=_0x1dda2f['getUser'](_0x5b6ccc)),_0x5761c9['resolvedAt']=_0x164c8b;})['catch'](_0x3a2fd7=>{throw console['error'](_0x3a2fd7),new _0x26d752('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4b97cc,channelId:_0x1132ce,isFromAdapter:_0x3d6edb}){if(!this['hasCommentThread'](_0x4b97cc))throw new _0x26d752('commentsrepository-missing-comment-thread',null,{'threadId':_0x4b97cc});const _0x17f38f=this['getCommentThread'](_0x4b97cc);if(!_0x17f38f['isResolved'])throw new _0x26d752('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4b97cc});if(_0x17f38f['resolvedBy']=null,_0x17f38f['resolvedAt']=null,_0x3d6edb||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1a283f=this['context']['plugins']['get']('PendingActions'),_0x251220=_0x1a283f['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1132ce,'threadId':_0x4b97cc})['then'](()=>_0x1a283f['remove'](_0x251220))['catch'](_0x5dda48=>{throw console['error'](_0x5dda48),new _0x26d752('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5a5b4c,isFromAdapter:_0x39f714}){const _0x555682=this['getCommentThread'](_0x5a5b4c);if(!_0x555682)throw new _0x26d752('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5a5b4c),this['_threads']['delete'](_0x5a5b4c),!_0x555682['isSubmitted']||_0x39f714||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x3f1efa=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2baea7}=_0x555682,_0x1a243e=_0x3f1efa['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x2baea7,'threadId':_0x5a5b4c})['then'](()=>_0x3f1efa['remove'](_0x1a243e))['catch'](_0x3ec1f9=>{throw console['error'](_0x3ec1f9),new _0x26d752('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x104492,unlinkedAt:_0xdabb6b,context:_0x278c4d,attributes:_0x26839a,isFromAdapter:_0x3aa212}){if('string'!=typeof _0x104492)throw new _0x26d752('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x104492});if(!this['hasCommentThread'](_0x104492))throw new _0x26d752('commentsrepository-missing-comment-thread',null,{'threadId':_0x104492});const _0xb24d47=this['getCommentThread'](_0x104492);let _0x2b7f04=!0x1;if(void 0x0!==_0x278c4d&&_0xb24d47['context']!==_0x278c4d&&(_0xb24d47['context']=_0x278c4d,_0x2b7f04=!0x0),void 0x0!==_0xdabb6b&&_0xb24d47['unlinkedAt']!==_0xdabb6b&&(_0xb24d47['unlinkedAt']=_0xdabb6b,_0x2b7f04=!0x0),_0x26839a&&!wt(_0x26839a,_0xb24d47['attributes'])&&(_0xb24d47['attributes']=_0x26839a,_0x2b7f04=!0x0),!_0x2b7f04)return Promise['resolve']();if(!_0xb24d47['isSubmitted']||_0x3aa212||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x16eb53=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3d3b43}=_0xb24d47,_0x16506c=_0x16eb53['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x3d3b43,'threadId':_0x104492,'context':_0x278c4d,'unlinkedAt':_0xdabb6b,'attributes':_0x26839a})['then'](()=>_0x16eb53['remove'](_0x16506c))['catch'](_0x303928=>{throw console['error'](_0x303928),new _0x26d752('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1c5db9){const _0x22f55e=this['context']['plugins']['get'](N),_0x19e385=this['getCommentThread'](_0x1c5db9);if(_0x19e385['_isAttached']=!0x1,this['_threadToController']['has'](_0x19e385)){const _0x3ced83=this['_threadToController']['get'](_0x19e385),_0x258ce5=_0x3ced83['view'],_0x31ef93=_0x22f55e['getByInnerView'](_0x258ce5);this['_threadToController']['delete'](_0x19e385),this['_viewToController']['delete'](_0x258ce5),_0x31ef93&&_0x22f55e['remove'](_0x31ef93),_0x3ced83['destroy'](),_0x258ce5['destroy']()['then'](()=>{this['_unbindEditors'](_0x258ce5);});}}['_updateActiveAnnotation']({threadId:_0x4a3067,resolvedAt:_0xbb5941}){const _0x209af4=!!_0xbb5941,_0x75e494=this['context']['plugins']['get'](N),_0x4ef708=this['getCommentThread'](_0x4a3067);if(this['_threadToController']['has'](_0x4ef708)){const _0x7bd252=this['_threadToController']['get'](_0x4ef708)['view'],_0x104e04=_0x75e494['getByInnerView'](_0x7bd252);_0x104e04&&(_0x209af4&&_0x75e494['_removeActiveAnnotation'](_0x104e04),_0x104e04['refreshVisibility']());}}['_getExternalAuthor'](_0x3c0a49){const _0x32609d=this['context']['plugins']['get'](it),_0x2b08e9=pt('external:'+_0x3c0a49),_0x45737b=_0x32609d['getUser'](_0x2b08e9);return _0x45737b||_0x32609d['addUser']({'id':_0x2b08e9,'name':_0x3c0a49});}['_createNewComment']({threadId:_0x1ccf91,commentId:_0x1e73e3=_0x487f3d(),content:_0x4077f3,authorId:_0x24fd1e,createdAt:_0x13652b,attributes:_0xdd68b2}){if('string'!=typeof _0x1e73e3)throw new _0x26d752('commentsrepository-invalid-commentid');if('string'!=typeof _0x24fd1e)throw new _0x26d752('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4077f3||!_0x4077f3['trim']())throw new _0x26d752('commentsrepository-invalid-comment-content');const _0x487e62=this['context']['plugins']['get'](it)['getUser'](_0x24fd1e);if(!_0x487e62)throw new _0x26d752('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x24fd1e});let _0x188908=null,_0x4c6bc0=_0x13652b;return _0xdd68b2&&_0xdd68b2['@external']&&(_0x188908=this['_getExternalAuthor'](_0xdd68b2['@external']['authorName']),_0x4c6bc0=new Date(_0xdd68b2['@external']['createdAt'])),new re(this,{'threadId':_0x1ccf91,'id':_0x1e73e3,'author':_0x188908||_0x487e62,'creator':_0x487e62,'content':_0x4077f3,'createdAt':_0x13652b,'authoredAt':_0x4c6bc0,'attributes':_0xdd68b2});}['_addComment'](_0x57fde2){let {threadId:_0x210095,content:_0x50aaf1,attributes:_0x573242,isFromAdapter:_0x370ce9}=_0x57fde2;const _0x3f3ac5=this['getCommentThread'](_0x57fde2['threadId']);if(!_0x3f3ac5)throw new _0x26d752('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x20ca5e=this['_createNewComment'](_0x57fde2),{id:_0x546da6}=_0x20ca5e;if(_0x3f3ac5['_add'](_0x20ca5e),_0x370ce9||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x3f3ac5['isSubmitted'])return Promise['resolve']();const _0x5256c3=this['context']['plugins']['get']('PendingActions'),{channelId:_0x8d981a}=_0x3f3ac5,_0x3ae4f4=_0x5256c3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x573242||(_0x573242={}),this['adapter']['addComment']({'channelId':_0x8d981a,'threadId':_0x210095,'commentId':_0x546da6,'content':_0x50aaf1,'attributes':_0x573242})['then'](_0x8cc1a=>{_0x5256c3['remove'](_0x3ae4f4),_0x8cc1a&&this['_updateComment']({'channelId':_0x8d981a,'threadId':_0x210095,'commentId':_0x546da6,'createdAt':_0x8cc1a['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5f1cb1=>{throw console['error'](_0x5f1cb1),new _0x26d752('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x3a5af7,commentId:_0x2f9aea,content:_0x4843ae,createdAt:_0x2a5d8b,attributes:_0x1fd9c3,isFromAdapter:_0x49ab43}){if(void 0x0!==_0x4843ae&&('string'!=typeof _0x4843ae||!_0x4843ae['trim']()['length']))throw new _0x26d752('commentsrepository-update-comment-invalid-content');const _0x5e496b=this['getCommentThread'](_0x3a5af7),_0x2220b8=_0x5e496b['getComment'](_0x2f9aea);if(!_0x2220b8)throw new _0x26d752('commentsrepository-update-missing-comment',this);let _0x59d47b=!0x1;if(_0x4843ae&&_0x4843ae!==_0x2220b8['content']&&(_0x2220b8['isEditable']||_0x49ab43)&&(_0x2220b8['content']=_0x4843ae,_0x59d47b=!0x0),_0x2a5d8b&&_0x2a5d8b!==_0x2220b8['createdAt']&&(_0x2220b8['createdAt']=_0x2a5d8b,_0x2220b8['attributes']&&_0x2220b8['attributes']['@external']||(_0x2220b8['authoredAt']=_0x2a5d8b),_0x59d47b=!0x0),_0x1fd9c3&&!wt(_0x1fd9c3,_0x2220b8['attributes'])&&(_0x2220b8['attributes']=_0x1fd9c3,_0x59d47b=!0x0),!_0x59d47b)return Promise['resolve']();if(_0x5e496b['fire']('commentUpdated'),_0x49ab43||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x3d1bcf=this['context']['plugins']['get']('PendingActions'),{channelId:_0x291fa9}=this['getCommentThread'](_0x2220b8['threadId']),_0x1ecf62=_0x3d1bcf['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x291fa9,'threadId':_0x3a5af7,'commentId':_0x2f9aea,'content':_0x4843ae,'attributes':_0x1fd9c3})['then'](()=>_0x3d1bcf['remove'](_0x1ecf62))['catch'](_0x545e81=>{throw console['error'](_0x545e81),new _0x26d752('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x11991d,commentId:_0x19b1fb,isFromAdapter:_0x4980f9}){const _0x28bf8c=this['getCommentThread'](_0x11991d),_0x26c53a=_0x28bf8c['getComment'](_0x19b1fb);if(!_0x26c53a)throw new _0x26d752('commentsrepository-remove-missing-comment',this);if(_0x28bf8c['_remove'](_0x26c53a),_0x4980f9||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x52e95b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1fdd6e}=_0x28bf8c,_0x8bf7ce=_0x52e95b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1fdd6e,'threadId':_0x11991d,'commentId':_0x19b1fb})['then'](()=>_0x52e95b['remove'](_0x8bf7ce))['catch'](_0x7fc14d=>{throw console['error'](_0x7fc14d),new _0x26d752('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x8dc7e(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x3b017,_0x410d42){super();const _0x1212fa=_0x410d42['isResolvable'];this['channelId']=_0x410d42['channelId'],this['id']=_0x410d42['id'],this['comments']=new _0x51030a(),this['_repository']=_0x3b017,this['_isAttached']=!0x1,this['_isSubmitted']=_0x410d42['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x3b017,'_permissions',_0x3b017,'_readOnlyChannels',()=>_0x3b017['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x3b017,'_permissions',()=>_0x3b017['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x3b017,'_permissions',()=>{const _0x1d8af3=_0x3b017['getPermissions'](this['channelId']);return _0x1d8af3['write']||_0x1d8af3['admin'];}),this['bind']('isResolvable')['to'](_0x3b017,'_permissions',()=>_0x1212fa&&_0x3b017['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x410d42['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4d9db5,_0x21abb6)=>_0x4d9db5?_0x21abb6?_0x4d9db5<_0x21abb6?_0x4d9db5:_0x21abb6:_0x4d9db5:_0x21abb6),this['set']('unlinkedAt',_0x410d42['unlinkedAt']||null),this['set']('resolvedAt',_0x410d42['resolvedAt']||null),this['set']('resolvedBy',_0x410d42['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x40ae2b=>!!_0x40ae2b),this['set']('attributes',_0x410d42['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xe7c145,_0x71690b)=>_0xe7c145+_0x71690b['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2edb26,id:_0x18f09b}=this;this['_repository']['fire'](bt('submitCommentThread',_0x2edb26),{'channelId':_0x2edb26,'threadId':_0x18f09b});}['setUnlinkedAt'](_0x53ecea){this['_update']({'unlinkedAt':_0x53ecea});}['resolve']({resolvedAt:_0x376486=new Date(),resolvedBy:_0x31dda3=null,isFromAdapter:_0x546d65=!0x1}={}){const _0x522505=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x41db0d,id:_0x384738}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x41db0d),{'channelId':_0x41db0d,'threadId':_0x384738,'resolvedAt':_0x376486,'resolvedBy':_0x31dda3||_0x522505['id'],'isFromAdapter':_0x546d65});}['reopen']({isFromAdapter:_0x33f666=!0x1}={}){const {channelId:_0x31dcdd,id:_0x15a0af}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x31dcdd),{'channelId':_0x31dcdd,'threadId':_0x15a0af,'isFromAdapter':_0x33f666});}['setContext'](_0x4b579d){this['context']||this['_update']({'context':_0x4b579d});}['setAttribute'](_0x3046d8,_0x1bc1a6){const _0x2915ba=It(this['attributes']);At(_0x2915ba,_0x3046d8,_0x1bc1a6),this['_update']({'attributes':_0x2915ba});}['removeAttribute'](_0x6b9457){const _0x113466=It(this['attributes']);yt(_0x113466,_0x6b9457),this['_update']({'attributes':_0x113466});}['remove']({isFromAdapter:_0x28fba0=!0x1}={}){const {channelId:_0x3466e5,id:_0x2bdbfa}=this;this['_repository']['fire'](bt('removeCommentThread',_0x3466e5),{'channelId':_0x3466e5,'threadId':_0x2bdbfa,'isFromAdapter':_0x28fba0});}['attachTo'](_0x41a8db){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x41a8db});}['addComment'](_0x2c3f1b){const {channelId:_0x128377,id:_0x29bb37}=this;this['_repository']['fire'](bt('addComment',_0x128377,_0x29bb37),Object['assign']({'channelId':_0x128377,'threadId':_0x29bb37},_0x2c3f1b));}['getComment'](_0x222268){if('string'!=typeof _0x222268)throw new _0x26d752('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x222268});return this['comments']['get'](_0x222268);}['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'](_0x406ce3=>_0x406ce3['toJSON']()),'attributes':this['attributes']};}['_add'](_0x23e1fe){return this['listenTo'](_0x23e1fe,'change:authoredAt',()=>{const _0x2f0333=this['_findOptimalIndex'](_0x23e1fe),_0x1df325=this['comments'];_0x2f0333-0x1!=_0x1df325['getIndex'](_0x23e1fe)&&_0x2f0333+0x1!=_0x1df325['getIndex'](_0x23e1fe)&&(this['_remove'](_0x23e1fe),this['_add'](_0x23e1fe));}),this['comments']['add'](_0x23e1fe,this['_findOptimalIndex'](_0x23e1fe));}['_update'](_0x5991ec){const {channelId:_0x7b5049,id:_0x41508d}=this;this['_repository']['fire'](bt('updateCommentThread',_0x7b5049),{..._0x5991ec,'channelId':_0x7b5049,'threadId':_0x41508d});}['_remove'](_0x259ce0){return this['stopListening'](_0x259ce0),_0x259ce0['destroy'](),this['comments']['remove'](_0x259ce0);}['_findOptimalIndex'](_0x10553c){const _0x2b97dc=this['comments']['find'](_0x5d8cea=>new Date(_0x5d8cea['authoredAt'])['getTime']()>new Date(_0x10553c['authoredAt'])['getTime']());return _0x2b97dc?this['comments']['getIndex'](_0x2b97dc):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x8dc7e(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5c2b1b,_0x187aaa){super();const _0x47d258=_0x5c2b1b['context']['plugins']['get'](it)['me'],_0xf2820e=_0x5c2b1b['getCommentThread'](_0x187aaa['threadId']),_0x33bd46=0x0===_0xf2820e['comments']['length'],_0xf72d17=_0x47d258===_0x187aaa['author'];this['id']=_0x187aaa['id'],this['threadId']=_0x187aaa['threadId'],this['author']=_0x187aaa['author'],this['creator']=_0x187aaa['creator'],this['isExternal']=Boolean(_0x187aaa['attributes']&&_0x187aaa['attributes']['@external']),this['set']('content',_0x187aaa['content']),this['createdAt']=_0x187aaa['createdAt']||new Date(),this['set']('authoredAt',_0x187aaa['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0xf2820e,'resolvedAt'),this['set']('attributes',_0x187aaa['attributes']||{}),this['bind']('isEditable')['to'](_0x5c2b1b,'_permissions',()=>{const _0x161c59=_0x5c2b1b['getPermissions'](_0xf2820e['channelId'])['write'],_0x5bff4e=_0x5c2b1b['getPermissions'](_0xf2820e['channelId'])['modifyAll'];return _0xf72d17&&_0x161c59||!_0xf72d17&&_0x5bff4e;}),this['bind']('isRemovable')['to'](_0xf2820e,'isRemovable',_0x5c2b1b,'_permissions',_0x12a9a6=>{const _0xa9b019=_0x5c2b1b['getPermissions'](_0xf2820e['channelId'])['write'],_0x24e5d7=_0x5c2b1b['getPermissions'](_0xf2820e['channelId'])['modifyAll'];return _0xf72d17&&_0xa9b019||_0x12a9a6&&_0x33bd46||!_0xf72d17&&_0x24e5d7&&!_0x33bd46;}),this['bind']('isReadOnly')['to'](_0xf2820e,'isReadOnly'),this['_repository']=_0x5c2b1b;}get['weight'](){return Math['max'](function(_0x454d43){const _0x183098=document['createElement']('div');return _0x183098['innerHTML']=_0x454d43,_0x183098['textContent']['length'];}(this['content']),0xc8);}['update'](_0x1fc7e0){const {threadId:_0x2938dc,id:_0x4d20ae}=this;if(!this['_repository']['hasCommentThread'](_0x2938dc))throw new _0x26d752('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x2d841a}=this['_repository']['getCommentThread'](_0x2938dc);this['_repository']['fire'](bt('updateComment',_0x2d841a,_0x2938dc),{'channelId':_0x2d841a,'threadId':_0x2938dc,'commentId':_0x4d20ae,..._0x1fc7e0});}['setAttribute'](_0x29bae6,_0x41f73f){const _0x563d09=It(this['attributes']);At(_0x563d09,_0x29bae6,_0x41f73f),this['update']({'attributes':_0x563d09});}['removeAttribute'](_0x16383f){const _0x568a5d=It(this['attributes']);yt(_0x568a5d,_0x16383f),this['update']({'attributes':_0x568a5d});}['remove'](_0x1d2b89={}){if(!_0x1d2b89['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x3380a7,id:_0x8f120}=this;if(!this['_repository']['hasCommentThread'](_0x3380a7))throw new _0x26d752('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0xd6b9ff}=this['_repository']['getCommentThread'](_0x3380a7);this['_repository']['fire'](bt('removeComment',_0xd6b9ff,_0x3380a7),{'channelId':_0xd6b9ff,'threadId':_0x3380a7,'commentId':_0x8f120,..._0x1d2b89});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0xb345c5,..._0x33288d){for(const _0x253c2f of _0x33288d)void 0x0!==_0x253c2f&&(_0xb345c5+=':'+String(_0x253c2f));return _0xb345c5;}class J extends _0x2cf7ec{['refresh'](){const _0xaf2e14=this['editor']['model']['document']['selection'];for(const _0x37931f of _0xaf2e14['getRanges']())if(this['_hasContent'](_0x37931f))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x8350d4=_0x487f3d()}={}){const _0xd338d3=this['editor']['model'],_0x214304=[];for(const _0x4e16ea of _0xd338d3['document']['selection']['getRanges']())this['_hasContent'](_0x4e16ea)&&_0x214304['push'](this['_trimToContent'](_0x4e16ea));_0xd338d3['change'](_0x392e94=>{for(const _0x22b1e1 of _0x214304){const _0xeeec6e=_0x487f3d()['substr'](0x1,0x5),_0x44ae83='comment:'+_0x8350d4+':'+_0xeeec6e;_0x392e94['addMarker'](_0x44ae83,{'range':_0x22b1e1,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x27ec02){for(const _0x59b209 of _0x27ec02['getItems']())if(this['_itemIsContent'](_0x59b209))return!0x0;return!0x1;}['_itemIsContent'](_0x180f51){return _0x180f51['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x180f51)&&!_0x180f51['is']('element','tableCell');}['_trimToContent'](_0x785163){const _0xb45dae=_0x59bec7=>!this['_itemIsContent'](_0x59bec7['item']),_0x487969=_0x785163['start']['getLastMatchingPosition'](_0xb45dae),_0x19010e=_0x785163['end']['getLastMatchingPosition'](_0xb45dae,{'direction':'backward'});return this['editor']['model']['createRange'](_0x487969,_0x19010e);}}class P extends _0xb0a682{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4eba52){super(_0x4eba52),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x2e5e9d=this['editor'],_0xfebaab=_0x2e5e9d['model']['document']['selection'],_0xa1de5a=_0x251a97(()=>this['refreshSelectedViews'](),0xa);_0xfebaab['on']('change:range',(_0xbd4666,_0x2b5038)=>{_0x2b5038['directChange']&&(_0xa1de5a['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x2e5e9d['editing']['view']['document'],'change:isFocused',(_0x325aeb,_0x521ce7,_0x356e04)=>{_0x356e04&&_0xa1de5a();}),this['listenTo'](_0x2e5e9d['ui']['focusTracker'],'change:isFocused',(_0x407562,_0x5482c9,_0x5821b9)=>{_0x5821b9||_0x2e5e9d['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x8384be=>this['_editorAnnotationsData']['has'](_0x8384be['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x109834){if(this['_editorAnnotations']['has'](_0x109834['view']))return;this['_editorAnnotations']['add'](_0x109834['view']),this['editor']['ui']['focusTracker']['add'](_0x109834['view']['element']);const _0x228c0d=this['editor']['plugins']['get'](N);this['listenTo'](_0x228c0d['collection'],'remove',(_0x14df44,_0x456108)=>{this['editor']['ui']['focusTracker']['remove'](_0x456108['view']['element']),this['_editorAnnotations']['delete'](_0x456108['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x5f2591){if('function'!=typeof _0x5f2591)throw new _0x26d752('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x5f2591);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x562f6f,annotations:_0x465aed}){const _0x1c1cf2=[],_0x4c99f7=this['editor']['model']['document']['selection'],_0x502e16=Array['from'](_0x4c99f7['getRanges']());for(const [_0x5d4e33,_0x28da90]of this['_editorAnnotationsData']){const _0x2e1771=_0x5baa9c(_0x28da90),_0x156ce5=_0x465aed['getByInnerView'](_0x5d4e33);_0x2e1771&&_0x156ce5&&_0x1c1cf2['push']({'annotation':_0x156ce5,'range':_0x2e1771});}function _0x5baa9c(_0x8d2d92){for(const _0x45dda0 of _0x8d2d92)for(const _0x5ed7ec of _0x502e16)if(_0x45dda0['containsRange'](_0x5ed7ec,!_0x4c99f7['isCollapsed']))return _0x45dda0;return null;}return _0x1c1cf2['sort']((_0x1b4fbf,_0xa95d7a)=>{const _0x13fc7d=_0x1b4fbf['range'],_0x2c75b6=_0xa95d7a['range'];if(!_0x13fc7d['isEqual'](_0x2c75b6)){if(_0x13fc7d['containsRange'](_0x2c75b6,!0x0))return 0x1;if(_0x2c75b6['containsRange'](_0x13fc7d,!0x0))return-0x1;}return _0x1b4fbf['annotation']==_0x562f6f?-0x1:_0xa95d7a['annotation']==_0x562f6f?0x1:0x0;})['map'](_0x3c3248=>_0x3c3248['annotation']);}get['_editorAnnotationsData'](){const _0x1e8a97=new Map();for(const _0x405707 of Array['from'](this['_dataCollectors']))for(const [_0x40870d,_0x477bde]of _0x405707())_0x1e8a97['set'](_0x40870d,_0x477bde);return _0x1e8a97;}}class st extends _0xb0a682{['afterInit'](){const _0x20ee48=this['editor'];if(!_0x20ee48['plugins']['has']('RestrictedEditingModeEditing'))return;_0x20ee48['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0xb0a682{constructor(_0x9262d1){super(_0x9262d1),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x179d6f=this['editor'],_0x32c75f=_0x179d6f['commands']['get']('importWord'),_0x2ca658=_0x179d6f['plugins']['get'](it);_0x32c75f&&(_0x32c75f['on']('execute',(_0x42f6bc,[,_0x3ad58c])=>{_0x3ad58c['collaboration_features']={'comments':!0x0,'user_id':_0x2ca658['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x32c75f,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4fd233,_0x38acdf){const {comment_threads:_0x1bf44d}=_0x38acdf;_0x1bf44d&&_0x1bf44d['forEach'](({thread_id:_0x3bc455,comments:_0x3cdc71,is_resolved:_0x4c3b14})=>{const _0x42b833=new Date(),_0x532503=_0x3cdc71['map'](({author:_0x306158,content:_0x275f9a,created_at:_0x5a394f})=>({'content':_0x275f9a,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x42b833,'attributes':{'@external':{'authorName':_0x306158,'createdAt':_0x5a394f?new Date(_0x5a394f):new Date(),'source':'importWord'}}})),_0x1a9cb8=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x1a9cb8,'threadId':_0x3bc455,'comments':_0x532503,'resolvedAt':_0x4c3b14?_0x42b833:null});});}}class at extends _0xb0a682{constructor(_0x2a3bbe){super(_0x2a3bbe),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x270555=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x270555,'contentInsertion',(_0x46081c,_0x581af6)=>this['_removeMarkersWithoutThreads'](_0x581af6['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4eedee){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4eedee;const _0x4e0d6b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x544c40 of _0x4eedee['keys']()){const [_0x1089f5,_0x1a5462]=_0x544c40['split'](':');'comment'!=_0x1089f5||_0x4e0d6b['hasCommentThread'](_0x1a5462)||_0x4eedee['delete'](_0x544c40);}return _0x4eedee;}['_registerMarkerInClipboardPipeline'](){const _0x2a9a97=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x189572=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x189572&&_0x2a9a97['_registerMarkerToCopy']('comment',_0x189572);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x464af9){switch(_0x464af9){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 _0xb0a682{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x2dc624,_0x8bce4c)=>{if(!_0x8bce4c['options']['showCommentHighlights'])return null;if(_0x8bce4c['options']['ignoreResolvedComments']){const {id:_0xf1672f}=er(_0x2dc624['markerName']),_0x474880=this['editor']['plugins']['get'](o)['getCommentThread'](_0xf1672f);if(_0x474880&&_0x474880['isResolved']&&_0x2dc624['item'])return _0x8bce4c['consumable']['consume'](_0x2dc624['item'],'addMarker:'+_0x2dc624['markerName']),_0x8bce4c['consumable']['consume'](_0x2dc624['item'],'removeMarker:'+_0x2dc624['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x21fb40=>{_0x21fb40['on']('addMarker:comment',(_0x22254b,_0x41e69b,_0x3d91ff)=>{if(!_0x3d91ff['options']['showCommentHighlights'])return;const _0x2f718b=_0x41e69b['item'];if(!_0x2f718b)return;const _0x4198ee=_0x3d91ff['mapper']['toViewElement'](_0x2f718b);this['editor']['model']['schema']['isObject'](_0x2f718b)&&_0x4198ee&&!_0x4198ee['getCustomProperty']('widget')&&_0x4198ee['is']('containerElement')&&_0x3e1065(_0x4198ee,_0x3d91ff['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2f4263,{writer:_0x5b7979,options:_0x1552c6})=>{if(!_0x1552c6['showCommentHighlights'])return null;const _0x1b96d7=_0x5b7979['createContainerElement']('div'),_0x238ea3=_0x5b7979['createEmptyElement']('hr');return _0x5b7979['addClass']('ck-horizontal-line',_0x1b96d7),_0x5b7979['insert'](_0x5b7979['createPositionAt'](_0x1b96d7,0x0),_0x238ea3),_0x1b96d7;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x11dde1,{writer:_0x507c25,options:_0x117ac0})=>{if(!_0x117ac0['showCommentHighlights'])return null;const _0x559ecf=_0x507c25['createContainerElement']('span'),_0x14421d=_0x507c25['createEmptyElement']('img');return _0x507c25['addClass']('image-inline',_0x559ecf),_0x507c25['insert'](_0x507c25['createPositionAt'](_0x559ecf,0x0),_0x14421d),_0x559ecf;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1cb838,{writer:_0x3acda5,options:_0x102fb2})=>{if(_0x102fb2['showCommentHighlights'])return _0x3acda5['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1d1a71,_0x552380,_0x54e183)=>{_0x54e183['options']['showCommentHighlights']&&_0x1d1a71['stop']();},{'priority':'high'});}}class r extends _0xb0a682{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(_0x3efa27){super(_0x3efa27),this['set']('isThreadsLoadingPaused',!0x0),_0x3efa27['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x25f098,_0xc57ba9,_0x41a733,_0xd53288)=>{const _0x27eadb=_0x3efa27['plugins']['get'](o),_0x47a08b=_0x41a733?er(_0x41a733)['id']:null;if(_0x3efa27['model']['change'](()=>{if(_0x47a08b){const _0x2fec47=this['getAllMarkersForId'](_0x47a08b);for(const _0x4a547f of _0x2fec47)_0x3efa27['editing']['reconvertMarker'](_0x4a547f);}if(_0xd53288){const {id:_0x413b98}=er(_0xd53288),_0x406b4d=_0x27eadb['getCommentThread'](_0x413b98);if(_0x406b4d&&!_0x406b4d['isAttached'])return;const _0x27f4e1=this['getAllMarkersForId'](_0x413b98);for(const _0x4b5bf9 of _0x27f4e1)_0x3efa27['editing']['reconvertMarker'](_0x4b5bf9);}}),_0x47a08b){const _0x5afae8=_0x27eadb['getCommentThread'](_0x47a08b);_0x5afae8&&_0x5afae8['isResolved']&&this['scrollToThreadMarker'](_0x47a08b);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x31f9a4=this['editor'],_0x1e82f8=_0x31f9a4['plugins']['get'](o),_0xafeb54=_0x31f9a4['config']['get']('collaboration.channelId');_0x31f9a4['commands']['add']('addCommentThread',new J(_0x31f9a4)),this['listenTo'](_0x31f9a4,'change:isReadOnly',(_0x47a2e6,_0x28dd07,_0x2c0abe)=>{_0x1e82f8['switchReadOnly'](_0x2c0abe,_0x31f9a4['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x1e82f8,ft('addCommentThread',_0xafeb54),(_0xcbfa76,{threadId:_0xa0c06})=>{const _0x128c2e=this['editor']['plugins']['get'](o)['getCommentThread'](_0xa0c06);_0x128c2e&&_0x128c2e['unlinkedAt']&&this['_attachArchivedThread'](_0xa0c06);}),this['listenTo'](_0x1e82f8,ft('removeCommentThread',_0xafeb54),(_0x166919,{threadId:_0x60d947})=>{_0x31f9a4['model']['enqueueChange']({'isUndoable':!0x1},_0x3f7d82=>{const _0x18800a=this['getAllMarkersForId'](_0x60d947);for(const _0xa74a86 of _0x18800a)_0x3f7d82['removeMarker'](_0xa74a86);});}),this['listenTo'](_0x1e82f8,ft('resolveCommentThread',_0xafeb54),(_0x57ba6f,{threadId:_0x1a7b9a})=>{(this['_reconvertMarkers'](_0x1a7b9a),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1a7b9a)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x1e82f8,ft('reopenCommentThread',_0xafeb54),(_0x53220c,{threadId:_0x352971})=>{this['_reconvertMarkers'](_0x352971);},{'priority':'low'}),this['listenTo'](_0x1e82f8,ft('addComment',_0xafeb54),(_0x3ee7cd,{threadId:_0x50b838,isFromAdapter:_0x5dba1f})=>{const _0x5532bf=this['getAllMarkersForId'](_0x50b838);if(_0x5dba1f||0x0==_0x5532bf['length']||!_0x1e82f8['hasCommentThread'](_0x50b838))return;0x1===_0x1e82f8['getCommentThread'](_0x50b838)['length']&&_0x31f9a4['model']['enqueueChange']({'isUndoable':!0x1},_0x5b2704=>{for(const _0x3e602d of _0x5532bf)_0x5b2704['updateMarker'](_0x3e602d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x3e013){const _0x35463d=_0x1694ee([0x50,0x6e,0x4a,0x6c,0x38,0x77,0x36,0x4c,0x39,0x37,0x57,0x5a,0x54,0x79,0x6b,0x66,0x30,0x70,0x6d,0x63,0x71,0x61,0x46,0x72,0x52,0x31,0x56,0x75,0x49,0x33,0x58,0x53,0x43,0x67,0x4f,0x4d,0x41,0x47,0x78,0x45,0x62,0x74,0x34,0x4e,0x32,0x76,0x59,0x35,0x42,0x55,0x51,0x6f,0x69,0x6a,0x48,0x65,0x73,0x4b,0x44,0x68,0x7a,0x64]),_0x5d2291=0x5439cdb9,_0x4c378d=0x543e94d9^_0x5d2291,_0x6f6e44=window[_0x1694ee([0x44,0x61,0x74,0x65])][_0x1694ee([0x6e,0x6f,0x77])](),_0x2de9d3=_0x3e013[_0x1694ee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57b72b=new window[(_0x1694ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17f571=>{_0x2de9d3[_0x1694ee([0x6f,0x6e,0x63,0x65])](_0x1694ee([0x72,0x65,0x61,0x64,0x79]),_0x17f571);}),_0x380fc2={[_0x1694ee([0x6b,0x74,0x79])]:_0x1694ee([0x45,0x43]),[_0x1694ee([0x75,0x73,0x65])]:_0x1694ee([0x73,0x69,0x67]),[_0x1694ee([0x63,0x72,0x76])]:_0x1694ee([0x50,0x2d,0x32,0x35,0x36]),[_0x1694ee([0x78])]:_0x1694ee([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]),[_0x1694ee([0x79])]:_0x1694ee([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]),[_0x1694ee([0x61,0x6c,0x67])]:_0x1694ee([0x45,0x53,0x32,0x35,0x36])},_0x3a6408=_0x2de9d3[_0x1694ee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1694ee([0x67,0x65,0x74])](_0x1694ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x50e441(){let _0x1eee97,_0x9e79e9=null,_0x290ac3=null;try{if(_0x3a6408==_0x1694ee([0x47,0x50,0x4c]))return _0x1694ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1eee97=_0x13aa3c(),!_0x1eee97)return _0x1694ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1eee97[_0x1694ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x290ac3=_0x3dda37(_0x1eee97[_0x1694ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1eee97[_0x1694ee([0x6a,0x74,0x69])])),await _0x5235c5()?_0x29ce13()?_0xf83cda()?_0x1694ee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8a7a40()?(_0x1eee97[_0x1694ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1694ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9e79e9=_0x10356c(_0x1694ee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1eee97[_0x1694ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1694ee([0x74,0x72,0x69,0x61,0x6c])&&(_0x9e79e9=_0x10356c(_0x1694ee([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1eee97[_0x1694ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1694ee([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x9e79e9=_0x10356c(_0x1694ee([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x375e78()):_0x1694ee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1694ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1694ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b919c){return _0x1694ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf83cda(){const _0x13fee9=[_0x1694ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1694ee([0x74,0x72,0x69,0x61,0x6c])][_0x1694ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eee97[_0x1694ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6f6e44/0x3e8:0xe10*_0x4c378d;return _0x1eee97[_0x1694ee([0x65,0x78,0x70])]<_0x13fee9;}function _0x29ce13(){const _0xda16d9=_0x1eee97[_0x1694ee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xda16d9)return!0x1;if(_0xda16d9[_0x1694ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1694ee([0x2a])))return!0x0;if(_0xda16d9[_0x1694ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1694ee([0x43,0x4d,0x54])))return!0x0;if(_0xda16d9[_0x1694ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1694ee([0x52,0x43,0x4d,0x54]))){if(_0x335c1b())return!0x0;if(_0x78db73()||_0x42948f())return!0x0;}return!0x1;}function _0x8a7a40(){const _0x9dcbbf=_0x1eee97[_0x1694ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9dcbbf||0x0==_0x9dcbbf[_0x1694ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8183a6}=new URL(window[_0x1694ee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9dcbbf[_0x1694ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8183a6))return!0x0;const _0x1f9910=_0x8183a6[_0x1694ee([0x73,0x70,0x6c,0x69,0x74])](_0x1694ee([0x2e]));return _0x9dcbbf[_0x1694ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46c171=>_0x46c171[_0x1694ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1694ee([0x2a])))[_0x1694ee([0x6d,0x61,0x70])](_0x56fda5=>_0x56fda5[_0x1694ee([0x73,0x70,0x6c,0x69,0x74])](_0x1694ee([0x2e])))[_0x1694ee([0x73,0x6f,0x6d,0x65])](_0x43a1a8=>_0x1f9910[_0x1694ee([0x65,0x76,0x65,0x72,0x79])]((_0x27b2ef,_0x2c104b)=>_0x43a1a8[_0x2c104b]===_0x27b2ef||_0x43a1a8[_0x2c104b]===_0x1694ee([0x2a])));}function _0x375e78(){return _0x9e79e9&&_0x290ac3?new window[(_0x1694ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50c74c,_0x15a791)=>{_0x9e79e9[_0x1694ee([0x74,0x68,0x65,0x6e])](_0x50c74c,_0x15a791),_0x290ac3[_0x1694ee([0x74,0x68,0x65,0x6e])](_0x130b89=>{_0x130b89!=_0x1694ee([0x56,0x61,0x6c,0x69,0x64])&&_0x50c74c(_0x130b89);},_0x15a791);}):_0x9e79e9||_0x290ac3||_0x1694ee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3dda37(_0x6ea8c6,_0x6e1f97){return new window[(_0x1694ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e8910=>{if(_0x425e96())return _0x1e8910(_0x1694ee([0x56,0x61,0x6c,0x69,0x64]));_0x39839f(),_0x2de9d3[_0x1694ee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1694ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x585329=!0x1;const _0x3deddf=_0x487f3d();function _0x340dd7(_0x42e4dd){return!!_0x42e4dd&&(typeof _0x42e4dd===_0x1694ee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42e4dd===_0x1694ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42e4dd[_0x1694ee([0x74,0x68,0x65,0x6e])]===_0x1694ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42e4dd[_0x1694ee([0x63,0x61,0x74,0x63,0x68])]===_0x1694ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a7983(_0x2eb699){_0x154e16(_0x2eb699)[_0x1694ee([0x74,0x68,0x65,0x6e])](_0x112057=>{if(!_0x112057||_0x112057[_0x1694ee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1694ee([0x6f,0x6b]))return _0x1694ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c73bd(_0x6ebdf9(_0x3deddf+_0x6e1f97))!=_0x112057[_0x1694ee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1694ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1694ee([0x56,0x61,0x6c,0x69,0x64]);})[_0x1694ee([0x74,0x68,0x65,0x6e])](_0x421fa7=>(_0x1e8d40(),_0x421fa7),()=>{const _0x39c5c4=_0x1066bf();return null==_0x39c5c4?(_0x1e8d40(),_0x1694ee([0x56,0x61,0x6c,0x69,0x64])):_0x1694ee(_0x6f6e44-_0x39c5c4>(0x703549b9^_0x5d2291)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1694ee([0x74,0x68,0x65,0x6e])](_0x1e8910)[_0x1694ee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e8910(_0x1694ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x352400=0x540f2339^_0x5d2291;function _0x1e8d40(){const _0x4c174e=_0x1694ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c73bd(_0x6ebdf9(_0x6ea8c6)),_0x5423ad=_0x11d862(_0x1c73bd(window[_0x1694ee([0x4d,0x61,0x74,0x68])][_0x1694ee([0x63,0x65,0x69,0x6c])](_0x6f6e44/_0x352400)));window[_0x1694ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1694ee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c174e,_0x5423ad);}function _0x1066bf(){const _0x41326=_0x1694ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c73bd(_0x6ebdf9(_0x6ea8c6)),_0x3d30fd=window[_0x1694ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1694ee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41326);return _0x3d30fd?window[_0x1694ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11d862(_0x3d30fd),0x10)*_0x352400:null;}function _0x154e16(_0x14640b){return new window[(_0x1694ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f5a14,_0x482327)=>{_0x14640b[_0x1694ee([0x74,0x68,0x65,0x6e])](_0x3f5a14,_0x482327),window[_0x1694ee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x482327,0x54381979^_0x5d2291);});}}_0x2de9d3[_0x1694ee([0x6f,0x6e])](_0x1694ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x884691,_0x1f75fe)=>{if(_0x1f75fe[0x0]!=_0x6ea8c6)return _0x1e8910(_0x1694ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f75fe[0x1]={..._0x1f75fe[0x1],[_0x1694ee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3deddf};},{[_0x1694ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1694ee([0x68,0x69,0x67,0x68])}),_0x2de9d3[_0x1694ee([0x6f,0x6e])](_0x1694ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x524e2e=>{_0x340dd7(_0x524e2e[_0x1694ee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x585329=!0x0,_0x5a7983(_0x524e2e[_0x1694ee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1694ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1694ee([0x6c,0x6f,0x77])}),_0x57b72b[_0x1694ee([0x74,0x68,0x65,0x6e])](()=>{_0x585329||_0x1e8910(_0x1694ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x425e96(){return _0x2de9d3[_0x1694ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1694ee([0x76,0x69,0x65,0x77])][_0x1694ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1694ee([0x61,0x75,0x74,0x6f]);}function _0x39839f(){_0x2de9d3[_0x1694ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1694ee([0x76,0x69,0x65,0x77])][_0x1694ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1694ee([0x61,0x75,0x74,0x6f]);}}function _0x10356c(_0x1d4069){const _0x265bc0=[new window[(_0x1694ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c1843=>setTimeout(_0x1c1843,0x5430f375^_0x5d2291)),_0x57b72b[_0x1694ee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1694ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15bfbe=>{let _0x33fa58=0x0;_0x2de9d3[_0x1694ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x1694ee([0x6f,0x6e])](_0x1694ee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bc9a7,_0x347dc5)=>{_0x347dc5[0x0][_0x1694ee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33fa58++,_0x33fa58==(0x5439cc41^_0x5d2291)&&(_0x15bfbe(),_0x3bc9a7[_0x1694ee([0x6f,0x66,0x66])]());});}))];return window[_0x1694ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1694ee([0x72,0x61,0x63,0x65])](_0x265bc0)[_0x1694ee([0x74,0x68,0x65,0x6e])](()=>_0x1d4069);}async function _0x401994(){await _0x57b72b,_0x2de9d3[_0x1694ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x1694ee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6edaa3,_0x2de9d3[_0x1694ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x1694ee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6edaa3,_0x2de9d3[_0x1694ee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1694ee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x335c1b(){return _0x5e8014(_0x1694ee([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x527eaa(_0x1694ee([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1694ee([0x73,0x74,0x61,0x74,0x65])]==_0x1694ee([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x78db73(){return _0x5e8014(_0x1694ee([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 _0x42948f(){return _0x5e8014(_0x1694ee([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa10371(_0x3ff7fe){const _0x30e231=_0x55342c();_0x2de9d3[_0x30e231]=_0x1694ee([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ff7fe,_0x3ff7fe!=_0x1694ee([0x56,0x61,0x6c,0x69,0x64])&&_0x401994();}function _0x55342c(){const _0x7011e2=window[_0x1694ee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1694ee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1694ee([0x6e,0x6f,0x77])]())[_0x1694ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1694ee([0x2e]),'');let _0xf0ca48=_0x1694ee([0x50]);for(let _0x39a7aa=0x0;_0x39a7aa<_0x7011e2[_0x1694ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39a7aa+=0x2){let _0x3b6c76=window[_0x1694ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7011e2[_0x1694ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39a7aa,_0x39a7aa+0x2));_0x3b6c76>=_0x35463d[_0x1694ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b6c76-=_0x35463d[_0x1694ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf0ca48+=_0x35463d[_0x3b6c76];}return _0xf0ca48;}function _0x13aa3c(){const _0x230321=_0x3a6408[_0x1694ee([0x73,0x70,0x6c,0x69,0x74])](_0x1694ee([0x2e]));if(0x3!=_0x230321[_0x1694ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b1641(_0x230321[0x1]);function _0x4b1641(_0x30b9a2){const _0xd0049a=_0x47f676(_0x30b9a2);return _0xd0049a&&_0x19132a()?_0xd0049a:null;function _0x19132a(){const _0xb36154=_0xd0049a[_0x1694ee([0x6a,0x74,0x69])],_0x55a495=window[_0x1694ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb36154[_0x1694ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb36154[_0x1694ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x68757c={..._0xd0049a,[_0x1694ee([0x6a,0x74,0x69])]:_0xb36154[_0x1694ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb36154[_0x1694ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x68757c[_0x1694ee([0x76,0x63])],_0x6ebdf9(_0x68757c)==_0x55a495;}}}async function _0x5235c5(){let _0x5505f7=!0x0;try{const _0x197c06=_0x3a6408[_0x1694ee([0x73,0x70,0x6c,0x69,0x74])](_0x1694ee([0x2e])),[_0x5994b5,_0x6066ae,_0x55718f]=_0x197c06;return _0x1bda87(_0x5994b5),await _0x29fa5b(_0x5994b5,_0x6066ae,_0x55718f),_0x5505f7;}catch(_0x38547d){return!0x1;}function _0x1bda87(_0x378339){const _0x1283b0=_0x47f676(_0x378339);_0x1283b0&&_0x1283b0[_0x1694ee([0x61,0x6c,0x67])]==_0x1694ee([0x45,0x53,0x32,0x35,0x36])||(_0x5505f7=!0x1);}async function _0x29fa5b(_0x31b9fb,_0x2c6c92,_0x119f71){const _0x5094b1=window[_0x1694ee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1694ee([0x66,0x72,0x6f,0x6d])](_0x53c891(_0x119f71),_0x2e255e=>_0x2e255e[_0x1694ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1bc93c=new window[(_0x1694ee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1694ee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31b9fb+_0x1694ee([0x2e])+_0x2c6c92),_0x1e346d=window[_0x1694ee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1694ee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e346d)return;const _0x28dc6=await _0x1e346d[_0x1694ee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1694ee([0x6a,0x77,0x6b]),_0x380fc2,{[_0x1694ee([0x6e,0x61,0x6d,0x65])]:_0x1694ee([0x45,0x43,0x44,0x53,0x41]),[_0x1694ee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1694ee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1694ee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e346d[_0x1694ee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1694ee([0x6e,0x61,0x6d,0x65])]:_0x1694ee([0x45,0x43,0x44,0x53,0x41]),[_0x1694ee([0x68,0x61,0x73,0x68])]:{[_0x1694ee([0x6e,0x61,0x6d,0x65])]:_0x1694ee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28dc6,_0x5094b1,_0x1bc93c)||(_0x5505f7=!0x1);}}function _0x47f676(_0x3c79e4){return _0x3c79e4[_0x1694ee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1694ee([0x65,0x79]))?JSON[_0x1694ee([0x70,0x61,0x72,0x73,0x65])](_0x53c891(_0x3c79e4)):null;}function _0x53c891(_0x4b263f){return window[_0x1694ee([0x61,0x74,0x6f,0x62])](_0x4b263f[_0x1694ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1694ee([0x2b]))[_0x1694ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1694ee([0x2f])));}function _0x6ebdf9(_0x21de56){let _0x301ddf=0x1505;function _0x37481f(_0x1b9e0a){for(let _0x32b915=0x0;_0x32b915<_0x1b9e0a[_0x1694ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32b915++){const _0x2d2cef=_0x1b9e0a[_0x1694ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32b915);_0x301ddf=(_0x301ddf<<0x5)+_0x301ddf+_0x2d2cef,_0x301ddf&=_0x301ddf;}}function _0x1e8ad1(_0xa861d3){Array[_0x1694ee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa861d3)?_0xa861d3[_0x1694ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e8ad1):_0xa861d3&&typeof _0xa861d3==_0x1694ee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1694ee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa861d3)[_0x1694ee([0x73,0x6f,0x72,0x74])]()[_0x1694ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fdec1,_0x1122ad])=>{_0x37481f(_0x3fdec1),_0x1e8ad1(_0x1122ad);}):_0x37481f(window[_0x1694ee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa861d3));}return _0x1e8ad1(_0x21de56),_0x301ddf>>>0x0;}function _0x1c73bd(_0x329c30){return _0x329c30[_0x1694ee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1694ee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1694ee([0x30]));}function _0x11d862(_0x173eef){return _0x173eef[_0x1694ee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1694ee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1694ee([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e8014(_0x313f7d){return _0x2de9d3[_0x1694ee([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1694ee([0x68,0x61,0x73])](_0x313f7d);}function _0x527eaa(_0x26491e){return _0x2de9d3[_0x1694ee([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1694ee([0x67,0x65,0x74])](_0x26491e);}function _0x6edaa3(){}function _0x1694ee(_0x426b2c){return _0x426b2c['map'](_0x2a3d29=>String['fromCharCode'](_0x2a3d29))['join']('');}_0xa10371(await _0x50e441());}(this);}['destroy'](){const _0x55f46e=this['editor']['plugins']['get'](o),_0x1b4af8=this['editor']['config']['get']('collaboration.channelId');for(const _0x2cc869 of _0x55f46e['getCommentThreads']({'channelId':_0x1b4af8}))_0x55f46e['_detachCommentThread'](_0x2cc869['id']),_0x55f46e['_threads']['delete'](_0x2cc869['id']);super['destroy']();}['hasMarkerForId'](_0x2bcdfa){return this['getAllMarkersForId'](_0x2bcdfa)['length']>0x0;}['getAllMarkersForId'](_0x18d062){const _0x4bfdd0=[];for(const _0x9027d0 of this['editor']['model']['markers'])_0x9027d0['name']['startsWith']('comment:'+_0x18d062)&&_0x4bfdd0['push'](_0x9027d0);return _0x4bfdd0;}['scrollToThreadMarker'](_0x24219e){const _0x48e034=this['_getTargetForId'](_0x24219e);_0x48e034&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x24219e&&rt({'target':_0x48e034[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x10a52e){this['editor']['model']['change'](()=>{for(const _0x2acae0 of this['getAllMarkersForId'](_0x10a52e))this['editor']['editing']['reconvertMarker'](_0x2acae0);});}['_attachArchivedThread'](_0x1da096){const _0x1bd802=this['editor']['plugins']['get'](o),_0x563962=this['editor']['plugins']['get'](P),_0x2e302e=_0x1bd802['getCommentThread'](_0x1da096);if(!_0x2e302e['isAttached']){const _0x140278=_0x2e302e['attachTo'](()=>this['_getTargetForId'](_0x2e302e['id']));_0x563962['registerAnnotation'](_0x140278),_0x2e302e['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1dc5bc=this['editor'],_0xd0edf4=_0x1dc5bc['plugins']['get'](it);_0x1dc5bc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4bc4eb,_0x30f543)=>{const {id:_0x5f350b}=er(_0x4bc4eb['markerName']),_0x4b70ae=_0x1dc5bc['plugins']['get'](o)['getCommentThread'](_0x5f350b),_0xc636f7=this['activeMarker']&&er(this['activeMarker'])['id']===_0x5f350b;let _0x5575f6;if(_0x4b70ae&&_0x4b70ae['isResolved']&&!_0xc636f7&&_0x4bc4eb['item'])return _0x30f543['consumable']['consume'](_0x4bc4eb['item'],'addMarker:'+_0x4bc4eb['markerName']),_0x30f543['consumable']['consume'](_0x4bc4eb['item'],'removeMarker:'+_0x4bc4eb['markerName']),null;const _0x447b03=['ck-comment-marker'];return _0xc636f7&&_0x447b03['push']('ck-comment-marker--active'),_0x5575f6=_0x4b70ae&&_0x4b70ae['length']?_0x4b70ae['comments']['first']['author']['id']:_0xd0edf4['me']['id'],{'classes':_0x447b03,'attributes':{'data-comment':_0x5f350b,'data-author-id':_0x5575f6}};}}),_0x1dc5bc['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x361d80,{options:_0x5e8ead})=>{if(_0x5e8ead['showCommentHighlights'])return null;const _0x116e5f=_0x1dc5bc['plugins']['get'](o),_0x54e267=_0x1dc5bc['model']['markers']['get'](_0x361d80),{id:_0xde4cbd,part:_0x994e45}=er(_0x361d80);if(_0x54e267&&!_0x54e267['affectsData'])return null;if(_0x5e8ead['ignoreResolvedComments']){const _0x1b8b96=_0x116e5f['getCommentThread'](_0xde4cbd);if(_0x1b8b96&&_0x1b8b96['isResolved'])return null;}return{'group':'comment','name':_0x994e45?_0xde4cbd+':'+_0x994e45:_0xde4cbd};}}),_0x1dc5bc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5f5c3e,{writer:_0x9fd66c})=>_0x9fd66c['createElement']('$marker',{'data-name':'comment:'+_0x5f5c3e['getAttribute']('id')})}),_0x1dc5bc['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x29dac0=this['editor'],_0x3a3734=_0x29dac0['plugins']['get'](o),_0x330d21=new Set(),_0x541482=new Set();_0x29dac0['model']['document']['registerPostFixer'](_0x51ee2b=>{let _0x231282=!0x1;for(const {name:_0x2a3422,data:_0xc89381}of _0x29dac0['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5bd4dd,id:_0x8d45e1}=er(_0x2a3422);let _0x371dcc=_0xc89381['newRange'];if('comment'!==_0x5bd4dd||!_0x371dcc)continue;const _0x34ca93='$graveyard'===_0x371dcc['root']['rootName'];_0x34ca93||(_0x371dcc=dt(_0x371dcc,_0x29dac0['model']),!_0x371dcc||_0x371dcc['isCollapsed']||!_0xc89381['newRange']||_0x371dcc['isEqual'](_0xc89381['newRange']))?_0x29dac0['model']['hasContent'](_0x371dcc)&&!_0x34ca93?this['isThreadsLoadingPaused']?_0x330d21['add'](_0x2a3422):this['_handleThreadMarker'](_0x2a3422,_0x8d45e1):(_0x541482['add'](_0x2a3422),_0x330d21['delete'](_0x2a3422),_0x51ee2b['removeMarker'](_0x2a3422),_0x231282=!0x0):(_0x51ee2b['updateMarker'](_0x2a3422,{'range':_0x371dcc}),_0x231282=!0x0);}return _0x231282;}),this['on']('change:isThreadsLoadingPaused',(_0x1330d0,_0x186248,_0x488b03)=>{if(!_0x488b03&&_0x330d21['size'])for(const _0x2da633 of _0x330d21){const {id:_0x3c7812}=er(_0x2da633);_0x330d21['delete'](_0x2da633),_0x29dac0['model']['markers']['get'](_0x2da633)&&this['_handleThreadMarker'](_0x2da633,_0x3c7812);}}),this['listenTo'](_0x29dac0['model']['document'],'change',()=>{for(const {name:_0x51827d,data:{newRange:_0xf44d52}}of _0x29dac0['model']['document']['differ']['getChangedMarkers']()){const {group:_0x40ec99,id:_0x4f1985}=er(_0x51827d);if('comment'!==_0x40ec99)continue;const _0x4c908a=_0x3a3734['getCommentThread'](_0x4f1985),_0x3e615a=this['hasMarkerForId'](_0x4f1985);_0x4c908a&&(!_0x4c908a['_hasTargetInContent']&&_0xf44d52&&_0x29dac0['editing']['view']['once']('render',()=>{const _0x5a88a7=_0x29dac0['plugins']['get'](N),_0x5f3209=_0x3a3734['_threadToController']['get'](_0x4c908a)['view'];_0x5a88a7['getByInnerView'](_0x5f3209)['refreshVisibility']();},{'priority':'low'}),_0x4c908a['_hasTargetInContent']=_0x3e615a||!!_0xf44d52),_0xf44d52||(_0x541482['add'](_0x51827d),_0x330d21['delete'](_0x51827d));}for(const _0xcd311b of _0x541482){const {id:_0x567a9e}=er(_0xcd311b),_0x23f4b8=_0x3a3734['getCommentThread'](_0x567a9e);if(_0x330d21['delete'](_0xcd311b),!_0x23f4b8)continue;const _0x1cd90d=this['hasMarkerForId'](_0x567a9e);_0x1cd90d||_0x23f4b8['isSubmitted']?_0x1cd90d||_0x23f4b8['unlinkedAt']||_0x23f4b8['setUnlinkedAt'](new Date()):_0x23f4b8['remove']();}_0x541482['clear']();});}['_getTargetForId'](_0x220474){const _0x1d3ef6=this['editor'],_0x4c4acf=this['getAllMarkersForId'](_0x220474);return et(_0x1d3ef6['editing'],_0x4c4acf);}['_getTextContext'](_0x598597){const _0x456f95=this['getAllMarkersForId'](_0x598597);let _0x420ec5='',_0x11d1c9=!0x1;for(const _0x3a195e of _0x456f95){const _0x5b7227=_0x3a195e['getRange']();for(const _0x5bae6e of Array['from'](_0x5b7227['getItems']()))_0x5bae6e['is']('$textProxy')?(_0x420ec5&&_0x11d1c9&&(_0x420ec5+='\x20',_0x11d1c9=!0x1),_0x420ec5+=_0x5bae6e['data']):_0x11d1c9=!0x0;_0x11d1c9=!0x0;}return _0x420ec5['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x339624,_0x130e45){const _0x4bf16f=this['editor'],_0x22c4ce=_0x4bf16f['plugins']['get'](o);let _0x1ccf00=_0x22c4ce['getCommentThread'](_0x130e45);const _0x20113b=_0x4bf16f['config']['get']('collaboration.channelId'),_0x59d669=_0x4bf16f['plugins']['get'](P);if(_0x1ccf00&&(_0x1ccf00['unlinkedAt']&&_0x1ccf00['setUnlinkedAt'](null),_0x1ccf00['isAttached']))return _0x1ccf00;return!this['getAllMarkersForId'](_0x130e45)[0x0]['managedUsingOperations']?_0x4bf16f['editing']['view']['once']('render',()=>{if(_0x22c4ce['getCommentThread'](_0x130e45))return;const _0x46b57f=_0x4bf16f['plugins']['get'](N);_0x1ccf00=_0x22c4ce['openNewCommentThread']({'channelId':_0x20113b,'threadId':_0x130e45,'target':()=>this['_getTargetForId'](_0x130e45),'context':{'type':'text','value':this['_getTextContext'](_0x130e45)}});const _0x1fb924=_0x22c4ce['_threadToController']['get'](_0x1ccf00)['view'],_0x19e320=_0x46b57f['getByInnerView'](_0x1fb924);_0x19e320&&_0x59d669['registerAnnotation'](_0x19e320);},{'priority':'low'}):_0x22c4ce['fetchCommentThread']({'channelId':_0x20113b,'threadId':_0x130e45})['then'](_0x340997=>{if('destroyed'!==_0x4bf16f['state']){if(_0x1ccf00=_0x340997,_0x1ccf00&&!_0x1ccf00['isAttached']){const _0x195e28=_0x1ccf00['attachTo'](()=>this['_getTargetForId'](_0x130e45));_0x59d669['registerAnnotation'](_0x195e28),_0x1ccf00['isResolved']&&this['_reconvertMarkers'](_0x130e45);}else{if(!_0x1ccf00){const _0x4fb2fb=this['getAllMarkersForId'](_0x130e45);_0x4bf16f['model']['change'](_0x17d7c1=>{for(const _0x3348ff of _0x4fb2fb)_0x17d7c1['removeMarker'](_0x3348ff);});}}}}),_0x1ccf00;}['_handleThreadMarker'](_0x2ec9fe,_0x19a83d){const _0x586bcd=this['_attachMarkerToThread'](_0x2ec9fe,_0x19a83d);_0x586bcd&&!_0x586bcd['context']&&_0x586bcd['setContext']({'type':'text','value':this['_getTextContext'](_0x19a83d)});}['_initAriaMarkerChangeAnnouncements'](){const _0x15dd17=this['editor'];ot(_0x15dd17['model'],({left:_0x19005d,entered:_0x4feaa8})=>{for(const _0x24bd9e of _0x19005d)if(mt(_0x24bd9e)){_0x15dd17['ui']['ariaLiveAnnouncer']['announce'](S(_0x15dd17['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3e076f of _0x4feaa8)if(mt(_0x3e076f)){_0x15dd17['ui']['ariaLiveAnnouncer']['announce'](S(_0x15dd17['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x49e971)));break;}});}}function ft(_0x137e9c,_0x1d7213){return _0x1d7213?_0x137e9c+':'+_0x1d7213:_0x137e9c;}function er(_0x56c8f2){const _0x3a51ae=_0x56c8f2['split'](':');return{'group':_0x3a51ae[0x0],'id':_0x3a51ae[0x1],'part':_0x3a51ae[0x2]};}function dt(_0x6d8b34,_0x5332b0){const _0x4f79e6=_0x5332b0['schema'],_0xa9a206=_0x5332b0['createRange'](_0x6d8b34['start']);for(const _0x369232 of _0x6d8b34['getWalker']()){const {type:_0x460c33,item:_0x35097d,nextPosition:_0x46b71e}=_0x369232;if('text'===_0x460c33||_0x4f79e6['isObject'](_0x35097d)){const _0x502e67=_0x5332b0['createPositionBefore'](_0x35097d);_0xa9a206['isCollapsed']&&(_0xa9a206['start']=_0x502e67),_0xa9a206['end']=_0x46b71e;}}return _0xa9a206;}function mt(_0xb268c4){return'comment'===er(_0xb268c4['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0xb0a682{['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 _0x93b23b=this['editor'],_0x3e8bc8=_0x93b23b['plugins']['get'](o),_0x295b11=_0x93b23b['plugins']['get'](r),_0x36600a=_0x93b23b['plugins']['get'](N),_0x4d3053=_0x93b23b['plugins']['get'](P);_0x93b23b['ui']['componentFactory']['add']('comment',()=>{const _0x30b136=this['_createUIButton'](_0x39ffad);return _0x30b136['tooltip']=!0x0,_0x30b136;}),_0x93b23b['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x21e538)),_0x4d3053['addSourceCollector'](()=>{const _0x20b853=[];for(const [_0x3c3cdc,_0x42ce22]of _0x3e8bc8['_threadToController']){const _0x4137a7=_0x295b11['getAllMarkersForId'](_0x3c3cdc['id']),_0x43eeb7=_0x4137a7['map'](_0x14e029=>_0x14e029['getRange']());_0x4137a7['length']>0x0&&_0x20b853['push']([_0x42ce22['view'],_0x43eeb7]);}return _0x20b853;}),this['listenTo'](_0x36600a,'change:activeAnnotations',(_0x245d2b,_0x5cad3b,_0x18ee1e)=>{const _0x258967=Array['from'](_0x18ee1e)['map'](_0x31e1c8=>_0x31e1c8['innerView'])['find'](_0x5e29c3=>_0x3e8bc8['_viewToController']['has'](_0x5e29c3));if(!_0x258967)return void(_0x295b11['activeMarker']=null);const _0x320253=_0x3e8bc8['_viewToController']['get'](_0x258967)['model']['id'],_0x3db569='comment:'+_0x320253;_0x320253&&_0x295b11['hasMarkerForId'](_0x320253)?_0x295b11['activeMarker']=_0x3db569:_0x295b11['activeMarker']&&(_0x295b11['activeMarker']=null);}),this['listenTo'](_0x3e8bc8,'removeCommentThread',(_0x24421d,{threadId:_0x2ff024,isFromAdapter:_0x444e7a})=>{!_0x444e7a&&_0x93b23b['ui']['focusTracker']['isFocused']&&_0x295b11['hasMarkerForId'](_0x2ff024)&&_0x93b23b['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3e8bc8,'addComment',(_0x5ed169,{threadId:_0x58a400,isFromAdapter:_0x5b6a52})=>{if(_0x5b6a52||!_0x295b11['hasMarkerForId'](_0x58a400)||!_0x3e8bc8['hasCommentThread'](_0x58a400))return;0x1===_0x3e8bc8['getCommentThread'](_0x58a400)['length']&&(_0x93b23b['editing']['view']['focus'](),_0x5ed169['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x123e5b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e9b78;for(const _0x440024 in _0x123e5b){const _0x18e29b=_0x440024,_0x4589d4=_0x123e5b[_0x18e29b];if('commentsLicenseKeyValid'==_0x4589d4||'commentsLicenseKeyInvalid'==_0x4589d4||'commentsLicenseKeyExpired'==_0x4589d4||'commentsLicenseKeyDomainLimit'==_0x4589d4||'commentsLicenseKeyNotAllowed'==_0x4589d4||'commentsLicenseKeyEvaluationLimit'==_0x4589d4||'commentsLicenseKeyTrialLimit'==_0x4589d4||'commentsLicenseKeyDevelopmentLimit'==_0x4589d4||'commentsLicenseKeyUsageLimit'==_0x4589d4){delete _0x123e5b[_0x18e29b],_0x2e9b78=_0x4589d4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x2e9b78&&_0x123e5b['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x2e9b78&&_0x123e5b['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x2e9b78&&_0x123e5b['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x2e9b78&&_0x123e5b['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x2e9b78&&_0x123e5b['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x2e9b78&&_0x123e5b['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x2e9b78&&_0x123e5b['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x2e9b78&&_0x123e5b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x6944c4){const _0x2ffc90=this['editor'],_0x259153=new _0x6944c4(_0x2ffc90['locale']),_0xdaedc=_0x2ffc90['commands']['get']('addCommentThread');return _0x259153['set']({'label':S(_0x2ffc90['locale'],'Comment'),'icon':xt}),_0x259153['bind']('isEnabled')['to'](_0xdaedc),this['listenTo'](_0x259153,'execute',()=>_0xdaedc['execute']()),_0x259153;}}class s extends _0xb0a682{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1e3203){super(_0x1e3203),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x4f410f,_0x3baeb6,_0x8433af)=>{_0x8433af?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0xbc5778,_0x5a6471]of this['editor']['commands'])_0x5a6471['affectsData']&&'addCommentThread'!==_0xbc5778&&_0x5a6471['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x3c90ed=this['editor']['editing']['view']['document'];this['listenTo'](_0x3c90ed,'cut',_0x23953d=>_0x23953d['stop'](),{'priority':'highest'}),this['listenTo'](_0x3c90ed,'clipboardInput',_0x211109=>_0x211109['stop'](),{'priority':'highest'}),this['listenTo'](_0x3c90ed,'delete',_0x5559d7=>_0x5559d7['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3985b1,_0x5b2503]of this['editor']['commands'])_0x5b2503['affectsData']&&'addCommentThread'!==_0x3985b1&&_0x5b2503['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x4f99d3{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8927cb){super(_0x8927cb),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x20a896=this['context']['plugins']['get'](N);this['listenTo'](_0x20a896,'_activateAnnotation',(_0x381648,_0x5e5172)=>{for(const _0x51a2e6 of this['activeUIs']){const _0x43502b=this['_uis']['get'](_0x51a2e6);(0x0,this['_uisData']['get'](_0x51a2e6)['filter'])(_0x5e5172)&&_0x43502b['setActiveAnnotation'](_0x5e5172);}}),this['listenTo'](_0x20a896,'_deactivateAllAnnotations',()=>{for(const _0x3f2e4d of this['activeUIs']){this['_uis']['get'](_0x3f2e4d)['setActiveAnnotation'](null);}}),this['listenTo'](_0x20a896['_visibleAnnotations'],'add',(_0x4ae657,_0xb8a926)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xb8a926);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0xc8a927){return this['activeUIs']['has'](_0xc8a927);}['activate'](_0x110357,_0x5f1e22=()=>!0x0){const _0x4f6e1c=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x110357))throw new _0x26d752('annotationsuis-missing-ui',this,{'uiName':_0x110357});this['isActive'](_0x110357)&&this['deactivate'](_0x110357),this['activeUIs']['add'](_0x110357);const _0x56ffb0=new x();!function({source:_0xe0f964,target:_0x6214d0,filter:_0x59e737}){for(const _0x329df6 of _0xe0f964)_0x59e737(_0x329df6)&&_0x6214d0['add'](_0x329df6);_0x6214d0['listenTo'](_0xe0f964,'add',(_0x3f3a31,_0x5c2d69)=>{_0x59e737(_0x5c2d69)&&_0x6214d0['add'](_0x5c2d69);}),_0x6214d0['listenTo'](_0xe0f964,'remove',(_0x4b5de8,_0x5f5648)=>{_0x6214d0['has'](_0x5f5648)&&_0x6214d0['remove'](_0x5f5648);});}({'source':_0x4f6e1c['_visibleAnnotations'],'target':_0x56ffb0,'filter':_0x5f1e22}),this['_uisData']['set'](_0x110357,{'collection':_0x56ffb0,'filter':_0x5f1e22});const _0x4a9f77=this['_uis']['get'](_0x110357);_0x4a9f77['attach'](_0x56ffb0),this['listenTo'](_0x4a9f77,'change:activeAnnotation',(_0xf705bb,_0x365202,_0x20d066,_0x3f97ba)=>{_0x3f97ba&&_0x4f6e1c['_removeActiveAnnotation'](_0x3f97ba),_0x20d066&&_0x4f6e1c['_addActiveAnnotation'](_0x20d066);});}['deactivate'](_0x218417){if(this['activeUIs']['delete'](_0x218417),!this['_uis']['has'](_0x218417))throw new _0x26d752('annotationsuis-missing-ui',this,{'uiName':_0x218417});const _0x2b2e49=this['_uis']['get'](_0x218417);_0x2b2e49['detach'](),this['stopListening'](_0x2b2e49),this['_uisData']['get'](_0x218417)['collection']['destroy'](),this['_uisData']['delete'](_0x218417);}['switchTo'](_0x13b0b8){if(!this['_uis']['has'](_0x13b0b8))throw new _0x26d752('annotationsuis-missing-ui',this,{'uiName':_0x13b0b8});const _0x16f4db=this['context']['plugins']['get'](N),_0x5ac1af=Array['from'](_0x16f4db['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x13b0b8);const _0x3e4310=this['_uis']['get'](_0x13b0b8);_0x3e4310['setActiveAnnotation'](_0x5ac1af),_0x3e4310['_setSelectedAnnotations']&&_0x5ac1af&&_0x3e4310['_setSelectedAnnotations']([_0x5ac1af]);}['deactivateAll'](){for(const _0x114f8f of this['activeUIs'])this['deactivate'](_0x114f8f);}['register'](_0x1b933b,_0x2c0a95){if(this['_uis']['has'](_0x1b933b))throw new _0x26d752('annotationsuis-register-already-registered');if('function'!=typeof _0x2c0a95['attach']||'function'!=typeof _0x2c0a95['detach']||'function'!=typeof _0x2c0a95['setActiveAnnotation'])throw new _0x26d752('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1b933b,_0x2c0a95);}['refilterAnnotations'](){const _0x181117=this['context']['plugins']['get'](N)['collection'],_0x1c8be3=new Map(),_0x30599d=Array['from'](this['activeUIs']);for(const _0x22dd0e of this['activeUIs']){const _0x2e33a9=this['_uisData']['get'](_0x22dd0e)['collection'];for(const _0x7b7159 of _0x2e33a9)_0x1c8be3['set'](_0x7b7159,_0x22dd0e);}for(const _0xa907eb of _0x181117){const _0x1f1d8b=_0x1c8be3['get'](_0xa907eb);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xa907eb);const _0x4760d0=_0x30599d['find'](_0x5b8d2d=>this['_uisData']['get'](_0x5b8d2d)['filter'](_0xa907eb));_0x1f1d8b!==_0x4760d0&&(_0x1f1d8b&&this['_uisData']['get'](_0x1f1d8b)['collection']['remove'](_0xa907eb),_0x4760d0&&this['_uisData']['get'](_0x4760d0)['collection']['add'](_0xa907eb));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x531567){const _0x140c64=[];for(const _0x4cfd84 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x4cfd84)['filter'])(_0x531567)&&_0x140c64['push'](_0x4cfd84);}if(_0x140c64['length']>0x1)throw new _0x26d752('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x140c64,'annotationType':_0x531567['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x23dd7e){super(_0x23dd7e);const _0x3e71ab=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 _0x144181(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x3e71ab['to']('class')],'style':{'minHeight':_0x3e71ab['to']('minHeight',_0x8ab7ff=>'number'==typeof _0x8ab7ff?he(_0x8ab7ff+0xa):null)},'dir':_0x23dd7e['uiLanguageDirection'],'role':'application','aria-label':S(_0x23dd7e,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x23dd7e,'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',_0x4db19f=>{this['_updateItemPositionInFocusables'](_0x4db19f['source']);}),this['list']['forEach'](_0x465a1b=>{this['focusTracker']['add'](_0x465a1b['element']),this['_updateItemPositionInFocusables'](_0x465a1b);}),this['list']['on']('change',(_0x595edd,_0x1c7e35)=>{for(const _0x392b2f of _0x1c7e35['removed'])this['focusTracker']['remove'](_0x392b2f['element']),this['focusables']['remove'](_0x392b2f);for(const _0x3a8329 of _0x1c7e35['added'])this['focusTracker']['add'](_0x3a8329['element']),this['_updateItemPositionInFocusables'](_0x3a8329);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x51bcc7){const _0xf29da9=this['focusables']['getIndex'](_0x51bcc7);let _0x5cf28e,_0x34c723;for(const _0x5b413d of this['focusables'])if(_0x51bcc7['top']<_0x5b413d['top']){_0x5cf28e=_0x5b413d;break;}if(_0x34c723=_0x5cf28e?this['focusables']['getIndex'](_0x5cf28e):this['focusables']['length'],-0x1!==_0xf29da9){if(_0xf29da9===_0x34c723-0x1)return;this['focusables']['remove'](_0x51bcc7),_0x34c723=_0x5cf28e?this['focusables']['getIndex'](_0x5cf28e):this['focusables']['length'];}this['focusables']['add'](_0x51bcc7,_0x34c723);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x21cb8c){super(_0x21cb8c),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x48953f,_0x62d955)=>_0x48953f+_0x62d955),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x44d0af=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x44d0af['to']('isAnimationDisabled',_0x211eef=>_0x211eef?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x44d0af['to']('top',_0x405e64=>qt(_0x405e64))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1d8bb0=this['element']['clientHeight'];_0x1d8bb0&&(this['height']=_0x1d8bb0);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4f99d3{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fee88){super(_0x2fee88),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 _0x44b68e=this['context']['config']['get']('sidebar.container');_0x44b68e&&this['setContainer'](_0x44b68e);}['setContainer'](_0x5e72d0){if(!y(_0x5e72d0))throw new _0x26d752('sidebar-setcontainer-invalid-element');this['container']=_0x5e72d0;}['_attachToContainer']({viewClass:_0x3e5199='',spaceBetweenItems:_0x4e710c=0x19}={}){if(!y(this['container']))throw new _0x26d752('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3e5199,this['_spaceBetweenItems']=_0x4e710c;}['rearrange']({removedAnnotation:_0x1e1435,previousAnnotation:_0x134527,nextAnnotation:_0x15fd03}){const _0x1e7a65=this['getSidebarItemView'](_0x1e1435);this['view']['list']['remove'](_0x1e7a65),this['_destroySidebarItemView'](_0x1e1435),_0x134527&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x134527)),_0x15fd03&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x15fd03)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x4d69d6,activatedAnnotation:_0x34b897,disableAnimationOnActivatedAnnotation:_0x429655}){if(this['_activeAnnotation']=_0x34b897,_0x4d69d6){_0x4d69d6['isActive']=!0x1;const _0x19d2a2=this['getSidebarItemView'](_0x4d69d6);_0x19d2a2&&_0x429655&&(_0x19d2a2['isAnimationDisabled']=!0x1);}if(_0x34b897){const _0xdd1c6a=this['getSidebarItemView'](_0x34b897);_0xdd1c6a&&(_0x34b897['isActive']=!0x0,_0x429655&&(_0xdd1c6a['isAnimationDisabled']=!0x0,_0xdd1c6a['top']+=0x1),this['_alignToTargetRect'](_0xdd1c6a));}}['_detachFromContainer'](_0x3fc3c8){if(this['view']['element']['remove'](),_0x3fc3c8){for(const _0x1ada4c of _0x3fc3c8)this['_destroySidebarItemView'](_0x1ada4c);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x38bbab,_0x2ef04e){_0x2ef04e||(_0x2ef04e=_0x38bbab['view']);const _0x1583a2=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x1583a2,_0x38bbab),this['_annotationToSidebarItemView']['set'](_0x38bbab,_0x1583a2),_0x1583a2['content']['add'](_0x2ef04e),this['listenTo'](_0x38bbab['view'],'change:targetRect',(_0x216cac,_0xc0d677,_0xae9eed)=>{const _0x23b2d0=this['_getTargetTop'](_0x38bbab,_0xae9eed);_0x1583a2['_targetTop']!=_0x23b2d0&&(_0x1583a2['_targetTop']=_0x23b2d0,this['_setItemTop'](_0x1583a2,_0x23b2d0));}),this['listenTo'](_0x1583a2,'change:top',()=>{this['_recalculate'](_0x1583a2,'top');}),this['listenTo'](_0x1583a2,'change:bottom',()=>{this['_recalculate'](_0x1583a2,'bottom');}),this['_alignToTargetRect'](_0x1583a2);const _0x8f7b5e=this['_getItemBefore'](_0x1583a2);if(_0x8f7b5e)this['_alignAfterItem'](_0x8f7b5e,_0x1583a2)||this['_alignToTargetRect'](_0x1583a2);else this['_alignToTargetRect'](_0x1583a2);return this['_updateLastItem'](),this['view']['list']['add'](_0x1583a2),_0x1583a2;}['_alignForTopChange'](_0x500738){if(!_0x500738['content']['length'])return;const _0x143e29=this['_getItemBefore'](_0x500738);if(!_0x143e29)return;const _0x4290b5=this['_sidebarItemViewToAnnotation']['get'](_0x143e29),_0x37e3b6=this['_activeAnnotation'];_0x37e3b6&&_0x37e3b6===_0x4290b5?this['_alignAfterItem'](_0x143e29,_0x500738):this['_alignBeforeItem'](_0x500738,_0x143e29);}['_alignForBottomChange'](_0x20ecc5){if(!_0x20ecc5['content']['length'])return;const _0x581fc1=this['_getItemAfter'](_0x20ecc5);if(!_0x581fc1)return;const _0x18e814=this['_sidebarItemViewToAnnotation']['get'](_0x581fc1),_0x8188b0=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x4a219a=this['_activeAnnotation'];_0x4a219a&&_0x4a219a===_0x18e814&&_0x8188b0?(this['_alignBeforeItem'](_0x581fc1,_0x20ecc5),this['_alignAfterItem'](_0x20ecc5,_0x581fc1)):_0x4a219a&&_0x4a219a===_0x18e814?this['_alignBeforeItem'](_0x581fc1,_0x20ecc5):this['_alignAfterItem'](_0x20ecc5,_0x581fc1);}['_recalculate'](_0x3c2e6b,_0x2bf74f){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2403db,changedProp:_0x1c0a3a}of this['_recalculateBuffer'])'top'===_0x1c0a3a?this['_alignForTopChange'](_0x2403db):this['_alignForBottomChange'](_0x2403db);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x3c2e6b,'changedProp':_0x2bf74f});}['getSidebarItemView'](_0x22e621){return this['_annotationToSidebarItemView']['get'](_0x22e621);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x403b58){const _0x390704=this['getSidebarItemView'](_0x403b58);this['stopListening'](_0x390704),this['stopListening'](_0x403b58['view']),_0x390704['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x403b58),this['_sidebarItemViewToAnnotation']['delete'](_0x390704);}['_createSidebarView'](){const _0x3e2fc8=new V(this['context']['locale']);return _0x3e2fc8['render'](),this['on']('change:_lastItem',(_0x3c1093,_0x2a7b06,_0x318500,_0x1ff78c)=>{_0x1ff78c&&_0x3e2fc8['unbind']('minHeight'),_0x318500?_0x3e2fc8['bind']('minHeight')['to'](_0x318500,'bottom'):_0x3e2fc8['minHeight']=null;}),_0x3e2fc8;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x44efd8){const _0x172a24=this['_sidebarItemViewToAnnotation']['get'](_0x44efd8),_0xd012eb=_0x172a24&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x172a24)-0x1);return _0xd012eb&&this['getSidebarItemView'](_0xd012eb)||null;}['_getItemAfter'](_0xd4f1b2){const _0x38ef8a=this['_sidebarItemViewToAnnotation']['get'](_0xd4f1b2),_0x2c7f42=_0x38ef8a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x38ef8a)+0x1);return _0x2c7f42&&this['getSidebarItemView'](_0x2c7f42)||null;}['_alignBeforeItem'](_0x5ba6a0,_0x466159){_0x5ba6a0['updateHeight']();const _0x1b1ede=R(_0x466159['bottom']+this['_spaceBetweenItems'],_0x5ba6a0['top']);return!!_0x1b1ede&&(this['_setItemTop'](_0x466159,_0x466159['top']-_0x1b1ede),!0x0);}['_alignAfterItem'](_0x3455c4,_0x4eccae){_0x3455c4['updateHeight']();const _0xb4d495=R(_0x3455c4['bottom']+this['_spaceBetweenItems'],_0x4eccae['top']);return!!_0xb4d495&&(this['_setItemTop'](_0x4eccae,_0x4eccae['top']+_0xb4d495,!0x1),!0x0);}['_alignToTargetRect'](_0x27ebb7){const _0x33acff=this['_sidebarItemViewToAnnotation']['get'](_0x27ebb7);if(!_0x33acff||!_0x33acff['target']||!_0x33acff['targetRect'])return;const _0x5d1f03=this['_getTargetTop'](_0x33acff,_0x33acff['targetRect']);this['_setItemTop'](_0x27ebb7,_0x5d1f03);}['_getTargetTop'](_0x96e0b3,_0x4d411a){if(null===_0x4d411a)return 0x0;if(_0x96e0b3['target']instanceof _0x53dfa2)return _0x4d411a['top'];{const _0x3ae786=new _0x53dfa2(this['view']['element'])['top'];return _0x4d411a['top']-_0x3ae786;}}['_setItemTop'](_0x1397f7,_0x27567e,_0x1d52f8=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1d52f8&&(_0x27567e=Math['max'](_0x27567e,this['_getMaxAvailableTop'](_0x1397f7))),_0x1397f7['top']=_0x27567e;}['_getMaxAvailableTop'](_0x3fb7b5){let _0x5b4013=this['_getItemBefore'](_0x3fb7b5),_0x57140c=0x0;for(;_0x5b4013;)_0x5b4013['updateHeight'](),_0x57140c+=this['_spaceBetweenItems']+_0x5b4013['height'],_0x5b4013=this['_getItemBefore'](_0x5b4013);return _0x57140c;}}function R(_0x422808,_0x45bea9){return Math['max'](_0x422808-_0x45bea9,0x0);}function y(_0x84d823){return null!==_0x84d823&&'object'==typeof _0x84d823&&0x1===_0x84d823['nodeType'];}class e extends _0x4f99d3{['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(_0x564514){super(_0x564514),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x51030a(),this['_refreshPositioningDebounced']=_0x251a97(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x42a887=this['context']['plugins']['get'](M),_0xa7962b=this['context']['plugins']['get'](z);_0x42a887['register']('wideSidebar',this),_0xa7962b['container']&&_0x42a887['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3dd85){if(_0x3dd85===this['activeAnnotation'])return;const _0x3c00a3=this['context']['plugins']['get'](z);_0x3c00a3['_activeAnnotation']=_0x3dd85;const _0x8cee45=this['activeAnnotation'];this['activeAnnotation']=_0x3dd85,_0x3c00a3['refresh']({'blurredAnnotation':_0x8cee45,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x346653){this['annotations']=_0x346653;const _0x5ec07b=this['context']['plugins']['get'](z);if(_0x5ec07b['_annotations']=_0x346653,this['isAttached'])throw new _0x26d752('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5ec07b,'set:container',()=>{this['detach'](),this['listenTo'](_0x5ec07b,'change:container',_0x348db2=>{_0x348db2['off'](),this['attach'](_0x346653);});}),_0x5ec07b['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2100ad=_0x1434cb=>{_0x1434cb['updateTargetRect'](),_0x5ec07b['addAnnotation'](_0x1434cb);};for(const _0x3e7c16 of _0x346653)_0x2100ad(_0x3e7c16);this['listenTo'](_0x346653,'add',(_0x12fe6f,_0x701486)=>{_0x2100ad(_0x701486);}),this['listenTo'](_0x346653,'remove',(_0x54b8ca,_0x20546a,_0x3968b3)=>{_0x5ec07b['rearrange']({'removedAnnotation':_0x20546a,'previousAnnotation':_0x346653['get'](_0x3968b3-0x1),'nextAnnotation':_0x346653['get'](_0x3968b3+0x1)}),_0x20546a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x346653,'focus',(_0x1543bc,_0x51547f)=>{this['setActiveAnnotation'](_0x51547f);}),this['listenTo'](_0x346653,'blur',()=>{this['setActiveAnnotation'](null);});const _0x40d38e=this['context']instanceof _0xc1088d?this['context']['editors']:new _0x51030a([this['context']]);for(const _0xcb143e of _0x40d38e)this['_integrateWithEditorAnnotations'](_0xcb143e);this['listenTo'](_0x40d38e,'add',(_0x2842b0,_0x147e22)=>{this['listenTo'](_0x147e22,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x147e22);});}),this['listenTo'](_0x40d38e,'remove',(_0xf85276,_0x128b27)=>{_0x128b27['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x128b27['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x26d752('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2c6916=this['context']['plugins']['get'](z);_0x2c6916['_detachFromContainer'](this['annotations']),this['stopListening'](_0x2c6916),this['stopListening'](this['annotations']),this['context']instanceof _0xc1088d&&this['stopListening'](this['context']['editors']);for(const _0x494ca5 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x494ca5);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2188c1){if(!_0x2188c1['plugins']['has']('EditorAnnotations'))return;const _0x735137=_0x2188c1['plugins']['get']('EditorAnnotations'),_0x60ffa0=()=>{const _0x4a4431=_0x735137['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4a4431[0x0]||null);};this['listenTo'](_0x735137,'refresh',_0x60ffa0),this['listenTo'](_0x735137,'blur',(_0x54c559,{isAnnotationTracked:_0x2b70ff})=>{this['activeAnnotation']&&_0x2b70ff(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x735137,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x3b91e2=>{_0x735137['hasDomSelection']()&&(_0x60ffa0(),_0x3b91e2['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x735137);}['_destroyEditorAnnotationsIntegration'](_0x95db4a){this['stopListening'](_0x95db4a),this['_editorAnnotations']['remove'](_0x95db4a);}}class D extends _0x39ffad{['counterView'];constructor(_0x27d7e8){super(_0x27d7e8);const _0x1cf24d=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3377d0,_0x2df5fb)=>_0x3377d0?'...':_0x2df5fb['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',_0x1cf24d['to']('annotationType',_0x58db53=>'ck-annotation-counter__badge--'+_0x58db53),_0x1cf24d['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1cf24d['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4f99d3{['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(_0x318b82){super(_0x318b82),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x1ff6fb),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x51030a(),this['_refreshPositioningDebounced']=_0x251a97(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x429d36(this['context']['locale']),this['balloonPanelView']=new _0x582297(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x53e594){this['annotations']=_0x53e594;const _0x2d60f8=this['context']['plugins']['get'](z),_0x2c20cf=this['balloonPanelView'];if(_0x2d60f8['_annotations']=_0x53e594,this['isAttached'])throw new _0x26d752('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2d60f8,'set:container',()=>{this['detach'](),this['listenTo'](_0x2d60f8,'change:container',_0x451217=>{_0x451217['off'](),this['attach'](_0x53e594);});}),_0x2d60f8['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0xf8abe7=_0x658749=>{const _0x175e4a=new D(this['context']['locale']);_0x2d60f8['addAnnotation'](_0x658749,_0x175e4a),this['_annotationToNarrowView']['set'](_0x658749,_0x175e4a),_0x175e4a['bind']('isDirty','annotationType','number')['to'](_0x658749['view'],'isDirty','type','length'),_0x175e4a['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2c20cf['content']['first']!==_0x658749['view']?(this['_showBalloon'](_0x658749),_0x658749['view']['element']['focus'](),this['setActiveAnnotation'](_0x658749)):this['setActiveAnnotation'](null);});};for(const _0x32e0f0 of _0x53e594)_0xf8abe7(_0x32e0f0);this['listenTo'](_0x53e594,'add',(_0x2af510,_0x131668)=>{_0xf8abe7(_0x131668);}),this['listenTo'](_0x53e594,'remove',(_0x4e9723,_0x1dbe3a,_0x8e3bef)=>{this['_annotationToNarrowView']['get'](_0x1dbe3a)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1dbe3a),_0x2d60f8['rearrange']({'removedAnnotation':_0x1dbe3a,'previousAnnotation':_0x53e594['get'](_0x8e3bef-0x1),'nextAnnotation':_0x53e594['get'](_0x8e3bef+0x1)}),_0x1dbe3a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x53e594,'focus',(_0xd5bb8c,_0xcd3cb0)=>{this['setActiveAnnotation'](_0xcd3cb0);}),this['listenTo'](_0x53e594,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x57bd02,_0x2c947e)=>{_0x2c947e['keyCode']===_0x4c5305['esc']&&_0x2c20cf['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x2c20cf['content']['first']),this['_hideBalloon'](),_0x2c947e['stopPropagation'](),_0x2c947e['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x21b9fe,_0xedd2ff)=>{const _0x22f293=_0xedd2ff['target'];_0x2c20cf['isVisible']&&_0x2c20cf['element']['contains'](_0x22f293)||_0x2d60f8['view']['element']['contains'](_0x22f293)||_0x21b9fe['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x201104=>_0x201104['contains'](_0x22f293))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2a05ab=this['context']instanceof _0xc1088d?this['context']['editors']:new _0x51030a([this['context']]);for(const _0x11740e of _0x2a05ab)this['_integrateWithEditorAnnotations'](_0x11740e);this['listenTo'](_0x2a05ab,'add',(_0x2fb50e,_0x2dd7bc)=>{this['listenTo'](_0x2dd7bc,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2dd7bc);});}),this['listenTo'](_0x2a05ab,'remove',(_0x71b03b,_0x1b1168)=>{_0x1b1168['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1b1168['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1eb334){if(_0x1eb334===this['activeAnnotation'])return;const _0x1a5fac=this['context']['plugins']['get'](z);if(_0x1a5fac['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1eb334,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1eb334)_0x1a5fac['getSidebarItemView'](_0x1eb334)?this['_showBalloon'](_0x1eb334):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x1eb334;}['detach'](){if(!this['isAttached'])throw new _0x26d752('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x516981=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x4121f1=>_0x4121f1['destroy']()),this['_annotationToNarrowView']['clear'](),_0x516981['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0xc1088d&&this['stopListening'](this['context']['editors']);for(const _0x2bfbc4 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2bfbc4);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'](_0x595e8c){if(!_0x595e8c['plugins']['has']('EditorAnnotations'))return;const _0x4064b2=_0x595e8c['plugins']['get']('EditorAnnotations'),_0xc24d70=this['context']['plugins']['get'](z),_0x64885=this['annotations'],_0x3bc652=this['balloonPanelView'],_0x2ec1ec=()=>{const _0x4d6849=_0x4064b2['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4d6849),this['setActiveAnnotation'](_0x4d6849[0x0]||null);};this['listenTo'](_0x4064b2,'refresh',_0x2ec1ec),this['listenTo'](_0x4064b2,'blur',(_0x4a00e4,{isAnnotationTracked:_0x7b82af})=>{this['activeAnnotation']&&_0x7b82af(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4064b2,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x64885,'blur',_0x2bba75=>{_0x4064b2['hasDomSelection']()&&_0x2bba75['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x4d2980,_0x1f883a)=>{const _0x2e331f=_0x1f883a['target'];_0x3bc652['isVisible']&&_0x3bc652['element']['contains'](_0x2e331f)||_0xc24d70['view']['element']['contains'](_0x2e331f)||this['activeAnnotation']&&_0x4064b2['hasDomSelection']()&&(_0x2ec1ec(),_0x4d2980['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4064b2);}['_destroyEditorAnnotationsIntegration'](_0x4c3b2a){_0x4c3b2a&&(this['stopListening'](_0x4c3b2a),this['_editorAnnotations']['remove'](_0x4c3b2a));}['_setSelectedAnnotations'](_0x248a6c){for(const _0xf60ccc of this['_selectedAnnotations'])_0x248a6c['includes'](_0xf60ccc)||this['_manuallyClosedAnnotationViews']['delete'](_0xf60ccc['view']);this['_selectedAnnotations']=_0x248a6c;}['_refreshPositioning'](){const _0x5ef44c=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x5ef44c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x335daf){if(this['_manuallyClosedAnnotationViews']['has'](_0x335daf['view']))return;const _0x190caf=this['balloonPanelView']['content']['first'];_0x190caf!==_0x335daf['view']?(_0x190caf&&this['_detachListeners'](_0x190caf),this['_attachListeners'](_0x335daf['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x335daf['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4dd91d=this['balloonPanelView']['content']['first'],_0x56cb92=_0x4dd91d&&this['annotations']['getByView'](_0x4dd91d);if(!_0x56cb92||!this['_annotationToNarrowView']['has'](_0x56cb92))return;const _0x44cd90=this['_annotationToNarrowView']['get'](_0x56cb92)['element'],_0x5c4aa1=(function(){const _0x3125c5=_0x582297['defaultPositions'];return[_0x3125c5['southArrowNorthEast'],_0x3125c5['northArrowSouthEast'],_0x3125c5['southArrowNorth'],_0x3125c5['northArrowSouth'],_0x3125c5['southArrowNorthWest'],_0x3125c5['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x44cd90,'positions':_0x5c4aa1});}['_hideBalloon'](){const _0x1b691d=this['balloonPanelView'],_0x5b8ebc=_0x1b691d['content']['first'];_0x5b8ebc&&(this['_detachListeners'](_0x5b8ebc),_0x1b691d['unpin'](),_0x1b691d['content']['clear']());}['_attachListeners'](_0x49803c){this['listenTo'](_0x49803c,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x49803c,'Esc',(_0x527a35,_0x41014c)=>{this['_manuallyClosedAnnotationViews']['add'](_0x49803c),this['_hideBalloon'](),_0x41014c();});}['_detachListeners'](_0x5acb75){this['stopListening'](_0x5acb75);}}class c extends _0xb0a682{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x4bec97,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd2990b){super(_0xd2990b),_0xd2990b['editing']['view']['addObserver'](_0x724e50),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0xd2990b['plugins']['get'](_0x4bec97),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x342f93=this['editor']['plugins']['get'](M);_0x342f93['context']===this['editor']&&(_0x342f93['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x5340e4,_0x3cb492)=>{const _0x1d6388=this['_balloon'];if(this['isAttached']&&_0x1d6388['visibleView']){const _0x26de56=this['annotations']['getByView'](_0x1d6388['visibleView']);_0x26de56&&this['_closeAnnotation'](_0x26de56),_0x3cb492();}}));}['afterInit'](){const _0xf4a80f=this['editor']['plugins']['get'](M);_0xf4a80f['context']===this['editor']&&(_0xf4a80f['hasActive']()||_0xf4a80f['switchTo']('inline'));}['setActiveAnnotation'](_0x398592){_0x398592!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x398592&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x398592)&&this['_addAnnotationToBalloon'](_0x398592,!0x0),_0x398592['isActive']=!0x0),_0x398592||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x398592);}['attach'](_0x5c4245){this['annotations']=_0x5c4245;const _0x1743ff=this['editor']['plugins']['get'](M),_0x1344ec=this['_balloon'];if(this['isAttached'])throw new _0x26d752('inlineannotations-attach-already-attached',this);if(_0x1743ff['context']!==this['editor'])throw new _0x26d752('inlineannotations-not-allowed-with-context',this);const _0x1025fd=this['editor']['plugins']['get'](P);this['listenTo'](_0x1025fd,'refresh',()=>{const _0x5cc69e=_0x1025fd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x72dae3,_0x4c71f7;!this['_forceRefresh']&&(_0x72dae3=_0x5cc69e,_0x4c71f7=this['_selectedAnnotations'],_0x72dae3['length']===_0x4c71f7['length']&&_0x72dae3['every'](_0x959a80=>_0x4c71f7['includes'](_0x959a80)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x5cc69e),this['setActiveAnnotation'](_0x5cc69e[0x0]||null));}),this['listenTo'](_0x1025fd,'blur',(_0x55fddf,{isAnnotationTracked:_0x4791ad})=>{this['activeAnnotation']&&_0x4791ad(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x5891ee,_0xf8e570,_0xb4c10)=>{_0xb4c10||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5c4245,'remove',(_0x33b430,_0x46f4d6)=>{this['_removeAnnotationFromBalloon'](_0x46f4d6),_0x46f4d6===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1344ec,'change:visibleView',(_0x56ac34,_0x17fcc8,_0xd92b0f,_0x252205)=>{_0x252205&&this['stopListening'](_0x252205);const _0x300fef=_0x5c4245['getByView'](_0xd92b0f);_0xd92b0f&&_0x300fef&&(this['listenTo'](_0xd92b0f,'change:height',()=>{_0x1344ec['updatePosition']();}),this['listenTo'](_0xd92b0f,'Esc',()=>{this['_closeAnnotation'](_0x300fef),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x300fef&&this['setActiveAnnotation'](_0x300fef));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x1344ec['visibleView']&&(_0x5c4245['getByView'](_0x1344ec['visibleView'])&&_0x1344ec['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 _0x26d752('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x42dcf8 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x42dcf8);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x4535e8){for(const _0x3d8b08 of this['_selectedAnnotations'])_0x4535e8['includes'](_0x3d8b08)||this['_manuallyClosed']['delete'](_0x3d8b08);for(const _0x194b1a of this['annotations'])_0x4535e8['includes'](_0x194b1a)||this['_removeAnnotationFromBalloon'](_0x194b1a);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x825782 of _0x4535e8)this['_addAnnotationToBalloon'](_0x825782);}this['_selectedAnnotations']=_0x4535e8;}['_addAnnotationToBalloon'](_0x3e9138,_0x52fe14=!0x1){this['_manuallyClosed']['has'](_0x3e9138)||(this['_addedAnnotations']['has'](_0x3e9138)||this['_balloon']['hasView'](_0x3e9138['view'])||(this['_addedAnnotations']['add'](_0x3e9138),this['_balloon']['add']({'stackId':_0x3e9138['view']['id'],'view':_0x3e9138['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3e9138)}})),_0x52fe14&&this['_balloon']['showStack'](_0x3e9138['view']['id']));}['_getBalloonTargetForAnnotation'](_0x5f36b2){const _0x23813b=_0x5f36b2['target'],_0x2562ef=this['editor']['editing']['view'],_0x544d71=_0x2562ef['document']['selection']['getFirstRange'](),_0xc281d6=_0x2562ef['domConverter']['viewRangeToDom'](_0x544d71);if(_0xc281d6['collapse'](!0x0),_0x23813b){if(_0x23813b instanceof _0x53dfa2)return _0x23813b;let _0x3e11a1=[];for(const _0xe02de6 of _0x23813b)_0x3e11a1['push'](...(_0x2e34a3=_0xe02de6['getClientRects'](),Array['from'](_0x2e34a3)['map'](DOMRect['fromRect'])));_0x3e11a1=function(_0x48e9ab){const _0x427a27=[];let _0x59eb4f=_0x48e9ab[0x0];for(let _0x4f9a64=0x1;_0x4f9a64<_0x48e9ab['length'];_0x4f9a64++)b(_0x59eb4f,_0x48e9ab[_0x4f9a64])?_0x59eb4f['width']+=_0x48e9ab[_0x4f9a64]['width']:(_0x427a27['push'](_0x59eb4f),_0x59eb4f=_0x48e9ab[_0x4f9a64]);return _0x427a27['push'](_0x59eb4f),_0x427a27;}(_0x3e11a1);const _0x33947f=_0xc281d6['getBoundingClientRect']();return _0x3e11a1['find'](_0x4e4f0c=>_0x4e4f0c['top']<=_0x33947f['top']&&_0x4e4f0c['bottom']>=_0x33947f['bottom']&&_0x4e4f0c['left']<=_0x33947f['left']&&_0x4e4f0c['right']>=_0x33947f['right'])||_0x3e11a1[0x0];}var _0x2e34a3;return _0x5f36b2['targetRect']||_0xc281d6;}['_removeAnnotationFromBalloon'](_0x5f598a){this['_addedAnnotations']['has'](_0x5f598a)&&this['_balloon']['hasView'](_0x5f598a['view'])&&(this['_addedAnnotations']['delete'](_0x5f598a),this['_balloon']['remove'](_0x5f598a['view']));}['_closeAnnotation'](_0x1d7ad3){this['_manuallyClosed']['add'](_0x1d7ad3),this['_removeAnnotationFromBalloon'](_0x1d7ad3);}}function b(_0x3ecd0f,_0x4066f0){return _0x3ecd0f['top']===_0x4066f0['top']&&_0x3ecd0f['bottom']===_0x4066f0['bottom']&&_0x3ecd0f['right']===_0x4066f0['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x23745a,_0x1029fd){super(_0x23745a),this['set']('isEmpty',!_0x1029fd['length']),this['focusTracker']=new _0x144181(),this['_annotationViews']=_0x1029fd,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x1029fd,'focusTracker':this['focusTracker']}),this['listenTo'](_0x1029fd,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x1029fd,'remove',(_0x4f62d2,_0x240151)=>{_0x240151['isActive']&&this['focus'](),_0x1029fd['length']||(this['isEmpty']=!0x0);});const _0x4974f3=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x23745a,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x1029fd},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4974f3['if']('isEmpty','ck-hidden',_0xea9c25=>!_0xea9c25)]},'children':[{'text':S(_0x23745a,'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 _0x4be929 of this['_annotationViews'])this['focusTracker']['add'](_0x4be929['element']);this['_annotationViews']['on']('change',(_0x54678b,{added:_0x150d82,removed:_0x617e9e})=>{for(const _0x1ddd83 of _0x150d82)this['focusTracker']['add'](_0x1ddd83['element']);for(const _0x5558c4 of _0x617e9e)this['focusTracker']['remove'](_0x5558c4['element']);});}}class f extends _0x4f99d3{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x46afce){super(_0x46afce),this['archivedThreads']=new _0x51030a();}['init'](){const _0x28bc22=this['context'],_0x4bfc0b=_0x28bc22['plugins']['get'](o),_0x3422ca=_0x28bc22['plugins']['get'](N);this['listenTo'](_0x4bfc0b,'addCommentThread',(_0xaa861b,{threadId:_0xe2f308})=>{const _0x5bba3e=_0x4bfc0b['getCommentThread'](_0xe2f308);_0x5bba3e['archivedAt']&&this['archivedThreads']['add'](_0x5bba3e,this['_calculatePosition'](_0x5bba3e['archivedAt'])),this['listenTo'](_0x5bba3e,'change:archivedAt',(_0x4446bb,_0x5edf18,_0x2a21d2)=>{_0x2a21d2?this['archivedThreads']['has'](_0x5bba3e)||this['archivedThreads']['add'](_0x5bba3e,this['_calculatePosition'](_0x5bba3e['archivedAt'])):this['archivedThreads']['has'](_0x5bba3e)&&this['archivedThreads']['remove'](_0x5bba3e);});}),this['listenTo'](_0x4bfc0b,'removeCommentThread',(_0x1cc99e,{threadId:_0x562e3e})=>{const _0x1e8ca8=_0x4bfc0b['getCommentThread'](_0x562e3e);this['stopListening'](_0x1e8ca8),this['archivedThreads']['has'](_0x1e8ca8)&&this['archivedThreads']['remove'](_0x1e8ca8);},{'priority':'highest'}),this['listenTo'](_0x3422ca['collection'],'focus',(_0x19574b,_0x2671ad)=>{_0x2671ad['isVisible']||(_0x2671ad['isActive']=!0x0,_0x3422ca['activate'](_0x2671ad));});}['_calculatePosition'](_0x32cfc5){const _0x53ea26=[...this['archivedThreads']]['findIndex'](_0x2a21e2=>_0x2a21e2['archivedAt']<_0x32cfc5);return _0x53ea26>-0x1?_0x53ea26:this['archivedThreads']['length'];}}class a extends _0xb0a682{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x8e3935];}constructor(_0x1305bf){super(_0x1305bf),this['annotationViews']=new _0x93391d(),this['_pendingThreads']=[];}['init'](){const _0x355f8b=this['editor'],_0x4f9315=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x355f8b['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x39ffad,!0x0)),_0x355f8b['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x1f8796=this['_createCommentsArchiveButton'](_0x21e538);return _0x1f8796['set']({'role':'menuitemcheckbox'}),_0x1f8796;});const _0x2aaab7=_0x355f8b['plugins']['get'](f),_0x11fef7=_0x355f8b['plugins']['get']('Annotations'),_0x18fa31=_0x355f8b['plugins']['get']('CommentsRepository');this['listenTo'](_0x2aaab7['archivedThreads'],'add',(_0x2cb1f9,_0x585e84)=>{const _0x1dde61=_0x355f8b['config']['get']('collaboration.channelId');if(!_0x1dde61||_0x585e84['channelId']===_0x1dde61){const _0x2b5852=_0x18fa31['_threadToController']['get'](_0x585e84);if(!_0x2b5852)return void this['_pendingThreads']['push'](_0x585e84);const _0xaff211=this['_calculatePosition'](_0x585e84['archivedAt']),_0x1b80c5=_0x11fef7['getByInnerView'](_0x2b5852['view']);_0x1b80c5['isVisible']&&_0x11fef7['_visibleAnnotations']['remove'](_0x1b80c5),this['annotationViews']['add'](_0x1b80c5['view'],_0xaff211);}}),this['listenTo'](_0x11fef7['collection'],'add',(_0x194293,_0x419a36)=>{const _0x51c48d=this['_pendingThreads']['find'](_0x23a5e9=>{const _0x5a73aa=_0x18fa31['_threadToController']['get'](_0x23a5e9);return _0x5a73aa&&_0x419a36['innerView']===_0x5a73aa['view'];});if(_0x51c48d){const _0x125b4d=this['_calculatePosition'](_0x51c48d['archivedAt']);this['annotationViews']['add'](_0x419a36['view'],_0x125b4d),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x51c48d),0x1);}}),this['listenTo'](_0x2aaab7['archivedThreads'],'remove',(_0x44d765,_0x3c2de0)=>{const _0x106fa5=_0x355f8b['config']['get']('collaboration.channelId');if(!_0x106fa5||_0x3c2de0['channelId']===_0x106fa5){const _0x559a58=_0x18fa31['_threadToController']['get'](_0x3c2de0),_0x228a98=_0x11fef7['getByInnerView'](_0x559a58['view']);this['annotationViews']['remove'](_0x228a98['view']),this['stopListening'](_0x228a98['focusableElements']);}}),this['listenTo'](_0x11fef7['collection'],'add',(_0x3b07ed,_0x28ae94)=>{this['listenTo'](_0x28ae94,'escape',_0x4f9315);}),this['listenTo'](_0x11fef7['collection'],'remove',(_0x296c38,_0x4d256e)=>{this['stopListening'](_0x4d256e,'escape',_0x4f9315);});}['_calculatePosition'](_0xc679b2){const _0x116311=this['editor']['config']['get']('collaboration.channelId'),_0x41e8e6=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x2fa566=>_0x2fa566['channelId']===_0x116311)['findIndex'](_0x172711=>_0x172711['archivedAt']<_0xc679b2);return _0x41e8e6<0x0||_0x41e8e6>this['annotationViews']['length']?this['annotationViews']['length']:_0x41e8e6-0x1;}['_toggleDialog'](){const _0x5327eb=this['editor'],_0x3fa4ea=_0x5327eb['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x5327eb['locale'],this['annotationViews'])),'commentsArchive'===_0x3fa4ea['id']?_0x3fa4ea['hide']():_0x3fa4ea['show']({'id':'commentsArchive','title':S(_0x5327eb['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x173aa8['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x2a8f1f,_0x12e45a=!0x1){const _0x300e8b=this['editor']['locale'],_0x44f7a1=this['editor']['plugins']['get']('Dialog'),_0x2f6357=new _0x2a8f1f(_0x300e8b);return _0x2f6357['bind']('isEnabled')['to'](this,'isEnabled'),_0x2f6357['bind']('isOn')['to'](_0x44f7a1,'id',_0x13355a=>'commentsArchive'===_0x13355a),_0x2f6357['set']({'label':S(_0x300e8b,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x12e45a&&(_0x2f6357['tooltip']=!0x0),this['listenTo'](_0x2f6357,'execute',()=>this['_toggleDialog']()),_0x2f6357;}['_hideDialogOnAnnotationEscape']=_0x131427=>{const _0x391e32=_0x131427['source'];if(!this['annotationViews']['has'](_0x391e32['view']))return;const _0x3bd44f=this['editor']['plugins']['get']('Dialog');_0x3bd44f['isOpen']&&'commentsArchive'===_0x3bd44f['id']&&(_0x3bd44f['hide'](),_0x131427['stop']());};}class p extends _0xb0a682{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};
|