@ckeditor/ckeditor5-comments 47.7.1-alpha.0 → 47.7.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +19 -19
  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 _0x290c7b,ContextPlugin as _0x55eb0b,PendingActions as lt,Command as _0x3e1529,Plugin as _0x1b7a9c,Context as _0x14e8a7}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1d90c7,uid as _0x30e0a0,KeystrokeHandler as jt,FocusTracker as _0x2a1b65,diff as _0x3a8927,Collection as _0x154060,Rect as _0x229f6f,CKEditorError as _0x3605a1,first as _0x1ffc80,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x428bed,keyCodes as _0x5a2ee7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x506dc9,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x3f1c9d,trimHtml as ts,LateFocusDropdownButtonView as _0x36176c,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x313293}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,cloneDeep as wt,set as yt,unset as Ct,isEqual as At,debounce as _0x5b09fb}from'es-toolkit/compat';import{IconUndo as _0x446dce,IconCheck as _0xd57701,IconPencil as _0x4c737e,IconRemoveComment as _0x1d16ba,IconThreeVerticalDots as _0x5100a1,IconAddComment as _0x295d15,IconCommentsArchive as _0x2c103b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0xa03dd2,ButtonView as _0x3ec9bf,ViewCollection as _0xc6e21b,createDropdown as _0x3d8ac5,ListView as _0x367e97,focusChildOnDropdownOpen as _0x43db75,ListItemView as _0x10a8ab,MenuBarMenuListItemButtonView as _0x4c1494,BodyCollection as _0x188bf2,BalloonPanelView as _0x2923d8,ContextualBalloon as _0x3a19c2,Dialog as _0x3b65de,DialogViewPosition as _0xe25b3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x432c07}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}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 _0x590dda}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x4b438a}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x1d90c7(){['model'];['view'];constructor(_0x444e1c,_0x4713ad){super(),this['model']=_0x444e1c,this['model']['_isAttached']=!0x0,this['view']=_0x4713ad,this['listenTo'](_0x4713ad,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4713ad,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4713ad,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4713ad,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4713ad,'addComment',(_0x30acdb,_0x590db8)=>this['addComment'](_0x590db8)),this['listenTo'](_0x4713ad,'updateComment',(_0x570729,_0x1a7157,_0x4cffd4)=>this['updateComment'](_0x1a7157,_0x4cffd4)),this['listenTo'](_0x4713ad,'removeComment',(_0x3bf144,_0x374e8e)=>this['removeComment'](_0x374e8e));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x407ab8){this['model']['addComment']({'content':_0x407ab8,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x4fb1a4,_0x243ccb){this['model']['getComment'](_0x4fb1a4)['update']({'content':_0x243ccb});}['removeComment'](_0x441f8a){this['model']['getComment'](_0x441f8a)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x1019bc,_0x46e42e,_0xfa5dc5){const t=_0x1019bc['t'];switch(_0x46e42e){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'},_0xfa5dc5);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'},_0xfa5dc5);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'},_0xfa5dc5);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'},_0xfa5dc5);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0xfa5dc5);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'},_0xfa5dc5);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'},_0xfa5dc5);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'},_0xfa5dc5);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 Rt extends $t{['main'];['editable'];constructor(_0x3c3d32,_0x453f26){super(_0x3c3d32);const _0x27357f=_0x30e0a0();this['main']=this['createCollection'](),this['editable']=new Vt(_0x3c3d32,_0x453f26,void 0x0,{'label':()=>N(_0x3c3d32,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x3c3d32['uiLanguageDirection'],'lang':_0x3c3d32['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x27357f},'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 Et extends Ut{['view'];constructor(_0x5a2ce2){super(_0x5a2ce2),this['view']=new Rt(_0x5a2ce2['locale'],_0x5a2ce2['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x26e9e5=this['editor']['editing']['view'],_0x1c81da=this['view']['editable'],_0x5e53e0=_0x26e9e5['document']['getRoot']();_0x1c81da['name']=_0x5e53e0['rootName'],this['view']['render']();const _0x159420=_0x1c81da['element'];this['setEditableElement'](_0x1c81da['name'],_0x159420),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x26e9e5['attachDomRoot'](_0x159420),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x1d90c7(_0x290c7b){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x5a4766={}){function _0x1aa4c2(_0x377e03){return _0x377e03['map'](_0x2d04a5=>String['fromCharCode'](_0x2d04a5))['join']('');}(_0x5a4766=Object['assign']({},_0x5a4766))['plugins']||(_0x5a4766['plugins']=hs['defaultPlugins']),super(_0x5a4766),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x1aa4c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aa4c2([0x76,0x69,0x65,0x77])][_0x1aa4c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1aa4c2([0x61,0x75,0x74,0x6f]),this[_0x1aa4c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1aa4c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1aa4c2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1aa4c2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1aa4c2([0x6f,0x6b])});}['create'](){const _0x153134=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x153134))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x38d989=>{const _0x5b3338=this['model']['document']['getRoot'](),_0xc3e946=_0x5b3338&&_0x5b3338['getChild'](_0x5b3338['childCount']-0x1);_0x38d989['setSelection'](_0xc3e946,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x18a7c7=this['editing']['view'],_0x14c933=_0x18a7c7['document']['getRoot'](),_0x309ad5=_0x14c933['getChild'](0x0);_0x14c933['childCount']>0x1||!_0x309ad5||'p'!=_0x309ad5['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x18a7c7,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x309ad5['placeholder']=this['placeholder']),Ft({'view':_0x18a7c7,'element':_0x309ad5,'keepOnFocus':!0x0}),this['placeholderElement']=_0x309ad5);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x2ba4f0,_0x17d2c5={}){super(_0x2ba4f0),this['editor']=null,this['_editorConfig']=_0x17d2c5,this['set']('value',_0x17d2c5['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x2ba4f0,'Reply...')),this['set']('submitLabel',N(_0x2ba4f0,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x2a1b65(),this['focusCycler']=new _0xa03dd2({'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',(_0x19ad71,_0x436541)=>{this['cancelButtonView']['fire']('execute'),_0x436541();}),this['keystrokes']['set']('Ctrl+Enter',(_0x11e446,_0x2a3e47)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2a3e47());}),this['on']('submit',(_0x100e18,_0x4f01e7)=>{_0x4f01e7['length']>0xfde8?(alert(N(_0x2ba4f0,'TOO_LONG_COMMENT_ALERT',[_0x4f01e7['length'],0xfde8])),_0x100e18['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x5e30a4=this['editor'];this['element']['insertBefore'](_0x5e30a4['ui']['element'],this['element']['firstChild']),_0x5e30a4['model']['document']['on']('change',()=>this['value']=_0x5e30a4['getData']()),_0x5e30a4['bind']('placeholder')['to'](this),this['focusables']['add'](_0x5e30a4['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x14b13e){-0x1===_0x14b13e?(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:_0x2f0caf}=this,_0x985862=new _0x3ec9bf(_0x2f0caf);return _0x985862['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x985862['withText']=!0x0,_0x985862['bind']('label')['to'](this,'submitLabel'),_0x985862['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x985862['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4296c9,_0x16b7e8)=>!_0x16b7e8&&!!_0x4296c9['trim']()),_0x985862;}['_createCancelButton'](){const {locale:_0x2a8a2f}=this,_0x1eb3d7=new _0x3ec9bf(_0x2a8a2f);return _0x1eb3d7['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1eb3d7['label']=N(_0x2a8a2f,'Cancel'),_0x1eb3d7['withText']=!0x0,_0x1eb3d7['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1eb3d7;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x249930=>{this['focusTracker']['add'](_0x249930['element']);}),this['focusables']['on']('change',(_0x4e5976,_0x54f468)=>{for(const _0x3ae3b2 of Array['from'](_0x54f468['added'])['reverse']())this['focusTracker']['add'](_0x3ae3b2['element']);});}}class ie extends kt{constructor(_0x5bf26d,_0x459cfb,_0x3fedd0){super(_0x5bf26d),this['commentInputView']=new es(_0x5bf26d,_0x3fedd0),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0xb3f835,_0x2b748a)=>_0xb3f835||!!_0x2b748a),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 _0x506dc9(_0x5bf26d,_0x459cfb),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'](_0x424486){this['commentInputView']['focus'](_0x424486);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x3c0d9e,_0x351fc8)=>{const {submitButtonView:_0x444cca,cancelButtonView:_0x523888,editor:_0x52e1e7}=this['commentInputView'];[_0x444cca['element'],_0x523888['element'],_0x52e1e7?_0x52e1e7['editing']['view']['getDomRoot']():null]['filter'](_0x17e0ba=>_0x17e0ba)['some'](_0x2fbfc4=>_0x2fbfc4['contains'](_0x351fc8['target']))||(this['focus'](),_0x351fc8['preventDefault']());});}}class rs extends kt{constructor(_0x46de9a){super(_0x46de9a);const _0x1e6b78=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1e6b78['to']('count',_0x232663=>N(_0x46de9a,'NUMBER_OF_COMMENTS',_0x232663))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x20dcca,_0x14ada0,_0x6cc682){super(_0x20dcca);const _0x978f34=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x14ada0['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x14ada0,this['_config']=_0x6cc682,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x2a1b65(),this['keystrokes']=new jt(),this['focusCycler']=new _0xa03dd2({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x51ecd8=>this['commentViews']['map'](_0x213192=>_0x213192['element'])['includes'](_0x51ecd8['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x20dcca),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4c78dd=>_0x4c78dd-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3825fa of _0x14ada0['comments'])this['_handleNewCommentModel'](_0x3825fa);this['_handleInfoComment'](),this['listenTo'](_0x14ada0['comments'],'add',(_0x285e1f,_0x13b6a8)=>{const _0x3231b2=this['_calculatePosition'](_0x13b6a8);this['length']++,this['_handleNewCommentModel'](_0x13b6a8,_0x3231b2),this['refreshVisibleViews']();}),this['listenTo'](_0x14ada0['comments'],'remove',(_0x579d89,_0x2a5898)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2a5898),this['refreshVisibleViews']();}),this['listenTo'](_0x14ada0,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x14ada0,'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',_0x978f34['if']('length','ck-hidden',_0x3525f0=>!_0x3525f0)],'aria-label':N(_0x20dcca,'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'](_0x54b158){-0x1===_0x54b158?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x557e57 of this['commentViews'])_0x557e57['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x518521,_0x9141ba){const _0x41cff1=new this['_config']['CommentView'](this['locale'],_0x518521,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x41cff1['viewUid']=_0x518521['id'],_0x41cff1['delegate']('removeComment')['to'](this),_0x41cff1['delegate']('updateComment')['to'](this),_0x41cff1['delegate']('resolveCommentThread')['to'](this),_0x41cff1['delegate']('editorReady')['to'](this),_0x41cff1['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x41cff1,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x41cff1,_0x9141ba);}['_calculatePosition'](_0xf995c1){const _0x51377d=this['_model']['_findOptimalIndex'](_0xf995c1);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0xf995c1['authoredAt']?_0x51377d-0x1:_0x51377d:_0x51377d-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x1ef8aa={'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'],_0x1ef8aa,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x1ef8aa));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0xec8788){const _0xeab2a7=this['commentViews']['remove'](_0xec8788['id']);this['stopListening'](_0xeab2a7),_0xeab2a7['isEditMode']&&this['_updateHasDirtyComment'](),_0xeab2a7['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x5e3067=>_0x5e3067['isEditMode']);}['_rearrangeCollapse'](){const _0x53a009=function(_0x192256){const _0x426433=new _0x154060();for(const _0x52f14c of _0x192256)_0x426433['add'](_0x52f14c);return _0x426433;}(this['commentViews']),_0x51af2c=this['_collapsedCommentsView']['count'];for(let _0x52769c=0x1;_0x52769c<=_0x51af2c;_0x52769c++)_0x53a009['remove'](0x1);for(const _0xc5007b of _0x53a009)_0xc5007b['collapse']();_0x51af2c>0x0&&_0x53a009['add'](this['_collapsedCommentsView'],0x1),ns(_0x3a8927(Array['from'](this['visibleViews']),Array['from'](_0x53a009)),this['visibleViews'],_0x53a009);}['_rearrangeExpand'](){ns(_0x3a8927(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x38bc75 of this['visibleViews'])_0x38bc75['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x45da06=>{this['focusTracker']['add'](_0x45da06['element']),this['keystrokes']['listenTo'](_0x45da06['element']);}),this['commentViews']['on']('change',(_0x5cef3d,_0x438380)=>{for(const _0x5a5685 of _0x438380['removed'])this['focusTracker']['remove'](_0x5a5685['element']),this['keystrokes']['stopListening'](_0x5a5685['element']);for(const _0xfba775 of Array['from'](_0x438380['added'])['reverse']())this['focusTracker']['add'](_0xfba775['element']),this['keystrokes']['listenTo'](_0xfba775['element']);});}}function ns(_0x178456,_0x113c5c,_0xbc3f2c){let _0x29ed02=0x0;for(const _0x3206d6 of _0x178456)switch(_0x3206d6){case'insert':_0x113c5c['add'](_0xbc3f2c['get'](_0x29ed02),_0x29ed02),_0x29ed02++;break;case'delete':_0x113c5c['remove'](_0x29ed02);break;case'equal':_0x29ed02++;}}class oe extends kt{constructor(_0x45c3bb){super(_0x45c3bb);const _0x3baf09=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3baf09['to']('contextValue',_0x45316f=>N(_0x45c3bb,'THREAD_CONTEXT_LABEL',_0x45316f)),'tabindex':-0x1},'children':[{'text':_0x3baf09['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2e2685,_0x4631c9){super(_0x2e2685);const _0x4314e4=this['bindTemplate'];this['_model']=_0x4631c9,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x2a1b65(),this['keystrokes']=new jt(),this['focusCycler']=new _0xa03dd2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x2eeef9=>!!_0x2eeef9),this['bind']('contextValue')['to'](this['_model'],'context',_0x21998d=>_0x21998d&&_0x21998d['value']?this['_trimContextValue'](_0x21998d['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',_0x4314e4['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 _0x27b257=new _0x3ec9bf(this['locale']);return _0x27b257['label']=N(this['locale'],'Reopen'),_0x27b257['tooltip']=N(this['locale'],'Reopen'),_0x27b257['icon']=_0x446dce,_0x27b257['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2b4e73=>!_0x2b4e73),_0x27b257['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xc0e5b4,_0x3e38a2)=>_0xc0e5b4&&_0x3e38a2),_0x27b257['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x27b257;}['_trimContextValue'](_0x1a6597){if(_0x1a6597['length']<0x96)return _0x1a6597;const _0x5bf12c=_0x1a6597['lastIndexOf']('\x20',0x93);return _0x1a6597['substring'](0x0,_0x5bf12c>-0x1?_0x5bf12c:0x93)+'...';}['_attachContextActions'](){const _0x39ae16=this['element']['querySelector']('.ck-context'),_0x439919=_0x39ae16['querySelector']('.ck-context__value');this['listenTo'](_0x39ae16,'mouseenter',()=>{_0x439919['offsetWidth']<_0x439919['scrollWidth']&&_0x39ae16['classList']['add']('overlay');}),this['listenTo'](_0x39ae16,'mouseleave',()=>{_0x39ae16['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x11433f of this['focusables'])this['focusTracker']['add'](_0x11433f['element']),this['keystrokes']['listenTo'](_0x11433f['element']);}['_createContextView'](){const _0x1306e3=new oe(this['locale']);return _0x1306e3['bind']('contextValue')['to'](this),_0x1306e3;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x377e93,_0x5a2abb,_0x23409d,_0xff14a){super(_0x377e93),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5a2abb,this['_localUser']=_0x23409d,this['_config']=_0xff14a,this['commentThreadHeaderView']=new Xt(_0x377e93,_0x5a2abb),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x377e93,N(_0x377e93,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x377e93,_0x5a2abb,Object['assign']({'CommentView':this['_config']['CommentView']},_0xff14a)),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',(_0xe4e596,_0x325852)=>_0xe4e596||!!_0x325852),this['bind']('isUnlinked')['to'](_0x5a2abb,'unlinkedAt',_0xfe1629=>!!_0xfe1629),this['bind']('ariaLabel')['to'](this,'length',_0x4d97c3=>{const _0x3db06f=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x4d97c3,_0x3db06f]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x2a1b65(),this['keystrokes']=new jt(),this['focusCycler']=new _0xa03dd2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xc3c3f7=>_0xc3c3f7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x37ee4b=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x24a1a4=_0x37ee4b['commentInputView'];return _0x37ee4b['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x24a1a4,'value',(_0x2ec528,_0x4cc07e,_0x7a413d,_0x5a0fb5,_0x580908)=>!!_0x580908||!!_0x5a0fb5&&_0x7a413d&&!_0x4cc07e||_0x2ec528&&_0x7a413d&&!_0x4cc07e),_0x24a1a4['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x67834d,_0xeac1da,_0xc6c6f6)=>{let _0x507c59;return _0x507c59=_0xc6c6f6&&_0xeac1da?'Reply\x20to\x20reopen\x20discussion...':_0x67834d?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x507c59);}),_0x24a1a4['bind']('submitLabel')['to'](this,'length',_0x4ae4b7=>N(this['locale'],_0x4ae4b7?'Reply':'Comment')),_0x24a1a4['on']('submit',(_0x56ea9c,_0x1c9eb5)=>{this['fire']('addComment',_0x1c9eb5),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x24a1a4['on']('cancel',()=>{this['focus']();}),_0x24a1a4['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x24a1a4['on']('cancel',_0x443892=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x443892['stop']());}),this['on']('change:isActive',(_0x4b7609,_0x36ac5b,_0x12c9c0)=>{_0x12c9c0||this['length']||_0x24a1a4['value']||this['fire']('removeCommentThread');}),_0x37ee4b;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x5b4ca3,_0x125efc,_0x49ecee,_0x425063){super(_0x5b4ca3,_0x125efc,_0x49ecee,_0x425063),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x5b4ca3,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4b0cd0,_0x546fff,_0x2f3c75)=>{_0x2f3c75||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3f4d9b,_0x12bc36,_0x335767)=>{_0x335767&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x210a4a=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x210a4a['if']('isActive','ck-thread--active'),_0x210a4a['if']('isUnlinked','ck-thread--unlinked'),_0x210a4a['to']('actionIndicator',_0x2781ff=>_0x2781ff?'ck-thread--'+_0x2781ff:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x210a4a['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 _0x4ed06b of this['commentsListView']['commentViews'])_0x4ed06b['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3fd84e}=this,_0x35fb28=this['commentsListView']['commentViews']['get'](0x0);_0x35fb28===this['_boundFirstCommentView']||_0x35fb28['isSystemComment']||(this['_boundFirstCommentView']=_0x35fb28,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x35fb28,'actionIndicator',_0x587a1c=>'remove'===_0x587a1c?'remove':null),_0x35fb28['placeholder']=N(_0x3fd84e,'Write\x20a\x20comment...'),_0x35fb28['removeButton']['on']('execute',_0x5d6607=>{_0x5d6607['stop'](),this['showConfirm'](N(_0x3fd84e,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x35fb28['focus']();}),_0x35fb28['actionBar']['add'](this['resolveButton'],0x0),_0x35fb28['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x4076c5=new _0x3f1c9d(this['locale']);return _0x4076c5['label']=N(this['locale'],'Resolve'),_0x4076c5['tooltip']=N(this['locale'],'Resolve'),_0x4076c5['icon']=_0xd57701,_0x4076c5['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x4076c5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x142f65=>!_0x142f65),_0x4076c5['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x503be1,_0x2e897e)=>_0x503be1&&!_0x2e897e),_0x4076c5['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x4076c5;}['_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 is extends kt{constructor(_0x467eab){super(_0x467eab),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x1f5270,_0x1b51fd,_0x50ea59)=>{this['element']['innerHTML']=_0x50ea59;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x41e0d1,_0x42ff35,_0x18b2f9){super(_0x41e0d1),this['_model']=_0x42ff35,this['_config']=_0x18b2f9,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x42ff35,'content',_0x42ff35,'authoredAt',(_0x5be905,_0x2dd686)=>N(_0x41e0d1,'COMMENT_ARIA_LABEL',[_0x42ff35['author']['name'],_0x18b2f9['formatDateTime'](_0x2dd686),new DOMParser()['parseFromString'](_0x5be905,'text/html')['body']['textContent'],_0x42ff35['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x41e0d1,N(_0x41e0d1,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xc6e21b(),this['focusTracker']=new _0x2a1b65(),this['keystrokes']=new jt(),this['focusCycler']=new _0xa03dd2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x539563=>_0x539563['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 _0x2280dd=new is(this['locale']);return _0x2280dd['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x568ea4,_0x410a0b)=>_0x410a0b?ts(_0x568ea4,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x568ea4),_0x2280dd;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x8a1197=new es(this['locale'],this['_config']['editorConfig']);return _0x8a1197['value']=this['_model']['content'],_0x8a1197['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x8a1197['submitLabel']=N(this['locale'],'Save'),_0x8a1197['on']('submit',(_0x35987f,_0x289f48)=>{this['fire']('updateComment',this['_model']['id'],_0x289f48),this['switchToDisplayMode'](),this['focus']();}),_0x8a1197['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x8a1197['once']('editorReady',()=>{_0x8a1197['focus']();}),_0x8a1197['createEditor'](),_0x8a1197['delegate']('editorReady')['to'](this),_0x8a1197['delegate']('editorDestroyed')['to'](this),_0x8a1197;}['_setupKeyboardNavigation'](){const _0x2e9ae3=this['element'];this['keystrokes']['listenTo'](_0x2e9ae3);for(const _0x2dfac2 of this['focusables'])this['focusTracker']['add'](_0x2dfac2['element']),this['keystrokes']['listenTo'](_0x2dfac2['element']);this['focusables']['on']('change',(_0x582ad8,_0x426519)=>{for(const _0x2658a4 of _0x426519['removed'])this['focusTracker']['remove'](_0x2658a4['element']),this['keystrokes']['stopListening'](_0x2658a4['element']);for(const _0x194746 of _0x426519['added'])this['focusTracker']['add'](_0x194746['element']),this['keystrokes']['listenTo'](_0x194746['element']);}),this['keystrokes']['set']('enter',(_0x35feb4,_0x2f1ae1)=>{_0x2e9ae3===_0x35feb4['target']&&(this['focusCycler']['focusFirst'](),_0x2f1ae1());}),this['keystrokes']['set']('esc',(_0x5da054,_0x54995e)=>{_0x2e9ae3!==_0x5da054['target']&&(this['focus'](),_0x54995e());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x4dbdae,_0x368c0c,_0x1b736b){super(_0x4dbdae,_0x368c0c,_0x1b736b),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x4dbdae,'Reply...')),this['bind']('authoredAt')['to'](_0x368c0c),this['bind']('resolvedAt')['to'](_0x368c0c),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 _0x506dc9(_0x4dbdae,_0x368c0c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x368c0c,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5c0e21=this['bindTemplate'],_0x47348b=[{'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':_0x5c0e21['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5c0e21['to']('authoredAt',_0x63debc=>this['_config']['formatDateTime'](_0x63debc))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5c0e21['if']('isEditMode','ck-comment__actions--hidden'),_0x5c0e21['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']&&_0x47348b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x5c0e21['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5c0e21['if']('isEditMode','ck-comment--edit'),_0x5c0e21['if']('isSystemComment','ck-comment--info'),_0x5c0e21['to']('actionIndicator',_0x321790=>_0x321790?'ck-comment--'+_0x321790:'')],'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':_0x47348b}]}]};}['_createEditButton'](){const _0x1c56a7=new _0x3ec9bf(this['locale']);return _0x1c56a7['label']=N(this['locale'],'Edit'),_0x1c56a7['icon']=_0x4c737e,_0x1c56a7['withText']=!0x0,_0x1c56a7['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1c56a7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x441ead=>!_0x441ead),_0x1c56a7['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1c56a7['on']('execute',()=>this['switchToEditMode']()),_0x1c56a7;}['_createRemoveButton'](){const _0x2759c6=new _0x3ec9bf(this['locale']);return _0x2759c6['label']=N(this['locale'],'Remove'),_0x2759c6['icon']=_0x1d16ba,_0x2759c6['withText']=!0x0,_0x2759c6['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x2759c6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xfeb011=>!_0xfeb011),_0x2759c6['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x2759c6['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x2759c6;}['_createDropdown'](){const _0x399c57=_0x3d8ac5(this['locale'],_0x36176c),_0x35bb27=_0x399c57['panelView']['children'],_0x43ad3a=new _0x367e97(this['locale']),_0x5298d9=_0x399c57['bindTemplate'];_0x43db75(_0x399c57,()=>this['items']['find'](_0x215150=>_0x215150['isVisible'])),_0x399c57['extendTemplate']({'attributes':{'class':[_0x5298d9['if']('isVisible','ck-hidden',_0x14b301=>!_0x14b301)]}});const _0x5e39ff=(_0x32fee4,_0x34006d=-0x1)=>{const _0x50388b=new _0x10a8ab(this['locale']);_0x50388b['children']['add'](_0x32fee4);const _0x16af56=_0x34006d>-0x1?_0x34006d:_0x43ad3a['items']['length'];_0x43ad3a['items']['add'](_0x50388b,_0x16af56);const _0x338001=Array['from'](this['items']);_0x399c57['unbind']('isEnabled','isVisible'),_0x399c57['bind']('isEnabled')['toMany'](_0x338001,'isEnabled',(..._0x536eca)=>_0x536eca['some'](_0x941fdc=>_0x941fdc)),_0x399c57['bind']('isVisible')['toMany'](_0x338001,'isVisible',(..._0x4ef989)=>_0x4ef989['some'](_0x123d55=>_0x123d55));};_0x399c57['panelPosition']='sw',_0x399c57['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x5100a1});for(const _0x36fcb1 of this['items'])_0x5e39ff(_0x36fcb1);return _0x35bb27['add'](_0x43ad3a),_0x399c57['listenTo'](this['items'],'add',(_0x50cb24,_0x457b61,_0x2f419e)=>{_0x5e39ff(_0x457b61,_0x2f419e);}),_0x399c57['listenTo'](this['items'],'remove',(_0x212517,_0x12a5ad,_0x25118b)=>{_0x43ad3a['items']['remove'](_0x25118b);}),_0x399c57;}['_attachActions'](_0x350341,_0x139fab){const _0xa752c6=_0x350341&&_0x350341['element'];_0xa752c6&&(this['listenTo'](_0xa752c6,'mouseenter',()=>this['actionIndicator']=_0x139fab),this['listenTo'](_0xa752c6,'focus',()=>this['actionIndicator']=_0x139fab),this['listenTo'](_0xa752c6,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0xa752c6,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x5cae16=super['_createCommentInputView']();return _0x5cae16['bind']('placeholder')['to'](this),_0x5cae16;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x468ccb){const _0x283e7f=Dt(_0x468ccb,0x1e),_0xb8ce02=new MutationObserver(_0x18ac53=>{for(const _0x1bc307 of _0x18ac53)('attributes'==_0x1bc307['type']&&'class'==_0x1bc307['attributeName']||'childList'==_0x1bc307['type']||'characterData'==_0x1bc307['type'])&&_0x283e7f();});return{'attach'(_0x3cfd45){_0xb8ce02['observe'](_0x3cfd45,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0xb8ce02['disconnect'](),_0x283e7f['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0xc86e91,_0x4d0e94){super(_0xc86e91),this['id']=_0x30e0a0(),this['focusTracker']=new _0x2a1b65(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x4a9390,_0x39524d)=>this['fire']('Esc',_0x39524d)),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'](_0x4d0e94),this['mainView']=_0x4d0e94;const _0x128af1=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x128af1['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 _0x5f2c1a=this['element']['clientHeight'];_0x5f2c1a&&(this['height']=_0x5f2c1a);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x1d90c7(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x180782,target:_0x1ecd61,type:_0x11134f,isVisible:_0x57db3c=!0x0}){super(),this['view']=_0x180782,this['view']['element']||this['view']['render'](),this['_type']=_0x11134f,this['_target']=_0x1ecd61,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x154060([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x4f2dd2,_0x48fba4)=>{this['view']['focusTracker']['add'](_0x48fba4);}),this['focusableElements']['on']('remove',(_0x2dbb8c,_0x4b29ad)=>{this['view']['focusTracker']['remove'](_0x4b29ad);}),this['set']('isVisible',_0x57db3c);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x547411=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x547411),_0x547411;}get['targetRect'](){const _0x5d6d95=this['target'];if(null===_0x5d6d95)return null;if(_0x5d6d95 instanceof _0x229f6f)return _0x5d6d95;const _0x59a4b9=_0x5d6d95['filter'](_0x3dd014=>function(_0x4663f4){const _0x401a33=_0x4663f4['offsetParent'];if(_0x401a33)return!0x0;const _0x1123b6=_0x4663f4['getClientRects']()['item'](0x0);return!!_0x1123b6;}(_0x3dd014));return 0x0===_0x59a4b9['length']?null:new _0x229f6f(_0x59a4b9[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5a5385){this['view']['isActive']=_0x5a5385,this['view']['mainView']['isActive']=_0x5a5385;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x362136){if(!(null===_0x362136||_0x362136 instanceof _0x229f6f||Array['isArray'](_0x362136)&&_0x362136['every'](_0x432a0a=>fi(_0x432a0a))))throw new _0x3605a1('annotation-invalid-target',null,{'target':_0x362136});}['_getNormalizedTarget'](){const _0x40099b='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x40099b)?[_0x40099b]:_0x40099b;}}function fi(_0x297b39){return null!==_0x297b39&&'object'==typeof _0x297b39&&'nodeType'in _0x297b39&&0x1===_0x297b39['nodeType'];}class S extends _0x154060{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x40b95f=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x2a1b65(),this['_focusTracker']['on']('change:isFocused',(_0x4e53c9,_0x4e9b33,_0x21abc9)=>{_0x21abc9||this['fire']('blur');});for(const _0x3d8840 of _0x40b95f)this['add'](_0x3d8840);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x378c7f){if(this['has'](_0x378c7f))throw new _0x3605a1('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x378c7f['innerView'],_0x378c7f),this['_viewToAnnotation']['set'](_0x378c7f['view'],_0x378c7f);for(const _0x5231f9 of _0x378c7f['focusableElements'])this['_focusTracker']['add'](_0x5231f9);this['listenTo'](_0x378c7f['focusableElements'],'add',(_0x2408eb,_0x40685c)=>{this['_focusTracker']['add'](_0x40685c);}),this['listenTo'](_0x378c7f['focusableElements'],'remove',(_0x159e1f,_0x15c13b)=>{this['_focusTracker']['remove'](_0x15c13b);}),this['listenTo'](_0x378c7f['view']['focusTracker'],'change:isFocused',(_0x5670eb,_0xd652c4,_0x239f5a)=>{_0x239f5a&&this['fire']('focus',_0x378c7f);}),_0x378c7f['updateTargetRect']();const _0x4f3627=this['_getOrderInContent'](_0x378c7f['view']['targetRect']);return super['add'](_0x378c7f,_0x4f3627);}['remove'](_0x46f134){if(!this['has'](_0x46f134))throw new _0x3605a1('annotationcollection-not-existing-item',null);this['stopListening'](_0x46f134['view']['focusTracker']),this['stopListening'](_0x46f134['focusableElements']);for(const _0x257f88 of _0x46f134['focusableElements'])this['_focusTracker']['remove'](_0x257f88);return this['_viewToAnnotation']['delete'](_0x46f134['view']),this['_innerViewToAnnotation']['delete'](_0x46f134['innerView']),super['remove'](_0x46f134);}['getByInnerView'](_0x122d4e){return this['_innerViewToAnnotation']['get'](_0x122d4e);}['getByView'](_0x52fd1b){return this['_viewToAnnotation']['get'](_0x52fd1b);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x4575a2 of this)_0x4575a2['updateTargetRect']();this['_sort']();}['_sort'](){const _0x49cdcb=Array['from'](this)['sort']((_0x44b0de,_0x45b851)=>w(_0x44b0de['view']['targetRect'],_0x45b851['view']['targetRect']));for(let _0x1ba5b7=_0x49cdcb['length']-0x1;_0x1ba5b7>0x0;_0x1ba5b7--){const _0x49e8db=_0x49cdcb[_0x1ba5b7];_0x1ba5b7!==this['getIndex'](_0x49e8db)&&(this['remove'](_0x49e8db),this['add'](_0x49e8db));}}['_getOrderInContent'](_0x1336a3){let _0xccd0ab=0x0;if(!_0x1336a3)return this['length'];for(const _0x2b5eb6 of this){const _0xdc19c8=_0x2b5eb6['view']['targetRect'];if(_0xdc19c8){if(w(_0x1336a3,_0xdc19c8)<0x0)return _0xccd0ab;_0xccd0ab++;}}return _0xccd0ab;}}function v({source:_0x57e3ea,target:_0x4399f7,filter:_0x5b55b8}){for(const _0x32aa70 of _0x57e3ea)_0x5b55b8(_0x32aa70)&&_0x4399f7['add'](_0x32aa70);_0x4399f7['listenTo'](_0x57e3ea,'add',(_0x2f58e7,_0x2b33fb)=>{_0x5b55b8(_0x2b33fb)&&_0x4399f7['add'](_0x2b33fb);}),_0x4399f7['listenTo'](_0x57e3ea,'remove',(_0x59ec48,_0x56ded7)=>{_0x4399f7['has'](_0x56ded7)&&_0x4399f7['remove'](_0x56ded7);});}function w(_0x3cdc35,_0x2d762d){if(null===_0x3cdc35&&null===_0x2d762d)return 0x0;if(null===_0x3cdc35)return-0x1;if(null===_0x2d762d)return 0x1;const _0x24a60c=_0x3cdc35['top']-_0x2d762d['top'];return 0x0==_0x24a60c?_0x3cdc35['left']-_0x2d762d['left']:_0x24a60c;}class y extends _0x55eb0b{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d3ecc){if(super(_0x4d3ecc),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4d3ecc instanceof _0x290c7b){const _0x4165e9=_0x4d3ecc['locale'];_0x4d3ecc['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x4165e9,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x4165e9,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x4165e9,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x4165e9,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x4165e9,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x4165e9,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x4165e9,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x48ebdc){this['collection']['add'](_0x48ebdc);}['remove'](_0x23e36c){this['collection']['remove'](_0x23e36c),_0x23e36c['destroy']();}['refreshVisibility'](){for(const _0x46809c of this['collection'])_0x46809c['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x333222){return this['collection']['getByInnerView'](_0x333222);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x437b23 of this['collection'])_0x437b23['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x517516){this['fire']('_activateAnnotation',_0x517516);}['createAnnotation'](_0x14a088){return new T(_0x14a088);}['createAnnotationView'](_0x4b9ca9,_0x46fa54){return new E(_0x4b9ca9,_0x46fa54);}['_addActiveAnnotation'](_0x35918f){const _0x54e721=new Set(this['activeAnnotations']);_0x54e721['add'](_0x35918f),this['activeAnnotations']=_0x54e721;}['_removeActiveAnnotation'](_0xf49fb4){const _0x170de4=new Set(this['activeAnnotations']);_0x170de4['delete'](_0xf49fb4),this['activeAnnotations']=_0x170de4;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4de93f=this['collection'],_0x8df4e3=this['_visibleAnnotations'];function _0x3ff5e8(_0x201cc4){const _0x2084dd=_0x201cc4['source'];_0x2084dd['isVisible']&&!_0x8df4e3['has'](_0x2084dd)?_0x8df4e3['add'](_0x2084dd):!_0x2084dd['isVisible']&&_0x8df4e3['has'](_0x2084dd)&&_0x8df4e3['remove'](_0x2084dd),_0x2084dd['view']['focusTracker']['remove'](_0x2084dd['view']['element']),_0x2084dd['view']['focusTracker']['add'](_0x2084dd['view']['element']);}this['listenTo'](_0x4de93f,'add',(_0xcfa6af,_0x2d5a40)=>{_0x2d5a40['isVisible']&&_0x8df4e3['add'](_0x2d5a40),this['listenTo'](_0x2d5a40,'change:isVisible',_0x3ff5e8);}),this['listenTo'](_0x4de93f,'remove',(_0x122cd1,_0x563c47)=>{_0x8df4e3['has'](_0x563c47)&&_0x8df4e3['remove'](_0x563c47),this['stopListening'](_0x563c47,'change:isVisible',_0x3ff5e8);});}['_setupEnterAnnotationKeystroke'](){const _0x332326=_0x354659=>{_0x354659['on']('ready',()=>{_0x354659['keystrokes']['set'](_0x590dda,(_0xc75f79,_0x6ce585)=>{const _0x50def1=_0x1ffc80(this['activeAnnotations']['values']());_0x50def1&&(_0x50def1['view']['focus'](),_0x6ce585());});});};this['context']instanceof _0x290c7b?_0x332326(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x55bd23,_0x37d2ff)=>{_0x332326(_0x37d2ff);});}['_setupEscapeAnnotationHandling'](){const _0x2e7cf3=_0x1f1d7b=>{const _0x43aa6e=_0x1f1d7b['source'],_0x36348f=[];let _0x15aacd;if(Array['isArray'](_0x43aa6e['target'])){_0x15aacd=_0x43aa6e['target'][0x0],this['context']instanceof _0x290c7b?_0x36348f['push'](this['context']):this['context']['editors']&&_0x36348f['push'](...this['context']['editors']);for(const _0x3e7375 of _0x36348f)for(const _0x29e01e of _0x3e7375['editing']['view']['domRoots']['values']())if(_0x29e01e['contains'](_0x15aacd))return void _0x3e7375['editing']['view']['focus']();_0x15aacd['focus']();}};this['listenTo'](this['collection'],'add',(_0x126d24,_0x2616de)=>{this['listenTo'](_0x2616de,'escape',_0x2e7cf3,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x35c161,_0x413f63)=>{this['stopListening'](_0x413f63,'escape',_0x2e7cf3);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x55eb0b{['_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(_0x15974a){super(_0x15974a),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x24371a=this['context']['config'];_0x24371a['define']('comments.maxCommentsWhenCollapsed',0x2),_0x24371a['define']('comments.maxThreadTotalWeight',0x1f4),_0x24371a['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x24371a['define']('comments.CommentThreadView',gt),_0x24371a['define']('comments.CommentView',Tt),_0x24371a['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x10ad9b=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x12cf07,_0x59c594)=>this['_addCommentThread'](_0x59c594)),this['on']('submitCommentThread',(_0x15bd50,_0x28b638)=>this['_submitCommentThread'](_0x28b638)),this['on']('resolveCommentThread',(_0x361f0c,_0x2a516d)=>this['_resolveCommentThread'](_0x2a516d)),this['on']('resolveCommentThread',(_0x13744b,_0x2568dc)=>this['_updateActiveAnnotation'](_0x2568dc),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x419ac3,_0x1defd0)=>this['_reopenCommentThread'](_0x1defd0)),this['on']('reopenCommentThread',(_0x14d149,_0x345676)=>this['_updateActiveAnnotation'](_0x345676),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x54a8da,_0x2d0283)=>this['_removeCommentThread'](_0x2d0283)),this['on']('updateCommentThread',(_0x2519f2,_0xce8296)=>this['_updateCommentThread'](_0xce8296)),this['on']('updateCommentThread',(_0xf71a0e,_0x258f48)=>this['_updateActiveAnnotation'](_0x258f48),{'priority':'lowest'}),this['on']('addComment',(_0x378e82,_0x4a6363)=>this['_addComment'](_0x4a6363)),this['on']('updateComment',(_0x2c7055,_0x35064e)=>this['_updateComment'](_0x35064e)),this['on']('removeComment',(_0xc3e08,_0x3c2d8a)=>this['_removeComment'](_0x3c2d8a)),this['on']('addComment',(_0x36dcea,{threadId:_0x19c515,isFromAdapter:_0x1df2c7})=>{if(_0x1df2c7)return;const _0xdae4e0=this['getCommentThread'](_0x19c515),_0x2cbc79=_0xdae4e0&&this['_threadToController']['get'](_0xdae4e0);_0x2cbc79&&_0x2cbc79['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x10ad9b,'change:activeAnnotations',(_0xce537b,_0x40bceb,_0x3e6e3b)=>{const _0x35ad76=Array['from'](_0x3e6e3b)['map'](_0x237265=>this['_viewToController']['get'](_0x237265['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x35ad76?_0x35ad76['model']:null;});}set['adapter'](_0x12986e){if(this['_adapter'])throw new _0x3605a1('commentsrepository-adapter-already-set');this['_adapter']=_0x12986e;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0xd7fb9e=_t,threadId:_0xc7c37b=_0x30e0a0(),comments:_0xd292fa=[],unlinkedAt:_0x35a277=null,resolvedAt:_0x571a24=null,resolvedBy:_0x13d413=null,target:_0x2e6317=null,context:_0x432473=null,attributes:_0x2399e6={},isResolvable:_0x122b10=!0x0,isSubmitted:_0x200303=!0x1,isFromAdapter:_0x10f741=!0x1}={}){return this['fire'](Nt('addCommentThread',_0xd7fb9e),{'channelId':_0xd7fb9e,'threadId':_0xc7c37b,'comments':_0xd292fa,'unlinkedAt':_0x35a277,'resolvedAt':_0x571a24,'resolvedBy':_0x13d413,'target':_0x2e6317,'context':_0x432473,'attributes':_0x2399e6,'isFromAdapter':_0x10f741,'isResolvable':_0x122b10,'isSubmitted':_0x200303}),this['getCommentThread'](_0xc7c37b);}['openNewCommentThread']({channelId:_0x1d9041=_t,threadId:_0x4fc950=_0x30e0a0(),target:_0x1db1b9,context:_0x5babb2=null,isResolvable:_0x5c7af3=!0x0}){if(this['_readOnlyChannels']['has'](_0x1d9041)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x1db1b9)throw new _0x3605a1('commentsrepository-missing-target');const _0x523744=this['addCommentThread']({'channelId':_0x1d9041,'threadId':_0x4fc950,'target':_0x1db1b9,'context':_0x5babb2,'isResolvable':_0x5c7af3});if(!_0x523744)return null;const _0x26c164=this['_threadToController']['get'](_0x523744),_0x420857=_0x26c164['view']['commentThreadInputView']['commentInputView'],_0x3f2de1=this['context']['plugins']['get'](y),_0x22b4bb=_0x3f2de1['getByInnerView'](_0x26c164['view']);return _0x3f2de1['activate'](_0x22b4bb),_0x420857['once']('editorReady',()=>_0x420857['focus']()),_0x523744;}['hasCommentThread'](_0x47f848){if('string'!=typeof _0x47f848)throw new _0x3605a1('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x47f848);}['updateCommentThread']({channelId:_0x3efc9b=_t,threadId:_0x255894,context:_0xb166e1,unlinkedAt:_0x203582,attributes:_0x586c7f,isFromAdapter:_0x898be4=!0x1}){return this['fire'](Nt('updateCommentThread',_0x3efc9b),{'channelId':_0x3efc9b,'threadId':_0x255894,'context':_0xb166e1,'unlinkedAt':_0x203582,'attributes':_0x586c7f,'isFromAdapter':_0x898be4}),this['getCommentThread'](_0x255894);}['getCommentThread'](_0x4be593){if('string'!=typeof _0x4be593)throw new _0x3605a1('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4be593);}['fetchCommentThread']({channelId:_0x6ff1cc,threadId:_0x10f9c8}={}){const _0x3f3f33=this['getCommentThread'](_0x10f9c8);if(_0x3f3f33)return Promise['resolve'](_0x3f3f33);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3605a1('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x6ff1cc,'threadId':_0x10f9c8})['then'](_0x5cbd0c=>this['hasCommentThread'](_0x10f9c8)?this['getCommentThread'](_0x10f9c8):_0x5cbd0c?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x6ff1cc},_0x5cbd0c)):void 0x0)['catch'](_0x148607=>{throw console['error'](_0x148607),new _0x3605a1('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x368f52,skipNotAttached:_0x23ec7b=!0x1,skipEmpty:_0xa85636=!0x1,toJSON:_0xa54658=!0x1}={}){const _0x3986b9=[];for(const _0x599299 of this['_threads']['values']())_0x368f52&&_0x599299['channelId']!==_0x368f52||_0x23ec7b&&!_0x599299['isAttached']||_0xa85636&&0x0===_0x599299['length']||_0x3986b9['push'](_0x599299);return _0xa54658?_0x3986b9['map'](_0x693910=>_0x693910['toJSON']()):_0x3986b9;}['getAnnotationForCommentThread'](_0x4f949c){const _0x163b30=this['_threadToController']['get'](_0x4f949c);if(!_0x163b30)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x163b30['view'])||null;}['getCommentThreadForAnnotation'](_0x4b52a8){const _0x5b5848=this['_viewToController']['get'](_0x4b52a8['innerView']);return _0x5b5848?_0x5b5848['model']:null;}['setActiveCommentThread'](_0x2beee6){const _0x2f738e=this['context']['plugins']['get'](y);if(!_0x2beee6)return void(this['activeCommentThread']&&_0x2f738e['deactivateAll']());const _0x19e22c=this['getCommentThread'](_0x2beee6);if(!_0x19e22c)throw new _0x3605a1('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x2beee6});if(!this['_threadToController']['has'](_0x19e22c))throw new _0x3605a1('commentsrepository-active-not-attached',null,{'threadId':_0x2beee6});const _0x6f8d4e=_0x2f738e['getByInnerView'](this['_threadToController']['get'](_0x19e22c)['view']);_0x2f738e['activate'](_0x6f8d4e);}['switchReadOnly'](_0x1e789a,_0x6ed371){_0x1e789a?this['_readOnlyChannels']['add'](_0x6ed371):this['_readOnlyChannels']['delete'](_0x6ed371),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x18e4f1){return this['_readOnlyChannels']['has'](_0x18e4f1)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x52fcfb,_0x5d8c7a){return new vt(_0x52fcfb,_0x5d8c7a);}['setPermissions'](_0x1d4abd,_0x36756d=_t){this['_permissions']['set'](_0x36756d,_0x1d4abd),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0xc894a8=_t){return this['_permissions']['has'](_0xc894a8)?this['_permissions']['get'](_0xc894a8):bt;}['_addCommentThread']({channelId:_0x16a98d,threadId:_0x4e5d8d,comments:_0x19c04a,unlinkedAt:_0x1cae46,resolvedAt:_0x55bd0,resolvedBy:_0x29d3cd,target:_0x44303e,context:_0x3f9a5b,attributes:_0x107314,isFromAdapter:_0x208eda,isResolvable:_0x11dac9,isSubmitted:_0x3da17c}){if('string'!=typeof _0x4e5d8d)throw new _0x3605a1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4e5d8d});if(this['hasCommentThread'](_0x4e5d8d))throw new _0x3605a1('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4e5d8d});const _0x20e60d=new pi(this,{'channelId':_0x16a98d,'id':_0x4e5d8d,'context':_0x3f9a5b,'attributes':_0x107314,'unlinkedAt':_0x1cae46,'resolvedAt':_0x55bd0,'resolvedBy':_0x29d3cd?this['context']['plugins']['get'](it)['getUser'](_0x29d3cd):null,'isResolvable':_0x11dac9,'isSubmitted':_0x3da17c||_0x208eda});this['_threads']['set'](_0x4e5d8d,_0x20e60d);for(const _0x2109ce of _0x19c04a)_0x20e60d['_add'](this['_createNewComment']({'threadId':_0x4e5d8d,..._0x2109ce}));return _0x44303e&&_0x20e60d['attachTo'](_0x44303e),_0x208eda||!_0x20e60d['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x16a98d,'threadId':_0x4e5d8d});}['_submitCommentThread']({channelId:_0x43b2f9,threadId:_0x430447}){if(!this['hasCommentThread'](_0x430447))throw new _0x3605a1('commentsrepository-missing-comment-thread',this);const _0x4c8db1=this['getCommentThread'](_0x430447);if(_0x4c8db1['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5db255,comments:_0x2f29dc,resolvedAt:_0x30b9e4,resolvedBy:_0x4c67e4,context:_0x316217,attributes:_0x325250}=_0x4c8db1,_0x3f5e65=this['context']['plugins']['get']('PendingActions'),_0x48c1f1=_0x3f5e65['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x43b2f9,'threadId':_0x5db255,'comments':_0x2f29dc['map'](_0x50950a=>_0x50950a['toJSON']()),'resolvedAt':_0x30b9e4,'resolvedBy':_0x4c67e4?_0x4c67e4['id']:_0x4c67e4,'context':_0x316217,'attributes':_0x325250})['then'](({comments:_0x11357a})=>{_0x3f5e65['remove'](_0x48c1f1);for(const _0xcd6fb4 of _0x11357a)this['_updateComment']({'channelId':_0x43b2f9,'threadId':_0x430447,'commentId':_0xcd6fb4['commentId'],'createdAt':_0xcd6fb4['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x47491f=>{throw console['error'](_0x47491f),new _0x3605a1('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4d618b,target:_0x4c9bac}){const _0x3989a6=this['getCommentThread'](_0x4d618b);if(!_0x3989a6)throw new _0x3605a1('commentsrepository-attach-missing-comment-thread',this);const _0x17c519=this['context']['plugins']['get']('PendingActions'),_0x22c66b=this['context']['plugins']['get'](y),_0x253647=this['_createCommentThreadView'](_0x3989a6),_0x163b78=new vt(_0x3989a6,_0x253647);let _0x14e80c=null;_0x253647['on']('change:isDirty',(_0xc7fa58,_0x23190d,_0x155ed8)=>{_0x155ed8?_0x14e80c=_0x17c519['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x14e80c&&(_0x17c519['remove'](_0x14e80c),_0x14e80c=null);}),this['_threadToController']['set'](_0x3989a6,_0x163b78),this['_viewToController']['set'](_0x253647,_0x163b78);const _0x21e981=new E(this['context']['locale'],_0x253647);_0x21e981['bind']('length')['to'](_0x253647),_0x21e981['bind']('isDirty')['to'](_0x253647,'isDirty',_0x253647,'length',(_0x41ef79,_0x644e04)=>_0x41ef79||!_0x644e04),_0x21e981['bind']('isActive')['to'](_0x253647),_0x21e981['type']='comment';const _0x3022fa=new T({'view':_0x21e981,'target':_0x4c9bac,'type':'comment','isVisible':!_0x3989a6['archivedAt']&&!!('function'==typeof _0x4c9bac?_0x4c9bac():_0x4c9bac)});return _0x253647['on']('escape',()=>{_0x3022fa['fire']('escape');}),this['_bindAnnotationToEditors'](_0x253647,_0x3022fa),_0x22c66b['add'](_0x3022fa),_0x3022fa;}['_bindAnnotationToEditors'](_0x43e0e3,_0x2a1024){this['listenTo'](_0x43e0e3,'editorReady',(_0x3a2cff,_0x4028b3)=>{const _0x4b7371=_0x4028b3['ui']['view']['body']['bodyCollectionContainer'];_0x2a1024['focusableElements']['add'](_0x4b7371),this['context']instanceof _0x290c7b&&this['context']['ui']['focusTracker']['add'](_0x4b7371);},{'priority':'highest'}),this['listenTo'](_0x43e0e3,'editorDestroyed',(_0x579864,_0x30707e)=>{const _0x4e9f88=_0x30707e['ui']['view']['body']['bodyCollectionContainer'];_0x2a1024['focusableElements']['has'](_0x4e9f88)&&_0x2a1024['focusableElements']['remove'](_0x4e9f88),this['context']instanceof _0x290c7b&&this['context']['ui']['focusTracker']['remove'](_0x4e9f88);});}['_unbindEditors'](_0x3d5bc1){this['stopListening'](_0x3d5bc1,'editorReady'),this['stopListening'](_0x3d5bc1,'editorDestroyed');}['_createCommentThreadView'](_0x1959eb){const _0x2d3836=this['context']['plugins']['get'](it),{config:_0x357ca2,locale:_0x16ed59}=this['context'],_0x2a19d4=pt(_0x357ca2['get']('locale'),_0x16ed59);return new(0x0,(_0x357ca2['get']('comments'))['CommentThreadView'])(_0x16ed59,_0x1959eb,_0x2d3836['me'],{'editorConfig':{..._0x357ca2['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x357ca2['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x357ca2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x357ca2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x357ca2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2a19d4,'CommentView':_0x357ca2['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x50e9fd,channelId:_0xe50c59,resolvedAt:_0x260c3f,resolvedBy:_0x29696a,isFromAdapter:_0x5f03a6}){if(!this['hasCommentThread'](_0x50e9fd))throw new _0x3605a1('commentsrepository-missing-comment-thread',null,{'threadId':_0x50e9fd});const _0x5ccab7=this['getCommentThread'](_0x50e9fd);if(_0x5ccab7['isResolved'])throw new _0x3605a1('commentsrepository-resolved-comment-thread',null,{'threadId':_0x50e9fd});const _0x890b62=this['context']['plugins']['get'](it);if(_0x5ccab7['resolvedBy']=_0x890b62['getUser'](_0x29696a),_0x5ccab7['resolvedAt']=_0x260c3f,_0x5f03a6||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x4aef47=this['context']['plugins']['get']('PendingActions'),_0x583c28=_0x4aef47['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0xe50c59,'threadId':_0x50e9fd})['then'](({resolvedAt:_0x56cc31,resolvedBy:_0x6c162})=>{_0x4aef47['remove'](_0x583c28),_0x5ccab7['resolvedBy']['id']!==_0x6c162&&(_0x5ccab7['resolvedBy']=_0x890b62['getUser'](_0x6c162)),_0x5ccab7['resolvedAt']=_0x56cc31;})['catch'](_0xeb2553=>{throw console['error'](_0xeb2553),new _0x3605a1('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x15baf4,channelId:_0xaa1807,isFromAdapter:_0x12df01}){if(!this['hasCommentThread'](_0x15baf4))throw new _0x3605a1('commentsrepository-missing-comment-thread',null,{'threadId':_0x15baf4});const _0xaa4ffd=this['getCommentThread'](_0x15baf4);if(!_0xaa4ffd['isResolved'])throw new _0x3605a1('commentsrepository-reopen-comment-thread',null,{'threadId':_0x15baf4});if(_0xaa4ffd['resolvedBy']=null,_0xaa4ffd['resolvedAt']=null,_0x12df01||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3baf50=this['context']['plugins']['get']('PendingActions'),_0x13bf48=_0x3baf50['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0xaa1807,'threadId':_0x15baf4})['then'](()=>_0x3baf50['remove'](_0x13bf48))['catch'](_0x94617e=>{throw console['error'](_0x94617e),new _0x3605a1('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x52a173,isFromAdapter:_0x36b815}){const _0x22f918=this['getCommentThread'](_0x52a173);if(!_0x22f918)throw new _0x3605a1('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x52a173),this['_threads']['delete'](_0x52a173),!_0x22f918['isSubmitted']||_0x36b815||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5e61ed=this['context']['plugins']['get']('PendingActions'),{channelId:_0x10a1e6}=_0x22f918,_0x2e191a=_0x5e61ed['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x10a1e6,'threadId':_0x52a173})['then'](()=>_0x5e61ed['remove'](_0x2e191a))['catch'](_0x346d87=>{throw console['error'](_0x346d87),new _0x3605a1('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x58878f,unlinkedAt:_0xc04b57,context:_0x5d632d,attributes:_0x3d7d63,isFromAdapter:_0x470674}){if('string'!=typeof _0x58878f)throw new _0x3605a1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x58878f});if(!this['hasCommentThread'](_0x58878f))throw new _0x3605a1('commentsrepository-missing-comment-thread',null,{'threadId':_0x58878f});const _0x19fabc=this['getCommentThread'](_0x58878f);let _0x28ab34=!0x1;if(void 0x0!==_0x5d632d&&_0x19fabc['context']!==_0x5d632d&&(_0x19fabc['context']=_0x5d632d,_0x28ab34=!0x0),void 0x0!==_0xc04b57&&_0x19fabc['unlinkedAt']!==_0xc04b57&&(_0x19fabc['unlinkedAt']=_0xc04b57,_0x28ab34=!0x0),_0x3d7d63&&!At(_0x3d7d63,_0x19fabc['attributes'])&&(_0x19fabc['attributes']=_0x3d7d63,_0x28ab34=!0x0),!_0x28ab34)return Promise['resolve']();if(!_0x19fabc['isSubmitted']||_0x470674||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x1ece27=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1c4156}=_0x19fabc,_0x4292c8=_0x1ece27['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1c4156,'threadId':_0x58878f,'context':_0x5d632d,'unlinkedAt':_0xc04b57,'attributes':_0x3d7d63})['then'](()=>_0x1ece27['remove'](_0x4292c8))['catch'](_0x32f42a=>{throw console['error'](_0x32f42a),new _0x3605a1('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x3498a3){const _0xd22987=this['context']['plugins']['get'](y),_0x1497cb=this['getCommentThread'](_0x3498a3);if(_0x1497cb['_isAttached']=!0x1,this['_threadToController']['has'](_0x1497cb)){const _0x23b930=this['_threadToController']['get'](_0x1497cb),_0x5e228a=_0x23b930['view'],_0x3888c5=_0xd22987['getByInnerView'](_0x5e228a);this['_threadToController']['delete'](_0x1497cb),this['_viewToController']['delete'](_0x5e228a),_0x3888c5&&_0xd22987['remove'](_0x3888c5),_0x23b930['destroy'](),_0x5e228a['destroy']()['then'](()=>{this['_unbindEditors'](_0x5e228a);});}}['_updateActiveAnnotation']({threadId:_0x596526,resolvedAt:_0x385967,unlinkedAt:_0x614aaf}){const _0x1a6bfa=!!_0x385967,_0x286f8b=this['context']['plugins']['get'](y),_0x4c669b=this['getCommentThread'](_0x596526);if(this['_threadToController']['has'](_0x4c669b)){const _0x1c9c4c=this['_threadToController']['get'](_0x4c669b)['view'],_0x585496=_0x286f8b['getByInnerView'](_0x1c9c4c);_0x585496&&(_0x1a6bfa&&_0x286f8b['_removeActiveAnnotation'](_0x585496),_0x614aaf?_0x585496['isVisible']=!0x1:_0x585496['refreshVisibility']());}}['_getExternalAuthor'](_0x2f2eb7){const _0x327775=this['context']['plugins']['get'](it),_0x17f2ba=It('external:'+_0x2f2eb7),_0x368995=_0x327775['getUser'](_0x17f2ba);return _0x368995||_0x327775['addUser']({'id':_0x17f2ba,'name':_0x2f2eb7});}['_createNewComment']({threadId:_0x4b310d,commentId:_0xc0b438=_0x30e0a0(),content:_0x52b967,authorId:_0xf4fa4,createdAt:_0x516fa1,attributes:_0xf63856}){if('string'!=typeof _0xc0b438)throw new _0x3605a1('commentsrepository-invalid-commentid');if('string'!=typeof _0xf4fa4)throw new _0x3605a1('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x52b967||!_0x52b967['trim']())throw new _0x3605a1('commentsrepository-invalid-comment-content');const _0x50f017=this['context']['plugins']['get'](it)['getUser'](_0xf4fa4);if(!_0x50f017)throw new _0x3605a1('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0xf4fa4});let _0x3ce36f=null,_0x5a958c=_0x516fa1;return _0xf63856?.['@external']&&(_0x3ce36f=this['_getExternalAuthor'](_0xf63856['@external']['authorName']),_0x5a958c=new Date(_0xf63856['@external']['createdAt'])),new wi(this,{'threadId':_0x4b310d,'id':_0xc0b438,'author':_0x3ce36f||_0x50f017,'creator':_0x50f017,'content':_0x52b967,'createdAt':_0x516fa1,'authoredAt':_0x5a958c,'attributes':_0xf63856});}['_addComment'](_0x3db84b){let {threadId:_0x395ff8,content:_0x3c3040,attributes:_0x3a18a7,isFromAdapter:_0x327295}=_0x3db84b;const _0x4c5cc9=this['getCommentThread'](_0x3db84b['threadId']);if(!_0x4c5cc9)throw new _0x3605a1('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x3034f9=this['_createNewComment'](_0x3db84b),{id:_0x51f823}=_0x3034f9;if(_0x4c5cc9['_add'](_0x3034f9),_0x327295||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4c5cc9['isSubmitted'])return Promise['resolve']();const _0x105d1b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1acdfb}=_0x4c5cc9,_0x15c48f=_0x105d1b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3a18a7||(_0x3a18a7={}),this['adapter']['addComment']({'channelId':_0x1acdfb,'threadId':_0x395ff8,'commentId':_0x51f823,'content':_0x3c3040,'attributes':_0x3a18a7})['then'](_0x2d5280=>{_0x105d1b['remove'](_0x15c48f),_0x2d5280&&this['_updateComment']({'channelId':_0x1acdfb,'threadId':_0x395ff8,'commentId':_0x51f823,'createdAt':_0x2d5280['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3d254f=>{throw console['error'](_0x3d254f),new _0x3605a1('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x43f782,commentId:_0x3acf9a,content:_0x5fc99a,createdAt:_0x24a93c,attributes:_0x4e333c,isFromAdapter:_0x3fba2e}){if(void 0x0!==_0x5fc99a&&('string'!=typeof _0x5fc99a||!_0x5fc99a['trim']()['length']))throw new _0x3605a1('commentsrepository-update-comment-invalid-content');const _0x30d923=this['getCommentThread'](_0x43f782),_0x49d332=_0x30d923['getComment'](_0x3acf9a);if(!_0x49d332)throw new _0x3605a1('commentsrepository-update-missing-comment',this);let _0x294c20=!0x1;if(_0x5fc99a&&_0x5fc99a!==_0x49d332['content']&&(_0x49d332['isEditable']||_0x3fba2e)&&(_0x49d332['content']=_0x5fc99a,_0x294c20=!0x0),_0x24a93c&&_0x24a93c!==_0x49d332['createdAt']&&(_0x49d332['createdAt']=_0x24a93c,_0x49d332['attributes']&&_0x49d332['attributes']['@external']||(_0x49d332['authoredAt']=_0x24a93c),_0x294c20=!0x0),_0x4e333c&&!At(_0x4e333c,_0x49d332['attributes'])&&(_0x49d332['attributes']=_0x4e333c,_0x294c20=!0x0),!_0x294c20)return Promise['resolve']();if(_0x30d923['fire']('commentUpdated'),_0x3fba2e||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x49421d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x118369}=this['getCommentThread'](_0x49d332['threadId']),_0x2e21b7=_0x49421d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x118369,'threadId':_0x43f782,'commentId':_0x3acf9a,'content':_0x5fc99a,'attributes':_0x4e333c})['then'](()=>_0x49421d['remove'](_0x2e21b7))['catch'](_0x29f8fe=>{throw console['error'](_0x29f8fe),new _0x3605a1('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x94b1ef,commentId:_0x3d3c04,isFromAdapter:_0x4d543c}){const _0x8fd17f=this['getCommentThread'](_0x94b1ef),_0x2b1273=_0x8fd17f['getComment'](_0x3d3c04);if(!_0x2b1273)throw new _0x3605a1('commentsrepository-remove-missing-comment',this);if(_0x8fd17f['_remove'](_0x2b1273),_0x4d543c||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x256510=this['context']['plugins']['get']('PendingActions'),{channelId:_0x34ccc1}=_0x8fd17f,_0xeffd5e=_0x256510['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x34ccc1,'threadId':_0x94b1ef,'commentId':_0x3d3c04})['then'](()=>_0x256510['remove'](_0xeffd5e))['catch'](_0x4cb078=>{throw console['error'](_0x4cb078),new _0x3605a1('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x1d90c7(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x34d898,_0xa5b8b4){super();const _0x8e6f7b=_0xa5b8b4['isResolvable'];this['channelId']=_0xa5b8b4['channelId'],this['id']=_0xa5b8b4['id'],this['comments']=new _0x154060(),this['_repository']=_0x34d898,this['_isAttached']=!0x1,this['_isSubmitted']=_0xa5b8b4['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x34d898,'_permissions',_0x34d898,'_readOnlyChannels',()=>_0x34d898['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x34d898,'_permissions',()=>_0x34d898['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x34d898,'_permissions',()=>{const _0x44bdd0=_0x34d898['getPermissions'](this['channelId']);return _0x44bdd0['write']||_0x44bdd0['admin'];}),this['bind']('isResolvable')['to'](_0x34d898,'_permissions',()=>_0x8e6f7b&&_0x34d898['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0xa5b8b4['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0xb23f52,_0x5b492f)=>_0xb23f52?_0x5b492f?_0xb23f52<_0x5b492f?_0xb23f52:_0x5b492f:_0xb23f52:_0x5b492f),this['set']('unlinkedAt',_0xa5b8b4['unlinkedAt']||null),this['set']('resolvedAt',_0xa5b8b4['resolvedAt']||null),this['set']('resolvedBy',_0xa5b8b4['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x15e17f=>!!_0x15e17f),this['set']('attributes',_0xa5b8b4['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x3712c6,_0x282019)=>_0x3712c6+_0x282019['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x6f4a78,id:_0x4f0f89}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x6f4a78),{'channelId':_0x6f4a78,'threadId':_0x4f0f89});}['setUnlinkedAt'](_0x1afc53){this['_update']({'unlinkedAt':_0x1afc53});}['resolve']({resolvedAt:_0x484509=new Date(),resolvedBy:_0x254339='',isFromAdapter:_0x30de3d=!0x1}={}){const _0x5e01b5=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x133e77,id:_0x419972}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x133e77),{'channelId':_0x133e77,'threadId':_0x419972,'resolvedAt':_0x484509,'resolvedBy':_0x254339||_0x5e01b5['id'],'isFromAdapter':_0x30de3d});}['reopen']({isFromAdapter:_0x3809bb=!0x1}={}){const {channelId:_0x36c577,id:_0x3f051c}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x36c577),{'channelId':_0x36c577,'threadId':_0x3f051c,'isFromAdapter':_0x3809bb});}['setContext'](_0x54f464){this['context']||this['_update']({'context':_0x54f464});}['setAttribute'](_0x5cd19c,_0x381b92){const _0x4dc05a=wt(this['attributes']);yt(_0x4dc05a,_0x5cd19c,_0x381b92),this['_update']({'attributes':_0x4dc05a});}['removeAttribute'](_0x1de877){const _0x1c1458=wt(this['attributes']);Ct(_0x1c1458,_0x1de877),this['_update']({'attributes':_0x1c1458});}['remove']({isFromAdapter:_0x2fbc53=!0x1}={}){const {channelId:_0x25a98d,id:_0x418f8d}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x25a98d),{'channelId':_0x25a98d,'threadId':_0x418f8d,'isFromAdapter':_0x2fbc53});}['attachTo'](_0x2a7de9){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x2a7de9});}['addComment'](_0xc580c4){const {channelId:_0x406e20,id:_0x6fbe47}=this;this['_repository']['fire'](Nt('addComment',_0x406e20,_0x6fbe47),Object['assign']({'channelId':_0x406e20,'threadId':_0x6fbe47},_0xc580c4));}['getComment'](_0x48db86){if('string'!=typeof _0x48db86)throw new _0x3605a1('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x48db86});return this['comments']['get'](_0x48db86);}['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'](_0x25bf23=>_0x25bf23['toJSON']()),'attributes':this['attributes']};}['_add'](_0x4d4685){return this['listenTo'](_0x4d4685,'change:authoredAt',()=>{const _0x35b2b5=this['_findOptimalIndex'](_0x4d4685),_0x552220=this['comments'];_0x35b2b5-0x1!=_0x552220['getIndex'](_0x4d4685)&&_0x35b2b5+0x1!=_0x552220['getIndex'](_0x4d4685)&&(this['_remove'](_0x4d4685),this['_add'](_0x4d4685));}),this['comments']['add'](_0x4d4685,this['_findOptimalIndex'](_0x4d4685));}['_update'](_0x18daf0){const {channelId:_0x95476f,id:_0x4f94c5}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x95476f),{..._0x18daf0,'channelId':_0x95476f,'threadId':_0x4f94c5});}['_remove'](_0x989bdd){return this['stopListening'](_0x989bdd),_0x989bdd['destroy'](),this['comments']['remove'](_0x989bdd);}['_findOptimalIndex'](_0x5b1297){const _0x28fbfa=this['comments']['find'](_0x11e9e6=>new Date(_0x11e9e6['authoredAt'])['getTime']()>new Date(_0x5b1297['authoredAt'])['getTime']());return _0x28fbfa?this['comments']['getIndex'](_0x28fbfa):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x1d90c7(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x414e14,_0x19113f){super();const _0x15b0c2=_0x414e14['context']['plugins']['get'](it)['me'],_0x5340ce=_0x414e14['getCommentThread'](_0x19113f['threadId']),_0x4467ce=0x0===_0x5340ce['comments']['length'],_0x513359=_0x15b0c2===_0x19113f['author'];this['id']=_0x19113f['id'],this['threadId']=_0x19113f['threadId'],this['author']=_0x19113f['author'],this['creator']=_0x19113f['creator'],this['isExternal']=Boolean(_0x19113f['attributes']&&_0x19113f['attributes']['@external']),this['set']('content',_0x19113f['content']),this['createdAt']=_0x19113f['createdAt']||new Date(),this['set']('authoredAt',_0x19113f['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5340ce,'resolvedAt'),this['set']('attributes',_0x19113f['attributes']||{}),this['bind']('isEditable')['to'](_0x414e14,'_permissions',()=>{const _0x39b1bc=_0x414e14['getPermissions'](_0x5340ce['channelId'])['write'],_0x3b2797=_0x414e14['getPermissions'](_0x5340ce['channelId'])['modifyAll'];return _0x513359&&_0x39b1bc||!_0x513359&&_0x3b2797;}),this['bind']('isRemovable')['to'](_0x5340ce,'isRemovable',_0x414e14,'_permissions',_0x49040c=>{const _0x442d46=_0x414e14['getPermissions'](_0x5340ce['channelId'])['write'],_0x459454=_0x414e14['getPermissions'](_0x5340ce['channelId'])['modifyAll'];return _0x513359&&_0x442d46||_0x49040c&&_0x4467ce||!_0x513359&&_0x459454&&!_0x4467ce;}),this['bind']('isReadOnly')['to'](_0x5340ce,'isReadOnly'),this['_repository']=_0x414e14;}get['weight'](){return Math['max'](function(_0x4bf7d6){const _0x5cccd6=document['createElement']('div');return _0x5cccd6['innerHTML']=_0x4bf7d6,_0x5cccd6['textContent']['length'];}(this['content']),0xc8);}['update'](_0x2d7773){const {threadId:_0x2790d8,id:_0x2b0fef}=this;if(!this['_repository']['hasCommentThread'](_0x2790d8))throw new _0x3605a1('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x1891ac}=this['_repository']['getCommentThread'](_0x2790d8);this['_repository']['fire'](Nt('updateComment',_0x1891ac,_0x2790d8),{'channelId':_0x1891ac,'threadId':_0x2790d8,'commentId':_0x2b0fef,..._0x2d7773});}['setAttribute'](_0x207c8a,_0x34dbdf){const _0x36a2bc=wt(this['attributes']);yt(_0x36a2bc,_0x207c8a,_0x34dbdf),this['update']({'attributes':_0x36a2bc});}['removeAttribute'](_0x5eebd1){const _0x4e7824=wt(this['attributes']);Ct(_0x4e7824,_0x5eebd1),this['update']({'attributes':_0x4e7824});}['remove'](_0x8d24b8={}){if(!_0x8d24b8['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4a36fa,id:_0x2d6ffa}=this;if(!this['_repository']['hasCommentThread'](_0x4a36fa))throw new _0x3605a1('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x5b48b2}=this['_repository']['getCommentThread'](_0x4a36fa);this['_repository']['fire'](Nt('removeComment',_0x5b48b2,_0x4a36fa),{'channelId':_0x5b48b2,'threadId':_0x4a36fa,'commentId':_0x2d6ffa,..._0x8d24b8});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x4b5ad8,..._0x445f12){for(const _0x516e43 of _0x445f12)void 0x0!==_0x516e43&&(_0x4b5ad8+=':'+String(_0x516e43));return _0x4b5ad8;}class ot extends _0x3e1529{constructor(_0x5197e7){super(_0x5197e7),this['set']('hasContent',!0x1);}['refresh'](){const _0x52f45f=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x45895d of _0x52f45f['getRanges']())if(this['_hasContent'](_0x45895d))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x47a8c0=_0x30e0a0(),ranges:_0x548d09,comment:_0x36d7d1}={}){const _0x523620=this['editor']['model'],_0x5a88db=_0x548d09??Array['from'](_0x523620['document']['selection']['getRanges']()),_0x55f872=[];for(const _0x45e6d7 of _0x5a88db)this['_hasContent'](_0x45e6d7)&&_0x55f872['push'](this['_trimToContent'](_0x45e6d7));if(!_0x55f872['length'])throw new _0x3605a1('addcommentthreadcommand-incorrect-ranges',null);_0x36d7d1&&this['_createCommentThread'](_0x47a8c0,_0x36d7d1),this['_createMarkersFromRanges'](_0x47a8c0,_0x55f872,!!_0x36d7d1);}['_createMarkersFromRanges'](_0x39912b,_0x1781e9,_0x388fe8){this['editor']['model']['change'](_0x9f781f=>{for(const _0x2dc6cb of _0x1781e9){const _0x4debb1=_0x30e0a0()['substr'](0x1,0x5),_0x47a077='comment:'+_0x39912b+':'+_0x4debb1;_0x9f781f['addMarker'](_0x47a077,{'range':_0x2dc6cb,'usingOperation':_0x388fe8,'affectsData':_0x388fe8});}});}['_createCommentThread'](_0xd5ae0e,_0x5ce4b4){const _0x3a99da=this['editor']['plugins']['get']('CommentsRepository'),_0x2f166f=this['editor']['config']['get']('collaboration.channelId'),_0x4b760d=this['editor']['plugins']['get']('Users')['me'];if(!_0x4b760d)throw new _0x3605a1('addcommentthreadcommand-user-not-found',null);_0x3a99da['addCommentThread']({'threadId':_0xd5ae0e,'channelId':_0x2f166f,'comments':[{'authorId':_0x4b760d['id'],'content':_0x5ce4b4,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x3f4a81){for(const _0x1970f6 of _0x3f4a81['getItems']())if(this['_itemIsContent'](_0x1970f6))return!0x0;return!0x1;}['_itemIsContent'](_0x399411){return _0x399411['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x399411)&&!_0x399411['is']('element','tableCell');}['_trimToContent'](_0x24a2b7){const _0x25735a=_0x18aff4=>!this['_itemIsContent'](_0x18aff4['item']),_0x383dda=_0x24a2b7['start']['getLastMatchingPosition'](_0x25735a),_0x212453=_0x24a2b7['end']['getLastMatchingPosition'](_0x25735a,{'direction':'backward'});return this['editor']['model']['createRange'](_0x383dda,_0x212453);}}class b extends _0x1b7a9c{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f096a){super(_0x2f096a),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xe6c6=this['editor'],_0x2689c0=_0xe6c6['model']['document']['selection'],_0x5d9268=_0x5b09fb(()=>this['refreshSelectedViews'](),0xa);_0x2689c0['on']('change:range',(_0x53a4bf,_0x450754)=>{_0x450754['directChange']&&(_0x5d9268['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xe6c6['editing']['view']['document'],'change:isFocused',(_0xd5450c,_0x5b547d,_0x2a0780)=>{_0x2a0780&&_0x5d9268();}),this['listenTo'](_0xe6c6['ui']['focusTracker'],'change:isFocused',(_0x1f65e7,_0x586797,_0x575431)=>{_0x575431||this['fire']('blur',{'isAnnotationTracked':_0x31bc48=>this['_editorAnnotationsData']['has'](_0x31bc48['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x3145d6){if(this['_editorAnnotations']['has'](_0x3145d6['view']))return;this['_editorAnnotations']['add'](_0x3145d6['view']),this['editor']['ui']['focusTracker']['add'](_0x3145d6['view']['element']);const _0xd7acfc=this['editor']['plugins']['get'](y);this['listenTo'](_0xd7acfc['collection'],'remove',(_0x3a22a8,_0x430f8d)=>{this['editor']['ui']['focusTracker']['remove'](_0x430f8d['view']['element']),this['_editorAnnotations']['delete'](_0x430f8d['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x2e9340){if('function'!=typeof _0x2e9340)throw new _0x3605a1('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x2e9340);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x177270,annotations:_0x4014a7}){const _0x3c8c40=[],_0x41dfb6=this['editor']['model']['document']['selection'],_0x44904d=Array['from'](_0x41dfb6['getRanges']());for(const [_0x1fbdf7,_0x19da52]of this['_editorAnnotationsData']){const _0x4a3217=_0x1428fe(_0x19da52),_0x439ca3=_0x4014a7['getByInnerView'](_0x1fbdf7);_0x4a3217&&_0x439ca3&&_0x3c8c40['push']({'annotation':_0x439ca3,'range':_0x4a3217});}function _0x1428fe(_0x18559b){for(const _0x523569 of _0x18559b)for(const _0x4be7ea of _0x44904d)if(_0x523569['containsRange'](_0x4be7ea,!_0x41dfb6['isCollapsed']))return _0x523569;return null;}return _0x3c8c40['sort']((_0x530379,_0xe1b286)=>{const _0x56dc97=_0x530379['range'],_0x39d6ff=_0xe1b286['range'];if(!_0x56dc97['isEqual'](_0x39d6ff)){if(_0x56dc97['containsRange'](_0x39d6ff,!0x0))return 0x1;if(_0x39d6ff['containsRange'](_0x56dc97,!0x0))return-0x1;}return _0x530379['annotation']==_0x177270?-0x1:_0xe1b286['annotation']==_0x177270?0x1:0x0;})['map'](_0x749872=>_0x749872['annotation']);}get['_editorAnnotationsData'](){const _0x26a6cd=new Map();for(const _0x58d9ef of Array['from'](this['_dataCollectors']))for(const [_0x405841,_0x5b2011]of _0x58d9ef())_0x26a6cd['set'](_0x405841,_0x5b2011);return _0x26a6cd;}}class st extends _0x1b7a9c{['afterInit'](){const _0x720f57=this['editor'];if(!_0x720f57['plugins']['has']('RestrictedEditingModeEditing'))return;_0x720f57['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x1b7a9c{constructor(_0x17218e){super(_0x17218e),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x58cacf=this['editor'],_0x4a1e05=_0x58cacf['commands']['get']('importWord'),_0x954193=_0x58cacf['plugins']['get'](it);_0x4a1e05&&(_0x4a1e05['on']('execute',(_0x3c6c64,[,_0x22497e])=>{_0x22497e['collaboration_features']={'comments':!0x0,'user_id':_0x954193['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4a1e05,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x66ee3f,_0x394ad7){const {comment_threads:_0x372361}=_0x394ad7;_0x372361&&_0x372361['forEach'](({thread_id:_0xa084bb,comments:_0x4eadf8,is_resolved:_0x40b88e})=>{const _0x383383=new Date(),_0x25ecf2=_0x4eadf8['map'](({author:_0x3375e7,content:_0x3685a3,created_at:_0x5e6b39})=>({'content':_0x3685a3,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x383383,'attributes':{'@external':{'authorName':_0x3375e7,'createdAt':_0x5e6b39?new Date(_0x5e6b39):new Date(),'source':'importWord'}}})),_0x2d85b5=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2d85b5,'threadId':_0xa084bb,'comments':_0x25ecf2,'resolvedAt':_0x40b88e?_0x383383:null});});}}class at extends _0x1b7a9c{constructor(_0x219c07){super(_0x219c07),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x445b29=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x445b29,'contentInsertion',(_0x59f3ee,_0x7fde58)=>this['_removeMarkersWithoutThreads'](_0x7fde58['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x22ccc0){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x22ccc0;const _0x54935d=this['editor']['plugins']['get']('CommentsRepository');for(const _0x25a06f of _0x22ccc0['keys']()){const [_0x3eda92,_0x3c5eda]=_0x25a06f['split'](':');'comment'!=_0x3eda92||_0x54935d['hasCommentThread'](_0x3c5eda)||_0x22ccc0['delete'](_0x25a06f);}return _0x22ccc0;}['_registerMarkerInClipboardPipeline'](){const _0x32eefd=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1397d4=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1397d4&&_0x32eefd['_registerMarkerToCopy']('comment',_0x1397d4);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x23f145){switch(_0x23f145){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2bbd9d){const _0xd10f17=_0x2bbd9d['split'](':');return{'group':_0xd10f17[0x0],'id':_0xd10f17[0x1],'part':_0xd10f17[0x2]};}class ut extends _0x1b7a9c{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x320bd0,_0x2b90e0)=>{if(!_0x2b90e0['options']['showCommentHighlights'])return null;if(_0x2b90e0['options']['ignoreResolvedComments']){const {id:_0x45e2f6}=ft(_0x320bd0['markerName']),_0x1b2a6f=this['editor']['plugins']['get'](o);if(_0x1b2a6f['getCommentThread'](_0x45e2f6)?.['isResolved']&&_0x320bd0['item'])return _0x2b90e0['consumable']['consume'](_0x320bd0['item'],'addMarker:'+_0x320bd0['markerName']),_0x2b90e0['consumable']['consume'](_0x320bd0['item'],'removeMarker:'+_0x320bd0['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4ed33d=>{_0x4ed33d['on']('addMarker:comment',(_0x35ae99,_0x15150f,_0x9da1c3)=>{if(!_0x9da1c3['options']['showCommentHighlights'])return;const _0x597928=_0x15150f['item'];if(!_0x597928)return;const _0x5533b8=_0x9da1c3['mapper']['toViewElement'](_0x597928);this['editor']['model']['schema']['isObject'](_0x597928)&&_0x5533b8&&!_0x5533b8['getCustomProperty']('widget')&&_0x5533b8['is']('containerElement')&&_0x4b438a(_0x5533b8,_0x9da1c3['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x317048,{writer:_0x120f73,options:_0x57c9a1})=>{if(!_0x57c9a1['showCommentHighlights'])return null;const _0x18b39c=_0x120f73['createContainerElement']('div'),_0x385824=_0x120f73['createEmptyElement']('hr');return _0x120f73['addClass']('ck-horizontal-line',_0x18b39c),_0x120f73['insert'](_0x120f73['createPositionAt'](_0x18b39c,0x0),_0x385824),_0x18b39c;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x2c26b0,{writer:_0x2b2d1a,options:_0x528e5f})=>{if(!_0x528e5f['showCommentHighlights'])return null;const _0x522156=_0x2b2d1a['createContainerElement']('span'),_0x516346=_0x2b2d1a['createEmptyElement']('img');return _0x2b2d1a['addClass']('image-inline',_0x522156),_0x2b2d1a['insert'](_0x2b2d1a['createPositionAt'](_0x522156,0x0),_0x516346),_0x522156;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x7d91ba,{writer:_0x169973,options:_0x586631})=>{if(_0x586631['showCommentHighlights'])return _0x169973['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4e86b6,_0x725869,_0x1b9ce6)=>{_0x1b9ce6['options']['showCommentHighlights']&&_0x4e86b6['stop']();},{'priority':'high'});}}class r extends _0x1b7a9c{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(_0x56f506){super(_0x56f506),this['set']('isThreadsLoadingPaused',!0x0),_0x56f506['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x4c1529,_0x45f757,_0x269153,_0x2d6d73)=>{const _0x3b1836=_0x56f506['plugins']['get'](o),_0x1b67cd=_0x269153?ft(_0x269153)['id']:null;_0x56f506['model']['change'](()=>{if(_0x1b67cd){const _0x59fc8a=this['getAllMarkersForId'](_0x1b67cd);for(const _0x453e69 of _0x59fc8a)_0x56f506['editing']['reconvertMarker'](_0x453e69);}if(_0x2d6d73){const {id:_0x1cb7c7}=ft(_0x2d6d73),_0x48f001=_0x3b1836['getCommentThread'](_0x1cb7c7);if(_0x48f001&&_0x48f001['unlinkedAt'])return;if(_0x48f001&&!_0x48f001['isAttached'])return;const _0x3a47eb=this['getAllMarkersForId'](_0x1cb7c7);for(const _0x5f356c of _0x3a47eb)_0x56f506['editing']['reconvertMarker'](_0x5f356c);}}),_0x1b67cd&&this['scrollToThreadMarker'](_0x1b67cd);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x7d6a79=this['editor'],_0x26f547=_0x7d6a79['plugins']['get'](o),_0x3f8d7f=_0x7d6a79['config']['get']('collaboration.channelId'),_0x3190f7=_0x26f547['getCommentThreads']()['filter'](_0x1093f0=>_0x1093f0['channelId']!==_0x3f8d7f);_0x7d6a79['commands']['add']('addCommentThread',new ot(_0x7d6a79)),this['listenTo'](_0x7d6a79,'change:isReadOnly',(_0x464bc8,_0xe70228,_0x5d0295)=>{_0x26f547['switchReadOnly'](_0x5d0295,_0x7d6a79['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x26f547,dt('addCommentThread',_0x3f8d7f),(_0x37cdee,{threadId:_0xa2c0d5})=>{const _0x27fd49=this['editor']['plugins']['get'](o)['getCommentThread'](_0xa2c0d5);_0x27fd49?.['unlinkedAt']&&this['_attachArchivedThread'](_0xa2c0d5);}),this['listenTo'](_0x26f547,dt('removeCommentThread',_0x3f8d7f),(_0x2edcbd,{threadId:_0x46a4fc})=>{_0x7d6a79['model']['enqueueChange']({'isUndoable':!0x1},_0x1ffbde=>{const _0xe9ae93=this['getAllMarkersForId'](_0x46a4fc);for(const _0x32c312 of _0xe9ae93)_0x1ffbde['removeMarker'](_0x32c312);});}),this['listenTo'](_0x26f547,dt('resolveCommentThread',_0x3f8d7f),(_0x25061b,{threadId:_0x2b2329})=>{(this['_reconvertMarkers'](_0x2b2329),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x2b2329)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x26f547,dt('reopenCommentThread',_0x3f8d7f),(_0xd8a486,{threadId:_0x5be29c})=>{this['_reconvertMarkers'](_0x5be29c);},{'priority':'low'}),this['listenTo'](_0x26f547,dt('addComment',_0x3f8d7f),(_0x1c7352,{threadId:_0x2eda72,isFromAdapter:_0x552e8e})=>{const _0x1e09be=this['getAllMarkersForId'](_0x2eda72);if(_0x552e8e||0x0==_0x1e09be['length']||!_0x26f547['hasCommentThread'](_0x2eda72))return;0x1===_0x26f547['getCommentThread'](_0x2eda72)['length']&&_0x7d6a79['model']['enqueueChange']({'isUndoable':!0x1},_0x4f1a31=>{for(const _0x576a7a of _0x1e09be)_0x4f1a31['updateMarker'](_0x576a7a,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x3190f7);}['afterInit'](){!async function(_0x59783b){const _0x4adac2=_0x171372([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]),_0x5d8187=0x73460ab3,_0x40b1f4=0x73418d7b^_0x5d8187,_0x5068cc=window[_0x171372([0x44,0x61,0x74,0x65])][_0x171372([0x6e,0x6f,0x77])](),_0x25436d=_0x59783b[_0x171372([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4351dc=new window[(_0x171372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bf832=>{_0x25436d[_0x171372([0x6f,0x6e,0x63,0x65])](_0x171372([0x72,0x65,0x61,0x64,0x79]),_0x1bf832);}),_0x20d041={[_0x171372([0x6b,0x74,0x79])]:_0x171372([0x45,0x43]),[_0x171372([0x75,0x73,0x65])]:_0x171372([0x73,0x69,0x67]),[_0x171372([0x63,0x72,0x76])]:_0x171372([0x50,0x2d,0x32,0x35,0x36]),[_0x171372([0x78])]:_0x171372([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]),[_0x171372([0x79])]:_0x171372([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]),[_0x171372([0x61,0x6c,0x67])]:_0x171372([0x45,0x53,0x32,0x35,0x36])},_0x5512bb=_0x25436d[_0x171372([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x171372([0x67,0x65,0x74])](_0x171372([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a58c0(){let _0x1b960a,_0x1a5a16=null,_0x4e4a95=null;try{if(_0x5512bb==_0x171372([0x47,0x50,0x4c]))return _0x171372([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b960a=_0x192dc1(),!_0x1b960a)return _0x171372([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b960a[_0x171372([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e4a95=_0x5be238(_0x1b960a[_0x171372([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b960a[_0x171372([0x6a,0x74,0x69])])),await _0x2b0a21()?_0x1364fd()?_0x4e2ddf()?_0x171372([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d7c41()?(_0x1b960a[_0x171372([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x171372([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a5a16=_0x390e6b(_0x171372([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x356ae1()):_0x171372([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x171372([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x171372([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x171372([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e2ddf(){const _0x73aec5=[_0x171372([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x171372([0x74,0x72,0x69,0x61,0x6c])][_0x171372([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b960a[_0x171372([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5068cc/0x3e8:0xe10*_0x40b1f4;return _0x1b960a[_0x171372([0x65,0x78,0x70])]<_0x73aec5;}function _0x1364fd(){const _0x18c372=_0x1b960a[_0x171372([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x18c372)return!0x1;if(_0x18c372[_0x171372([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171372([0x2a])))return!0x0;if(_0x18c372[_0x171372([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171372([0x43,0x4d,0x54])))return!0x0;if(_0x18c372[_0x171372([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171372([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x81474d())return!0x0;if(_0x18c372[_0x171372([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171372([0x52,0x43,0x4d,0x54]))){if(_0x1b598a())return!0x0;if(_0x590997()||_0x58cd32())return!0x0;}return!0x1;}function _0x5d7c41(){const _0x15a091=_0x1b960a[_0x171372([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15a091||0x0==_0x15a091[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31e368}=new URL(window[_0x171372([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15a091[_0x171372([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31e368))return!0x0;const _0x253ce2=_0x31e368[_0x171372([0x73,0x70,0x6c,0x69,0x74])](_0x171372([0x2e]));return _0x15a091[_0x171372([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2049a1=>_0x2049a1[_0x171372([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171372([0x2a])))[_0x171372([0x6d,0x61,0x70])](_0x116572=>_0x116572[_0x171372([0x73,0x70,0x6c,0x69,0x74])](_0x171372([0x2e])))[_0x171372([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e7fa7=>_0x3e7fa7[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x253ce2[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x171372([0x6d,0x61,0x70])](_0x1cb12c=>Array(_0x253ce2[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cb12c[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x171372([0x66,0x69,0x6c,0x6c])](_0x1cb12c[0x0]===_0x171372([0x2a])?_0x171372([0x2a]):'')[_0x171372([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cb12c))[_0x171372([0x73,0x6f,0x6d,0x65])](_0x5e9f1c=>_0x253ce2[_0x171372([0x65,0x76,0x65,0x72,0x79])]((_0x28db5c,_0x497043)=>_0x5e9f1c[_0x497043]===_0x28db5c||_0x5e9f1c[_0x497043]===_0x171372([0x2a])));}function _0x356ae1(){return _0x1a5a16&&_0x4e4a95?new window[(_0x171372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x170b18,_0x374eac)=>{_0x1a5a16[_0x171372([0x74,0x68,0x65,0x6e])](_0x170b18,_0x374eac),_0x4e4a95[_0x171372([0x74,0x68,0x65,0x6e])](_0x207af2=>{_0x207af2!=_0x171372([0x56,0x61,0x6c,0x69,0x64])&&_0x170b18(_0x207af2);},_0x374eac);}):_0x1a5a16||_0x4e4a95||_0x171372([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5be238(_0x460e59,_0x5c35ef){return new window[(_0x171372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb1ac01=>{if(_0x23e7e1())return _0xb1ac01(_0x171372([0x56,0x61,0x6c,0x69,0x64]));_0x2d98fd(),_0x25436d[_0x171372([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x171372([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x782311=!0x1;const _0x108058=_0x30e0a0();function _0x4d46e0(_0x454101){return!!_0x454101&&(typeof _0x454101===_0x171372([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x454101===_0x171372([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x454101[_0x171372([0x74,0x68,0x65,0x6e])]===_0x171372([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x454101[_0x171372([0x63,0x61,0x74,0x63,0x68])]===_0x171372([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xab1566(_0x1e5f0f){_0xc54e1a(_0x1e5f0f)[_0x171372([0x74,0x68,0x65,0x6e])](_0x462443=>{if(!_0x462443||_0x462443[_0x171372([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x171372([0x6f,0x6b]))return _0x171372([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18845f(_0x23acfa(_0x108058+_0x5c35ef))!=_0x462443[_0x171372([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x171372([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x171372([0x56,0x61,0x6c,0x69,0x64]);})[_0x171372([0x74,0x68,0x65,0x6e])](_0x7add99=>(_0x1bcad5(),_0x7add99),()=>{const _0x46b1b2=_0x3f6858();return null==_0x46b1b2?(_0x1bcad5(),_0x171372([0x56,0x61,0x6c,0x69,0x64])):_0x171372(_0x5068cc-_0x46b1b2>(0x574a8eb3^_0x5d8187)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x171372([0x74,0x68,0x65,0x6e])](_0xb1ac01)[_0x171372([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb1ac01(_0x171372([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30a621=0x7370e433^_0x5d8187;function _0x1bcad5(){const _0x58b548=_0x171372([0x6c,0x6c,0x63,0x74,0x2d])+_0x18845f(_0x23acfa(_0x460e59)),_0x419376=_0x58e238(_0x18845f(window[_0x171372([0x4d,0x61,0x74,0x68])][_0x171372([0x63,0x65,0x69,0x6c])](_0x5068cc/_0x30a621)));window[_0x171372([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x171372([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58b548,_0x419376);}function _0x3f6858(){const _0x4ca94a=_0x171372([0x6c,0x6c,0x63,0x74,0x2d])+_0x18845f(_0x23acfa(_0x460e59)),_0x4a771a=window[_0x171372([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x171372([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ca94a);return _0x4a771a?window[_0x171372([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58e238(_0x4a771a),0x10)*_0x30a621:null;}function _0xc54e1a(_0x13823){return new window[(_0x171372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a07e,_0x34954f)=>{_0x13823[_0x171372([0x74,0x68,0x65,0x6e])](_0x5a07e,_0x34954f),window[_0x171372([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34954f,0x7347de73^_0x5d8187);});}}_0x25436d[_0x171372([0x6f,0x6e])](_0x171372([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1974f1,_0x7d9cb8)=>{if(_0x7d9cb8[0x0]!=_0x460e59)return _0xb1ac01(_0x171372([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7d9cb8[0x1]={..._0x7d9cb8[0x1],[_0x171372([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x108058};},{[_0x171372([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x171372([0x68,0x69,0x67,0x68])}),_0x25436d[_0x171372([0x6f,0x6e])](_0x171372([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d9139=>{_0x4d46e0(_0x1d9139[_0x171372([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x782311=!0x0,_0xab1566(_0x1d9139[_0x171372([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x171372([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x171372([0x6c,0x6f,0x77])}),_0x4351dc[_0x171372([0x74,0x68,0x65,0x6e])](()=>{_0x782311||_0xb1ac01(_0x171372([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23e7e1(){return _0x25436d[_0x171372([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x171372([0x76,0x69,0x65,0x77])][_0x171372([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x171372([0x61,0x75,0x74,0x6f]);}function _0x2d98fd(){_0x25436d[_0x171372([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x171372([0x76,0x69,0x65,0x77])][_0x171372([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x171372([0x61,0x75,0x74,0x6f]);}}function _0x390e6b(_0x3178c1){const _0x344f34=[new window[(_0x171372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3525a0=>setTimeout(_0x3525a0,0x734f347f^_0x5d8187)),_0x4351dc[_0x171372([0x74,0x68,0x65,0x6e])](()=>new window[(_0x171372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18bba4=>{let _0x44ccfa=0x0;_0x25436d[_0x171372([0x6d,0x6f,0x64,0x65,0x6c])][_0x171372([0x6f,0x6e])](_0x171372([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11f580,_0x48dfef)=>{_0x48dfef[0x0][_0x171372([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44ccfa++,_0x44ccfa==(0x73460f5b^_0x5d8187)&&(_0x18bba4(),_0x11f580[_0x171372([0x6f,0x66,0x66])]());});}))];return window[_0x171372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x171372([0x72,0x61,0x63,0x65])](_0x344f34)[_0x171372([0x74,0x68,0x65,0x6e])](()=>_0x3178c1);}async function _0x2433a6(){await _0x4351dc,_0x25436d[_0x171372([0x6d,0x6f,0x64,0x65,0x6c])][_0x171372([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41c585,_0x25436d[_0x171372([0x6d,0x6f,0x64,0x65,0x6c])][_0x171372([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41c585,_0x25436d[_0x171372([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x171372([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x81474d(){return window[_0x171372([0x67,0x6c,0x6f,0x62])]&&window[_0x171372([0x67,0x6c,0x6f,0x62])][_0x171372([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1b598a(){return _0x49dfd9(_0x171372([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4907e1(_0x171372([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x171372([0x73,0x74,0x61,0x74,0x65])]==_0x171372([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x590997(){return _0x49dfd9(_0x171372([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 _0x58cd32(){return _0x49dfd9(_0x171372([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4c9986(_0x2de174){const _0x2963f0=_0x4b5743();_0x25436d[_0x2963f0]=_0x171372([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2de174,_0x2de174!=_0x171372([0x56,0x61,0x6c,0x69,0x64])&&_0x2433a6();}function _0x4b5743(){const _0x1992a6=window[_0x171372([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x171372([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x171372([0x6e,0x6f,0x77])]())[_0x171372([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x171372([0x2e]),'');let _0x5da459=_0x171372([0x4b]);for(let _0x23c834=0x0;_0x23c834<_0x1992a6[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23c834+=0x2){let _0x4ec332=window[_0x171372([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1992a6[_0x171372([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23c834,_0x23c834+0x2));_0x4ec332>=_0x4adac2[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ec332-=_0x4adac2[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5da459+=_0x4adac2[_0x4ec332];}return _0x5da459;}function _0x192dc1(){const _0x1529d6=_0x5512bb[_0x171372([0x73,0x70,0x6c,0x69,0x74])](_0x171372([0x2e]));if(0x3!=_0x1529d6[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e13a4(_0x1529d6[0x1]);function _0x4e13a4(_0x544705){const _0xcab68c=_0x4dec46(_0x544705);return _0xcab68c&&_0x267790()?_0xcab68c:null;function _0x267790(){const _0xbb52a5=_0xcab68c[_0x171372([0x6a,0x74,0x69])],_0x55890e=window[_0x171372([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbb52a5[_0x171372([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbb52a5[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b1ff9={..._0xcab68c,[_0x171372([0x6a,0x74,0x69])]:_0xbb52a5[_0x171372([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbb52a5[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b1ff9[_0x171372([0x76,0x63])],_0x23acfa(_0x2b1ff9)==_0x55890e;}}}async function _0x2b0a21(){let _0x10ee2a=!0x0;try{const _0x3f7410=_0x5512bb[_0x171372([0x73,0x70,0x6c,0x69,0x74])](_0x171372([0x2e])),[_0x22c5eb,_0x12a3f2,_0x19c991]=_0x3f7410;return _0x504994(_0x22c5eb),await _0x31129b(_0x22c5eb,_0x12a3f2,_0x19c991),_0x10ee2a;}catch{return!0x1;}function _0x504994(_0x5949b4){const _0x3443ba=_0x4dec46(_0x5949b4);_0x3443ba&&_0x3443ba[_0x171372([0x61,0x6c,0x67])]==_0x171372([0x45,0x53,0x32,0x35,0x36])||(_0x10ee2a=!0x1);}async function _0x31129b(_0x265bfb,_0x2edd47,_0x69afad){const _0x2daaaa=window[_0x171372([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x171372([0x66,0x72,0x6f,0x6d])](_0x4a4007(_0x69afad),_0x3c384b=>_0x3c384b[_0x171372([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7461aa=new window[(_0x171372([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x171372([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x265bfb+_0x171372([0x2e])+_0x2edd47),_0x45216d=window[_0x171372([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x171372([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45216d)return;const _0xda1252=await _0x45216d[_0x171372([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x171372([0x6a,0x77,0x6b]),_0x20d041,{[_0x171372([0x6e,0x61,0x6d,0x65])]:_0x171372([0x45,0x43,0x44,0x53,0x41]),[_0x171372([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x171372([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x171372([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45216d[_0x171372([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x171372([0x6e,0x61,0x6d,0x65])]:_0x171372([0x45,0x43,0x44,0x53,0x41]),[_0x171372([0x68,0x61,0x73,0x68])]:{[_0x171372([0x6e,0x61,0x6d,0x65])]:_0x171372([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xda1252,_0x2daaaa,_0x7461aa)||(_0x10ee2a=!0x1);}}function _0x4dec46(_0x5680cb){return _0x5680cb[_0x171372([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x171372([0x65,0x79]))?JSON[_0x171372([0x70,0x61,0x72,0x73,0x65])](_0x4a4007(_0x5680cb)):null;}function _0x4a4007(_0x19d9a3){return window[_0x171372([0x61,0x74,0x6f,0x62])](_0x19d9a3[_0x171372([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x171372([0x2b]))[_0x171372([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x171372([0x2f])));}function _0x23acfa(_0x42e4dd){let _0x3d76a0=0x1505;function _0x524659(_0x36d3c7){for(let _0x120283=0x0;_0x120283<_0x36d3c7[_0x171372([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x120283++){const _0xa3561=_0x36d3c7[_0x171372([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x120283);_0x3d76a0=(_0x3d76a0<<0x5)+_0x3d76a0+_0xa3561,_0x3d76a0&=_0x3d76a0;}}function _0x32a1d1(_0x9822dc){Array[_0x171372([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9822dc)?_0x9822dc[_0x171372([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32a1d1):_0x9822dc&&typeof _0x9822dc==_0x171372([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x171372([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9822dc)[_0x171372([0x73,0x6f,0x72,0x74])]()[_0x171372([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36ce2c,_0x5318ae])=>{_0x524659(_0x36ce2c),_0x32a1d1(_0x5318ae);}):_0x524659(window[_0x171372([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9822dc));}return _0x32a1d1(_0x42e4dd),_0x3d76a0>>>0x0;}function _0x18845f(_0x24ba67){return _0x24ba67[_0x171372([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x171372([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x171372([0x30]));}function _0x58e238(_0x2a29cc){return _0x2a29cc[_0x171372([0x73,0x70,0x6c,0x69,0x74])]('')[_0x171372([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x171372([0x6a,0x6f,0x69,0x6e])]('');}function _0x49dfd9(_0x4ee269){return _0x25436d[_0x171372([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x171372([0x68,0x61,0x73])](_0x4ee269);}function _0x4907e1(_0x29c872){return _0x25436d[_0x171372([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x171372([0x67,0x65,0x74])](_0x29c872);}function _0x41c585(){}function _0x171372(_0x1c005c){return _0x1c005c['map'](_0x5e5990=>String['fromCharCode'](_0x5e5990))['join']('');}_0x4c9986(await _0x1a58c0());}(this);}['destroy'](){const _0x544a18=this['editor']['plugins']['get'](o),_0x418fa1=this['editor']['config']['get']('collaboration.channelId');for(const _0x1fc997 of _0x544a18['getCommentThreads']({'channelId':_0x418fa1}))_0x544a18['_detachCommentThread'](_0x1fc997['id']),_0x544a18['_threads']['delete'](_0x1fc997['id']);super['destroy']();}['hasMarkerForId'](_0x244f98){return this['getAllMarkersForId'](_0x244f98)['length']>0x0;}['getAllMarkersForId'](_0xa1553){const _0x173ed0=[];for(const _0xacf34d of this['editor']['model']['markers'])_0xacf34d['name']['startsWith']('comment:'+_0xa1553)&&_0x173ed0['push'](_0xacf34d);return _0x173ed0;}['scrollToThreadMarker'](_0x44e937){setTimeout(()=>{const _0x24d271=this['_getTargetForId'](_0x44e937);if(!_0x24d271)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x44e937&&nt({'target':_0x24d271[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xad67ee){this['editor']['model']['change'](()=>{for(const _0x2846a0 of this['getAllMarkersForId'](_0xad67ee))this['editor']['editing']['reconvertMarker'](_0x2846a0);});}['_attachArchivedThread'](_0x20b0c2){const _0x3649dc=this['editor']['plugins']['get'](o),_0x3e2be7=this['editor']['plugins']['get'](b),_0x657441=_0x3649dc['getCommentThread'](_0x20b0c2);if(!_0x657441['isAttached']){const _0x12ede7=_0x657441['attachTo'](()=>this['_getTargetForId'](_0x657441['id']));_0x3e2be7['registerAnnotation'](_0x12ede7),_0x657441['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x7acbba=this['editor'],_0x12bca6=_0x7acbba['plugins']['get'](it);_0x7acbba['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x39ff10,_0x22c69e)=>{const {id:_0xc65a7e}=ft(_0x39ff10['markerName']),_0xca4ed2=_0x7acbba['plugins']['get'](o)['getCommentThread'](_0xc65a7e),_0x1c0397=this['activeMarker']&&ft(this['activeMarker'])['id']===_0xc65a7e;let _0x5d0148;if(_0xca4ed2&&_0xca4ed2['isResolved']&&!_0x1c0397&&_0x39ff10['item'])return _0x22c69e['consumable']['consume'](_0x39ff10['item'],'addMarker:'+_0x39ff10['markerName']),_0x22c69e['consumable']['consume'](_0x39ff10['item'],'removeMarker:'+_0x39ff10['markerName']),null;const _0x1470a3=['ck-comment-marker'];return _0x1c0397&&_0x1470a3['push']('ck-comment-marker--active'),_0x5d0148=_0xca4ed2?.['length']?_0xca4ed2['comments']['first']['author']['id']:_0x12bca6['me']['id'],{'classes':_0x1470a3,'attributes':{'data-comment':_0xc65a7e,'data-author-id':_0x5d0148}};}}),_0x7acbba['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x2a8dcf,{options:_0x55732b})=>{if(_0x55732b['showCommentHighlights'])return null;const _0x176f89=_0x7acbba['plugins']['get'](o),_0x15cc46=_0x7acbba['model']['markers']['get'](_0x2a8dcf),{id:_0x52cef3,part:_0x107fb7}=ft(_0x2a8dcf);return _0x15cc46&&!_0x15cc46['affectsData']||_0x55732b['ignoreResolvedComments']&&_0x176f89['getCommentThread'](_0x52cef3)?.['isResolved']?null:{'group':'comment','name':_0x107fb7?_0x52cef3+':'+_0x107fb7:_0x52cef3};}}),_0x7acbba['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x404019,{writer:_0x2409bc})=>_0x2409bc['createElement']('$marker',{'data-name':'comment:'+_0x404019['getAttribute']('id')})}),_0x7acbba['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x4392b2=this['editor'],_0x4f7e26=_0x4392b2['plugins']['get'](o),_0x59c057=new Set(),_0x409693=new Set();_0x4392b2['model']['document']['registerPostFixer'](_0x74a3f5=>{let _0x85688d=!0x1;for(const {name:_0x3c899e,data:_0x16f5aa}of _0x4392b2['model']['document']['differ']['getChangedMarkers']()){const {group:_0x52ae25,id:_0x409a0b}=ft(_0x3c899e);let _0xc75c05=_0x16f5aa['newRange'];if('comment'!==_0x52ae25||!_0xc75c05)continue;const _0x174f66='$graveyard'===_0xc75c05['root']['rootName'];_0x174f66||(_0xc75c05=ht(_0xc75c05,_0x4392b2['model']),!_0xc75c05||_0xc75c05['isCollapsed']||!_0x16f5aa['newRange']||_0xc75c05['isEqual'](_0x16f5aa['newRange']))?_0x4392b2['model']['hasContent'](_0xc75c05)&&!_0x174f66?this['isThreadsLoadingPaused']?_0x59c057['add'](_0x3c899e):this['_handleThreadMarker'](_0x3c899e,_0x409a0b):(_0x409693['add'](_0x3c899e),_0x59c057['delete'](_0x3c899e),_0x74a3f5['removeMarker'](_0x3c899e),_0x85688d=!0x0):(_0x74a3f5['updateMarker'](_0x3c899e,{'range':_0xc75c05}),_0x85688d=!0x0);}return _0x85688d;}),this['on']('change:isThreadsLoadingPaused',(_0x24a4ea,_0x3747eb,_0x20d461)=>{if(!_0x20d461&&_0x59c057['size'])for(const _0x3ec12e of _0x59c057){const {id:_0x5e2a53}=ft(_0x3ec12e);_0x59c057['delete'](_0x3ec12e),_0x4392b2['model']['markers']['get'](_0x3ec12e)&&this['_handleThreadMarker'](_0x3ec12e,_0x5e2a53);}}),this['listenTo'](_0x4392b2['model']['document'],'change',()=>{for(const {name:_0xd58f11,data:{newRange:_0x3ccd62}}of _0x4392b2['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4b1b73,id:_0x4abf5b}=ft(_0xd58f11);if('comment'!==_0x4b1b73)continue;const _0x5ad3ef=_0x4f7e26['getCommentThread'](_0x4abf5b),_0x5d8da0=this['hasMarkerForId'](_0x4abf5b);_0x5ad3ef&&(!_0x5ad3ef['_hasTargetInContent']&&_0x3ccd62&&_0x4392b2['editing']['view']['once']('render',()=>{const _0x5797e=_0x4392b2['plugins']['get'](y),_0xda9a69=_0x4f7e26['_threadToController']['get'](_0x5ad3ef)['view'];_0x5797e['getByInnerView'](_0xda9a69)['refreshVisibility']();},{'priority':'low'}),_0x5ad3ef['_hasTargetInContent']=_0x5d8da0||!!_0x3ccd62),_0x3ccd62||(_0x409693['add'](_0xd58f11),_0x59c057['delete'](_0xd58f11));}for(const _0x1fc107 of _0x409693){const {id:_0x100238}=ft(_0x1fc107),_0x567abc=_0x4f7e26['getCommentThread'](_0x100238);if(_0x59c057['delete'](_0x1fc107),!_0x567abc)continue;const _0x1e767f=this['hasMarkerForId'](_0x100238);_0x1e767f||_0x567abc['isSubmitted']?_0x1e767f||_0x567abc['unlinkedAt']||_0x567abc['setUnlinkedAt'](new Date()):_0x567abc['remove']();}_0x409693['clear']();});}['_handleInitialThreads'](_0x2bc0a8){_0x2bc0a8['forEach'](_0xa590fe=>{_0xa590fe['unlinkedAt']&&this['_attachArchivedThread'](_0xa590fe['id']);});}['_getTargetForId'](_0x1b2adc){const _0x278b0e=this['editor'],_0xb4a513=this['getAllMarkersForId'](_0x1b2adc);return et(_0x278b0e['editing'],_0xb4a513);}['_getTextContext'](_0x119ff0){const _0x194f51=this['getAllMarkersForId'](_0x119ff0);let _0x1d92f1='',_0x31e20c=!0x1;for(const _0x13a07f of _0x194f51){const _0x2d00eb=_0x13a07f['getRange']();for(const _0x1a0166 of Array['from'](_0x2d00eb['getItems']()))_0x1a0166['is']('$textProxy')?(_0x1d92f1&&_0x31e20c&&(_0x1d92f1+='\x20',_0x31e20c=!0x1),_0x1d92f1+=_0x1a0166['data']):_0x31e20c=!0x0;_0x31e20c=!0x0;}return _0x1d92f1['substring'](0x0,0x96);}['_attachMarkerToThread'](_0xb9138c,_0x16a9ea){const _0x2a012f=this['editor'],_0x480a44=_0x2a012f['plugins']['get'](o);let _0x1476be=_0x480a44['getCommentThread'](_0x16a9ea);const _0x17c494=_0x2a012f['config']['get']('collaboration.channelId'),_0x126d95=_0x2a012f['plugins']['get'](b);if(_0x1476be&&(_0x1476be['unlinkedAt']&&_0x1476be['setUnlinkedAt'](null),_0x1476be['isAttached']))return _0x1476be;return!this['getAllMarkersForId'](_0x16a9ea)[0x0]['managedUsingOperations']?_0x2a012f['editing']['view']['once']('render',()=>{if(_0x480a44['getCommentThread'](_0x16a9ea))return;const _0x467fbd=_0x2a012f['plugins']['get'](y);_0x1476be=_0x480a44['openNewCommentThread']({'channelId':_0x17c494,'threadId':_0x16a9ea,'target':()=>this['_getTargetForId'](_0x16a9ea),'context':{'type':'text','value':this['_getTextContext'](_0x16a9ea)}});const _0x4d076b=_0x480a44['_threadToController']['get'](_0x1476be)['view'],_0x71b96b=_0x467fbd['getByInnerView'](_0x4d076b);_0x71b96b&&_0x126d95['registerAnnotation'](_0x71b96b);},{'priority':'low'}):_0x480a44['fetchCommentThread']({'channelId':_0x17c494,'threadId':_0x16a9ea})['then'](_0x5c364b=>{if('destroyed'!==_0x2a012f['state']){if(_0x1476be=_0x5c364b,_0x1476be&&!_0x1476be['isAttached']){const _0x5eb6ad=_0x1476be['attachTo'](()=>this['_getTargetForId'](_0x16a9ea));_0x126d95['registerAnnotation'](_0x5eb6ad),_0x1476be['isResolved']&&this['_reconvertMarkers'](_0x16a9ea);}else{if(!_0x1476be){const _0x1d713e=this['getAllMarkersForId'](_0x16a9ea);_0x2a012f['model']['change'](_0x1a2c32=>{for(const _0x475870 of _0x1d713e)_0x1a2c32['removeMarker'](_0x475870);});}}}}),_0x1476be;}['_handleThreadMarker'](_0x2ad272,_0x183083){const _0x4ee6f9=this['_attachMarkerToThread'](_0x2ad272,_0x183083);_0x4ee6f9&&!_0x4ee6f9['context']&&_0x4ee6f9['setContext']({'type':'text','value':this['_getTextContext'](_0x183083)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4d4e38=this['editor'];rt(_0x4d4e38['model'],({left:_0x51df2e,entered:_0x5e237f})=>{for(const _0x4c64d9 of _0x51df2e)if(mt(_0x4c64d9)){_0x4d4e38['ui']['ariaLiveAnnouncer']['announce'](N(_0x4d4e38['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x33a877 of _0x5e237f)if(mt(_0x33a877)){_0x4d4e38['ui']['ariaLiveAnnouncer']['announce'](N(_0x4d4e38['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x313293)));break;}});}}function dt(_0x46948f,_0x5c2c40){return _0x5c2c40?_0x46948f+':'+_0x5c2c40:_0x46948f;}function ht(_0x15d54a,_0x2d3cf4){const _0x31cea9=_0x2d3cf4['schema'],_0x326465=_0x2d3cf4['createRange'](_0x15d54a['start']);for(const _0x5c0f0a of _0x15d54a['getWalker']()){const {type:_0x314ad9,item:_0x427bbe,nextPosition:_0x2171c0}=_0x5c0f0a;if('text'===_0x314ad9||_0x31cea9['isObject'](_0x427bbe)){const _0x1aba74=_0x2d3cf4['createPositionBefore'](_0x427bbe);_0x326465['isCollapsed']&&(_0x326465['start']=_0x1aba74),_0x326465['end']=_0x2171c0;}}return _0x326465;}function mt(_0x5679f0){return'comment'===ft(_0x5679f0['name'])['group'];}class s extends _0x1b7a9c{['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 _0x350aff=this['editor'],_0x464edb=_0x350aff['plugins']['get'](o),_0xf4540d=_0x350aff['plugins']['get'](r),_0x366cc1=_0x350aff['plugins']['get'](y),_0x32f52e=_0x350aff['plugins']['get'](b);_0x350aff['ui']['componentFactory']['add']('comment',()=>{const _0x320aa8=this['_createUIButton'](_0x3ec9bf);return _0x320aa8['tooltip']=!0x0,_0x320aa8;}),_0x350aff['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4c1494)),_0x32f52e['addSourceCollector'](()=>{const _0x30df37=[];for(const [_0x19ad2a,_0x5952f8]of _0x464edb['_threadToController']){const _0x590533=_0xf4540d['getAllMarkersForId'](_0x19ad2a['id']),_0x5b4703=_0x590533['map'](_0x3cd7dd=>_0x3cd7dd['getRange']());_0x590533['length']>0x0&&_0x30df37['push']([_0x5952f8['view'],_0x5b4703]);}return _0x30df37;}),this['listenTo'](_0x366cc1,'change:activeAnnotations',(_0x2ccb00,_0x22cd25,_0x7aed4)=>{const _0x4bf385=Array['from'](_0x7aed4)['map'](_0x51702c=>_0x51702c['innerView'])['find'](_0x54c48e=>_0x464edb['_viewToController']['has'](_0x54c48e));if(!_0x4bf385)return void(_0xf4540d['activeMarker']=null);const _0x13a92c=_0x464edb['_viewToController']['get'](_0x4bf385)['model']['id'],_0x2616d7='comment:'+_0x13a92c;_0x13a92c&&_0xf4540d['hasMarkerForId'](_0x13a92c)?_0xf4540d['activeMarker']=_0x2616d7:_0xf4540d['activeMarker']&&(_0xf4540d['activeMarker']=null);}),this['listenTo'](_0x464edb,'removeCommentThread',(_0x136247,{threadId:_0x519cde,isFromAdapter:_0x133ce0})=>{!_0x133ce0&&_0x350aff['ui']['focusTracker']['isFocused']&&_0xf4540d['hasMarkerForId'](_0x519cde)&&_0x350aff['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x464edb,'addComment',(_0xc8aeda,{threadId:_0x2658db,isFromAdapter:_0x2a11bc})=>{if(_0x2a11bc||!_0xf4540d['hasMarkerForId'](_0x2658db)||!_0x464edb['hasCommentThread'](_0x2658db))return;0x1===_0x464edb['getCommentThread'](_0x2658db)['length']&&(_0x350aff['editing']['view']['focus'](),_0xc8aeda['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52c95e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1799e6;for(const _0x1aa21c in _0x52c95e){const _0x18b1b3=_0x1aa21c,_0x50aabf=_0x52c95e[_0x18b1b3];if('commentsLicenseKeyValid'==_0x50aabf||'commentsLicenseKeyInvalid'==_0x50aabf||'commentsLicenseKeyExpired'==_0x50aabf||'commentsLicenseKeyDomainLimit'==_0x50aabf||'commentsLicenseKeyNotAllowed'==_0x50aabf||'commentsLicenseKeyEvaluationLimit'==_0x50aabf||'commentsLicenseKeyUsageLimit'==_0x50aabf){delete _0x52c95e[_0x18b1b3],_0x1799e6=_0x50aabf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x1799e6&&_0x52c95e['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x1799e6&&_0x52c95e['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x1799e6&&_0x52c95e['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x1799e6&&_0x52c95e['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x1799e6&&_0x52c95e['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x1799e6&&_0x52c95e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3e29ac){const _0x1203cd=this['editor'],_0x394cb7=new _0x3e29ac(_0x1203cd['locale']),_0x2adf1b=_0x1203cd['commands']['get']('addCommentThread');return _0x394cb7['set']({'label':N(_0x1203cd['locale'],'Comment'),'icon':_0x295d15}),_0x394cb7['bind']('isEnabled')['to'](_0x2adf1b,'isEnabled',_0x2adf1b,'hasContent',(_0x18c504,_0x439460)=>_0x18c504&&_0x439460),this['listenTo'](_0x394cb7,'execute',()=>{_0x2adf1b['execute']();}),_0x394cb7;}}class i extends _0x1b7a9c{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x54b7bc){super(_0x54b7bc),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x355280,_0x26126d,_0xb050fe)=>{_0xb050fe?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x468600,_0x30808f]of this['editor']['commands'])_0x30808f['affectsData']&&'addCommentThread'!==_0x468600&&_0x30808f['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x438da4=this['editor']['editing']['view']['document'];this['listenTo'](_0x438da4,'cut',_0x503b60=>_0x503b60['stop'](),{'priority':'highest'}),this['listenTo'](_0x438da4,'clipboardInput',_0x244e19=>_0x244e19['stop'](),{'priority':'highest'}),this['listenTo'](_0x438da4,'delete',_0x3f69f9=>_0x3f69f9['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x440c12,_0x215f42]of this['editor']['commands'])_0x215f42['affectsData']&&'addCommentThread'!==_0x440c12&&_0x215f42['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['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 _0x55eb0b{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d6cf4){super(_0x4d6cf4),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x5902f8=this['context']['plugins']['get'](y);this['listenTo'](_0x5902f8,'_activateAnnotation',(_0x3cd683,_0x2ab628)=>{for(const _0x431309 of this['activeUIs']){const _0x5ac015=this['_uis']['get'](_0x431309);(0x0,this['uisData']['get'](_0x431309)['filter'])(_0x2ab628)&&_0x5ac015['setActiveAnnotation'](_0x2ab628);}}),this['listenTo'](_0x5902f8,'_deactivateAllAnnotations',()=>{for(const _0x4a9820 of this['activeUIs']){this['_uis']['get'](_0x4a9820)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5902f8['_visibleAnnotations'],'add',(_0x5dd471,_0x3d2e05)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3d2e05);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x57d61a){return this['activeUIs']['has'](_0x57d61a);}['activate'](_0x489206,_0x32e236=this['defaultFilter']){const _0xc02d46=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x489206))throw new _0x3605a1('annotationsuis-missing-ui',this,{'uiName':_0x489206});this['isActive'](_0x489206)&&this['deactivate'](_0x489206),this['activeUIs']['add'](_0x489206);const _0x4eae99=new S();v({'source':_0xc02d46['_visibleAnnotations'],'target':_0x4eae99,'filter':_0x32e236}),this['uisData']['set'](_0x489206,{'collection':_0x4eae99,'filter':_0x32e236});const _0x487663=this['_uis']['get'](_0x489206);_0x487663['attach'](_0x4eae99),this['listenTo'](_0x487663,'change:activeAnnotation',(_0x57f351,_0x8b5349,_0x67c4ca,_0x330bf3)=>{_0x330bf3&&_0xc02d46['_removeActiveAnnotation'](_0x330bf3),_0x67c4ca&&_0xc02d46['_addActiveAnnotation'](_0x67c4ca);});}['deactivate'](_0x13b659){if(this['activeUIs']['delete'](_0x13b659),!this['_uis']['has'](_0x13b659))throw new _0x3605a1('annotationsuis-missing-ui',this,{'uiName':_0x13b659});const _0x51ee01=this['_uis']['get'](_0x13b659);_0x51ee01['detach'](),this['stopListening'](_0x51ee01),this['uisData']['get'](_0x13b659)['collection']['destroy'](),this['uisData']['delete'](_0x13b659);}['switchTo'](_0x26c390){if(!this['_uis']['has'](_0x26c390))throw new _0x3605a1('annotationsuis-missing-ui',this,{'uiName':_0x26c390});const _0x46f870=this['context']['plugins']['get'](y),_0x668276=Array['from'](_0x46f870['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x26c390);const _0x13dee4=this['_uis']['get'](_0x26c390);_0x13dee4['setActiveAnnotation'](_0x668276),_0x13dee4['_setSelectedAnnotations']&&_0x668276&&_0x13dee4['_setSelectedAnnotations']([_0x668276]);}['deactivateAll'](){for(const _0x2b7afb of this['activeUIs'])this['deactivate'](_0x2b7afb);}['register'](_0x3ee8d5,_0xd32f5d){if(this['_uis']['has'](_0x3ee8d5))throw new _0x3605a1('annotationsuis-register-already-registered');if('function'!=typeof _0xd32f5d['attach']||'function'!=typeof _0xd32f5d['detach']||'function'!=typeof _0xd32f5d['setActiveAnnotation'])throw new _0x3605a1('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3ee8d5,_0xd32f5d);}['refilterAnnotations'](){const _0xd4eaae=this['context']['plugins']['get'](y)['collection'],_0x51c397=new Map(),_0x1ec679=Array['from'](this['activeUIs']);for(const _0x2364dd of this['activeUIs']){const _0x4f5d8e=this['uisData']['get'](_0x2364dd)['collection'];for(const _0x1c4c4a of _0x4f5d8e)_0x51c397['set'](_0x1c4c4a,_0x2364dd);}for(const _0x27f815 of _0xd4eaae){const _0x3e49a9=_0x51c397['get'](_0x27f815);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x27f815);const _0x596f14=_0x1ec679['find'](_0x5d3d74=>this['uisData']['get'](_0x5d3d74)['filter'](_0x27f815));_0x3e49a9!==_0x596f14&&(_0x3e49a9&&this['uisData']['get'](_0x3e49a9)['collection']['remove'](_0x27f815),_0x596f14&&this['uisData']['get'](_0x596f14)['collection']['add'](_0x27f815));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4eeec9){const _0x6b2b83=[];for(const _0x48aef5 of this['activeUIs']){(0x0,this['uisData']['get'](_0x48aef5)['filter'])(_0x4eeec9)&&_0x6b2b83['push'](_0x48aef5);}if(_0x6b2b83['length']>0x1)throw new _0x3605a1('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x6b2b83,'annotationType':_0x4eeec9['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x403d1c){super(_0x403d1c);const _0x483c72=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 _0x2a1b65(),this['focusCycler']=new _0xa03dd2({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x483c72['to']('class')],'style':{'minHeight':_0x483c72['to']('minHeight',_0x6fc5f2=>'number'==typeof _0x6fc5f2?_i(_0x6fc5f2+0xa):null)},'dir':_0x403d1c['uiLanguageDirection'],'role':'application','aria-label':N(_0x403d1c,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x403d1c,'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',_0xc7b27b=>{this['_updateItemPositionInFocusables'](_0xc7b27b['source']);}),this['list']['forEach'](_0x2e0ee2=>{this['focusTracker']['add'](_0x2e0ee2['element']),this['_updateItemPositionInFocusables'](_0x2e0ee2);}),this['list']['on']('change',(_0x3862f0,_0x2da1b1)=>{for(const _0x1ef8dc of _0x2da1b1['removed'])this['focusTracker']['remove'](_0x1ef8dc['element']),this['focusables']['remove'](_0x1ef8dc);for(const _0x158f09 of _0x2da1b1['added'])this['focusTracker']['add'](_0x158f09['element']),this['_updateItemPositionInFocusables'](_0x158f09);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x553312){const _0x315269=this['focusables']['getIndex'](_0x553312);let _0x258f9e,_0x563f1e;for(const _0xd1a0ea of this['focusables'])if(_0x553312['top']<_0xd1a0ea['top']){_0x258f9e=_0xd1a0ea;break;}if(_0x563f1e=_0x258f9e?this['focusables']['getIndex'](_0x258f9e):this['focusables']['length'],-0x1!==_0x315269){if(_0x315269===_0x563f1e-0x1)return;this['focusables']['remove'](_0x553312),_0x563f1e=_0x258f9e?this['focusables']['getIndex'](_0x258f9e):this['focusables']['length'];}this['focusables']['add'](_0x553312,_0x563f1e);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x289740){super(_0x289740),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2e55ee,_0x2cb1e8)=>_0x2e55ee+_0x2cb1e8),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x131051=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x131051['to']('isAnimationDisabled',_0x69861a=>_0x69861a?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x131051['to']('top',_0x37cc57=>Ot(_0x37cc57))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1f48a5=this['element']['clientHeight'];_0x1f48a5&&(this['height']=_0x1f48a5);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x55eb0b{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x384a5e){super(_0x384a5e),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 _0x6d1afa=this['context']['config']['get']('sidebar.container');_0x6d1afa&&this['setContainer'](_0x6d1afa);}['setContainer'](_0x3eede1){if(!g(_0x3eede1))throw new _0x3605a1('sidebar-setcontainer-invalid-element');this['container']=_0x3eede1;}['_attachToContainer']({viewClass:_0x119d7f='',spaceBetweenItems:_0x27e182=0x19}={}){if(!g(this['container']))throw new _0x3605a1('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x119d7f,this['_spaceBetweenItems']=_0x27e182;}['rearrange']({removedAnnotation:_0x4d3136,previousAnnotation:_0x5107eb,nextAnnotation:_0x3a980c}){const _0x4805ea=this['getSidebarItemView'](_0x4d3136);this['view']['list']['remove'](_0x4805ea),this['_destroySidebarItemView'](_0x4d3136),_0x5107eb&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5107eb)),_0x3a980c&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3a980c)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2eb3b,activatedAnnotation:_0x2b1d16,disableAnimationOnActivatedAnnotation:_0x35d1de}){if(this['_activeAnnotation']=_0x2b1d16,_0x2eb3b){_0x2eb3b['isActive']=!0x1;const _0x1905a6=this['getSidebarItemView'](_0x2eb3b);_0x1905a6&&_0x35d1de&&(_0x1905a6['isAnimationDisabled']=!0x1);}if(_0x2b1d16){const _0x1b9d5a=this['getSidebarItemView'](_0x2b1d16);_0x1b9d5a&&(_0x2b1d16['isActive']=!0x0,_0x35d1de&&(_0x1b9d5a['isAnimationDisabled']=!0x0,_0x1b9d5a['top']+=0x1),this['_alignToTargetRect'](_0x1b9d5a));}}['_detachFromContainer'](_0x3c7e29){if(this['view']['element']['remove'](),_0x3c7e29){for(const _0x192468 of _0x3c7e29)this['_destroySidebarItemView'](_0x192468);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3bc195,_0x505a7d){_0x505a7d||(_0x505a7d=_0x3bc195['view']);const _0x29fb49=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x29fb49,_0x3bc195),this['_annotationToSidebarItemView']['set'](_0x3bc195,_0x29fb49),_0x29fb49['content']['add'](_0x505a7d),this['listenTo'](_0x3bc195['view'],'change:targetRect',(_0x171173,_0x2e3ee4,_0x3d66da)=>{const _0x478f9d=this['_getTargetTop'](_0x3bc195,_0x3d66da);_0x29fb49['_targetTop']!=_0x478f9d&&(_0x29fb49['_targetTop']=_0x478f9d,this['_setItemTop'](_0x29fb49,_0x478f9d));}),this['listenTo'](_0x29fb49,'change:top',()=>{this['_recalculate'](_0x29fb49,'top');}),this['listenTo'](_0x29fb49,'change:bottom',()=>{this['_recalculate'](_0x29fb49,'bottom');}),this['_alignToTargetRect'](_0x29fb49);const _0x30f8bd=this['_getItemBefore'](_0x29fb49);if(_0x30f8bd)this['_alignAfterItem'](_0x30f8bd,_0x29fb49)||this['_alignToTargetRect'](_0x29fb49);else this['_alignToTargetRect'](_0x29fb49);return this['_updateLastItem'](),this['view']['list']['add'](_0x29fb49),_0x29fb49;}['_alignForTopChange'](_0x38d73c){if(!_0x38d73c['content']['length'])return;const _0x8dff7a=this['_getItemBefore'](_0x38d73c);if(!_0x8dff7a)return;const _0x590f8b=this['_sidebarItemViewToAnnotation']['get'](_0x8dff7a),_0x487bf1=this['_activeAnnotation'];_0x487bf1&&_0x487bf1===_0x590f8b?this['_alignAfterItem'](_0x8dff7a,_0x38d73c):this['_alignBeforeItem'](_0x38d73c,_0x8dff7a);}['_alignForBottomChange'](_0xa73551){if(!_0xa73551['content']['length'])return;const _0x3b1d63=this['_getItemAfter'](_0xa73551);if(!_0x3b1d63)return;const _0x472767=this['_sidebarItemViewToAnnotation']['get'](_0x3b1d63),_0x571665=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x21d9f2=this['_activeAnnotation'];_0x21d9f2&&_0x21d9f2===_0x472767&&_0x571665?(this['_alignBeforeItem'](_0x3b1d63,_0xa73551),this['_alignAfterItem'](_0xa73551,_0x3b1d63)):_0x21d9f2&&_0x21d9f2===_0x472767?this['_alignBeforeItem'](_0x3b1d63,_0xa73551):this['_alignAfterItem'](_0xa73551,_0x3b1d63);}['_recalculate'](_0x5d7ee7,_0x4566be){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x596b1a,changedProp:_0x46d6b9}of this['_recalculateBuffer'])'top'===_0x46d6b9?this['_alignForTopChange'](_0x596b1a):this['_alignForBottomChange'](_0x596b1a);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5d7ee7,'changedProp':_0x4566be});}['getSidebarItemView'](_0x3f045f){return this['_annotationToSidebarItemView']['get'](_0x3f045f);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1837d9){const _0x5013d3=this['getSidebarItemView'](_0x1837d9);this['stopListening'](_0x5013d3),this['stopListening'](_0x1837d9['view']),_0x5013d3['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1837d9),this['_sidebarItemViewToAnnotation']['delete'](_0x5013d3);}['_createSidebarView'](){const _0x4b40ba=new H(this['context']['locale']);return _0x4b40ba['render'](),this['on']('change:_lastItem',(_0x1ffb27,_0x3495dc,_0x1ae949,_0x4c25e3)=>{_0x4c25e3&&_0x4b40ba['unbind']('minHeight'),_0x1ae949?_0x4b40ba['bind']('minHeight')['to'](_0x1ae949,'bottom'):_0x4b40ba['minHeight']=null;}),_0x4b40ba;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x4dceac){const _0x91e6cd=this['_sidebarItemViewToAnnotation']['get'](_0x4dceac),_0x38ec41=_0x91e6cd&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x91e6cd)-0x1);return _0x38ec41&&this['getSidebarItemView'](_0x38ec41)||null;}['_getItemAfter'](_0x3141f4){const _0x21d3cd=this['_sidebarItemViewToAnnotation']['get'](_0x3141f4),_0x522fd3=_0x21d3cd&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x21d3cd)+0x1);return _0x522fd3&&this['getSidebarItemView'](_0x522fd3)||null;}['_alignBeforeItem'](_0x5de242,_0x5069f0){_0x5de242['updateHeight']();const _0x9952a1=G(_0x5069f0['bottom']+this['_spaceBetweenItems'],_0x5de242['top']);return!!_0x9952a1&&(this['_setItemTop'](_0x5069f0,_0x5069f0['top']-_0x9952a1),!0x0);}['_alignAfterItem'](_0x36c7be,_0x10acf7){_0x36c7be['updateHeight']();const _0xbe3823=G(_0x36c7be['bottom']+this['_spaceBetweenItems'],_0x10acf7['top']);return!!_0xbe3823&&(this['_setItemTop'](_0x10acf7,_0x10acf7['top']+_0xbe3823,!0x1),!0x0);}['_alignToTargetRect'](_0x1e7e1f){const _0x29d406=this['_sidebarItemViewToAnnotation']['get'](_0x1e7e1f);if(!_0x29d406||!_0x29d406['target']||!_0x29d406['targetRect'])return;const _0x53a542=this['_getTargetTop'](_0x29d406,_0x29d406['targetRect']);this['_setItemTop'](_0x1e7e1f,_0x53a542);}['_getTargetTop'](_0xf7cbcd,_0x5b4092){if(null===_0x5b4092)return 0x0;if(_0xf7cbcd['target']instanceof _0x229f6f)return _0x5b4092['top'];{const _0x5604a5=new _0x229f6f(this['view']['element'])['top'];return _0x5b4092['top']-_0x5604a5;}}['_setItemTop'](_0x1fbd82,_0x1f8cf8,_0xf9dc08=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0xf9dc08&&(_0x1f8cf8=Math['max'](_0x1f8cf8,this['_getMaxAvailableTop'](_0x1fbd82))),_0x1fbd82['top']=_0x1f8cf8;}['_getMaxAvailableTop'](_0x1c4dbf){let _0x512bbe=this['_getItemBefore'](_0x1c4dbf),_0x39224b=0x0;for(;_0x512bbe;)_0x512bbe['updateHeight'](),_0x39224b+=this['_spaceBetweenItems']+_0x512bbe['height'],_0x512bbe=this['_getItemBefore'](_0x512bbe);return _0x39224b;}}function G(_0x108bf9,_0x582812){return Math['max'](_0x108bf9-_0x582812,0x0);}function g(_0x55b45b){return null!==_0x55b45b&&'object'==typeof _0x55b45b&&0x1===_0x55b45b['nodeType'];}class e extends _0x55eb0b{['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(_0x584dbf){super(_0x584dbf),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x154060(),this['_refreshPositioningDebounced']=_0x5b09fb(()=>{_0x584dbf['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x463e42=this['context']['plugins']['get'](j),_0x1bdb31=this['context']['plugins']['get'](z);_0x463e42['register']('wideSidebar',this),_0x1bdb31['container']&&_0x463e42['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x40a76d){if(_0x40a76d===this['activeAnnotation'])return;const _0x131e54=this['context']['plugins']['get'](z);_0x131e54['_activeAnnotation']=_0x40a76d;const _0x17bf04=this['activeAnnotation'];_0x131e54['refresh']({'blurredAnnotation':_0x17bf04,'activatedAnnotation':_0x40a76d}),this['activeAnnotation']=_0x40a76d;}['attach'](_0x2f11a3){this['annotations']=_0x2f11a3;const _0x374163=this['context']['plugins']['get'](z);if(_0x374163['_annotations']=_0x2f11a3,this['isAttached'])throw new _0x3605a1('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x374163,'set:container',()=>{this['detach'](),this['listenTo'](_0x374163,'change:container',_0x2b14b3=>{_0x2b14b3['off'](),this['attach'](_0x2f11a3);});}),_0x374163['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3e1b9f=_0x5f1e92=>{_0x5f1e92['updateTargetRect'](),_0x374163['addAnnotation'](_0x5f1e92);};for(const _0x546a30 of _0x2f11a3)_0x3e1b9f(_0x546a30);this['listenTo'](_0x2f11a3,'add',(_0x4b8cd0,_0x284cca)=>{_0x3e1b9f(_0x284cca);}),this['listenTo'](_0x2f11a3,'remove',(_0x4cc65e,_0x114500,_0x1e6e3c)=>{_0x374163['rearrange']({'removedAnnotation':_0x114500,'previousAnnotation':_0x2f11a3['get'](_0x1e6e3c-0x1),'nextAnnotation':_0x2f11a3['get'](_0x1e6e3c+0x1)}),_0x114500===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x2f11a3,'focus',(_0x4bec90,_0x2e37d4)=>{this['setActiveAnnotation'](_0x2e37d4);}),this['listenTo'](_0x2f11a3,'blur',()=>{this['setActiveAnnotation'](null);});const _0x33c1ec=this['context']instanceof _0x14e8a7?this['context']['editors']:new _0x154060([this['context']]);for(const _0x366f0b of _0x33c1ec)this['_integrateWithEditorAnnotations'](_0x366f0b);this['listenTo'](_0x33c1ec,'add',(_0x107f2b,_0xbd6e52)=>{this['listenTo'](_0xbd6e52,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xbd6e52);});}),this['listenTo'](_0x33c1ec,'remove',(_0x333473,_0x1dda27)=>{_0x1dda27['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1dda27['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3605a1('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x273763=this['context']['plugins']['get'](z);_0x273763['_detachFromContainer'](this['annotations']),this['stopListening'](_0x273763),this['stopListening'](this['annotations']),this['context']instanceof _0x14e8a7&&this['stopListening'](this['context']['editors']);for(const _0x13b2d0 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x13b2d0);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x45a3b0){if(!_0x45a3b0['plugins']['has']('EditorAnnotations'))return;const _0x3201ca=_0x45a3b0['plugins']['get']('EditorAnnotations'),_0x705c72=()=>{const _0x494931=_0x3201ca['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x494931[0x0]||null);};this['listenTo'](_0x3201ca,'refresh',_0x705c72),this['listenTo'](_0x3201ca,'blur',(_0xb0c35b,{isAnnotationTracked:_0x56c2c4})=>{this['activeAnnotation']&&_0x56c2c4(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3201ca,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x5615ae=>{_0x3201ca['hasDomSelection']()&&(_0x705c72(),_0x5615ae['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3201ca);}['_destroyEditorAnnotationsIntegration'](_0x48ef7a){this['stopListening'](_0x48ef7a),this['_editorAnnotations']['remove'](_0x48ef7a);}}class C extends _0x3ec9bf{['counterView'];constructor(_0x1f1d44){super(_0x1f1d44);const _0x2422e7=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x85a0e,_0x161370)=>_0x85a0e?'...':_0x161370['toString']()),this['set']('annotationType',''),this['icon']=_0x295d15,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x2422e7['to']('annotationType',_0x2dd484=>'ck-annotation-counter__badge--'+_0x2dd484),_0x2422e7['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2422e7['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x55eb0b{['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(_0x54c7df){super(_0x54c7df),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x428bed())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x154060(),this['_refreshPositioningDebounced']=_0x5b09fb(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x188bf2(this['context']['locale']),this['balloonPanelView']=new _0x2923d8(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x18945c){this['annotations']=_0x18945c;const _0x4a70d4=this['context']['plugins']['get'](z),_0x5bb51f=this['balloonPanelView'];if(_0x4a70d4['_annotations']=_0x18945c,this['isAttached'])throw new _0x3605a1('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4a70d4,'set:container',()=>{this['detach'](),this['listenTo'](_0x4a70d4,'change:container',_0x198b92=>{_0x198b92['off'](),this['attach'](_0x18945c);});}),_0x4a70d4['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x53e2f8=_0x1e7d26=>{const _0xba4d56=new C(this['context']['locale']);_0x4a70d4['addAnnotation'](_0x1e7d26,_0xba4d56),this['_annotationToNarrowView']['set'](_0x1e7d26,_0xba4d56),_0xba4d56['bind']('isDirty','annotationType','number')['to'](_0x1e7d26['view'],'isDirty','type','length'),_0xba4d56['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5bb51f['content']['first']!==_0x1e7d26['view']?(this['_showBalloon'](_0x1e7d26),_0x1e7d26['view']['element']['focus'](),this['setActiveAnnotation'](_0x1e7d26)):this['setActiveAnnotation'](null);});};for(const _0x4dae5f of _0x18945c)_0x53e2f8(_0x4dae5f);this['listenTo'](_0x18945c,'add',(_0x17b39e,_0x2fda19)=>{_0x53e2f8(_0x2fda19);}),this['listenTo'](_0x18945c,'remove',(_0x33e59b,_0x2147c5,_0x164613)=>{this['_annotationToNarrowView']['get'](_0x2147c5)['destroy'](),this['_annotationToNarrowView']['delete'](_0x2147c5),_0x4a70d4['rearrange']({'removedAnnotation':_0x2147c5,'previousAnnotation':_0x18945c['get'](_0x164613-0x1),'nextAnnotation':_0x18945c['get'](_0x164613+0x1)}),_0x2147c5===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x18945c,'focus',(_0x152423,_0x553baa)=>{this['setActiveAnnotation'](_0x553baa);}),this['listenTo'](_0x18945c,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xf65fee,_0x45970b)=>{_0x45970b['keyCode']===_0x5a2ee7['esc']&&_0x5bb51f['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5bb51f['content']['first']),this['_hideBalloon'](),_0x45970b['stopPropagation'](),_0x45970b['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3eeb46,_0x3430b2)=>{const _0x5911ff=_0x3430b2['target'];_0x5bb51f['isVisible']&&_0x5bb51f['element']['contains'](_0x5911ff)||_0x4a70d4['view']['element']['contains'](_0x5911ff)||_0x3eeb46['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4cb3d1=>_0x4cb3d1['contains'](_0x5911ff))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x559cf8=this['context']instanceof _0x14e8a7?this['context']['editors']:new _0x154060([this['context']]);for(const _0x30c59a of _0x559cf8)this['_integrateWithEditorAnnotations'](_0x30c59a);this['listenTo'](_0x559cf8,'add',(_0x21aa89,_0x123dfb)=>{this['listenTo'](_0x123dfb,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x123dfb);});}),this['listenTo'](_0x559cf8,'remove',(_0x10affb,_0x2e38c9)=>{_0x2e38c9['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2e38c9['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x55f462){if(_0x55f462===this['activeAnnotation'])return;const _0x39d465=this['context']['plugins']['get'](z);if(_0x39d465['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x55f462,'disableAnimationOnActivatedAnnotation':!0x0}),_0x55f462)_0x39d465['getSidebarItemView'](_0x55f462)?this['_showBalloon'](_0x55f462):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x55f462;}['detach'](){if(!this['isAttached'])throw new _0x3605a1('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xad3988=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x310cf4=>_0x310cf4['destroy']()),this['_annotationToNarrowView']['clear'](),_0xad3988['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x14e8a7&&this['stopListening'](this['context']['editors']);for(const _0x219633 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x219633);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'](_0x5e9373){if(!_0x5e9373['plugins']['has']('EditorAnnotations'))return;const _0x2eea08=_0x5e9373['plugins']['get']('EditorAnnotations'),_0x27fc9e=this['context']['plugins']['get'](z),_0x5dbbd0=this['annotations'],_0x121f09=this['balloonPanelView'],_0x38abfa=()=>{const _0x2b6608=_0x2eea08['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2b6608),this['setActiveAnnotation'](_0x2b6608[0x0]||null);};this['listenTo'](_0x2eea08,'refresh',_0x38abfa),this['listenTo'](_0x2eea08,'blur',(_0x493646,{isAnnotationTracked:_0x4400aa})=>{this['activeAnnotation']&&_0x4400aa(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2eea08,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5dbbd0,'blur',_0x538cfc=>{_0x2eea08['hasDomSelection']()&&_0x538cfc['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x54260b,_0x4e2475)=>{const _0x2f423b=_0x4e2475['target'];_0x121f09['isVisible']&&_0x121f09['element']['contains'](_0x2f423b)||_0x27fc9e['view']['element']['contains'](_0x2f423b)||this['activeAnnotation']&&_0x2eea08['hasDomSelection']()&&(_0x38abfa(),_0x54260b['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2eea08);}['_destroyEditorAnnotationsIntegration'](_0x1fb550){_0x1fb550&&(this['stopListening'](_0x1fb550),this['_editorAnnotations']['remove'](_0x1fb550));}['_setSelectedAnnotations'](_0x527e71){for(const _0xdd762a of this['_selectedAnnotations'])_0x527e71['includes'](_0xdd762a)||this['_manuallyClosedAnnotationViews']['delete'](_0xdd762a['view']);this['_selectedAnnotations']=_0x527e71;}['_refreshPositioning'](){const _0x1d6f68=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x1d6f68['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x401afe){if(this['_manuallyClosedAnnotationViews']['has'](_0x401afe['view']))return;const _0x311f0=this['balloonPanelView']['content']['first'];_0x311f0!==_0x401afe['view']?(_0x311f0&&this['_detachListeners'](_0x311f0),this['_attachListeners'](_0x401afe['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x401afe['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4ddf43=this['balloonPanelView']['content']['first'],_0x5b99f9=_0x4ddf43&&this['annotations']['getByView'](_0x4ddf43);if(!_0x5b99f9||!this['_annotationToNarrowView']['has'](_0x5b99f9))return;const _0x18ff4f=this['_annotationToNarrowView']['get'](_0x5b99f9)['element'],_0x1d3030=(function(){const _0x4c0777=_0x2923d8['defaultPositions'];return[_0x4c0777['southArrowNorthEast'],_0x4c0777['northArrowSouthEast'],_0x4c0777['southArrowNorth'],_0x4c0777['northArrowSouth'],_0x4c0777['southArrowNorthWest'],_0x4c0777['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x18ff4f,'positions':_0x1d3030});}['_hideBalloon'](){const _0x283aa2=this['balloonPanelView'],_0xc8228f=_0x283aa2['content']['first'];_0xc8228f&&(this['_detachListeners'](_0xc8228f),_0x283aa2['unpin'](),_0x283aa2['content']['clear']());}['_attachListeners'](_0x3ce9ac){this['listenTo'](_0x3ce9ac,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3ce9ac,'Esc',(_0x5668de,_0x42b3a3)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3ce9ac),this['_hideBalloon'](),_0x42b3a3();});}['_detachListeners'](_0xc8bade){this['stopListening'](_0xc8bade);}}class c extends _0x1b7a9c{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x3a19c2,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b901e){super(_0x5b901e),_0x5b901e['editing']['view']['addObserver'](_0x432c07),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x5b901e['plugins']['get'](_0x3a19c2),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x5b09fb(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x185165=this['editor']['plugins']['get'](j);_0x185165['context']===this['editor']&&(_0x185165['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x54468d,_0x2b36f1)=>{const _0x471c72=this['_balloon'];if(this['isAttached']&&_0x471c72['visibleView']){const _0xf88574=this['annotations']['getByView'](_0x471c72['visibleView']);_0xf88574&&this['_closeAnnotation'](_0xf88574),_0x2b36f1();}}));}['afterInit'](){const _0x3843f9=this['editor']['plugins']['get'](j);_0x3843f9['context']===this['editor']&&(_0x3843f9['hasActive']()||_0x3843f9['switchTo']('inline'));}['setActiveAnnotation'](_0x2ba614){_0x2ba614!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2ba614&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2ba614)&&this['_addAnnotationToBalloon'](_0x2ba614,!0x0),_0x2ba614['isActive']=!0x0),_0x2ba614||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2ba614);}['attach'](_0x2b5619){this['annotations']=_0x2b5619;const _0x4c5e48=this['editor']['plugins']['get'](j),_0x3c7499=this['_balloon'];if(this['isAttached'])throw new _0x3605a1('inlineannotations-attach-already-attached',this);if(_0x4c5e48['context']!==this['editor'])throw new _0x3605a1('inlineannotations-not-allowed-with-context',this);const _0x1554ca=this['editor']['plugins']['get'](b);this['listenTo'](_0x1554ca,'refresh',()=>{const _0x586b7e=_0x1554ca['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x20d8e8,_0x327382;!this['_forceRefresh']&&(_0x20d8e8=_0x586b7e,_0x327382=this['_selectedAnnotations'],_0x20d8e8['length']===_0x327382['length']&&_0x20d8e8['every'](_0x53cc96=>_0x327382['includes'](_0x53cc96)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x586b7e),this['setActiveAnnotation'](_0x586b7e[0x0]||null));}),this['listenTo'](_0x1554ca,'blur',(_0x59c730,{isAnnotationTracked:_0x3d97f2})=>{this['activeAnnotation']&&_0x3d97f2(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1554ca,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3adcb5,_0x52d4b9,_0x5d36a0)=>{_0x5d36a0||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2b5619,'remove',(_0x5b747c,_0x507165)=>{this['_removeAnnotationFromBalloon'](_0x507165),_0x507165===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3c7499,'change:visibleView',(_0x565e6a,_0x2025fc,_0x108029,_0x5101a6)=>{_0x5101a6&&this['stopListening'](_0x5101a6);const _0x3cb60c=_0x2b5619['getByView'](_0x108029);_0x108029&&_0x3cb60c&&(this['listenTo'](_0x108029,'change:height',()=>{_0x3c7499['updatePosition']();}),this['listenTo'](_0x108029,'Esc',()=>{this['_closeAnnotation'](_0x3cb60c),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3cb60c&&this['setActiveAnnotation'](_0x3cb60c));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x3c7499['visibleView']&&(_0x2b5619['getByView'](_0x3c7499['visibleView'])&&_0x3c7499['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 _0x3605a1('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x516d30 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x516d30);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x4c758e){for(const _0x379149 of this['_selectedAnnotations'])_0x4c758e['includes'](_0x379149)||this['_manuallyClosed']['delete'](_0x379149);for(const _0x341156 of this['annotations'])_0x4c758e['includes'](_0x341156)||this['_removeAnnotationFromBalloon'](_0x341156);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x402a8d of _0x4c758e)this['_addAnnotationToBalloon'](_0x402a8d);}this['_selectedAnnotations']=_0x4c758e;}['_addAnnotationToBalloon'](_0x48eab7,_0x19f282=!0x1){this['_manuallyClosed']['has'](_0x48eab7)||(this['_addedAnnotations']['has'](_0x48eab7)||this['_balloon']['hasView'](_0x48eab7['view'])||(this['_addedAnnotations']['add'](_0x48eab7),this['_balloon']['add']({'stackId':_0x48eab7['view']['id'],'view':_0x48eab7['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x48eab7)}})),_0x19f282&&this['_balloon']['showStack'](_0x48eab7['view']['id']));}['_getBalloonTargetForAnnotation'](_0x15184f){const _0x1e7b68=_0x15184f['target'],_0x19605f=this['editor']['editing']['view'],_0x37833e=_0x19605f['document']['selection']['getFirstRange'](),_0x9dccfa=_0x19605f['domConverter']['viewRangeToDom'](_0x37833e);if(_0x9dccfa['collapse'](!0x0),_0x1e7b68){if(_0x1e7b68 instanceof _0x229f6f)return _0x1e7b68;let _0x491b3c=[];for(const _0x17e3dc of _0x1e7b68)_0x491b3c['push'](...F(_0x17e3dc['getClientRects']()));_0x491b3c=function(_0x2ecd20){const _0x17d70c=[];let _0x1ba715=_0x2ecd20[0x0];for(let _0x13f0a3=0x1;_0x13f0a3<_0x2ecd20['length'];_0x13f0a3++)P(_0x1ba715,_0x2ecd20[_0x13f0a3])?_0x1ba715['width']+=_0x2ecd20[_0x13f0a3]['width']:(_0x17d70c['push'](_0x1ba715),_0x1ba715=_0x2ecd20[_0x13f0a3]);return _0x17d70c['push'](_0x1ba715),_0x17d70c;}(_0x491b3c);const _0x44c50c=_0x9dccfa['getBoundingClientRect']();return _0x491b3c['find'](_0x4e4e69=>_0x4e4e69['top']<=_0x44c50c['top']&&_0x4e4e69['bottom']>=_0x44c50c['bottom']&&_0x4e4e69['left']<=_0x44c50c['left']&&_0x4e4e69['right']>=_0x44c50c['right'])||_0x491b3c[0x0];}return _0x15184f['targetRect']||_0x9dccfa;}['_removeAnnotationFromBalloon'](_0x406e58){this['_addedAnnotations']['has'](_0x406e58)&&this['_balloon']['hasView'](_0x406e58['view'])&&(this['_addedAnnotations']['delete'](_0x406e58),this['_balloon']['remove'](_0x406e58['view']));}['_closeAnnotation'](_0x3e7cc6){this['_manuallyClosed']['add'](_0x3e7cc6),this['_removeAnnotationFromBalloon'](_0x3e7cc6);}}function F(_0x4e8402){return Array['from'](_0x4e8402)['map'](DOMRect['fromRect']);}function P(_0x73a9ad,_0x52df48){return _0x73a9ad['top']===_0x52df48['top']&&_0x73a9ad['bottom']===_0x52df48['bottom']&&_0x73a9ad['right']===_0x52df48['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x268fb4,_0x303439){super(_0x268fb4),this['set']('isEmpty',!_0x303439['length']),this['focusTracker']=new _0x2a1b65(),this['_annotationViews']=_0x303439,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0xa03dd2({'focusables':_0x303439,'focusTracker':this['focusTracker']}),this['listenTo'](_0x303439,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x303439,'remove',(_0x42f4e2,_0x22badc)=>{_0x22badc['isActive']&&this['focus'](),_0x303439['length']||(this['isEmpty']=!0x0);});const _0x4710a1=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x268fb4,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x303439},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4710a1['if']('isEmpty','ck-hidden',_0x105494=>!_0x105494)]},'children':[{'text':N(_0x268fb4,'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 _0x1b5c23 of this['_annotationViews'])this['focusTracker']['add'](_0x1b5c23['element']);this['_annotationViews']['on']('change',(_0x2923ad,{added:_0x109567,removed:_0x1485bd})=>{for(const _0x4a38dd of _0x109567)this['focusTracker']['add'](_0x4a38dd['element']);for(const _0x37ee11 of _0x1485bd)this['focusTracker']['remove'](_0x37ee11['element']);});}}class p extends _0x55eb0b{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x2dc17e){super(_0x2dc17e),this['archivedThreads']=new _0x154060();}['init'](){const _0x2cd8da=this['context'],_0x1193a5=_0x2cd8da['plugins']['get'](o),_0x233250=_0x2cd8da['plugins']['get'](y);this['listenTo'](_0x1193a5,'addCommentThread',(_0x18ac41,{threadId:_0x1e2412})=>{const _0x4d1520=_0x1193a5['getCommentThread'](_0x1e2412);_0x4d1520['archivedAt']&&this['archivedThreads']['add'](_0x4d1520,this['_calculatePosition'](_0x4d1520['archivedAt'])),this['listenTo'](_0x4d1520,'change:archivedAt',(_0x526c07,_0x31dba1,_0xbf6245)=>{_0xbf6245?this['archivedThreads']['has'](_0x4d1520)||this['archivedThreads']['add'](_0x4d1520,this['_calculatePosition'](_0x4d1520['archivedAt'])):this['archivedThreads']['has'](_0x4d1520)&&this['archivedThreads']['remove'](_0x4d1520);});}),this['listenTo'](_0x1193a5,'removeCommentThread',(_0x21f281,{threadId:_0x138711})=>{const _0x551070=_0x1193a5['getCommentThread'](_0x138711);this['stopListening'](_0x551070),this['archivedThreads']['has'](_0x551070)&&this['archivedThreads']['remove'](_0x551070);},{'priority':'highest'}),this['listenTo'](_0x233250['collection'],'focus',(_0x427420,_0x5a3e49)=>{_0x5a3e49['isVisible']||(_0x5a3e49['isActive']=!0x0,_0x233250['activate'](_0x5a3e49));});}['_calculatePosition'](_0x316ad2){const _0x43c1ef=[...this['archivedThreads']]['findIndex'](_0x1ce0d0=>_0x1ce0d0['archivedAt']<_0x316ad2);return _0x43c1ef>-0x1?_0x43c1ef:this['archivedThreads']['length'];}}class a extends _0x1b7a9c{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x3b65de];}constructor(_0x4ad232){super(_0x4ad232),this['annotationViews']=new _0xc6e21b(),this['_pendingThreads']=[];}['init'](){const _0x12cc2b=this['editor'],_0x38444c=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x12cc2b['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3ec9bf,!0x0)),_0x12cc2b['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x48a03f=this['_createCommentsArchiveButton'](_0x4c1494);return _0x48a03f['set']({'role':'menuitemcheckbox'}),_0x48a03f;});const _0x1dc91a=_0x12cc2b['plugins']['get'](p),_0x30009d=_0x12cc2b['plugins']['get']('Annotations'),_0x44f117=_0x12cc2b['plugins']['get']('CommentsRepository');_0x1dc91a['archivedThreads']['forEach'](_0x502886=>{this['_handleNewThread'](_0x502886);}),this['listenTo'](_0x1dc91a['archivedThreads'],'add',(_0x4134e6,_0x2e1235)=>{this['_handleNewThread'](_0x2e1235);}),this['listenTo'](_0x30009d['collection'],'add',(_0x3f6a62,_0xbd2169)=>{const _0x24351a=this['_pendingThreads']['find'](_0x1a4bd8=>{const _0x1f8576=_0x44f117['_threadToController']['get'](_0x1a4bd8);return _0x1f8576&&_0xbd2169['innerView']===_0x1f8576['view'];});if(_0x24351a){const _0x4d78fd=this['_calculatePosition'](_0x24351a['archivedAt']);this['_addAnnotationToArchive'](_0xbd2169,_0x4d78fd),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x24351a),0x1);}}),this['listenTo'](_0x1dc91a['archivedThreads'],'remove',(_0x11e71f,_0x586d4a)=>{const _0x38cfb3=_0x12cc2b['config']['get']('collaboration.channelId');if(!_0x38cfb3||_0x586d4a['channelId']===_0x38cfb3){if(this['_pendingThreads']['includes'](_0x586d4a))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x586d4a),0x1);else{const _0x52e091=_0x44f117['_threadToController']['get'](_0x586d4a),_0x4bfe51=_0x30009d['getByInnerView'](_0x52e091['view']);this['annotationViews']['remove'](_0x4bfe51['view']),this['stopListening'](_0x4bfe51),this['stopListening'](_0x4bfe51['focusableElements']);}}}),this['listenTo'](_0x30009d['collection'],'add',(_0x55b27a,_0x402f10)=>{this['listenTo'](_0x402f10,'escape',_0x38444c);}),this['listenTo'](_0x30009d['collection'],'remove',(_0x3b8e0b,_0x3a9dfe)=>{this['stopListening'](_0x3a9dfe,'escape',_0x38444c);});}['_addAnnotationToArchive'](_0x17105e,_0x3530e0){this['listenTo'](_0x17105e,'set:isVisible',_0x3c4fe9=>{_0x3c4fe9['return']=!0x1,_0x3c4fe9['stop']();}),this['annotationViews']['add'](_0x17105e['view'],_0x3530e0);}['_handleNewThread'](_0xa7827f){const _0xbfb4f8=this['editor']['plugins']['get']('CommentsRepository'),_0x3bc6b8=this['editor']['plugins']['get']('Annotations'),_0x26f1b2=this['editor']['config']['get']('collaboration.channelId');if(!_0x26f1b2||_0xa7827f['channelId']===_0x26f1b2){const _0x1e4330=_0xbfb4f8['_threadToController']['get'](_0xa7827f);if(!_0x1e4330)return void this['_pendingThreads']['push'](_0xa7827f);const _0x22c063=this['_calculatePosition'](_0xa7827f['archivedAt']),_0x49da0a=_0x3bc6b8['getByInnerView'](_0x1e4330['view']);_0x49da0a['isVisible']&&_0x3bc6b8['_visibleAnnotations']['remove'](_0x49da0a),this['_addAnnotationToArchive'](_0x49da0a,_0x22c063);}}['_calculatePosition'](_0x5261a0){const _0x582514=this['editor']['config']['get']('collaboration.channelId'),_0x4aa0a9=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x4c12af=>_0x4c12af['channelId']===_0x582514)['findIndex'](_0x697417=>_0x697417['archivedAt']<_0x5261a0);return _0x4aa0a9<0x0||_0x4aa0a9>this['annotationViews']['length']?this['annotationViews']['length']:_0x4aa0a9-0x1;}['_toggleDialog'](){const _0x19be63=this['editor'],_0x313073=_0x19be63['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x19be63['locale'],this['annotationViews'])),'commentsArchive'===_0x313073['id']?_0x313073['hide']():_0x313073['show']({'id':'commentsArchive','title':N(_0x19be63['locale'],'COMMENTS_ARCHIVE'),'icon':_0x2c103b,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0xe25b3['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5d5844,_0xfed53a=!0x1){const _0x191335=this['editor']['locale'],_0x1fbe0f=this['editor']['plugins']['get']('Dialog'),_0x2481d3=new _0x5d5844(_0x191335);return _0x2481d3['bind']('isEnabled')['to'](this,'isEnabled'),_0x2481d3['bind']('isOn')['to'](_0x1fbe0f,'id',_0x2d3ba3=>'commentsArchive'===_0x2d3ba3),_0x2481d3['set']({'label':N(_0x191335,'COMMENTS_ARCHIVE'),'icon':_0x2c103b,'isToggleable':!0x0}),_0xfed53a&&(_0x2481d3['tooltip']=!0x0),this['listenTo'](_0x2481d3,'execute',()=>this['_toggleDialog']()),_0x2481d3;}['_hideDialogOnAnnotationEscape']=_0x4e359d=>{const _0x5e78a6=_0x4e359d['source'];if(!this['annotationViews']['has'](_0x5e78a6['view']))return;const _0x585e9f=this['editor']['plugins']['get']('Dialog');_0x585e9f['isOpen']&&'commentsArchive'===_0x585e9f['id']&&(_0x585e9f['hide'](),_0x4e359d['stop']());};}class gi extends _0x1b7a9c{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 _0x25b851,ContextPlugin as _0x816dec,PendingActions as lt,Command as _0x37e591,Plugin as _0x3456c4,Context as _0x30418b}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x37aab7,uid as _0x4e4b92,KeystrokeHandler as jt,FocusTracker as _0x4fd6f9,diff as _0x49f0bf,Collection as _0x328140,Rect as _0x578f30,CKEditorError as _0x5199cf,first as _0x153d6a,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x102c7a,keyCodes as _0x453b9a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x2540bd,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x5bd7fc,trimHtml as ts,LateFocusDropdownButtonView as _0x59475c,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x465426}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,cloneDeep as wt,set as yt,unset as Ct,isEqual as At,debounce as _0x9c41f3}from'es-toolkit/compat';import{IconUndo as _0x4adba4,IconCheck as _0x3e91ce,IconPencil as _0x1cd19c,IconRemoveComment as _0x5602e6,IconThreeVerticalDots as _0x59b323,IconAddComment as _0x13d93d,IconCommentsArchive as _0xeb0d29}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x439bb2,ButtonView as _0x3487c4,ViewCollection as _0x1539d8,createDropdown as _0x32f47a,ListView as _0x183675,focusChildOnDropdownOpen as _0x3ec415,ListItemView as _0x1303ef,MenuBarMenuListItemButtonView as _0x2bf5f4,BodyCollection as _0x3ead9c,BalloonPanelView as _0x32c4b2,ContextualBalloon as _0xcf4250,Dialog as _0x12cfd4,DialogViewPosition as _0x31a583}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x3b3a72}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}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 _0x430625}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x3779fa}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x37aab7(){['model'];['view'];constructor(_0x19e7d0,_0x40c46c){super(),this['model']=_0x19e7d0,this['model']['_isAttached']=!0x0,this['view']=_0x40c46c,this['listenTo'](_0x40c46c,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x40c46c,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x40c46c,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x40c46c,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x40c46c,'addComment',(_0x338fe1,_0x50335d)=>this['addComment'](_0x50335d)),this['listenTo'](_0x40c46c,'updateComment',(_0xa4c7a2,_0x6df9d8,_0x503c7d)=>this['updateComment'](_0x6df9d8,_0x503c7d)),this['listenTo'](_0x40c46c,'removeComment',(_0x1fbe49,_0x2d714e)=>this['removeComment'](_0x2d714e));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x315575){this['model']['addComment']({'content':_0x315575,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x551644,_0x58722f){this['model']['getComment'](_0x551644)['update']({'content':_0x58722f});}['removeComment'](_0x2665fa){this['model']['getComment'](_0x2665fa)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x2b2982,_0x9ad4bc,_0x59194b){const t=_0x2b2982['t'];switch(_0x9ad4bc){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'},_0x59194b);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'},_0x59194b);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'},_0x59194b);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'},_0x59194b);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x59194b);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'},_0x59194b);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'},_0x59194b);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'},_0x59194b);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 Rt extends $t{['main'];['editable'];constructor(_0xb04a07,_0x4c4c84){super(_0xb04a07);const _0x1459ce=_0x4e4b92();this['main']=this['createCollection'](),this['editable']=new Vt(_0xb04a07,_0x4c4c84,void 0x0,{'label':()=>N(_0xb04a07,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xb04a07['uiLanguageDirection'],'lang':_0xb04a07['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1459ce},'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 Et extends Ut{['view'];constructor(_0x5f2b7d){super(_0x5f2b7d),this['view']=new Rt(_0x5f2b7d['locale'],_0x5f2b7d['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3d14c5=this['editor']['editing']['view'],_0x6880ac=this['view']['editable'],_0x500fc4=_0x3d14c5['document']['getRoot']();_0x6880ac['name']=_0x500fc4['rootName'],this['view']['render']();const _0x25ce01=_0x6880ac['element'];this['setEditableElement'](_0x6880ac['name'],_0x25ce01),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3d14c5['attachDomRoot'](_0x25ce01),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x37aab7(_0x25b851){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x19fb1c={}){function _0x38dad6(_0x306cb6){return _0x306cb6['map'](_0x3e9608=>String['fromCharCode'](_0x3e9608))['join']('');}(_0x19fb1c=Object['assign']({},_0x19fb1c))['plugins']||(_0x19fb1c['plugins']=hs['defaultPlugins']),super(_0x19fb1c),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x38dad6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38dad6([0x76,0x69,0x65,0x77])][_0x38dad6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38dad6([0x61,0x75,0x74,0x6f]),this[_0x38dad6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x38dad6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38dad6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x38dad6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x38dad6([0x6f,0x6b])});}['create'](){const _0xc08008=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xc08008))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x1f5b31=>{const _0x1b6335=this['model']['document']['getRoot'](),_0x47e305=_0x1b6335&&_0x1b6335['getChild'](_0x1b6335['childCount']-0x1);_0x1f5b31['setSelection'](_0x47e305,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x370b73=this['editing']['view'],_0xdba07c=_0x370b73['document']['getRoot'](),_0x1314c5=_0xdba07c['getChild'](0x0);_0xdba07c['childCount']>0x1||!_0x1314c5||'p'!=_0x1314c5['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x370b73,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x1314c5['placeholder']=this['placeholder']),Ft({'view':_0x370b73,'element':_0x1314c5,'keepOnFocus':!0x0}),this['placeholderElement']=_0x1314c5);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x25db87,_0x2fd2bc={}){super(_0x25db87),this['editor']=null,this['_editorConfig']=_0x2fd2bc,this['set']('value',_0x2fd2bc['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x25db87,'Reply...')),this['set']('submitLabel',N(_0x25db87,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4fd6f9(),this['focusCycler']=new _0x439bb2({'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',(_0x3e72a7,_0x3c4948)=>{this['cancelButtonView']['fire']('execute'),_0x3c4948();}),this['keystrokes']['set']('Ctrl+Enter',(_0xcd1bf9,_0x147a14)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x147a14());}),this['on']('submit',(_0xc96e02,_0x49e66b)=>{_0x49e66b['length']>0xfde8?(alert(N(_0x25db87,'TOO_LONG_COMMENT_ALERT',[_0x49e66b['length'],0xfde8])),_0xc96e02['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x41daac=this['editor'];this['element']['insertBefore'](_0x41daac['ui']['element'],this['element']['firstChild']),_0x41daac['model']['document']['on']('change',()=>this['value']=_0x41daac['getData']()),_0x41daac['bind']('placeholder')['to'](this),this['focusables']['add'](_0x41daac['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x35cd10){-0x1===_0x35cd10?(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:_0x482709}=this,_0x22fb4e=new _0x3487c4(_0x482709);return _0x22fb4e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x22fb4e['withText']=!0x0,_0x22fb4e['bind']('label')['to'](this,'submitLabel'),_0x22fb4e['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x22fb4e['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x446eb7,_0x4395ee)=>!_0x4395ee&&!!_0x446eb7['trim']()),_0x22fb4e;}['_createCancelButton'](){const {locale:_0x21935e}=this,_0x24d5f1=new _0x3487c4(_0x21935e);return _0x24d5f1['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x24d5f1['label']=N(_0x21935e,'Cancel'),_0x24d5f1['withText']=!0x0,_0x24d5f1['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x24d5f1;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3f8315=>{this['focusTracker']['add'](_0x3f8315['element']);}),this['focusables']['on']('change',(_0x243428,_0x131ed7)=>{for(const _0x6f7845 of Array['from'](_0x131ed7['added'])['reverse']())this['focusTracker']['add'](_0x6f7845['element']);});}}class ie extends kt{constructor(_0x32fb3c,_0x1c942b,_0x563524){super(_0x32fb3c),this['commentInputView']=new es(_0x32fb3c,_0x563524),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x5f184b,_0x24f962)=>_0x5f184b||!!_0x24f962),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 _0x2540bd(_0x32fb3c,_0x1c942b),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'](_0x33ca6e){this['commentInputView']['focus'](_0x33ca6e);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x293697,_0x44d4ca)=>{const {submitButtonView:_0x3c6a25,cancelButtonView:_0x3eacf5,editor:_0x17c1bc}=this['commentInputView'];[_0x3c6a25['element'],_0x3eacf5['element'],_0x17c1bc?_0x17c1bc['editing']['view']['getDomRoot']():null]['filter'](_0xb6978f=>_0xb6978f)['some'](_0x16e1da=>_0x16e1da['contains'](_0x44d4ca['target']))||(this['focus'](),_0x44d4ca['preventDefault']());});}}class rs extends kt{constructor(_0x3b3053){super(_0x3b3053);const _0x24cf66=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x24cf66['to']('count',_0x32728b=>N(_0x3b3053,'NUMBER_OF_COMMENTS',_0x32728b))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x3db2fb,_0x5b08ab,_0x5f0459){super(_0x3db2fb);const _0x177101=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x5b08ab['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x5b08ab,this['_config']=_0x5f0459,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4fd6f9(),this['keystrokes']=new jt(),this['focusCycler']=new _0x439bb2({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x264333=>this['commentViews']['map'](_0x1a7f0c=>_0x1a7f0c['element'])['includes'](_0x264333['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x3db2fb),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x11169d=>_0x11169d-this['_config']['maxCommentsWhenCollapsed']);for(const _0x4eda4b of _0x5b08ab['comments'])this['_handleNewCommentModel'](_0x4eda4b);this['_handleInfoComment'](),this['listenTo'](_0x5b08ab['comments'],'add',(_0x3b23de,_0x440b77)=>{const _0x34ec31=this['_calculatePosition'](_0x440b77);this['length']++,this['_handleNewCommentModel'](_0x440b77,_0x34ec31),this['refreshVisibleViews']();}),this['listenTo'](_0x5b08ab['comments'],'remove',(_0x1fd347,_0x1108e8)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1108e8),this['refreshVisibleViews']();}),this['listenTo'](_0x5b08ab,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x5b08ab,'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',_0x177101['if']('length','ck-hidden',_0x4521d8=>!_0x4521d8)],'aria-label':N(_0x3db2fb,'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'](_0x595f0e){-0x1===_0x595f0e?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4ecd12 of this['commentViews'])_0x4ecd12['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x53e6cf,_0x893a3f){const _0xe17bcd=new this['_config']['CommentView'](this['locale'],_0x53e6cf,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0xe17bcd['viewUid']=_0x53e6cf['id'],_0xe17bcd['delegate']('removeComment')['to'](this),_0xe17bcd['delegate']('updateComment')['to'](this),_0xe17bcd['delegate']('resolveCommentThread')['to'](this),_0xe17bcd['delegate']('editorReady')['to'](this),_0xe17bcd['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0xe17bcd,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0xe17bcd,_0x893a3f);}['_calculatePosition'](_0x29c27d){const _0x459f6e=this['_model']['_findOptimalIndex'](_0x29c27d);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x29c27d['authoredAt']?_0x459f6e-0x1:_0x459f6e:_0x459f6e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x57ee8a={'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'],_0x57ee8a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x57ee8a));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x285d68){const _0x5208e3=this['commentViews']['remove'](_0x285d68['id']);this['stopListening'](_0x5208e3),_0x5208e3['isEditMode']&&this['_updateHasDirtyComment'](),_0x5208e3['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x13f5a8=>_0x13f5a8['isEditMode']);}['_rearrangeCollapse'](){const _0x3cfe4d=function(_0x4022c4){const _0x2e5873=new _0x328140();for(const _0x3a0ba8 of _0x4022c4)_0x2e5873['add'](_0x3a0ba8);return _0x2e5873;}(this['commentViews']),_0x4e2c16=this['_collapsedCommentsView']['count'];for(let _0xc06686=0x1;_0xc06686<=_0x4e2c16;_0xc06686++)_0x3cfe4d['remove'](0x1);for(const _0x22a483 of _0x3cfe4d)_0x22a483['collapse']();_0x4e2c16>0x0&&_0x3cfe4d['add'](this['_collapsedCommentsView'],0x1),ns(_0x49f0bf(Array['from'](this['visibleViews']),Array['from'](_0x3cfe4d)),this['visibleViews'],_0x3cfe4d);}['_rearrangeExpand'](){ns(_0x49f0bf(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x2da520 of this['visibleViews'])_0x2da520['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2dda1c=>{this['focusTracker']['add'](_0x2dda1c['element']),this['keystrokes']['listenTo'](_0x2dda1c['element']);}),this['commentViews']['on']('change',(_0x18e174,_0x33c09a)=>{for(const _0x319e6f of _0x33c09a['removed'])this['focusTracker']['remove'](_0x319e6f['element']),this['keystrokes']['stopListening'](_0x319e6f['element']);for(const _0x2e1f72 of Array['from'](_0x33c09a['added'])['reverse']())this['focusTracker']['add'](_0x2e1f72['element']),this['keystrokes']['listenTo'](_0x2e1f72['element']);});}}function ns(_0x28703a,_0x2d7ce8,_0x551702){let _0x279ba7=0x0;for(const _0x133b5e of _0x28703a)switch(_0x133b5e){case'insert':_0x2d7ce8['add'](_0x551702['get'](_0x279ba7),_0x279ba7),_0x279ba7++;break;case'delete':_0x2d7ce8['remove'](_0x279ba7);break;case'equal':_0x279ba7++;}}class oe extends kt{constructor(_0x1bf6fe){super(_0x1bf6fe);const _0x3ede10=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3ede10['to']('contextValue',_0x5bd4d1=>N(_0x1bf6fe,'THREAD_CONTEXT_LABEL',_0x5bd4d1)),'tabindex':-0x1},'children':[{'text':_0x3ede10['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3c0df3,_0x45330b){super(_0x3c0df3);const _0x241da0=this['bindTemplate'];this['_model']=_0x45330b,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4fd6f9(),this['keystrokes']=new jt(),this['focusCycler']=new _0x439bb2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x3f4af1=>!!_0x3f4af1),this['bind']('contextValue')['to'](this['_model'],'context',_0x4d161f=>_0x4d161f&&_0x4d161f['value']?this['_trimContextValue'](_0x4d161f['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',_0x241da0['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 _0x49ea79=new _0x3487c4(this['locale']);return _0x49ea79['label']=N(this['locale'],'Reopen'),_0x49ea79['tooltip']=N(this['locale'],'Reopen'),_0x49ea79['icon']=_0x4adba4,_0x49ea79['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xd080a=>!_0xd080a),_0x49ea79['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x56df00,_0x150c5a)=>_0x56df00&&_0x150c5a),_0x49ea79['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x49ea79;}['_trimContextValue'](_0x48fa76){if(_0x48fa76['length']<0x96)return _0x48fa76;const _0x145c1d=_0x48fa76['lastIndexOf']('\x20',0x93);return _0x48fa76['substring'](0x0,_0x145c1d>-0x1?_0x145c1d:0x93)+'...';}['_attachContextActions'](){const _0x1b61aa=this['element']['querySelector']('.ck-context'),_0x316220=_0x1b61aa['querySelector']('.ck-context__value');this['listenTo'](_0x1b61aa,'mouseenter',()=>{_0x316220['offsetWidth']<_0x316220['scrollWidth']&&_0x1b61aa['classList']['add']('overlay');}),this['listenTo'](_0x1b61aa,'mouseleave',()=>{_0x1b61aa['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0xbd9eca of this['focusables'])this['focusTracker']['add'](_0xbd9eca['element']),this['keystrokes']['listenTo'](_0xbd9eca['element']);}['_createContextView'](){const _0x5e047b=new oe(this['locale']);return _0x5e047b['bind']('contextValue')['to'](this),_0x5e047b;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5879e3,_0x20ff31,_0x362aa4,_0x5706e0){super(_0x5879e3),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x20ff31,this['_localUser']=_0x362aa4,this['_config']=_0x5706e0,this['commentThreadHeaderView']=new Xt(_0x5879e3,_0x20ff31),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x5879e3,N(_0x5879e3,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x5879e3,_0x20ff31,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5706e0)),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',(_0xae7c41,_0x3b5ac4)=>_0xae7c41||!!_0x3b5ac4),this['bind']('isUnlinked')['to'](_0x20ff31,'unlinkedAt',_0x4638f1=>!!_0x4638f1),this['bind']('ariaLabel')['to'](this,'length',_0x38c6ce=>{const _0x5a8975=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x38c6ce,_0x5a8975]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4fd6f9(),this['keystrokes']=new jt(),this['focusCycler']=new _0x439bb2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x347ba5=>_0x347ba5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x2bf4c2=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5b7969=_0x2bf4c2['commentInputView'];return _0x2bf4c2['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5b7969,'value',(_0x2ba06a,_0x53f088,_0x367e26,_0x8960ec,_0x147669)=>!!_0x147669||!!_0x8960ec&&_0x367e26&&!_0x53f088||_0x2ba06a&&_0x367e26&&!_0x53f088),_0x5b7969['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x27213a,_0xfec167,_0x48f179)=>{let _0xbf3b1d;return _0xbf3b1d=_0x48f179&&_0xfec167?'Reply\x20to\x20reopen\x20discussion...':_0x27213a?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0xbf3b1d);}),_0x5b7969['bind']('submitLabel')['to'](this,'length',_0x3775c4=>N(this['locale'],_0x3775c4?'Reply':'Comment')),_0x5b7969['on']('submit',(_0x185829,_0x467c46)=>{this['fire']('addComment',_0x467c46),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5b7969['on']('cancel',()=>{this['focus']();}),_0x5b7969['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5b7969['on']('cancel',_0xb8c99f=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0xb8c99f['stop']());}),this['on']('change:isActive',(_0x296a7b,_0x2f4d54,_0x230e3c)=>{_0x230e3c||this['length']||_0x5b7969['value']||this['fire']('removeCommentThread');}),_0x2bf4c2;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x428e09,_0x593a10,_0x2fcd72,_0x57bd4e){super(_0x428e09,_0x593a10,_0x2fcd72,_0x57bd4e),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x428e09,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x307d6f,_0x33924f,_0x3a5003)=>{_0x3a5003||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5eb7e8,_0x4b4c47,_0x702d71)=>{_0x702d71&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x479103=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x479103['if']('isActive','ck-thread--active'),_0x479103['if']('isUnlinked','ck-thread--unlinked'),_0x479103['to']('actionIndicator',_0x1e96bb=>_0x1e96bb?'ck-thread--'+_0x1e96bb:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x479103['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 _0xde8d8d of this['commentsListView']['commentViews'])_0xde8d8d['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x58dbec}=this,_0x5a5aa0=this['commentsListView']['commentViews']['get'](0x0);_0x5a5aa0===this['_boundFirstCommentView']||_0x5a5aa0['isSystemComment']||(this['_boundFirstCommentView']=_0x5a5aa0,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x5a5aa0,'actionIndicator',_0x5a31f1=>'remove'===_0x5a31f1?'remove':null),_0x5a5aa0['placeholder']=N(_0x58dbec,'Write\x20a\x20comment...'),_0x5a5aa0['removeButton']['on']('execute',_0x594ee1=>{_0x594ee1['stop'](),this['showConfirm'](N(_0x58dbec,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x5a5aa0['focus']();}),_0x5a5aa0['actionBar']['add'](this['resolveButton'],0x0),_0x5a5aa0['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0xb54f18=new _0x5bd7fc(this['locale']);return _0xb54f18['label']=N(this['locale'],'Resolve'),_0xb54f18['tooltip']=N(this['locale'],'Resolve'),_0xb54f18['icon']=_0x3e91ce,_0xb54f18['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0xb54f18['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xf254c7=>!_0xf254c7),_0xb54f18['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4c0f0c,_0x77caad)=>_0x4c0f0c&&!_0x77caad),_0xb54f18['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0xb54f18;}['_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 is extends kt{constructor(_0x5c2b23){super(_0x5c2b23),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4391a8,_0x135d52,_0x56aac0)=>{this['element']['innerHTML']=_0x56aac0;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4acfcc,_0x558183,_0x34991e){super(_0x4acfcc),this['_model']=_0x558183,this['_config']=_0x34991e,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x558183,'content',_0x558183,'authoredAt',(_0x201167,_0x60c874)=>N(_0x4acfcc,'COMMENT_ARIA_LABEL',[_0x558183['author']['name'],_0x34991e['formatDateTime'](_0x60c874),new DOMParser()['parseFromString'](_0x201167,'text/html')['body']['textContent'],_0x558183['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x4acfcc,N(_0x4acfcc,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x1539d8(),this['focusTracker']=new _0x4fd6f9(),this['keystrokes']=new jt(),this['focusCycler']=new _0x439bb2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x205c62=>_0x205c62['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 _0x3b7248=new is(this['locale']);return _0x3b7248['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x2e04f0,_0x49bd1d)=>_0x49bd1d?ts(_0x2e04f0,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x2e04f0),_0x3b7248;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x42f945=new es(this['locale'],this['_config']['editorConfig']);return _0x42f945['value']=this['_model']['content'],_0x42f945['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x42f945['submitLabel']=N(this['locale'],'Save'),_0x42f945['on']('submit',(_0x4429c9,_0x340785)=>{this['fire']('updateComment',this['_model']['id'],_0x340785),this['switchToDisplayMode'](),this['focus']();}),_0x42f945['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x42f945['once']('editorReady',()=>{_0x42f945['focus']();}),_0x42f945['createEditor'](),_0x42f945['delegate']('editorReady')['to'](this),_0x42f945['delegate']('editorDestroyed')['to'](this),_0x42f945;}['_setupKeyboardNavigation'](){const _0x32e058=this['element'];this['keystrokes']['listenTo'](_0x32e058);for(const _0x2387d9 of this['focusables'])this['focusTracker']['add'](_0x2387d9['element']),this['keystrokes']['listenTo'](_0x2387d9['element']);this['focusables']['on']('change',(_0x48a0cb,_0x442adc)=>{for(const _0x4ec370 of _0x442adc['removed'])this['focusTracker']['remove'](_0x4ec370['element']),this['keystrokes']['stopListening'](_0x4ec370['element']);for(const _0x51c6b6 of _0x442adc['added'])this['focusTracker']['add'](_0x51c6b6['element']),this['keystrokes']['listenTo'](_0x51c6b6['element']);}),this['keystrokes']['set']('enter',(_0x4e624b,_0x3c853d)=>{_0x32e058===_0x4e624b['target']&&(this['focusCycler']['focusFirst'](),_0x3c853d());}),this['keystrokes']['set']('esc',(_0x421522,_0x464f90)=>{_0x32e058!==_0x421522['target']&&(this['focus'](),_0x464f90());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x568605,_0x397b6d,_0x37826c){super(_0x568605,_0x397b6d,_0x37826c),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x568605,'Reply...')),this['bind']('authoredAt')['to'](_0x397b6d),this['bind']('resolvedAt')['to'](_0x397b6d),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 _0x2540bd(_0x568605,_0x397b6d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x397b6d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x23abbc=this['bindTemplate'],_0x4c7e31=[{'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':_0x23abbc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x23abbc['to']('authoredAt',_0x3723c1=>this['_config']['formatDateTime'](_0x3723c1))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x23abbc['if']('isEditMode','ck-comment__actions--hidden'),_0x23abbc['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']&&_0x4c7e31['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x23abbc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x23abbc['if']('isEditMode','ck-comment--edit'),_0x23abbc['if']('isSystemComment','ck-comment--info'),_0x23abbc['to']('actionIndicator',_0x26b17d=>_0x26b17d?'ck-comment--'+_0x26b17d:'')],'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':_0x4c7e31}]}]};}['_createEditButton'](){const _0xebc60b=new _0x3487c4(this['locale']);return _0xebc60b['label']=N(this['locale'],'Edit'),_0xebc60b['icon']=_0x1cd19c,_0xebc60b['withText']=!0x0,_0xebc60b['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xebc60b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x435749=>!_0x435749),_0xebc60b['bind']('isVisible')['to'](this['_model'],'isEditable'),_0xebc60b['on']('execute',()=>this['switchToEditMode']()),_0xebc60b;}['_createRemoveButton'](){const _0x9308f0=new _0x3487c4(this['locale']);return _0x9308f0['label']=N(this['locale'],'Remove'),_0x9308f0['icon']=_0x5602e6,_0x9308f0['withText']=!0x0,_0x9308f0['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x9308f0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x356a89=>!_0x356a89),_0x9308f0['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x9308f0['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x9308f0;}['_createDropdown'](){const _0x90d1a=_0x32f47a(this['locale'],_0x59475c),_0x31ce8a=_0x90d1a['panelView']['children'],_0x284f8f=new _0x183675(this['locale']),_0x508765=_0x90d1a['bindTemplate'];_0x3ec415(_0x90d1a,()=>this['items']['find'](_0x4e3789=>_0x4e3789['isVisible'])),_0x90d1a['extendTemplate']({'attributes':{'class':[_0x508765['if']('isVisible','ck-hidden',_0x59b5ca=>!_0x59b5ca)]}});const _0x315dda=(_0x5ec579,_0x4f1392=-0x1)=>{const _0x2e3464=new _0x1303ef(this['locale']);_0x2e3464['children']['add'](_0x5ec579);const _0x4d774c=_0x4f1392>-0x1?_0x4f1392:_0x284f8f['items']['length'];_0x284f8f['items']['add'](_0x2e3464,_0x4d774c);const _0x5caac9=Array['from'](this['items']);_0x90d1a['unbind']('isEnabled','isVisible'),_0x90d1a['bind']('isEnabled')['toMany'](_0x5caac9,'isEnabled',(..._0x33d16e)=>_0x33d16e['some'](_0x23edd8=>_0x23edd8)),_0x90d1a['bind']('isVisible')['toMany'](_0x5caac9,'isVisible',(..._0x27b5cd)=>_0x27b5cd['some'](_0x171e13=>_0x171e13));};_0x90d1a['panelPosition']='sw',_0x90d1a['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x59b323});for(const _0x4b1597 of this['items'])_0x315dda(_0x4b1597);return _0x31ce8a['add'](_0x284f8f),_0x90d1a['listenTo'](this['items'],'add',(_0x4aa0a3,_0x1ee74f,_0x1d8cf5)=>{_0x315dda(_0x1ee74f,_0x1d8cf5);}),_0x90d1a['listenTo'](this['items'],'remove',(_0x4513a6,_0x2065a2,_0x3fdb02)=>{_0x284f8f['items']['remove'](_0x3fdb02);}),_0x90d1a;}['_attachActions'](_0x1c5a8b,_0x57f65f){const _0x2bea8e=_0x1c5a8b&&_0x1c5a8b['element'];_0x2bea8e&&(this['listenTo'](_0x2bea8e,'mouseenter',()=>this['actionIndicator']=_0x57f65f),this['listenTo'](_0x2bea8e,'focus',()=>this['actionIndicator']=_0x57f65f),this['listenTo'](_0x2bea8e,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x2bea8e,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4ed0ad=super['_createCommentInputView']();return _0x4ed0ad['bind']('placeholder')['to'](this),_0x4ed0ad;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x1dcf94){const _0x2a4e1a=Dt(_0x1dcf94,0x1e),_0x5b3716=new MutationObserver(_0x27803b=>{for(const _0x3c8396 of _0x27803b)('attributes'==_0x3c8396['type']&&'class'==_0x3c8396['attributeName']||'childList'==_0x3c8396['type']||'characterData'==_0x3c8396['type'])&&_0x2a4e1a();});return{'attach'(_0xd26862){_0x5b3716['observe'](_0xd26862,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5b3716['disconnect'](),_0x2a4e1a['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x481b56,_0x1b2955){super(_0x481b56),this['id']=_0x4e4b92(),this['focusTracker']=new _0x4fd6f9(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x470ca1,_0x2965b1)=>this['fire']('Esc',_0x2965b1)),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'](_0x1b2955),this['mainView']=_0x1b2955;const _0x4d8b61=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4d8b61['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 _0x496a31=this['element']['clientHeight'];_0x496a31&&(this['height']=_0x496a31);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x37aab7(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x18adc1,target:_0x9021bb,type:_0x2b8a7a,isVisible:_0x21b687=!0x0}){super(),this['view']=_0x18adc1,this['view']['element']||this['view']['render'](),this['_type']=_0x2b8a7a,this['_target']=_0x9021bb,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x328140([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x4bc83c,_0x18a57d)=>{this['view']['focusTracker']['add'](_0x18a57d);}),this['focusableElements']['on']('remove',(_0x391b68,_0x123e66)=>{this['view']['focusTracker']['remove'](_0x123e66);}),this['set']('isVisible',_0x21b687);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x22c633=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x22c633),_0x22c633;}get['targetRect'](){const _0x159b60=this['target'];if(null===_0x159b60)return null;if(_0x159b60 instanceof _0x578f30)return _0x159b60;const _0x3aeeb9=_0x159b60['filter'](_0x2ca62f=>function(_0x59746b){const _0x2a7909=_0x59746b['offsetParent'];if(_0x2a7909)return!0x0;const _0x43776a=_0x59746b['getClientRects']()['item'](0x0);return!!_0x43776a;}(_0x2ca62f));return 0x0===_0x3aeeb9['length']?null:new _0x578f30(_0x3aeeb9[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x15e49c){this['view']['isActive']=_0x15e49c,this['view']['mainView']['isActive']=_0x15e49c;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x4df933){if(!(null===_0x4df933||_0x4df933 instanceof _0x578f30||Array['isArray'](_0x4df933)&&_0x4df933['every'](_0x415156=>re(_0x415156))))throw new _0x5199cf('annotation-invalid-target',null,{'target':_0x4df933});}['_getNormalizedTarget'](){const _0x31a656='function'==typeof this['_target']?this['_target']():this['_target'];return re(_0x31a656)?[_0x31a656]:_0x31a656;}}function re(_0x5c8fb6){return null!==_0x5c8fb6&&'object'==typeof _0x5c8fb6&&'nodeType'in _0x5c8fb6&&0x1===_0x5c8fb6['nodeType'];}class S extends _0x328140{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x43a36d=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4fd6f9(),this['_focusTracker']['on']('change:isFocused',(_0x2b11ee,_0x5b873f,_0x3c9ebb)=>{_0x3c9ebb||this['fire']('blur');});for(const _0x43895c of _0x43a36d)this['add'](_0x43895c);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x293603){if(this['has'](_0x293603))throw new _0x5199cf('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x293603['innerView'],_0x293603),this['_viewToAnnotation']['set'](_0x293603['view'],_0x293603);for(const _0x25e46a of _0x293603['focusableElements'])this['_focusTracker']['add'](_0x25e46a);this['listenTo'](_0x293603['focusableElements'],'add',(_0x38ed8f,_0x110fff)=>{this['_focusTracker']['add'](_0x110fff);}),this['listenTo'](_0x293603['focusableElements'],'remove',(_0x400ad6,_0x1cd802)=>{this['_focusTracker']['remove'](_0x1cd802);}),this['listenTo'](_0x293603['view']['focusTracker'],'change:isFocused',(_0x3c45dc,_0x45298b,_0x1f06d3)=>{_0x1f06d3&&this['fire']('focus',_0x293603);}),_0x293603['updateTargetRect']();const _0x594766=this['_getOrderInContent'](_0x293603['view']['targetRect']);return super['add'](_0x293603,_0x594766);}['remove'](_0x5ebf23){if(!this['has'](_0x5ebf23))throw new _0x5199cf('annotationcollection-not-existing-item',null);this['stopListening'](_0x5ebf23['view']['focusTracker']),this['stopListening'](_0x5ebf23['focusableElements']);for(const _0x10fa32 of _0x5ebf23['focusableElements'])this['_focusTracker']['remove'](_0x10fa32);return this['_viewToAnnotation']['delete'](_0x5ebf23['view']),this['_innerViewToAnnotation']['delete'](_0x5ebf23['innerView']),super['remove'](_0x5ebf23);}['getByInnerView'](_0x35672e){return this['_innerViewToAnnotation']['get'](_0x35672e);}['getByView'](_0xe3e188){return this['_viewToAnnotation']['get'](_0xe3e188);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1f9f6e of this)_0x1f9f6e['updateTargetRect']();this['_sort']();}['_sort'](){const _0x5bf7fc=Array['from'](this)['sort']((_0x1b91f1,_0x5f59e5)=>w(_0x1b91f1['view']['targetRect'],_0x5f59e5['view']['targetRect']));for(let _0x4024d1=_0x5bf7fc['length']-0x1;_0x4024d1>0x0;_0x4024d1--){const _0x565def=_0x5bf7fc[_0x4024d1];_0x4024d1!==this['getIndex'](_0x565def)&&(this['remove'](_0x565def),this['add'](_0x565def));}}['_getOrderInContent'](_0x3c31ce){let _0x51e947=0x0;if(!_0x3c31ce)return this['length'];for(const _0x1ba71a of this){const _0x2f938f=_0x1ba71a['view']['targetRect'];if(_0x2f938f){if(w(_0x3c31ce,_0x2f938f)<0x0)return _0x51e947;_0x51e947++;}}return _0x51e947;}}function v({source:_0x39e434,target:_0x29b8ac,filter:_0x172158}){for(const _0x2ee884 of _0x39e434)_0x172158(_0x2ee884)&&_0x29b8ac['add'](_0x2ee884);_0x29b8ac['listenTo'](_0x39e434,'add',(_0x188f6f,_0x5be3d2)=>{_0x172158(_0x5be3d2)&&_0x29b8ac['add'](_0x5be3d2);}),_0x29b8ac['listenTo'](_0x39e434,'remove',(_0x5d60e8,_0x5842ce)=>{_0x29b8ac['has'](_0x5842ce)&&_0x29b8ac['remove'](_0x5842ce);});}function w(_0x12d300,_0x32f50f){if(null===_0x12d300&&null===_0x32f50f)return 0x0;if(null===_0x12d300)return-0x1;if(null===_0x32f50f)return 0x1;const _0x219d0c=_0x12d300['top']-_0x32f50f['top'];return 0x0==_0x219d0c?_0x12d300['left']-_0x32f50f['left']:_0x219d0c;}class y extends _0x816dec{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c2912){if(super(_0x4c2912),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4c2912 instanceof _0x25b851){const _0x396871=_0x4c2912['locale'];_0x4c2912['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x396871,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x396871,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x396871,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x396871,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x396871,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x396871,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x396871,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x4d494d){this['collection']['add'](_0x4d494d);}['remove'](_0x511220){this['collection']['remove'](_0x511220),_0x511220['destroy']();}['refreshVisibility'](){for(const _0x28917e of this['collection'])_0x28917e['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x31e444){return this['collection']['getByInnerView'](_0x31e444);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x236863 of this['collection'])_0x236863['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3c6c43){this['fire']('_activateAnnotation',_0x3c6c43);}['createAnnotation'](_0x45e23c){return new T(_0x45e23c);}['createAnnotationView'](_0x92749e,_0x4c0327){return new E(_0x92749e,_0x4c0327);}['_addActiveAnnotation'](_0x47f819){const _0x4bc75c=new Set(this['activeAnnotations']);_0x4bc75c['add'](_0x47f819),this['activeAnnotations']=_0x4bc75c;}['_removeActiveAnnotation'](_0x77bfa0){const _0x2b07ab=new Set(this['activeAnnotations']);_0x2b07ab['delete'](_0x77bfa0),this['activeAnnotations']=_0x2b07ab;}['_bindAnnotationsToVisibleAnnotations'](){const _0x160bf9=this['collection'],_0x433d69=this['_visibleAnnotations'];function _0x341f5d(_0x497d5b){const _0x50798f=_0x497d5b['source'];_0x50798f['isVisible']&&!_0x433d69['has'](_0x50798f)?_0x433d69['add'](_0x50798f):!_0x50798f['isVisible']&&_0x433d69['has'](_0x50798f)&&_0x433d69['remove'](_0x50798f),_0x50798f['view']['focusTracker']['remove'](_0x50798f['view']['element']),_0x50798f['view']['focusTracker']['add'](_0x50798f['view']['element']);}this['listenTo'](_0x160bf9,'add',(_0x2b1900,_0x4c017a)=>{_0x4c017a['isVisible']&&_0x433d69['add'](_0x4c017a),this['listenTo'](_0x4c017a,'change:isVisible',_0x341f5d);}),this['listenTo'](_0x160bf9,'remove',(_0x41ebdc,_0xa91a60)=>{_0x433d69['has'](_0xa91a60)&&_0x433d69['remove'](_0xa91a60),this['stopListening'](_0xa91a60,'change:isVisible',_0x341f5d);});}['_setupEnterAnnotationKeystroke'](){const _0x24f7a1=_0x3e718e=>{_0x3e718e['on']('ready',()=>{_0x3e718e['keystrokes']['set'](_0x430625,(_0x4ff2ab,_0x555190)=>{const _0xa4935c=_0x153d6a(this['activeAnnotations']['values']());_0xa4935c&&(_0xa4935c['view']['focus'](),_0x555190());});});};this['context']instanceof _0x25b851?_0x24f7a1(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1790eb,_0x10c84a)=>{_0x24f7a1(_0x10c84a);});}['_setupEscapeAnnotationHandling'](){const _0x179e3c=_0x57628a=>{const _0x4fd45e=_0x57628a['source'],_0x1c7671=[];let _0x35e5f8;if(Array['isArray'](_0x4fd45e['target'])){_0x35e5f8=_0x4fd45e['target'][0x0],this['context']instanceof _0x25b851?_0x1c7671['push'](this['context']):this['context']['editors']&&_0x1c7671['push'](...this['context']['editors']);for(const _0x5026f7 of _0x1c7671)for(const _0x29e56f of _0x5026f7['editing']['view']['domRoots']['values']())if(_0x29e56f['contains'](_0x35e5f8))return void _0x5026f7['editing']['view']['focus']();_0x35e5f8['focus']();}};this['listenTo'](this['collection'],'add',(_0x90bd6e,_0x16ed28)=>{this['listenTo'](_0x16ed28,'escape',_0x179e3c,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1788e6,_0x58850a)=>{this['stopListening'](_0x58850a,'escape',_0x179e3c);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x816dec{['_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(_0x1dd337){super(_0x1dd337),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x5951d9=this['context']['config'];_0x5951d9['define']('comments.maxCommentsWhenCollapsed',0x2),_0x5951d9['define']('comments.maxThreadTotalWeight',0x1f4),_0x5951d9['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x5951d9['define']('comments.CommentThreadView',gt),_0x5951d9['define']('comments.CommentView',Tt),_0x5951d9['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x1d55cc=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x5b51f0,_0x3c9181)=>this['_addCommentThread'](_0x3c9181)),this['on']('submitCommentThread',(_0x505a91,_0x42cc20)=>this['_submitCommentThread'](_0x42cc20)),this['on']('resolveCommentThread',(_0x32c2de,_0x1c81b7)=>this['_resolveCommentThread'](_0x1c81b7)),this['on']('resolveCommentThread',(_0x1e9535,_0xc3926d)=>this['_updateActiveAnnotation'](_0xc3926d),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x152302,_0x43883b)=>this['_reopenCommentThread'](_0x43883b)),this['on']('reopenCommentThread',(_0x469910,_0x1ba7f4)=>this['_updateActiveAnnotation'](_0x1ba7f4),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x2cdbfc,_0x5c9aa6)=>this['_removeCommentThread'](_0x5c9aa6)),this['on']('updateCommentThread',(_0x38eec2,_0x4a07af)=>this['_updateCommentThread'](_0x4a07af)),this['on']('updateCommentThread',(_0x29975c,_0x1269e9)=>this['_updateActiveAnnotation'](_0x1269e9),{'priority':'lowest'}),this['on']('addComment',(_0x5bd12d,_0x21e02b)=>this['_addComment'](_0x21e02b)),this['on']('updateComment',(_0x2c8005,_0xa94d33)=>this['_updateComment'](_0xa94d33)),this['on']('removeComment',(_0x5d26f3,_0x3db694)=>this['_removeComment'](_0x3db694)),this['on']('addComment',(_0x5bb1a3,{threadId:_0x2d9dfb,isFromAdapter:_0x53e3f5})=>{if(_0x53e3f5)return;const _0xf91ea0=this['getCommentThread'](_0x2d9dfb),_0x1736e8=_0xf91ea0&&this['_threadToController']['get'](_0xf91ea0);_0x1736e8&&_0x1736e8['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x1d55cc,'change:activeAnnotations',(_0x567fc3,_0x2eb232,_0x212dbd)=>{const _0x132cac=Array['from'](_0x212dbd)['map'](_0x34c53c=>this['_viewToController']['get'](_0x34c53c['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x132cac?_0x132cac['model']:null;});}set['adapter'](_0x4df0c5){if(this['_adapter'])throw new _0x5199cf('commentsrepository-adapter-already-set');this['_adapter']=_0x4df0c5;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x1324d6=_t,threadId:_0x12aa8b=_0x4e4b92(),comments:_0x4d0a27=[],unlinkedAt:_0x3aa1ec=null,resolvedAt:_0x499056=null,resolvedBy:_0x7c4265=null,target:_0x1d7c9a=null,context:_0xf66e2e=null,attributes:_0x2b3ab2={},isResolvable:_0x25bef0=!0x0,isSubmitted:_0x53ccf2=!0x1,isFromAdapter:_0xbf289b=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x1324d6),{'channelId':_0x1324d6,'threadId':_0x12aa8b,'comments':_0x4d0a27,'unlinkedAt':_0x3aa1ec,'resolvedAt':_0x499056,'resolvedBy':_0x7c4265,'target':_0x1d7c9a,'context':_0xf66e2e,'attributes':_0x2b3ab2,'isFromAdapter':_0xbf289b,'isResolvable':_0x25bef0,'isSubmitted':_0x53ccf2}),this['getCommentThread'](_0x12aa8b);}['openNewCommentThread']({channelId:_0x123325=_t,threadId:_0x4e88aa=_0x4e4b92(),target:_0x4734dd,context:_0x42b8c9=null,isResolvable:_0x3044b2=!0x0}){if(this['_readOnlyChannels']['has'](_0x123325)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4734dd)throw new _0x5199cf('commentsrepository-missing-target');const _0x11d082=this['addCommentThread']({'channelId':_0x123325,'threadId':_0x4e88aa,'target':_0x4734dd,'context':_0x42b8c9,'isResolvable':_0x3044b2});if(!_0x11d082)return null;const _0x183d33=this['_threadToController']['get'](_0x11d082),_0x2d6c20=_0x183d33['view']['commentThreadInputView']['commentInputView'],_0x31995f=this['context']['plugins']['get'](y),_0xe0adaf=_0x31995f['getByInnerView'](_0x183d33['view']);return _0x31995f['activate'](_0xe0adaf),_0x2d6c20['once']('editorReady',()=>_0x2d6c20['focus']()),_0x11d082;}['hasCommentThread'](_0xde226b){if('string'!=typeof _0xde226b)throw new _0x5199cf('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0xde226b);}['updateCommentThread']({channelId:_0x48c423=_t,threadId:_0x25d844,context:_0x4360d3,unlinkedAt:_0x5969eb,attributes:_0x292402,isFromAdapter:_0x41eee0=!0x1}){return this['fire'](Nt('updateCommentThread',_0x48c423),{'channelId':_0x48c423,'threadId':_0x25d844,'context':_0x4360d3,'unlinkedAt':_0x5969eb,'attributes':_0x292402,'isFromAdapter':_0x41eee0}),this['getCommentThread'](_0x25d844);}['getCommentThread'](_0x431a67){if('string'!=typeof _0x431a67)throw new _0x5199cf('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x431a67);}['fetchCommentThread']({channelId:_0x11daaa,threadId:_0x24d482}={}){const _0x3d9d6c=this['getCommentThread'](_0x24d482);if(_0x3d9d6c)return Promise['resolve'](_0x3d9d6c);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x5199cf('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x11daaa,'threadId':_0x24d482})['then'](_0x309646=>this['hasCommentThread'](_0x24d482)?this['getCommentThread'](_0x24d482):_0x309646?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x11daaa},_0x309646)):void 0x0)['catch'](_0x5b0846=>{throw console['error'](_0x5b0846),new _0x5199cf('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5a632a,skipNotAttached:_0x4ff37d=!0x1,skipEmpty:_0x57427f=!0x1,toJSON:_0x3657f7=!0x1}={}){const _0x3337eb=[];for(const _0x3be420 of this['_threads']['values']())_0x5a632a&&_0x3be420['channelId']!==_0x5a632a||_0x4ff37d&&!_0x3be420['isAttached']||_0x57427f&&0x0===_0x3be420['length']||_0x3337eb['push'](_0x3be420);return _0x3657f7?_0x3337eb['map'](_0x5d3c22=>_0x5d3c22['toJSON']()):_0x3337eb;}['getAnnotationForCommentThread'](_0x4cc211){const _0x489adf=this['_threadToController']['get'](_0x4cc211);if(!_0x489adf)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x489adf['view'])||null;}['getCommentThreadForAnnotation'](_0x5bd7c1){const _0x5d17af=this['_viewToController']['get'](_0x5bd7c1['innerView']);return _0x5d17af?_0x5d17af['model']:null;}['setActiveCommentThread'](_0x1b2558){const _0xf6926f=this['context']['plugins']['get'](y);if(!_0x1b2558)return void(this['activeCommentThread']&&_0xf6926f['deactivateAll']());const _0x42fe13=this['getCommentThread'](_0x1b2558);if(!_0x42fe13)throw new _0x5199cf('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x1b2558});if(!this['_threadToController']['has'](_0x42fe13))throw new _0x5199cf('commentsrepository-active-not-attached',null,{'threadId':_0x1b2558});const _0x302e09=_0xf6926f['getByInnerView'](this['_threadToController']['get'](_0x42fe13)['view']);_0xf6926f['activate'](_0x302e09);}['switchReadOnly'](_0x34f98b,_0x555c47){_0x34f98b?this['_readOnlyChannels']['add'](_0x555c47):this['_readOnlyChannels']['delete'](_0x555c47),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x4063cc){return this['_readOnlyChannels']['has'](_0x4063cc)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x2f6a45,_0x45e847){return new vt(_0x2f6a45,_0x45e847);}['setPermissions'](_0x4fb58,_0x3c60b6=_t){this['_permissions']['set'](_0x3c60b6,_0x4fb58),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x37b230=_t){return this['_permissions']['has'](_0x37b230)?this['_permissions']['get'](_0x37b230):bt;}['_addCommentThread']({channelId:_0x344ecb,threadId:_0xc48d41,comments:_0x3b6716,unlinkedAt:_0x64c914,resolvedAt:_0x4dcdc9,resolvedBy:_0x2b6d79,target:_0x35b82e,context:_0x472811,attributes:_0x730446,isFromAdapter:_0x519f07,isResolvable:_0x3b1a93,isSubmitted:_0x4c3946}){if('string'!=typeof _0xc48d41)throw new _0x5199cf('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xc48d41});if(this['hasCommentThread'](_0xc48d41))throw new _0x5199cf('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0xc48d41});const _0x236a70=new CommentThread(this,{'channelId':_0x344ecb,'id':_0xc48d41,'context':_0x472811,'attributes':_0x730446,'unlinkedAt':_0x64c914,'resolvedAt':_0x4dcdc9,'resolvedBy':_0x2b6d79?this['context']['plugins']['get'](it)['getUser'](_0x2b6d79):null,'isResolvable':_0x3b1a93,'isSubmitted':_0x4c3946||_0x519f07});this['_threads']['set'](_0xc48d41,_0x236a70);for(const _0x1150ee of _0x3b6716)_0x236a70['_add'](this['_createNewComment']({'threadId':_0xc48d41,..._0x1150ee}));return _0x35b82e&&_0x236a70['attachTo'](_0x35b82e),_0x519f07||!_0x236a70['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x344ecb,'threadId':_0xc48d41});}['_submitCommentThread']({channelId:_0x819bf2,threadId:_0x5e4778}){if(!this['hasCommentThread'](_0x5e4778))throw new _0x5199cf('commentsrepository-missing-comment-thread',this);const _0x15eac1=this['getCommentThread'](_0x5e4778);if(_0x15eac1['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x27586c,comments:_0x5d0747,resolvedAt:_0x5a4eb4,resolvedBy:_0x1e265b,context:_0x4f1a2e,attributes:_0x367859}=_0x15eac1,_0x9166c2=this['context']['plugins']['get']('PendingActions'),_0x3a22d0=_0x9166c2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x819bf2,'threadId':_0x27586c,'comments':_0x5d0747['map'](_0x230b88=>_0x230b88['toJSON']()),'resolvedAt':_0x5a4eb4,'resolvedBy':_0x1e265b?_0x1e265b['id']:_0x1e265b,'context':_0x4f1a2e,'attributes':_0x367859})['then'](({comments:_0xaa0c3d})=>{_0x9166c2['remove'](_0x3a22d0);for(const _0x2958c1 of _0xaa0c3d)this['_updateComment']({'channelId':_0x819bf2,'threadId':_0x5e4778,'commentId':_0x2958c1['commentId'],'createdAt':_0x2958c1['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2d6714=>{throw console['error'](_0x2d6714),new _0x5199cf('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x50ddb3,target:_0x93c50b}){const _0x38eb55=this['getCommentThread'](_0x50ddb3);if(!_0x38eb55)throw new _0x5199cf('commentsrepository-attach-missing-comment-thread',this);const _0x427db6=this['context']['plugins']['get']('PendingActions'),_0x1757b4=this['context']['plugins']['get'](y),_0x3d96ab=this['_createCommentThreadView'](_0x38eb55),_0x401c18=new vt(_0x38eb55,_0x3d96ab);let _0x8ba508=null;_0x3d96ab['on']('change:isDirty',(_0x6e2377,_0x55b042,_0x2ca1ee)=>{_0x2ca1ee?_0x8ba508=_0x427db6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x8ba508&&(_0x427db6['remove'](_0x8ba508),_0x8ba508=null);}),this['_threadToController']['set'](_0x38eb55,_0x401c18),this['_viewToController']['set'](_0x3d96ab,_0x401c18);const _0x492c86=new E(this['context']['locale'],_0x3d96ab);_0x492c86['bind']('length')['to'](_0x3d96ab),_0x492c86['bind']('isDirty')['to'](_0x3d96ab,'isDirty',_0x3d96ab,'length',(_0x5c809f,_0xb783f2)=>_0x5c809f||!_0xb783f2),_0x492c86['bind']('isActive')['to'](_0x3d96ab),_0x492c86['type']='comment';const _0x1443ce=new T({'view':_0x492c86,'target':_0x93c50b,'type':'comment','isVisible':!_0x38eb55['archivedAt']&&!!('function'==typeof _0x93c50b?_0x93c50b():_0x93c50b)});return _0x3d96ab['on']('escape',()=>{_0x1443ce['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3d96ab,_0x1443ce),_0x1757b4['add'](_0x1443ce),_0x1443ce;}['_bindAnnotationToEditors'](_0x18152c,_0x1b38f7){this['listenTo'](_0x18152c,'editorReady',(_0x32687f,_0x2b2609)=>{const _0x5bd65a=_0x2b2609['ui']['view']['body']['bodyCollectionContainer'];_0x1b38f7['focusableElements']['add'](_0x5bd65a),this['context']instanceof _0x25b851&&this['context']['ui']['focusTracker']['add'](_0x5bd65a);},{'priority':'highest'}),this['listenTo'](_0x18152c,'editorDestroyed',(_0x489ef3,_0x3d649a)=>{const _0x48474e=_0x3d649a['ui']['view']['body']['bodyCollectionContainer'];_0x1b38f7['focusableElements']['has'](_0x48474e)&&_0x1b38f7['focusableElements']['remove'](_0x48474e),this['context']instanceof _0x25b851&&this['context']['ui']['focusTracker']['remove'](_0x48474e);});}['_unbindEditors'](_0x529f4a){this['stopListening'](_0x529f4a,'editorReady'),this['stopListening'](_0x529f4a,'editorDestroyed');}['_createCommentThreadView'](_0x5e69b0){const _0x3f42bf=this['context']['plugins']['get'](it),{config:_0x476b76,locale:_0x42ab32}=this['context'],_0x5428eb=pt(_0x476b76['get']('locale'),_0x42ab32);return new(0x0,(_0x476b76['get']('comments'))['CommentThreadView'])(_0x42ab32,_0x5e69b0,_0x3f42bf['me'],{'editorConfig':{..._0x476b76['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x476b76['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x476b76['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x476b76['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x476b76['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5428eb,'CommentView':_0x476b76['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x8185c8,channelId:_0x489615,resolvedAt:_0x4bd3e2,resolvedBy:_0x4073da,isFromAdapter:_0x53b53f}){if(!this['hasCommentThread'](_0x8185c8))throw new _0x5199cf('commentsrepository-missing-comment-thread',null,{'threadId':_0x8185c8});const _0x3713ca=this['getCommentThread'](_0x8185c8);if(_0x3713ca['isResolved'])throw new _0x5199cf('commentsrepository-resolved-comment-thread',null,{'threadId':_0x8185c8});const _0x3a2652=this['context']['plugins']['get'](it);if(_0x3713ca['resolvedBy']=_0x3a2652['getUser'](_0x4073da),_0x3713ca['resolvedAt']=_0x4bd3e2,_0x53b53f||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x1c54c0=this['context']['plugins']['get']('PendingActions'),_0x36edca=_0x1c54c0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x489615,'threadId':_0x8185c8})['then'](({resolvedAt:_0x2705e1,resolvedBy:_0x555d11})=>{_0x1c54c0['remove'](_0x36edca),_0x3713ca['resolvedBy']['id']!==_0x555d11&&(_0x3713ca['resolvedBy']=_0x3a2652['getUser'](_0x555d11)),_0x3713ca['resolvedAt']=_0x2705e1;})['catch'](_0x4b8cdf=>{throw console['error'](_0x4b8cdf),new _0x5199cf('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x2c4f28,channelId:_0x2fdc66,isFromAdapter:_0x13f0ae}){if(!this['hasCommentThread'](_0x2c4f28))throw new _0x5199cf('commentsrepository-missing-comment-thread',null,{'threadId':_0x2c4f28});const _0x3a8fc2=this['getCommentThread'](_0x2c4f28);if(!_0x3a8fc2['isResolved'])throw new _0x5199cf('commentsrepository-reopen-comment-thread',null,{'threadId':_0x2c4f28});if(_0x3a8fc2['resolvedBy']=null,_0x3a8fc2['resolvedAt']=null,_0x13f0ae||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x9da324=this['context']['plugins']['get']('PendingActions'),_0x791410=_0x9da324['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x2fdc66,'threadId':_0x2c4f28})['then'](()=>_0x9da324['remove'](_0x791410))['catch'](_0x180571=>{throw console['error'](_0x180571),new _0x5199cf('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x35cdb1,isFromAdapter:_0x50c2f5}){const _0x1db696=this['getCommentThread'](_0x35cdb1);if(!_0x1db696)throw new _0x5199cf('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x35cdb1),this['_threads']['delete'](_0x35cdb1),!_0x1db696['isSubmitted']||_0x50c2f5||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x56a57c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1f0acf}=_0x1db696,_0x211aa2=_0x56a57c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1f0acf,'threadId':_0x35cdb1})['then'](()=>_0x56a57c['remove'](_0x211aa2))['catch'](_0x57a029=>{throw console['error'](_0x57a029),new _0x5199cf('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x2d8ba6,unlinkedAt:_0xb2591b,context:_0x34c54c,attributes:_0x3955b2,isFromAdapter:_0x109f71}){if('string'!=typeof _0x2d8ba6)throw new _0x5199cf('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2d8ba6});if(!this['hasCommentThread'](_0x2d8ba6))throw new _0x5199cf('commentsrepository-missing-comment-thread',null,{'threadId':_0x2d8ba6});const _0x30286b=this['getCommentThread'](_0x2d8ba6);let _0x19e445=!0x1;if(void 0x0!==_0x34c54c&&_0x30286b['context']!==_0x34c54c&&(_0x30286b['context']=_0x34c54c,_0x19e445=!0x0),void 0x0!==_0xb2591b&&_0x30286b['unlinkedAt']!==_0xb2591b&&(_0x30286b['unlinkedAt']=_0xb2591b,_0x19e445=!0x0),_0x3955b2&&!At(_0x3955b2,_0x30286b['attributes'])&&(_0x30286b['attributes']=_0x3955b2,_0x19e445=!0x0),!_0x19e445)return Promise['resolve']();if(!_0x30286b['isSubmitted']||_0x109f71||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x403d84=this['context']['plugins']['get']('PendingActions'),{channelId:_0x7d6ea7}=_0x30286b,_0x1bc1c4=_0x403d84['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x7d6ea7,'threadId':_0x2d8ba6,'context':_0x34c54c,'unlinkedAt':_0xb2591b,'attributes':_0x3955b2})['then'](()=>_0x403d84['remove'](_0x1bc1c4))['catch'](_0x519a26=>{throw console['error'](_0x519a26),new _0x5199cf('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1ee473){const _0x1ee16c=this['context']['plugins']['get'](y),_0x3c5c68=this['getCommentThread'](_0x1ee473);if(_0x3c5c68['_isAttached']=!0x1,this['_threadToController']['has'](_0x3c5c68)){const _0x4659b3=this['_threadToController']['get'](_0x3c5c68),_0x5e8276=_0x4659b3['view'],_0x5f151a=_0x1ee16c['getByInnerView'](_0x5e8276);this['_threadToController']['delete'](_0x3c5c68),this['_viewToController']['delete'](_0x5e8276),_0x5f151a&&_0x1ee16c['remove'](_0x5f151a),_0x4659b3['destroy'](),_0x5e8276['destroy']()['then'](()=>{this['_unbindEditors'](_0x5e8276);});}}['_updateActiveAnnotation']({threadId:_0x29e5ca,resolvedAt:_0x23bd11,unlinkedAt:_0xfb23d1}){const _0x3378b4=!!_0x23bd11,_0x3c5650=this['context']['plugins']['get'](y),_0x2adfb0=this['getCommentThread'](_0x29e5ca);if(this['_threadToController']['has'](_0x2adfb0)){const _0x5177b4=this['_threadToController']['get'](_0x2adfb0)['view'],_0x1c373f=_0x3c5650['getByInnerView'](_0x5177b4);_0x1c373f&&(_0x3378b4&&_0x3c5650['_removeActiveAnnotation'](_0x1c373f),_0xfb23d1?_0x1c373f['isVisible']=!0x1:_0x1c373f['refreshVisibility']());}}['_getExternalAuthor'](_0x5e0145){const _0x1de437=this['context']['plugins']['get'](it),_0x5bc061=It('external:'+_0x5e0145),_0x1e003a=_0x1de437['getUser'](_0x5bc061);return _0x1e003a||_0x1de437['addUser']({'id':_0x5bc061,'name':_0x5e0145});}['_createNewComment']({threadId:_0x2ef5a3,commentId:_0x476bc9=_0x4e4b92(),content:_0x5a14f9,authorId:_0x5535b0,createdAt:_0x1603b4,attributes:_0xc30a81}){if('string'!=typeof _0x476bc9)throw new _0x5199cf('commentsrepository-invalid-commentid');if('string'!=typeof _0x5535b0)throw new _0x5199cf('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5a14f9||!_0x5a14f9['trim']())throw new _0x5199cf('commentsrepository-invalid-comment-content');const _0xcb6030=this['context']['plugins']['get'](it)['getUser'](_0x5535b0);if(!_0xcb6030)throw new _0x5199cf('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x5535b0});let _0x3a24c9=null,_0x5adb79=_0x1603b4;return _0xc30a81?.['@external']&&(_0x3a24c9=this['_getExternalAuthor'](_0xc30a81['@external']['authorName']),_0x5adb79=new Date(_0xc30a81['@external']['createdAt'])),new Comment(this,{'threadId':_0x2ef5a3,'id':_0x476bc9,'author':_0x3a24c9||_0xcb6030,'creator':_0xcb6030,'content':_0x5a14f9,'createdAt':_0x1603b4,'authoredAt':_0x5adb79,'attributes':_0xc30a81});}['_addComment'](_0x1e7648){let {threadId:_0x2b0388,content:_0x31c854,attributes:_0xf352eb,isFromAdapter:_0x476f1b}=_0x1e7648;const _0x53a0e5=this['getCommentThread'](_0x1e7648['threadId']);if(!_0x53a0e5)throw new _0x5199cf('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x24dc77=this['_createNewComment'](_0x1e7648),{id:_0x4e7250}=_0x24dc77;if(_0x53a0e5['_add'](_0x24dc77),_0x476f1b||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x53a0e5['isSubmitted'])return Promise['resolve']();const _0x46aa5f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x21d2de}=_0x53a0e5,_0x20d5f2=_0x46aa5f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0xf352eb||(_0xf352eb={}),this['adapter']['addComment']({'channelId':_0x21d2de,'threadId':_0x2b0388,'commentId':_0x4e7250,'content':_0x31c854,'attributes':_0xf352eb})['then'](_0x1ac97f=>{_0x46aa5f['remove'](_0x20d5f2),_0x1ac97f&&this['_updateComment']({'channelId':_0x21d2de,'threadId':_0x2b0388,'commentId':_0x4e7250,'createdAt':_0x1ac97f['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xd467e5=>{throw console['error'](_0xd467e5),new _0x5199cf('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x532ed6,commentId:_0x5c923a,content:_0x5bac60,createdAt:_0x5a040a,attributes:_0x364296,isFromAdapter:_0x22f06c}){if(void 0x0!==_0x5bac60&&('string'!=typeof _0x5bac60||!_0x5bac60['trim']()['length']))throw new _0x5199cf('commentsrepository-update-comment-invalid-content');const _0x3d937a=this['getCommentThread'](_0x532ed6),_0x109bdc=_0x3d937a['getComment'](_0x5c923a);if(!_0x109bdc)throw new _0x5199cf('commentsrepository-update-missing-comment',this);let _0x5c047b=!0x1;if(_0x5bac60&&_0x5bac60!==_0x109bdc['content']&&(_0x109bdc['isEditable']||_0x22f06c)&&(_0x109bdc['content']=_0x5bac60,_0x5c047b=!0x0),_0x5a040a&&_0x5a040a!==_0x109bdc['createdAt']&&(_0x109bdc['createdAt']=_0x5a040a,_0x109bdc['attributes']&&_0x109bdc['attributes']['@external']||(_0x109bdc['authoredAt']=_0x5a040a),_0x5c047b=!0x0),_0x364296&&!At(_0x364296,_0x109bdc['attributes'])&&(_0x109bdc['attributes']=_0x364296,_0x5c047b=!0x0),!_0x5c047b)return Promise['resolve']();if(_0x3d937a['fire']('commentUpdated'),_0x22f06c||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x54630c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3b0376}=this['getCommentThread'](_0x109bdc['threadId']),_0x2166b4=_0x54630c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x3b0376,'threadId':_0x532ed6,'commentId':_0x5c923a,'content':_0x5bac60,'attributes':_0x364296})['then'](()=>_0x54630c['remove'](_0x2166b4))['catch'](_0x31e4cd=>{throw console['error'](_0x31e4cd),new _0x5199cf('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2e5537,commentId:_0x1868f2,isFromAdapter:_0x86a345}){const _0x53470c=this['getCommentThread'](_0x2e5537),_0x3a14fb=_0x53470c['getComment'](_0x1868f2);if(!_0x3a14fb)throw new _0x5199cf('commentsrepository-remove-missing-comment',this);if(_0x53470c['_remove'](_0x3a14fb),_0x86a345||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4a1099=this['context']['plugins']['get']('PendingActions'),{channelId:_0xb7f3b3}=_0x53470c,_0x18d5b4=_0x4a1099['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0xb7f3b3,'threadId':_0x2e5537,'commentId':_0x1868f2})['then'](()=>_0x4a1099['remove'](_0x18d5b4))['catch'](_0x391ad1=>{throw console['error'](_0x391ad1),new _0x5199cf('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
30
+ _0x37aab7(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x37babd,_0x430e10){super();const _0x50d0c4=_0x430e10['isResolvable'];this['channelId']=_0x430e10['channelId'],this['id']=_0x430e10['id'],this['comments']=new _0x328140(),this['_repository']=_0x37babd,this['_isAttached']=!0x1,this['_isSubmitted']=_0x430e10['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x37babd,'_permissions',_0x37babd,'_readOnlyChannels',()=>_0x37babd['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x37babd,'_permissions',()=>_0x37babd['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x37babd,'_permissions',()=>{const _0x549afa=_0x37babd['getPermissions'](this['channelId']);return _0x549afa['write']||_0x549afa['admin'];}),this['bind']('isResolvable')['to'](_0x37babd,'_permissions',()=>_0x50d0c4&&_0x37babd['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x430e10['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x502780,_0x170bdf)=>_0x502780?_0x170bdf?_0x502780<_0x170bdf?_0x502780:_0x170bdf:_0x502780:_0x170bdf),this['set']('unlinkedAt',_0x430e10['unlinkedAt']||null),this['set']('resolvedAt',_0x430e10['resolvedAt']||null),this['set']('resolvedBy',_0x430e10['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x58cf7e=>!!_0x58cf7e),this['set']('attributes',_0x430e10['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x204bc6,_0x46f42e)=>_0x204bc6+_0x46f42e['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x52ba2c,id:_0x5a8549}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x52ba2c),{'channelId':_0x52ba2c,'threadId':_0x5a8549});}['setUnlinkedAt'](_0x35f8f4){this['_update']({'unlinkedAt':_0x35f8f4});}['resolve']({resolvedAt:_0x1c74d3=new Date(),resolvedBy:_0x4d94b6='',isFromAdapter:_0x59c304=!0x1}={}){const _0x49d63d=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x445b0b,id:_0x306a30}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x445b0b),{'channelId':_0x445b0b,'threadId':_0x306a30,'resolvedAt':_0x1c74d3,'resolvedBy':_0x4d94b6||_0x49d63d['id'],'isFromAdapter':_0x59c304});}['reopen']({isFromAdapter:_0xa0a93d=!0x1}={}){const {channelId:_0x387382,id:_0x33d4df}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x387382),{'channelId':_0x387382,'threadId':_0x33d4df,'isFromAdapter':_0xa0a93d});}['setContext'](_0x180c9d){this['context']||this['_update']({'context':_0x180c9d});}['setAttribute'](_0x2c3487,_0x4d8263){const _0x37f6ae=wt(this['attributes']);yt(_0x37f6ae,_0x2c3487,_0x4d8263),this['_update']({'attributes':_0x37f6ae});}['removeAttribute'](_0x22ebc9){const _0x1943a4=wt(this['attributes']);Ct(_0x1943a4,_0x22ebc9),this['_update']({'attributes':_0x1943a4});}['remove']({isFromAdapter:_0x5d2e18=!0x1}={}){const {channelId:_0x277351,id:_0x1be641}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x277351),{'channelId':_0x277351,'threadId':_0x1be641,'isFromAdapter':_0x5d2e18});}['attachTo'](_0x3bfc13){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x3bfc13});}['addComment'](_0x330e79){const {channelId:_0x49b380,id:_0x1e9d83}=this;this['_repository']['fire'](Nt('addComment',_0x49b380,_0x1e9d83),Object['assign']({'channelId':_0x49b380,'threadId':_0x1e9d83},_0x330e79));}['getComment'](_0x1457be){if('string'!=typeof _0x1457be)throw new _0x5199cf('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x1457be});return this['comments']['get'](_0x1457be);}['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'](_0x1839ee=>_0x1839ee['toJSON']()),'attributes':this['attributes']};}['_add'](_0x143eb0){return this['listenTo'](_0x143eb0,'change:authoredAt',()=>{const _0x5c5834=this['_findOptimalIndex'](_0x143eb0),_0x545b3d=this['comments'];_0x5c5834-0x1!=_0x545b3d['getIndex'](_0x143eb0)&&_0x5c5834+0x1!=_0x545b3d['getIndex'](_0x143eb0)&&(this['_remove'](_0x143eb0),this['_add'](_0x143eb0));}),this['comments']['add'](_0x143eb0,this['_findOptimalIndex'](_0x143eb0));}['_update'](_0x1da4dd){const {channelId:_0x5bbd1a,id:_0x1fc82d}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x5bbd1a),{..._0x1da4dd,'channelId':_0x5bbd1a,'threadId':_0x1fc82d});}['_remove'](_0x38cd62){return this['stopListening'](_0x38cd62),_0x38cd62['destroy'](),this['comments']['remove'](_0x38cd62);}['_findOptimalIndex'](_0x37b74e){const _0x1310a4=this['comments']['find'](_0xcebed3=>new Date(_0xcebed3['authoredAt'])['getTime']()>new Date(_0x37b74e['authoredAt'])['getTime']());return _0x1310a4?this['comments']['getIndex'](_0x1310a4):this['length'];}}class Comment extends/* #__PURE__ -- @preserve */
31
+ _0x37aab7(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5585fb,_0x2acade){super();const _0x5ab7b2=_0x5585fb['context']['plugins']['get'](it)['me'],_0x1fca62=_0x5585fb['getCommentThread'](_0x2acade['threadId']),_0x674e03=0x0===_0x1fca62['comments']['length'],_0x2da0c3=_0x5ab7b2===_0x2acade['author'];this['id']=_0x2acade['id'],this['threadId']=_0x2acade['threadId'],this['author']=_0x2acade['author'],this['creator']=_0x2acade['creator'],this['isExternal']=Boolean(_0x2acade['attributes']&&_0x2acade['attributes']['@external']),this['set']('content',_0x2acade['content']),this['createdAt']=_0x2acade['createdAt']||new Date(),this['set']('authoredAt',_0x2acade['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1fca62,'resolvedAt'),this['set']('attributes',_0x2acade['attributes']||{}),this['bind']('isEditable')['to'](_0x5585fb,'_permissions',()=>{const _0x37c3f1=_0x5585fb['getPermissions'](_0x1fca62['channelId'])['write'],_0x37014a=_0x5585fb['getPermissions'](_0x1fca62['channelId'])['modifyAll'];return _0x2da0c3&&_0x37c3f1||!_0x2da0c3&&_0x37014a;}),this['bind']('isRemovable')['to'](_0x1fca62,'isRemovable',_0x5585fb,'_permissions',_0x31f08c=>{const _0x4b9193=_0x5585fb['getPermissions'](_0x1fca62['channelId'])['write'],_0x268cbc=_0x5585fb['getPermissions'](_0x1fca62['channelId'])['modifyAll'];return _0x2da0c3&&_0x4b9193||_0x31f08c&&_0x674e03||!_0x2da0c3&&_0x268cbc&&!_0x674e03;}),this['bind']('isReadOnly')['to'](_0x1fca62,'isReadOnly'),this['_repository']=_0x5585fb;}get['weight'](){return Math['max'](function(_0x2ef2a3){const _0x25a0c9=document['createElement']('div');return _0x25a0c9['innerHTML']=_0x2ef2a3,_0x25a0c9['textContent']['length'];}(this['content']),0xc8);}['update'](_0x3f9c89){const {threadId:_0x5ef9e9,id:_0x5e0ca5}=this;if(!this['_repository']['hasCommentThread'](_0x5ef9e9))throw new _0x5199cf('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x295a1a}=this['_repository']['getCommentThread'](_0x5ef9e9);this['_repository']['fire'](Nt('updateComment',_0x295a1a,_0x5ef9e9),{'channelId':_0x295a1a,'threadId':_0x5ef9e9,'commentId':_0x5e0ca5,..._0x3f9c89});}['setAttribute'](_0x11df54,_0x329fb1){const _0x23cf31=wt(this['attributes']);yt(_0x23cf31,_0x11df54,_0x329fb1),this['update']({'attributes':_0x23cf31});}['removeAttribute'](_0x38d221){const _0x1c3e3b=wt(this['attributes']);Ct(_0x1c3e3b,_0x38d221),this['update']({'attributes':_0x1c3e3b});}['remove'](_0x5476ec={}){if(!_0x5476ec['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x138090,id:_0x4e526a}=this;if(!this['_repository']['hasCommentThread'](_0x138090))throw new _0x5199cf('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x3bcbf7}=this['_repository']['getCommentThread'](_0x138090);this['_repository']['fire'](Nt('removeComment',_0x3bcbf7,_0x138090),{'channelId':_0x3bcbf7,'threadId':_0x138090,'commentId':_0x4e526a,..._0x5476ec});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x5ae764,..._0x1aee34){for(const _0x1fe1b7 of _0x1aee34)void 0x0!==_0x1fe1b7&&(_0x5ae764+=':'+String(_0x1fe1b7));return _0x5ae764;}class ot extends _0x37e591{constructor(_0x44f2c8){super(_0x44f2c8),this['set']('hasContent',!0x1);}['refresh'](){const _0x4be83b=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x2c651f of _0x4be83b['getRanges']())if(this['_hasContent'](_0x2c651f))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x141c5e=_0x4e4b92(),ranges:_0x4d4b42,comment:_0x4c5e2d}={}){const _0x289a28=this['editor']['model'],_0x19ec15=_0x4d4b42??Array['from'](_0x289a28['document']['selection']['getRanges']()),_0xe60151=[];for(const _0x3ad0cf of _0x19ec15)this['_hasContent'](_0x3ad0cf)&&_0xe60151['push'](this['_trimToContent'](_0x3ad0cf));if(!_0xe60151['length'])throw new _0x5199cf('addcommentthreadcommand-incorrect-ranges',null);_0x4c5e2d&&this['_createCommentThread'](_0x141c5e,_0x4c5e2d),this['_createMarkersFromRanges'](_0x141c5e,_0xe60151,!!_0x4c5e2d);}['_createMarkersFromRanges'](_0x5b27af,_0x13c8a9,_0x1d0a48){this['editor']['model']['change'](_0x14cd10=>{for(const _0x1764f6 of _0x13c8a9){const _0x54b42c=_0x4e4b92()['substr'](0x1,0x5),_0x3071a7='comment:'+_0x5b27af+':'+_0x54b42c;_0x14cd10['addMarker'](_0x3071a7,{'range':_0x1764f6,'usingOperation':_0x1d0a48,'affectsData':_0x1d0a48});}});}['_createCommentThread'](_0x24c1e1,_0x425e0b){const _0x101cb3=this['editor']['plugins']['get']('CommentsRepository'),_0x3308a8=this['editor']['config']['get']('collaboration.channelId'),_0x52bdf1=this['editor']['plugins']['get']('Users')['me'];if(!_0x52bdf1)throw new _0x5199cf('addcommentthreadcommand-user-not-found',null);_0x101cb3['addCommentThread']({'threadId':_0x24c1e1,'channelId':_0x3308a8,'comments':[{'authorId':_0x52bdf1['id'],'content':_0x425e0b,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x47f7cf){for(const _0x471f7f of _0x47f7cf['getItems']())if(this['_itemIsContent'](_0x471f7f))return!0x0;return!0x1;}['_itemIsContent'](_0x29ea88){return _0x29ea88['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x29ea88)&&!_0x29ea88['is']('element','tableCell');}['_trimToContent'](_0x417d8a){const _0x1513d9=_0x3cc8dd=>!this['_itemIsContent'](_0x3cc8dd['item']),_0x1c784f=_0x417d8a['start']['getLastMatchingPosition'](_0x1513d9),_0x463c82=_0x417d8a['end']['getLastMatchingPosition'](_0x1513d9,{'direction':'backward'});return this['editor']['model']['createRange'](_0x1c784f,_0x463c82);}}class b extends _0x3456c4{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18f13a){super(_0x18f13a),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xcd338e=this['editor'],_0x4fe8b0=_0xcd338e['model']['document']['selection'],_0x3d462b=_0x9c41f3(()=>this['refreshSelectedViews'](),0xa);_0x4fe8b0['on']('change:range',(_0x15f8c9,_0x28eb17)=>{_0x28eb17['directChange']&&(_0x3d462b['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xcd338e['editing']['view']['document'],'change:isFocused',(_0xdc510e,_0x18b23f,_0x512e8c)=>{_0x512e8c&&_0x3d462b();}),this['listenTo'](_0xcd338e['ui']['focusTracker'],'change:isFocused',(_0x6d33a9,_0x559552,_0x34ddb4)=>{_0x34ddb4||this['fire']('blur',{'isAnnotationTracked':_0x1bb3d3=>this['_editorAnnotationsData']['has'](_0x1bb3d3['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4ce865){if(this['_editorAnnotations']['has'](_0x4ce865['view']))return;this['_editorAnnotations']['add'](_0x4ce865['view']),this['editor']['ui']['focusTracker']['add'](_0x4ce865['view']['element']);const _0x2ed3a5=this['editor']['plugins']['get'](y);this['listenTo'](_0x2ed3a5['collection'],'remove',(_0x40823a,_0x1201b0)=>{this['editor']['ui']['focusTracker']['remove'](_0x1201b0['view']['element']),this['_editorAnnotations']['delete'](_0x1201b0['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1f7586){if('function'!=typeof _0x1f7586)throw new _0x5199cf('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1f7586);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x11edce,annotations:_0x363579}){const _0x4dd83d=[],_0x379f6c=this['editor']['model']['document']['selection'],_0x430f56=Array['from'](_0x379f6c['getRanges']());for(const [_0x2125a4,_0x1d73eb]of this['_editorAnnotationsData']){const _0xaf5b57=_0x1666df(_0x1d73eb),_0x43451a=_0x363579['getByInnerView'](_0x2125a4);_0xaf5b57&&_0x43451a&&_0x4dd83d['push']({'annotation':_0x43451a,'range':_0xaf5b57});}function _0x1666df(_0x255ad2){for(const _0x1ed151 of _0x255ad2)for(const _0x4ff40b of _0x430f56)if(_0x1ed151['containsRange'](_0x4ff40b,!_0x379f6c['isCollapsed']))return _0x1ed151;return null;}return _0x4dd83d['sort']((_0x95fcfb,_0x28c965)=>{const _0x1dcf8f=_0x95fcfb['range'],_0x5e256a=_0x28c965['range'];if(!_0x1dcf8f['isEqual'](_0x5e256a)){if(_0x1dcf8f['containsRange'](_0x5e256a,!0x0))return 0x1;if(_0x5e256a['containsRange'](_0x1dcf8f,!0x0))return-0x1;}return _0x95fcfb['annotation']==_0x11edce?-0x1:_0x28c965['annotation']==_0x11edce?0x1:0x0;})['map'](_0x15a2ef=>_0x15a2ef['annotation']);}get['_editorAnnotationsData'](){const _0x452cb1=new Map();for(const _0xfb79bf of Array['from'](this['_dataCollectors']))for(const [_0x387d4f,_0x20243d]of _0xfb79bf())_0x452cb1['set'](_0x387d4f,_0x20243d);return _0x452cb1;}}class st extends _0x3456c4{['afterInit'](){const _0x48be66=this['editor'];if(!_0x48be66['plugins']['has']('RestrictedEditingModeEditing'))return;_0x48be66['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3456c4{constructor(_0x58b443){super(_0x58b443),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1f0156=this['editor'],_0x15117c=_0x1f0156['commands']['get']('importWord'),_0x4a2dda=_0x1f0156['plugins']['get'](it);_0x15117c&&(_0x15117c['on']('execute',(_0x22b1ad,[,_0x5bbe46])=>{_0x5bbe46['collaboration_features']={'comments':!0x0,'user_id':_0x4a2dda['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x15117c,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x222efb,_0x399f77){const {comment_threads:_0xdb3529}=_0x399f77;_0xdb3529&&_0xdb3529['forEach'](({thread_id:_0x24472e,comments:_0x1eade9,is_resolved:_0x435be4})=>{const _0xaa425f=new Date(),_0x3f9564=_0x1eade9['map'](({author:_0x1e5f12,content:_0x958543,created_at:_0x2c64ca})=>({'content':_0x958543,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0xaa425f,'attributes':{'@external':{'authorName':_0x1e5f12,'createdAt':_0x2c64ca?new Date(_0x2c64ca):new Date(),'source':'importWord'}}})),_0x1f0789=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x1f0789,'threadId':_0x24472e,'comments':_0x3f9564,'resolvedAt':_0x435be4?_0xaa425f:null});});}}class at extends _0x3456c4{constructor(_0x20838c){super(_0x20838c),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x12ddfb=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x12ddfb,'contentInsertion',(_0x2b8c39,_0x2566a6)=>this['_removeMarkersWithoutThreads'](_0x2566a6['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x3f3354){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x3f3354;const _0x183d4f=this['editor']['plugins']['get']('CommentsRepository');for(const _0x56746c of _0x3f3354['keys']()){const [_0x5c9a60,_0x4a82da]=_0x56746c['split'](':');'comment'!=_0x5c9a60||_0x183d4f['hasCommentThread'](_0x4a82da)||_0x3f3354['delete'](_0x56746c);}return _0x3f3354;}['_registerMarkerInClipboardPipeline'](){const _0x34cf3e=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x271e5b=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x271e5b&&_0x34cf3e['_registerMarkerToCopy']('comment',_0x271e5b);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4de3fc){switch(_0x4de3fc){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2857ab){const _0x37d2c9=_0x2857ab['split'](':');return{'group':_0x37d2c9[0x0],'id':_0x37d2c9[0x1],'part':_0x37d2c9[0x2]};}class ut extends _0x3456c4{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0xe79604,_0x5d508d)=>{if(!_0x5d508d['options']['showCommentHighlights'])return null;if(_0x5d508d['options']['ignoreResolvedComments']){const {id:_0x125c98}=ft(_0xe79604['markerName']),_0x3d0a16=this['editor']['plugins']['get'](o);if(_0x3d0a16['getCommentThread'](_0x125c98)?.['isResolved']&&_0xe79604['item'])return _0x5d508d['consumable']['consume'](_0xe79604['item'],'addMarker:'+_0xe79604['markerName']),_0x5d508d['consumable']['consume'](_0xe79604['item'],'removeMarker:'+_0xe79604['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xa3418=>{_0xa3418['on']('addMarker:comment',(_0x317d20,_0x1b6058,_0x33b264)=>{if(!_0x33b264['options']['showCommentHighlights'])return;const _0x511ab5=_0x1b6058['item'];if(!_0x511ab5)return;const _0x362011=_0x33b264['mapper']['toViewElement'](_0x511ab5);this['editor']['model']['schema']['isObject'](_0x511ab5)&&_0x362011&&!_0x362011['getCustomProperty']('widget')&&_0x362011['is']('containerElement')&&_0x3779fa(_0x362011,_0x33b264['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48197d,{writer:_0x424752,options:_0x55d384})=>{if(!_0x55d384['showCommentHighlights'])return null;const _0x1be6ab=_0x424752['createContainerElement']('div'),_0x2fe6e3=_0x424752['createEmptyElement']('hr');return _0x424752['addClass']('ck-horizontal-line',_0x1be6ab),_0x424752['insert'](_0x424752['createPositionAt'](_0x1be6ab,0x0),_0x2fe6e3),_0x1be6ab;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x12cf59,{writer:_0x41f586,options:_0x1248d7})=>{if(!_0x1248d7['showCommentHighlights'])return null;const _0x176e96=_0x41f586['createContainerElement']('span'),_0x3514b6=_0x41f586['createEmptyElement']('img');return _0x41f586['addClass']('image-inline',_0x176e96),_0x41f586['insert'](_0x41f586['createPositionAt'](_0x176e96,0x0),_0x3514b6),_0x176e96;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5bda76,{writer:_0x3f28d0,options:_0x3ceb27})=>{if(_0x3ceb27['showCommentHighlights'])return _0x3f28d0['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x278c58,_0x2685c7,_0x1d07a0)=>{_0x1d07a0['options']['showCommentHighlights']&&_0x278c58['stop']();},{'priority':'high'});}}class r extends _0x3456c4{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(_0x37f28f){super(_0x37f28f),this['set']('isThreadsLoadingPaused',!0x0),_0x37f28f['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x4bc0f4,_0x1fee18,_0x2be4d3,_0x450108)=>{const _0x2c7be9=_0x37f28f['plugins']['get'](o),_0x33ebdb=_0x2be4d3?ft(_0x2be4d3)['id']:null;_0x37f28f['model']['change'](()=>{if(_0x33ebdb){const _0x55c50b=this['getAllMarkersForId'](_0x33ebdb);for(const _0x526f89 of _0x55c50b)_0x37f28f['editing']['reconvertMarker'](_0x526f89);}if(_0x450108){const {id:_0x4d18f2}=ft(_0x450108),_0x237b46=_0x2c7be9['getCommentThread'](_0x4d18f2);if(_0x237b46&&_0x237b46['unlinkedAt'])return;if(_0x237b46&&!_0x237b46['isAttached'])return;const _0x3b6df4=this['getAllMarkersForId'](_0x4d18f2);for(const _0x39f7c3 of _0x3b6df4)_0x37f28f['editing']['reconvertMarker'](_0x39f7c3);}}),_0x33ebdb&&this['scrollToThreadMarker'](_0x33ebdb);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3ce04d=this['editor'],_0x5b6e61=_0x3ce04d['plugins']['get'](o),_0x240199=_0x3ce04d['config']['get']('collaboration.channelId'),_0xd5ea3f=_0x5b6e61['getCommentThreads']()['filter'](_0x2bcfdd=>_0x2bcfdd['channelId']!==_0x240199);_0x3ce04d['commands']['add']('addCommentThread',new ot(_0x3ce04d)),this['listenTo'](_0x3ce04d,'change:isReadOnly',(_0x448fa9,_0x1c008c,_0x25ad23)=>{_0x5b6e61['switchReadOnly'](_0x25ad23,_0x3ce04d['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5b6e61,dt('addCommentThread',_0x240199),(_0x2a539c,{threadId:_0x5bcbc8})=>{const _0x10c3e1=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5bcbc8);_0x10c3e1?.['unlinkedAt']&&this['_attachArchivedThread'](_0x5bcbc8);}),this['listenTo'](_0x5b6e61,dt('removeCommentThread',_0x240199),(_0x3a61b4,{threadId:_0x4f416d})=>{_0x3ce04d['model']['enqueueChange']({'isUndoable':!0x1},_0x1c4fff=>{const _0x16a42c=this['getAllMarkersForId'](_0x4f416d);for(const _0x514ec7 of _0x16a42c)_0x1c4fff['removeMarker'](_0x514ec7);});}),this['listenTo'](_0x5b6e61,dt('resolveCommentThread',_0x240199),(_0x3f3a5e,{threadId:_0x679f2})=>{(this['_reconvertMarkers'](_0x679f2),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x679f2)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5b6e61,dt('reopenCommentThread',_0x240199),(_0x437c86,{threadId:_0xc05d4e})=>{this['_reconvertMarkers'](_0xc05d4e);},{'priority':'low'}),this['listenTo'](_0x5b6e61,dt('addComment',_0x240199),(_0x117a7e,{threadId:_0x4258e4,isFromAdapter:_0x3d2b26})=>{const _0x4972ad=this['getAllMarkersForId'](_0x4258e4);if(_0x3d2b26||0x0==_0x4972ad['length']||!_0x5b6e61['hasCommentThread'](_0x4258e4))return;0x1===_0x5b6e61['getCommentThread'](_0x4258e4)['length']&&_0x3ce04d['model']['enqueueChange']({'isUndoable':!0x1},_0xc87d78=>{for(const _0x697778 of _0x4972ad)_0xc87d78['updateMarker'](_0x697778,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0xd5ea3f);}['afterInit'](){!async function(_0x41d13d){const _0x3df9df=_0x5965dd([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]),_0x555ac2=0x73460ab3,_0x49f0d3=0x73418093^_0x555ac2,_0x5f4308=window[_0x5965dd([0x44,0x61,0x74,0x65])][_0x5965dd([0x6e,0x6f,0x77])](),_0x58b191=_0x41d13d[_0x5965dd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34b964=new window[(_0x5965dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55615f=>{_0x58b191[_0x5965dd([0x6f,0x6e,0x63,0x65])](_0x5965dd([0x72,0x65,0x61,0x64,0x79]),_0x55615f);}),_0x37a2f4={[_0x5965dd([0x6b,0x74,0x79])]:_0x5965dd([0x45,0x43]),[_0x5965dd([0x75,0x73,0x65])]:_0x5965dd([0x73,0x69,0x67]),[_0x5965dd([0x63,0x72,0x76])]:_0x5965dd([0x50,0x2d,0x32,0x35,0x36]),[_0x5965dd([0x78])]:_0x5965dd([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]),[_0x5965dd([0x79])]:_0x5965dd([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]),[_0x5965dd([0x61,0x6c,0x67])]:_0x5965dd([0x45,0x53,0x32,0x35,0x36])},_0x16d486=_0x58b191[_0x5965dd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5965dd([0x67,0x65,0x74])](_0x5965dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x301589(){let _0x358088,_0x392204=null,_0x266c4a=null;try{if(_0x16d486==_0x5965dd([0x47,0x50,0x4c]))return _0x5965dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x358088=_0x3efb0c(),!_0x358088)return _0x5965dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x358088[_0x5965dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x266c4a=_0x2c617c(_0x358088[_0x5965dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x358088[_0x5965dd([0x6a,0x74,0x69])])),await _0x4ce0e8()?_0x348630()?_0x5cd0be()?_0x5965dd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x494400()?(_0x358088[_0x5965dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5965dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x392204=_0x5344fd(_0x5965dd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x371722()):_0x5965dd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5965dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5965dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5965dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5cd0be(){const _0x5a719d=[_0x5965dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5965dd([0x74,0x72,0x69,0x61,0x6c])][_0x5965dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x358088[_0x5965dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f4308/0x3e8:0xe10*_0x49f0d3;return _0x358088[_0x5965dd([0x65,0x78,0x70])]<_0x5a719d;}function _0x348630(){const _0x27f42e=_0x358088[_0x5965dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x27f42e)return!0x1;if(_0x27f42e[_0x5965dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5965dd([0x2a])))return!0x0;if(_0x27f42e[_0x5965dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5965dd([0x43,0x4d,0x54])))return!0x0;if(_0x27f42e[_0x5965dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5965dd([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x4f85fe())return!0x0;if(_0x27f42e[_0x5965dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5965dd([0x52,0x43,0x4d,0x54]))){if(_0x521333())return!0x0;if(_0x1a430d()||_0x42d35f())return!0x0;}return!0x1;}function _0x494400(){const _0x9c9506=_0x358088[_0x5965dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9c9506||0x0==_0x9c9506[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c7597}=new URL(window[_0x5965dd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9c9506[_0x5965dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c7597))return!0x0;const _0x5ce448=_0x1c7597[_0x5965dd([0x73,0x70,0x6c,0x69,0x74])](_0x5965dd([0x2e]));return _0x9c9506[_0x5965dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x575549=>_0x575549[_0x5965dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5965dd([0x2a])))[_0x5965dd([0x6d,0x61,0x70])](_0x203ce7=>_0x203ce7[_0x5965dd([0x73,0x70,0x6c,0x69,0x74])](_0x5965dd([0x2e])))[_0x5965dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21d99d=>_0x21d99d[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ce448[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5965dd([0x6d,0x61,0x70])](_0x384008=>Array(_0x5ce448[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x384008[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5965dd([0x66,0x69,0x6c,0x6c])](_0x384008[0x0]===_0x5965dd([0x2a])?_0x5965dd([0x2a]):'')[_0x5965dd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x384008))[_0x5965dd([0x73,0x6f,0x6d,0x65])](_0x16ddca=>_0x5ce448[_0x5965dd([0x65,0x76,0x65,0x72,0x79])]((_0x35ca86,_0x4188fc)=>_0x16ddca[_0x4188fc]===_0x35ca86||_0x16ddca[_0x4188fc]===_0x5965dd([0x2a])));}function _0x371722(){return _0x392204&&_0x266c4a?new window[(_0x5965dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x519798,_0x5d2f2f)=>{_0x392204[_0x5965dd([0x74,0x68,0x65,0x6e])](_0x519798,_0x5d2f2f),_0x266c4a[_0x5965dd([0x74,0x68,0x65,0x6e])](_0x29aa77=>{_0x29aa77!=_0x5965dd([0x56,0x61,0x6c,0x69,0x64])&&_0x519798(_0x29aa77);},_0x5d2f2f);}):_0x392204||_0x266c4a||_0x5965dd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c617c(_0x3839af,_0x1a5e9c){return new window[(_0x5965dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cbd5f=>{if(_0x2050f5())return _0x1cbd5f(_0x5965dd([0x56,0x61,0x6c,0x69,0x64]));_0x3613e0(),_0x58b191[_0x5965dd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5965dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9c7b5d=!0x1;const _0x1a57b2=_0x4e4b92();function _0x6b85a1(_0x2798fb){return!!_0x2798fb&&(typeof _0x2798fb===_0x5965dd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2798fb===_0x5965dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2798fb[_0x5965dd([0x74,0x68,0x65,0x6e])]===_0x5965dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2798fb[_0x5965dd([0x63,0x61,0x74,0x63,0x68])]===_0x5965dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47c510(_0x1879d9){_0x110d4c(_0x1879d9)[_0x5965dd([0x74,0x68,0x65,0x6e])](_0x385fc4=>{if(!_0x385fc4||_0x385fc4[_0x5965dd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5965dd([0x6f,0x6b]))return _0x5965dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14d1d6(_0x4146db(_0x1a57b2+_0x1a5e9c))!=_0x385fc4[_0x5965dd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5965dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5965dd([0x56,0x61,0x6c,0x69,0x64]);})[_0x5965dd([0x74,0x68,0x65,0x6e])](_0x1f34ed=>(_0x37c84a(),_0x1f34ed),()=>{const _0x54e3d3=_0x1f05d9();return null==_0x54e3d3?(_0x37c84a(),_0x5965dd([0x56,0x61,0x6c,0x69,0x64])):_0x5965dd(_0x5f4308-_0x54e3d3>(0x574a8eb3^_0x555ac2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5965dd([0x74,0x68,0x65,0x6e])](_0x1cbd5f)[_0x5965dd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1cbd5f(_0x5965dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32e589=0x7370e433^_0x555ac2;function _0x37c84a(){const _0x3b42bb=_0x5965dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x14d1d6(_0x4146db(_0x3839af)),_0x44eabc=_0x16c8e3(_0x14d1d6(window[_0x5965dd([0x4d,0x61,0x74,0x68])][_0x5965dd([0x63,0x65,0x69,0x6c])](_0x5f4308/_0x32e589)));window[_0x5965dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5965dd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b42bb,_0x44eabc);}function _0x1f05d9(){const _0x1191fa=_0x5965dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x14d1d6(_0x4146db(_0x3839af)),_0x4234fd=window[_0x5965dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5965dd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1191fa);return _0x4234fd?window[_0x5965dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16c8e3(_0x4234fd),0x10)*_0x32e589:null;}function _0x110d4c(_0x57e957){return new window[(_0x5965dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33e07b,_0x164870)=>{_0x57e957[_0x5965dd([0x74,0x68,0x65,0x6e])](_0x33e07b,_0x164870),window[_0x5965dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x164870,0x7347de73^_0x555ac2);});}}_0x58b191[_0x5965dd([0x6f,0x6e])](_0x5965dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ad2fc,_0x480286)=>{if(_0x480286[0x0]!=_0x3839af)return _0x1cbd5f(_0x5965dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x480286[0x1]={..._0x480286[0x1],[_0x5965dd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a57b2};},{[_0x5965dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5965dd([0x68,0x69,0x67,0x68])}),_0x58b191[_0x5965dd([0x6f,0x6e])](_0x5965dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2cbe66=>{_0x6b85a1(_0x2cbe66[_0x5965dd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9c7b5d=!0x0,_0x47c510(_0x2cbe66[_0x5965dd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5965dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5965dd([0x6c,0x6f,0x77])}),_0x34b964[_0x5965dd([0x74,0x68,0x65,0x6e])](()=>{_0x9c7b5d||_0x1cbd5f(_0x5965dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2050f5(){return _0x58b191[_0x5965dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5965dd([0x76,0x69,0x65,0x77])][_0x5965dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5965dd([0x61,0x75,0x74,0x6f]);}function _0x3613e0(){_0x58b191[_0x5965dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5965dd([0x76,0x69,0x65,0x77])][_0x5965dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5965dd([0x61,0x75,0x74,0x6f]);}}function _0x5344fd(_0x559592){const _0x12bea7=[new window[(_0x5965dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x209e80=>setTimeout(_0x209e80,0x734f347f^_0x555ac2)),_0x34b964[_0x5965dd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5965dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17a4bf=>{let _0x1b372e=0x0;_0x58b191[_0x5965dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5965dd([0x6f,0x6e])](_0x5965dd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x269c71,_0x433cab)=>{_0x433cab[0x0][_0x5965dd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b372e++,_0x1b372e==(0x73460f5b^_0x555ac2)&&(_0x17a4bf(),_0x269c71[_0x5965dd([0x6f,0x66,0x66])]());});}))];return window[_0x5965dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5965dd([0x72,0x61,0x63,0x65])](_0x12bea7)[_0x5965dd([0x74,0x68,0x65,0x6e])](()=>_0x559592);}async function _0x2628cf(){await _0x34b964,_0x58b191[_0x5965dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5965dd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b34aa,_0x58b191[_0x5965dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x5965dd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b34aa,_0x58b191[_0x5965dd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5965dd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f85fe(){return window[_0x5965dd([0x67,0x6c,0x6f,0x62])]&&window[_0x5965dd([0x67,0x6c,0x6f,0x62])][_0x5965dd([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x521333(){return _0x1bb8d1(_0x5965dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x47d5bf(_0x5965dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5965dd([0x73,0x74,0x61,0x74,0x65])]==_0x5965dd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a430d(){return _0x1bb8d1(_0x5965dd([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 _0x42d35f(){return _0x1bb8d1(_0x5965dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5bc2ee(_0x2ad510){const _0x4ef83e=_0x58ccba();_0x58b191[_0x4ef83e]=_0x5965dd([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ad510,_0x2ad510!=_0x5965dd([0x56,0x61,0x6c,0x69,0x64])&&_0x2628cf();}function _0x58ccba(){const _0x12f016=window[_0x5965dd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5965dd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5965dd([0x6e,0x6f,0x77])]())[_0x5965dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5965dd([0x2e]),'');let _0x262914=_0x5965dd([0x4b]);for(let _0x5c441e=0x0;_0x5c441e<_0x12f016[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c441e+=0x2){let _0x4a225b=window[_0x5965dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12f016[_0x5965dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c441e,_0x5c441e+0x2));_0x4a225b>=_0x3df9df[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a225b-=_0x3df9df[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x262914+=_0x3df9df[_0x4a225b];}return _0x262914;}function _0x3efb0c(){const _0x32518c=_0x16d486[_0x5965dd([0x73,0x70,0x6c,0x69,0x74])](_0x5965dd([0x2e]));if(0x3!=_0x32518c[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe6e605(_0x32518c[0x1]);function _0xe6e605(_0x3d0432){const _0x3b3854=_0xd50de1(_0x3d0432);return _0x3b3854&&_0x259acb()?_0x3b3854:null;function _0x259acb(){const _0x2ed4e2=_0x3b3854[_0x5965dd([0x6a,0x74,0x69])],_0x59e36f=window[_0x5965dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ed4e2[_0x5965dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ed4e2[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e0aa0={..._0x3b3854,[_0x5965dd([0x6a,0x74,0x69])]:_0x2ed4e2[_0x5965dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ed4e2[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e0aa0[_0x5965dd([0x76,0x63])],_0x4146db(_0x5e0aa0)==_0x59e36f;}}}async function _0x4ce0e8(){let _0x5f1129=!0x0;try{const _0x14f0b7=_0x16d486[_0x5965dd([0x73,0x70,0x6c,0x69,0x74])](_0x5965dd([0x2e])),[_0x5c0acf,_0x3aceac,_0x10d358]=_0x14f0b7;return _0x440b24(_0x5c0acf),await _0x8143c5(_0x5c0acf,_0x3aceac,_0x10d358),_0x5f1129;}catch{return!0x1;}function _0x440b24(_0x28f62f){const _0x199206=_0xd50de1(_0x28f62f);_0x199206&&_0x199206[_0x5965dd([0x61,0x6c,0x67])]==_0x5965dd([0x45,0x53,0x32,0x35,0x36])||(_0x5f1129=!0x1);}async function _0x8143c5(_0x543db6,_0x4fde99,_0x224941){const _0x39f821=window[_0x5965dd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5965dd([0x66,0x72,0x6f,0x6d])](_0x372edd(_0x224941),_0x1b9ea6=>_0x1b9ea6[_0x5965dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b526b=new window[(_0x5965dd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5965dd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x543db6+_0x5965dd([0x2e])+_0x4fde99),_0xad8b6f=window[_0x5965dd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5965dd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xad8b6f)return;const _0x34a365=await _0xad8b6f[_0x5965dd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5965dd([0x6a,0x77,0x6b]),_0x37a2f4,{[_0x5965dd([0x6e,0x61,0x6d,0x65])]:_0x5965dd([0x45,0x43,0x44,0x53,0x41]),[_0x5965dd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5965dd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5965dd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xad8b6f[_0x5965dd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5965dd([0x6e,0x61,0x6d,0x65])]:_0x5965dd([0x45,0x43,0x44,0x53,0x41]),[_0x5965dd([0x68,0x61,0x73,0x68])]:{[_0x5965dd([0x6e,0x61,0x6d,0x65])]:_0x5965dd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34a365,_0x39f821,_0x2b526b)||(_0x5f1129=!0x1);}}function _0xd50de1(_0x487e7a){return _0x487e7a[_0x5965dd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5965dd([0x65,0x79]))?JSON[_0x5965dd([0x70,0x61,0x72,0x73,0x65])](_0x372edd(_0x487e7a)):null;}function _0x372edd(_0x2d8e58){return window[_0x5965dd([0x61,0x74,0x6f,0x62])](_0x2d8e58[_0x5965dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5965dd([0x2b]))[_0x5965dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5965dd([0x2f])));}function _0x4146db(_0xf3bc3e){let _0xaf18aa=0x1505;function _0x5c0c14(_0x45ca92){for(let _0x1ffbff=0x0;_0x1ffbff<_0x45ca92[_0x5965dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ffbff++){const _0x4f351=_0x45ca92[_0x5965dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ffbff);_0xaf18aa=(_0xaf18aa<<0x5)+_0xaf18aa+_0x4f351,_0xaf18aa&=_0xaf18aa;}}function _0x28e0d8(_0x333341){Array[_0x5965dd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x333341)?_0x333341[_0x5965dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28e0d8):_0x333341&&typeof _0x333341==_0x5965dd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5965dd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x333341)[_0x5965dd([0x73,0x6f,0x72,0x74])]()[_0x5965dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d6e0e,_0x39c5aa])=>{_0x5c0c14(_0x5d6e0e),_0x28e0d8(_0x39c5aa);}):_0x5c0c14(window[_0x5965dd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x333341));}return _0x28e0d8(_0xf3bc3e),_0xaf18aa>>>0x0;}function _0x14d1d6(_0x58e75d){return _0x58e75d[_0x5965dd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5965dd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5965dd([0x30]));}function _0x16c8e3(_0x312600){return _0x312600[_0x5965dd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5965dd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5965dd([0x6a,0x6f,0x69,0x6e])]('');}function _0x1bb8d1(_0x203684){return _0x58b191[_0x5965dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5965dd([0x68,0x61,0x73])](_0x203684);}function _0x47d5bf(_0xc22f1e){return _0x58b191[_0x5965dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5965dd([0x67,0x65,0x74])](_0xc22f1e);}function _0x4b34aa(){}function _0x5965dd(_0x25e439){return _0x25e439['map'](_0x5a98fb=>String['fromCharCode'](_0x5a98fb))['join']('');}_0x5bc2ee(await _0x301589());}(this);}['destroy'](){const _0x2bdd07=this['editor']['plugins']['get'](o),_0x5e07e2=this['editor']['config']['get']('collaboration.channelId');for(const _0x5e2a8e of _0x2bdd07['getCommentThreads']({'channelId':_0x5e07e2}))_0x2bdd07['_detachCommentThread'](_0x5e2a8e['id']),_0x2bdd07['_threads']['delete'](_0x5e2a8e['id']);super['destroy']();}['hasMarkerForId'](_0x581327){return this['getAllMarkersForId'](_0x581327)['length']>0x0;}['getAllMarkersForId'](_0x41d2dc){const _0x49491c=[];for(const _0x14de7d of this['editor']['model']['markers'])_0x14de7d['name']['startsWith']('comment:'+_0x41d2dc)&&_0x49491c['push'](_0x14de7d);return _0x49491c;}['scrollToThreadMarker'](_0x2c23e1){setTimeout(()=>{const _0x18dd85=this['_getTargetForId'](_0x2c23e1);if(!_0x18dd85)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x2c23e1&&nt({'target':_0x18dd85[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x3b479b){this['editor']['model']['change'](()=>{for(const _0x2fc63f of this['getAllMarkersForId'](_0x3b479b))this['editor']['editing']['reconvertMarker'](_0x2fc63f);});}['_attachArchivedThread'](_0x2608cc){const _0x45da9f=this['editor']['plugins']['get'](o),_0x62da13=this['editor']['plugins']['get'](b),_0x1dcd9e=_0x45da9f['getCommentThread'](_0x2608cc);if(!_0x1dcd9e['isAttached']){const _0x2a2ffc=_0x1dcd9e['attachTo'](()=>this['_getTargetForId'](_0x1dcd9e['id']));_0x62da13['registerAnnotation'](_0x2a2ffc),_0x1dcd9e['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x327ffd=this['editor'],_0x326967=_0x327ffd['plugins']['get'](it);_0x327ffd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x115860,_0x3fa199)=>{const {id:_0x259d3e}=ft(_0x115860['markerName']),_0x31a66a=_0x327ffd['plugins']['get'](o)['getCommentThread'](_0x259d3e),_0x4a4208=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x259d3e;let _0x5ac08b;if(_0x31a66a&&_0x31a66a['isResolved']&&!_0x4a4208&&_0x115860['item'])return _0x3fa199['consumable']['consume'](_0x115860['item'],'addMarker:'+_0x115860['markerName']),_0x3fa199['consumable']['consume'](_0x115860['item'],'removeMarker:'+_0x115860['markerName']),null;const _0x3d4501=['ck-comment-marker'];return _0x4a4208&&_0x3d4501['push']('ck-comment-marker--active'),_0x5ac08b=_0x31a66a?.['length']?_0x31a66a['comments']['first']['author']['id']:_0x326967['me']['id'],{'classes':_0x3d4501,'attributes':{'data-comment':_0x259d3e,'data-author-id':_0x5ac08b}};}}),_0x327ffd['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x917661,{options:_0x71ae00})=>{if(_0x71ae00['showCommentHighlights'])return null;const _0xce3fd6=_0x327ffd['plugins']['get'](o),_0x1f118d=_0x327ffd['model']['markers']['get'](_0x917661),{id:_0x54ccae,part:_0x5821fd}=ft(_0x917661);return _0x1f118d&&!_0x1f118d['affectsData']||_0x71ae00['ignoreResolvedComments']&&_0xce3fd6['getCommentThread'](_0x54ccae)?.['isResolved']?null:{'group':'comment','name':_0x5821fd?_0x54ccae+':'+_0x5821fd:_0x54ccae};}}),_0x327ffd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3a8437,{writer:_0x3d8018})=>_0x3d8018['createElement']('$marker',{'data-name':'comment:'+_0x3a8437['getAttribute']('id')})}),_0x327ffd['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x19b6d2=this['editor'],_0x1d9c1c=_0x19b6d2['plugins']['get'](o),_0x4cb8ae=new Set(),_0xa42114=new Set();_0x19b6d2['model']['document']['registerPostFixer'](_0x578e02=>{let _0x45332a=!0x1;for(const {name:_0x69314e,data:_0x293b52}of _0x19b6d2['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5e338e,id:_0x2450e6}=ft(_0x69314e);let _0x4b0425=_0x293b52['newRange'];if('comment'!==_0x5e338e||!_0x4b0425)continue;const _0x4c150a='$graveyard'===_0x4b0425['root']['rootName'];_0x4c150a||(_0x4b0425=ht(_0x4b0425,_0x19b6d2['model']),!_0x4b0425||_0x4b0425['isCollapsed']||!_0x293b52['newRange']||_0x4b0425['isEqual'](_0x293b52['newRange']))?_0x19b6d2['model']['hasContent'](_0x4b0425)&&!_0x4c150a?this['isThreadsLoadingPaused']?_0x4cb8ae['add'](_0x69314e):this['_handleThreadMarker'](_0x69314e,_0x2450e6):(_0xa42114['add'](_0x69314e),_0x4cb8ae['delete'](_0x69314e),_0x578e02['removeMarker'](_0x69314e),_0x45332a=!0x0):(_0x578e02['updateMarker'](_0x69314e,{'range':_0x4b0425}),_0x45332a=!0x0);}return _0x45332a;}),this['on']('change:isThreadsLoadingPaused',(_0x22198d,_0x3d0233,_0x248584)=>{if(!_0x248584&&_0x4cb8ae['size'])for(const _0x5675af of _0x4cb8ae){const {id:_0x3b5885}=ft(_0x5675af);_0x4cb8ae['delete'](_0x5675af),_0x19b6d2['model']['markers']['get'](_0x5675af)&&this['_handleThreadMarker'](_0x5675af,_0x3b5885);}}),this['listenTo'](_0x19b6d2['model']['document'],'change',()=>{for(const {name:_0x553961,data:{newRange:_0x18e265}}of _0x19b6d2['model']['document']['differ']['getChangedMarkers']()){const {group:_0x42841c,id:_0x5e8da2}=ft(_0x553961);if('comment'!==_0x42841c)continue;const _0x4b5b35=_0x1d9c1c['getCommentThread'](_0x5e8da2),_0xa8c597=this['hasMarkerForId'](_0x5e8da2);_0x4b5b35&&(!_0x4b5b35['_hasTargetInContent']&&_0x18e265&&_0x19b6d2['editing']['view']['once']('render',()=>{const _0x246689=_0x19b6d2['plugins']['get'](y),_0x7a4a1d=_0x1d9c1c['_threadToController']['get'](_0x4b5b35)['view'];_0x246689['getByInnerView'](_0x7a4a1d)['refreshVisibility']();},{'priority':'low'}),_0x4b5b35['_hasTargetInContent']=_0xa8c597||!!_0x18e265),_0x18e265||(_0xa42114['add'](_0x553961),_0x4cb8ae['delete'](_0x553961));}for(const _0x1b067d of _0xa42114){const {id:_0x2e2766}=ft(_0x1b067d),_0x255664=_0x1d9c1c['getCommentThread'](_0x2e2766);if(_0x4cb8ae['delete'](_0x1b067d),!_0x255664)continue;const _0x7fe8e9=this['hasMarkerForId'](_0x2e2766);_0x7fe8e9||_0x255664['isSubmitted']?_0x7fe8e9||_0x255664['unlinkedAt']||_0x255664['setUnlinkedAt'](new Date()):_0x255664['remove']();}_0xa42114['clear']();});}['_handleInitialThreads'](_0x16ec21){_0x16ec21['forEach'](_0xc17c95=>{_0xc17c95['unlinkedAt']&&this['_attachArchivedThread'](_0xc17c95['id']);});}['_getTargetForId'](_0x624b78){const _0x294ab0=this['editor'],_0x251aaa=this['getAllMarkersForId'](_0x624b78);return et(_0x294ab0['editing'],_0x251aaa);}['_getTextContext'](_0x1f6a81){const _0x2ce032=this['getAllMarkersForId'](_0x1f6a81);let _0x48b7c1='',_0x33d3fe=!0x1;for(const _0x29b096 of _0x2ce032){const _0x10615=_0x29b096['getRange']();for(const _0x3f3c25 of Array['from'](_0x10615['getItems']()))_0x3f3c25['is']('$textProxy')?(_0x48b7c1&&_0x33d3fe&&(_0x48b7c1+='\x20',_0x33d3fe=!0x1),_0x48b7c1+=_0x3f3c25['data']):_0x33d3fe=!0x0;_0x33d3fe=!0x0;}return _0x48b7c1['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x34e206,_0x26c8c2){const _0x2a08fd=this['editor'],_0x33ec7b=_0x2a08fd['plugins']['get'](o);let _0x402534=_0x33ec7b['getCommentThread'](_0x26c8c2);const _0x4968bd=_0x2a08fd['config']['get']('collaboration.channelId'),_0x1f2145=_0x2a08fd['plugins']['get'](b);if(_0x402534&&(_0x402534['unlinkedAt']&&_0x402534['setUnlinkedAt'](null),_0x402534['isAttached']))return _0x402534;return!this['getAllMarkersForId'](_0x26c8c2)[0x0]['managedUsingOperations']?_0x2a08fd['editing']['view']['once']('render',()=>{if(_0x33ec7b['getCommentThread'](_0x26c8c2))return;const _0x431318=_0x2a08fd['plugins']['get'](y);_0x402534=_0x33ec7b['openNewCommentThread']({'channelId':_0x4968bd,'threadId':_0x26c8c2,'target':()=>this['_getTargetForId'](_0x26c8c2),'context':{'type':'text','value':this['_getTextContext'](_0x26c8c2)}});const _0x5cd9ce=_0x33ec7b['_threadToController']['get'](_0x402534)['view'],_0x44ef02=_0x431318['getByInnerView'](_0x5cd9ce);_0x44ef02&&_0x1f2145['registerAnnotation'](_0x44ef02);},{'priority':'low'}):_0x33ec7b['fetchCommentThread']({'channelId':_0x4968bd,'threadId':_0x26c8c2})['then'](_0x3550e3=>{if('destroyed'!==_0x2a08fd['state']){if(_0x402534=_0x3550e3,_0x402534&&!_0x402534['isAttached']){const _0x5cb9e4=_0x402534['attachTo'](()=>this['_getTargetForId'](_0x26c8c2));_0x1f2145['registerAnnotation'](_0x5cb9e4),_0x402534['isResolved']&&this['_reconvertMarkers'](_0x26c8c2);}else{if(!_0x402534){const _0x16cad7=this['getAllMarkersForId'](_0x26c8c2);_0x2a08fd['model']['change'](_0x2834ec=>{for(const _0x372600 of _0x16cad7)_0x2834ec['removeMarker'](_0x372600);});}}}}),_0x402534;}['_handleThreadMarker'](_0x8939ce,_0x2064e2){const _0x17f620=this['_attachMarkerToThread'](_0x8939ce,_0x2064e2);_0x17f620&&!_0x17f620['context']&&_0x17f620['setContext']({'type':'text','value':this['_getTextContext'](_0x2064e2)});}['_initAriaMarkerChangeAnnouncements'](){const _0x42ddec=this['editor'];rt(_0x42ddec['model'],({left:_0x150811,entered:_0x207b3d})=>{for(const _0x3c9a34 of _0x150811)if(mt(_0x3c9a34)){_0x42ddec['ui']['ariaLiveAnnouncer']['announce'](N(_0x42ddec['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3a4e8d of _0x207b3d)if(mt(_0x3a4e8d)){_0x42ddec['ui']['ariaLiveAnnouncer']['announce'](N(_0x42ddec['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x465426)));break;}});}}function dt(_0x5461d7,_0x57d112){return _0x57d112?_0x5461d7+':'+_0x57d112:_0x5461d7;}function ht(_0x336471,_0xae1fb4){const _0x1acddc=_0xae1fb4['schema'],_0x2651f1=_0xae1fb4['createRange'](_0x336471['start']);for(const _0x4d40a7 of _0x336471['getWalker']()){const {type:_0x393938,item:_0x21bbd7,nextPosition:_0x283825}=_0x4d40a7;if('text'===_0x393938||_0x1acddc['isObject'](_0x21bbd7)){const _0x5a4921=_0xae1fb4['createPositionBefore'](_0x21bbd7);_0x2651f1['isCollapsed']&&(_0x2651f1['start']=_0x5a4921),_0x2651f1['end']=_0x283825;}}return _0x2651f1;}function mt(_0x21ce54){return'comment'===ft(_0x21ce54['name'])['group'];}class s extends _0x3456c4{['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 _0xfcae99=this['editor'],_0x441d14=_0xfcae99['plugins']['get'](o),_0x517ef3=_0xfcae99['plugins']['get'](r),_0x45861e=_0xfcae99['plugins']['get'](y),_0x262146=_0xfcae99['plugins']['get'](b);_0xfcae99['ui']['componentFactory']['add']('comment',()=>{const _0x1ff61b=this['_createUIButton'](_0x3487c4);return _0x1ff61b['tooltip']=!0x0,_0x1ff61b;}),_0xfcae99['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x2bf5f4)),_0x262146['addSourceCollector'](()=>{const _0x4899eb=[];for(const [_0x5df7b0,_0x374834]of _0x441d14['_threadToController']){const _0x3e0e8b=_0x517ef3['getAllMarkersForId'](_0x5df7b0['id']),_0x3c1244=_0x3e0e8b['map'](_0x102290=>_0x102290['getRange']());_0x3e0e8b['length']>0x0&&_0x4899eb['push']([_0x374834['view'],_0x3c1244]);}return _0x4899eb;}),this['listenTo'](_0x45861e,'change:activeAnnotations',(_0x53eaa8,_0x544d71,_0x1bbc99)=>{const _0x4c0e45=Array['from'](_0x1bbc99)['map'](_0x395de4=>_0x395de4['innerView'])['find'](_0x1285e2=>_0x441d14['_viewToController']['has'](_0x1285e2));if(!_0x4c0e45)return void(_0x517ef3['activeMarker']=null);const _0x471f91=_0x441d14['_viewToController']['get'](_0x4c0e45)['model']['id'],_0x1811a2='comment:'+_0x471f91;_0x471f91&&_0x517ef3['hasMarkerForId'](_0x471f91)?_0x517ef3['activeMarker']=_0x1811a2:_0x517ef3['activeMarker']&&(_0x517ef3['activeMarker']=null);}),this['listenTo'](_0x441d14,'removeCommentThread',(_0x42213c,{threadId:_0x1a5c71,isFromAdapter:_0x5eb4fc})=>{!_0x5eb4fc&&_0xfcae99['ui']['focusTracker']['isFocused']&&_0x517ef3['hasMarkerForId'](_0x1a5c71)&&_0xfcae99['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x441d14,'addComment',(_0xa13d9c,{threadId:_0xc0f765,isFromAdapter:_0x58df90})=>{if(_0x58df90||!_0x517ef3['hasMarkerForId'](_0xc0f765)||!_0x441d14['hasCommentThread'](_0xc0f765))return;0x1===_0x441d14['getCommentThread'](_0xc0f765)['length']&&(_0xfcae99['editing']['view']['focus'](),_0xa13d9c['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3251f0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18f473;for(const _0x9cff5 in _0x3251f0){const _0x182c23=_0x9cff5,_0xe1dd89=_0x3251f0[_0x182c23];if('commentsLicenseKeyValid'==_0xe1dd89||'commentsLicenseKeyInvalid'==_0xe1dd89||'commentsLicenseKeyExpired'==_0xe1dd89||'commentsLicenseKeyDomainLimit'==_0xe1dd89||'commentsLicenseKeyNotAllowed'==_0xe1dd89||'commentsLicenseKeyEvaluationLimit'==_0xe1dd89||'commentsLicenseKeyUsageLimit'==_0xe1dd89){delete _0x3251f0[_0x182c23],_0x18f473=_0xe1dd89,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x18f473&&_0x3251f0['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x18f473&&_0x3251f0['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x18f473&&_0x3251f0['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x18f473&&_0x3251f0['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x18f473&&_0x3251f0['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x18f473&&_0x3251f0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3dd0f3){const _0x3fb3e8=this['editor'],_0x3fcf7f=new _0x3dd0f3(_0x3fb3e8['locale']),_0x297916=_0x3fb3e8['commands']['get']('addCommentThread');return _0x3fcf7f['set']({'label':N(_0x3fb3e8['locale'],'Comment'),'icon':_0x13d93d}),_0x3fcf7f['bind']('isEnabled')['to'](_0x297916,'isEnabled',_0x297916,'hasContent',(_0x5c648a,_0x5a1bc5)=>_0x5c648a&&_0x5a1bc5),this['listenTo'](_0x3fcf7f,'execute',()=>{_0x297916['execute']();}),_0x3fcf7f;}}class i extends _0x3456c4{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x278e81){super(_0x278e81),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x470e32,_0x4d3798,_0x3233bc)=>{_0x3233bc?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x52b243,_0x201b48]of this['editor']['commands'])_0x201b48['affectsData']&&'addCommentThread'!==_0x52b243&&_0x201b48['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x4cbfdf=this['editor']['editing']['view']['document'];this['listenTo'](_0x4cbfdf,'cut',_0x3319cf=>_0x3319cf['stop'](),{'priority':'highest'}),this['listenTo'](_0x4cbfdf,'clipboardInput',_0x383507=>_0x383507['stop'](),{'priority':'highest'}),this['listenTo'](_0x4cbfdf,'delete',_0x1a0527=>_0x1a0527['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x35f577,_0x379a4d]of this['editor']['commands'])_0x379a4d['affectsData']&&'addCommentThread'!==_0x35f577&&_0x379a4d['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['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 _0x816dec{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2809ac){super(_0x2809ac),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x1debe6=this['context']['plugins']['get'](y);this['listenTo'](_0x1debe6,'_activateAnnotation',(_0x4d93c1,_0x4f968b)=>{for(const _0x2908d0 of this['activeUIs']){const _0x46d23b=this['_uis']['get'](_0x2908d0);(0x0,this['uisData']['get'](_0x2908d0)['filter'])(_0x4f968b)&&_0x46d23b['setActiveAnnotation'](_0x4f968b);}}),this['listenTo'](_0x1debe6,'_deactivateAllAnnotations',()=>{for(const _0x470192 of this['activeUIs']){this['_uis']['get'](_0x470192)['setActiveAnnotation'](null);}}),this['listenTo'](_0x1debe6['_visibleAnnotations'],'add',(_0x2e92be,_0x1b2902)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1b2902);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x5b41a4){return this['activeUIs']['has'](_0x5b41a4);}['activate'](_0x3930b5,_0x5e12c1=this['defaultFilter']){const _0x487558=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x3930b5))throw new _0x5199cf('annotationsuis-missing-ui',this,{'uiName':_0x3930b5});this['isActive'](_0x3930b5)&&this['deactivate'](_0x3930b5),this['activeUIs']['add'](_0x3930b5);const _0x5ca980=new S();v({'source':_0x487558['_visibleAnnotations'],'target':_0x5ca980,'filter':_0x5e12c1}),this['uisData']['set'](_0x3930b5,{'collection':_0x5ca980,'filter':_0x5e12c1});const _0x18de45=this['_uis']['get'](_0x3930b5);_0x18de45['attach'](_0x5ca980),this['listenTo'](_0x18de45,'change:activeAnnotation',(_0x55f104,_0x5c4802,_0x1a181e,_0x440edc)=>{_0x440edc&&_0x487558['_removeActiveAnnotation'](_0x440edc),_0x1a181e&&_0x487558['_addActiveAnnotation'](_0x1a181e);});}['deactivate'](_0x49bc41){if(this['activeUIs']['delete'](_0x49bc41),!this['_uis']['has'](_0x49bc41))throw new _0x5199cf('annotationsuis-missing-ui',this,{'uiName':_0x49bc41});const _0x4afe5f=this['_uis']['get'](_0x49bc41);_0x4afe5f['detach'](),this['stopListening'](_0x4afe5f),this['uisData']['get'](_0x49bc41)['collection']['destroy'](),this['uisData']['delete'](_0x49bc41);}['switchTo'](_0x56c7df){if(!this['_uis']['has'](_0x56c7df))throw new _0x5199cf('annotationsuis-missing-ui',this,{'uiName':_0x56c7df});const _0x2a38e1=this['context']['plugins']['get'](y),_0x62de6=Array['from'](_0x2a38e1['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x56c7df);const _0x550b72=this['_uis']['get'](_0x56c7df);_0x550b72['setActiveAnnotation'](_0x62de6),_0x550b72['_setSelectedAnnotations']&&_0x62de6&&_0x550b72['_setSelectedAnnotations']([_0x62de6]);}['deactivateAll'](){for(const _0x17f0f1 of this['activeUIs'])this['deactivate'](_0x17f0f1);}['register'](_0x1bf89a,_0xfa2275){if(this['_uis']['has'](_0x1bf89a))throw new _0x5199cf('annotationsuis-register-already-registered');if('function'!=typeof _0xfa2275['attach']||'function'!=typeof _0xfa2275['detach']||'function'!=typeof _0xfa2275['setActiveAnnotation'])throw new _0x5199cf('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1bf89a,_0xfa2275);}['refilterAnnotations'](){const _0x1d7a45=this['context']['plugins']['get'](y)['collection'],_0x1d1fcd=new Map(),_0x52b640=Array['from'](this['activeUIs']);for(const _0x4c3b18 of this['activeUIs']){const _0x19f107=this['uisData']['get'](_0x4c3b18)['collection'];for(const _0x223ea1 of _0x19f107)_0x1d1fcd['set'](_0x223ea1,_0x4c3b18);}for(const _0x3c47ed of _0x1d7a45){const _0x1edda2=_0x1d1fcd['get'](_0x3c47ed);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3c47ed);const _0x22f967=_0x52b640['find'](_0x291144=>this['uisData']['get'](_0x291144)['filter'](_0x3c47ed));_0x1edda2!==_0x22f967&&(_0x1edda2&&this['uisData']['get'](_0x1edda2)['collection']['remove'](_0x3c47ed),_0x22f967&&this['uisData']['get'](_0x22f967)['collection']['add'](_0x3c47ed));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4a52fe){const _0x888c43=[];for(const _0x21d4e5 of this['activeUIs']){(0x0,this['uisData']['get'](_0x21d4e5)['filter'])(_0x4a52fe)&&_0x888c43['push'](_0x21d4e5);}if(_0x888c43['length']>0x1)throw new _0x5199cf('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x888c43,'annotationType':_0x4a52fe['type']});}}const he=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4ee8c8){super(_0x4ee8c8);const _0x53fa47=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 _0x4fd6f9(),this['focusCycler']=new _0x439bb2({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x53fa47['to']('class')],'style':{'minHeight':_0x53fa47['to']('minHeight',_0x114e35=>'number'==typeof _0x114e35?he(_0x114e35+0xa):null)},'dir':_0x4ee8c8['uiLanguageDirection'],'role':'application','aria-label':N(_0x4ee8c8,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x4ee8c8,'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',_0x13df5c=>{this['_updateItemPositionInFocusables'](_0x13df5c['source']);}),this['list']['forEach'](_0x1bc0d1=>{this['focusTracker']['add'](_0x1bc0d1['element']),this['_updateItemPositionInFocusables'](_0x1bc0d1);}),this['list']['on']('change',(_0x525d5a,_0x2393ef)=>{for(const _0x5ed2ad of _0x2393ef['removed'])this['focusTracker']['remove'](_0x5ed2ad['element']),this['focusables']['remove'](_0x5ed2ad);for(const _0x5521cf of _0x2393ef['added'])this['focusTracker']['add'](_0x5521cf['element']),this['_updateItemPositionInFocusables'](_0x5521cf);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x24227c){const _0x26cec0=this['focusables']['getIndex'](_0x24227c);let _0x16e727,_0x3b37e0;for(const _0xbd4a93 of this['focusables'])if(_0x24227c['top']<_0xbd4a93['top']){_0x16e727=_0xbd4a93;break;}if(_0x3b37e0=_0x16e727?this['focusables']['getIndex'](_0x16e727):this['focusables']['length'],-0x1!==_0x26cec0){if(_0x26cec0===_0x3b37e0-0x1)return;this['focusables']['remove'](_0x24227c),_0x3b37e0=_0x16e727?this['focusables']['getIndex'](_0x16e727):this['focusables']['length'];}this['focusables']['add'](_0x24227c,_0x3b37e0);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3455be){super(_0x3455be),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x46271c,_0x3feeb6)=>_0x46271c+_0x3feeb6),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x5da9e3=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x5da9e3['to']('isAnimationDisabled',_0x563e35=>_0x563e35?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5da9e3['to']('top',_0x3a3ef1=>Ot(_0x3a3ef1))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x25a77c=this['element']['clientHeight'];_0x25a77c&&(this['height']=_0x25a77c);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x816dec{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50bf3f){super(_0x50bf3f),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 _0x51f58a=this['context']['config']['get']('sidebar.container');_0x51f58a&&this['setContainer'](_0x51f58a);}['setContainer'](_0x32d83d){if(!g(_0x32d83d))throw new _0x5199cf('sidebar-setcontainer-invalid-element');this['container']=_0x32d83d;}['_attachToContainer']({viewClass:_0x18d163='',spaceBetweenItems:_0x499048=0x19}={}){if(!g(this['container']))throw new _0x5199cf('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x18d163,this['_spaceBetweenItems']=_0x499048;}['rearrange']({removedAnnotation:_0x1cfaa1,previousAnnotation:_0x2bd870,nextAnnotation:_0x3eeee9}){const _0x4eb6e8=this['getSidebarItemView'](_0x1cfaa1);this['view']['list']['remove'](_0x4eb6e8),this['_destroySidebarItemView'](_0x1cfaa1),_0x2bd870&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2bd870)),_0x3eeee9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3eeee9)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2b1a7d,activatedAnnotation:_0x2ce51a,disableAnimationOnActivatedAnnotation:_0x155224}){if(this['_activeAnnotation']=_0x2ce51a,_0x2b1a7d){_0x2b1a7d['isActive']=!0x1;const _0x5f53c8=this['getSidebarItemView'](_0x2b1a7d);_0x5f53c8&&_0x155224&&(_0x5f53c8['isAnimationDisabled']=!0x1);}if(_0x2ce51a){const _0x720b9a=this['getSidebarItemView'](_0x2ce51a);_0x720b9a&&(_0x2ce51a['isActive']=!0x0,_0x155224&&(_0x720b9a['isAnimationDisabled']=!0x0,_0x720b9a['top']+=0x1),this['_alignToTargetRect'](_0x720b9a));}}['_detachFromContainer'](_0x24ee38){if(this['view']['element']['remove'](),_0x24ee38){for(const _0x59a70e of _0x24ee38)this['_destroySidebarItemView'](_0x59a70e);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xbcdf98,_0x2ed141){_0x2ed141||(_0x2ed141=_0xbcdf98['view']);const _0x32a09c=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x32a09c,_0xbcdf98),this['_annotationToSidebarItemView']['set'](_0xbcdf98,_0x32a09c),_0x32a09c['content']['add'](_0x2ed141),this['listenTo'](_0xbcdf98['view'],'change:targetRect',(_0x2d64e5,_0x4e800b,_0xb6d33c)=>{const _0x679b91=this['_getTargetTop'](_0xbcdf98,_0xb6d33c);_0x32a09c['_targetTop']!=_0x679b91&&(_0x32a09c['_targetTop']=_0x679b91,this['_setItemTop'](_0x32a09c,_0x679b91));}),this['listenTo'](_0x32a09c,'change:top',()=>{this['_recalculate'](_0x32a09c,'top');}),this['listenTo'](_0x32a09c,'change:bottom',()=>{this['_recalculate'](_0x32a09c,'bottom');}),this['_alignToTargetRect'](_0x32a09c);const _0x22f037=this['_getItemBefore'](_0x32a09c);if(_0x22f037)this['_alignAfterItem'](_0x22f037,_0x32a09c)||this['_alignToTargetRect'](_0x32a09c);else this['_alignToTargetRect'](_0x32a09c);return this['_updateLastItem'](),this['view']['list']['add'](_0x32a09c),_0x32a09c;}['_alignForTopChange'](_0x52a8f6){if(!_0x52a8f6['content']['length'])return;const _0x11af2b=this['_getItemBefore'](_0x52a8f6);if(!_0x11af2b)return;const _0x3ae634=this['_sidebarItemViewToAnnotation']['get'](_0x11af2b),_0x3961cd=this['_activeAnnotation'];_0x3961cd&&_0x3961cd===_0x3ae634?this['_alignAfterItem'](_0x11af2b,_0x52a8f6):this['_alignBeforeItem'](_0x52a8f6,_0x11af2b);}['_alignForBottomChange'](_0x1e5e8c){if(!_0x1e5e8c['content']['length'])return;const _0x391b65=this['_getItemAfter'](_0x1e5e8c);if(!_0x391b65)return;const _0x2916a7=this['_sidebarItemViewToAnnotation']['get'](_0x391b65),_0x4693d9=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x15f9b4=this['_activeAnnotation'];_0x15f9b4&&_0x15f9b4===_0x2916a7&&_0x4693d9?(this['_alignBeforeItem'](_0x391b65,_0x1e5e8c),this['_alignAfterItem'](_0x1e5e8c,_0x391b65)):_0x15f9b4&&_0x15f9b4===_0x2916a7?this['_alignBeforeItem'](_0x391b65,_0x1e5e8c):this['_alignAfterItem'](_0x1e5e8c,_0x391b65);}['_recalculate'](_0x380621,_0x5e81b0){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x418480,changedProp:_0x2871c7}of this['_recalculateBuffer'])'top'===_0x2871c7?this['_alignForTopChange'](_0x418480):this['_alignForBottomChange'](_0x418480);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x380621,'changedProp':_0x5e81b0});}['getSidebarItemView'](_0x227391){return this['_annotationToSidebarItemView']['get'](_0x227391);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x47aa4e){const _0x4e10ca=this['getSidebarItemView'](_0x47aa4e);this['stopListening'](_0x4e10ca),this['stopListening'](_0x47aa4e['view']),_0x4e10ca['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x47aa4e),this['_sidebarItemViewToAnnotation']['delete'](_0x4e10ca);}['_createSidebarView'](){const _0x36f706=new H(this['context']['locale']);return _0x36f706['render'](),this['on']('change:_lastItem',(_0x920869,_0x39e0fd,_0x2e73e0,_0x332c76)=>{_0x332c76&&_0x36f706['unbind']('minHeight'),_0x2e73e0?_0x36f706['bind']('minHeight')['to'](_0x2e73e0,'bottom'):_0x36f706['minHeight']=null;}),_0x36f706;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x295c7e){const _0x699071=this['_sidebarItemViewToAnnotation']['get'](_0x295c7e),_0x30ab34=_0x699071&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x699071)-0x1);return _0x30ab34&&this['getSidebarItemView'](_0x30ab34)||null;}['_getItemAfter'](_0x27fa43){const _0x204e8c=this['_sidebarItemViewToAnnotation']['get'](_0x27fa43),_0x388b82=_0x204e8c&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x204e8c)+0x1);return _0x388b82&&this['getSidebarItemView'](_0x388b82)||null;}['_alignBeforeItem'](_0x5b3ecb,_0x538fe2){_0x5b3ecb['updateHeight']();const _0x2f8fd4=G(_0x538fe2['bottom']+this['_spaceBetweenItems'],_0x5b3ecb['top']);return!!_0x2f8fd4&&(this['_setItemTop'](_0x538fe2,_0x538fe2['top']-_0x2f8fd4),!0x0);}['_alignAfterItem'](_0x48c485,_0x430f97){_0x48c485['updateHeight']();const _0x19ab8d=G(_0x48c485['bottom']+this['_spaceBetweenItems'],_0x430f97['top']);return!!_0x19ab8d&&(this['_setItemTop'](_0x430f97,_0x430f97['top']+_0x19ab8d,!0x1),!0x0);}['_alignToTargetRect'](_0x3cd52e){const _0x24b4aa=this['_sidebarItemViewToAnnotation']['get'](_0x3cd52e);if(!_0x24b4aa||!_0x24b4aa['target']||!_0x24b4aa['targetRect'])return;const _0x4a805a=this['_getTargetTop'](_0x24b4aa,_0x24b4aa['targetRect']);this['_setItemTop'](_0x3cd52e,_0x4a805a);}['_getTargetTop'](_0x5f2442,_0x43f122){if(null===_0x43f122)return 0x0;if(_0x5f2442['target']instanceof _0x578f30)return _0x43f122['top'];{const _0x4ddc11=new _0x578f30(this['view']['element'])['top'];return _0x43f122['top']-_0x4ddc11;}}['_setItemTop'](_0x5d9b27,_0x31f38c,_0x7ad0f5=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x7ad0f5&&(_0x31f38c=Math['max'](_0x31f38c,this['_getMaxAvailableTop'](_0x5d9b27))),_0x5d9b27['top']=_0x31f38c;}['_getMaxAvailableTop'](_0xbcdb75){let _0x36348a=this['_getItemBefore'](_0xbcdb75),_0x4ae104=0x0;for(;_0x36348a;)_0x36348a['updateHeight'](),_0x4ae104+=this['_spaceBetweenItems']+_0x36348a['height'],_0x36348a=this['_getItemBefore'](_0x36348a);return _0x4ae104;}}function G(_0x440006,_0x43a43d){return Math['max'](_0x440006-_0x43a43d,0x0);}function g(_0x304ae4){return null!==_0x304ae4&&'object'==typeof _0x304ae4&&0x1===_0x304ae4['nodeType'];}class e extends _0x816dec{['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(_0x1733fb){super(_0x1733fb),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x328140(),this['_refreshPositioningDebounced']=_0x9c41f3(()=>{_0x1733fb['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x16c460=this['context']['plugins']['get'](j),_0x252e91=this['context']['plugins']['get'](z);_0x16c460['register']('wideSidebar',this),_0x252e91['container']&&_0x16c460['switchTo']('wideSidebar');}['setActiveAnnotation'](_0xe34440){if(_0xe34440===this['activeAnnotation'])return;const _0x41526b=this['context']['plugins']['get'](z);_0x41526b['_activeAnnotation']=_0xe34440;const _0x38e8ef=this['activeAnnotation'];_0x41526b['refresh']({'blurredAnnotation':_0x38e8ef,'activatedAnnotation':_0xe34440}),this['activeAnnotation']=_0xe34440;}['attach'](_0x14aa6c){this['annotations']=_0x14aa6c;const _0x26f2e0=this['context']['plugins']['get'](z);if(_0x26f2e0['_annotations']=_0x14aa6c,this['isAttached'])throw new _0x5199cf('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x26f2e0,'set:container',()=>{this['detach'](),this['listenTo'](_0x26f2e0,'change:container',_0xf26d63=>{_0xf26d63['off'](),this['attach'](_0x14aa6c);});}),_0x26f2e0['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x46a868=_0x502eff=>{_0x502eff['updateTargetRect'](),_0x26f2e0['addAnnotation'](_0x502eff);};for(const _0x56f5db of _0x14aa6c)_0x46a868(_0x56f5db);this['listenTo'](_0x14aa6c,'add',(_0x3893f7,_0x549c20)=>{_0x46a868(_0x549c20);}),this['listenTo'](_0x14aa6c,'remove',(_0x7604cb,_0x3efd8c,_0x5e2fb5)=>{_0x26f2e0['rearrange']({'removedAnnotation':_0x3efd8c,'previousAnnotation':_0x14aa6c['get'](_0x5e2fb5-0x1),'nextAnnotation':_0x14aa6c['get'](_0x5e2fb5+0x1)}),_0x3efd8c===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x14aa6c,'focus',(_0x5ba56e,_0x133291)=>{this['setActiveAnnotation'](_0x133291);}),this['listenTo'](_0x14aa6c,'blur',()=>{this['setActiveAnnotation'](null);});const _0x69b3ff=this['context']instanceof _0x30418b?this['context']['editors']:new _0x328140([this['context']]);for(const _0x47e869 of _0x69b3ff)this['_integrateWithEditorAnnotations'](_0x47e869);this['listenTo'](_0x69b3ff,'add',(_0x4cc976,_0x38db58)=>{this['listenTo'](_0x38db58,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x38db58);});}),this['listenTo'](_0x69b3ff,'remove',(_0x3bec6b,_0x448834)=>{_0x448834['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x448834['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x5199cf('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1d8a3=this['context']['plugins']['get'](z);_0x1d8a3['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1d8a3),this['stopListening'](this['annotations']),this['context']instanceof _0x30418b&&this['stopListening'](this['context']['editors']);for(const _0x419f40 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x419f40);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3001cc){if(!_0x3001cc['plugins']['has']('EditorAnnotations'))return;const _0x52f45a=_0x3001cc['plugins']['get']('EditorAnnotations'),_0x3b184b=()=>{const _0x18ef0f=_0x52f45a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x18ef0f[0x0]||null);};this['listenTo'](_0x52f45a,'refresh',_0x3b184b),this['listenTo'](_0x52f45a,'blur',(_0x3e4c0a,{isAnnotationTracked:_0x5cb563})=>{this['activeAnnotation']&&_0x5cb563(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x52f45a,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x1abfe3=>{_0x52f45a['hasDomSelection']()&&(_0x3b184b(),_0x1abfe3['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x52f45a);}['_destroyEditorAnnotationsIntegration'](_0x4f2a86){this['stopListening'](_0x4f2a86),this['_editorAnnotations']['remove'](_0x4f2a86);}}class C extends _0x3487c4{['counterView'];constructor(_0x4f5f9d){super(_0x4f5f9d);const _0xfef9bc=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x41e478,_0x2f3a04)=>_0x41e478?'...':_0x2f3a04['toString']()),this['set']('annotationType',''),this['icon']=_0x13d93d,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0xfef9bc['to']('annotationType',_0x57556c=>'ck-annotation-counter__badge--'+_0x57556c),_0xfef9bc['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0xfef9bc['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x816dec{['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(_0x20dcfd){super(_0x20dcfd),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x102c7a())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x328140(),this['_refreshPositioningDebounced']=_0x9c41f3(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3ead9c(this['context']['locale']),this['balloonPanelView']=new _0x32c4b2(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3d502b){this['annotations']=_0x3d502b;const _0x2353e5=this['context']['plugins']['get'](z),_0x327b23=this['balloonPanelView'];if(_0x2353e5['_annotations']=_0x3d502b,this['isAttached'])throw new _0x5199cf('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2353e5,'set:container',()=>{this['detach'](),this['listenTo'](_0x2353e5,'change:container',_0x1ed3fb=>{_0x1ed3fb['off'](),this['attach'](_0x3d502b);});}),_0x2353e5['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0xcc001=_0x5cdc5e=>{const _0x3815d0=new C(this['context']['locale']);_0x2353e5['addAnnotation'](_0x5cdc5e,_0x3815d0),this['_annotationToNarrowView']['set'](_0x5cdc5e,_0x3815d0),_0x3815d0['bind']('isDirty','annotationType','number')['to'](_0x5cdc5e['view'],'isDirty','type','length'),_0x3815d0['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x327b23['content']['first']!==_0x5cdc5e['view']?(this['_showBalloon'](_0x5cdc5e),_0x5cdc5e['view']['element']['focus'](),this['setActiveAnnotation'](_0x5cdc5e)):this['setActiveAnnotation'](null);});};for(const _0x4438c8 of _0x3d502b)_0xcc001(_0x4438c8);this['listenTo'](_0x3d502b,'add',(_0x178f27,_0x31535c)=>{_0xcc001(_0x31535c);}),this['listenTo'](_0x3d502b,'remove',(_0x4d8556,_0x3ff287,_0x3eb677)=>{this['_annotationToNarrowView']['get'](_0x3ff287)['destroy'](),this['_annotationToNarrowView']['delete'](_0x3ff287),_0x2353e5['rearrange']({'removedAnnotation':_0x3ff287,'previousAnnotation':_0x3d502b['get'](_0x3eb677-0x1),'nextAnnotation':_0x3d502b['get'](_0x3eb677+0x1)}),_0x3ff287===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3d502b,'focus',(_0x2fe50d,_0x28ccb4)=>{this['setActiveAnnotation'](_0x28ccb4);}),this['listenTo'](_0x3d502b,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2571ab,_0x57b0cf)=>{_0x57b0cf['keyCode']===_0x453b9a['esc']&&_0x327b23['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x327b23['content']['first']),this['_hideBalloon'](),_0x57b0cf['stopPropagation'](),_0x57b0cf['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1dad70,_0x33e1c1)=>{const _0x1eb866=_0x33e1c1['target'];_0x327b23['isVisible']&&_0x327b23['element']['contains'](_0x1eb866)||_0x2353e5['view']['element']['contains'](_0x1eb866)||_0x1dad70['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x1edf11=>_0x1edf11['contains'](_0x1eb866))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x57fd72=this['context']instanceof _0x30418b?this['context']['editors']:new _0x328140([this['context']]);for(const _0x49d0c9 of _0x57fd72)this['_integrateWithEditorAnnotations'](_0x49d0c9);this['listenTo'](_0x57fd72,'add',(_0x4de253,_0x5f4d20)=>{this['listenTo'](_0x5f4d20,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5f4d20);});}),this['listenTo'](_0x57fd72,'remove',(_0x364584,_0x3bf594)=>{_0x3bf594['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3bf594['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x3d0e1a){if(_0x3d0e1a===this['activeAnnotation'])return;const _0x19671d=this['context']['plugins']['get'](z);if(_0x19671d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x3d0e1a,'disableAnimationOnActivatedAnnotation':!0x0}),_0x3d0e1a)_0x19671d['getSidebarItemView'](_0x3d0e1a)?this['_showBalloon'](_0x3d0e1a):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x3d0e1a;}['detach'](){if(!this['isAttached'])throw new _0x5199cf('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x55ce9d=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3c5ce3=>_0x3c5ce3['destroy']()),this['_annotationToNarrowView']['clear'](),_0x55ce9d['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x30418b&&this['stopListening'](this['context']['editors']);for(const _0x33c0ac of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x33c0ac);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'](_0x93c891){if(!_0x93c891['plugins']['has']('EditorAnnotations'))return;const _0x194bfe=_0x93c891['plugins']['get']('EditorAnnotations'),_0x19a72b=this['context']['plugins']['get'](z),_0x3e68a9=this['annotations'],_0x3eeb8b=this['balloonPanelView'],_0x500b22=()=>{const _0x3f0ea5=_0x194bfe['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x3f0ea5),this['setActiveAnnotation'](_0x3f0ea5[0x0]||null);};this['listenTo'](_0x194bfe,'refresh',_0x500b22),this['listenTo'](_0x194bfe,'blur',(_0x59d867,{isAnnotationTracked:_0x2e89e1})=>{this['activeAnnotation']&&_0x2e89e1(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x194bfe,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3e68a9,'blur',_0x2b3304=>{_0x194bfe['hasDomSelection']()&&_0x2b3304['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x19b7b0,_0x589806)=>{const _0x2d3c3c=_0x589806['target'];_0x3eeb8b['isVisible']&&_0x3eeb8b['element']['contains'](_0x2d3c3c)||_0x19a72b['view']['element']['contains'](_0x2d3c3c)||this['activeAnnotation']&&_0x194bfe['hasDomSelection']()&&(_0x500b22(),_0x19b7b0['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x194bfe);}['_destroyEditorAnnotationsIntegration'](_0x31f653){_0x31f653&&(this['stopListening'](_0x31f653),this['_editorAnnotations']['remove'](_0x31f653));}['_setSelectedAnnotations'](_0x5e4051){for(const _0x1c46b7 of this['_selectedAnnotations'])_0x5e4051['includes'](_0x1c46b7)||this['_manuallyClosedAnnotationViews']['delete'](_0x1c46b7['view']);this['_selectedAnnotations']=_0x5e4051;}['_refreshPositioning'](){const _0x368d5d=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x368d5d['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x6cd5c){if(this['_manuallyClosedAnnotationViews']['has'](_0x6cd5c['view']))return;const _0x12edb6=this['balloonPanelView']['content']['first'];_0x12edb6!==_0x6cd5c['view']?(_0x12edb6&&this['_detachListeners'](_0x12edb6),this['_attachListeners'](_0x6cd5c['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x6cd5c['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x275fe=this['balloonPanelView']['content']['first'],_0x334317=_0x275fe&&this['annotations']['getByView'](_0x275fe);if(!_0x334317||!this['_annotationToNarrowView']['has'](_0x334317))return;const _0x25a512=this['_annotationToNarrowView']['get'](_0x334317)['element'],_0x40bea9=(function(){const _0x1a673a=_0x32c4b2['defaultPositions'];return[_0x1a673a['southArrowNorthEast'],_0x1a673a['northArrowSouthEast'],_0x1a673a['southArrowNorth'],_0x1a673a['northArrowSouth'],_0x1a673a['southArrowNorthWest'],_0x1a673a['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x25a512,'positions':_0x40bea9});}['_hideBalloon'](){const _0x113bde=this['balloonPanelView'],_0x27005b=_0x113bde['content']['first'];_0x27005b&&(this['_detachListeners'](_0x27005b),_0x113bde['unpin'](),_0x113bde['content']['clear']());}['_attachListeners'](_0x724b7a){this['listenTo'](_0x724b7a,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x724b7a,'Esc',(_0x4bb23f,_0x545ddc)=>{this['_manuallyClosedAnnotationViews']['add'](_0x724b7a),this['_hideBalloon'](),_0x545ddc();});}['_detachListeners'](_0x2ac819){this['stopListening'](_0x2ac819);}}class c extends _0x3456c4{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0xcf4250,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e5cbe){super(_0x1e5cbe),_0x1e5cbe['editing']['view']['addObserver'](_0x3b3a72),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1e5cbe['plugins']['get'](_0xcf4250),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x9c41f3(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x572df2=this['editor']['plugins']['get'](j);_0x572df2['context']===this['editor']&&(_0x572df2['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x7c6aac,_0x4094dc)=>{const _0x484086=this['_balloon'];if(this['isAttached']&&_0x484086['visibleView']){const _0x3de86e=this['annotations']['getByView'](_0x484086['visibleView']);_0x3de86e&&this['_closeAnnotation'](_0x3de86e),_0x4094dc();}}));}['afterInit'](){const _0x58415a=this['editor']['plugins']['get'](j);_0x58415a['context']===this['editor']&&(_0x58415a['hasActive']()||_0x58415a['switchTo']('inline'));}['setActiveAnnotation'](_0xaa82d3){_0xaa82d3!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0xaa82d3&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0xaa82d3)&&this['_addAnnotationToBalloon'](_0xaa82d3,!0x0),_0xaa82d3['isActive']=!0x0),_0xaa82d3||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0xaa82d3);}['attach'](_0x3f4a94){this['annotations']=_0x3f4a94;const _0x1492f0=this['editor']['plugins']['get'](j),_0xee24d0=this['_balloon'];if(this['isAttached'])throw new _0x5199cf('inlineannotations-attach-already-attached',this);if(_0x1492f0['context']!==this['editor'])throw new _0x5199cf('inlineannotations-not-allowed-with-context',this);const _0x31e7fd=this['editor']['plugins']['get'](b);this['listenTo'](_0x31e7fd,'refresh',()=>{const _0x1b93d5=_0x31e7fd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5e5087,_0xcf67a5;!this['_forceRefresh']&&(_0x5e5087=_0x1b93d5,_0xcf67a5=this['_selectedAnnotations'],_0x5e5087['length']===_0xcf67a5['length']&&_0x5e5087['every'](_0x1d2803=>_0xcf67a5['includes'](_0x1d2803)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x1b93d5),this['setActiveAnnotation'](_0x1b93d5[0x0]||null));}),this['listenTo'](_0x31e7fd,'blur',(_0x48eb73,{isAnnotationTracked:_0x268c2a})=>{this['activeAnnotation']&&_0x268c2a(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x31e7fd,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1b5abb,_0x2443cb,_0x5cf91c)=>{_0x5cf91c||this['setActiveAnnotation'](null);}),this['listenTo'](_0x3f4a94,'remove',(_0x3ff071,_0x169246)=>{this['_removeAnnotationFromBalloon'](_0x169246),_0x169246===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xee24d0,'change:visibleView',(_0x2e5e76,_0x545677,_0x3239ef,_0x3727c0)=>{_0x3727c0&&this['stopListening'](_0x3727c0);const _0x3918de=_0x3f4a94['getByView'](_0x3239ef);_0x3239ef&&_0x3918de&&(this['listenTo'](_0x3239ef,'change:height',()=>{_0xee24d0['updatePosition']();}),this['listenTo'](_0x3239ef,'Esc',()=>{this['_closeAnnotation'](_0x3918de),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3918de&&this['setActiveAnnotation'](_0x3918de));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0xee24d0['visibleView']&&(_0x3f4a94['getByView'](_0xee24d0['visibleView'])&&_0xee24d0['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 _0x5199cf('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x2a777b of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x2a777b);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x36ecf6){for(const _0x37c09f of this['_selectedAnnotations'])_0x36ecf6['includes'](_0x37c09f)||this['_manuallyClosed']['delete'](_0x37c09f);for(const _0x3e6616 of this['annotations'])_0x36ecf6['includes'](_0x3e6616)||this['_removeAnnotationFromBalloon'](_0x3e6616);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x44b95b of _0x36ecf6)this['_addAnnotationToBalloon'](_0x44b95b);}this['_selectedAnnotations']=_0x36ecf6;}['_addAnnotationToBalloon'](_0xe7cc99,_0x4a39a9=!0x1){this['_manuallyClosed']['has'](_0xe7cc99)||(this['_addedAnnotations']['has'](_0xe7cc99)||this['_balloon']['hasView'](_0xe7cc99['view'])||(this['_addedAnnotations']['add'](_0xe7cc99),this['_balloon']['add']({'stackId':_0xe7cc99['view']['id'],'view':_0xe7cc99['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xe7cc99)}})),_0x4a39a9&&this['_balloon']['showStack'](_0xe7cc99['view']['id']));}['_getBalloonTargetForAnnotation'](_0x2c18f7){const _0x59f3ca=_0x2c18f7['target'],_0x179242=this['editor']['editing']['view'],_0x50eb44=_0x179242['document']['selection']['getFirstRange'](),_0x104000=_0x179242['domConverter']['viewRangeToDom'](_0x50eb44);if(_0x104000['collapse'](!0x0),_0x59f3ca){if(_0x59f3ca instanceof _0x578f30)return _0x59f3ca;let _0x180bd9=[];for(const _0x580c7a of _0x59f3ca)_0x180bd9['push'](...F(_0x580c7a['getClientRects']()));_0x180bd9=function(_0xbadea3){const _0x5c1a93=[];let _0xe367b=_0xbadea3[0x0];for(let _0x3a4a1b=0x1;_0x3a4a1b<_0xbadea3['length'];_0x3a4a1b++)P(_0xe367b,_0xbadea3[_0x3a4a1b])?_0xe367b['width']+=_0xbadea3[_0x3a4a1b]['width']:(_0x5c1a93['push'](_0xe367b),_0xe367b=_0xbadea3[_0x3a4a1b]);return _0x5c1a93['push'](_0xe367b),_0x5c1a93;}(_0x180bd9);const _0x4d04cc=_0x104000['getBoundingClientRect']();return _0x180bd9['find'](_0x324f9e=>_0x324f9e['top']<=_0x4d04cc['top']&&_0x324f9e['bottom']>=_0x4d04cc['bottom']&&_0x324f9e['left']<=_0x4d04cc['left']&&_0x324f9e['right']>=_0x4d04cc['right'])||_0x180bd9[0x0];}return _0x2c18f7['targetRect']||_0x104000;}['_removeAnnotationFromBalloon'](_0x366c23){this['_addedAnnotations']['has'](_0x366c23)&&this['_balloon']['hasView'](_0x366c23['view'])&&(this['_addedAnnotations']['delete'](_0x366c23),this['_balloon']['remove'](_0x366c23['view']));}['_closeAnnotation'](_0x428186){this['_manuallyClosed']['add'](_0x428186),this['_removeAnnotationFromBalloon'](_0x428186);}}function F(_0x3a1b22){return Array['from'](_0x3a1b22)['map'](DOMRect['fromRect']);}function P(_0x44d74e,_0x1ad265){return _0x44d74e['top']===_0x1ad265['top']&&_0x44d74e['bottom']===_0x1ad265['bottom']&&_0x44d74e['right']===_0x1ad265['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0xac2299,_0x45a59c){super(_0xac2299),this['set']('isEmpty',!_0x45a59c['length']),this['focusTracker']=new _0x4fd6f9(),this['_annotationViews']=_0x45a59c,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x439bb2({'focusables':_0x45a59c,'focusTracker':this['focusTracker']}),this['listenTo'](_0x45a59c,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x45a59c,'remove',(_0x221675,_0x2e1486)=>{_0x2e1486['isActive']&&this['focus'](),_0x45a59c['length']||(this['isEmpty']=!0x0);});const _0x5cf573=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0xac2299,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x45a59c},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5cf573['if']('isEmpty','ck-hidden',_0x57dee5=>!_0x57dee5)]},'children':[{'text':N(_0xac2299,'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 _0x548f90 of this['_annotationViews'])this['focusTracker']['add'](_0x548f90['element']);this['_annotationViews']['on']('change',(_0x38e0c8,{added:_0x1de2e4,removed:_0x3ef2d9})=>{for(const _0x4534f7 of _0x1de2e4)this['focusTracker']['add'](_0x4534f7['element']);for(const _0x511106 of _0x3ef2d9)this['focusTracker']['remove'](_0x511106['element']);});}}class p extends _0x816dec{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x5e1751){super(_0x5e1751),this['archivedThreads']=new _0x328140();}['init'](){const _0x45f636=this['context'],_0x2bb854=_0x45f636['plugins']['get'](o),_0x4070f6=_0x45f636['plugins']['get'](y);this['listenTo'](_0x2bb854,'addCommentThread',(_0x2cdb8a,{threadId:_0x3d0a27})=>{const _0x3eaecd=_0x2bb854['getCommentThread'](_0x3d0a27);_0x3eaecd['archivedAt']&&this['archivedThreads']['add'](_0x3eaecd,this['_calculatePosition'](_0x3eaecd['archivedAt'])),this['listenTo'](_0x3eaecd,'change:archivedAt',(_0x215cdf,_0x17cf08,_0x25356)=>{_0x25356?this['archivedThreads']['has'](_0x3eaecd)||this['archivedThreads']['add'](_0x3eaecd,this['_calculatePosition'](_0x3eaecd['archivedAt'])):this['archivedThreads']['has'](_0x3eaecd)&&this['archivedThreads']['remove'](_0x3eaecd);});}),this['listenTo'](_0x2bb854,'removeCommentThread',(_0xd8f7f6,{threadId:_0x15d772})=>{const _0x4f2699=_0x2bb854['getCommentThread'](_0x15d772);this['stopListening'](_0x4f2699),this['archivedThreads']['has'](_0x4f2699)&&this['archivedThreads']['remove'](_0x4f2699);},{'priority':'highest'}),this['listenTo'](_0x4070f6['collection'],'focus',(_0x1b7b13,_0x5174eb)=>{_0x5174eb['isVisible']||(_0x5174eb['isActive']=!0x0,_0x4070f6['activate'](_0x5174eb));});}['_calculatePosition'](_0x5eefa4){const _0x390d4b=[...this['archivedThreads']]['findIndex'](_0x50a674=>_0x50a674['archivedAt']<_0x5eefa4);return _0x390d4b>-0x1?_0x390d4b:this['archivedThreads']['length'];}}class a extends _0x3456c4{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x12cfd4];}constructor(_0x43c286){super(_0x43c286),this['annotationViews']=new _0x1539d8(),this['_pendingThreads']=[];}['init'](){const _0x7ec276=this['editor'],_0x548125=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x7ec276['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3487c4,!0x0)),_0x7ec276['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x303c78=this['_createCommentsArchiveButton'](_0x2bf5f4);return _0x303c78['set']({'role':'menuitemcheckbox'}),_0x303c78;});const _0xdb956d=_0x7ec276['plugins']['get'](p),_0x2c857b=_0x7ec276['plugins']['get']('Annotations'),_0x1becc7=_0x7ec276['plugins']['get']('CommentsRepository');_0xdb956d['archivedThreads']['forEach'](_0x1ef51d=>{this['_handleNewThread'](_0x1ef51d);}),this['listenTo'](_0xdb956d['archivedThreads'],'add',(_0x154952,_0x41954a)=>{this['_handleNewThread'](_0x41954a);}),this['listenTo'](_0x2c857b['collection'],'add',(_0x44aaa8,_0x2758e2)=>{const _0x231e20=this['_pendingThreads']['find'](_0x38bf53=>{const _0x228a18=_0x1becc7['_threadToController']['get'](_0x38bf53);return _0x228a18&&_0x2758e2['innerView']===_0x228a18['view'];});if(_0x231e20){const _0x4862c9=this['_calculatePosition'](_0x231e20['archivedAt']);this['_addAnnotationToArchive'](_0x2758e2,_0x4862c9),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x231e20),0x1);}}),this['listenTo'](_0xdb956d['archivedThreads'],'remove',(_0x3a15cc,_0x2cd1e3)=>{const _0x12f9b3=_0x7ec276['config']['get']('collaboration.channelId');if(!_0x12f9b3||_0x2cd1e3['channelId']===_0x12f9b3){if(this['_pendingThreads']['includes'](_0x2cd1e3))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2cd1e3),0x1);else{const _0x223872=_0x1becc7['_threadToController']['get'](_0x2cd1e3),_0x41e903=_0x2c857b['getByInnerView'](_0x223872['view']);this['annotationViews']['remove'](_0x41e903['view']),this['stopListening'](_0x41e903),this['stopListening'](_0x41e903['focusableElements']);}}}),this['listenTo'](_0x2c857b['collection'],'add',(_0x1bba06,_0xc6be8e)=>{this['listenTo'](_0xc6be8e,'escape',_0x548125);}),this['listenTo'](_0x2c857b['collection'],'remove',(_0x2146ed,_0x5a2234)=>{this['stopListening'](_0x5a2234,'escape',_0x548125);});}['_addAnnotationToArchive'](_0xb11825,_0x18ee8a){this['listenTo'](_0xb11825,'set:isVisible',_0x194c87=>{_0x194c87['return']=!0x1,_0x194c87['stop']();}),this['annotationViews']['add'](_0xb11825['view'],_0x18ee8a);}['_handleNewThread'](_0x3aeff2){const _0x5c5e9d=this['editor']['plugins']['get']('CommentsRepository'),_0x3bf35c=this['editor']['plugins']['get']('Annotations'),_0x38af07=this['editor']['config']['get']('collaboration.channelId');if(!_0x38af07||_0x3aeff2['channelId']===_0x38af07){const _0x35bb82=_0x5c5e9d['_threadToController']['get'](_0x3aeff2);if(!_0x35bb82)return void this['_pendingThreads']['push'](_0x3aeff2);const _0x50227d=this['_calculatePosition'](_0x3aeff2['archivedAt']),_0x278b9d=_0x3bf35c['getByInnerView'](_0x35bb82['view']);_0x278b9d['isVisible']&&_0x3bf35c['_visibleAnnotations']['remove'](_0x278b9d),this['_addAnnotationToArchive'](_0x278b9d,_0x50227d);}}['_calculatePosition'](_0x2ec552){const _0x5dd884=this['editor']['config']['get']('collaboration.channelId'),_0x2af204=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x21a4a3=>_0x21a4a3['channelId']===_0x5dd884)['findIndex'](_0x5c4c44=>_0x5c4c44['archivedAt']<_0x2ec552);return _0x2af204<0x0||_0x2af204>this['annotationViews']['length']?this['annotationViews']['length']:_0x2af204-0x1;}['_toggleDialog'](){const _0x45ffe5=this['editor'],_0x416f24=_0x45ffe5['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x45ffe5['locale'],this['annotationViews'])),'commentsArchive'===_0x416f24['id']?_0x416f24['hide']():_0x416f24['show']({'id':'commentsArchive','title':N(_0x45ffe5['locale'],'COMMENTS_ARCHIVE'),'icon':_0xeb0d29,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x31a583['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x56a06d,_0x419f60=!0x1){const _0x4058b7=this['editor']['locale'],_0x3c6934=this['editor']['plugins']['get']('Dialog'),_0x2c98ba=new _0x56a06d(_0x4058b7);return _0x2c98ba['bind']('isEnabled')['to'](this,'isEnabled'),_0x2c98ba['bind']('isOn')['to'](_0x3c6934,'id',_0x561896=>'commentsArchive'===_0x561896),_0x2c98ba['set']({'label':N(_0x4058b7,'COMMENTS_ARCHIVE'),'icon':_0xeb0d29,'isToggleable':!0x0}),_0x419f60&&(_0x2c98ba['tooltip']=!0x0),this['listenTo'](_0x2c98ba,'execute',()=>this['_toggleDialog']()),_0x2c98ba;}['_hideDialogOnAnnotationEscape']=_0x1e79c7=>{const _0x3db0ce=_0x1e79c7['source'];if(!this['annotationViews']['has'](_0x3db0ce['view']))return;const _0x2fada1=this['editor']['plugins']['get']('Dialog');_0x2fada1['isOpen']&&'commentsArchive'===_0x2fada1['id']&&(_0x2fada1['hide'](),_0x1e79c7['stop']());};}class Comments extends _0x3456c4{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,Comment,CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,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};