@ckeditor/ckeditor5-comments 46.1.0 → 46.1.1-alpha.1

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.
Files changed (194) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +11 -11
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +18 -18
  150. package/src/annotations/annotation.js +2 -2
  151. package/src/annotations/annotationcollection.js +1 -1
  152. package/src/annotations/annotations.js +1 -1
  153. package/src/annotations/annotationsuis.js +1 -1
  154. package/src/annotations/editorannotations.js +1 -1
  155. package/src/annotations/inlineannotations.js +1 -1
  156. package/src/annotations/narrowsidebar.js +1 -1
  157. package/src/annotations/sidebar.js +1 -1
  158. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  159. package/src/annotations/view/annotationview.js +1 -1
  160. package/src/annotations/view/sidebaritemview.js +2 -2
  161. package/src/annotations/view/sidebarview.js +2 -2
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/integrations/showcommenthighlights.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  174. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  175. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  176. package/src/comments/ui/commentthreadcontroller.js +2 -2
  177. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  178. package/src/comments/ui/view/basecommentview.js +1 -1
  179. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  180. package/src/comments/ui/view/commentcontentview.js +1 -1
  181. package/src/comments/ui/view/commentinputview.js +1 -1
  182. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  183. package/src/comments/ui/view/commentslistview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  185. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  186. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  187. package/src/comments/ui/view/commentthreadview.js +2 -2
  188. package/src/comments/ui/view/commentview.js +2 -2
  189. package/src/comments.js +1 -1
  190. package/src/commentsonly.js +1 -1
  191. package/src/index.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.js +1 -1
  194. package/src/utils/splitmarkername.js +1 -1
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x4502cf,ContextPlugin as _0x29eafd,PendingActions as lt,Command as _0x16c5e3,Plugin as _0x35ad89,Context as _0x12ade2}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x5963b2,uid as _0x47ede4,KeystrokeHandler as jt,FocusTracker as _0x2dd762,diff as _0x40469b,Collection as _0x5803d7,Rect as _0x5f3074,CKEditorError as _0x439571,first as _0xb029ff,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0xd494b5,keyCodes as _0x46d67f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0xe93c1c,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x49e1c7,trimHtml as _0x2b1fe9,LateFocusDropdownButtonView as _0x426613,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x3fce73}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x25198c}from'es-toolkit/compat';import{IconUndo as _0xdd8ede,IconCheck as _0x10a60e,IconPencil as _0xe8a682,IconRemoveComment as _0x245d22,IconThreeVerticalDots as _0x41fe20,IconAddComment as _0x46655b,IconCommentsArchive as _0x956dc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x5e0820,ButtonView as _0x1c6a8c,ViewCollection as _0x13e841,createDropdown as _0x133e80,ListView as _0x187269,focusChildOnDropdownOpen as _0x550522,ListItemView as _0x4a0d62,MenuBarMenuListItemButtonView as _0x15e8b9,BodyCollection as _0x2f3472,BalloonPanelView as _0x22deda,ContextualBalloon as _0x5d0fa0,Dialog as _0xd7bc88,DialogViewPosition as _0x254d33}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x17ef9d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}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 _0x155cc2}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x53f762}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x5963b2(){['model'];['view'];constructor(_0x2fd59d,_0x4c46af){super(),this['model']=_0x2fd59d,this['model']['_isAttached']=!0x0,this['view']=_0x4c46af,this['listenTo'](_0x4c46af,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4c46af,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4c46af,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4c46af,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4c46af,'addComment',(_0x254bf2,_0x1cfc36)=>this['addComment'](_0x1cfc36)),this['listenTo'](_0x4c46af,'updateComment',(_0x1c5aa4,_0x3a0d79,_0x1a7eed)=>this['updateComment'](_0x3a0d79,_0x1a7eed)),this['listenTo'](_0x4c46af,'removeComment',(_0x35a4d2,_0x3510cf)=>this['removeComment'](_0x3510cf));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x489aec){this['model']['addComment']({'content':_0x489aec,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0xad1b76,_0x31ba08){this['model']['getComment'](_0xad1b76)['update']({'content':_0x31ba08});}['removeComment'](_0x545ce9){this['model']['getComment'](_0x545ce9)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x39d3e4,_0x38960b,_0x43bcb1){const t=_0x39d3e4['t'];switch(_0x38960b){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'},_0x43bcb1);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'},_0x43bcb1);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'},_0x43bcb1);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'},_0x43bcb1);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x43bcb1);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'},_0x43bcb1);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'},_0x43bcb1);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'},_0x43bcb1);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x1e18fa,_0x4db459){super(_0x1e18fa);const _0x4a1800=_0x47ede4();this['main']=this['createCollection'](),this['editable']=new $t(_0x1e18fa,_0x4db459,void 0x0,{'label':()=>N(_0x1e18fa,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x1e18fa['uiLanguageDirection'],'lang':_0x1e18fa['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x4a1800},'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 Ft extends Ut{['view'];constructor(_0x5cbb1f){super(_0x5cbb1f),this['view']=new Vt(_0x5cbb1f['locale'],_0x5cbb1f['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4fccdc=this['editor']['editing']['view'],_0x276295=this['view']['editable'],_0x389538=_0x4fccdc['document']['getRoot']();_0x276295['name']=_0x389538['rootName'],this['view']['render']();const _0x34d6b0=_0x276295['element'];this['setEditableElement'](_0x276295['name'],_0x34d6b0),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4fccdc['attachDomRoot'](_0x34d6b0),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x5963b2(_0x4502cf){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x345586={}){function _0x48aa05(_0x2e7c81){return _0x2e7c81['map'](_0x2e3d2c=>String['fromCharCode'](_0x2e3d2c))['join']('');}(_0x345586=Object['assign']({},_0x345586))['plugins']||(_0x345586['plugins']=Rt['defaultPlugins']),super(_0x345586),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x48aa05([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48aa05([0x76,0x69,0x65,0x77])][_0x48aa05([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48aa05([0x61,0x75,0x74,0x6f]),this[_0x48aa05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x48aa05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48aa05([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x48aa05([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x48aa05([0x6f,0x6b])});}['create'](){const _0x39e051=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x39e051))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0xd411b=>{const _0x33dfe1=this['model']['document']['getRoot'](),_0x539228=_0x33dfe1&&_0x33dfe1['getChild'](_0x33dfe1['childCount']-0x1);_0xd411b['setSelection'](_0x539228,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1cf3f7=this['editing']['view'],_0x3ce16f=_0x1cf3f7['document']['getRoot'](),_0x3df639=_0x3ce16f['getChild'](0x0);_0x3ce16f['childCount']>0x1||!_0x3df639||'p'!=_0x3df639['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x1cf3f7,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3df639['placeholder']=this['placeholder']),St({'view':_0x1cf3f7,'element':_0x3df639,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3df639);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x30a9a6,_0x55c2b1={}){super(_0x30a9a6),this['editor']=null,this['_editorConfig']=_0x55c2b1,this['set']('value',_0x55c2b1['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x30a9a6,'Reply...')),this['set']('submitLabel',N(_0x30a9a6,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x2dd762(),this['focusCycler']=new _0x5e0820({'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',(_0x3457df,_0x13c432)=>{this['cancelButtonView']['fire']('execute'),_0x13c432();}),this['keystrokes']['set']('Ctrl+Enter',(_0x18a3a3,_0x5e8e80)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x5e8e80());}),this['on']('submit',(_0x18d38d,_0x2ae770)=>{_0x2ae770['length']>0xfde8?(alert(N(_0x30a9a6,'TOO_LONG_COMMENT_ALERT',[_0x2ae770['length'],0xfde8])),_0x18d38d['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x5e98fb=this['editor'];this['element']['insertBefore'](_0x5e98fb['ui']['element'],this['element']['firstChild']),_0x5e98fb['model']['document']['on']('change',()=>this['value']=_0x5e98fb['getData']()),_0x5e98fb['bind']('placeholder')['to'](this),this['focusables']['add'](_0x5e98fb['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x807e29){-0x1===_0x807e29?(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:_0x576548}=this,_0x1fb3a6=new _0x1c6a8c(_0x576548);return _0x1fb3a6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x1fb3a6['withText']=!0x0,_0x1fb3a6['bind']('label')['to'](this,'submitLabel'),_0x1fb3a6['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x1fb3a6['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4d8781,_0x41bf08)=>!_0x41bf08&&!!_0x4d8781['trim']()),_0x1fb3a6;}['_createCancelButton'](){const {locale:_0x2ac765}=this,_0x4d4c6f=new _0x1c6a8c(_0x2ac765);return _0x4d4c6f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x4d4c6f['label']=N(_0x2ac765,'Cancel'),_0x4d4c6f['withText']=!0x0,_0x4d4c6f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x4d4c6f;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5985be=>{this['focusTracker']['add'](_0x5985be['element']);}),this['focusables']['on']('change',(_0x316b83,_0x192fce)=>{for(const _0x4a44e6 of Array['from'](_0x192fce['added'])['reverse']())this['focusTracker']['add'](_0x4a44e6['element']);});}}class ie extends kt{constructor(_0x413f7b,_0x48dda6,_0x1ab3cb){super(_0x413f7b),this['commentInputView']=new os(_0x413f7b,_0x1ab3cb),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4864c9,_0xa1b85d)=>_0x4864c9||!!_0xa1b85d),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 _0xe93c1c(_0x413f7b,_0x48dda6),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'](_0x3ac430){this['commentInputView']['focus'](_0x3ac430);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x4b287e,_0x60fa3)=>{const {submitButtonView:_0x2fd4bb,cancelButtonView:_0x52a5ec,editor:_0x463ccc}=this['commentInputView'];[_0x2fd4bb['element'],_0x52a5ec['element'],_0x463ccc?_0x463ccc['editing']['view']['getDomRoot']():null]['filter'](_0x13c3e2=>_0x13c3e2)['some'](_0x4c4400=>_0x4c4400['contains'](_0x60fa3['target']))||(this['focus'](),_0x60fa3['preventDefault']());});}}class rs extends kt{constructor(_0x1f80f7){super(_0x1f80f7);const _0x460c0c=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x460c0c['to']('count',_0x5d5821=>N(_0x1f80f7,'NUMBER_OF_COMMENTS',_0x5d5821))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x41e2ed,_0x29c813,_0x1af0e2){super(_0x41e2ed);const _0x10adb6=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x29c813['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x29c813,this['_config']=_0x1af0e2,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x2dd762(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5e0820({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x166613=>this['commentViews']['map'](_0x529b35=>_0x529b35['element'])['includes'](_0x166613['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x41e2ed),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1b61a4=>_0x1b61a4-this['_config']['maxCommentsWhenCollapsed']);for(const _0x45eaab of _0x29c813['comments'])this['_handleNewCommentModel'](_0x45eaab);this['_handleInfoComment'](),this['listenTo'](_0x29c813['comments'],'add',(_0x43eb1f,_0x5f3d02)=>{const _0x48d7c8=this['_calculatePosition'](_0x5f3d02);this['length']++,this['_handleNewCommentModel'](_0x5f3d02,_0x48d7c8),this['refreshVisibleViews']();}),this['listenTo'](_0x29c813['comments'],'remove',(_0x3ac9e6,_0x351cb8)=>{this['length']--,this['_handleRemoveCommentModel'](_0x351cb8),this['refreshVisibleViews']();}),this['listenTo'](_0x29c813,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x29c813,'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',_0x10adb6['if']('length','ck-hidden',_0x233a74=>!_0x233a74)],'aria-label':N(_0x41e2ed,'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'](_0x5e227c){-0x1===_0x5e227c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x5a7f90 of this['commentViews'])_0x5a7f90['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x5b906b,_0x23ba64){const _0x5c436d=new this['_config']['CommentView'](this['locale'],_0x5b906b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x5c436d['viewUid']=_0x5b906b['id'],_0x5c436d['delegate']('removeComment')['to'](this),_0x5c436d['delegate']('updateComment')['to'](this),_0x5c436d['delegate']('resolveCommentThread')['to'](this),_0x5c436d['delegate']('editorReady')['to'](this),_0x5c436d['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x5c436d,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x5c436d,_0x23ba64);}['_calculatePosition'](_0x30e25c){const _0x3cde57=this['_model']['_findOptimalIndex'](_0x30e25c);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x30e25c['authoredAt']?_0x3cde57-0x1:_0x3cde57:_0x3cde57-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x480366={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x480366,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x480366));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x17679b){const _0x138fb6=this['commentViews']['remove'](_0x17679b['id']);this['stopListening'](_0x138fb6),_0x138fb6['isEditMode']&&this['_updateHasDirtyComment'](),_0x138fb6['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2f1f8b=>_0x2f1f8b['isEditMode']);}['_rearrangeCollapse'](){const _0x18d88f=function(_0x1137b8){const _0x317560=new _0x5803d7();for(const _0x35ab84 of _0x1137b8)_0x317560['add'](_0x35ab84);return _0x317560;}(this['commentViews']),_0x1d6e62=this['_collapsedCommentsView']['count'];for(let _0x2eab31=0x1;_0x2eab31<=_0x1d6e62;_0x2eab31++)_0x18d88f['remove'](0x1);for(const _0x1baa7e of _0x18d88f)_0x1baa7e['collapse']();_0x1d6e62>0x0&&_0x18d88f['add'](this['_collapsedCommentsView'],0x1),ns(_0x40469b(Array['from'](this['visibleViews']),Array['from'](_0x18d88f)),this['visibleViews'],_0x18d88f);}['_rearrangeExpand'](){ns(_0x40469b(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4f7e0b of this['visibleViews'])_0x4f7e0b['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x5a6ade=>{this['focusTracker']['add'](_0x5a6ade['element']),this['keystrokes']['listenTo'](_0x5a6ade['element']);}),this['commentViews']['on']('change',(_0x5764d7,_0xc250bd)=>{for(const _0x6b1680 of _0xc250bd['removed'])this['focusTracker']['remove'](_0x6b1680['element']),this['keystrokes']['stopListening'](_0x6b1680['element']);for(const _0x18c897 of Array['from'](_0xc250bd['added'])['reverse']())this['focusTracker']['add'](_0x18c897['element']),this['keystrokes']['listenTo'](_0x18c897['element']);});}}function ns(_0x3b9e40,_0x1c1d5c,_0x2fbb77){let _0x18afbd=0x0;for(const _0x599c1f of _0x3b9e40)switch(_0x599c1f){case'insert':_0x1c1d5c['add'](_0x2fbb77['get'](_0x18afbd),_0x18afbd),_0x18afbd++;break;case'delete':_0x1c1d5c['remove'](_0x18afbd);break;case'equal':_0x18afbd++;}}class oe extends kt{constructor(_0x182bd5){super(_0x182bd5);const _0x40ca77=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x40ca77['to']('contextValue',_0x5f001a=>N(_0x182bd5,'THREAD_CONTEXT_LABEL',_0x5f001a)),'tabindex':-0x1},'children':[{'text':_0x40ca77['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x470f92,_0x39188d){super(_0x470f92);const _0x43f908=this['bindTemplate'];this['_model']=_0x39188d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x2dd762(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5e0820({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x1545e5=>!!_0x1545e5),this['bind']('contextValue')['to'](this['_model'],'context',_0x4b71f0=>_0x4b71f0&&_0x4b71f0['value']?this['_trimContextValue'](_0x4b71f0['value']):N(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',_0x43f908['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 _0x5cdc40=new _0x1c6a8c(this['locale']);return _0x5cdc40['label']=N(this['locale'],'Reopen'),_0x5cdc40['tooltip']=N(this['locale'],'Reopen'),_0x5cdc40['icon']=_0xdd8ede,_0x5cdc40['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x171068=>!_0x171068),_0x5cdc40['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x14cd25,_0x3b597a)=>_0x14cd25&&_0x3b597a),_0x5cdc40['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5cdc40;}['_trimContextValue'](_0x5eb3d8){if(_0x5eb3d8['length']<0x96)return _0x5eb3d8;const _0x1ea55f=_0x5eb3d8['lastIndexOf']('\x20',0x93);return _0x5eb3d8['substring'](0x0,_0x1ea55f>-0x1?_0x1ea55f:0x93)+'...';}['_attachContextActions'](){const _0x20c72f=this['element']['querySelector']('.ck-context'),_0x4f849d=_0x20c72f['querySelector']('.ck-context__value');this['listenTo'](_0x20c72f,'mouseenter',()=>{_0x4f849d['offsetWidth']<_0x4f849d['scrollWidth']&&_0x20c72f['classList']['add']('overlay');}),this['listenTo'](_0x20c72f,'mouseleave',()=>{_0x20c72f['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x208e29 of this['focusables'])this['focusTracker']['add'](_0x208e29['element']),this['keystrokes']['listenTo'](_0x208e29['element']);}['_createContextView'](){const _0x30a674=new oe(this['locale']);return _0x30a674['bind']('contextValue')['to'](this),_0x30a674;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xfc3613,_0x355ede,_0x34a3b3,_0x1d135a){super(_0xfc3613),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x355ede,this['_localUser']=_0x34a3b3,this['_config']=_0x1d135a,this['commentThreadHeaderView']=new Yt(_0xfc3613,_0x355ede),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0xfc3613,N(_0xfc3613,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0xfc3613,_0x355ede,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1d135a)),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',(_0x2f04d1,_0x15bd85)=>_0x2f04d1||!!_0x15bd85),this['bind']('isUnlinked')['to'](_0x355ede,'unlinkedAt',_0x53cd5a=>!!_0x53cd5a),this['bind']('ariaLabel')['to'](this,'length',_0x253d73=>{const _0x363c5f=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x253d73,_0x363c5f]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x2dd762(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5e0820({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x257efe=>_0x257efe['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x51ea00=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3cd210=_0x51ea00['commentInputView'];return _0x51ea00['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x3cd210,'value',(_0x2e7735,_0x827917,_0x1fd983,_0x312de4,_0x55ec4c)=>!!_0x55ec4c||!!_0x312de4&&_0x1fd983&&!_0x827917||_0x2e7735&&_0x1fd983&&!_0x827917),_0x3cd210['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4e4779,_0x4e3782,_0x26b5c2)=>{let _0x4214bb;return _0x4214bb=_0x26b5c2&&_0x4e3782?'Reply\x20to\x20reopen\x20discussion...':_0x4e4779?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x4214bb);}),_0x3cd210['bind']('submitLabel')['to'](this,'length',_0x386b99=>N(this['locale'],_0x386b99?'Reply':'Comment')),_0x3cd210['on']('submit',(_0xe20ca5,_0x9df516)=>{this['fire']('addComment',_0x9df516),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x3cd210['on']('cancel',()=>{this['focus']();}),_0x3cd210['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3cd210['on']('cancel',_0x38f4d6=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x38f4d6['stop']());}),this['on']('change:isActive',(_0x4aa8e3,_0xbcd337,_0x1c8c88)=>{_0x1c8c88||this['length']||_0x3cd210['value']||this['fire']('removeCommentThread');}),_0x51ea00;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x147e71,_0x4d6e39,_0x4eb64c,_0x4d74b2){super(_0x147e71,_0x4d6e39,_0x4eb64c,_0x4d74b2),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x147e71,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4cd666,_0x3c9ac9,_0x598eac)=>{_0x598eac||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x95052b,_0x1f2e86,_0x316828)=>{_0x316828&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x176e24=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x176e24['if']('isActive','ck-thread--active'),_0x176e24['if']('isUnlinked','ck-thread--unlinked'),_0x176e24['if']('isConfirm','ck-thread--remove-confirmation'),_0x176e24['to']('actionIndicator',_0x437e25=>_0x437e25?'ck-thread--'+_0x437e25:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x176e24['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 _0x52ca6f of this['commentsListView']['commentViews'])_0x52ca6f['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x2cc353}=this,_0x41fe99=this['commentsListView']['commentViews']['get'](0x0);_0x41fe99===this['_boundFirstCommentView']||_0x41fe99['isSystemComment']||(this['_boundFirstCommentView']=_0x41fe99,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x41fe99,'actionIndicator',_0x5845f0=>'remove'===_0x5845f0?'remove':null),_0x41fe99['placeholder']=N(_0x2cc353,'Write\x20a\x20comment...'),_0x41fe99['removeButton']['on']('execute',_0x49021e=>{_0x49021e['stop'](),this['showConfirm'](N(_0x2cc353,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x41fe99['focus']();}),_0x41fe99['actionBar']['add'](this['resolveButton'],0x0),_0x41fe99['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x437fc2=new _0x49e1c7(this['locale']);return _0x437fc2['label']=N(this['locale'],'Resolve'),_0x437fc2['tooltip']=N(this['locale'],'Resolve'),_0x437fc2['icon']=_0x10a60e,_0x437fc2['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x437fc2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x55f2ce=>!_0x55f2ce),_0x437fc2['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x31800d,_0x25da26)=>_0x31800d&&!_0x25da26),_0x437fc2['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x437fc2;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x217385){super(_0x217385),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x17ddeb,_0x855e08,_0x53d735)=>{this['element']['innerHTML']=_0x53d735;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x11d6e3,_0x339a57,_0x31753e){super(_0x11d6e3),this['_model']=_0x339a57,this['_config']=_0x31753e,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x339a57,'content',_0x339a57,'authoredAt',(_0x1ee388,_0x2a5427)=>N(_0x11d6e3,'COMMENT_ARIA_LABEL',[_0x339a57['author']['name'],_0x31753e['formatDateTime'](_0x2a5427),new DOMParser()['parseFromString'](_0x1ee388,'text/html')['body']['textContent'],_0x339a57['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x11d6e3,N(_0x11d6e3,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x13e841(),this['focusTracker']=new _0x2dd762(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5e0820({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2575f3=>_0x2575f3['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']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x7550f4=new es(this['locale']);return _0x7550f4['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x440cae,_0xfdd393)=>_0xfdd393?_0x2b1fe9(_0x440cae,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x440cae),_0x7550f4;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x2be870=new os(this['locale'],this['_config']['editorConfig']);return _0x2be870['value']=this['_model']['content'],_0x2be870['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2be870['submitLabel']=N(this['locale'],'Save'),_0x2be870['on']('submit',(_0x47d50b,_0x24b115)=>{this['fire']('updateComment',this['_model']['id'],_0x24b115),this['switchToDisplayMode'](),this['focus']();}),_0x2be870['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x2be870['once']('editorReady',()=>{_0x2be870['focus']();}),_0x2be870['createEditor'](),_0x2be870['delegate']('editorReady')['to'](this),_0x2be870['delegate']('editorDestroyed')['to'](this),_0x2be870;}['_setupKeyboardNavigation'](){const _0x54c2cc=this['element'];this['keystrokes']['listenTo'](_0x54c2cc);for(const _0x3f1e1a of this['focusables'])this['focusTracker']['add'](_0x3f1e1a['element']),this['keystrokes']['listenTo'](_0x3f1e1a['element']);this['focusables']['on']('change',(_0x557944,_0xfab0a0)=>{for(const _0x45e0f7 of _0xfab0a0['removed'])this['focusTracker']['remove'](_0x45e0f7['element']),this['keystrokes']['stopListening'](_0x45e0f7['element']);for(const _0x5bddd8 of _0xfab0a0['added'])this['focusTracker']['add'](_0x5bddd8['element']),this['keystrokes']['listenTo'](_0x5bddd8['element']);}),this['keystrokes']['set']('enter',(_0x26e700,_0x30d02a)=>{_0x54c2cc===_0x26e700['target']&&(this['focusCycler']['focusFirst'](),_0x30d02a());}),this['keystrokes']['set']('esc',(_0x3fb2a0,_0x487137)=>{_0x54c2cc!==_0x3fb2a0['target']&&(this['focus'](),_0x487137());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x1c22c5,_0x41e3ec,_0x10c267){super(_0x1c22c5,_0x41e3ec,_0x10c267),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x1c22c5,'Reply...')),this['bind']('authoredAt')['to'](_0x41e3ec),this['bind']('resolvedAt')['to'](_0x41e3ec),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 _0xe93c1c(_0x1c22c5,_0x41e3ec['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x41e3ec,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1528fb=this['bindTemplate'],_0x208b22=[{'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':_0x1528fb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1528fb['to']('authoredAt',_0x253452=>this['_config']['formatDateTime'](_0x253452))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x1528fb['if']('isEditMode','ck-comment__actions--hidden'),_0x1528fb['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']&&_0x208b22['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x1528fb['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x1528fb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x1528fb['if']('isEditMode','ck-comment--edit'),_0x1528fb['if']('isSystemComment','ck-comment--info'),_0x1528fb['to']('actionIndicator',_0x2720c2=>_0x2720c2?'ck-comment--'+_0x2720c2:'')],'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':_0x208b22}]}]};}['_createEditButton'](){const _0x3e301e=new _0x1c6a8c(this['locale']);return _0x3e301e['label']=N(this['locale'],'Edit'),_0x3e301e['icon']=_0xe8a682,_0x3e301e['withText']=!0x0,_0x3e301e['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x3e301e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x348752=>!_0x348752),_0x3e301e['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x3e301e['on']('execute',()=>this['switchToEditMode']()),_0x3e301e;}['_createRemoveButton'](){const _0x56ea3f=new _0x1c6a8c(this['locale']);return _0x56ea3f['label']=N(this['locale'],'Remove'),_0x56ea3f['icon']=_0x245d22,_0x56ea3f['withText']=!0x0,_0x56ea3f['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x56ea3f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1b5a3b=>!_0x1b5a3b),_0x56ea3f['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x56ea3f['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x56ea3f;}['_createDropdown'](){const _0x263f3b=_0x133e80(this['locale'],_0x426613),_0x23d3e0=_0x263f3b['panelView']['children'],_0x2c6a4a=new _0x187269(this['locale']),_0x35c5e8=_0x263f3b['bindTemplate'];_0x550522(_0x263f3b,()=>this['items']['find'](_0x53f712=>_0x53f712['isVisible'])),_0x263f3b['extendTemplate']({'attributes':{'class':[_0x35c5e8['if']('isVisible','ck-hidden',_0x463b2d=>!_0x463b2d)]}});const _0xbebe35=(_0x7a02da,_0x307cea=-0x1)=>{const _0x2c33c7=new _0x4a0d62(this['locale']);_0x2c33c7['children']['add'](_0x7a02da);const _0x5bdd11=_0x307cea>-0x1?_0x307cea:_0x2c6a4a['items']['length'];_0x2c6a4a['items']['add'](_0x2c33c7,_0x5bdd11);const _0x8d945e=Array['from'](this['items']);_0x263f3b['unbind']('isEnabled','isVisible'),_0x263f3b['bind']('isEnabled')['toMany'](_0x8d945e,'isEnabled',(..._0x340a89)=>_0x340a89['some'](_0x436bd4=>_0x436bd4)),_0x263f3b['bind']('isVisible')['toMany'](_0x8d945e,'isVisible',(..._0x32847c)=>_0x32847c['some'](_0x31d87c=>_0x31d87c));};_0x263f3b['panelPosition']='sw',_0x263f3b['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x41fe20});for(const _0x188ed8 of this['items'])_0xbebe35(_0x188ed8);return _0x23d3e0['add'](_0x2c6a4a),_0x263f3b['listenTo'](this['items'],'add',(_0x332696,_0x3a4bac,_0x1ea8b5)=>{_0xbebe35(_0x3a4bac,_0x1ea8b5);}),_0x263f3b['listenTo'](this['items'],'remove',(_0x32d562,_0x13dcc5,_0x474b9f)=>{_0x2c6a4a['items']['remove'](_0x474b9f);}),_0x263f3b;}['_attachActions'](_0x2eae36,_0x470b07){const _0x2ea93c=_0x2eae36&&_0x2eae36['element'];_0x2ea93c&&(this['listenTo'](_0x2ea93c,'mouseenter',()=>this['actionIndicator']=_0x470b07),this['listenTo'](_0x2ea93c,'focus',()=>this['actionIndicator']=_0x470b07),this['listenTo'](_0x2ea93c,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x2ea93c,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x5d9114=super['_createCommentInputView']();return _0x5d9114['bind']('placeholder')['to'](this),_0x5d9114;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x1a3bab){const _0x3eb1d8=Dt(_0x1a3bab,0x1e),_0x53c88a=new MutationObserver(_0x527ef2=>{for(const _0xd53612 of _0x527ef2)('attributes'==_0xd53612['type']&&'class'==_0xd53612['attributeName']||'childList'==_0xd53612['type']||'characterData'==_0xd53612['type'])&&_0x3eb1d8();});return{'attach'(_0x15d365){_0x53c88a['observe'](_0x15d365,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x53c88a['disconnect'](),_0x3eb1d8['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x304112,_0x44c96e){super(_0x304112),this['id']=_0x47ede4(),this['focusTracker']=new _0x2dd762(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x16304a,_0x42ebf7)=>this['fire']('Esc',_0x42ebf7)),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']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x44c96e),this['mainView']=_0x44c96e;const _0xcae866=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xcae866['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 _0x167cb8=this['element']['clientHeight'];_0x167cb8&&(this['height']=_0x167cb8);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x5963b2(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1a1ec3,target:_0x16dc68,type:_0x2c9244,isVisible:_0x3beb8c=!0x0}){super(),this['view']=_0x1a1ec3,this['view']['element']||this['view']['render'](),this['_type']=_0x2c9244,this['_target']=_0x16dc68,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x5803d7([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x75cce7,_0x15b80f)=>{this['view']['focusTracker']['add'](_0x15b80f);}),this['focusableElements']['on']('remove',(_0x507e49,_0x22dc04)=>{this['view']['focusTracker']['remove'](_0x22dc04);}),this['set']('isVisible',_0x3beb8c);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x48f720=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x48f720),_0x48f720;}get['targetRect'](){const _0x2d989e=this['target'];if(null===_0x2d989e)return null;if(_0x2d989e instanceof _0x5f3074)return _0x2d989e;const _0x2411ae=_0x2d989e['filter'](_0xbcc56d=>function(_0x35e80f){const _0x1c1707=_0x35e80f['offsetParent'];if(_0x1c1707)return!0x0;const _0x2caef8=_0x35e80f['getClientRects']()['item'](0x0);return!!_0x2caef8;}(_0xbcc56d));return 0x0===_0x2411ae['length']?null:new _0x5f3074(_0x2411ae[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3e2ec2){this['view']['isActive']=_0x3e2ec2,this['view']['mainView']['isActive']=_0x3e2ec2;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x54ba28){if(!(null===_0x54ba28||_0x54ba28 instanceof _0x5f3074||Array['isArray'](_0x54ba28)&&_0x54ba28['every'](_0x118dcf=>fi(_0x118dcf))))throw new _0x439571('annotation-invalid-target',null,{'target':_0x54ba28});}['_getNormalizedTarget'](){const _0x155454='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x155454)?[_0x155454]:_0x155454;}}function fi(_0xbf47d7){return null!==_0xbf47d7&&'object'==typeof _0xbf47d7&&'nodeType'in _0xbf47d7&&0x1===_0xbf47d7['nodeType'];}class S extends _0x5803d7{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5337e1=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x2dd762(),this['_focusTracker']['on']('change:isFocused',(_0x5d3bff,_0x33c336,_0x5cbc4a)=>{_0x5cbc4a||this['fire']('blur');});for(const _0x1c9bfa of _0x5337e1)this['add'](_0x1c9bfa);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x4114c9){if(this['has'](_0x4114c9))throw new _0x439571('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x4114c9['innerView'],_0x4114c9),this['_viewToAnnotation']['set'](_0x4114c9['view'],_0x4114c9);for(const _0x17c8e9 of _0x4114c9['focusableElements'])this['_focusTracker']['add'](_0x17c8e9);this['listenTo'](_0x4114c9['focusableElements'],'add',(_0x412fc8,_0x54f959)=>{this['_focusTracker']['add'](_0x54f959);}),this['listenTo'](_0x4114c9['focusableElements'],'remove',(_0x430a18,_0x30a7fc)=>{this['_focusTracker']['remove'](_0x30a7fc);}),this['listenTo'](_0x4114c9['view']['focusTracker'],'change:isFocused',(_0x950e41,_0x284889,_0x4e0ddf)=>{_0x4e0ddf&&this['fire']('focus',_0x4114c9);}),_0x4114c9['updateTargetRect']();const _0x2b71f3=this['_getOrderInContent'](_0x4114c9['view']['targetRect']);return super['add'](_0x4114c9,_0x2b71f3);}['remove'](_0x15c502){if(!this['has'](_0x15c502))throw new _0x439571('annotationcollection-not-existing-item',null);this['stopListening'](_0x15c502['view']['focusTracker']),this['stopListening'](_0x15c502['focusableElements']);for(const _0x559b1e of _0x15c502['focusableElements'])this['_focusTracker']['remove'](_0x559b1e);return this['_viewToAnnotation']['delete'](_0x15c502['view']),this['_innerViewToAnnotation']['delete'](_0x15c502['innerView']),super['remove'](_0x15c502);}['getByInnerView'](_0x29613f){return this['_innerViewToAnnotation']['get'](_0x29613f);}['getByView'](_0x4424c6){return this['_viewToAnnotation']['get'](_0x4424c6);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x185351 of this)_0x185351['updateTargetRect']();this['_sort']();}['_sort'](){const _0x54089a=Array['from'](this)['sort']((_0x446edc,_0x56c2a8)=>w(_0x446edc['view']['targetRect'],_0x56c2a8['view']['targetRect']));for(let _0x33d060=_0x54089a['length']-0x1;_0x33d060>0x0;_0x33d060--){const _0x48eeda=_0x54089a[_0x33d060];_0x33d060!==this['getIndex'](_0x48eeda)&&(this['remove'](_0x48eeda),this['add'](_0x48eeda));}}['_getOrderInContent'](_0x3995b3){let _0x59362c=0x0;if(!_0x3995b3)return this['length'];for(const _0x526c41 of this){const _0x54752b=_0x526c41['view']['targetRect'];if(_0x54752b){if(w(_0x3995b3,_0x54752b)<0x0)return _0x59362c;_0x59362c++;}}return _0x59362c;}}function v({source:_0x3bcc22,target:_0x1ed295,filter:_0x21d5d7}){for(const _0x5cbd70 of _0x3bcc22)_0x21d5d7(_0x5cbd70)&&_0x1ed295['add'](_0x5cbd70);_0x1ed295['listenTo'](_0x3bcc22,'add',(_0x11827d,_0x177130)=>{_0x21d5d7(_0x177130)&&_0x1ed295['add'](_0x177130);}),_0x1ed295['listenTo'](_0x3bcc22,'remove',(_0x49a2c9,_0x4dfbfb)=>{_0x1ed295['has'](_0x4dfbfb)&&_0x1ed295['remove'](_0x4dfbfb);});}function w(_0xa96637,_0x4a6b9b){if(null===_0xa96637&&null===_0x4a6b9b)return 0x0;if(null===_0xa96637)return-0x1;if(null===_0x4a6b9b)return 0x1;const _0xd94c66=_0xa96637['top']-_0x4a6b9b['top'];return 0x0==_0xd94c66?_0xa96637['left']-_0x4a6b9b['left']:_0xd94c66;}class y extends _0x29eafd{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c0728){if(super(_0x1c0728),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1c0728 instanceof _0x4502cf){const _0xb85270=_0x1c0728['locale'];_0x1c0728['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0xb85270,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0xb85270,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0xb85270,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0xb85270,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0xb85270,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0xb85270,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0xb85270,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3a4f79){this['collection']['add'](_0x3a4f79);}['remove'](_0x1fb53a){this['collection']['remove'](_0x1fb53a),_0x1fb53a['destroy']();}['refreshVisibility'](){for(const _0x539a43 of this['collection'])_0x539a43['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x4e4b94){return this['collection']['getByInnerView'](_0x4e4b94);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1f2540 of this['collection'])_0x1f2540['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x1fa382){this['fire']('_activateAnnotation',_0x1fa382);}['createAnnotation'](_0x4f6e49){return new T(_0x4f6e49);}['createAnnotationView'](_0xfa0400,_0x18f78f){return new E(_0xfa0400,_0x18f78f);}['_addActiveAnnotation'](_0x120e1f){const _0x41e7b6=new Set(this['activeAnnotations']);_0x41e7b6['add'](_0x120e1f),this['activeAnnotations']=_0x41e7b6;}['_removeActiveAnnotation'](_0x128d91){const _0x2eac53=new Set(this['activeAnnotations']);_0x2eac53['delete'](_0x128d91),this['activeAnnotations']=_0x2eac53;}['_bindAnnotationsToVisibleAnnotations'](){const _0xe48584=this['collection'],_0x129329=this['_visibleAnnotations'];function _0x3b360b(_0x50d2eb){const _0x301ff9=_0x50d2eb['source'];_0x301ff9['isVisible']&&!_0x129329['has'](_0x301ff9)?_0x129329['add'](_0x301ff9):!_0x301ff9['isVisible']&&_0x129329['has'](_0x301ff9)&&_0x129329['remove'](_0x301ff9),_0x301ff9['view']['focusTracker']['remove'](_0x301ff9['view']['element']),_0x301ff9['view']['focusTracker']['add'](_0x301ff9['view']['element']);}this['listenTo'](_0xe48584,'add',(_0x519bfb,_0x2e0916)=>{_0x2e0916['isVisible']&&_0x129329['add'](_0x2e0916),this['listenTo'](_0x2e0916,'change:isVisible',_0x3b360b);}),this['listenTo'](_0xe48584,'remove',(_0x796e7b,_0x84347c)=>{_0x129329['has'](_0x84347c)&&_0x129329['remove'](_0x84347c),this['stopListening'](_0x84347c,'change:isVisible',_0x3b360b);});}['_setupEnterAnnotationKeystroke'](){const _0x55f024=_0x5d9f20=>{_0x5d9f20['on']('ready',()=>{_0x5d9f20['keystrokes']['set'](_0x155cc2,(_0x1a0849,_0xe8cca5)=>{const _0x5dcbf7=_0xb029ff(this['activeAnnotations']['values']());_0x5dcbf7&&(_0x5dcbf7['view']['focus'](),_0xe8cca5());});});};this['context']instanceof _0x4502cf?_0x55f024(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x153314,_0x643ad5)=>{_0x55f024(_0x643ad5);});}['_setupEscapeAnnotationHandling'](){const _0x500180=_0x37f59f=>{const _0x268a56=_0x37f59f['source'],_0x44870f=[];let _0x5ad1f5;if(Array['isArray'](_0x268a56['target'])){_0x5ad1f5=_0x268a56['target'][0x0],this['context']instanceof _0x4502cf?_0x44870f['push'](this['context']):this['context']['editors']&&_0x44870f['push'](...this['context']['editors']);for(const _0x2876c7 of _0x44870f)for(const _0x36619a of _0x2876c7['editing']['view']['domRoots']['values']())if(_0x36619a['contains'](_0x5ad1f5))return void _0x2876c7['editing']['view']['focus']();_0x5ad1f5['focus']();}};this['listenTo'](this['collection'],'add',(_0x2af910,_0x47e9dc)=>{this['listenTo'](_0x47e9dc,'escape',_0x500180,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x21950e,_0x2bb579)=>{this['stopListening'](_0x2bb579,'escape',_0x500180);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x29eafd{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a320d){super(_0x1a320d),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4e2eee=this['context']['config'];_0x4e2eee['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4e2eee['define']('comments.maxThreadTotalWeight',0x1f4),_0x4e2eee['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4e2eee['define']('comments.CommentThreadView',gt),_0x4e2eee['define']('comments.CommentView',Tt),_0x4e2eee['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x2d78b9=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x47a030,_0x21d422)=>this['_addCommentThread'](_0x21d422)),this['on']('submitCommentThread',(_0x17fb5d,_0x2f87ee)=>this['_submitCommentThread'](_0x2f87ee)),this['on']('resolveCommentThread',(_0x506fe4,_0x3005c2)=>this['_resolveCommentThread'](_0x3005c2)),this['on']('resolveCommentThread',(_0x2ade53,_0x364885)=>this['_updateActiveAnnotation'](_0x364885),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0xd4b7d0,_0x532aef)=>this['_reopenCommentThread'](_0x532aef)),this['on']('reopenCommentThread',(_0x333f1d,_0x3f7a23)=>this['_updateActiveAnnotation'](_0x3f7a23),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4bd566,_0x407864)=>this['_removeCommentThread'](_0x407864)),this['on']('updateCommentThread',(_0x42d6fb,_0x282390)=>this['_updateCommentThread'](_0x282390)),this['on']('updateCommentThread',(_0xc22ab7,_0x1d4fe2)=>this['_updateActiveAnnotation'](_0x1d4fe2),{'priority':'lowest'}),this['on']('addComment',(_0x5399ff,_0x5bc871)=>this['_addComment'](_0x5bc871)),this['on']('updateComment',(_0xeac009,_0x56b40f)=>this['_updateComment'](_0x56b40f)),this['on']('removeComment',(_0x1c4d68,_0xb4423c)=>this['_removeComment'](_0xb4423c)),this['on']('addComment',(_0x430c01,{threadId:_0x4b3180,isFromAdapter:_0x394593})=>{if(_0x394593)return;const _0x5800b=this['getCommentThread'](_0x4b3180),_0xd80f3f=_0x5800b&&this['_threadToController']['get'](_0x5800b);_0xd80f3f&&_0xd80f3f['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x2d78b9,'change:activeAnnotations',(_0x120e85,_0x6dbb6,_0x549561)=>{const _0x1a44d1=Array['from'](_0x549561)['map'](_0x3af1e2=>this['_viewToController']['get'](_0x3af1e2['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x1a44d1?_0x1a44d1['model']:null;});}set['adapter'](_0x31b66f){if(this['_adapter'])throw new _0x439571('commentsrepository-adapter-already-set');this['_adapter']=_0x31b66f;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x35a020=_t,threadId:_0x423f20=_0x47ede4(),comments:_0x446068=[],unlinkedAt:_0x5151ea=null,resolvedAt:_0x953b36=null,resolvedBy:_0x48e79c=null,target:_0x2f7ad1=null,context:_0xe589e9=null,attributes:_0x13575e={},isResolvable:_0x3ab2d6=!0x0,isSubmitted:_0x2a847e=!0x1,isFromAdapter:_0x7ea90d=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x35a020),{'channelId':_0x35a020,'threadId':_0x423f20,'comments':_0x446068,'unlinkedAt':_0x5151ea,'resolvedAt':_0x953b36,'resolvedBy':_0x48e79c,'target':_0x2f7ad1,'context':_0xe589e9,'attributes':_0x13575e,'isFromAdapter':_0x7ea90d,'isResolvable':_0x3ab2d6,'isSubmitted':_0x2a847e}),this['getCommentThread'](_0x423f20);}['openNewCommentThread']({channelId:_0x88d60b=_t,threadId:_0x34944a=_0x47ede4(),target:_0x5ec550,context:_0x6aeea=null,isResolvable:_0x4a22f3=!0x0}){if(this['_readOnlyChannels']['has'](_0x88d60b)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x5ec550)throw new _0x439571('commentsrepository-missing-target');const _0x22a5f6=this['addCommentThread']({'channelId':_0x88d60b,'threadId':_0x34944a,'target':_0x5ec550,'context':_0x6aeea,'isResolvable':_0x4a22f3});if(!_0x22a5f6)return null;const _0x25eec2=this['_threadToController']['get'](_0x22a5f6),_0x4dd3b1=_0x25eec2['view']['commentThreadInputView']['commentInputView'],_0x5e27ae=this['context']['plugins']['get'](y),_0x4a5790=_0x5e27ae['getByInnerView'](_0x25eec2['view']);return _0x5e27ae['activate'](_0x4a5790),_0x4dd3b1['once']('editorReady',()=>_0x4dd3b1['focus']()),_0x22a5f6;}['hasCommentThread'](_0x3fe7e6){if('string'!=typeof _0x3fe7e6)throw new _0x439571('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x3fe7e6);}['updateCommentThread']({channelId:_0x2ef6b2=_t,threadId:_0x18c9b5,context:_0x2e9f0a,unlinkedAt:_0x2661ee,attributes:_0x1edbf9,isFromAdapter:_0x29a0d8=!0x1}){return this['fire'](Nt('updateCommentThread',_0x2ef6b2),{'channelId':_0x2ef6b2,'threadId':_0x18c9b5,'context':_0x2e9f0a,'unlinkedAt':_0x2661ee,'attributes':_0x1edbf9,'isFromAdapter':_0x29a0d8}),this['getCommentThread'](_0x18c9b5);}['getCommentThread'](_0x54c95b){if('string'!=typeof _0x54c95b)throw new _0x439571('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x54c95b);}['fetchCommentThread']({channelId:_0x46da54,threadId:_0x40cae2}={}){const _0x4903e8=this['getCommentThread'](_0x40cae2);if(_0x4903e8)return Promise['resolve'](_0x4903e8);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x439571('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x46da54,'threadId':_0x40cae2})['then'](_0x340cee=>this['hasCommentThread'](_0x40cae2)?this['getCommentThread'](_0x40cae2):_0x340cee?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x46da54},_0x340cee)):void 0x0)['catch'](_0x50ff97=>{throw console['error'](_0x50ff97),new _0x439571('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x12505f,skipNotAttached:_0x3b832d=!0x1,skipEmpty:_0x4f2695=!0x1,toJSON:_0x4ce812=!0x1}={}){const _0x10bd51=[];for(const _0x1f766b of this['_threads']['values']())_0x12505f&&_0x1f766b['channelId']!==_0x12505f||_0x3b832d&&!_0x1f766b['isAttached']||_0x4f2695&&0x0===_0x1f766b['length']||_0x10bd51['push'](_0x1f766b);return _0x4ce812?_0x10bd51['map'](_0x57fb5a=>_0x57fb5a['toJSON']()):_0x10bd51;}['getAnnotationForCommentThread'](_0x5aa784){const _0xef39b1=this['_threadToController']['get'](_0x5aa784);if(!_0xef39b1)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0xef39b1['view'])||null;}['getCommentThreadForAnnotation'](_0x35aec7){const _0x3019ce=this['_viewToController']['get'](_0x35aec7['innerView']);return _0x3019ce?_0x3019ce['model']:null;}['setActiveCommentThread'](_0x318f1a){const _0x4bf600=this['context']['plugins']['get'](y);if(!_0x318f1a)return void(this['activeCommentThread']&&_0x4bf600['deactivateAll']());const _0x2b4b47=this['getCommentThread'](_0x318f1a);if(!_0x2b4b47)throw new _0x439571('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x318f1a});if(!this['_threadToController']['has'](_0x2b4b47))throw new _0x439571('commentsrepository-active-not-attached',null,{'threadId':_0x318f1a});const _0x3f3aa2=_0x4bf600['getByInnerView'](this['_threadToController']['get'](_0x2b4b47)['view']);_0x4bf600['activate'](_0x3f3aa2);}['switchReadOnly'](_0x531acb,_0x299f7c){_0x531acb?this['_readOnlyChannels']['add'](_0x299f7c):this['_readOnlyChannels']['delete'](_0x299f7c),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x233d4c){return this['_readOnlyChannels']['has'](_0x233d4c)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x44fdb4,_0x5a206d){return new vt(_0x44fdb4,_0x5a206d);}['setPermissions'](_0x104fe9,_0x414aa5=_t){this['_permissions']['set'](_0x414aa5,_0x104fe9),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x304851=_t){return this['_permissions']['has'](_0x304851)?this['_permissions']['get'](_0x304851):bt;}['_addCommentThread']({channelId:_0x5e0761,threadId:_0x445780,comments:_0x5eb345,unlinkedAt:_0x2c57d0,resolvedAt:_0x597bfc,resolvedBy:_0x453241,target:_0xfcb247,context:_0x72190b,attributes:_0x1a90e2,isFromAdapter:_0x44f4df,isResolvable:_0x1d04f0,isSubmitted:_0x451551}){if('string'!=typeof _0x445780)throw new _0x439571('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x445780});if(this['hasCommentThread'](_0x445780))throw new _0x439571('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x445780});const _0x5195ae=new pi(this,{'channelId':_0x5e0761,'id':_0x445780,'context':_0x72190b,'attributes':_0x1a90e2,'unlinkedAt':_0x2c57d0,'resolvedAt':_0x597bfc,'resolvedBy':_0x453241?this['context']['plugins']['get'](it)['getUser'](_0x453241):null,'isResolvable':_0x1d04f0,'isSubmitted':_0x451551||_0x44f4df});this['_threads']['set'](_0x445780,_0x5195ae);for(const _0x298b68 of _0x5eb345)_0x5195ae['_add'](this['_createNewComment']({'threadId':_0x445780,..._0x298b68}));return _0xfcb247&&_0x5195ae['attachTo'](_0xfcb247),_0x44f4df||!_0x5195ae['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x5e0761,'threadId':_0x445780});}['_submitCommentThread']({channelId:_0x5b5f2b,threadId:_0x50410c}){if(!this['hasCommentThread'](_0x50410c))throw new _0x439571('commentsrepository-missing-comment-thread',this);const _0xee6681=this['getCommentThread'](_0x50410c);if(_0xee6681['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x41bcfc,comments:_0x10fcc1,resolvedAt:_0x1e890d,resolvedBy:_0x3263b5,context:_0xce86cb,attributes:_0x561d07}=_0xee6681,_0x602a56=this['context']['plugins']['get']('PendingActions'),_0xcfafd8=_0x602a56['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x5b5f2b,'threadId':_0x41bcfc,'comments':_0x10fcc1['map'](_0x4f0ea3=>_0x4f0ea3['toJSON']()),'resolvedAt':_0x1e890d,'resolvedBy':_0x3263b5?_0x3263b5['id']:_0x3263b5,'context':_0xce86cb,'attributes':_0x561d07})['then'](({comments:_0x3c2f89})=>{_0x602a56['remove'](_0xcfafd8);for(const _0x50b3a6 of _0x3c2f89)this['_updateComment']({'channelId':_0x5b5f2b,'threadId':_0x50410c,'commentId':_0x50b3a6['commentId'],'createdAt':_0x50b3a6['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1f9ed1=>{throw console['error'](_0x1f9ed1),new _0x439571('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2e9801,target:_0x3c544e}){const _0x1c1510=this['getCommentThread'](_0x2e9801);if(!_0x1c1510)throw new _0x439571('commentsrepository-attach-missing-comment-thread',this);const _0x1693f9=this['context']['plugins']['get']('PendingActions'),_0x3f0100=this['context']['plugins']['get'](y),_0x34386a=this['_createCommentThreadView'](_0x1c1510),_0x3719bb=new vt(_0x1c1510,_0x34386a);let _0x133b60=null;_0x34386a['on']('change:isDirty',(_0x527334,_0x5f16f9,_0xfabf76)=>{_0xfabf76?_0x133b60=_0x1693f9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x133b60&&(_0x1693f9['remove'](_0x133b60),_0x133b60=null);}),this['_threadToController']['set'](_0x1c1510,_0x3719bb),this['_viewToController']['set'](_0x34386a,_0x3719bb);const _0x3dd97a=new E(this['context']['locale'],_0x34386a);_0x3dd97a['bind']('length')['to'](_0x34386a),_0x3dd97a['bind']('isDirty')['to'](_0x34386a,'isDirty',_0x34386a,'length',(_0x4bf4ca,_0x87853b)=>_0x4bf4ca||!_0x87853b),_0x3dd97a['bind']('isActive')['to'](_0x34386a),_0x3dd97a['type']='comment';const _0x4f4049=new T({'view':_0x3dd97a,'target':_0x3c544e,'type':'comment','isVisible':!_0x1c1510['archivedAt']&&!!('function'==typeof _0x3c544e?_0x3c544e():_0x3c544e)});return _0x34386a['on']('escape',()=>{_0x4f4049['fire']('escape');}),this['_bindAnnotationToEditors'](_0x34386a,_0x4f4049),_0x3f0100['add'](_0x4f4049),_0x4f4049;}['_bindAnnotationToEditors'](_0x2e0b3c,_0x5a9ad3){this['listenTo'](_0x2e0b3c,'editorReady',(_0x5d3adb,_0x30cb2b)=>{const _0x19db5f=_0x30cb2b['ui']['view']['body']['bodyCollectionContainer'];_0x5a9ad3['focusableElements']['add'](_0x19db5f),this['context']instanceof _0x4502cf&&this['context']['ui']['focusTracker']['add'](_0x19db5f);},{'priority':'highest'}),this['listenTo'](_0x2e0b3c,'editorDestroyed',(_0xfeae51,_0x46dc1f)=>{const _0x1c5274=_0x46dc1f['ui']['view']['body']['bodyCollectionContainer'];_0x5a9ad3['focusableElements']['has'](_0x1c5274)&&_0x5a9ad3['focusableElements']['remove'](_0x1c5274),this['context']instanceof _0x4502cf&&this['context']['ui']['focusTracker']['remove'](_0x1c5274);});}['_unbindEditors'](_0x41af4f){this['stopListening'](_0x41af4f,'editorReady'),this['stopListening'](_0x41af4f,'editorDestroyed');}['_createCommentThreadView'](_0x7af1c8){const _0x3dca06=this['context']['plugins']['get'](it),{config:_0x232be3,locale:_0x358e0e}=this['context'],_0x409603=pt(_0x232be3['get']('locale'),_0x358e0e);return new(0x0,(_0x232be3['get']('comments'))['CommentThreadView'])(_0x358e0e,_0x7af1c8,_0x3dca06['me'],{'editorConfig':{..._0x232be3['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x232be3['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x232be3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x232be3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x232be3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x409603,'CommentView':_0x232be3['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4f5e4c,channelId:_0x79b1c0,resolvedAt:_0x3516a9,resolvedBy:_0x3985ac,isFromAdapter:_0x1a4ea2}){if(!this['hasCommentThread'](_0x4f5e4c))throw new _0x439571('commentsrepository-missing-comment-thread',null,{'threadId':_0x4f5e4c});const _0x4aa6f8=this['getCommentThread'](_0x4f5e4c);if(_0x4aa6f8['isResolved'])throw new _0x439571('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4f5e4c});const _0x4fad8d=this['context']['plugins']['get'](it);if(_0x4aa6f8['resolvedBy']=_0x4fad8d['getUser'](_0x3985ac),_0x4aa6f8['resolvedAt']=_0x3516a9,_0x1a4ea2||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x154152=this['context']['plugins']['get']('PendingActions'),_0x2ce8c0=_0x154152['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x79b1c0,'threadId':_0x4f5e4c})['then'](({resolvedAt:_0x2e1860,resolvedBy:_0x283d1d})=>{_0x154152['remove'](_0x2ce8c0),_0x4aa6f8['resolvedBy']['id']!==_0x283d1d&&(_0x4aa6f8['resolvedBy']=_0x4fad8d['getUser'](_0x283d1d)),_0x4aa6f8['resolvedAt']=_0x2e1860;})['catch'](_0x1ec5e1=>{throw console['error'](_0x1ec5e1),new _0x439571('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4c065f,channelId:_0x5052d7,isFromAdapter:_0x2f5f00}){if(!this['hasCommentThread'](_0x4c065f))throw new _0x439571('commentsrepository-missing-comment-thread',null,{'threadId':_0x4c065f});const _0x3f48e6=this['getCommentThread'](_0x4c065f);if(!_0x3f48e6['isResolved'])throw new _0x439571('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4c065f});if(_0x3f48e6['resolvedBy']=null,_0x3f48e6['resolvedAt']=null,_0x2f5f00||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x17ca27=this['context']['plugins']['get']('PendingActions'),_0x2a7f4e=_0x17ca27['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5052d7,'threadId':_0x4c065f})['then'](()=>_0x17ca27['remove'](_0x2a7f4e))['catch'](_0x303e40=>{throw console['error'](_0x303e40),new _0x439571('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x4f9ca6,isFromAdapter:_0xdaa5c0}){const _0x377501=this['getCommentThread'](_0x4f9ca6);if(!_0x377501)throw new _0x439571('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x4f9ca6),this['_threads']['delete'](_0x4f9ca6),!_0x377501['isSubmitted']||_0xdaa5c0||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x279e7d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1bb1d9}=_0x377501,_0x3dad28=_0x279e7d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1bb1d9,'threadId':_0x4f9ca6})['then'](()=>_0x279e7d['remove'](_0x3dad28))['catch'](_0x2d4b82=>{throw console['error'](_0x2d4b82),new _0x439571('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x32d3c6,unlinkedAt:_0x3e2fe2,context:_0xd95154,attributes:_0x53d764,isFromAdapter:_0x233bdc}){if('string'!=typeof _0x32d3c6)throw new _0x439571('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x32d3c6});if(!this['hasCommentThread'](_0x32d3c6))throw new _0x439571('commentsrepository-missing-comment-thread',null,{'threadId':_0x32d3c6});const _0x4735fc=this['getCommentThread'](_0x32d3c6);let _0x24f5f1=!0x1;if(void 0x0!==_0xd95154&&_0x4735fc['context']!==_0xd95154&&(_0x4735fc['context']=_0xd95154,_0x24f5f1=!0x0),void 0x0!==_0x3e2fe2&&_0x4735fc['unlinkedAt']!==_0x3e2fe2&&(_0x4735fc['unlinkedAt']=_0x3e2fe2,_0x24f5f1=!0x0),_0x53d764&&!At(_0x53d764,_0x4735fc['attributes'])&&(_0x4735fc['attributes']=_0x53d764,_0x24f5f1=!0x0),!_0x24f5f1)return Promise['resolve']();if(!_0x4735fc['isSubmitted']||_0x233bdc||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x2cfe62=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5247e5}=_0x4735fc,_0x1626f2=_0x2cfe62['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5247e5,'threadId':_0x32d3c6,'context':_0xd95154,'unlinkedAt':_0x3e2fe2,'attributes':_0x53d764})['then'](()=>_0x2cfe62['remove'](_0x1626f2))['catch'](_0x2c87df=>{throw console['error'](_0x2c87df),new _0x439571('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x125650){const _0x1b3ffe=this['context']['plugins']['get'](y),_0x246a99=this['getCommentThread'](_0x125650);if(_0x246a99['_isAttached']=!0x1,this['_threadToController']['has'](_0x246a99)){const _0x5bc41f=this['_threadToController']['get'](_0x246a99),_0x120737=_0x5bc41f['view'],_0x88f0c1=_0x1b3ffe['getByInnerView'](_0x120737);this['_threadToController']['delete'](_0x246a99),this['_viewToController']['delete'](_0x120737),_0x88f0c1&&_0x1b3ffe['remove'](_0x88f0c1),_0x5bc41f['destroy'](),_0x120737['destroy']()['then'](()=>{this['_unbindEditors'](_0x120737);});}}['_updateActiveAnnotation']({threadId:_0x546fbf,resolvedAt:_0x484837,unlinkedAt:_0x2b6b56}){const _0x16c6c0=!!_0x484837,_0x1afce4=this['context']['plugins']['get'](y),_0x412fb8=this['getCommentThread'](_0x546fbf);if(this['_threadToController']['has'](_0x412fb8)){const _0x452de6=this['_threadToController']['get'](_0x412fb8)['view'],_0xe48807=_0x1afce4['getByInnerView'](_0x452de6);_0xe48807&&(_0x16c6c0&&_0x1afce4['_removeActiveAnnotation'](_0xe48807),_0x2b6b56?_0xe48807['isVisible']=!0x1:_0xe48807['refreshVisibility']());}}['_getExternalAuthor'](_0x5da9c6){const _0x294fd9=this['context']['plugins']['get'](it),_0xff5b74=It('external:'+_0x5da9c6),_0x26ca0d=_0x294fd9['getUser'](_0xff5b74);return _0x26ca0d||_0x294fd9['addUser']({'id':_0xff5b74,'name':_0x5da9c6});}['_createNewComment']({threadId:_0x14c776,commentId:_0xe05940=_0x47ede4(),content:_0x4b8a57,authorId:_0x5f3c91,createdAt:_0x27c265,attributes:_0x2df1b5}){if('string'!=typeof _0xe05940)throw new _0x439571('commentsrepository-invalid-commentid');if('string'!=typeof _0x5f3c91)throw new _0x439571('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4b8a57||!_0x4b8a57['trim']())throw new _0x439571('commentsrepository-invalid-comment-content');const _0x1894ff=this['context']['plugins']['get'](it)['getUser'](_0x5f3c91);if(!_0x1894ff)throw new _0x439571('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x5f3c91});let _0xa25ff6=null,_0x5b209c=_0x27c265;return _0x2df1b5?.['@external']&&(_0xa25ff6=this['_getExternalAuthor'](_0x2df1b5['@external']['authorName']),_0x5b209c=new Date(_0x2df1b5['@external']['createdAt'])),new wi(this,{'threadId':_0x14c776,'id':_0xe05940,'author':_0xa25ff6||_0x1894ff,'creator':_0x1894ff,'content':_0x4b8a57,'createdAt':_0x27c265,'authoredAt':_0x5b209c,'attributes':_0x2df1b5});}['_addComment'](_0x493df8){let {threadId:_0x369885,content:_0x5334dd,attributes:_0x55f1a2,isFromAdapter:_0x431d36}=_0x493df8;const _0x26a393=this['getCommentThread'](_0x493df8['threadId']);if(!_0x26a393)throw new _0x439571('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4c429e=this['_createNewComment'](_0x493df8),{id:_0x4fc543}=_0x4c429e;if(_0x26a393['_add'](_0x4c429e),_0x431d36||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x26a393['isSubmitted'])return Promise['resolve']();const _0x2736a4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3acacf}=_0x26a393,_0x3d7ad6=_0x2736a4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x55f1a2||(_0x55f1a2={}),this['adapter']['addComment']({'channelId':_0x3acacf,'threadId':_0x369885,'commentId':_0x4fc543,'content':_0x5334dd,'attributes':_0x55f1a2})['then'](_0x2d7079=>{_0x2736a4['remove'](_0x3d7ad6),_0x2d7079&&this['_updateComment']({'channelId':_0x3acacf,'threadId':_0x369885,'commentId':_0x4fc543,'createdAt':_0x2d7079['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x678df3=>{throw console['error'](_0x678df3),new _0x439571('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x265096,commentId:_0x5ed445,content:_0x29494a,createdAt:_0x5a8dce,attributes:_0x134343,isFromAdapter:_0x325d83}){if(void 0x0!==_0x29494a&&('string'!=typeof _0x29494a||!_0x29494a['trim']()['length']))throw new _0x439571('commentsrepository-update-comment-invalid-content');const _0x2c4c58=this['getCommentThread'](_0x265096),_0xa4bcd8=_0x2c4c58['getComment'](_0x5ed445);if(!_0xa4bcd8)throw new _0x439571('commentsrepository-update-missing-comment',this);let _0x3e6387=!0x1;if(_0x29494a&&_0x29494a!==_0xa4bcd8['content']&&(_0xa4bcd8['isEditable']||_0x325d83)&&(_0xa4bcd8['content']=_0x29494a,_0x3e6387=!0x0),_0x5a8dce&&_0x5a8dce!==_0xa4bcd8['createdAt']&&(_0xa4bcd8['createdAt']=_0x5a8dce,_0xa4bcd8['attributes']&&_0xa4bcd8['attributes']['@external']||(_0xa4bcd8['authoredAt']=_0x5a8dce),_0x3e6387=!0x0),_0x134343&&!At(_0x134343,_0xa4bcd8['attributes'])&&(_0xa4bcd8['attributes']=_0x134343,_0x3e6387=!0x0),!_0x3e6387)return Promise['resolve']();if(_0x2c4c58['fire']('commentUpdated'),_0x325d83||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xe932f8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4240fb}=this['getCommentThread'](_0xa4bcd8['threadId']),_0x15b443=_0xe932f8['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x4240fb,'threadId':_0x265096,'commentId':_0x5ed445,'content':_0x29494a,'attributes':_0x134343})['then'](()=>_0xe932f8['remove'](_0x15b443))['catch'](_0xd658b2=>{throw console['error'](_0xd658b2),new _0x439571('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2b2302,commentId:_0x23d724,isFromAdapter:_0x2f4eaf}){const _0x9d06ba=this['getCommentThread'](_0x2b2302),_0x30fe37=_0x9d06ba['getComment'](_0x23d724);if(!_0x30fe37)throw new _0x439571('commentsrepository-remove-missing-comment',this);if(_0x9d06ba['_remove'](_0x30fe37),_0x2f4eaf||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x102b64=this['context']['plugins']['get']('PendingActions'),{channelId:_0x78e2a5}=_0x9d06ba,_0x440934=_0x102b64['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x78e2a5,'threadId':_0x2b2302,'commentId':_0x23d724})['then'](()=>_0x102b64['remove'](_0x440934))['catch'](_0x524873=>{throw console['error'](_0x524873),new _0x439571('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x5963b2(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x5690e4,_0x392404){super();const _0xdb84ab=_0x392404['isResolvable'];this['channelId']=_0x392404['channelId'],this['id']=_0x392404['id'],this['comments']=new _0x5803d7(),this['_repository']=_0x5690e4,this['_isAttached']=!0x1,this['_isSubmitted']=_0x392404['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x5690e4,'_permissions',_0x5690e4,'_readOnlyChannels',()=>_0x5690e4['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x5690e4,'_permissions',()=>_0x5690e4['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x5690e4,'_permissions',()=>{const _0x8aaa99=_0x5690e4['getPermissions'](this['channelId']);return _0x8aaa99['write']||_0x8aaa99['admin'];}),this['bind']('isResolvable')['to'](_0x5690e4,'_permissions',()=>_0xdb84ab&&_0x5690e4['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x392404['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x103651,_0x4daec6)=>_0x103651?_0x4daec6?_0x103651<_0x4daec6?_0x103651:_0x4daec6:_0x103651:_0x4daec6),this['set']('unlinkedAt',_0x392404['unlinkedAt']||null),this['set']('resolvedAt',_0x392404['resolvedAt']||null),this['set']('resolvedBy',_0x392404['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x52107c=>!!_0x52107c),this['set']('attributes',_0x392404['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x1c9b8e,_0x5ac274)=>_0x1c9b8e+_0x5ac274['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x19d5a3,id:_0x28e9f2}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x19d5a3),{'channelId':_0x19d5a3,'threadId':_0x28e9f2});}['setUnlinkedAt'](_0x18f093){this['_update']({'unlinkedAt':_0x18f093});}['resolve']({resolvedAt:_0x1199ca=new Date(),resolvedBy:_0x34e13e=null,isFromAdapter:_0x1cea75=!0x1}={}){const _0x3be9a5=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x16602a,id:_0xde3a94}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x16602a),{'channelId':_0x16602a,'threadId':_0xde3a94,'resolvedAt':_0x1199ca,'resolvedBy':_0x34e13e||_0x3be9a5['id'],'isFromAdapter':_0x1cea75});}['reopen']({isFromAdapter:_0x20c078=!0x1}={}){const {channelId:_0x4c27bb,id:_0x11a32b}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x4c27bb),{'channelId':_0x4c27bb,'threadId':_0x11a32b,'isFromAdapter':_0x20c078});}['setContext'](_0xebd645){this['context']||this['_update']({'context':_0xebd645});}['setAttribute'](_0x53b4b9,_0x5ad7cc){const _0x5248dc=wt(this['attributes']);yt(_0x5248dc,_0x53b4b9,_0x5ad7cc),this['_update']({'attributes':_0x5248dc});}['removeAttribute'](_0x373bf7){const _0x39af6d=wt(this['attributes']);Ct(_0x39af6d,_0x373bf7),this['_update']({'attributes':_0x39af6d});}['remove']({isFromAdapter:_0x13c956=!0x1}={}){const {channelId:_0x309cc1,id:_0x16a7c1}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x309cc1),{'channelId':_0x309cc1,'threadId':_0x16a7c1,'isFromAdapter':_0x13c956});}['attachTo'](_0x599d0b){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x599d0b});}['addComment'](_0x5e092a){const {channelId:_0x93fa0e,id:_0x4b9594}=this;this['_repository']['fire'](Nt('addComment',_0x93fa0e,_0x4b9594),Object['assign']({'channelId':_0x93fa0e,'threadId':_0x4b9594},_0x5e092a));}['getComment'](_0x2096cc){if('string'!=typeof _0x2096cc)throw new _0x439571('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2096cc});return this['comments']['get'](_0x2096cc);}['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'](_0x2a82c1=>_0x2a82c1['toJSON']()),'attributes':this['attributes']};}['_add'](_0x1fd433){return this['listenTo'](_0x1fd433,'change:authoredAt',()=>{const _0x13e3e0=this['_findOptimalIndex'](_0x1fd433),_0x56f72a=this['comments'];_0x13e3e0-0x1!=_0x56f72a['getIndex'](_0x1fd433)&&_0x13e3e0+0x1!=_0x56f72a['getIndex'](_0x1fd433)&&(this['_remove'](_0x1fd433),this['_add'](_0x1fd433));}),this['comments']['add'](_0x1fd433,this['_findOptimalIndex'](_0x1fd433));}['_update'](_0x1641da){const {channelId:_0x3c4a5f,id:_0x33015c}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x3c4a5f),{..._0x1641da,'channelId':_0x3c4a5f,'threadId':_0x33015c});}['_remove'](_0x728abf){return this['stopListening'](_0x728abf),_0x728abf['destroy'](),this['comments']['remove'](_0x728abf);}['_findOptimalIndex'](_0xa4a1f4){const _0x332abf=this['comments']['find'](_0x105f3f=>new Date(_0x105f3f['authoredAt'])['getTime']()>new Date(_0xa4a1f4['authoredAt'])['getTime']());return _0x332abf?this['comments']['getIndex'](_0x332abf):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x5963b2(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x200ac1,_0x28592b){super();const _0x26fced=_0x200ac1['context']['plugins']['get'](it)['me'],_0x5d00ae=_0x200ac1['getCommentThread'](_0x28592b['threadId']),_0x84af6e=0x0===_0x5d00ae['comments']['length'],_0x1b6c00=_0x26fced===_0x28592b['author'];this['id']=_0x28592b['id'],this['threadId']=_0x28592b['threadId'],this['author']=_0x28592b['author'],this['creator']=_0x28592b['creator'],this['isExternal']=Boolean(_0x28592b['attributes']&&_0x28592b['attributes']['@external']),this['set']('content',_0x28592b['content']),this['createdAt']=_0x28592b['createdAt']||new Date(),this['set']('authoredAt',_0x28592b['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5d00ae,'resolvedAt'),this['set']('attributes',_0x28592b['attributes']||{}),this['bind']('isEditable')['to'](_0x200ac1,'_permissions',()=>{const _0x4c802e=_0x200ac1['getPermissions'](_0x5d00ae['channelId'])['write'],_0x158c1e=_0x200ac1['getPermissions'](_0x5d00ae['channelId'])['modifyAll'];return _0x1b6c00&&_0x4c802e||!_0x1b6c00&&_0x158c1e;}),this['bind']('isRemovable')['to'](_0x5d00ae,'isRemovable',_0x200ac1,'_permissions',_0x5da67f=>{const _0xe42304=_0x200ac1['getPermissions'](_0x5d00ae['channelId'])['write'],_0x4f56a0=_0x200ac1['getPermissions'](_0x5d00ae['channelId'])['modifyAll'];return _0x1b6c00&&_0xe42304||_0x5da67f&&_0x84af6e||!_0x1b6c00&&_0x4f56a0&&!_0x84af6e;}),this['bind']('isReadOnly')['to'](_0x5d00ae,'isReadOnly'),this['_repository']=_0x200ac1;}get['weight'](){return Math['max'](function(_0x56fe6b){const _0x3a9ae2=document['createElement']('div');return _0x3a9ae2['innerHTML']=_0x56fe6b,_0x3a9ae2['textContent']['length'];}(this['content']),0xc8);}['update'](_0x20c87e){const {threadId:_0xc99304,id:_0x17e9d}=this;if(!this['_repository']['hasCommentThread'](_0xc99304))throw new _0x439571('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3fdb37}=this['_repository']['getCommentThread'](_0xc99304);this['_repository']['fire'](Nt('updateComment',_0x3fdb37,_0xc99304),{'channelId':_0x3fdb37,'threadId':_0xc99304,'commentId':_0x17e9d,..._0x20c87e});}['setAttribute'](_0x2cc151,_0x341a4e){const _0x544a96=wt(this['attributes']);yt(_0x544a96,_0x2cc151,_0x341a4e),this['update']({'attributes':_0x544a96});}['removeAttribute'](_0x396d09){const _0x7e8615=wt(this['attributes']);Ct(_0x7e8615,_0x396d09),this['update']({'attributes':_0x7e8615});}['remove'](_0x493e3a={}){if(!_0x493e3a['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x3eed50,id:_0x12b2b9}=this;if(!this['_repository']['hasCommentThread'](_0x3eed50))throw new _0x439571('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x37ee1f}=this['_repository']['getCommentThread'](_0x3eed50);this['_repository']['fire'](Nt('removeComment',_0x37ee1f,_0x3eed50),{'channelId':_0x37ee1f,'threadId':_0x3eed50,'commentId':_0x12b2b9,..._0x493e3a});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x1ec9b,..._0x21c464){for(const _0x271f7a of _0x21c464)void 0x0!==_0x271f7a&&(_0x1ec9b+=':'+String(_0x271f7a));return _0x1ec9b;}class ot extends _0x16c5e3{constructor(_0x178a8f){super(_0x178a8f),this['set']('hasContent',!0x1);}['refresh'](){const _0x2afc1d=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x4f266a of _0x2afc1d['getRanges']())if(this['_hasContent'](_0x4f266a))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4bf226=_0x47ede4(),ranges:_0x4f3a6c,comment:_0x1b9543}={}){const _0x34db97=this['editor']['model'],_0x679b9e=_0x4f3a6c??Array['from'](_0x34db97['document']['selection']['getRanges']()),_0xf23259=[];for(const _0x120641 of _0x679b9e)this['_hasContent'](_0x120641)&&_0xf23259['push'](this['_trimToContent'](_0x120641));if(!_0xf23259['length'])throw new _0x439571('addcommentthreadcommand-incorrect-ranges',null);_0x1b9543&&this['_createCommentThread'](_0x4bf226,_0x1b9543),this['_createMarkersFromRanges'](_0x4bf226,_0xf23259,!!_0x1b9543);}['_createMarkersFromRanges'](_0x1f4134,_0x4a2f20,_0x1a1116){this['editor']['model']['change'](_0x2aa6c1=>{for(const _0x23d2b0 of _0x4a2f20){const _0x36287a=_0x47ede4()['substr'](0x1,0x5),_0xbf96ae='comment:'+_0x1f4134+':'+_0x36287a;_0x2aa6c1['addMarker'](_0xbf96ae,{'range':_0x23d2b0,'usingOperation':_0x1a1116,'affectsData':_0x1a1116});}});}['_createCommentThread'](_0x3cd295,_0x54369e){const _0x42b727=this['editor']['plugins']['get']('CommentsRepository'),_0x38ddf6=this['editor']['config']['get']('collaboration.channelId'),_0x451f0e=this['editor']['plugins']['get']('Users')['me'];if(!_0x451f0e)throw new _0x439571('addcommentthreadcommand-user-not-found',null);_0x42b727['addCommentThread']({'threadId':_0x3cd295,'channelId':_0x38ddf6,'comments':[{'authorId':_0x451f0e['id'],'content':_0x54369e,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x3d0743){for(const _0x5762e4 of _0x3d0743['getItems']())if(this['_itemIsContent'](_0x5762e4))return!0x0;return!0x1;}['_itemIsContent'](_0x18593a){return _0x18593a['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x18593a)&&!_0x18593a['is']('element','tableCell');}['_trimToContent'](_0x5a5b75){const _0x5ede3b=_0xd84af3=>!this['_itemIsContent'](_0xd84af3['item']),_0x11349b=_0x5a5b75['start']['getLastMatchingPosition'](_0x5ede3b),_0x2340ac=_0x5a5b75['end']['getLastMatchingPosition'](_0x5ede3b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x11349b,_0x2340ac);}}class b extends _0x35ad89{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59c9aa){super(_0x59c9aa),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x135694=this['editor'],_0x312961=_0x135694['model']['document']['selection'],_0x39f5f0=_0x25198c(()=>this['refreshSelectedViews'](),0xa);_0x312961['on']('change:range',(_0x1b65a9,_0x1a540d)=>{_0x1a540d['directChange']&&(_0x39f5f0['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x135694['editing']['view']['document'],'change:isFocused',(_0x1ce52c,_0x13b4cf,_0x31ba3b)=>{_0x31ba3b&&_0x39f5f0();}),this['listenTo'](_0x135694['ui']['focusTracker'],'change:isFocused',(_0x15d8af,_0x1804d2,_0x301115)=>{_0x301115||this['fire']('blur',{'isAnnotationTracked':_0x4ed96d=>this['_editorAnnotationsData']['has'](_0x4ed96d['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4bb1ea){if(this['_editorAnnotations']['has'](_0x4bb1ea['view']))return;this['_editorAnnotations']['add'](_0x4bb1ea['view']),this['editor']['ui']['focusTracker']['add'](_0x4bb1ea['view']['element']);const _0x500603=this['editor']['plugins']['get'](y);this['listenTo'](_0x500603['collection'],'remove',(_0x21daf0,_0x2a9224)=>{this['editor']['ui']['focusTracker']['remove'](_0x2a9224['view']['element']),this['_editorAnnotations']['delete'](_0x2a9224['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x194b60){if('function'!=typeof _0x194b60)throw new _0x439571('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x194b60);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3a89db,annotations:_0x4080c9}){const _0x509209=[],_0x1ac9fa=this['editor']['model']['document']['selection'],_0x577b98=Array['from'](_0x1ac9fa['getRanges']());for(const [_0x232fa1,_0x5f520c]of this['_editorAnnotationsData']){const _0x26e4ac=_0x1c06a5(_0x5f520c),_0x272a3a=_0x4080c9['getByInnerView'](_0x232fa1);_0x26e4ac&&_0x272a3a&&_0x509209['push']({'annotation':_0x272a3a,'range':_0x26e4ac});}function _0x1c06a5(_0x1fffb3){for(const _0x21b1c4 of _0x1fffb3)for(const _0x1dec0e of _0x577b98)if(_0x21b1c4['containsRange'](_0x1dec0e,!_0x1ac9fa['isCollapsed']))return _0x21b1c4;return null;}return _0x509209['sort']((_0x52603a,_0x42688e)=>{const _0x578c15=_0x52603a['range'],_0x599bd6=_0x42688e['range'];if(!_0x578c15['isEqual'](_0x599bd6)){if(_0x578c15['containsRange'](_0x599bd6,!0x0))return 0x1;if(_0x599bd6['containsRange'](_0x578c15,!0x0))return-0x1;}return _0x52603a['annotation']==_0x3a89db?-0x1:_0x42688e['annotation']==_0x3a89db?0x1:0x0;})['map'](_0x1dd6a3=>_0x1dd6a3['annotation']);}get['_editorAnnotationsData'](){const _0x37259e=new Map();for(const _0x27d9b2 of Array['from'](this['_dataCollectors']))for(const [_0x2c3b38,_0x45518f]of _0x27d9b2())_0x37259e['set'](_0x2c3b38,_0x45518f);return _0x37259e;}}class st extends _0x35ad89{['afterInit'](){const _0x3f4f87=this['editor'];if(!_0x3f4f87['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3f4f87['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x35ad89{constructor(_0x10c58c){super(_0x10c58c),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x3e205b=this['editor'],_0x3f5d48=_0x3e205b['commands']['get']('importWord'),_0x15df4f=_0x3e205b['plugins']['get'](it);_0x3f5d48&&(_0x3f5d48['on']('execute',(_0xc3b89b,[,_0x2a33d5])=>{_0x2a33d5['collaboration_features']={'comments':!0x0,'user_id':_0x15df4f['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3f5d48,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4d0b9,_0x43b3f3){const {comment_threads:_0xb47744}=_0x43b3f3;_0xb47744&&_0xb47744['forEach'](({thread_id:_0x4b1bed,comments:_0x271b96,is_resolved:_0x19effb})=>{const _0x89f0b3=new Date(),_0x3f09ea=_0x271b96['map'](({author:_0x4c6ae0,content:_0x492a83,created_at:_0x11ffb2})=>({'content':_0x492a83,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x89f0b3,'attributes':{'@external':{'authorName':_0x4c6ae0,'createdAt':_0x11ffb2?new Date(_0x11ffb2):new Date(),'source':'importWord'}}})),_0x510a1d=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x510a1d,'threadId':_0x4b1bed,'comments':_0x3f09ea,'resolvedAt':_0x19effb?_0x89f0b3:null});});}}class at extends _0x35ad89{constructor(_0x5e7fa4){super(_0x5e7fa4),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x67a2d0=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x67a2d0,'contentInsertion',(_0x3c32a1,_0x17d937)=>this['_removeMarkersWithoutThreads'](_0x17d937['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x68c982){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x68c982;const _0x50a55b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x35825f of _0x68c982['keys']()){const [_0x165427,_0x55ce40]=_0x35825f['split'](':');'comment'!=_0x165427||_0x50a55b['hasCommentThread'](_0x55ce40)||_0x68c982['delete'](_0x35825f);}return _0x68c982;}['_registerMarkerInClipboardPipeline'](){const _0x2405d1=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3f2272=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3f2272&&_0x2405d1['_registerMarkerToCopy']('comment',_0x3f2272);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x474092){switch(_0x474092){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0xe1ab98){const _0x24ce1c=_0xe1ab98['split'](':');return{'group':_0x24ce1c[0x0],'id':_0x24ce1c[0x1],'part':_0x24ce1c[0x2]};}class ut extends _0x35ad89{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x6c8771,_0x24b7a3)=>{if(!_0x24b7a3['options']['showCommentHighlights'])return null;if(_0x24b7a3['options']['ignoreResolvedComments']){const {id:_0xd60168}=ft(_0x6c8771['markerName']),_0x4d8a3b=this['editor']['plugins']['get'](o);if(_0x4d8a3b['getCommentThread'](_0xd60168)?.['isResolved']&&_0x6c8771['item'])return _0x24b7a3['consumable']['consume'](_0x6c8771['item'],'addMarker:'+_0x6c8771['markerName']),_0x24b7a3['consumable']['consume'](_0x6c8771['item'],'removeMarker:'+_0x6c8771['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x29901a=>{_0x29901a['on']('addMarker:comment',(_0x574db4,_0x2d9321,_0x64ff42)=>{if(!_0x64ff42['options']['showCommentHighlights'])return;const _0x151c6a=_0x2d9321['item'];if(!_0x151c6a)return;const _0x1e6c38=_0x64ff42['mapper']['toViewElement'](_0x151c6a);this['editor']['model']['schema']['isObject'](_0x151c6a)&&_0x1e6c38&&!_0x1e6c38['getCustomProperty']('widget')&&_0x1e6c38['is']('containerElement')&&_0x53f762(_0x1e6c38,_0x64ff42['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb5e103,{writer:_0x11b69d,options:_0xd4f943})=>{if(!_0xd4f943['showCommentHighlights'])return null;const _0xd7f2e2=_0x11b69d['createContainerElement']('div'),_0xe2630b=_0x11b69d['createEmptyElement']('hr');return _0x11b69d['addClass']('ck-horizontal-line',_0xd7f2e2),_0x11b69d['insert'](_0x11b69d['createPositionAt'](_0xd7f2e2,0x0),_0xe2630b),_0xd7f2e2;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x91245f,{writer:_0x42c6e1,options:_0x3a1830})=>{if(!_0x3a1830['showCommentHighlights'])return null;const _0x544fd2=_0x42c6e1['createContainerElement']('span'),_0x24a8a7=_0x42c6e1['createEmptyElement']('img');return _0x42c6e1['addClass']('image-inline',_0x544fd2),_0x42c6e1['insert'](_0x42c6e1['createPositionAt'](_0x544fd2,0x0),_0x24a8a7),_0x544fd2;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3fbcb7,{writer:_0x76f7da,options:_0x3f4c64})=>{if(_0x3f4c64['showCommentHighlights'])return _0x76f7da['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0xc32bb0,_0x57e61a,_0xf94d8)=>{_0xf94d8['options']['showCommentHighlights']&&_0xc32bb0['stop']();},{'priority':'high'});}}class r extends _0x35ad89{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb4aa57){super(_0xb4aa57),this['set']('isThreadsLoadingPaused',!0x0),_0xb4aa57['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3d54a7,_0x56a960,_0x5eb3f0,_0x402aaa)=>{const _0xb63ebc=_0xb4aa57['plugins']['get'](o),_0x55a30f=_0x5eb3f0?ft(_0x5eb3f0)['id']:null;_0xb4aa57['model']['change'](()=>{if(_0x55a30f){const _0x8b1d02=this['getAllMarkersForId'](_0x55a30f);for(const _0xbf2656 of _0x8b1d02)_0xb4aa57['editing']['reconvertMarker'](_0xbf2656);}if(_0x402aaa){const {id:_0x137257}=ft(_0x402aaa),_0x5068f0=_0xb63ebc['getCommentThread'](_0x137257);if(_0x5068f0&&_0x5068f0['unlinkedAt'])return;if(_0x5068f0&&!_0x5068f0['isAttached'])return;const _0x2d3172=this['getAllMarkersForId'](_0x137257);for(const _0x56c116 of _0x2d3172)_0xb4aa57['editing']['reconvertMarker'](_0x56c116);}}),_0x55a30f&&this['scrollToThreadMarker'](_0x55a30f);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x182868=this['editor'],_0x51aa7d=_0x182868['plugins']['get'](o),_0x54c11d=_0x182868['config']['get']('collaboration.channelId'),_0x48be6b=_0x51aa7d['getCommentThreads']()['filter'](_0xd07634=>_0xd07634['channelId']!==_0x54c11d);_0x182868['commands']['add']('addCommentThread',new ot(_0x182868)),this['listenTo'](_0x182868,'change:isReadOnly',(_0x37cffb,_0xa90f84,_0x46b486)=>{_0x51aa7d['switchReadOnly'](_0x46b486,_0x182868['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x51aa7d,dt('addCommentThread',_0x54c11d),(_0x45942b,{threadId:_0x580b47})=>{const _0x2febd6=this['editor']['plugins']['get'](o)['getCommentThread'](_0x580b47);_0x2febd6?.['unlinkedAt']&&this['_attachArchivedThread'](_0x580b47);}),this['listenTo'](_0x51aa7d,dt('removeCommentThread',_0x54c11d),(_0x261d97,{threadId:_0x575e04})=>{_0x182868['model']['enqueueChange']({'isUndoable':!0x1},_0x44204f=>{const _0x3035b8=this['getAllMarkersForId'](_0x575e04);for(const _0x47f641 of _0x3035b8)_0x44204f['removeMarker'](_0x47f641);});}),this['listenTo'](_0x51aa7d,dt('resolveCommentThread',_0x54c11d),(_0x4e5139,{threadId:_0x20005a})=>{(this['_reconvertMarkers'](_0x20005a),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x20005a)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x51aa7d,dt('reopenCommentThread',_0x54c11d),(_0x7875d4,{threadId:_0x1bd6fb})=>{this['_reconvertMarkers'](_0x1bd6fb);},{'priority':'low'}),this['listenTo'](_0x51aa7d,dt('addComment',_0x54c11d),(_0x5abe81,{threadId:_0xfe2e82,isFromAdapter:_0xf36085})=>{const _0x550f1d=this['getAllMarkersForId'](_0xfe2e82);if(_0xf36085||0x0==_0x550f1d['length']||!_0x51aa7d['hasCommentThread'](_0xfe2e82))return;0x1===_0x51aa7d['getCommentThread'](_0xfe2e82)['length']&&_0x182868['model']['enqueueChange']({'isUndoable':!0x1},_0x2664de=>{for(const _0x1f8c0d of _0x550f1d)_0x2664de['updateMarker'](_0x1f8c0d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x48be6b);}['afterInit'](){!async function(_0x2af2d3){const _0x3d0552=_0x15630e([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x5667f6=0x73460ab3,_0x4bd20c=0x7341784b^_0x5667f6,_0x4f2bd4=window[_0x15630e([0x44,0x61,0x74,0x65])][_0x15630e([0x6e,0x6f,0x77])](),_0x34c7dc=_0x2af2d3[_0x15630e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b575d=new window[(_0x15630e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xadd5a6=>{_0x34c7dc[_0x15630e([0x6f,0x6e,0x63,0x65])](_0x15630e([0x72,0x65,0x61,0x64,0x79]),_0xadd5a6);}),_0x4a7f9c={[_0x15630e([0x6b,0x74,0x79])]:_0x15630e([0x45,0x43]),[_0x15630e([0x75,0x73,0x65])]:_0x15630e([0x73,0x69,0x67]),[_0x15630e([0x63,0x72,0x76])]:_0x15630e([0x50,0x2d,0x32,0x35,0x36]),[_0x15630e([0x78])]:_0x15630e([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]),[_0x15630e([0x79])]:_0x15630e([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]),[_0x15630e([0x61,0x6c,0x67])]:_0x15630e([0x45,0x53,0x32,0x35,0x36])},_0x434e5c=_0x34c7dc[_0x15630e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15630e([0x67,0x65,0x74])](_0x15630e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xec8de1(){let _0x4b6da2,_0x5b9211=null,_0x2693f2=null;try{if(_0x434e5c==_0x15630e([0x47,0x50,0x4c]))return _0x15630e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b6da2=_0x307734(),!_0x4b6da2)return _0x15630e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b6da2[_0x15630e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2693f2=_0x5768d1(_0x4b6da2[_0x15630e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b6da2[_0x15630e([0x6a,0x74,0x69])])),await _0x3be5b1()?_0x31e3fd()?_0x5473f1()?_0x15630e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dd5e2()?(_0x4b6da2[_0x15630e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15630e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b9211=_0x1abad0(_0x15630e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b6da2[_0x15630e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15630e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b9211=_0x1abad0(_0x15630e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x495803()):_0x15630e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15630e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15630e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15630e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5473f1(){const _0x5c649a=[_0x15630e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15630e([0x74,0x72,0x69,0x61,0x6c])][_0x15630e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b6da2[_0x15630e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f2bd4/0x3e8:0xe10*_0x4bd20c;return _0x4b6da2[_0x15630e([0x65,0x78,0x70])]<_0x5c649a;}function _0x31e3fd(){const _0x109cc0=_0x4b6da2[_0x15630e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x109cc0)return!0x1;if(_0x109cc0[_0x15630e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15630e([0x2a])))return!0x0;if(_0x109cc0[_0x15630e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15630e([0x43,0x4d,0x54])))return!0x0;if(_0x109cc0[_0x15630e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15630e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x5de4f0())return!0x0;if(_0x109cc0[_0x15630e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15630e([0x52,0x43,0x4d,0x54]))){if(_0x1be39d())return!0x0;if(_0x2d961e()||_0x2ab9ae())return!0x0;}return!0x1;}function _0x2dd5e2(){const _0x234999=_0x4b6da2[_0x15630e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x234999||0x0==_0x234999[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb89ee9}=new URL(window[_0x15630e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x234999[_0x15630e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb89ee9))return!0x0;const _0x4d24e8=_0xb89ee9[_0x15630e([0x73,0x70,0x6c,0x69,0x74])](_0x15630e([0x2e]));return _0x234999[_0x15630e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b4f2c=>_0x2b4f2c[_0x15630e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15630e([0x2a])))[_0x15630e([0x6d,0x61,0x70])](_0x5562a5=>_0x5562a5[_0x15630e([0x73,0x70,0x6c,0x69,0x74])](_0x15630e([0x2e])))[_0x15630e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe2a50b=>_0xe2a50b[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d24e8[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15630e([0x6d,0x61,0x70])](_0x142a0d=>Array(_0x4d24e8[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x142a0d[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15630e([0x66,0x69,0x6c,0x6c])](_0x142a0d[0x0]===_0x15630e([0x2a])?_0x15630e([0x2a]):'')[_0x15630e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x142a0d))[_0x15630e([0x73,0x6f,0x6d,0x65])](_0x402660=>_0x4d24e8[_0x15630e([0x65,0x76,0x65,0x72,0x79])]((_0x4e37b7,_0x5d5008)=>_0x402660[_0x5d5008]===_0x4e37b7||_0x402660[_0x5d5008]===_0x15630e([0x2a])));}function _0x495803(){return _0x5b9211&&_0x2693f2?new window[(_0x15630e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x342fe5,_0x5efde8)=>{_0x5b9211[_0x15630e([0x74,0x68,0x65,0x6e])](_0x342fe5,_0x5efde8),_0x2693f2[_0x15630e([0x74,0x68,0x65,0x6e])](_0x5544fa=>{_0x5544fa!=_0x15630e([0x56,0x61,0x6c,0x69,0x64])&&_0x342fe5(_0x5544fa);},_0x5efde8);}):_0x5b9211||_0x2693f2||_0x15630e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5768d1(_0x2514ef,_0x282fdc){return new window[(_0x15630e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b6b20=>{if(_0xe59428())return _0x2b6b20(_0x15630e([0x56,0x61,0x6c,0x69,0x64]));_0x4fe979(),_0x34c7dc[_0x15630e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15630e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c2ffe=!0x1;const _0x192ed4=_0x47ede4();function _0x28c1f6(_0x317455){return!!_0x317455&&(typeof _0x317455===_0x15630e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x317455===_0x15630e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x317455[_0x15630e([0x74,0x68,0x65,0x6e])]===_0x15630e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x317455[_0x15630e([0x63,0x61,0x74,0x63,0x68])]===_0x15630e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa409a3(_0x55e5e0){_0x17597f(_0x55e5e0)[_0x15630e([0x74,0x68,0x65,0x6e])](_0x3d763d=>{if(!_0x3d763d||_0x3d763d[_0x15630e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15630e([0x6f,0x6b]))return _0x15630e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x114754(_0x5714c5(_0x192ed4+_0x282fdc))!=_0x3d763d[_0x15630e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15630e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15630e([0x56,0x61,0x6c,0x69,0x64]);})[_0x15630e([0x74,0x68,0x65,0x6e])](_0x36cdd1=>(_0x31c948(),_0x36cdd1),()=>{const _0x439dee=_0x58e521();return null==_0x439dee?(_0x31c948(),_0x15630e([0x56,0x61,0x6c,0x69,0x64])):_0x15630e(_0x4f2bd4-_0x439dee>(0x574a8eb3^_0x5667f6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15630e([0x74,0x68,0x65,0x6e])](_0x2b6b20)[_0x15630e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b6b20(_0x15630e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e08be=0x7370e433^_0x5667f6;function _0x31c948(){const _0x585f05=_0x15630e([0x6c,0x6c,0x63,0x74,0x2d])+_0x114754(_0x5714c5(_0x2514ef)),_0xab22d2=_0x264567(_0x114754(window[_0x15630e([0x4d,0x61,0x74,0x68])][_0x15630e([0x63,0x65,0x69,0x6c])](_0x4f2bd4/_0x3e08be)));window[_0x15630e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15630e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x585f05,_0xab22d2);}function _0x58e521(){const _0x44e318=_0x15630e([0x6c,0x6c,0x63,0x74,0x2d])+_0x114754(_0x5714c5(_0x2514ef)),_0x3d9f16=window[_0x15630e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15630e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44e318);return _0x3d9f16?window[_0x15630e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x264567(_0x3d9f16),0x10)*_0x3e08be:null;}function _0x17597f(_0x1f0779){return new window[(_0x15630e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b8612,_0x5778ab)=>{_0x1f0779[_0x15630e([0x74,0x68,0x65,0x6e])](_0x5b8612,_0x5778ab),window[_0x15630e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5778ab,0x7347de73^_0x5667f6);});}}_0x34c7dc[_0x15630e([0x6f,0x6e])](_0x15630e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb95f71,_0x3ac28c)=>{if(_0x3ac28c[0x0]!=_0x2514ef)return _0x2b6b20(_0x15630e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ac28c[0x1]={..._0x3ac28c[0x1],[_0x15630e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x192ed4};},{[_0x15630e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15630e([0x68,0x69,0x67,0x68])}),_0x34c7dc[_0x15630e([0x6f,0x6e])](_0x15630e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e585f=>{_0x28c1f6(_0x1e585f[_0x15630e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c2ffe=!0x0,_0xa409a3(_0x1e585f[_0x15630e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15630e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15630e([0x6c,0x6f,0x77])}),_0x2b575d[_0x15630e([0x74,0x68,0x65,0x6e])](()=>{_0x3c2ffe||_0x2b6b20(_0x15630e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe59428(){return _0x34c7dc[_0x15630e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15630e([0x76,0x69,0x65,0x77])][_0x15630e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15630e([0x61,0x75,0x74,0x6f]);}function _0x4fe979(){_0x34c7dc[_0x15630e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15630e([0x76,0x69,0x65,0x77])][_0x15630e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15630e([0x61,0x75,0x74,0x6f]);}}function _0x1abad0(_0x388c04){const _0x3f2a79=[new window[(_0x15630e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ec1ad=>setTimeout(_0x2ec1ad,0x734f347f^_0x5667f6)),_0x2b575d[_0x15630e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15630e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1053cb=>{let _0x4c6d09=0x0;_0x34c7dc[_0x15630e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15630e([0x6f,0x6e])](_0x15630e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ba6f1,_0x3018dc)=>{_0x3018dc[0x0][_0x15630e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c6d09++,_0x4c6d09==(0x73460b4b^_0x5667f6)&&(_0x1053cb(),_0x2ba6f1[_0x15630e([0x6f,0x66,0x66])]());});}))];return window[_0x15630e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15630e([0x72,0x61,0x63,0x65])](_0x3f2a79)[_0x15630e([0x74,0x68,0x65,0x6e])](()=>_0x388c04);}async function _0x2fc375(){await _0x2b575d,_0x34c7dc[_0x15630e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15630e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x206530,_0x34c7dc[_0x15630e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15630e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x206530,_0x34c7dc[_0x15630e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15630e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5de4f0(){return window[_0x15630e([0x67,0x6c,0x6f,0x62])]&&window[_0x15630e([0x67,0x6c,0x6f,0x62])][_0x15630e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1be39d(){return _0x5a5923(_0x15630e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x43eccd(_0x15630e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15630e([0x73,0x74,0x61,0x74,0x65])]==_0x15630e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2d961e(){return _0x5a5923(_0x15630e([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 _0x2ab9ae(){return _0x5a5923(_0x15630e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x227ac9(_0x7b4c08){const _0x5b169c=_0x5106fe();_0x34c7dc[_0x5b169c]=_0x15630e([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x7b4c08,_0x7b4c08!=_0x15630e([0x56,0x61,0x6c,0x69,0x64])&&_0x2fc375();}function _0x5106fe(){const _0x43d487=window[_0x15630e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15630e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15630e([0x6e,0x6f,0x77])]())[_0x15630e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15630e([0x2e]),'');let _0xf11f3a=_0x15630e([0x4b]);for(let _0x31145f=0x0;_0x31145f<_0x43d487[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31145f+=0x2){let _0x433852=window[_0x15630e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43d487[_0x15630e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31145f,_0x31145f+0x2));_0x433852>=_0x3d0552[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x433852-=_0x3d0552[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf11f3a+=_0x3d0552[_0x433852];}return _0xf11f3a;}function _0x307734(){const _0x59c988=_0x434e5c[_0x15630e([0x73,0x70,0x6c,0x69,0x74])](_0x15630e([0x2e]));if(0x3!=_0x59c988[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51ffbb(_0x59c988[0x1]);function _0x51ffbb(_0x4c100b){const _0x1bf116=_0x188fa8(_0x4c100b);return _0x1bf116&&_0x5762c6()?_0x1bf116:null;function _0x5762c6(){const _0x51d0d9=_0x1bf116[_0x15630e([0x6a,0x74,0x69])],_0x1e1bc5=window[_0x15630e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51d0d9[_0x15630e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51d0d9[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d726d={..._0x1bf116,[_0x15630e([0x6a,0x74,0x69])]:_0x51d0d9[_0x15630e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51d0d9[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d726d[_0x15630e([0x76,0x63])],_0x5714c5(_0x2d726d)==_0x1e1bc5;}}}async function _0x3be5b1(){let _0x3c13d6=!0x0;try{const _0x360173=_0x434e5c[_0x15630e([0x73,0x70,0x6c,0x69,0x74])](_0x15630e([0x2e])),[_0x20f55f,_0x19cbda,_0x31d536]=_0x360173;return _0x51f65f(_0x20f55f),await _0x521122(_0x20f55f,_0x19cbda,_0x31d536),_0x3c13d6;}catch{return!0x1;}function _0x51f65f(_0x533a38){const _0x5a94d7=_0x188fa8(_0x533a38);_0x5a94d7&&_0x5a94d7[_0x15630e([0x61,0x6c,0x67])]==_0x15630e([0x45,0x53,0x32,0x35,0x36])||(_0x3c13d6=!0x1);}async function _0x521122(_0x39b4f1,_0x5ae22c,_0x5b4952){const _0x25ffce=window[_0x15630e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15630e([0x66,0x72,0x6f,0x6d])](_0x45d5d6(_0x5b4952),_0x92cf2c=>_0x92cf2c[_0x15630e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x390803=new window[(_0x15630e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15630e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39b4f1+_0x15630e([0x2e])+_0x5ae22c),_0x26084c=window[_0x15630e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15630e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26084c)return;const _0xd65e06=await _0x26084c[_0x15630e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15630e([0x6a,0x77,0x6b]),_0x4a7f9c,{[_0x15630e([0x6e,0x61,0x6d,0x65])]:_0x15630e([0x45,0x43,0x44,0x53,0x41]),[_0x15630e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15630e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15630e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26084c[_0x15630e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15630e([0x6e,0x61,0x6d,0x65])]:_0x15630e([0x45,0x43,0x44,0x53,0x41]),[_0x15630e([0x68,0x61,0x73,0x68])]:{[_0x15630e([0x6e,0x61,0x6d,0x65])]:_0x15630e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd65e06,_0x25ffce,_0x390803)||(_0x3c13d6=!0x1);}}function _0x188fa8(_0x2d3e7b){return _0x2d3e7b[_0x15630e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15630e([0x65,0x79]))?JSON[_0x15630e([0x70,0x61,0x72,0x73,0x65])](_0x45d5d6(_0x2d3e7b)):null;}function _0x45d5d6(_0x3c5160){return window[_0x15630e([0x61,0x74,0x6f,0x62])](_0x3c5160[_0x15630e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15630e([0x2b]))[_0x15630e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15630e([0x2f])));}function _0x5714c5(_0x3ed0f0){let _0x3a96e5=0x1505;function _0x4e1e29(_0x19fcca){for(let _0x117d6f=0x0;_0x117d6f<_0x19fcca[_0x15630e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x117d6f++){const _0x2d9f37=_0x19fcca[_0x15630e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x117d6f);_0x3a96e5=(_0x3a96e5<<0x5)+_0x3a96e5+_0x2d9f37,_0x3a96e5&=_0x3a96e5;}}function _0x26bdd6(_0x4a270d){Array[_0x15630e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a270d)?_0x4a270d[_0x15630e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26bdd6):_0x4a270d&&typeof _0x4a270d==_0x15630e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15630e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a270d)[_0x15630e([0x73,0x6f,0x72,0x74])]()[_0x15630e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2be528,_0x2305db])=>{_0x4e1e29(_0x2be528),_0x26bdd6(_0x2305db);}):_0x4e1e29(window[_0x15630e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a270d));}return _0x26bdd6(_0x3ed0f0),_0x3a96e5>>>0x0;}function _0x114754(_0x28c91d){return _0x28c91d[_0x15630e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15630e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15630e([0x30]));}function _0x264567(_0x14f5a7){return _0x14f5a7[_0x15630e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15630e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15630e([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a5923(_0x37f88d){return _0x34c7dc[_0x15630e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15630e([0x68,0x61,0x73])](_0x37f88d);}function _0x43eccd(_0xca00ca){return _0x34c7dc[_0x15630e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15630e([0x67,0x65,0x74])](_0xca00ca);}function _0x206530(){}function _0x15630e(_0x19bda2){return _0x19bda2['map'](_0x2935ea=>String['fromCharCode'](_0x2935ea))['join']('');}_0x227ac9(await _0xec8de1());}(this);}['destroy'](){const _0x96c947=this['editor']['plugins']['get'](o),_0x2d1a5c=this['editor']['config']['get']('collaboration.channelId');for(const _0x422190 of _0x96c947['getCommentThreads']({'channelId':_0x2d1a5c}))_0x96c947['_detachCommentThread'](_0x422190['id']),_0x96c947['_threads']['delete'](_0x422190['id']);super['destroy']();}['hasMarkerForId'](_0x3e4185){return this['getAllMarkersForId'](_0x3e4185)['length']>0x0;}['getAllMarkersForId'](_0x3fa438){const _0x37e2fb=[];for(const _0x2c8fdb of this['editor']['model']['markers'])_0x2c8fdb['name']['startsWith']('comment:'+_0x3fa438)&&_0x37e2fb['push'](_0x2c8fdb);return _0x37e2fb;}['scrollToThreadMarker'](_0x2764a4){setTimeout(()=>{const _0x41450e=this['_getTargetForId'](_0x2764a4);if(!_0x41450e)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x2764a4&&nt({'target':_0x41450e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x266886){this['editor']['model']['change'](()=>{for(const _0x2df13b of this['getAllMarkersForId'](_0x266886))this['editor']['editing']['reconvertMarker'](_0x2df13b);});}['_attachArchivedThread'](_0x3e7ff4){const _0x5941f9=this['editor']['plugins']['get'](o),_0x8e9889=this['editor']['plugins']['get'](b),_0xdbcee4=_0x5941f9['getCommentThread'](_0x3e7ff4);if(!_0xdbcee4['isAttached']){const _0x1a3246=_0xdbcee4['attachTo'](()=>this['_getTargetForId'](_0xdbcee4['id']));_0x8e9889['registerAnnotation'](_0x1a3246),_0xdbcee4['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1c400b=this['editor'],_0x1c1b68=_0x1c400b['plugins']['get'](it);_0x1c400b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4ed77f,_0x30d6da)=>{const {id:_0x8cf598}=ft(_0x4ed77f['markerName']),_0x1037e1=_0x1c400b['plugins']['get'](o)['getCommentThread'](_0x8cf598),_0x4f47a=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x8cf598;let _0x1b1812;if(_0x1037e1&&_0x1037e1['isResolved']&&!_0x4f47a&&_0x4ed77f['item'])return _0x30d6da['consumable']['consume'](_0x4ed77f['item'],'addMarker:'+_0x4ed77f['markerName']),_0x30d6da['consumable']['consume'](_0x4ed77f['item'],'removeMarker:'+_0x4ed77f['markerName']),null;const _0x29c8c7=['ck-comment-marker'];return _0x4f47a&&_0x29c8c7['push']('ck-comment-marker--active'),_0x1b1812=_0x1037e1?.['length']?_0x1037e1['comments']['first']['author']['id']:_0x1c1b68['me']['id'],{'classes':_0x29c8c7,'attributes':{'data-comment':_0x8cf598,'data-author-id':_0x1b1812}};}}),_0x1c400b['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x45557d,{options:_0x4fd1a7})=>{if(_0x4fd1a7['showCommentHighlights'])return null;const _0x540e67=_0x1c400b['plugins']['get'](o),_0x336ab3=_0x1c400b['model']['markers']['get'](_0x45557d),{id:_0x565b50,part:_0x58d6a7}=ft(_0x45557d);return _0x336ab3&&!_0x336ab3['affectsData']||_0x4fd1a7['ignoreResolvedComments']&&_0x540e67['getCommentThread'](_0x565b50)?.['isResolved']?null:{'group':'comment','name':_0x58d6a7?_0x565b50+':'+_0x58d6a7:_0x565b50};}}),_0x1c400b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x144501,{writer:_0x25dfdc})=>_0x25dfdc['createElement']('$marker',{'data-name':'comment:'+_0x144501['getAttribute']('id')})}),_0x1c400b['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3023ad=this['editor'],_0x504f5=_0x3023ad['plugins']['get'](o),_0x5ee304=new Set(),_0x344832=new Set();_0x3023ad['model']['document']['registerPostFixer'](_0x184c2a=>{let _0x1013b2=!0x1;for(const {name:_0x50bff2,data:_0x4a17a4}of _0x3023ad['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1ec790,id:_0x2b4fc6}=ft(_0x50bff2);let _0x1adce1=_0x4a17a4['newRange'];if('comment'!==_0x1ec790||!_0x1adce1)continue;const _0x50bce8='$graveyard'===_0x1adce1['root']['rootName'];_0x50bce8||(_0x1adce1=ht(_0x1adce1,_0x3023ad['model']),!_0x1adce1||_0x1adce1['isCollapsed']||!_0x4a17a4['newRange']||_0x1adce1['isEqual'](_0x4a17a4['newRange']))?_0x3023ad['model']['hasContent'](_0x1adce1)&&!_0x50bce8?this['isThreadsLoadingPaused']?_0x5ee304['add'](_0x50bff2):this['_handleThreadMarker'](_0x50bff2,_0x2b4fc6):(_0x344832['add'](_0x50bff2),_0x5ee304['delete'](_0x50bff2),_0x184c2a['removeMarker'](_0x50bff2),_0x1013b2=!0x0):(_0x184c2a['updateMarker'](_0x50bff2,{'range':_0x1adce1}),_0x1013b2=!0x0);}return _0x1013b2;}),this['on']('change:isThreadsLoadingPaused',(_0x521b51,_0x20bcad,_0x221523)=>{if(!_0x221523&&_0x5ee304['size'])for(const _0x6bad38 of _0x5ee304){const {id:_0x46ba05}=ft(_0x6bad38);_0x5ee304['delete'](_0x6bad38),_0x3023ad['model']['markers']['get'](_0x6bad38)&&this['_handleThreadMarker'](_0x6bad38,_0x46ba05);}}),this['listenTo'](_0x3023ad['model']['document'],'change',()=>{for(const {name:_0x51cdaf,data:{newRange:_0x2c6a9e}}of _0x3023ad['model']['document']['differ']['getChangedMarkers']()){const {group:_0x469ab6,id:_0x307797}=ft(_0x51cdaf);if('comment'!==_0x469ab6)continue;const _0x65a16d=_0x504f5['getCommentThread'](_0x307797),_0x114139=this['hasMarkerForId'](_0x307797);_0x65a16d&&(!_0x65a16d['_hasTargetInContent']&&_0x2c6a9e&&_0x3023ad['editing']['view']['once']('render',()=>{const _0xcc4524=_0x3023ad['plugins']['get'](y),_0x55aa6a=_0x504f5['_threadToController']['get'](_0x65a16d)['view'];_0xcc4524['getByInnerView'](_0x55aa6a)['refreshVisibility']();},{'priority':'low'}),_0x65a16d['_hasTargetInContent']=_0x114139||!!_0x2c6a9e),_0x2c6a9e||(_0x344832['add'](_0x51cdaf),_0x5ee304['delete'](_0x51cdaf));}for(const _0x36d888 of _0x344832){const {id:_0x5caaaa}=ft(_0x36d888),_0xb4378a=_0x504f5['getCommentThread'](_0x5caaaa);if(_0x5ee304['delete'](_0x36d888),!_0xb4378a)continue;const _0x38a2b3=this['hasMarkerForId'](_0x5caaaa);_0x38a2b3||_0xb4378a['isSubmitted']?_0x38a2b3||_0xb4378a['unlinkedAt']||_0xb4378a['setUnlinkedAt'](new Date()):_0xb4378a['remove']();}_0x344832['clear']();});}['_handleInitialThreads'](_0xbe5d72){_0xbe5d72['forEach'](_0x369a5a=>{_0x369a5a['unlinkedAt']&&this['_attachArchivedThread'](_0x369a5a['id']);});}['_getTargetForId'](_0x3e5ca9){const _0x104e61=this['editor'],_0x162ffa=this['getAllMarkersForId'](_0x3e5ca9);return et(_0x104e61['editing'],_0x162ffa);}['_getTextContext'](_0x577a42){const _0x5d0519=this['getAllMarkersForId'](_0x577a42);let _0xf8598='',_0x3a9b0b=!0x1;for(const _0x389868 of _0x5d0519){const _0x111a8e=_0x389868['getRange']();for(const _0x23eb58 of Array['from'](_0x111a8e['getItems']()))_0x23eb58['is']('$textProxy')?(_0xf8598&&_0x3a9b0b&&(_0xf8598+='\x20',_0x3a9b0b=!0x1),_0xf8598+=_0x23eb58['data']):_0x3a9b0b=!0x0;_0x3a9b0b=!0x0;}return _0xf8598['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x70f03f,_0x47452f){const _0x563263=this['editor'],_0x5a20f4=_0x563263['plugins']['get'](o);let _0x3cd12a=_0x5a20f4['getCommentThread'](_0x47452f);const _0x834882=_0x563263['config']['get']('collaboration.channelId'),_0x3bfbdd=_0x563263['plugins']['get'](b);if(_0x3cd12a&&(_0x3cd12a['unlinkedAt']&&_0x3cd12a['setUnlinkedAt'](null),_0x3cd12a['isAttached']))return _0x3cd12a;return!this['getAllMarkersForId'](_0x47452f)[0x0]['managedUsingOperations']?_0x563263['editing']['view']['once']('render',()=>{if(_0x5a20f4['getCommentThread'](_0x47452f))return;const _0xf2c9a2=_0x563263['plugins']['get'](y);_0x3cd12a=_0x5a20f4['openNewCommentThread']({'channelId':_0x834882,'threadId':_0x47452f,'target':()=>this['_getTargetForId'](_0x47452f),'context':{'type':'text','value':this['_getTextContext'](_0x47452f)}});const _0x5e4098=_0x5a20f4['_threadToController']['get'](_0x3cd12a)['view'],_0x8e606e=_0xf2c9a2['getByInnerView'](_0x5e4098);_0x8e606e&&_0x3bfbdd['registerAnnotation'](_0x8e606e);},{'priority':'low'}):_0x5a20f4['fetchCommentThread']({'channelId':_0x834882,'threadId':_0x47452f})['then'](_0x4ee4f1=>{if('destroyed'!==_0x563263['state']){if(_0x3cd12a=_0x4ee4f1,_0x3cd12a&&!_0x3cd12a['isAttached']){const _0x113ff5=_0x3cd12a['attachTo'](()=>this['_getTargetForId'](_0x47452f));_0x3bfbdd['registerAnnotation'](_0x113ff5),_0x3cd12a['isResolved']&&this['_reconvertMarkers'](_0x47452f);}else{if(!_0x3cd12a){const _0x102a68=this['getAllMarkersForId'](_0x47452f);_0x563263['model']['change'](_0x285e64=>{for(const _0x32fe90 of _0x102a68)_0x285e64['removeMarker'](_0x32fe90);});}}}}),_0x3cd12a;}['_handleThreadMarker'](_0x1b383d,_0x369c11){const _0x54b355=this['_attachMarkerToThread'](_0x1b383d,_0x369c11);_0x54b355&&!_0x54b355['context']&&_0x54b355['setContext']({'type':'text','value':this['_getTextContext'](_0x369c11)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4e83f1=this['editor'];rt(_0x4e83f1['model'],({left:_0x4e7bbb,entered:_0x492303})=>{for(const _0x918f1d of _0x4e7bbb)if(mt(_0x918f1d)){_0x4e83f1['ui']['ariaLiveAnnouncer']['announce'](N(_0x4e83f1['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3157ef of _0x492303)if(mt(_0x3157ef)){_0x4e83f1['ui']['ariaLiveAnnouncer']['announce'](N(_0x4e83f1['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x3fce73)));break;}});}}function dt(_0x5be557,_0x38f519){return _0x38f519?_0x5be557+':'+_0x38f519:_0x5be557;}function ht(_0x42928f,_0x7bfefe){const _0x1b5b73=_0x7bfefe['schema'],_0x3e8aae=_0x7bfefe['createRange'](_0x42928f['start']);for(const _0x5ad829 of _0x42928f['getWalker']()){const {type:_0x5df8d0,item:_0xfa3c81,nextPosition:_0x29a8cc}=_0x5ad829;if('text'===_0x5df8d0||_0x1b5b73['isObject'](_0xfa3c81)){const _0x336164=_0x7bfefe['createPositionBefore'](_0xfa3c81);_0x3e8aae['isCollapsed']&&(_0x3e8aae['start']=_0x336164),_0x3e8aae['end']=_0x29a8cc;}}return _0x3e8aae;}function mt(_0x3193b1){return'comment'===ft(_0x3193b1['name'])['group'];}class s extends _0x35ad89{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x40f579=this['editor'],_0x56894a=_0x40f579['plugins']['get'](o),_0x4ae306=_0x40f579['plugins']['get'](r),_0x4e4d43=_0x40f579['plugins']['get'](y),_0x2f5538=_0x40f579['plugins']['get'](b);_0x40f579['ui']['componentFactory']['add']('comment',()=>{const _0x480319=this['_createUIButton'](_0x1c6a8c);return _0x480319['tooltip']=!0x0,_0x480319;}),_0x40f579['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x15e8b9)),_0x2f5538['addSourceCollector'](()=>{const _0x1a34f5=[];for(const [_0x55be38,_0x16c776]of _0x56894a['_threadToController']){const _0x3d86e9=_0x4ae306['getAllMarkersForId'](_0x55be38['id']),_0x113e8c=_0x3d86e9['map'](_0x4c7211=>_0x4c7211['getRange']());_0x3d86e9['length']>0x0&&_0x1a34f5['push']([_0x16c776['view'],_0x113e8c]);}return _0x1a34f5;}),this['listenTo'](_0x4e4d43,'change:activeAnnotations',(_0x9d1760,_0x5d671a,_0x184924)=>{const _0x50b472=Array['from'](_0x184924)['map'](_0x4fcbc8=>_0x4fcbc8['innerView'])['find'](_0x53ff9=>_0x56894a['_viewToController']['has'](_0x53ff9));if(!_0x50b472)return void(_0x4ae306['activeMarker']=null);const _0x30269b=_0x56894a['_viewToController']['get'](_0x50b472)['model']['id'],_0x467693='comment:'+_0x30269b;_0x30269b&&_0x4ae306['hasMarkerForId'](_0x30269b)?_0x4ae306['activeMarker']=_0x467693:_0x4ae306['activeMarker']&&(_0x4ae306['activeMarker']=null);}),this['listenTo'](_0x56894a,'removeCommentThread',(_0x4b494a,{threadId:_0x2ff32e,isFromAdapter:_0x4416d4})=>{!_0x4416d4&&_0x40f579['ui']['focusTracker']['isFocused']&&_0x4ae306['hasMarkerForId'](_0x2ff32e)&&_0x40f579['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x56894a,'addComment',(_0x258884,{threadId:_0x4ce458,isFromAdapter:_0x5c2032})=>{if(_0x5c2032||!_0x4ae306['hasMarkerForId'](_0x4ce458)||!_0x56894a['hasCommentThread'](_0x4ce458))return;0x1===_0x56894a['getCommentThread'](_0x4ce458)['length']&&(_0x40f579['editing']['view']['focus'](),_0x258884['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x423955=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x114247;for(const _0x353d1b in _0x423955){const _0x2b4b70=_0x353d1b,_0x4b37b2=_0x423955[_0x2b4b70];if('commentsLicenseKeyValid'==_0x4b37b2||'commentsLicenseKeyInvalid'==_0x4b37b2||'commentsLicenseKeyExpired'==_0x4b37b2||'commentsLicenseKeyDomainLimit'==_0x4b37b2||'commentsLicenseKeyNotAllowed'==_0x4b37b2||'commentsLicenseKeyEvaluationLimit'==_0x4b37b2||'commentsLicenseKeyTrialLimit'==_0x4b37b2||'commentsLicenseKeyUsageLimit'==_0x4b37b2){delete _0x423955[_0x2b4b70],_0x114247=_0x4b37b2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x114247&&_0x423955['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x114247&&_0x423955['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x114247&&_0x423955['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x114247&&_0x423955['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x114247&&_0x423955['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x114247&&_0x423955['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x114247&&_0x423955['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x28658e){const _0x58905a=this['editor'],_0x30b417=new _0x28658e(_0x58905a['locale']),_0x3b8204=_0x58905a['commands']['get']('addCommentThread');return _0x30b417['set']({'label':N(_0x58905a['locale'],'Comment'),'icon':_0x46655b}),_0x30b417['bind']('isEnabled')['to'](_0x3b8204,'hasContent'),this['listenTo'](_0x30b417,'execute',()=>{_0x3b8204['execute']();}),_0x30b417;}}class i extends _0x35ad89{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5c6b0b){super(_0x5c6b0b),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5ecac9,_0x48112e,_0x1bfd85)=>{_0x1bfd85?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x2bcf79,_0x4348b2]of this['editor']['commands'])_0x4348b2['affectsData']&&'addCommentThread'!==_0x2bcf79&&_0x4348b2['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 _0x411558=this['editor']['editing']['view']['document'];this['listenTo'](_0x411558,'cut',_0x458c54=>_0x458c54['stop'](),{'priority':'highest'}),this['listenTo'](_0x411558,'clipboardInput',_0x16b803=>_0x16b803['stop'](),{'priority':'highest'}),this['listenTo'](_0x411558,'delete',_0xab8d3=>_0xab8d3['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x26c4b5,_0x8c546e]of this['editor']['commands'])_0x8c546e['affectsData']&&'addCommentThread'!==_0x26c4b5&&_0x8c546e['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 j extends _0x29eafd{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b219b){super(_0x3b219b),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x5a7446=this['context']['plugins']['get'](y);this['listenTo'](_0x5a7446,'_activateAnnotation',(_0x528a02,_0x1ca742)=>{for(const _0x2c7026 of this['activeUIs']){const _0x3a8074=this['_uis']['get'](_0x2c7026);(0x0,this['uisData']['get'](_0x2c7026)['filter'])(_0x1ca742)&&_0x3a8074['setActiveAnnotation'](_0x1ca742);}}),this['listenTo'](_0x5a7446,'_deactivateAllAnnotations',()=>{for(const _0x348389 of this['activeUIs']){this['_uis']['get'](_0x348389)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5a7446['_visibleAnnotations'],'add',(_0x147d1f,_0x2d078e)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2d078e);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x1c4a3d){return this['activeUIs']['has'](_0x1c4a3d);}['activate'](_0xc7efe4,_0x5c1ace=this['defaultFilter']){const _0x20bc55=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0xc7efe4))throw new _0x439571('annotationsuis-missing-ui',this,{'uiName':_0xc7efe4});this['isActive'](_0xc7efe4)&&this['deactivate'](_0xc7efe4),this['activeUIs']['add'](_0xc7efe4);const _0x11a16f=new S();v({'source':_0x20bc55['_visibleAnnotations'],'target':_0x11a16f,'filter':_0x5c1ace}),this['uisData']['set'](_0xc7efe4,{'collection':_0x11a16f,'filter':_0x5c1ace});const _0x2f81a9=this['_uis']['get'](_0xc7efe4);_0x2f81a9['attach'](_0x11a16f),this['listenTo'](_0x2f81a9,'change:activeAnnotation',(_0x41d91d,_0x31cda1,_0x85dff9,_0x11678c)=>{_0x11678c&&_0x20bc55['_removeActiveAnnotation'](_0x11678c),_0x85dff9&&_0x20bc55['_addActiveAnnotation'](_0x85dff9);});}['deactivate'](_0x1bd330){if(this['activeUIs']['delete'](_0x1bd330),!this['_uis']['has'](_0x1bd330))throw new _0x439571('annotationsuis-missing-ui',this,{'uiName':_0x1bd330});const _0x555e02=this['_uis']['get'](_0x1bd330);_0x555e02['detach'](),this['stopListening'](_0x555e02),this['uisData']['get'](_0x1bd330)['collection']['destroy'](),this['uisData']['delete'](_0x1bd330);}['switchTo'](_0x24c526){if(!this['_uis']['has'](_0x24c526))throw new _0x439571('annotationsuis-missing-ui',this,{'uiName':_0x24c526});const _0x5b930a=this['context']['plugins']['get'](y),_0x1c74d7=Array['from'](_0x5b930a['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x24c526);const _0xa97d9=this['_uis']['get'](_0x24c526);_0xa97d9['setActiveAnnotation'](_0x1c74d7),_0xa97d9['_setSelectedAnnotations']&&_0x1c74d7&&_0xa97d9['_setSelectedAnnotations']([_0x1c74d7]);}['deactivateAll'](){for(const _0x5cae10 of this['activeUIs'])this['deactivate'](_0x5cae10);}['register'](_0x3a8c77,_0x494972){if(this['_uis']['has'](_0x3a8c77))throw new _0x439571('annotationsuis-register-already-registered');if('function'!=typeof _0x494972['attach']||'function'!=typeof _0x494972['detach']||'function'!=typeof _0x494972['setActiveAnnotation'])throw new _0x439571('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3a8c77,_0x494972);}['refilterAnnotations'](){const _0x3149e3=this['context']['plugins']['get'](y)['collection'],_0x2950a8=new Map(),_0x2f4503=Array['from'](this['activeUIs']);for(const _0x25ef02 of this['activeUIs']){const _0x253376=this['uisData']['get'](_0x25ef02)['collection'];for(const _0x1f2f06 of _0x253376)_0x2950a8['set'](_0x1f2f06,_0x25ef02);}for(const _0x2af9ec of _0x3149e3){const _0x53e4fc=_0x2950a8['get'](_0x2af9ec);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2af9ec);const _0x11e1b2=_0x2f4503['find'](_0x9f3491=>this['uisData']['get'](_0x9f3491)['filter'](_0x2af9ec));_0x53e4fc!==_0x11e1b2&&(_0x53e4fc&&this['uisData']['get'](_0x53e4fc)['collection']['remove'](_0x2af9ec),_0x11e1b2&&this['uisData']['get'](_0x11e1b2)['collection']['add'](_0x2af9ec));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x33c47b){const _0x63137a=[];for(const _0x2dc421 of this['activeUIs']){(0x0,this['uisData']['get'](_0x2dc421)['filter'])(_0x33c47b)&&_0x63137a['push'](_0x2dc421);}if(_0x63137a['length']>0x1)throw new _0x439571('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x63137a,'annotationType':_0x33c47b['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x3b57dd){super(_0x3b57dd);const _0x3a96b6=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 _0x2dd762(),this['focusCycler']=new _0x5e0820({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x3a96b6['to']('class')],'style':{'minHeight':_0x3a96b6['to']('minHeight',_0x5e1c5f=>'number'==typeof _0x5e1c5f?_i(_0x5e1c5f+0xa):null)},'dir':_0x3b57dd['uiLanguageDirection'],'role':'application','aria-label':N(_0x3b57dd,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x3b57dd,'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',_0x2acefc=>{this['_updateItemPositionInFocusables'](_0x2acefc['source']);}),this['list']['forEach'](_0x3e398a=>{this['focusTracker']['add'](_0x3e398a['element']),this['_updateItemPositionInFocusables'](_0x3e398a);}),this['list']['on']('change',(_0x37722e,_0x5e8f17)=>{for(const _0x50c8eb of _0x5e8f17['removed'])this['focusTracker']['remove'](_0x50c8eb['element']),this['focusables']['remove'](_0x50c8eb);for(const _0x1f4d5f of _0x5e8f17['added'])this['focusTracker']['add'](_0x1f4d5f['element']),this['_updateItemPositionInFocusables'](_0x1f4d5f);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x37058d){const _0x35ea82=this['focusables']['getIndex'](_0x37058d);let _0x41ab46,_0xd86ce;for(const _0x117907 of this['focusables'])if(_0x37058d['top']<_0x117907['top']){_0x41ab46=_0x117907;break;}if(_0xd86ce=_0x41ab46?this['focusables']['getIndex'](_0x41ab46):this['focusables']['length'],-0x1!==_0x35ea82){if(_0x35ea82===_0xd86ce-0x1)return;this['focusables']['remove'](_0x37058d),_0xd86ce=_0x41ab46?this['focusables']['getIndex'](_0x41ab46):this['focusables']['length'];}this['focusables']['add'](_0x37058d,_0xd86ce);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x36eb50){super(_0x36eb50),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2b8405,_0x1c67ce)=>_0x2b8405+_0x1c67ce),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x379214=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x379214['to']('isAnimationDisabled',_0x2a3128=>_0x2a3128?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x379214['to']('top',_0x48faf4=>Ot(_0x48faf4))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x4224c3=this['element']['clientHeight'];_0x4224c3&&(this['height']=_0x4224c3);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x29eafd{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x209790){super(_0x209790),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 _0x706875=this['context']['config']['get']('sidebar.container');_0x706875&&this['setContainer'](_0x706875);}['setContainer'](_0x569454){if(!g(_0x569454))throw new _0x439571('sidebar-setcontainer-invalid-element');this['container']=_0x569454;}['_attachToContainer']({viewClass:_0x3656e9='',spaceBetweenItems:_0x4ecfe9=0x19}={}){if(!g(this['container']))throw new _0x439571('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3656e9,this['_spaceBetweenItems']=_0x4ecfe9;}['rearrange']({removedAnnotation:_0x35b1b0,previousAnnotation:_0x49645e,nextAnnotation:_0xf0620d}){const _0x215658=this['getSidebarItemView'](_0x35b1b0);this['view']['list']['remove'](_0x215658),this['_destroySidebarItemView'](_0x35b1b0),_0x49645e&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x49645e)),_0xf0620d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xf0620d)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2f0580,activatedAnnotation:_0x4d07c9,disableAnimationOnActivatedAnnotation:_0x48db96}){if(this['_activeAnnotation']=_0x4d07c9,_0x2f0580){_0x2f0580['isActive']=!0x1;const _0x1e0a1c=this['getSidebarItemView'](_0x2f0580);_0x1e0a1c&&_0x48db96&&(_0x1e0a1c['isAnimationDisabled']=!0x1);}if(_0x4d07c9){const _0x340363=this['getSidebarItemView'](_0x4d07c9);_0x340363&&(_0x4d07c9['isActive']=!0x0,_0x48db96&&(_0x340363['isAnimationDisabled']=!0x0,_0x340363['top']+=0x1),this['_alignToTargetRect'](_0x340363));}}['_detachFromContainer'](_0x4f6aaf){if(this['view']['element']['remove'](),_0x4f6aaf){for(const _0x49f6b0 of _0x4f6aaf)this['_destroySidebarItemView'](_0x49f6b0);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x72e59b,_0x3710b3){_0x3710b3||(_0x3710b3=_0x72e59b['view']);const _0x47bcef=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x47bcef,_0x72e59b),this['_annotationToSidebarItemView']['set'](_0x72e59b,_0x47bcef),_0x47bcef['content']['add'](_0x3710b3),this['listenTo'](_0x72e59b['view'],'change:targetRect',(_0x37db01,_0x48af3b,_0x3d2545)=>{const _0x5609b0=this['_getTargetTop'](_0x72e59b,_0x3d2545);_0x47bcef['_targetTop']!=_0x5609b0&&(_0x47bcef['_targetTop']=_0x5609b0,this['_setItemTop'](_0x47bcef,_0x5609b0));}),this['listenTo'](_0x47bcef,'change:top',()=>{this['_recalculate'](_0x47bcef,'top');}),this['listenTo'](_0x47bcef,'change:bottom',()=>{this['_recalculate'](_0x47bcef,'bottom');}),this['_alignToTargetRect'](_0x47bcef);const _0x164045=this['_getItemBefore'](_0x47bcef);if(_0x164045)this['_alignAfterItem'](_0x164045,_0x47bcef)||this['_alignToTargetRect'](_0x47bcef);else this['_alignToTargetRect'](_0x47bcef);return this['_updateLastItem'](),this['view']['list']['add'](_0x47bcef),_0x47bcef;}['_alignForTopChange'](_0x2c29ee){if(!_0x2c29ee['content']['length'])return;const _0x37068d=this['_getItemBefore'](_0x2c29ee);if(!_0x37068d)return;const _0x6ee8ee=this['_sidebarItemViewToAnnotation']['get'](_0x37068d),_0x1003d8=this['_activeAnnotation'];_0x1003d8&&_0x1003d8===_0x6ee8ee?this['_alignAfterItem'](_0x37068d,_0x2c29ee):this['_alignBeforeItem'](_0x2c29ee,_0x37068d);}['_alignForBottomChange'](_0x488364){if(!_0x488364['content']['length'])return;const _0x1b8684=this['_getItemAfter'](_0x488364);if(!_0x1b8684)return;const _0x22c3b1=this['_sidebarItemViewToAnnotation']['get'](_0x1b8684),_0x29b4f0=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x42995a=this['_activeAnnotation'];_0x42995a&&_0x42995a===_0x22c3b1&&_0x29b4f0?(this['_alignBeforeItem'](_0x1b8684,_0x488364),this['_alignAfterItem'](_0x488364,_0x1b8684)):_0x42995a&&_0x42995a===_0x22c3b1?this['_alignBeforeItem'](_0x1b8684,_0x488364):this['_alignAfterItem'](_0x488364,_0x1b8684);}['_recalculate'](_0x1f8105,_0xf1c98e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4e59b3,changedProp:_0x4b0e29}of this['_recalculateBuffer'])'top'===_0x4b0e29?this['_alignForTopChange'](_0x4e59b3):this['_alignForBottomChange'](_0x4e59b3);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1f8105,'changedProp':_0xf1c98e});}['getSidebarItemView'](_0x4f1e79){return this['_annotationToSidebarItemView']['get'](_0x4f1e79);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4cbcc1){const _0x3b9d67=this['getSidebarItemView'](_0x4cbcc1);this['stopListening'](_0x3b9d67),this['stopListening'](_0x4cbcc1['view']),_0x3b9d67['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4cbcc1),this['_sidebarItemViewToAnnotation']['delete'](_0x3b9d67);}['_createSidebarView'](){const _0x9d3461=new H(this['context']['locale']);return _0x9d3461['render'](),this['on']('change:_lastItem',(_0x3f8e4d,_0x106812,_0x25c9de,_0x50ea7b)=>{_0x50ea7b&&_0x9d3461['unbind']('minHeight'),_0x25c9de?_0x9d3461['bind']('minHeight')['to'](_0x25c9de,'bottom'):_0x9d3461['minHeight']=null;}),_0x9d3461;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3c9445){const _0x3055cf=this['_sidebarItemViewToAnnotation']['get'](_0x3c9445),_0x56d99c=_0x3055cf&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3055cf)-0x1);return _0x56d99c&&this['getSidebarItemView'](_0x56d99c)||null;}['_getItemAfter'](_0x4148ea){const _0x4061ee=this['_sidebarItemViewToAnnotation']['get'](_0x4148ea),_0x590044=_0x4061ee&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4061ee)+0x1);return _0x590044&&this['getSidebarItemView'](_0x590044)||null;}['_alignBeforeItem'](_0x1f734a,_0x38a5fd){_0x1f734a['updateHeight']();const _0x56b270=G(_0x38a5fd['bottom']+this['_spaceBetweenItems'],_0x1f734a['top']);return!!_0x56b270&&(this['_setItemTop'](_0x38a5fd,_0x38a5fd['top']-_0x56b270),!0x0);}['_alignAfterItem'](_0x16b9b7,_0x1ca8fe){_0x16b9b7['updateHeight']();const _0x3c892a=G(_0x16b9b7['bottom']+this['_spaceBetweenItems'],_0x1ca8fe['top']);return!!_0x3c892a&&(this['_setItemTop'](_0x1ca8fe,_0x1ca8fe['top']+_0x3c892a,!0x1),!0x0);}['_alignToTargetRect'](_0x3f97dc){const _0x305853=this['_sidebarItemViewToAnnotation']['get'](_0x3f97dc);if(!_0x305853||!_0x305853['target']||!_0x305853['targetRect'])return;const _0xd67ea=this['_getTargetTop'](_0x305853,_0x305853['targetRect']);this['_setItemTop'](_0x3f97dc,_0xd67ea);}['_getTargetTop'](_0x268285,_0x358632){if(null===_0x358632)return 0x0;if(_0x268285['target']instanceof _0x5f3074)return _0x358632['top'];{const _0x32363c=new _0x5f3074(this['view']['element'])['top'];return _0x358632['top']-_0x32363c;}}['_setItemTop'](_0x3a9514,_0x5492ab,_0x311d7b=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x311d7b&&(_0x5492ab=Math['max'](_0x5492ab,this['_getMaxAvailableTop'](_0x3a9514))),_0x3a9514['top']=_0x5492ab;}['_getMaxAvailableTop'](_0x2a640b){let _0x68aa97=this['_getItemBefore'](_0x2a640b),_0x413ac4=0x0;for(;_0x68aa97;)_0x68aa97['updateHeight'](),_0x413ac4+=this['_spaceBetweenItems']+_0x68aa97['height'],_0x68aa97=this['_getItemBefore'](_0x68aa97);return _0x413ac4;}}function G(_0x223e4d,_0x574baf){return Math['max'](_0x223e4d-_0x574baf,0x0);}function g(_0x1a67fc){return null!==_0x1a67fc&&'object'==typeof _0x1a67fc&&0x1===_0x1a67fc['nodeType'];}class e extends _0x29eafd{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x103eba){super(_0x103eba),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x5803d7(),this['_refreshPositioningDebounced']=_0x25198c(()=>{_0x103eba['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x9cf632=this['context']['plugins']['get'](j),_0x1e8b1f=this['context']['plugins']['get'](z);_0x9cf632['register']('wideSidebar',this),_0x1e8b1f['container']&&_0x9cf632['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x27e8e1){if(_0x27e8e1===this['activeAnnotation'])return;const _0x54191d=this['context']['plugins']['get'](z);_0x54191d['_activeAnnotation']=_0x27e8e1;const _0x33f99a=this['activeAnnotation'];_0x54191d['refresh']({'blurredAnnotation':_0x33f99a,'activatedAnnotation':_0x27e8e1}),this['activeAnnotation']=_0x27e8e1;}['attach'](_0x30788a){this['annotations']=_0x30788a;const _0x383048=this['context']['plugins']['get'](z);if(_0x383048['_annotations']=_0x30788a,this['isAttached'])throw new _0x439571('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x383048,'set:container',()=>{this['detach'](),this['listenTo'](_0x383048,'change:container',_0xce1006=>{_0xce1006['off'](),this['attach'](_0x30788a);});}),_0x383048['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x19b5c3=_0x22117f=>{_0x22117f['updateTargetRect'](),_0x383048['addAnnotation'](_0x22117f);};for(const _0x2d5ce2 of _0x30788a)_0x19b5c3(_0x2d5ce2);this['listenTo'](_0x30788a,'add',(_0x41a099,_0x259fd7)=>{_0x19b5c3(_0x259fd7);}),this['listenTo'](_0x30788a,'remove',(_0x3c6c5a,_0x3126c2,_0x15fe96)=>{_0x383048['rearrange']({'removedAnnotation':_0x3126c2,'previousAnnotation':_0x30788a['get'](_0x15fe96-0x1),'nextAnnotation':_0x30788a['get'](_0x15fe96+0x1)}),_0x3126c2===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x30788a,'focus',(_0x32a18e,_0x2ca371)=>{this['setActiveAnnotation'](_0x2ca371);}),this['listenTo'](_0x30788a,'blur',()=>{this['setActiveAnnotation'](null);});const _0x51f260=this['context']instanceof _0x12ade2?this['context']['editors']:new _0x5803d7([this['context']]);for(const _0x377a07 of _0x51f260)this['_integrateWithEditorAnnotations'](_0x377a07);this['listenTo'](_0x51f260,'add',(_0x43824b,_0x55e1e2)=>{this['listenTo'](_0x55e1e2,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x55e1e2);});}),this['listenTo'](_0x51f260,'remove',(_0x13ebeb,_0x116483)=>{_0x116483['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x116483['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x439571('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4e4b7c=this['context']['plugins']['get'](z);_0x4e4b7c['_detachFromContainer'](this['annotations']),this['stopListening'](_0x4e4b7c),this['stopListening'](this['annotations']),this['context']instanceof _0x12ade2&&this['stopListening'](this['context']['editors']);for(const _0x41fd1f of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x41fd1f);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x449e41){if(!_0x449e41['plugins']['has']('EditorAnnotations'))return;const _0x975069=_0x449e41['plugins']['get']('EditorAnnotations'),_0x1acd6c=()=>{const _0x265090=_0x975069['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x265090[0x0]||null);};this['listenTo'](_0x975069,'refresh',_0x1acd6c),this['listenTo'](_0x975069,'blur',(_0x189ac7,{isAnnotationTracked:_0x4c0006})=>{this['activeAnnotation']&&_0x4c0006(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x975069,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x5ba9ae=>{_0x975069['hasDomSelection']()&&(_0x1acd6c(),_0x5ba9ae['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x975069);}['_destroyEditorAnnotationsIntegration'](_0x5ca8d0){this['stopListening'](_0x5ca8d0),this['_editorAnnotations']['remove'](_0x5ca8d0);}}class C extends _0x1c6a8c{['counterView'];constructor(_0x5d2250){super(_0x5d2250);const _0x35f5cb=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4be7f2,_0x5884b3)=>_0x4be7f2?'...':_0x5884b3['toString']()),this['set']('annotationType',''),this['icon']=_0x46655b,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x35f5cb['to']('annotationType',_0x322d3f=>'ck-annotation-counter__badge--'+_0x322d3f),_0x35f5cb['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x35f5cb['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x29eafd{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46e179){super(_0x46e179),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0xd494b5())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5803d7(),this['_refreshPositioningDebounced']=_0x25198c(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x2f3472(this['context']['locale']),this['balloonPanelView']=new _0x22deda(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x58e1c3){this['annotations']=_0x58e1c3;const _0x2ecb24=this['context']['plugins']['get'](z),_0x37be06=this['balloonPanelView'];if(_0x2ecb24['_annotations']=_0x58e1c3,this['isAttached'])throw new _0x439571('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2ecb24,'set:container',()=>{this['detach'](),this['listenTo'](_0x2ecb24,'change:container',_0xb76d16=>{_0xb76d16['off'](),this['attach'](_0x58e1c3);});}),_0x2ecb24['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x457a1d=_0x2a32fe=>{const _0x2394dd=new C(this['context']['locale']);_0x2ecb24['addAnnotation'](_0x2a32fe,_0x2394dd),this['_annotationToNarrowView']['set'](_0x2a32fe,_0x2394dd),_0x2394dd['bind']('isDirty','annotationType','number')['to'](_0x2a32fe['view'],'isDirty','type','length'),_0x2394dd['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x37be06['content']['first']!==_0x2a32fe['view']?(this['_showBalloon'](_0x2a32fe),_0x2a32fe['view']['element']['focus'](),this['setActiveAnnotation'](_0x2a32fe)):this['setActiveAnnotation'](null);});};for(const _0x1e5830 of _0x58e1c3)_0x457a1d(_0x1e5830);this['listenTo'](_0x58e1c3,'add',(_0x1f6897,_0xd50ab0)=>{_0x457a1d(_0xd50ab0);}),this['listenTo'](_0x58e1c3,'remove',(_0xfd0dc7,_0x21baef,_0x56dc81)=>{this['_annotationToNarrowView']['get'](_0x21baef)['destroy'](),this['_annotationToNarrowView']['delete'](_0x21baef),_0x2ecb24['rearrange']({'removedAnnotation':_0x21baef,'previousAnnotation':_0x58e1c3['get'](_0x56dc81-0x1),'nextAnnotation':_0x58e1c3['get'](_0x56dc81+0x1)}),_0x21baef===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x58e1c3,'focus',(_0x310cdf,_0x40d878)=>{this['setActiveAnnotation'](_0x40d878);}),this['listenTo'](_0x58e1c3,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x440a08,_0x56ac70)=>{_0x56ac70['keyCode']===_0x46d67f['esc']&&_0x37be06['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x37be06['content']['first']),this['_hideBalloon'](),_0x56ac70['stopPropagation'](),_0x56ac70['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0xd17b84,_0x53a544)=>{const _0x553381=_0x53a544['target'];_0x37be06['isVisible']&&_0x37be06['element']['contains'](_0x553381)||_0x2ecb24['view']['element']['contains'](_0x553381)||_0xd17b84['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x3e8f94=>_0x3e8f94['contains'](_0x553381))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xaf89bb=this['context']instanceof _0x12ade2?this['context']['editors']:new _0x5803d7([this['context']]);for(const _0x3254f4 of _0xaf89bb)this['_integrateWithEditorAnnotations'](_0x3254f4);this['listenTo'](_0xaf89bb,'add',(_0x3f1b7a,_0x12ebf8)=>{this['listenTo'](_0x12ebf8,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x12ebf8);});}),this['listenTo'](_0xaf89bb,'remove',(_0x54649c,_0x2b304e)=>{_0x2b304e['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2b304e['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x529886){if(_0x529886===this['activeAnnotation'])return;const _0x560d1d=this['context']['plugins']['get'](z);if(_0x560d1d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x529886,'disableAnimationOnActivatedAnnotation':!0x0}),_0x529886)_0x560d1d['getSidebarItemView'](_0x529886)?this['_showBalloon'](_0x529886):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x529886;}['detach'](){if(!this['isAttached'])throw new _0x439571('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x41962b=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x16b373=>_0x16b373['destroy']()),this['_annotationToNarrowView']['clear'](),_0x41962b['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x12ade2&&this['stopListening'](this['context']['editors']);for(const _0x492e42 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x492e42);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'](_0x5eb2a6){if(!_0x5eb2a6['plugins']['has']('EditorAnnotations'))return;const _0x3bb75a=_0x5eb2a6['plugins']['get']('EditorAnnotations'),_0x34e99a=this['context']['plugins']['get'](z),_0x44806f=this['annotations'],_0x54434b=this['balloonPanelView'],_0x3bff31=()=>{const _0x427e52=_0x3bb75a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x427e52),this['setActiveAnnotation'](_0x427e52[0x0]||null);};this['listenTo'](_0x3bb75a,'refresh',_0x3bff31),this['listenTo'](_0x3bb75a,'blur',(_0x2dbed1,{isAnnotationTracked:_0x42ddbd})=>{this['activeAnnotation']&&_0x42ddbd(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3bb75a,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x44806f,'blur',_0x574506=>{_0x3bb75a['hasDomSelection']()&&_0x574506['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x2ac2fb,_0x2368e3)=>{const _0x32992c=_0x2368e3['target'];_0x54434b['isVisible']&&_0x54434b['element']['contains'](_0x32992c)||_0x34e99a['view']['element']['contains'](_0x32992c)||this['activeAnnotation']&&_0x3bb75a['hasDomSelection']()&&(_0x3bff31(),_0x2ac2fb['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3bb75a);}['_destroyEditorAnnotationsIntegration'](_0x103162){_0x103162&&(this['stopListening'](_0x103162),this['_editorAnnotations']['remove'](_0x103162));}['_setSelectedAnnotations'](_0x1ff766){for(const _0x2d2ff2 of this['_selectedAnnotations'])_0x1ff766['includes'](_0x2d2ff2)||this['_manuallyClosedAnnotationViews']['delete'](_0x2d2ff2['view']);this['_selectedAnnotations']=_0x1ff766;}['_refreshPositioning'](){const _0xffd07f=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0xffd07f['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2abe46){if(this['_manuallyClosedAnnotationViews']['has'](_0x2abe46['view']))return;const _0x2a3690=this['balloonPanelView']['content']['first'];_0x2a3690!==_0x2abe46['view']?(_0x2a3690&&this['_detachListeners'](_0x2a3690),this['_attachListeners'](_0x2abe46['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2abe46['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x612680=this['balloonPanelView']['content']['first'],_0x2c4378=_0x612680&&this['annotations']['getByView'](_0x612680);if(!_0x2c4378||!this['_annotationToNarrowView']['has'](_0x2c4378))return;const _0x57a98b=this['_annotationToNarrowView']['get'](_0x2c4378)['element'],_0x317c60=(function(){const _0xebba3c=_0x22deda['defaultPositions'];return[_0xebba3c['southArrowNorthEast'],_0xebba3c['northArrowSouthEast'],_0xebba3c['southArrowNorth'],_0xebba3c['northArrowSouth'],_0xebba3c['southArrowNorthWest'],_0xebba3c['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x57a98b,'positions':_0x317c60});}['_hideBalloon'](){const _0xf7586a=this['balloonPanelView'],_0x37a81d=_0xf7586a['content']['first'];_0x37a81d&&(this['_detachListeners'](_0x37a81d),_0xf7586a['unpin'](),_0xf7586a['content']['clear']());}['_attachListeners'](_0x48a896){this['listenTo'](_0x48a896,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x48a896,'Esc',(_0x534d0b,_0x521c45)=>{this['_manuallyClosedAnnotationViews']['add'](_0x48a896),this['_hideBalloon'](),_0x521c45();});}['_detachListeners'](_0x2ededa){this['stopListening'](_0x2ededa);}}class c extends _0x35ad89{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x5d0fa0,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x182cc5){super(_0x182cc5),_0x182cc5['editing']['view']['addObserver'](_0x17ef9d),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x182cc5['plugins']['get'](_0x5d0fa0),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x1d7dca=this['editor']['plugins']['get'](j);_0x1d7dca['context']===this['editor']&&(_0x1d7dca['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x4684de,_0x362143)=>{const _0x3d1d39=this['_balloon'];if(this['isAttached']&&_0x3d1d39['visibleView']){const _0x53ade5=this['annotations']['getByView'](_0x3d1d39['visibleView']);_0x53ade5&&this['_closeAnnotation'](_0x53ade5),_0x362143();}}));}['afterInit'](){const _0x5451d0=this['editor']['plugins']['get'](j);_0x5451d0['context']===this['editor']&&(_0x5451d0['hasActive']()||_0x5451d0['switchTo']('inline'));}['setActiveAnnotation'](_0xe4f81){_0xe4f81!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0xe4f81&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0xe4f81)&&this['_addAnnotationToBalloon'](_0xe4f81,!0x0),_0xe4f81['isActive']=!0x0),_0xe4f81||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0xe4f81);}['attach'](_0x48f481){this['annotations']=_0x48f481;const _0xe7e534=this['editor']['plugins']['get'](j),_0x31bc4f=this['_balloon'];if(this['isAttached'])throw new _0x439571('inlineannotations-attach-already-attached',this);if(_0xe7e534['context']!==this['editor'])throw new _0x439571('inlineannotations-not-allowed-with-context',this);const _0x43a4e3=this['editor']['plugins']['get'](b);this['listenTo'](_0x43a4e3,'refresh',()=>{const _0x53da39=_0x43a4e3['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x46e459,_0x2c0926;!this['_forceRefresh']&&(_0x46e459=_0x53da39,_0x2c0926=this['_selectedAnnotations'],_0x46e459['length']===_0x2c0926['length']&&_0x46e459['every'](_0x56a66f=>_0x2c0926['includes'](_0x56a66f)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x53da39),this['setActiveAnnotation'](_0x53da39[0x0]||null));}),this['listenTo'](_0x43a4e3,'blur',(_0xbc0437,{isAnnotationTracked:_0x30c44c})=>{this['activeAnnotation']&&_0x30c44c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x4fbe84,_0x46a396,_0x147b4c)=>{_0x147b4c||this['setActiveAnnotation'](null);}),this['listenTo'](_0x48f481,'remove',(_0x474782,_0x18bc0b)=>{this['_removeAnnotationFromBalloon'](_0x18bc0b),_0x18bc0b===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x31bc4f,'change:visibleView',(_0x48a7d2,_0x374064,_0x2d1dd6,_0x1cc17e)=>{_0x1cc17e&&this['stopListening'](_0x1cc17e);const _0x4ceb9f=_0x48f481['getByView'](_0x2d1dd6);_0x2d1dd6&&_0x4ceb9f&&(this['listenTo'](_0x2d1dd6,'change:height',()=>{_0x31bc4f['updatePosition']();}),this['listenTo'](_0x2d1dd6,'Esc',()=>{this['_closeAnnotation'](_0x4ceb9f),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4ceb9f&&this['setActiveAnnotation'](_0x4ceb9f));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x31bc4f['visibleView']&&(_0x48f481['getByView'](_0x31bc4f['visibleView'])&&_0x31bc4f['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 _0x439571('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x5ebac1 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x5ebac1);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x2cdb4d){for(const _0x108409 of this['_selectedAnnotations'])_0x2cdb4d['includes'](_0x108409)||this['_manuallyClosed']['delete'](_0x108409);for(const _0x1445f5 of this['annotations'])_0x2cdb4d['includes'](_0x1445f5)||this['_removeAnnotationFromBalloon'](_0x1445f5);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x2f3a17 of _0x2cdb4d)this['_addAnnotationToBalloon'](_0x2f3a17);}this['_selectedAnnotations']=_0x2cdb4d;}['_addAnnotationToBalloon'](_0xf9d5dc,_0x3eeea2=!0x1){this['_manuallyClosed']['has'](_0xf9d5dc)||(this['_addedAnnotations']['has'](_0xf9d5dc)||this['_balloon']['hasView'](_0xf9d5dc['view'])||(this['_addedAnnotations']['add'](_0xf9d5dc),this['_balloon']['add']({'stackId':_0xf9d5dc['view']['id'],'view':_0xf9d5dc['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xf9d5dc)}})),_0x3eeea2&&this['_balloon']['showStack'](_0xf9d5dc['view']['id']));}['_getBalloonTargetForAnnotation'](_0x4d25e6){const _0x4dd21e=_0x4d25e6['target'],_0x31762a=this['editor']['editing']['view'],_0x3f96f1=_0x31762a['document']['selection']['getFirstRange'](),_0x4c40bd=_0x31762a['domConverter']['viewRangeToDom'](_0x3f96f1);if(_0x4c40bd['collapse'](!0x0),_0x4dd21e){if(_0x4dd21e instanceof _0x5f3074)return _0x4dd21e;let _0x1cccfb=[];for(const _0x2c8b2e of _0x4dd21e)_0x1cccfb['push'](...F(_0x2c8b2e['getClientRects']()));_0x1cccfb=function(_0x146792){const _0x27cf6c=[];let _0x4d9cc7=_0x146792[0x0];for(let _0x494d4a=0x1;_0x494d4a<_0x146792['length'];_0x494d4a++)P(_0x4d9cc7,_0x146792[_0x494d4a])?_0x4d9cc7['width']+=_0x146792[_0x494d4a]['width']:(_0x27cf6c['push'](_0x4d9cc7),_0x4d9cc7=_0x146792[_0x494d4a]);return _0x27cf6c['push'](_0x4d9cc7),_0x27cf6c;}(_0x1cccfb);const _0x394358=_0x4c40bd['getBoundingClientRect']();return _0x1cccfb['find'](_0x4a13f0=>_0x4a13f0['top']<=_0x394358['top']&&_0x4a13f0['bottom']>=_0x394358['bottom']&&_0x4a13f0['left']<=_0x394358['left']&&_0x4a13f0['right']>=_0x394358['right'])||_0x1cccfb[0x0];}return _0x4d25e6['targetRect']||_0x4c40bd;}['_removeAnnotationFromBalloon'](_0x49494a){this['_addedAnnotations']['has'](_0x49494a)&&this['_balloon']['hasView'](_0x49494a['view'])&&(this['_addedAnnotations']['delete'](_0x49494a),this['_balloon']['remove'](_0x49494a['view']));}['_closeAnnotation'](_0x561447){this['_manuallyClosed']['add'](_0x561447),this['_removeAnnotationFromBalloon'](_0x561447);}}function F(_0x3fb2b0){return Array['from'](_0x3fb2b0)['map'](DOMRect['fromRect']);}function P(_0x587c82,_0x1702b6){return _0x587c82['top']===_0x1702b6['top']&&_0x587c82['bottom']===_0x1702b6['bottom']&&_0x587c82['right']===_0x1702b6['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1e5567,_0x194def){super(_0x1e5567),this['set']('isEmpty',!_0x194def['length']),this['focusTracker']=new _0x2dd762(),this['_annotationViews']=_0x194def,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x5e0820({'focusables':_0x194def,'focusTracker':this['focusTracker']}),this['listenTo'](_0x194def,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x194def,'remove',(_0xad8a16,_0xfc7a4a)=>{_0xfc7a4a['isActive']&&this['focus'](),_0x194def['length']||(this['isEmpty']=!0x0);});const _0x419d7b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x1e5567,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x194def},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x419d7b['if']('isEmpty','ck-hidden',_0x426c1e=>!_0x426c1e)]},'children':[{'text':N(_0x1e5567,'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 _0x3fede0 of this['_annotationViews'])this['focusTracker']['add'](_0x3fede0['element']);this['_annotationViews']['on']('change',(_0x431778,{added:_0x1929f9,removed:_0x528bde})=>{for(const _0x4eb25e of _0x1929f9)this['focusTracker']['add'](_0x4eb25e['element']);for(const _0x1ba6c1 of _0x528bde)this['focusTracker']['remove'](_0x1ba6c1['element']);});}}class p extends _0x29eafd{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x200f45){super(_0x200f45),this['archivedThreads']=new _0x5803d7();}['init'](){const _0x4f646e=this['context'],_0x4a8267=_0x4f646e['plugins']['get'](o),_0xf695a1=_0x4f646e['plugins']['get'](y);this['listenTo'](_0x4a8267,'addCommentThread',(_0x4e9ad7,{threadId:_0x1630ec})=>{const _0x1ec129=_0x4a8267['getCommentThread'](_0x1630ec);_0x1ec129['archivedAt']&&this['archivedThreads']['add'](_0x1ec129,this['_calculatePosition'](_0x1ec129['archivedAt'])),this['listenTo'](_0x1ec129,'change:archivedAt',(_0x5f4f91,_0x125aaa,_0x5a23d2)=>{_0x5a23d2?this['archivedThreads']['has'](_0x1ec129)||this['archivedThreads']['add'](_0x1ec129,this['_calculatePosition'](_0x1ec129['archivedAt'])):this['archivedThreads']['has'](_0x1ec129)&&this['archivedThreads']['remove'](_0x1ec129);});}),this['listenTo'](_0x4a8267,'removeCommentThread',(_0x5aab79,{threadId:_0x2417b4})=>{const _0x31f4b5=_0x4a8267['getCommentThread'](_0x2417b4);this['stopListening'](_0x31f4b5),this['archivedThreads']['has'](_0x31f4b5)&&this['archivedThreads']['remove'](_0x31f4b5);},{'priority':'highest'}),this['listenTo'](_0xf695a1['collection'],'focus',(_0x109ab9,_0x46e584)=>{_0x46e584['isVisible']||(_0x46e584['isActive']=!0x0,_0xf695a1['activate'](_0x46e584));});}['_calculatePosition'](_0x524345){const _0x3ed2d3=[...this['archivedThreads']]['findIndex'](_0x378223=>_0x378223['archivedAt']<_0x524345);return _0x3ed2d3>-0x1?_0x3ed2d3:this['archivedThreads']['length'];}}class a extends _0x35ad89{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0xd7bc88];}constructor(_0x39ba95){super(_0x39ba95),this['annotationViews']=new _0x13e841(),this['_pendingThreads']=[];}['init'](){const _0x1fd9c6=this['editor'],_0x4e4fba=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1fd9c6['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x1c6a8c,!0x0)),_0x1fd9c6['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x21cc43=this['_createCommentsArchiveButton'](_0x15e8b9);return _0x21cc43['set']({'role':'menuitemcheckbox'}),_0x21cc43;});const _0x358052=_0x1fd9c6['plugins']['get'](p),_0x333837=_0x1fd9c6['plugins']['get']('Annotations'),_0x254b98=_0x1fd9c6['plugins']['get']('CommentsRepository');_0x358052['archivedThreads']['forEach'](_0xb664c7=>{this['_handleNewThread'](_0xb664c7);}),this['listenTo'](_0x358052['archivedThreads'],'add',(_0x2605eb,_0x4fc001)=>{this['_handleNewThread'](_0x4fc001);}),this['listenTo'](_0x333837['collection'],'add',(_0x27cfc0,_0x44eec5)=>{const _0x2e1d3d=this['_pendingThreads']['find'](_0x1056ae=>{const _0x595c2d=_0x254b98['_threadToController']['get'](_0x1056ae);return _0x595c2d&&_0x44eec5['innerView']===_0x595c2d['view'];});if(_0x2e1d3d){const _0xd3c546=this['_calculatePosition'](_0x2e1d3d['archivedAt']);this['_addAnnotationToArchive'](_0x44eec5,_0xd3c546),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2e1d3d),0x1);}}),this['listenTo'](_0x358052['archivedThreads'],'remove',(_0x5a4904,_0x22765a)=>{const _0x1f25ac=_0x1fd9c6['config']['get']('collaboration.channelId');if(!_0x1f25ac||_0x22765a['channelId']===_0x1f25ac){if(this['_pendingThreads']['includes'](_0x22765a))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x22765a),0x1);else{const _0x2c2ecc=_0x254b98['_threadToController']['get'](_0x22765a),_0x14f57d=_0x333837['getByInnerView'](_0x2c2ecc['view']);this['annotationViews']['remove'](_0x14f57d['view']),this['stopListening'](_0x14f57d),this['stopListening'](_0x14f57d['focusableElements']);}}}),this['listenTo'](_0x333837['collection'],'add',(_0x4b894d,_0x56cd89)=>{this['listenTo'](_0x56cd89,'escape',_0x4e4fba);}),this['listenTo'](_0x333837['collection'],'remove',(_0xf29d9e,_0x40ad0a)=>{this['stopListening'](_0x40ad0a,'escape',_0x4e4fba);});}['_addAnnotationToArchive'](_0x5dee76,_0x2d5b0b){this['listenTo'](_0x5dee76,'set:isVisible',_0x38352a=>{_0x38352a['return']=!0x1,_0x38352a['stop']();}),this['annotationViews']['add'](_0x5dee76['view'],_0x2d5b0b);}['_handleNewThread'](_0xda27d2){const _0x5ee073=this['editor']['plugins']['get']('CommentsRepository'),_0x3607ef=this['editor']['plugins']['get']('Annotations'),_0x54c486=this['editor']['config']['get']('collaboration.channelId');if(!_0x54c486||_0xda27d2['channelId']===_0x54c486){const _0x34a87d=_0x5ee073['_threadToController']['get'](_0xda27d2);if(!_0x34a87d)return void this['_pendingThreads']['push'](_0xda27d2);const _0x43f4c0=this['_calculatePosition'](_0xda27d2['archivedAt']),_0x470fe4=_0x3607ef['getByInnerView'](_0x34a87d['view']);_0x470fe4['isVisible']&&_0x3607ef['_visibleAnnotations']['remove'](_0x470fe4),this['_addAnnotationToArchive'](_0x470fe4,_0x43f4c0);}}['_calculatePosition'](_0x4e0b86){const _0x1b20ca=this['editor']['config']['get']('collaboration.channelId'),_0x1b8930=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x4af9cd=>_0x4af9cd['channelId']===_0x1b20ca)['findIndex'](_0x33b72d=>_0x33b72d['archivedAt']<_0x4e0b86);return _0x1b8930<0x0||_0x1b8930>this['annotationViews']['length']?this['annotationViews']['length']:_0x1b8930-0x1;}['_toggleDialog'](){const _0x2364b0=this['editor'],_0x1b2c95=_0x2364b0['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x2364b0['locale'],this['annotationViews'])),'commentsArchive'===_0x1b2c95['id']?_0x1b2c95['hide']():_0x1b2c95['show']({'id':'commentsArchive','title':N(_0x2364b0['locale'],'COMMENTS_ARCHIVE'),'icon':_0x956dc,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x254d33['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x269023,_0x4bd24a=!0x1){const _0x27d7bf=this['editor']['locale'],_0x2b8995=this['editor']['plugins']['get']('Dialog'),_0x3f2d9e=new _0x269023(_0x27d7bf);return _0x3f2d9e['bind']('isEnabled')['to'](this,'isEnabled'),_0x3f2d9e['bind']('isOn')['to'](_0x2b8995,'id',_0xc792f1=>'commentsArchive'===_0xc792f1),_0x3f2d9e['set']({'label':N(_0x27d7bf,'COMMENTS_ARCHIVE'),'icon':_0x956dc,'isToggleable':!0x0}),_0x4bd24a&&(_0x3f2d9e['tooltip']=!0x0),this['listenTo'](_0x3f2d9e,'execute',()=>this['_toggleDialog']()),_0x3f2d9e;}['_hideDialogOnAnnotationEscape']=_0x4f6cce=>{const _0x110eaa=_0x4f6cce['source'];if(!this['annotationViews']['has'](_0x110eaa['view']))return;const _0x34250b=this['editor']['plugins']['get']('Dialog');_0x34250b['isOpen']&&'commentsArchive'===_0x34250b['id']&&(_0x34250b['hide'](),_0x4f6cce['stop']());};}class gi extends _0x35ad89{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
23
+ import{Editor as _0x3b8c1f,ContextPlugin as _0x5769e4,PendingActions as lt,Command as _0x46685b,Plugin as _0x3d233f,Context as _0x18e5c3}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x240a0a,uid as _0x4e4e67,KeystrokeHandler as jt,FocusTracker as _0xeb7998,diff as _0x4a1d9a,Collection as _0x1b1bd5,Rect as _0x4d09a0,CKEditorError as _0x3e31b7,first as _0xa7a780,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x1a9ea6,keyCodes as _0x496e11}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5d5a77,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x3069c5,trimHtml as _0x1b6272,LateFocusDropdownButtonView as _0x580750,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x5c46b2}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x1f36ab}from'es-toolkit/compat';import{IconUndo as _0x2ba54b,IconCheck as _0x12eb01,IconPencil as _0x5c527e,IconRemoveComment as _0x3cf87e,IconThreeVerticalDots as _0x500b81,IconAddComment as _0x417cca,IconCommentsArchive as _0x13c696}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x2fb93a,ButtonView as _0x56f2fa,ViewCollection as _0x16b584,createDropdown as _0x2d469d,ListView as _0x406204,focusChildOnDropdownOpen as _0x5714e0,ListItemView as _0xf15eef,MenuBarMenuListItemButtonView as _0xf31b41,BodyCollection as _0x21805a,BalloonPanelView as _0x251547,ContextualBalloon as _0x1d3115,Dialog as _0x30ecf7,DialogViewPosition as _0x3e7464}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x30b63e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}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 _0x48ecb2}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x156cb0}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x240a0a(){['model'];['view'];constructor(_0x134602,_0x284bf5){super(),this['model']=_0x134602,this['model']['_isAttached']=!0x0,this['view']=_0x284bf5,this['listenTo'](_0x284bf5,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x284bf5,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x284bf5,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x284bf5,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x284bf5,'addComment',(_0x38bf0b,_0x1ffee9)=>this['addComment'](_0x1ffee9)),this['listenTo'](_0x284bf5,'updateComment',(_0x28f5f5,_0x1f8eca,_0x55acc6)=>this['updateComment'](_0x1f8eca,_0x55acc6)),this['listenTo'](_0x284bf5,'removeComment',(_0x57759f,_0x2569f7)=>this['removeComment'](_0x2569f7));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x2b7e61){this['model']['addComment']({'content':_0x2b7e61,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x516058,_0x297d5f){this['model']['getComment'](_0x516058)['update']({'content':_0x297d5f});}['removeComment'](_0x333ae0){this['model']['getComment'](_0x333ae0)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x408979,_0x5dc72a,_0x5d924d){const t=_0x408979['t'];switch(_0x5dc72a){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'},_0x5d924d);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'},_0x5d924d);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'},_0x5d924d);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'},_0x5d924d);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5d924d);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'},_0x5d924d);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'},_0x5d924d);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'},_0x5d924d);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x659fd,_0x574bf6){super(_0x659fd);const _0x7fd8ea=_0x4e4e67();this['main']=this['createCollection'](),this['editable']=new $t(_0x659fd,_0x574bf6,void 0x0,{'label':()=>N(_0x659fd,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x659fd['uiLanguageDirection'],'lang':_0x659fd['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x7fd8ea},'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 Ft extends Ut{['view'];constructor(_0x3cc467){super(_0x3cc467),this['view']=new Vt(_0x3cc467['locale'],_0x3cc467['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x18501f=this['editor']['editing']['view'],_0x2776a2=this['view']['editable'],_0x186cc8=_0x18501f['document']['getRoot']();_0x2776a2['name']=_0x186cc8['rootName'],this['view']['render']();const _0x3b1368=_0x2776a2['element'];this['setEditableElement'](_0x2776a2['name'],_0x3b1368),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x18501f['attachDomRoot'](_0x3b1368),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x240a0a(_0x3b8c1f){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0xf05c66={}){function _0x3dd676(_0x5bfd2b){return _0x5bfd2b['map'](_0x2285ed=>String['fromCharCode'](_0x2285ed))['join']('');}(_0xf05c66=Object['assign']({},_0xf05c66))['plugins']||(_0xf05c66['plugins']=Rt['defaultPlugins']),super(_0xf05c66),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x3dd676([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3dd676([0x76,0x69,0x65,0x77])][_0x3dd676([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3dd676([0x61,0x75,0x74,0x6f]),this[_0x3dd676([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3dd676([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3dd676([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3dd676([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3dd676([0x6f,0x6b])});}['create'](){const _0x3cca89=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x3cca89))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x46ea2d=>{const _0x237851=this['model']['document']['getRoot'](),_0x4430d3=_0x237851&&_0x237851['getChild'](_0x237851['childCount']-0x1);_0x46ea2d['setSelection'](_0x4430d3,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1374f8=this['editing']['view'],_0xccd9f3=_0x1374f8['document']['getRoot'](),_0x2d7fef=_0xccd9f3['getChild'](0x0);_0xccd9f3['childCount']>0x1||!_0x2d7fef||'p'!=_0x2d7fef['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x1374f8,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x2d7fef['placeholder']=this['placeholder']),St({'view':_0x1374f8,'element':_0x2d7fef,'keepOnFocus':!0x0}),this['placeholderElement']=_0x2d7fef);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5ed39b,_0x462f21={}){super(_0x5ed39b),this['editor']=null,this['_editorConfig']=_0x462f21,this['set']('value',_0x462f21['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x5ed39b,'Reply...')),this['set']('submitLabel',N(_0x5ed39b,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0xeb7998(),this['focusCycler']=new _0x2fb93a({'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',(_0x51c15b,_0x4b904f)=>{this['cancelButtonView']['fire']('execute'),_0x4b904f();}),this['keystrokes']['set']('Ctrl+Enter',(_0x25b599,_0x3763fc)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3763fc());}),this['on']('submit',(_0x442cd8,_0x475c03)=>{_0x475c03['length']>0xfde8?(alert(N(_0x5ed39b,'TOO_LONG_COMMENT_ALERT',[_0x475c03['length'],0xfde8])),_0x442cd8['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x274441=this['editor'];this['element']['insertBefore'](_0x274441['ui']['element'],this['element']['firstChild']),_0x274441['model']['document']['on']('change',()=>this['value']=_0x274441['getData']()),_0x274441['bind']('placeholder')['to'](this),this['focusables']['add'](_0x274441['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x52a7e7){-0x1===_0x52a7e7?(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:_0x445597}=this,_0x15e925=new _0x56f2fa(_0x445597);return _0x15e925['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x15e925['withText']=!0x0,_0x15e925['bind']('label')['to'](this,'submitLabel'),_0x15e925['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x15e925['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x5b2746,_0x386187)=>!_0x386187&&!!_0x5b2746['trim']()),_0x15e925;}['_createCancelButton'](){const {locale:_0x1de053}=this,_0x16a49a=new _0x56f2fa(_0x1de053);return _0x16a49a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x16a49a['label']=N(_0x1de053,'Cancel'),_0x16a49a['withText']=!0x0,_0x16a49a['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x16a49a;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3e283f=>{this['focusTracker']['add'](_0x3e283f['element']);}),this['focusables']['on']('change',(_0x381112,_0x4ae2cd)=>{for(const _0x3b24a2 of Array['from'](_0x4ae2cd['added'])['reverse']())this['focusTracker']['add'](_0x3b24a2['element']);});}}class ie extends kt{constructor(_0x5380a4,_0x4add55,_0x2376fe){super(_0x5380a4),this['commentInputView']=new os(_0x5380a4,_0x2376fe),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x532e97,_0x1be79a)=>_0x532e97||!!_0x1be79a),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 _0x5d5a77(_0x5380a4,_0x4add55),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'](_0x1ddaeb){this['commentInputView']['focus'](_0x1ddaeb);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x1561c3,_0xbf6ef5)=>{const {submitButtonView:_0x110362,cancelButtonView:_0x461087,editor:_0x26b2af}=this['commentInputView'];[_0x110362['element'],_0x461087['element'],_0x26b2af?_0x26b2af['editing']['view']['getDomRoot']():null]['filter'](_0xf18629=>_0xf18629)['some'](_0x4db36e=>_0x4db36e['contains'](_0xbf6ef5['target']))||(this['focus'](),_0xbf6ef5['preventDefault']());});}}class rs extends kt{constructor(_0xc74c7d){super(_0xc74c7d);const _0x8ab2fe=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x8ab2fe['to']('count',_0x515c49=>N(_0xc74c7d,'NUMBER_OF_COMMENTS',_0x515c49))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5e60ea,_0x22147e,_0x544d2b){super(_0x5e60ea);const _0x4f5630=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x22147e['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x22147e,this['_config']=_0x544d2b,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29f7a8=>this['commentViews']['map'](_0xd96607=>_0xd96607['element'])['includes'](_0x29f7a8['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x5e60ea),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0xee7be1=>_0xee7be1-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5e17e1 of _0x22147e['comments'])this['_handleNewCommentModel'](_0x5e17e1);this['_handleInfoComment'](),this['listenTo'](_0x22147e['comments'],'add',(_0x1f2fe,_0x3f38f8)=>{const _0x234a15=this['_calculatePosition'](_0x3f38f8);this['length']++,this['_handleNewCommentModel'](_0x3f38f8,_0x234a15),this['refreshVisibleViews']();}),this['listenTo'](_0x22147e['comments'],'remove',(_0x47130a,_0x2c65fe)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2c65fe),this['refreshVisibleViews']();}),this['listenTo'](_0x22147e,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x22147e,'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',_0x4f5630['if']('length','ck-hidden',_0x42c213=>!_0x42c213)],'aria-label':N(_0x5e60ea,'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'](_0x430e26){-0x1===_0x430e26?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4723f4 of this['commentViews'])_0x4723f4['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x24c3b4,_0x2e6465){const _0x697671=new this['_config']['CommentView'](this['locale'],_0x24c3b4,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x697671['viewUid']=_0x24c3b4['id'],_0x697671['delegate']('removeComment')['to'](this),_0x697671['delegate']('updateComment')['to'](this),_0x697671['delegate']('resolveCommentThread')['to'](this),_0x697671['delegate']('editorReady')['to'](this),_0x697671['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x697671,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x697671,_0x2e6465);}['_calculatePosition'](_0x52d0ce){const _0x1783e8=this['_model']['_findOptimalIndex'](_0x52d0ce);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x52d0ce['authoredAt']?_0x1783e8-0x1:_0x1783e8:_0x1783e8-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x54bbb9={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x54bbb9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x54bbb9));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x39edcb){const _0x3dde39=this['commentViews']['remove'](_0x39edcb['id']);this['stopListening'](_0x3dde39),_0x3dde39['isEditMode']&&this['_updateHasDirtyComment'](),_0x3dde39['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x186c43=>_0x186c43['isEditMode']);}['_rearrangeCollapse'](){const _0x4f8df3=function(_0x2aee0f){const _0x412ba2=new _0x1b1bd5();for(const _0x38f1e7 of _0x2aee0f)_0x412ba2['add'](_0x38f1e7);return _0x412ba2;}(this['commentViews']),_0x3563a8=this['_collapsedCommentsView']['count'];for(let _0x507c3c=0x1;_0x507c3c<=_0x3563a8;_0x507c3c++)_0x4f8df3['remove'](0x1);for(const _0x191dde of _0x4f8df3)_0x191dde['collapse']();_0x3563a8>0x0&&_0x4f8df3['add'](this['_collapsedCommentsView'],0x1),ns(_0x4a1d9a(Array['from'](this['visibleViews']),Array['from'](_0x4f8df3)),this['visibleViews'],_0x4f8df3);}['_rearrangeExpand'](){ns(_0x4a1d9a(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x173c97 of this['visibleViews'])_0x173c97['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x1bcf72=>{this['focusTracker']['add'](_0x1bcf72['element']),this['keystrokes']['listenTo'](_0x1bcf72['element']);}),this['commentViews']['on']('change',(_0x1c8808,_0x84e82)=>{for(const _0xf7189a of _0x84e82['removed'])this['focusTracker']['remove'](_0xf7189a['element']),this['keystrokes']['stopListening'](_0xf7189a['element']);for(const _0x39c2d2 of Array['from'](_0x84e82['added'])['reverse']())this['focusTracker']['add'](_0x39c2d2['element']),this['keystrokes']['listenTo'](_0x39c2d2['element']);});}}function ns(_0x44ffb4,_0x241540,_0x5074cd){let _0x4a4145=0x0;for(const _0x376e19 of _0x44ffb4)switch(_0x376e19){case'insert':_0x241540['add'](_0x5074cd['get'](_0x4a4145),_0x4a4145),_0x4a4145++;break;case'delete':_0x241540['remove'](_0x4a4145);break;case'equal':_0x4a4145++;}}class oe extends kt{constructor(_0x3c1a87){super(_0x3c1a87);const _0x454886=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x454886['to']('contextValue',_0x51a388=>N(_0x3c1a87,'THREAD_CONTEXT_LABEL',_0x51a388)),'tabindex':-0x1},'children':[{'text':_0x454886['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x446176,_0x5debd9){super(_0x446176);const _0x62d8a0=this['bindTemplate'];this['_model']=_0x5debd9,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x591c1f=>!!_0x591c1f),this['bind']('contextValue')['to'](this['_model'],'context',_0x5a0c03=>_0x5a0c03&&_0x5a0c03['value']?this['_trimContextValue'](_0x5a0c03['value']):N(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',_0x62d8a0['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 _0x17fb88=new _0x56f2fa(this['locale']);return _0x17fb88['label']=N(this['locale'],'Reopen'),_0x17fb88['tooltip']=N(this['locale'],'Reopen'),_0x17fb88['icon']=_0x2ba54b,_0x17fb88['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2b3f21=>!_0x2b3f21),_0x17fb88['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x782a30,_0x3d9953)=>_0x782a30&&_0x3d9953),_0x17fb88['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x17fb88;}['_trimContextValue'](_0x5de310){if(_0x5de310['length']<0x96)return _0x5de310;const _0x408890=_0x5de310['lastIndexOf']('\x20',0x93);return _0x5de310['substring'](0x0,_0x408890>-0x1?_0x408890:0x93)+'...';}['_attachContextActions'](){const _0x5587cc=this['element']['querySelector']('.ck-context'),_0x1b831c=_0x5587cc['querySelector']('.ck-context__value');this['listenTo'](_0x5587cc,'mouseenter',()=>{_0x1b831c['offsetWidth']<_0x1b831c['scrollWidth']&&_0x5587cc['classList']['add']('overlay');}),this['listenTo'](_0x5587cc,'mouseleave',()=>{_0x5587cc['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x112add of this['focusables'])this['focusTracker']['add'](_0x112add['element']),this['keystrokes']['listenTo'](_0x112add['element']);}['_createContextView'](){const _0x1cec8c=new oe(this['locale']);return _0x1cec8c['bind']('contextValue')['to'](this),_0x1cec8c;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1ca89a,_0x56a2f2,_0x177d22,_0x5911c8){super(_0x1ca89a),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x56a2f2,this['_localUser']=_0x177d22,this['_config']=_0x5911c8,this['commentThreadHeaderView']=new Yt(_0x1ca89a,_0x56a2f2),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x1ca89a,N(_0x1ca89a,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1ca89a,_0x56a2f2,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5911c8)),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',(_0x33e5f3,_0x33b9f3)=>_0x33e5f3||!!_0x33b9f3),this['bind']('isUnlinked')['to'](_0x56a2f2,'unlinkedAt',_0x4c0696=>!!_0x4c0696),this['bind']('ariaLabel')['to'](this,'length',_0x531c7b=>{const _0x328586=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x531c7b,_0x328586]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x58250f=>_0x58250f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4f7dc8=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x33819b=_0x4f7dc8['commentInputView'];return _0x4f7dc8['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x33819b,'value',(_0x52eef4,_0x578cdb,_0x5938a3,_0x2c86b6,_0x46aaee)=>!!_0x46aaee||!!_0x2c86b6&&_0x5938a3&&!_0x578cdb||_0x52eef4&&_0x5938a3&&!_0x578cdb),_0x33819b['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4df7f7,_0x27afdd,_0x11b3b4)=>{let _0x20accb;return _0x20accb=_0x11b3b4&&_0x27afdd?'Reply\x20to\x20reopen\x20discussion...':_0x4df7f7?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x20accb);}),_0x33819b['bind']('submitLabel')['to'](this,'length',_0x589ac7=>N(this['locale'],_0x589ac7?'Reply':'Comment')),_0x33819b['on']('submit',(_0x1113ce,_0x1c5883)=>{this['fire']('addComment',_0x1c5883),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x33819b['on']('cancel',()=>{this['focus']();}),_0x33819b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x33819b['on']('cancel',_0x434e86=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x434e86['stop']());}),this['on']('change:isActive',(_0x4038f4,_0x3ffd60,_0x292520)=>{_0x292520||this['length']||_0x33819b['value']||this['fire']('removeCommentThread');}),_0x4f7dc8;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1ad213,_0x385032,_0x56d3a5,_0x4049f7){super(_0x1ad213,_0x385032,_0x56d3a5,_0x4049f7),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1ad213,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3191a0,_0x1f2109,_0x402da3)=>{_0x402da3||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x516793,_0x32d4b6,_0xa659f4)=>{_0xa659f4&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x35c722=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x35c722['if']('isActive','ck-thread--active'),_0x35c722['if']('isUnlinked','ck-thread--unlinked'),_0x35c722['if']('isConfirm','ck-thread--remove-confirmation'),_0x35c722['to']('actionIndicator',_0x5be9b0=>_0x5be9b0?'ck-thread--'+_0x5be9b0:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x35c722['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 _0xfb741d of this['commentsListView']['commentViews'])_0xfb741d['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0xca141b}=this,_0x5bef04=this['commentsListView']['commentViews']['get'](0x0);_0x5bef04===this['_boundFirstCommentView']||_0x5bef04['isSystemComment']||(this['_boundFirstCommentView']=_0x5bef04,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x5bef04,'actionIndicator',_0x169a70=>'remove'===_0x169a70?'remove':null),_0x5bef04['placeholder']=N(_0xca141b,'Write\x20a\x20comment...'),_0x5bef04['removeButton']['on']('execute',_0x2ab031=>{_0x2ab031['stop'](),this['showConfirm'](N(_0xca141b,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x5bef04['focus']();}),_0x5bef04['actionBar']['add'](this['resolveButton'],0x0),_0x5bef04['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2a50db=new _0x3069c5(this['locale']);return _0x2a50db['label']=N(this['locale'],'Resolve'),_0x2a50db['tooltip']=N(this['locale'],'Resolve'),_0x2a50db['icon']=_0x12eb01,_0x2a50db['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2a50db['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xa040d2=>!_0xa040d2),_0x2a50db['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19b0af,_0x3bba22)=>_0x19b0af&&!_0x3bba22),_0x2a50db['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2a50db;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x2a86cf){super(_0x2a86cf),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4e30b3,_0x4bf516,_0x25afa3)=>{this['element']['innerHTML']=_0x25afa3;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5a3ac7,_0x549d0b,_0xa4540d){super(_0x5a3ac7),this['_model']=_0x549d0b,this['_config']=_0xa4540d,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x549d0b,'content',_0x549d0b,'authoredAt',(_0x37ec8a,_0x47072c)=>N(_0x5a3ac7,'COMMENT_ARIA_LABEL',[_0x549d0b['author']['name'],_0xa4540d['formatDateTime'](_0x47072c),new DOMParser()['parseFromString'](_0x37ec8a,'text/html')['body']['textContent'],_0x549d0b['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x5a3ac7,N(_0x5a3ac7,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x16b584(),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x41b867=>_0x41b867['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']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x50646e=new es(this['locale']);return _0x50646e['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x5042cc,_0xea159c)=>_0xea159c?_0x1b6272(_0x5042cc,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x5042cc),_0x50646e;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x299979=new os(this['locale'],this['_config']['editorConfig']);return _0x299979['value']=this['_model']['content'],_0x299979['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x299979['submitLabel']=N(this['locale'],'Save'),_0x299979['on']('submit',(_0x54cdf0,_0x121c5c)=>{this['fire']('updateComment',this['_model']['id'],_0x121c5c),this['switchToDisplayMode'](),this['focus']();}),_0x299979['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x299979['once']('editorReady',()=>{_0x299979['focus']();}),_0x299979['createEditor'](),_0x299979['delegate']('editorReady')['to'](this),_0x299979['delegate']('editorDestroyed')['to'](this),_0x299979;}['_setupKeyboardNavigation'](){const _0x434122=this['element'];this['keystrokes']['listenTo'](_0x434122);for(const _0x40283d of this['focusables'])this['focusTracker']['add'](_0x40283d['element']),this['keystrokes']['listenTo'](_0x40283d['element']);this['focusables']['on']('change',(_0x14dc16,_0xde3966)=>{for(const _0x36e29b of _0xde3966['removed'])this['focusTracker']['remove'](_0x36e29b['element']),this['keystrokes']['stopListening'](_0x36e29b['element']);for(const _0x47308d of _0xde3966['added'])this['focusTracker']['add'](_0x47308d['element']),this['keystrokes']['listenTo'](_0x47308d['element']);}),this['keystrokes']['set']('enter',(_0x5d53fc,_0x3779a4)=>{_0x434122===_0x5d53fc['target']&&(this['focusCycler']['focusFirst'](),_0x3779a4());}),this['keystrokes']['set']('esc',(_0x648af6,_0xe00f9)=>{_0x434122!==_0x648af6['target']&&(this['focus'](),_0xe00f9());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x1e8c6a,_0x31a640,_0x89f712){super(_0x1e8c6a,_0x31a640,_0x89f712),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x1e8c6a,'Reply...')),this['bind']('authoredAt')['to'](_0x31a640),this['bind']('resolvedAt')['to'](_0x31a640),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 _0x5d5a77(_0x1e8c6a,_0x31a640['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x31a640,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x23b0b8=this['bindTemplate'],_0x37d9ac=[{'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':_0x23b0b8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x23b0b8['to']('authoredAt',_0x4dd8b8=>this['_config']['formatDateTime'](_0x4dd8b8))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x23b0b8['if']('isEditMode','ck-comment__actions--hidden'),_0x23b0b8['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']&&_0x37d9ac['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x23b0b8['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x23b0b8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x23b0b8['if']('isEditMode','ck-comment--edit'),_0x23b0b8['if']('isSystemComment','ck-comment--info'),_0x23b0b8['to']('actionIndicator',_0x4d31ec=>_0x4d31ec?'ck-comment--'+_0x4d31ec:'')],'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':_0x37d9ac}]}]};}['_createEditButton'](){const _0x49a8dc=new _0x56f2fa(this['locale']);return _0x49a8dc['label']=N(this['locale'],'Edit'),_0x49a8dc['icon']=_0x5c527e,_0x49a8dc['withText']=!0x0,_0x49a8dc['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x49a8dc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x30b7cd=>!_0x30b7cd),_0x49a8dc['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x49a8dc['on']('execute',()=>this['switchToEditMode']()),_0x49a8dc;}['_createRemoveButton'](){const _0x177319=new _0x56f2fa(this['locale']);return _0x177319['label']=N(this['locale'],'Remove'),_0x177319['icon']=_0x3cf87e,_0x177319['withText']=!0x0,_0x177319['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x177319['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x49c616=>!_0x49c616),_0x177319['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x177319['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x177319;}['_createDropdown'](){const _0x1d3409=_0x2d469d(this['locale'],_0x580750),_0x417c6d=_0x1d3409['panelView']['children'],_0x3d724f=new _0x406204(this['locale']),_0x4fdf21=_0x1d3409['bindTemplate'];_0x5714e0(_0x1d3409,()=>this['items']['find'](_0x36a20f=>_0x36a20f['isVisible'])),_0x1d3409['extendTemplate']({'attributes':{'class':[_0x4fdf21['if']('isVisible','ck-hidden',_0x1e41aa=>!_0x1e41aa)]}});const _0x3b2a90=(_0x149c16,_0x1f7cda=-0x1)=>{const _0x507bb2=new _0xf15eef(this['locale']);_0x507bb2['children']['add'](_0x149c16);const _0x2bf42e=_0x1f7cda>-0x1?_0x1f7cda:_0x3d724f['items']['length'];_0x3d724f['items']['add'](_0x507bb2,_0x2bf42e);const _0x17b03a=Array['from'](this['items']);_0x1d3409['unbind']('isEnabled','isVisible'),_0x1d3409['bind']('isEnabled')['toMany'](_0x17b03a,'isEnabled',(..._0x5469e7)=>_0x5469e7['some'](_0x4f7233=>_0x4f7233)),_0x1d3409['bind']('isVisible')['toMany'](_0x17b03a,'isVisible',(..._0x136a52)=>_0x136a52['some'](_0x29e96e=>_0x29e96e));};_0x1d3409['panelPosition']='sw',_0x1d3409['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x500b81});for(const _0x27f6a9 of this['items'])_0x3b2a90(_0x27f6a9);return _0x417c6d['add'](_0x3d724f),_0x1d3409['listenTo'](this['items'],'add',(_0x1c380d,_0x617c9b,_0x561f9d)=>{_0x3b2a90(_0x617c9b,_0x561f9d);}),_0x1d3409['listenTo'](this['items'],'remove',(_0x4243f0,_0x1207c1,_0x33f5b9)=>{_0x3d724f['items']['remove'](_0x33f5b9);}),_0x1d3409;}['_attachActions'](_0x2f92bd,_0x44896f){const _0x6795db=_0x2f92bd&&_0x2f92bd['element'];_0x6795db&&(this['listenTo'](_0x6795db,'mouseenter',()=>this['actionIndicator']=_0x44896f),this['listenTo'](_0x6795db,'focus',()=>this['actionIndicator']=_0x44896f),this['listenTo'](_0x6795db,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x6795db,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x434c98=super['_createCommentInputView']();return _0x434c98['bind']('placeholder')['to'](this),_0x434c98;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x326b1d){const _0x1fd68d=Dt(_0x326b1d,0x1e),_0x15f037=new MutationObserver(_0x40f368=>{for(const _0x4d1e9c of _0x40f368)('attributes'==_0x4d1e9c['type']&&'class'==_0x4d1e9c['attributeName']||'childList'==_0x4d1e9c['type']||'characterData'==_0x4d1e9c['type'])&&_0x1fd68d();});return{'attach'(_0x5f0041){_0x15f037['observe'](_0x5f0041,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x15f037['disconnect'](),_0x1fd68d['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x3ad44b,_0x2234c9){super(_0x3ad44b),this['id']=_0x4e4e67(),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0xe07ba8,_0xdf2dc4)=>this['fire']('Esc',_0xdf2dc4)),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']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x2234c9),this['mainView']=_0x2234c9;const _0x4224e9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4224e9['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 _0x187411=this['element']['clientHeight'];_0x187411&&(this['height']=_0x187411);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x240a0a(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x231bed,target:_0x16162c,type:_0x478cf6,isVisible:_0x5b79b2=!0x0}){super(),this['view']=_0x231bed,this['view']['element']||this['view']['render'](),this['_type']=_0x478cf6,this['_target']=_0x16162c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1b1bd5([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x225c3a,_0x4ebf21)=>{this['view']['focusTracker']['add'](_0x4ebf21);}),this['focusableElements']['on']('remove',(_0x4a6c49,_0x4244be)=>{this['view']['focusTracker']['remove'](_0x4244be);}),this['set']('isVisible',_0x5b79b2);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x57b684=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x57b684),_0x57b684;}get['targetRect'](){const _0x1fd539=this['target'];if(null===_0x1fd539)return null;if(_0x1fd539 instanceof _0x4d09a0)return _0x1fd539;const _0x75d601=_0x1fd539['filter'](_0x10f496=>function(_0x206500){const _0x117c87=_0x206500['offsetParent'];if(_0x117c87)return!0x0;const _0x255d87=_0x206500['getClientRects']()['item'](0x0);return!!_0x255d87;}(_0x10f496));return 0x0===_0x75d601['length']?null:new _0x4d09a0(_0x75d601[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x9ec5b0){this['view']['isActive']=_0x9ec5b0,this['view']['mainView']['isActive']=_0x9ec5b0;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x36b8af){if(!(null===_0x36b8af||_0x36b8af instanceof _0x4d09a0||Array['isArray'](_0x36b8af)&&_0x36b8af['every'](_0x498dc9=>fi(_0x498dc9))))throw new _0x3e31b7('annotation-invalid-target',null,{'target':_0x36b8af});}['_getNormalizedTarget'](){const _0x14e38b='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x14e38b)?[_0x14e38b]:_0x14e38b;}}function fi(_0x32a96d){return null!==_0x32a96d&&'object'==typeof _0x32a96d&&'nodeType'in _0x32a96d&&0x1===_0x32a96d['nodeType'];}class S extends _0x1b1bd5{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x23966a=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0xeb7998(),this['_focusTracker']['on']('change:isFocused',(_0x141804,_0x487655,_0x2fa4eb)=>{_0x2fa4eb||this['fire']('blur');});for(const _0x585133 of _0x23966a)this['add'](_0x585133);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x162337){if(this['has'](_0x162337))throw new _0x3e31b7('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x162337['innerView'],_0x162337),this['_viewToAnnotation']['set'](_0x162337['view'],_0x162337);for(const _0xa5fca5 of _0x162337['focusableElements'])this['_focusTracker']['add'](_0xa5fca5);this['listenTo'](_0x162337['focusableElements'],'add',(_0x96e666,_0x457860)=>{this['_focusTracker']['add'](_0x457860);}),this['listenTo'](_0x162337['focusableElements'],'remove',(_0x450981,_0x1570a6)=>{this['_focusTracker']['remove'](_0x1570a6);}),this['listenTo'](_0x162337['view']['focusTracker'],'change:isFocused',(_0x159de5,_0x27719f,_0x1662c5)=>{_0x1662c5&&this['fire']('focus',_0x162337);}),_0x162337['updateTargetRect']();const _0x1c3ad0=this['_getOrderInContent'](_0x162337['view']['targetRect']);return super['add'](_0x162337,_0x1c3ad0);}['remove'](_0x279690){if(!this['has'](_0x279690))throw new _0x3e31b7('annotationcollection-not-existing-item',null);this['stopListening'](_0x279690['view']['focusTracker']),this['stopListening'](_0x279690['focusableElements']);for(const _0x4353bb of _0x279690['focusableElements'])this['_focusTracker']['remove'](_0x4353bb);return this['_viewToAnnotation']['delete'](_0x279690['view']),this['_innerViewToAnnotation']['delete'](_0x279690['innerView']),super['remove'](_0x279690);}['getByInnerView'](_0x4b1965){return this['_innerViewToAnnotation']['get'](_0x4b1965);}['getByView'](_0x4d423c){return this['_viewToAnnotation']['get'](_0x4d423c);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1718f7 of this)_0x1718f7['updateTargetRect']();this['_sort']();}['_sort'](){const _0xf5a083=Array['from'](this)['sort']((_0xfc7cc4,_0x39e650)=>w(_0xfc7cc4['view']['targetRect'],_0x39e650['view']['targetRect']));for(let _0x240438=_0xf5a083['length']-0x1;_0x240438>0x0;_0x240438--){const _0x17340c=_0xf5a083[_0x240438];_0x240438!==this['getIndex'](_0x17340c)&&(this['remove'](_0x17340c),this['add'](_0x17340c));}}['_getOrderInContent'](_0x20dbe2){let _0x29d02a=0x0;if(!_0x20dbe2)return this['length'];for(const _0x300252 of this){const _0x33e464=_0x300252['view']['targetRect'];if(_0x33e464){if(w(_0x20dbe2,_0x33e464)<0x0)return _0x29d02a;_0x29d02a++;}}return _0x29d02a;}}function v({source:_0x40126b,target:_0x2803b0,filter:_0x2c53e6}){for(const _0x3dabf9 of _0x40126b)_0x2c53e6(_0x3dabf9)&&_0x2803b0['add'](_0x3dabf9);_0x2803b0['listenTo'](_0x40126b,'add',(_0x51d31a,_0x366ec8)=>{_0x2c53e6(_0x366ec8)&&_0x2803b0['add'](_0x366ec8);}),_0x2803b0['listenTo'](_0x40126b,'remove',(_0x1f2f4f,_0x7cc647)=>{_0x2803b0['has'](_0x7cc647)&&_0x2803b0['remove'](_0x7cc647);});}function w(_0x32452c,_0x4f4dd7){if(null===_0x32452c&&null===_0x4f4dd7)return 0x0;if(null===_0x32452c)return-0x1;if(null===_0x4f4dd7)return 0x1;const _0x43c140=_0x32452c['top']-_0x4f4dd7['top'];return 0x0==_0x43c140?_0x32452c['left']-_0x4f4dd7['left']:_0x43c140;}class y extends _0x5769e4{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x76a85d){if(super(_0x76a85d),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x76a85d instanceof _0x3b8c1f){const _0x5e0cac=_0x76a85d['locale'];_0x76a85d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3300e5){this['collection']['add'](_0x3300e5);}['remove'](_0x5a4c89){this['collection']['remove'](_0x5a4c89),_0x5a4c89['destroy']();}['refreshVisibility'](){for(const _0x4d81d5 of this['collection'])_0x4d81d5['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x27b457){return this['collection']['getByInnerView'](_0x27b457);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1d0b3f of this['collection'])_0x1d0b3f['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x5b9ee1){this['fire']('_activateAnnotation',_0x5b9ee1);}['createAnnotation'](_0xbe7405){return new T(_0xbe7405);}['createAnnotationView'](_0x1444da,_0x38a2cc){return new E(_0x1444da,_0x38a2cc);}['_addActiveAnnotation'](_0x47401a){const _0xf527cd=new Set(this['activeAnnotations']);_0xf527cd['add'](_0x47401a),this['activeAnnotations']=_0xf527cd;}['_removeActiveAnnotation'](_0xfc47c6){const _0x5198e5=new Set(this['activeAnnotations']);_0x5198e5['delete'](_0xfc47c6),this['activeAnnotations']=_0x5198e5;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5af278=this['collection'],_0xb392a7=this['_visibleAnnotations'];function _0x38dd48(_0x3e1288){const _0xff385a=_0x3e1288['source'];_0xff385a['isVisible']&&!_0xb392a7['has'](_0xff385a)?_0xb392a7['add'](_0xff385a):!_0xff385a['isVisible']&&_0xb392a7['has'](_0xff385a)&&_0xb392a7['remove'](_0xff385a),_0xff385a['view']['focusTracker']['remove'](_0xff385a['view']['element']),_0xff385a['view']['focusTracker']['add'](_0xff385a['view']['element']);}this['listenTo'](_0x5af278,'add',(_0x4441d8,_0x763bf8)=>{_0x763bf8['isVisible']&&_0xb392a7['add'](_0x763bf8),this['listenTo'](_0x763bf8,'change:isVisible',_0x38dd48);}),this['listenTo'](_0x5af278,'remove',(_0x3ef44f,_0x3db0dd)=>{_0xb392a7['has'](_0x3db0dd)&&_0xb392a7['remove'](_0x3db0dd),this['stopListening'](_0x3db0dd,'change:isVisible',_0x38dd48);});}['_setupEnterAnnotationKeystroke'](){const _0x17f737=_0x1641f6=>{_0x1641f6['on']('ready',()=>{_0x1641f6['keystrokes']['set'](_0x48ecb2,(_0x1a8ecc,_0x5e2710)=>{const _0x2f9784=_0xa7a780(this['activeAnnotations']['values']());_0x2f9784&&(_0x2f9784['view']['focus'](),_0x5e2710());});});};this['context']instanceof _0x3b8c1f?_0x17f737(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x7a5222,_0x1dcdc5)=>{_0x17f737(_0x1dcdc5);});}['_setupEscapeAnnotationHandling'](){const _0x35585b=_0x4a4d8a=>{const _0x307c93=_0x4a4d8a['source'],_0x5875f5=[];let _0x3431f2;if(Array['isArray'](_0x307c93['target'])){_0x3431f2=_0x307c93['target'][0x0],this['context']instanceof _0x3b8c1f?_0x5875f5['push'](this['context']):this['context']['editors']&&_0x5875f5['push'](...this['context']['editors']);for(const _0x263375 of _0x5875f5)for(const _0x58d79a of _0x263375['editing']['view']['domRoots']['values']())if(_0x58d79a['contains'](_0x3431f2))return void _0x263375['editing']['view']['focus']();_0x3431f2['focus']();}};this['listenTo'](this['collection'],'add',(_0x59b940,_0x40786a)=>{this['listenTo'](_0x40786a,'escape',_0x35585b,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1e66c0,_0x5c7fa4)=>{this['stopListening'](_0x5c7fa4,'escape',_0x35585b);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x5769e4{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2354cf){super(_0x2354cf),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1142cf=this['context']['config'];_0x1142cf['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1142cf['define']('comments.maxThreadTotalWeight',0x1f4),_0x1142cf['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1142cf['define']('comments.CommentThreadView',gt),_0x1142cf['define']('comments.CommentView',Tt),_0x1142cf['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3be396=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x1cc69f,_0x124daa)=>this['_addCommentThread'](_0x124daa)),this['on']('submitCommentThread',(_0x2bda4b,_0x1106a9)=>this['_submitCommentThread'](_0x1106a9)),this['on']('resolveCommentThread',(_0xa9d0d,_0x12505b)=>this['_resolveCommentThread'](_0x12505b)),this['on']('resolveCommentThread',(_0x4ceb2b,_0xf28e14)=>this['_updateActiveAnnotation'](_0xf28e14),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5ac771,_0x10c926)=>this['_reopenCommentThread'](_0x10c926)),this['on']('reopenCommentThread',(_0x3c4fc2,_0x23558b)=>this['_updateActiveAnnotation'](_0x23558b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x47b7a1,_0x171d9c)=>this['_removeCommentThread'](_0x171d9c)),this['on']('updateCommentThread',(_0x1379ff,_0x1c3fef)=>this['_updateCommentThread'](_0x1c3fef)),this['on']('updateCommentThread',(_0x508023,_0x17484e)=>this['_updateActiveAnnotation'](_0x17484e),{'priority':'lowest'}),this['on']('addComment',(_0x32aefe,_0x2152cd)=>this['_addComment'](_0x2152cd)),this['on']('updateComment',(_0x4bc1da,_0x278b7e)=>this['_updateComment'](_0x278b7e)),this['on']('removeComment',(_0x1f4c57,_0x9827ea)=>this['_removeComment'](_0x9827ea)),this['on']('addComment',(_0x5bf288,{threadId:_0x25cd0f,isFromAdapter:_0xae1e83})=>{if(_0xae1e83)return;const _0x53218f=this['getCommentThread'](_0x25cd0f),_0x11f776=_0x53218f&&this['_threadToController']['get'](_0x53218f);_0x11f776&&_0x11f776['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3be396,'change:activeAnnotations',(_0x4529f8,_0x5b3b8d,_0x167a3f)=>{const _0xc46b81=Array['from'](_0x167a3f)['map'](_0x208f7b=>this['_viewToController']['get'](_0x208f7b['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xc46b81?_0xc46b81['model']:null;});}set['adapter'](_0x510e5c){if(this['_adapter'])throw new _0x3e31b7('commentsrepository-adapter-already-set');this['_adapter']=_0x510e5c;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x51060f=_t,threadId:_0x26c744=_0x4e4e67(),comments:_0x3c666b=[],unlinkedAt:_0x56bec1=null,resolvedAt:_0x59ae82=null,resolvedBy:_0x43dd9d=null,target:_0x4e7176=null,context:_0x1eb3b1=null,attributes:_0x3ef044={},isResolvable:_0x1f5ca4=!0x0,isSubmitted:_0x3ee63d=!0x1,isFromAdapter:_0x1807dc=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x51060f),{'channelId':_0x51060f,'threadId':_0x26c744,'comments':_0x3c666b,'unlinkedAt':_0x56bec1,'resolvedAt':_0x59ae82,'resolvedBy':_0x43dd9d,'target':_0x4e7176,'context':_0x1eb3b1,'attributes':_0x3ef044,'isFromAdapter':_0x1807dc,'isResolvable':_0x1f5ca4,'isSubmitted':_0x3ee63d}),this['getCommentThread'](_0x26c744);}['openNewCommentThread']({channelId:_0x3aadd6=_t,threadId:_0x3c5605=_0x4e4e67(),target:_0x527afc,context:_0x4ae6d0=null,isResolvable:_0x2fcd94=!0x0}){if(this['_readOnlyChannels']['has'](_0x3aadd6)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x527afc)throw new _0x3e31b7('commentsrepository-missing-target');const _0x441eed=this['addCommentThread']({'channelId':_0x3aadd6,'threadId':_0x3c5605,'target':_0x527afc,'context':_0x4ae6d0,'isResolvable':_0x2fcd94});if(!_0x441eed)return null;const _0x1ebef8=this['_threadToController']['get'](_0x441eed),_0x2cfa85=_0x1ebef8['view']['commentThreadInputView']['commentInputView'],_0xd0fe22=this['context']['plugins']['get'](y),_0x1de9a6=_0xd0fe22['getByInnerView'](_0x1ebef8['view']);return _0xd0fe22['activate'](_0x1de9a6),_0x2cfa85['once']('editorReady',()=>_0x2cfa85['focus']()),_0x441eed;}['hasCommentThread'](_0x241eb9){if('string'!=typeof _0x241eb9)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x241eb9);}['updateCommentThread']({channelId:_0x3bcda1=_t,threadId:_0x575dab,context:_0x31fac9,unlinkedAt:_0x412e88,attributes:_0x51a7b6,isFromAdapter:_0x3c617d=!0x1}){return this['fire'](Nt('updateCommentThread',_0x3bcda1),{'channelId':_0x3bcda1,'threadId':_0x575dab,'context':_0x31fac9,'unlinkedAt':_0x412e88,'attributes':_0x51a7b6,'isFromAdapter':_0x3c617d}),this['getCommentThread'](_0x575dab);}['getCommentThread'](_0x53bef8){if('string'!=typeof _0x53bef8)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x53bef8);}['fetchCommentThread']({channelId:_0x23e2e0,threadId:_0x4d7036}={}){const _0x323589=this['getCommentThread'](_0x4d7036);if(_0x323589)return Promise['resolve'](_0x323589);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3e31b7('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x23e2e0,'threadId':_0x4d7036})['then'](_0x206fa0=>this['hasCommentThread'](_0x4d7036)?this['getCommentThread'](_0x4d7036):_0x206fa0?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x23e2e0},_0x206fa0)):void 0x0)['catch'](_0x37d3e9=>{throw console['error'](_0x37d3e9),new _0x3e31b7('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x9951ac,skipNotAttached:_0x12d15f=!0x1,skipEmpty:_0x210baa=!0x1,toJSON:_0x292305=!0x1}={}){const _0x3212ed=[];for(const _0x408f94 of this['_threads']['values']())_0x9951ac&&_0x408f94['channelId']!==_0x9951ac||_0x12d15f&&!_0x408f94['isAttached']||_0x210baa&&0x0===_0x408f94['length']||_0x3212ed['push'](_0x408f94);return _0x292305?_0x3212ed['map'](_0x29fc4b=>_0x29fc4b['toJSON']()):_0x3212ed;}['getAnnotationForCommentThread'](_0x3e9518){const _0xcd40a4=this['_threadToController']['get'](_0x3e9518);if(!_0xcd40a4)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0xcd40a4['view'])||null;}['getCommentThreadForAnnotation'](_0x2c99ee){const _0x5dfbda=this['_viewToController']['get'](_0x2c99ee['innerView']);return _0x5dfbda?_0x5dfbda['model']:null;}['setActiveCommentThread'](_0x30a56a){const _0x1641aa=this['context']['plugins']['get'](y);if(!_0x30a56a)return void(this['activeCommentThread']&&_0x1641aa['deactivateAll']());const _0x254571=this['getCommentThread'](_0x30a56a);if(!_0x254571)throw new _0x3e31b7('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x30a56a});if(!this['_threadToController']['has'](_0x254571))throw new _0x3e31b7('commentsrepository-active-not-attached',null,{'threadId':_0x30a56a});const _0x153360=_0x1641aa['getByInnerView'](this['_threadToController']['get'](_0x254571)['view']);_0x1641aa['activate'](_0x153360);}['switchReadOnly'](_0x4f74e7,_0x48f74e){_0x4f74e7?this['_readOnlyChannels']['add'](_0x48f74e):this['_readOnlyChannels']['delete'](_0x48f74e),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x76db19){return this['_readOnlyChannels']['has'](_0x76db19)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4c7249,_0x42b92c){return new vt(_0x4c7249,_0x42b92c);}['setPermissions'](_0x24a330,_0x1404f6=_t){this['_permissions']['set'](_0x1404f6,_0x24a330),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x109242=_t){return this['_permissions']['has'](_0x109242)?this['_permissions']['get'](_0x109242):bt;}['_addCommentThread']({channelId:_0x4d66dd,threadId:_0x548a81,comments:_0x424ca0,unlinkedAt:_0x57959b,resolvedAt:_0x46cd62,resolvedBy:_0x521c50,target:_0x241876,context:_0x58ae1,attributes:_0x2958cd,isFromAdapter:_0x20e506,isResolvable:_0x4a7ea5,isSubmitted:_0x427a60}){if('string'!=typeof _0x548a81)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x548a81});if(this['hasCommentThread'](_0x548a81))throw new _0x3e31b7('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x548a81});const _0xd077e1=new pi(this,{'channelId':_0x4d66dd,'id':_0x548a81,'context':_0x58ae1,'attributes':_0x2958cd,'unlinkedAt':_0x57959b,'resolvedAt':_0x46cd62,'resolvedBy':_0x521c50?this['context']['plugins']['get'](it)['getUser'](_0x521c50):null,'isResolvable':_0x4a7ea5,'isSubmitted':_0x427a60||_0x20e506});this['_threads']['set'](_0x548a81,_0xd077e1);for(const _0x44e7c2 of _0x424ca0)_0xd077e1['_add'](this['_createNewComment']({'threadId':_0x548a81,..._0x44e7c2}));return _0x241876&&_0xd077e1['attachTo'](_0x241876),_0x20e506||!_0xd077e1['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4d66dd,'threadId':_0x548a81});}['_submitCommentThread']({channelId:_0x27bef3,threadId:_0x4cc189}){if(!this['hasCommentThread'](_0x4cc189))throw new _0x3e31b7('commentsrepository-missing-comment-thread',this);const _0x21a6e4=this['getCommentThread'](_0x4cc189);if(_0x21a6e4['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5c45f4,comments:_0x27c625,resolvedAt:_0xd00e7f,resolvedBy:_0x23de1c,context:_0x31c4ad,attributes:_0x17d356}=_0x21a6e4,_0x580537=this['context']['plugins']['get']('PendingActions'),_0x3abbea=_0x580537['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x27bef3,'threadId':_0x5c45f4,'comments':_0x27c625['map'](_0x7f4a7=>_0x7f4a7['toJSON']()),'resolvedAt':_0xd00e7f,'resolvedBy':_0x23de1c?_0x23de1c['id']:_0x23de1c,'context':_0x31c4ad,'attributes':_0x17d356})['then'](({comments:_0x1782e1})=>{_0x580537['remove'](_0x3abbea);for(const _0xb227c4 of _0x1782e1)this['_updateComment']({'channelId':_0x27bef3,'threadId':_0x4cc189,'commentId':_0xb227c4['commentId'],'createdAt':_0xb227c4['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x37fd90=>{throw console['error'](_0x37fd90),new _0x3e31b7('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x5acb9c,target:_0x459855}){const _0xcf9e20=this['getCommentThread'](_0x5acb9c);if(!_0xcf9e20)throw new _0x3e31b7('commentsrepository-attach-missing-comment-thread',this);const _0x296856=this['context']['plugins']['get']('PendingActions'),_0x33ef05=this['context']['plugins']['get'](y),_0x4a4147=this['_createCommentThreadView'](_0xcf9e20),_0x24dd93=new vt(_0xcf9e20,_0x4a4147);let _0x298683=null;_0x4a4147['on']('change:isDirty',(_0x50fef5,_0x3f5e55,_0x20d012)=>{_0x20d012?_0x298683=_0x296856['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x298683&&(_0x296856['remove'](_0x298683),_0x298683=null);}),this['_threadToController']['set'](_0xcf9e20,_0x24dd93),this['_viewToController']['set'](_0x4a4147,_0x24dd93);const _0x2d9d51=new E(this['context']['locale'],_0x4a4147);_0x2d9d51['bind']('length')['to'](_0x4a4147),_0x2d9d51['bind']('isDirty')['to'](_0x4a4147,'isDirty',_0x4a4147,'length',(_0x456a2c,_0x5a89f0)=>_0x456a2c||!_0x5a89f0),_0x2d9d51['bind']('isActive')['to'](_0x4a4147),_0x2d9d51['type']='comment';const _0x166d6c=new T({'view':_0x2d9d51,'target':_0x459855,'type':'comment','isVisible':!_0xcf9e20['archivedAt']&&!!('function'==typeof _0x459855?_0x459855():_0x459855)});return _0x4a4147['on']('escape',()=>{_0x166d6c['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4a4147,_0x166d6c),_0x33ef05['add'](_0x166d6c),_0x166d6c;}['_bindAnnotationToEditors'](_0xd2791c,_0xc4068a){this['listenTo'](_0xd2791c,'editorReady',(_0x5311c8,_0x5095ba)=>{const _0x4df4f3=_0x5095ba['ui']['view']['body']['bodyCollectionContainer'];_0xc4068a['focusableElements']['add'](_0x4df4f3),this['context']instanceof _0x3b8c1f&&this['context']['ui']['focusTracker']['add'](_0x4df4f3);},{'priority':'highest'}),this['listenTo'](_0xd2791c,'editorDestroyed',(_0x548650,_0x473119)=>{const _0x5d2957=_0x473119['ui']['view']['body']['bodyCollectionContainer'];_0xc4068a['focusableElements']['has'](_0x5d2957)&&_0xc4068a['focusableElements']['remove'](_0x5d2957),this['context']instanceof _0x3b8c1f&&this['context']['ui']['focusTracker']['remove'](_0x5d2957);});}['_unbindEditors'](_0x1ec96a){this['stopListening'](_0x1ec96a,'editorReady'),this['stopListening'](_0x1ec96a,'editorDestroyed');}['_createCommentThreadView'](_0x44ea23){const _0x35b24b=this['context']['plugins']['get'](it),{config:_0x22a77b,locale:_0x3df030}=this['context'],_0xaaa8a=pt(_0x22a77b['get']('locale'),_0x3df030);return new(0x0,(_0x22a77b['get']('comments'))['CommentThreadView'])(_0x3df030,_0x44ea23,_0x35b24b['me'],{'editorConfig':{..._0x22a77b['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x22a77b['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x22a77b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22a77b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22a77b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xaaa8a,'CommentView':_0x22a77b['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5792c1,channelId:_0x1aec89,resolvedAt:_0x2773a1,resolvedBy:_0x3bfd07,isFromAdapter:_0x4d513b}){if(!this['hasCommentThread'](_0x5792c1))throw new _0x3e31b7('commentsrepository-missing-comment-thread',null,{'threadId':_0x5792c1});const _0x36605e=this['getCommentThread'](_0x5792c1);if(_0x36605e['isResolved'])throw new _0x3e31b7('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5792c1});const _0x2857f8=this['context']['plugins']['get'](it);if(_0x36605e['resolvedBy']=_0x2857f8['getUser'](_0x3bfd07),_0x36605e['resolvedAt']=_0x2773a1,_0x4d513b||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5b6761=this['context']['plugins']['get']('PendingActions'),_0xa2f746=_0x5b6761['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1aec89,'threadId':_0x5792c1})['then'](({resolvedAt:_0x23c646,resolvedBy:_0x500bc6})=>{_0x5b6761['remove'](_0xa2f746),_0x36605e['resolvedBy']['id']!==_0x500bc6&&(_0x36605e['resolvedBy']=_0x2857f8['getUser'](_0x500bc6)),_0x36605e['resolvedAt']=_0x23c646;})['catch'](_0x43aef6=>{throw console['error'](_0x43aef6),new _0x3e31b7('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x389691,channelId:_0x799669,isFromAdapter:_0x43f393}){if(!this['hasCommentThread'](_0x389691))throw new _0x3e31b7('commentsrepository-missing-comment-thread',null,{'threadId':_0x389691});const _0x4186b5=this['getCommentThread'](_0x389691);if(!_0x4186b5['isResolved'])throw new _0x3e31b7('commentsrepository-reopen-comment-thread',null,{'threadId':_0x389691});if(_0x4186b5['resolvedBy']=null,_0x4186b5['resolvedAt']=null,_0x43f393||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1bf372=this['context']['plugins']['get']('PendingActions'),_0x455db1=_0x1bf372['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x799669,'threadId':_0x389691})['then'](()=>_0x1bf372['remove'](_0x455db1))['catch'](_0x105aa6=>{throw console['error'](_0x105aa6),new _0x3e31b7('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xf5b469,isFromAdapter:_0xdd0ccd}){const _0x38373c=this['getCommentThread'](_0xf5b469);if(!_0x38373c)throw new _0x3e31b7('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xf5b469),this['_threads']['delete'](_0xf5b469),!_0x38373c['isSubmitted']||_0xdd0ccd||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x3b67fe=this['context']['plugins']['get']('PendingActions'),{channelId:_0x469c24}=_0x38373c,_0x257d78=_0x3b67fe['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x469c24,'threadId':_0xf5b469})['then'](()=>_0x3b67fe['remove'](_0x257d78))['catch'](_0x2802c1=>{throw console['error'](_0x2802c1),new _0x3e31b7('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x585cf5,unlinkedAt:_0x1d325a,context:_0x34c25a,attributes:_0x9a3624,isFromAdapter:_0x7bd6d2}){if('string'!=typeof _0x585cf5)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x585cf5});if(!this['hasCommentThread'](_0x585cf5))throw new _0x3e31b7('commentsrepository-missing-comment-thread',null,{'threadId':_0x585cf5});const _0x5a78bf=this['getCommentThread'](_0x585cf5);let _0x370a76=!0x1;if(void 0x0!==_0x34c25a&&_0x5a78bf['context']!==_0x34c25a&&(_0x5a78bf['context']=_0x34c25a,_0x370a76=!0x0),void 0x0!==_0x1d325a&&_0x5a78bf['unlinkedAt']!==_0x1d325a&&(_0x5a78bf['unlinkedAt']=_0x1d325a,_0x370a76=!0x0),_0x9a3624&&!At(_0x9a3624,_0x5a78bf['attributes'])&&(_0x5a78bf['attributes']=_0x9a3624,_0x370a76=!0x0),!_0x370a76)return Promise['resolve']();if(!_0x5a78bf['isSubmitted']||_0x7bd6d2||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x560000=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ed94e}=_0x5a78bf,_0x10b5df=_0x560000['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1ed94e,'threadId':_0x585cf5,'context':_0x34c25a,'unlinkedAt':_0x1d325a,'attributes':_0x9a3624})['then'](()=>_0x560000['remove'](_0x10b5df))['catch'](_0x304234=>{throw console['error'](_0x304234),new _0x3e31b7('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x42bba1){const _0x4b8a04=this['context']['plugins']['get'](y),_0x5b05b8=this['getCommentThread'](_0x42bba1);if(_0x5b05b8['_isAttached']=!0x1,this['_threadToController']['has'](_0x5b05b8)){const _0x2a81b2=this['_threadToController']['get'](_0x5b05b8),_0x52df6f=_0x2a81b2['view'],_0x12fe90=_0x4b8a04['getByInnerView'](_0x52df6f);this['_threadToController']['delete'](_0x5b05b8),this['_viewToController']['delete'](_0x52df6f),_0x12fe90&&_0x4b8a04['remove'](_0x12fe90),_0x2a81b2['destroy'](),_0x52df6f['destroy']()['then'](()=>{this['_unbindEditors'](_0x52df6f);});}}['_updateActiveAnnotation']({threadId:_0xccf0d1,resolvedAt:_0x466a81,unlinkedAt:_0x16590e}){const _0x2f9a48=!!_0x466a81,_0x543568=this['context']['plugins']['get'](y),_0x598812=this['getCommentThread'](_0xccf0d1);if(this['_threadToController']['has'](_0x598812)){const _0x33037b=this['_threadToController']['get'](_0x598812)['view'],_0x10a333=_0x543568['getByInnerView'](_0x33037b);_0x10a333&&(_0x2f9a48&&_0x543568['_removeActiveAnnotation'](_0x10a333),_0x16590e?_0x10a333['isVisible']=!0x1:_0x10a333['refreshVisibility']());}}['_getExternalAuthor'](_0x13e238){const _0xfcd950=this['context']['plugins']['get'](it),_0x29f056=It('external:'+_0x13e238),_0x36b927=_0xfcd950['getUser'](_0x29f056);return _0x36b927||_0xfcd950['addUser']({'id':_0x29f056,'name':_0x13e238});}['_createNewComment']({threadId:_0x4ea450,commentId:_0x22762b=_0x4e4e67(),content:_0x162085,authorId:_0x529610,createdAt:_0x17f695,attributes:_0x11f8b4}){if('string'!=typeof _0x22762b)throw new _0x3e31b7('commentsrepository-invalid-commentid');if('string'!=typeof _0x529610)throw new _0x3e31b7('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x162085||!_0x162085['trim']())throw new _0x3e31b7('commentsrepository-invalid-comment-content');const _0x197869=this['context']['plugins']['get'](it)['getUser'](_0x529610);if(!_0x197869)throw new _0x3e31b7('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x529610});let _0x2c690b=null,_0x39c294=_0x17f695;return _0x11f8b4?.['@external']&&(_0x2c690b=this['_getExternalAuthor'](_0x11f8b4['@external']['authorName']),_0x39c294=new Date(_0x11f8b4['@external']['createdAt'])),new wi(this,{'threadId':_0x4ea450,'id':_0x22762b,'author':_0x2c690b||_0x197869,'creator':_0x197869,'content':_0x162085,'createdAt':_0x17f695,'authoredAt':_0x39c294,'attributes':_0x11f8b4});}['_addComment'](_0x3d8c2f){let {threadId:_0x3a320d,content:_0xf6900c,attributes:_0x1eec8b,isFromAdapter:_0x26af6f}=_0x3d8c2f;const _0x1409cf=this['getCommentThread'](_0x3d8c2f['threadId']);if(!_0x1409cf)throw new _0x3e31b7('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x55759b=this['_createNewComment'](_0x3d8c2f),{id:_0x5cfe71}=_0x55759b;if(_0x1409cf['_add'](_0x55759b),_0x26af6f||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1409cf['isSubmitted'])return Promise['resolve']();const _0x5aa655=this['context']['plugins']['get']('PendingActions'),{channelId:_0xbb3821}=_0x1409cf,_0x1a386b=_0x5aa655['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1eec8b||(_0x1eec8b={}),this['adapter']['addComment']({'channelId':_0xbb3821,'threadId':_0x3a320d,'commentId':_0x5cfe71,'content':_0xf6900c,'attributes':_0x1eec8b})['then'](_0x1fbd27=>{_0x5aa655['remove'](_0x1a386b),_0x1fbd27&&this['_updateComment']({'channelId':_0xbb3821,'threadId':_0x3a320d,'commentId':_0x5cfe71,'createdAt':_0x1fbd27['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4e5710=>{throw console['error'](_0x4e5710),new _0x3e31b7('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x55c46d,commentId:_0x28439d,content:_0x37002a,createdAt:_0x15bc97,attributes:_0x9fee72,isFromAdapter:_0x365dc5}){if(void 0x0!==_0x37002a&&('string'!=typeof _0x37002a||!_0x37002a['trim']()['length']))throw new _0x3e31b7('commentsrepository-update-comment-invalid-content');const _0x88ba9a=this['getCommentThread'](_0x55c46d),_0x1e4c4d=_0x88ba9a['getComment'](_0x28439d);if(!_0x1e4c4d)throw new _0x3e31b7('commentsrepository-update-missing-comment',this);let _0x3cbbc8=!0x1;if(_0x37002a&&_0x37002a!==_0x1e4c4d['content']&&(_0x1e4c4d['isEditable']||_0x365dc5)&&(_0x1e4c4d['content']=_0x37002a,_0x3cbbc8=!0x0),_0x15bc97&&_0x15bc97!==_0x1e4c4d['createdAt']&&(_0x1e4c4d['createdAt']=_0x15bc97,_0x1e4c4d['attributes']&&_0x1e4c4d['attributes']['@external']||(_0x1e4c4d['authoredAt']=_0x15bc97),_0x3cbbc8=!0x0),_0x9fee72&&!At(_0x9fee72,_0x1e4c4d['attributes'])&&(_0x1e4c4d['attributes']=_0x9fee72,_0x3cbbc8=!0x0),!_0x3cbbc8)return Promise['resolve']();if(_0x88ba9a['fire']('commentUpdated'),_0x365dc5||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x354bce=this['context']['plugins']['get']('PendingActions'),{channelId:_0x65740a}=this['getCommentThread'](_0x1e4c4d['threadId']),_0x167412=_0x354bce['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x65740a,'threadId':_0x55c46d,'commentId':_0x28439d,'content':_0x37002a,'attributes':_0x9fee72})['then'](()=>_0x354bce['remove'](_0x167412))['catch'](_0x3eee57=>{throw console['error'](_0x3eee57),new _0x3e31b7('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x5974be,commentId:_0x1878fd,isFromAdapter:_0x8857d2}){const _0x191102=this['getCommentThread'](_0x5974be),_0x4d6328=_0x191102['getComment'](_0x1878fd);if(!_0x4d6328)throw new _0x3e31b7('commentsrepository-remove-missing-comment',this);if(_0x191102['_remove'](_0x4d6328),_0x8857d2||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4a44f4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x14b9a5}=_0x191102,_0x5b2914=_0x4a44f4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x14b9a5,'threadId':_0x5974be,'commentId':_0x1878fd})['then'](()=>_0x4a44f4['remove'](_0x5b2914))['catch'](_0x59f0e5=>{throw console['error'](_0x59f0e5),new _0x3e31b7('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x240a0a(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4f962a,_0x23a0cd){super();const _0x2342d0=_0x23a0cd['isResolvable'];this['channelId']=_0x23a0cd['channelId'],this['id']=_0x23a0cd['id'],this['comments']=new _0x1b1bd5(),this['_repository']=_0x4f962a,this['_isAttached']=!0x1,this['_isSubmitted']=_0x23a0cd['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4f962a,'_permissions',_0x4f962a,'_readOnlyChannels',()=>_0x4f962a['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4f962a,'_permissions',()=>_0x4f962a['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4f962a,'_permissions',()=>{const _0x59d3ec=_0x4f962a['getPermissions'](this['channelId']);return _0x59d3ec['write']||_0x59d3ec['admin'];}),this['bind']('isResolvable')['to'](_0x4f962a,'_permissions',()=>_0x2342d0&&_0x4f962a['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x23a0cd['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4d75d1,_0x360591)=>_0x4d75d1?_0x360591?_0x4d75d1<_0x360591?_0x4d75d1:_0x360591:_0x4d75d1:_0x360591),this['set']('unlinkedAt',_0x23a0cd['unlinkedAt']||null),this['set']('resolvedAt',_0x23a0cd['resolvedAt']||null),this['set']('resolvedBy',_0x23a0cd['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5bd7ff=>!!_0x5bd7ff),this['set']('attributes',_0x23a0cd['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x311bcd,_0x438bd0)=>_0x311bcd+_0x438bd0['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x34e431,id:_0x433b11}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x34e431),{'channelId':_0x34e431,'threadId':_0x433b11});}['setUnlinkedAt'](_0x4c6192){this['_update']({'unlinkedAt':_0x4c6192});}['resolve']({resolvedAt:_0x394df2=new Date(),resolvedBy:_0x265549=null,isFromAdapter:_0x3f6502=!0x1}={}){const _0x13df81=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x3a6b99,id:_0x498371}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x3a6b99),{'channelId':_0x3a6b99,'threadId':_0x498371,'resolvedAt':_0x394df2,'resolvedBy':_0x265549||_0x13df81['id'],'isFromAdapter':_0x3f6502});}['reopen']({isFromAdapter:_0x523735=!0x1}={}){const {channelId:_0x206b6b,id:_0x1f2a08}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x206b6b),{'channelId':_0x206b6b,'threadId':_0x1f2a08,'isFromAdapter':_0x523735});}['setContext'](_0xfd3e87){this['context']||this['_update']({'context':_0xfd3e87});}['setAttribute'](_0x463d3a,_0x147c89){const _0x2059bc=wt(this['attributes']);yt(_0x2059bc,_0x463d3a,_0x147c89),this['_update']({'attributes':_0x2059bc});}['removeAttribute'](_0xb43e8c){const _0xd81169=wt(this['attributes']);Ct(_0xd81169,_0xb43e8c),this['_update']({'attributes':_0xd81169});}['remove']({isFromAdapter:_0x430965=!0x1}={}){const {channelId:_0x24c4f4,id:_0x180458}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x24c4f4),{'channelId':_0x24c4f4,'threadId':_0x180458,'isFromAdapter':_0x430965});}['attachTo'](_0x7902be){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x7902be});}['addComment'](_0x47687e){const {channelId:_0x5c6dc6,id:_0x2a9447}=this;this['_repository']['fire'](Nt('addComment',_0x5c6dc6,_0x2a9447),Object['assign']({'channelId':_0x5c6dc6,'threadId':_0x2a9447},_0x47687e));}['getComment'](_0x236812){if('string'!=typeof _0x236812)throw new _0x3e31b7('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x236812});return this['comments']['get'](_0x236812);}['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'](_0x44139f=>_0x44139f['toJSON']()),'attributes':this['attributes']};}['_add'](_0x312467){return this['listenTo'](_0x312467,'change:authoredAt',()=>{const _0x3b8afb=this['_findOptimalIndex'](_0x312467),_0x3c4b54=this['comments'];_0x3b8afb-0x1!=_0x3c4b54['getIndex'](_0x312467)&&_0x3b8afb+0x1!=_0x3c4b54['getIndex'](_0x312467)&&(this['_remove'](_0x312467),this['_add'](_0x312467));}),this['comments']['add'](_0x312467,this['_findOptimalIndex'](_0x312467));}['_update'](_0x4ae921){const {channelId:_0x21e285,id:_0x58e824}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x21e285),{..._0x4ae921,'channelId':_0x21e285,'threadId':_0x58e824});}['_remove'](_0x90a592){return this['stopListening'](_0x90a592),_0x90a592['destroy'](),this['comments']['remove'](_0x90a592);}['_findOptimalIndex'](_0x2265d1){const _0x52914a=this['comments']['find'](_0x3c498e=>new Date(_0x3c498e['authoredAt'])['getTime']()>new Date(_0x2265d1['authoredAt'])['getTime']());return _0x52914a?this['comments']['getIndex'](_0x52914a):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x240a0a(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x47e012,_0x224d3b){super();const _0x4c906c=_0x47e012['context']['plugins']['get'](it)['me'],_0x1240ac=_0x47e012['getCommentThread'](_0x224d3b['threadId']),_0x3eb5fc=0x0===_0x1240ac['comments']['length'],_0x3b1495=_0x4c906c===_0x224d3b['author'];this['id']=_0x224d3b['id'],this['threadId']=_0x224d3b['threadId'],this['author']=_0x224d3b['author'],this['creator']=_0x224d3b['creator'],this['isExternal']=Boolean(_0x224d3b['attributes']&&_0x224d3b['attributes']['@external']),this['set']('content',_0x224d3b['content']),this['createdAt']=_0x224d3b['createdAt']||new Date(),this['set']('authoredAt',_0x224d3b['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1240ac,'resolvedAt'),this['set']('attributes',_0x224d3b['attributes']||{}),this['bind']('isEditable')['to'](_0x47e012,'_permissions',()=>{const _0x560eb3=_0x47e012['getPermissions'](_0x1240ac['channelId'])['write'],_0x5a30fa=_0x47e012['getPermissions'](_0x1240ac['channelId'])['modifyAll'];return _0x3b1495&&_0x560eb3||!_0x3b1495&&_0x5a30fa;}),this['bind']('isRemovable')['to'](_0x1240ac,'isRemovable',_0x47e012,'_permissions',_0x50df09=>{const _0x444609=_0x47e012['getPermissions'](_0x1240ac['channelId'])['write'],_0x49f483=_0x47e012['getPermissions'](_0x1240ac['channelId'])['modifyAll'];return _0x3b1495&&_0x444609||_0x50df09&&_0x3eb5fc||!_0x3b1495&&_0x49f483&&!_0x3eb5fc;}),this['bind']('isReadOnly')['to'](_0x1240ac,'isReadOnly'),this['_repository']=_0x47e012;}get['weight'](){return Math['max'](function(_0x2febb7){const _0x46e864=document['createElement']('div');return _0x46e864['innerHTML']=_0x2febb7,_0x46e864['textContent']['length'];}(this['content']),0xc8);}['update'](_0x13aef5){const {threadId:_0x44525c,id:_0x5cff3b}=this;if(!this['_repository']['hasCommentThread'](_0x44525c))throw new _0x3e31b7('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x341a62}=this['_repository']['getCommentThread'](_0x44525c);this['_repository']['fire'](Nt('updateComment',_0x341a62,_0x44525c),{'channelId':_0x341a62,'threadId':_0x44525c,'commentId':_0x5cff3b,..._0x13aef5});}['setAttribute'](_0x1eb50c,_0xc7a243){const _0x4399d8=wt(this['attributes']);yt(_0x4399d8,_0x1eb50c,_0xc7a243),this['update']({'attributes':_0x4399d8});}['removeAttribute'](_0x4d2bc2){const _0x3540ba=wt(this['attributes']);Ct(_0x3540ba,_0x4d2bc2),this['update']({'attributes':_0x3540ba});}['remove'](_0x9c9a4f={}){if(!_0x9c9a4f['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x14fcbd,id:_0x372d33}=this;if(!this['_repository']['hasCommentThread'](_0x14fcbd))throw new _0x3e31b7('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x45a072}=this['_repository']['getCommentThread'](_0x14fcbd);this['_repository']['fire'](Nt('removeComment',_0x45a072,_0x14fcbd),{'channelId':_0x45a072,'threadId':_0x14fcbd,'commentId':_0x372d33,..._0x9c9a4f});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x4a2dcf,..._0x2d638d){for(const _0x25f085 of _0x2d638d)void 0x0!==_0x25f085&&(_0x4a2dcf+=':'+String(_0x25f085));return _0x4a2dcf;}class ot extends _0x46685b{constructor(_0x3f795f){super(_0x3f795f),this['set']('hasContent',!0x1);}['refresh'](){const _0x317209=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x37f0ce of _0x317209['getRanges']())if(this['_hasContent'](_0x37f0ce))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x160bbc=_0x4e4e67(),ranges:_0x17f1c2,comment:_0x361198}={}){const _0x492bf0=this['editor']['model'],_0x6fdfc=_0x17f1c2??Array['from'](_0x492bf0['document']['selection']['getRanges']()),_0x134f49=[];for(const _0x1dab29 of _0x6fdfc)this['_hasContent'](_0x1dab29)&&_0x134f49['push'](this['_trimToContent'](_0x1dab29));if(!_0x134f49['length'])throw new _0x3e31b7('addcommentthreadcommand-incorrect-ranges',null);_0x361198&&this['_createCommentThread'](_0x160bbc,_0x361198),this['_createMarkersFromRanges'](_0x160bbc,_0x134f49,!!_0x361198);}['_createMarkersFromRanges'](_0x23d833,_0x53db4b,_0x489b4a){this['editor']['model']['change'](_0x3ff48c=>{for(const _0x8b82d4 of _0x53db4b){const _0x1a3008=_0x4e4e67()['substr'](0x1,0x5),_0x17163c='comment:'+_0x23d833+':'+_0x1a3008;_0x3ff48c['addMarker'](_0x17163c,{'range':_0x8b82d4,'usingOperation':_0x489b4a,'affectsData':_0x489b4a});}});}['_createCommentThread'](_0x12e286,_0x5c17c6){const _0x79c8dc=this['editor']['plugins']['get']('CommentsRepository'),_0x1e1a9a=this['editor']['config']['get']('collaboration.channelId'),_0x4b7cc0=this['editor']['plugins']['get']('Users')['me'];if(!_0x4b7cc0)throw new _0x3e31b7('addcommentthreadcommand-user-not-found',null);_0x79c8dc['addCommentThread']({'threadId':_0x12e286,'channelId':_0x1e1a9a,'comments':[{'authorId':_0x4b7cc0['id'],'content':_0x5c17c6,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x314c10){for(const _0x374606 of _0x314c10['getItems']())if(this['_itemIsContent'](_0x374606))return!0x0;return!0x1;}['_itemIsContent'](_0x446353){return _0x446353['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x446353)&&!_0x446353['is']('element','tableCell');}['_trimToContent'](_0x5037a2){const _0x41ded3=_0x3eab7a=>!this['_itemIsContent'](_0x3eab7a['item']),_0x513f83=_0x5037a2['start']['getLastMatchingPosition'](_0x41ded3),_0x432739=_0x5037a2['end']['getLastMatchingPosition'](_0x41ded3,{'direction':'backward'});return this['editor']['model']['createRange'](_0x513f83,_0x432739);}}class b extends _0x3d233f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcfa39d){super(_0xcfa39d),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5497ce=this['editor'],_0x3dccff=_0x5497ce['model']['document']['selection'],_0x45e949=_0x1f36ab(()=>this['refreshSelectedViews'](),0xa);_0x3dccff['on']('change:range',(_0x1dc283,_0x23eec4)=>{_0x23eec4['directChange']&&(_0x45e949['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5497ce['editing']['view']['document'],'change:isFocused',(_0x5cd5d5,_0x446c0b,_0x276445)=>{_0x276445&&_0x45e949();}),this['listenTo'](_0x5497ce['ui']['focusTracker'],'change:isFocused',(_0x48a351,_0x1ce536,_0x5363ac)=>{_0x5363ac||this['fire']('blur',{'isAnnotationTracked':_0x2822ec=>this['_editorAnnotationsData']['has'](_0x2822ec['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x3c9f60){if(this['_editorAnnotations']['has'](_0x3c9f60['view']))return;this['_editorAnnotations']['add'](_0x3c9f60['view']),this['editor']['ui']['focusTracker']['add'](_0x3c9f60['view']['element']);const _0x48c9b0=this['editor']['plugins']['get'](y);this['listenTo'](_0x48c9b0['collection'],'remove',(_0x828e82,_0x55de5c)=>{this['editor']['ui']['focusTracker']['remove'](_0x55de5c['view']['element']),this['_editorAnnotations']['delete'](_0x55de5c['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1ad011){if('function'!=typeof _0x1ad011)throw new _0x3e31b7('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1ad011);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x327837,annotations:_0x114340}){const _0x4c023f=[],_0x1e2854=this['editor']['model']['document']['selection'],_0x21b000=Array['from'](_0x1e2854['getRanges']());for(const [_0x4fa381,_0x431f17]of this['_editorAnnotationsData']){const _0x276097=_0x4e6c4c(_0x431f17),_0x555fb8=_0x114340['getByInnerView'](_0x4fa381);_0x276097&&_0x555fb8&&_0x4c023f['push']({'annotation':_0x555fb8,'range':_0x276097});}function _0x4e6c4c(_0x1a7448){for(const _0x2cb533 of _0x1a7448)for(const _0x3a0bb2 of _0x21b000)if(_0x2cb533['containsRange'](_0x3a0bb2,!_0x1e2854['isCollapsed']))return _0x2cb533;return null;}return _0x4c023f['sort']((_0x318078,_0x23a14f)=>{const _0x5ac4e9=_0x318078['range'],_0x4a36b5=_0x23a14f['range'];if(!_0x5ac4e9['isEqual'](_0x4a36b5)){if(_0x5ac4e9['containsRange'](_0x4a36b5,!0x0))return 0x1;if(_0x4a36b5['containsRange'](_0x5ac4e9,!0x0))return-0x1;}return _0x318078['annotation']==_0x327837?-0x1:_0x23a14f['annotation']==_0x327837?0x1:0x0;})['map'](_0xb4054=>_0xb4054['annotation']);}get['_editorAnnotationsData'](){const _0xad9ed7=new Map();for(const _0x1c55b2 of Array['from'](this['_dataCollectors']))for(const [_0x37fff0,_0x33dab4]of _0x1c55b2())_0xad9ed7['set'](_0x37fff0,_0x33dab4);return _0xad9ed7;}}class st extends _0x3d233f{['afterInit'](){const _0x4d564d=this['editor'];if(!_0x4d564d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4d564d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3d233f{constructor(_0xe0c7fd){super(_0xe0c7fd),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x36d534=this['editor'],_0x5139d6=_0x36d534['commands']['get']('importWord'),_0xb9bacd=_0x36d534['plugins']['get'](it);_0x5139d6&&(_0x5139d6['on']('execute',(_0x1f0ac8,[,_0x3f3695])=>{_0x3f3695['collaboration_features']={'comments':!0x0,'user_id':_0xb9bacd['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x5139d6,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x220d15,_0x2aca9b){const {comment_threads:_0x4fa80a}=_0x2aca9b;_0x4fa80a&&_0x4fa80a['forEach'](({thread_id:_0x5e050a,comments:_0x4f9555,is_resolved:_0x3b7e42})=>{const _0xe30061=new Date(),_0x359d02=_0x4f9555['map'](({author:_0x4e4a97,content:_0x1ade19,created_at:_0x3b4fcb})=>({'content':_0x1ade19,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0xe30061,'attributes':{'@external':{'authorName':_0x4e4a97,'createdAt':_0x3b4fcb?new Date(_0x3b4fcb):new Date(),'source':'importWord'}}})),_0x4e11ab=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4e11ab,'threadId':_0x5e050a,'comments':_0x359d02,'resolvedAt':_0x3b7e42?_0xe30061:null});});}}class at extends _0x3d233f{constructor(_0x3a3d6d){super(_0x3a3d6d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x32fdf1=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x32fdf1,'contentInsertion',(_0x3e7eea,_0x545d4f)=>this['_removeMarkersWithoutThreads'](_0x545d4f['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4438f6){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4438f6;const _0x2a4e9d=this['editor']['plugins']['get']('CommentsRepository');for(const _0x2121a5 of _0x4438f6['keys']()){const [_0x3b54ab,_0x53271f]=_0x2121a5['split'](':');'comment'!=_0x3b54ab||_0x2a4e9d['hasCommentThread'](_0x53271f)||_0x4438f6['delete'](_0x2121a5);}return _0x4438f6;}['_registerMarkerInClipboardPipeline'](){const _0x4622f5=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xa11c07=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xa11c07&&_0x4622f5['_registerMarkerToCopy']('comment',_0xa11c07);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2f6875){switch(_0x2f6875){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x3cdba8){const _0xd7e833=_0x3cdba8['split'](':');return{'group':_0xd7e833[0x0],'id':_0xd7e833[0x1],'part':_0xd7e833[0x2]};}class ut extends _0x3d233f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1ecc43,_0x95321b)=>{if(!_0x95321b['options']['showCommentHighlights'])return null;if(_0x95321b['options']['ignoreResolvedComments']){const {id:_0x442a26}=ft(_0x1ecc43['markerName']),_0x1dc838=this['editor']['plugins']['get'](o);if(_0x1dc838['getCommentThread'](_0x442a26)?.['isResolved']&&_0x1ecc43['item'])return _0x95321b['consumable']['consume'](_0x1ecc43['item'],'addMarker:'+_0x1ecc43['markerName']),_0x95321b['consumable']['consume'](_0x1ecc43['item'],'removeMarker:'+_0x1ecc43['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x31f11e=>{_0x31f11e['on']('addMarker:comment',(_0x49105c,_0x309667,_0x4e5473)=>{if(!_0x4e5473['options']['showCommentHighlights'])return;const _0x1dd680=_0x309667['item'];if(!_0x1dd680)return;const _0x54f973=_0x4e5473['mapper']['toViewElement'](_0x1dd680);this['editor']['model']['schema']['isObject'](_0x1dd680)&&_0x54f973&&!_0x54f973['getCustomProperty']('widget')&&_0x54f973['is']('containerElement')&&_0x156cb0(_0x54f973,_0x4e5473['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5991b5,{writer:_0x12ce05,options:_0xd98655})=>{if(!_0xd98655['showCommentHighlights'])return null;const _0xed4321=_0x12ce05['createContainerElement']('div'),_0x2c74cd=_0x12ce05['createEmptyElement']('hr');return _0x12ce05['addClass']('ck-horizontal-line',_0xed4321),_0x12ce05['insert'](_0x12ce05['createPositionAt'](_0xed4321,0x0),_0x2c74cd),_0xed4321;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x19ea7c,{writer:_0x131d84,options:_0x45946b})=>{if(!_0x45946b['showCommentHighlights'])return null;const _0xd4bcf8=_0x131d84['createContainerElement']('span'),_0x2ff293=_0x131d84['createEmptyElement']('img');return _0x131d84['addClass']('image-inline',_0xd4bcf8),_0x131d84['insert'](_0x131d84['createPositionAt'](_0xd4bcf8,0x0),_0x2ff293),_0xd4bcf8;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5fb38e,{writer:_0x44423e,options:_0xf6dd26})=>{if(_0xf6dd26['showCommentHighlights'])return _0x44423e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2a7918,_0x53f93f,_0x420ae2)=>{_0x420ae2['options']['showCommentHighlights']&&_0x2a7918['stop']();},{'priority':'high'});}}class r extends _0x3d233f{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9bffc2){super(_0x9bffc2),this['set']('isThreadsLoadingPaused',!0x0),_0x9bffc2['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0xf14b7,_0x28e8bb,_0x4d67d4,_0x33bad7)=>{const _0x1924ec=_0x9bffc2['plugins']['get'](o),_0x4ac3fd=_0x4d67d4?ft(_0x4d67d4)['id']:null;_0x9bffc2['model']['change'](()=>{if(_0x4ac3fd){const _0x3e37f2=this['getAllMarkersForId'](_0x4ac3fd);for(const _0x527729 of _0x3e37f2)_0x9bffc2['editing']['reconvertMarker'](_0x527729);}if(_0x33bad7){const {id:_0x2704fc}=ft(_0x33bad7),_0x1e4dbe=_0x1924ec['getCommentThread'](_0x2704fc);if(_0x1e4dbe&&_0x1e4dbe['unlinkedAt'])return;if(_0x1e4dbe&&!_0x1e4dbe['isAttached'])return;const _0x259505=this['getAllMarkersForId'](_0x2704fc);for(const _0x4a6ea7 of _0x259505)_0x9bffc2['editing']['reconvertMarker'](_0x4a6ea7);}}),_0x4ac3fd&&this['scrollToThreadMarker'](_0x4ac3fd);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x57fb45=this['editor'],_0x3cfc16=_0x57fb45['plugins']['get'](o),_0x43083a=_0x57fb45['config']['get']('collaboration.channelId'),_0x5fc88d=_0x3cfc16['getCommentThreads']()['filter'](_0x3dab0b=>_0x3dab0b['channelId']!==_0x43083a);_0x57fb45['commands']['add']('addCommentThread',new ot(_0x57fb45)),this['listenTo'](_0x57fb45,'change:isReadOnly',(_0x52e738,_0x43a27c,_0x547404)=>{_0x3cfc16['switchReadOnly'](_0x547404,_0x57fb45['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3cfc16,dt('addCommentThread',_0x43083a),(_0xcc7e89,{threadId:_0x51aae5})=>{const _0x594130=this['editor']['plugins']['get'](o)['getCommentThread'](_0x51aae5);_0x594130?.['unlinkedAt']&&this['_attachArchivedThread'](_0x51aae5);}),this['listenTo'](_0x3cfc16,dt('removeCommentThread',_0x43083a),(_0xbdc149,{threadId:_0x72c14f})=>{_0x57fb45['model']['enqueueChange']({'isUndoable':!0x1},_0x373929=>{const _0x4995e5=this['getAllMarkersForId'](_0x72c14f);for(const _0x8b456 of _0x4995e5)_0x373929['removeMarker'](_0x8b456);});}),this['listenTo'](_0x3cfc16,dt('resolveCommentThread',_0x43083a),(_0x423038,{threadId:_0x5eed48})=>{(this['_reconvertMarkers'](_0x5eed48),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5eed48)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3cfc16,dt('reopenCommentThread',_0x43083a),(_0xd164e9,{threadId:_0x403198})=>{this['_reconvertMarkers'](_0x403198);},{'priority':'low'}),this['listenTo'](_0x3cfc16,dt('addComment',_0x43083a),(_0x2a2a21,{threadId:_0x3d5c35,isFromAdapter:_0x48b9cf})=>{const _0x186269=this['getAllMarkersForId'](_0x3d5c35);if(_0x48b9cf||0x0==_0x186269['length']||!_0x3cfc16['hasCommentThread'](_0x3d5c35))return;0x1===_0x3cfc16['getCommentThread'](_0x3d5c35)['length']&&_0x57fb45['model']['enqueueChange']({'isUndoable':!0x1},_0x2add84=>{for(const _0x2b1a86 of _0x186269)_0x2add84['updateMarker'](_0x2b1a86,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5fc88d);}['afterInit'](){!async function(_0x121f7c){const _0x1bbbf3=_0x30451c([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x3ea085=0x73460ab3,_0x20bd55=0x734179f3^_0x3ea085,_0x2ee5c9=window[_0x30451c([0x44,0x61,0x74,0x65])][_0x30451c([0x6e,0x6f,0x77])](),_0x488a4a=_0x121f7c[_0x30451c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x366bc5=new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20c988=>{_0x488a4a[_0x30451c([0x6f,0x6e,0x63,0x65])](_0x30451c([0x72,0x65,0x61,0x64,0x79]),_0x20c988);}),_0x4e105c={[_0x30451c([0x6b,0x74,0x79])]:_0x30451c([0x45,0x43]),[_0x30451c([0x75,0x73,0x65])]:_0x30451c([0x73,0x69,0x67]),[_0x30451c([0x63,0x72,0x76])]:_0x30451c([0x50,0x2d,0x32,0x35,0x36]),[_0x30451c([0x78])]:_0x30451c([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]),[_0x30451c([0x79])]:_0x30451c([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]),[_0x30451c([0x61,0x6c,0x67])]:_0x30451c([0x45,0x53,0x32,0x35,0x36])},_0x1c7cb2=_0x488a4a[_0x30451c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30451c([0x67,0x65,0x74])](_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cec0f(){let _0x349c35,_0x1c32bf=null,_0xc6d45b=null;try{if(_0x1c7cb2==_0x30451c([0x47,0x50,0x4c]))return _0x30451c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x349c35=_0x5f1cad(),!_0x349c35)return _0x30451c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x349c35[_0x30451c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc6d45b=_0xe25b47(_0x349c35[_0x30451c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x349c35[_0x30451c([0x6a,0x74,0x69])])),await _0x502921()?_0x104b20()?_0x116142()?_0x30451c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2276a2()?(_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30451c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c32bf=_0x3bc421(_0x30451c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30451c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c32bf=_0x3bc421(_0x30451c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3aa10b()):_0x30451c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30451c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30451c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30451c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x116142(){const _0x22ed09=[_0x30451c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30451c([0x74,0x72,0x69,0x61,0x6c])][_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ee5c9/0x3e8:0xe10*_0x20bd55;return _0x349c35[_0x30451c([0x65,0x78,0x70])]<_0x22ed09;}function _0x104b20(){const _0x4022ce=_0x349c35[_0x30451c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4022ce)return!0x1;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x2a])))return!0x0;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x43,0x4d,0x54])))return!0x0;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x25f50c())return!0x0;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x52,0x43,0x4d,0x54]))){if(_0x2c24e6())return!0x0;if(_0xbca993()||_0x2e885f())return!0x0;}return!0x1;}function _0x2276a2(){const _0x2cf091=_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cf091||0x0==_0x2cf091[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d37f6}=new URL(window[_0x30451c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cf091[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d37f6))return!0x0;const _0x3473b4=_0x2d37f6[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e]));return _0x2cf091[_0x30451c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e9ddc=>_0x1e9ddc[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x2a])))[_0x30451c([0x6d,0x61,0x70])](_0x335a30=>_0x335a30[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e])))[_0x30451c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4dc60d=>_0x4dc60d[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3473b4[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30451c([0x6d,0x61,0x70])](_0x3d789d=>Array(_0x3473b4[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d789d[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30451c([0x66,0x69,0x6c,0x6c])](_0x3d789d[0x0]===_0x30451c([0x2a])?_0x30451c([0x2a]):'')[_0x30451c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d789d))[_0x30451c([0x73,0x6f,0x6d,0x65])](_0xda64f1=>_0x3473b4[_0x30451c([0x65,0x76,0x65,0x72,0x79])]((_0x342bcf,_0x2fb188)=>_0xda64f1[_0x2fb188]===_0x342bcf||_0xda64f1[_0x2fb188]===_0x30451c([0x2a])));}function _0x3aa10b(){return _0x1c32bf&&_0xc6d45b?new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa5fe1c,_0x1a9719)=>{_0x1c32bf[_0x30451c([0x74,0x68,0x65,0x6e])](_0xa5fe1c,_0x1a9719),_0xc6d45b[_0x30451c([0x74,0x68,0x65,0x6e])](_0x4dd4de=>{_0x4dd4de!=_0x30451c([0x56,0x61,0x6c,0x69,0x64])&&_0xa5fe1c(_0x4dd4de);},_0x1a9719);}):_0x1c32bf||_0xc6d45b||_0x30451c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe25b47(_0x492d89,_0x17dc31){return new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393cec=>{if(_0x5cbab3())return _0x393cec(_0x30451c([0x56,0x61,0x6c,0x69,0x64]));_0x3322d9(),_0x488a4a[_0x30451c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30451c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x234550=!0x1;const _0x1715c2=_0x4e4e67();function _0x200646(_0x559eca){return!!_0x559eca&&(typeof _0x559eca===_0x30451c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x559eca===_0x30451c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x559eca[_0x30451c([0x74,0x68,0x65,0x6e])]===_0x30451c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x559eca[_0x30451c([0x63,0x61,0x74,0x63,0x68])]===_0x30451c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x280e25(_0x29d9bd){_0x4c682f(_0x29d9bd)[_0x30451c([0x74,0x68,0x65,0x6e])](_0x295d42=>{if(!_0x295d42||_0x295d42[_0x30451c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30451c([0x6f,0x6b]))return _0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x439da1(_0x42b473(_0x1715c2+_0x17dc31))!=_0x295d42[_0x30451c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30451c([0x56,0x61,0x6c,0x69,0x64]);})[_0x30451c([0x74,0x68,0x65,0x6e])](_0x368952=>(_0x27d0a5(),_0x368952),()=>{const _0x38e213=_0x2c99d1();return null==_0x38e213?(_0x27d0a5(),_0x30451c([0x56,0x61,0x6c,0x69,0x64])):_0x30451c(_0x2ee5c9-_0x38e213>(0x574a8eb3^_0x3ea085)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30451c([0x74,0x68,0x65,0x6e])](_0x393cec)[_0x30451c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x393cec(_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x154f1a=0x7370e433^_0x3ea085;function _0x27d0a5(){const _0x2b80bf=_0x30451c([0x6c,0x6c,0x63,0x74,0x2d])+_0x439da1(_0x42b473(_0x492d89)),_0x279956=_0x21c325(_0x439da1(window[_0x30451c([0x4d,0x61,0x74,0x68])][_0x30451c([0x63,0x65,0x69,0x6c])](_0x2ee5c9/_0x154f1a)));window[_0x30451c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30451c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b80bf,_0x279956);}function _0x2c99d1(){const _0x5200ad=_0x30451c([0x6c,0x6c,0x63,0x74,0x2d])+_0x439da1(_0x42b473(_0x492d89)),_0x4efc87=window[_0x30451c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30451c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5200ad);return _0x4efc87?window[_0x30451c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c325(_0x4efc87),0x10)*_0x154f1a:null;}function _0x4c682f(_0x2d6ef3){return new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4dae6a,_0x538280)=>{_0x2d6ef3[_0x30451c([0x74,0x68,0x65,0x6e])](_0x4dae6a,_0x538280),window[_0x30451c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x538280,0x7347de73^_0x3ea085);});}}_0x488a4a[_0x30451c([0x6f,0x6e])](_0x30451c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59666e,_0x547d89)=>{if(_0x547d89[0x0]!=_0x492d89)return _0x393cec(_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x547d89[0x1]={..._0x547d89[0x1],[_0x30451c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1715c2};},{[_0x30451c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30451c([0x68,0x69,0x67,0x68])}),_0x488a4a[_0x30451c([0x6f,0x6e])](_0x30451c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10e04e=>{_0x200646(_0x10e04e[_0x30451c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x234550=!0x0,_0x280e25(_0x10e04e[_0x30451c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30451c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30451c([0x6c,0x6f,0x77])}),_0x366bc5[_0x30451c([0x74,0x68,0x65,0x6e])](()=>{_0x234550||_0x393cec(_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cbab3(){return _0x488a4a[_0x30451c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30451c([0x76,0x69,0x65,0x77])][_0x30451c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30451c([0x61,0x75,0x74,0x6f]);}function _0x3322d9(){_0x488a4a[_0x30451c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30451c([0x76,0x69,0x65,0x77])][_0x30451c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30451c([0x61,0x75,0x74,0x6f]);}}function _0x3bc421(_0x31960d){const _0x5031d9=[new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c10da=>setTimeout(_0x5c10da,0x734f347f^_0x3ea085)),_0x366bc5[_0x30451c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b5ee=>{let _0x3888d8=0x0;_0x488a4a[_0x30451c([0x6d,0x6f,0x64,0x65,0x6c])][_0x30451c([0x6f,0x6e])](_0x30451c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f0c92,_0x581f87)=>{_0x581f87[0x0][_0x30451c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3888d8++,_0x3888d8==(0x73460b4b^_0x3ea085)&&(_0x21b5ee(),_0x3f0c92[_0x30451c([0x6f,0x66,0x66])]());});}))];return window[_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30451c([0x72,0x61,0x63,0x65])](_0x5031d9)[_0x30451c([0x74,0x68,0x65,0x6e])](()=>_0x31960d);}async function _0x4034c6(){await _0x366bc5,_0x488a4a[_0x30451c([0x6d,0x6f,0x64,0x65,0x6c])][_0x30451c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee88a,_0x488a4a[_0x30451c([0x6d,0x6f,0x64,0x65,0x6c])][_0x30451c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee88a,_0x488a4a[_0x30451c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30451c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25f50c(){return window[_0x30451c([0x67,0x6c,0x6f,0x62])]&&window[_0x30451c([0x67,0x6c,0x6f,0x62])][_0x30451c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2c24e6(){return _0x304f3e(_0x30451c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x876bad(_0x30451c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x30451c([0x73,0x74,0x61,0x74,0x65])]==_0x30451c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbca993(){return _0x304f3e(_0x30451c([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 _0x2e885f(){return _0x304f3e(_0x30451c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x44257e(_0x2edb95){const _0x19002a=_0x143bf7();_0x488a4a[_0x19002a]=_0x30451c([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2edb95,_0x2edb95!=_0x30451c([0x56,0x61,0x6c,0x69,0x64])&&_0x4034c6();}function _0x143bf7(){const _0x8d40c5=window[_0x30451c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30451c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30451c([0x6e,0x6f,0x77])]())[_0x30451c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30451c([0x2e]),'');let _0x58d3cc=_0x30451c([0x4b]);for(let _0x256a73=0x0;_0x256a73<_0x8d40c5[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x256a73+=0x2){let _0x85ea3=window[_0x30451c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8d40c5[_0x30451c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x256a73,_0x256a73+0x2));_0x85ea3>=_0x1bbbf3[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x85ea3-=_0x1bbbf3[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58d3cc+=_0x1bbbf3[_0x85ea3];}return _0x58d3cc;}function _0x5f1cad(){const _0x5c8aa4=_0x1c7cb2[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e]));if(0x3!=_0x5c8aa4[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18614e(_0x5c8aa4[0x1]);function _0x18614e(_0x136062){const _0x2ab6be=_0x345d9f(_0x136062);return _0x2ab6be&&_0x2d5133()?_0x2ab6be:null;function _0x2d5133(){const _0x1fee80=_0x2ab6be[_0x30451c([0x6a,0x74,0x69])],_0x511ea9=window[_0x30451c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fee80[_0x30451c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fee80[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x460327={..._0x2ab6be,[_0x30451c([0x6a,0x74,0x69])]:_0x1fee80[_0x30451c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fee80[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x460327[_0x30451c([0x76,0x63])],_0x42b473(_0x460327)==_0x511ea9;}}}async function _0x502921(){let _0x5510d6=!0x0;try{const _0x3789db=_0x1c7cb2[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e])),[_0x345bd3,_0x14b74e,_0x2f4f1f]=_0x3789db;return _0xf55514(_0x345bd3),await _0x4bc19a(_0x345bd3,_0x14b74e,_0x2f4f1f),_0x5510d6;}catch{return!0x1;}function _0xf55514(_0x17fcaa){const _0x4ebb00=_0x345d9f(_0x17fcaa);_0x4ebb00&&_0x4ebb00[_0x30451c([0x61,0x6c,0x67])]==_0x30451c([0x45,0x53,0x32,0x35,0x36])||(_0x5510d6=!0x1);}async function _0x4bc19a(_0x397323,_0x55fa04,_0xd9a32a){const _0xe4c9af=window[_0x30451c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30451c([0x66,0x72,0x6f,0x6d])](_0x114eba(_0xd9a32a),_0x3cd9a6=>_0x3cd9a6[_0x30451c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe3350=new window[(_0x30451c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30451c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x397323+_0x30451c([0x2e])+_0x55fa04),_0x82149c=window[_0x30451c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30451c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x82149c)return;const _0x1855cd=await _0x82149c[_0x30451c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30451c([0x6a,0x77,0x6b]),_0x4e105c,{[_0x30451c([0x6e,0x61,0x6d,0x65])]:_0x30451c([0x45,0x43,0x44,0x53,0x41]),[_0x30451c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30451c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30451c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x82149c[_0x30451c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30451c([0x6e,0x61,0x6d,0x65])]:_0x30451c([0x45,0x43,0x44,0x53,0x41]),[_0x30451c([0x68,0x61,0x73,0x68])]:{[_0x30451c([0x6e,0x61,0x6d,0x65])]:_0x30451c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1855cd,_0xe4c9af,_0xe3350)||(_0x5510d6=!0x1);}}function _0x345d9f(_0x135885){return _0x135885[_0x30451c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30451c([0x65,0x79]))?JSON[_0x30451c([0x70,0x61,0x72,0x73,0x65])](_0x114eba(_0x135885)):null;}function _0x114eba(_0x15fee1){return window[_0x30451c([0x61,0x74,0x6f,0x62])](_0x15fee1[_0x30451c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30451c([0x2b]))[_0x30451c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30451c([0x2f])));}function _0x42b473(_0x32ad5a){let _0x6c7c6d=0x1505;function _0x26b82b(_0x3cfbd7){for(let _0x4771b6=0x0;_0x4771b6<_0x3cfbd7[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4771b6++){const _0x1e6e6d=_0x3cfbd7[_0x30451c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4771b6);_0x6c7c6d=(_0x6c7c6d<<0x5)+_0x6c7c6d+_0x1e6e6d,_0x6c7c6d&=_0x6c7c6d;}}function _0x2f1a2b(_0x5e806b){Array[_0x30451c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e806b)?_0x5e806b[_0x30451c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f1a2b):_0x5e806b&&typeof _0x5e806b==_0x30451c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30451c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e806b)[_0x30451c([0x73,0x6f,0x72,0x74])]()[_0x30451c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4347a2,_0x542df0])=>{_0x26b82b(_0x4347a2),_0x2f1a2b(_0x542df0);}):_0x26b82b(window[_0x30451c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e806b));}return _0x2f1a2b(_0x32ad5a),_0x6c7c6d>>>0x0;}function _0x439da1(_0x10fd6e){return _0x10fd6e[_0x30451c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30451c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30451c([0x30]));}function _0x21c325(_0x59230a){return _0x59230a[_0x30451c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30451c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30451c([0x6a,0x6f,0x69,0x6e])]('');}function _0x304f3e(_0x311f02){return _0x488a4a[_0x30451c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30451c([0x68,0x61,0x73])](_0x311f02);}function _0x876bad(_0x35fa96){return _0x488a4a[_0x30451c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30451c([0x67,0x65,0x74])](_0x35fa96);}function _0x3ee88a(){}function _0x30451c(_0x305a2e){return _0x305a2e['map'](_0x48c81f=>String['fromCharCode'](_0x48c81f))['join']('');}_0x44257e(await _0x5cec0f());}(this);}['destroy'](){const _0x5c6c73=this['editor']['plugins']['get'](o),_0x485fb5=this['editor']['config']['get']('collaboration.channelId');for(const _0x2670ab of _0x5c6c73['getCommentThreads']({'channelId':_0x485fb5}))_0x5c6c73['_detachCommentThread'](_0x2670ab['id']),_0x5c6c73['_threads']['delete'](_0x2670ab['id']);super['destroy']();}['hasMarkerForId'](_0x288fd8){return this['getAllMarkersForId'](_0x288fd8)['length']>0x0;}['getAllMarkersForId'](_0x4e89e2){const _0x1dc02e=[];for(const _0x47a7f7 of this['editor']['model']['markers'])_0x47a7f7['name']['startsWith']('comment:'+_0x4e89e2)&&_0x1dc02e['push'](_0x47a7f7);return _0x1dc02e;}['scrollToThreadMarker'](_0x584fa1){setTimeout(()=>{const _0x5b2fa4=this['_getTargetForId'](_0x584fa1);if(!_0x5b2fa4)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x584fa1&&nt({'target':_0x5b2fa4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x47cc52){this['editor']['model']['change'](()=>{for(const _0x3c8f62 of this['getAllMarkersForId'](_0x47cc52))this['editor']['editing']['reconvertMarker'](_0x3c8f62);});}['_attachArchivedThread'](_0x31588c){const _0x4d2035=this['editor']['plugins']['get'](o),_0x1df49d=this['editor']['plugins']['get'](b),_0x27a95f=_0x4d2035['getCommentThread'](_0x31588c);if(!_0x27a95f['isAttached']){const _0x38cbd2=_0x27a95f['attachTo'](()=>this['_getTargetForId'](_0x27a95f['id']));_0x1df49d['registerAnnotation'](_0x38cbd2),_0x27a95f['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x2082e7=this['editor'],_0x5b2cce=_0x2082e7['plugins']['get'](it);_0x2082e7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4d7a05,_0x3c23db)=>{const {id:_0x20f917}=ft(_0x4d7a05['markerName']),_0x1b9cba=_0x2082e7['plugins']['get'](o)['getCommentThread'](_0x20f917),_0x312d07=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x20f917;let _0x19cda8;if(_0x1b9cba&&_0x1b9cba['isResolved']&&!_0x312d07&&_0x4d7a05['item'])return _0x3c23db['consumable']['consume'](_0x4d7a05['item'],'addMarker:'+_0x4d7a05['markerName']),_0x3c23db['consumable']['consume'](_0x4d7a05['item'],'removeMarker:'+_0x4d7a05['markerName']),null;const _0x155fc1=['ck-comment-marker'];return _0x312d07&&_0x155fc1['push']('ck-comment-marker--active'),_0x19cda8=_0x1b9cba?.['length']?_0x1b9cba['comments']['first']['author']['id']:_0x5b2cce['me']['id'],{'classes':_0x155fc1,'attributes':{'data-comment':_0x20f917,'data-author-id':_0x19cda8}};}}),_0x2082e7['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1bf637,{options:_0x3473fa})=>{if(_0x3473fa['showCommentHighlights'])return null;const _0x19245f=_0x2082e7['plugins']['get'](o),_0x5a9d88=_0x2082e7['model']['markers']['get'](_0x1bf637),{id:_0x2c6dc3,part:_0xeb7e2f}=ft(_0x1bf637);return _0x5a9d88&&!_0x5a9d88['affectsData']||_0x3473fa['ignoreResolvedComments']&&_0x19245f['getCommentThread'](_0x2c6dc3)?.['isResolved']?null:{'group':'comment','name':_0xeb7e2f?_0x2c6dc3+':'+_0xeb7e2f:_0x2c6dc3};}}),_0x2082e7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x500d7a,{writer:_0x4a0b5d})=>_0x4a0b5d['createElement']('$marker',{'data-name':'comment:'+_0x500d7a['getAttribute']('id')})}),_0x2082e7['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3aa05d=this['editor'],_0x9026d9=_0x3aa05d['plugins']['get'](o),_0x41bd3a=new Set(),_0x22c323=new Set();_0x3aa05d['model']['document']['registerPostFixer'](_0x474693=>{let _0x58cce0=!0x1;for(const {name:_0x14ea95,data:_0x153721}of _0x3aa05d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x542538,id:_0x4fd806}=ft(_0x14ea95);let _0x130cd7=_0x153721['newRange'];if('comment'!==_0x542538||!_0x130cd7)continue;const _0x548e59='$graveyard'===_0x130cd7['root']['rootName'];_0x548e59||(_0x130cd7=ht(_0x130cd7,_0x3aa05d['model']),!_0x130cd7||_0x130cd7['isCollapsed']||!_0x153721['newRange']||_0x130cd7['isEqual'](_0x153721['newRange']))?_0x3aa05d['model']['hasContent'](_0x130cd7)&&!_0x548e59?this['isThreadsLoadingPaused']?_0x41bd3a['add'](_0x14ea95):this['_handleThreadMarker'](_0x14ea95,_0x4fd806):(_0x22c323['add'](_0x14ea95),_0x41bd3a['delete'](_0x14ea95),_0x474693['removeMarker'](_0x14ea95),_0x58cce0=!0x0):(_0x474693['updateMarker'](_0x14ea95,{'range':_0x130cd7}),_0x58cce0=!0x0);}return _0x58cce0;}),this['on']('change:isThreadsLoadingPaused',(_0x149157,_0x1b339e,_0x520048)=>{if(!_0x520048&&_0x41bd3a['size'])for(const _0x4f2be8 of _0x41bd3a){const {id:_0x18885f}=ft(_0x4f2be8);_0x41bd3a['delete'](_0x4f2be8),_0x3aa05d['model']['markers']['get'](_0x4f2be8)&&this['_handleThreadMarker'](_0x4f2be8,_0x18885f);}}),this['listenTo'](_0x3aa05d['model']['document'],'change',()=>{for(const {name:_0x129e5a,data:{newRange:_0x12e460}}of _0x3aa05d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5e1071,id:_0x1b2a73}=ft(_0x129e5a);if('comment'!==_0x5e1071)continue;const _0x185996=_0x9026d9['getCommentThread'](_0x1b2a73),_0x3c0246=this['hasMarkerForId'](_0x1b2a73);_0x185996&&(!_0x185996['_hasTargetInContent']&&_0x12e460&&_0x3aa05d['editing']['view']['once']('render',()=>{const _0x1788a9=_0x3aa05d['plugins']['get'](y),_0x2190ea=_0x9026d9['_threadToController']['get'](_0x185996)['view'];_0x1788a9['getByInnerView'](_0x2190ea)['refreshVisibility']();},{'priority':'low'}),_0x185996['_hasTargetInContent']=_0x3c0246||!!_0x12e460),_0x12e460||(_0x22c323['add'](_0x129e5a),_0x41bd3a['delete'](_0x129e5a));}for(const _0x259449 of _0x22c323){const {id:_0x537e4f}=ft(_0x259449),_0x4c8764=_0x9026d9['getCommentThread'](_0x537e4f);if(_0x41bd3a['delete'](_0x259449),!_0x4c8764)continue;const _0x4ab060=this['hasMarkerForId'](_0x537e4f);_0x4ab060||_0x4c8764['isSubmitted']?_0x4ab060||_0x4c8764['unlinkedAt']||_0x4c8764['setUnlinkedAt'](new Date()):_0x4c8764['remove']();}_0x22c323['clear']();});}['_handleInitialThreads'](_0x1613dc){_0x1613dc['forEach'](_0x4d7d49=>{_0x4d7d49['unlinkedAt']&&this['_attachArchivedThread'](_0x4d7d49['id']);});}['_getTargetForId'](_0x11893a){const _0x1ff00b=this['editor'],_0x44c832=this['getAllMarkersForId'](_0x11893a);return et(_0x1ff00b['editing'],_0x44c832);}['_getTextContext'](_0x3dfd6c){const _0x4c67a4=this['getAllMarkersForId'](_0x3dfd6c);let _0x5cb030='',_0x3ff508=!0x1;for(const _0x2cf6f1 of _0x4c67a4){const _0x21717e=_0x2cf6f1['getRange']();for(const _0x505186 of Array['from'](_0x21717e['getItems']()))_0x505186['is']('$textProxy')?(_0x5cb030&&_0x3ff508&&(_0x5cb030+='\x20',_0x3ff508=!0x1),_0x5cb030+=_0x505186['data']):_0x3ff508=!0x0;_0x3ff508=!0x0;}return _0x5cb030['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x10434f,_0x1bd66c){const _0x3540bf=this['editor'],_0x56af04=_0x3540bf['plugins']['get'](o);let _0x34656b=_0x56af04['getCommentThread'](_0x1bd66c);const _0x22c46b=_0x3540bf['config']['get']('collaboration.channelId'),_0x196a71=_0x3540bf['plugins']['get'](b);if(_0x34656b&&(_0x34656b['unlinkedAt']&&_0x34656b['setUnlinkedAt'](null),_0x34656b['isAttached']))return _0x34656b;return!this['getAllMarkersForId'](_0x1bd66c)[0x0]['managedUsingOperations']?_0x3540bf['editing']['view']['once']('render',()=>{if(_0x56af04['getCommentThread'](_0x1bd66c))return;const _0x49ba32=_0x3540bf['plugins']['get'](y);_0x34656b=_0x56af04['openNewCommentThread']({'channelId':_0x22c46b,'threadId':_0x1bd66c,'target':()=>this['_getTargetForId'](_0x1bd66c),'context':{'type':'text','value':this['_getTextContext'](_0x1bd66c)}});const _0x21b7f0=_0x56af04['_threadToController']['get'](_0x34656b)['view'],_0x22c9b7=_0x49ba32['getByInnerView'](_0x21b7f0);_0x22c9b7&&_0x196a71['registerAnnotation'](_0x22c9b7);},{'priority':'low'}):_0x56af04['fetchCommentThread']({'channelId':_0x22c46b,'threadId':_0x1bd66c})['then'](_0x5d950c=>{if('destroyed'!==_0x3540bf['state']){if(_0x34656b=_0x5d950c,_0x34656b&&!_0x34656b['isAttached']){const _0x29813b=_0x34656b['attachTo'](()=>this['_getTargetForId'](_0x1bd66c));_0x196a71['registerAnnotation'](_0x29813b),_0x34656b['isResolved']&&this['_reconvertMarkers'](_0x1bd66c);}else{if(!_0x34656b){const _0xfb15ca=this['getAllMarkersForId'](_0x1bd66c);_0x3540bf['model']['change'](_0x1423d5=>{for(const _0x204263 of _0xfb15ca)_0x1423d5['removeMarker'](_0x204263);});}}}}),_0x34656b;}['_handleThreadMarker'](_0x1c0c55,_0x7633e0){const _0x2558d3=this['_attachMarkerToThread'](_0x1c0c55,_0x7633e0);_0x2558d3&&!_0x2558d3['context']&&_0x2558d3['setContext']({'type':'text','value':this['_getTextContext'](_0x7633e0)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4f331b=this['editor'];rt(_0x4f331b['model'],({left:_0x27c124,entered:_0x1ca1a1})=>{for(const _0x4ebe02 of _0x27c124)if(mt(_0x4ebe02)){_0x4f331b['ui']['ariaLiveAnnouncer']['announce'](N(_0x4f331b['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x4bc853 of _0x1ca1a1)if(mt(_0x4bc853)){_0x4f331b['ui']['ariaLiveAnnouncer']['announce'](N(_0x4f331b['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x5c46b2)));break;}});}}function dt(_0x100c44,_0x29bca1){return _0x29bca1?_0x100c44+':'+_0x29bca1:_0x100c44;}function ht(_0x1d514e,_0x2a466a){const _0x190e53=_0x2a466a['schema'],_0x4d3b7f=_0x2a466a['createRange'](_0x1d514e['start']);for(const _0x4eda5a of _0x1d514e['getWalker']()){const {type:_0x9e4572,item:_0xd13f38,nextPosition:_0x1a63b2}=_0x4eda5a;if('text'===_0x9e4572||_0x190e53['isObject'](_0xd13f38)){const _0x43227b=_0x2a466a['createPositionBefore'](_0xd13f38);_0x4d3b7f['isCollapsed']&&(_0x4d3b7f['start']=_0x43227b),_0x4d3b7f['end']=_0x1a63b2;}}return _0x4d3b7f;}function mt(_0x151827){return'comment'===ft(_0x151827['name'])['group'];}class s extends _0x3d233f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x55cb54=this['editor'],_0x1d79e4=_0x55cb54['plugins']['get'](o),_0x297f8e=_0x55cb54['plugins']['get'](r),_0x4a8090=_0x55cb54['plugins']['get'](y),_0x427dfd=_0x55cb54['plugins']['get'](b);_0x55cb54['ui']['componentFactory']['add']('comment',()=>{const _0x1c3977=this['_createUIButton'](_0x56f2fa);return _0x1c3977['tooltip']=!0x0,_0x1c3977;}),_0x55cb54['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0xf31b41)),_0x427dfd['addSourceCollector'](()=>{const _0x5575e2=[];for(const [_0x15e999,_0x4c372f]of _0x1d79e4['_threadToController']){const _0xb32b1e=_0x297f8e['getAllMarkersForId'](_0x15e999['id']),_0x19a11c=_0xb32b1e['map'](_0x358a9e=>_0x358a9e['getRange']());_0xb32b1e['length']>0x0&&_0x5575e2['push']([_0x4c372f['view'],_0x19a11c]);}return _0x5575e2;}),this['listenTo'](_0x4a8090,'change:activeAnnotations',(_0x5dc306,_0x263159,_0x5921c4)=>{const _0x52cb40=Array['from'](_0x5921c4)['map'](_0xe4509e=>_0xe4509e['innerView'])['find'](_0x57f197=>_0x1d79e4['_viewToController']['has'](_0x57f197));if(!_0x52cb40)return void(_0x297f8e['activeMarker']=null);const _0x3f59a6=_0x1d79e4['_viewToController']['get'](_0x52cb40)['model']['id'],_0x55b4bc='comment:'+_0x3f59a6;_0x3f59a6&&_0x297f8e['hasMarkerForId'](_0x3f59a6)?_0x297f8e['activeMarker']=_0x55b4bc:_0x297f8e['activeMarker']&&(_0x297f8e['activeMarker']=null);}),this['listenTo'](_0x1d79e4,'removeCommentThread',(_0x383981,{threadId:_0x2074ab,isFromAdapter:_0x5a4741})=>{!_0x5a4741&&_0x55cb54['ui']['focusTracker']['isFocused']&&_0x297f8e['hasMarkerForId'](_0x2074ab)&&_0x55cb54['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1d79e4,'addComment',(_0x56a708,{threadId:_0x328e29,isFromAdapter:_0x42edd8})=>{if(_0x42edd8||!_0x297f8e['hasMarkerForId'](_0x328e29)||!_0x1d79e4['hasCommentThread'](_0x328e29))return;0x1===_0x1d79e4['getCommentThread'](_0x328e29)['length']&&(_0x55cb54['editing']['view']['focus'](),_0x56a708['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x115e45=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59a2cc;for(const _0x5097a4 in _0x115e45){const _0x18f29e=_0x5097a4,_0x32ee0e=_0x115e45[_0x18f29e];if('commentsLicenseKeyValid'==_0x32ee0e||'commentsLicenseKeyInvalid'==_0x32ee0e||'commentsLicenseKeyExpired'==_0x32ee0e||'commentsLicenseKeyDomainLimit'==_0x32ee0e||'commentsLicenseKeyNotAllowed'==_0x32ee0e||'commentsLicenseKeyEvaluationLimit'==_0x32ee0e||'commentsLicenseKeyTrialLimit'==_0x32ee0e||'commentsLicenseKeyUsageLimit'==_0x32ee0e){delete _0x115e45[_0x18f29e],_0x59a2cc=_0x32ee0e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x59a2cc&&_0x115e45['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x59a2cc&&_0x115e45['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x59a2cc&&_0x115e45['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x398a20){const _0x8175fb=this['editor'],_0x441327=new _0x398a20(_0x8175fb['locale']),_0x28b826=_0x8175fb['commands']['get']('addCommentThread');return _0x441327['set']({'label':N(_0x8175fb['locale'],'Comment'),'icon':_0x417cca}),_0x441327['bind']('isEnabled')['to'](_0x28b826,'hasContent'),this['listenTo'](_0x441327,'execute',()=>{_0x28b826['execute']();}),_0x441327;}}class i extends _0x3d233f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x4926a3){super(_0x4926a3),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5e719a,_0x110804,_0x34eb31)=>{_0x34eb31?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x7f0638,_0x224b54]of this['editor']['commands'])_0x224b54['affectsData']&&'addCommentThread'!==_0x7f0638&&_0x224b54['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 _0x1b8b82=this['editor']['editing']['view']['document'];this['listenTo'](_0x1b8b82,'cut',_0x31d3dc=>_0x31d3dc['stop'](),{'priority':'highest'}),this['listenTo'](_0x1b8b82,'clipboardInput',_0x10ed4d=>_0x10ed4d['stop'](),{'priority':'highest'}),this['listenTo'](_0x1b8b82,'delete',_0x41b51f=>_0x41b51f['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5645a0,_0x11729c]of this['editor']['commands'])_0x11729c['affectsData']&&'addCommentThread'!==_0x5645a0&&_0x11729c['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 j extends _0x5769e4{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x72bad4){super(_0x72bad4),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x410860=this['context']['plugins']['get'](y);this['listenTo'](_0x410860,'_activateAnnotation',(_0x405a4c,_0x11363f)=>{for(const _0x309b78 of this['activeUIs']){const _0x320ac7=this['_uis']['get'](_0x309b78);(0x0,this['uisData']['get'](_0x309b78)['filter'])(_0x11363f)&&_0x320ac7['setActiveAnnotation'](_0x11363f);}}),this['listenTo'](_0x410860,'_deactivateAllAnnotations',()=>{for(const _0x2901df of this['activeUIs']){this['_uis']['get'](_0x2901df)['setActiveAnnotation'](null);}}),this['listenTo'](_0x410860['_visibleAnnotations'],'add',(_0x1de8ed,_0x482a42)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x482a42);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x2b0498){return this['activeUIs']['has'](_0x2b0498);}['activate'](_0x1b69fd,_0xb16033=this['defaultFilter']){const _0x574b87=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x1b69fd))throw new _0x3e31b7('annotationsuis-missing-ui',this,{'uiName':_0x1b69fd});this['isActive'](_0x1b69fd)&&this['deactivate'](_0x1b69fd),this['activeUIs']['add'](_0x1b69fd);const _0x48783c=new S();v({'source':_0x574b87['_visibleAnnotations'],'target':_0x48783c,'filter':_0xb16033}),this['uisData']['set'](_0x1b69fd,{'collection':_0x48783c,'filter':_0xb16033});const _0x3b1980=this['_uis']['get'](_0x1b69fd);_0x3b1980['attach'](_0x48783c),this['listenTo'](_0x3b1980,'change:activeAnnotation',(_0x542bfa,_0x169bf5,_0x3b02d7,_0x4b8328)=>{_0x4b8328&&_0x574b87['_removeActiveAnnotation'](_0x4b8328),_0x3b02d7&&_0x574b87['_addActiveAnnotation'](_0x3b02d7);});}['deactivate'](_0x13f114){if(this['activeUIs']['delete'](_0x13f114),!this['_uis']['has'](_0x13f114))throw new _0x3e31b7('annotationsuis-missing-ui',this,{'uiName':_0x13f114});const _0x35287b=this['_uis']['get'](_0x13f114);_0x35287b['detach'](),this['stopListening'](_0x35287b),this['uisData']['get'](_0x13f114)['collection']['destroy'](),this['uisData']['delete'](_0x13f114);}['switchTo'](_0x4c3681){if(!this['_uis']['has'](_0x4c3681))throw new _0x3e31b7('annotationsuis-missing-ui',this,{'uiName':_0x4c3681});const _0x3a67f8=this['context']['plugins']['get'](y),_0x1ded80=Array['from'](_0x3a67f8['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4c3681);const _0x347848=this['_uis']['get'](_0x4c3681);_0x347848['setActiveAnnotation'](_0x1ded80),_0x347848['_setSelectedAnnotations']&&_0x1ded80&&_0x347848['_setSelectedAnnotations']([_0x1ded80]);}['deactivateAll'](){for(const _0x4e4b75 of this['activeUIs'])this['deactivate'](_0x4e4b75);}['register'](_0x1be95d,_0x1b19d5){if(this['_uis']['has'](_0x1be95d))throw new _0x3e31b7('annotationsuis-register-already-registered');if('function'!=typeof _0x1b19d5['attach']||'function'!=typeof _0x1b19d5['detach']||'function'!=typeof _0x1b19d5['setActiveAnnotation'])throw new _0x3e31b7('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1be95d,_0x1b19d5);}['refilterAnnotations'](){const _0x5b9f2f=this['context']['plugins']['get'](y)['collection'],_0x1dc06d=new Map(),_0x32b45e=Array['from'](this['activeUIs']);for(const _0x44d0de of this['activeUIs']){const _0x5c7164=this['uisData']['get'](_0x44d0de)['collection'];for(const _0xa3e7f2 of _0x5c7164)_0x1dc06d['set'](_0xa3e7f2,_0x44d0de);}for(const _0x5322d3 of _0x5b9f2f){const _0x1678c3=_0x1dc06d['get'](_0x5322d3);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5322d3);const _0x3f7fb0=_0x32b45e['find'](_0x255716=>this['uisData']['get'](_0x255716)['filter'](_0x5322d3));_0x1678c3!==_0x3f7fb0&&(_0x1678c3&&this['uisData']['get'](_0x1678c3)['collection']['remove'](_0x5322d3),_0x3f7fb0&&this['uisData']['get'](_0x3f7fb0)['collection']['add'](_0x5322d3));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x22720a){const _0x54911c=[];for(const _0x582f4e of this['activeUIs']){(0x0,this['uisData']['get'](_0x582f4e)['filter'])(_0x22720a)&&_0x54911c['push'](_0x582f4e);}if(_0x54911c['length']>0x1)throw new _0x3e31b7('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x54911c,'annotationType':_0x22720a['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xf455a1){super(_0xf455a1);const _0x33331a=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 _0xeb7998(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x33331a['to']('class')],'style':{'minHeight':_0x33331a['to']('minHeight',_0x494f1c=>'number'==typeof _0x494f1c?_i(_0x494f1c+0xa):null)},'dir':_0xf455a1['uiLanguageDirection'],'role':'application','aria-label':N(_0xf455a1,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0xf455a1,'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',_0x3b1367=>{this['_updateItemPositionInFocusables'](_0x3b1367['source']);}),this['list']['forEach'](_0x3d0a7e=>{this['focusTracker']['add'](_0x3d0a7e['element']),this['_updateItemPositionInFocusables'](_0x3d0a7e);}),this['list']['on']('change',(_0x8b30e8,_0x4cce5c)=>{for(const _0x497f17 of _0x4cce5c['removed'])this['focusTracker']['remove'](_0x497f17['element']),this['focusables']['remove'](_0x497f17);for(const _0x9261bc of _0x4cce5c['added'])this['focusTracker']['add'](_0x9261bc['element']),this['_updateItemPositionInFocusables'](_0x9261bc);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x557a31){const _0x39dfd8=this['focusables']['getIndex'](_0x557a31);let _0x76686c,_0x483037;for(const _0x5dcb69 of this['focusables'])if(_0x557a31['top']<_0x5dcb69['top']){_0x76686c=_0x5dcb69;break;}if(_0x483037=_0x76686c?this['focusables']['getIndex'](_0x76686c):this['focusables']['length'],-0x1!==_0x39dfd8){if(_0x39dfd8===_0x483037-0x1)return;this['focusables']['remove'](_0x557a31),_0x483037=_0x76686c?this['focusables']['getIndex'](_0x76686c):this['focusables']['length'];}this['focusables']['add'](_0x557a31,_0x483037);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1f8c7c){super(_0x1f8c7c),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x227e61,_0x2a4685)=>_0x227e61+_0x2a4685),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1a630a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1a630a['to']('isAnimationDisabled',_0x16d49a=>_0x16d49a?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1a630a['to']('top',_0x39b368=>Ot(_0x39b368))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x112b7f=this['element']['clientHeight'];_0x112b7f&&(this['height']=_0x112b7f);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x5769e4{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50f109){super(_0x50f109),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 _0x1220c1=this['context']['config']['get']('sidebar.container');_0x1220c1&&this['setContainer'](_0x1220c1);}['setContainer'](_0x389e4d){if(!g(_0x389e4d))throw new _0x3e31b7('sidebar-setcontainer-invalid-element');this['container']=_0x389e4d;}['_attachToContainer']({viewClass:_0x3b7cfa='',spaceBetweenItems:_0x41cc45=0x19}={}){if(!g(this['container']))throw new _0x3e31b7('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3b7cfa,this['_spaceBetweenItems']=_0x41cc45;}['rearrange']({removedAnnotation:_0x3e4db7,previousAnnotation:_0x3f7f56,nextAnnotation:_0x3f9881}){const _0x543b60=this['getSidebarItemView'](_0x3e4db7);this['view']['list']['remove'](_0x543b60),this['_destroySidebarItemView'](_0x3e4db7),_0x3f7f56&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3f7f56)),_0x3f9881&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3f9881)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1e1611,activatedAnnotation:_0x58f4f4,disableAnimationOnActivatedAnnotation:_0x23ecdb}){if(this['_activeAnnotation']=_0x58f4f4,_0x1e1611){_0x1e1611['isActive']=!0x1;const _0x30c441=this['getSidebarItemView'](_0x1e1611);_0x30c441&&_0x23ecdb&&(_0x30c441['isAnimationDisabled']=!0x1);}if(_0x58f4f4){const _0x5843a8=this['getSidebarItemView'](_0x58f4f4);_0x5843a8&&(_0x58f4f4['isActive']=!0x0,_0x23ecdb&&(_0x5843a8['isAnimationDisabled']=!0x0,_0x5843a8['top']+=0x1),this['_alignToTargetRect'](_0x5843a8));}}['_detachFromContainer'](_0x1d56e1){if(this['view']['element']['remove'](),_0x1d56e1){for(const _0x501a0c of _0x1d56e1)this['_destroySidebarItemView'](_0x501a0c);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x35277c,_0x34153e){_0x34153e||(_0x34153e=_0x35277c['view']);const _0x3587ed=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x3587ed,_0x35277c),this['_annotationToSidebarItemView']['set'](_0x35277c,_0x3587ed),_0x3587ed['content']['add'](_0x34153e),this['listenTo'](_0x35277c['view'],'change:targetRect',(_0x392343,_0x114d5e,_0x293c9f)=>{const _0x179bfc=this['_getTargetTop'](_0x35277c,_0x293c9f);_0x3587ed['_targetTop']!=_0x179bfc&&(_0x3587ed['_targetTop']=_0x179bfc,this['_setItemTop'](_0x3587ed,_0x179bfc));}),this['listenTo'](_0x3587ed,'change:top',()=>{this['_recalculate'](_0x3587ed,'top');}),this['listenTo'](_0x3587ed,'change:bottom',()=>{this['_recalculate'](_0x3587ed,'bottom');}),this['_alignToTargetRect'](_0x3587ed);const _0x2ca47f=this['_getItemBefore'](_0x3587ed);if(_0x2ca47f)this['_alignAfterItem'](_0x2ca47f,_0x3587ed)||this['_alignToTargetRect'](_0x3587ed);else this['_alignToTargetRect'](_0x3587ed);return this['_updateLastItem'](),this['view']['list']['add'](_0x3587ed),_0x3587ed;}['_alignForTopChange'](_0x287229){if(!_0x287229['content']['length'])return;const _0x1cf261=this['_getItemBefore'](_0x287229);if(!_0x1cf261)return;const _0x5d50ca=this['_sidebarItemViewToAnnotation']['get'](_0x1cf261),_0x57ff59=this['_activeAnnotation'];_0x57ff59&&_0x57ff59===_0x5d50ca?this['_alignAfterItem'](_0x1cf261,_0x287229):this['_alignBeforeItem'](_0x287229,_0x1cf261);}['_alignForBottomChange'](_0x1f74bd){if(!_0x1f74bd['content']['length'])return;const _0x651546=this['_getItemAfter'](_0x1f74bd);if(!_0x651546)return;const _0x1e51bd=this['_sidebarItemViewToAnnotation']['get'](_0x651546),_0x1222c5=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x181730=this['_activeAnnotation'];_0x181730&&_0x181730===_0x1e51bd&&_0x1222c5?(this['_alignBeforeItem'](_0x651546,_0x1f74bd),this['_alignAfterItem'](_0x1f74bd,_0x651546)):_0x181730&&_0x181730===_0x1e51bd?this['_alignBeforeItem'](_0x651546,_0x1f74bd):this['_alignAfterItem'](_0x1f74bd,_0x651546);}['_recalculate'](_0x5e1fa3,_0x238f42){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x377a17,changedProp:_0x150b3c}of this['_recalculateBuffer'])'top'===_0x150b3c?this['_alignForTopChange'](_0x377a17):this['_alignForBottomChange'](_0x377a17);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5e1fa3,'changedProp':_0x238f42});}['getSidebarItemView'](_0x1c4ebb){return this['_annotationToSidebarItemView']['get'](_0x1c4ebb);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x47f6fc){const _0xff12c4=this['getSidebarItemView'](_0x47f6fc);this['stopListening'](_0xff12c4),this['stopListening'](_0x47f6fc['view']),_0xff12c4['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x47f6fc),this['_sidebarItemViewToAnnotation']['delete'](_0xff12c4);}['_createSidebarView'](){const _0x432f9e=new H(this['context']['locale']);return _0x432f9e['render'](),this['on']('change:_lastItem',(_0x274e50,_0x4ad10b,_0x5dfbc2,_0x4669d0)=>{_0x4669d0&&_0x432f9e['unbind']('minHeight'),_0x5dfbc2?_0x432f9e['bind']('minHeight')['to'](_0x5dfbc2,'bottom'):_0x432f9e['minHeight']=null;}),_0x432f9e;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x263f3f){const _0x29aeab=this['_sidebarItemViewToAnnotation']['get'](_0x263f3f),_0x2c1a1f=_0x29aeab&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x29aeab)-0x1);return _0x2c1a1f&&this['getSidebarItemView'](_0x2c1a1f)||null;}['_getItemAfter'](_0x16396f){const _0x5a995d=this['_sidebarItemViewToAnnotation']['get'](_0x16396f),_0xbccf91=_0x5a995d&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5a995d)+0x1);return _0xbccf91&&this['getSidebarItemView'](_0xbccf91)||null;}['_alignBeforeItem'](_0x1c800a,_0x5a0805){_0x1c800a['updateHeight']();const _0xc38a15=G(_0x5a0805['bottom']+this['_spaceBetweenItems'],_0x1c800a['top']);return!!_0xc38a15&&(this['_setItemTop'](_0x5a0805,_0x5a0805['top']-_0xc38a15),!0x0);}['_alignAfterItem'](_0x1bda2e,_0x2405f4){_0x1bda2e['updateHeight']();const _0x28a019=G(_0x1bda2e['bottom']+this['_spaceBetweenItems'],_0x2405f4['top']);return!!_0x28a019&&(this['_setItemTop'](_0x2405f4,_0x2405f4['top']+_0x28a019,!0x1),!0x0);}['_alignToTargetRect'](_0x1aca48){const _0x395e03=this['_sidebarItemViewToAnnotation']['get'](_0x1aca48);if(!_0x395e03||!_0x395e03['target']||!_0x395e03['targetRect'])return;const _0x4a6ad9=this['_getTargetTop'](_0x395e03,_0x395e03['targetRect']);this['_setItemTop'](_0x1aca48,_0x4a6ad9);}['_getTargetTop'](_0x1be1f6,_0x58a9be){if(null===_0x58a9be)return 0x0;if(_0x1be1f6['target']instanceof _0x4d09a0)return _0x58a9be['top'];{const _0x599ca2=new _0x4d09a0(this['view']['element'])['top'];return _0x58a9be['top']-_0x599ca2;}}['_setItemTop'](_0x5475df,_0x1a50c6,_0x478323=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x478323&&(_0x1a50c6=Math['max'](_0x1a50c6,this['_getMaxAvailableTop'](_0x5475df))),_0x5475df['top']=_0x1a50c6;}['_getMaxAvailableTop'](_0x154712){let _0x42aa89=this['_getItemBefore'](_0x154712),_0x4b3c47=0x0;for(;_0x42aa89;)_0x42aa89['updateHeight'](),_0x4b3c47+=this['_spaceBetweenItems']+_0x42aa89['height'],_0x42aa89=this['_getItemBefore'](_0x42aa89);return _0x4b3c47;}}function G(_0x344ef4,_0x256e9c){return Math['max'](_0x344ef4-_0x256e9c,0x0);}function g(_0x3490a3){return null!==_0x3490a3&&'object'==typeof _0x3490a3&&0x1===_0x3490a3['nodeType'];}class e extends _0x5769e4{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e4d0a){super(_0x1e4d0a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1b1bd5(),this['_refreshPositioningDebounced']=_0x1f36ab(()=>{_0x1e4d0a['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x284de8=this['context']['plugins']['get'](j),_0x4ebadb=this['context']['plugins']['get'](z);_0x284de8['register']('wideSidebar',this),_0x4ebadb['container']&&_0x284de8['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x15973c){if(_0x15973c===this['activeAnnotation'])return;const _0x522e01=this['context']['plugins']['get'](z);_0x522e01['_activeAnnotation']=_0x15973c;const _0x40a49f=this['activeAnnotation'];_0x522e01['refresh']({'blurredAnnotation':_0x40a49f,'activatedAnnotation':_0x15973c}),this['activeAnnotation']=_0x15973c;}['attach'](_0x1091a9){this['annotations']=_0x1091a9;const _0x281c2a=this['context']['plugins']['get'](z);if(_0x281c2a['_annotations']=_0x1091a9,this['isAttached'])throw new _0x3e31b7('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x281c2a,'set:container',()=>{this['detach'](),this['listenTo'](_0x281c2a,'change:container',_0x2adf6b=>{_0x2adf6b['off'](),this['attach'](_0x1091a9);});}),_0x281c2a['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3e2873=_0x24169f=>{_0x24169f['updateTargetRect'](),_0x281c2a['addAnnotation'](_0x24169f);};for(const _0x222aeb of _0x1091a9)_0x3e2873(_0x222aeb);this['listenTo'](_0x1091a9,'add',(_0x3577fe,_0xa6c356)=>{_0x3e2873(_0xa6c356);}),this['listenTo'](_0x1091a9,'remove',(_0x2785c0,_0x4b8481,_0x1e79de)=>{_0x281c2a['rearrange']({'removedAnnotation':_0x4b8481,'previousAnnotation':_0x1091a9['get'](_0x1e79de-0x1),'nextAnnotation':_0x1091a9['get'](_0x1e79de+0x1)}),_0x4b8481===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x1091a9,'focus',(_0x3250aa,_0x799a30)=>{this['setActiveAnnotation'](_0x799a30);}),this['listenTo'](_0x1091a9,'blur',()=>{this['setActiveAnnotation'](null);});const _0x3de035=this['context']instanceof _0x18e5c3?this['context']['editors']:new _0x1b1bd5([this['context']]);for(const _0x44b8be of _0x3de035)this['_integrateWithEditorAnnotations'](_0x44b8be);this['listenTo'](_0x3de035,'add',(_0x185580,_0x187f44)=>{this['listenTo'](_0x187f44,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x187f44);});}),this['listenTo'](_0x3de035,'remove',(_0xe312c0,_0x1f70a4)=>{_0x1f70a4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1f70a4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3e31b7('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x45bade=this['context']['plugins']['get'](z);_0x45bade['_detachFromContainer'](this['annotations']),this['stopListening'](_0x45bade),this['stopListening'](this['annotations']),this['context']instanceof _0x18e5c3&&this['stopListening'](this['context']['editors']);for(const _0x270299 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x270299);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x36bdc4){if(!_0x36bdc4['plugins']['has']('EditorAnnotations'))return;const _0x22e0e7=_0x36bdc4['plugins']['get']('EditorAnnotations'),_0x36af33=()=>{const _0x27c5bd=_0x22e0e7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x27c5bd[0x0]||null);};this['listenTo'](_0x22e0e7,'refresh',_0x36af33),this['listenTo'](_0x22e0e7,'blur',(_0x33d5cc,{isAnnotationTracked:_0x104e18})=>{this['activeAnnotation']&&_0x104e18(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x22e0e7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x272f4a=>{_0x22e0e7['hasDomSelection']()&&(_0x36af33(),_0x272f4a['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x22e0e7);}['_destroyEditorAnnotationsIntegration'](_0x47f6a8){this['stopListening'](_0x47f6a8),this['_editorAnnotations']['remove'](_0x47f6a8);}}class C extends _0x56f2fa{['counterView'];constructor(_0x59daaa){super(_0x59daaa);const _0x4ce452=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x16b73b,_0x3449ca)=>_0x16b73b?'...':_0x3449ca['toString']()),this['set']('annotationType',''),this['icon']=_0x417cca,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4ce452['to']('annotationType',_0x35f7e7=>'ck-annotation-counter__badge--'+_0x35f7e7),_0x4ce452['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4ce452['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x5769e4{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c850b){super(_0x2c850b),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x1a9ea6())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1b1bd5(),this['_refreshPositioningDebounced']=_0x1f36ab(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x21805a(this['context']['locale']),this['balloonPanelView']=new _0x251547(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4da67f){this['annotations']=_0x4da67f;const _0x226852=this['context']['plugins']['get'](z),_0x5a53de=this['balloonPanelView'];if(_0x226852['_annotations']=_0x4da67f,this['isAttached'])throw new _0x3e31b7('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x226852,'set:container',()=>{this['detach'](),this['listenTo'](_0x226852,'change:container',_0x3888b2=>{_0x3888b2['off'](),this['attach'](_0x4da67f);});}),_0x226852['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2f9a20=_0x12a98e=>{const _0x2479b8=new C(this['context']['locale']);_0x226852['addAnnotation'](_0x12a98e,_0x2479b8),this['_annotationToNarrowView']['set'](_0x12a98e,_0x2479b8),_0x2479b8['bind']('isDirty','annotationType','number')['to'](_0x12a98e['view'],'isDirty','type','length'),_0x2479b8['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5a53de['content']['first']!==_0x12a98e['view']?(this['_showBalloon'](_0x12a98e),_0x12a98e['view']['element']['focus'](),this['setActiveAnnotation'](_0x12a98e)):this['setActiveAnnotation'](null);});};for(const _0x1228b9 of _0x4da67f)_0x2f9a20(_0x1228b9);this['listenTo'](_0x4da67f,'add',(_0x48dea4,_0x50581e)=>{_0x2f9a20(_0x50581e);}),this['listenTo'](_0x4da67f,'remove',(_0x10ef34,_0x671dce,_0x43e43e)=>{this['_annotationToNarrowView']['get'](_0x671dce)['destroy'](),this['_annotationToNarrowView']['delete'](_0x671dce),_0x226852['rearrange']({'removedAnnotation':_0x671dce,'previousAnnotation':_0x4da67f['get'](_0x43e43e-0x1),'nextAnnotation':_0x4da67f['get'](_0x43e43e+0x1)}),_0x671dce===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4da67f,'focus',(_0x47e619,_0x40f70a)=>{this['setActiveAnnotation'](_0x40f70a);}),this['listenTo'](_0x4da67f,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x38af0e,_0x4dce4b)=>{_0x4dce4b['keyCode']===_0x496e11['esc']&&_0x5a53de['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5a53de['content']['first']),this['_hideBalloon'](),_0x4dce4b['stopPropagation'](),_0x4dce4b['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1b72e6,_0x41c8c2)=>{const _0x41d4f4=_0x41c8c2['target'];_0x5a53de['isVisible']&&_0x5a53de['element']['contains'](_0x41d4f4)||_0x226852['view']['element']['contains'](_0x41d4f4)||_0x1b72e6['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4bc842=>_0x4bc842['contains'](_0x41d4f4))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4e11be=this['context']instanceof _0x18e5c3?this['context']['editors']:new _0x1b1bd5([this['context']]);for(const _0x38e8eb of _0x4e11be)this['_integrateWithEditorAnnotations'](_0x38e8eb);this['listenTo'](_0x4e11be,'add',(_0x4ff6ab,_0x263569)=>{this['listenTo'](_0x263569,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x263569);});}),this['listenTo'](_0x4e11be,'remove',(_0x1f0176,_0x3428ca)=>{_0x3428ca['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3428ca['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x4de885){if(_0x4de885===this['activeAnnotation'])return;const _0x3c336d=this['context']['plugins']['get'](z);if(_0x3c336d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4de885,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4de885)_0x3c336d['getSidebarItemView'](_0x4de885)?this['_showBalloon'](_0x4de885):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x4de885;}['detach'](){if(!this['isAttached'])throw new _0x3e31b7('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3cbc06=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5b0638=>_0x5b0638['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3cbc06['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x18e5c3&&this['stopListening'](this['context']['editors']);for(const _0x5a4ffe of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5a4ffe);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'](_0x50c87b){if(!_0x50c87b['plugins']['has']('EditorAnnotations'))return;const _0x497311=_0x50c87b['plugins']['get']('EditorAnnotations'),_0x4bebe8=this['context']['plugins']['get'](z),_0x9146a0=this['annotations'],_0x113aca=this['balloonPanelView'],_0x19e029=()=>{const _0x1bc62d=_0x497311['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1bc62d),this['setActiveAnnotation'](_0x1bc62d[0x0]||null);};this['listenTo'](_0x497311,'refresh',_0x19e029),this['listenTo'](_0x497311,'blur',(_0x200e16,{isAnnotationTracked:_0xf24cea})=>{this['activeAnnotation']&&_0xf24cea(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x497311,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x9146a0,'blur',_0x150cfd=>{_0x497311['hasDomSelection']()&&_0x150cfd['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x251e2a,_0x148ed9)=>{const _0x42613b=_0x148ed9['target'];_0x113aca['isVisible']&&_0x113aca['element']['contains'](_0x42613b)||_0x4bebe8['view']['element']['contains'](_0x42613b)||this['activeAnnotation']&&_0x497311['hasDomSelection']()&&(_0x19e029(),_0x251e2a['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x497311);}['_destroyEditorAnnotationsIntegration'](_0x1ee603){_0x1ee603&&(this['stopListening'](_0x1ee603),this['_editorAnnotations']['remove'](_0x1ee603));}['_setSelectedAnnotations'](_0x52bcf6){for(const _0x223178 of this['_selectedAnnotations'])_0x52bcf6['includes'](_0x223178)||this['_manuallyClosedAnnotationViews']['delete'](_0x223178['view']);this['_selectedAnnotations']=_0x52bcf6;}['_refreshPositioning'](){const _0x4d9604=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x4d9604['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xa19634){if(this['_manuallyClosedAnnotationViews']['has'](_0xa19634['view']))return;const _0x2c481b=this['balloonPanelView']['content']['first'];_0x2c481b!==_0xa19634['view']?(_0x2c481b&&this['_detachListeners'](_0x2c481b),this['_attachListeners'](_0xa19634['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xa19634['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x1e693c=this['balloonPanelView']['content']['first'],_0x12f4dd=_0x1e693c&&this['annotations']['getByView'](_0x1e693c);if(!_0x12f4dd||!this['_annotationToNarrowView']['has'](_0x12f4dd))return;const _0x4c981f=this['_annotationToNarrowView']['get'](_0x12f4dd)['element'],_0x2f0b7c=(function(){const _0x36a47c=_0x251547['defaultPositions'];return[_0x36a47c['southArrowNorthEast'],_0x36a47c['northArrowSouthEast'],_0x36a47c['southArrowNorth'],_0x36a47c['northArrowSouth'],_0x36a47c['southArrowNorthWest'],_0x36a47c['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x4c981f,'positions':_0x2f0b7c});}['_hideBalloon'](){const _0x18c8a1=this['balloonPanelView'],_0x2a2ec4=_0x18c8a1['content']['first'];_0x2a2ec4&&(this['_detachListeners'](_0x2a2ec4),_0x18c8a1['unpin'](),_0x18c8a1['content']['clear']());}['_attachListeners'](_0x45cd45){this['listenTo'](_0x45cd45,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x45cd45,'Esc',(_0x47bb3d,_0x55475c)=>{this['_manuallyClosedAnnotationViews']['add'](_0x45cd45),this['_hideBalloon'](),_0x55475c();});}['_detachListeners'](_0x285354){this['stopListening'](_0x285354);}}class c extends _0x3d233f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x1d3115,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1388c7){super(_0x1388c7),_0x1388c7['editing']['view']['addObserver'](_0x30b63e),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1388c7['plugins']['get'](_0x1d3115),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xa3ce97=this['editor']['plugins']['get'](j);_0xa3ce97['context']===this['editor']&&(_0xa3ce97['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xfdc084,_0x8ba29a)=>{const _0x3284ac=this['_balloon'];if(this['isAttached']&&_0x3284ac['visibleView']){const _0x2465cd=this['annotations']['getByView'](_0x3284ac['visibleView']);_0x2465cd&&this['_closeAnnotation'](_0x2465cd),_0x8ba29a();}}));}['afterInit'](){const _0x1ccc20=this['editor']['plugins']['get'](j);_0x1ccc20['context']===this['editor']&&(_0x1ccc20['hasActive']()||_0x1ccc20['switchTo']('inline'));}['setActiveAnnotation'](_0x355839){_0x355839!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x355839&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x355839)&&this['_addAnnotationToBalloon'](_0x355839,!0x0),_0x355839['isActive']=!0x0),_0x355839||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x355839);}['attach'](_0x31c808){this['annotations']=_0x31c808;const _0x237e42=this['editor']['plugins']['get'](j),_0x18236e=this['_balloon'];if(this['isAttached'])throw new _0x3e31b7('inlineannotations-attach-already-attached',this);if(_0x237e42['context']!==this['editor'])throw new _0x3e31b7('inlineannotations-not-allowed-with-context',this);const _0x37ea9b=this['editor']['plugins']['get'](b);this['listenTo'](_0x37ea9b,'refresh',()=>{const _0x45c1bc=_0x37ea9b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x11267d,_0x40fad7;!this['_forceRefresh']&&(_0x11267d=_0x45c1bc,_0x40fad7=this['_selectedAnnotations'],_0x11267d['length']===_0x40fad7['length']&&_0x11267d['every'](_0x44f24=>_0x40fad7['includes'](_0x44f24)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x45c1bc),this['setActiveAnnotation'](_0x45c1bc[0x0]||null));}),this['listenTo'](_0x37ea9b,'blur',(_0x1cb8fa,{isAnnotationTracked:_0x5287a0})=>{this['activeAnnotation']&&_0x5287a0(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x52f9b9,_0x4f24fe,_0x57ec14)=>{_0x57ec14||this['setActiveAnnotation'](null);}),this['listenTo'](_0x31c808,'remove',(_0x2b9a1f,_0x5cebff)=>{this['_removeAnnotationFromBalloon'](_0x5cebff),_0x5cebff===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x18236e,'change:visibleView',(_0x3040cf,_0xb21668,_0x3098fd,_0xffcdbb)=>{_0xffcdbb&&this['stopListening'](_0xffcdbb);const _0x3b7229=_0x31c808['getByView'](_0x3098fd);_0x3098fd&&_0x3b7229&&(this['listenTo'](_0x3098fd,'change:height',()=>{_0x18236e['updatePosition']();}),this['listenTo'](_0x3098fd,'Esc',()=>{this['_closeAnnotation'](_0x3b7229),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3b7229&&this['setActiveAnnotation'](_0x3b7229));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x18236e['visibleView']&&(_0x31c808['getByView'](_0x18236e['visibleView'])&&_0x18236e['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 _0x3e31b7('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xd84a19 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xd84a19);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xff18cf){for(const _0xf85df6 of this['_selectedAnnotations'])_0xff18cf['includes'](_0xf85df6)||this['_manuallyClosed']['delete'](_0xf85df6);for(const _0xf63592 of this['annotations'])_0xff18cf['includes'](_0xf63592)||this['_removeAnnotationFromBalloon'](_0xf63592);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x25bfcd of _0xff18cf)this['_addAnnotationToBalloon'](_0x25bfcd);}this['_selectedAnnotations']=_0xff18cf;}['_addAnnotationToBalloon'](_0x173c10,_0x3dd9c3=!0x1){this['_manuallyClosed']['has'](_0x173c10)||(this['_addedAnnotations']['has'](_0x173c10)||this['_balloon']['hasView'](_0x173c10['view'])||(this['_addedAnnotations']['add'](_0x173c10),this['_balloon']['add']({'stackId':_0x173c10['view']['id'],'view':_0x173c10['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x173c10)}})),_0x3dd9c3&&this['_balloon']['showStack'](_0x173c10['view']['id']));}['_getBalloonTargetForAnnotation'](_0xc286c1){const _0xa11ac=_0xc286c1['target'],_0x5d8b5f=this['editor']['editing']['view'],_0x5dade4=_0x5d8b5f['document']['selection']['getFirstRange'](),_0x342e2f=_0x5d8b5f['domConverter']['viewRangeToDom'](_0x5dade4);if(_0x342e2f['collapse'](!0x0),_0xa11ac){if(_0xa11ac instanceof _0x4d09a0)return _0xa11ac;let _0x49ff62=[];for(const _0x1a69ec of _0xa11ac)_0x49ff62['push'](...F(_0x1a69ec['getClientRects']()));_0x49ff62=function(_0x9acb7c){const _0x2edb5a=[];let _0x53c8ba=_0x9acb7c[0x0];for(let _0x124792=0x1;_0x124792<_0x9acb7c['length'];_0x124792++)P(_0x53c8ba,_0x9acb7c[_0x124792])?_0x53c8ba['width']+=_0x9acb7c[_0x124792]['width']:(_0x2edb5a['push'](_0x53c8ba),_0x53c8ba=_0x9acb7c[_0x124792]);return _0x2edb5a['push'](_0x53c8ba),_0x2edb5a;}(_0x49ff62);const _0x720903=_0x342e2f['getBoundingClientRect']();return _0x49ff62['find'](_0x24d4e7=>_0x24d4e7['top']<=_0x720903['top']&&_0x24d4e7['bottom']>=_0x720903['bottom']&&_0x24d4e7['left']<=_0x720903['left']&&_0x24d4e7['right']>=_0x720903['right'])||_0x49ff62[0x0];}return _0xc286c1['targetRect']||_0x342e2f;}['_removeAnnotationFromBalloon'](_0x204373){this['_addedAnnotations']['has'](_0x204373)&&this['_balloon']['hasView'](_0x204373['view'])&&(this['_addedAnnotations']['delete'](_0x204373),this['_balloon']['remove'](_0x204373['view']));}['_closeAnnotation'](_0x4f142e){this['_manuallyClosed']['add'](_0x4f142e),this['_removeAnnotationFromBalloon'](_0x4f142e);}}function F(_0x4d2f46){return Array['from'](_0x4d2f46)['map'](DOMRect['fromRect']);}function P(_0x4fad32,_0x21d10b){return _0x4fad32['top']===_0x21d10b['top']&&_0x4fad32['bottom']===_0x21d10b['bottom']&&_0x4fad32['right']===_0x21d10b['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1954b7,_0x342869){super(_0x1954b7),this['set']('isEmpty',!_0x342869['length']),this['focusTracker']=new _0xeb7998(),this['_annotationViews']=_0x342869,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x2fb93a({'focusables':_0x342869,'focusTracker':this['focusTracker']}),this['listenTo'](_0x342869,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x342869,'remove',(_0x108503,_0x13e762)=>{_0x13e762['isActive']&&this['focus'](),_0x342869['length']||(this['isEmpty']=!0x0);});const _0x257a92=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x1954b7,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x342869},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x257a92['if']('isEmpty','ck-hidden',_0x9bff4a=>!_0x9bff4a)]},'children':[{'text':N(_0x1954b7,'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 _0x19bf06 of this['_annotationViews'])this['focusTracker']['add'](_0x19bf06['element']);this['_annotationViews']['on']('change',(_0x3c285c,{added:_0x1638c2,removed:_0x25a21e})=>{for(const _0x37baa0 of _0x1638c2)this['focusTracker']['add'](_0x37baa0['element']);for(const _0x1e9938 of _0x25a21e)this['focusTracker']['remove'](_0x1e9938['element']);});}}class p extends _0x5769e4{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x2c99b6){super(_0x2c99b6),this['archivedThreads']=new _0x1b1bd5();}['init'](){const _0x4a6ac9=this['context'],_0x49532d=_0x4a6ac9['plugins']['get'](o),_0x159dc6=_0x4a6ac9['plugins']['get'](y);this['listenTo'](_0x49532d,'addCommentThread',(_0x525cd1,{threadId:_0x35f735})=>{const _0x55eb42=_0x49532d['getCommentThread'](_0x35f735);_0x55eb42['archivedAt']&&this['archivedThreads']['add'](_0x55eb42,this['_calculatePosition'](_0x55eb42['archivedAt'])),this['listenTo'](_0x55eb42,'change:archivedAt',(_0x5014b1,_0x361930,_0x15d65d)=>{_0x15d65d?this['archivedThreads']['has'](_0x55eb42)||this['archivedThreads']['add'](_0x55eb42,this['_calculatePosition'](_0x55eb42['archivedAt'])):this['archivedThreads']['has'](_0x55eb42)&&this['archivedThreads']['remove'](_0x55eb42);});}),this['listenTo'](_0x49532d,'removeCommentThread',(_0x282e5d,{threadId:_0x4a723b})=>{const _0x344dd5=_0x49532d['getCommentThread'](_0x4a723b);this['stopListening'](_0x344dd5),this['archivedThreads']['has'](_0x344dd5)&&this['archivedThreads']['remove'](_0x344dd5);},{'priority':'highest'}),this['listenTo'](_0x159dc6['collection'],'focus',(_0x315a6e,_0x5a94d0)=>{_0x5a94d0['isVisible']||(_0x5a94d0['isActive']=!0x0,_0x159dc6['activate'](_0x5a94d0));});}['_calculatePosition'](_0x16e192){const _0x49d6ec=[...this['archivedThreads']]['findIndex'](_0x91a3dc=>_0x91a3dc['archivedAt']<_0x16e192);return _0x49d6ec>-0x1?_0x49d6ec:this['archivedThreads']['length'];}}class a extends _0x3d233f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x30ecf7];}constructor(_0x2f0ba6){super(_0x2f0ba6),this['annotationViews']=new _0x16b584(),this['_pendingThreads']=[];}['init'](){const _0x1aa02f=this['editor'],_0xcae9ed=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1aa02f['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x56f2fa,!0x0)),_0x1aa02f['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2190a6=this['_createCommentsArchiveButton'](_0xf31b41);return _0x2190a6['set']({'role':'menuitemcheckbox'}),_0x2190a6;});const _0x1abfb7=_0x1aa02f['plugins']['get'](p),_0x1ac732=_0x1aa02f['plugins']['get']('Annotations'),_0x3bb107=_0x1aa02f['plugins']['get']('CommentsRepository');_0x1abfb7['archivedThreads']['forEach'](_0x1544f6=>{this['_handleNewThread'](_0x1544f6);}),this['listenTo'](_0x1abfb7['archivedThreads'],'add',(_0x52001e,_0x10b819)=>{this['_handleNewThread'](_0x10b819);}),this['listenTo'](_0x1ac732['collection'],'add',(_0x10d456,_0xe48a79)=>{const _0x1a54c8=this['_pendingThreads']['find'](_0x339bd9=>{const _0x10d368=_0x3bb107['_threadToController']['get'](_0x339bd9);return _0x10d368&&_0xe48a79['innerView']===_0x10d368['view'];});if(_0x1a54c8){const _0x59d98b=this['_calculatePosition'](_0x1a54c8['archivedAt']);this['_addAnnotationToArchive'](_0xe48a79,_0x59d98b),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1a54c8),0x1);}}),this['listenTo'](_0x1abfb7['archivedThreads'],'remove',(_0x1fd613,_0x87027d)=>{const _0xccabaf=_0x1aa02f['config']['get']('collaboration.channelId');if(!_0xccabaf||_0x87027d['channelId']===_0xccabaf){if(this['_pendingThreads']['includes'](_0x87027d))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x87027d),0x1);else{const _0x5ee458=_0x3bb107['_threadToController']['get'](_0x87027d),_0x4ba413=_0x1ac732['getByInnerView'](_0x5ee458['view']);this['annotationViews']['remove'](_0x4ba413['view']),this['stopListening'](_0x4ba413),this['stopListening'](_0x4ba413['focusableElements']);}}}),this['listenTo'](_0x1ac732['collection'],'add',(_0x2ec778,_0x19df92)=>{this['listenTo'](_0x19df92,'escape',_0xcae9ed);}),this['listenTo'](_0x1ac732['collection'],'remove',(_0xc2c7,_0x56de7e)=>{this['stopListening'](_0x56de7e,'escape',_0xcae9ed);});}['_addAnnotationToArchive'](_0x5c66e8,_0x58a320){this['listenTo'](_0x5c66e8,'set:isVisible',_0x3a8b34=>{_0x3a8b34['return']=!0x1,_0x3a8b34['stop']();}),this['annotationViews']['add'](_0x5c66e8['view'],_0x58a320);}['_handleNewThread'](_0x3db7c6){const _0x11cc6b=this['editor']['plugins']['get']('CommentsRepository'),_0x39c0a1=this['editor']['plugins']['get']('Annotations'),_0x8ed0ea=this['editor']['config']['get']('collaboration.channelId');if(!_0x8ed0ea||_0x3db7c6['channelId']===_0x8ed0ea){const _0x16e72e=_0x11cc6b['_threadToController']['get'](_0x3db7c6);if(!_0x16e72e)return void this['_pendingThreads']['push'](_0x3db7c6);const _0x17b43b=this['_calculatePosition'](_0x3db7c6['archivedAt']),_0x10e9bd=_0x39c0a1['getByInnerView'](_0x16e72e['view']);_0x10e9bd['isVisible']&&_0x39c0a1['_visibleAnnotations']['remove'](_0x10e9bd),this['_addAnnotationToArchive'](_0x10e9bd,_0x17b43b);}}['_calculatePosition'](_0x11b7e2){const _0x57055f=this['editor']['config']['get']('collaboration.channelId'),_0x27faf5=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x4a1a5e=>_0x4a1a5e['channelId']===_0x57055f)['findIndex'](_0x54b043=>_0x54b043['archivedAt']<_0x11b7e2);return _0x27faf5<0x0||_0x27faf5>this['annotationViews']['length']?this['annotationViews']['length']:_0x27faf5-0x1;}['_toggleDialog'](){const _0x34234e=this['editor'],_0x25e299=_0x34234e['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x34234e['locale'],this['annotationViews'])),'commentsArchive'===_0x25e299['id']?_0x25e299['hide']():_0x25e299['show']({'id':'commentsArchive','title':N(_0x34234e['locale'],'COMMENTS_ARCHIVE'),'icon':_0x13c696,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3e7464['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x128e25,_0x2a93e3=!0x1){const _0x51ee79=this['editor']['locale'],_0x358ae1=this['editor']['plugins']['get']('Dialog'),_0x24c8bd=new _0x128e25(_0x51ee79);return _0x24c8bd['bind']('isEnabled')['to'](this,'isEnabled'),_0x24c8bd['bind']('isOn')['to'](_0x358ae1,'id',_0x3adf62=>'commentsArchive'===_0x3adf62),_0x24c8bd['set']({'label':N(_0x51ee79,'COMMENTS_ARCHIVE'),'icon':_0x13c696,'isToggleable':!0x0}),_0x2a93e3&&(_0x24c8bd['tooltip']=!0x0),this['listenTo'](_0x24c8bd,'execute',()=>this['_toggleDialog']()),_0x24c8bd;}['_hideDialogOnAnnotationEscape']=_0xd3175d=>{const _0x328acd=_0xd3175d['source'];if(!this['annotationViews']['has'](_0x328acd['view']))return;const _0x521b69=this['editor']['plugins']['get']('Dialog');_0x521b69['isOpen']&&'commentsArchive'===_0x521b69['id']&&(_0x521b69['hide'](),_0xd3175d['stop']());};}class gi extends _0x3d233f{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};