@ckeditor/ckeditor5-comments 44.1.0-alpha.5 → 44.2.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/LICENSE.md +1 -2
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +15 -15
- package/dist/index.js +10 -10
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +39 -16
- package/src/annotations/annotation.d.ts +1 -1
- package/src/annotations/annotation.js +3 -3
- package/src/annotations/annotationcollection.d.ts +1 -1
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +1 -1
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +2 -2
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +1 -1
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +1 -1
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +1 -1
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +1 -1
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +1 -1
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +1 -1
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +1 -1
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +1 -1
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +1 -1
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +1 -1
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +1 -1
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +1 -1
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +1 -1
- package/src/comments/commentsrepository.js +4 -4
- package/src/comments/commentsui.d.ts +1 -1
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/clipboard.d.ts +1 -1
- package/src/comments/integrations/clipboard.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +1 -1
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/integrations/showcommenthighlights.d.ts +1 -1
- package/src/comments/integrations/showcommenthighlights.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +3 -3
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +1 -1
- package/src/comments/ui/commentthreadcontroller.js +3 -3
- package/src/comments/ui/view/basecommentthreadview.d.ts +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +1 -1
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +1 -1
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +1 -1
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +1 -1
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadview.js +3 -3
- package/src/comments/ui/view/commentview.d.ts +1 -1
- package/src/comments/ui/view/commentview.js +3 -3
- package/src/comments.d.ts +1 -1
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +1 -1
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +1 -1
- package/src/config.js +1 -1
- package/src/index.d.ts +2 -2
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +2 -2
- 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 +1 -1
- package/theme/commentsarchive.css +1 -1
- package/theme/commentthread.css +1 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/comments-archive.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +1 -1
- package/theme/sidebar.css +1 -1
- package/dist/annotations/annotation.d.ts +0 -101
- package/dist/annotations/annotationcollection.d.ts +0 -102
- package/dist/annotations/annotations.d.ts +0 -166
- package/dist/annotations/annotationsuis.d.ts +0 -244
- package/dist/annotations/editorannotations.d.ts +0 -79
- package/dist/annotations/inlineannotations.d.ts +0 -102
- package/dist/annotations/narrowsidebar.d.ts +0 -97
- package/dist/annotations/sidebar.d.ts +0 -112
- package/dist/annotations/view/annotationcounterbuttonview.d.ts +0 -33
- package/dist/annotations/view/annotationview.d.ts +0 -94
- package/dist/annotations/view/sidebaritemview.d.ts +0 -63
- package/dist/annotations/view/sidebarview.d.ts +0 -57
- package/dist/annotations/widesidebar.d.ts +0 -89
- package/dist/augmentation.d.ts +0 -63
- package/dist/comments/addcommentthreadcommand.d.ts +0 -39
- package/dist/comments/commentsarchive.d.ts +0 -43
- package/dist/comments/commentsarchiveui.d.ts +0 -57
- package/dist/comments/commentsediting.d.ts +0 -106
- package/dist/comments/commentsrepository.d.ts +0 -1137
- package/dist/comments/commentsui.d.ts +0 -49
- package/dist/comments/integrations/clipboard.d.ts +0 -30
- package/dist/comments/integrations/commentsrestrictededitingmode.d.ts +0 -21
- package/dist/comments/integrations/importword.d.ts +0 -25
- package/dist/comments/integrations/showcommenthighlights.d.ts +0 -23
- package/dist/comments/ui/commenteditor/commenteditor.d.ts +0 -40
- package/dist/comments/ui/commenteditor/commenteditorui.d.ts +0 -35
- package/dist/comments/ui/commenteditor/commenteditoruiview.d.ts +0 -40
- package/dist/comments/ui/commentthreadcontroller.d.ts +0 -68
- package/dist/comments/ui/view/basecommentthreadview.d.ts +0 -152
- package/dist/comments/ui/view/basecommentview.d.ts +0 -154
- package/dist/comments/ui/view/collapsedcommentsview.d.ts +0 -17
- package/dist/comments/ui/view/commentcontentview.d.ts +0 -18
- package/dist/comments/ui/view/commentinputview.d.ts +0 -105
- package/dist/comments/ui/view/commentsarchiveview.d.ts +0 -50
- package/dist/comments/ui/view/commentslistview.d.ts +0 -116
- package/dist/comments/ui/view/commentthreadheadercontextview.d.ts +0 -25
- package/dist/comments/ui/view/commentthreadheaderview.d.ts +0 -80
- package/dist/comments/ui/view/commentthreadinputview.d.ts +0 -60
- package/dist/comments/ui/view/commentthreadview.d.ts +0 -127
- package/dist/comments/ui/view/commentview.d.ts +0 -244
- package/dist/comments.d.ts +0 -47
- package/dist/commentsonly.d.ts +0 -45
- package/dist/config.d.ts +0 -199
- package/dist/index.d.ts +0 -33
- package/dist/utils/common-translations.d.ts +0 -13
- package/dist/utils/createmutationobserver.d.ts +0 -18
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Editor as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
((()=>Rt)());constructor(_0x56d78d={}){function _0xb784d2(_0xec109c){return _0xec109c['map'](_0x58b2f4=>String['fromCharCode'](_0x58b2f4))['join']('');}(_0x56d78d=Object['assign']({},_0x56d78d))['plugins']||(_0x56d78d['plugins']=Ut['defaultPlugins']),super(_0x56d78d),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[_0xb784d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb784d2([0x76,0x69,0x65,0x77])][_0xb784d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb784d2([0x61,0x75,0x74,0x6f]),this[_0xb784d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xb784d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb784d2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xb784d2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xb784d2([0x6f,0x6b])});}['create'](){const _0x4048c4=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x4048c4))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x4fcbce=>{const _0x4714fb=this['model']['document']['getRoot'](),_0x5a7dc1=_0x4714fb&&_0x4714fb['getChild'](_0x4714fb['childCount']-0x1);_0x4fcbce['setSelection'](_0x5a7dc1,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x509799=this['editing']['view'],_0x493662=_0x509799['document']['getRoot'](),_0x142929=_0x493662['getChild'](0x0);_0x493662['childCount']>0x1||!_0x142929||'p'!=_0x142929['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x509799,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x142929['placeholder']=this['placeholder']),St({'view':_0x509799,'element':_0x142929,'keepOnFocus':!0x0}),this['placeholderElement']=_0x142929);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0xf62897,_0x35ca0d={}){super(_0xf62897),this['editor']=null,this['_editorConfig']=_0x35ca0d,this['set']('value',_0x35ca0d['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0xf62897,'Reply...')),this['set']('submitLabel',S(_0xf62897,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x22a307(),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',(_0x5ba800,_0x25d86f)=>{this['cancelButtonView']['fire']('execute'),_0x25d86f();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3fea21,_0x1f10bf)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x1f10bf());}),this['on']('submit',(_0x41c267,_0x19c5db)=>{_0x19c5db['length']>0xfde8?(alert(S(_0xf62897,'TOO_LONG_COMMENT_ALERT',[_0x19c5db['length'],0xfde8])),_0x41c267['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 _0x4cc43f=this['editor'];this['element']['insertBefore'](_0x4cc43f['ui']['element'],this['element']['firstChild']),_0x4cc43f['model']['document']['on']('change',()=>this['value']=_0x4cc43f['getData']()),_0x4cc43f['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4cc43f['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x543666){-0x1===_0x543666?(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:_0x2c65b2}=this,_0x2c834a=new _0x3e77fe(_0x2c65b2);return _0x2c834a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2c834a['withText']=!0x0,_0x2c834a['bind']('label')['to'](this,'submitLabel'),_0x2c834a['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2c834a['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x10d4c7,_0x5a8105)=>!_0x5a8105&&!!_0x10d4c7['trim']()),_0x2c834a;}['_createCancelButton'](){const {locale:_0x4c193a}=this,_0x515062=new _0x3e77fe(_0x4c193a);return _0x515062['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x515062['label']=S(_0x4c193a,'Cancel'),_0x515062['withText']=!0x0,_0x515062['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x515062;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x316548=>{this['focusTracker']['add'](_0x316548['element']);}),this['focusables']['on']('change',(_0x4a9c25,_0x22c9df)=>{for(const _0xfc425c of Array['from'](_0x22c9df['added'])['reverse']())this['focusTracker']['add'](_0xfc425c['element']);});}}class ie extends kt{constructor(_0x50760a,_0x2eb2b8,_0x4eadd0){super(_0x50760a),this['commentInputView']=new os(_0x50760a,_0x4eadd0),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x459180,_0xebe467)=>_0x459180||!!_0xebe467),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 _0x2ef72b(_0x50760a,_0x2eb2b8),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'](_0x4b106b){this['commentInputView']['focus'](_0x4b106b);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x2765aa,_0x4482cb)=>{const {submitButtonView:_0x138628,cancelButtonView:_0x1f7111,editor:_0x4c559e}=this['commentInputView'];[_0x138628['element'],_0x1f7111['element'],_0x4c559e?_0x4c559e['editing']['view']['getDomRoot']():null]['filter'](_0x4e3a20=>_0x4e3a20)['some'](_0x465e85=>_0x465e85['contains'](_0x4482cb['target']))||(this['focus'](),_0x4482cb['preventDefault']());});}}class cs extends kt{constructor(_0x38a29e){super(_0x38a29e);const _0x2621da=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2621da['to']('count',_0x226bad=>S(_0x38a29e,'NUMBER_OF_COMMENTS',_0x226bad))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5d6cc5,_0x459994,_0x5c7144){super(_0x5d6cc5);const _0x4c1941=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x459994['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x459994,this['_config']=_0x5c7144,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x22a307(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x56beae=>this['commentViews']['map'](_0x4c91c9=>_0x4c91c9['element'])['includes'](_0x56beae['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x5d6cc5),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x59c809=>_0x59c809-this['_config']['maxCommentsWhenCollapsed']);for(const _0x53f197 of _0x459994['comments'])this['_handleNewCommentModel'](_0x53f197);this['_handleInfoComment'](),this['listenTo'](_0x459994['comments'],'add',(_0x3fb0bc,_0x24f916)=>{const _0x5b1221=this['_calculatePosition'](_0x24f916);this['length']++,this['_handleNewCommentModel'](_0x24f916,_0x5b1221),this['refreshVisibleViews']();}),this['listenTo'](_0x459994['comments'],'remove',(_0x428c16,_0x37fd30)=>{this['length']--,this['_handleRemoveCommentModel'](_0x37fd30),this['refreshVisibleViews']();}),this['listenTo'](_0x459994,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x459994,'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',_0x4c1941['if']('length','ck-hidden',_0x4a6ff8=>!_0x4a6ff8)],'aria-label':S(_0x5d6cc5,'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'](_0x1b2f5d){-0x1===_0x1b2f5d?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x221799 of this['commentViews'])_0x221799['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1e27d6,_0x1df596){const _0x4b51a5=new this['_config']['CommentView'](this['locale'],_0x1e27d6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4b51a5['viewUid']=_0x1e27d6['id'],_0x4b51a5['delegate']('removeComment')['to'](this),_0x4b51a5['delegate']('updateComment')['to'](this),_0x4b51a5['delegate']('resolveCommentThread')['to'](this),_0x4b51a5['delegate']('editorReady')['to'](this),_0x4b51a5['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4b51a5,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4b51a5,_0x1df596);}['_calculatePosition'](_0x2b58dc){const _0x2a73eb=this['_model']['_findOptimalIndex'](_0x2b58dc);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2b58dc['authoredAt']?_0x2a73eb-0x1:_0x2a73eb:_0x2a73eb-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x1a7262={'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'],_0x1a7262,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x1a7262));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5aa32d){const _0x2d6113=this['commentViews']['remove'](_0x5aa32d['id']);this['stopListening'](_0x2d6113),_0x2d6113['isEditMode']&&this['_updateHasDirtyComment'](),_0x2d6113['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x5953b4=>_0x5953b4['isEditMode']);}['_rearrangeCollapse'](){const _0x29d5b1=function(_0x1145b2){const _0x3e343f=new _0x11cbf4();for(const _0x8925c8 of _0x1145b2)_0x3e343f['add'](_0x8925c8);return _0x3e343f;}(this['commentViews']),_0x3d97e7=this['_collapsedCommentsView']['count'];for(let _0x42b66b=0x1;_0x42b66b<=_0x3d97e7;_0x42b66b++)_0x29d5b1['remove'](0x1);for(const _0xd6159 of _0x29d5b1)_0xd6159['collapse']();_0x3d97e7>0x0&&_0x29d5b1['add'](this['_collapsedCommentsView'],0x1),as(_0xcc1a29(Array['from'](this['visibleViews']),Array['from'](_0x29d5b1)),this['visibleViews'],_0x29d5b1);}['_rearrangeExpand'](){as(_0xcc1a29(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x489463 of this['visibleViews'])_0x489463['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2676f1=>{this['focusTracker']['add'](_0x2676f1['element']),this['keystrokes']['listenTo'](_0x2676f1['element']);}),this['commentViews']['on']('change',(_0xfa0cb,_0x5d1bcc)=>{for(const _0x3f3f22 of _0x5d1bcc['removed'])this['focusTracker']['remove'](_0x3f3f22['element']),this['keystrokes']['stopListening'](_0x3f3f22['element']);for(const _0x35f199 of Array['from'](_0x5d1bcc['added'])['reverse']())this['focusTracker']['add'](_0x35f199['element']),this['keystrokes']['listenTo'](_0x35f199['element']);});}}function as(_0x567ea4,_0x4c1dcb,_0x4d5bd1){let _0x59c50e=0x0;for(const _0x25c5bb of _0x567ea4)switch(_0x25c5bb){case'insert':_0x4c1dcb['add'](_0x4d5bd1['get'](_0x59c50e),_0x59c50e),_0x59c50e++;break;case'delete':_0x4c1dcb['remove'](_0x59c50e);break;case'equal':_0x59c50e++;}}class ls extends kt{constructor(_0x2cf961){super(_0x2cf961);const _0x1c37e0=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1c37e0['to']('contextValue',_0x50e3cf=>S(_0x2cf961,'THREAD_CONTEXT_LABEL',_0x50e3cf)),'tabindex':-0x1},'children':[{'text':_0x1c37e0['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4742f7,_0x46be97){super(_0x4742f7);const _0x61a7c0=this['bindTemplate'];this['_model']=_0x46be97,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x22a307(),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',_0x4f503b=>!!_0x4f503b),this['bind']('contextValue')['to'](this['_model'],'context',_0x2eb319=>_0x2eb319&&_0x2eb319['value']?this['_trimContextValue'](_0x2eb319['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',_0x61a7c0['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 _0xc3c310=new _0x3e77fe(this['locale']);return _0xc3c310['label']=S(this['locale'],'Reopen'),_0xc3c310['tooltip']=S(this['locale'],'Reopen'),_0xc3c310['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>',_0xc3c310['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x25bd63=>!_0x25bd63),_0xc3c310['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x50488e,_0x4fe6ef)=>_0x50488e&&_0x4fe6ef),_0xc3c310['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0xc3c310;}['_trimContextValue'](_0x3ef32f){if(_0x3ef32f['length']<0x96)return _0x3ef32f;const _0x26d8b9=_0x3ef32f['lastIndexOf']('\x20',0x93);return _0x3ef32f['substring'](0x0,_0x26d8b9>-0x1?_0x26d8b9:0x93)+'...';}['_attachContextActions'](){const _0x3f36ee=this['element']['querySelector']('.ck-context'),_0x8c8e9f=_0x3f36ee['querySelector']('.ck-context__value');this['listenTo'](_0x3f36ee,'mouseenter',()=>{_0x8c8e9f['offsetWidth']<_0x8c8e9f['scrollWidth']&&_0x3f36ee['classList']['add']('overlay');}),this['listenTo'](_0x3f36ee,'mouseleave',()=>{_0x3f36ee['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x1c6a7a of this['focusables'])this['focusTracker']['add'](_0x1c6a7a['element']),this['keystrokes']['listenTo'](_0x1c6a7a['element']);}['_createContextView'](){const _0x107bab=new ls(this['locale']);return _0x107bab['bind']('contextValue')['to'](this),_0x107bab;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x47468f,_0x4f1b89,_0xbca10c,_0x205fa8){super(_0x47468f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4f1b89,this['_localUser']=_0xbca10c,this['_config']=_0x205fa8,this['commentThreadHeaderView']=new Zt(_0x47468f,_0x4f1b89),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x47468f,S(_0x47468f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x47468f,_0x4f1b89,Object['assign']({'CommentView':this['_config']['CommentView']},_0x205fa8)),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',(_0x2d2aae,_0x24209e)=>_0x2d2aae||!!_0x24209e),this['bind']('isUnlinked')['to'](_0x4f1b89,'unlinkedAt',_0x1d3792=>!!_0x1d3792),this['bind']('ariaLabel')['to'](this,'length',_0x5e796c=>{const _0x352a4b=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x5e796c,_0x352a4b]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x22a307(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x10bf12=>_0x10bf12['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x25184d(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x19d946=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xea7b93=_0x19d946['commentInputView'];return _0x19d946['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0xea7b93,'value',(_0x37f068,_0x210b5a,_0xb7b347,_0x5ad4ed,_0x42e89a)=>!!_0x42e89a||!!_0x5ad4ed&&_0xb7b347&&!_0x210b5a||_0x37f068&&_0xb7b347&&!_0x210b5a),_0xea7b93['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x14772a,_0x51f5b7,_0xe9480d)=>{let _0x29febd;return _0x29febd=_0xe9480d&&_0x51f5b7?'Reply\x20to\x20reopen\x20discussion...':_0x14772a?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x29febd);}),_0xea7b93['bind']('submitLabel')['to'](this,'length',_0x3bd8d2=>S(this['locale'],_0x3bd8d2?'Reply':'Comment')),_0xea7b93['on']('submit',(_0x4f6a15,_0x332e78)=>{this['fire']('addComment',_0x332e78),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0xea7b93['on']('cancel',()=>{this['focus']();}),_0xea7b93['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xea7b93['on']('cancel',_0x2aafb7=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2aafb7['stop']());}),this['on']('change:isActive',(_0x1df547,_0x3a9968,_0x389a1f)=>{_0x389a1f||this['length']||_0xea7b93['value']||this['fire']('removeCommentThread');}),_0x19d946;}}class vt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(rs){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0x1eb62e(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x54d2cd,target:_0xa0a0e5,type:_0xd923bb,isVisible:_0x516f1b=!0x0}){super(),this['view']=_0x54d2cd,this['view']['element']||this['view']['render'](),this['_type']=_0xd923bb,this['_target']=_0xa0a0e5,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x11cbf4([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x5c6e60,_0x3a2cbe)=>{this['view']['focusTracker']['add'](_0x3a2cbe);}),this['focusableElements']['on']('remove',(_0x2d77cc,_0x40a5c0)=>{this['view']['focusTracker']['remove'](_0x40a5c0);}),this['set']('isVisible',_0x516f1b);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x31d65d=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x31d65d),_0x31d65d;}get['targetRect'](){const _0xadf83c=this['target'];if(null===_0xadf83c)return null;if(_0xadf83c instanceof _0x12a62b)return _0xadf83c;const _0x156180=_0xadf83c['filter'](_0x2dc5b7=>function(_0x5cc76d){const _0x45162b=_0x5cc76d['offsetParent'];if(_0x45162b)return!0x0;const _0x5f1b7d=_0x5cc76d['getClientRects']()['item'](0x0);return!!_0x5f1b7d;}(_0x2dc5b7));return 0x0===_0x156180['length']?null:new _0x12a62b(_0x156180[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x36901d){this['view']['isActive']=_0x36901d,this['view']['mainView']['isActive']=_0x36901d;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3eb081){if(!(null===_0x3eb081||_0x3eb081 instanceof _0x12a62b||Array['isArray'](_0x3eb081)&&_0x3eb081['every'](_0x4e15c5=>ne(_0x4e15c5))))throw new _0x766f41('annotation-invalid-target',null,{'target':_0x3eb081});}['_getNormalizedTarget'](){const _0x362ad4='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x362ad4)?[_0x362ad4]:_0x362ad4;}}function ne(_0x5b0ba5){return null!==_0x5b0ba5&&'object'==typeof _0x5b0ba5&&'nodeType'in _0x5b0ba5&&0x1===_0x5b0ba5['nodeType'];}class x extends _0x11cbf4{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2f55e9=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x22a307(),this['_focusTracker']['on']('change:isFocused',(_0x4a7a30,_0x476401,_0xcb9d14)=>{_0xcb9d14||this['fire']('blur');});for(const _0x5f54f3 of _0x2f55e9)this['add'](_0x5f54f3);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x4a1e9c){if(this['has'](_0x4a1e9c))throw new _0x766f41('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x4a1e9c['innerView'],_0x4a1e9c),this['_viewToAnnotation']['set'](_0x4a1e9c['view'],_0x4a1e9c);for(const _0x45cd19 of _0x4a1e9c['focusableElements'])this['_focusTracker']['add'](_0x45cd19);this['listenTo'](_0x4a1e9c['focusableElements'],'add',(_0x173366,_0x3dc2c7)=>{this['_focusTracker']['add'](_0x3dc2c7);}),this['listenTo'](_0x4a1e9c['focusableElements'],'remove',(_0x479680,_0x4e10b9)=>{this['_focusTracker']['remove'](_0x4e10b9);}),this['listenTo'](_0x4a1e9c['view']['focusTracker'],'change:isFocused',(_0x387472,_0x5e2732,_0x3e651a)=>{_0x3e651a&&this['fire']('focus',_0x4a1e9c);}),_0x4a1e9c['updateTargetRect']();const _0x16811b=this['_getOrderInContent'](_0x4a1e9c['view']['targetRect']);return super['add'](_0x4a1e9c,_0x16811b);}['remove'](_0x3f93f9){if(!this['has'](_0x3f93f9))throw new _0x766f41('annotationcollection-not-existing-item',null);this['stopListening'](_0x3f93f9['view']['focusTracker']),this['stopListening'](_0x3f93f9['focusableElements']);for(const _0x59b0bd of _0x3f93f9['focusableElements'])this['_focusTracker']['remove'](_0x59b0bd);return this['_viewToAnnotation']['delete'](_0x3f93f9['view']),this['_innerViewToAnnotation']['delete'](_0x3f93f9['innerView']),super['remove'](_0x3f93f9);}['getByInnerView'](_0x24c03c){return this['_innerViewToAnnotation']['get'](_0x24c03c);}['getByView'](_0x2a16f2){return this['_viewToAnnotation']['get'](_0x2a16f2);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x35736c of this)_0x35736c['updateTargetRect']();this['_sort']();}['_sort'](){const _0x264bd5=Array['from'](this)['sort']((_0x5a786f,_0x3cfdab)=>v(_0x5a786f['view']['targetRect'],_0x3cfdab['view']['targetRect']));for(let _0x463f2e=_0x264bd5['length']-0x1;_0x463f2e>0x0;_0x463f2e--){const _0x524783=_0x264bd5[_0x463f2e];_0x463f2e!==this['getIndex'](_0x524783)&&(this['remove'](_0x524783),this['add'](_0x524783));}}['_getOrderInContent'](_0x29fedc){let _0x30a06b=0x0;if(!_0x29fedc)return this['length'];for(const _0x45a2bd of this){const _0x223285=_0x45a2bd['view']['targetRect'];if(_0x223285){if(v(_0x29fedc,_0x223285)<0x0)return _0x30a06b;_0x30a06b++;}}return _0x30a06b;}}function v(_0x41d6d3,_0x1f9133){if(null===_0x41d6d3&&null===_0x1f9133)return 0x0;if(null===_0x41d6d3)return-0x1;if(null===_0x1f9133)return 0x1;const _0x2c7b0c=_0x41d6d3['top']-_0x1f9133['top'];return 0x0==_0x2c7b0c?_0x41d6d3['left']-_0x1f9133['left']:_0x2c7b0c;}class N extends _0x3f9f30{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x99804d){if(super(_0x99804d),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x99804d instanceof _0x21f649){const _0x36c382=_0x99804d['locale'];_0x99804d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x6ba7c1){this['collection']['add'](_0x6ba7c1);}['remove'](_0x16f54b){this['collection']['remove'](_0x16f54b),_0x16f54b['destroy']();}['refreshVisibility'](){for(const _0x518331 of this['collection'])_0x518331['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0xd45640){return this['collection']['getByInnerView'](_0xd45640);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x24e787 of this['collection'])_0x24e787['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x32cb11){this['fire']('_activateAnnotation',_0x32cb11);}['createAnnotation'](_0x126a27){return new d(_0x126a27);}['createAnnotationView'](_0x49f877,_0x380344){return new T(_0x49f877,_0x380344);}['_addActiveAnnotation'](_0x1e93b3){const _0x59af73=new Set(this['activeAnnotations']);_0x59af73['add'](_0x1e93b3),this['activeAnnotations']=_0x59af73;}['_removeActiveAnnotation'](_0x16580c){const _0x2f6a31=new Set(this['activeAnnotations']);_0x2f6a31['delete'](_0x16580c),this['activeAnnotations']=_0x2f6a31;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4bf05d=this['collection'],_0x31a15f=this['_visibleAnnotations'];function _0x2d61fc(_0x5a2ee5){const _0x440ee8=_0x5a2ee5['source'];_0x440ee8['isVisible']&&!_0x31a15f['has'](_0x440ee8)?_0x31a15f['add'](_0x440ee8):!_0x440ee8['isVisible']&&_0x31a15f['has'](_0x440ee8)&&_0x31a15f['remove'](_0x440ee8),_0x440ee8['view']['focusTracker']['remove'](_0x440ee8['view']['element']),_0x440ee8['view']['focusTracker']['add'](_0x440ee8['view']['element']);}this['listenTo'](_0x4bf05d,'add',(_0x4395bf,_0x3efd4d)=>{_0x3efd4d['isVisible']&&_0x31a15f['add'](_0x3efd4d),this['listenTo'](_0x3efd4d,'change:isVisible',_0x2d61fc);}),this['listenTo'](_0x4bf05d,'remove',(_0x46d81a,_0x451d5d)=>{_0x31a15f['has'](_0x451d5d)&&_0x31a15f['remove'](_0x451d5d),this['stopListening'](_0x451d5d,'change:isVisible',_0x2d61fc);});}['_setupEnterAnnotationKeystroke'](){const _0x1174bb=_0x451e5d=>{_0x451e5d['on']('ready',()=>{_0x451e5d['keystrokes']['set'](_0x122bf7,(_0x3b56f8,_0x4e3c89)=>{const _0x1527c1=_0x4b73ac(this['activeAnnotations']['values']());_0x1527c1&&(_0x1527c1['view']['focus'](),_0x4e3c89());});});};this['context']instanceof _0x21f649?_0x1174bb(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x27a2c7,_0x38aa7d)=>{_0x1174bb(_0x38aa7d);});}['_setupEscapeAnnotationHandling'](){const _0x59304=_0x13d58f=>{const _0x1f9c4a=_0x13d58f['source'],_0x2e58c6=[];let _0x2917b7;if(Array['isArray'](_0x1f9c4a['target'])){_0x2917b7=_0x1f9c4a['target'][0x0],this['context']instanceof _0x21f649?_0x2e58c6['push'](this['context']):this['context']['editors']&&_0x2e58c6['push'](...this['context']['editors']);for(const _0x3cc9f7 of _0x2e58c6)for(const _0xbfe3a7 of _0x3cc9f7['editing']['view']['domRoots']['values']())if(_0xbfe3a7['contains'](_0x2917b7))return void _0x3cc9f7['editing']['view']['focus']();_0x2917b7['focus']();}};this['listenTo'](this['collection'],'add',(_0x4512d2,_0x1a8368)=>{this['listenTo'](_0x1a8368,'escape',_0x59304,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3fec23,_0x262265)=>{this['stopListening'](_0x262265,'escape',_0x59304);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x3f9f30{['_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(_0x235105){super(_0x235105),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3fce4c=this['context']['config'];_0x3fce4c['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3fce4c['define']('comments.maxThreadTotalWeight',0x1f4),_0x3fce4c['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3fce4c['define']('comments.CommentThreadView',vt),_0x3fce4c['define']('comments.CommentView',gt),_0x3fce4c['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0xc7c70b=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0xd076f6,_0x41996e)=>this['_addCommentThread'](_0x41996e)),this['on']('submitCommentThread',(_0x41d0c1,_0x422f7e)=>this['_submitCommentThread'](_0x422f7e)),this['on']('resolveCommentThread',(_0x5aa652,_0x15bc98)=>this['_resolveCommentThread'](_0x15bc98)),this['on']('resolveCommentThread',(_0x575ff5,_0x256793)=>this['_updateActiveAnnotation'](_0x256793),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x11c641,_0x2f4ffd)=>this['_reopenCommentThread'](_0x2f4ffd)),this['on']('reopenCommentThread',(_0x53f15a,_0x1cb8d5)=>this['_updateActiveAnnotation'](_0x1cb8d5),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x59eaec,_0x108ff8)=>this['_removeCommentThread'](_0x108ff8)),this['on']('updateCommentThread',(_0x479419,_0x3a59e1)=>this['_updateCommentThread'](_0x3a59e1)),this['on']('updateCommentThread',(_0x2bfbcc,_0x2987d9)=>this['_updateActiveAnnotation'](_0x2987d9),{'priority':'lowest'}),this['on']('addComment',(_0x2c1fda,_0x4111eb)=>this['_addComment'](_0x4111eb)),this['on']('updateComment',(_0x7ef6a0,_0x30386b)=>this['_updateComment'](_0x30386b)),this['on']('removeComment',(_0xedd73f,_0x8077c1)=>this['_removeComment'](_0x8077c1)),this['on']('addComment',(_0x257dfa,{threadId:_0x17d255,isFromAdapter:_0x23550d})=>{if(_0x23550d)return;const _0xc7242e=this['getCommentThread'](_0x17d255),_0x569766=_0xc7242e&&this['_threadToController']['get'](_0xc7242e);_0x569766&&_0x569766['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0xc7c70b,'change:activeAnnotations',(_0x45d470,_0x52301a,_0x4cdf2a)=>{const _0x178af8=Array['from'](_0x4cdf2a)['map'](_0x3f67bb=>this['_viewToController']['get'](_0x3f67bb['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x178af8?_0x178af8['model']:null;});}set['adapter'](_0x508a18){if(this['_adapter'])throw new _0x766f41('commentsrepository-adapter-already-set');this['_adapter']=_0x508a18;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x20d0de=Tt,threadId:_0x1b7c67=_0x5ec6e9(),comments:_0x471e77=[],unlinkedAt:_0x2cef4d=null,resolvedAt:_0x2471df=null,resolvedBy:_0x3c4720=null,target:_0xe54f72=null,context:_0xbe7c0f=null,attributes:_0x2fd0b4={},isResolvable:_0x3faed1=!0x0,isSubmitted:_0x3d4601=!0x1,isFromAdapter:_0x41631e=!0x1}={}){return this['fire'](bt('addCommentThread',_0x20d0de),{'channelId':_0x20d0de,'threadId':_0x1b7c67,'comments':_0x471e77,'unlinkedAt':_0x2cef4d,'resolvedAt':_0x2471df,'resolvedBy':_0x3c4720,'target':_0xe54f72,'context':_0xbe7c0f,'attributes':_0x2fd0b4,'isFromAdapter':_0x41631e,'isResolvable':_0x3faed1,'isSubmitted':_0x3d4601}),this['getCommentThread'](_0x1b7c67);}['openNewCommentThread']({channelId:_0x22d995=Tt,threadId:_0x4003c2=_0x5ec6e9(),target:_0x52eddc,context:_0x51dd24=null,isResolvable:_0x9ef4bb=!0x0}){if(this['_readOnlyChannels']['has'](_0x22d995)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x52eddc)throw new _0x766f41('commentsrepository-missing-target');const _0x304c08=this['addCommentThread']({'channelId':_0x22d995,'threadId':_0x4003c2,'target':_0x52eddc,'context':_0x51dd24,'isResolvable':_0x9ef4bb});if(!_0x304c08)return null;const _0x520f3a=this['_threadToController']['get'](_0x304c08),_0x1c00eb=_0x520f3a['view']['commentThreadInputView']['commentInputView'],_0x559a32=this['context']['plugins']['get'](N),_0x5c2a61=_0x559a32['getByInnerView'](_0x520f3a['view']);return _0x559a32['activate'](_0x5c2a61),_0x1c00eb['once']('editorReady',()=>_0x1c00eb['focus']()),_0x304c08;}['hasCommentThread'](_0x512f84){if('string'!=typeof _0x512f84)throw new _0x766f41('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x512f84);}['updateCommentThread']({channelId:_0x407465=Tt,threadId:_0x5ad69c,context:_0x1b5325,unlinkedAt:_0x13c0b,attributes:_0x49af97,isFromAdapter:_0x38c6ce=!0x1}){return this['fire'](bt('updateCommentThread',_0x407465),{'channelId':_0x407465,'threadId':_0x5ad69c,'context':_0x1b5325,'unlinkedAt':_0x13c0b,'attributes':_0x49af97,'isFromAdapter':_0x38c6ce}),this['getCommentThread'](_0x5ad69c);}['getCommentThread'](_0x1ae74c){if('string'!=typeof _0x1ae74c)throw new _0x766f41('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1ae74c);}['fetchCommentThread']({channelId:_0x834e52,threadId:_0x4d9525}={}){const _0x4c141f=this['getCommentThread'](_0x4d9525);if(_0x4c141f)return Promise['resolve'](_0x4c141f);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x766f41('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x834e52,'threadId':_0x4d9525})['then'](_0x4776e1=>this['hasCommentThread'](_0x4d9525)?this['getCommentThread'](_0x4d9525):_0x4776e1?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x834e52},_0x4776e1)):void 0x0)['catch'](_0x511e10=>{throw console['error'](_0x511e10),new _0x766f41('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4266c7,skipNotAttached:_0x302be1=!0x1,skipEmpty:_0x52955a=!0x1,toJSON:_0x20875e=!0x1}={}){const _0x2d611a=[];for(const _0x5e006e of this['_threads']['values']())_0x4266c7&&_0x5e006e['channelId']!==_0x4266c7||_0x302be1&&!_0x5e006e['isAttached']||_0x52955a&&0x0===_0x5e006e['length']||_0x2d611a['push'](_0x5e006e);return _0x20875e?_0x2d611a['map'](_0x1d74dc=>_0x1d74dc['toJSON']()):_0x2d611a;}['setActiveCommentThread'](_0x148d12){const _0x2abb57=this['context']['plugins']['get'](N);if(!_0x148d12)return void(this['activeCommentThread']&&_0x2abb57['deactivateAll']());const _0x5c6d42=this['getCommentThread'](_0x148d12);if(!_0x5c6d42)throw new _0x766f41('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x148d12});if(!this['_threadToController']['has'](_0x5c6d42))throw new _0x766f41('commentsrepository-active-not-attached',null,{'threadId':_0x148d12});const _0x352ffe=_0x2abb57['getByInnerView'](this['_threadToController']['get'](_0x5c6d42)['view']);_0x2abb57['activate'](_0x352ffe);}['switchReadOnly'](_0x44f8c2,_0x54196d){_0x44f8c2?this['_readOnlyChannels']['add'](_0x54196d):this['_readOnlyChannels']['delete'](_0x54196d),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x282fc7){return this['_readOnlyChannels']['has'](_0x282fc7)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x9ec0a7,_0xab758b){return new Ct(_0x9ec0a7,_0xab758b);}['setPermissions'](_0x544825,_0x4e2e5a=Tt){this['_permissions']['set'](_0x4e2e5a,_0x544825),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1f82c1=Tt){return this['_permissions']['has'](_0x1f82c1)?this['_permissions']['get'](_0x1f82c1):_t;}['_addCommentThread']({channelId:_0x34305a,threadId:_0x3b19d8,comments:_0x737fcd,unlinkedAt:_0x461fdc,resolvedAt:_0x632170,resolvedBy:_0x29baf6,target:_0x13c12d,context:_0x32b86e,attributes:_0x550db0,isFromAdapter:_0x20f9c9,isResolvable:_0x597882,isSubmitted:_0x41e9d1}){if('string'!=typeof _0x3b19d8)throw new _0x766f41('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3b19d8});if(this['hasCommentThread'](_0x3b19d8))throw new _0x766f41('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3b19d8});const _0x2a8838=new oe(this,{'channelId':_0x34305a,'id':_0x3b19d8,'context':_0x32b86e,'attributes':_0x550db0,'unlinkedAt':_0x461fdc,'resolvedAt':_0x632170,'resolvedBy':_0x29baf6?this['context']['plugins']['get'](it)['getUser'](_0x29baf6):null,'isResolvable':_0x597882,'isSubmitted':_0x41e9d1||_0x20f9c9});this['_threads']['set'](_0x3b19d8,_0x2a8838);for(const _0xc10dca of _0x737fcd)_0x2a8838['_add'](this['_createNewComment']({'threadId':_0x3b19d8,..._0xc10dca}));return _0x13c12d&&_0x2a8838['attachTo'](_0x13c12d),_0x20f9c9||!_0x2a8838['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x34305a,'threadId':_0x3b19d8});}['_submitCommentThread']({channelId:_0x276792,threadId:_0x8f9f6}){if(!this['hasCommentThread'](_0x8f9f6))throw new _0x766f41('commentsrepository-missing-comment-thread',this);const _0x1c4f87=this['getCommentThread'](_0x8f9f6);if(_0x1c4f87['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1af971,comments:_0x335f08,resolvedAt:_0x3ad675,resolvedBy:_0xa2ce26,context:_0x580957,attributes:_0x43a4ab}=_0x1c4f87,_0x367275=this['context']['plugins']['get']('PendingActions'),_0x3b5ec7=_0x367275['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x276792,'threadId':_0x1af971,'comments':_0x335f08['map'](_0x27c837=>_0x27c837['toJSON']()),'resolvedAt':_0x3ad675,'resolvedBy':_0xa2ce26?_0xa2ce26['id']:_0xa2ce26,'context':_0x580957,'attributes':_0x43a4ab})['then'](({comments:_0x5ac25e})=>{_0x367275['remove'](_0x3b5ec7);for(const _0x437c14 of _0x5ac25e)this['_updateComment']({'channelId':_0x276792,'threadId':_0x8f9f6,'commentId':_0x437c14['commentId'],'createdAt':_0x437c14['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x24f6e5=>{throw console['error'](_0x24f6e5),new _0x766f41('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x236f10,target:_0x147c1f}){const _0x56953a=this['getCommentThread'](_0x236f10);if(!_0x56953a)throw new _0x766f41('commentsrepository-attach-missing-comment-thread',this);const _0x58bf38=this['context']['plugins']['get']('PendingActions'),_0x369615=this['context']['plugins']['get'](N),_0x3ea206=this['_createCommentThreadView'](_0x56953a),_0x54ebd3=new Ct(_0x56953a,_0x3ea206);let _0x154e2f=null;_0x3ea206['on']('change:isDirty',(_0x336d7e,_0x1cc3ef,_0x1b7281)=>{_0x1b7281?_0x154e2f=_0x58bf38['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x154e2f&&(_0x58bf38['remove'](_0x154e2f),_0x154e2f=null);}),this['_threadToController']['set'](_0x56953a,_0x54ebd3),this['_viewToController']['set'](_0x3ea206,_0x54ebd3);const _0x3ae367=new T(this['context']['locale'],_0x3ea206);_0x3ae367['bind']('length')['to'](_0x3ea206),_0x3ae367['bind']('isDirty')['to'](_0x3ea206,'isDirty',_0x3ea206,'length',(_0x3ec41c,_0x875385)=>_0x3ec41c||!_0x875385),_0x3ae367['bind']('isActive')['to'](_0x3ea206),_0x3ae367['type']='comment';const _0x3e06a3=new d({'view':_0x3ae367,'target':_0x147c1f,'type':'comment','isVisible':!_0x56953a['isResolved']});return _0x3ea206['on']('escape',()=>{_0x3e06a3['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3ea206,_0x3e06a3),_0x369615['add'](_0x3e06a3),_0x3e06a3;}['_bindAnnotationToEditors'](_0x2678ec,_0x21e408){this['listenTo'](_0x2678ec,'editorReady',(_0x1fcda2,_0x39adfb)=>{const _0x42ea16=_0x39adfb['ui']['view']['body']['bodyCollectionContainer'];_0x21e408['focusableElements']['add'](_0x42ea16),this['context']instanceof _0x21f649&&this['context']['ui']['focusTracker']['add'](_0x42ea16);},{'priority':'highest'}),this['listenTo'](_0x2678ec,'editorDestroyed',(_0x2e14f7,_0x2ff250)=>{const _0x7d09d0=_0x2ff250['ui']['view']['body']['bodyCollectionContainer'];_0x21e408['focusableElements']['has'](_0x7d09d0)&&_0x21e408['focusableElements']['remove'](_0x7d09d0),this['context']instanceof _0x21f649&&this['context']['ui']['focusTracker']['remove'](_0x7d09d0);});}['_unbindEditors'](_0xc20905){this['stopListening'](_0xc20905,'editorReady'),this['stopListening'](_0xc20905,'editorDestroyed');}['_createCommentThreadView'](_0x3cda24){const _0xad5c93=this['context']['plugins']['get'](it),{config:_0xe1a643,locale:_0x3c591d}=this['context'],_0x4c41c0=lt(_0xe1a643['get']('locale'));return new(0x0,(_0xe1a643['get']('comments'))['CommentThreadView'])(_0x3c591d,_0x3cda24,_0xad5c93['me'],{'editorConfig':{..._0xe1a643['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0xe1a643['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0xe1a643['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xe1a643['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xe1a643['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c41c0,'CommentView':_0xe1a643['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3e649a,channelId:_0x1476ce,resolvedAt:_0x18532e,resolvedBy:_0x4e3f9a,isFromAdapter:_0x3bc351}){if(!this['hasCommentThread'](_0x3e649a))throw new _0x766f41('commentsrepository-missing-comment-thread',null,{'threadId':_0x3e649a});const _0x567c40=this['getCommentThread'](_0x3e649a);if(_0x567c40['isResolved'])throw new _0x766f41('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3e649a});const _0x5de7e0=this['context']['plugins']['get'](it);if(_0x567c40['resolvedBy']=_0x5de7e0['getUser'](_0x4e3f9a),_0x567c40['resolvedAt']=_0x18532e,_0x3bc351||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x144ef7=this['context']['plugins']['get']('PendingActions'),_0x46a3ac=_0x144ef7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1476ce,'threadId':_0x3e649a})['then'](({resolvedAt:_0xe98492,resolvedBy:_0x1c9453})=>{_0x144ef7['remove'](_0x46a3ac),_0x567c40['resolvedBy']['id']!==_0x1c9453&&(_0x567c40['resolvedBy']=_0x5de7e0['getUser'](_0x1c9453)),_0x567c40['resolvedAt']=_0xe98492;})['catch'](_0xb90c9c=>{throw console['error'](_0xb90c9c),new _0x766f41('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1aa7eb,channelId:_0x16d7a6,isFromAdapter:_0x366d88}){if(!this['hasCommentThread'](_0x1aa7eb))throw new _0x766f41('commentsrepository-missing-comment-thread',null,{'threadId':_0x1aa7eb});const _0x4d8e76=this['getCommentThread'](_0x1aa7eb);if(!_0x4d8e76['isResolved'])throw new _0x766f41('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1aa7eb});if(_0x4d8e76['resolvedBy']=null,_0x4d8e76['resolvedAt']=null,_0x366d88||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1d9914=this['context']['plugins']['get']('PendingActions'),_0x464df1=_0x1d9914['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x16d7a6,'threadId':_0x1aa7eb})['then'](()=>_0x1d9914['remove'](_0x464df1))['catch'](_0x1e70ae=>{throw console['error'](_0x1e70ae),new _0x766f41('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xa929a3,isFromAdapter:_0x4f222a}){const _0x215d5a=this['getCommentThread'](_0xa929a3);if(!_0x215d5a)throw new _0x766f41('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xa929a3),this['_threads']['delete'](_0xa929a3),!_0x215d5a['isSubmitted']||_0x4f222a||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5364ba=this['context']['plugins']['get']('PendingActions'),{channelId:_0x550f1b}=_0x215d5a,_0x3f7ee8=_0x5364ba['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x550f1b,'threadId':_0xa929a3})['then'](()=>_0x5364ba['remove'](_0x3f7ee8))['catch'](_0x417d99=>{throw console['error'](_0x417d99),new _0x766f41('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3350e9,unlinkedAt:_0x4c1b1d,context:_0x9e4641,attributes:_0x50f754,isFromAdapter:_0x2ef0e6}){if('string'!=typeof _0x3350e9)throw new _0x766f41('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3350e9});if(!this['hasCommentThread'](_0x3350e9))throw new _0x766f41('commentsrepository-missing-comment-thread',null,{'threadId':_0x3350e9});const _0x2e5bb3=this['getCommentThread'](_0x3350e9);let _0x14fb24=!0x1;if(void 0x0!==_0x9e4641&&_0x2e5bb3['context']!==_0x9e4641&&(_0x2e5bb3['context']=_0x9e4641,_0x14fb24=!0x0),void 0x0!==_0x4c1b1d&&_0x2e5bb3['unlinkedAt']!==_0x4c1b1d&&(_0x2e5bb3['unlinkedAt']=_0x4c1b1d,_0x14fb24=!0x0),_0x50f754&&!wt(_0x50f754,_0x2e5bb3['attributes'])&&(_0x2e5bb3['attributes']=_0x50f754,_0x14fb24=!0x0),!_0x14fb24)return Promise['resolve']();if(!_0x2e5bb3['isSubmitted']||_0x2ef0e6||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x180793=this['context']['plugins']['get']('PendingActions'),{channelId:_0x47ded1}=_0x2e5bb3,_0xaecbef=_0x180793['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x47ded1,'threadId':_0x3350e9,'context':_0x9e4641,'unlinkedAt':_0x4c1b1d,'attributes':_0x50f754})['then'](()=>_0x180793['remove'](_0xaecbef))['catch'](_0x20ebdc=>{throw console['error'](_0x20ebdc),new _0x766f41('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x448622){const _0x5bf149=this['context']['plugins']['get'](N),_0x49f038=this['getCommentThread'](_0x448622);if(_0x49f038['_isAttached']=!0x1,this['_threadToController']['has'](_0x49f038)){const _0x196fea=this['_threadToController']['get'](_0x49f038),_0x3427e3=_0x196fea['view'],_0xdd08b5=_0x5bf149['getByInnerView'](_0x3427e3);this['_threadToController']['delete'](_0x49f038),this['_viewToController']['delete'](_0x3427e3),_0xdd08b5&&_0x5bf149['remove'](_0xdd08b5),_0x196fea['destroy'](),_0x3427e3['destroy']()['then'](()=>{this['_unbindEditors'](_0x3427e3);});}}['_updateActiveAnnotation']({threadId:_0x593ffa,resolvedAt:_0x61f820}){const _0x41ffbc=!!_0x61f820,_0x22508f=this['context']['plugins']['get'](N),_0x15ed77=this['getCommentThread'](_0x593ffa);if(this['_threadToController']['has'](_0x15ed77)){const _0x413de3=this['_threadToController']['get'](_0x15ed77)['view'],_0x254c29=_0x22508f['getByInnerView'](_0x413de3);_0x254c29&&(_0x41ffbc&&_0x22508f['_removeActiveAnnotation'](_0x254c29),_0x254c29['refreshVisibility']());}}['_getExternalAuthor'](_0x492fea){const _0x1f853e=this['context']['plugins']['get'](it),_0x2ff876=pt('external:'+_0x492fea),_0x5d3456=_0x1f853e['getUser'](_0x2ff876);return _0x5d3456||_0x1f853e['addUser']({'id':_0x2ff876,'name':_0x492fea});}['_createNewComment']({threadId:_0x1d51f5,commentId:_0x4f31a6=_0x5ec6e9(),content:_0x5e654d,authorId:_0x2d503c,createdAt:_0x36a1b9,attributes:_0x5f53fe}){if('string'!=typeof _0x4f31a6)throw new _0x766f41('commentsrepository-invalid-commentid');if('string'!=typeof _0x2d503c)throw new _0x766f41('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5e654d||!_0x5e654d['trim']())throw new _0x766f41('commentsrepository-invalid-comment-content');const _0x15d0cc=this['context']['plugins']['get'](it)['getUser'](_0x2d503c);if(!_0x15d0cc)throw new _0x766f41('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x2d503c});let _0x41d4cf=null,_0x11d134=_0x36a1b9;return _0x5f53fe&&_0x5f53fe['@external']&&(_0x41d4cf=this['_getExternalAuthor'](_0x5f53fe['@external']['authorName']),_0x11d134=new Date(_0x5f53fe['@external']['createdAt'])),new re(this,{'threadId':_0x1d51f5,'id':_0x4f31a6,'author':_0x41d4cf||_0x15d0cc,'creator':_0x15d0cc,'content':_0x5e654d,'createdAt':_0x36a1b9,'authoredAt':_0x11d134,'attributes':_0x5f53fe});}['_addComment'](_0x35472e){let {threadId:_0x1b4952,content:_0x122f63,attributes:_0x1c04fc,isFromAdapter:_0x17628a}=_0x35472e;const _0x4aaff3=this['getCommentThread'](_0x35472e['threadId']);if(!_0x4aaff3)throw new _0x766f41('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x2a2f99=this['_createNewComment'](_0x35472e),{id:_0x50de6a}=_0x2a2f99;if(_0x4aaff3['_add'](_0x2a2f99),_0x17628a||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4aaff3['isSubmitted'])return Promise['resolve']();const _0x349300=this['context']['plugins']['get']('PendingActions'),{channelId:_0x44148f}=_0x4aaff3,_0x82b74c=_0x349300['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1c04fc||(_0x1c04fc={}),this['adapter']['addComment']({'channelId':_0x44148f,'threadId':_0x1b4952,'commentId':_0x50de6a,'content':_0x122f63,'attributes':_0x1c04fc})['then'](_0x4c83e2=>{_0x349300['remove'](_0x82b74c),_0x4c83e2&&this['_updateComment']({'channelId':_0x44148f,'threadId':_0x1b4952,'commentId':_0x50de6a,'createdAt':_0x4c83e2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1ed833=>{throw console['error'](_0x1ed833),new _0x766f41('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x25a688,commentId:_0x352097,content:_0x56def8,createdAt:_0x18834f,attributes:_0x34e798,isFromAdapter:_0x59ae63}){if(void 0x0!==_0x56def8&&('string'!=typeof _0x56def8||!_0x56def8['trim']()['length']))throw new _0x766f41('commentsrepository-update-comment-invalid-content');const _0x20f5bc=this['getCommentThread'](_0x25a688),_0x1cf015=_0x20f5bc['getComment'](_0x352097);if(!_0x1cf015)throw new _0x766f41('commentsrepository-update-missing-comment',this);let _0x5b745d=!0x1;if(_0x56def8&&_0x56def8!==_0x1cf015['content']&&(_0x1cf015['isEditable']||_0x59ae63)&&(_0x1cf015['content']=_0x56def8,_0x5b745d=!0x0),_0x18834f&&_0x18834f!==_0x1cf015['createdAt']&&(_0x1cf015['createdAt']=_0x18834f,_0x1cf015['attributes']&&_0x1cf015['attributes']['@external']||(_0x1cf015['authoredAt']=_0x18834f),_0x5b745d=!0x0),_0x34e798&&!wt(_0x34e798,_0x1cf015['attributes'])&&(_0x1cf015['attributes']=_0x34e798,_0x5b745d=!0x0),!_0x5b745d)return Promise['resolve']();if(_0x20f5bc['fire']('commentUpdated'),_0x59ae63||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x248335=this['context']['plugins']['get']('PendingActions'),{channelId:_0x45d34d}=this['getCommentThread'](_0x1cf015['threadId']),_0x569429=_0x248335['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x45d34d,'threadId':_0x25a688,'commentId':_0x352097,'content':_0x56def8,'attributes':_0x34e798})['then'](()=>_0x248335['remove'](_0x569429))['catch'](_0x1ea511=>{throw console['error'](_0x1ea511),new _0x766f41('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1ca062,commentId:_0x3a97d6,isFromAdapter:_0x5b90cb}){const _0x35ddbd=this['getCommentThread'](_0x1ca062),_0x43aa18=_0x35ddbd['getComment'](_0x3a97d6);if(!_0x43aa18)throw new _0x766f41('commentsrepository-remove-missing-comment',this);if(_0x35ddbd['_remove'](_0x43aa18),_0x5b90cb||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x170556=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2239d4}=_0x35ddbd,_0x1417c5=_0x170556['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2239d4,'threadId':_0x1ca062,'commentId':_0x3a97d6})['then'](()=>_0x170556['remove'](_0x1417c5))['catch'](_0x227cb5=>{throw console['error'](_0x227cb5),new _0x766f41('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x1eb62e(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x12c9e6,_0x262e22){super();const _0x2b1c8c=_0x12c9e6['context']['plugins']['get'](it)['me'],_0x27f83b=_0x12c9e6['getCommentThread'](_0x262e22['threadId']),_0x10370a=0x0===_0x27f83b['comments']['length'],_0x221aed=_0x2b1c8c===_0x262e22['author'];this['id']=_0x262e22['id'],this['threadId']=_0x262e22['threadId'],this['author']=_0x262e22['author'],this['creator']=_0x262e22['creator'],this['isExternal']=Boolean(_0x262e22['attributes']&&_0x262e22['attributes']['@external']),this['set']('content',_0x262e22['content']),this['createdAt']=_0x262e22['createdAt']||new Date(),this['set']('authoredAt',_0x262e22['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x27f83b,'resolvedAt'),this['set']('attributes',_0x262e22['attributes']||{}),this['bind']('isEditable')['to'](_0x12c9e6,'_permissions',()=>{const _0x729649=_0x12c9e6['getPermissions'](_0x27f83b['channelId'])['write'],_0x5994c4=_0x12c9e6['getPermissions'](_0x27f83b['channelId'])['modifyAll'];return _0x221aed&&_0x729649||!_0x221aed&&_0x5994c4;}),this['bind']('isRemovable')['to'](_0x27f83b,'isRemovable',_0x12c9e6,'_permissions',_0x103857=>{const _0x489e86=_0x12c9e6['getPermissions'](_0x27f83b['channelId'])['write'],_0x1f12a1=_0x12c9e6['getPermissions'](_0x27f83b['channelId'])['modifyAll'];return _0x221aed&&_0x489e86||_0x103857&&_0x10370a||!_0x221aed&&_0x1f12a1&&!_0x10370a;}),this['bind']('isReadOnly')['to'](_0x27f83b,'isReadOnly'),this['_repository']=_0x12c9e6;}get['weight'](){return Math['max'](function(_0xe0c0ab){const _0x21812d=document['createElement']('div');return _0x21812d['innerHTML']=_0xe0c0ab,_0x21812d['textContent']['length'];}(this['content']),0xc8);}['update'](_0x188088){const {threadId:_0x163edc,id:_0x5b8c6b}=this;if(!this['_repository']['hasCommentThread'](_0x163edc))throw new _0x766f41('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x330a85}=this['_repository']['getCommentThread'](_0x163edc);this['_repository']['fire'](bt('updateComment',_0x330a85,_0x163edc),{'channelId':_0x330a85,'threadId':_0x163edc,'commentId':_0x5b8c6b,..._0x188088});}['setAttribute'](_0x4bb82b,_0x474523){const _0x53b098=It(this['attributes']);At(_0x53b098,_0x4bb82b,_0x474523),this['update']({'attributes':_0x53b098});}['removeAttribute'](_0x28362d){const _0x4decdf=It(this['attributes']);yt(_0x4decdf,_0x28362d),this['update']({'attributes':_0x4decdf});}['remove'](_0x493aa8={}){if(!_0x493aa8['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x313f63,id:_0x2c9c23}=this;if(!this['_repository']['hasCommentThread'](_0x313f63))throw new _0x766f41('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x508886}=this['_repository']['getCommentThread'](_0x313f63);this['_repository']['fire'](bt('removeComment',_0x508886,_0x313f63),{'channelId':_0x508886,'threadId':_0x313f63,'commentId':_0x2c9c23,..._0x493aa8});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x462b47,..._0x4dbb6c){for(const _0x4d996b of _0x4dbb6c)void 0x0!==_0x4d996b&&(_0x462b47+=':'+String(_0x4d996b));return _0x462b47;}class J extends _0x1135cd{['refresh'](){const _0x4ea0a3=this['editor']['model']['document']['selection'];for(const _0x1c3b66 of _0x4ea0a3['getRanges']())if(this['_hasContent'](_0x1c3b66))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x3ab387=_0x5ec6e9()}={}){const _0x252130=this['editor']['model'],_0x3e0a74=[];for(const _0x421512 of _0x252130['document']['selection']['getRanges']())this['_hasContent'](_0x421512)&&_0x3e0a74['push'](this['_trimToContent'](_0x421512));_0x252130['change'](_0x538742=>{for(const _0x3dddfe of _0x3e0a74){const _0x1b9706=_0x5ec6e9()['substr'](0x1,0x5),_0xab7cab='comment:'+_0x3ab387+':'+_0x1b9706;_0x538742['addMarker'](_0xab7cab,{'range':_0x3dddfe,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x13fb9a){for(const _0x350cf2 of _0x13fb9a['getItems']())if(this['_itemIsContent'](_0x350cf2))return!0x0;return!0x1;}['_itemIsContent'](_0x466821){return _0x466821['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x466821)&&!_0x466821['is']('element','tableCell');}['_trimToContent'](_0x158ea8){const _0x1ffbab=_0x59d68b=>!this['_itemIsContent'](_0x59d68b['item']),_0x3de330=_0x158ea8['start']['getLastMatchingPosition'](_0x1ffbab),_0x5a77ef=_0x158ea8['end']['getLastMatchingPosition'](_0x1ffbab,{'direction':'backward'});return this['editor']['model']['createRange'](_0x3de330,_0x5a77ef);}}class P extends _0x44c214{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45d0b7){super(_0x45d0b7),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xab40c6=this['editor'],_0x3441a4=_0xab40c6['model']['document']['selection'],_0x4491a2=_0x23ed5d(()=>this['refreshSelectedViews'](),0xa);_0x3441a4['on']('change:range',(_0x5d14ac,_0x3c9588)=>{_0x3c9588['directChange']&&(_0x4491a2['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xab40c6['editing']['view']['document'],'change:isFocused',(_0xb13e6e,_0x1d7934,_0x48ed24)=>{_0x48ed24&&_0x4491a2();}),this['listenTo'](_0xab40c6['ui']['focusTracker'],'change:isFocused',(_0x24ba24,_0x240f2d,_0x6897be)=>{_0x6897be||_0xab40c6['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4d445e=>this['_editorAnnotationsData']['has'](_0x4d445e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x187375){if(this['_editorAnnotations']['has'](_0x187375['view']))return;this['_editorAnnotations']['add'](_0x187375['view']),this['editor']['ui']['focusTracker']['add'](_0x187375['view']['element']);const _0x410622=this['editor']['plugins']['get'](N);this['listenTo'](_0x410622['collection'],'remove',(_0xa748,_0x26fc0b)=>{this['editor']['ui']['focusTracker']['remove'](_0x26fc0b['view']['element']),this['_editorAnnotations']['delete'](_0x26fc0b['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4fef60){if('function'!=typeof _0x4fef60)throw new _0x766f41('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4fef60);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x43ca83,annotations:_0x55ace9}){const _0x5b36f9=[],_0x4b79e2=this['editor']['model']['document']['selection'],_0x11ecda=Array['from'](_0x4b79e2['getRanges']());for(const [_0x4ad871,_0x12b60c]of this['_editorAnnotationsData']){const _0x1e32ef=_0x342e90(_0x12b60c),_0x326813=_0x55ace9['getByInnerView'](_0x4ad871);_0x1e32ef&&_0x326813&&_0x5b36f9['push']({'annotation':_0x326813,'range':_0x1e32ef});}function _0x342e90(_0x5d9ab0){for(const _0x281e43 of _0x5d9ab0)for(const _0x5a7019 of _0x11ecda)if(_0x281e43['containsRange'](_0x5a7019,!_0x4b79e2['isCollapsed']))return _0x281e43;return null;}return _0x5b36f9['sort']((_0x2d1245,_0x5eb84f)=>{const _0x5beb96=_0x2d1245['range'],_0x612525=_0x5eb84f['range'];if(!_0x5beb96['isEqual'](_0x612525)){if(_0x5beb96['containsRange'](_0x612525,!0x0))return 0x1;if(_0x612525['containsRange'](_0x5beb96,!0x0))return-0x1;}return _0x2d1245['annotation']==_0x43ca83?-0x1:_0x5eb84f['annotation']==_0x43ca83?0x1:0x0;})['map'](_0x1d03c8=>_0x1d03c8['annotation']);}get['_editorAnnotationsData'](){const _0x2f623f=new Map();for(const _0x141ebe of Array['from'](this['_dataCollectors']))for(const [_0x51781f,_0x35d054]of _0x141ebe())_0x2f623f['set'](_0x51781f,_0x35d054);return _0x2f623f;}}class st extends _0x44c214{['afterInit'](){const _0x49995f=this['editor'];if(!_0x49995f['plugins']['has']('RestrictedEditingModeEditing'))return;_0x49995f['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x44c214{constructor(_0x330fc7){super(_0x330fc7),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1aaaf7=this['editor'],_0x483130=_0x1aaaf7['commands']['get']('importWord'),_0x903600=_0x1aaaf7['plugins']['get'](it);_0x483130&&(_0x483130['on']('execute',(_0x368f95,[,_0x270579])=>{_0x270579['collaboration_features']={'comments':!0x0,'user_id':_0x903600['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x483130,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x263fdf,_0xe38fb6){const {comment_threads:_0x93b826}=_0xe38fb6;_0x93b826&&_0x93b826['forEach'](({thread_id:_0x1f0898,comments:_0x4ac8e0,is_resolved:_0x22f460})=>{const _0x652ab3=new Date(),_0x5bc24f=_0x4ac8e0['map'](({author:_0x2c9a3b,content:_0x4fcc10,created_at:_0x17ef6c})=>({'content':_0x4fcc10,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x652ab3,'attributes':{'@external':{'authorName':_0x2c9a3b,'createdAt':_0x17ef6c?new Date(_0x17ef6c):new Date(),'source':'importWord'}}})),_0x2d342=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2d342,'threadId':_0x1f0898,'comments':_0x5bc24f,'resolvedAt':_0x22f460?_0x652ab3:null});});}}class at extends _0x44c214{constructor(_0xef27e9){super(_0xef27e9),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0xfd92a1=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0xfd92a1,'contentInsertion',(_0xac7a48,_0x2d4923)=>this['_removeMarkersWithoutThreads'](_0x2d4923['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x146d2d){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x146d2d;const _0x33cfb6=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5ba783 of _0x146d2d['keys']()){const [_0x236ae6,_0x4d9d3a]=_0x5ba783['split'](':');'comment'!=_0x236ae6||_0x33cfb6['hasCommentThread'](_0x4d9d3a)||_0x146d2d['delete'](_0x5ba783);}return _0x146d2d;}['_registerMarkerInClipboardPipeline'](){const _0x30d9f6=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3e9a2f=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3e9a2f&&_0x30d9f6['_registerMarkerToCopy']('comment',_0x3e9a2f);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x588191){switch(_0x588191){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 _0x44c214{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x2fb14f,_0x1e506b)=>{if(!_0x1e506b['options']['showCommentHighlights'])return null;if(_0x1e506b['options']['ignoreResolvedComments']){const {id:_0x279798}=er(_0x2fb14f['markerName']),_0x2cf10e=this['editor']['plugins']['get'](o)['getCommentThread'](_0x279798);if(_0x2cf10e&&_0x2cf10e['isResolved']&&_0x2fb14f['item'])return _0x1e506b['consumable']['consume'](_0x2fb14f['item'],'addMarker:'+_0x2fb14f['markerName']),_0x1e506b['consumable']['consume'](_0x2fb14f['item'],'removeMarker:'+_0x2fb14f['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4304c0=>{_0x4304c0['on']('addMarker:comment',(_0x302910,_0x58ec18,_0x192798)=>{if(!_0x192798['options']['showCommentHighlights'])return;const _0x4e05b2=_0x58ec18['item'];if(!_0x4e05b2)return;const _0x32261a=_0x192798['mapper']['toViewElement'](_0x4e05b2);this['editor']['model']['schema']['isObject'](_0x4e05b2)&&_0x32261a&&!_0x32261a['getCustomProperty']('widget')&&_0x32261a['is']('containerElement')&&_0xc2c561(_0x32261a,_0x192798['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x32790f,{writer:_0x1da041,options:_0x18db42})=>{if(!_0x18db42['showCommentHighlights'])return null;const _0x46dd30=_0x1da041['createContainerElement']('div'),_0x4377a2=_0x1da041['createEmptyElement']('hr');return _0x1da041['addClass']('ck-horizontal-line',_0x46dd30),_0x1da041['insert'](_0x1da041['createPositionAt'](_0x46dd30,0x0),_0x4377a2),_0x46dd30;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x302952,{writer:_0x1fd8f0,options:_0x55dff4})=>{if(!_0x55dff4['showCommentHighlights'])return null;const _0x53f8bd=_0x1fd8f0['createContainerElement']('span'),_0x16d76d=_0x1fd8f0['createEmptyElement']('img');return _0x1fd8f0['addClass']('image-inline',_0x53f8bd),_0x1fd8f0['insert'](_0x1fd8f0['createPositionAt'](_0x53f8bd,0x0),_0x16d76d),_0x53f8bd;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x519a06,{writer:_0x3bb6e4,options:_0x445580})=>{if(_0x445580['showCommentHighlights'])return _0x3bb6e4['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x44a9a0,_0x458ec0,_0x140316)=>{_0x140316['options']['showCommentHighlights']&&_0x44a9a0['stop']();},{'priority':'high'});}}class r extends _0x44c214{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(_0x2903c4){super(_0x2903c4),this['set']('isThreadsLoadingPaused',!0x0),_0x2903c4['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0xa12d9a,_0xd087b6,_0x3a85b8,_0x933545)=>{const _0x2a518e=_0x2903c4['plugins']['get'](o),_0x2a3f3e=_0x3a85b8?er(_0x3a85b8)['id']:null;if(_0x2903c4['model']['change'](()=>{if(_0x2a3f3e){const _0x5d664d=this['getAllMarkersForId'](_0x2a3f3e);for(const _0x39e2c9 of _0x5d664d)_0x2903c4['editing']['reconvertMarker'](_0x39e2c9);}if(_0x933545){const {id:_0x2d9e7f}=er(_0x933545),_0xac2736=_0x2a518e['getCommentThread'](_0x2d9e7f);if(_0xac2736&&!_0xac2736['isAttached'])return;const _0x4e008c=this['getAllMarkersForId'](_0x2d9e7f);for(const _0x2e2183 of _0x4e008c)_0x2903c4['editing']['reconvertMarker'](_0x2e2183);}}),_0x2a3f3e){const _0x36dcd0=_0x2a518e['getCommentThread'](_0x2a3f3e);_0x36dcd0&&_0x36dcd0['isResolved']&&this['scrollToThreadMarker'](_0x2a3f3e);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x159a55=this['editor'],_0x2c6af2=_0x159a55['plugins']['get'](o),_0x474013=_0x159a55['config']['get']('collaboration.channelId');_0x159a55['commands']['add']('addCommentThread',new J(_0x159a55)),this['listenTo'](_0x159a55,'change:isReadOnly',(_0x5452ea,_0x18b302,_0x2dfc39)=>{_0x2c6af2['switchReadOnly'](_0x2dfc39,_0x159a55['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x2c6af2,ft('addCommentThread',_0x474013),(_0x4e6382,{threadId:_0x125f81})=>{const _0x52c9c4=this['editor']['plugins']['get'](o)['getCommentThread'](_0x125f81);_0x52c9c4&&_0x52c9c4['unlinkedAt']&&this['_attachArchivedThread'](_0x125f81);}),this['listenTo'](_0x2c6af2,ft('removeCommentThread',_0x474013),(_0x394350,{threadId:_0x2fd8e9})=>{_0x159a55['model']['enqueueChange']({'isUndoable':!0x1},_0x22a045=>{const _0x53bb17=this['getAllMarkersForId'](_0x2fd8e9);for(const _0x3b8cf6 of _0x53bb17)_0x22a045['removeMarker'](_0x3b8cf6);});}),this['listenTo'](_0x2c6af2,ft('resolveCommentThread',_0x474013),(_0x5d0d10,{threadId:_0x107936})=>{(this['_reconvertMarkers'](_0x107936),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x107936)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x2c6af2,ft('reopenCommentThread',_0x474013),(_0x2828b0,{threadId:_0x448840})=>{this['_reconvertMarkers'](_0x448840);},{'priority':'low'}),this['listenTo'](_0x2c6af2,ft('addComment',_0x474013),(_0x256e36,{threadId:_0x5a5116,isFromAdapter:_0x35ed33})=>{const _0x4d0a56=this['getAllMarkersForId'](_0x5a5116);if(_0x35ed33||0x0==_0x4d0a56['length']||!_0x2c6af2['hasCommentThread'](_0x5a5116))return;0x1===_0x2c6af2['getCommentThread'](_0x5a5116)['length']&&_0x159a55['model']['enqueueChange']({'isUndoable':!0x1},_0x53a133=>{for(const _0x4e396 of _0x4d0a56)_0x53a133['updateMarker'](_0x4e396,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x4b71a2){const _0x34bed5=_0x9b2568([0x4c,0x4d,0x58,0x54,0x75,0x49,0x5a,0x64,0x6c,0x31,0x6d,0x57,0x37,0x77,0x39,0x36,0x59,0x73,0x32,0x53,0x79,0x69,0x56,0x4f,0x78,0x55,0x51,0x7a,0x30,0x44,0x33,0x61,0x6b,0x42,0x45,0x70,0x63,0x72,0x65,0x6a,0x38,0x48,0x35,0x4a,0x41,0x47,0x68,0x52,0x62,0x4e,0x4b,0x76,0x67,0x50,0x74,0x66,0x6f,0x46,0x6e,0x71,0x43,0x34]),_0x4be3ff=0x58bcdd76,_0x325ab0=0x58bb84ae^_0x4be3ff,_0x2092dd=window[_0x9b2568([0x44,0x61,0x74,0x65])][_0x9b2568([0x6e,0x6f,0x77])](),_0x4bb7c8=_0x4b71a2[_0x9b2568([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a8821=new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40c38d=>{_0x4bb7c8[_0x9b2568([0x6f,0x6e,0x63,0x65])](_0x9b2568([0x72,0x65,0x61,0x64,0x79]),_0x40c38d);}),_0x1baad0={[_0x9b2568([0x6b,0x74,0x79])]:_0x9b2568([0x45,0x43]),[_0x9b2568([0x75,0x73,0x65])]:_0x9b2568([0x73,0x69,0x67]),[_0x9b2568([0x63,0x72,0x76])]:_0x9b2568([0x50,0x2d,0x32,0x35,0x36]),[_0x9b2568([0x78])]:_0x9b2568([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]),[_0x9b2568([0x79])]:_0x9b2568([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]),[_0x9b2568([0x61,0x6c,0x67])]:_0x9b2568([0x45,0x53,0x32,0x35,0x36])},_0x3c3876=_0x4bb7c8[_0x9b2568([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9b2568([0x67,0x65,0x74])](_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x469796(){let _0x4a8390,_0xb0872b=null,_0x3c0169=null;try{if(_0x3c3876==_0x9b2568([0x47,0x50,0x4c]))return _0x9b2568([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a8390=_0x126e98(),!_0x4a8390)return _0x9b2568([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a8390[_0x9b2568([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c0169=_0x5028e2(_0x4a8390[_0x9b2568([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a8390[_0x9b2568([0x6a,0x74,0x69])])),await _0x16e62b()?_0x2720c3()?_0x149b76()?_0x9b2568([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2fc192()?(_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b2568([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb0872b=_0xa1e88e(_0x9b2568([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b2568([0x74,0x72,0x69,0x61,0x6c])&&(_0xb0872b=_0xa1e88e(_0x9b2568([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b2568([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xb0872b=_0xa1e88e(_0x9b2568([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x451963()):_0x9b2568([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9b2568([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9b2568([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x50d1f6){return _0x9b2568([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x149b76(){const _0x199af7=[_0x9b2568([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9b2568([0x74,0x72,0x69,0x61,0x6c])][_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2092dd/0x3e8:0xe10*_0x325ab0;return _0x4a8390[_0x9b2568([0x65,0x78,0x70])]<_0x199af7;}function _0x2720c3(){const _0x4daf92=_0x4a8390[_0x9b2568([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4daf92)return!0x1;if(_0x4daf92[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b2568([0x2a])))return!0x0;if(_0x4daf92[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b2568([0x43,0x4d,0x54])))return!0x0;if(_0x4daf92[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b2568([0x52,0x43,0x4d,0x54]))){if(_0x2f6f33())return!0x0;if(_0x4cabfc()||_0x15a58c())return!0x0;}return!0x1;}function _0x2fc192(){const _0xfd22dc=_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfd22dc||0x0==_0xfd22dc[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x13f589}=new URL(window[_0x9b2568([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xfd22dc[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f589))return!0x0;const _0x25f904=_0x13f589[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])](_0x9b2568([0x2e]));return _0xfd22dc[_0x9b2568([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a8712=>_0x5a8712[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b2568([0x2a])))[_0x9b2568([0x6d,0x61,0x70])](_0x12097b=>_0x12097b[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])](_0x9b2568([0x2e])))[_0x9b2568([0x73,0x6f,0x6d,0x65])](_0x53d151=>_0x25f904[_0x9b2568([0x65,0x76,0x65,0x72,0x79])]((_0x3e5835,_0x39352a)=>_0x53d151[_0x39352a]===_0x3e5835||_0x53d151[_0x39352a]===_0x9b2568([0x2a])));}function _0x451963(){return _0xb0872b&&_0x3c0169?new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f0ea7,_0x24605a)=>{_0xb0872b[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x2f0ea7,_0x24605a),_0x3c0169[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x3f0993=>{_0x3f0993!=_0x9b2568([0x56,0x61,0x6c,0x69,0x64])&&_0x2f0ea7(_0x3f0993);},_0x24605a);}):_0xb0872b||_0x3c0169||_0x9b2568([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5028e2(_0x585162,_0x168978){return new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3730b8=>{if(_0x220cee())return _0x3730b8(_0x9b2568([0x56,0x61,0x6c,0x69,0x64]));_0x433faf(),_0x4bb7c8[_0x9b2568([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9b2568([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29e1dc=!0x1;const _0x3b82c2=_0x5ec6e9();function _0x2ff593(_0x49e9ba){return!!_0x49e9ba&&(typeof _0x49e9ba===_0x9b2568([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49e9ba===_0x9b2568([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49e9ba[_0x9b2568([0x74,0x68,0x65,0x6e])]===_0x9b2568([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49e9ba[_0x9b2568([0x63,0x61,0x74,0x63,0x68])]===_0x9b2568([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d5f00(_0x305b67){_0x514916(_0x305b67)[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x1d47ec=>{if(!_0x1d47ec||_0x1d47ec[_0x9b2568([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9b2568([0x6f,0x6b]))return _0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb11222(_0x286e61(_0x3b82c2+_0x168978))!=_0x1d47ec[_0x9b2568([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9b2568([0x56,0x61,0x6c,0x69,0x64]);})[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x1bb638=>(_0x3f2fe0(),_0x1bb638),()=>{const _0x590e16=_0x564fc2();return null==_0x590e16?(_0x3f2fe0(),_0x9b2568([0x56,0x61,0x6c,0x69,0x64])):_0x9b2568(_0x2092dd-_0x590e16>(0x7cb05976^_0x4be3ff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x3730b8)[_0x9b2568([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3730b8(_0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x543af8=0x588a33f6^_0x4be3ff;function _0x3f2fe0(){const _0x49b206=_0x9b2568([0x6c,0x6c,0x63,0x74,0x2d])+_0xb11222(_0x286e61(_0x585162)),_0x395f1c=_0x321577(_0xb11222(window[_0x9b2568([0x4d,0x61,0x74,0x68])][_0x9b2568([0x63,0x65,0x69,0x6c])](_0x2092dd/_0x543af8)));window[_0x9b2568([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b2568([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49b206,_0x395f1c);}function _0x564fc2(){const _0x11530f=_0x9b2568([0x6c,0x6c,0x63,0x74,0x2d])+_0xb11222(_0x286e61(_0x585162)),_0x402a90=window[_0x9b2568([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b2568([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11530f);return _0x402a90?window[_0x9b2568([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x321577(_0x402a90),0x10)*_0x543af8:null;}function _0x514916(_0x5e0c12){return new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4246ae,_0x325e4c)=>{_0x5e0c12[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x4246ae,_0x325e4c),window[_0x9b2568([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x325e4c,0x58bd09b6^_0x4be3ff);});}}_0x4bb7c8[_0x9b2568([0x6f,0x6e])](_0x9b2568([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x50cb61,_0x2dea24)=>{if(_0x2dea24[0x0]!=_0x585162)return _0x3730b8(_0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2dea24[0x1]={..._0x2dea24[0x1],[_0x9b2568([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b82c2};},{[_0x9b2568([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b2568([0x68,0x69,0x67,0x68])}),_0x4bb7c8[_0x9b2568([0x6f,0x6e])](_0x9b2568([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x350f08=>{_0x2ff593(_0x350f08[_0x9b2568([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29e1dc=!0x0,_0x4d5f00(_0x350f08[_0x9b2568([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9b2568([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b2568([0x6c,0x6f,0x77])}),_0x5a8821[_0x9b2568([0x74,0x68,0x65,0x6e])](()=>{_0x29e1dc||_0x3730b8(_0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x220cee(){return _0x4bb7c8[_0x9b2568([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b2568([0x76,0x69,0x65,0x77])][_0x9b2568([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9b2568([0x61,0x75,0x74,0x6f]);}function _0x433faf(){_0x4bb7c8[_0x9b2568([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b2568([0x76,0x69,0x65,0x77])][_0x9b2568([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9b2568([0x61,0x75,0x74,0x6f]);}}function _0xa1e88e(_0x2b2119){const _0x4ed2a1=[new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aeb17=>setTimeout(_0x5aeb17,0x58b5e3ba^_0x4be3ff)),_0x5a8821[_0x9b2568([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15e66e=>{let _0x4329d7=0x0;_0x4bb7c8[_0x9b2568([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b2568([0x6f,0x6e])](_0x9b2568([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5adb13,_0x240671)=>{_0x240671[0x0][_0x9b2568([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4329d7++,_0x4329d7==(0x58bcdc8e^_0x4be3ff)&&(_0x15e66e(),_0x5adb13[_0x9b2568([0x6f,0x66,0x66])]());});}))];return window[_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9b2568([0x72,0x61,0x63,0x65])](_0x4ed2a1)[_0x9b2568([0x74,0x68,0x65,0x6e])](()=>_0x2b2119);}async function _0x57a3d8(){await _0x5a8821,_0x4bb7c8[_0x9b2568([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b2568([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x140f28,_0x4bb7c8[_0x9b2568([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b2568([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x140f28,_0x4bb7c8[_0x9b2568([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9b2568([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f6f33(){return _0x9ead28(_0x9b2568([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x39cb87(_0x9b2568([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x9b2568([0x73,0x74,0x61,0x74,0x65])]==_0x9b2568([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4cabfc(){return _0x9ead28(_0x9b2568([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 _0x15a58c(){return _0x9ead28(_0x9b2568([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f5d11(_0x2c4ab0){const _0x43d144=_0x25b322();_0x4bb7c8[_0x43d144]=_0x9b2568([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c4ab0,_0x2c4ab0!=_0x9b2568([0x56,0x61,0x6c,0x69,0x64])&&_0x57a3d8();}function _0x25b322(){const _0x2e06c6=window[_0x9b2568([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9b2568([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9b2568([0x6e,0x6f,0x77])]())[_0x9b2568([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9b2568([0x2e]),'');let _0x4ebc0a=_0x9b2568([0x4c]);for(let _0x2609dc=0x0;_0x2609dc<_0x2e06c6[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2609dc+=0x2){let _0x5c7c6b=window[_0x9b2568([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e06c6[_0x9b2568([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2609dc,_0x2609dc+0x2));_0x5c7c6b>=_0x34bed5[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c7c6b-=_0x34bed5[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ebc0a+=_0x34bed5[_0x5c7c6b];}return _0x4ebc0a;}function _0x126e98(){const _0x45b793=_0x3c3876[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])](_0x9b2568([0x2e]));if(0x3!=_0x45b793[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d7381(_0x45b793[0x1]);function _0x1d7381(_0x19de8f){const _0x3397af=_0x7ed6a9(_0x19de8f);return _0x3397af&&_0x4ffa66()?_0x3397af:null;function _0x4ffa66(){const _0x1943ab=_0x3397af[_0x9b2568([0x6a,0x74,0x69])],_0x3bf2c7=window[_0x9b2568([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1943ab[_0x9b2568([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1943ab[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc65f7b={..._0x3397af,[_0x9b2568([0x6a,0x74,0x69])]:_0x1943ab[_0x9b2568([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1943ab[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc65f7b[_0x9b2568([0x76,0x63])],_0x286e61(_0xc65f7b)==_0x3bf2c7;}}}async function _0x16e62b(){let _0x33f5d0=!0x0;try{const _0x309cb2=_0x3c3876[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])](_0x9b2568([0x2e])),[_0x33826f,_0xd1b43d,_0x2bf460]=_0x309cb2;return _0x59817b(_0x33826f),await _0x11f259(_0x33826f,_0xd1b43d,_0x2bf460),_0x33f5d0;}catch(_0x38e7c8){return!0x1;}function _0x59817b(_0x384716){const _0x188e2d=_0x7ed6a9(_0x384716);_0x188e2d&&_0x188e2d[_0x9b2568([0x61,0x6c,0x67])]==_0x9b2568([0x45,0x53,0x32,0x35,0x36])||(_0x33f5d0=!0x1);}async function _0x11f259(_0x54d645,_0x14607a,_0x2a4471){const _0x49d8d4=window[_0x9b2568([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9b2568([0x66,0x72,0x6f,0x6d])](_0x3c4638(_0x2a4471),_0x51e767=>_0x51e767[_0x9b2568([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44c832=new window[(_0x9b2568([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9b2568([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54d645+_0x9b2568([0x2e])+_0x14607a),_0x41ac9=window[_0x9b2568([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9b2568([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41ac9)return;const _0x2f9b17=await _0x41ac9[_0x9b2568([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9b2568([0x6a,0x77,0x6b]),_0x1baad0,{[_0x9b2568([0x6e,0x61,0x6d,0x65])]:_0x9b2568([0x45,0x43,0x44,0x53,0x41]),[_0x9b2568([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9b2568([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9b2568([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41ac9[_0x9b2568([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9b2568([0x6e,0x61,0x6d,0x65])]:_0x9b2568([0x45,0x43,0x44,0x53,0x41]),[_0x9b2568([0x68,0x61,0x73,0x68])]:{[_0x9b2568([0x6e,0x61,0x6d,0x65])]:_0x9b2568([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f9b17,_0x49d8d4,_0x44c832)||(_0x33f5d0=!0x1);}}function _0x7ed6a9(_0x45587b){return _0x45587b[_0x9b2568([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9b2568([0x65,0x79]))?JSON[_0x9b2568([0x70,0x61,0x72,0x73,0x65])](_0x3c4638(_0x45587b)):null;}function _0x3c4638(_0x50a1db){return window[_0x9b2568([0x61,0x74,0x6f,0x62])](_0x50a1db[_0x9b2568([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9b2568([0x2b]))[_0x9b2568([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9b2568([0x2f])));}function _0x286e61(_0x398af5){let _0x2af82b=0x1505;function _0x2664e1(_0x307871){for(let _0x4456cc=0x0;_0x4456cc<_0x307871[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4456cc++){const _0x50a70a=_0x307871[_0x9b2568([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4456cc);_0x2af82b=(_0x2af82b<<0x5)+_0x2af82b+_0x50a70a,_0x2af82b&=_0x2af82b;}}function _0x53d1da(_0x357001){Array[_0x9b2568([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x357001)?_0x357001[_0x9b2568([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53d1da):_0x357001&&typeof _0x357001==_0x9b2568([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9b2568([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x357001)[_0x9b2568([0x73,0x6f,0x72,0x74])]()[_0x9b2568([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27a6d9,_0x3e426c])=>{_0x2664e1(_0x27a6d9),_0x53d1da(_0x3e426c);}):_0x2664e1(window[_0x9b2568([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x357001));}return _0x53d1da(_0x398af5),_0x2af82b>>>0x0;}function _0xb11222(_0x42b7e6){return _0x42b7e6[_0x9b2568([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9b2568([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9b2568([0x30]));}function _0x321577(_0x17b6a7){return _0x17b6a7[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9b2568([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9b2568([0x6a,0x6f,0x69,0x6e])]('');}function _0x9ead28(_0x43067d){return _0x4bb7c8[_0x9b2568([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9b2568([0x68,0x61,0x73])](_0x43067d);}function _0x39cb87(_0x328c20){return _0x4bb7c8[_0x9b2568([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9b2568([0x67,0x65,0x74])](_0x328c20);}function _0x140f28(){}function _0x9b2568(_0x5f1813){return _0x5f1813['map'](_0x5c3779=>String['fromCharCode'](_0x5c3779))['join']('');}_0x2f5d11(await _0x469796());}(this);}['destroy'](){const _0x1eba5a=this['editor']['plugins']['get'](o),_0x19fda2=this['editor']['config']['get']('collaboration.channelId');for(const _0x1535e2 of _0x1eba5a['getCommentThreads']({'channelId':_0x19fda2}))_0x1eba5a['_detachCommentThread'](_0x1535e2['id']),_0x1eba5a['_threads']['delete'](_0x1535e2['id']);super['destroy']();}['hasMarkerForId'](_0x491d21){return this['getAllMarkersForId'](_0x491d21)['length']>0x0;}['getAllMarkersForId'](_0x5e9857){const _0x68bf4=[];for(const _0x26e4c6 of this['editor']['model']['markers'])_0x26e4c6['name']['startsWith']('comment:'+_0x5e9857)&&_0x68bf4['push'](_0x26e4c6);return _0x68bf4;}['scrollToThreadMarker'](_0x14f3d4){const _0x5e12dc=this['_getTargetForId'](_0x14f3d4);_0x5e12dc&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x14f3d4&&rt({'target':_0x5e12dc[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x51ae4f){this['editor']['model']['change'](()=>{for(const _0x5306be of this['getAllMarkersForId'](_0x51ae4f))this['editor']['editing']['reconvertMarker'](_0x5306be);});}['_attachArchivedThread'](_0x4b542d){const _0x4c3438=this['editor']['plugins']['get'](o),_0x4240b1=this['editor']['plugins']['get'](P),_0x213066=_0x4c3438['getCommentThread'](_0x4b542d);if(!_0x213066['isAttached']){const _0x2a85c1=_0x213066['attachTo'](()=>this['_getTargetForId'](_0x213066['id']));_0x4240b1['registerAnnotation'](_0x2a85c1),_0x213066['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x32d0be=this['editor'],_0x27298e=_0x32d0be['plugins']['get'](it);_0x32d0be['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xe9c0f3,_0x3c6535)=>{const {id:_0xb56b61}=er(_0xe9c0f3['markerName']),_0x5d85dc=_0x32d0be['plugins']['get'](o)['getCommentThread'](_0xb56b61),_0x46d098=this['activeMarker']&&er(this['activeMarker'])['id']===_0xb56b61;let _0x482fdd;if(_0x5d85dc&&_0x5d85dc['isResolved']&&!_0x46d098&&_0xe9c0f3['item'])return _0x3c6535['consumable']['consume'](_0xe9c0f3['item'],'addMarker:'+_0xe9c0f3['markerName']),_0x3c6535['consumable']['consume'](_0xe9c0f3['item'],'removeMarker:'+_0xe9c0f3['markerName']),null;const _0x1a4610=['ck-comment-marker'];return _0x46d098&&_0x1a4610['push']('ck-comment-marker--active'),_0x482fdd=_0x5d85dc&&_0x5d85dc['length']?_0x5d85dc['comments']['first']['author']['id']:_0x27298e['me']['id'],{'classes':_0x1a4610,'attributes':{'data-comment':_0xb56b61,'data-author-id':_0x482fdd}};}}),_0x32d0be['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x89f097,{options:_0x19cd7d})=>{if(_0x19cd7d['showCommentHighlights'])return null;const _0x54b403=_0x32d0be['plugins']['get'](o),_0x2fe7e3=_0x32d0be['model']['markers']['get'](_0x89f097),{id:_0x30c881,part:_0x107ec6}=er(_0x89f097);if(_0x2fe7e3&&!_0x2fe7e3['affectsData'])return null;if(_0x19cd7d['ignoreResolvedComments']){const _0xc464de=_0x54b403['getCommentThread'](_0x30c881);if(_0xc464de&&_0xc464de['isResolved'])return null;}return{'group':'comment','name':_0x107ec6?_0x30c881+':'+_0x107ec6:_0x30c881};}}),_0x32d0be['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x1713f5,{writer:_0x58885f})=>_0x58885f['createElement']('$marker',{'data-name':'comment:'+_0x1713f5['getAttribute']('id')})}),_0x32d0be['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x276de5=this['editor'],_0x5473e8=_0x276de5['plugins']['get'](o),_0xf04139=new Set(),_0x213f0d=new Set();_0x276de5['model']['document']['registerPostFixer'](_0x51caa=>{let _0x908f35=!0x1;for(const {name:_0x3c44f4,data:_0x1c02ed}of _0x276de5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x47e006,id:_0x45e0c8}=er(_0x3c44f4);let _0x3df569=_0x1c02ed['newRange'];if('comment'!==_0x47e006||!_0x3df569)continue;const _0x320d54='$graveyard'===_0x3df569['root']['rootName'];_0x320d54||(_0x3df569=dt(_0x3df569,_0x276de5['model']),!_0x3df569||_0x3df569['isCollapsed']||!_0x1c02ed['newRange']||_0x3df569['isEqual'](_0x1c02ed['newRange']))?_0x276de5['model']['hasContent'](_0x3df569)&&!_0x320d54?this['isThreadsLoadingPaused']?_0xf04139['add'](_0x3c44f4):this['_handleThreadMarker'](_0x3c44f4,_0x45e0c8):(_0x213f0d['add'](_0x3c44f4),_0xf04139['delete'](_0x3c44f4),_0x51caa['removeMarker'](_0x3c44f4),_0x908f35=!0x0):(_0x51caa['updateMarker'](_0x3c44f4,{'range':_0x3df569}),_0x908f35=!0x0);}return _0x908f35;}),this['on']('change:isThreadsLoadingPaused',(_0x74b35c,_0x416c5b,_0x4d4eab)=>{if(!_0x4d4eab&&_0xf04139['size'])for(const _0xdc7535 of _0xf04139){const {id:_0x20933c}=er(_0xdc7535);_0xf04139['delete'](_0xdc7535),_0x276de5['model']['markers']['get'](_0xdc7535)&&this['_handleThreadMarker'](_0xdc7535,_0x20933c);}}),this['listenTo'](_0x276de5['model']['document'],'change',()=>{for(const {name:_0x52518e,data:{newRange:_0x5cf5c2}}of _0x276de5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x24cdb2,id:_0x59858d}=er(_0x52518e);if('comment'!==_0x24cdb2)continue;const _0x265d95=_0x5473e8['getCommentThread'](_0x59858d),_0x47edb0=this['hasMarkerForId'](_0x59858d);_0x265d95&&(!_0x265d95['_hasTargetInContent']&&_0x5cf5c2&&_0x276de5['editing']['view']['once']('render',()=>{const _0x53293d=_0x276de5['plugins']['get'](N),_0x4f6993=_0x5473e8['_threadToController']['get'](_0x265d95)['view'];_0x53293d['getByInnerView'](_0x4f6993)['refreshVisibility']();},{'priority':'low'}),_0x265d95['_hasTargetInContent']=_0x47edb0||!!_0x5cf5c2),_0x5cf5c2||(_0x213f0d['add'](_0x52518e),_0xf04139['delete'](_0x52518e));}for(const _0x183e5b of _0x213f0d){const {id:_0x164b96}=er(_0x183e5b),_0x518830=_0x5473e8['getCommentThread'](_0x164b96);if(_0xf04139['delete'](_0x183e5b),!_0x518830)continue;const _0x4d66c0=this['hasMarkerForId'](_0x164b96);_0x4d66c0||_0x518830['isSubmitted']?_0x4d66c0||_0x518830['unlinkedAt']||_0x518830['setUnlinkedAt'](new Date()):_0x518830['remove']();}_0x213f0d['clear']();});}['_getTargetForId'](_0x3d9161){const _0x2a70c6=this['editor'],_0xd07937=this['getAllMarkersForId'](_0x3d9161);return et(_0x2a70c6['editing'],_0xd07937);}['_getTextContext'](_0x273623){const _0x4272cb=this['getAllMarkersForId'](_0x273623);let _0x37e554='',_0x4000b1=!0x1;for(const _0x373699 of _0x4272cb){const _0x54e644=_0x373699['getRange']();for(const _0x3ec4d6 of Array['from'](_0x54e644['getItems']()))_0x3ec4d6['is']('$textProxy')?(_0x37e554&&_0x4000b1&&(_0x37e554+='\x20',_0x4000b1=!0x1),_0x37e554+=_0x3ec4d6['data']):_0x4000b1=!0x0;_0x4000b1=!0x0;}return _0x37e554['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3f5e12,_0x59b254){const _0x1c5511=this['editor'],_0x1d41e4=_0x1c5511['plugins']['get'](o);let _0x15c160=_0x1d41e4['getCommentThread'](_0x59b254);const _0x296c50=_0x1c5511['config']['get']('collaboration.channelId'),_0x5bb7c4=_0x1c5511['plugins']['get'](P);if(_0x15c160&&(_0x15c160['unlinkedAt']&&_0x15c160['setUnlinkedAt'](null),_0x15c160['isAttached']))return _0x15c160;return!this['getAllMarkersForId'](_0x59b254)[0x0]['managedUsingOperations']?_0x1c5511['editing']['view']['once']('render',()=>{if(_0x1d41e4['getCommentThread'](_0x59b254))return;const _0x39e382=_0x1c5511['plugins']['get'](N);_0x15c160=_0x1d41e4['openNewCommentThread']({'channelId':_0x296c50,'threadId':_0x59b254,'target':()=>this['_getTargetForId'](_0x59b254),'context':{'type':'text','value':this['_getTextContext'](_0x59b254)}});const _0x47ed10=_0x1d41e4['_threadToController']['get'](_0x15c160)['view'],_0x4b3e4b=_0x39e382['getByInnerView'](_0x47ed10);_0x4b3e4b&&_0x5bb7c4['registerAnnotation'](_0x4b3e4b);},{'priority':'low'}):_0x1d41e4['fetchCommentThread']({'channelId':_0x296c50,'threadId':_0x59b254})['then'](_0x2b8779=>{if('destroyed'!==_0x1c5511['state']){if(_0x15c160=_0x2b8779,_0x15c160&&!_0x15c160['isAttached']){const _0x57243f=_0x15c160['attachTo'](()=>this['_getTargetForId'](_0x59b254));_0x5bb7c4['registerAnnotation'](_0x57243f),_0x15c160['isResolved']&&this['_reconvertMarkers'](_0x59b254);}else{if(!_0x15c160){const _0x19a4b3=this['getAllMarkersForId'](_0x59b254);_0x1c5511['model']['change'](_0x12ab3c=>{for(const _0x1bdf01 of _0x19a4b3)_0x12ab3c['removeMarker'](_0x1bdf01);});}}}}),_0x15c160;}['_handleThreadMarker'](_0x131da5,_0x341cfb){const _0x3ab778=this['_attachMarkerToThread'](_0x131da5,_0x341cfb);_0x3ab778&&!_0x3ab778['context']&&_0x3ab778['setContext']({'type':'text','value':this['_getTextContext'](_0x341cfb)});}['_initAriaMarkerChangeAnnouncements'](){const _0x53b990=this['editor'];ot(_0x53b990['model'],({left:_0xc7f1a6,entered:_0x4c0314})=>{for(const _0xd251a of _0xc7f1a6)if(mt(_0xd251a)){_0x53b990['ui']['ariaLiveAnnouncer']['announce'](S(_0x53b990['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x133dcf of _0x4c0314)if(mt(_0x133dcf)){_0x53b990['ui']['ariaLiveAnnouncer']['announce'](S(_0x53b990['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x44b7c0)));break;}});}}function ft(_0x44ff8b,_0x324967){return _0x324967?_0x44ff8b+':'+_0x324967:_0x44ff8b;}function er(_0x1614ed){const _0x2c88db=_0x1614ed['split'](':');return{'group':_0x2c88db[0x0],'id':_0x2c88db[0x1],'part':_0x2c88db[0x2]};}function dt(_0x91b722,_0x2c6ade){const _0x11057e=_0x2c6ade['schema'],_0x25f10e=_0x2c6ade['createRange'](_0x91b722['start']);for(const _0x153d14 of _0x91b722['getWalker']()){const {type:_0xa4563f,item:_0x4faf72,nextPosition:_0x87e3eb}=_0x153d14;if('text'===_0xa4563f||_0x11057e['isObject'](_0x4faf72)){const _0x4f8c59=_0x2c6ade['createPositionBefore'](_0x4faf72);_0x25f10e['isCollapsed']&&(_0x25f10e['start']=_0x4f8c59),_0x25f10e['end']=_0x87e3eb;}}return _0x25f10e;}function mt(_0x1579a9){return'comment'===er(_0x1579a9['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 _0x44c214{['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 _0x3f2e20=this['editor'],_0xf66a6f=_0x3f2e20['plugins']['get'](o),_0x32b6c2=_0x3f2e20['plugins']['get'](r),_0x61e210=_0x3f2e20['plugins']['get'](N),_0x234c6d=_0x3f2e20['plugins']['get'](P);_0x3f2e20['ui']['componentFactory']['add']('comment',()=>{const _0x19a07a=this['_createUIButton'](_0x3e77fe);return _0x19a07a['tooltip']=!0x0,_0x19a07a;}),_0x3f2e20['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0xa36070)),_0x234c6d['addSourceCollector'](()=>{const _0xf8cc8=[];for(const [_0x49e47e,_0x3f5079]of _0xf66a6f['_threadToController']){const _0x1c5603=_0x32b6c2['getAllMarkersForId'](_0x49e47e['id']),_0x41b6f9=_0x1c5603['map'](_0x49f728=>_0x49f728['getRange']());_0x1c5603['length']>0x0&&_0xf8cc8['push']([_0x3f5079['view'],_0x41b6f9]);}return _0xf8cc8;}),this['listenTo'](_0x61e210,'change:activeAnnotations',(_0x39b866,_0x410267,_0x1b4158)=>{const _0x48ec1b=Array['from'](_0x1b4158)['map'](_0x3027e1=>_0x3027e1['innerView'])['find'](_0x55c869=>_0xf66a6f['_viewToController']['has'](_0x55c869));if(!_0x48ec1b)return void(_0x32b6c2['activeMarker']=null);const _0x2b8381=_0xf66a6f['_viewToController']['get'](_0x48ec1b)['model']['id'],_0x115704='comment:'+_0x2b8381;_0x2b8381&&_0x32b6c2['hasMarkerForId'](_0x2b8381)?_0x32b6c2['activeMarker']=_0x115704:_0x32b6c2['activeMarker']&&(_0x32b6c2['activeMarker']=null);}),this['listenTo'](_0xf66a6f,'removeCommentThread',(_0x286df9,{threadId:_0x408788,isFromAdapter:_0x86b4ba})=>{!_0x86b4ba&&_0x3f2e20['ui']['focusTracker']['isFocused']&&_0x32b6c2['hasMarkerForId'](_0x408788)&&_0x3f2e20['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xf66a6f,'addComment',(_0x5ab9c9,{threadId:_0x5231d2,isFromAdapter:_0x2ab659})=>{if(_0x2ab659||!_0x32b6c2['hasMarkerForId'](_0x5231d2)||!_0xf66a6f['hasCommentThread'](_0x5231d2))return;0x1===_0xf66a6f['getCommentThread'](_0x5231d2)['length']&&(_0x3f2e20['editing']['view']['focus'](),_0x5ab9c9['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x146cde=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38db24;for(const _0x4eef68 in _0x146cde){const _0x31308f=_0x4eef68,_0x3bbcbe=_0x146cde[_0x31308f];if('commentsLicenseKeyValid'==_0x3bbcbe||'commentsLicenseKeyInvalid'==_0x3bbcbe||'commentsLicenseKeyExpired'==_0x3bbcbe||'commentsLicenseKeyDomainLimit'==_0x3bbcbe||'commentsLicenseKeyNotAllowed'==_0x3bbcbe||'commentsLicenseKeyEvaluationLimit'==_0x3bbcbe||'commentsLicenseKeyTrialLimit'==_0x3bbcbe||'commentsLicenseKeyDevelopmentLimit'==_0x3bbcbe||'commentsLicenseKeyUsageLimit'==_0x3bbcbe){delete _0x146cde[_0x31308f],_0x38db24=_0x3bbcbe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x38db24&&_0x146cde['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x38db24&&_0x146cde['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x38db24&&_0x146cde['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x38db24&&_0x146cde['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x38db24&&_0x146cde['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x38db24&&_0x146cde['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x38db24&&_0x146cde['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x38db24&&_0x146cde['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xad6a32){const _0x4ae73d=this['editor'],_0x5c8f49=new _0xad6a32(_0x4ae73d['locale']),_0xf38339=_0x4ae73d['commands']['get']('addCommentThread');return _0x5c8f49['set']({'label':S(_0x4ae73d['locale'],'Comment'),'icon':xt}),_0x5c8f49['bind']('isEnabled')['to'](_0xf38339),this['listenTo'](_0x5c8f49,'execute',()=>_0xf38339['execute']()),_0x5c8f49;}}class s extends _0x44c214{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x3a21c7){super(_0x3a21c7),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2fbf33,_0x4672b4,_0x12edd4)=>{_0x12edd4?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x54f0b6,_0x4a60c3]of this['editor']['commands'])_0x4a60c3['affectsData']&&'addCommentThread'!==_0x54f0b6&&_0x4a60c3['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x9f7d9b=this['editor']['editing']['view']['document'];this['listenTo'](_0x9f7d9b,'cut',_0x4cd9e2=>_0x4cd9e2['stop'](),{'priority':'highest'}),this['listenTo'](_0x9f7d9b,'clipboardInput',_0x460172=>_0x460172['stop'](),{'priority':'highest'}),this['listenTo'](_0x9f7d9b,'delete',_0x1066f3=>_0x1066f3['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x39febd,_0x1f0716]of this['editor']['commands'])_0x1f0716['affectsData']&&'addCommentThread'!==_0x39febd&&_0x1f0716['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x3f9f30{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38583b){super(_0x38583b),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x558a2b=this['context']['plugins']['get'](N);this['listenTo'](_0x558a2b,'_activateAnnotation',(_0x3decc1,_0xa710c8)=>{for(const _0x5b60ca of this['activeUIs']){const _0x274b59=this['_uis']['get'](_0x5b60ca);(0x0,this['_uisData']['get'](_0x5b60ca)['filter'])(_0xa710c8)&&_0x274b59['setActiveAnnotation'](_0xa710c8);}}),this['listenTo'](_0x558a2b,'_deactivateAllAnnotations',()=>{for(const _0x45a21c of this['activeUIs']){this['_uis']['get'](_0x45a21c)['setActiveAnnotation'](null);}}),this['listenTo'](_0x558a2b['_visibleAnnotations'],'add',(_0x3bb56b,_0x37ad8c)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x37ad8c);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x50e4d9){return this['activeUIs']['has'](_0x50e4d9);}['activate'](_0x36969b,_0xc7bb2f=()=>!0x0){const _0x59b941=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x36969b))throw new _0x766f41('annotationsuis-missing-ui',this,{'uiName':_0x36969b});this['isActive'](_0x36969b)&&this['deactivate'](_0x36969b),this['activeUIs']['add'](_0x36969b);const _0x261619=new x();!function({source:_0x2f499b,target:_0x274c48,filter:_0x4a1308}){for(const _0x4ab02d of _0x2f499b)_0x4a1308(_0x4ab02d)&&_0x274c48['add'](_0x4ab02d);_0x274c48['listenTo'](_0x2f499b,'add',(_0x103b75,_0x493238)=>{_0x4a1308(_0x493238)&&_0x274c48['add'](_0x493238);}),_0x274c48['listenTo'](_0x2f499b,'remove',(_0x50cd13,_0xac6a13)=>{_0x274c48['has'](_0xac6a13)&&_0x274c48['remove'](_0xac6a13);});}({'source':_0x59b941['_visibleAnnotations'],'target':_0x261619,'filter':_0xc7bb2f}),this['_uisData']['set'](_0x36969b,{'collection':_0x261619,'filter':_0xc7bb2f});const _0x4892a4=this['_uis']['get'](_0x36969b);_0x4892a4['attach'](_0x261619),this['listenTo'](_0x4892a4,'change:activeAnnotation',(_0x19e7b2,_0x439bbd,_0x1d2794,_0x5cb98f)=>{_0x5cb98f&&_0x59b941['_removeActiveAnnotation'](_0x5cb98f),_0x1d2794&&_0x59b941['_addActiveAnnotation'](_0x1d2794);});}['deactivate'](_0x34579b){if(this['activeUIs']['delete'](_0x34579b),!this['_uis']['has'](_0x34579b))throw new _0x766f41('annotationsuis-missing-ui',this,{'uiName':_0x34579b});const _0x4110ec=this['_uis']['get'](_0x34579b);_0x4110ec['detach'](),this['stopListening'](_0x4110ec),this['_uisData']['get'](_0x34579b)['collection']['destroy'](),this['_uisData']['delete'](_0x34579b);}['switchTo'](_0x21ace3){if(!this['_uis']['has'](_0x21ace3))throw new _0x766f41('annotationsuis-missing-ui',this,{'uiName':_0x21ace3});const _0x54f2df=this['context']['plugins']['get'](N),_0x21ed31=Array['from'](_0x54f2df['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x21ace3);const _0x24b9c6=this['_uis']['get'](_0x21ace3);_0x24b9c6['setActiveAnnotation'](_0x21ed31),_0x24b9c6['_setSelectedAnnotations']&&_0x21ed31&&_0x24b9c6['_setSelectedAnnotations']([_0x21ed31]);}['deactivateAll'](){for(const _0x4b6319 of this['activeUIs'])this['deactivate'](_0x4b6319);}['register'](_0xe6d9b8,_0x59648c){if(this['_uis']['has'](_0xe6d9b8))throw new _0x766f41('annotationsuis-register-already-registered');if('function'!=typeof _0x59648c['attach']||'function'!=typeof _0x59648c['detach']||'function'!=typeof _0x59648c['setActiveAnnotation'])throw new _0x766f41('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0xe6d9b8,_0x59648c);}['refilterAnnotations'](){const _0x5d6160=this['context']['plugins']['get'](N)['collection'],_0x4dd0c7=new Map(),_0x204667=Array['from'](this['activeUIs']);for(const _0x36cb90 of this['activeUIs']){const _0x6dcb01=this['_uisData']['get'](_0x36cb90)['collection'];for(const _0x6588d3 of _0x6dcb01)_0x4dd0c7['set'](_0x6588d3,_0x36cb90);}for(const _0x56d032 of _0x5d6160){const _0xf6ebd8=_0x4dd0c7['get'](_0x56d032);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x56d032);const _0x2c4110=_0x204667['find'](_0x4de7f1=>this['_uisData']['get'](_0x4de7f1)['filter'](_0x56d032));_0xf6ebd8!==_0x2c4110&&(_0xf6ebd8&&this['_uisData']['get'](_0xf6ebd8)['collection']['remove'](_0x56d032),_0x2c4110&&this['_uisData']['get'](_0x2c4110)['collection']['add'](_0x56d032));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2f843e){const _0x583482=[];for(const _0x4751c3 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x4751c3)['filter'])(_0x2f843e)&&_0x583482['push'](_0x4751c3);}if(_0x583482['length']>0x1)throw new _0x766f41('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x583482,'annotationType':_0x2f843e['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5486b2){super(_0x5486b2);const _0x1f10e2=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 _0x22a307(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x1f10e2['to']('class')],'style':{'minHeight':_0x1f10e2['to']('minHeight',_0x1d26b5=>'number'==typeof _0x1d26b5?he(_0x1d26b5+0xa):null)},'dir':_0x5486b2['uiLanguageDirection'],'role':'application','aria-label':S(_0x5486b2,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x5486b2,'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',_0x1817fd=>{this['_updateItemPositionInFocusables'](_0x1817fd['source']);}),this['list']['forEach'](_0x404d20=>{this['focusTracker']['add'](_0x404d20['element']),this['_updateItemPositionInFocusables'](_0x404d20);}),this['list']['on']('change',(_0x4084b3,_0x5c4daf)=>{for(const _0x2fcf79 of _0x5c4daf['removed'])this['focusTracker']['remove'](_0x2fcf79['element']),this['focusables']['remove'](_0x2fcf79);for(const _0x291819 of _0x5c4daf['added'])this['focusTracker']['add'](_0x291819['element']),this['_updateItemPositionInFocusables'](_0x291819);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xaa7cc0){const _0x1fc71f=this['focusables']['getIndex'](_0xaa7cc0);let _0x3432ae,_0x5861f7;for(const _0x517e0f of this['focusables'])if(_0xaa7cc0['top']<_0x517e0f['top']){_0x3432ae=_0x517e0f;break;}if(_0x5861f7=_0x3432ae?this['focusables']['getIndex'](_0x3432ae):this['focusables']['length'],-0x1!==_0x1fc71f){if(_0x1fc71f===_0x5861f7-0x1)return;this['focusables']['remove'](_0xaa7cc0),_0x5861f7=_0x3432ae?this['focusables']['getIndex'](_0x3432ae):this['focusables']['length'];}this['focusables']['add'](_0xaa7cc0,_0x5861f7);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3f6e24){super(_0x3f6e24),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2eccf5,_0x674f49)=>_0x2eccf5+_0x674f49),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x5510d1=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x5510d1['to']('isAnimationDisabled',_0x3925d4=>_0x3925d4?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5510d1['to']('top',_0x2f26cb=>qt(_0x2f26cb))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x53bdb9=this['element']['clientHeight'];_0x53bdb9&&(this['height']=_0x53bdb9);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x3f9f30{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdcbaf4){super(_0xdcbaf4),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 _0x230ab6=this['context']['config']['get']('sidebar.container');_0x230ab6&&this['setContainer'](_0x230ab6);}['setContainer'](_0x4dd145){if(!y(_0x4dd145))throw new _0x766f41('sidebar-setcontainer-invalid-element');this['container']=_0x4dd145;}['_attachToContainer']({viewClass:_0x37ce6e='',spaceBetweenItems:_0xb7764e=0x19}={}){if(!y(this['container']))throw new _0x766f41('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x37ce6e,this['_spaceBetweenItems']=_0xb7764e;}['rearrange']({removedAnnotation:_0x571b6f,previousAnnotation:_0x277bc4,nextAnnotation:_0x339909}){const _0x259e86=this['getSidebarItemView'](_0x571b6f);this['view']['list']['remove'](_0x259e86),this['_destroySidebarItemView'](_0x571b6f),_0x277bc4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x277bc4)),_0x339909&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x339909)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2cfd67,activatedAnnotation:_0x290eb6,disableAnimationOnActivatedAnnotation:_0x9b273e}){if(this['_activeAnnotation']=_0x290eb6,_0x2cfd67){_0x2cfd67['isActive']=!0x1;const _0x493947=this['getSidebarItemView'](_0x2cfd67);_0x493947&&_0x9b273e&&(_0x493947['isAnimationDisabled']=!0x1);}if(_0x290eb6){const _0x324393=this['getSidebarItemView'](_0x290eb6);_0x324393&&(_0x290eb6['isActive']=!0x0,_0x9b273e&&(_0x324393['isAnimationDisabled']=!0x0,_0x324393['top']+=0x1),this['_alignToTargetRect'](_0x324393));}}['_detachFromContainer'](_0x4e3f6c){if(this['view']['element']['remove'](),_0x4e3f6c){for(const _0x5836b0 of _0x4e3f6c)this['_destroySidebarItemView'](_0x5836b0);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xc417a4,_0x22320d){_0x22320d||(_0x22320d=_0xc417a4['view']);const _0x8a84e0=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x8a84e0,_0xc417a4),this['_annotationToSidebarItemView']['set'](_0xc417a4,_0x8a84e0),_0x8a84e0['content']['add'](_0x22320d),this['listenTo'](_0xc417a4['view'],'change:targetRect',(_0xa993c3,_0x18c34a,_0x375868)=>{const _0x2d195a=this['_getTargetTop'](_0xc417a4,_0x375868);_0x8a84e0['_targetTop']!=_0x2d195a&&(_0x8a84e0['_targetTop']=_0x2d195a,this['_setItemTop'](_0x8a84e0,_0x2d195a));}),this['listenTo'](_0x8a84e0,'change:top',()=>{this['_recalculate'](_0x8a84e0,'top');}),this['listenTo'](_0x8a84e0,'change:bottom',()=>{this['_recalculate'](_0x8a84e0,'bottom');}),this['_alignToTargetRect'](_0x8a84e0);const _0x1ba8b4=this['_getItemBefore'](_0x8a84e0);if(_0x1ba8b4)this['_alignAfterItem'](_0x1ba8b4,_0x8a84e0)||this['_alignToTargetRect'](_0x8a84e0);else this['_alignToTargetRect'](_0x8a84e0);return this['_updateLastItem'](),this['view']['list']['add'](_0x8a84e0),_0x8a84e0;}['_alignForTopChange'](_0x5bdf6c){if(!_0x5bdf6c['content']['length'])return;const _0x272561=this['_getItemBefore'](_0x5bdf6c);if(!_0x272561)return;const _0x35c927=this['_sidebarItemViewToAnnotation']['get'](_0x272561),_0x53db0b=this['_activeAnnotation'];_0x53db0b&&_0x53db0b===_0x35c927?this['_alignAfterItem'](_0x272561,_0x5bdf6c):this['_alignBeforeItem'](_0x5bdf6c,_0x272561);}['_alignForBottomChange'](_0x36f5a9){if(!_0x36f5a9['content']['length'])return;const _0x472dc6=this['_getItemAfter'](_0x36f5a9);if(!_0x472dc6)return;const _0x3ba6a8=this['_sidebarItemViewToAnnotation']['get'](_0x472dc6),_0x41ac1d=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x380519=this['_activeAnnotation'];_0x380519&&_0x380519===_0x3ba6a8&&_0x41ac1d?(this['_alignBeforeItem'](_0x472dc6,_0x36f5a9),this['_alignAfterItem'](_0x36f5a9,_0x472dc6)):_0x380519&&_0x380519===_0x3ba6a8?this['_alignBeforeItem'](_0x472dc6,_0x36f5a9):this['_alignAfterItem'](_0x36f5a9,_0x472dc6);}['_recalculate'](_0x4892f7,_0x5ea7a4){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5f2f6b,changedProp:_0x5b49b2}of this['_recalculateBuffer'])'top'===_0x5b49b2?this['_alignForTopChange'](_0x5f2f6b):this['_alignForBottomChange'](_0x5f2f6b);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4892f7,'changedProp':_0x5ea7a4});}['getSidebarItemView'](_0x398654){return this['_annotationToSidebarItemView']['get'](_0x398654);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5e9cdf){const _0x41f659=this['getSidebarItemView'](_0x5e9cdf);this['stopListening'](_0x41f659),this['stopListening'](_0x5e9cdf['view']),_0x41f659['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5e9cdf),this['_sidebarItemViewToAnnotation']['delete'](_0x41f659);}['_createSidebarView'](){const _0x4d4de4=new V(this['context']['locale']);return _0x4d4de4['render'](),this['on']('change:_lastItem',(_0x1c95a3,_0xf68ed8,_0x4df28a,_0x47be5a)=>{_0x47be5a&&_0x4d4de4['unbind']('minHeight'),_0x4df28a?_0x4d4de4['bind']('minHeight')['to'](_0x4df28a,'bottom'):_0x4d4de4['minHeight']=null;}),_0x4d4de4;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x26d01b){const _0x404b07=this['_sidebarItemViewToAnnotation']['get'](_0x26d01b),_0x47f006=_0x404b07&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x404b07)-0x1);return _0x47f006&&this['getSidebarItemView'](_0x47f006)||null;}['_getItemAfter'](_0x5af395){const _0x309dcf=this['_sidebarItemViewToAnnotation']['get'](_0x5af395),_0x322f84=_0x309dcf&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x309dcf)+0x1);return _0x322f84&&this['getSidebarItemView'](_0x322f84)||null;}['_alignBeforeItem'](_0x51e64a,_0x3a715e){_0x51e64a['updateHeight']();const _0x3b0ade=R(_0x3a715e['bottom']+this['_spaceBetweenItems'],_0x51e64a['top']);return!!_0x3b0ade&&(this['_setItemTop'](_0x3a715e,_0x3a715e['top']-_0x3b0ade),!0x0);}['_alignAfterItem'](_0x337d64,_0x4e3375){_0x337d64['updateHeight']();const _0xe63036=R(_0x337d64['bottom']+this['_spaceBetweenItems'],_0x4e3375['top']);return!!_0xe63036&&(this['_setItemTop'](_0x4e3375,_0x4e3375['top']+_0xe63036,!0x1),!0x0);}['_alignToTargetRect'](_0x36ba8a){const _0x299bfc=this['_sidebarItemViewToAnnotation']['get'](_0x36ba8a);if(!_0x299bfc||!_0x299bfc['target']||!_0x299bfc['targetRect'])return;const _0x57445d=this['_getTargetTop'](_0x299bfc,_0x299bfc['targetRect']);this['_setItemTop'](_0x36ba8a,_0x57445d);}['_getTargetTop'](_0x52f5bf,_0x5ec271){if(null===_0x5ec271)return 0x0;if(_0x52f5bf['target']instanceof _0x12a62b)return _0x5ec271['top'];{const _0x23b73e=new _0x12a62b(this['view']['element'])['top'];return _0x5ec271['top']-_0x23b73e;}}['_setItemTop'](_0xc609da,_0x2e0f5e,_0xd9aaaa=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0xd9aaaa&&(_0x2e0f5e=Math['max'](_0x2e0f5e,this['_getMaxAvailableTop'](_0xc609da))),_0xc609da['top']=_0x2e0f5e;}['_getMaxAvailableTop'](_0x545e7a){let _0x1ac9b9=this['_getItemBefore'](_0x545e7a),_0x349f58=0x0;for(;_0x1ac9b9;)_0x1ac9b9['updateHeight'](),_0x349f58+=this['_spaceBetweenItems']+_0x1ac9b9['height'],_0x1ac9b9=this['_getItemBefore'](_0x1ac9b9);return _0x349f58;}}function R(_0x24b3ad,_0x2775ad){return Math['max'](_0x24b3ad-_0x2775ad,0x0);}function y(_0x4ff5b7){return null!==_0x4ff5b7&&'object'==typeof _0x4ff5b7&&0x1===_0x4ff5b7['nodeType'];}class e extends _0x3f9f30{['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(_0x328bfe){super(_0x328bfe),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x11cbf4(),this['_refreshPositioningDebounced']=_0x23ed5d(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2cea5a=this['context']['plugins']['get'](M),_0x1984d9=this['context']['plugins']['get'](z);_0x2cea5a['register']('wideSidebar',this),_0x1984d9['container']&&_0x2cea5a['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4d60c2){if(_0x4d60c2===this['activeAnnotation'])return;const _0x5f537d=this['context']['plugins']['get'](z);_0x5f537d['_activeAnnotation']=_0x4d60c2;const _0x4677d5=this['activeAnnotation'];_0x5f537d['refresh']({'blurredAnnotation':_0x4677d5,'activatedAnnotation':_0x4d60c2}),this['activeAnnotation']=_0x4d60c2;}['attach'](_0x309376){this['annotations']=_0x309376;const _0x1caf3=this['context']['plugins']['get'](z);if(_0x1caf3['_annotations']=_0x309376,this['isAttached'])throw new _0x766f41('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1caf3,'set:container',()=>{this['detach'](),this['listenTo'](_0x1caf3,'change:container',_0x92f795=>{_0x92f795['off'](),this['attach'](_0x309376);});}),_0x1caf3['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2736f1=_0x338922=>{_0x338922['updateTargetRect'](),_0x1caf3['addAnnotation'](_0x338922);};for(const _0xe630fa of _0x309376)_0x2736f1(_0xe630fa);this['listenTo'](_0x309376,'add',(_0x57848e,_0x1306f6)=>{_0x2736f1(_0x1306f6);}),this['listenTo'](_0x309376,'remove',(_0x5c4188,_0x507bd6,_0xe0f3de)=>{_0x1caf3['rearrange']({'removedAnnotation':_0x507bd6,'previousAnnotation':_0x309376['get'](_0xe0f3de-0x1),'nextAnnotation':_0x309376['get'](_0xe0f3de+0x1)}),_0x507bd6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x309376,'focus',(_0x504358,_0x2a58a9)=>{this['setActiveAnnotation'](_0x2a58a9);}),this['listenTo'](_0x309376,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5bc54a=this['context']instanceof _0x5257b6?this['context']['editors']:new _0x11cbf4([this['context']]);for(const _0x364f4c of _0x5bc54a)this['_integrateWithEditorAnnotations'](_0x364f4c);this['listenTo'](_0x5bc54a,'add',(_0x4514d,_0x47af9d)=>{this['listenTo'](_0x47af9d,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x47af9d);});}),this['listenTo'](_0x5bc54a,'remove',(_0x12c03c,_0x1ecee7)=>{_0x1ecee7['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1ecee7['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x766f41('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x720449=this['context']['plugins']['get'](z);_0x720449['_detachFromContainer'](this['annotations']),this['stopListening'](_0x720449),this['stopListening'](this['annotations']),this['context']instanceof _0x5257b6&&this['stopListening'](this['context']['editors']);for(const _0x2ac991 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2ac991);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x473ae5){if(!_0x473ae5['plugins']['has']('EditorAnnotations'))return;const _0x19d4e7=_0x473ae5['plugins']['get']('EditorAnnotations'),_0x157095=()=>{const _0x59b059=_0x19d4e7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x59b059[0x0]||null);};this['listenTo'](_0x19d4e7,'refresh',_0x157095),this['listenTo'](_0x19d4e7,'blur',(_0x5dd39d,{isAnnotationTracked:_0x2a22cc})=>{this['activeAnnotation']&&_0x2a22cc(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x19d4e7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x10f53c=>{_0x19d4e7['hasDomSelection']()&&(_0x157095(),_0x10f53c['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x19d4e7);}['_destroyEditorAnnotationsIntegration'](_0x17190c){this['stopListening'](_0x17190c),this['_editorAnnotations']['remove'](_0x17190c);}}class D extends _0x3e77fe{['counterView'];constructor(_0x3e4a52){super(_0x3e4a52);const _0x1a3a82=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x27ebd3,_0x4212f4)=>_0x27ebd3?'...':_0x4212f4['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',_0x1a3a82['to']('annotationType',_0x5c105c=>'ck-annotation-counter__badge--'+_0x5c105c),_0x1a3a82['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1a3a82['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x3f9f30{['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(_0x2fdcad){super(_0x2fdcad),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xe2bdbb),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x11cbf4(),this['_refreshPositioningDebounced']=_0x23ed5d(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x977e01(this['context']['locale']),this['balloonPanelView']=new _0x17391a(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x8ed80e){this['annotations']=_0x8ed80e;const _0x2c2944=this['context']['plugins']['get'](z),_0x35309b=this['balloonPanelView'];if(_0x2c2944['_annotations']=_0x8ed80e,this['isAttached'])throw new _0x766f41('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2c2944,'set:container',()=>{this['detach'](),this['listenTo'](_0x2c2944,'change:container',_0x36d029=>{_0x36d029['off'](),this['attach'](_0x8ed80e);});}),_0x2c2944['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x52c041=_0x291d09=>{const _0x29046c=new D(this['context']['locale']);_0x2c2944['addAnnotation'](_0x291d09,_0x29046c),this['_annotationToNarrowView']['set'](_0x291d09,_0x29046c),_0x29046c['bind']('isDirty','annotationType','number')['to'](_0x291d09['view'],'isDirty','type','length'),_0x29046c['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x35309b['content']['first']!==_0x291d09['view']?(this['_showBalloon'](_0x291d09),_0x291d09['view']['element']['focus'](),this['setActiveAnnotation'](_0x291d09)):this['setActiveAnnotation'](null);});};for(const _0x21207b of _0x8ed80e)_0x52c041(_0x21207b);this['listenTo'](_0x8ed80e,'add',(_0x1eb5ae,_0x5bcdbb)=>{_0x52c041(_0x5bcdbb);}),this['listenTo'](_0x8ed80e,'remove',(_0xd86958,_0x3d576f,_0xbecb8d)=>{this['_annotationToNarrowView']['get'](_0x3d576f)['destroy'](),this['_annotationToNarrowView']['delete'](_0x3d576f),_0x2c2944['rearrange']({'removedAnnotation':_0x3d576f,'previousAnnotation':_0x8ed80e['get'](_0xbecb8d-0x1),'nextAnnotation':_0x8ed80e['get'](_0xbecb8d+0x1)}),_0x3d576f===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x8ed80e,'focus',(_0x19f905,_0x523d2a)=>{this['setActiveAnnotation'](_0x523d2a);}),this['listenTo'](_0x8ed80e,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5f4526,_0x558095)=>{_0x558095['keyCode']===_0x1cfb48['esc']&&_0x35309b['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x35309b['content']['first']),this['_hideBalloon'](),_0x558095['stopPropagation'](),_0x558095['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x22ac8c,_0x341a45)=>{const _0x18abe7=_0x341a45['target'];_0x35309b['isVisible']&&_0x35309b['element']['contains'](_0x18abe7)||_0x2c2944['view']['element']['contains'](_0x18abe7)||_0x22ac8c['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x1f4987=>_0x1f4987['contains'](_0x18abe7))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x43b707=this['context']instanceof _0x5257b6?this['context']['editors']:new _0x11cbf4([this['context']]);for(const _0x1f1b77 of _0x43b707)this['_integrateWithEditorAnnotations'](_0x1f1b77);this['listenTo'](_0x43b707,'add',(_0x5276c4,_0x57b5c2)=>{this['listenTo'](_0x57b5c2,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x57b5c2);});}),this['listenTo'](_0x43b707,'remove',(_0x161b49,_0x9e7371)=>{_0x9e7371['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x9e7371['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x3ee750){if(_0x3ee750===this['activeAnnotation'])return;const _0x4f51eb=this['context']['plugins']['get'](z);if(_0x4f51eb['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x3ee750,'disableAnimationOnActivatedAnnotation':!0x0}),_0x3ee750)_0x4f51eb['getSidebarItemView'](_0x3ee750)?this['_showBalloon'](_0x3ee750):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x3ee750;}['detach'](){if(!this['isAttached'])throw new _0x766f41('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5185ad=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3a284f=>_0x3a284f['destroy']()),this['_annotationToNarrowView']['clear'](),_0x5185ad['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x5257b6&&this['stopListening'](this['context']['editors']);for(const _0x197747 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x197747);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'](_0x436e84){if(!_0x436e84['plugins']['has']('EditorAnnotations'))return;const _0x4afec7=_0x436e84['plugins']['get']('EditorAnnotations'),_0x43cd1=this['context']['plugins']['get'](z),_0x1d3383=this['annotations'],_0x1b8dc6=this['balloonPanelView'],_0x4f7777=()=>{const _0x1203ee=_0x4afec7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1203ee),this['setActiveAnnotation'](_0x1203ee[0x0]||null);};this['listenTo'](_0x4afec7,'refresh',_0x4f7777),this['listenTo'](_0x4afec7,'blur',(_0x277bc5,{isAnnotationTracked:_0x54e408})=>{this['activeAnnotation']&&_0x54e408(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4afec7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1d3383,'blur',_0x59f718=>{_0x4afec7['hasDomSelection']()&&_0x59f718['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5c9c5c,_0x4d6f70)=>{const _0x37f720=_0x4d6f70['target'];_0x1b8dc6['isVisible']&&_0x1b8dc6['element']['contains'](_0x37f720)||_0x43cd1['view']['element']['contains'](_0x37f720)||this['activeAnnotation']&&_0x4afec7['hasDomSelection']()&&(_0x4f7777(),_0x5c9c5c['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4afec7);}['_destroyEditorAnnotationsIntegration'](_0x3d7a26){_0x3d7a26&&(this['stopListening'](_0x3d7a26),this['_editorAnnotations']['remove'](_0x3d7a26));}['_setSelectedAnnotations'](_0x213a63){for(const _0x290aea of this['_selectedAnnotations'])_0x213a63['includes'](_0x290aea)||this['_manuallyClosedAnnotationViews']['delete'](_0x290aea['view']);this['_selectedAnnotations']=_0x213a63;}['_refreshPositioning'](){const _0x501e0c=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x501e0c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x1e9676){if(this['_manuallyClosedAnnotationViews']['has'](_0x1e9676['view']))return;const _0x469bfe=this['balloonPanelView']['content']['first'];_0x469bfe!==_0x1e9676['view']?(_0x469bfe&&this['_detachListeners'](_0x469bfe),this['_attachListeners'](_0x1e9676['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x1e9676['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x13fecc=this['balloonPanelView']['content']['first'],_0x30e15d=_0x13fecc&&this['annotations']['getByView'](_0x13fecc);if(!_0x30e15d||!this['_annotationToNarrowView']['has'](_0x30e15d))return;const _0x2fd032=this['_annotationToNarrowView']['get'](_0x30e15d)['element'],_0x281d0a=(function(){const _0x4c92da=_0x17391a['defaultPositions'];return[_0x4c92da['southArrowNorthEast'],_0x4c92da['northArrowSouthEast'],_0x4c92da['southArrowNorth'],_0x4c92da['northArrowSouth'],_0x4c92da['southArrowNorthWest'],_0x4c92da['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x2fd032,'positions':_0x281d0a});}['_hideBalloon'](){const _0x2d7f46=this['balloonPanelView'],_0x5bd24c=_0x2d7f46['content']['first'];_0x5bd24c&&(this['_detachListeners'](_0x5bd24c),_0x2d7f46['unpin'](),_0x2d7f46['content']['clear']());}['_attachListeners'](_0x353ad2){this['listenTo'](_0x353ad2,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x353ad2,'Esc',(_0x1f8748,_0x4c5f24)=>{this['_manuallyClosedAnnotationViews']['add'](_0x353ad2),this['_hideBalloon'](),_0x4c5f24();});}['_detachListeners'](_0x2105df){this['stopListening'](_0x2105df);}}class c extends _0x44c214{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x32dd4a,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e82c5){super(_0x1e82c5),_0x1e82c5['editing']['view']['addObserver'](_0x47e7a4),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1e82c5['plugins']['get'](_0x32dd4a),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x40cac6=this['editor']['plugins']['get'](M);_0x40cac6['context']===this['editor']&&(_0x40cac6['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x149ec9,_0x44803e)=>{const _0x1877aa=this['_balloon'];if(this['isAttached']&&_0x1877aa['visibleView']){const _0x232c3f=this['annotations']['getByView'](_0x1877aa['visibleView']);_0x232c3f&&this['_closeAnnotation'](_0x232c3f),_0x44803e();}}));}['afterInit'](){const _0x52a8b9=this['editor']['plugins']['get'](M);_0x52a8b9['context']===this['editor']&&(_0x52a8b9['hasActive']()||_0x52a8b9['switchTo']('inline'));}['setActiveAnnotation'](_0x4756d6){_0x4756d6!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4756d6&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4756d6)&&this['_addAnnotationToBalloon'](_0x4756d6,!0x0),_0x4756d6['isActive']=!0x0),_0x4756d6||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4756d6);}['attach'](_0x250c38){this['annotations']=_0x250c38;const _0x4ff52c=this['editor']['plugins']['get'](M),_0x1fe116=this['_balloon'];if(this['isAttached'])throw new _0x766f41('inlineannotations-attach-already-attached',this);if(_0x4ff52c['context']!==this['editor'])throw new _0x766f41('inlineannotations-not-allowed-with-context',this);const _0x513349=this['editor']['plugins']['get'](P);this['listenTo'](_0x513349,'refresh',()=>{const _0x235d3a=_0x513349['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x430d8d,_0x5055b3;!this['_forceRefresh']&&(_0x430d8d=_0x235d3a,_0x5055b3=this['_selectedAnnotations'],_0x430d8d['length']===_0x5055b3['length']&&_0x430d8d['every'](_0x27de47=>_0x5055b3['includes'](_0x27de47)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x235d3a),this['setActiveAnnotation'](_0x235d3a[0x0]||null));}),this['listenTo'](_0x513349,'blur',(_0x47b054,{isAnnotationTracked:_0x268c9d})=>{this['activeAnnotation']&&_0x268c9d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2a9c07,_0x54ca46,_0x6abccc)=>{_0x6abccc||this['setActiveAnnotation'](null);}),this['listenTo'](_0x250c38,'remove',(_0x31e270,_0x44a4d0)=>{this['_removeAnnotationFromBalloon'](_0x44a4d0),_0x44a4d0===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1fe116,'change:visibleView',(_0x583fe3,_0x49bffe,_0x57d956,_0xb19b29)=>{_0xb19b29&&this['stopListening'](_0xb19b29);const _0x4f6864=_0x250c38['getByView'](_0x57d956);_0x57d956&&_0x4f6864&&(this['listenTo'](_0x57d956,'change:height',()=>{_0x1fe116['updatePosition']();}),this['listenTo'](_0x57d956,'Esc',()=>{this['_closeAnnotation'](_0x4f6864),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4f6864&&this['setActiveAnnotation'](_0x4f6864));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x1fe116['visibleView']&&(_0x250c38['getByView'](_0x1fe116['visibleView'])&&_0x1fe116['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 _0x766f41('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x2aa912 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x2aa912);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x3bb613){for(const _0x58c553 of this['_selectedAnnotations'])_0x3bb613['includes'](_0x58c553)||this['_manuallyClosed']['delete'](_0x58c553);for(const _0x37fdfc of this['annotations'])_0x3bb613['includes'](_0x37fdfc)||this['_removeAnnotationFromBalloon'](_0x37fdfc);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1cf3b1 of _0x3bb613)this['_addAnnotationToBalloon'](_0x1cf3b1);}this['_selectedAnnotations']=_0x3bb613;}['_addAnnotationToBalloon'](_0x306e31,_0x546d73=!0x1){this['_manuallyClosed']['has'](_0x306e31)||(this['_addedAnnotations']['has'](_0x306e31)||this['_balloon']['hasView'](_0x306e31['view'])||(this['_addedAnnotations']['add'](_0x306e31),this['_balloon']['add']({'stackId':_0x306e31['view']['id'],'view':_0x306e31['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x306e31)}})),_0x546d73&&this['_balloon']['showStack'](_0x306e31['view']['id']));}['_getBalloonTargetForAnnotation'](_0x580a21){const _0x3a2ca3=_0x580a21['target'],_0x19ea4b=this['editor']['editing']['view'],_0x2589e6=_0x19ea4b['document']['selection']['getFirstRange'](),_0x3bf5b3=_0x19ea4b['domConverter']['viewRangeToDom'](_0x2589e6);if(_0x3bf5b3['collapse'](!0x0),_0x3a2ca3){if(_0x3a2ca3 instanceof _0x12a62b)return _0x3a2ca3;let _0x144fd6=[];for(const _0x29aa22 of _0x3a2ca3)_0x144fd6['push'](...(_0x5bb6f6=_0x29aa22['getClientRects'](),Array['from'](_0x5bb6f6)['map'](DOMRect['fromRect'])));_0x144fd6=function(_0x2b718a){const _0x2db3be=[];let _0x294c36=_0x2b718a[0x0];for(let _0x483ad2=0x1;_0x483ad2<_0x2b718a['length'];_0x483ad2++)b(_0x294c36,_0x2b718a[_0x483ad2])?_0x294c36['width']+=_0x2b718a[_0x483ad2]['width']:(_0x2db3be['push'](_0x294c36),_0x294c36=_0x2b718a[_0x483ad2]);return _0x2db3be['push'](_0x294c36),_0x2db3be;}(_0x144fd6);const _0x435219=_0x3bf5b3['getBoundingClientRect']();return _0x144fd6['find'](_0x5b894f=>_0x5b894f['top']<=_0x435219['top']&&_0x5b894f['bottom']>=_0x435219['bottom']&&_0x5b894f['left']<=_0x435219['left']&&_0x5b894f['right']>=_0x435219['right'])||_0x144fd6[0x0];}var _0x5bb6f6;return _0x580a21['targetRect']||_0x3bf5b3;}['_removeAnnotationFromBalloon'](_0x1c3fed){this['_addedAnnotations']['has'](_0x1c3fed)&&this['_balloon']['hasView'](_0x1c3fed['view'])&&(this['_addedAnnotations']['delete'](_0x1c3fed),this['_balloon']['remove'](_0x1c3fed['view']));}['_closeAnnotation'](_0x5990f9){this['_manuallyClosed']['add'](_0x5990f9),this['_removeAnnotationFromBalloon'](_0x5990f9);}}function b(_0x2055fa,_0x246f92){return _0x2055fa['top']===_0x246f92['top']&&_0x2055fa['bottom']===_0x246f92['bottom']&&_0x2055fa['right']===_0x246f92['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(_0x7c8bdb,_0x2681a2){super(_0x7c8bdb),this['set']('isEmpty',!_0x2681a2['length']),this['focusTracker']=new _0x22a307(),this['_annotationViews']=_0x2681a2,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x2681a2,'focusTracker':this['focusTracker']}),this['listenTo'](_0x2681a2,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2681a2,'remove',(_0x323385,_0x507f91)=>{_0x507f91['isActive']&&this['focus'](),_0x2681a2['length']||(this['isEmpty']=!0x0);});const _0x2537b5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x7c8bdb,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x2681a2},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2537b5['if']('isEmpty','ck-hidden',_0x44411d=>!_0x44411d)]},'children':[{'text':S(_0x7c8bdb,'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 _0xa5b4bd of this['_annotationViews'])this['focusTracker']['add'](_0xa5b4bd['element']);this['_annotationViews']['on']('change',(_0x5ba9e2,{added:_0x2c8938,removed:_0x483449})=>{for(const _0x3ce7c9 of _0x2c8938)this['focusTracker']['add'](_0x3ce7c9['element']);for(const _0x40dd8d of _0x483449)this['focusTracker']['remove'](_0x40dd8d['element']);});}}class f extends _0x3f9f30{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x19403c){super(_0x19403c),this['archivedThreads']=new _0x11cbf4();}['init'](){const _0x3542bf=this['context'],_0x188c46=_0x3542bf['plugins']['get'](o),_0x2e4abb=_0x3542bf['plugins']['get'](N);this['listenTo'](_0x188c46,'addCommentThread',(_0x2d49ae,{threadId:_0x3f80b1})=>{const _0x375410=_0x188c46['getCommentThread'](_0x3f80b1);_0x375410['archivedAt']&&this['archivedThreads']['add'](_0x375410,this['_calculatePosition'](_0x375410['archivedAt'])),this['listenTo'](_0x375410,'change:archivedAt',(_0x3c3e23,_0x4a1f00,_0x36b39c)=>{_0x36b39c?this['archivedThreads']['has'](_0x375410)||this['archivedThreads']['add'](_0x375410,this['_calculatePosition'](_0x375410['archivedAt'])):this['archivedThreads']['has'](_0x375410)&&this['archivedThreads']['remove'](_0x375410);});}),this['listenTo'](_0x188c46,'removeCommentThread',(_0x4b05cf,{threadId:_0x25044d})=>{const _0x3346a7=_0x188c46['getCommentThread'](_0x25044d);this['stopListening'](_0x3346a7),this['archivedThreads']['has'](_0x3346a7)&&this['archivedThreads']['remove'](_0x3346a7);},{'priority':'highest'}),this['listenTo'](_0x2e4abb['collection'],'focus',(_0x5234d2,_0x3cf564)=>{_0x3cf564['isVisible']||(_0x3cf564['isActive']=!0x0,_0x2e4abb['activate'](_0x3cf564));});}['_calculatePosition'](_0x3b9611){const _0x5bf16f=[...this['archivedThreads']]['findIndex'](_0x437194=>_0x437194['archivedAt']<_0x3b9611);return _0x5bf16f>-0x1?_0x5bf16f:this['archivedThreads']['length'];}}class a extends _0x44c214{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x2135ff];}constructor(_0x15f034){super(_0x15f034),this['annotationViews']=new _0x36f2fa(),this['_pendingThreads']=[];}['init'](){const _0x1bcba7=this['editor'],_0x113ac0=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1bcba7['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3e77fe,!0x0)),_0x1bcba7['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x50a9ed=this['_createCommentsArchiveButton'](_0xa36070);return _0x50a9ed['set']({'role':'menuitemcheckbox'}),_0x50a9ed;});const _0x3d36e3=_0x1bcba7['plugins']['get'](f),_0x1782f8=_0x1bcba7['plugins']['get']('Annotations'),_0x8e6138=_0x1bcba7['plugins']['get']('CommentsRepository');this['listenTo'](_0x3d36e3['archivedThreads'],'add',(_0x213c5e,_0x3f57fc)=>{const _0x329c7d=_0x1bcba7['config']['get']('collaboration.channelId');if(!_0x329c7d||_0x3f57fc['channelId']===_0x329c7d){const _0x550b09=_0x8e6138['_threadToController']['get'](_0x3f57fc);if(!_0x550b09)return void this['_pendingThreads']['push'](_0x3f57fc);const _0x4fe718=this['_calculatePosition'](_0x3f57fc['archivedAt']),_0x44b391=_0x1782f8['getByInnerView'](_0x550b09['view']);_0x44b391['isVisible']&&_0x1782f8['_visibleAnnotations']['remove'](_0x44b391),this['annotationViews']['add'](_0x44b391['view'],_0x4fe718);}}),this['listenTo'](_0x1782f8['collection'],'add',(_0x8a59c7,_0x4671c5)=>{const _0x1181a1=this['_pendingThreads']['find'](_0x1728ce=>{const _0x3cad91=_0x8e6138['_threadToController']['get'](_0x1728ce);return _0x3cad91&&_0x4671c5['innerView']===_0x3cad91['view'];});if(_0x1181a1){const _0x1b34d1=this['_calculatePosition'](_0x1181a1['archivedAt']);this['annotationViews']['add'](_0x4671c5['view'],_0x1b34d1),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1181a1),0x1);}}),this['listenTo'](_0x3d36e3['archivedThreads'],'remove',(_0x18448f,_0x1960a7)=>{const _0xeed75a=_0x1bcba7['config']['get']('collaboration.channelId');if(!_0xeed75a||_0x1960a7['channelId']===_0xeed75a){const _0x26081c=_0x8e6138['_threadToController']['get'](_0x1960a7),_0x333ceb=_0x1782f8['getByInnerView'](_0x26081c['view']);this['annotationViews']['remove'](_0x333ceb['view']),this['stopListening'](_0x333ceb['focusableElements']);}}),this['listenTo'](_0x1782f8['collection'],'add',(_0x610bde,_0x477b09)=>{this['listenTo'](_0x477b09,'escape',_0x113ac0);}),this['listenTo'](_0x1782f8['collection'],'remove',(_0x4aac49,_0x2d9e9a)=>{this['stopListening'](_0x2d9e9a,'escape',_0x113ac0);});}['_calculatePosition'](_0x589bec){const _0x58eec7=this['editor']['config']['get']('collaboration.channelId'),_0x579475=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0xe0cbc8=>_0xe0cbc8['channelId']===_0x58eec7)['findIndex'](_0x2d1af9=>_0x2d1af9['archivedAt']<_0x589bec);return _0x579475<0x0||_0x579475>this['annotationViews']['length']?this['annotationViews']['length']:_0x579475-0x1;}['_toggleDialog'](){const _0x5429a1=this['editor'],_0x10b49d=_0x5429a1['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x5429a1['locale'],this['annotationViews'])),'commentsArchive'===_0x10b49d['id']?_0x10b49d['hide']():_0x10b49d['show']({'id':'commentsArchive','title':S(_0x5429a1['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x310fee['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x320132,_0x5a08e7=!0x1){const _0x14e187=this['editor']['locale'],_0x24e9d9=this['editor']['plugins']['get']('Dialog'),_0x4ed8cf=new _0x320132(_0x14e187);return _0x4ed8cf['bind']('isEnabled')['to'](this,'isEnabled'),_0x4ed8cf['bind']('isOn')['to'](_0x24e9d9,'id',_0x295d93=>'commentsArchive'===_0x295d93),_0x4ed8cf['set']({'label':S(_0x14e187,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x5a08e7&&(_0x4ed8cf['tooltip']=!0x0),this['listenTo'](_0x4ed8cf,'execute',()=>this['_toggleDialog']()),_0x4ed8cf;}['_hideDialogOnAnnotationEscape']=_0x21b0c2=>{const _0x5131e1=_0x21b0c2['source'];if(!this['annotationViews']['has'](_0x5131e1['view']))return;const _0x38378f=this['editor']['plugins']['get']('Dialog');_0x38378f['isOpen']&&'commentsArchive'===_0x38378f['id']&&(_0x38378f['hide'](),_0x21b0c2['stop']());};}class p extends _0x44c214{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
|
|
23
|
+
import{Editor as _0xf193fd,icons as _0x4489e7,ContextPlugin as _0x2152b1,PendingActions as pt,Command as _0x2f1274,Plugin as _0xc56fcc,Context as _0x4189fa}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x341393,uid as _0x408d83,KeystrokeHandler as jt,FocusTracker as _0x29663f,diff as _0x398e3b,Collection as _0x256210,Rect as _0xc357c2,CKEditorError as _0x33c6f2,first as _0x72b40b,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Dt,DomEmitterMixin as _0x42678e,keyCodes as _0x23349e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x29444e,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x19804e,ConfirmMixin as ti,LateFocusButtonView as _0x5bf9cf,trimHtml as _0x7b8f00,LateFocusDropdownButtonView as _0x4fcbb6,Users as ct,getDateTimeFormatter as It,hashObject as wt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x3e8041}from'ckeditor5-collaboration/dist/index.js';import{throttle as _0x4fd13a,isEqual as yt,cloneDeep as At,set as Ct,unset as vt,debounce as _0x363911}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x39f2d8,ViewCollection as _0x5570f6,createDropdown as _0x296bbf,ListView as _0x349f5c,focusChildOnDropdownOpen as _0x197342,ListItemView as _0x176278,MenuBarMenuListItemButtonView as _0x142456,BodyCollection as _0x4ddab3,BalloonPanelView as _0x165b02,ContextualBalloon as _0x590580,Dialog as _0x14ac01,DialogViewPosition as tt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as qt,enablePlaceholder as St,MouseObserver as _0xcf3f66}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Rt,ClipboardPipeline as Mt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Bt,ShiftEnter as Et}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x2f1d48}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x322593}from'@ckeditor/ckeditor5-widget/dist/index.js';class gt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x341393(){['model'];['view'];constructor(_0x3d5624,_0x5b39d2){super(),this['model']=_0x3d5624,this['model']['_isAttached']=!0x0,this['view']=_0x5b39d2,this['listenTo'](_0x5b39d2,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x5b39d2,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x5b39d2,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x5b39d2,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x5b39d2,'addComment',(_0x4657d9,_0x29d22d)=>this['addComment'](_0x29d22d)),this['listenTo'](_0x5b39d2,'updateComment',(_0x106d78,_0x51b291,_0x519c10)=>this['updateComment'](_0x51b291,_0x519c10)),this['listenTo'](_0x5b39d2,'removeComment',(_0x40c843,_0x1f8122)=>this['removeComment'](_0x1f8122));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x19fa01){this['model']['addComment']({'content':_0x19fa01,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x17374e,_0x44c60a){this['model']['getComment'](_0x17374e)['update']({'content':_0x44c60a});}['removeComment'](_0x43b5ba){this['model']['getComment'](_0x43b5ba)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x165c65,_0x3c6308,_0x12471b){const t=_0x165c65['t'];switch(_0x3c6308){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'},_0x12471b);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'},_0x12471b);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'},_0x12471b);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'},_0x12471b);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x12471b);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'},_0x12471b);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'},_0x12471b);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'},_0x12471b);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(_0x5a140d,_0x1cb119){super(_0x5a140d);const _0x6481d5=_0x408d83();this['main']=this['createCollection'](),this['editable']=new $t(_0x5a140d,_0x1cb119,void 0x0,{'label':()=>S(_0x5a140d,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x5a140d['uiLanguageDirection'],'lang':_0x5a140d['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x6481d5},'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(_0x271ac3){super(_0x271ac3),this['view']=new Xt(_0x271ac3['locale'],_0x271ac3['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3f5919=this['editor']['editing']['view'],_0x85bfb3=this['view']['editable'],_0x45c125=_0x3f5919['document']['getRoot']();_0x85bfb3['name']=_0x45c125['rootName'],this['view']['render']();const _0x40be88=_0x85bfb3['element'];this['setEditableElement'](_0x85bfb3['name'],_0x40be88),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3f5919['attachDomRoot'](_0x40be88),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Ut extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x341393(_0xf193fd){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Qt)());constructor(_0x58d36e={}){function _0x1ed8aa(_0x539ae3){return _0x539ae3['map'](_0x44106c=>String['fromCharCode'](_0x44106c))['join']('');}(_0x58d36e=Object['assign']({},_0x58d36e))['plugins']||(_0x58d36e['plugins']=Ut['defaultPlugins']),super(_0x58d36e),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[_0x1ed8aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ed8aa([0x76,0x69,0x65,0x77])][_0x1ed8aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ed8aa([0x61,0x75,0x74,0x6f]),this[_0x1ed8aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1ed8aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ed8aa([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1ed8aa([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1ed8aa([0x6f,0x6b])});}['create'](){const _0x162112=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x162112))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x4a3c6b=>{const _0x5a8c66=this['model']['document']['getRoot'](),_0x4a9d94=_0x5a8c66&&_0x5a8c66['getChild'](_0x5a8c66['childCount']-0x1);_0x4a3c6b['setSelection'](_0x4a9d94,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x54bc6e=this['editing']['view'],_0x274a5d=_0x54bc6e['document']['getRoot'](),_0xa95009=_0x274a5d['getChild'](0x0);_0x274a5d['childCount']>0x1||!_0xa95009||'p'!=_0xa95009['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x54bc6e,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0xa95009['placeholder']=this['placeholder']),St({'view':_0x54bc6e,'element':_0xa95009,'keepOnFocus':!0x0}),this['placeholderElement']=_0xa95009);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x77ee5b,_0x7e697b={}){super(_0x77ee5b),this['editor']=null,this['_editorConfig']=_0x7e697b,this['set']('value',_0x7e697b['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x77ee5b,'Reply...')),this['set']('submitLabel',S(_0x77ee5b,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x29663f(),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',(_0x12963c,_0x20323c)=>{this['cancelButtonView']['fire']('execute'),_0x20323c();}),this['keystrokes']['set']('Ctrl+Enter',(_0x5d6231,_0x1e70f5)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x1e70f5());}),this['on']('submit',(_0x224b44,_0x3e5c1d)=>{_0x3e5c1d['length']>0xfde8?(alert(S(_0x77ee5b,'TOO_LONG_COMMENT_ALERT',[_0x3e5c1d['length'],0xfde8])),_0x224b44['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 _0x12704b=this['editor'];this['element']['insertBefore'](_0x12704b['ui']['element'],this['element']['firstChild']),_0x12704b['model']['document']['on']('change',()=>this['value']=_0x12704b['getData']()),_0x12704b['bind']('placeholder')['to'](this),this['focusables']['add'](_0x12704b['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x5a8eb8){-0x1===_0x5a8eb8?(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:_0x5e23c7}=this,_0x1a442e=new _0x39f2d8(_0x5e23c7);return _0x1a442e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x1a442e['withText']=!0x0,_0x1a442e['bind']('label')['to'](this,'submitLabel'),_0x1a442e['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x1a442e['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4c5263,_0x348054)=>!_0x348054&&!!_0x4c5263['trim']()),_0x1a442e;}['_createCancelButton'](){const {locale:_0x7009bf}=this,_0x6fc2a5=new _0x39f2d8(_0x7009bf);return _0x6fc2a5['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x6fc2a5['label']=S(_0x7009bf,'Cancel'),_0x6fc2a5['withText']=!0x0,_0x6fc2a5['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x6fc2a5;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5a02d9=>{this['focusTracker']['add'](_0x5a02d9['element']);}),this['focusables']['on']('change',(_0x732203,_0x4ccbf4)=>{for(const _0x56c4d0 of Array['from'](_0x4ccbf4['added'])['reverse']())this['focusTracker']['add'](_0x56c4d0['element']);});}}class ie extends kt{constructor(_0x158c00,_0x39ca99,_0x27adb3){super(_0x158c00),this['commentInputView']=new os(_0x158c00,_0x27adb3),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2e0268,_0x542683)=>_0x2e0268||!!_0x542683),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 _0x29444e(_0x158c00,_0x39ca99),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'](_0x43a859){this['commentInputView']['focus'](_0x43a859);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x94a61c,_0x2552c4)=>{const {submitButtonView:_0x241395,cancelButtonView:_0x379637,editor:_0x3889af}=this['commentInputView'];[_0x241395['element'],_0x379637['element'],_0x3889af?_0x3889af['editing']['view']['getDomRoot']():null]['filter'](_0x4925d4=>_0x4925d4)['some'](_0x539698=>_0x539698['contains'](_0x2552c4['target']))||(this['focus'](),_0x2552c4['preventDefault']());});}}class cs extends kt{constructor(_0xe947ed){super(_0xe947ed);const _0x2f5d2f=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2f5d2f['to']('count',_0xdb74e0=>S(_0xe947ed,'NUMBER_OF_COMMENTS',_0xdb74e0))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x611b28,_0x7042e6,_0x8fedd6){super(_0x611b28);const _0x1c861d=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x7042e6['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x7042e6,this['_config']=_0x8fedd6,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x29663f(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c63c0=>this['commentViews']['map'](_0x5cc7fd=>_0x5cc7fd['element'])['includes'](_0x3c63c0['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x611b28),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3fb622=>_0x3fb622-this['_config']['maxCommentsWhenCollapsed']);for(const _0xbf99d9 of _0x7042e6['comments'])this['_handleNewCommentModel'](_0xbf99d9);this['_handleInfoComment'](),this['listenTo'](_0x7042e6['comments'],'add',(_0x1a053c,_0x360323)=>{const _0x4441f3=this['_calculatePosition'](_0x360323);this['length']++,this['_handleNewCommentModel'](_0x360323,_0x4441f3),this['refreshVisibleViews']();}),this['listenTo'](_0x7042e6['comments'],'remove',(_0x279169,_0xdda33c)=>{this['length']--,this['_handleRemoveCommentModel'](_0xdda33c),this['refreshVisibleViews']();}),this['listenTo'](_0x7042e6,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x7042e6,'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',_0x1c861d['if']('length','ck-hidden',_0x11f123=>!_0x11f123)],'aria-label':S(_0x611b28,'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'](_0x212637){-0x1===_0x212637?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4d6f6f of this['commentViews'])_0x4d6f6f['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x18850c,_0x377a52){const _0x183582=new this['_config']['CommentView'](this['locale'],_0x18850c,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x183582['viewUid']=_0x18850c['id'],_0x183582['delegate']('removeComment')['to'](this),_0x183582['delegate']('updateComment')['to'](this),_0x183582['delegate']('resolveCommentThread')['to'](this),_0x183582['delegate']('editorReady')['to'](this),_0x183582['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x183582,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x183582,_0x377a52);}['_calculatePosition'](_0x5aa257){const _0x27f40d=this['_model']['_findOptimalIndex'](_0x5aa257);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x5aa257['authoredAt']?_0x27f40d-0x1:_0x27f40d:_0x27f40d-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3abbad={'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'],_0x3abbad,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3abbad));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4f420e){const _0x1e89f4=this['commentViews']['remove'](_0x4f420e['id']);this['stopListening'](_0x1e89f4),_0x1e89f4['isEditMode']&&this['_updateHasDirtyComment'](),_0x1e89f4['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0xa3d336=>_0xa3d336['isEditMode']);}['_rearrangeCollapse'](){const _0x222a21=function(_0x4229a6){const _0x1d00fe=new _0x256210();for(const _0x4d867e of _0x4229a6)_0x1d00fe['add'](_0x4d867e);return _0x1d00fe;}(this['commentViews']),_0x22aa7d=this['_collapsedCommentsView']['count'];for(let _0x4e01bb=0x1;_0x4e01bb<=_0x22aa7d;_0x4e01bb++)_0x222a21['remove'](0x1);for(const _0x4d7a31 of _0x222a21)_0x4d7a31['collapse']();_0x22aa7d>0x0&&_0x222a21['add'](this['_collapsedCommentsView'],0x1),as(_0x398e3b(Array['from'](this['visibleViews']),Array['from'](_0x222a21)),this['visibleViews'],_0x222a21);}['_rearrangeExpand'](){as(_0x398e3b(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x583c5a of this['visibleViews'])_0x583c5a['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x113c8e=>{this['focusTracker']['add'](_0x113c8e['element']),this['keystrokes']['listenTo'](_0x113c8e['element']);}),this['commentViews']['on']('change',(_0x1d1ca9,_0x2ba997)=>{for(const _0x249d39 of _0x2ba997['removed'])this['focusTracker']['remove'](_0x249d39['element']),this['keystrokes']['stopListening'](_0x249d39['element']);for(const _0x1ecee3 of Array['from'](_0x2ba997['added'])['reverse']())this['focusTracker']['add'](_0x1ecee3['element']),this['keystrokes']['listenTo'](_0x1ecee3['element']);});}}function as(_0x2038dd,_0x7ebeff,_0x583336){let _0x3fc903=0x0;for(const _0x31fa77 of _0x2038dd)switch(_0x31fa77){case'insert':_0x7ebeff['add'](_0x583336['get'](_0x3fc903),_0x3fc903),_0x3fc903++;break;case'delete':_0x7ebeff['remove'](_0x3fc903);break;case'equal':_0x3fc903++;}}class ls extends kt{constructor(_0x2c233a){super(_0x2c233a);const _0x1c2a3b=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1c2a3b['to']('contextValue',_0x51b478=>S(_0x2c233a,'THREAD_CONTEXT_LABEL',_0x51b478)),'tabindex':-0x1},'children':[{'text':_0x1c2a3b['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x47222b,_0x187118){super(_0x47222b);const _0x2a4f2d=this['bindTemplate'];this['_model']=_0x187118,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x29663f(),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',_0x209ecc=>!!_0x209ecc),this['bind']('contextValue')['to'](this['_model'],'context',_0x45a997=>_0x45a997&&_0x45a997['value']?this['_trimContextValue'](_0x45a997['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',_0x2a4f2d['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 _0x3762ab=new _0x39f2d8(this['locale']);return _0x3762ab['label']=S(this['locale'],'Reopen'),_0x3762ab['tooltip']=S(this['locale'],'Reopen'),_0x3762ab['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>',_0x3762ab['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1aef8b=>!_0x1aef8b),_0x3762ab['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x334843,_0x14024c)=>_0x334843&&_0x14024c),_0x3762ab['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3762ab;}['_trimContextValue'](_0x48aabe){if(_0x48aabe['length']<0x96)return _0x48aabe;const _0x510d03=_0x48aabe['lastIndexOf']('\x20',0x93);return _0x48aabe['substring'](0x0,_0x510d03>-0x1?_0x510d03:0x93)+'...';}['_attachContextActions'](){const _0x20ca0f=this['element']['querySelector']('.ck-context'),_0x7a10b0=_0x20ca0f['querySelector']('.ck-context__value');this['listenTo'](_0x20ca0f,'mouseenter',()=>{_0x7a10b0['offsetWidth']<_0x7a10b0['scrollWidth']&&_0x20ca0f['classList']['add']('overlay');}),this['listenTo'](_0x20ca0f,'mouseleave',()=>{_0x20ca0f['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0xb27ba4 of this['focusables'])this['focusTracker']['add'](_0xb27ba4['element']),this['keystrokes']['listenTo'](_0xb27ba4['element']);}['_createContextView'](){const _0xe8c492=new ls(this['locale']);return _0xe8c492['bind']('contextValue')['to'](this),_0xe8c492;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x29e8e3,_0x37a5f6,_0x4b8516,_0x1a3c69){super(_0x29e8e3),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x37a5f6,this['_localUser']=_0x4b8516,this['_config']=_0x1a3c69,this['commentThreadHeaderView']=new Zt(_0x29e8e3,_0x37a5f6),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x29e8e3,S(_0x29e8e3,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x29e8e3,_0x37a5f6,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1a3c69)),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',(_0x4b5087,_0x1a6017)=>_0x4b5087||!!_0x1a6017),this['bind']('isUnlinked')['to'](_0x37a5f6,'unlinkedAt',_0x1b52d2=>!!_0x1b52d2),this['bind']('ariaLabel')['to'](this,'length',_0x7a1e80=>{const _0x16ef46=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x7a1e80,_0x16ef46]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x29663f(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1bd10d=>_0x1bd10d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x19804e(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x286c98=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x18f252=_0x286c98['commentInputView'];return _0x286c98['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x18f252,'value',(_0x98b460,_0x111730,_0x44386d,_0x30d0f5,_0x16d64a)=>!!_0x16d64a||!!_0x30d0f5&&_0x44386d&&!_0x111730||_0x98b460&&_0x44386d&&!_0x111730),_0x18f252['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x23eead,_0x349b91,_0x69939b)=>{let _0xfe79dc;return _0xfe79dc=_0x69939b&&_0x349b91?'Reply\x20to\x20reopen\x20discussion...':_0x23eead?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0xfe79dc);}),_0x18f252['bind']('submitLabel')['to'](this,'length',_0x433fbe=>S(this['locale'],_0x433fbe?'Reply':'Comment')),_0x18f252['on']('submit',(_0x445743,_0x331405)=>{this['fire']('addComment',_0x331405),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x18f252['on']('cancel',()=>{this['focus']();}),_0x18f252['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x18f252['on']('cancel',_0x250d69=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x250d69['stop']());}),this['on']('change:isActive',(_0x3ff65c,_0x5d9484,_0x5be775)=>{_0x5be775||this['length']||_0x18f252['value']||this['fire']('removeCommentThread');}),_0x286c98;}}class Tt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1cb240,_0x143a1c,_0x58a489,_0x136ee6){super(_0x1cb240,_0x143a1c,_0x58a489,_0x136ee6),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1cb240,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4f0c73,_0x1d7fa7,_0x2a478e)=>{_0x2a478e||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3e5c4f,_0x15b712,_0x101b3f)=>{_0x101b3f&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x2e9b4c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x2e9b4c['if']('isActive','ck-thread--active'),_0x2e9b4c['if']('isUnlinked','ck-thread--unlinked'),_0x2e9b4c['if']('isConfirm','ck-thread--remove-confirmation'),_0x2e9b4c['to']('actionIndicator',_0x4fe52f=>_0x4fe52f?'ck-thread--'+_0x4fe52f:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2e9b4c['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 _0x56b027 of this['commentsListView']['commentViews'])_0x56b027['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x593ce3}=this,_0x13f382=this['commentsListView']['commentViews']['get'](0x0);_0x13f382===this['_boundFirstCommentView']||_0x13f382['isSystemComment']||(this['_boundFirstCommentView']=_0x13f382,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x13f382,'actionIndicator',_0x2cea6a=>'remove'===_0x2cea6a?'remove':null),_0x13f382['placeholder']=S(_0x593ce3,'Write\x20a\x20comment...'),_0x13f382['removeButton']['on']('execute',_0x2e1473=>{_0x2e1473['stop'](),this['showConfirm'](S(_0x593ce3,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x13f382['focus']();}),_0x13f382['actionBar']['add'](this['resolveButton'],0x0),_0x13f382['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2f4456=new _0x5bf9cf(this['locale']);return _0x2f4456['label']=S(this['locale'],'Resolve'),_0x2f4456['tooltip']=S(this['locale'],'Resolve'),_0x2f4456['icon']=_0x4489e7['check'],_0x2f4456['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2f4456['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4c1ffc=>!_0x4c1ffc),_0x2f4456['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3dad11,_0x2935a4)=>_0x3dad11&&!_0x2935a4),_0x2f4456['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2f4456;}['_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(_0x436f9b){super(_0x436f9b),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x25043c,_0x2c2508,_0x2f3ce3)=>{this['element']['innerHTML']=_0x2f3ce3;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x428288,_0x3e6c33,_0x571e06){super(_0x428288),this['_model']=_0x3e6c33,this['_config']=_0x571e06,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3e6c33,'content',_0x3e6c33,'authoredAt',(_0x536204,_0x4eacd7)=>S(_0x428288,'COMMENT_ARIA_LABEL',[_0x3e6c33['author']['name'],_0x571e06['formatDateTime'](_0x4eacd7),new DOMParser()['parseFromString'](_0x536204,'text/html')['body']['textContent'],_0x3e6c33['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x428288,S(_0x428288,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x5570f6(),this['focusTracker']=new _0x29663f(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x56b493=>_0x56b493['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 _0x4183cb=new hs(this['locale']);return _0x4183cb['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x14d96f,_0x3623d8)=>_0x3623d8?_0x7b8f00(_0x14d96f,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x14d96f),_0x4183cb;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x32acc2=new os(this['locale'],this['_config']['editorConfig']);return _0x32acc2['value']=this['_model']['content'],_0x32acc2['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x32acc2['submitLabel']=S(this['locale'],'Save'),_0x32acc2['on']('submit',(_0xdf06aa,_0x370590)=>{this['fire']('updateComment',this['_model']['id'],_0x370590),this['switchToDisplayMode'](),this['focus']();}),_0x32acc2['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x32acc2['once']('editorReady',()=>{_0x32acc2['focus']();}),_0x32acc2['createEditor'](),_0x32acc2['delegate']('editorReady')['to'](this),_0x32acc2['delegate']('editorDestroyed')['to'](this),_0x32acc2;}['_setupKeyboardNavigation'](){const _0x51bf1d=this['element'];this['keystrokes']['listenTo'](_0x51bf1d);for(const _0x2fdd4c of this['focusables'])this['focusTracker']['add'](_0x2fdd4c['element']),this['keystrokes']['listenTo'](_0x2fdd4c['element']);this['focusables']['on']('change',(_0x48c258,_0x641637)=>{for(const _0x326fd9 of _0x641637['removed'])this['focusTracker']['remove'](_0x326fd9['element']),this['keystrokes']['stopListening'](_0x326fd9['element']);for(const _0x249224 of _0x641637['added'])this['focusTracker']['add'](_0x249224['element']),this['keystrokes']['listenTo'](_0x249224['element']);}),this['keystrokes']['set']('enter',(_0x5f3ccc,_0xa2f9a4)=>{_0x51bf1d===_0x5f3ccc['target']&&(this['focusCycler']['focusFirst'](),_0xa2f9a4());}),this['keystrokes']['set']('esc',(_0x3bcc10,_0x32ae88)=>{_0x51bf1d!==_0x3bcc10['target']&&(this['focus'](),_0x32ae88());});}}class _t extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(rs){['actionBar'];['userView'];constructor(_0x3d044d,_0x278d3e,_0x32ccf0){super(_0x3d044d,_0x278d3e,_0x32ccf0),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x3d044d,'Reply...')),this['bind']('authoredAt')['to'](_0x278d3e),this['bind']('resolvedAt')['to'](_0x278d3e),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 _0x29444e(_0x3d044d,_0x278d3e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x278d3e,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2e203f=this['bindTemplate'],_0x579f22=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2e203f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e203f['to']('authoredAt',_0x56c493=>this['_config']['formatDateTime'](_0x56c493))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2e203f['if']('isEditMode','ck-comment__actions--hidden'),_0x2e203f['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']&&_0x579f22['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2e203f['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x2e203f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2e203f['if']('isEditMode','ck-comment--edit'),_0x2e203f['if']('isSystemComment','ck-comment--info'),_0x2e203f['to']('actionIndicator',_0x2ee018=>_0x2ee018?'ck-comment--'+_0x2ee018:'')],'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':_0x579f22}]}]};}['_createEditButton'](){const _0x27e029=new _0x39f2d8(this['locale']);return _0x27e029['label']=S(this['locale'],'Edit'),_0x27e029['icon']=_0x4489e7['pencil'],_0x27e029['withText']=!0x0,_0x27e029['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x27e029['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2e0070=>!_0x2e0070),_0x27e029['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x27e029['on']('execute',()=>this['switchToEditMode']()),_0x27e029;}['_createRemoveButton'](){const _0x473169=new _0x39f2d8(this['locale']);return _0x473169['label']=S(this['locale'],'Remove'),_0x473169['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x473169['withText']=!0x0,_0x473169['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x473169['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4846a9=>!_0x4846a9),_0x473169['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x473169['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x473169;}['_createDropdown'](){const _0x11c109=_0x296bbf(this['locale'],_0x4fcbb6),_0x50c78f=_0x11c109['panelView']['children'],_0x298d67=new _0x349f5c(this['locale']),_0x540aee=_0x11c109['bindTemplate'];_0x197342(_0x11c109,()=>this['items']['find'](_0x52fa73=>_0x52fa73['isVisible'])),_0x11c109['extendTemplate']({'attributes':{'class':[_0x540aee['if']('isVisible','ck-hidden',_0x457341=>!_0x457341)]}});const _0x5ed3cd=(_0x59fb3e,_0x422623=-0x1)=>{const _0x1b0e15=new _0x176278(this['locale']);_0x1b0e15['children']['add'](_0x59fb3e);const _0x4d6f0d=_0x422623>-0x1?_0x422623:_0x298d67['items']['length'];_0x298d67['items']['add'](_0x1b0e15,_0x4d6f0d);const _0x1b5850=Array['from'](this['items']);_0x11c109['unbind']('isEnabled','isVisible'),_0x11c109['bind']('isEnabled')['toMany'](_0x1b5850,'isEnabled',(..._0x58d918)=>_0x58d918['some'](_0x4412f3=>_0x4412f3)),_0x11c109['bind']('isVisible')['toMany'](_0x1b5850,'isVisible',(..._0x14e24d)=>_0x14e24d['some'](_0x46703a=>_0x46703a));};_0x11c109['panelPosition']='sw',_0x11c109['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x4489e7['threeVerticalDots']});for(const _0x4c24c1 of this['items'])_0x5ed3cd(_0x4c24c1);return _0x50c78f['add'](_0x298d67),_0x11c109['listenTo'](this['items'],'add',(_0x1b2f5f,_0x46d7cc,_0x5aa3b4)=>{_0x5ed3cd(_0x46d7cc,_0x5aa3b4);}),_0x11c109['listenTo'](this['items'],'remove',(_0x244608,_0x5a1237,_0x126754)=>{_0x298d67['items']['remove'](_0x126754);}),_0x11c109;}['_attachActions'](_0x9655ed,_0x5a07cd){const _0x467e90=_0x9655ed&&_0x9655ed['element'];_0x467e90&&(this['listenTo'](_0x467e90,'mouseenter',()=>this['actionIndicator']=_0x5a07cd),this['listenTo'](_0x467e90,'focus',()=>this['actionIndicator']=_0x5a07cd),this['listenTo'](_0x467e90,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x467e90,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x34f80b=super['_createCommentInputView']();return _0x34f80b['bind']('placeholder')['to'](this),_0x34f80b;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function J(_0x230819){const _0x202013=_0x4fd13a(_0x230819,0x1e),_0x417cae=new MutationObserver(_0x152951=>{for(const _0x237f3a of _0x152951)('attributes'==_0x237f3a['type']&&'class'==_0x237f3a['attributeName']||'childList'==_0x237f3a['type']||'characterData'==_0x237f3a['type'])&&_0x202013();});return{'attach'(_0x145e84){_0x417cae['observe'](_0x145e84,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x417cae['disconnect'](),_0x202013['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x10d731,_0x57f1ae){super(_0x10d731),this['id']=_0x408d83(),this['focusTracker']=new _0x29663f(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x4a3c98,_0x31f364)=>this['fire']('Esc',_0x31f364)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=J(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x57f1ae),this['mainView']=_0x57f1ae;const _0x54c6b0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x54c6b0['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 _0xf24843=this['element']['clientHeight'];_0xf24843&&(this['height']=_0xf24843);}}class d extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x341393(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x3d528e,target:_0xb9034c,type:_0x3e3053,isVisible:_0x2a7ec3=!0x0}){super(),this['view']=_0x3d528e,this['view']['element']||this['view']['render'](),this['_type']=_0x3e3053,this['_target']=_0xb9034c,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x256210([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x3e113b,_0x25fbcd)=>{this['view']['focusTracker']['add'](_0x25fbcd);}),this['focusableElements']['on']('remove',(_0x4adaf4,_0x3d9c1a)=>{this['view']['focusTracker']['remove'](_0x3d9c1a);}),this['set']('isVisible',_0x2a7ec3);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x18d6c2=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x18d6c2),_0x18d6c2;}get['targetRect'](){const _0x60ff2a=this['target'];if(null===_0x60ff2a)return null;if(_0x60ff2a instanceof _0xc357c2)return _0x60ff2a;const _0x3b9de6=_0x60ff2a['filter'](_0x290a81=>function(_0x5ce6b8){const _0x2d1123=_0x5ce6b8['offsetParent'];if(_0x2d1123)return!0x0;const _0x1a9657=_0x5ce6b8['getClientRects']()['item'](0x0);return!!_0x1a9657;}(_0x290a81));return 0x0===_0x3b9de6['length']?null:new _0xc357c2(_0x3b9de6[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4af51a){this['view']['isActive']=_0x4af51a,this['view']['mainView']['isActive']=_0x4af51a;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x15344d){if(!(null===_0x15344d||_0x15344d instanceof _0xc357c2||Array['isArray'](_0x15344d)&&_0x15344d['every'](_0xc250b=>ne(_0xc250b))))throw new _0x33c6f2('annotation-invalid-target',null,{'target':_0x15344d});}['_getNormalizedTarget'](){const _0x4e5066='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x4e5066)?[_0x4e5066]:_0x4e5066;}}function ne(_0x39ac42){return null!==_0x39ac42&&'object'==typeof _0x39ac42&&'nodeType'in _0x39ac42&&0x1===_0x39ac42['nodeType'];}class x extends _0x256210{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2f5056=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x29663f(),this['_focusTracker']['on']('change:isFocused',(_0x521e67,_0x543b4b,_0x26b27c)=>{_0x26b27c||this['fire']('blur');});for(const _0x15077d of _0x2f5056)this['add'](_0x15077d);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x15e0af){if(this['has'](_0x15e0af))throw new _0x33c6f2('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x15e0af['innerView'],_0x15e0af),this['_viewToAnnotation']['set'](_0x15e0af['view'],_0x15e0af);for(const _0x5c6551 of _0x15e0af['focusableElements'])this['_focusTracker']['add'](_0x5c6551);this['listenTo'](_0x15e0af['focusableElements'],'add',(_0x2eb61f,_0x5e0791)=>{this['_focusTracker']['add'](_0x5e0791);}),this['listenTo'](_0x15e0af['focusableElements'],'remove',(_0x336b5b,_0x3fea0f)=>{this['_focusTracker']['remove'](_0x3fea0f);}),this['listenTo'](_0x15e0af['view']['focusTracker'],'change:isFocused',(_0x32c63c,_0x142a5c,_0x3173ae)=>{_0x3173ae&&this['fire']('focus',_0x15e0af);}),_0x15e0af['updateTargetRect']();const _0x49bc58=this['_getOrderInContent'](_0x15e0af['view']['targetRect']);return super['add'](_0x15e0af,_0x49bc58);}['remove'](_0x186045){if(!this['has'](_0x186045))throw new _0x33c6f2('annotationcollection-not-existing-item',null);this['stopListening'](_0x186045['view']['focusTracker']),this['stopListening'](_0x186045['focusableElements']);for(const _0x189882 of _0x186045['focusableElements'])this['_focusTracker']['remove'](_0x189882);return this['_viewToAnnotation']['delete'](_0x186045['view']),this['_innerViewToAnnotation']['delete'](_0x186045['innerView']),super['remove'](_0x186045);}['getByInnerView'](_0x4ad577){return this['_innerViewToAnnotation']['get'](_0x4ad577);}['getByView'](_0x7dafac){return this['_viewToAnnotation']['get'](_0x7dafac);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x152c9e of this)_0x152c9e['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3aa29e=Array['from'](this)['sort']((_0x2e5d10,_0x3437eb)=>v(_0x2e5d10['view']['targetRect'],_0x3437eb['view']['targetRect']));for(let _0x297511=_0x3aa29e['length']-0x1;_0x297511>0x0;_0x297511--){const _0x10e689=_0x3aa29e[_0x297511];_0x297511!==this['getIndex'](_0x10e689)&&(this['remove'](_0x10e689),this['add'](_0x10e689));}}['_getOrderInContent'](_0x1af13d){let _0x2738a1=0x0;if(!_0x1af13d)return this['length'];for(const _0x58fb67 of this){const _0xfbf907=_0x58fb67['view']['targetRect'];if(_0xfbf907){if(v(_0x1af13d,_0xfbf907)<0x0)return _0x2738a1;_0x2738a1++;}}return _0x2738a1;}}function v(_0x28526e,_0xde2890){if(null===_0x28526e&&null===_0xde2890)return 0x0;if(null===_0x28526e)return-0x1;if(null===_0xde2890)return 0x1;const _0x121fbc=_0x28526e['top']-_0xde2890['top'];return 0x0==_0x121fbc?_0x28526e['left']-_0xde2890['left']:_0x121fbc;}class N extends _0x2152b1{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x155a77){if(super(_0x155a77),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x155a77 instanceof _0xf193fd){const _0x3d4e92=_0x155a77['locale'];_0x155a77['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x3d4e92,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x3d4e92,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x3d4e92,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x3d4e92,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x3d4e92,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x3d4e92,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x3d4e92,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x191d8d){this['collection']['add'](_0x191d8d);}['remove'](_0x4eaf76){this['collection']['remove'](_0x4eaf76),_0x4eaf76['destroy']();}['refreshVisibility'](){for(const _0x28ef64 of this['collection'])_0x28ef64['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x38390f){return this['collection']['getByInnerView'](_0x38390f);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1a96ea of this['collection'])_0x1a96ea['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x4f904b){this['fire']('_activateAnnotation',_0x4f904b);}['createAnnotation'](_0x4abb25){return new d(_0x4abb25);}['createAnnotationView'](_0x2c433d,_0x4c73cb){return new T(_0x2c433d,_0x4c73cb);}['_addActiveAnnotation'](_0x3e7e6f){const _0x16572e=new Set(this['activeAnnotations']);_0x16572e['add'](_0x3e7e6f),this['activeAnnotations']=_0x16572e;}['_removeActiveAnnotation'](_0x510939){const _0xbc9c72=new Set(this['activeAnnotations']);_0xbc9c72['delete'](_0x510939),this['activeAnnotations']=_0xbc9c72;}['_bindAnnotationsToVisibleAnnotations'](){const _0xf93737=this['collection'],_0x367e8c=this['_visibleAnnotations'];function _0x52551b(_0x58e872){const _0xc68a3c=_0x58e872['source'];_0xc68a3c['isVisible']&&!_0x367e8c['has'](_0xc68a3c)?_0x367e8c['add'](_0xc68a3c):!_0xc68a3c['isVisible']&&_0x367e8c['has'](_0xc68a3c)&&_0x367e8c['remove'](_0xc68a3c),_0xc68a3c['view']['focusTracker']['remove'](_0xc68a3c['view']['element']),_0xc68a3c['view']['focusTracker']['add'](_0xc68a3c['view']['element']);}this['listenTo'](_0xf93737,'add',(_0x44aeca,_0x21fb2e)=>{_0x21fb2e['isVisible']&&_0x367e8c['add'](_0x21fb2e),this['listenTo'](_0x21fb2e,'change:isVisible',_0x52551b);}),this['listenTo'](_0xf93737,'remove',(_0x4a2a7d,_0x132102)=>{_0x367e8c['has'](_0x132102)&&_0x367e8c['remove'](_0x132102),this['stopListening'](_0x132102,'change:isVisible',_0x52551b);});}['_setupEnterAnnotationKeystroke'](){const _0xdf5a96=_0x42a90b=>{_0x42a90b['on']('ready',()=>{_0x42a90b['keystrokes']['set'](_0x2f1d48,(_0x40079a,_0x3d0359)=>{const _0x53f5b5=_0x72b40b(this['activeAnnotations']['values']());_0x53f5b5&&(_0x53f5b5['view']['focus'](),_0x3d0359());});});};this['context']instanceof _0xf193fd?_0xdf5a96(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x588fde,_0x76efaa)=>{_0xdf5a96(_0x76efaa);});}['_setupEscapeAnnotationHandling'](){const _0x4828c2=_0x196413=>{const _0x27c437=_0x196413['source'],_0x493afb=[];let _0x21e6ce;if(Array['isArray'](_0x27c437['target'])){_0x21e6ce=_0x27c437['target'][0x0],this['context']instanceof _0xf193fd?_0x493afb['push'](this['context']):this['context']['editors']&&_0x493afb['push'](...this['context']['editors']);for(const _0x4b0866 of _0x493afb)for(const _0x1adfc5 of _0x4b0866['editing']['view']['domRoots']['values']())if(_0x1adfc5['contains'](_0x21e6ce))return void _0x4b0866['editing']['view']['focus']();_0x21e6ce['focus']();}};this['listenTo'](this['collection'],'add',(_0x5ec4d5,_0x2af7bd)=>{this['listenTo'](_0x2af7bd,'escape',_0x4828c2,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x58429f,_0x213806)=>{this['stopListening'](_0x213806,'escape',_0x4828c2);});}}const bt=Symbol('noChannel'),Nt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2152b1{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,pt,ct];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdbb283){super(_0xdbb283),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x92ffd0=this['context']['config'];_0x92ffd0['define']('comments.maxCommentsWhenCollapsed',0x2),_0x92ffd0['define']('comments.maxThreadTotalWeight',0x1f4),_0x92ffd0['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x92ffd0['define']('comments.CommentThreadView',Tt),_0x92ffd0['define']('comments.CommentView',_t),_0x92ffd0['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x498a75=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x464b97,_0x12ec80)=>this['_addCommentThread'](_0x12ec80)),this['on']('submitCommentThread',(_0x482c28,_0x405493)=>this['_submitCommentThread'](_0x405493)),this['on']('resolveCommentThread',(_0x4a3e27,_0x48f6ca)=>this['_resolveCommentThread'](_0x48f6ca)),this['on']('resolveCommentThread',(_0x3b6a75,_0x199f0f)=>this['_updateActiveAnnotation'](_0x199f0f),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5b5377,_0x4f982c)=>this['_reopenCommentThread'](_0x4f982c)),this['on']('reopenCommentThread',(_0xb40ea,_0x1deebb)=>this['_updateActiveAnnotation'](_0x1deebb),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3bd30b,_0x29f99e)=>this['_removeCommentThread'](_0x29f99e)),this['on']('updateCommentThread',(_0x37effb,_0x53fdba)=>this['_updateCommentThread'](_0x53fdba)),this['on']('updateCommentThread',(_0x4edf83,_0x3f590b)=>this['_updateActiveAnnotation'](_0x3f590b),{'priority':'lowest'}),this['on']('addComment',(_0x3ca155,_0x1916c9)=>this['_addComment'](_0x1916c9)),this['on']('updateComment',(_0x5b5ee4,_0x19397b)=>this['_updateComment'](_0x19397b)),this['on']('removeComment',(_0x48be51,_0x445846)=>this['_removeComment'](_0x445846)),this['on']('addComment',(_0x5c92ff,{threadId:_0x4c6720,isFromAdapter:_0x9f629b})=>{if(_0x9f629b)return;const _0x2a00e5=this['getCommentThread'](_0x4c6720),_0x2db906=_0x2a00e5&&this['_threadToController']['get'](_0x2a00e5);_0x2db906&&_0x2db906['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x498a75,'change:activeAnnotations',(_0x51f108,_0x6649c7,_0x22d701)=>{const _0x2d0191=Array['from'](_0x22d701)['map'](_0x85ca3f=>this['_viewToController']['get'](_0x85ca3f['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x2d0191?_0x2d0191['model']:null;});}set['adapter'](_0x2686f8){if(this['_adapter'])throw new _0x33c6f2('commentsrepository-adapter-already-set');this['_adapter']=_0x2686f8;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x588be6=bt,threadId:_0x3d341a=_0x408d83(),comments:_0x50168d=[],unlinkedAt:_0x206a4f=null,resolvedAt:_0x477cc8=null,resolvedBy:_0x12b069=null,target:_0x1b4ea6=null,context:_0x51685a=null,attributes:_0xb462fa={},isResolvable:_0x16bcba=!0x0,isSubmitted:_0x97084e=!0x1,isFromAdapter:_0x20c93d=!0x1}={}){return this['fire'](Pt('addCommentThread',_0x588be6),{'channelId':_0x588be6,'threadId':_0x3d341a,'comments':_0x50168d,'unlinkedAt':_0x206a4f,'resolvedAt':_0x477cc8,'resolvedBy':_0x12b069,'target':_0x1b4ea6,'context':_0x51685a,'attributes':_0xb462fa,'isFromAdapter':_0x20c93d,'isResolvable':_0x16bcba,'isSubmitted':_0x97084e}),this['getCommentThread'](_0x3d341a);}['openNewCommentThread']({channelId:_0x42b45b=bt,threadId:_0xada6ea=_0x408d83(),target:_0x30fded,context:_0x52648e=null,isResolvable:_0x2fdf73=!0x0}){if(this['_readOnlyChannels']['has'](_0x42b45b)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x30fded)throw new _0x33c6f2('commentsrepository-missing-target');const _0x4f67b1=this['addCommentThread']({'channelId':_0x42b45b,'threadId':_0xada6ea,'target':_0x30fded,'context':_0x52648e,'isResolvable':_0x2fdf73});if(!_0x4f67b1)return null;const _0x40036a=this['_threadToController']['get'](_0x4f67b1),_0x40152f=_0x40036a['view']['commentThreadInputView']['commentInputView'],_0x5952ef=this['context']['plugins']['get'](N),_0x451243=_0x5952ef['getByInnerView'](_0x40036a['view']);return _0x5952ef['activate'](_0x451243),_0x40152f['once']('editorReady',()=>_0x40152f['focus']()),_0x4f67b1;}['hasCommentThread'](_0x300d19){if('string'!=typeof _0x300d19)throw new _0x33c6f2('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x300d19);}['updateCommentThread']({channelId:_0x2a83bf=bt,threadId:_0x158a9a,context:_0x576f7f,unlinkedAt:_0x2cec37,attributes:_0x37d3e7,isFromAdapter:_0x1e0fca=!0x1}){return this['fire'](Pt('updateCommentThread',_0x2a83bf),{'channelId':_0x2a83bf,'threadId':_0x158a9a,'context':_0x576f7f,'unlinkedAt':_0x2cec37,'attributes':_0x37d3e7,'isFromAdapter':_0x1e0fca}),this['getCommentThread'](_0x158a9a);}['getCommentThread'](_0x3df867){if('string'!=typeof _0x3df867)throw new _0x33c6f2('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x3df867);}['fetchCommentThread']({channelId:_0x2d2dce,threadId:_0x52a819}={}){const _0x2f8167=this['getCommentThread'](_0x52a819);if(_0x2f8167)return Promise['resolve'](_0x2f8167);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x33c6f2('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x2d2dce,'threadId':_0x52a819})['then'](_0x279aa1=>this['hasCommentThread'](_0x52a819)?this['getCommentThread'](_0x52a819):_0x279aa1?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x2d2dce},_0x279aa1)):void 0x0)['catch'](_0x592a43=>{throw console['error'](_0x592a43),new _0x33c6f2('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x466da7,skipNotAttached:_0x167be7=!0x1,skipEmpty:_0x3c00dc=!0x1,toJSON:_0x605cd7=!0x1}={}){const _0x96e11f=[];for(const _0x4aba2d of this['_threads']['values']())_0x466da7&&_0x4aba2d['channelId']!==_0x466da7||_0x167be7&&!_0x4aba2d['isAttached']||_0x3c00dc&&0x0===_0x4aba2d['length']||_0x96e11f['push'](_0x4aba2d);return _0x605cd7?_0x96e11f['map'](_0x275943=>_0x275943['toJSON']()):_0x96e11f;}['setActiveCommentThread'](_0x4cde6b){const _0x294df2=this['context']['plugins']['get'](N);if(!_0x4cde6b)return void(this['activeCommentThread']&&_0x294df2['deactivateAll']());const _0x1376ec=this['getCommentThread'](_0x4cde6b);if(!_0x1376ec)throw new _0x33c6f2('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4cde6b});if(!this['_threadToController']['has'](_0x1376ec))throw new _0x33c6f2('commentsrepository-active-not-attached',null,{'threadId':_0x4cde6b});const _0x2dde5d=_0x294df2['getByInnerView'](this['_threadToController']['get'](_0x1376ec)['view']);_0x294df2['activate'](_0x2dde5d);}['switchReadOnly'](_0x5407e1,_0x52b61f){_0x5407e1?this['_readOnlyChannels']['add'](_0x52b61f):this['_readOnlyChannels']['delete'](_0x52b61f),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x539aa){return this['_readOnlyChannels']['has'](_0x539aa)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x403d6f,_0x5fdb96){return new gt(_0x403d6f,_0x5fdb96);}['setPermissions'](_0x2f257d,_0x5b5ef8=bt){this['_permissions']['set'](_0x5b5ef8,_0x2f257d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2ecdce=bt){return this['_permissions']['has'](_0x2ecdce)?this['_permissions']['get'](_0x2ecdce):Nt;}['_addCommentThread']({channelId:_0x5d6347,threadId:_0xf9114e,comments:_0x263626,unlinkedAt:_0x30c455,resolvedAt:_0x2e14e4,resolvedBy:_0x5636bc,target:_0x4ebd75,context:_0x1360bc,attributes:_0x49d559,isFromAdapter:_0x4c7cd5,isResolvable:_0x355acc,isSubmitted:_0x3bcd81}){if('string'!=typeof _0xf9114e)throw new _0x33c6f2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xf9114e});if(this['hasCommentThread'](_0xf9114e))throw new _0x33c6f2('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0xf9114e});const _0x43aae2=new oe(this,{'channelId':_0x5d6347,'id':_0xf9114e,'context':_0x1360bc,'attributes':_0x49d559,'unlinkedAt':_0x30c455,'resolvedAt':_0x2e14e4,'resolvedBy':_0x5636bc?this['context']['plugins']['get'](ct)['getUser'](_0x5636bc):null,'isResolvable':_0x355acc,'isSubmitted':_0x3bcd81||_0x4c7cd5});this['_threads']['set'](_0xf9114e,_0x43aae2);for(const _0x52621c of _0x263626)_0x43aae2['_add'](this['_createNewComment']({'threadId':_0xf9114e,..._0x52621c}));return _0x4ebd75&&_0x43aae2['attachTo'](_0x4ebd75),_0x4c7cd5||!_0x43aae2['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x5d6347,'threadId':_0xf9114e});}['_submitCommentThread']({channelId:_0x5d3e3d,threadId:_0x3c4c93}){if(!this['hasCommentThread'](_0x3c4c93))throw new _0x33c6f2('commentsrepository-missing-comment-thread',this);const _0x3b46fc=this['getCommentThread'](_0x3c4c93);if(_0x3b46fc['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x462540,comments:_0x137803,resolvedAt:_0x5c6e79,resolvedBy:_0xb1344e,context:_0x2f0567,attributes:_0x14747a}=_0x3b46fc,_0xf1fa48=this['context']['plugins']['get']('PendingActions'),_0x3913c6=_0xf1fa48['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x5d3e3d,'threadId':_0x462540,'comments':_0x137803['map'](_0x2d9c01=>_0x2d9c01['toJSON']()),'resolvedAt':_0x5c6e79,'resolvedBy':_0xb1344e?_0xb1344e['id']:_0xb1344e,'context':_0x2f0567,'attributes':_0x14747a})['then'](({comments:_0x59fdbc})=>{_0xf1fa48['remove'](_0x3913c6);for(const _0x249cd0 of _0x59fdbc)this['_updateComment']({'channelId':_0x5d3e3d,'threadId':_0x3c4c93,'commentId':_0x249cd0['commentId'],'createdAt':_0x249cd0['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x567980=>{throw console['error'](_0x567980),new _0x33c6f2('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3ad3f3,target:_0x1de5d9}){const _0x5731c2=this['getCommentThread'](_0x3ad3f3);if(!_0x5731c2)throw new _0x33c6f2('commentsrepository-attach-missing-comment-thread',this);const _0x36c15c=this['context']['plugins']['get']('PendingActions'),_0x46bbf0=this['context']['plugins']['get'](N),_0x1b5a11=this['_createCommentThreadView'](_0x5731c2),_0x636cbf=new gt(_0x5731c2,_0x1b5a11);let _0xf33efe=null;_0x1b5a11['on']('change:isDirty',(_0x28ec3c,_0x32a062,_0x1f6776)=>{_0x1f6776?_0xf33efe=_0x36c15c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0xf33efe&&(_0x36c15c['remove'](_0xf33efe),_0xf33efe=null);}),this['_threadToController']['set'](_0x5731c2,_0x636cbf),this['_viewToController']['set'](_0x1b5a11,_0x636cbf);const _0x1d4b4e=new T(this['context']['locale'],_0x1b5a11);_0x1d4b4e['bind']('length')['to'](_0x1b5a11),_0x1d4b4e['bind']('isDirty')['to'](_0x1b5a11,'isDirty',_0x1b5a11,'length',(_0x3383f6,_0x42cee3)=>_0x3383f6||!_0x42cee3),_0x1d4b4e['bind']('isActive')['to'](_0x1b5a11),_0x1d4b4e['type']='comment';const _0xc99398=new d({'view':_0x1d4b4e,'target':_0x1de5d9,'type':'comment','isVisible':!_0x5731c2['archivedAt']});return _0x1b5a11['on']('escape',()=>{_0xc99398['fire']('escape');}),this['_bindAnnotationToEditors'](_0x1b5a11,_0xc99398),_0x46bbf0['add'](_0xc99398),_0xc99398;}['_bindAnnotationToEditors'](_0x4289fe,_0x1b5bad){this['listenTo'](_0x4289fe,'editorReady',(_0x201023,_0x7d57fc)=>{const _0xca2996=_0x7d57fc['ui']['view']['body']['bodyCollectionContainer'];_0x1b5bad['focusableElements']['add'](_0xca2996),this['context']instanceof _0xf193fd&&this['context']['ui']['focusTracker']['add'](_0xca2996);},{'priority':'highest'}),this['listenTo'](_0x4289fe,'editorDestroyed',(_0x27f596,_0x1b48dc)=>{const _0x51d762=_0x1b48dc['ui']['view']['body']['bodyCollectionContainer'];_0x1b5bad['focusableElements']['has'](_0x51d762)&&_0x1b5bad['focusableElements']['remove'](_0x51d762),this['context']instanceof _0xf193fd&&this['context']['ui']['focusTracker']['remove'](_0x51d762);});}['_unbindEditors'](_0x83490e){this['stopListening'](_0x83490e,'editorReady'),this['stopListening'](_0x83490e,'editorDestroyed');}['_createCommentThreadView'](_0x655075){const _0x2f1371=this['context']['plugins']['get'](ct),{config:_0x46ec5b,locale:_0x398979}=this['context'],_0x2b5517=It(_0x46ec5b['get']('locale'));return new(0x0,(_0x46ec5b['get']('comments'))['CommentThreadView'])(_0x398979,_0x655075,_0x2f1371['me'],{'editorConfig':{..._0x46ec5b['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x46ec5b['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x46ec5b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x46ec5b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x46ec5b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b5517,'CommentView':_0x46ec5b['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x38f9ef,channelId:_0x4d08be,resolvedAt:_0x494af0,resolvedBy:_0x58b854,isFromAdapter:_0x58ab60}){if(!this['hasCommentThread'](_0x38f9ef))throw new _0x33c6f2('commentsrepository-missing-comment-thread',null,{'threadId':_0x38f9ef});const _0x3c178a=this['getCommentThread'](_0x38f9ef);if(_0x3c178a['isResolved'])throw new _0x33c6f2('commentsrepository-resolved-comment-thread',null,{'threadId':_0x38f9ef});const _0x5a6b4e=this['context']['plugins']['get'](ct);if(_0x3c178a['resolvedBy']=_0x5a6b4e['getUser'](_0x58b854),_0x3c178a['resolvedAt']=_0x494af0,_0x58ab60||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x41444b=this['context']['plugins']['get']('PendingActions'),_0x29f72e=_0x41444b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x4d08be,'threadId':_0x38f9ef})['then'](({resolvedAt:_0x1b0142,resolvedBy:_0x1cb1d2})=>{_0x41444b['remove'](_0x29f72e),_0x3c178a['resolvedBy']['id']!==_0x1cb1d2&&(_0x3c178a['resolvedBy']=_0x5a6b4e['getUser'](_0x1cb1d2)),_0x3c178a['resolvedAt']=_0x1b0142;})['catch'](_0xfeddf1=>{throw console['error'](_0xfeddf1),new _0x33c6f2('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0xcf1dd4,channelId:_0x47773b,isFromAdapter:_0x298ffc}){if(!this['hasCommentThread'](_0xcf1dd4))throw new _0x33c6f2('commentsrepository-missing-comment-thread',null,{'threadId':_0xcf1dd4});const _0xd89060=this['getCommentThread'](_0xcf1dd4);if(!_0xd89060['isResolved'])throw new _0x33c6f2('commentsrepository-reopen-comment-thread',null,{'threadId':_0xcf1dd4});if(_0xd89060['resolvedBy']=null,_0xd89060['resolvedAt']=null,_0x298ffc||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5524bb=this['context']['plugins']['get']('PendingActions'),_0x336ae4=_0x5524bb['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x47773b,'threadId':_0xcf1dd4})['then'](()=>_0x5524bb['remove'](_0x336ae4))['catch'](_0x5291a3=>{throw console['error'](_0x5291a3),new _0x33c6f2('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5cafc1,isFromAdapter:_0x4608b2}){const _0x50f76c=this['getCommentThread'](_0x5cafc1);if(!_0x50f76c)throw new _0x33c6f2('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5cafc1),this['_threads']['delete'](_0x5cafc1),!_0x50f76c['isSubmitted']||_0x4608b2||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x38c3de=this['context']['plugins']['get']('PendingActions'),{channelId:_0x539aaf}=_0x50f76c,_0x42020f=_0x38c3de['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x539aaf,'threadId':_0x5cafc1})['then'](()=>_0x38c3de['remove'](_0x42020f))['catch'](_0x3b91ed=>{throw console['error'](_0x3b91ed),new _0x33c6f2('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x2d2213,unlinkedAt:_0xd6c9e,context:_0x1c9289,attributes:_0x4683ce,isFromAdapter:_0x262e38}){if('string'!=typeof _0x2d2213)throw new _0x33c6f2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2d2213});if(!this['hasCommentThread'](_0x2d2213))throw new _0x33c6f2('commentsrepository-missing-comment-thread',null,{'threadId':_0x2d2213});const _0x5f469f=this['getCommentThread'](_0x2d2213);let _0x3153ac=!0x1;if(void 0x0!==_0x1c9289&&_0x5f469f['context']!==_0x1c9289&&(_0x5f469f['context']=_0x1c9289,_0x3153ac=!0x0),void 0x0!==_0xd6c9e&&_0x5f469f['unlinkedAt']!==_0xd6c9e&&(_0x5f469f['unlinkedAt']=_0xd6c9e,_0x3153ac=!0x0),_0x4683ce&&!yt(_0x4683ce,_0x5f469f['attributes'])&&(_0x5f469f['attributes']=_0x4683ce,_0x3153ac=!0x0),!_0x3153ac)return Promise['resolve']();if(!_0x5f469f['isSubmitted']||_0x262e38||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x3c14d0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5ed480}=_0x5f469f,_0xcf8189=_0x3c14d0['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5ed480,'threadId':_0x2d2213,'context':_0x1c9289,'unlinkedAt':_0xd6c9e,'attributes':_0x4683ce})['then'](()=>_0x3c14d0['remove'](_0xcf8189))['catch'](_0x1aff8b=>{throw console['error'](_0x1aff8b),new _0x33c6f2('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x564aee){const _0x31da9f=this['context']['plugins']['get'](N),_0x2cf154=this['getCommentThread'](_0x564aee);if(_0x2cf154['_isAttached']=!0x1,this['_threadToController']['has'](_0x2cf154)){const _0x4eec0e=this['_threadToController']['get'](_0x2cf154),_0x3d44ce=_0x4eec0e['view'],_0x3f386=_0x31da9f['getByInnerView'](_0x3d44ce);this['_threadToController']['delete'](_0x2cf154),this['_viewToController']['delete'](_0x3d44ce),_0x3f386&&_0x31da9f['remove'](_0x3f386),_0x4eec0e['destroy'](),_0x3d44ce['destroy']()['then'](()=>{this['_unbindEditors'](_0x3d44ce);});}}['_updateActiveAnnotation']({threadId:_0x422ff3,resolvedAt:_0x5e5b73}){const _0x5e1835=!!_0x5e5b73,_0x28232e=this['context']['plugins']['get'](N),_0x4bc0d9=this['getCommentThread'](_0x422ff3);if(this['_threadToController']['has'](_0x4bc0d9)){const _0x119c26=this['_threadToController']['get'](_0x4bc0d9)['view'],_0x848e11=_0x28232e['getByInnerView'](_0x119c26);_0x848e11&&(_0x5e1835&&_0x28232e['_removeActiveAnnotation'](_0x848e11),_0x848e11['refreshVisibility']());}}['_getExternalAuthor'](_0x29a139){const _0x5b0f66=this['context']['plugins']['get'](ct),_0x3d8f39=wt('external:'+_0x29a139),_0x5dbca7=_0x5b0f66['getUser'](_0x3d8f39);return _0x5dbca7||_0x5b0f66['addUser']({'id':_0x3d8f39,'name':_0x29a139});}['_createNewComment']({threadId:_0x42d21d,commentId:_0x280123=_0x408d83(),content:_0x278b50,authorId:_0x43c0b0,createdAt:_0xff527d,attributes:_0x188e93}){if('string'!=typeof _0x280123)throw new _0x33c6f2('commentsrepository-invalid-commentid');if('string'!=typeof _0x43c0b0)throw new _0x33c6f2('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x278b50||!_0x278b50['trim']())throw new _0x33c6f2('commentsrepository-invalid-comment-content');const _0x4506de=this['context']['plugins']['get'](ct)['getUser'](_0x43c0b0);if(!_0x4506de)throw new _0x33c6f2('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x43c0b0});let _0x43af6c=null,_0x230977=_0xff527d;return _0x188e93&&_0x188e93['@external']&&(_0x43af6c=this['_getExternalAuthor'](_0x188e93['@external']['authorName']),_0x230977=new Date(_0x188e93['@external']['createdAt'])),new re(this,{'threadId':_0x42d21d,'id':_0x280123,'author':_0x43af6c||_0x4506de,'creator':_0x4506de,'content':_0x278b50,'createdAt':_0xff527d,'authoredAt':_0x230977,'attributes':_0x188e93});}['_addComment'](_0x5f52be){let {threadId:_0x4e8394,content:_0xb7a11,attributes:_0x343f01,isFromAdapter:_0x34046b}=_0x5f52be;const _0x2ce462=this['getCommentThread'](_0x5f52be['threadId']);if(!_0x2ce462)throw new _0x33c6f2('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x14fd46=this['_createNewComment'](_0x5f52be),{id:_0x1a3fbc}=_0x14fd46;if(_0x2ce462['_add'](_0x14fd46),_0x34046b||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x2ce462['isSubmitted'])return Promise['resolve']();const _0x6d9281=this['context']['plugins']['get']('PendingActions'),{channelId:_0x464b5e}=_0x2ce462,_0x3325b3=_0x6d9281['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x343f01||(_0x343f01={}),this['adapter']['addComment']({'channelId':_0x464b5e,'threadId':_0x4e8394,'commentId':_0x1a3fbc,'content':_0xb7a11,'attributes':_0x343f01})['then'](_0x14c4cf=>{_0x6d9281['remove'](_0x3325b3),_0x14c4cf&&this['_updateComment']({'channelId':_0x464b5e,'threadId':_0x4e8394,'commentId':_0x1a3fbc,'createdAt':_0x14c4cf['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x285c77=>{throw console['error'](_0x285c77),new _0x33c6f2('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x4be1c8,commentId:_0x361027,content:_0x76cabb,createdAt:_0x51250e,attributes:_0x288bac,isFromAdapter:_0x4a4680}){if(void 0x0!==_0x76cabb&&('string'!=typeof _0x76cabb||!_0x76cabb['trim']()['length']))throw new _0x33c6f2('commentsrepository-update-comment-invalid-content');const _0x1d1021=this['getCommentThread'](_0x4be1c8),_0x2e92bc=_0x1d1021['getComment'](_0x361027);if(!_0x2e92bc)throw new _0x33c6f2('commentsrepository-update-missing-comment',this);let _0x451038=!0x1;if(_0x76cabb&&_0x76cabb!==_0x2e92bc['content']&&(_0x2e92bc['isEditable']||_0x4a4680)&&(_0x2e92bc['content']=_0x76cabb,_0x451038=!0x0),_0x51250e&&_0x51250e!==_0x2e92bc['createdAt']&&(_0x2e92bc['createdAt']=_0x51250e,_0x2e92bc['attributes']&&_0x2e92bc['attributes']['@external']||(_0x2e92bc['authoredAt']=_0x51250e),_0x451038=!0x0),_0x288bac&&!yt(_0x288bac,_0x2e92bc['attributes'])&&(_0x2e92bc['attributes']=_0x288bac,_0x451038=!0x0),!_0x451038)return Promise['resolve']();if(_0x1d1021['fire']('commentUpdated'),_0x4a4680||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x181672=this['context']['plugins']['get']('PendingActions'),{channelId:_0x36d778}=this['getCommentThread'](_0x2e92bc['threadId']),_0x16fb03=_0x181672['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x36d778,'threadId':_0x4be1c8,'commentId':_0x361027,'content':_0x76cabb,'attributes':_0x288bac})['then'](()=>_0x181672['remove'](_0x16fb03))['catch'](_0x4496db=>{throw console['error'](_0x4496db),new _0x33c6f2('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2cdf69,commentId:_0x287cf5,isFromAdapter:_0x4db332}){const _0x211c8f=this['getCommentThread'](_0x2cdf69),_0x4479a1=_0x211c8f['getComment'](_0x287cf5);if(!_0x4479a1)throw new _0x33c6f2('commentsrepository-remove-missing-comment',this);if(_0x211c8f['_remove'](_0x4479a1),_0x4db332||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2ce43a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x57d0bf}=_0x211c8f,_0x13099b=_0x2ce43a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x57d0bf,'threadId':_0x2cdf69,'commentId':_0x287cf5})['then'](()=>_0x2ce43a['remove'](_0x13099b))['catch'](_0x578899=>{throw console['error'](_0x578899),new _0x33c6f2('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x341393(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x58cbf4,_0x3efd89){super();const _0xabc2eb=_0x3efd89['isResolvable'];this['channelId']=_0x3efd89['channelId'],this['id']=_0x3efd89['id'],this['comments']=new _0x256210(),this['_repository']=_0x58cbf4,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3efd89['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x58cbf4,'_permissions',_0x58cbf4,'_readOnlyChannels',()=>_0x58cbf4['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x58cbf4,'_permissions',()=>_0x58cbf4['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x58cbf4,'_permissions',()=>{const _0xdc88b8=_0x58cbf4['getPermissions'](this['channelId']);return _0xdc88b8['write']||_0xdc88b8['admin'];}),this['bind']('isResolvable')['to'](_0x58cbf4,'_permissions',()=>_0xabc2eb&&_0x58cbf4['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3efd89['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x32f909,_0x77cc76)=>_0x32f909?_0x77cc76?_0x32f909<_0x77cc76?_0x32f909:_0x77cc76:_0x32f909:_0x77cc76),this['set']('unlinkedAt',_0x3efd89['unlinkedAt']||null),this['set']('resolvedAt',_0x3efd89['resolvedAt']||null),this['set']('resolvedBy',_0x3efd89['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x355bfd=>!!_0x355bfd),this['set']('attributes',_0x3efd89['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x423a3e,_0x7bc9e4)=>_0x423a3e+_0x7bc9e4['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x3b30c7,id:_0x207cfc}=this;this['_repository']['fire'](Pt('submitCommentThread',_0x3b30c7),{'channelId':_0x3b30c7,'threadId':_0x207cfc});}['setUnlinkedAt'](_0x533c40){this['_update']({'unlinkedAt':_0x533c40});}['resolve']({resolvedAt:_0x11cfa4=new Date(),resolvedBy:_0x868148=null,isFromAdapter:_0x5e4015=!0x1}={}){const _0x2f52df=this['_repository']['context']['plugins']['get'](ct)['me'],{channelId:_0x3474ef,id:_0x103fdd}=this;this['_repository']['fire'](Pt('resolveCommentThread',_0x3474ef),{'channelId':_0x3474ef,'threadId':_0x103fdd,'resolvedAt':_0x11cfa4,'resolvedBy':_0x868148||_0x2f52df['id'],'isFromAdapter':_0x5e4015});}['reopen']({isFromAdapter:_0x57d94c=!0x1}={}){const {channelId:_0x135220,id:_0x11c19d}=this;this['_repository']['fire'](Pt('reopenCommentThread',_0x135220),{'channelId':_0x135220,'threadId':_0x11c19d,'isFromAdapter':_0x57d94c});}['setContext'](_0x5add3b){this['context']||this['_update']({'context':_0x5add3b});}['setAttribute'](_0x2d211d,_0x339036){const _0x5062c7=At(this['attributes']);Ct(_0x5062c7,_0x2d211d,_0x339036),this['_update']({'attributes':_0x5062c7});}['removeAttribute'](_0x496cdb){const _0x42b645=At(this['attributes']);vt(_0x42b645,_0x496cdb),this['_update']({'attributes':_0x42b645});}['remove']({isFromAdapter:_0x144ccc=!0x1}={}){const {channelId:_0x1410e6,id:_0x2aae19}=this;this['_repository']['fire'](Pt('removeCommentThread',_0x1410e6),{'channelId':_0x1410e6,'threadId':_0x2aae19,'isFromAdapter':_0x144ccc});}['attachTo'](_0x4bbc5b){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x4bbc5b});}['addComment'](_0x381801){const {channelId:_0x31f9be,id:_0xbcb691}=this;this['_repository']['fire'](Pt('addComment',_0x31f9be,_0xbcb691),Object['assign']({'channelId':_0x31f9be,'threadId':_0xbcb691},_0x381801));}['getComment'](_0x4d9aad){if('string'!=typeof _0x4d9aad)throw new _0x33c6f2('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x4d9aad});return this['comments']['get'](_0x4d9aad);}['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'](_0x47ab7d=>_0x47ab7d['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5f2273){return this['listenTo'](_0x5f2273,'change:authoredAt',()=>{const _0x24aef7=this['_findOptimalIndex'](_0x5f2273),_0x18682c=this['comments'];_0x24aef7-0x1!=_0x18682c['getIndex'](_0x5f2273)&&_0x24aef7+0x1!=_0x18682c['getIndex'](_0x5f2273)&&(this['_remove'](_0x5f2273),this['_add'](_0x5f2273));}),this['comments']['add'](_0x5f2273,this['_findOptimalIndex'](_0x5f2273));}['_update'](_0x888d2f){const {channelId:_0x4629a3,id:_0x39b046}=this;this['_repository']['fire'](Pt('updateCommentThread',_0x4629a3),{..._0x888d2f,'channelId':_0x4629a3,'threadId':_0x39b046});}['_remove'](_0x100aeb){return this['stopListening'](_0x100aeb),_0x100aeb['destroy'](),this['comments']['remove'](_0x100aeb);}['_findOptimalIndex'](_0x2ea8ed){const _0x5eeec7=this['comments']['find'](_0x2c42ab=>new Date(_0x2c42ab['authoredAt'])['getTime']()>new Date(_0x2ea8ed['authoredAt'])['getTime']());return _0x5eeec7?this['comments']['getIndex'](_0x5eeec7):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x341393(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x250423,_0x41b304){super();const _0x2926c8=_0x250423['context']['plugins']['get'](ct)['me'],_0x341b0d=_0x250423['getCommentThread'](_0x41b304['threadId']),_0x4413a2=0x0===_0x341b0d['comments']['length'],_0x47acdd=_0x2926c8===_0x41b304['author'];this['id']=_0x41b304['id'],this['threadId']=_0x41b304['threadId'],this['author']=_0x41b304['author'],this['creator']=_0x41b304['creator'],this['isExternal']=Boolean(_0x41b304['attributes']&&_0x41b304['attributes']['@external']),this['set']('content',_0x41b304['content']),this['createdAt']=_0x41b304['createdAt']||new Date(),this['set']('authoredAt',_0x41b304['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x341b0d,'resolvedAt'),this['set']('attributes',_0x41b304['attributes']||{}),this['bind']('isEditable')['to'](_0x250423,'_permissions',()=>{const _0x5ed72f=_0x250423['getPermissions'](_0x341b0d['channelId'])['write'],_0x53eb80=_0x250423['getPermissions'](_0x341b0d['channelId'])['modifyAll'];return _0x47acdd&&_0x5ed72f||!_0x47acdd&&_0x53eb80;}),this['bind']('isRemovable')['to'](_0x341b0d,'isRemovable',_0x250423,'_permissions',_0x1a95df=>{const _0x78ba75=_0x250423['getPermissions'](_0x341b0d['channelId'])['write'],_0xa53338=_0x250423['getPermissions'](_0x341b0d['channelId'])['modifyAll'];return _0x47acdd&&_0x78ba75||_0x1a95df&&_0x4413a2||!_0x47acdd&&_0xa53338&&!_0x4413a2;}),this['bind']('isReadOnly')['to'](_0x341b0d,'isReadOnly'),this['_repository']=_0x250423;}get['weight'](){return Math['max'](function(_0x1325cb){const _0xc89909=document['createElement']('div');return _0xc89909['innerHTML']=_0x1325cb,_0xc89909['textContent']['length'];}(this['content']),0xc8);}['update'](_0x17a211){const {threadId:_0x394c58,id:_0x4521a7}=this;if(!this['_repository']['hasCommentThread'](_0x394c58))throw new _0x33c6f2('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x2373a0}=this['_repository']['getCommentThread'](_0x394c58);this['_repository']['fire'](Pt('updateComment',_0x2373a0,_0x394c58),{'channelId':_0x2373a0,'threadId':_0x394c58,'commentId':_0x4521a7,..._0x17a211});}['setAttribute'](_0x719675,_0x2de3b9){const _0x517876=At(this['attributes']);Ct(_0x517876,_0x719675,_0x2de3b9),this['update']({'attributes':_0x517876});}['removeAttribute'](_0x4581ca){const _0x5bd989=At(this['attributes']);vt(_0x5bd989,_0x4581ca),this['update']({'attributes':_0x5bd989});}['remove'](_0x966dc2={}){if(!_0x966dc2['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x115024,id:_0x44b67f}=this;if(!this['_repository']['hasCommentThread'](_0x115024))throw new _0x33c6f2('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x325441}=this['_repository']['getCommentThread'](_0x115024);this['_repository']['fire'](Pt('removeComment',_0x325441,_0x115024),{'channelId':_0x325441,'threadId':_0x115024,'commentId':_0x44b67f,..._0x966dc2});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Pt(_0x1cec8c,..._0x6f9b98){for(const _0x524839 of _0x6f9b98)void 0x0!==_0x524839&&(_0x1cec8c+=':'+String(_0x524839));return _0x1cec8c;}class Q extends _0x2f1274{['refresh'](){const _0x5d3145=this['editor']['model']['document']['selection'];for(const _0x3724a7 of _0x5d3145['getRanges']())if(this['_hasContent'](_0x3724a7))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x56f333=_0x408d83()}={}){const _0x40188=this['editor']['model'],_0x4e5677=[];for(const _0x331391 of _0x40188['document']['selection']['getRanges']())this['_hasContent'](_0x331391)&&_0x4e5677['push'](this['_trimToContent'](_0x331391));_0x40188['change'](_0x40638c=>{for(const _0x5cd07b of _0x4e5677){const _0x5b38bd=_0x408d83()['substr'](0x1,0x5),_0x1bec0c='comment:'+_0x56f333+':'+_0x5b38bd;_0x40638c['addMarker'](_0x1bec0c,{'range':_0x5cd07b,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x2b3f46){for(const _0x445d34 of _0x2b3f46['getItems']())if(this['_itemIsContent'](_0x445d34))return!0x0;return!0x1;}['_itemIsContent'](_0x318954){return _0x318954['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x318954)&&!_0x318954['is']('element','tableCell');}['_trimToContent'](_0x3328ac){const _0x598916=_0x2e9f9d=>!this['_itemIsContent'](_0x2e9f9d['item']),_0x5b4d2d=_0x3328ac['start']['getLastMatchingPosition'](_0x598916),_0x1828c3=_0x3328ac['end']['getLastMatchingPosition'](_0x598916,{'direction':'backward'});return this['editor']['model']['createRange'](_0x5b4d2d,_0x1828c3);}}class P extends _0xc56fcc{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc3a3cb){super(_0xc3a3cb),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x22436d=this['editor'],_0x4331b1=_0x22436d['model']['document']['selection'],_0x42c249=_0x363911(()=>this['refreshSelectedViews'](),0xa);_0x4331b1['on']('change:range',(_0x2a7071,_0x46196e)=>{_0x46196e['directChange']&&(_0x42c249['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x22436d['editing']['view']['document'],'change:isFocused',(_0x504a5f,_0x412613,_0x576b50)=>{_0x576b50&&_0x42c249();}),this['listenTo'](_0x22436d['ui']['focusTracker'],'change:isFocused',(_0x22853a,_0x344e10,_0x4310e2)=>{_0x4310e2||_0x22436d['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x598c5c=>this['_editorAnnotationsData']['has'](_0x598c5c['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x49eed2){if(this['_editorAnnotations']['has'](_0x49eed2['view']))return;this['_editorAnnotations']['add'](_0x49eed2['view']),this['editor']['ui']['focusTracker']['add'](_0x49eed2['view']['element']);const _0x4d8953=this['editor']['plugins']['get'](N);this['listenTo'](_0x4d8953['collection'],'remove',(_0x9351ab,_0x568090)=>{this['editor']['ui']['focusTracker']['remove'](_0x568090['view']['element']),this['_editorAnnotations']['delete'](_0x568090['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x9bc4cc){if('function'!=typeof _0x9bc4cc)throw new _0x33c6f2('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x9bc4cc);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x35e702,annotations:_0x41e427}){const _0x179e1f=[],_0x11a298=this['editor']['model']['document']['selection'],_0x11eb99=Array['from'](_0x11a298['getRanges']());for(const [_0x3b6e24,_0x56b8f6]of this['_editorAnnotationsData']){const _0x462c3b=_0x33ec1c(_0x56b8f6),_0x130a1=_0x41e427['getByInnerView'](_0x3b6e24);_0x462c3b&&_0x130a1&&_0x179e1f['push']({'annotation':_0x130a1,'range':_0x462c3b});}function _0x33ec1c(_0x524acc){for(const _0xa59541 of _0x524acc)for(const _0x1845a3 of _0x11eb99)if(_0xa59541['containsRange'](_0x1845a3,!_0x11a298['isCollapsed']))return _0xa59541;return null;}return _0x179e1f['sort']((_0x1ceb0e,_0x1ed159)=>{const _0x58252e=_0x1ceb0e['range'],_0x53317f=_0x1ed159['range'];if(!_0x58252e['isEqual'](_0x53317f)){if(_0x58252e['containsRange'](_0x53317f,!0x0))return 0x1;if(_0x53317f['containsRange'](_0x58252e,!0x0))return-0x1;}return _0x1ceb0e['annotation']==_0x35e702?-0x1:_0x1ed159['annotation']==_0x35e702?0x1:0x0;})['map'](_0x3b04f9=>_0x3b04f9['annotation']);}get['_editorAnnotationsData'](){const _0x57f926=new Map();for(const _0x4dd0dd of Array['from'](this['_dataCollectors']))for(const [_0x1c1d53,_0x463ae9]of _0x4dd0dd())_0x57f926['set'](_0x1c1d53,_0x463ae9);return _0x57f926;}}class at extends _0xc56fcc{['afterInit'](){const _0x1519f1=this['editor'];if(!_0x1519f1['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1519f1['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ut extends _0xc56fcc{constructor(_0xdaf52e){super(_0xdaf52e),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2686d6=this['editor'],_0x51b042=_0x2686d6['commands']['get']('importWord'),_0x5382e5=_0x2686d6['plugins']['get'](ct);_0x51b042&&(_0x51b042['on']('execute',(_0x38f23a,[,_0x9d903a])=>{_0x9d903a['collaboration_features']={'comments':!0x0,'user_id':_0x5382e5['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x51b042,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5751d9,_0x41f6cb){const {comment_threads:_0xcf82fd}=_0x41f6cb;_0xcf82fd&&_0xcf82fd['forEach'](({thread_id:_0x539462,comments:_0x3a1295,is_resolved:_0x810202})=>{const _0x535df6=new Date(),_0x15ad3d=_0x3a1295['map'](({author:_0x419259,content:_0x1a0598,created_at:_0x399d19})=>({'content':_0x1a0598,'authorId':this['editor']['plugins']['get'](ct)['me']['id'],'createdAt':_0x535df6,'attributes':{'@external':{'authorName':_0x419259,'createdAt':_0x399d19?new Date(_0x399d19):new Date(),'source':'importWord'}}})),_0x4f72b4=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4f72b4,'threadId':_0x539462,'comments':_0x15ad3d,'resolvedAt':_0x810202?_0x535df6:null});});}}class ft extends _0xc56fcc{constructor(_0x25c367){super(_0x25c367),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Rt,Mt];}['afterInit'](){const _0x2001e7=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2001e7,'contentInsertion',(_0x23e8e9,_0xd6bb45)=>this['_removeMarkersWithoutThreads'](_0xd6bb45['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x1cde98){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x1cde98;const _0x5af081=this['editor']['plugins']['get']('CommentsRepository');for(const _0x1666b6 of _0x1cde98['keys']()){const [_0x5df808,_0x1549df]=_0x1666b6['split'](':');'comment'!=_0x5df808||_0x5af081['hasCommentThread'](_0x1549df)||_0x1cde98['delete'](_0x1666b6);}return _0x1cde98;}['_registerMarkerInClipboardPipeline'](){const _0x3d6dd0=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x166ce5=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x166ce5&&_0x3d6dd0['_registerMarkerToCopy']('comment',_0x166ce5);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x424ce4){switch(_0x424ce4){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class dt extends _0xc56fcc{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x5edaeb,_0x5288db)=>{if(!_0x5288db['options']['showCommentHighlights'])return null;if(_0x5288db['options']['ignoreResolvedComments']){const {id:_0x4ced52}=er(_0x5edaeb['markerName']),_0x29bab4=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4ced52);if(_0x29bab4&&_0x29bab4['isResolved']&&_0x5edaeb['item'])return _0x5288db['consumable']['consume'](_0x5edaeb['item'],'addMarker:'+_0x5edaeb['markerName']),_0x5288db['consumable']['consume'](_0x5edaeb['item'],'removeMarker:'+_0x5edaeb['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x76a8f7=>{_0x76a8f7['on']('addMarker:comment',(_0x5e58ea,_0x3464c8,_0x1c0f5b)=>{if(!_0x1c0f5b['options']['showCommentHighlights'])return;const _0x2de600=_0x3464c8['item'];if(!_0x2de600)return;const _0x5624bf=_0x1c0f5b['mapper']['toViewElement'](_0x2de600);this['editor']['model']['schema']['isObject'](_0x2de600)&&_0x5624bf&&!_0x5624bf['getCustomProperty']('widget')&&_0x5624bf['is']('containerElement')&&_0x322593(_0x5624bf,_0x1c0f5b['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x22fb2f,{writer:_0x27c521,options:_0x4f9ce2})=>{if(!_0x4f9ce2['showCommentHighlights'])return null;const _0x362cfa=_0x27c521['createContainerElement']('div'),_0x35d0b=_0x27c521['createEmptyElement']('hr');return _0x27c521['addClass']('ck-horizontal-line',_0x362cfa),_0x27c521['insert'](_0x27c521['createPositionAt'](_0x362cfa,0x0),_0x35d0b),_0x362cfa;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x4d8c15,{writer:_0xacc94b,options:_0x5c3ce8})=>{if(!_0x5c3ce8['showCommentHighlights'])return null;const _0x17af2c=_0xacc94b['createContainerElement']('span'),_0x20d0de=_0xacc94b['createEmptyElement']('img');return _0xacc94b['addClass']('image-inline',_0x17af2c),_0xacc94b['insert'](_0xacc94b['createPositionAt'](_0x17af2c,0x0),_0x20d0de),_0x17af2c;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x13c6a8,{writer:_0x33bf7a,options:_0x5e09c2})=>{if(_0x5e09c2['showCommentHighlights'])return _0x33bf7a['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1fa631,_0x39045e,_0x53ab81)=>{_0x53ab81['options']['showCommentHighlights']&&_0x1fa631['stop']();},{'priority':'high'});}}class r extends _0xc56fcc{static get['requires'](){return[o,P,ct,at,ut,ft,dt];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x316023){super(_0x316023),this['set']('isThreadsLoadingPaused',!0x0),_0x316023['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x4d67d2,_0x4bcdd3,_0x383d3f,_0x1fa923)=>{const _0xcbcd54=_0x316023['plugins']['get'](o),_0xc035a5=_0x383d3f?er(_0x383d3f)['id']:null;_0x316023['model']['change'](()=>{if(_0xc035a5){const _0x162de8=this['getAllMarkersForId'](_0xc035a5);for(const _0x4911b0 of _0x162de8)_0x316023['editing']['reconvertMarker'](_0x4911b0);}if(_0x1fa923){const {id:_0xdd5a17}=er(_0x1fa923),_0xcd94b=_0xcbcd54['getCommentThread'](_0xdd5a17);if(_0xcd94b&&!_0xcd94b['isAttached'])return;const _0x26a70a=this['getAllMarkersForId'](_0xdd5a17);for(const _0x21a8e9 of _0x26a70a)_0x316023['editing']['reconvertMarker'](_0x21a8e9);}}),_0xc035a5&&this['scrollToThreadMarker'](_0xc035a5);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x192bae=this['editor'],_0x149eec=_0x192bae['plugins']['get'](o),_0x5e66d3=_0x192bae['config']['get']('collaboration.channelId'),_0x5df5a6=_0x149eec['getCommentThreads']()['filter'](_0x30fe22=>_0x30fe22['channelId']!==_0x5e66d3);_0x192bae['commands']['add']('addCommentThread',new Q(_0x192bae)),this['listenTo'](_0x192bae,'change:isReadOnly',(_0x3a2915,_0x6826bf,_0x582073)=>{_0x149eec['switchReadOnly'](_0x582073,_0x192bae['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x149eec,mt('addCommentThread',_0x5e66d3),(_0x3c4127,{threadId:_0xbb3066})=>{const _0x43d84f=this['editor']['plugins']['get'](o)['getCommentThread'](_0xbb3066);_0x43d84f&&_0x43d84f['unlinkedAt']&&this['_attachArchivedThread'](_0xbb3066);}),this['listenTo'](_0x149eec,mt('removeCommentThread',_0x5e66d3),(_0x545207,{threadId:_0x221991})=>{_0x192bae['model']['enqueueChange']({'isUndoable':!0x1},_0x3b3086=>{const _0x352c16=this['getAllMarkersForId'](_0x221991);for(const _0x2009f7 of _0x352c16)_0x3b3086['removeMarker'](_0x2009f7);});}),this['listenTo'](_0x149eec,mt('resolveCommentThread',_0x5e66d3),(_0x19e494,{threadId:_0x4dfe25})=>{(this['_reconvertMarkers'](_0x4dfe25),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4dfe25)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x149eec,mt('reopenCommentThread',_0x5e66d3),(_0x46feae,{threadId:_0x11f467})=>{this['_reconvertMarkers'](_0x11f467);},{'priority':'low'}),this['listenTo'](_0x149eec,mt('addComment',_0x5e66d3),(_0x135188,{threadId:_0x52306d,isFromAdapter:_0x4655d3})=>{const _0x23d2ea=this['getAllMarkersForId'](_0x52306d);if(_0x4655d3||0x0==_0x23d2ea['length']||!_0x149eec['hasCommentThread'](_0x52306d))return;0x1===_0x149eec['getCommentThread'](_0x52306d)['length']&&_0x192bae['model']['enqueueChange']({'isUndoable':!0x1},_0x1bfa49=>{for(const _0x423296 of _0x23d2ea)_0x1bfa49['updateMarker'](_0x423296,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5df5a6);}['afterInit'](){!async function(_0x16b181){const _0x4223bb=_0x373c79([0x72,0x4f,0x70,0x4d,0x69,0x46,0x39,0x4e,0x32,0x35,0x63,0x58,0x78,0x52,0x45,0x77,0x55,0x31,0x7a,0x59,0x42,0x66,0x79,0x68,0x30,0x4a,0x4b,0x37,0x6a,0x56,0x6e,0x67,0x4c,0x38,0x6f,0x62,0x43,0x34,0x50,0x74,0x48,0x6b,0x64,0x33,0x41,0x75,0x61,0x57,0x47,0x51,0x54,0x36,0x76,0x49,0x65,0x6d,0x5a,0x71,0x73,0x44,0x6c,0x53]),_0x563d30=0x1faf7968,_0xd44d2a=0x1fa82490^_0x563d30,_0x5bece9=window[_0x373c79([0x44,0x61,0x74,0x65])][_0x373c79([0x6e,0x6f,0x77])](),_0x39b48e=_0x16b181[_0x373c79([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a2a04=new window[(_0x373c79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f3bcd=>{_0x39b48e[_0x373c79([0x6f,0x6e,0x63,0x65])](_0x373c79([0x72,0x65,0x61,0x64,0x79]),_0x3f3bcd);}),_0x4030f3={[_0x373c79([0x6b,0x74,0x79])]:_0x373c79([0x45,0x43]),[_0x373c79([0x75,0x73,0x65])]:_0x373c79([0x73,0x69,0x67]),[_0x373c79([0x63,0x72,0x76])]:_0x373c79([0x50,0x2d,0x32,0x35,0x36]),[_0x373c79([0x78])]:_0x373c79([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]),[_0x373c79([0x79])]:_0x373c79([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]),[_0x373c79([0x61,0x6c,0x67])]:_0x373c79([0x45,0x53,0x32,0x35,0x36])},_0x2efebc=_0x39b48e[_0x373c79([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x373c79([0x67,0x65,0x74])](_0x373c79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x175393(){let _0x539453,_0x5069e5=null,_0x288573=null;try{if(_0x2efebc==_0x373c79([0x47,0x50,0x4c]))return _0x373c79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x539453=_0x1f0ee0(),!_0x539453)return _0x373c79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x539453[_0x373c79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x288573=_0x331b3c(_0x539453[_0x373c79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x539453[_0x373c79([0x6a,0x74,0x69])])),await _0x538e02()?_0x375d8d()?_0xaa62b9()?_0x373c79([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39130d()?(_0x539453[_0x373c79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x373c79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5069e5=_0x2b11f5(_0x373c79([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x539453[_0x373c79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x373c79([0x74,0x72,0x69,0x61,0x6c])&&(_0x5069e5=_0x2b11f5(_0x373c79([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b6f2a()):_0x373c79([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x373c79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x373c79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5aa899){return _0x373c79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xaa62b9(){const _0x5c749d=[_0x373c79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x373c79([0x74,0x72,0x69,0x61,0x6c])][_0x373c79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539453[_0x373c79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bece9/0x3e8:0xe10*_0xd44d2a;return _0x539453[_0x373c79([0x65,0x78,0x70])]<_0x5c749d;}function _0x375d8d(){const _0x4fe3c4=_0x539453[_0x373c79([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4fe3c4)return!0x1;if(_0x4fe3c4[_0x373c79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x373c79([0x2a])))return!0x0;if(_0x4fe3c4[_0x373c79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x373c79([0x43,0x4d,0x54])))return!0x0;if(_0x4fe3c4[_0x373c79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x373c79([0x52,0x43,0x4d,0x54]))){if(_0x2bcddc())return!0x0;if(_0x2df096()||_0x7822be())return!0x0;}return!0x1;}function _0x39130d(){const _0x371661=_0x539453[_0x373c79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x371661||0x0==_0x371661[_0x373c79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3093f1}=new URL(window[_0x373c79([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x371661[_0x373c79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3093f1))return!0x0;const _0x1d9e6a=_0x3093f1[_0x373c79([0x73,0x70,0x6c,0x69,0x74])](_0x373c79([0x2e]));return _0x371661[_0x373c79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49d5b3=>_0x49d5b3[_0x373c79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x373c79([0x2a])))[_0x373c79([0x6d,0x61,0x70])](_0x471457=>_0x471457[_0x373c79([0x73,0x70,0x6c,0x69,0x74])](_0x373c79([0x2e])))[_0x373c79([0x73,0x6f,0x6d,0x65])](_0x214145=>_0x1d9e6a[_0x373c79([0x65,0x76,0x65,0x72,0x79])]((_0x4224e1,_0x2da964)=>_0x214145[_0x2da964]===_0x4224e1||_0x214145[_0x2da964]===_0x373c79([0x2a])));}function _0x5b6f2a(){return _0x5069e5&&_0x288573?new window[(_0x373c79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50b93c,_0x1ca07c)=>{_0x5069e5[_0x373c79([0x74,0x68,0x65,0x6e])](_0x50b93c,_0x1ca07c),_0x288573[_0x373c79([0x74,0x68,0x65,0x6e])](_0x4d6949=>{_0x4d6949!=_0x373c79([0x56,0x61,0x6c,0x69,0x64])&&_0x50b93c(_0x4d6949);},_0x1ca07c);}):_0x5069e5||_0x288573||_0x373c79([0x56,0x61,0x6c,0x69,0x64]);}}function _0x331b3c(_0x538c91,_0x5279d4){return new window[(_0x373c79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d31bc=>{if(_0x41bcfd())return _0x5d31bc(_0x373c79([0x56,0x61,0x6c,0x69,0x64]));_0x585890(),_0x39b48e[_0x373c79([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x373c79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x177b06=!0x1;const _0x5f52a7=_0x408d83();function _0x3d507b(_0x693cf0){return!!_0x693cf0&&(typeof _0x693cf0===_0x373c79([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x693cf0===_0x373c79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x693cf0[_0x373c79([0x74,0x68,0x65,0x6e])]===_0x373c79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x693cf0[_0x373c79([0x63,0x61,0x74,0x63,0x68])]===_0x373c79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x118d65(_0x3670ff){_0x4542b7(_0x3670ff)[_0x373c79([0x74,0x68,0x65,0x6e])](_0xc25d20=>{if(!_0xc25d20||_0xc25d20[_0x373c79([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x373c79([0x6f,0x6b]))return _0x373c79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cb0ed(_0x5bb1fc(_0x5f52a7+_0x5279d4))!=_0xc25d20[_0x373c79([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x373c79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x373c79([0x56,0x61,0x6c,0x69,0x64]);})[_0x373c79([0x74,0x68,0x65,0x6e])](_0x3dd7b2=>(_0x4a1914(),_0x3dd7b2),()=>{const _0xd3b9d3=_0x240580();return null==_0xd3b9d3?(_0x4a1914(),_0x373c79([0x56,0x61,0x6c,0x69,0x64])):_0x373c79(_0x5bece9-_0xd3b9d3>(0x3ba3fd68^_0x563d30)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x373c79([0x74,0x68,0x65,0x6e])](_0x5d31bc)[_0x373c79([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d31bc(_0x373c79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2003fb=0x1f9997e8^_0x563d30;function _0x4a1914(){const _0x4f0037=_0x373c79([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cb0ed(_0x5bb1fc(_0x538c91)),_0x18d5e0=_0x5844ea(_0x1cb0ed(window[_0x373c79([0x4d,0x61,0x74,0x68])][_0x373c79([0x63,0x65,0x69,0x6c])](_0x5bece9/_0x2003fb)));window[_0x373c79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x373c79([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f0037,_0x18d5e0);}function _0x240580(){const _0x31007c=_0x373c79([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cb0ed(_0x5bb1fc(_0x538c91)),_0x360965=window[_0x373c79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x373c79([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31007c);return _0x360965?window[_0x373c79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5844ea(_0x360965),0x10)*_0x2003fb:null;}function _0x4542b7(_0x211904){return new window[(_0x373c79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27593b,_0x12d332)=>{_0x211904[_0x373c79([0x74,0x68,0x65,0x6e])](_0x27593b,_0x12d332),window[_0x373c79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12d332,0x1faeada8^_0x563d30);});}}_0x39b48e[_0x373c79([0x6f,0x6e])](_0x373c79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e0ab5,_0x5c3205)=>{if(_0x5c3205[0x0]!=_0x538c91)return _0x5d31bc(_0x373c79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c3205[0x1]={..._0x5c3205[0x1],[_0x373c79([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5f52a7};},{[_0x373c79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x373c79([0x68,0x69,0x67,0x68])}),_0x39b48e[_0x373c79([0x6f,0x6e])](_0x373c79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x457bc4=>{_0x3d507b(_0x457bc4[_0x373c79([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x177b06=!0x0,_0x118d65(_0x457bc4[_0x373c79([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x373c79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x373c79([0x6c,0x6f,0x77])}),_0x4a2a04[_0x373c79([0x74,0x68,0x65,0x6e])](()=>{_0x177b06||_0x5d31bc(_0x373c79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41bcfd(){return _0x39b48e[_0x373c79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x373c79([0x76,0x69,0x65,0x77])][_0x373c79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x373c79([0x61,0x75,0x74,0x6f]);}function _0x585890(){_0x39b48e[_0x373c79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x373c79([0x76,0x69,0x65,0x77])][_0x373c79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x373c79([0x61,0x75,0x74,0x6f]);}}function _0x2b11f5(_0x7c9852){const _0x4ceb15=[new window[(_0x373c79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x314d59=>setTimeout(_0x314d59,0x1fa647a4^_0x563d30)),_0x4a2a04[_0x373c79([0x74,0x68,0x65,0x6e])](()=>new window[(_0x373c79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528ce3=>{let _0x577981=0x0;_0x39b48e[_0x373c79([0x6d,0x6f,0x64,0x65,0x6c])][_0x373c79([0x6f,0x6e])](_0x373c79([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x599f11,_0x2a9f90)=>{_0x2a9f90[0x0][_0x373c79([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x577981++,_0x577981==(0x1faf7890^_0x563d30)&&(_0x528ce3(),_0x599f11[_0x373c79([0x6f,0x66,0x66])]());});}))];return window[_0x373c79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x373c79([0x72,0x61,0x63,0x65])](_0x4ceb15)[_0x373c79([0x74,0x68,0x65,0x6e])](()=>_0x7c9852);}async function _0x1634d5(){await _0x4a2a04,_0x39b48e[_0x373c79([0x6d,0x6f,0x64,0x65,0x6c])][_0x373c79([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x454dee,_0x39b48e[_0x373c79([0x6d,0x6f,0x64,0x65,0x6c])][_0x373c79([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x454dee,_0x39b48e[_0x373c79([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x373c79([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2bcddc(){return _0x2929df(_0x373c79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x457353(_0x373c79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x373c79([0x73,0x74,0x61,0x74,0x65])]==_0x373c79([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2df096(){return _0x2929df(_0x373c79([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 _0x7822be(){return _0x2929df(_0x373c79([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4469bd(_0x1abd77){const _0x1cfde6=_0x456bf1();_0x39b48e[_0x1cfde6]=_0x373c79([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1abd77,_0x1abd77!=_0x373c79([0x56,0x61,0x6c,0x69,0x64])&&_0x1634d5();}function _0x456bf1(){const _0x1bbcb2=window[_0x373c79([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x373c79([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x373c79([0x6e,0x6f,0x77])]())[_0x373c79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x373c79([0x2e]),'');let _0x4b91b5=_0x373c79([0x72]);for(let _0x30fe10=0x0;_0x30fe10<_0x1bbcb2[_0x373c79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30fe10+=0x2){let _0x51121d=window[_0x373c79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bbcb2[_0x373c79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30fe10,_0x30fe10+0x2));_0x51121d>=_0x4223bb[_0x373c79([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51121d-=_0x4223bb[_0x373c79([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b91b5+=_0x4223bb[_0x51121d];}return _0x4b91b5;}function _0x1f0ee0(){const _0x1e079d=_0x2efebc[_0x373c79([0x73,0x70,0x6c,0x69,0x74])](_0x373c79([0x2e]));if(0x3!=_0x1e079d[_0x373c79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fe68e(_0x1e079d[0x1]);function _0x4fe68e(_0x178587){const _0x92c126=_0x457c8a(_0x178587);return _0x92c126&&_0x2ecfc6()?_0x92c126:null;function _0x2ecfc6(){const _0x40962b=_0x92c126[_0x373c79([0x6a,0x74,0x69])],_0x180287=window[_0x373c79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40962b[_0x373c79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40962b[_0x373c79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d4064={..._0x92c126,[_0x373c79([0x6a,0x74,0x69])]:_0x40962b[_0x373c79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40962b[_0x373c79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d4064[_0x373c79([0x76,0x63])],_0x5bb1fc(_0x5d4064)==_0x180287;}}}async function _0x538e02(){let _0x257a2c=!0x0;try{const _0x2680b7=_0x2efebc[_0x373c79([0x73,0x70,0x6c,0x69,0x74])](_0x373c79([0x2e])),[_0x52af45,_0x18acbb,_0x73eb10]=_0x2680b7;return _0x559c69(_0x52af45),await _0x4e378c(_0x52af45,_0x18acbb,_0x73eb10),_0x257a2c;}catch(_0x4c7641){return!0x1;}function _0x559c69(_0x126018){const _0xf073f4=_0x457c8a(_0x126018);_0xf073f4&&_0xf073f4[_0x373c79([0x61,0x6c,0x67])]==_0x373c79([0x45,0x53,0x32,0x35,0x36])||(_0x257a2c=!0x1);}async function _0x4e378c(_0x33b89e,_0x41935c,_0x1af28a){const _0x44855a=window[_0x373c79([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x373c79([0x66,0x72,0x6f,0x6d])](_0x45388f(_0x1af28a),_0x20ee66=>_0x20ee66[_0x373c79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24a396=new window[(_0x373c79([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x373c79([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33b89e+_0x373c79([0x2e])+_0x41935c),_0xff21e6=window[_0x373c79([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x373c79([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xff21e6)return;const _0x33dcd8=await _0xff21e6[_0x373c79([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x373c79([0x6a,0x77,0x6b]),_0x4030f3,{[_0x373c79([0x6e,0x61,0x6d,0x65])]:_0x373c79([0x45,0x43,0x44,0x53,0x41]),[_0x373c79([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x373c79([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x373c79([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xff21e6[_0x373c79([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x373c79([0x6e,0x61,0x6d,0x65])]:_0x373c79([0x45,0x43,0x44,0x53,0x41]),[_0x373c79([0x68,0x61,0x73,0x68])]:{[_0x373c79([0x6e,0x61,0x6d,0x65])]:_0x373c79([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33dcd8,_0x44855a,_0x24a396)||(_0x257a2c=!0x1);}}function _0x457c8a(_0x3fc700){return _0x3fc700[_0x373c79([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x373c79([0x65,0x79]))?JSON[_0x373c79([0x70,0x61,0x72,0x73,0x65])](_0x45388f(_0x3fc700)):null;}function _0x45388f(_0x4055cf){return window[_0x373c79([0x61,0x74,0x6f,0x62])](_0x4055cf[_0x373c79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x373c79([0x2b]))[_0x373c79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x373c79([0x2f])));}function _0x5bb1fc(_0x331d6c){let _0x2a2448=0x1505;function _0x581bf8(_0xf93d13){for(let _0x1634d6=0x0;_0x1634d6<_0xf93d13[_0x373c79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1634d6++){const _0x46a975=_0xf93d13[_0x373c79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1634d6);_0x2a2448=(_0x2a2448<<0x5)+_0x2a2448+_0x46a975,_0x2a2448&=_0x2a2448;}}function _0x133775(_0x9ab896){Array[_0x373c79([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9ab896)?_0x9ab896[_0x373c79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x133775):_0x9ab896&&typeof _0x9ab896==_0x373c79([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x373c79([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9ab896)[_0x373c79([0x73,0x6f,0x72,0x74])]()[_0x373c79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11fff2,_0x413d50])=>{_0x581bf8(_0x11fff2),_0x133775(_0x413d50);}):_0x581bf8(window[_0x373c79([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9ab896));}return _0x133775(_0x331d6c),_0x2a2448>>>0x0;}function _0x1cb0ed(_0x1fe06f){return _0x1fe06f[_0x373c79([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x373c79([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x373c79([0x30]));}function _0x5844ea(_0x40a279){return _0x40a279[_0x373c79([0x73,0x70,0x6c,0x69,0x74])]('')[_0x373c79([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x373c79([0x6a,0x6f,0x69,0x6e])]('');}function _0x2929df(_0x3020b4){return _0x39b48e[_0x373c79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x373c79([0x68,0x61,0x73])](_0x3020b4);}function _0x457353(_0x247a9d){return _0x39b48e[_0x373c79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x373c79([0x67,0x65,0x74])](_0x247a9d);}function _0x454dee(){}function _0x373c79(_0x11bd57){return _0x11bd57['map'](_0x415371=>String['fromCharCode'](_0x415371))['join']('');}_0x4469bd(await _0x175393());}(this);}['destroy'](){const _0x568948=this['editor']['plugins']['get'](o),_0x170f61=this['editor']['config']['get']('collaboration.channelId');for(const _0x1db03e of _0x568948['getCommentThreads']({'channelId':_0x170f61}))_0x568948['_detachCommentThread'](_0x1db03e['id']),_0x568948['_threads']['delete'](_0x1db03e['id']);super['destroy']();}['hasMarkerForId'](_0xc94fa5){return this['getAllMarkersForId'](_0xc94fa5)['length']>0x0;}['getAllMarkersForId'](_0x4dcf49){const _0xd8fc7b=[];for(const _0x2cb49b of this['editor']['model']['markers'])_0x2cb49b['name']['startsWith']('comment:'+_0x4dcf49)&&_0xd8fc7b['push'](_0x2cb49b);return _0xd8fc7b;}['scrollToThreadMarker'](_0x4d76a6){const _0x2205fe=this['_getTargetForId'](_0x4d76a6);_0x2205fe&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x4d76a6&&rt({'target':_0x2205fe[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x19c503){this['editor']['model']['change'](()=>{for(const _0x2f648b of this['getAllMarkersForId'](_0x19c503))this['editor']['editing']['reconvertMarker'](_0x2f648b);});}['_attachArchivedThread'](_0x1d015e){const _0x1dfa84=this['editor']['plugins']['get'](o),_0x2e693c=this['editor']['plugins']['get'](P),_0x27d1fa=_0x1dfa84['getCommentThread'](_0x1d015e);if(!_0x27d1fa['isAttached']){const _0x3c0b76=_0x27d1fa['attachTo'](()=>this['_getTargetForId'](_0x27d1fa['id']));_0x2e693c['registerAnnotation'](_0x3c0b76),_0x27d1fa['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x5d7a1f=this['editor'],_0x2817b6=_0x5d7a1f['plugins']['get'](ct);_0x5d7a1f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xaf939,_0x1fa817)=>{const {id:_0x36d792}=er(_0xaf939['markerName']),_0x152ea7=_0x5d7a1f['plugins']['get'](o)['getCommentThread'](_0x36d792),_0x3c2929=this['activeMarker']&&er(this['activeMarker'])['id']===_0x36d792;let _0x14810f;if(_0x152ea7&&_0x152ea7['isResolved']&&!_0x3c2929&&_0xaf939['item'])return _0x1fa817['consumable']['consume'](_0xaf939['item'],'addMarker:'+_0xaf939['markerName']),_0x1fa817['consumable']['consume'](_0xaf939['item'],'removeMarker:'+_0xaf939['markerName']),null;const _0x4f83ad=['ck-comment-marker'];return _0x3c2929&&_0x4f83ad['push']('ck-comment-marker--active'),_0x14810f=_0x152ea7&&_0x152ea7['length']?_0x152ea7['comments']['first']['author']['id']:_0x2817b6['me']['id'],{'classes':_0x4f83ad,'attributes':{'data-comment':_0x36d792,'data-author-id':_0x14810f}};}}),_0x5d7a1f['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x23213f,{options:_0x26b420})=>{if(_0x26b420['showCommentHighlights'])return null;const _0x4b9fad=_0x5d7a1f['plugins']['get'](o),_0x396e0e=_0x5d7a1f['model']['markers']['get'](_0x23213f),{id:_0x4d8974,part:_0x6541e4}=er(_0x23213f);if(_0x396e0e&&!_0x396e0e['affectsData'])return null;if(_0x26b420['ignoreResolvedComments']){const _0x445492=_0x4b9fad['getCommentThread'](_0x4d8974);if(_0x445492&&_0x445492['isResolved'])return null;}return{'group':'comment','name':_0x6541e4?_0x4d8974+':'+_0x6541e4:_0x4d8974};}}),_0x5d7a1f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x711df7,{writer:_0x97cf41})=>_0x97cf41['createElement']('$marker',{'data-name':'comment:'+_0x711df7['getAttribute']('id')})}),_0x5d7a1f['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0xc2a426=this['editor'],_0x4c77f1=_0xc2a426['plugins']['get'](o),_0x429c70=new Set(),_0x420318=new Set();_0xc2a426['model']['document']['registerPostFixer'](_0x7998e4=>{let _0x2f9e5b=!0x1;for(const {name:_0x509efd,data:_0x3438a5}of _0xc2a426['model']['document']['differ']['getChangedMarkers']()){const {group:_0x51a8ee,id:_0x40310f}=er(_0x509efd);let _0x55b9ad=_0x3438a5['newRange'];if('comment'!==_0x51a8ee||!_0x55b9ad)continue;const _0x238907='$graveyard'===_0x55b9ad['root']['rootName'];_0x238907||(_0x55b9ad=ht(_0x55b9ad,_0xc2a426['model']),!_0x55b9ad||_0x55b9ad['isCollapsed']||!_0x3438a5['newRange']||_0x55b9ad['isEqual'](_0x3438a5['newRange']))?_0xc2a426['model']['hasContent'](_0x55b9ad)&&!_0x238907?this['isThreadsLoadingPaused']?_0x429c70['add'](_0x509efd):this['_handleThreadMarker'](_0x509efd,_0x40310f):(_0x420318['add'](_0x509efd),_0x429c70['delete'](_0x509efd),_0x7998e4['removeMarker'](_0x509efd),_0x2f9e5b=!0x0):(_0x7998e4['updateMarker'](_0x509efd,{'range':_0x55b9ad}),_0x2f9e5b=!0x0);}return _0x2f9e5b;}),this['on']('change:isThreadsLoadingPaused',(_0x1bf4bb,_0x3600aa,_0x2783cb)=>{if(!_0x2783cb&&_0x429c70['size'])for(const _0x475405 of _0x429c70){const {id:_0x4cc036}=er(_0x475405);_0x429c70['delete'](_0x475405),_0xc2a426['model']['markers']['get'](_0x475405)&&this['_handleThreadMarker'](_0x475405,_0x4cc036);}}),this['listenTo'](_0xc2a426['model']['document'],'change',()=>{for(const {name:_0x581b43,data:{newRange:_0x3de140}}of _0xc2a426['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5e08a6,id:_0x31d780}=er(_0x581b43);if('comment'!==_0x5e08a6)continue;const _0x53a233=_0x4c77f1['getCommentThread'](_0x31d780),_0x1100cc=this['hasMarkerForId'](_0x31d780);_0x53a233&&(!_0x53a233['_hasTargetInContent']&&_0x3de140&&_0xc2a426['editing']['view']['once']('render',()=>{const _0x2485d9=_0xc2a426['plugins']['get'](N),_0x2cc9a5=_0x4c77f1['_threadToController']['get'](_0x53a233)['view'];_0x2485d9['getByInnerView'](_0x2cc9a5)['refreshVisibility']();},{'priority':'low'}),_0x53a233['_hasTargetInContent']=_0x1100cc||!!_0x3de140),_0x3de140||(_0x420318['add'](_0x581b43),_0x429c70['delete'](_0x581b43));}for(const _0x1e636b of _0x420318){const {id:_0x15e339}=er(_0x1e636b),_0x49cd3b=_0x4c77f1['getCommentThread'](_0x15e339);if(_0x429c70['delete'](_0x1e636b),!_0x49cd3b)continue;const _0x23d585=this['hasMarkerForId'](_0x15e339);_0x23d585||_0x49cd3b['isSubmitted']?_0x23d585||_0x49cd3b['unlinkedAt']||_0x49cd3b['setUnlinkedAt'](new Date()):_0x49cd3b['remove']();}_0x420318['clear']();});}['_handleInitialThreads'](_0x183cbd){_0x183cbd['forEach'](_0x5bc612=>{_0x5bc612['unlinkedAt']&&this['_attachArchivedThread'](_0x5bc612['id']);});}['_getTargetForId'](_0xe77f0d){const _0x3f2787=this['editor'],_0x4ca5d6=this['getAllMarkersForId'](_0xe77f0d);return et(_0x3f2787['editing'],_0x4ca5d6);}['_getTextContext'](_0x4f8e14){const _0x270ddb=this['getAllMarkersForId'](_0x4f8e14);let _0x2a40f4='',_0x5f5558=!0x1;for(const _0x33a6c0 of _0x270ddb){const _0xc02ee=_0x33a6c0['getRange']();for(const _0x5c75c1 of Array['from'](_0xc02ee['getItems']()))_0x5c75c1['is']('$textProxy')?(_0x2a40f4&&_0x5f5558&&(_0x2a40f4+='\x20',_0x5f5558=!0x1),_0x2a40f4+=_0x5c75c1['data']):_0x5f5558=!0x0;_0x5f5558=!0x0;}return _0x2a40f4['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5d4d07,_0x2c9e7d){const _0x3c3373=this['editor'],_0x1990bc=_0x3c3373['plugins']['get'](o);let _0x3066d4=_0x1990bc['getCommentThread'](_0x2c9e7d);const _0x2c9068=_0x3c3373['config']['get']('collaboration.channelId'),_0x241743=_0x3c3373['plugins']['get'](P);if(_0x3066d4&&(_0x3066d4['unlinkedAt']&&_0x3066d4['setUnlinkedAt'](null),_0x3066d4['isAttached']))return _0x3066d4;return!this['getAllMarkersForId'](_0x2c9e7d)[0x0]['managedUsingOperations']?_0x3c3373['editing']['view']['once']('render',()=>{if(_0x1990bc['getCommentThread'](_0x2c9e7d))return;const _0x6957a6=_0x3c3373['plugins']['get'](N);_0x3066d4=_0x1990bc['openNewCommentThread']({'channelId':_0x2c9068,'threadId':_0x2c9e7d,'target':()=>this['_getTargetForId'](_0x2c9e7d),'context':{'type':'text','value':this['_getTextContext'](_0x2c9e7d)}});const _0x253d02=_0x1990bc['_threadToController']['get'](_0x3066d4)['view'],_0x503b38=_0x6957a6['getByInnerView'](_0x253d02);_0x503b38&&_0x241743['registerAnnotation'](_0x503b38);},{'priority':'low'}):_0x1990bc['fetchCommentThread']({'channelId':_0x2c9068,'threadId':_0x2c9e7d})['then'](_0x3c5ae1=>{if('destroyed'!==_0x3c3373['state']){if(_0x3066d4=_0x3c5ae1,_0x3066d4&&!_0x3066d4['isAttached']){const _0x1fdf89=_0x3066d4['attachTo'](()=>this['_getTargetForId'](_0x2c9e7d));_0x241743['registerAnnotation'](_0x1fdf89),_0x3066d4['isResolved']&&this['_reconvertMarkers'](_0x2c9e7d);}else{if(!_0x3066d4){const _0x13b91d=this['getAllMarkersForId'](_0x2c9e7d);_0x3c3373['model']['change'](_0x5e76be=>{for(const _0x4b1658 of _0x13b91d)_0x5e76be['removeMarker'](_0x4b1658);});}}}}),_0x3066d4;}['_handleThreadMarker'](_0x529048,_0x5afed1){const _0x4f1d42=this['_attachMarkerToThread'](_0x529048,_0x5afed1);_0x4f1d42&&!_0x4f1d42['context']&&_0x4f1d42['setContext']({'type':'text','value':this['_getTextContext'](_0x5afed1)});}['_initAriaMarkerChangeAnnouncements'](){const _0x24da3=this['editor'];ot(_0x24da3['model'],({left:_0x52eee4,entered:_0x42d366})=>{for(const _0x69367c of _0x52eee4)if(lt(_0x69367c)){_0x24da3['ui']['ariaLiveAnnouncer']['announce'](S(_0x24da3['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x2bd1f9 of _0x42d366)if(lt(_0x2bd1f9)){_0x24da3['ui']['ariaLiveAnnouncer']['announce'](S(_0x24da3['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x3e8041)));break;}});}}function mt(_0x3d6281,_0x5d42b8){return _0x5d42b8?_0x3d6281+':'+_0x5d42b8:_0x3d6281;}function er(_0x45e9ec){const _0x220505=_0x45e9ec['split'](':');return{'group':_0x220505[0x0],'id':_0x220505[0x1],'part':_0x220505[0x2]};}function ht(_0x12849a,_0x5c7d6f){const _0x412e50=_0x5c7d6f['schema'],_0x3da38b=_0x5c7d6f['createRange'](_0x12849a['start']);for(const _0x7fbdc5 of _0x12849a['getWalker']()){const {type:_0x47b802,item:_0x597139,nextPosition:_0x34e00b}=_0x7fbdc5;if('text'===_0x47b802||_0x412e50['isObject'](_0x597139)){const _0x17349e=_0x5c7d6f['createPositionBefore'](_0x597139);_0x3da38b['isCollapsed']&&(_0x3da38b['start']=_0x17349e),_0x3da38b['end']=_0x34e00b;}}return _0x3da38b;}function lt(_0x145176){return'comment'===er(_0x145176['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0xc56fcc{['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 _0x3f58fe=this['editor'],_0x3f1881=_0x3f58fe['plugins']['get'](o),_0x4555a5=_0x3f58fe['plugins']['get'](r),_0x25c0da=_0x3f58fe['plugins']['get'](N),_0xbc2c20=_0x3f58fe['plugins']['get'](P);_0x3f58fe['ui']['componentFactory']['add']('comment',()=>{const _0x373f85=this['_createUIButton'](_0x39f2d8);return _0x373f85['tooltip']=!0x0,_0x373f85;}),_0x3f58fe['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x142456)),_0xbc2c20['addSourceCollector'](()=>{const _0x311406=[];for(const [_0x4f0cc6,_0x1a0501]of _0x3f1881['_threadToController']){const _0x202632=_0x4555a5['getAllMarkersForId'](_0x4f0cc6['id']),_0x41212d=_0x202632['map'](_0x7ed0a5=>_0x7ed0a5['getRange']());_0x202632['length']>0x0&&_0x311406['push']([_0x1a0501['view'],_0x41212d]);}return _0x311406;}),this['listenTo'](_0x25c0da,'change:activeAnnotations',(_0x4c24f5,_0x352b64,_0x34cb7a)=>{const _0xf1cf39=Array['from'](_0x34cb7a)['map'](_0x3c2b53=>_0x3c2b53['innerView'])['find'](_0x360390=>_0x3f1881['_viewToController']['has'](_0x360390));if(!_0xf1cf39)return void(_0x4555a5['activeMarker']=null);const _0x1f1596=_0x3f1881['_viewToController']['get'](_0xf1cf39)['model']['id'],_0x181f81='comment:'+_0x1f1596;_0x1f1596&&_0x4555a5['hasMarkerForId'](_0x1f1596)?_0x4555a5['activeMarker']=_0x181f81:_0x4555a5['activeMarker']&&(_0x4555a5['activeMarker']=null);}),this['listenTo'](_0x3f1881,'removeCommentThread',(_0x16e7c4,{threadId:_0x373403,isFromAdapter:_0x451c03})=>{!_0x451c03&&_0x3f58fe['ui']['focusTracker']['isFocused']&&_0x4555a5['hasMarkerForId'](_0x373403)&&_0x3f58fe['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3f1881,'addComment',(_0x29ef87,{threadId:_0x967a7b,isFromAdapter:_0x53323a})=>{if(_0x53323a||!_0x4555a5['hasMarkerForId'](_0x967a7b)||!_0x3f1881['hasCommentThread'](_0x967a7b))return;0x1===_0x3f1881['getCommentThread'](_0x967a7b)['length']&&(_0x3f58fe['editing']['view']['focus'](),_0x29ef87['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b511c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x28eb3a;for(const _0x5ab68b in _0x4b511c){const _0x29f0b8=_0x5ab68b,_0x190fc9=_0x4b511c[_0x29f0b8];if('commentsLicenseKeyValid'==_0x190fc9||'commentsLicenseKeyInvalid'==_0x190fc9||'commentsLicenseKeyExpired'==_0x190fc9||'commentsLicenseKeyDomainLimit'==_0x190fc9||'commentsLicenseKeyNotAllowed'==_0x190fc9||'commentsLicenseKeyEvaluationLimit'==_0x190fc9||'commentsLicenseKeyTrialLimit'==_0x190fc9||'commentsLicenseKeyUsageLimit'==_0x190fc9){delete _0x4b511c[_0x29f0b8],_0x28eb3a=_0x190fc9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x28eb3a&&_0x4b511c['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x28eb3a&&_0x4b511c['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x28eb3a&&_0x4b511c['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x28eb3a&&_0x4b511c['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x28eb3a&&_0x4b511c['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x28eb3a&&_0x4b511c['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x28eb3a&&_0x4b511c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x5b425a){const _0x48b13a=this['editor'],_0x15c793=new _0x5b425a(_0x48b13a['locale']),_0x34d7d6=_0x48b13a['commands']['get']('addCommentThread');return _0x15c793['set']({'label':S(_0x48b13a['locale'],'Comment'),'icon':xt}),_0x15c793['bind']('isEnabled')['to'](_0x34d7d6),this['listenTo'](_0x15c793,'execute',()=>_0x34d7d6['execute']()),_0x15c793;}}class s extends _0xc56fcc{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x4a3551){super(_0x4a3551),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x443054,_0x2767e3,_0x46fe29)=>{_0x46fe29?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x198783,_0x7ae023]of this['editor']['commands'])_0x7ae023['affectsData']&&'addCommentThread'!==_0x198783&&_0x7ae023['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x4492ec=this['editor']['editing']['view']['document'];this['listenTo'](_0x4492ec,'cut',_0x19e3db=>_0x19e3db['stop'](),{'priority':'highest'}),this['listenTo'](_0x4492ec,'clipboardInput',_0x1db956=>_0x1db956['stop'](),{'priority':'highest'}),this['listenTo'](_0x4492ec,'delete',_0xf30f96=>_0xf30f96['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x2508af,_0x3607d3]of this['editor']['commands'])_0x3607d3['affectsData']&&'addCommentThread'!==_0x2508af&&_0x3607d3['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x2152b1{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3da3c9){super(_0x3da3c9),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x125694=this['context']['plugins']['get'](N);this['listenTo'](_0x125694,'_activateAnnotation',(_0x432196,_0x1e4c4d)=>{for(const _0x577fbc of this['activeUIs']){const _0x383379=this['_uis']['get'](_0x577fbc);(0x0,this['_uisData']['get'](_0x577fbc)['filter'])(_0x1e4c4d)&&_0x383379['setActiveAnnotation'](_0x1e4c4d);}}),this['listenTo'](_0x125694,'_deactivateAllAnnotations',()=>{for(const _0xdaaf16 of this['activeUIs']){this['_uis']['get'](_0xdaaf16)['setActiveAnnotation'](null);}}),this['listenTo'](_0x125694['_visibleAnnotations'],'add',(_0x176bf0,_0x5d717b)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5d717b);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x641632){return this['activeUIs']['has'](_0x641632);}['activate'](_0x54f61d,_0x3ad305=()=>!0x0){const _0x6264e8=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x54f61d))throw new _0x33c6f2('annotationsuis-missing-ui',this,{'uiName':_0x54f61d});this['isActive'](_0x54f61d)&&this['deactivate'](_0x54f61d),this['activeUIs']['add'](_0x54f61d);const _0x25efe2=new x();!function({source:_0x3ee679,target:_0x3a3aae,filter:_0x396cb4}){for(const _0x48c1c3 of _0x3ee679)_0x396cb4(_0x48c1c3)&&_0x3a3aae['add'](_0x48c1c3);_0x3a3aae['listenTo'](_0x3ee679,'add',(_0x46b265,_0x559e25)=>{_0x396cb4(_0x559e25)&&_0x3a3aae['add'](_0x559e25);}),_0x3a3aae['listenTo'](_0x3ee679,'remove',(_0x5200a9,_0x4cb0e0)=>{_0x3a3aae['has'](_0x4cb0e0)&&_0x3a3aae['remove'](_0x4cb0e0);});}({'source':_0x6264e8['_visibleAnnotations'],'target':_0x25efe2,'filter':_0x3ad305}),this['_uisData']['set'](_0x54f61d,{'collection':_0x25efe2,'filter':_0x3ad305});const _0x43bafd=this['_uis']['get'](_0x54f61d);_0x43bafd['attach'](_0x25efe2),this['listenTo'](_0x43bafd,'change:activeAnnotation',(_0xbaea9e,_0x1abef0,_0x2dc480,_0x80945b)=>{_0x80945b&&_0x6264e8['_removeActiveAnnotation'](_0x80945b),_0x2dc480&&_0x6264e8['_addActiveAnnotation'](_0x2dc480);});}['deactivate'](_0xeb4035){if(this['activeUIs']['delete'](_0xeb4035),!this['_uis']['has'](_0xeb4035))throw new _0x33c6f2('annotationsuis-missing-ui',this,{'uiName':_0xeb4035});const _0x4a07ad=this['_uis']['get'](_0xeb4035);_0x4a07ad['detach'](),this['stopListening'](_0x4a07ad),this['_uisData']['get'](_0xeb4035)['collection']['destroy'](),this['_uisData']['delete'](_0xeb4035);}['switchTo'](_0x5a86a1){if(!this['_uis']['has'](_0x5a86a1))throw new _0x33c6f2('annotationsuis-missing-ui',this,{'uiName':_0x5a86a1});const _0x28d488=this['context']['plugins']['get'](N),_0x545e2d=Array['from'](_0x28d488['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x5a86a1);const _0x42f54d=this['_uis']['get'](_0x5a86a1);_0x42f54d['setActiveAnnotation'](_0x545e2d),_0x42f54d['_setSelectedAnnotations']&&_0x545e2d&&_0x42f54d['_setSelectedAnnotations']([_0x545e2d]);}['deactivateAll'](){for(const _0x1e0e77 of this['activeUIs'])this['deactivate'](_0x1e0e77);}['register'](_0x3f2cdb,_0x452b62){if(this['_uis']['has'](_0x3f2cdb))throw new _0x33c6f2('annotationsuis-register-already-registered');if('function'!=typeof _0x452b62['attach']||'function'!=typeof _0x452b62['detach']||'function'!=typeof _0x452b62['setActiveAnnotation'])throw new _0x33c6f2('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3f2cdb,_0x452b62);}['refilterAnnotations'](){const _0x51c1b4=this['context']['plugins']['get'](N)['collection'],_0x1dadc1=new Map(),_0x822cdf=Array['from'](this['activeUIs']);for(const _0x25d9a6 of this['activeUIs']){const _0x3b6c50=this['_uisData']['get'](_0x25d9a6)['collection'];for(const _0x1a2e48 of _0x3b6c50)_0x1dadc1['set'](_0x1a2e48,_0x25d9a6);}for(const _0x25e69b of _0x51c1b4){const _0x3c14d5=_0x1dadc1['get'](_0x25e69b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x25e69b);const _0x5bbbe4=_0x822cdf['find'](_0x120358=>this['_uisData']['get'](_0x120358)['filter'](_0x25e69b));_0x3c14d5!==_0x5bbbe4&&(_0x3c14d5&&this['_uisData']['get'](_0x3c14d5)['collection']['remove'](_0x25e69b),_0x5bbbe4&&this['_uisData']['get'](_0x5bbbe4)['collection']['add'](_0x25e69b));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xe5e9f4){const _0x385dbd=[];for(const _0x58943a of this['activeUIs']){(0x0,this['_uisData']['get'](_0x58943a)['filter'])(_0xe5e9f4)&&_0x385dbd['push'](_0x58943a);}if(_0x385dbd['length']>0x1)throw new _0x33c6f2('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x385dbd,'annotationType':_0xe5e9f4['type']});}}const he=Dt('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x450fda){super(_0x450fda);const _0x31272c=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 _0x29663f(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x31272c['to']('class')],'style':{'minHeight':_0x31272c['to']('minHeight',_0x4f3122=>'number'==typeof _0x4f3122?he(_0x4f3122+0xa):null)},'dir':_0x450fda['uiLanguageDirection'],'role':'application','aria-label':S(_0x450fda,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x450fda,'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',_0x17020d=>{this['_updateItemPositionInFocusables'](_0x17020d['source']);}),this['list']['forEach'](_0x501398=>{this['focusTracker']['add'](_0x501398['element']),this['_updateItemPositionInFocusables'](_0x501398);}),this['list']['on']('change',(_0x29c307,_0x484e9b)=>{for(const _0x2aca01 of _0x484e9b['removed'])this['focusTracker']['remove'](_0x2aca01['element']),this['focusables']['remove'](_0x2aca01);for(const _0x3d2481 of _0x484e9b['added'])this['focusTracker']['add'](_0x3d2481['element']),this['_updateItemPositionInFocusables'](_0x3d2481);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x216054){const _0x48de9f=this['focusables']['getIndex'](_0x216054);let _0x1bea00,_0x5582bd;for(const _0x36a791 of this['focusables'])if(_0x216054['top']<_0x36a791['top']){_0x1bea00=_0x36a791;break;}if(_0x5582bd=_0x1bea00?this['focusables']['getIndex'](_0x1bea00):this['focusables']['length'],-0x1!==_0x48de9f){if(_0x48de9f===_0x5582bd-0x1)return;this['focusables']['remove'](_0x216054),_0x5582bd=_0x1bea00?this['focusables']['getIndex'](_0x1bea00):this['focusables']['length'];}this['focusables']['add'](_0x216054,_0x5582bd);}}const Ht=Dt('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3cab48){super(_0x3cab48),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x538f03,_0x387bc0)=>_0x538f03+_0x387bc0),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=J(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x39e53d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x39e53d['to']('isAnimationDisabled',_0x3b5f5a=>_0x3b5f5a?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x39e53d['to']('top',_0x4847e6=>Ht(_0x4847e6))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x43e83b=this['element']['clientHeight'];_0x43e83b&&(this['height']=_0x43e83b);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2152b1{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d74a5){super(_0x1d74a5),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 _0xa1adc4=this['context']['config']['get']('sidebar.container');_0xa1adc4&&this['setContainer'](_0xa1adc4);}['setContainer'](_0x414b90){if(!y(_0x414b90))throw new _0x33c6f2('sidebar-setcontainer-invalid-element');this['container']=_0x414b90;}['_attachToContainer']({viewClass:_0x4204e0='',spaceBetweenItems:_0x4a744a=0x19}={}){if(!y(this['container']))throw new _0x33c6f2('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x4204e0,this['_spaceBetweenItems']=_0x4a744a;}['rearrange']({removedAnnotation:_0x12214e,previousAnnotation:_0x38d58d,nextAnnotation:_0x13439b}){const _0x1ec9d0=this['getSidebarItemView'](_0x12214e);this['view']['list']['remove'](_0x1ec9d0),this['_destroySidebarItemView'](_0x12214e),_0x38d58d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x38d58d)),_0x13439b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x13439b)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1a1419,activatedAnnotation:_0x56055e,disableAnimationOnActivatedAnnotation:_0x396bf5}){if(this['_activeAnnotation']=_0x56055e,_0x1a1419){_0x1a1419['isActive']=!0x1;const _0x18844f=this['getSidebarItemView'](_0x1a1419);_0x18844f&&_0x396bf5&&(_0x18844f['isAnimationDisabled']=!0x1);}if(_0x56055e){const _0x195e22=this['getSidebarItemView'](_0x56055e);_0x195e22&&(_0x56055e['isActive']=!0x0,_0x396bf5&&(_0x195e22['isAnimationDisabled']=!0x0,_0x195e22['top']+=0x1),this['_alignToTargetRect'](_0x195e22));}}['_detachFromContainer'](_0x2561e7){if(this['view']['element']['remove'](),_0x2561e7){for(const _0x885d59 of _0x2561e7)this['_destroySidebarItemView'](_0x885d59);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xfb8a6f,_0x1ad726){_0x1ad726||(_0x1ad726=_0xfb8a6f['view']);const _0x56ba3f=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x56ba3f,_0xfb8a6f),this['_annotationToSidebarItemView']['set'](_0xfb8a6f,_0x56ba3f),_0x56ba3f['content']['add'](_0x1ad726),this['listenTo'](_0xfb8a6f['view'],'change:targetRect',(_0x51423b,_0x586cb3,_0x279ab5)=>{const _0x25eb28=this['_getTargetTop'](_0xfb8a6f,_0x279ab5);_0x56ba3f['_targetTop']!=_0x25eb28&&(_0x56ba3f['_targetTop']=_0x25eb28,this['_setItemTop'](_0x56ba3f,_0x25eb28));}),this['listenTo'](_0x56ba3f,'change:top',()=>{this['_recalculate'](_0x56ba3f,'top');}),this['listenTo'](_0x56ba3f,'change:bottom',()=>{this['_recalculate'](_0x56ba3f,'bottom');}),this['_alignToTargetRect'](_0x56ba3f);const _0x221038=this['_getItemBefore'](_0x56ba3f);if(_0x221038)this['_alignAfterItem'](_0x221038,_0x56ba3f)||this['_alignToTargetRect'](_0x56ba3f);else this['_alignToTargetRect'](_0x56ba3f);return this['_updateLastItem'](),this['view']['list']['add'](_0x56ba3f),_0x56ba3f;}['_alignForTopChange'](_0x28827a){if(!_0x28827a['content']['length'])return;const _0xa8838d=this['_getItemBefore'](_0x28827a);if(!_0xa8838d)return;const _0x170691=this['_sidebarItemViewToAnnotation']['get'](_0xa8838d),_0x4f1fee=this['_activeAnnotation'];_0x4f1fee&&_0x4f1fee===_0x170691?this['_alignAfterItem'](_0xa8838d,_0x28827a):this['_alignBeforeItem'](_0x28827a,_0xa8838d);}['_alignForBottomChange'](_0xfe769){if(!_0xfe769['content']['length'])return;const _0x913fc6=this['_getItemAfter'](_0xfe769);if(!_0x913fc6)return;const _0x2d842b=this['_sidebarItemViewToAnnotation']['get'](_0x913fc6),_0x2ec06f=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x246f9e=this['_activeAnnotation'];_0x246f9e&&_0x246f9e===_0x2d842b&&_0x2ec06f?(this['_alignBeforeItem'](_0x913fc6,_0xfe769),this['_alignAfterItem'](_0xfe769,_0x913fc6)):_0x246f9e&&_0x246f9e===_0x2d842b?this['_alignBeforeItem'](_0x913fc6,_0xfe769):this['_alignAfterItem'](_0xfe769,_0x913fc6);}['_recalculate'](_0x4f2dd4,_0x47a688){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4393d8,changedProp:_0x49fef7}of this['_recalculateBuffer'])'top'===_0x49fef7?this['_alignForTopChange'](_0x4393d8):this['_alignForBottomChange'](_0x4393d8);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4f2dd4,'changedProp':_0x47a688});}['getSidebarItemView'](_0x12d50b){return this['_annotationToSidebarItemView']['get'](_0x12d50b);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x3a719d){const _0x450d30=this['getSidebarItemView'](_0x3a719d);this['stopListening'](_0x450d30),this['stopListening'](_0x3a719d['view']),_0x450d30['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x3a719d),this['_sidebarItemViewToAnnotation']['delete'](_0x450d30);}['_createSidebarView'](){const _0x1a1ff0=new V(this['context']['locale']);return _0x1a1ff0['render'](),this['on']('change:_lastItem',(_0x2a3b58,_0x4a5b00,_0x1cf45d,_0x5983bf)=>{_0x5983bf&&_0x1a1ff0['unbind']('minHeight'),_0x1cf45d?_0x1a1ff0['bind']('minHeight')['to'](_0x1cf45d,'bottom'):_0x1a1ff0['minHeight']=null;}),_0x1a1ff0;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x1de99f){const _0x4ba539=this['_sidebarItemViewToAnnotation']['get'](_0x1de99f),_0x9b5373=_0x4ba539&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4ba539)-0x1);return _0x9b5373&&this['getSidebarItemView'](_0x9b5373)||null;}['_getItemAfter'](_0x3640f3){const _0x6075fc=this['_sidebarItemViewToAnnotation']['get'](_0x3640f3),_0x5e63d8=_0x6075fc&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x6075fc)+0x1);return _0x5e63d8&&this['getSidebarItemView'](_0x5e63d8)||null;}['_alignBeforeItem'](_0x1399c1,_0x1d559a){_0x1399c1['updateHeight']();const _0x3d113d=R(_0x1d559a['bottom']+this['_spaceBetweenItems'],_0x1399c1['top']);return!!_0x3d113d&&(this['_setItemTop'](_0x1d559a,_0x1d559a['top']-_0x3d113d),!0x0);}['_alignAfterItem'](_0x18e54c,_0x563d8c){_0x18e54c['updateHeight']();const _0x525c27=R(_0x18e54c['bottom']+this['_spaceBetweenItems'],_0x563d8c['top']);return!!_0x525c27&&(this['_setItemTop'](_0x563d8c,_0x563d8c['top']+_0x525c27,!0x1),!0x0);}['_alignToTargetRect'](_0x561189){const _0x2d41c1=this['_sidebarItemViewToAnnotation']['get'](_0x561189);if(!_0x2d41c1||!_0x2d41c1['target']||!_0x2d41c1['targetRect'])return;const _0x287d1a=this['_getTargetTop'](_0x2d41c1,_0x2d41c1['targetRect']);this['_setItemTop'](_0x561189,_0x287d1a);}['_getTargetTop'](_0x4676b7,_0x56fdba){if(null===_0x56fdba)return 0x0;if(_0x4676b7['target']instanceof _0xc357c2)return _0x56fdba['top'];{const _0x48616e=new _0xc357c2(this['view']['element'])['top'];return _0x56fdba['top']-_0x48616e;}}['_setItemTop'](_0x3aae28,_0x144465,_0x21cc1d=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x21cc1d&&(_0x144465=Math['max'](_0x144465,this['_getMaxAvailableTop'](_0x3aae28))),_0x3aae28['top']=_0x144465;}['_getMaxAvailableTop'](_0x80e265){let _0x396396=this['_getItemBefore'](_0x80e265),_0x4bad9a=0x0;for(;_0x396396;)_0x396396['updateHeight'](),_0x4bad9a+=this['_spaceBetweenItems']+_0x396396['height'],_0x396396=this['_getItemBefore'](_0x396396);return _0x4bad9a;}}function R(_0xa0dc80,_0x2b55d8){return Math['max'](_0xa0dc80-_0x2b55d8,0x0);}function y(_0x8f40cf){return null!==_0x8f40cf&&'object'==typeof _0x8f40cf&&0x1===_0x8f40cf['nodeType'];}class e extends _0x2152b1{['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(_0x3690f0){super(_0x3690f0),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x256210(),this['_refreshPositioningDebounced']=_0x363911(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x38a0e0=this['context']['plugins']['get'](M),_0x44bc30=this['context']['plugins']['get'](z);_0x38a0e0['register']('wideSidebar',this),_0x44bc30['container']&&_0x38a0e0['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4519be){if(_0x4519be===this['activeAnnotation'])return;const _0x2ad023=this['context']['plugins']['get'](z);_0x2ad023['_activeAnnotation']=_0x4519be;const _0x5e8d64=this['activeAnnotation'];_0x2ad023['refresh']({'blurredAnnotation':_0x5e8d64,'activatedAnnotation':_0x4519be}),this['activeAnnotation']=_0x4519be;}['attach'](_0x390fe0){this['annotations']=_0x390fe0;const _0x4ba6fe=this['context']['plugins']['get'](z);if(_0x4ba6fe['_annotations']=_0x390fe0,this['isAttached'])throw new _0x33c6f2('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4ba6fe,'set:container',()=>{this['detach'](),this['listenTo'](_0x4ba6fe,'change:container',_0x3db6af=>{_0x3db6af['off'](),this['attach'](_0x390fe0);});}),_0x4ba6fe['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x23aaf0=_0x18f19d=>{_0x18f19d['updateTargetRect'](),_0x4ba6fe['addAnnotation'](_0x18f19d);};for(const _0x501f7d of _0x390fe0)_0x23aaf0(_0x501f7d);this['listenTo'](_0x390fe0,'add',(_0x4764a0,_0x1c463f)=>{_0x23aaf0(_0x1c463f);}),this['listenTo'](_0x390fe0,'remove',(_0x37a022,_0x56b9c6,_0x500044)=>{_0x4ba6fe['rearrange']({'removedAnnotation':_0x56b9c6,'previousAnnotation':_0x390fe0['get'](_0x500044-0x1),'nextAnnotation':_0x390fe0['get'](_0x500044+0x1)}),_0x56b9c6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x390fe0,'focus',(_0x411f11,_0x3a8d47)=>{this['setActiveAnnotation'](_0x3a8d47);}),this['listenTo'](_0x390fe0,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5d53a5=this['context']instanceof _0x4189fa?this['context']['editors']:new _0x256210([this['context']]);for(const _0x5eb1ad of _0x5d53a5)this['_integrateWithEditorAnnotations'](_0x5eb1ad);this['listenTo'](_0x5d53a5,'add',(_0x51a965,_0x3be9bd)=>{this['listenTo'](_0x3be9bd,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3be9bd);});}),this['listenTo'](_0x5d53a5,'remove',(_0x14a5ce,_0x4baa72)=>{_0x4baa72['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4baa72['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x33c6f2('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x46aaf5=this['context']['plugins']['get'](z);_0x46aaf5['_detachFromContainer'](this['annotations']),this['stopListening'](_0x46aaf5),this['stopListening'](this['annotations']),this['context']instanceof _0x4189fa&&this['stopListening'](this['context']['editors']);for(const _0x2be8c9 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2be8c9);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x20afe9){if(!_0x20afe9['plugins']['has']('EditorAnnotations'))return;const _0x3848cc=_0x20afe9['plugins']['get']('EditorAnnotations'),_0x636cbd=()=>{const _0x53d075=_0x3848cc['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x53d075[0x0]||null);};this['listenTo'](_0x3848cc,'refresh',_0x636cbd),this['listenTo'](_0x3848cc,'blur',(_0x55b70b,{isAnnotationTracked:_0x3e03bb})=>{this['activeAnnotation']&&_0x3e03bb(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3848cc,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x1784c2=>{_0x3848cc['hasDomSelection']()&&(_0x636cbd(),_0x1784c2['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3848cc);}['_destroyEditorAnnotationsIntegration'](_0x49a047){this['stopListening'](_0x49a047),this['_editorAnnotations']['remove'](_0x49a047);}}class D extends _0x39f2d8{['counterView'];constructor(_0x26e994){super(_0x26e994);const _0x263939=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3fcdb7,_0x56b0c5)=>_0x3fcdb7?'...':_0x56b0c5['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',_0x263939['to']('annotationType',_0x16d885=>'ck-annotation-counter__badge--'+_0x16d885),_0x263939['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x263939['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2152b1{['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(_0x5f3dc1){super(_0x5f3dc1),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x42678e),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x256210(),this['_refreshPositioningDebounced']=_0x363911(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x4ddab3(this['context']['locale']),this['balloonPanelView']=new _0x165b02(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5686b2){this['annotations']=_0x5686b2;const _0x4cd16e=this['context']['plugins']['get'](z),_0x45592b=this['balloonPanelView'];if(_0x4cd16e['_annotations']=_0x5686b2,this['isAttached'])throw new _0x33c6f2('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4cd16e,'set:container',()=>{this['detach'](),this['listenTo'](_0x4cd16e,'change:container',_0x5e0c8d=>{_0x5e0c8d['off'](),this['attach'](_0x5686b2);});}),_0x4cd16e['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x58eddb=_0x1a1be3=>{const _0x1c1d5a=new D(this['context']['locale']);_0x4cd16e['addAnnotation'](_0x1a1be3,_0x1c1d5a),this['_annotationToNarrowView']['set'](_0x1a1be3,_0x1c1d5a),_0x1c1d5a['bind']('isDirty','annotationType','number')['to'](_0x1a1be3['view'],'isDirty','type','length'),_0x1c1d5a['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x45592b['content']['first']!==_0x1a1be3['view']?(this['_showBalloon'](_0x1a1be3),_0x1a1be3['view']['element']['focus'](),this['setActiveAnnotation'](_0x1a1be3)):this['setActiveAnnotation'](null);});};for(const _0x40fdde of _0x5686b2)_0x58eddb(_0x40fdde);this['listenTo'](_0x5686b2,'add',(_0x12b469,_0x3cc710)=>{_0x58eddb(_0x3cc710);}),this['listenTo'](_0x5686b2,'remove',(_0x453ee4,_0x201e29,_0x10a271)=>{this['_annotationToNarrowView']['get'](_0x201e29)['destroy'](),this['_annotationToNarrowView']['delete'](_0x201e29),_0x4cd16e['rearrange']({'removedAnnotation':_0x201e29,'previousAnnotation':_0x5686b2['get'](_0x10a271-0x1),'nextAnnotation':_0x5686b2['get'](_0x10a271+0x1)}),_0x201e29===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5686b2,'focus',(_0x447c43,_0x1bf193)=>{this['setActiveAnnotation'](_0x1bf193);}),this['listenTo'](_0x5686b2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xf1703,_0x193001)=>{_0x193001['keyCode']===_0x23349e['esc']&&_0x45592b['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x45592b['content']['first']),this['_hideBalloon'](),_0x193001['stopPropagation'](),_0x193001['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x509fa9,_0x46d313)=>{const _0x42c390=_0x46d313['target'];_0x45592b['isVisible']&&_0x45592b['element']['contains'](_0x42c390)||_0x4cd16e['view']['element']['contains'](_0x42c390)||_0x509fa9['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x1b3216=>_0x1b3216['contains'](_0x42c390))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x370486=this['context']instanceof _0x4189fa?this['context']['editors']:new _0x256210([this['context']]);for(const _0x227bc0 of _0x370486)this['_integrateWithEditorAnnotations'](_0x227bc0);this['listenTo'](_0x370486,'add',(_0x2618df,_0x5cefbc)=>{this['listenTo'](_0x5cefbc,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5cefbc);});}),this['listenTo'](_0x370486,'remove',(_0x1c80c5,_0x39053f)=>{_0x39053f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x39053f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x211b8f){if(_0x211b8f===this['activeAnnotation'])return;const _0x5bc3f7=this['context']['plugins']['get'](z);if(_0x5bc3f7['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x211b8f,'disableAnimationOnActivatedAnnotation':!0x0}),_0x211b8f)_0x5bc3f7['getSidebarItemView'](_0x211b8f)?this['_showBalloon'](_0x211b8f):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x211b8f;}['detach'](){if(!this['isAttached'])throw new _0x33c6f2('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2bda4a=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x22b10f=>_0x22b10f['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2bda4a['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4189fa&&this['stopListening'](this['context']['editors']);for(const _0x3bc265 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3bc265);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'](_0x45e50f){if(!_0x45e50f['plugins']['has']('EditorAnnotations'))return;const _0x1a406b=_0x45e50f['plugins']['get']('EditorAnnotations'),_0x490d23=this['context']['plugins']['get'](z),_0x5d4e30=this['annotations'],_0x40cd83=this['balloonPanelView'],_0x247155=()=>{const _0x616f6e=_0x1a406b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x616f6e),this['setActiveAnnotation'](_0x616f6e[0x0]||null);};this['listenTo'](_0x1a406b,'refresh',_0x247155),this['listenTo'](_0x1a406b,'blur',(_0x22bd43,{isAnnotationTracked:_0x436eed})=>{this['activeAnnotation']&&_0x436eed(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1a406b,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5d4e30,'blur',_0xa7e995=>{_0x1a406b['hasDomSelection']()&&_0xa7e995['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5d9df2,_0x2ab30f)=>{const _0x308092=_0x2ab30f['target'];_0x40cd83['isVisible']&&_0x40cd83['element']['contains'](_0x308092)||_0x490d23['view']['element']['contains'](_0x308092)||this['activeAnnotation']&&_0x1a406b['hasDomSelection']()&&(_0x247155(),_0x5d9df2['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1a406b);}['_destroyEditorAnnotationsIntegration'](_0x2affda){_0x2affda&&(this['stopListening'](_0x2affda),this['_editorAnnotations']['remove'](_0x2affda));}['_setSelectedAnnotations'](_0x5a7af0){for(const _0x4714fa of this['_selectedAnnotations'])_0x5a7af0['includes'](_0x4714fa)||this['_manuallyClosedAnnotationViews']['delete'](_0x4714fa['view']);this['_selectedAnnotations']=_0x5a7af0;}['_refreshPositioning'](){const _0xd9ee86=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0xd9ee86['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x50bd12){if(this['_manuallyClosedAnnotationViews']['has'](_0x50bd12['view']))return;const _0x2e2e0a=this['balloonPanelView']['content']['first'];_0x2e2e0a!==_0x50bd12['view']?(_0x2e2e0a&&this['_detachListeners'](_0x2e2e0a),this['_attachListeners'](_0x50bd12['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x50bd12['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x2b0f99=this['balloonPanelView']['content']['first'],_0x41f48a=_0x2b0f99&&this['annotations']['getByView'](_0x2b0f99);if(!_0x41f48a||!this['_annotationToNarrowView']['has'](_0x41f48a))return;const _0x257a71=this['_annotationToNarrowView']['get'](_0x41f48a)['element'],_0x24265f=(function(){const _0x859993=_0x165b02['defaultPositions'];return[_0x859993['southArrowNorthEast'],_0x859993['northArrowSouthEast'],_0x859993['southArrowNorth'],_0x859993['northArrowSouth'],_0x859993['southArrowNorthWest'],_0x859993['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x257a71,'positions':_0x24265f});}['_hideBalloon'](){const _0xb5003a=this['balloonPanelView'],_0x16fd07=_0xb5003a['content']['first'];_0x16fd07&&(this['_detachListeners'](_0x16fd07),_0xb5003a['unpin'](),_0xb5003a['content']['clear']());}['_attachListeners'](_0x58ef37){this['listenTo'](_0x58ef37,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x58ef37,'Esc',(_0x3e302b,_0x3cd0d6)=>{this['_manuallyClosedAnnotationViews']['add'](_0x58ef37),this['_hideBalloon'](),_0x3cd0d6();});}['_detachListeners'](_0x215c88){this['stopListening'](_0x215c88);}}class c extends _0xc56fcc{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x590580,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f5103){super(_0x5f5103),_0x5f5103['editing']['view']['addObserver'](_0xcf3f66),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x5f5103['plugins']['get'](_0x590580),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x4d5ad5=this['editor']['plugins']['get'](M);_0x4d5ad5['context']===this['editor']&&(_0x4d5ad5['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x13c0cb,_0x3009f2)=>{const _0x45b15a=this['_balloon'];if(this['isAttached']&&_0x45b15a['visibleView']){const _0xeba3f2=this['annotations']['getByView'](_0x45b15a['visibleView']);_0xeba3f2&&this['_closeAnnotation'](_0xeba3f2),_0x3009f2();}}));}['afterInit'](){const _0x241ec2=this['editor']['plugins']['get'](M);_0x241ec2['context']===this['editor']&&(_0x241ec2['hasActive']()||_0x241ec2['switchTo']('inline'));}['setActiveAnnotation'](_0x3713f4){_0x3713f4!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x3713f4&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x3713f4)&&this['_addAnnotationToBalloon'](_0x3713f4,!0x0),_0x3713f4['isActive']=!0x0),_0x3713f4||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3713f4);}['attach'](_0x6391b8){this['annotations']=_0x6391b8;const _0x3b61dd=this['editor']['plugins']['get'](M),_0x32e5f1=this['_balloon'];if(this['isAttached'])throw new _0x33c6f2('inlineannotations-attach-already-attached',this);if(_0x3b61dd['context']!==this['editor'])throw new _0x33c6f2('inlineannotations-not-allowed-with-context',this);const _0xd4cd24=this['editor']['plugins']['get'](P);this['listenTo'](_0xd4cd24,'refresh',()=>{const _0x195ae1=_0xd4cd24['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x3d85d3,_0x1e5bec;!this['_forceRefresh']&&(_0x3d85d3=_0x195ae1,_0x1e5bec=this['_selectedAnnotations'],_0x3d85d3['length']===_0x1e5bec['length']&&_0x3d85d3['every'](_0x5b0cde=>_0x1e5bec['includes'](_0x5b0cde)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x195ae1),this['setActiveAnnotation'](_0x195ae1[0x0]||null));}),this['listenTo'](_0xd4cd24,'blur',(_0xc63a5b,{isAnnotationTracked:_0x218bd0})=>{this['activeAnnotation']&&_0x218bd0(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x5a7261,_0x47ce74,_0x3428d4)=>{_0x3428d4||this['setActiveAnnotation'](null);}),this['listenTo'](_0x6391b8,'remove',(_0x124376,_0x55e2cf)=>{this['_removeAnnotationFromBalloon'](_0x55e2cf),_0x55e2cf===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x32e5f1,'change:visibleView',(_0x2923f7,_0x5e80b4,_0x5c134b,_0x201814)=>{_0x201814&&this['stopListening'](_0x201814);const _0x193638=_0x6391b8['getByView'](_0x5c134b);_0x5c134b&&_0x193638&&(this['listenTo'](_0x5c134b,'change:height',()=>{_0x32e5f1['updatePosition']();}),this['listenTo'](_0x5c134b,'Esc',()=>{this['_closeAnnotation'](_0x193638),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x193638&&this['setActiveAnnotation'](_0x193638));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x32e5f1['visibleView']&&(_0x6391b8['getByView'](_0x32e5f1['visibleView'])&&_0x32e5f1['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 _0x33c6f2('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1ea1d2 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1ea1d2);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x2b0678){for(const _0xf32af9 of this['_selectedAnnotations'])_0x2b0678['includes'](_0xf32af9)||this['_manuallyClosed']['delete'](_0xf32af9);for(const _0x5035ed of this['annotations'])_0x2b0678['includes'](_0x5035ed)||this['_removeAnnotationFromBalloon'](_0x5035ed);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5b391a of _0x2b0678)this['_addAnnotationToBalloon'](_0x5b391a);}this['_selectedAnnotations']=_0x2b0678;}['_addAnnotationToBalloon'](_0x1f7c38,_0xeb8937=!0x1){this['_manuallyClosed']['has'](_0x1f7c38)||(this['_addedAnnotations']['has'](_0x1f7c38)||this['_balloon']['hasView'](_0x1f7c38['view'])||(this['_addedAnnotations']['add'](_0x1f7c38),this['_balloon']['add']({'stackId':_0x1f7c38['view']['id'],'view':_0x1f7c38['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x1f7c38)}})),_0xeb8937&&this['_balloon']['showStack'](_0x1f7c38['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3154b5){const _0x49c6f0=_0x3154b5['target'],_0x3639fc=this['editor']['editing']['view'],_0x2a68e9=_0x3639fc['document']['selection']['getFirstRange'](),_0x1edbe8=_0x3639fc['domConverter']['viewRangeToDom'](_0x2a68e9);if(_0x1edbe8['collapse'](!0x0),_0x49c6f0){if(_0x49c6f0 instanceof _0xc357c2)return _0x49c6f0;let _0x100591=[];for(const _0x5328f7 of _0x49c6f0)_0x100591['push'](...(_0x2980a9=_0x5328f7['getClientRects'](),Array['from'](_0x2980a9)['map'](DOMRect['fromRect'])));_0x100591=function(_0xb4a066){const _0x2c8cc0=[];let _0x59f267=_0xb4a066[0x0];for(let _0x30de1e=0x1;_0x30de1e<_0xb4a066['length'];_0x30de1e++)b(_0x59f267,_0xb4a066[_0x30de1e])?_0x59f267['width']+=_0xb4a066[_0x30de1e]['width']:(_0x2c8cc0['push'](_0x59f267),_0x59f267=_0xb4a066[_0x30de1e]);return _0x2c8cc0['push'](_0x59f267),_0x2c8cc0;}(_0x100591);const _0x367684=_0x1edbe8['getBoundingClientRect']();return _0x100591['find'](_0x4aa912=>_0x4aa912['top']<=_0x367684['top']&&_0x4aa912['bottom']>=_0x367684['bottom']&&_0x4aa912['left']<=_0x367684['left']&&_0x4aa912['right']>=_0x367684['right'])||_0x100591[0x0];}var _0x2980a9;return _0x3154b5['targetRect']||_0x1edbe8;}['_removeAnnotationFromBalloon'](_0x27bd11){this['_addedAnnotations']['has'](_0x27bd11)&&this['_balloon']['hasView'](_0x27bd11['view'])&&(this['_addedAnnotations']['delete'](_0x27bd11),this['_balloon']['remove'](_0x27bd11['view']));}['_closeAnnotation'](_0x3f18ec){this['_manuallyClosed']['add'](_0x3f18ec),this['_removeAnnotationFromBalloon'](_0x3f18ec);}}function b(_0x39f661,_0xcd0d26){return _0x39f661['top']===_0xcd0d26['top']&&_0x39f661['bottom']===_0xcd0d26['bottom']&&_0x39f661['right']===_0xcd0d26['left'];}var it='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class st extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1316a6,_0x15007e){super(_0x1316a6),this['set']('isEmpty',!_0x15007e['length']),this['focusTracker']=new _0x29663f(),this['_annotationViews']=_0x15007e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x15007e,'focusTracker':this['focusTracker']}),this['listenTo'](_0x15007e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x15007e,'remove',(_0x88e535,_0x24108e)=>{_0x24108e['isActive']&&this['focus'](),_0x15007e['length']||(this['isEmpty']=!0x0);});const _0x1b70ab=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x1316a6,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x15007e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x1b70ab['if']('isEmpty','ck-hidden',_0x3f05b4=>!_0x3f05b4)]},'children':[{'text':S(_0x1316a6,'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 _0x3752ad of this['_annotationViews'])this['focusTracker']['add'](_0x3752ad['element']);this['_annotationViews']['on']('change',(_0x3b41e0,{added:_0x1fd6d0,removed:_0x9e2b79})=>{for(const _0x24ded2 of _0x1fd6d0)this['focusTracker']['add'](_0x24ded2['element']);for(const _0x244a3c of _0x9e2b79)this['focusTracker']['remove'](_0x244a3c['element']);});}}class f extends _0x2152b1{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x2d80e2){super(_0x2d80e2),this['archivedThreads']=new _0x256210();}['init'](){const _0x1cbdb8=this['context'],_0x4dd08d=_0x1cbdb8['plugins']['get'](o),_0xd786be=_0x1cbdb8['plugins']['get'](N);this['listenTo'](_0x4dd08d,'addCommentThread',(_0x410130,{threadId:_0x461d5b})=>{const _0x53d30d=_0x4dd08d['getCommentThread'](_0x461d5b);_0x53d30d['archivedAt']&&this['archivedThreads']['add'](_0x53d30d,this['_calculatePosition'](_0x53d30d['archivedAt'])),this['listenTo'](_0x53d30d,'change:archivedAt',(_0x3b21cc,_0x1d7535,_0x75b88b)=>{_0x75b88b?this['archivedThreads']['has'](_0x53d30d)||this['archivedThreads']['add'](_0x53d30d,this['_calculatePosition'](_0x53d30d['archivedAt'])):this['archivedThreads']['has'](_0x53d30d)&&this['archivedThreads']['remove'](_0x53d30d);});}),this['listenTo'](_0x4dd08d,'removeCommentThread',(_0x1d4305,{threadId:_0x551980})=>{const _0x506075=_0x4dd08d['getCommentThread'](_0x551980);this['stopListening'](_0x506075),this['archivedThreads']['has'](_0x506075)&&this['archivedThreads']['remove'](_0x506075);},{'priority':'highest'}),this['listenTo'](_0xd786be['collection'],'focus',(_0x373aeb,_0x50285e)=>{_0x50285e['isVisible']||(_0x50285e['isActive']=!0x0,_0xd786be['activate'](_0x50285e));});}['_calculatePosition'](_0x216fbc){const _0x2412a1=[...this['archivedThreads']]['findIndex'](_0x5256fe=>_0x5256fe['archivedAt']<_0x216fbc);return _0x2412a1>-0x1?_0x2412a1:this['archivedThreads']['length'];}}class a extends _0xc56fcc{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x14ac01];}constructor(_0xdbb368){super(_0xdbb368),this['annotationViews']=new _0x5570f6(),this['_pendingThreads']=[];}['init'](){const _0x2b991b=this['editor'],_0x2c9fe6=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2b991b['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x39f2d8,!0x0)),_0x2b991b['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2e8ea7=this['_createCommentsArchiveButton'](_0x142456);return _0x2e8ea7['set']({'role':'menuitemcheckbox'}),_0x2e8ea7;});const _0x3f6357=_0x2b991b['plugins']['get'](f),_0x1f6c08=_0x2b991b['plugins']['get']('Annotations'),_0x376965=_0x2b991b['plugins']['get']('CommentsRepository');_0x3f6357['archivedThreads']['forEach'](_0x142e1d=>{this['_handleNewThread'](_0x142e1d);}),this['listenTo'](_0x3f6357['archivedThreads'],'add',(_0x5f4aa2,_0x1ad6b7)=>{this['_handleNewThread'](_0x1ad6b7);}),this['listenTo'](_0x1f6c08['collection'],'add',(_0x5159a7,_0x43d18b)=>{const _0x2fbd9d=this['_pendingThreads']['find'](_0x51a0e1=>{const _0x27840f=_0x376965['_threadToController']['get'](_0x51a0e1);return _0x27840f&&_0x43d18b['innerView']===_0x27840f['view'];});if(_0x2fbd9d){const _0x18907d=this['_calculatePosition'](_0x2fbd9d['archivedAt']);this['annotationViews']['add'](_0x43d18b['view'],_0x18907d),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2fbd9d),0x1);}}),this['listenTo'](_0x3f6357['archivedThreads'],'remove',(_0x300ddf,_0x2ea64a)=>{const _0x57bcba=_0x2b991b['config']['get']('collaboration.channelId');if(!_0x57bcba||_0x2ea64a['channelId']===_0x57bcba){const _0x355031=_0x376965['_threadToController']['get'](_0x2ea64a),_0xcd1366=_0x1f6c08['getByInnerView'](_0x355031['view']);this['annotationViews']['remove'](_0xcd1366['view']),this['stopListening'](_0xcd1366['focusableElements']);}}),this['listenTo'](_0x1f6c08['collection'],'add',(_0x3750aa,_0x37064c)=>{this['listenTo'](_0x37064c,'escape',_0x2c9fe6);}),this['listenTo'](_0x1f6c08['collection'],'remove',(_0x261cc6,_0x21c9da)=>{this['stopListening'](_0x21c9da,'escape',_0x2c9fe6);});}['_handleNewThread'](_0x19b082){const _0x2286a0=this['editor']['plugins']['get']('CommentsRepository'),_0x13d821=this['editor']['plugins']['get']('Annotations'),_0x57eae0=this['editor']['config']['get']('collaboration.channelId');if(!_0x57eae0||_0x19b082['channelId']===_0x57eae0){const _0x16284f=_0x2286a0['_threadToController']['get'](_0x19b082);if(!_0x16284f)return void this['_pendingThreads']['push'](_0x19b082);const _0x13e450=this['_calculatePosition'](_0x19b082['archivedAt']),_0x419f7c=_0x13d821['getByInnerView'](_0x16284f['view']);_0x419f7c['isVisible']&&_0x13d821['_visibleAnnotations']['remove'](_0x419f7c),this['annotationViews']['add'](_0x419f7c['view'],_0x13e450);}}['_calculatePosition'](_0x3ce6a8){const _0x305584=this['editor']['config']['get']('collaboration.channelId'),_0x26f686=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x3d6a8d=>_0x3d6a8d['channelId']===_0x305584)['findIndex'](_0x58162f=>_0x58162f['archivedAt']<_0x3ce6a8);return _0x26f686<0x0||_0x26f686>this['annotationViews']['length']?this['annotationViews']['length']:_0x26f686-0x1;}['_toggleDialog'](){const _0x35f2e3=this['editor'],_0x42c8a0=_0x35f2e3['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new st(_0x35f2e3['locale'],this['annotationViews'])),'commentsArchive'===_0x42c8a0['id']?_0x42c8a0['hide']():_0x42c8a0['show']({'id':'commentsArchive','title':S(_0x35f2e3['locale'],'COMMENTS_ARCHIVE'),'icon':it,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':tt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x56b846,_0x368f5f=!0x1){const _0x3dd817=this['editor']['locale'],_0x151da6=this['editor']['plugins']['get']('Dialog'),_0x5a6f9f=new _0x56b846(_0x3dd817);return _0x5a6f9f['bind']('isEnabled')['to'](this,'isEnabled'),_0x5a6f9f['bind']('isOn')['to'](_0x151da6,'id',_0x2dfcbe=>'commentsArchive'===_0x2dfcbe),_0x5a6f9f['set']({'label':S(_0x3dd817,'COMMENTS_ARCHIVE'),'icon':it,'isToggleable':!0x0}),_0x368f5f&&(_0x5a6f9f['tooltip']=!0x0),this['listenTo'](_0x5a6f9f,'execute',()=>this['_toggleDialog']()),_0x5a6f9f;}['_hideDialogOnAnnotationEscape']=_0x338191=>{const _0x134469=_0x338191['source'];if(!this['annotationViews']['has'](_0x134469['view']))return;const _0x5bd7b4=this['editor']['plugins']['get']('Dialog');_0x5bd7b4['isOpen']&&'commentsArchive'===_0x5bd7b4['id']&&(_0x5bd7b4['hide'](),_0x338191['stop']());};}class p extends _0xc56fcc{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,gt as CommentThreadController,ie as CommentThreadInputView,Tt as CommentThreadView,_t as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
|